template-designer 0.1.8 → 0.1.9

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,83 +1,11 @@
1
- import { defineComponent as te, openBlock as V, createElementBlock as N, createElementVNode as m, computed as b, ref as k, watch as FA, normalizeStyle as AA, toDisplayString as fe, createCommentVNode as tA, getCurrentInstance as Ze, inject as Xe, unref as I, getCurrentScope as Wu, onScopeDispose as Du, readonly as Ju, onMounted as Oe, nextTick as de, isRef as Ku, warn as Lu, provide as fs, mergeProps as Gu, renderSlot as sr, normalizeClass as _A, createVNode as W, Transition as hs, withCtx as j, withDirectives as GA, createTextVNode as Fe, vShow as gs, shallowReactive as Yu, createBlock as vA, resolveDynamicComponent as cr, Fragment as VA, withModifiers as xA, isVNode as Us, render as yi, onUnmounted as zu, resolveComponent as QA, renderList as Me, vModelSelect as ju, vModelText as Ye, vModelCheckbox as Xu, vModelDynamic as Pu, toRefs as _u, onBeforeUnmount as Ur, reactive as Ri, resolveDirective as qu, h as $u } from "vue";
2
- /*! Element Plus Icons Vue v2.3.2 */
3
- var Ad = /* @__PURE__ */ te({
4
- name: "CircleCloseFilled",
5
- __name: "circle-close-filled",
6
- setup(e) {
7
- return (A, t) => (V(), N("svg", {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- viewBox: "0 0 1024 1024"
10
- }, [
11
- m("path", {
12
- fill: "currentColor",
13
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
14
- })
15
- ]));
16
- }
17
- }), ps = Ad, ed = /* @__PURE__ */ te({
18
- name: "Close",
19
- __name: "close",
20
- setup(e) {
21
- return (A, t) => (V(), N("svg", {
22
- xmlns: "http://www.w3.org/2000/svg",
23
- viewBox: "0 0 1024 1024"
24
- }, [
25
- m("path", {
26
- fill: "currentColor",
27
- d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
28
- })
29
- ]));
30
- }
31
- }), td = ed, rd = /* @__PURE__ */ te({
32
- name: "InfoFilled",
33
- __name: "info-filled",
34
- setup(e) {
35
- return (A, t) => (V(), N("svg", {
36
- xmlns: "http://www.w3.org/2000/svg",
37
- viewBox: "0 0 1024 1024"
38
- }, [
39
- m("path", {
40
- fill: "currentColor",
41
- d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
42
- })
43
- ]));
44
- }
45
- }), La = rd, nd = /* @__PURE__ */ te({
46
- name: "SuccessFilled",
47
- __name: "success-filled",
48
- setup(e) {
49
- return (A, t) => (V(), N("svg", {
50
- xmlns: "http://www.w3.org/2000/svg",
51
- viewBox: "0 0 1024 1024"
52
- }, [
53
- m("path", {
54
- fill: "currentColor",
55
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
56
- })
57
- ]));
58
- }
59
- }), Qs = nd, ad = /* @__PURE__ */ te({
60
- name: "WarningFilled",
61
- __name: "warning-filled",
62
- setup(e) {
63
- return (A, t) => (V(), N("svg", {
64
- xmlns: "http://www.w3.org/2000/svg",
65
- viewBox: "0 0 1024 1024"
66
- }, [
67
- m("path", {
68
- fill: "currentColor",
69
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
70
- })
71
- ]));
72
- }
73
- }), ws = ad;
74
- const od = (e, A) => {
1
+ import { computed as b, ref as Z, watch as FA, openBlock as V, createElementBlock as N, normalizeStyle as AA, createElementVNode as m, toDisplayString as fe, createCommentVNode as tA, getCurrentInstance as Ze, inject as Xe, unref as I, getCurrentScope as Wu, onScopeDispose as Du, readonly as Ju, onMounted as Oe, nextTick as de, isRef as Ku, warn as Lu, provide as fs, defineComponent as te, mergeProps as Gu, renderSlot as sr, normalizeClass as _A, createVNode as W, Transition as hs, withCtx as j, withDirectives as GA, createTextVNode as Fe, vShow as gs, shallowReactive as Yu, createBlock as vA, resolveDynamicComponent as cr, Fragment as VA, withModifiers as xA, isVNode as Us, render as yi, onUnmounted as zu, resolveComponent as QA, renderList as Me, vModelSelect as ju, vModelText as Ye, vModelCheckbox as Xu, vModelDynamic as Pu, toRefs as _u, onBeforeUnmount as Ur, reactive as Ri, resolveDirective as qu, h as $u } from "vue";
2
+ const Ad = (e, A) => {
75
3
  const t = e[A];
76
4
  return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((r, n) => {
77
5
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + A)));
78
6
  });
79
7
  };
80
- const id = {
8
+ const ed = {
81
9
  __name: "TextComponent",
82
10
  props: {
83
11
  modelValue: {
@@ -91,7 +19,7 @@ const id = {
91
19
  }
92
20
  },
93
21
  setup(e) {
94
- const A = e, t = b(() => A.modelValue.Title ? `${A.modelValue.Title}${A.modelValue.Text}` : A.modelValue.Text), r = k({}), n = b(() => A.modelValue.__selected || !1), a = b(() => ({
22
+ const A = e, t = b(() => A.modelValue.Title ? `${A.modelValue.Title}${A.modelValue.Text}` : A.modelValue.Text), r = Z({}), n = b(() => A.modelValue.__selected || !1), a = b(() => ({
95
23
  position: "absolute",
96
24
  left: "-2px",
97
25
  top: "-2px",
@@ -109,46 +37,46 @@ const id = {
109
37
  alignItems: "center",
110
38
  overflow: "hidden",
111
39
  boxSizing: "border-box"
112
- })), i = k(/* @__PURE__ */ new Map()), l = (d) => {
113
- var f, B, g, U, Q, p;
40
+ })), i = Z(/* @__PURE__ */ new Map()), l = (d) => {
41
+ var f, B, g, h, p, Q;
114
42
  if (i.value.has(d))
115
43
  return i.value.get(d);
116
- const h = ((p = (Q = (U = (g = (B = (f = A.propsConfig) == null ? void 0 : f.text) == null ? void 0 : B.propertyPanel) == null ? void 0 : g.find((C) => C.prop == "FontName")) == null ? void 0 : U.options) == null ? void 0 : Q.find((C) => C.value == d)) == null ? void 0 : p.cssValue) || d;
117
- return i.value.set(d, h), h;
44
+ const U = ((Q = (p = (h = (g = (B = (f = A.propsConfig) == null ? void 0 : f.text) == null ? void 0 : B.propertyPanel) == null ? void 0 : g.find((C) => C.prop == "FontName")) == null ? void 0 : h.options) == null ? void 0 : p.find((C) => C.value == d)) == null ? void 0 : Q.cssValue) || d;
45
+ return i.value.set(d, U), U;
118
46
  }, s = {
119
47
  1: "left",
120
48
  2: "center",
121
49
  3: "right"
122
50
  }, c = b(() => {
123
- const d = A.modelValue.TextWrap ?? r.value.TextWrap ?? 1, h = A.modelValue.FontSize ?? r.value.FontSize, f = A.modelValue.FontName || r.value.FontName, B = A.modelValue.Bold || r.value.Bold, g = A.modelValue.Italic || r.value.Italic, U = A.modelValue.FontColor || r.value.FontColor, Q = A.modelValue.Alignment || r.value.Alignment || 2, p = {
124
- fontSize: h + "px",
51
+ const d = A.modelValue.TextWrap ?? r.value.TextWrap ?? 1, U = A.modelValue.FontSize ?? r.value.FontSize, f = A.modelValue.FontName || r.value.FontName, B = A.modelValue.Bold || r.value.Bold, g = A.modelValue.Italic || r.value.Italic, h = A.modelValue.FontColor || r.value.FontColor, p = A.modelValue.Alignment || r.value.Alignment || 2, Q = {
52
+ fontSize: U + "px",
125
53
  fontFamily: l(f),
126
54
  fontWeight: B ? "bold" : "normal",
127
55
  fontStyle: g ? "italic" : "normal",
128
- color: U,
56
+ color: h,
129
57
  width: "100%",
130
58
  minWidth: 0,
131
59
  boxSizing: "border-box",
132
- textAlign: s[Q]
60
+ textAlign: s[p]
133
61
  };
134
62
  switch (d) {
135
63
  case 1:
136
- p.whiteSpace = "pre-wrap", p.overflow = "visible", p.textOverflow = "unset";
64
+ Q.whiteSpace = "pre-wrap", Q.overflow = "visible", Q.textOverflow = "unset";
137
65
  break;
138
66
  case 2:
139
- p.whiteSpace = "nowrap", p.overflow = "hidden", p.textOverflow = "ellipsis";
67
+ Q.whiteSpace = "nowrap", Q.overflow = "hidden", Q.textOverflow = "ellipsis";
140
68
  break;
141
69
  case 3:
142
- p.whiteSpace = "nowrap", p.overflow = "hidden", p.textOverflow = "clip";
70
+ Q.whiteSpace = "nowrap", Q.overflow = "hidden", Q.textOverflow = "clip";
143
71
  break;
144
72
  }
145
- return p;
73
+ return Q;
146
74
  }), u = () => {
147
- var h, f;
148
- const d = at((f = (h = A.propsConfig) == null ? void 0 : h.text) == null ? void 0 : f.propertyPanel) || {};
75
+ var U, f;
76
+ const d = at((f = (U = A.propsConfig) == null ? void 0 : U.text) == null ? void 0 : f.propertyPanel) || {};
149
77
  r.value = d, i.value.clear();
150
78
  };
151
- return FA(() => A.propsConfig, () => u(), { deep: !0, immediate: !0 }), (d, h) => (V(), N("div", {
79
+ return FA(() => A.propsConfig, () => u(), { deep: !0, immediate: !0 }), (d, U) => (V(), N("div", {
152
80
  class: "td-text-component",
153
81
  style: AA(o.value)
154
82
  }, [
@@ -163,14 +91,14 @@ const id = {
163
91
  }, null, 4)) : tA("", !0)
164
92
  ], 4));
165
93
  }
166
- }, Fs = Symbol(), cn = "el", ld = "is-", Le = (e, A, t, r, n) => {
94
+ }, ps = Symbol(), cn = "el", td = "is-", Le = (e, A, t, r, n) => {
167
95
  let a = `${e}-${A}`;
168
96
  return t && (a += `-${t}`), r && (a += `__${r}`), n && (a += `--${n}`), a;
169
- }, Cs = Symbol("namespaceContextKey"), sd = (e) => {
170
- const A = e || (Ze() ? Xe(Cs, k(cn)) : k(cn));
97
+ }, Qs = Symbol("namespaceContextKey"), rd = (e) => {
98
+ const A = e || (Ze() ? Xe(Qs, Z(cn)) : Z(cn));
171
99
  return b(() => I(A) || cn);
172
100
  }, Eo = (e, A) => {
173
- const t = sd(A);
101
+ const t = rd(A);
174
102
  return {
175
103
  namespace: t,
176
104
  b: (B = "") => Le(t.value, e, B, "", ""),
@@ -179,22 +107,22 @@ const id = {
179
107
  be: (B, g) => B && g ? Le(t.value, e, B, g, "") : "",
180
108
  em: (B, g) => B && g ? Le(t.value, e, "", B, g) : "",
181
109
  bm: (B, g) => B && g ? Le(t.value, e, B, "", g) : "",
182
- bem: (B, g, U) => B && g && U ? Le(t.value, e, B, g, U) : "",
110
+ bem: (B, g, h) => B && g && h ? Le(t.value, e, B, g, h) : "",
183
111
  is: (B, ...g) => {
184
- const U = g.length >= 1 ? g[0] : !0;
185
- return B && U ? `${ld}${B}` : "";
112
+ const h = g.length >= 1 ? g[0] : !0;
113
+ return B && h ? `${td}${B}` : "";
186
114
  },
187
115
  cssVar: (B) => {
188
116
  const g = {};
189
- for (const U in B)
190
- B[U] && (g[`--${t.value}-${U}`] = B[U]);
117
+ for (const h in B)
118
+ B[h] && (g[`--${t.value}-${h}`] = B[h]);
191
119
  return g;
192
120
  },
193
121
  cssVarName: (B) => `--${t.value}-${B}`,
194
122
  cssVarBlock: (B) => {
195
123
  const g = {};
196
- for (const U in B)
197
- B[U] && (g[`--${t.value}-${e}-${U}`] = B[U]);
124
+ for (const h in B)
125
+ B[h] && (g[`--${t.value}-${e}-${h}`] = B[h]);
198
126
  return g;
199
127
  },
200
128
  cssVarBlockName: (B) => `--${t.value}-${e}-${B}`
@@ -207,82 +135,82 @@ const id = {
207
135
  **/
208
136
  process.env.NODE_ENV !== "production" && Object.freeze({});
209
137
  process.env.NODE_ENV !== "production" && Object.freeze([]);
210
- const cd = Object.prototype.hasOwnProperty, Vi = (e, A) => cd.call(e, A), hn = (e) => typeof e == "function", gn = (e) => typeof e == "string", Es = (e) => e !== null && typeof e == "object";
211
- var ud = typeof global == "object" && global && global.Object === Object && global;
212
- const dd = ud;
213
- var Bd = typeof self == "object" && self && self.Object === Object && self, fd = dd || Bd || Function("return this")();
214
- const mo = fd;
215
- var hd = mo.Symbol;
216
- const Et = hd;
217
- var ms = Object.prototype, gd = ms.hasOwnProperty, Ud = ms.toString, Dt = Et ? Et.toStringTag : void 0;
218
- function pd(e) {
219
- var A = gd.call(e, Dt), t = e[Dt];
138
+ const nd = Object.prototype.hasOwnProperty, Vi = (e, A) => nd.call(e, A), hn = (e) => typeof e == "function", gn = (e) => typeof e == "string", ws = (e) => e !== null && typeof e == "object";
139
+ var ad = typeof global == "object" && global && global.Object === Object && global;
140
+ const od = ad;
141
+ var id = typeof self == "object" && self && self.Object === Object && self, ld = od || id || Function("return this")();
142
+ const mo = ld;
143
+ var sd = mo.Symbol;
144
+ const Et = sd;
145
+ var Fs = Object.prototype, cd = Fs.hasOwnProperty, ud = Fs.toString, Dt = Et ? Et.toStringTag : void 0;
146
+ function dd(e) {
147
+ var A = cd.call(e, Dt), t = e[Dt];
220
148
  try {
221
149
  e[Dt] = void 0;
222
150
  var r = !0;
223
151
  } catch {
224
152
  }
225
- var n = Ud.call(e);
153
+ var n = ud.call(e);
226
154
  return r && (A ? e[Dt] = t : delete e[Dt]), n;
227
155
  }
228
- var Qd = Object.prototype, wd = Qd.toString;
229
- function Fd(e) {
230
- return wd.call(e);
156
+ var Bd = Object.prototype, fd = Bd.toString;
157
+ function hd(e) {
158
+ return fd.call(e);
231
159
  }
232
- var Cd = "[object Null]", Ed = "[object Undefined]", Ti = Et ? Et.toStringTag : void 0;
233
- function vs(e) {
234
- return e == null ? e === void 0 ? Ed : Cd : Ti && Ti in Object(e) ? pd(e) : Fd(e);
160
+ var gd = "[object Null]", Ud = "[object Undefined]", Ti = Et ? Et.toStringTag : void 0;
161
+ function Cs(e) {
162
+ return e == null ? e === void 0 ? Ud : gd : Ti && Ti in Object(e) ? dd(e) : hd(e);
235
163
  }
236
- function md(e) {
164
+ function pd(e) {
237
165
  return e != null && typeof e == "object";
238
166
  }
239
- var vd = "[object Symbol]";
167
+ var Qd = "[object Symbol]";
240
168
  function vo(e) {
241
- return typeof e == "symbol" || md(e) && vs(e) == vd;
169
+ return typeof e == "symbol" || pd(e) && Cs(e) == Qd;
242
170
  }
243
- function yd(e, A) {
171
+ function wd(e, A) {
244
172
  for (var t = -1, r = e == null ? 0 : e.length, n = Array(r); ++t < r; )
245
173
  n[t] = A(e[t], t, e);
246
174
  return n;
247
175
  }
248
- var Rd = Array.isArray;
249
- const yo = Rd;
250
- var Vd = 1 / 0, Ii = Et ? Et.prototype : void 0, Ni = Ii ? Ii.toString : void 0;
251
- function ys(e) {
176
+ var Fd = Array.isArray;
177
+ const yo = Fd;
178
+ var Cd = 1 / 0, Ii = Et ? Et.prototype : void 0, Ni = Ii ? Ii.toString : void 0;
179
+ function Es(e) {
252
180
  if (typeof e == "string")
253
181
  return e;
254
182
  if (yo(e))
255
- return yd(e, ys) + "";
183
+ return wd(e, Es) + "";
256
184
  if (vo(e))
257
185
  return Ni ? Ni.call(e) : "";
258
186
  var A = e + "";
259
- return A == "0" && 1 / e == -Vd ? "-0" : A;
187
+ return A == "0" && 1 / e == -Cd ? "-0" : A;
260
188
  }
261
- function Rs(e) {
189
+ function ms(e) {
262
190
  var A = typeof e;
263
191
  return e != null && (A == "object" || A == "function");
264
192
  }
265
- var Td = "[object AsyncFunction]", Id = "[object Function]", Nd = "[object GeneratorFunction]", Sd = "[object Proxy]";
266
- function Md(e) {
267
- if (!Rs(e))
193
+ var Ed = "[object AsyncFunction]", md = "[object Function]", vd = "[object GeneratorFunction]", yd = "[object Proxy]";
194
+ function Rd(e) {
195
+ if (!ms(e))
268
196
  return !1;
269
- var A = vs(e);
270
- return A == Id || A == Nd || A == Td || A == Sd;
197
+ var A = Cs(e);
198
+ return A == md || A == vd || A == Ed || A == yd;
271
199
  }
272
- var bd = mo["__core-js_shared__"];
273
- const la = bd;
200
+ var Vd = mo["__core-js_shared__"];
201
+ const la = Vd;
274
202
  var Si = function() {
275
203
  var e = /[^.]+$/.exec(la && la.keys && la.keys.IE_PROTO || "");
276
204
  return e ? "Symbol(src)_1." + e : "";
277
205
  }();
278
- function Hd(e) {
206
+ function Td(e) {
279
207
  return !!Si && Si in e;
280
208
  }
281
- var xd = Function.prototype, Zd = xd.toString;
282
- function kd(e) {
209
+ var Id = Function.prototype, Nd = Id.toString;
210
+ function Sd(e) {
283
211
  if (e != null) {
284
212
  try {
285
- return Zd.call(e);
213
+ return Nd.call(e);
286
214
  } catch {
287
215
  }
288
216
  try {
@@ -292,59 +220,59 @@ function kd(e) {
292
220
  }
293
221
  return "";
294
222
  }
295
- var Od = /[\\^$.*+?()[\]{}|]/g, Wd = /^\[object .+?Constructor\]$/, Dd = Function.prototype, Jd = Object.prototype, Kd = Dd.toString, Ld = Jd.hasOwnProperty, Gd = RegExp(
296
- "^" + Kd.call(Ld).replace(Od, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
223
+ var Md = /[\\^$.*+?()[\]{}|]/g, bd = /^\[object .+?Constructor\]$/, Hd = Function.prototype, xd = Object.prototype, Zd = Hd.toString, kd = xd.hasOwnProperty, Od = RegExp(
224
+ "^" + Zd.call(kd).replace(Md, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
297
225
  );
298
- function Yd(e) {
299
- if (!Rs(e) || Hd(e))
226
+ function Wd(e) {
227
+ if (!ms(e) || Td(e))
300
228
  return !1;
301
- var A = Md(e) ? Gd : Wd;
302
- return A.test(kd(e));
229
+ var A = Rd(e) ? Od : bd;
230
+ return A.test(Sd(e));
303
231
  }
304
- function zd(e, A) {
232
+ function Dd(e, A) {
305
233
  return e == null ? void 0 : e[A];
306
234
  }
307
- function Vs(e, A) {
308
- var t = zd(e, A);
309
- return Yd(t) ? t : void 0;
235
+ function vs(e, A) {
236
+ var t = Dd(e, A);
237
+ return Wd(t) ? t : void 0;
310
238
  }
311
- function jd(e, A) {
239
+ function Jd(e, A) {
312
240
  return e === A || e !== e && A !== A;
313
241
  }
314
- var Xd = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Pd = /^\w*$/;
315
- function _d(e, A) {
242
+ var Kd = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ld = /^\w*$/;
243
+ function Gd(e, A) {
316
244
  if (yo(e))
317
245
  return !1;
318
246
  var t = typeof e;
319
- return t == "number" || t == "symbol" || t == "boolean" || e == null || vo(e) ? !0 : Pd.test(e) || !Xd.test(e) || A != null && e in Object(A);
247
+ return t == "number" || t == "symbol" || t == "boolean" || e == null || vo(e) ? !0 : Ld.test(e) || !Kd.test(e) || A != null && e in Object(A);
320
248
  }
321
- var qd = Vs(Object, "create");
322
- const ur = qd;
323
- function $d() {
249
+ var Yd = vs(Object, "create");
250
+ const ur = Yd;
251
+ function zd() {
324
252
  this.__data__ = ur ? ur(null) : {}, this.size = 0;
325
253
  }
326
- function AB(e) {
254
+ function jd(e) {
327
255
  var A = this.has(e) && delete this.__data__[e];
328
256
  return this.size -= A ? 1 : 0, A;
329
257
  }
330
- var eB = "__lodash_hash_undefined__", tB = Object.prototype, rB = tB.hasOwnProperty;
331
- function nB(e) {
258
+ var Xd = "__lodash_hash_undefined__", Pd = Object.prototype, _d = Pd.hasOwnProperty;
259
+ function qd(e) {
332
260
  var A = this.__data__;
333
261
  if (ur) {
334
262
  var t = A[e];
335
- return t === eB ? void 0 : t;
263
+ return t === Xd ? void 0 : t;
336
264
  }
337
- return rB.call(A, e) ? A[e] : void 0;
265
+ return _d.call(A, e) ? A[e] : void 0;
338
266
  }
339
- var aB = Object.prototype, oB = aB.hasOwnProperty;
340
- function iB(e) {
267
+ var $d = Object.prototype, AB = $d.hasOwnProperty;
268
+ function eB(e) {
341
269
  var A = this.__data__;
342
- return ur ? A[e] !== void 0 : oB.call(A, e);
270
+ return ur ? A[e] !== void 0 : AB.call(A, e);
343
271
  }
344
- var lB = "__lodash_hash_undefined__";
345
- function sB(e, A) {
272
+ var tB = "__lodash_hash_undefined__";
273
+ function rB(e, A) {
346
274
  var t = this.__data__;
347
- return this.size += this.has(e) ? 0 : 1, t[e] = ur && A === void 0 ? lB : A, this;
275
+ return this.size += this.has(e) ? 0 : 1, t[e] = ur && A === void 0 ? tB : A, this;
348
276
  }
349
277
  function $e(e) {
350
278
  var A = -1, t = e == null ? 0 : e.length;
@@ -353,36 +281,36 @@ function $e(e) {
353
281
  this.set(r[0], r[1]);
354
282
  }
355
283
  }
356
- $e.prototype.clear = $d;
357
- $e.prototype.delete = AB;
358
- $e.prototype.get = nB;
359
- $e.prototype.has = iB;
360
- $e.prototype.set = sB;
361
- function cB() {
284
+ $e.prototype.clear = zd;
285
+ $e.prototype.delete = jd;
286
+ $e.prototype.get = qd;
287
+ $e.prototype.has = eB;
288
+ $e.prototype.set = rB;
289
+ function nB() {
362
290
  this.__data__ = [], this.size = 0;
363
291
  }
364
292
  function Nn(e, A) {
365
293
  for (var t = e.length; t--; )
366
- if (jd(e[t][0], A))
294
+ if (Jd(e[t][0], A))
367
295
  return t;
368
296
  return -1;
369
297
  }
370
- var uB = Array.prototype, dB = uB.splice;
371
- function BB(e) {
298
+ var aB = Array.prototype, oB = aB.splice;
299
+ function iB(e) {
372
300
  var A = this.__data__, t = Nn(A, e);
373
301
  if (t < 0)
374
302
  return !1;
375
303
  var r = A.length - 1;
376
- return t == r ? A.pop() : dB.call(A, t, 1), --this.size, !0;
304
+ return t == r ? A.pop() : oB.call(A, t, 1), --this.size, !0;
377
305
  }
378
- function fB(e) {
306
+ function lB(e) {
379
307
  var A = this.__data__, t = Nn(A, e);
380
308
  return t < 0 ? void 0 : A[t][1];
381
309
  }
382
- function hB(e) {
310
+ function sB(e) {
383
311
  return Nn(this.__data__, e) > -1;
384
312
  }
385
- function gB(e, A) {
313
+ function cB(e, A) {
386
314
  var t = this.__data__, r = Nn(t, e);
387
315
  return r < 0 ? (++this.size, t.push([e, A])) : t[r][1] = A, this;
388
316
  }
@@ -393,39 +321,39 @@ function St(e) {
393
321
  this.set(r[0], r[1]);
394
322
  }
395
323
  }
396
- St.prototype.clear = cB;
397
- St.prototype.delete = BB;
398
- St.prototype.get = fB;
399
- St.prototype.has = hB;
400
- St.prototype.set = gB;
401
- var UB = Vs(mo, "Map");
402
- const pB = UB;
403
- function QB() {
324
+ St.prototype.clear = nB;
325
+ St.prototype.delete = iB;
326
+ St.prototype.get = lB;
327
+ St.prototype.has = sB;
328
+ St.prototype.set = cB;
329
+ var uB = vs(mo, "Map");
330
+ const dB = uB;
331
+ function BB() {
404
332
  this.size = 0, this.__data__ = {
405
333
  hash: new $e(),
406
- map: new (pB || St)(),
334
+ map: new (dB || St)(),
407
335
  string: new $e()
408
336
  };
409
337
  }
410
- function wB(e) {
338
+ function fB(e) {
411
339
  var A = typeof e;
412
340
  return A == "string" || A == "number" || A == "symbol" || A == "boolean" ? e !== "__proto__" : e === null;
413
341
  }
414
342
  function Sn(e, A) {
415
343
  var t = e.__data__;
416
- return wB(A) ? t[typeof A == "string" ? "string" : "hash"] : t.map;
344
+ return fB(A) ? t[typeof A == "string" ? "string" : "hash"] : t.map;
417
345
  }
418
- function FB(e) {
346
+ function hB(e) {
419
347
  var A = Sn(this, e).delete(e);
420
348
  return this.size -= A ? 1 : 0, A;
421
349
  }
422
- function CB(e) {
350
+ function gB(e) {
423
351
  return Sn(this, e).get(e);
424
352
  }
425
- function EB(e) {
353
+ function UB(e) {
426
354
  return Sn(this, e).has(e);
427
355
  }
428
- function mB(e, A) {
356
+ function pB(e, A) {
429
357
  var t = Sn(this, e), r = t.size;
430
358
  return t.set(e, A), this.size += t.size == r ? 0 : 1, this;
431
359
  }
@@ -436,15 +364,15 @@ function et(e) {
436
364
  this.set(r[0], r[1]);
437
365
  }
438
366
  }
439
- et.prototype.clear = QB;
440
- et.prototype.delete = FB;
441
- et.prototype.get = CB;
442
- et.prototype.has = EB;
443
- et.prototype.set = mB;
444
- var vB = "Expected a function";
367
+ et.prototype.clear = BB;
368
+ et.prototype.delete = hB;
369
+ et.prototype.get = gB;
370
+ et.prototype.has = UB;
371
+ et.prototype.set = pB;
372
+ var QB = "Expected a function";
445
373
  function Ro(e, A) {
446
374
  if (typeof e != "function" || A != null && typeof A != "function")
447
- throw new TypeError(vB);
375
+ throw new TypeError(QB);
448
376
  var t = function() {
449
377
  var r = arguments, n = A ? A.apply(this, r) : r[0], a = t.cache;
450
378
  if (a.has(n))
@@ -455,71 +383,71 @@ function Ro(e, A) {
455
383
  return t.cache = new (Ro.Cache || et)(), t;
456
384
  }
457
385
  Ro.Cache = et;
458
- var yB = 500;
459
- function RB(e) {
386
+ var wB = 500;
387
+ function FB(e) {
460
388
  var A = Ro(e, function(r) {
461
- return t.size === yB && t.clear(), r;
389
+ return t.size === wB && t.clear(), r;
462
390
  }), t = A.cache;
463
391
  return A;
464
392
  }
465
- var VB = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, TB = /\\(\\)?/g, IB = RB(function(e) {
393
+ var CB = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, EB = /\\(\\)?/g, mB = FB(function(e) {
466
394
  var A = [];
467
- return e.charCodeAt(0) === 46 && A.push(""), e.replace(VB, function(t, r, n, a) {
468
- A.push(n ? a.replace(TB, "$1") : r || t);
395
+ return e.charCodeAt(0) === 46 && A.push(""), e.replace(CB, function(t, r, n, a) {
396
+ A.push(n ? a.replace(EB, "$1") : r || t);
469
397
  }), A;
470
398
  });
471
- const NB = IB;
472
- function SB(e) {
473
- return e == null ? "" : ys(e);
399
+ const vB = mB;
400
+ function yB(e) {
401
+ return e == null ? "" : Es(e);
474
402
  }
475
- function MB(e, A) {
476
- return yo(e) ? e : _d(e, A) ? [e] : NB(SB(e));
403
+ function RB(e, A) {
404
+ return yo(e) ? e : Gd(e, A) ? [e] : vB(yB(e));
477
405
  }
478
- var bB = 1 / 0;
479
- function HB(e) {
406
+ var VB = 1 / 0;
407
+ function TB(e) {
480
408
  if (typeof e == "string" || vo(e))
481
409
  return e;
482
410
  var A = e + "";
483
- return A == "0" && 1 / e == -bB ? "-0" : A;
411
+ return A == "0" && 1 / e == -VB ? "-0" : A;
484
412
  }
485
- function xB(e, A) {
486
- A = MB(A, e);
413
+ function IB(e, A) {
414
+ A = RB(A, e);
487
415
  for (var t = 0, r = A.length; e != null && t < r; )
488
- e = e[HB(A[t++])];
416
+ e = e[TB(A[t++])];
489
417
  return t && t == r ? e : void 0;
490
418
  }
491
- function ZB(e, A, t) {
492
- var r = e == null ? void 0 : xB(e, A);
419
+ function NB(e, A, t) {
420
+ var r = e == null ? void 0 : IB(e, A);
493
421
  return r === void 0 ? t : r;
494
422
  }
495
- function kB(e) {
423
+ function SB(e) {
496
424
  for (var A = -1, t = e == null ? 0 : e.length, r = {}; ++A < t; ) {
497
425
  var n = e[A];
498
426
  r[n[0]] = n[1];
499
427
  }
500
428
  return r;
501
429
  }
502
- const OB = (e) => e === void 0, sa = (e) => typeof e == "boolean", At = (e) => typeof e == "number", WB = (e) => typeof Element > "u" ? !1 : e instanceof Element, DB = (e) => gn(e) ? !Number.isNaN(Number(e)) : !1;
430
+ const MB = (e) => e === void 0, sa = (e) => typeof e == "boolean", At = (e) => typeof e == "number", bB = (e) => typeof Element > "u" ? !1 : e instanceof Element, HB = (e) => gn(e) ? !Number.isNaN(Number(e)) : !1;
503
431
  var Mi;
504
- const Mt = typeof window < "u", JB = (e) => typeof e == "string", KB = () => {
432
+ const Mt = typeof window < "u", xB = (e) => typeof e == "string", ZB = () => {
505
433
  };
506
434
  Mt && ((Mi = window == null ? void 0 : window.navigator) != null && Mi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
507
435
  function Vo(e) {
508
436
  return typeof e == "function" ? e() : I(e);
509
437
  }
510
- function LB(e) {
438
+ function kB(e) {
511
439
  return e;
512
440
  }
513
441
  function To(e) {
514
442
  return Wu() ? (Du(e), !0) : !1;
515
443
  }
516
- function GB(e, A = !0) {
444
+ function OB(e, A = !0) {
517
445
  Ze() ? Oe(e) : A ? e() : de(e);
518
446
  }
519
- function YB(e, A, t = {}) {
447
+ function WB(e, A, t = {}) {
520
448
  const {
521
449
  immediate: r = !0
522
- } = t, n = k(!1);
450
+ } = t, n = Z(!1);
523
451
  let a = null;
524
452
  function o() {
525
453
  a && (clearTimeout(a), a = null);
@@ -538,47 +466,47 @@ function YB(e, A, t = {}) {
538
466
  stop: i
539
467
  };
540
468
  }
541
- function Ts(e) {
469
+ function ys(e) {
542
470
  var A;
543
471
  const t = Vo(e);
544
472
  return (A = t == null ? void 0 : t.$el) != null ? A : t;
545
473
  }
546
- const Is = Mt ? window : void 0;
547
- function zB(...e) {
474
+ const Rs = Mt ? window : void 0;
475
+ function DB(...e) {
548
476
  let A, t, r, n;
549
- if (JB(e[0]) || Array.isArray(e[0]) ? ([t, r, n] = e, A = Is) : [A, t, r, n] = e, !A)
550
- return KB;
477
+ if (xB(e[0]) || Array.isArray(e[0]) ? ([t, r, n] = e, A = Rs) : [A, t, r, n] = e, !A)
478
+ return ZB;
551
479
  Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
552
480
  const a = [], o = () => {
553
481
  a.forEach((c) => c()), a.length = 0;
554
- }, i = (c, u, d, h) => (c.addEventListener(u, d, h), () => c.removeEventListener(u, d, h)), l = FA(() => [Ts(A), Vo(n)], ([c, u]) => {
555
- o(), c && a.push(...t.flatMap((d) => r.map((h) => i(c, d, h, u))));
482
+ }, i = (c, u, d, U) => (c.addEventListener(u, d, U), () => c.removeEventListener(u, d, U)), l = FA(() => [ys(A), Vo(n)], ([c, u]) => {
483
+ o(), c && a.push(...t.flatMap((d) => r.map((U) => i(c, d, U, u))));
556
484
  }, { immediate: !0, flush: "post" }), s = () => {
557
485
  l(), o();
558
486
  };
559
487
  return To(s), s;
560
488
  }
561
- function jB(e, A = !1) {
562
- const t = k(), r = () => t.value = !!e();
563
- return r(), GB(r, A), t;
489
+ function JB(e, A = !1) {
490
+ const t = Z(), r = () => t.value = !!e();
491
+ return r(), OB(r, A), t;
564
492
  }
565
493
  const bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hi = "__vueuse_ssr_handlers__";
566
494
  bi[Hi] = bi[Hi] || {};
567
- var xi = Object.getOwnPropertySymbols, XB = Object.prototype.hasOwnProperty, PB = Object.prototype.propertyIsEnumerable, _B = (e, A) => {
495
+ var xi = Object.getOwnPropertySymbols, KB = Object.prototype.hasOwnProperty, LB = Object.prototype.propertyIsEnumerable, GB = (e, A) => {
568
496
  var t = {};
569
497
  for (var r in e)
570
- XB.call(e, r) && A.indexOf(r) < 0 && (t[r] = e[r]);
498
+ KB.call(e, r) && A.indexOf(r) < 0 && (t[r] = e[r]);
571
499
  if (e != null && xi)
572
500
  for (var r of xi(e))
573
- A.indexOf(r) < 0 && PB.call(e, r) && (t[r] = e[r]);
501
+ A.indexOf(r) < 0 && LB.call(e, r) && (t[r] = e[r]);
574
502
  return t;
575
503
  };
576
- function qB(e, A, t = {}) {
577
- const r = t, { window: n = Is } = r, a = _B(r, ["window"]);
504
+ function YB(e, A, t = {}) {
505
+ const r = t, { window: n = Rs } = r, a = GB(r, ["window"]);
578
506
  let o;
579
- const i = jB(() => n && "ResizeObserver" in n), l = () => {
507
+ const i = JB(() => n && "ResizeObserver" in n), l = () => {
580
508
  o && (o.disconnect(), o = void 0);
581
- }, s = FA(() => Ts(e), (u) => {
509
+ }, s = FA(() => ys(e), (u) => {
582
510
  l(), i.value && n && u && (o = new ResizeObserver(A), o.observe(u, a));
583
511
  }, { immediate: !0, flush: "post" }), c = () => {
584
512
  l(), s();
@@ -592,15 +520,15 @@ var Zi;
592
520
  (function(e) {
593
521
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
594
522
  })(Zi || (Zi = {}));
595
- var $B = Object.defineProperty, ki = Object.getOwnPropertySymbols, A0 = Object.prototype.hasOwnProperty, e0 = Object.prototype.propertyIsEnumerable, Oi = (e, A, t) => A in e ? $B(e, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[A] = t, t0 = (e, A) => {
523
+ var zB = Object.defineProperty, ki = Object.getOwnPropertySymbols, jB = Object.prototype.hasOwnProperty, XB = Object.prototype.propertyIsEnumerable, Oi = (e, A, t) => A in e ? zB(e, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[A] = t, PB = (e, A) => {
596
524
  for (var t in A || (A = {}))
597
- A0.call(A, t) && Oi(e, t, A[t]);
525
+ jB.call(A, t) && Oi(e, t, A[t]);
598
526
  if (ki)
599
527
  for (var t of ki(A))
600
- e0.call(A, t) && Oi(e, t, A[t]);
528
+ XB.call(A, t) && Oi(e, t, A[t]);
601
529
  return e;
602
530
  };
603
- const r0 = {
531
+ const _B = {
604
532
  easeInSine: [0.12, 0, 0.39, 0],
605
533
  easeOutSine: [0.61, 1, 0.88, 1],
606
534
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -626,15 +554,15 @@ const r0 = {
626
554
  easeOutBack: [0.34, 1.56, 0.64, 1],
627
555
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
628
556
  };
629
- t0({
630
- linear: LB
631
- }, r0);
557
+ PB({
558
+ linear: kB
559
+ }, _B);
632
560
  const Wi = {
633
561
  current: 0
634
- }, Di = k(0), Ns = 2e3, Ji = Symbol("elZIndexContextKey"), Ss = Symbol("zIndexContextKey"), n0 = (e) => {
635
- const A = Ze() ? Xe(Ji, Wi) : Wi, t = e || (Ze() ? Xe(Ss, void 0) : void 0), r = b(() => {
562
+ }, Di = Z(0), Vs = 2e3, Ji = Symbol("elZIndexContextKey"), Ts = Symbol("zIndexContextKey"), qB = (e) => {
563
+ const A = Ze() ? Xe(Ji, Wi) : Wi, t = e || (Ze() ? Xe(Ts, void 0) : void 0), r = b(() => {
636
564
  const o = I(t);
637
- return At(o) ? o : Ns;
565
+ return At(o) ? o : Vs;
638
566
  }), n = b(() => r.value + Di.value), a = () => (A.current++, Di.value = A.current, n.value);
639
567
  return !Mt && Xe(Ji), {
640
568
  initialZIndex: r,
@@ -642,7 +570,7 @@ const Wi = {
642
570
  nextZIndex: a
643
571
  };
644
572
  };
645
- var a0 = {
573
+ var $B = {
646
574
  name: "en",
647
575
  el: {
648
576
  breadcrumb: {
@@ -821,21 +749,21 @@ var a0 = {
821
749
  }
822
750
  }
823
751
  };
824
- const o0 = (e) => (A, t) => i0(A, t, I(e)), i0 = (e, A, t) => ZB(t, e, e).replace(/\{(\w+)\}/g, (r, n) => {
752
+ const A0 = (e) => (A, t) => e0(A, t, I(e)), e0 = (e, A, t) => NB(t, e, e).replace(/\{(\w+)\}/g, (r, n) => {
825
753
  var a;
826
754
  return `${(a = A == null ? void 0 : A[n]) != null ? a : `{${n}}`}`;
827
- }), l0 = (e) => {
828
- const A = b(() => I(e).name), t = Ku(e) ? e : k(e);
755
+ }), t0 = (e) => {
756
+ const A = b(() => I(e).name), t = Ku(e) ? e : Z(e);
829
757
  return {
830
758
  lang: A,
831
759
  locale: t,
832
- t: o0(e)
760
+ t: A0(e)
833
761
  };
834
- }, Ms = Symbol("localeContextKey"), s0 = (e) => {
835
- const A = e || Xe(Ms, k());
836
- return l0(b(() => A.value || a0));
837
- }, bs = "__epPropKey", LA = (e) => e, c0 = (e) => Es(e) && !!e[bs], Hs = (e, A) => {
838
- if (!Es(e) || c0(e))
762
+ }, Is = Symbol("localeContextKey"), r0 = (e) => {
763
+ const A = e || Xe(Is, Z());
764
+ return t0(b(() => A.value || $B));
765
+ }, Ns = "__epPropKey", LA = (e) => e, n0 = (e) => ws(e) && !!e[Ns], Ss = (e, A) => {
766
+ if (!ws(e) || n0(e))
839
767
  return e;
840
768
  const { values: t, required: r, default: n, type: a, validator: o } = e, l = {
841
769
  type: a,
@@ -843,22 +771,22 @@ const o0 = (e) => (A, t) => i0(A, t, I(e)), i0 = (e, A, t) => ZB(t, e, e).replac
843
771
  validator: t || o ? (s) => {
844
772
  let c = !1, u = [];
845
773
  if (t && (u = Array.from(t), Vi(e, "default") && u.push(n), c || (c = u.includes(s))), o && (c || (c = o(s))), !c && u.length > 0) {
846
- const d = [...new Set(u)].map((h) => JSON.stringify(h)).join(", ");
774
+ const d = [...new Set(u)].map((U) => JSON.stringify(U)).join(", ");
847
775
  Lu(`Invalid prop: validation failed${A ? ` for prop "${A}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(s)}.`);
848
776
  }
849
777
  return c;
850
778
  } : void 0,
851
- [bs]: !0
779
+ [Ns]: !0
852
780
  };
853
781
  return Vi(e, "default") && (l.default = n), l;
854
- }, pr = (e) => kB(Object.entries(e).map(([A, t]) => [
782
+ }, pr = (e) => SB(Object.entries(e).map(([A, t]) => [
855
783
  A,
856
- Hs(t, A)
857
- ])), u0 = ["", "default", "small", "large"], d0 = Hs({
784
+ Ss(t, A)
785
+ ])), a0 = ["", "default", "small", "large"], o0 = Ss({
858
786
  type: String,
859
- values: u0,
787
+ values: a0,
860
788
  required: !1
861
- }), B0 = Symbol("size"), f0 = Symbol("emptyValuesContextKey"), h0 = pr({
789
+ }), i0 = Symbol("size"), l0 = Symbol("emptyValuesContextKey"), s0 = pr({
862
790
  emptyValues: Array,
863
791
  valueOnClear: {
864
792
  type: LA([
@@ -870,51 +798,51 @@ const o0 = (e) => (A, t) => i0(A, t, I(e)), i0 = (e, A, t) => ZB(t, e, e).replac
870
798
  default: void 0,
871
799
  validator: (e) => hn(e) ? !e() : !e
872
800
  }
873
- }), Ki = (e) => Object.keys(e), Un = k();
874
- function xs(e, A = void 0) {
875
- const t = Ze() ? Xe(Fs, Un) : Un;
801
+ }), Ki = (e) => Object.keys(e), Un = Z();
802
+ function Ms(e, A = void 0) {
803
+ const t = Ze() ? Xe(ps, Un) : Un;
876
804
  return e ? b(() => {
877
805
  var r, n;
878
806
  return (n = (r = t.value) == null ? void 0 : r[e]) != null ? n : A;
879
807
  }) : t;
880
808
  }
881
- function g0(e, A) {
882
- const t = xs(), r = Eo(e, b(() => {
809
+ function c0(e, A) {
810
+ const t = Ms(), r = Eo(e, b(() => {
883
811
  var i;
884
812
  return ((i = t.value) == null ? void 0 : i.namespace) || cn;
885
- })), n = s0(b(() => {
813
+ })), n = r0(b(() => {
886
814
  var i;
887
815
  return (i = t.value) == null ? void 0 : i.locale;
888
- })), a = n0(b(() => {
816
+ })), a = qB(b(() => {
889
817
  var i;
890
- return ((i = t.value) == null ? void 0 : i.zIndex) || Ns;
818
+ return ((i = t.value) == null ? void 0 : i.zIndex) || Vs;
891
819
  })), o = b(() => {
892
820
  var i;
893
821
  return I(A) || ((i = t.value) == null ? void 0 : i.size) || "";
894
822
  });
895
- return Zs(b(() => I(t) || {})), {
823
+ return bs(b(() => I(t) || {})), {
896
824
  ns: r,
897
825
  locale: n,
898
826
  zIndex: a,
899
827
  size: o
900
828
  };
901
829
  }
902
- const Zs = (e, A, t = !1) => {
830
+ const bs = (e, A, t = !1) => {
903
831
  var r;
904
- const n = !!Ze(), a = n ? xs() : void 0, o = (r = A == null ? void 0 : A.provide) != null ? r : n ? fs : void 0;
832
+ const n = !!Ze(), a = n ? Ms() : void 0, o = (r = A == null ? void 0 : A.provide) != null ? r : n ? fs : void 0;
905
833
  if (!o)
906
834
  return;
907
835
  const i = b(() => {
908
836
  const l = I(e);
909
- return a != null && a.value ? U0(a.value, l) : l;
837
+ return a != null && a.value ? u0(a.value, l) : l;
910
838
  });
911
- return o(Fs, i), o(Ms, b(() => i.value.locale)), o(Cs, b(() => i.value.namespace)), o(Ss, b(() => i.value.zIndex)), o(B0, {
839
+ return o(ps, i), o(Is, b(() => i.value.locale)), o(Qs, b(() => i.value.namespace)), o(Ts, b(() => i.value.zIndex)), o(i0, {
912
840
  size: b(() => i.value.size || "")
913
- }), o(f0, b(() => ({
841
+ }), o(l0, b(() => ({
914
842
  emptyValues: i.value.emptyValues,
915
843
  valueOnClear: i.value.valueOnClear
916
844
  }))), (t || !Un.value) && (Un.value = i.value), i;
917
- }, U0 = (e, A) => {
845
+ }, u0 = (e, A) => {
918
846
  const t = [.../* @__PURE__ */ new Set([...Ki(e), ...Ki(A)])], r = {};
919
847
  for (const n of t)
920
848
  r[n] = A[n] !== void 0 ? A[n] : e[n];
@@ -926,15 +854,15 @@ var Io = (e, A) => {
926
854
  t[r] = n;
927
855
  return t;
928
856
  };
929
- function Ga(e, A = "px") {
857
+ function La(e, A = "px") {
930
858
  if (!e)
931
859
  return "";
932
- if (At(e) || DB(e))
860
+ if (At(e) || HB(e))
933
861
  return `${e}${A}`;
934
862
  if (gn(e))
935
863
  return e;
936
864
  }
937
- const ks = (e, A) => {
865
+ const Hs = (e, A) => {
938
866
  if (e.install = (t) => {
939
867
  for (const r of [e, ...Object.values(A ?? {})])
940
868
  t.component(r.name, r);
@@ -942,26 +870,26 @@ const ks = (e, A) => {
942
870
  for (const [t, r] of Object.entries(A))
943
871
  e[t] = r;
944
872
  return e;
945
- }, p0 = (e, A) => (e.install = (t) => {
873
+ }, d0 = (e, A) => (e.install = (t) => {
946
874
  e._context = t._context, t.config.globalProperties[A] = e;
947
- }, e), Q0 = pr({
875
+ }, e), B0 = pr({
948
876
  size: {
949
877
  type: LA([Number, String])
950
878
  },
951
879
  color: {
952
880
  type: String
953
881
  }
954
- }), w0 = te({
882
+ }), f0 = te({
955
883
  name: "ElIcon",
956
884
  inheritAttrs: !1
957
- }), F0 = /* @__PURE__ */ te({
958
- ...w0,
959
- props: Q0,
885
+ }), h0 = /* @__PURE__ */ te({
886
+ ...f0,
887
+ props: B0,
960
888
  setup(e) {
961
889
  const A = e, t = Eo("icon"), r = b(() => {
962
890
  const { size: n, color: a } = A;
963
891
  return !n && !a ? {} : {
964
- fontSize: OB(n) ? void 0 : Ga(n),
892
+ fontSize: MB(n) ? void 0 : La(n),
965
893
  "--color": a
966
894
  };
967
895
  });
@@ -973,23 +901,96 @@ const ks = (e, A) => {
973
901
  ], 16));
974
902
  }
975
903
  });
976
- var C0 = /* @__PURE__ */ Io(F0, [["__file", "icon.vue"]]);
977
- const Li = ks(C0), E0 = LA([
904
+ var g0 = /* @__PURE__ */ Io(h0, [["__file", "icon.vue"]]);
905
+ const Li = Hs(g0);
906
+ /*! Element Plus Icons Vue v2.3.2 */
907
+ var U0 = /* @__PURE__ */ te({
908
+ name: "CircleCloseFilled",
909
+ __name: "circle-close-filled",
910
+ setup(e) {
911
+ return (A, t) => (V(), N("svg", {
912
+ xmlns: "http://www.w3.org/2000/svg",
913
+ viewBox: "0 0 1024 1024"
914
+ }, [
915
+ m("path", {
916
+ fill: "currentColor",
917
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
918
+ })
919
+ ]));
920
+ }
921
+ }), xs = U0, p0 = /* @__PURE__ */ te({
922
+ name: "Close",
923
+ __name: "close",
924
+ setup(e) {
925
+ return (A, t) => (V(), N("svg", {
926
+ xmlns: "http://www.w3.org/2000/svg",
927
+ viewBox: "0 0 1024 1024"
928
+ }, [
929
+ m("path", {
930
+ fill: "currentColor",
931
+ d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
932
+ })
933
+ ]));
934
+ }
935
+ }), Q0 = p0, w0 = /* @__PURE__ */ te({
936
+ name: "InfoFilled",
937
+ __name: "info-filled",
938
+ setup(e) {
939
+ return (A, t) => (V(), N("svg", {
940
+ xmlns: "http://www.w3.org/2000/svg",
941
+ viewBox: "0 0 1024 1024"
942
+ }, [
943
+ m("path", {
944
+ fill: "currentColor",
945
+ d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
946
+ })
947
+ ]));
948
+ }
949
+ }), Ga = w0, F0 = /* @__PURE__ */ te({
950
+ name: "SuccessFilled",
951
+ __name: "success-filled",
952
+ setup(e) {
953
+ return (A, t) => (V(), N("svg", {
954
+ xmlns: "http://www.w3.org/2000/svg",
955
+ viewBox: "0 0 1024 1024"
956
+ }, [
957
+ m("path", {
958
+ fill: "currentColor",
959
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
960
+ })
961
+ ]));
962
+ }
963
+ }), Zs = F0, C0 = /* @__PURE__ */ te({
964
+ name: "WarningFilled",
965
+ __name: "warning-filled",
966
+ setup(e) {
967
+ return (A, t) => (V(), N("svg", {
968
+ xmlns: "http://www.w3.org/2000/svg",
969
+ viewBox: "0 0 1024 1024"
970
+ }, [
971
+ m("path", {
972
+ fill: "currentColor",
973
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
974
+ })
975
+ ]));
976
+ }
977
+ }), ks = C0;
978
+ const E0 = LA([
978
979
  String,
979
980
  Object,
980
981
  Function
981
982
  ]), m0 = {
982
- Close: td,
983
- SuccessFilled: Qs,
984
- InfoFilled: La,
985
- WarningFilled: ws,
986
- CircleCloseFilled: ps
983
+ Close: Q0,
984
+ SuccessFilled: Zs,
985
+ InfoFilled: Ga,
986
+ WarningFilled: ks,
987
+ CircleCloseFilled: xs
987
988
  }, Gi = {
988
- primary: La,
989
- success: Qs,
990
- warning: ws,
991
- error: ps,
992
- info: La
989
+ primary: Ga,
990
+ success: Zs,
991
+ warning: ks,
992
+ error: xs,
993
+ info: Ga
993
994
  }, v0 = (e) => e, y0 = {
994
995
  tab: "Tab",
995
996
  enter: "Enter",
@@ -1048,8 +1049,8 @@ const Li = ks(C0), E0 = LA([
1048
1049
  return [
1049
1050
  {
1050
1051
  backgroundColor: t.color,
1051
- marginRight: Ga(-((i = (o = t.offset) == null ? void 0 : o[0]) != null ? i : 0)),
1052
- marginTop: Ga((s = (l = t.offset) == null ? void 0 : l[1]) != null ? s : 0)
1052
+ marginRight: La(-((i = (o = t.offset) == null ? void 0 : o[0]) != null ? i : 0)),
1053
+ marginTop: La((s = (l = t.offset) == null ? void 0 : l[1]) != null ? s : 0)
1053
1054
  },
1054
1055
  (c = t.badgeStyle) != null ? c : {}
1055
1056
  ];
@@ -1089,7 +1090,7 @@ const Li = ks(C0), E0 = LA([
1089
1090
  }
1090
1091
  });
1091
1092
  var I0 = /* @__PURE__ */ Io(T0, [["__file", "badge.vue"]]);
1092
- const N0 = ks(I0);
1093
+ const N0 = Hs(I0);
1093
1094
  function S0(e) {
1094
1095
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1095
1096
  }
@@ -1101,7 +1102,7 @@ const M0 = pr({
1101
1102
  locale: {
1102
1103
  type: LA(Object)
1103
1104
  },
1104
- size: d0,
1105
+ size: o0,
1105
1106
  button: {
1106
1107
  type: LA(Object)
1107
1108
  },
@@ -1126,13 +1127,13 @@ const M0 = pr({
1126
1127
  type: String,
1127
1128
  default: "el"
1128
1129
  },
1129
- ...h0
1130
+ ...s0
1130
1131
  }), KA = {};
1131
1132
  te({
1132
1133
  name: "ElConfigProvider",
1133
1134
  props: M0,
1134
1135
  setup(e, { slots: A }) {
1135
- const t = Zs(e);
1136
+ const t = bs(e);
1136
1137
  return FA(() => e.message, (r) => {
1137
1138
  var n, a;
1138
1139
  Object.assign(KA, (a = (n = t == null ? void 0 : t.value) == null ? void 0 : n.message) != null ? a : {}, r ?? {});
@@ -1239,22 +1240,22 @@ const Os = [
1239
1240
  props: b0,
1240
1241
  emits: H0,
1241
1242
  setup(e, { expose: A, emit: t }) {
1242
- const r = e, { Close: n } = m0, a = k(!1), { ns: o, zIndex: i } = g0("message"), { currentZIndex: l, nextZIndex: s } = i, c = k(), u = k(!1), d = k(0);
1243
- let h;
1243
+ const r = e, { Close: n } = m0, a = Z(!1), { ns: o, zIndex: i } = c0("message"), { currentZIndex: l, nextZIndex: s } = i, c = Z(), u = Z(!1), d = Z(0);
1244
+ let U;
1244
1245
  const f = b(() => r.type ? r.type === "error" ? "danger" : r.type : "info"), B = b(() => {
1245
1246
  const T = r.type;
1246
1247
  return { [o.bm("icon", T)]: T && Gi[T] };
1247
- }), g = b(() => r.icon || Gi[r.type] || ""), U = b(() => Z0(r.id)), Q = b(() => k0(r.id, r.offset) + U.value), p = b(() => d.value + Q.value), C = b(() => ({
1248
- top: `${Q.value}px`,
1248
+ }), g = b(() => r.icon || Gi[r.type] || ""), h = b(() => Z0(r.id)), p = b(() => k0(r.id, r.offset) + h.value), Q = b(() => d.value + p.value), C = b(() => ({
1249
+ top: `${p.value}px`,
1249
1250
  zIndex: l.value
1250
1251
  }));
1251
1252
  function v() {
1252
- r.duration !== 0 && ({ stop: h } = YB(() => {
1253
+ r.duration !== 0 && ({ stop: U } = WB(() => {
1253
1254
  R();
1254
1255
  }, r.duration));
1255
1256
  }
1256
1257
  function w() {
1257
- h == null || h();
1258
+ U == null || U();
1258
1259
  }
1259
1260
  function R() {
1260
1261
  u.value = !1, de(() => {
@@ -1269,11 +1270,11 @@ const Os = [
1269
1270
  v(), s(), u.value = !0;
1270
1271
  }), FA(() => r.repeatNum, () => {
1271
1272
  w(), v();
1272
- }), zB(document, "keydown", M), qB(c, () => {
1273
+ }), DB(document, "keydown", M), YB(c, () => {
1273
1274
  d.value = c.value.getBoundingClientRect().height;
1274
1275
  }), A({
1275
1276
  visible: u,
1276
- bottom: p,
1277
+ bottom: Q,
1277
1278
  close: R
1278
1279
  }), (T, O) => (V(), vA(hs, {
1279
1280
  name: I(o).b("fade"),
@@ -1355,7 +1356,7 @@ const Ws = (e) => {
1355
1356
  t.appendTo = document.body;
1356
1357
  else if (gn(t.appendTo)) {
1357
1358
  let r = document.querySelector(t.appendTo);
1358
- WB(r) || (r = document.body), t.appendTo = r;
1359
+ bB(r) || (r = document.body), t.appendTo = r;
1359
1360
  }
1360
1361
  return sa(KA.grouping) && !t.grouping && (t.grouping = KA.grouping), At(KA.duration) && t.duration === 3e3 && (t.duration = KA.duration), At(KA.offset) && t.offset === 16 && (t.offset = KA.offset), sa(KA.showClose) && !t.showClose && (t.showClose = KA.showClose), sa(KA.plain) && !t.plain && (t.plain = KA.plain), t;
1361
1362
  }, K0 = (e) => {
@@ -1423,7 +1424,7 @@ function G0(e) {
1423
1424
  }
1424
1425
  mt.closeAll = G0;
1425
1426
  mt._context = null;
1426
- const dr = p0(mt, "$message");
1427
+ const dr = d0(mt, "$message");
1427
1428
  const yA = (e, A) => {
1428
1429
  const t = e.__vccOpts || e;
1429
1430
  for (const [r, n] of A)
@@ -1455,7 +1456,7 @@ const yA = (e, A) => {
1455
1456
  },
1456
1457
  emits: ["update:modelValue", "change"],
1457
1458
  setup(e, { emit: A }) {
1458
- const t = e, r = A, n = k(null), a = k(!1), o = k(null), i = k(null), l = Xe("config", {}), s = b({
1459
+ const t = e, r = A, n = Z(null), a = Z(!1), o = Z(null), i = Z(null), l = Xe("config", {}), s = b({
1459
1460
  get: () => t.modelValue,
1460
1461
  set: (B) => r("update:modelValue", B)
1461
1462
  }), c = b({
@@ -1468,8 +1469,8 @@ const yA = (e, A) => {
1468
1469
  }, d = (B) => {
1469
1470
  const g = B.target.value.trim();
1470
1471
  g ? g.startsWith("http://") || g.startsWith("https://") || g.startsWith("data:") ? s.value = g : g.startsWith("data:") || (s.value = g) : s.value = "";
1471
- }, h = async (B) => {
1472
- var p;
1472
+ }, U = async (B) => {
1473
+ var Q;
1473
1474
  const g = B.target.files[0];
1474
1475
  if (!g)
1475
1476
  return;
@@ -1477,17 +1478,17 @@ const yA = (e, A) => {
1477
1478
  alert("请选择正确的文件类型");
1478
1479
  return;
1479
1480
  }
1480
- const U = (p = l == null ? void 0 : l.image) == null ? void 0 : p.request;
1481
- if (!U || typeof U != "function") {
1481
+ const h = (Q = l == null ? void 0 : l.image) == null ? void 0 : Q.request;
1482
+ if (!h || typeof h != "function") {
1482
1483
  f(g);
1483
1484
  return;
1484
1485
  }
1485
1486
  i.value = g;
1486
- let Q = null;
1487
+ let p = null;
1487
1488
  try {
1488
- a.value = !0, Q = U(g), o.value = Q;
1489
- const C = await Q;
1490
- if (o.value === Q && i.value === g)
1489
+ a.value = !0, p = h(g), o.value = p;
1490
+ const C = await p;
1491
+ if (o.value === p && i.value === g)
1491
1492
  if (C && C.success !== !1) {
1492
1493
  const v = C.url || C.data || C, w = {
1493
1494
  fileName: g.name,
@@ -1500,18 +1501,18 @@ const yA = (e, A) => {
1500
1501
  else
1501
1502
  console.log("组件已切换或文件已改变,忽略上传结果");
1502
1503
  } catch (C) {
1503
- o.value === Q && i.value === g && (n.value && (n.value.value = ""), dr.error(C.message || "上传失败,请重试"));
1504
+ o.value === p && i.value === g && (n.value && (n.value.value = ""), dr.error(C.message || "上传失败,请重试"));
1504
1505
  } finally {
1505
- o.value === Q && (a.value = !1, o.value = null, i.value = null);
1506
+ o.value === p && (a.value = !1, o.value = null, i.value = null);
1506
1507
  }
1507
1508
  }, f = (B) => {
1508
1509
  const g = new FileReader();
1509
- g.onload = (U) => {
1510
- const Q = {
1510
+ g.onload = (h) => {
1511
+ const p = {
1511
1512
  fileName: B.name,
1512
- fileSrc: U.target.result
1513
+ fileSrc: h.target.result
1513
1514
  };
1514
- s.value = Q, r("change", { target: { files: [B] } });
1515
+ s.value = p, r("change", { target: { files: [B] } });
1515
1516
  }, g.onerror = () => {
1516
1517
  alert("文件读取失败,请重试");
1517
1518
  }, g.readAsDataURL(B);
@@ -1519,35 +1520,35 @@ const yA = (e, A) => {
1519
1520
  return zu(() => {
1520
1521
  o.value = null, i.value = null;
1521
1522
  }), (B, g) => {
1522
- const U = QA("el-icon-loading"), Q = QA("el-icon");
1523
+ const h = QA("el-icon-loading"), p = QA("el-icon");
1523
1524
  return V(), N("div", Y0, [
1524
1525
  e.label ? (V(), N("label", z0, fe(e.label), 1)) : tA("", !0),
1525
1526
  e.type === "select" ? GA((V(), N("select", {
1526
1527
  key: 1,
1527
- "onUpdate:modelValue": g[0] || (g[0] = (p) => s.value = p)
1528
+ "onUpdate:modelValue": g[0] || (g[0] = (Q) => s.value = Q)
1528
1529
  }, [
1529
- (V(!0), N(VA, null, Me(e.options, (p) => (V(), N("option", {
1530
- key: p.value,
1531
- value: p.value
1532
- }, fe(p.label), 9, j0))), 128))
1530
+ (V(!0), N(VA, null, Me(e.options, (Q) => (V(), N("option", {
1531
+ key: Q.value,
1532
+ value: Q.value
1533
+ }, fe(Q.label), 9, j0))), 128))
1533
1534
  ], 512)), [
1534
1535
  [ju, s.value]
1535
1536
  ]) : e.type === "color" ? GA((V(), N("input", {
1536
1537
  key: 2,
1537
- "onUpdate:modelValue": g[1] || (g[1] = (p) => s.value = p),
1538
+ "onUpdate:modelValue": g[1] || (g[1] = (Q) => s.value = Q),
1538
1539
  type: "color"
1539
1540
  }, null, 512)), [
1540
1541
  [Ye, s.value]
1541
1542
  ]) : e.type === "checkbox" ? GA((V(), N("input", {
1542
1543
  key: 3,
1543
- "onUpdate:modelValue": g[2] || (g[2] = (p) => s.value = p),
1544
+ "onUpdate:modelValue": g[2] || (g[2] = (Q) => s.value = Q),
1544
1545
  type: "checkbox"
1545
1546
  }, null, 512)), [
1546
1547
  [Xu, s.value]
1547
1548
  ]) : e.type === "file" ? (V(), N("div", X0, [
1548
1549
  GA(m("input", {
1549
1550
  type: "text",
1550
- "onUpdate:modelValue": g[3] || (g[3] = (p) => c.value = p),
1551
+ "onUpdate:modelValue": g[3] || (g[3] = (Q) => c.value = Q),
1551
1552
  placeholder: "请选择图片",
1552
1553
  class: "file-url-input",
1553
1554
  onInput: d,
@@ -1561,12 +1562,12 @@ const yA = (e, A) => {
1561
1562
  class: "file-select-btn",
1562
1563
  disabled: a.value
1563
1564
  }, [
1564
- a.value ? (V(), vA(Q, {
1565
+ a.value ? (V(), vA(p, {
1565
1566
  key: 0,
1566
1567
  class: "is-loading"
1567
1568
  }, {
1568
1569
  default: j(() => [
1569
- W(U)
1570
+ W(h)
1570
1571
  ]),
1571
1572
  _: 1
1572
1573
  })) : (V(), N("span", _0, fe(a.value ? "上传中..." : "选择"), 1))
@@ -1574,14 +1575,14 @@ const yA = (e, A) => {
1574
1575
  m("input", {
1575
1576
  type: "file",
1576
1577
  accept: e.accept,
1577
- onChange: h,
1578
+ onChange: U,
1578
1579
  ref_key: "fileInput",
1579
1580
  ref: n,
1580
1581
  class: "file-input"
1581
1582
  }, null, 40, q0)
1582
1583
  ])) : GA((V(), N("input", {
1583
1584
  key: 5,
1584
- "onUpdate:modelValue": g[4] || (g[4] = (p) => s.value = p),
1585
+ "onUpdate:modelValue": g[4] || (g[4] = (Q) => s.value = Q),
1585
1586
  type: e.type,
1586
1587
  min: e.min,
1587
1588
  max: e.max,
@@ -1627,10 +1628,10 @@ const ef = { class: "property-layout-container" }, tf = {
1627
1628
  setup(e, { emit: A }) {
1628
1629
  const t = e, r = A, { propsConfig: n, panelType: a } = _u(t), o = b(() => `${a.value}-property-panel`), i = b(() => {
1629
1630
  const d = n.value.propertyPanel;
1630
- return d && typeof d == "object" && !Array.isArray(d) ? Object.keys(d).map((h) => ({
1631
- prop: h,
1632
- ...d[h]
1633
- })).filter((h) => !h.hide) : Array.isArray(d) ? d.filter((h) => !h.hide) || [] : [];
1631
+ return d && typeof d == "object" && !Array.isArray(d) ? Object.keys(d).map((U) => ({
1632
+ prop: U,
1633
+ ...d[U]
1634
+ })).filter((U) => !U.hide) : Array.isArray(d) ? d.filter((U) => !U.hide) || [] : [];
1634
1635
  }), l = b({
1635
1636
  get: () => t.modelValue,
1636
1637
  set: (d) => r("update:modelValue", d)
@@ -1640,10 +1641,10 @@ const ef = { class: "property-layout-container" }, tf = {
1640
1641
  var f;
1641
1642
  if (d.options)
1642
1643
  return d.options || [];
1643
- const h = JSON.parse(JSON.stringify(((f = t.options) == null ? void 0 : f[d == null ? void 0 : d.optionsKey]) || [])) || [];
1644
- return h.unshift({ label: "无", value: "" }), h;
1644
+ const U = JSON.parse(JSON.stringify(((f = t.options) == null ? void 0 : f[d == null ? void 0 : d.optionsKey]) || [])) || [];
1645
+ return U.unshift({ label: "无", value: "" }), U;
1645
1646
  }, u = (d) => d.layout ? d.layout : ["text", "file", "textarea"].includes(d.type) ? "full" : "half";
1646
- return fs("config", t.propsConfig), (d, h) => (V(), N("div", {
1647
+ return fs("config", t.propsConfig), (d, U) => (V(), N("div", {
1647
1648
  class: _A(o.value)
1648
1649
  }, [
1649
1650
  m("div", ef, [
@@ -4380,7 +4381,7 @@ const BQ = {
4380
4381
  }
4381
4382
  },
4382
4383
  setup(e) {
4383
- const A = e, t = k(null), r = b(() => A.modelValue.__selected || !1), n = b(() => ({
4384
+ const A = e, t = Z(null), r = b(() => A.modelValue.__selected || !1), n = b(() => ({
4384
4385
  position: "absolute",
4385
4386
  left: "-2px",
4386
4387
  top: "-2px",
@@ -4407,16 +4408,16 @@ const BQ = {
4407
4408
  };
4408
4409
  clearTimeout(d), d = setTimeout(B, u);
4409
4410
  };
4410
- }, i = k({
4411
+ }, i = Z({
4411
4412
  value: "",
4412
4413
  type: "",
4413
4414
  lineColor: "",
4414
4415
  codeType: ""
4415
4416
  }), l = () => {
4416
- var U, Q, p, C, v, w, R, M, T, O;
4417
+ var h, p, Q, C, v, w, R, M, T, O;
4417
4418
  if (!t.value)
4418
4419
  return;
4419
- const c = at((Q = (U = A.propsConfig) == null ? void 0 : U.barcode) == null ? void 0 : Q.propertyPanel) || {}, u = ((p = A.modelValue) == null ? void 0 : p.BarcodeValue) || c.BarcodeValue || "", d = ((C = A.modelValue) == null ? void 0 : C.CodeType) || c.CodeType || "", h = A.modelValue.LineColor || c.LineColor, f = ((O = (T = (M = (R = (w = (v = A.propsConfig) == null ? void 0 : v.barcode) == null ? void 0 : w.propertyPanel) == null ? void 0 : R.find((D) => D.prop === "CodeType")) == null ? void 0 : M.options) == null ? void 0 : T.find((D) => D.value === d)) == null ? void 0 : O.compValue) || "", B = { value: u, type: d, lineColor: h, codeType: f };
4420
+ const c = at((p = (h = A.propsConfig) == null ? void 0 : h.barcode) == null ? void 0 : p.propertyPanel) || {}, u = ((Q = A.modelValue) == null ? void 0 : Q.BarcodeValue) || c.BarcodeValue || "", d = ((C = A.modelValue) == null ? void 0 : C.CodeType) || c.CodeType || "", U = A.modelValue.LineColor || c.LineColor, f = ((O = (T = (M = (R = (w = (v = A.propsConfig) == null ? void 0 : v.barcode) == null ? void 0 : w.propertyPanel) == null ? void 0 : R.find((D) => D.prop === "CodeType")) == null ? void 0 : M.options) == null ? void 0 : T.find((D) => D.value === d)) == null ? void 0 : O.compValue) || "", B = { value: u, type: d, lineColor: U, codeType: f };
4420
4421
  if (JSON.stringify(B) !== JSON.stringify(i.value)) {
4421
4422
  i.value = B;
4422
4423
  try {
@@ -4430,7 +4431,7 @@ const BQ = {
4430
4431
  // 条形码的边距
4431
4432
  margin: 0,
4432
4433
  // 条形码的颜色
4433
- lineColor: h,
4434
+ lineColor: U,
4434
4435
  // 条形码的高度
4435
4436
  height: 50,
4436
4437
  // 确保条形码能够正确渲染
@@ -4725,8 +4726,8 @@ var Uc = {};
4725
4726
  for (let u = 0; u < a; u++) {
4726
4727
  i = l = 0, s = c = null;
4727
4728
  for (let d = 0; d < a; d++) {
4728
- let h = n.get(u, d);
4729
- h === s ? i++ : (i >= 5 && (o += A.N1 + (i - 5)), s = h, i = 1), h = n.get(d, u), h === c ? l++ : (l >= 5 && (o += A.N1 + (l - 5)), c = h, l = 1);
4729
+ let U = n.get(u, d);
4730
+ U === s ? i++ : (i >= 5 && (o += A.N1 + (i - 5)), s = U, i = 1), U = n.get(d, u), U === c ? l++ : (l >= 5 && (o += A.N1 + (l - 5)), c = U, l = 1);
4730
4731
  }
4731
4732
  i >= 5 && (o += A.N1 + (i - 5)), l >= 5 && (o += A.N1 + (l - 5));
4732
4733
  }
@@ -5302,66 +5303,66 @@ he.testAlphanumeric = function(A) {
5302
5303
  })(De);
5303
5304
  (function(e) {
5304
5305
  const A = zA, t = Gn, r = Ln, n = De, a = ui, o = 7973, i = A.getBCHDigit(o);
5305
- function l(d, h, f) {
5306
+ function l(d, U, f) {
5306
5307
  for (let B = 1; B <= 40; B++)
5307
- if (h <= e.getCapacity(B, f, d))
5308
+ if (U <= e.getCapacity(B, f, d))
5308
5309
  return B;
5309
5310
  }
5310
- function s(d, h) {
5311
- return n.getCharCountIndicator(d, h) + 4;
5311
+ function s(d, U) {
5312
+ return n.getCharCountIndicator(d, U) + 4;
5312
5313
  }
5313
- function c(d, h) {
5314
+ function c(d, U) {
5314
5315
  let f = 0;
5315
5316
  return d.forEach(function(B) {
5316
- const g = s(B.mode, h);
5317
+ const g = s(B.mode, U);
5317
5318
  f += g + B.getBitsLength();
5318
5319
  }), f;
5319
5320
  }
5320
- function u(d, h) {
5321
+ function u(d, U) {
5321
5322
  for (let f = 1; f <= 40; f++)
5322
- if (c(d, f) <= e.getCapacity(f, h, n.MIXED))
5323
+ if (c(d, f) <= e.getCapacity(f, U, n.MIXED))
5323
5324
  return f;
5324
5325
  }
5325
- e.from = function(h, f) {
5326
- return a.isValid(h) ? parseInt(h, 10) : f;
5327
- }, e.getCapacity = function(h, f, B) {
5328
- if (!a.isValid(h))
5326
+ e.from = function(U, f) {
5327
+ return a.isValid(U) ? parseInt(U, 10) : f;
5328
+ }, e.getCapacity = function(U, f, B) {
5329
+ if (!a.isValid(U))
5329
5330
  throw new Error("Invalid QR Code version");
5330
5331
  typeof B > "u" && (B = n.BYTE);
5331
- const g = A.getSymbolTotalCodewords(h), U = t.getTotalCodewordsCount(h, f), Q = (g - U) * 8;
5332
+ const g = A.getSymbolTotalCodewords(U), h = t.getTotalCodewordsCount(U, f), p = (g - h) * 8;
5332
5333
  if (B === n.MIXED)
5333
- return Q;
5334
- const p = Q - s(B, h);
5334
+ return p;
5335
+ const Q = p - s(B, U);
5335
5336
  switch (B) {
5336
5337
  case n.NUMERIC:
5337
- return Math.floor(p / 10 * 3);
5338
+ return Math.floor(Q / 10 * 3);
5338
5339
  case n.ALPHANUMERIC:
5339
- return Math.floor(p / 11 * 2);
5340
+ return Math.floor(Q / 11 * 2);
5340
5341
  case n.KANJI:
5341
- return Math.floor(p / 13);
5342
+ return Math.floor(Q / 13);
5342
5343
  case n.BYTE:
5343
5344
  default:
5344
- return Math.floor(p / 8);
5345
+ return Math.floor(Q / 8);
5345
5346
  }
5346
- }, e.getBestVersionForData = function(h, f) {
5347
+ }, e.getBestVersionForData = function(U, f) {
5347
5348
  let B;
5348
5349
  const g = r.from(f, r.M);
5349
- if (Array.isArray(h)) {
5350
- if (h.length > 1)
5351
- return u(h, g);
5352
- if (h.length === 0)
5350
+ if (Array.isArray(U)) {
5351
+ if (U.length > 1)
5352
+ return u(U, g);
5353
+ if (U.length === 0)
5353
5354
  return 1;
5354
- B = h[0];
5355
+ B = U[0];
5355
5356
  } else
5356
- B = h;
5357
+ B = U;
5357
5358
  return l(B.mode, B.getLength(), g);
5358
- }, e.getEncodedBits = function(h) {
5359
- if (!a.isValid(h) || h < 7)
5359
+ }, e.getEncodedBits = function(U) {
5360
+ if (!a.isValid(U) || U < 7)
5360
5361
  throw new Error("Invalid QR Code version");
5361
- let f = h << 12;
5362
+ let f = U << 12;
5362
5363
  for (; A.getBCHDigit(f) - i >= 0; )
5363
5364
  f ^= o << A.getBCHDigit(f) - i;
5364
- return h << 12 | f;
5365
+ return U << 12 | f;
5365
5366
  };
5366
5367
  })(wc);
5367
5368
  var Cc = {};
@@ -5518,14 +5519,14 @@ var OQ = It, vc = { exports: {} };
5518
5519
  o[r] = 0;
5519
5520
  var i = A.PriorityQueue.make();
5520
5521
  i.push(r, 0);
5521
- for (var l, s, c, u, d, h, f, B, g; !i.empty(); ) {
5522
+ for (var l, s, c, u, d, U, f, B, g; !i.empty(); ) {
5522
5523
  l = i.pop(), s = l.value, u = l.cost, d = t[s] || {};
5523
5524
  for (c in d)
5524
- d.hasOwnProperty(c) && (h = d[c], f = u + h, B = o[c], g = typeof o[c] > "u", (g || B > f) && (o[c] = f, i.push(c, f), a[c] = s));
5525
+ d.hasOwnProperty(c) && (U = d[c], f = u + U, B = o[c], g = typeof o[c] > "u", (g || B > f) && (o[c] = f, i.push(c, f), a[c] = s));
5525
5526
  }
5526
5527
  if (typeof n < "u" && typeof o[n] > "u") {
5527
- var U = ["Could not find a path from ", r, " to ", n, "."].join("");
5528
- throw new Error(U);
5528
+ var h = ["Could not find a path from ", r, " to ", n, "."].join("");
5529
+ throw new Error(h);
5529
5530
  }
5530
5531
  return a;
5531
5532
  },
@@ -5579,25 +5580,25 @@ var OQ = It, vc = { exports: {} };
5579
5580
  var WQ = vc.exports;
5580
5581
  (function(e) {
5581
5582
  const A = De, t = SQ, r = bQ, n = xQ, a = OQ, o = he, i = zA, l = WQ;
5582
- function s(U) {
5583
- return unescape(encodeURIComponent(U)).length;
5583
+ function s(h) {
5584
+ return unescape(encodeURIComponent(h)).length;
5584
5585
  }
5585
- function c(U, Q, p) {
5586
+ function c(h, p, Q) {
5586
5587
  const C = [];
5587
5588
  let v;
5588
- for (; (v = U.exec(p)) !== null; )
5589
+ for (; (v = h.exec(Q)) !== null; )
5589
5590
  C.push({
5590
5591
  data: v[0],
5591
5592
  index: v.index,
5592
- mode: Q,
5593
+ mode: p,
5593
5594
  length: v[0].length
5594
5595
  });
5595
5596
  return C;
5596
5597
  }
5597
- function u(U) {
5598
- const Q = c(o.NUMERIC, A.NUMERIC, U), p = c(o.ALPHANUMERIC, A.ALPHANUMERIC, U);
5598
+ function u(h) {
5599
+ const p = c(o.NUMERIC, A.NUMERIC, h), Q = c(o.ALPHANUMERIC, A.ALPHANUMERIC, h);
5599
5600
  let C, v;
5600
- return i.isKanjiModeEnabled() ? (C = c(o.BYTE, A.BYTE, U), v = c(o.KANJI, A.KANJI, U)) : (C = c(o.BYTE_KANJI, A.BYTE, U), v = []), Q.concat(p, C, v).sort(function(R, M) {
5601
+ return i.isKanjiModeEnabled() ? (C = c(o.BYTE, A.BYTE, h), v = c(o.KANJI, A.KANJI, h)) : (C = c(o.BYTE_KANJI, A.BYTE, h), v = []), p.concat(Q, C, v).sort(function(R, M) {
5601
5602
  return R.index - M.index;
5602
5603
  }).map(function(R) {
5603
5604
  return {
@@ -5607,104 +5608,104 @@ var WQ = vc.exports;
5607
5608
  };
5608
5609
  });
5609
5610
  }
5610
- function d(U, Q) {
5611
- switch (Q) {
5611
+ function d(h, p) {
5612
+ switch (p) {
5612
5613
  case A.NUMERIC:
5613
- return t.getBitsLength(U);
5614
+ return t.getBitsLength(h);
5614
5615
  case A.ALPHANUMERIC:
5615
- return r.getBitsLength(U);
5616
+ return r.getBitsLength(h);
5616
5617
  case A.KANJI:
5617
- return a.getBitsLength(U);
5618
+ return a.getBitsLength(h);
5618
5619
  case A.BYTE:
5619
- return n.getBitsLength(U);
5620
+ return n.getBitsLength(h);
5620
5621
  }
5621
5622
  }
5622
- function h(U) {
5623
- return U.reduce(function(Q, p) {
5624
- const C = Q.length - 1 >= 0 ? Q[Q.length - 1] : null;
5625
- return C && C.mode === p.mode ? (Q[Q.length - 1].data += p.data, Q) : (Q.push(p), Q);
5623
+ function U(h) {
5624
+ return h.reduce(function(p, Q) {
5625
+ const C = p.length - 1 >= 0 ? p[p.length - 1] : null;
5626
+ return C && C.mode === Q.mode ? (p[p.length - 1].data += Q.data, p) : (p.push(Q), p);
5626
5627
  }, []);
5627
5628
  }
5628
- function f(U) {
5629
- const Q = [];
5630
- for (let p = 0; p < U.length; p++) {
5631
- const C = U[p];
5629
+ function f(h) {
5630
+ const p = [];
5631
+ for (let Q = 0; Q < h.length; Q++) {
5632
+ const C = h[Q];
5632
5633
  switch (C.mode) {
5633
5634
  case A.NUMERIC:
5634
- Q.push([
5635
+ p.push([
5635
5636
  C,
5636
5637
  { data: C.data, mode: A.ALPHANUMERIC, length: C.length },
5637
5638
  { data: C.data, mode: A.BYTE, length: C.length }
5638
5639
  ]);
5639
5640
  break;
5640
5641
  case A.ALPHANUMERIC:
5641
- Q.push([
5642
+ p.push([
5642
5643
  C,
5643
5644
  { data: C.data, mode: A.BYTE, length: C.length }
5644
5645
  ]);
5645
5646
  break;
5646
5647
  case A.KANJI:
5647
- Q.push([
5648
+ p.push([
5648
5649
  C,
5649
5650
  { data: C.data, mode: A.BYTE, length: s(C.data) }
5650
5651
  ]);
5651
5652
  break;
5652
5653
  case A.BYTE:
5653
- Q.push([
5654
+ p.push([
5654
5655
  { data: C.data, mode: A.BYTE, length: s(C.data) }
5655
5656
  ]);
5656
5657
  }
5657
5658
  }
5658
- return Q;
5659
+ return p;
5659
5660
  }
5660
- function B(U, Q) {
5661
- const p = {}, C = { start: {} };
5661
+ function B(h, p) {
5662
+ const Q = {}, C = { start: {} };
5662
5663
  let v = ["start"];
5663
- for (let w = 0; w < U.length; w++) {
5664
- const R = U[w], M = [];
5664
+ for (let w = 0; w < h.length; w++) {
5665
+ const R = h[w], M = [];
5665
5666
  for (let T = 0; T < R.length; T++) {
5666
5667
  const O = R[T], D = "" + w + T;
5667
- M.push(D), p[D] = { node: O, lastCount: 0 }, C[D] = {};
5668
+ M.push(D), Q[D] = { node: O, lastCount: 0 }, C[D] = {};
5668
5669
  for (let L = 0; L < v.length; L++) {
5669
5670
  const S = v[L];
5670
- p[S] && p[S].node.mode === O.mode ? (C[S][D] = d(p[S].lastCount + O.length, O.mode) - d(p[S].lastCount, O.mode), p[S].lastCount += O.length) : (p[S] && (p[S].lastCount = O.length), C[S][D] = d(O.length, O.mode) + 4 + A.getCharCountIndicator(O.mode, Q));
5671
+ Q[S] && Q[S].node.mode === O.mode ? (C[S][D] = d(Q[S].lastCount + O.length, O.mode) - d(Q[S].lastCount, O.mode), Q[S].lastCount += O.length) : (Q[S] && (Q[S].lastCount = O.length), C[S][D] = d(O.length, O.mode) + 4 + A.getCharCountIndicator(O.mode, p));
5671
5672
  }
5672
5673
  }
5673
5674
  v = M;
5674
5675
  }
5675
5676
  for (let w = 0; w < v.length; w++)
5676
5677
  C[v[w]].end = 0;
5677
- return { map: C, table: p };
5678
+ return { map: C, table: Q };
5678
5679
  }
5679
- function g(U, Q) {
5680
- let p;
5681
- const C = A.getBestModeForData(U);
5682
- if (p = A.from(Q, C), p !== A.BYTE && p.bit < C.bit)
5683
- throw new Error('"' + U + '" cannot be encoded with mode ' + A.toString(p) + `.
5680
+ function g(h, p) {
5681
+ let Q;
5682
+ const C = A.getBestModeForData(h);
5683
+ if (Q = A.from(p, C), Q !== A.BYTE && Q.bit < C.bit)
5684
+ throw new Error('"' + h + '" cannot be encoded with mode ' + A.toString(Q) + `.
5684
5685
  Suggested mode is: ` + A.toString(C));
5685
- switch (p === A.KANJI && !i.isKanjiModeEnabled() && (p = A.BYTE), p) {
5686
+ switch (Q === A.KANJI && !i.isKanjiModeEnabled() && (Q = A.BYTE), Q) {
5686
5687
  case A.NUMERIC:
5687
- return new t(U);
5688
+ return new t(h);
5688
5689
  case A.ALPHANUMERIC:
5689
- return new r(U);
5690
+ return new r(h);
5690
5691
  case A.KANJI:
5691
- return new a(U);
5692
+ return new a(h);
5692
5693
  case A.BYTE:
5693
- return new n(U);
5694
+ return new n(h);
5694
5695
  }
5695
5696
  }
5696
- e.fromArray = function(Q) {
5697
- return Q.reduce(function(p, C) {
5698
- return typeof C == "string" ? p.push(g(C, null)) : C.data && p.push(g(C.data, C.mode)), p;
5697
+ e.fromArray = function(p) {
5698
+ return p.reduce(function(Q, C) {
5699
+ return typeof C == "string" ? Q.push(g(C, null)) : C.data && Q.push(g(C.data, C.mode)), Q;
5699
5700
  }, []);
5700
- }, e.fromString = function(Q, p) {
5701
- const C = u(Q, i.isKanjiModeEnabled()), v = f(C), w = B(v, p), R = l.find_path(w.map, "start", "end"), M = [];
5701
+ }, e.fromString = function(p, Q) {
5702
+ const C = u(p, i.isKanjiModeEnabled()), v = f(C), w = B(v, Q), R = l.find_path(w.map, "start", "end"), M = [];
5702
5703
  for (let T = 1; T < R.length - 1; T++)
5703
5704
  M.push(w.table[R[T]].node);
5704
- return e.fromArray(h(M));
5705
- }, e.rawSplit = function(Q) {
5705
+ return e.fromArray(U(M));
5706
+ }, e.rawSplit = function(p) {
5706
5707
  return e.fromArray(
5707
- u(Q, i.isKanjiModeEnabled())
5708
+ u(p, i.isKanjiModeEnabled())
5708
5709
  );
5709
5710
  };
5710
5711
  })(mc);
@@ -5778,24 +5779,24 @@ function $Q(e, A, t) {
5778
5779
  return Aw(r, e, A);
5779
5780
  }
5780
5781
  function Aw(e, A, t) {
5781
- const r = zn.getSymbolTotalCodewords(A), n = _a.getTotalCodewordsCount(A, t), a = r - n, o = _a.getBlocksCount(A, t), i = r % o, l = o - i, s = Math.floor(r / o), c = Math.floor(a / o), u = c + 1, d = s - c, h = new GQ(d);
5782
+ const r = zn.getSymbolTotalCodewords(A), n = _a.getTotalCodewordsCount(A, t), a = r - n, o = _a.getBlocksCount(A, t), i = r % o, l = o - i, s = Math.floor(r / o), c = Math.floor(a / o), u = c + 1, d = s - c, U = new GQ(d);
5782
5783
  let f = 0;
5783
5784
  const B = new Array(o), g = new Array(o);
5784
- let U = 0;
5785
- const Q = new Uint8Array(e.buffer);
5785
+ let h = 0;
5786
+ const p = new Uint8Array(e.buffer);
5786
5787
  for (let R = 0; R < o; R++) {
5787
5788
  const M = R < l ? c : u;
5788
- B[R] = Q.slice(f, f + M), g[R] = h.encode(B[R]), f += M, U = Math.max(U, M);
5789
+ B[R] = p.slice(f, f + M), g[R] = U.encode(B[R]), f += M, h = Math.max(h, M);
5789
5790
  }
5790
- const p = new Uint8Array(r);
5791
+ const Q = new Uint8Array(r);
5791
5792
  let C = 0, v, w;
5792
- for (v = 0; v < U; v++)
5793
+ for (v = 0; v < h; v++)
5793
5794
  for (w = 0; w < o; w++)
5794
- v < B[w].length && (p[C++] = B[w][v]);
5795
+ v < B[w].length && (Q[C++] = B[w][v]);
5795
5796
  for (v = 0; v < d; v++)
5796
5797
  for (w = 0; w < o; w++)
5797
- p[C++] = g[w][v];
5798
- return p;
5798
+ Q[C++] = g[w][v];
5799
+ return Q;
5799
5800
  }
5800
5801
  function ew(e, A, t, r) {
5801
5802
  let n;
@@ -5882,11 +5883,11 @@ var yc = {}, di = {};
5882
5883
  }, e.qrToImageData = function(r, n, a) {
5883
5884
  const o = n.modules.size, i = n.modules.data, l = e.getScale(o, a), s = Math.floor((o + a.margin * 2) * l), c = a.margin * l, u = [a.color.light, a.color.dark];
5884
5885
  for (let d = 0; d < s; d++)
5885
- for (let h = 0; h < s; h++) {
5886
- let f = (d * s + h) * 4, B = a.color.light;
5887
- if (d >= c && h >= c && d < s - c && h < s - c) {
5888
- const g = Math.floor((d - c) / l), U = Math.floor((h - c) / l);
5889
- B = u[i[g * o + U] ? 1 : 0];
5886
+ for (let U = 0; U < s; U++) {
5887
+ let f = (d * s + U) * 4, B = a.color.light;
5888
+ if (d >= c && U >= c && d < s - c && U < s - c) {
5889
+ const g = Math.floor((d - c) / l), h = Math.floor((U - c) / l);
5890
+ B = u[i[g * o + h] ? 1 : 0];
5890
5891
  }
5891
5892
  r[f++] = B.r, r[f++] = B.g, r[f++] = B.b, r[f] = B.a;
5892
5893
  }
@@ -5980,7 +5981,7 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
5980
5981
  propsConfig: { type: Object, required: !0 }
5981
5982
  },
5982
5983
  setup(e) {
5983
- const A = e, t = k(""), r = k(null), n = b(() => A.modelValue.__selected || !1), a = b(() => ({
5984
+ const A = e, t = Z(""), r = Z(null), n = b(() => A.modelValue.__selected || !1), a = b(() => ({
5984
5985
  position: "absolute",
5985
5986
  left: "-2px",
5986
5987
  top: "-2px",
@@ -5990,16 +5991,16 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
5990
5991
  pointerEvents: "none",
5991
5992
  boxSizing: "border-box",
5992
5993
  zIndex: 1e3
5993
- })), o = k(null), i = () => {
5994
+ })), o = Z(null), i = () => {
5994
5995
  var B, g;
5995
5996
  return o.value || (o.value = at((g = (B = A.propsConfig) == null ? void 0 : B.qrcode) == null ? void 0 : g.propertyPanel) || {}), o.value;
5996
5997
  }, l = (B, g) => g ? B.QRCodeValue !== g.QRCodeValue || B.QRCodeForeground !== g.QRCodeForeground || B.QRCodeBackground !== g.QRCodeBackground || B.QRCodeErrorLevel !== g.QRCodeErrorLevel : !0, s = async () => {
5997
- var B, g, U, Q;
5998
+ var B, g, h, p;
5998
5999
  try {
5999
- const p = i(), C = ((B = A.modelValue) == null ? void 0 : B.QRCodeValue) || p.QRCodeValue || "测试二维码";
6000
- let v = ((g = A.modelValue) == null ? void 0 : g.QRCodeForeground) || p.QRCodeForeground || "#000000", w = ((U = A.modelValue) == null ? void 0 : U.QRCodeBackground) || p.QRCodeBackground || "#ffffff";
6000
+ const Q = i(), C = ((B = A.modelValue) == null ? void 0 : B.QRCodeValue) || Q.QRCodeValue || "测试二维码";
6001
+ let v = ((g = A.modelValue) == null ? void 0 : g.QRCodeForeground) || Q.QRCodeForeground || "#000000", w = ((h = A.modelValue) == null ? void 0 : h.QRCodeBackground) || Q.QRCodeBackground || "#ffffff";
6001
6002
  (v === "transparent" || !v) && (v = "#000000"), (w === "transparent" || !w) && (w = "#ffffff");
6002
- const M = { L: "low", M: "medium", Q: "quartile", H: "high" }[((Q = A.modelValue) == null ? void 0 : Q.QRCodeErrorLevel) || p.QRCodeErrorLevel || "M"] || "medium";
6003
+ const M = { L: "low", M: "medium", Q: "quartile", H: "high" }[((p = A.modelValue) == null ? void 0 : p.QRCodeErrorLevel) || Q.QRCodeErrorLevel || "M"] || "medium";
6003
6004
  C && C.trim() ? t.value = await mr.toDataURL(C, {
6004
6005
  width: lw,
6005
6006
  margin: 0,
@@ -6010,15 +6011,15 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
6010
6011
  },
6011
6012
  errorCorrectionLevel: M
6012
6013
  }) : t.value = "";
6013
- } catch (p) {
6014
- console.error("生成二维码失败:", p), t.value = "";
6014
+ } catch (Q) {
6015
+ console.error("生成二维码失败:", Q), t.value = "";
6015
6016
  }
6016
6017
  }, c = b(() => {
6017
- var Q, p;
6018
- const B = i(), g = ((Q = A.modelValue) == null ? void 0 : Q.width) ?? B.width, U = ((p = A.modelValue) == null ? void 0 : p.height) ?? B.height;
6018
+ var p, Q;
6019
+ const B = i(), g = ((p = A.modelValue) == null ? void 0 : p.width) ?? B.width, h = ((Q = A.modelValue) == null ? void 0 : Q.height) ?? B.height;
6019
6020
  return {
6020
6021
  width: pn(g) + "px",
6021
- height: pn(U) + "px",
6022
+ height: pn(h) + "px",
6022
6023
  display: "flex",
6023
6024
  alignItems: "center",
6024
6025
  justifyContent: "center",
@@ -6027,13 +6028,13 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
6027
6028
  }), u = () => {
6028
6029
  }, d = () => {
6029
6030
  console.warn("QR Code image failed to load"), s();
6030
- }, h = () => {
6031
+ }, U = () => {
6031
6032
  const B = A.modelValue, g = r.value;
6032
6033
  l(B, g) && s();
6033
6034
  }, f = (() => {
6034
6035
  let B;
6035
6036
  return () => {
6036
- clearTimeout(B), B = setTimeout(h, 50);
6037
+ clearTimeout(B), B = setTimeout(U, 50);
6037
6038
  };
6038
6039
  })();
6039
6040
  return Oe(() => {
@@ -6052,7 +6053,7 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
6052
6053
  }, { deep: !0 }), Ur(() => {
6053
6054
  r.value = null, o.value = null, t.value = "";
6054
6055
  }), (B, g) => {
6055
- var U;
6056
+ var h;
6056
6057
  return V(), N("div", {
6057
6058
  class: "qrcode-component",
6058
6059
  onDragstart: g[0] || (g[0] = xA(() => {
@@ -6062,7 +6063,7 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
6062
6063
  m("div", ow, [
6063
6064
  m("img", {
6064
6065
  src: t.value,
6065
- alt: "QR Code: " + (((U = A.modelValue) == null ? void 0 : U.QRCodeValue) || ""),
6066
+ alt: "QR Code: " + (((h = A.modelValue) == null ? void 0 : h.QRCodeValue) || ""),
6066
6067
  class: "qrcode-image",
6067
6068
  onLoad: u,
6068
6069
  onError: d
@@ -6145,7 +6146,7 @@ const Uw = {
6145
6146
  },
6146
6147
  emits: ["update:modelValue"],
6147
6148
  setup(e, { emit: A }) {
6148
- const t = e, r = A, n = k(""), a = k(!1), o = k(!1), i = b(() => !!n.value && !a.value && !o.value), l = b(() => t.modelValue.__selected || !1), s = b(() => ({
6149
+ const t = e, r = A, n = Z(""), a = Z(!1), o = Z(!1), i = b(() => !!n.value && !a.value && !o.value), l = b(() => t.modelValue.__selected || !1), s = b(() => ({
6149
6150
  position: "absolute",
6150
6151
  left: "-2px",
6151
6152
  top: "-2px",
@@ -6155,9 +6156,9 @@ const Uw = {
6155
6156
  pointerEvents: "none",
6156
6157
  boxSizing: "border-box",
6157
6158
  zIndex: 1e3
6158
- })), c = k(null), u = () => {
6159
- var Q, p;
6160
- return c.value || (c.value = at((p = (Q = t.propsConfig) == null ? void 0 : Q.image) == null ? void 0 : p.propertyPanel) || {}), c.value;
6159
+ })), c = Z(null), u = () => {
6160
+ var p, Q;
6161
+ return c.value || (c.value = at((Q = (p = t.propsConfig) == null ? void 0 : p.image) == null ? void 0 : Q.propertyPanel) || {}), c.value;
6161
6162
  }, d = b(() => ({
6162
6163
  width: "100%",
6163
6164
  height: "100%",
@@ -6166,16 +6167,16 @@ const Uw = {
6166
6167
  justifyContent: "center",
6167
6168
  overflow: "hidden",
6168
6169
  position: "relative"
6169
- })), h = b(() => {
6170
+ })), U = b(() => {
6170
6171
  var v;
6171
6172
  if (!n.value)
6172
6173
  return {};
6173
- const Q = u(), p = ((v = t.modelValue) == null ? void 0 : v.ScaleMode) ?? Q.ScaleMode ?? 1, C = {
6174
+ const p = u(), Q = ((v = t.modelValue) == null ? void 0 : v.ScaleMode) ?? p.ScaleMode ?? 1, C = {
6174
6175
  maxWidth: "100%",
6175
6176
  maxHeight: "100%",
6176
6177
  display: "block"
6177
6178
  };
6178
- switch (p) {
6179
+ switch (Q) {
6179
6180
  case 1:
6180
6181
  return {
6181
6182
  ...C,
@@ -6208,20 +6209,20 @@ const Uw = {
6208
6209
  }, B = () => {
6209
6210
  a.value = !1, o.value = !0, n.value = "";
6210
6211
  try {
6211
- const Q = { ...t.modelValue || {} };
6212
- Q.ImageSrc = "", r("update:modelValue", Q);
6212
+ const p = { ...t.modelValue || {} };
6213
+ p.ImageSrc = "", r("update:modelValue", p);
6213
6214
  } catch {
6214
6215
  }
6215
6216
  dr && dr.error("图片加载失败,请重新上传");
6216
6217
  }, g = () => {
6217
6218
  var v;
6218
- const Q = u(), p = ((v = t.modelValue) == null ? void 0 : v.ImageSrc) || Q.ImageSrc || "";
6219
+ const p = u(), Q = ((v = t.modelValue) == null ? void 0 : v.ImageSrc) || p.ImageSrc || "";
6219
6220
  let C = "";
6220
- typeof p == "object" && p.fileSrc ? C = p.fileSrc : typeof p == "string" && (C = p), C !== n.value && (n.value = C, a.value = !1, o.value = !1);
6221
- }, U = () => {
6222
- var p;
6223
- const Q = (p = t.modelValue) == null ? void 0 : p.ImageSrc;
6224
- return typeof Q == "object" && Q.fileName ? Q.fileName : "未命名图片";
6221
+ typeof Q == "object" && Q.fileSrc ? C = Q.fileSrc : typeof Q == "string" && (C = Q), C !== n.value && (n.value = C, a.value = !1, o.value = !1);
6222
+ }, h = () => {
6223
+ var Q;
6224
+ const p = (Q = t.modelValue) == null ? void 0 : Q.ImageSrc;
6225
+ return typeof p == "object" && p.fileName ? p.fileName : "未命名图片";
6225
6226
  };
6226
6227
  return FA(() => t.modelValue, () => {
6227
6228
  g();
@@ -6231,7 +6232,7 @@ const Uw = {
6231
6232
  de(() => {
6232
6233
  g();
6233
6234
  });
6234
- }), (Q, p) => {
6235
+ }), (p, Q) => {
6235
6236
  const C = QA("el-icon-picture-filled"), v = QA("el-icon"), w = QA("el-icon-loading");
6236
6237
  return V(), N("div", {
6237
6238
  class: "image-component",
@@ -6240,12 +6241,12 @@ const Uw = {
6240
6241
  n.value ? (V(), N("img", {
6241
6242
  key: 1,
6242
6243
  src: n.value,
6243
- alt: "Image: " + U(),
6244
+ alt: "Image: " + h(),
6244
6245
  class: "image-content",
6245
- style: AA(h.value),
6246
+ style: AA(U.value),
6246
6247
  onLoad: f,
6247
6248
  onError: B,
6248
- onDragstart: p[0] || (p[0] = xA(() => {
6249
+ onDragstart: Q[0] || (Q[0] = xA(() => {
6249
6250
  }, ["prevent"]))
6250
6251
  }, null, 44, pw)) : (V(), N("div", Uw, [
6251
6252
  W(v, {
@@ -6333,7 +6334,7 @@ function yw(e, A) {
6333
6334
  }
6334
6335
  const Rw = /* @__PURE__ */ yA(mw, [["render", yw]]);
6335
6336
  function Tc(e, A) {
6336
- const t = k({}), r = () => {
6337
+ const t = Z({}), r = () => {
6337
6338
  var o, i;
6338
6339
  if ((i = (o = e.propsConfig) == null ? void 0 : o[A]) != null && i.propertyPanel) {
6339
6340
  const l = at(e.propsConfig[A].propertyPanel);
@@ -6461,11 +6462,11 @@ const Sw = {
6461
6462
  emits: ["update:modelValue"],
6462
6463
  setup(e, { emit: A }) {
6463
6464
  const t = e, { defaultProps: r, isSelected: n } = Tc(t, "rectangle"), a = b(() => Vw()), o = b(() => Tw()), i = b(() => {
6464
- var g, U;
6465
- return fi(((g = t.modelValue) == null ? void 0 : g.LineWidth) ?? ((U = r.value) == null ? void 0 : U.LineWidth));
6465
+ var g, h;
6466
+ return fi(((g = t.modelValue) == null ? void 0 : g.LineWidth) ?? ((h = r.value) == null ? void 0 : h.LineWidth));
6466
6467
  }), l = b(() => {
6467
- var g, U;
6468
- return Sc(((g = t.modelValue) == null ? void 0 : g.LineStyle) ?? ((U = r.value) == null ? void 0 : U.LineStyle));
6468
+ var g, h;
6469
+ return Sc(((g = t.modelValue) == null ? void 0 : g.LineStyle) ?? ((h = r.value) == null ? void 0 : h.LineStyle));
6469
6470
  }), s = b(() => l.value === "solid" && i.value < 1), c = b(() => {
6470
6471
  if (s.value) {
6471
6472
  const g = dl(t.modelValue, r.value);
@@ -6480,7 +6481,7 @@ const Sw = {
6480
6481
  background: u,
6481
6482
  transform: `scaleY(${i.value})`,
6482
6483
  transformOrigin: "top left"
6483
- })), h = b(() => ({
6484
+ })), U = b(() => ({
6484
6485
  left: 0,
6485
6486
  bottom: 0,
6486
6487
  width: "100%",
@@ -6506,8 +6507,8 @@ const Sw = {
6506
6507
  transformOrigin: "top right"
6507
6508
  }));
6508
6509
  return FA(() => t.propsConfig, () => {
6509
- var U, Q;
6510
- const g = at((Q = (U = t.propsConfig) == null ? void 0 : U.rectangle) == null ? void 0 : Q.propertyPanel) || {};
6510
+ var h, p;
6511
+ const g = at((p = (h = t.propsConfig) == null ? void 0 : h.rectangle) == null ? void 0 : p.propertyPanel) || {};
6511
6512
  r.value = {
6512
6513
  LineWidth: g.LineWidth ?? "0.75pt",
6513
6514
  LineStyle: g.LineStyle ?? "实线",
@@ -6515,7 +6516,7 @@ const Sw = {
6515
6516
  };
6516
6517
  }, { deep: !0, immediate: !0 }), Ur(() => {
6517
6518
  r.value = {};
6518
- }), (g, U) => (V(), N("div", {
6519
+ }), (g, h) => (V(), N("div", {
6519
6520
  class: "rectangle-component",
6520
6521
  style: AA(o.value)
6521
6522
  }, [
@@ -6534,7 +6535,7 @@ const Sw = {
6534
6535
  }, null, 4),
6535
6536
  m("div", {
6536
6537
  class: "hairline-edge bottom",
6537
- style: AA(h.value)
6538
+ style: AA(U.value)
6538
6539
  }, null, 4),
6539
6540
  m("div", {
6540
6541
  class: "hairline-edge left",
@@ -6619,7 +6620,7 @@ const Ow = ["width", "height"], Ww = ["y1", "x2", "y2", "stroke-width", "stroke-
6619
6620
  return `${f},${B}`;
6620
6621
  }
6621
6622
  return null;
6622
- }), d = b(() => Nw(o.value, s.value)), h = b(() => Iw(t.modelValue, n.value));
6623
+ }), d = b(() => Nw(o.value, s.value)), U = b(() => Iw(t.modelValue, n.value));
6623
6624
  return FA(() => t.modelValue, (f) => {
6624
6625
  if (f) {
6625
6626
  n.value = {
@@ -6645,7 +6646,7 @@ const Ow = ["width", "height"], Ww = ["y1", "x2", "y2", "stroke-width", "stroke-
6645
6646
  }
6646
6647
  }, { immediate: !0 }), (f, B) => (V(), N("div", {
6647
6648
  class: "horline-component",
6648
- style: AA(h.value)
6649
+ style: AA(U.value)
6649
6650
  }, [
6650
6651
  (V(), N("svg", {
6651
6652
  width: o.value,
@@ -6720,7 +6721,7 @@ const Yw = /* @__PURE__ */ yA(Kw, [["render", Gw]]), Mc = [
6720
6721
  {
6721
6722
  groupName: "文本",
6722
6723
  components: [
6723
- { type: "text", label: "文本", icon: uf, component: id, propertyPanel: of }
6724
+ { type: "text", label: "文本", icon: uf, component: ed, propertyPanel: of }
6724
6725
  ]
6725
6726
  },
6726
6727
  {
@@ -6746,7 +6747,7 @@ const Yw = /* @__PURE__ */ yA(Kw, [["render", Gw]]), Mc = [
6746
6747
  ], bc = Mc.flatMap((e) => e.components);
6747
6748
  async function zw(e) {
6748
6749
  try {
6749
- return (await od(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-25ec3af8.mjs"), "./props/rfid.js": () => import("./rfid-b84da009.mjs") }), `./props/${e}.js`)).default;
6750
+ return (await Ad(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-25ec3af8.mjs"), "./props/rfid.js": () => import("./rfid-b84da009.mjs") }), `./props/${e}.js`)).default;
6750
6751
  } catch {
6751
6752
  return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-25ec3af8.mjs")).default;
6752
6753
  }
@@ -6783,7 +6784,7 @@ const _w = { class: "component-list" }, qw = { class: "group-title" }, $w = { cl
6783
6784
  }
6784
6785
  },
6785
6786
  setup(e) {
6786
- const A = e, t = b(() => jw(A.config, A.propsConfig)), r = k(/* @__PURE__ */ new Map());
6787
+ const A = e, t = b(() => jw(A.config, A.propsConfig)), r = Z(/* @__PURE__ */ new Map());
6787
6788
  function n(s = 80, c = 50) {
6788
6789
  const u = document.createElement("div");
6789
6790
  return u.style.cssText = `
@@ -6871,8 +6872,8 @@ const _w = { class: "component-list" }, qw = { class: "group-title" }, $w = { cl
6871
6872
  return (s, c) => {
6872
6873
  const u = QA("el-icon");
6873
6874
  return V(), N("div", _w, [
6874
- (V(!0), N(VA, null, Me(t.value, (d, h) => (V(), N("div", {
6875
- key: h,
6875
+ (V(!0), N(VA, null, Me(t.value, (d, U) => (V(), N("div", {
6876
+ key: U,
6876
6877
  class: "component-group"
6877
6878
  }, [
6878
6879
  m("div", qw, fe(d.groupName), 1),
@@ -6999,7 +7000,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
6999
7000
  a.data.punchingList.splice(c, 1);
7000
7001
  };
7001
7002
  return (c, u) => {
7002
- const d = QA("el-button"), h = QA("el-input-number"), f = QA("el-table-column"), B = QA("el-col"), g = QA("el-row"), U = QA("el-table"), Q = QA("el-form-item"), p = QA("el-form"), C = QA("el-main"), v = QA("el-dialog");
7003
+ const d = QA("el-button"), U = QA("el-input-number"), f = QA("el-table-column"), B = QA("el-col"), g = QA("el-row"), h = QA("el-table"), p = QA("el-form-item"), Q = QA("el-form"), C = QA("el-main"), v = QA("el-dialog");
7003
7004
  return V(), N(VA, null, [
7004
7005
  W(d, {
7005
7006
  type: "primary",
@@ -7059,7 +7060,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7059
7060
  default: j(() => [
7060
7061
  W(C, { style: { "max-height": "60vh", padding: "0" } }, {
7061
7062
  default: j(() => [
7062
- W(p, {
7063
+ W(Q, {
7063
7064
  ref: "formRef",
7064
7065
  model: a.data,
7065
7066
  "label-width": "90px",
@@ -7067,7 +7068,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7067
7068
  "label-suffix": ":"
7068
7069
  }, {
7069
7070
  default: j(() => [
7070
- W(Q, null, {
7071
+ W(p, null, {
7071
7072
  label: j(() => [
7072
7073
  m("div", null, [
7073
7074
  u[9] || (u[9] = m("p", null, "打印区域:", -1)),
@@ -7086,7 +7087,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7086
7087
  ]),
7087
7088
  default: j(() => [
7088
7089
  m("div", gF, [
7089
- a.data.printList.length > 0 ? (V(), vA(U, {
7090
+ a.data.printList.length > 0 ? (V(), vA(h, {
7090
7091
  key: 0,
7091
7092
  data: a.data.printList,
7092
7093
  class: "graph-table"
@@ -7098,7 +7099,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7098
7099
  width: "100"
7099
7100
  }, {
7100
7101
  default: j((w) => [
7101
- W(h, {
7102
+ W(U, {
7102
7103
  modelValue: w.row.x,
7103
7104
  "onUpdate:modelValue": (R) => w.row.x = R,
7104
7105
  controls: !1,
@@ -7113,7 +7114,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7113
7114
  width: "100"
7114
7115
  }, {
7115
7116
  default: j((w) => [
7116
- W(h, {
7117
+ W(U, {
7117
7118
  modelValue: w.row.y,
7118
7119
  "onUpdate:modelValue": (R) => w.row.y = R,
7119
7120
  controls: !1,
@@ -7128,7 +7129,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7128
7129
  width: "100"
7129
7130
  }, {
7130
7131
  default: j((w) => [
7131
- W(h, {
7132
+ W(U, {
7132
7133
  modelValue: w.row.width,
7133
7134
  "onUpdate:modelValue": (R) => w.row.width = R,
7134
7135
  controls: !1,
@@ -7143,7 +7144,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7143
7144
  width: "100"
7144
7145
  }, {
7145
7146
  default: j((w) => [
7146
- W(h, {
7147
+ W(U, {
7147
7148
  modelValue: w.row.height,
7148
7149
  "onUpdate:modelValue": (R) => w.row.height = R,
7149
7150
  controls: !1,
@@ -7161,7 +7162,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7161
7162
  default: j(() => [
7162
7163
  W(B, { span: 6 }, {
7163
7164
  default: j(() => [
7164
- W(h, {
7165
+ W(U, {
7165
7166
  modelValue: w.row.topLeftRadius,
7166
7167
  "onUpdate:modelValue": (R) => w.row.topLeftRadius = R,
7167
7168
  controls: !1,
@@ -7172,7 +7173,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7172
7173
  }, 1024),
7173
7174
  W(B, { span: 6 }, {
7174
7175
  default: j(() => [
7175
- W(h, {
7176
+ W(U, {
7176
7177
  modelValue: w.row.bottomLeftRadius,
7177
7178
  "onUpdate:modelValue": (R) => w.row.bottomLeftRadius = R,
7178
7179
  controls: !1,
@@ -7183,7 +7184,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7183
7184
  }, 1024),
7184
7185
  W(B, { span: 6 }, {
7185
7186
  default: j(() => [
7186
- W(h, {
7187
+ W(U, {
7187
7188
  modelValue: w.row.topRightRadius,
7188
7189
  "onUpdate:modelValue": (R) => w.row.topRightRadius = R,
7189
7190
  controls: !1,
@@ -7194,7 +7195,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7194
7195
  }, 1024),
7195
7196
  W(B, { span: 6 }, {
7196
7197
  default: j(() => [
7197
- W(h, {
7198
+ W(U, {
7198
7199
  modelValue: w.row.bottomRightRadius,
7199
7200
  "onUpdate:modelValue": (R) => w.row.bottomRightRadius = R,
7200
7201
  controls: !1,
@@ -7236,7 +7237,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7236
7237
  ]),
7237
7238
  _: 1
7238
7239
  }),
7239
- W(Q, { label: "打孔区域" }, {
7240
+ W(p, { label: "打孔区域" }, {
7240
7241
  label: j(() => [
7241
7242
  m("div", null, [
7242
7243
  u[12] || (u[12] = m("p", null, "打孔区域:", -1)),
@@ -7255,7 +7256,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7255
7256
  ]),
7256
7257
  default: j(() => [
7257
7258
  m("div", pF, [
7258
- a.data.punchingList.length > 0 ? (V(), vA(U, {
7259
+ a.data.punchingList.length > 0 ? (V(), vA(h, {
7259
7260
  key: 0,
7260
7261
  data: a.data.punchingList,
7261
7262
  class: "graph-table"
@@ -7267,7 +7268,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7267
7268
  width: "100"
7268
7269
  }, {
7269
7270
  default: j((w) => [
7270
- W(h, {
7271
+ W(U, {
7271
7272
  modelValue: w.row.x,
7272
7273
  "onUpdate:modelValue": (R) => w.row.x = R,
7273
7274
  controls: !1,
@@ -7282,7 +7283,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7282
7283
  width: "100"
7283
7284
  }, {
7284
7285
  default: j((w) => [
7285
- W(h, {
7286
+ W(U, {
7286
7287
  modelValue: w.row.y,
7287
7288
  "onUpdate:modelValue": (R) => w.row.y = R,
7288
7289
  controls: !1,
@@ -7297,7 +7298,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7297
7298
  width: "100"
7298
7299
  }, {
7299
7300
  default: j((w) => [
7300
- W(h, {
7301
+ W(U, {
7301
7302
  modelValue: w.row.width,
7302
7303
  "onUpdate:modelValue": (R) => w.row.width = R,
7303
7304
  controls: !1,
@@ -7313,7 +7314,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7313
7314
  width: "100"
7314
7315
  }, {
7315
7316
  default: j((w) => [
7316
- W(h, {
7317
+ W(U, {
7317
7318
  modelValue: w.row.height,
7318
7319
  "onUpdate:modelValue": (R) => w.row.height = R,
7319
7320
  controls: !1,
@@ -7452,14 +7453,14 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7452
7453
  }
7453
7454
  }, FF = /* @__PURE__ */ yA(wF, [["__scopeId", "data-v-a4b90b63"]]);
7454
7455
  function CF(e = {}) {
7455
- const { scale: A, canvasWidth: t, canvasHeight: r, selectItem: n, onStopDrag: a, onStartDrag: o, onDragUpdate: i } = e, l = k(!1), s = k(!1), c = k(null), u = k({ x: 0, y: 0 }), d = k({ x: 0, y: 0 }), h = /* @__PURE__ */ new Map();
7456
- function f(Q, p, C) {
7457
- l.value = !0, s.value = !0, typeof o == "function" && o(), c.value = p, u.value = { x: Q.clientX, y: Q.clientY }, d.value = { x: p.props.x, y: p.props.y }, typeof n == "function" && n(p, C || Q), document.addEventListener("mousemove", g), document.addEventListener("mouseup", U);
7458
- }
7459
- function B(Q, p, C, v, w) {
7460
- const R = `${Q}_${p}_${C}_${v}_${w}`;
7461
- if (h.has(R))
7462
- return h.get(R);
7456
+ const { scale: A, canvasWidth: t, canvasHeight: r, selectItem: n, onStopDrag: a, onStartDrag: o, onDragUpdate: i } = e, l = Z(!1), s = Z(!1), c = Z(null), u = Z({ x: 0, y: 0 }), d = Z({ x: 0, y: 0 }), U = /* @__PURE__ */ new Map();
7457
+ function f(p, Q, C) {
7458
+ l.value = !0, s.value = !0, typeof o == "function" && o(), c.value = Q, u.value = { x: p.clientX, y: p.clientY }, d.value = { x: Q.props.x, y: Q.props.y }, typeof n == "function" && n(Q, C || p), document.addEventListener("mousemove", g), document.addEventListener("mouseup", h);
7459
+ }
7460
+ function B(p, Q, C, v, w) {
7461
+ const R = `${p}_${Q}_${C}_${v}_${w}`;
7462
+ if (U.has(R))
7463
+ return U.get(R);
7463
7464
  const M = w * Math.PI / 180, T = C / 2, O = v / 2, L = [
7464
7465
  { x: 0, y: 0 },
7465
7466
  { x: C, y: 0 },
@@ -7468,8 +7469,8 @@ function CF(e = {}) {
7468
7469
  ].map((G) => {
7469
7470
  const q = G.x - T, rA = G.y - O, BA = q * Math.cos(M) - rA * Math.sin(M), cA = q * Math.sin(M) + rA * Math.cos(M);
7470
7471
  return {
7471
- x: Number((BA + T + Q).toFixed(2)),
7472
- y: Number((cA + O + p).toFixed(2))
7472
+ x: Number((BA + T + p).toFixed(2)),
7473
+ y: Number((cA + O + Q).toFixed(2))
7473
7474
  };
7474
7475
  }), S = L.map((G) => G.x), P = L.map((G) => G.y), oA = {
7475
7476
  minX: Math.min(...S),
@@ -7477,13 +7478,13 @@ function CF(e = {}) {
7477
7478
  minY: Math.min(...P),
7478
7479
  maxY: Math.max(...P)
7479
7480
  };
7480
- return h.set(R, oA), oA;
7481
+ return U.set(R, oA), oA;
7481
7482
  }
7482
- function g(Q) {
7483
+ function g(p) {
7483
7484
  if (!l.value || !c.value)
7484
7485
  return;
7485
- const p = Q.clientX - u.value.x, C = Q.clientY - u.value.y, v = (A == null ? void 0 : A.value) || 1, w = 1 / 3.7795275591;
7486
- let R = d.value.x + p * w / v, M = d.value.y + C * w / v;
7486
+ const Q = p.clientX - u.value.x, C = p.clientY - u.value.y, v = (A == null ? void 0 : A.value) || 1, w = 1 / 3.7795275591;
7487
+ let R = d.value.x + Q * w / v, M = d.value.y + C * w / v;
7487
7488
  if (t != null && t.value && (r != null && r.value)) {
7488
7489
  const T = c.value.props.width || 0, O = c.value.props.height || 0, D = c.value.props.rotation || 0;
7489
7490
  let L = !1;
@@ -7495,14 +7496,14 @@ function CF(e = {}) {
7495
7496
  }
7496
7497
  c.value.props.x = Number(R.toFixed(2)), c.value.props.y = Number(M.toFixed(2)), typeof i == "function" && i();
7497
7498
  }
7498
- function U() {
7499
+ function h() {
7499
7500
  l.value = !1, setTimeout(() => {
7500
7501
  s.value = !1;
7501
- }, 50), c.value && typeof n == "function" && n(c.value), c.value = null, typeof a == "function" && a(), typeof i == "function" && i(), h.clear();
7502
- const Q = function(p) {
7503
- p && (typeof p.stopImmediatePropagation == "function" && p.stopImmediatePropagation(), typeof p.stopPropagation == "function" && p.stopPropagation(), typeof p.preventDefault == "function" && p.preventDefault()), window.removeEventListener("click", Q, !0);
7502
+ }, 50), c.value && typeof n == "function" && n(c.value), c.value = null, typeof a == "function" && a(), typeof i == "function" && i(), U.clear();
7503
+ const p = function(Q) {
7504
+ Q && (typeof Q.stopImmediatePropagation == "function" && Q.stopImmediatePropagation(), typeof Q.stopPropagation == "function" && Q.stopPropagation(), typeof Q.preventDefault == "function" && Q.preventDefault()), window.removeEventListener("click", p, !0);
7504
7505
  };
7505
- window.addEventListener("click", Q, !0), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", U);
7506
+ window.addEventListener("click", p, !0), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", h);
7506
7507
  }
7507
7508
  return {
7508
7509
  dragging: l,
@@ -7513,13 +7514,13 @@ function CF(e = {}) {
7513
7514
  // 当前拖拽元素
7514
7515
  startDrag: f,
7515
7516
  // 开始拖拽方法
7516
- stopDrag: U
7517
+ stopDrag: h
7517
7518
  // 停止拖拽方法
7518
7519
  };
7519
7520
  }
7520
7521
  function EF(e, A, t, r) {
7521
- const n = k(!1), a = k(null), o = k({ x: 0, y: 0 }), i = k({ width: 0, height: 0, x: 0, y: 0, rotation: 0 }), l = k(""), s = k(""), c = k({ x: 0, y: 0 }), u = k([]), d = k(null), h = k(0), f = ul.UPDATE_THRESHOLD, B = k({ x: 0, y: 0, width: 0, height: 0 }), g = k(/* @__PURE__ */ new Map()), U = k(/* @__PURE__ */ new Map()), Q = k(null);
7522
- function p(O) {
7522
+ const n = Z(!1), a = Z(null), o = Z({ x: 0, y: 0 }), i = Z({ width: 0, height: 0, x: 0, y: 0, rotation: 0 }), l = Z(""), s = Z(""), c = Z({ x: 0, y: 0 }), u = Z([]), d = Z(null), U = Z(0), f = ul.UPDATE_THRESHOLD, B = Z({ x: 0, y: 0, width: 0, height: 0 }), g = Z(/* @__PURE__ */ new Map()), h = Z(/* @__PURE__ */ new Map()), p = Z(null);
7523
+ function Q(O) {
7523
7524
  return O * Math.PI / 180;
7524
7525
  }
7525
7526
  function C(O, D, L, S, P, oA, G) {
@@ -7542,9 +7543,9 @@ function EF(e, A, t, r) {
7542
7543
  }
7543
7544
  function v(O, D, L, S, P) {
7544
7545
  const oA = `${O.toFixed(1)}_${D.toFixed(1)}_${L.toFixed(1)}_${S.toFixed(1)}_${P.toFixed(1)}`;
7545
- if (U.value.has(oA))
7546
- return U.value.get(oA);
7547
- const G = p(P), q = Math.cos(G), rA = Math.sin(G), BA = O + L / 2, cA = D + S / 2, X = [
7546
+ if (h.value.has(oA))
7547
+ return h.value.get(oA);
7548
+ const G = Q(P), q = Math.cos(G), rA = Math.sin(G), BA = O + L / 2, cA = D + S / 2, X = [
7548
7549
  { x: -L / 2, y: -S / 2 },
7549
7550
  { x: L / 2, y: -S / 2 },
7550
7551
  { x: L / 2, y: S / 2 },
@@ -7553,9 +7554,9 @@ function EF(e, A, t, r) {
7553
7554
  x: Number((BA + z.x * q - z.y * rA).toFixed(2)),
7554
7555
  y: Number((cA + z.x * rA + z.y * q).toFixed(2))
7555
7556
  }));
7556
- if (U.value.set(oA, X), U.value.size > 100) {
7557
- const z = U.value.keys().next().value;
7558
- U.value.delete(z);
7557
+ if (h.value.set(oA, X), h.value.size > 100) {
7558
+ const z = h.value.keys().next().value;
7559
+ h.value.delete(z);
7559
7560
  }
7560
7561
  return X;
7561
7562
  }
@@ -7602,7 +7603,7 @@ function EF(e, A, t, r) {
7602
7603
  x: D.props.x,
7603
7604
  y: D.props.y,
7604
7605
  rotation: D.props.rotation || 0
7605
- }, s.value = "", c.value = { x: 0, y: 0 }, Q.value = null, d.value = w(
7606
+ }, s.value = "", c.value = { x: 0, y: 0 }, p.value = null, d.value = w(
7606
7607
  L,
7607
7608
  i.value.x,
7608
7609
  i.value.y,
@@ -7614,24 +7615,24 @@ function EF(e, A, t, r) {
7614
7615
  y: i.value.y,
7615
7616
  width: i.value.width,
7616
7617
  height: i.value.height
7617
- }, u.value = [...r.value], g.value.clear(), U.value.clear(), document.addEventListener("mousemove", M), document.addEventListener("mouseup", T));
7618
+ }, u.value = [...r.value], g.value.clear(), h.value.clear(), document.addEventListener("mousemove", M), document.addEventListener("mouseup", T));
7618
7619
  }
7619
7620
  function M(O) {
7620
7621
  if (!n.value || !a.value || !d.value)
7621
7622
  return;
7622
7623
  const D = Date.now();
7623
- if (D - h.value < f)
7624
+ if (D - U.value < f)
7624
7625
  return;
7625
- h.value = D;
7626
- const L = (t == null ? void 0 : t.value) || 1, S = i.value.rotation || 0, P = p(S), oA = Math.cos(P), G = Math.sin(P), q = i.value.width, rA = i.value.height, BA = i.value.x, cA = i.value.y, nA = 1;
7626
+ U.value = D;
7627
+ const L = (t == null ? void 0 : t.value) || 1, S = i.value.rotation || 0, P = Q(S), oA = Math.cos(P), G = Math.sin(P), q = i.value.width, rA = i.value.height, BA = i.value.x, cA = i.value.y, nA = 1;
7627
7628
  let X = q, z = rA;
7628
7629
  const IA = (O.clientX - o.value.x) / 3.7795275591 / L, pA = (O.clientY - o.value.y) / 3.7795275591 / L;
7629
7630
  let fA, hA;
7630
7631
  S === 0 ? (fA = IA, hA = pA) : (fA = IA * oA + pA * G, hA = -IA * G + pA * oA);
7631
7632
  const NA = !!a.value.props.lockAspectRatio, jA = q / rA, se = Math.abs(O.clientX - o.value.x), Je = Math.abs(O.clientY - o.value.y);
7632
- if (NA && !Q.value && (Q.value = se > Je ? "x" : "y"), l.value.includes("-")) {
7633
- if (NA && Q.value)
7634
- Q.value === "x" ? (["top-left", "bottom-left"].includes(l.value) ? X = Math.max(nA, q - fA) : X = Math.max(nA, q + fA), z = X / jA) : (["top-left", "top-right"].includes(l.value) ? z = Math.max(nA, rA - hA) : z = Math.max(nA, rA + hA), X = z * jA);
7633
+ if (NA && !p.value && (p.value = se > Je ? "x" : "y"), l.value.includes("-")) {
7634
+ if (NA && p.value)
7635
+ p.value === "x" ? (["top-left", "bottom-left"].includes(l.value) ? X = Math.max(nA, q - fA) : X = Math.max(nA, q + fA), z = X / jA) : (["top-left", "top-right"].includes(l.value) ? z = Math.max(nA, rA - hA) : z = Math.max(nA, rA + hA), X = z * jA);
7635
7636
  else if (l.value === "top-left" ? (X = Math.max(nA, q - fA), z = Math.max(nA, rA - hA)) : l.value === "top-right" ? (X = Math.max(nA, q + fA), z = Math.max(nA, rA - hA)) : l.value === "bottom-right" ? (X = Math.max(nA, q + fA), z = Math.max(nA, rA + hA)) : l.value === "bottom-left" && (X = Math.max(nA, q - fA), z = Math.max(nA, rA + hA)), NA) {
7636
7637
  const bA = X / z;
7637
7638
  if (Math.abs(bA - jA) > 0.01) {
@@ -7655,9 +7656,9 @@ function EF(e, A, t, r) {
7655
7656
  if ((S !== 0 || na < -0.5 || aa > ae + 0.5 || Tr < -0.5 || oa > ve + 0.5) && (it = !0), it) {
7656
7657
  const bA = C(ne, CA, X, z, S, ae, ve);
7657
7658
  if (bA.isOutOfBounds) {
7658
- let F = 0, Z = 0;
7659
- bA.minX < -0.5 ? F = -bA.minX + 0.5 : bA.maxX > ae + 0.5 && (F = ae - bA.maxX + 0.5), bA.minY < -0.5 ? Z = -bA.minY + 0.5 : bA.maxY > ve + 0.5 && (Z = ve - bA.maxY + 0.5);
7660
- const $ = ne + F, K = CA + Z;
7659
+ let F = 0, k = 0;
7660
+ bA.minX < -0.5 ? F = -bA.minX + 0.5 : bA.maxX > ae + 0.5 && (F = ae - bA.maxX + 0.5), bA.minY < -0.5 ? k = -bA.minY + 0.5 : bA.maxY > ve + 0.5 && (k = ve - bA.maxY + 0.5);
7661
+ const $ = ne + F, K = CA + k;
7661
7662
  if (!C($, K, X, z, S, ae, ve).isOutOfBounds)
7662
7663
  ne = $, CA = K;
7663
7664
  else
@@ -7667,7 +7668,7 @@ function EF(e, A, t, r) {
7667
7668
  (Math.abs(X - a.value.props.width) > 1e-3 || Math.abs(z - a.value.props.height) > 1e-3 || Math.abs(ne - a.value.props.x) > 1e-3 || Math.abs(CA - a.value.props.y) > 1e-3) && (a.value.props.x = Number(ne.toFixed(2)), a.value.props.y = Number(CA.toFixed(2)), a.value.props.width = Number(X.toFixed(2)), a.value.props.height = Number(z.toFixed(2)), B.value = { x: ne, y: CA, width: X, height: z });
7668
7669
  }
7669
7670
  function T() {
7670
- n.value = !1, a.value = null, s.value = "", c.value = { x: 0, y: 0 }, d.value = null, B.value = { x: 0, y: 0, width: 0, height: 0 }, g.value.clear(), U.value.clear(), u.value.length > 0 && (r.value = [...u.value]), u.value = [], document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", T), Q.value = null;
7671
+ n.value = !1, a.value = null, s.value = "", c.value = { x: 0, y: 0 }, d.value = null, B.value = { x: 0, y: 0, width: 0, height: 0 }, g.value.clear(), h.value.clear(), u.value.length > 0 && (r.value = [...u.value]), u.value = [], document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", T), p.value = null;
7671
7672
  }
7672
7673
  return {
7673
7674
  resizing: n,
@@ -7677,7 +7678,7 @@ function EF(e, A, t, r) {
7677
7678
  };
7678
7679
  }
7679
7680
  function mF(e = 2) {
7680
- const A = k([]);
7681
+ const A = Z([]);
7681
7682
  function t(o) {
7682
7683
  if (!o || A.value[A.value.length - 1] === o)
7683
7684
  return;
@@ -7718,38 +7719,38 @@ function vF() {
7718
7719
  return;
7719
7720
  a.preventDefault(), a.stopPropagation();
7720
7721
  const i = a.target.parentElement.getBoundingClientRect(), l = i.left + i.width / 2, s = i.top + i.height / 2;
7721
- let c = null, u = !1, d = B(a.clientX, a.clientY), h = o.props.rotation || 0, f = h;
7722
- function B(p, C) {
7723
- const v = p - l, w = C - s;
7722
+ let c = null, u = !1, d = B(a.clientX, a.clientY), U = o.props.rotation || 0, f = U;
7723
+ function B(Q, C) {
7724
+ const v = Q - l, w = C - s;
7724
7725
  let R = Math.atan2(w, v) * 180 / Math.PI + 90;
7725
7726
  return R > 180 && (R -= 360), R < -180 && (R += 360), R;
7726
7727
  }
7727
- function g(p) {
7728
- const C = p.clientX - l, v = p.clientY - s;
7728
+ function g(Q) {
7729
+ const C = Q.clientX - l, v = Q.clientY - s;
7729
7730
  if (Math.sqrt(C * C + v * v) < 20) {
7730
7731
  u = !0, c = null;
7731
7732
  return;
7732
7733
  }
7733
7734
  if (u) {
7734
- d = B(p.clientX, p.clientY), u = !1, c = null;
7735
+ d = B(Q.clientX, Q.clientY), u = !1, c = null;
7735
7736
  return;
7736
7737
  }
7737
- const R = B(p.clientX, p.clientY);
7738
+ const R = B(Q.clientX, Q.clientY);
7738
7739
  let M = R - d;
7739
- M > 180 && (M -= 360), M < -180 && (M += 360), h += M, d = R, f = r(f, h, 0.25);
7740
+ M > 180 && (M -= 360), M < -180 && (M += 360), U += M, d = R, f = r(f, U, 0.25);
7740
7741
  const T = (f % 360 + 360) % 360;
7741
7742
  Math.abs(o.props.rotation - T) >= 0.2 && (o.props.rotation = Number(T.toFixed(2))), c = null;
7742
7743
  }
7743
- const U = (p) => {
7744
- c || (c = requestAnimationFrame(() => g(p)));
7745
- }, Q = (p) => {
7746
- p && p.stopPropagation(), document.removeEventListener("mousemove", U), document.removeEventListener("mouseup", Q), c && (cancelAnimationFrame(c), c = null), u = !1;
7744
+ const h = (Q) => {
7745
+ c || (c = requestAnimationFrame(() => g(Q)));
7746
+ }, p = (Q) => {
7747
+ Q && Q.stopPropagation(), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", p), c && (cancelAnimationFrame(c), c = null), u = !1;
7747
7748
  const C = (v) => {
7748
7749
  v.stopImmediatePropagation(), document.removeEventListener("click", C, !0);
7749
7750
  };
7750
7751
  document.addEventListener("click", C, !0);
7751
7752
  };
7752
- document.addEventListener("mousemove", U), document.addEventListener("mouseup", Q);
7753
+ document.addEventListener("mousemove", h), document.addEventListener("mouseup", p);
7753
7754
  }
7754
7755
  return {
7755
7756
  startRotate: n
@@ -7779,15 +7780,15 @@ function RF(e, A, t) {
7779
7780
  const c = e.value[e.value.length - 1];
7780
7781
  let u = Number(c.props[i]) + Number(l);
7781
7782
  if (i === "x" || i === "y") {
7782
- const d = A != null && A.value ? A.value - c.props.width : 1 / 0, h = t != null && t.value ? t.value - c.props.height : 1 / 0;
7783
- i === "x" ? u = Math.max(0, Math.min(u, d)) : i === "y" && (u = Math.max(0, Math.min(u, h)));
7783
+ const d = A != null && A.value ? A.value - c.props.width : 1 / 0, U = t != null && t.value ? t.value - c.props.height : 1 / 0;
7784
+ i === "x" ? u = Math.max(0, Math.min(u, d)) : i === "y" && (u = Math.max(0, Math.min(u, U)));
7784
7785
  } else if (i === "width" || i === "height") {
7785
7786
  if (i === "width") {
7786
- const h = A != null && A.value ? A.value - c.props.x : 1 / 0;
7787
- u = Math.max(1, Math.min(u, h));
7787
+ const U = A != null && A.value ? A.value - c.props.x : 1 / 0;
7788
+ u = Math.max(1, Math.min(u, U));
7788
7789
  } else if (i === "height") {
7789
- const h = t != null && t.value ? t.value - c.props.y : 1 / 0;
7790
- u = Math.max(1, Math.min(u, h));
7790
+ const U = t != null && t.value ? t.value - c.props.y : 1 / 0;
7791
+ u = Math.max(1, Math.min(u, U));
7791
7792
  }
7792
7793
  }
7793
7794
  if (!(u < s)) {
@@ -7801,8 +7802,8 @@ function RF(e, A, t) {
7801
7802
  }
7802
7803
  }
7803
7804
  if (c.type === "horline" && i === "height") {
7804
- const h = u / 0.3528;
7805
- c.props.height = Number(u.toFixed(2)), c.props.LineWidth = Number(h.toFixed(2)) + "pt";
7805
+ const U = u / 0.3528;
7806
+ c.props.height = Number(u.toFixed(2)), c.props.LineWidth = Number(U.toFixed(2)) + "pt";
7806
7807
  return;
7807
7808
  }
7808
7809
  c.props[i] = Number(u.toFixed(2));
@@ -7850,7 +7851,7 @@ function RF(e, A, t) {
7850
7851
  return { handleMouseWheel: r, handleInputChange: n, adjustRotation: a };
7851
7852
  }
7852
7853
  function VF(e, A, t, r) {
7853
- const n = k(null);
7854
+ const n = Z(null);
7854
7855
  function a(i) {
7855
7856
  const l = document.activeElement.tagName.toLowerCase();
7856
7857
  if (!(l === "input" || l === "textarea") && !((i.key === "Delete" || i.key === "Backspace") && A.value.length > 0) && (i.ctrlKey || i.metaKey) && i.key.toLowerCase() === "c" && A.value.length > 0) {
@@ -7863,8 +7864,8 @@ function VF(e, A, t, r) {
7863
7864
  const s = JSON.parse(JSON.stringify(n.value));
7864
7865
  if (s.id = Date.now(), s.props) {
7865
7866
  let c = Number(s.props.x) + 5, u = Number(s.props.y) + 5;
7866
- const d = t.value - Number(s.props.width), h = r.value - Number(s.props.height);
7867
- s.props.x = Math.max(0, Math.min(c, d)), s.props.y = Math.max(0, Math.min(u, h)), s.props.x != c && (s.props.x = c - 5 * 2), s.props.y != u && (s.props.y = u - 5 * 2);
7867
+ const d = t.value - Number(s.props.width), U = r.value - Number(s.props.height);
7868
+ s.props.x = Math.max(0, Math.min(c, d)), s.props.y = Math.max(0, Math.min(u, U)), s.props.x != c && (s.props.x = c - 5 * 2), s.props.y != u && (s.props.y = u - 5 * 2);
7868
7869
  }
7869
7870
  e.value.push(s), A.value = [s], i.preventDefault();
7870
7871
  }
@@ -7872,41 +7873,41 @@ function VF(e, A, t, r) {
7872
7873
  return { handleCopy: a, handlePaste: o, clipboardData: n };
7873
7874
  }
7874
7875
  function TF(e = {}) {
7875
- const { items: A, dragItem: t, dragging: r } = e, n = k({
7876
+ const { items: A, dragItem: t, dragging: r } = e, n = Z({
7876
7877
  horizontal: [],
7877
7878
  // 水平对齐线 [{ y: number, visible: boolean }]
7878
7879
  vertical: []
7879
7880
  // 垂直对齐线 [{ x: number, visible: boolean }]
7880
7881
  }), a = 0.1;
7881
7882
  function o(d) {
7882
- const h = Number(d.props.x) || 0, f = Number(d.props.y) || 0, B = Number(d.props.width) || 0, g = Number(d.props.height) || 0;
7883
+ const U = Number(d.props.x) || 0, f = Number(d.props.y) || 0, B = Number(d.props.width) || 0, g = Number(d.props.height) || 0;
7883
7884
  return {
7884
- centerX: h + B / 2,
7885
+ centerX: U + B / 2,
7885
7886
  centerY: f + g / 2
7886
7887
  };
7887
7888
  }
7888
- function i(d, h) {
7889
+ function i(d, U) {
7889
7890
  const f = [], B = /* @__PURE__ */ new Set();
7890
- return h.forEach((g) => {
7891
- const U = o(g), Q = Math.abs(d.centerY - U.centerY);
7891
+ return U.forEach((g) => {
7892
+ const h = o(g), p = Math.abs(d.centerY - h.centerY);
7892
7893
  Math.round(d.centerY * 100) / 100;
7893
- const p = Math.round(U.centerY * 100) / 100;
7894
- Q <= a && !B.has(p) && (f.push({
7895
- y: p,
7894
+ const Q = Math.round(h.centerY * 100) / 100;
7895
+ p <= a && !B.has(Q) && (f.push({
7896
+ y: Q,
7896
7897
  visible: !0
7897
- }), B.add(p));
7898
+ }), B.add(Q));
7898
7899
  }), f;
7899
7900
  }
7900
- function l(d, h) {
7901
+ function l(d, U) {
7901
7902
  const f = [], B = /* @__PURE__ */ new Set();
7902
- return h.forEach((g) => {
7903
- const U = o(g), Q = Math.abs(d.centerX - U.centerX);
7903
+ return U.forEach((g) => {
7904
+ const h = o(g), p = Math.abs(d.centerX - h.centerX);
7904
7905
  Math.round(d.centerX * 100) / 100;
7905
- const p = Math.round(U.centerX * 100) / 100;
7906
- Q <= a && !B.has(p) && (f.push({
7907
- x: p,
7906
+ const Q = Math.round(h.centerX * 100) / 100;
7907
+ p <= a && !B.has(Q) && (f.push({
7908
+ x: Q,
7908
7909
  visible: !0
7909
- }), B.add(p));
7910
+ }), B.add(Q));
7910
7911
  }), f;
7911
7912
  }
7912
7913
  function s() {
@@ -7914,7 +7915,7 @@ function TF(e = {}) {
7914
7915
  n.value.horizontal = [], n.value.vertical = [];
7915
7916
  return;
7916
7917
  }
7917
- const d = o(t.value), h = A.value.filter((g) => g !== t.value), f = i(d, h), B = l(d, h);
7918
+ const d = o(t.value), U = A.value.filter((g) => g !== t.value), f = i(d, U), B = l(d, U);
7918
7919
  n.value.horizontal = f, n.value.vertical = B;
7919
7920
  }
7920
7921
  function c() {
@@ -8309,7 +8310,7 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
8309
8310
  if (lo === l && [lo, un, ao, oo].indexOf(c) !== -1 || [un, ao].indexOf(l) !== -1 && [un, dn].indexOf(c) !== -1 || [dn, oo].indexOf(l) !== -1 && c === dn || vl.indexOf(l) !== -1 && [El, qt].indexOf(c) !== -1 || vl.indexOf(c) !== -1 && l === $t || Qe.indexOf(l) !== -1 && Qe.indexOf(c) !== -1 || l === ut && Qe.indexOf(c) !== -1 || Qe.concat(JA).indexOf(l) !== -1 && c === Yt && oC.indexOf(e[i]) === -1 || Qe.concat(JA).indexOf(c) !== -1 && l === Gt)
8310
8311
  return eA;
8311
8312
  if (l === va && c === va) {
8312
- for (var h = t[a], f = 1; h > 0 && (h--, A[h] === va); )
8313
+ for (var U = t[a], f = 1; U > 0 && (U--, A[U] === va); )
8313
8314
  f++;
8314
8315
  if (f % 2 !== 0)
8315
8316
  return eA;
@@ -8534,8 +8535,8 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
8534
8535
  return this.consumeCodePoint(), this.consumeCodePoint(), dE;
8535
8536
  break;
8536
8537
  case vC:
8537
- var u = this.peekCodePoint(0), d = this.peekCodePoint(1), h = this.peekCodePoint(2);
8538
- if (qr(u, d, h)) {
8538
+ var u = this.peekCodePoint(0), d = this.peekCodePoint(1), U = this.peekCodePoint(2);
8539
+ if (qr(u, d, U)) {
8539
8540
  var o = this.consumeName();
8540
8541
  return { type: 7, value: o };
8541
8542
  }
@@ -8962,8 +8963,8 @@ var bl = function(e, A) {
8962
8963
  var t = A.filter(Nt), r = t[0], n = t[1], a = t[2], o = t[3], i = (r.type === 17 ? Ae(r.number) : Pn.parse(e, r)) / (Math.PI * 2), l = wA(n) ? n.number / 100 : 0, s = wA(a) ? a.number / 100 : 0, c = typeof o < "u" && wA(o) ? sA(o, 1) : 1;
8963
8964
  if (l === 0)
8964
8965
  return Se(s * 255, s * 255, s * 255, 1);
8965
- var u = s <= 0.5 ? s * (l + 1) : s + l - s * l, d = s * 2 - u, h = Ta(d, u, i + 1 / 3), f = Ta(d, u, i), B = Ta(d, u, i - 1 / 3);
8966
- return Se(h * 255, f * 255, B * 255, c);
8966
+ var u = s <= 0.5 ? s * (l + 1) : s + l - s * l, d = s * 2 - u, U = Ta(d, u, i + 1 / 3), f = Ta(d, u, i), B = Ta(d, u, i - 1 / 3);
8967
+ return Se(U * 255, f * 255, B * 255, c);
8967
8968
  }, FE = {
8968
8969
  hsl: bl,
8969
8970
  hsla: bl,
@@ -9163,14 +9164,14 @@ var bl = function(e, A) {
9163
9164
  if (c === null)
9164
9165
  s === null && (s = o);
9165
9166
  else if (s !== null) {
9166
- for (var u = o - s, d = n[s - 1], h = (c - d) / (u + 1), f = 1; f <= u; f++)
9167
- n[s + f - 1] = h * f;
9167
+ for (var u = o - s, d = n[s - 1], U = (c - d) / (u + 1), f = 1; f <= u; f++)
9168
+ n[s + f - 1] = U * f;
9168
9169
  s = null;
9169
9170
  }
9170
9171
  }
9171
9172
  return e.map(function(B, g) {
9172
- var U = B.color;
9173
- return { color: U, stop: Math.max(Math.min(1, n[g] / A), 0) };
9173
+ var h = B.color;
9174
+ return { color: h, stop: Math.max(Math.min(1, n[g] / A), 0) };
9174
9175
  });
9175
9176
  }, mE = function(e, A, t) {
9176
9177
  var r = A / 2, n = t / 2, a = sA(e[0], A) - r, o = n - sA(e[1], t);
@@ -9289,9 +9290,9 @@ var bl = function(e, A) {
9289
9290
  } else if (c.name === "color-stop") {
9290
9291
  var d = c.values.filter(Nt);
9291
9292
  if (d.length === 2) {
9292
- var u = He.parse(e, d[1]), h = d[0];
9293
- Ot(h) && r.push({
9294
- stop: { type: 16, number: h.number * 100, flags: h.flags },
9293
+ var u = He.parse(e, d[1]), U = d[0];
9294
+ Ot(U) && r.push({
9295
+ stop: { type: 16, number: U.number * 100, flags: U.flags },
9295
9296
  color: u
9296
9297
  });
9297
9298
  }
@@ -11581,16 +11582,16 @@ var wv = 1, Sa = 2, Ma = 3, Ll = 4, Gl = 5, Fv = 7, Yl = 8, ba = 9, Ha = 10, zl
11581
11582
  d.src = u.value, d.style.opacity = "1", s.appendChild(d);
11582
11583
  } else if (u.type === 18) {
11583
11584
  if (u.name === "attr") {
11584
- var h = u.values.filter(iA);
11585
- h.length && s.appendChild(i.createTextNode(A.getAttribute(h[0].value) || ""));
11585
+ var U = u.values.filter(iA);
11586
+ U.length && s.appendChild(i.createTextNode(A.getAttribute(U[0].value) || ""));
11586
11587
  } else if (u.name === "counter") {
11587
11588
  var f = u.values.filter(Nt), B = f[0], g = f[1];
11588
11589
  if (B && iA(B)) {
11589
- var U = a.counters.getCounterValue(B.value), Q = g && iA(g) ? fo.parse(a.context, g.value) : 3;
11590
- s.appendChild(i.createTextNode(gr(U, Q, !1)));
11590
+ var h = a.counters.getCounterValue(B.value), p = g && iA(g) ? fo.parse(a.context, g.value) : 3;
11591
+ s.appendChild(i.createTextNode(gr(h, p, !1)));
11591
11592
  }
11592
11593
  } else if (u.name === "counters") {
11593
- var p = u.values.filter(Nt), B = p[0], C = p[1], g = p[2];
11594
+ var Q = u.values.filter(Nt), B = Q[0], C = Q[1], g = Q[2];
11594
11595
  if (B && iA(B)) {
11595
11596
  var v = a.counters.getCounterValues(B.value), w = g && iA(g) ? fo.parse(a.context, g.value) : 3, R = C && C.type === 0 ? C.value : "", M = v.map(function(D) {
11596
11597
  return gr(D, w, !1);
@@ -11817,12 +11818,12 @@ var iy = function(e, A) {
11817
11818
  /** @class */
11818
11819
  function() {
11819
11820
  function e(A) {
11820
- var t = A.styles, r = A.bounds, n = Ar(t.borderTopLeftRadius, r.width, r.height), a = n[0], o = n[1], i = Ar(t.borderTopRightRadius, r.width, r.height), l = i[0], s = i[1], c = Ar(t.borderBottomRightRadius, r.width, r.height), u = c[0], d = c[1], h = Ar(t.borderBottomLeftRadius, r.width, r.height), f = h[0], B = h[1], g = [];
11821
+ var t = A.styles, r = A.bounds, n = Ar(t.borderTopLeftRadius, r.width, r.height), a = n[0], o = n[1], i = Ar(t.borderTopRightRadius, r.width, r.height), l = i[0], s = i[1], c = Ar(t.borderBottomRightRadius, r.width, r.height), u = c[0], d = c[1], U = Ar(t.borderBottomLeftRadius, r.width, r.height), f = U[0], B = U[1], g = [];
11821
11822
  g.push((a + l) / r.width), g.push((f + u) / r.width), g.push((o + B) / r.height), g.push((s + d) / r.height);
11822
- var U = Math.max.apply(Math, g);
11823
- U > 1 && (a /= U, o /= U, l /= U, s /= U, u /= U, d /= U, f /= U, B /= U);
11824
- var Q = r.width - l, p = r.height - d, C = r.width - u, v = r.height - B, w = t.borderTopWidth, R = t.borderRightWidth, M = t.borderBottomWidth, T = t.borderLeftWidth, O = sA(t.paddingTop, A.bounds.width), D = sA(t.paddingRight, A.bounds.width), L = sA(t.paddingBottom, A.bounds.width), S = sA(t.paddingLeft, A.bounds.width);
11825
- this.topLeftBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + T / 3, r.top + w / 3, a - T / 3, o - w / 3, aA.TOP_LEFT) : new H(r.left + T / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + Q, r.top + w / 3, l - R / 3, s - w / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R / 3, r.top + w / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u - R / 3, d - M / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 3, r.top + r.height - M / 3), this.bottomLeftBorderDoubleOuterBox = f > 0 || B > 0 ? dA(r.left + T / 3, r.top + v, f - T / 3, B - M / 3, aA.BOTTOM_LEFT) : new H(r.left + T / 3, r.top + r.height - M / 3), this.topLeftBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + T * 2 / 3, r.top + w * 2 / 3, a - T * 2 / 3, o - w * 2 / 3, aA.TOP_LEFT) : new H(r.left + T * 2 / 3, r.top + w * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + Q, r.top + w * 2 / 3, l - R * 2 / 3, s - w * 2 / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + w * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u - R * 2 / 3, d - M * 2 / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + r.height - M * 2 / 3), this.bottomLeftBorderDoubleInnerBox = f > 0 || B > 0 ? dA(r.left + T * 2 / 3, r.top + v, f - T * 2 / 3, B - M * 2 / 3, aA.BOTTOM_LEFT) : new H(r.left + T * 2 / 3, r.top + r.height - M * 2 / 3), this.topLeftBorderStroke = a > 0 || o > 0 ? dA(r.left + T / 2, r.top + w / 2, a - T / 2, o - w / 2, aA.TOP_LEFT) : new H(r.left + T / 2, r.top + w / 2), this.topRightBorderStroke = a > 0 || o > 0 ? dA(r.left + Q, r.top + w / 2, l - R / 2, s - w / 2, aA.TOP_RIGHT) : new H(r.left + r.width - R / 2, r.top + w / 2), this.bottomRightBorderStroke = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u - R / 2, d - M / 2, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 2, r.top + r.height - M / 2), this.bottomLeftBorderStroke = f > 0 || B > 0 ? dA(r.left + T / 2, r.top + v, f - T / 2, B - M / 2, aA.BOTTOM_LEFT) : new H(r.left + T / 2, r.top + r.height - M / 2), this.topLeftBorderBox = a > 0 || o > 0 ? dA(r.left, r.top, a, o, aA.TOP_LEFT) : new H(r.left, r.top), this.topRightBorderBox = l > 0 || s > 0 ? dA(r.left + Q, r.top, l, s, aA.TOP_RIGHT) : new H(r.left + r.width, r.top), this.bottomRightBorderBox = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u, d, aA.BOTTOM_RIGHT) : new H(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = f > 0 || B > 0 ? dA(r.left, r.top + v, f, B, aA.BOTTOM_LEFT) : new H(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || o > 0 ? dA(r.left + T, r.top + w, Math.max(0, a - T), Math.max(0, o - w), aA.TOP_LEFT) : new H(r.left + T, r.top + w), this.topRightPaddingBox = l > 0 || s > 0 ? dA(r.left + Math.min(Q, r.width - R), r.top + w, Q > r.width + R ? 0 : Math.max(0, l - R), Math.max(0, s - w), aA.TOP_RIGHT) : new H(r.left + r.width - R, r.top + w), this.bottomRightPaddingBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - T), r.top + Math.min(p, r.height - M), Math.max(0, u - R), Math.max(0, d - M), aA.BOTTOM_RIGHT) : new H(r.left + r.width - R, r.top + r.height - M), this.bottomLeftPaddingBox = f > 0 || B > 0 ? dA(r.left + T, r.top + Math.min(v, r.height - M), Math.max(0, f - T), Math.max(0, B - M), aA.BOTTOM_LEFT) : new H(r.left + T, r.top + r.height - M), this.topLeftContentBox = a > 0 || o > 0 ? dA(r.left + T + S, r.top + w + O, Math.max(0, a - (T + S)), Math.max(0, o - (w + O)), aA.TOP_LEFT) : new H(r.left + T + S, r.top + w + O), this.topRightContentBox = l > 0 || s > 0 ? dA(r.left + Math.min(Q, r.width + T + S), r.top + w + O, Q > r.width + T + S ? 0 : l - T + S, s - (w + O), aA.TOP_RIGHT) : new H(r.left + r.width - (R + D), r.top + w + O), this.bottomRightContentBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - (T + S)), r.top + Math.min(p, r.height + w + O), Math.max(0, u - (R + D)), d - (M + L), aA.BOTTOM_RIGHT) : new H(r.left + r.width - (R + D), r.top + r.height - (M + L)), this.bottomLeftContentBox = f > 0 || B > 0 ? dA(r.left + T + S, r.top + v, Math.max(0, f - (T + S)), B - (M + L), aA.BOTTOM_LEFT) : new H(r.left + T + S, r.top + r.height - (M + L));
11823
+ var h = Math.max.apply(Math, g);
11824
+ h > 1 && (a /= h, o /= h, l /= h, s /= h, u /= h, d /= h, f /= h, B /= h);
11825
+ var p = r.width - l, Q = r.height - d, C = r.width - u, v = r.height - B, w = t.borderTopWidth, R = t.borderRightWidth, M = t.borderBottomWidth, T = t.borderLeftWidth, O = sA(t.paddingTop, A.bounds.width), D = sA(t.paddingRight, A.bounds.width), L = sA(t.paddingBottom, A.bounds.width), S = sA(t.paddingLeft, A.bounds.width);
11826
+ this.topLeftBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + T / 3, r.top + w / 3, a - T / 3, o - w / 3, aA.TOP_LEFT) : new H(r.left + T / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + p, r.top + w / 3, l - R / 3, s - w / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R / 3, r.top + w / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R / 3, d - M / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 3, r.top + r.height - M / 3), this.bottomLeftBorderDoubleOuterBox = f > 0 || B > 0 ? dA(r.left + T / 3, r.top + v, f - T / 3, B - M / 3, aA.BOTTOM_LEFT) : new H(r.left + T / 3, r.top + r.height - M / 3), this.topLeftBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + T * 2 / 3, r.top + w * 2 / 3, a - T * 2 / 3, o - w * 2 / 3, aA.TOP_LEFT) : new H(r.left + T * 2 / 3, r.top + w * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + p, r.top + w * 2 / 3, l - R * 2 / 3, s - w * 2 / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + w * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R * 2 / 3, d - M * 2 / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + r.height - M * 2 / 3), this.bottomLeftBorderDoubleInnerBox = f > 0 || B > 0 ? dA(r.left + T * 2 / 3, r.top + v, f - T * 2 / 3, B - M * 2 / 3, aA.BOTTOM_LEFT) : new H(r.left + T * 2 / 3, r.top + r.height - M * 2 / 3), this.topLeftBorderStroke = a > 0 || o > 0 ? dA(r.left + T / 2, r.top + w / 2, a - T / 2, o - w / 2, aA.TOP_LEFT) : new H(r.left + T / 2, r.top + w / 2), this.topRightBorderStroke = a > 0 || o > 0 ? dA(r.left + p, r.top + w / 2, l - R / 2, s - w / 2, aA.TOP_RIGHT) : new H(r.left + r.width - R / 2, r.top + w / 2), this.bottomRightBorderStroke = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R / 2, d - M / 2, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 2, r.top + r.height - M / 2), this.bottomLeftBorderStroke = f > 0 || B > 0 ? dA(r.left + T / 2, r.top + v, f - T / 2, B - M / 2, aA.BOTTOM_LEFT) : new H(r.left + T / 2, r.top + r.height - M / 2), this.topLeftBorderBox = a > 0 || o > 0 ? dA(r.left, r.top, a, o, aA.TOP_LEFT) : new H(r.left, r.top), this.topRightBorderBox = l > 0 || s > 0 ? dA(r.left + p, r.top, l, s, aA.TOP_RIGHT) : new H(r.left + r.width, r.top), this.bottomRightBorderBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u, d, aA.BOTTOM_RIGHT) : new H(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = f > 0 || B > 0 ? dA(r.left, r.top + v, f, B, aA.BOTTOM_LEFT) : new H(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || o > 0 ? dA(r.left + T, r.top + w, Math.max(0, a - T), Math.max(0, o - w), aA.TOP_LEFT) : new H(r.left + T, r.top + w), this.topRightPaddingBox = l > 0 || s > 0 ? dA(r.left + Math.min(p, r.width - R), r.top + w, p > r.width + R ? 0 : Math.max(0, l - R), Math.max(0, s - w), aA.TOP_RIGHT) : new H(r.left + r.width - R, r.top + w), this.bottomRightPaddingBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - T), r.top + Math.min(Q, r.height - M), Math.max(0, u - R), Math.max(0, d - M), aA.BOTTOM_RIGHT) : new H(r.left + r.width - R, r.top + r.height - M), this.bottomLeftPaddingBox = f > 0 || B > 0 ? dA(r.left + T, r.top + Math.min(v, r.height - M), Math.max(0, f - T), Math.max(0, B - M), aA.BOTTOM_LEFT) : new H(r.left + T, r.top + r.height - M), this.topLeftContentBox = a > 0 || o > 0 ? dA(r.left + T + S, r.top + w + O, Math.max(0, a - (T + S)), Math.max(0, o - (w + O)), aA.TOP_LEFT) : new H(r.left + T + S, r.top + w + O), this.topRightContentBox = l > 0 || s > 0 ? dA(r.left + Math.min(p, r.width + T + S), r.top + w + O, p > r.width + T + S ? 0 : l - T + S, s - (w + O), aA.TOP_RIGHT) : new H(r.left + r.width - (R + D), r.top + w + O), this.bottomRightContentBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - (T + S)), r.top + Math.min(Q, r.height + w + O), Math.max(0, u - (R + D)), d - (M + L), aA.BOTTOM_RIGHT) : new H(r.left + r.width - (R + D), r.top + r.height - (M + L)), this.bottomLeftContentBox = f > 0 || B > 0 ? dA(r.left + T + S, r.top + v, Math.max(0, f - (T + S)), B - (M + L), aA.BOTTOM_LEFT) : new H(r.left + T + S, r.top + r.height - (M + L));
11826
11827
  }
11827
11828
  return e;
11828
11829
  }()
@@ -12002,10 +12003,10 @@ var dA = function(e, A, t, r, n) {
12002
12003
  return u > f.element.container.styles.zIndex.order ? (d = B, !1) : d > 0;
12003
12004
  }), s.negativeZIndex.splice(d, 0, c);
12004
12005
  } else if (u > 0) {
12005
- var h = 0;
12006
+ var U = 0;
12006
12007
  s.positiveZIndex.some(function(f, B) {
12007
- return u >= f.element.container.styles.zIndex.order ? (h = B + 1, !1) : h > 0;
12008
- }), s.positiveZIndex.splice(h, 0, c);
12008
+ return u >= f.element.container.styles.zIndex.order ? (U = B + 1, !1) : U > 0;
12009
+ }), s.positiveZIndex.splice(U, 0, c);
12009
12010
  } else
12010
12011
  s.zeroOrAutoZIndexOrTransformedOrOpacity.push(c);
12011
12012
  } else
@@ -12119,19 +12120,19 @@ var dA = function(e, A, t, r, n) {
12119
12120
  if (!l && !d)
12120
12121
  return [t.width, t.height];
12121
12122
  if (d && l) {
12122
- var h = c ? r : n * a, f = u ? n : r / a;
12123
- return [h, f];
12123
+ var U = c ? r : n * a, f = u ? n : r / a;
12124
+ return [U, f];
12124
12125
  }
12125
12126
  var B = c ? r : t.width, g = u ? n : t.height;
12126
12127
  return [B, g];
12127
12128
  }
12128
12129
  if (l) {
12129
- var U = 0, Q = 0;
12130
- return wA(o) ? U = sA(o, t.width) : wA(i) && (Q = sA(i, t.height)), gt(o) ? U = Q * a : (!i || gt(i)) && (Q = U / a), [U, Q];
12130
+ var h = 0, p = 0;
12131
+ return wA(o) ? h = sA(o, t.width) : wA(i) && (p = sA(i, t.height)), gt(o) ? h = p * a : (!i || gt(i)) && (p = h / a), [h, p];
12131
12132
  }
12132
- var p = null, C = null;
12133
- if (wA(o) ? p = sA(o, t.width) : i && wA(i) && (C = sA(i, t.height)), p !== null && (!i || gt(i)) && (C = c && u ? p / r * n : t.height), C !== null && gt(o) && (p = c && u ? C / n * r : t.width), p !== null && C !== null)
12134
- return [p, C];
12133
+ var Q = null, C = null;
12134
+ if (wA(o) ? Q = sA(o, t.width) : i && wA(i) && (C = sA(i, t.height)), Q !== null && (!i || gt(i)) && (C = c && u ? Q / r * n : t.height), C !== null && gt(o) && (Q = c && u ? C / n * r : t.width), Q !== null && C !== null)
12135
+ return [Q, C];
12135
12136
  throw new Error("Unable to calculate background-size for element");
12136
12137
  }, pt = function(e, A) {
12137
12138
  var t = e[A];
@@ -12275,17 +12276,17 @@ var dA = function(e, A, t, r, n) {
12275
12276
  }, A.prototype.renderTextNode = function(t, r) {
12276
12277
  return ZA(this, void 0, void 0, function() {
12277
12278
  var n, a, o, i, l, s, c, u, d = this;
12278
- return SA(this, function(h) {
12279
+ return SA(this, function(U) {
12279
12280
  return n = this.createFontStyle(r), a = n[0], o = n[1], i = n[2], this.ctx.font = a, this.ctx.direction = r.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", l = this.fontMetrics.getMetrics(o, i), s = l.baseline, c = l.middle, u = r.paintOrder, t.textBounds.forEach(function(f) {
12280
12281
  u.forEach(function(B) {
12281
12282
  switch (B) {
12282
12283
  case 0:
12283
12284
  d.ctx.fillStyle = mA(r.color), d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
12284
12285
  var g = r.textShadow;
12285
- g.length && f.text.trim().length && (g.slice(0).reverse().forEach(function(U) {
12286
- d.ctx.shadowColor = mA(U.color), d.ctx.shadowOffsetX = U.offsetX.number * d.options.scale, d.ctx.shadowOffsetY = U.offsetY.number * d.options.scale, d.ctx.shadowBlur = U.blur.number, d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
12287
- }), d.ctx.shadowColor = "", d.ctx.shadowOffsetX = 0, d.ctx.shadowOffsetY = 0, d.ctx.shadowBlur = 0), r.textDecorationLine.length && (d.ctx.fillStyle = mA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(U) {
12288
- switch (U) {
12286
+ g.length && f.text.trim().length && (g.slice(0).reverse().forEach(function(h) {
12287
+ d.ctx.shadowColor = mA(h.color), d.ctx.shadowOffsetX = h.offsetX.number * d.options.scale, d.ctx.shadowOffsetY = h.offsetY.number * d.options.scale, d.ctx.shadowBlur = h.blur.number, d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
12288
+ }), d.ctx.shadowColor = "", d.ctx.shadowOffsetX = 0, d.ctx.shadowOffsetY = 0, d.ctx.shadowBlur = 0), r.textDecorationLine.length && (d.ctx.fillStyle = mA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(h) {
12289
+ switch (h) {
12289
12290
  case 1:
12290
12291
  d.ctx.fillRect(f.bounds.left, Math.round(f.bounds.top + s), f.bounds.width, 1);
12291
12292
  break;
@@ -12316,7 +12317,7 @@ var dA = function(e, A, t, r, n) {
12316
12317
  }
12317
12318
  }, A.prototype.renderNodeContent = function(t) {
12318
12319
  return ZA(this, void 0, void 0, function() {
12319
- var r, n, a, o, i, l, Q, Q, s, c, u, d, C, h, f, v, B, g, U, Q, p, C, v;
12320
+ var r, n, a, o, i, l, p, p, s, c, u, d, C, U, f, v, B, g, h, p, Q, C, v;
12320
12321
  return SA(this, function(w) {
12321
12322
  switch (w.label) {
12322
12323
  case 0:
@@ -12337,7 +12338,7 @@ var dA = function(e, A, t, r, n) {
12337
12338
  case 5:
12338
12339
  return w.trys.push([5, 7, , 8]), [4, this.context.cache.match(r.src)];
12339
12340
  case 6:
12340
- return Q = w.sent(), this.renderReplacedElement(r, n, Q), [3, 8];
12341
+ return p = w.sent(), this.renderReplacedElement(r, n, p), [3, 8];
12341
12342
  case 7:
12342
12343
  return w.sent(), this.context.logger.error("Error loading image " + r.src), [3, 8];
12343
12344
  case 8:
@@ -12347,7 +12348,7 @@ var dA = function(e, A, t, r, n) {
12347
12348
  case 9:
12348
12349
  return w.trys.push([9, 11, , 12]), [4, this.context.cache.match(r.svg)];
12349
12350
  case 10:
12350
- return Q = w.sent(), this.renderReplacedElement(r, n, Q), [3, 12];
12351
+ return p = w.sent(), this.renderReplacedElement(r, n, p), [3, 12];
12351
12352
  case 11:
12352
12353
  return w.sent(), this.context.logger.error("Error loading svg " + r.svg.substring(0, 255)), [3, 12];
12353
12354
  case 12:
@@ -12371,7 +12372,7 @@ var dA = function(e, A, t, r, n) {
12371
12372
  new H(r.bounds.left + u * 0.84, r.bounds.top + u * 0.34085),
12372
12373
  new H(r.bounds.left + u * 0.39363, r.bounds.top + u * 0.79)
12373
12374
  ]), this.ctx.fillStyle = mA(As), this.ctx.fill(), this.ctx.restore()) : r.type === vn && r.checked && (this.ctx.save(), this.ctx.beginPath(), this.ctx.arc(r.bounds.left + u / 2, r.bounds.top + u / 2, u / 4, 0, Math.PI * 2, !0), this.ctx.fillStyle = mA(As), this.ctx.fill(), this.ctx.restore())), Gy(r) && r.value.length) {
12374
- switch (d = this.createFontStyle(a), C = d[0], h = d[1], f = this.fontMetrics.getMetrics(C, h).baseline, this.ctx.font = C, this.ctx.fillStyle = mA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = zy(r.styles.textAlign), v = In(r), B = 0, r.styles.textAlign) {
12375
+ switch (d = this.createFontStyle(a), C = d[0], U = d[1], f = this.fontMetrics.getMetrics(C, U).baseline, this.ctx.font = C, this.ctx.fillStyle = mA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = zy(r.styles.textAlign), v = In(r), B = 0, r.styles.textAlign) {
12375
12376
  case 1:
12376
12377
  B += v.width / 2;
12377
12378
  break;
@@ -12394,15 +12395,15 @@ var dA = function(e, A, t, r, n) {
12394
12395
  return [3, 20];
12395
12396
  if (r.styles.listStyleImage === null)
12396
12397
  return [3, 19];
12397
- if (U = r.styles.listStyleImage, U.type !== 0)
12398
+ if (h = r.styles.listStyleImage, h.type !== 0)
12398
12399
  return [3, 18];
12399
- Q = void 0, p = U.url, w.label = 15;
12400
+ p = void 0, Q = h.url, w.label = 15;
12400
12401
  case 15:
12401
- return w.trys.push([15, 17, , 18]), [4, this.context.cache.match(p)];
12402
+ return w.trys.push([15, 17, , 18]), [4, this.context.cache.match(Q)];
12402
12403
  case 16:
12403
- return Q = w.sent(), this.ctx.drawImage(Q, r.bounds.left - (Q.width + 10), r.bounds.top), [3, 18];
12404
+ return p = w.sent(), this.ctx.drawImage(p, r.bounds.left - (p.width + 10), r.bounds.top), [3, 18];
12404
12405
  case 17:
12405
- return w.sent(), this.context.logger.error("Error loading list-style-image " + p), [3, 18];
12406
+ return w.sent(), this.context.logger.error("Error loading list-style-image " + Q), [3, 18];
12406
12407
  case 18:
12407
12408
  return [3, 20];
12408
12409
  case 19:
@@ -12417,9 +12418,9 @@ var dA = function(e, A, t, r, n) {
12417
12418
  });
12418
12419
  }, A.prototype.renderStackContent = function(t) {
12419
12420
  return ZA(this, void 0, void 0, function() {
12420
- var r, n, U, a, o, U, i, l, U, s, c, U, u, d, U, h, f, U, B, g, U;
12421
- return SA(this, function(Q) {
12422
- switch (Q.label) {
12421
+ var r, n, h, a, o, h, i, l, h, s, c, h, u, d, h, U, f, h, B, g, h;
12422
+ return SA(this, function(p) {
12423
+ switch (p.label) {
12423
12424
  case 0:
12424
12425
  if (EA(
12425
12426
  t.element.container.flags,
@@ -12429,61 +12430,61 @@ var dA = function(e, A, t, r, n) {
12429
12430
  debugger;
12430
12431
  return [4, this.renderNodeBackgroundAndBorders(t.element)];
12431
12432
  case 1:
12432
- Q.sent(), r = 0, n = t.negativeZIndex, Q.label = 2;
12433
+ p.sent(), r = 0, n = t.negativeZIndex, p.label = 2;
12433
12434
  case 2:
12434
- return r < n.length ? (U = n[r], [4, this.renderStack(U)]) : [3, 5];
12435
+ return r < n.length ? (h = n[r], [4, this.renderStack(h)]) : [3, 5];
12435
12436
  case 3:
12436
- Q.sent(), Q.label = 4;
12437
+ p.sent(), p.label = 4;
12437
12438
  case 4:
12438
12439
  return r++, [3, 2];
12439
12440
  case 5:
12440
12441
  return [4, this.renderNodeContent(t.element)];
12441
12442
  case 6:
12442
- Q.sent(), a = 0, o = t.nonInlineLevel, Q.label = 7;
12443
+ p.sent(), a = 0, o = t.nonInlineLevel, p.label = 7;
12443
12444
  case 7:
12444
- return a < o.length ? (U = o[a], [4, this.renderNode(U)]) : [3, 10];
12445
+ return a < o.length ? (h = o[a], [4, this.renderNode(h)]) : [3, 10];
12445
12446
  case 8:
12446
- Q.sent(), Q.label = 9;
12447
+ p.sent(), p.label = 9;
12447
12448
  case 9:
12448
12449
  return a++, [3, 7];
12449
12450
  case 10:
12450
- i = 0, l = t.nonPositionedFloats, Q.label = 11;
12451
+ i = 0, l = t.nonPositionedFloats, p.label = 11;
12451
12452
  case 11:
12452
- return i < l.length ? (U = l[i], [4, this.renderStack(U)]) : [3, 14];
12453
+ return i < l.length ? (h = l[i], [4, this.renderStack(h)]) : [3, 14];
12453
12454
  case 12:
12454
- Q.sent(), Q.label = 13;
12455
+ p.sent(), p.label = 13;
12455
12456
  case 13:
12456
12457
  return i++, [3, 11];
12457
12458
  case 14:
12458
- s = 0, c = t.nonPositionedInlineLevel, Q.label = 15;
12459
+ s = 0, c = t.nonPositionedInlineLevel, p.label = 15;
12459
12460
  case 15:
12460
- return s < c.length ? (U = c[s], [4, this.renderStack(U)]) : [3, 18];
12461
+ return s < c.length ? (h = c[s], [4, this.renderStack(h)]) : [3, 18];
12461
12462
  case 16:
12462
- Q.sent(), Q.label = 17;
12463
+ p.sent(), p.label = 17;
12463
12464
  case 17:
12464
12465
  return s++, [3, 15];
12465
12466
  case 18:
12466
- u = 0, d = t.inlineLevel, Q.label = 19;
12467
+ u = 0, d = t.inlineLevel, p.label = 19;
12467
12468
  case 19:
12468
- return u < d.length ? (U = d[u], [4, this.renderNode(U)]) : [3, 22];
12469
+ return u < d.length ? (h = d[u], [4, this.renderNode(h)]) : [3, 22];
12469
12470
  case 20:
12470
- Q.sent(), Q.label = 21;
12471
+ p.sent(), p.label = 21;
12471
12472
  case 21:
12472
12473
  return u++, [3, 19];
12473
12474
  case 22:
12474
- h = 0, f = t.zeroOrAutoZIndexOrTransformedOrOpacity, Q.label = 23;
12475
+ U = 0, f = t.zeroOrAutoZIndexOrTransformedOrOpacity, p.label = 23;
12475
12476
  case 23:
12476
- return h < f.length ? (U = f[h], [4, this.renderStack(U)]) : [3, 26];
12477
+ return U < f.length ? (h = f[U], [4, this.renderStack(h)]) : [3, 26];
12477
12478
  case 24:
12478
- Q.sent(), Q.label = 25;
12479
+ p.sent(), p.label = 25;
12479
12480
  case 25:
12480
- return h++, [3, 23];
12481
+ return U++, [3, 23];
12481
12482
  case 26:
12482
- B = 0, g = t.positiveZIndex, Q.label = 27;
12483
+ B = 0, g = t.positiveZIndex, p.label = 27;
12483
12484
  case 27:
12484
- return B < g.length ? (U = g[B], [4, this.renderStack(U)]) : [3, 30];
12485
+ return B < g.length ? (h = g[B], [4, this.renderStack(h)]) : [3, 30];
12485
12486
  case 28:
12486
- Q.sent(), Q.label = 29;
12487
+ p.sent(), p.label = 29;
12487
12488
  case 29:
12488
12489
  return B++, [3, 27];
12489
12490
  case 30:
@@ -12521,7 +12522,7 @@ var dA = function(e, A, t, r, n) {
12521
12522
  switch (s.label) {
12522
12523
  case 0:
12523
12524
  r = t.styles.backgroundImage.length - 1, n = function(c) {
12524
- var u, d, h, O, G, q, S, P, M, f, O, G, q, S, P, B, g, U, Q, p, C, v, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA, pA;
12525
+ var u, d, U, O, G, q, S, P, M, f, O, G, q, S, P, B, g, h, p, Q, C, v, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA, pA;
12525
12526
  return SA(this, function(fA) {
12526
12527
  switch (fA.label) {
12527
12528
  case 0:
@@ -12535,13 +12536,13 @@ var dA = function(e, A, t, r, n) {
12535
12536
  case 3:
12536
12537
  return fA.sent(), a.context.logger.error("Error loading background-image " + d), [3, 4];
12537
12538
  case 4:
12538
- return u && (h = Ja(t, r, [
12539
+ return u && (U = Ja(t, r, [
12539
12540
  u.width,
12540
12541
  u.height,
12541
12542
  u.width / u.height
12542
- ]), O = h[0], G = h[1], q = h[2], S = h[3], P = h[4], M = a.ctx.createPattern(a.resizeImage(u, S, P), "repeat"), a.renderRepeat(O, M, G, q)), [3, 6];
12543
+ ]), O = U[0], G = U[1], q = U[2], S = U[3], P = U[4], M = a.ctx.createPattern(a.resizeImage(u, S, P), "repeat"), a.renderRepeat(O, M, G, q)), [3, 6];
12543
12544
  case 5:
12544
- IE(c) ? (f = Ja(t, r, [null, null, null]), O = f[0], G = f[1], q = f[2], S = f[3], P = f[4], B = vE(c.angle, S, P), g = B[0], U = B[1], Q = B[2], p = B[3], C = B[4], v = document.createElement("canvas"), v.width = S, v.height = P, w = v.getContext("2d"), R = w.createLinearGradient(U, p, Q, C), Hl(c.stops, g).forEach(function(hA) {
12545
+ IE(c) ? (f = Ja(t, r, [null, null, null]), O = f[0], G = f[1], q = f[2], S = f[3], P = f[4], B = vE(c.angle, S, P), g = B[0], h = B[1], p = B[2], Q = B[3], C = B[4], v = document.createElement("canvas"), v.width = S, v.height = P, w = v.getContext("2d"), R = w.createLinearGradient(h, Q, p, C), Hl(c.stops, g).forEach(function(hA) {
12545
12546
  return R.addColorStop(hA.stop, mA(hA.color));
12546
12547
  }), w.fillStyle = R, w.fillRect(0, 0, S, P), S > 0 && P > 0 && (M = a.ctx.createPattern(v, "repeat"), a.renderRepeat(O, M, G, q))) : NE(c) && (T = Ja(t, r, [
12547
12548
  null,
@@ -12617,10 +12618,10 @@ var dA = function(e, A, t, r, n) {
12617
12618
  { style: r.borderLeftStyle, color: r.borderLeftColor, width: r.borderLeftWidth }
12618
12619
  ], o = Yy(pt(r.backgroundClip, 0), t.curves), n || r.boxShadow.length ? (this.ctx.save(), this.path(o), this.ctx.clip(), xe(r.backgroundColor) || (this.ctx.fillStyle = mA(r.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(t.container)]) : [3, 2];
12619
12620
  case 1:
12620
- d.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(h) {
12621
+ d.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(U) {
12621
12622
  u.ctx.save();
12622
- var f = Vn(t.curves), B = h.inset ? 0 : Ky, g = Sy(f, -B + (h.inset ? 1 : -1) * h.spread.number, (h.inset ? 1 : -1) * h.spread.number, h.spread.number * (h.inset ? -2 : 2), h.spread.number * (h.inset ? -2 : 2));
12623
- h.inset ? (u.path(f), u.ctx.clip(), u.mask(g)) : (u.mask(f), u.ctx.clip(), u.path(g)), u.ctx.shadowOffsetX = h.offsetX.number + B, u.ctx.shadowOffsetY = h.offsetY.number, u.ctx.shadowColor = mA(h.color), u.ctx.shadowBlur = h.blur.number, u.ctx.fillStyle = h.inset ? mA(h.color) : "rgba(0,0,0,1)", u.ctx.fill(), u.ctx.restore();
12623
+ var f = Vn(t.curves), B = U.inset ? 0 : Ky, g = Sy(f, -B + (U.inset ? 1 : -1) * U.spread.number, (U.inset ? 1 : -1) * U.spread.number, U.spread.number * (U.inset ? -2 : 2), U.spread.number * (U.inset ? -2 : 2));
12624
+ U.inset ? (u.path(f), u.ctx.clip(), u.mask(g)) : (u.mask(f), u.ctx.clip(), u.path(g)), u.ctx.shadowOffsetX = U.offsetX.number + B, u.ctx.shadowOffsetY = U.offsetY.number, u.ctx.shadowColor = mA(U.color), u.ctx.shadowBlur = U.blur.number, u.ctx.fillStyle = U.inset ? mA(U.color) : "rgba(0,0,0,1)", u.ctx.fill(), u.ctx.restore();
12624
12625
  }), d.label = 2;
12625
12626
  case 2:
12626
12627
  i = 0, l = 0, s = a, d.label = 3;
@@ -12668,9 +12669,9 @@ var dA = function(e, A, t, r, n) {
12668
12669
  });
12669
12670
  }, A.prototype.renderDashedDottedBorder = function(t, r, n, a, o) {
12670
12671
  return ZA(this, void 0, void 0, function() {
12671
- var i, l, s, c, u, d, h, f, B, g, U, Q, p, C, v, w, v, w;
12672
+ var i, l, s, c, u, d, U, f, B, g, h, p, Q, C, v, w, v, w;
12672
12673
  return SA(this, function(R) {
12673
- return this.ctx.save(), i = xy(a, n), l = ds(a, n), o === 2 && (this.path(l), this.ctx.clip()), qA(l[0]) ? (s = l[0].start.x, c = l[0].start.y) : (s = l[0].x, c = l[0].y), qA(l[1]) ? (u = l[1].end.x, d = l[1].end.y) : (u = l[1].x, d = l[1].y), n === 0 || n === 2 ? h = Math.abs(s - u) : h = Math.abs(c - d), this.ctx.beginPath(), o === 3 ? this.formatPath(i) : this.formatPath(l.slice(0, 2)), f = r < 3 ? r * 3 : r * 2, B = r < 3 ? r * 2 : r, o === 3 && (f = r, B = r), g = !0, h <= f * 2 ? g = !1 : h <= f * 2 + B ? (U = h / (2 * f + B), f *= U, B *= U) : (Q = Math.floor((h + B) / (f + B)), p = (h - Q * f) / (Q - 1), C = (h - (Q + 1) * f) / Q, B = C <= 0 || Math.abs(B - p) < Math.abs(B - C) ? p : C), g && (o === 3 ? this.ctx.setLineDash([0, f + B]) : this.ctx.setLineDash([f, B])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = mA(t), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (qA(l[0]) && (v = l[3], w = l[0], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke()), qA(l[1]) && (v = l[1], w = l[2], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
12674
+ return this.ctx.save(), i = xy(a, n), l = ds(a, n), o === 2 && (this.path(l), this.ctx.clip()), qA(l[0]) ? (s = l[0].start.x, c = l[0].start.y) : (s = l[0].x, c = l[0].y), qA(l[1]) ? (u = l[1].end.x, d = l[1].end.y) : (u = l[1].x, d = l[1].y), n === 0 || n === 2 ? U = Math.abs(s - u) : U = Math.abs(c - d), this.ctx.beginPath(), o === 3 ? this.formatPath(i) : this.formatPath(l.slice(0, 2)), f = r < 3 ? r * 3 : r * 2, B = r < 3 ? r * 2 : r, o === 3 && (f = r, B = r), g = !0, U <= f * 2 ? g = !1 : U <= f * 2 + B ? (h = U / (2 * f + B), f *= h, B *= h) : (p = Math.floor((U + B) / (f + B)), Q = (U - p * f) / (p - 1), C = (U - (p + 1) * f) / p, B = C <= 0 || Math.abs(B - Q) < Math.abs(B - C) ? Q : C), g && (o === 3 ? this.ctx.setLineDash([0, f + B]) : this.ctx.setLineDash([f, B])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = mA(t), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (qA(l[0]) && (v = l[3], w = l[0], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke()), qA(l[1]) && (v = l[1], w = l[2], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
12674
12675
  2
12675
12676
  /*return*/
12676
12677
  ];
@@ -12787,7 +12788,7 @@ var dA = function(e, A, t, r, n) {
12787
12788
  typeof window < "u" && Nu.setContext(window);
12788
12789
  var eR = function(e, A) {
12789
12790
  return ZA(void 0, void 0, void 0, function() {
12790
- var t, r, n, a, o, i, l, s, c, u, d, h, f, B, g, U, Q, p, C, v, R, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA;
12791
+ var t, r, n, a, o, i, l, s, c, u, d, U, f, B, g, h, p, Q, C, v, R, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA;
12791
12792
  return SA(this, function(pA) {
12792
12793
  switch (pA.label) {
12793
12794
  case 0:
@@ -12815,23 +12816,23 @@ var eR = function(e, A) {
12815
12816
  copyStyles: s
12816
12817
  }, l.logger.debug("Starting document clone with size " + i.width + "x" + i.height + " scrolled to " + -i.left + "," + -i.top), u = new ss(l, e, c), d = u.clonedReferenceElement, d ? [4, u.toIFrame(t, i)] : [2, Promise.reject("Unable to find element in cloned iframe")];
12817
12818
  case 1:
12818
- return h = pA.sent(), f = Fi(d) || ty(d) ? SF(d.ownerDocument) : jn(l, d), B = f.width, g = f.height, U = f.left, Q = f.top, p = tR(l, d, A.backgroundColor), C = {
12819
+ return U = pA.sent(), f = Fi(d) || ty(d) ? SF(d.ownerDocument) : jn(l, d), B = f.width, g = f.height, h = f.left, p = f.top, Q = tR(l, d, A.backgroundColor), C = {
12819
12820
  canvas: A.canvas,
12820
- backgroundColor: p,
12821
+ backgroundColor: Q,
12821
12822
  scale: (BA = (rA = A.scale) !== null && rA !== void 0 ? rA : r.devicePixelRatio) !== null && BA !== void 0 ? BA : 1,
12822
- x: ((cA = A.x) !== null && cA !== void 0 ? cA : 0) + U,
12823
- y: ((nA = A.y) !== null && nA !== void 0 ? nA : 0) + Q,
12823
+ x: ((cA = A.x) !== null && cA !== void 0 ? cA : 0) + h,
12824
+ y: ((nA = A.y) !== null && nA !== void 0 ? nA : 0) + p,
12824
12825
  width: (X = A.width) !== null && X !== void 0 ? X : Math.ceil(B),
12825
12826
  height: (z = A.height) !== null && z !== void 0 ? z : Math.ceil(g)
12826
12827
  }, s ? (l.logger.debug("Document cloned, using foreign object rendering"), R = new Py(l, C), [4, R.render(d)]) : [3, 3];
12827
12828
  case 2:
12828
12829
  return v = pA.sent(), [3, 5];
12829
12830
  case 3:
12830
- return l.logger.debug("Document cloned, element located at " + U + "," + Q + " with size " + B + "x" + g + " using computed rendering"), l.logger.debug("Starting DOM parsing"), w = Eu(l, d), p === w.styles.backgroundColor && (w.styles.backgroundColor = Ee.TRANSPARENT), l.logger.debug("Starting renderer for element at " + C.x + "," + C.y + " with size " + C.width + "x" + C.height), R = new Ly(l, C), [4, R.render(w)];
12831
+ return l.logger.debug("Document cloned, element located at " + h + "," + p + " with size " + B + "x" + g + " using computed rendering"), l.logger.debug("Starting DOM parsing"), w = Eu(l, d), Q === w.styles.backgroundColor && (w.styles.backgroundColor = Ee.TRANSPARENT), l.logger.debug("Starting renderer for element at " + C.x + "," + C.y + " with size " + C.width + "x" + C.height), R = new Ly(l, C), [4, R.render(w)];
12831
12832
  case 4:
12832
12833
  v = pA.sent(), pA.label = 5;
12833
12834
  case 5:
12834
- return (!((IA = A.removeContainer) !== null && IA !== void 0) || IA) && (ss.destroy(h) || l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), l.logger.debug("Finished rendering"), [2, v];
12835
+ return (!((IA = A.removeContainer) !== null && IA !== void 0) || IA) && (ss.destroy(U) || l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), l.logger.debug("Finished rendering"), [2, v];
12835
12836
  }
12836
12837
  });
12837
12838
  });
@@ -12860,7 +12861,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12860
12861
  }, ZR = { class: "switch-input" }, sn = 0.05, kR = {
12861
12862
  __name: "panels",
12862
12863
  props: {
12863
- templateData: {
12864
+ templateInfo: {
12864
12865
  type: Object,
12865
12866
  default: () => ({
12866
12867
  graphData: {},
@@ -12891,7 +12892,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12891
12892
  }
12892
12893
  },
12893
12894
  setup(e, { expose: A }) {
12894
- const t = e, r = k({}), n = k(0), a = k([]), o = k(1);
12895
+ const t = e, r = Z({}), n = Z(0), a = Z([]), o = Z(1);
12895
12896
  let i = 1;
12896
12897
  const l = b(() => {
12897
12898
  var E;
@@ -12900,8 +12901,8 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12900
12901
  var E;
12901
12902
  return ((E = r.value) == null ? void 0 : E.printHeight) || 0;
12902
12903
  });
12903
- k(!1);
12904
- const c = k(!1), u = k(!1), d = k(/* @__PURE__ */ new Map()), h = k(/* @__PURE__ */ new Map()), f = new Map(bc.map((E) => [E.type, E])), { selectedItems: B, selectItem: g, getCurrentSelected: U, clearSelection: Q } = mF(), { dragging: p, dragItem: C, startDrag: v } = CF({
12904
+ Z(!1);
12905
+ const c = Z(!1), u = Z(!1), d = Z(/* @__PURE__ */ new Map()), U = Z(/* @__PURE__ */ new Map()), f = new Map(bc.map((E) => [E.type, E])), { selectedItems: B, selectItem: g, getCurrentSelected: h, clearSelection: p } = mF(), { dragging: Q, dragItem: C, startDrag: v } = CF({
12905
12906
  scale: o,
12906
12907
  canvasWidth: l,
12907
12908
  canvasHeight: s,
@@ -12920,15 +12921,15 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12920
12921
  }), { alignmentGuides: w, showGuides: R, updateAlignmentGuides: M, clearAlignmentGuides: T } = TF({
12921
12922
  items: a,
12922
12923
  dragItem: C,
12923
- dragging: p
12924
+ dragging: Q
12924
12925
  }), { startResize: O } = EF(l, s, o, B), { startRotate: D } = vF();
12925
12926
  FA(() => B.value, () => {
12926
12927
  d.value.clear();
12927
12928
  }, { deep: !0 });
12928
12929
  const L = (E) => {
12929
12930
  const F = `${E.id}_${E.props.x.toFixed(1)}_${E.props.y.toFixed(1)}_${E.props.width}_${E.props.height}_${E.props.rotation}`;
12930
- if (h.value.has(F))
12931
- return h.value.get(F);
12931
+ if (U.value.has(F))
12932
+ return U.value.get(F);
12932
12933
  const $ = (E.props.rotation || 0) * Math.PI / 180, K = [
12933
12934
  { x: 0, y: 0 },
12934
12935
  // top-left
@@ -12945,13 +12946,13 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12945
12946
  y: Number((Ke + Y + E.props.y).toFixed(2))
12946
12947
  };
12947
12948
  });
12948
- if (h.value.set(F, y), h.value.size > 100) {
12949
- const lA = h.value.keys().next().value;
12950
- h.value.delete(lA);
12949
+ if (U.value.set(F, y), U.value.size > 100) {
12950
+ const lA = U.value.keys().next().value;
12951
+ U.value.delete(lA);
12951
12952
  }
12952
12953
  return y;
12953
12954
  }, S = (E) => {
12954
- const F = L(E), Z = F.map((_) => _.x), $ = F.map((_) => _.y), K = Number(Math.min(...Z).toFixed(2)), J = Number(Math.max(...Z).toFixed(2)), Y = Number(Math.min(...$).toFixed(2)), y = Number(Math.max(...$).toFixed(2));
12955
+ const F = L(E), k = F.map((_) => _.x), $ = F.map((_) => _.y), K = Number(Math.min(...k).toFixed(2)), J = Number(Math.max(...k).toFixed(2)), Y = Number(Math.min(...$).toFixed(2)), y = Number(Math.max(...$).toFixed(2));
12955
12956
  return {
12956
12957
  minX: K,
12957
12958
  maxX: J,
@@ -12963,35 +12964,35 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12963
12964
  centerY: (Y + y) / 2
12964
12965
  };
12965
12966
  }, P = (E, F) => {
12966
- const Z = S(E);
12967
+ const k = S(E);
12967
12968
  if (E.type === "horline" && F === "bottom") {
12968
12969
  const J = parseFloat(E.props.LineWidth || "0.75") * 1.333 / 3.78;
12969
12970
  return {
12970
- top: Z.minY + J + "mm"
12971
+ top: k.minY + J + "mm"
12971
12972
  };
12972
12973
  }
12973
12974
  if (E.type === "verline" && F === "right") {
12974
12975
  const J = parseFloat(E.props.LineWidth || "0.75") * 1.333 / 3.78;
12975
12976
  return {
12976
- left: Z.minX + J + "mm"
12977
+ left: k.minX + J + "mm"
12977
12978
  };
12978
12979
  }
12979
12980
  switch (F) {
12980
12981
  case "left":
12981
12982
  return {
12982
- left: Z.minX + "mm"
12983
+ left: k.minX + "mm"
12983
12984
  };
12984
12985
  case "right":
12985
12986
  return {
12986
- left: Z.maxX + "mm"
12987
+ left: k.maxX + "mm"
12987
12988
  };
12988
12989
  case "top":
12989
12990
  return {
12990
- top: Z.minY + "mm"
12991
+ top: k.minY + "mm"
12991
12992
  };
12992
12993
  case "bottom":
12993
12994
  return {
12994
- top: Z.maxY + "mm"
12995
+ top: k.maxY + "mm"
12995
12996
  };
12996
12997
  default:
12997
12998
  return {};
@@ -13001,20 +13002,20 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13001
13002
  const E = document.querySelector(".canvas-container");
13002
13003
  if (!E || !l.value || !s.value)
13003
13004
  return;
13004
- const F = E.getBoundingClientRect(), Z = pn(l.value), $ = pn(s.value);
13005
- let K = F.width / Z, J = F.height / $;
13006
- K = K - 40 * K / Z, J = J - 40 * J / $;
13005
+ const F = E.getBoundingClientRect(), k = pn(l.value), $ = pn(s.value);
13006
+ let K = F.width / k, J = F.height / $;
13007
+ K = K - 40 * K / k, J = J - 40 * J / $;
13007
13008
  let Y = Math.min(K, J);
13008
13009
  i = Math.max(0.8, Math.min(4, Y)), o.value = i = G(i, 1), setTimeout(() => n.value = 1, 100);
13009
13010
  });
13010
13011
  };
13011
13012
  function G(E, F) {
13012
13013
  E = E.toString();
13013
- let Z = E.indexOf(".");
13014
- return Z !== -1 ? E = E.substring(0, F + Z + 1) : E = E.substring(0), Number(parseFloat(E).toFixed(F));
13014
+ let k = E.indexOf(".");
13015
+ return k !== -1 ? E = E.substring(0, F + k + 1) : E = E.substring(0), Number(parseFloat(E).toFixed(F));
13015
13016
  }
13016
13017
  const q = (E) => f.get(E) || null, rA = (E) => {
13017
- const F = B.value.indexOf(E), Z = F === B.value.length - 1, $ = F !== -1, K = `${E.id}_${Math.round(E.props.x * 10)}_${Math.round(E.props.y * 10)}_${E.props.width}_${E.props.height}_${E.props.rotation}_${$}_${Z}`;
13018
+ const F = B.value.indexOf(E), k = F === B.value.length - 1, $ = F !== -1, K = `${E.id}_${Math.round(E.props.x * 10)}_${Math.round(E.props.y * 10)}_${E.props.width}_${E.props.height}_${E.props.rotation}_${$}_${k}`;
13018
13019
  if (d.value.has(K))
13019
13020
  return d.value.get(K);
13020
13021
  const J = {
@@ -13022,16 +13023,16 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13022
13023
  height: E.props.height + "mm",
13023
13024
  transform: `translate(${E.props.x}mm, ${E.props.y}mm) rotate(${E.props.rotation}deg)`
13024
13025
  };
13025
- if ($ ? Z ? J.zIndex = 1e3 : J.zIndex = 999 : J.zIndex = 10, d.value.set(K, J), d.value.size > 200) {
13026
+ if ($ ? k ? J.zIndex = 1e3 : J.zIndex = 999 : J.zIndex = 10, d.value.set(K, J), d.value.size > 200) {
13026
13027
  const Y = d.value.keys().next().value;
13027
13028
  d.value.delete(Y);
13028
13029
  }
13029
13030
  return J;
13030
13031
  }, BA = (E) => {
13031
- const F = B.value.some(($) => $.id === E.id), Z = U() === E;
13032
+ const F = B.value.some(($) => $.id === E.id), k = h() === E;
13032
13033
  return {
13033
13034
  "component-selected": F,
13034
- "component-current": F && Z,
13035
+ "component-current": F && k,
13035
13036
  "no-outline": F && (E.type === "horline" || E.type === "verline")
13036
13037
  };
13037
13038
  }, cA = (E, F) => {
@@ -13071,44 +13072,44 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13071
13072
  const F = document.activeElement.tagName.toLowerCase();
13072
13073
  if (F === "input" || F === "textarea")
13073
13074
  return;
13074
- const Z = U();
13075
- if (!Z)
13075
+ const k = h();
13076
+ if (!k)
13076
13077
  return;
13077
- const $ = Number(Z.props.width) || 0, K = Number(Z.props.height) || 0;
13078
- let J = Z.props.x, Y = Z.props.y, y = !1;
13079
- if (E.key === "ArrowLeft" ? (J = Number((Z.props.x - sn).toFixed(2)), y = !0) : E.key === "ArrowRight" ? (J = Number((Z.props.x + sn).toFixed(2)), y = !0) : E.key === "ArrowUp" ? (Y = Number((Z.props.y - sn).toFixed(2)), y = !0) : E.key === "ArrowDown" && (Y = Number((Z.props.y + sn).toFixed(2)), y = !0), y) {
13078
+ const $ = Number(k.props.width) || 0, K = Number(k.props.height) || 0;
13079
+ let J = k.props.x, Y = k.props.y, y = !1;
13080
+ if (E.key === "ArrowLeft" ? (J = Number((k.props.x - sn).toFixed(2)), y = !0) : E.key === "ArrowRight" ? (J = Number((k.props.x + sn).toFixed(2)), y = !0) : E.key === "ArrowUp" ? (Y = Number((k.props.y - sn).toFixed(2)), y = !0) : E.key === "ArrowDown" && (Y = Number((k.props.y + sn).toFixed(2)), y = !0), y) {
13080
13081
  const lA = l.value - $, _ = s.value - K;
13081
- J < 0 ? J = 0 : J > lA && (J = lA), Y < 0 ? Y = 0 : Y > _ && (Y = _), Z.props.x = J, Z.props.y = Y, E.preventDefault();
13082
+ J < 0 ? J = 0 : J > lA && (J = lA), Y < 0 ? Y = 0 : Y > _ && (Y = _), k.props.x = J, k.props.y = Y, E.preventDefault();
13082
13083
  }
13083
13084
  }
13084
- const IA = ({ e: E, comp: F, previewDiv: Z }) => {
13085
+ const IA = ({ e: E, comp: F, previewDiv: k }) => {
13085
13086
  var $, K;
13086
- ($ = E == null ? void 0 : E.dataTransfer) == null || $.setData("comp", JSON.stringify(F)), document.body.appendChild(Z), (K = E == null ? void 0 : E.dataTransfer) == null || K.setDragImage(Z, 0, 0), setTimeout(() => document.body.removeChild(Z), 0);
13087
+ ($ = E == null ? void 0 : E.dataTransfer) == null || $.setData("comp", JSON.stringify(F)), document.body.appendChild(k), (K = E == null ? void 0 : E.dataTransfer) == null || K.setDragImage(k, 0, 0), setTimeout(() => document.body.removeChild(k), 0);
13087
13088
  }, pA = async (E) => {
13088
13089
  var Nr, mi, vi;
13089
13090
  E.preventDefault();
13090
- const F = JSON.parse(((mi = (Nr = E == null ? void 0 : E.dataTransfer) == null ? void 0 : Nr.getData) == null ? void 0 : mi.call(Nr, "comp")) || "{}") || {}, Z = (F == null ? void 0 : F.type) || "";
13091
- if (!Z)
13091
+ const F = JSON.parse(((mi = (Nr = E == null ? void 0 : E.dataTransfer) == null ? void 0 : Nr.getData) == null ? void 0 : mi.call(Nr, "comp")) || "{}") || {}, k = (F == null ? void 0 : F.type) || "";
13092
+ if (!k)
13092
13093
  return;
13093
- const $ = document.querySelector("#design").getBoundingClientRect(), K = (E.clientX - $.left) / o.value, J = (E.clientY - $.top) / o.value, Y = CA.value[Z] || {};
13094
+ const $ = document.querySelector("#design").getBoundingClientRect(), K = (E.clientX - $.left) / o.value, J = (E.clientY - $.top) / o.value, Y = CA.value[k] || {};
13094
13095
  let y = il(K), lA = il(J);
13095
13096
  const _ = Y.width, XA = Y.height, ce = l.value - _, Ke = s.value - XA;
13096
13097
  y = Math.max(0, Math.min(y, ce)), lA = Math.max(0, Math.min(lA, Ke));
13097
13098
  const { propertyPanel: DR, ...ku } = Y;
13098
13099
  let Ir = { ...ku, x: Number(y.toFixed(2)), y: Number(lA.toFixed(2)), width: Number(_.toFixed(2)), height: Number(XA.toFixed(2)) };
13099
- if ((vi = CA.value[Z]) != null && vi.propertyPanel) {
13100
- const ia = at(CA.value[Z].propertyPanel) || {};
13100
+ if ((vi = CA.value[k]) != null && vi.propertyPanel) {
13101
+ const ia = at(CA.value[k].propertyPanel) || {};
13101
13102
  if (Ir = {
13102
13103
  ...Ir,
13103
13104
  ...ia
13104
- }, Z === "horline" && ia.LineWidth) {
13105
+ }, k === "horline" && ia.LineWidth) {
13105
13106
  const Ou = parseFloat(ia.LineWidth) * 0.3528;
13106
13107
  Ir.height = Number(Ou.toFixed(3));
13107
13108
  }
13108
13109
  }
13109
13110
  const Ei = {
13110
13111
  id: na(),
13111
- type: Z,
13112
+ type: k,
13112
13113
  props: Ir
13113
13114
  };
13114
13115
  a.value.push(Ei), g(Ei);
@@ -13120,14 +13121,14 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13120
13121
  return;
13121
13122
  F = F.parentElement;
13122
13123
  }
13123
- Q();
13124
+ p();
13124
13125
  }
13125
13126
  const hA = (E, F) => {
13126
13127
  if (B.value.length === 0) {
13127
13128
  g(F), v(E, F);
13128
13129
  return;
13129
13130
  }
13130
- if (U() === F) {
13131
+ if (h() === F) {
13131
13132
  v(E, F);
13132
13133
  return;
13133
13134
  }
@@ -13137,19 +13138,19 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13137
13138
  for (const K of d.value.keys())
13138
13139
  K.includes(E) && F.push(K);
13139
13140
  F.forEach((K) => d.value.delete(K));
13140
- const Z = [];
13141
- for (const K of h.value.keys())
13142
- K.includes(E) && Z.push(K);
13143
- if (Z.forEach((K) => h.value.delete(K)), d.value.clear(), h.value.clear(), a.value.find((K) => K.id === E) && (a.value = a.value.filter((K) => K.id !== E)), B.value.some((K) => K.id === E)) {
13141
+ const k = [];
13142
+ for (const K of U.value.keys())
13143
+ K.includes(E) && k.push(K);
13144
+ if (k.forEach((K) => U.value.delete(K)), d.value.clear(), U.value.clear(), a.value.find((K) => K.id === E) && (a.value = a.value.filter((K) => K.id !== E)), B.value.some((K) => K.id === E)) {
13144
13145
  const K = B.value.filter((J) => J.id !== E);
13145
13146
  B.value = K;
13146
13147
  }
13147
13148
  de(() => {
13148
13149
  });
13149
13150
  }, jA = (E) => {
13150
- var Z;
13151
+ var k;
13151
13152
  const F = document.activeElement.tagName.toLowerCase();
13152
- F === "input" || F === "textarea" || (E.key === "Delete" || E.key === "Backspace") && B.value.length > 0 && NA((Z = U()) == null ? void 0 : Z.id);
13153
+ F === "input" || F === "textarea" || (E.key === "Delete" || E.key === "Backspace") && B.value.length > 0 && NA((k = h()) == null ? void 0 : k.id);
13153
13154
  }, { handleMouseWheel: se, handleInputChange: Je, adjustRotation: Wt } = RF(B, l, s), ot = () => {
13154
13155
  setTimeout(() => {
13155
13156
  const E = document.querySelector(".center-container");
@@ -13159,10 +13160,10 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13159
13160
  E.style.height = `calc(100vh - ${F == null ? void 0 : F.top}px)`, oA();
13160
13161
  }, 200);
13161
13162
  };
13162
- FA(() => t.templateData, (E, F) => {
13163
+ FA(() => t.templateInfo, (E, F) => {
13163
13164
  E !== F && (r.value = E || {}, a.value = (E == null ? void 0 : E.items) || [], ot());
13164
13165
  }, { deep: !0, immediate: !0 });
13165
- const { handleCopy: Vr, handlePaste: ne } = VF(a, B, l, s), CA = k({}), ae = k(!1), ve = async (E) => {
13166
+ const { handleCopy: Vr, handlePaste: ne } = VF(a, B, l, s), CA = Z({}), ae = Z(!1), ve = async (E) => {
13166
13167
  try {
13167
13168
  ae.value = !1, CA.value = await zw(E), ae.value = !0;
13168
13169
  } catch (F) {
@@ -13171,7 +13172,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13171
13172
  };
13172
13173
  FA(() => t.templateType, async (E) => {
13173
13174
  try {
13174
- await ve(E), Q(), d.value.clear(), h.value.clear(), console.log("配置切换成功:", E);
13175
+ await ve(E), p(), d.value.clear(), U.value.clear(), console.log("配置切换成功:", E);
13175
13176
  } catch (F) {
13176
13177
  console.error("配置切换失败:", F);
13177
13178
  }
@@ -13187,11 +13188,11 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13187
13188
  });
13188
13189
  }
13189
13190
  const aa = (E) => {
13190
- var Z;
13191
+ var k;
13191
13192
  if (!CA.value || !CA.value[E])
13192
13193
  return console.warn(`组件类型 ${E} 在当前配置中不存在`), {};
13193
13194
  const F = CA.value[E] || {};
13194
- return E === "image" && ((Z = t.config) != null && Z.image) ? {
13195
+ return E === "image" && ((k = t.config) != null && k.image) ? {
13195
13196
  ...F,
13196
13197
  image: {
13197
13198
  ...F.image,
@@ -13205,9 +13206,9 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13205
13206
  const E = NF(r.value.graphData) || "";
13206
13207
  E && ((F = document.querySelector("#design")) == null || F.appendChild(E));
13207
13208
  }, Ci = () => new Promise((E, F) => {
13208
- Q(), JSON.parse(JSON.stringify(a.value));
13209
- const Z = JSON.parse(JSON.stringify(a.value));
13210
- Z == null || Z.forEach((K) => {
13209
+ p(), JSON.parse(JSON.stringify(a.value));
13210
+ const k = JSON.parse(JSON.stringify(a.value));
13211
+ k == null || k.forEach((K) => {
13211
13212
  var J, Y;
13212
13213
  if (K.type == "text") {
13213
13214
  const y = ((Y = (J = t.options) == null ? void 0 : J.fields) == null ? void 0 : Y.find((lA) => {
@@ -13216,7 +13217,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13216
13217
  })) || {};
13217
13218
  K.props.Text = K.props.Text || (y == null ? void 0 : y.label);
13218
13219
  }
13219
- }), [...Z];
13220
+ }), [...k];
13220
13221
  const $ = () => {
13221
13222
  var Y;
13222
13223
  const K = ((Y = document.querySelector("#design")) == null ? void 0 : Y.querySelectorAll("img")) || [], J = Array.from(K).map((y) => y.complete ? Promise.resolve() : new Promise((lA) => {
@@ -13281,13 +13282,13 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13281
13282
  getJson: () => bA().then(() => Tr()),
13282
13283
  // 清空画布
13283
13284
  clear: () => {
13284
- a.value = [], Q();
13285
+ a.value = [], p();
13285
13286
  },
13286
13287
  // 生成快照
13287
13288
  snapshot: () => bA().then(() => Ci())
13288
13289
  }), (E, F) => {
13289
13290
  var Y;
13290
- const Z = QA("el-icon-refresh-left"), $ = QA("el-icon"), K = QA("el-icon-close"), J = QA("el-switch");
13291
+ const k = QA("el-icon-refresh-left"), $ = QA("el-icon"), K = QA("el-icon-close"), J = QA("el-switch");
13291
13292
  return V(), N("div", rR, [
13292
13293
  m("div", nR, [
13293
13294
  W(tF, {
@@ -13345,7 +13346,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13345
13346
  }, ["prevent"])),
13346
13347
  onPointerdown: fA
13347
13348
  }, [
13348
- I(p) && I(C) ? (V(), N("div", BR, [
13349
+ I(Q) && I(C) ? (V(), N("div", BR, [
13349
13350
  m("div", {
13350
13351
  class: "drag-extend-line vertical",
13351
13352
  style: AA(P(I(C), "left"))
@@ -13393,7 +13394,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13393
13394
  onMousedown: xA((_) => hA(_, y), ["stop"]),
13394
13395
  onClick: xA((_) => I(g)(y), ["stop"])
13395
13396
  }, [
13396
- I(U)() === y ? (V(), N(VA, { key: 0 }, [
13397
+ I(h)() === y ? (V(), N(VA, { key: 0 }, [
13397
13398
  y.props.lockAspectRatio ? tA("", !0) : (V(), N(VA, { key: 0 }, [
13398
13399
  y.type !== "verline" && y.type !== "horline" ? (V(), N("div", {
13399
13400
  key: 0,
@@ -13439,7 +13440,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13439
13440
  }, [
13440
13441
  W($, { size: "6" }, {
13441
13442
  default: j(() => [
13442
- W(Z)
13443
+ W(k)
13443
13444
  ]),
13444
13445
  _: 1
13445
13446
  })
@@ -13461,7 +13462,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13461
13462
  ], 64)) : tA("", !0),
13462
13463
  y.props && ae.value ? (V(), vA(cr(((lA = q(y.type)) == null ? void 0 : lA.component) || null), {
13463
13464
  key: `${y.id}-${y.type}`,
13464
- modelValue: { ...y.props, __selected: I(U)() === y },
13465
+ modelValue: { ...y.props, __selected: I(h)() === y },
13465
13466
  propsConfig: CA.value,
13466
13467
  "onUpdate:modelValue": (_) => {
13467
13468
  const { __selected: XA, ...ce } = _;
@@ -13488,12 +13489,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13488
13489
  }, "-"),
13489
13490
  GA(m("input", {
13490
13491
  type: "number",
13491
- "onUpdate:modelValue": F[3] || (F[3] = (y) => I(U)().props.x = y),
13492
+ "onUpdate:modelValue": F[3] || (F[3] = (y) => I(h)().props.x = y),
13492
13493
  onInput: F[4] || (F[4] = (y) => I(Je)("x", y.target.value))
13493
13494
  }, null, 544), [
13494
13495
  [
13495
13496
  Ye,
13496
- I(U)().props.x,
13497
+ I(h)().props.x,
13497
13498
  void 0,
13498
13499
  { number: !0 }
13499
13500
  ]
@@ -13511,12 +13512,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13511
13512
  }, "-"),
13512
13513
  GA(m("input", {
13513
13514
  type: "number",
13514
- "onUpdate:modelValue": F[7] || (F[7] = (y) => I(U)().props.y = y),
13515
+ "onUpdate:modelValue": F[7] || (F[7] = (y) => I(h)().props.y = y),
13515
13516
  onInput: F[8] || (F[8] = (y) => I(Je)("y", y.target.value))
13516
13517
  }, null, 544), [
13517
13518
  [
13518
13519
  Ye,
13519
- I(U)().props.y,
13520
+ I(h)().props.y,
13520
13521
  void 0,
13521
13522
  { number: !0 }
13522
13523
  ]
@@ -13526,7 +13527,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13526
13527
  }, "+")
13527
13528
  ])
13528
13529
  ]),
13529
- I(U)().type !== "verline" ? (V(), N("div", IR, [
13530
+ I(h)().type !== "verline" ? (V(), N("div", IR, [
13530
13531
  F[27] || (F[27] = m("label", null, "宽度:", -1)),
13531
13532
  m("div", NR, [
13532
13533
  m("button", {
@@ -13534,12 +13535,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13534
13535
  }, "-"),
13535
13536
  GA(m("input", {
13536
13537
  type: "number",
13537
- "onUpdate:modelValue": F[11] || (F[11] = (y) => I(U)().props.width = y),
13538
+ "onUpdate:modelValue": F[11] || (F[11] = (y) => I(h)().props.width = y),
13538
13539
  onInput: F[12] || (F[12] = (y) => I(Je)("width", y.target.value))
13539
13540
  }, null, 544), [
13540
13541
  [
13541
13542
  Ye,
13542
- I(U)().props.width,
13543
+ I(h)().props.width,
13543
13544
  void 0,
13544
13545
  { number: !0 }
13545
13546
  ]
@@ -13549,7 +13550,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13549
13550
  }, "+")
13550
13551
  ])
13551
13552
  ])) : tA("", !0),
13552
- I(U)().type !== "horline" ? (V(), N("div", SR, [
13553
+ I(h)().type !== "horline" ? (V(), N("div", SR, [
13553
13554
  F[28] || (F[28] = m("label", null, "高度:", -1)),
13554
13555
  m("div", MR, [
13555
13556
  m("button", {
@@ -13557,12 +13558,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13557
13558
  }, "-"),
13558
13559
  GA(m("input", {
13559
13560
  type: "number",
13560
- "onUpdate:modelValue": F[15] || (F[15] = (y) => I(U)().props.height = y),
13561
+ "onUpdate:modelValue": F[15] || (F[15] = (y) => I(h)().props.height = y),
13561
13562
  onInput: F[16] || (F[16] = (y) => I(Je)("height", y.target.value))
13562
13563
  }, null, 544), [
13563
13564
  [
13564
13565
  Ye,
13565
- I(U)().props.height,
13566
+ I(h)().props.height,
13566
13567
  void 0,
13567
13568
  { number: !0 }
13568
13569
  ]
@@ -13580,12 +13581,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13580
13581
  }, "-"),
13581
13582
  GA(m("input", {
13582
13583
  type: "number",
13583
- "onUpdate:modelValue": F[19] || (F[19] = (y) => I(U)().props.rotation = y),
13584
+ "onUpdate:modelValue": F[19] || (F[19] = (y) => I(h)().props.rotation = y),
13584
13585
  onInput: F[20] || (F[20] = (y) => I(Je)("rotation", y.target.value))
13585
13586
  }, null, 544), [
13586
13587
  [
13587
13588
  Ye,
13588
- I(U)().props.rotation,
13589
+ I(h)().props.rotation,
13589
13590
  void 0,
13590
13591
  { number: !0 }
13591
13592
  ]
@@ -13595,30 +13596,30 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13595
13596
  }, "+")
13596
13597
  ])
13597
13598
  ]),
13598
- I(U)().type !== "horline" ? (V(), N("div", xR, [
13599
+ I(h)().type !== "horline" ? (V(), N("div", xR, [
13599
13600
  F[30] || (F[30] = m("label", null, "锁定宽高比:", -1)),
13600
13601
  m("div", ZR, [
13601
13602
  W(J, {
13602
- modelValue: I(U)().props.lockAspectRatio,
13603
- "onUpdate:modelValue": F[22] || (F[22] = (y) => I(U)().props.lockAspectRatio = y),
13603
+ modelValue: I(h)().props.lockAspectRatio,
13604
+ "onUpdate:modelValue": F[22] || (F[22] = (y) => I(h)().props.lockAspectRatio = y),
13604
13605
  "active-value": !0,
13605
13606
  "inactive-value": !1
13606
13607
  }, null, 8, ["modelValue"])
13607
13608
  ])
13608
13609
  ])) : tA("", !0)
13609
13610
  ]),
13610
- (V(), vA(cr(((Y = q(I(U)().type)) == null ? void 0 : Y.propertyPanel) || null), {
13611
- modelValue: I(U)().props,
13612
- "onUpdate:modelValue": F[23] || (F[23] = (y) => I(U)().props = y),
13611
+ (V(), vA(cr(((Y = q(I(h)().type)) == null ? void 0 : Y.propertyPanel) || null), {
13612
+ modelValue: I(h)().props,
13613
+ "onUpdate:modelValue": F[23] || (F[23] = (y) => I(h)().props = y),
13613
13614
  options: e.options,
13614
- "props-config": aa(I(U)().type)
13615
+ "props-config": aa(I(h)().type)
13615
13616
  }, null, 8, ["modelValue", "options", "props-config"]))
13616
13617
  ], 64)) : tA("", !0)
13617
13618
  ])
13618
13619
  ]);
13619
13620
  };
13620
13621
  }
13621
- }, OR = /* @__PURE__ */ yA(kR, [["__scopeId", "data-v-e684cfd3"]]);
13622
+ }, OR = /* @__PURE__ */ yA(kR, [["__scopeId", "data-v-79a1fcd7"]]);
13622
13623
  const WR = {
13623
13624
  __name: "index",
13624
13625
  props: {
@@ -13639,81 +13640,100 @@ const WR = {
13639
13640
  }
13640
13641
  },
13641
13642
  setup(e) {
13642
- const A = Ze(), t = e, r = k(!1), n = k(), a = k(0), o = k(!1), i = (f, B) => {
13643
- let g;
13644
- return function(...Q) {
13645
- const p = () => {
13646
- clearTimeout(g), f(...Q);
13643
+ const A = Ze(), t = e, r = Z(!1), n = Z({}), a = Z(), o = Z(0), i = Z(!1), l = (g, h) => {
13644
+ let p;
13645
+ return function(...C) {
13646
+ const v = () => {
13647
+ clearTimeout(p), g(...C);
13647
13648
  };
13648
- clearTimeout(g), g = setTimeout(p, B);
13649
+ clearTimeout(p), p = setTimeout(v, h);
13649
13650
  };
13650
- }, l = k({
13651
+ }, s = Z({
13651
13652
  rectTop: 0,
13652
13653
  isInModal: !1
13653
- }), s = () => {
13654
- if (!n.value)
13654
+ }), c = () => {
13655
+ if (!a.value)
13655
13656
  return;
13656
- const f = n.value.getBoundingClientRect(), B = u(n.value);
13657
- let g = 0;
13658
- if (f.top > 0)
13659
- g = f.top;
13660
- else if (B) {
13661
- const U = d(n.value);
13662
- g = U > 0 ? U : 60;
13657
+ const g = a.value.getBoundingClientRect(), h = d(a.value);
13658
+ let p = 0;
13659
+ if (g.top > 0)
13660
+ p = g.top;
13661
+ else if (h) {
13662
+ const Q = U(a.value);
13663
+ p = Q > 0 ? Q : 60;
13663
13664
  } else {
13664
- const U = n.value.offsetTop;
13665
- U > 0 ? g = U : g = 60;
13665
+ const Q = a.value.offsetTop;
13666
+ Q > 0 ? p = Q : p = 60;
13666
13667
  }
13667
- (g !== l.value.rectTop || B !== l.value.isInModal) && (a.value = g, o.value = B, l.value = {
13668
- rectTop: g,
13669
- isInModal: B
13668
+ (p !== s.value.rectTop || h !== s.value.isInModal) && (o.value = p, i.value = h, s.value = {
13669
+ rectTop: p,
13670
+ isInModal: h
13670
13671
  });
13671
- }, c = i(s, 100), u = (f) => {
13672
- let B = f.parentElement;
13673
- for (; B; ) {
13674
- if (B.classList && (B.classList.contains("el-dialog") || B.classList.contains("el-drawer") || B.classList.contains("sc-dialog")))
13672
+ }, u = l(c, 100), d = (g) => {
13673
+ let h = g.parentElement;
13674
+ for (; h; ) {
13675
+ if (h.classList && (h.classList.contains("el-dialog") || h.classList.contains("el-drawer") || h.classList.contains("sc-dialog")))
13675
13676
  return !0;
13676
- B = B.parentElement;
13677
+ h = h.parentElement;
13677
13678
  }
13678
13679
  return !1;
13679
- }, d = (f) => {
13680
- let B = f.parentElement;
13681
- for (; B; ) {
13682
- if (B.classList && (B.classList.contains("el-dialog") || B.classList.contains("el-drawer") || B.classList.contains("sc-dialog"))) {
13683
- const g = B.getBoundingClientRect();
13684
- return g.top > 0 ? g.top : 60;
13680
+ }, U = (g) => {
13681
+ let h = g.parentElement;
13682
+ for (; h; ) {
13683
+ if (h.classList && (h.classList.contains("el-dialog") || h.classList.contains("el-drawer") || h.classList.contains("sc-dialog"))) {
13684
+ const p = h.getBoundingClientRect();
13685
+ return p.top > 0 ? p.top : 60;
13685
13686
  }
13686
- B = B.parentElement;
13687
+ h = h.parentElement;
13687
13688
  }
13688
13689
  return 60;
13689
13690
  };
13690
13691
  Oe(() => {
13691
- setTimeout(() => s(), 100), setTimeout(() => s(), 300), window.addEventListener("resize", c), Ur(() => {
13692
- window.removeEventListener("resize", c);
13692
+ setTimeout(() => c(), 100), setTimeout(() => c(), 300), window.addEventListener("resize", u), Ur(() => {
13693
+ window.removeEventListener("resize", u);
13693
13694
  });
13694
- }), FA(() => r.value, (f) => {
13695
- f && de(() => setTimeout(() => s(), 50));
13696
- }), FA(() => t.templateData, async (f) => {
13697
- r.value = (f == null ? void 0 : f.width) > 0 && (f == null ? void 0 : f.height) > 0;
13695
+ }), FA(() => r.value, (g) => {
13696
+ g && de(() => setTimeout(() => c(), 50));
13697
+ }), FA(() => t.templateData, async (g) => {
13698
+ r.value = (g == null ? void 0 : g.width) > 0 && (g == null ? void 0 : g.height) > 0, f();
13698
13699
  }, { deep: !0, immediate: !0 });
13699
- function h(f) {
13700
- A.exposed = f || {}, A.exposeProxy = f || {};
13700
+ function f() {
13701
+ var h, p;
13702
+ const g = ((p = (h = t.templateData) == null ? void 0 : h.panels) == null ? void 0 : p[0]) || {};
13703
+ if (!g || Object.keys(g).length === 0) {
13704
+ n.value = { ...t.templateData };
13705
+ return;
13706
+ }
13707
+ n.value = {
13708
+ width: g.width || 0,
13709
+ height: g.height || 0,
13710
+ printWidth: g.printWidth || 0,
13711
+ printHeight: g.printHeight || 0,
13712
+ items: g.printElements || [],
13713
+ ...t.templateData
13714
+ };
13701
13715
  }
13702
- return (f, B) => {
13703
- const g = qu("loading");
13716
+ function B(g) {
13717
+ A.exposed = g || {}, A.exposeProxy = g || {};
13718
+ }
13719
+ return (g, h) => {
13720
+ const p = qu("loading");
13704
13721
  return GA((V(), N("div", {
13705
13722
  ref_key: "templateDesignerRef",
13706
- ref: n,
13707
- class: _A(["template-designer", { "template-designer-border-top": o.value }]),
13708
- style: AA({ height: "calc(100vh - " + (a.value + 1) + "px)" })
13723
+ ref: a,
13724
+ class: _A(["template-designer", { "template-designer-border-top": i.value }]),
13725
+ style: AA({ height: "calc(100vh - " + (o.value + 1) + "px)" })
13709
13726
  }, [
13710
- r.value ? (V(), vA(cr($u(OR, { ...f.$attrs, ...t, ref: h }, f.$slots)), { key: 0 })) : tA("", !0)
13727
+ r.value ? (V(), vA(cr($u(OR, { ...g.$attrs, ...t, ref: B }, g.$slots)), {
13728
+ key: 0,
13729
+ "template-info": n.value
13730
+ }, null, 8, ["template-info"])) : tA("", !0)
13711
13731
  ], 6)), [
13712
- [g, !r.value]
13732
+ [p, !r.value]
13713
13733
  ]);
13714
13734
  };
13715
13735
  }
13716
- }, Ka = /* @__PURE__ */ yA(WR, [["__scopeId", "data-v-a48e3842"]]);
13736
+ }, Ka = /* @__PURE__ */ yA(WR, [["__scopeId", "data-v-dad1d3d0"]]);
13717
13737
  Ka.install = (e) => {
13718
13738
  e.component(Ka.name || "TemplateDesigner", Ka);
13719
13739
  };