@vtj/designer 0.13.37 → 0.13.39

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.
@@ -19,10 +19,10 @@ import { editor as Mm } from "monaco-editor";
19
19
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
20
20
  * @name @vtj/designer
21
21
  * @author CHC chenhuachun1549@dingtalk.com
22
- * @version 0.13.37
22
+ * @version 0.13.39
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const ir = "0.13.37", jm = {
25
+ const ir = "0.13.39", jm = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, Lm = {
@@ -187,9 +187,9 @@ function Zm() {
187
187
  a,
188
188
  (u) => {
189
189
  const f = u.reduce(
190
- (g, m) => (g[m.name] = Ym(
191
- r.value[m.name].children
192
- ), g),
190
+ (m, g) => (m[g.name] = Ym(
191
+ r.value[g.name].children
192
+ ), m),
193
193
  {}
194
194
  );
195
195
  Object.assign(s, f);
@@ -365,7 +365,7 @@ function Xn(...e) {
365
365
  ];
366
366
  }, ([o, s, r, a], l, c) => {
367
367
  if (!o?.length || !s?.length || !r?.length) return;
368
- const d = oh(a) ? { ...a } : a, p = o.flatMap((u) => s.flatMap((f) => r.map((g) => t(u, f, g, d))));
368
+ const d = oh(a) ? { ...a } : a, p = o.flatMap((u) => s.flatMap((f) => r.map((m) => t(u, f, m, d))));
369
369
  c(() => {
370
370
  p.forEach((u) => u());
371
371
  });
@@ -404,11 +404,11 @@ function ph(e, t, n = {}) {
404
404
  t(y);
405
405
  }
406
406
  };
407
- let g = !1;
408
- const m = [
407
+ let m = !1;
408
+ const g = [
409
409
  Xn(o, "click", (y) => {
410
- g || (g = !0, setTimeout(() => {
411
- g = !1;
410
+ m || (m = !0, setTimeout(() => {
411
+ m = !1;
412
412
  }, 0), f(y));
413
413
  }, {
414
414
  passive: !0,
@@ -425,7 +425,7 @@ function ph(e, t, n = {}) {
425
425
  ((E = o.document.activeElement) === null || E === void 0 ? void 0 : E.tagName) === "IFRAME" && !k?.contains(o.document.activeElement) && t(y);
426
426
  }, 0);
427
427
  }, { passive: !0 })
428
- ].filter(Boolean), b = () => m.forEach((y) => y());
428
+ ].filter(Boolean), b = () => g.forEach((y) => y());
429
429
  return l ? {
430
430
  stop: b,
431
431
  cancel: () => {
@@ -462,8 +462,8 @@ function vh(e, t = {}) {
462
462
  if (r.value) {
463
463
  r.value = !s.value, l.value = Dt(e).split(",").some((d) => {
464
464
  const p = d.includes("not all"), u = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), f = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
465
- let g = !!(u || f);
466
- return u && g && (g = o >= Dl(u[1])), f && g && (g = o <= Dl(f[1])), p ? !g : g;
465
+ let m = !!(u || f);
466
+ return u && m && (m = o >= Dl(u[1])), f && m && (m = o <= Dl(f[1])), p ? !m : m;
467
467
  });
468
468
  return;
469
469
  }
@@ -497,7 +497,7 @@ function Vl(e, t = {}) {
497
497
  }
498
498
  function ws(e = {}) {
499
499
  const { navigator: t = yc, read: n = !1, source: o, copiedDuring: s = 1500, legacy: r = !1 } = e, a = /* @__PURE__ */ _s(() => t && "clipboard" in t), l = /* @__PURE__ */ Vl("clipboard-read"), c = /* @__PURE__ */ Vl("clipboard-write"), d = D(() => a.value || r), p = mt(""), u = mt(!1), f = dh(() => u.value = !1, s, { immediate: !1 });
500
- async function g() {
500
+ async function m() {
501
501
  let k = !(a.value && E(l.value));
502
502
  if (!k) try {
503
503
  p.value = await t.clipboard.readText();
@@ -506,8 +506,8 @@ function ws(e = {}) {
506
506
  }
507
507
  k && (p.value = y());
508
508
  }
509
- d.value && n && Xn(["copy", "cut"], g, { passive: !0 });
510
- async function m(k = Dt(o)) {
509
+ d.value && n && Xn(["copy", "cut"], m, { passive: !0 });
510
+ async function g(k = Dt(o)) {
511
511
  if (d.value && k != null) {
512
512
  let S = !(a.value && E(c.value));
513
513
  if (!S) try {
@@ -533,7 +533,7 @@ function ws(e = {}) {
533
533
  isSupported: d,
534
534
  text: $r(p),
535
535
  copied: $r(u),
536
- copy: m
536
+ copy: g
537
537
  };
538
538
  }
539
539
  function bh(e) {
@@ -589,13 +589,13 @@ const kh = {
589
589
  }, Pl = "vueuse-storage";
590
590
  function Sh(e, t, n, o = {}) {
591
591
  var s;
592
- const { flush: r = "pre", deep: a = !0, listenToStorageChanges: l = !0, writeDefaults: c = !0, mergeDefaults: d = !1, shallow: p, window: u = An, eventFilter: f, onError: g = (z) => {
592
+ const { flush: r = "pre", deep: a = !0, listenToStorageChanges: l = !0, writeDefaults: c = !0, mergeDefaults: d = !1, shallow: p, window: u = An, eventFilter: f, onError: m = (z) => {
593
593
  console.error(z);
594
- }, initOnMounted: m } = o, b = (p ? mt : R)(typeof t == "function" ? t() : t), y = D(() => Dt(e));
594
+ }, initOnMounted: g } = o, b = (p ? mt : R)(typeof t == "function" ? t() : t), y = D(() => Dt(e));
595
595
  if (!n) try {
596
596
  n = _c("getDefaultStorage", () => An?.localStorage)();
597
597
  } catch (z) {
598
- g(z);
598
+ m(z);
599
599
  }
600
600
  if (!n) return b;
601
601
  const E = Dt(t), k = Eh(E), S = (s = o.serializer) !== null && s !== void 0 ? s : kh[k], { pause: _, resume: A } = uh(b, (z) => U(z), {
@@ -606,11 +606,11 @@ function Sh(e, t, n, o = {}) {
606
606
  le(y, () => J(), { flush: r });
607
607
  let x = !1;
608
608
  const O = (z) => {
609
- m && !x || J(z);
609
+ g && !x || J(z);
610
610
  }, C = (z) => {
611
- m && !x || K(z);
611
+ g && !x || K(z);
612
612
  };
613
- u && l && (n instanceof Storage ? Xn(u, "storage", O, { passive: !0 }) : Xn(u, Pl, C)), m ? Ha(() => {
613
+ u && l && (n instanceof Storage ? Xn(u, "storage", O, { passive: !0 }) : Xn(u, Pl, C)), g ? Ha(() => {
614
614
  x = !0, J();
615
615
  }) : J();
616
616
  function V(z, j) {
@@ -634,7 +634,7 @@ function Sh(e, t, n, o = {}) {
634
634
  j !== B && (n.setItem(y.value, B), V(j, B));
635
635
  }
636
636
  } catch (j) {
637
- g(j);
637
+ m(j);
638
638
  }
639
639
  }
640
640
  function H(z) {
@@ -661,7 +661,7 @@ function Sh(e, t, n, o = {}) {
661
661
  const j = S.write(b.value);
662
662
  (z === void 0 || z?.newValue !== j) && (b.value = H(z));
663
663
  } catch (j) {
664
- g(j);
664
+ m(j);
665
665
  } finally {
666
666
  z ? jt(A) : A();
667
667
  }
@@ -680,10 +680,10 @@ function Ch(e = {}) {
680
680
  light: "light",
681
681
  dark: "dark",
682
682
  ...e.modes || {}
683
- }, f = /* @__PURE__ */ wh({ window: s }), g = D(() => f.value ? "dark" : "light"), m = c || (a == null ? vc(o) : Sh(a, o, r, {
683
+ }, f = /* @__PURE__ */ wh({ window: s }), m = D(() => f.value ? "dark" : "light"), g = c || (a == null ? vc(o) : Sh(a, o, r, {
684
684
  window: s,
685
685
  listenToStorageChanges: l
686
- })), b = D(() => m.value === "auto" ? g.value : m.value), y = _c("updateHTMLAttrs", (_, A, x) => {
686
+ })), b = D(() => g.value === "auto" ? m.value : g.value), y = _c("updateHTMLAttrs", (_, A, x) => {
687
687
  const O = typeof _ == "string" ? s?.document.querySelector(_) : sn(_);
688
688
  if (!O) return;
689
689
  const C = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set();
@@ -717,15 +717,15 @@ function Ch(e = {}) {
717
717
  }), Ha(() => k(b.value));
718
718
  const S = D({
719
719
  get() {
720
- return d ? m.value : b.value;
720
+ return d ? g.value : b.value;
721
721
  },
722
722
  set(_) {
723
- m.value = _;
723
+ g.value = _;
724
724
  }
725
725
  });
726
726
  return Object.assign(S, {
727
- store: m,
728
- system: g,
727
+ store: g,
728
+ system: m,
729
729
  state: b
730
730
  });
731
731
  }
@@ -785,14 +785,14 @@ function Po(e, t = {
785
785
  }), a = mt(t.width), l = mt(t.height), { stop: c } = Th(e, ([u]) => {
786
786
  const f = s === "border-box" ? u.borderBoxSize : s === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
787
787
  if (o && r.value) {
788
- const g = sn(e);
789
- if (g) {
790
- const m = g.getBoundingClientRect();
791
- a.value = m.width, l.value = m.height;
788
+ const m = sn(e);
789
+ if (m) {
790
+ const g = m.getBoundingClientRect();
791
+ a.value = g.width, l.value = g.height;
792
792
  }
793
793
  } else if (f) {
794
- const g = Br(f);
795
- a.value = g.reduce((m, { inlineSize: b }) => m + b, 0), l.value = g.reduce((m, { blockSize: b }) => m + b, 0);
794
+ const m = Br(f);
795
+ a.value = m.reduce((g, { inlineSize: b }) => g + b, 0), l.value = m.reduce((g, { blockSize: b }) => g + b, 0);
796
796
  } else
797
797
  a.value = u.contentRect.width, l.value = u.contentRect.height;
798
798
  }, n);
@@ -815,11 +815,11 @@ function Po(e, t = {
815
815
  // @__NO_SIDE_EFFECTS__
816
816
  function Oh(e, t, n, o = {}) {
817
817
  var s, r;
818
- const { clone: a = !1, passive: l = !1, eventName: c, deep: d = !1, defaultValue: p, shouldEmit: u } = o, f = is(), g = n || f?.emit || (f == null || (s = f.$emit) === null || s === void 0 ? void 0 : s.bind(f)) || (f == null || (r = f.proxy) === null || r === void 0 || (r = r.$emit) === null || r === void 0 ? void 0 : r.bind(f?.proxy));
819
- let m = c;
820
- m = m || `update:${t.toString()}`;
818
+ const { clone: a = !1, passive: l = !1, eventName: c, deep: d = !1, defaultValue: p, shouldEmit: u } = o, f = is(), m = n || f?.emit || (f == null || (s = f.$emit) === null || s === void 0 ? void 0 : s.bind(f)) || (f == null || (r = f.proxy) === null || r === void 0 || (r = r.$emit) === null || r === void 0 ? void 0 : r.bind(f?.proxy));
819
+ let g = c;
820
+ g = g || `update:${t.toString()}`;
821
821
  const b = (k) => a ? typeof a == "function" ? a(k) : bh(k) : k, y = () => th(e[t]) ? b(e[t]) : p, E = (k) => {
822
- u ? u(k) && g(m, k) : g(m, k);
822
+ u ? u(k) && m(g, k) : m(g, k);
823
823
  };
824
824
  if (l) {
825
825
  const k = R(y());
@@ -1060,10 +1060,10 @@ const Ir = (e) => {
1060
1060
  if (!st[p]) return;
1061
1061
  n || (n = ur());
1062
1062
  const u = c > 1 ? wc(gn, l) : [], f = [];
1063
- st[p] = st[p].filter((g) => {
1064
- const b = (o ? g.method === o : !0) && g.scope === n && Ih(g.mods, u);
1065
- return b && f.push(g.element), !b;
1066
- }), f.forEach((g) => $a(g));
1063
+ st[p] = st[p].filter((m) => {
1064
+ const b = (o ? m.method === o : !0) && m.scope === n && Ih(m.mods, u);
1065
+ return b && f.push(m.element), !b;
1066
+ }), f.forEach((m) => $a(m));
1067
1067
  });
1068
1068
  };
1069
1069
  function Ml(e, t, n, o) {
@@ -1130,27 +1130,27 @@ function Yt(e, t, n) {
1130
1130
  });
1131
1131
  if (typeof a < "u" && window) {
1132
1132
  if (!Dn.has(a)) {
1133
- const g = function() {
1133
+ const m = function() {
1134
1134
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.event;
1135
1135
  return jl(b, a);
1136
- }, m = function() {
1136
+ }, g = function() {
1137
1137
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.event;
1138
1138
  jl(b, a), Bh(b);
1139
1139
  };
1140
1140
  Dn.set(a, {
1141
- keydownListener: g,
1142
- keyupListenr: m,
1141
+ keydownListener: m,
1142
+ keyupListenr: g,
1143
1143
  capture: u
1144
- }), js(a, "keydown", g, u), js(a, "keyup", m, u);
1144
+ }), js(a, "keydown", m, u), js(a, "keyup", g, u);
1145
1145
  }
1146
1146
  if (!er) {
1147
- const g = () => {
1147
+ const m = () => {
1148
1148
  nt = [];
1149
1149
  };
1150
1150
  er = {
1151
- listener: g,
1151
+ listener: m,
1152
1152
  capture: u
1153
- }, js(window, "focus", g, u);
1153
+ }, js(window, "focus", m, u);
1154
1154
  }
1155
1155
  }
1156
1156
  }
@@ -1228,10 +1228,10 @@ function zh() {
1228
1228
  }, d = (u) => {
1229
1229
  Yt.trigger(u);
1230
1230
  }, p = () => {
1231
- const u = e.simulator.designer.value, f = u?.selected?.value, g = e.current.value;
1231
+ const u = e.simulator.designer.value, f = u?.selected?.value, m = e.current.value;
1232
1232
  return {
1233
1233
  selected: f,
1234
- current: g,
1234
+ current: m,
1235
1235
  designer: u
1236
1236
  };
1237
1237
  };
@@ -1239,8 +1239,8 @@ function zh() {
1239
1239
  s,
1240
1240
  (u) => {
1241
1241
  if (u)
1242
- for (const [f, g] of Object.entries(o))
1243
- a(f, g);
1242
+ for (const [f, m] of Object.entries(o))
1243
+ a(f, m);
1244
1244
  },
1245
1245
  { immediate: !0 }
1246
1246
  ), us(() => {
@@ -1254,8 +1254,8 @@ function zh() {
1254
1254
  const f = e.skeleton?.getRegion("Apps").regionRef;
1255
1255
  if (f) {
1256
1256
  f.setActive("History"), await qt(100);
1257
- const g = e.skeleton?.getWidget("History")?.widgetRef;
1258
- g && g.openAdd();
1257
+ const m = e.skeleton?.getWidget("History")?.widgetRef;
1258
+ m && m.openAdd();
1259
1259
  }
1260
1260
  return !1;
1261
1261
  }), a(Ac, (u) => {
@@ -1267,58 +1267,58 @@ function zh() {
1267
1267
  const f = e.skeleton?.getWidget("Actions")?.widgetRef;
1268
1268
  return f && f.refresh(), !1;
1269
1269
  }), a(Rc, () => {
1270
- const { current: u, selected: f, designer: g } = p();
1271
- g && u && f && Nn(f.model) && (u.removeNode(f.model), g.setSelected(null));
1270
+ const { current: u, selected: f, designer: m } = p();
1271
+ m && u && f && Nn(f.model) && (u.removeNode(f.model), m.setSelected(null));
1272
1272
  }), a(zc, () => {
1273
- const { current: u, selected: f, designer: g } = p();
1274
- u && f && g && g.setSelected(null);
1273
+ const { current: u, selected: f, designer: m } = p();
1274
+ u && f && m && m.setSelected(null);
1275
1275
  }), a(jc, () => {
1276
- const { current: u, selected: f, designer: g } = p();
1277
- if (g && u && f && Nn(f.model)) {
1278
- const m = f.model.parent?.children || [], b = m.findIndex((y) => y.id === f.model.id);
1279
- b > 0 && g.setSelected(m[b - 1]);
1276
+ const { current: u, selected: f, designer: m } = p();
1277
+ if (m && u && f && Nn(f.model)) {
1278
+ const g = f.model.parent?.children || [], b = g.findIndex((y) => y.id === f.model.id);
1279
+ b > 0 && m.setSelected(g[b - 1]);
1280
1280
  }
1281
1281
  }), a(Lc, () => {
1282
- const { current: u, selected: f, designer: g } = p();
1283
- if (g && u && f && Nn(f.model)) {
1284
- const m = f.model.parent?.children || [], b = m.findIndex((y) => y.id === f.model.id);
1285
- b < m.length - 1 && g.setSelected(m[b + 1]);
1282
+ const { current: u, selected: f, designer: m } = p();
1283
+ if (m && u && f && Nn(f.model)) {
1284
+ const g = f.model.parent?.children || [], b = g.findIndex((y) => y.id === f.model.id);
1285
+ b < g.length - 1 && m.setSelected(g[b + 1]);
1286
1286
  }
1287
1287
  }), a(Pc, () => {
1288
- const { current: u, selected: f, designer: g } = p();
1289
- g && u && f && Nn(f.model) && f.model.parent && g.setSelected(f.model.parent);
1288
+ const { current: u, selected: f, designer: m } = p();
1289
+ m && u && f && Nn(f.model) && f.model.parent && m.setSelected(f.model.parent);
1290
1290
  }), a(Mc, () => {
1291
- const { current: u, selected: f, designer: g } = p();
1292
- if (g && u && f) {
1293
- let m = null;
1294
- Nn(f.model) ? m = Array.isArray(f.model.children) ? f.model.children[0] : null : m = f.model.nodes[0], m && g.setSelected(m);
1291
+ const { current: u, selected: f, designer: m } = p();
1292
+ if (m && u && f) {
1293
+ let g = null;
1294
+ Nn(f.model) ? g = Array.isArray(f.model.children) ? f.model.children[0] : null : g = f.model.nodes[0], g && m.setSelected(g);
1295
1295
  }
1296
1296
  }), a(Bc, () => {
1297
- const { current: u, selected: f, designer: g } = p();
1298
- g && u && f && Nn(f.model) && (u.movePrev(f.model), g.setSelected(f.model));
1297
+ const { current: u, selected: f, designer: m } = p();
1298
+ m && u && f && Nn(f.model) && (u.movePrev(f.model), m.setSelected(f.model));
1299
1299
  }), a(Uc, () => {
1300
- const { current: u, selected: f, designer: g } = p();
1301
- g && u && f && Nn(f.model) && (u.moveNext(f.model), g.setSelected(f.model));
1300
+ const { current: u, selected: f, designer: m } = p();
1301
+ m && u && f && Nn(f.model) && (u.moveNext(f.model), m.setSelected(f.model));
1302
1302
  }), a(Nc, () => {
1303
- const { current: u, selected: f, designer: g } = p();
1304
- if (g && u && f) {
1305
- const m = JSON.stringify(f.model.toDsl());
1306
- t(m), dn.save(Bs, m, { type: "session" }), St.success({
1303
+ const { current: u, selected: f, designer: m } = p();
1304
+ if (m && u && f) {
1305
+ const g = JSON.stringify(f.model.toDsl());
1306
+ t(g), dn.save(Bs, g, { type: "session" }), St.success({
1307
1307
  message: "已经复制到粘贴板"
1308
1308
  });
1309
1309
  }
1310
1310
  }), a(Vc, () => {
1311
- const { current: u, selected: f, designer: g } = p();
1312
- if (g && u && f) {
1313
- const m = JSON.stringify(f.model.toDsl());
1314
- t(m), dn.save(Bs, m, { type: "session" }), Nn(f.model) ? (u.removeNode(f.model), g.setSelected(null)) : u.update({ name: f.model.name }), St.success({
1311
+ const { current: u, selected: f, designer: m } = p();
1312
+ if (m && u && f) {
1313
+ const g = JSON.stringify(f.model.toDsl());
1314
+ t(g), dn.save(Bs, g, { type: "session" }), Nn(f.model) ? (u.removeNode(f.model), m.setSelected(null)) : u.update({ name: f.model.name }), St.success({
1315
1315
  message: "已经复制到粘贴板"
1316
1316
  });
1317
1317
  }
1318
1318
  }), a(Dc, () => {
1319
- const { current: u, selected: f, designer: g } = p();
1320
- if (g && u && f) {
1321
- const m = n.value || dn.get(Bs, { type: "session" }), b = m ? JSON.parse(m) : null;
1319
+ const { current: u, selected: f, designer: m } = p();
1320
+ if (m && u && f) {
1321
+ const g = n.value || dn.get(Bs, { type: "session" }), b = g ? JSON.parse(g) : null;
1322
1322
  if (!b) return;
1323
1323
  if (b.id = hs(), Rf(b))
1324
1324
  u.update(b);
@@ -1329,12 +1329,12 @@ function zh() {
1329
1329
  const y = new Io(xl(b));
1330
1330
  u.addNode(y, void 0, "inner");
1331
1331
  }
1332
- g.setSelected(null);
1332
+ m.setSelected(null);
1333
1333
  }
1334
1334
  }), a(Fc, (u) => {
1335
1335
  u?.preventDefault();
1336
- const { current: f, designer: g } = p();
1337
- return g?.setSelected(f), !1;
1336
+ const { current: f, designer: m } = p();
1337
+ return m?.setSelected(f), !1;
1338
1338
  }), {
1339
1339
  bind: a,
1340
1340
  unbind: l,
@@ -1450,9 +1450,9 @@ function Hh(e, t, n, o, s, r, a, l) {
1450
1450
  () => Us("hover", p.value?.hover.value)
1451
1451
  ), f = D(
1452
1452
  () => Us("dropping", p.value?.dropping.value)
1453
- ), g = D(
1454
- () => Us("selected", p.value?.selected.value)
1455
1453
  ), m = D(
1454
+ () => Us("selected", p.value?.selected.value)
1455
+ ), g = D(
1456
1456
  () => c.state.outlineEnabled ? Jh(p.value?.lines.value || []) : []
1457
1457
  );
1458
1458
  return le(c.changed, () => {
@@ -1461,8 +1461,8 @@ function Hh(e, t, n, o, s, r, a, l) {
1461
1461
  designer: p,
1462
1462
  dropping: f,
1463
1463
  hover: u,
1464
- selected: g,
1465
- lines: m,
1464
+ selected: m,
1465
+ lines: g,
1466
1466
  hotkeys: d
1467
1467
  };
1468
1468
  }
@@ -1532,14 +1532,14 @@ function Kh(e, t) {
1532
1532
  const n = R(""), { selected: o, isSelectBlock: s, engine: r } = yn(), a = D(() => o.value?.model.id), l = D(() => {
1533
1533
  const d = Dt(e), p = Dt(t), u = [];
1534
1534
  if (!d) return u;
1535
- const f = p?.__contextRefs[a.value || ""], g = p === f || s.value;
1536
- Object.keys(p?.$provider?.env || {}).map(
1535
+ const f = p?.__contextRefs[a.value || ""], m = p === f || s.value, g = Object.keys(p?.$provider?.env || {}).map(
1537
1536
  (O) => `this.$provider.env.${O}`
1538
- ).length && u.push({
1537
+ );
1538
+ g.length && u.push({
1539
1539
  title: "环境变量",
1540
- items: ["this.$provider.env.a"]
1540
+ items: g
1541
1541
  });
1542
- const b = g ? [] : Object.keys(f?.context || {}).filter((O) => !["context", "ref"].includes(O)).map((O) => `this.context.${O}`);
1542
+ const b = m ? [] : Object.keys(f?.context || {}).filter((O) => !["context", "ref"].includes(O)).map((O) => `this.context.${O}`);
1543
1543
  b.length && u.push({ title: "上下文", items: b });
1544
1544
  const y = d.inject.map((O) => `this.${O.name}`);
1545
1545
  y.length && u.push({ title: "注入", items: y });
@@ -1568,7 +1568,7 @@ function Kh(e, t) {
1568
1568
  const d = n.value.toLowerCase(), p = [];
1569
1569
  return l.value.forEach((u) => {
1570
1570
  const f = u.items.filter(
1571
- (g) => g.toLowerCase().includes(d)
1571
+ (m) => m.toLowerCase().includes(d)
1572
1572
  );
1573
1573
  f.length && p.push({
1574
1574
  title: u.title,
@@ -1647,9 +1647,9 @@ function Gh(e) {
1647
1647
  ] : []), r = D(() => {
1648
1648
  if (!n.value) return [];
1649
1649
  const u = o.value || t.assets.componentMap.get(n.value.name);
1650
- return u ? (u.props || []).map((g) => ({
1651
- ...g,
1652
- value: n.value?.getPropValue(g.name) ?? g.defaultValue
1650
+ return u ? (u.props || []).map((m) => ({
1651
+ ...m,
1652
+ value: n.value?.getPropValue(m.name) ?? m.defaultValue
1653
1653
  })) : [];
1654
1654
  }), a = (u) => s.value.some((f) => f.name === u) || r.value.some((f) => f.name === u) || u === "style", l = D(() => n.value ? Object.keys(n.value.props).filter((u) => !a(u)).map((u) => ({
1655
1655
  name: u,
@@ -1895,14 +1895,14 @@ function nv(e) {
1895
1895
  ) || ev(U.name));
1896
1896
  }), l = () => D(() => n.value ? (n.value.directives || []).filter(
1897
1897
  (C) => !Kf.includes(C.name)
1898
- ) : []), c = r("vIf"), d = r("vElseIf"), p = r("vElse"), u = r("vShow"), f = r("vBind"), g = r("vFor"), m = r("vHtml"), b = a(), y = l(), E = {
1898
+ ) : []), c = r("vIf"), d = r("vElseIf"), p = r("vElse"), u = r("vShow"), f = r("vBind"), m = r("vFor"), g = r("vHtml"), b = a(), y = l(), E = {
1899
1899
  vIf: c,
1900
1900
  vElseIf: d,
1901
1901
  vElse: p,
1902
1902
  vShow: u,
1903
1903
  vBind: f,
1904
- vFor: g,
1905
- vHtml: m
1904
+ vFor: m,
1905
+ vHtml: g
1906
1906
  };
1907
1907
  return {
1908
1908
  engine: t,
@@ -1912,8 +1912,8 @@ function nv(e) {
1912
1912
  vElse: p,
1913
1913
  vShow: u,
1914
1914
  vBind: f,
1915
- vFor: g,
1916
- vHtml: m,
1915
+ vFor: m,
1916
+ vHtml: g,
1917
1917
  vModels: b,
1918
1918
  customDirectives: y,
1919
1919
  onValueChange: (C, V) => {
@@ -1923,13 +1923,13 @@ function nv(e) {
1923
1923
  onForChange: (C, V) => {
1924
1924
  if (n.value) {
1925
1925
  if (C === "value") {
1926
- V ? (g.value.value = V, n.value.setDirective(g.value)) : n.value.removeDirective(g.value);
1926
+ V ? (m.value.value = V, n.value.setDirective(m.value)) : n.value.removeDirective(m.value);
1927
1927
  return;
1928
1928
  }
1929
- (C === "item" || C === "index") && (g.value.iterator = {
1930
- ...g.value.iterator,
1929
+ (C === "item" || C === "index") && (m.value.iterator = {
1930
+ ...m.value.iterator,
1931
1931
  [C]: V || void 0
1932
- }, n.value.setDirective(g.value));
1932
+ }, n.value.setDirective(m.value));
1933
1933
  }
1934
1934
  },
1935
1935
  onModelChange: (C, V) => {
@@ -2019,7 +2019,7 @@ function lo() {
2019
2019
  return await o?.getTemplateDsl(j);
2020
2020
  const B = t?.getData()?.token, N = `${n}/api/open/dsl/${B}`, $ = await Kn(N, { query: { id: j } });
2021
2021
  return $?.data ? $.data : null;
2022
- }, g = async (j) => {
2022
+ }, m = async (j) => {
2023
2023
  if (o?.getDictOptions)
2024
2024
  return await o?.getDictOptions(j);
2025
2025
  const B = `${n}/api/open/dict/${j}`;
@@ -2034,8 +2034,8 @@ function lo() {
2034
2034
  isLogined: c,
2035
2035
  getTemplates: d,
2036
2036
  getTemplateDsl: f,
2037
- getDictOptions: g,
2038
- getTemplateCategories: () => g("TemplateCategory"),
2037
+ getDictOptions: m,
2038
+ getTemplateCategories: () => m("TemplateCategory"),
2039
2039
  publishTemplate: async (j) => {
2040
2040
  if (o?.publishTemplate)
2041
2041
  return await o?.publishTemplate(j);
@@ -2241,9 +2241,9 @@ function rv() {
2241
2241
  getTemplateDsl: r,
2242
2242
  removeTemplate: a
2243
2243
  } = lo(), l = R([]), c = R(!1), d = async (f) => {
2244
- const g = e.current.value, m = e.project.value;
2245
- if (!m) return;
2246
- if (!g) {
2244
+ const m = e.current.value, g = e.project.value;
2245
+ if (!g) return;
2246
+ if (!m) {
2247
2247
  St.warning({
2248
2248
  message: "设计区无文件,请先打开页面或区块"
2249
2249
  });
@@ -2255,21 +2255,21 @@ function rv() {
2255
2255
  type: "error",
2256
2256
  title: "提示"
2257
2257
  });
2258
- const y = g.toDsl(), { id: E, name: k } = y, S = { ...b, id: E, name: k }, _ = m.currentFile;
2258
+ const y = m.toDsl(), { id: E, name: k } = y, S = { ...b, id: E, name: k }, _ = g.currentFile;
2259
2259
  e.onSaveBlockFileFinish(() => {
2260
- g.update(S), St.success({
2260
+ m.update(S), St.success({
2261
2261
  message: "模板已加载完成"
2262
2262
  });
2263
2263
  }), _ && (_.market = {
2264
2264
  id: f
2265
- }, _.dsl = S, m.isPageFile(_) ? m.updatePage(_) : m.updateBlock(_));
2265
+ }, _.dsl = S, g.isPageFile(_) ? g.updatePage(_) : g.updateBlock(_));
2266
2266
  }, p = D(() => {
2267
2267
  const f = t?.getData()?.id;
2268
- return lr(l.value, (g) => g.author === f ? "我的" : g.category);
2268
+ return lr(l.value, (m) => m.author === f ? "我的" : m.category);
2269
2269
  }), u = () => {
2270
2270
  const f = e.project.value;
2271
- c.value = !0, s(f?.platform).then((g) => {
2272
- l.value = g;
2271
+ c.value = !0, s(f?.platform).then((m) => {
2272
+ l.value = m;
2273
2273
  }).finally(() => {
2274
2274
  c.value = !1;
2275
2275
  });
@@ -2368,17 +2368,17 @@ function cv(e) {
2368
2368
  lines: []
2369
2369
  };
2370
2370
  u.oldLines === 0 && (u.oldStart += 1), u.newLines === 0 && (u.newStart += 1);
2371
- let f = 0, g = 0;
2372
- for (; o < t.length && (g < u.oldLines || f < u.newLines || !((l = t[o]) === null || l === void 0) && l.startsWith("\\")); o++) {
2373
- const m = t[o].length == 0 && o != t.length - 1 ? " " : t[o][0];
2374
- if (m === "+" || m === "-" || m === " " || m === "\\")
2375
- u.lines.push(t[o]), m === "+" ? f++ : m === "-" ? g++ : m === " " && (f++, g++);
2371
+ let f = 0, m = 0;
2372
+ for (; o < t.length && (m < u.oldLines || f < u.newLines || !((l = t[o]) === null || l === void 0) && l.startsWith("\\")); o++) {
2373
+ const g = t[o].length == 0 && o != t.length - 1 ? " " : t[o][0];
2374
+ if (g === "+" || g === "-" || g === " " || g === "\\")
2375
+ u.lines.push(t[o]), g === "+" ? f++ : g === "-" ? m++ : g === " " && (f++, m++);
2376
2376
  else
2377
2377
  throw new Error(`Hunk at line ${c + 1} contained invalid line ${t[o]}`);
2378
2378
  }
2379
- if (!f && u.newLines === 1 && (u.newLines = 0), !g && u.oldLines === 1 && (u.oldLines = 0), f !== u.newLines)
2379
+ if (!f && u.newLines === 1 && (u.newLines = 0), !m && u.oldLines === 1 && (u.oldLines = 0), f !== u.newLines)
2380
2380
  throw new Error("Added line count did not match for hunk at line " + (c + 1));
2381
- if (g !== u.oldLines)
2381
+ if (m !== u.oldLines)
2382
2382
  throw new Error("Removed line count did not match for hunk at line " + (c + 1));
2383
2383
  return u;
2384
2384
  }
@@ -2407,15 +2407,15 @@ function dv(e, t, n = {}) {
2407
2407
  function fv(e, t, n = {}) {
2408
2408
  (n.autoConvertLineEndings || n.autoConvertLineEndings == null) && (sv(e) && lv(t) ? t = Wc(t) : av(e) && iv(t) && (t = Jc(t)));
2409
2409
  const o = e.split(`
2410
- `), s = t.hunks, r = n.compareLine || ((m, b, y, E) => b === E), a = n.fuzzFactor || 0;
2410
+ `), s = t.hunks, r = n.compareLine || ((g, b, y, E) => b === E), a = n.fuzzFactor || 0;
2411
2411
  let l = 0;
2412
2412
  if (a < 0 || !Number.isInteger(a))
2413
2413
  throw new Error("fuzzFactor must be a non-negative integer");
2414
2414
  if (!s.length)
2415
2415
  return e;
2416
2416
  let c = "", d = !1, p = !1;
2417
- for (let m = 0; m < s[s.length - 1].lines.length; m++) {
2418
- const b = s[s.length - 1].lines[m];
2417
+ for (let g = 0; g < s[s.length - 1].lines.length; g++) {
2418
+ const b = s[s.length - 1].lines[g];
2419
2419
  b[0] == "\\" && (c[0] == "+" ? d = !0 : c[0] == "-" && (p = !0)), c = b;
2420
2420
  }
2421
2421
  if (d) {
@@ -2432,15 +2432,15 @@ function fv(e, t, n = {}) {
2432
2432
  else if (!a)
2433
2433
  return !1;
2434
2434
  }
2435
- function u(m, b, y, E = 0, k = !0, S = [], _ = 0) {
2435
+ function u(g, b, y, E = 0, k = !0, S = [], _ = 0) {
2436
2436
  let A = 0, x = !1;
2437
- for (; E < m.length; E++) {
2438
- const O = m[E], C = O.length > 0 ? O[0] : " ", V = O.length > 0 ? O.substr(1) : O;
2437
+ for (; E < g.length; E++) {
2438
+ const O = g[E], C = O.length > 0 ? O[0] : " ", V = O.length > 0 ? O.substr(1) : O;
2439
2439
  if (C === "-")
2440
2440
  if (r(b + 1, o[b], C, V))
2441
2441
  b++, A = 0;
2442
2442
  else
2443
- return !y || o[b] == null ? null : (S[_] = o[b], u(m, b + 1, y - 1, E, !1, S, _ + 1));
2443
+ return !y || o[b] == null ? null : (S[_] = o[b], u(g, b + 1, y - 1, E, !1, S, _ + 1));
2444
2444
  if (C === "+") {
2445
2445
  if (!k)
2446
2446
  return null;
@@ -2450,7 +2450,7 @@ function fv(e, t, n = {}) {
2450
2450
  if (A++, S[_] = o[b], r(b + 1, o[b], C, V))
2451
2451
  _++, k = !0, x = !1, b++;
2452
2452
  else
2453
- return x || !y ? null : o[b] && (u(m, b + 1, y - 1, E + 1, !1, S, _ + 1) || u(m, b + 1, y - 1, E, !1, S, _ + 1)) || u(m, b, y - 1, E + 1, !1, S, _);
2453
+ return x || !y ? null : o[b] && (u(g, b + 1, y - 1, E + 1, !1, S, _ + 1) || u(g, b + 1, y - 1, E, !1, S, _ + 1)) || u(g, b, y - 1, E + 1, !1, S, _);
2454
2454
  }
2455
2455
  return _ -= A, b -= A, S.length = _, {
2456
2456
  patchedLines: S,
@@ -2458,14 +2458,14 @@ function fv(e, t, n = {}) {
2458
2458
  };
2459
2459
  }
2460
2460
  const f = [];
2461
- let g = 0;
2462
- for (let m = 0; m < s.length; m++) {
2463
- const b = s[m];
2461
+ let m = 0;
2462
+ for (let g = 0; g < s.length; g++) {
2463
+ const b = s[g];
2464
2464
  let y;
2465
2465
  const E = o.length - b.oldLines + a;
2466
2466
  let k;
2467
2467
  for (let S = 0; S <= a; S++) {
2468
- k = b.oldStart + g - 1;
2468
+ k = b.oldStart + m - 1;
2469
2469
  const _ = uv(k, l, E);
2470
2470
  for (; k !== void 0 && (y = u(b.lines, k, S), !y); k = _())
2471
2471
  ;
@@ -2480,10 +2480,10 @@ function fv(e, t, n = {}) {
2480
2480
  const _ = y.patchedLines[S];
2481
2481
  f.push(_);
2482
2482
  }
2483
- l = y.oldLineLastI + 1, g = k + 1 - b.oldStart;
2483
+ l = y.oldLineLastI + 1, m = k + 1 - b.oldStart;
2484
2484
  }
2485
- for (let m = l; m < o.length; m++)
2486
- f.push(o[m]);
2485
+ for (let g = l; g < o.length; g++)
2486
+ f.push(o[g]);
2487
2487
  return f.join(`
2488
2488
  `);
2489
2489
  }
@@ -2566,8 +2566,8 @@ function hv() {
2566
2566
  getHotTopics: p,
2567
2567
  getSettins: u,
2568
2568
  createOrder: f,
2569
- cancelOrder: g,
2570
- getOrder: m,
2569
+ cancelOrder: m,
2570
+ getOrder: g,
2571
2571
  getImage: b,
2572
2572
  getOssFile: y,
2573
2573
  postImageTopic: E,
@@ -2808,8 +2808,8 @@ function hv() {
2808
2808
  settings: Y,
2809
2809
  inputDisabled: ge,
2810
2810
  createOrder: f,
2811
- cancelOrder: g,
2812
- getOrder: m,
2811
+ cancelOrder: m,
2812
+ getOrder: g,
2813
2813
  updateChatDsl: tn,
2814
2814
  getImage: b,
2815
2815
  onPostImageTopic: ct,
@@ -2844,7 +2844,7 @@ function vv(e) {
2844
2844
  return le(
2845
2845
  () => t.value?.currentFile,
2846
2846
  (u, f) => {
2847
- u ? (n.value.includes(u.id) || n.value.unshift(u.id), o.value = u.id) : f && (n.value = n.value.filter((g) => g !== f.id), o.value = n.value[0] || "");
2847
+ u ? (n.value.includes(u.id) || n.value.unshift(u.id), o.value = u.id) : f && (n.value = n.value.filter((m) => m !== f.id), o.value = n.value[0] || "");
2848
2848
  }
2849
2849
  ), le(o, (u) => {
2850
2850
  if (u && t.value && t.value.currentFile?.id !== u) {
@@ -2982,22 +2982,22 @@ var Dv = /* @__PURE__ */ Ov({ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/
2982
2982
  let l = null;
2983
2983
  return r.proto ? p : d;
2984
2984
  function c(u, f) {
2985
- const g = Object.keys(u), m = new Array(g.length);
2986
- for (let b = 0; b < g.length; b++) {
2987
- const y = g[b], E = u[y];
2988
- typeof E != "object" || E === null ? m[y] = E : E.constructor !== Object && (l = a.get(E.constructor)) ? m[y] = l(E, f) : ArrayBuffer.isView(E) ? m[y] = n(E) : m[y] = f(E);
2985
+ const m = Object.keys(u), g = new Array(m.length);
2986
+ for (let b = 0; b < m.length; b++) {
2987
+ const y = m[b], E = u[y];
2988
+ typeof E != "object" || E === null ? g[y] = E : E.constructor !== Object && (l = a.get(E.constructor)) ? g[y] = l(E, f) : ArrayBuffer.isView(E) ? g[y] = n(E) : g[y] = f(E);
2989
2989
  }
2990
- return m;
2990
+ return g;
2991
2991
  }
2992
2992
  function d(u) {
2993
2993
  if (typeof u != "object" || u === null) return u;
2994
2994
  if (Array.isArray(u)) return c(u, d);
2995
2995
  if (u.constructor !== Object && (l = a.get(u.constructor))) return l(u, d);
2996
2996
  const f = {};
2997
- for (const g in u) {
2998
- if (Object.hasOwnProperty.call(u, g) === !1) continue;
2999
- const m = u[g];
3000
- typeof m != "object" || m === null ? f[g] = m : m.constructor !== Object && (l = a.get(m.constructor)) ? f[g] = l(m, d) : ArrayBuffer.isView(m) ? f[g] = n(m) : f[g] = d(m);
2997
+ for (const m in u) {
2998
+ if (Object.hasOwnProperty.call(u, m) === !1) continue;
2999
+ const g = u[m];
3000
+ typeof g != "object" || g === null ? f[m] = g : g.constructor !== Object && (l = a.get(g.constructor)) ? f[m] = l(g, d) : ArrayBuffer.isView(g) ? f[m] = n(g) : f[m] = d(g);
3001
3001
  }
3002
3002
  return f;
3003
3003
  }
@@ -3006,68 +3006,68 @@ var Dv = /* @__PURE__ */ Ov({ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/
3006
3006
  if (Array.isArray(u)) return c(u, p);
3007
3007
  if (u.constructor !== Object && (l = a.get(u.constructor))) return l(u, p);
3008
3008
  const f = {};
3009
- for (const g in u) {
3010
- const m = u[g];
3011
- typeof m != "object" || m === null ? f[g] = m : m.constructor !== Object && (l = a.get(m.constructor)) ? f[g] = l(m, p) : ArrayBuffer.isView(m) ? f[g] = n(m) : f[g] = p(m);
3009
+ for (const m in u) {
3010
+ const g = u[m];
3011
+ typeof g != "object" || g === null ? f[m] = g : g.constructor !== Object && (l = a.get(g.constructor)) ? f[m] = l(g, p) : ArrayBuffer.isView(g) ? f[m] = n(g) : f[m] = p(g);
3012
3012
  }
3013
3013
  return f;
3014
3014
  }
3015
3015
  }
3016
3016
  function s(r) {
3017
3017
  const a = [], l = [], c = /* @__PURE__ */ new Map();
3018
- if (c.set(Date, (g) => new Date(g)), c.set(Map, (g, m) => new Map(p(Array.from(g), m))), c.set(Set, (g, m) => new Set(p(Array.from(g), m))), r.constructorHandlers) for (const g of r.constructorHandlers) c.set(g[0], g[1]);
3018
+ if (c.set(Date, (m) => new Date(m)), c.set(Map, (m, g) => new Map(p(Array.from(m), g))), c.set(Set, (m, g) => new Set(p(Array.from(m), g))), r.constructorHandlers) for (const m of r.constructorHandlers) c.set(m[0], m[1]);
3019
3019
  let d = null;
3020
3020
  return r.proto ? f : u;
3021
- function p(g, m) {
3022
- const b = Object.keys(g), y = new Array(b.length);
3021
+ function p(m, g) {
3022
+ const b = Object.keys(m), y = new Array(b.length);
3023
3023
  for (let E = 0; E < b.length; E++) {
3024
- const k = b[E], S = g[k];
3024
+ const k = b[E], S = m[k];
3025
3025
  if (typeof S != "object" || S === null) y[k] = S;
3026
- else if (S.constructor !== Object && (d = c.get(S.constructor))) y[k] = d(S, m);
3026
+ else if (S.constructor !== Object && (d = c.get(S.constructor))) y[k] = d(S, g);
3027
3027
  else if (ArrayBuffer.isView(S)) y[k] = n(S);
3028
3028
  else {
3029
3029
  const _ = a.indexOf(S);
3030
- _ !== -1 ? y[k] = l[_] : y[k] = m(S);
3030
+ _ !== -1 ? y[k] = l[_] : y[k] = g(S);
3031
3031
  }
3032
3032
  }
3033
3033
  return y;
3034
3034
  }
3035
- function u(g) {
3036
- if (typeof g != "object" || g === null) return g;
3037
- if (Array.isArray(g)) return p(g, u);
3038
- if (g.constructor !== Object && (d = c.get(g.constructor))) return d(g, u);
3039
- const m = {};
3040
- a.push(g), l.push(m);
3041
- for (const b in g) {
3042
- if (Object.hasOwnProperty.call(g, b) === !1) continue;
3043
- const y = g[b];
3044
- if (typeof y != "object" || y === null) m[b] = y;
3045
- else if (y.constructor !== Object && (d = c.get(y.constructor))) m[b] = d(y, u);
3046
- else if (ArrayBuffer.isView(y)) m[b] = n(y);
3035
+ function u(m) {
3036
+ if (typeof m != "object" || m === null) return m;
3037
+ if (Array.isArray(m)) return p(m, u);
3038
+ if (m.constructor !== Object && (d = c.get(m.constructor))) return d(m, u);
3039
+ const g = {};
3040
+ a.push(m), l.push(g);
3041
+ for (const b in m) {
3042
+ if (Object.hasOwnProperty.call(m, b) === !1) continue;
3043
+ const y = m[b];
3044
+ if (typeof y != "object" || y === null) g[b] = y;
3045
+ else if (y.constructor !== Object && (d = c.get(y.constructor))) g[b] = d(y, u);
3046
+ else if (ArrayBuffer.isView(y)) g[b] = n(y);
3047
3047
  else {
3048
3048
  const E = a.indexOf(y);
3049
- E !== -1 ? m[b] = l[E] : m[b] = u(y);
3049
+ E !== -1 ? g[b] = l[E] : g[b] = u(y);
3050
3050
  }
3051
3051
  }
3052
- return a.pop(), l.pop(), m;
3053
- }
3054
- function f(g) {
3055
- if (typeof g != "object" || g === null) return g;
3056
- if (Array.isArray(g)) return p(g, f);
3057
- if (g.constructor !== Object && (d = c.get(g.constructor))) return d(g, f);
3058
- const m = {};
3059
- a.push(g), l.push(m);
3060
- for (const b in g) {
3061
- const y = g[b];
3062
- if (typeof y != "object" || y === null) m[b] = y;
3063
- else if (y.constructor !== Object && (d = c.get(y.constructor))) m[b] = d(y, f);
3064
- else if (ArrayBuffer.isView(y)) m[b] = n(y);
3052
+ return a.pop(), l.pop(), g;
3053
+ }
3054
+ function f(m) {
3055
+ if (typeof m != "object" || m === null) return m;
3056
+ if (Array.isArray(m)) return p(m, f);
3057
+ if (m.constructor !== Object && (d = c.get(m.constructor))) return d(m, f);
3058
+ const g = {};
3059
+ a.push(m), l.push(g);
3060
+ for (const b in m) {
3061
+ const y = m[b];
3062
+ if (typeof y != "object" || y === null) g[b] = y;
3063
+ else if (y.constructor !== Object && (d = c.get(y.constructor))) g[b] = d(y, f);
3064
+ else if (ArrayBuffer.isView(y)) g[b] = n(y);
3065
3065
  else {
3066
3066
  const E = a.indexOf(y);
3067
- E !== -1 ? m[b] = l[E] : m[b] = f(y);
3067
+ E !== -1 ? g[b] = l[E] : g[b] = f(y);
3068
3068
  }
3069
3069
  }
3070
- return a.pop(), l.pop(), m;
3070
+ return a.pop(), l.pop(), g;
3071
3071
  }
3072
3072
  }
3073
3073
  }) }), Vv = /* @__PURE__ */ Rv(Dv());
@@ -3102,19 +3102,19 @@ function oo(e, t = 25, n = {}) {
3102
3102
  let o, s, r = [], a, l;
3103
3103
  const c = (u, f) => (a = Fv(e, u, f), a.finally(() => {
3104
3104
  if (a = null, n.trailing && l && !s) {
3105
- const g = c(u, l);
3106
- return l = null, g;
3105
+ const m = c(u, l);
3106
+ return l = null, m;
3107
3107
  }
3108
3108
  }), a), d = function(...u) {
3109
3109
  return n.trailing && (l = u), a || new Promise((f) => {
3110
- const g = !s && n.leading;
3110
+ const m = !s && n.leading;
3111
3111
  clearTimeout(s), s = setTimeout(() => {
3112
3112
  s = null;
3113
- const m = n.leading ? o : c(this, u);
3113
+ const g = n.leading ? o : c(this, u);
3114
3114
  l = null;
3115
- for (const b of r) b(m);
3115
+ for (const b of r) b(g);
3116
3116
  r = [];
3117
- }, t), g ? (o = c(this, u), f(o)) : r.push(f);
3117
+ }, t), m ? (o = c(this, u), f(o)) : r.push(f);
3118
3118
  });
3119
3119
  }, p = (u) => {
3120
3120
  u && (clearTimeout(u), s = null);
@@ -3278,7 +3278,7 @@ function Xv(e, t) {
3278
3278
  } = t;
3279
3279
  let u = !1;
3280
3280
  const f = /* @__PURE__ */ new Map();
3281
- let g, m;
3281
+ let m, g;
3282
3282
  async function b(C, V, U, H) {
3283
3283
  if (u)
3284
3284
  throw new Error(`[birpc] rpc is closed, cannot call "${C}"`);
@@ -3289,11 +3289,11 @@ function Xv(e, t) {
3289
3289
  await K(J);
3290
3290
  return;
3291
3291
  }
3292
- if (g)
3292
+ if (m)
3293
3293
  try {
3294
- await g;
3294
+ await m;
3295
3295
  } finally {
3296
- g = void 0;
3296
+ m = void 0;
3297
3297
  }
3298
3298
  let { promise: z, resolve: j, reject: B } = tb();
3299
3299
  const N = ob();
@@ -3302,7 +3302,7 @@ function Xv(e, t) {
3302
3302
  async function Y(re = J) {
3303
3303
  return p >= 0 && ($ = qv(() => {
3304
3304
  try {
3305
- if (t.onTimeoutError?.call(m, C, V) !== !0)
3305
+ if (t.onTimeoutError?.call(g, C, V) !== !0)
3306
3306
  throw new Error(`[birpc] timeout on calling "${C}"`);
3307
3307
  } catch (ge) {
3308
3308
  B(ge);
@@ -3311,9 +3311,9 @@ function Xv(e, t) {
3311
3311
  }, p), typeof $ == "object" && ($ = $.unref?.())), f.set(N, { resolve: j, reject: B, timeoutId: $, method: C }), await K(re), z;
3312
3312
  }
3313
3313
  try {
3314
- t.onRequest ? await t.onRequest.call(m, J, Y, j) : await Y();
3314
+ t.onRequest ? await t.onRequest.call(g, J, Y, j) : await Y();
3315
3315
  } catch (re) {
3316
- if (t.onGeneralError?.call(m, re) !== !0)
3316
+ if (t.onGeneralError?.call(g, re) !== !0)
3317
3317
  throw re;
3318
3318
  return;
3319
3319
  } finally {
@@ -3336,7 +3336,7 @@ function Xv(e, t) {
3336
3336
  $close: A,
3337
3337
  $functions: e
3338
3338
  };
3339
- m = new Proxy({}, {
3339
+ g = new Proxy({}, {
3340
3340
  get(C, V) {
3341
3341
  if (Object.prototype.hasOwnProperty.call(_, V))
3342
3342
  return _[V];
@@ -3366,37 +3366,37 @@ function Xv(e, t) {
3366
3366
  try {
3367
3367
  U = l(C);
3368
3368
  } catch (H) {
3369
- if (t.onGeneralError?.call(m, H) !== !0)
3369
+ if (t.onGeneralError?.call(g, H) !== !0)
3370
3370
  throw H;
3371
3371
  return;
3372
3372
  }
3373
3373
  if (U.t === Fl) {
3374
3374
  const { m: H, a: J, o: K } = U;
3375
- let z, j, B = await (c ? c.call(m, H, e[H]) : e[H]);
3375
+ let z, j, B = await (c ? c.call(g, H, e[H]) : e[H]);
3376
3376
  if (K && (B || (B = () => {
3377
3377
  })), !B)
3378
3378
  j = new Error(`[birpc] function "${H}" not found`);
3379
3379
  else
3380
3380
  try {
3381
- z = await B.apply(d === "rpc" ? m : e, J);
3381
+ z = await B.apply(d === "rpc" ? g : e, J);
3382
3382
  } catch (N) {
3383
3383
  j = N;
3384
3384
  }
3385
3385
  if (U.i) {
3386
- if (j && t.onError && t.onError.call(m, j, H, J), j && t.onFunctionError && t.onFunctionError.call(m, j, H, J) === !0)
3386
+ if (j && t.onError && t.onError.call(g, j, H, J), j && t.onFunctionError && t.onFunctionError.call(g, j, H, J) === !0)
3387
3387
  return;
3388
3388
  if (!j)
3389
3389
  try {
3390
3390
  await n(a({ t: Hl, i: U.i, r: z }), ...V);
3391
3391
  return;
3392
3392
  } catch (N) {
3393
- if (j = N, t.onGeneralError?.call(m, N, H, J) !== !0)
3393
+ if (j = N, t.onGeneralError?.call(g, N, H, J) !== !0)
3394
3394
  throw N;
3395
3395
  }
3396
3396
  try {
3397
3397
  await n(a({ t: Hl, i: U.i, e: j }), ...V);
3398
3398
  } catch (N) {
3399
- if (t.onGeneralError?.call(m, N, H, J) !== !0)
3399
+ if (t.onGeneralError?.call(g, N, H, J) !== !0)
3400
3400
  throw N;
3401
3401
  }
3402
3402
  }
@@ -3405,7 +3405,7 @@ function Xv(e, t) {
3405
3405
  z && ($l(z.timeoutId), K ? z.reject(K) : z.resolve(J)), f.delete(H);
3406
3406
  }
3407
3407
  }
3408
- return g = o(O), m;
3408
+ return m = o(O), g;
3409
3409
  }
3410
3410
  const Wl = /* @__PURE__ */ new WeakMap();
3411
3411
  function Zv(e, t) {
@@ -3415,37 +3415,37 @@ function Zv(e, t) {
3415
3415
  });
3416
3416
  }
3417
3417
  function eb(e, t, n = {}) {
3418
- const o = () => typeof t == "function" ? t() : t, s = (f = o()) => Zv(f, (g) => Xv(e, { ...n, ...g }));
3419
- function r(f, g, m, b) {
3418
+ const o = () => typeof t == "function" ? t() : t, s = (f = o()) => Zv(f, (m) => Xv(e, { ...n, ...m }));
3419
+ function r(f, m, g, b) {
3420
3420
  const y = s();
3421
- return Promise.all(y.map((E) => E.$callRaw({ method: f, args: g, event: m, optional: b })));
3421
+ return Promise.all(y.map((E) => E.$callRaw({ method: f, args: m, event: g, optional: b })));
3422
3422
  }
3423
- function a(f, ...g) {
3424
- return r(f, g, !1);
3423
+ function a(f, ...m) {
3424
+ return r(f, m, !1);
3425
3425
  }
3426
- function l(f, ...g) {
3427
- return r(f, g, !1, !0);
3426
+ function l(f, ...m) {
3427
+ return r(f, m, !1, !0);
3428
3428
  }
3429
- function c(f, ...g) {
3430
- return r(f, g, !0);
3429
+ function c(f, ...m) {
3430
+ return r(f, m, !0);
3431
3431
  }
3432
3432
  const d = {
3433
3433
  $call: a,
3434
3434
  $callOptional: l,
3435
3435
  $callEvent: c
3436
3436
  }, p = new Proxy({}, {
3437
- get(f, g) {
3438
- if (Object.prototype.hasOwnProperty.call(d, g))
3439
- return d[g];
3440
- const b = s().map((E) => E[g]), y = (...E) => Promise.all(b.map((k) => k(...E)));
3437
+ get(f, m) {
3438
+ if (Object.prototype.hasOwnProperty.call(d, m))
3439
+ return d[m];
3440
+ const b = s().map((E) => E[m]), y = (...E) => Promise.all(b.map((k) => k(...E)));
3441
3441
  return y.asEvent = async (...E) => {
3442
3442
  await Promise.all(b.map((k) => k.asEvent(...E)));
3443
3443
  }, y;
3444
3444
  }
3445
3445
  });
3446
3446
  function u(f) {
3447
- const g = o();
3448
- return f?.(g), s(g);
3447
+ const m = o();
3448
+ return f?.(m), s(m);
3449
3449
  }
3450
3450
  return s(), {
3451
3451
  get clients() {
@@ -4887,8 +4887,8 @@ async function Oy(e, t, n, o, s, r) {
4887
4887
  groupId: c
4888
4888
  }
4889
4889
  }), Ur.has(d)) {
4890
- const { app: p, uid: u, instance: f, type: g, time: m } = Ur.get(d);
4891
- Ur.delete(d), await Iu(e, p, u, f, g, m);
4890
+ const { app: p, uid: u, instance: f, type: m, time: g } = Ur.get(d);
4891
+ Ur.delete(d), await Iu(e, p, u, f, m, g);
4892
4892
  }
4893
4893
  }
4894
4894
  function Iu(e, t, n, o, s, r) {
@@ -6563,12 +6563,12 @@ var zy = /* @__PURE__ */ ou({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_
6563
6563
  x[Ne + ""] = Ne + "";
6564
6564
  }), Object.keys(x).forEach(function(Ne) {
6565
6565
  var He;
6566
- Ne.length > 1 ? He = new RegExp("\\b" + g(Ne) + "\\b", "gi") : He = new RegExp(g(Ne), "gi"), y = y.replace(He, x[Ne]);
6566
+ Ne.length > 1 ? He = new RegExp("\\b" + m(Ne) + "\\b", "gi") : He = new RegExp(m(Ne), "gi"), y = y.replace(He, x[Ne]);
6567
6567
  });
6568
6568
  for (N in x) ge += N;
6569
6569
  }
6570
- for (ge += k, ge = g(ge), y = y.replace(/(^\s+|\s+$)/g, ""), Y = !1, re = !1, B = 0, $ = y.length; B < $; B++)
6571
- N = y[B], m(N, x) ? Y = !1 : z[N] ? (N = Y && z[N].match(/[A-Za-z0-9]/) ? " " + z[N] : z[N], Y = !1) : N in o ? (B + 1 < $ && s.indexOf(y[B + 1]) >= 0 ? (_ += N, N = "") : re === !0 ? (N = r[_] + o[N], _ = "") : N = Y && o[N].match(/[A-Za-z0-9]/) ? " " + o[N] : o[N], Y = !1, re = !1) : N in r ? (_ += N, N = "", B === $ - 1 && (N = r[_]), re = !0) : K[N] && !(U && c.indexOf(N) !== -1) && !(H && d.indexOf(N) !== -1) ? (N = Y || S.substr(-1).match(/[A-Za-z0-9]/) ? k + K[N] : K[N], N += y[B + 1] !== void 0 && y[B + 1].match(/[A-Za-z0-9]/) ? k : "", Y = !0) : (re === !0 ? (N = r[_] + N, _ = "", re = !1) : Y && (/[A-Za-z0-9]/.test(N) || S.substr(-1).match(/A-Za-z0-9]/)) && (N = " " + N), Y = !1), S += N.replace(new RegExp("[^\\w\\s" + ge + "_-]", "g"), k);
6570
+ for (ge += k, ge = m(ge), y = y.replace(/(^\s+|\s+$)/g, ""), Y = !1, re = !1, B = 0, $ = y.length; B < $; B++)
6571
+ N = y[B], g(N, x) ? Y = !1 : z[N] ? (N = Y && z[N].match(/[A-Za-z0-9]/) ? " " + z[N] : z[N], Y = !1) : N in o ? (B + 1 < $ && s.indexOf(y[B + 1]) >= 0 ? (_ += N, N = "") : re === !0 ? (N = r[_] + o[N], _ = "") : N = Y && o[N].match(/[A-Za-z0-9]/) ? " " + o[N] : o[N], Y = !1, re = !1) : N in r ? (_ += N, N = "", B === $ - 1 && (N = r[_]), re = !0) : K[N] && !(U && c.indexOf(N) !== -1) && !(H && d.indexOf(N) !== -1) ? (N = Y || S.substr(-1).match(/[A-Za-z0-9]/) ? k + K[N] : K[N], N += y[B + 1] !== void 0 && y[B + 1].match(/[A-Za-z0-9]/) ? k : "", Y = !0) : (re === !0 ? (N = r[_] + N, _ = "", re = !1) : Y && (/[A-Za-z0-9]/.test(N) || S.substr(-1).match(/A-Za-z0-9]/)) && (N = " " + N), Y = !1), S += N.replace(new RegExp("[^\\w\\s" + ge + "_-]", "g"), k);
6572
6572
  return C && (S = S.replace(/(\w)(\S*)/g, function(Ne, He, Qe) {
6573
6573
  var Pe = He.toUpperCase() + (Qe !== null ? Qe : "");
6574
6574
  return Object.keys(x).indexOf(Pe.toLowerCase()) < 0 ? Pe : Pe.toLowerCase();
@@ -6577,9 +6577,9 @@ var zy = /* @__PURE__ */ ou({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_
6577
6577
  return function(k) {
6578
6578
  return u(k, y);
6579
6579
  };
6580
- }, g = function(y) {
6580
+ }, m = function(y) {
6581
6581
  return y.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
6582
- }, m = function(b, y) {
6582
+ }, g = function(b, y) {
6583
6583
  for (var E in y) if (y[E] === b) return !0;
6584
6584
  };
6585
6585
  if (typeof t < "u" && t.exports)
@@ -7102,23 +7102,23 @@ const Ku = (e, t, n, o, s = [], r = [], a = /* @__PURE__ */ new Map()) => {
7102
7102
  const l = u_(e);
7103
7103
  if (!l) {
7104
7104
  E_(e, s, t);
7105
- const g = a.get(e);
7106
- if (g) return o ? { transformedValue: null } : g;
7105
+ const m = a.get(e);
7106
+ if (m) return o ? { transformedValue: null } : m;
7107
7107
  }
7108
7108
  if (!w_(e, n)) {
7109
- const g = oi(e, n), m = g ? {
7110
- transformedValue: g.value,
7111
- annotations: [g.type]
7109
+ const m = oi(e, n), g = m ? {
7110
+ transformedValue: m.value,
7111
+ annotations: [m.type]
7112
7112
  } : { transformedValue: e };
7113
- return l || a.set(e, m), m;
7113
+ return l || a.set(e, g), g;
7114
7114
  }
7115
7115
  if (zr(r, e)) return { transformedValue: null };
7116
7116
  const c = oi(e, n), d = c?.value ?? e, p = so(d) ? [] : {}, u = {};
7117
- Lo(d, (g, m) => {
7118
- if (m === "__proto__" || m === "constructor" || m === "prototype") throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
7119
- const b = Ku(g, t, n, o, [...s, m], [...r, e], a);
7120
- p[m] = b.transformedValue, so(b.annotations) ? u[m] = b.annotations : fr(b.annotations) && Lo(b.annotations, (y, E) => {
7121
- u[Lu(m) + "." + E] = y;
7117
+ Lo(d, (m, g) => {
7118
+ if (g === "__proto__" || g === "constructor" || g === "prototype") throw new Error(`Detected property ${g}. This is a prototype pollution risk, please remove it from your object.`);
7119
+ const b = Ku(m, t, n, o, [...s, g], [...r, e], a);
7120
+ p[g] = b.transformedValue, so(b.annotations) ? u[g] = b.annotations : fr(b.annotations) && Lo(b.annotations, (y, E) => {
7121
+ u[Lu(g) + "." + E] = y;
7122
7122
  });
7123
7123
  });
7124
7124
  const f = da(u) ? {
@@ -7727,13 +7727,13 @@ function ma(e, t, n, o, s = 0, r = /* @__PURE__ */ new Map()) {
7727
7727
  let a, l, c, d, p;
7728
7728
  const u = o.get(e);
7729
7729
  if (u != null) return u;
7730
- const f = n.length, g = Object.prototype.toString.call(e);
7731
- if (ii(e, g)) {
7730
+ const f = n.length, m = Object.prototype.toString.call(e);
7731
+ if (ii(e, m)) {
7732
7732
  if (yw(e)) return f;
7733
7733
  a = {}, o.set(e, f), n.push(a);
7734
- const m = Object.keys(e);
7735
- for (d = 0, p = m.length; d < p; d++) {
7736
- if (l = m[d], l === "compilerOptions") return f;
7734
+ const g = Object.keys(e);
7735
+ for (d = 0, p = g.length; d < p; d++) {
7736
+ if (l = g[d], l === "compilerOptions") return f;
7737
7737
  c = e[l];
7738
7738
  const b = c != null && ii(c, Object.prototype.toString.call(e)) && ku(c);
7739
7739
  try {
@@ -7743,12 +7743,12 @@ function ma(e, t, n, o, s = 0, r = /* @__PURE__ */ new Map()) {
7743
7743
  }
7744
7744
  a[l] = ma(c, t, n, o, s + 1, r), b && r.delete(c);
7745
7745
  }
7746
- } else if (bw(e, g))
7746
+ } else if (bw(e, m))
7747
7747
  for (a = [], o.set(e, f), n.push(a), d = 0, p = e.length; d < p; d++) {
7748
7748
  try {
7749
7749
  c = e[d], t && (c = t.call(e, d, c, s, r));
7750
- } catch (m) {
7751
- c = m;
7750
+ } catch (g) {
7751
+ c = g;
7752
7752
  }
7753
7753
  a[d] = ma(c, t, n, o, s + 1, r);
7754
7754
  }
@@ -8182,30 +8182,30 @@ function Pw() {
8182
8182
  c = !1, r.value?.setHover(null), a && a(), l && l();
8183
8183
  }, ho.highlighComponent = async (f) => {
8184
8184
  if (c) return;
8185
- const g = window.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__?.instanceMap;
8186
- if (!g) return;
8187
- const m = g.get(f);
8185
+ const m = window.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__?.instanceMap;
8188
8186
  if (!m) return;
8189
- const b = m.ctx?.$el?.__vtj__;
8187
+ const g = m.get(f);
8188
+ if (!g) return;
8189
+ const b = g.ctx?.$el?.__vtj__;
8190
8190
  if (!b) return;
8191
8191
  const y = Io.nodes[b];
8192
8192
  y && r.value?.setHover(y);
8193
8193
  }, ho.inspectComponentInspector = async () => (c = !0, new Promise((f) => {
8194
8194
  a = le(
8195
8195
  () => r.value?.hover.value,
8196
- (g) => {
8197
- if (n.value && g && g.el) {
8198
- const m = g.el.__vueParentComponent.__VUE_DEVTOOLS_NEXT_UID__;
8199
- ho.highlighComponent(m);
8196
+ (m) => {
8197
+ if (n.value && m && m.el) {
8198
+ const g = m.el.__vueParentComponent.__VUE_DEVTOOLS_NEXT_UID__;
8199
+ ho.highlighComponent(g);
8200
8200
  }
8201
8201
  }
8202
8202
  ), l = le(
8203
8203
  () => r.value?.selected.value,
8204
- (g) => {
8205
- if (g && g.el) {
8204
+ (m) => {
8205
+ if (m && m.el) {
8206
8206
  a && a(), l && l();
8207
- const m = g.el.__vueParentComponent.__VUE_DEVTOOLS_NEXT_UID__;
8208
- f(JSON.stringify({ id: m })), c = !1;
8207
+ const g = m.el.__vueParentComponent.__VUE_DEVTOOLS_NEXT_UID__;
8208
+ f(JSON.stringify({ id: g })), c = !1;
8209
8209
  } else
8210
8210
  ho.cancelInspectComponentInspector();
8211
8211
  }
@@ -8214,11 +8214,11 @@ function Pw() {
8214
8214
  preset: "iframe"
8215
8215
  });
8216
8216
  const d = async () => {
8217
- const f = "skeletonwrapper", g = window.__VUE_DEVTOOLS_KIT_APP_RECORDS__ || [], m = dr.findIndex(
8217
+ const f = "skeletonwrapper", m = window.__VUE_DEVTOOLS_KIT_APP_RECORDS__ || [], g = dr.findIndex(
8218
8218
  (E) => E.appRecord.id === f
8219
8219
  );
8220
- dr.splice(m, 1);
8221
- const b = g.find((E) => E.id === f), y = g.find((E) => E.id !== f);
8220
+ dr.splice(g, 1);
8221
+ const b = m.find((E) => E.id === f), y = m.find((E) => E.id !== f);
8222
8222
  y && o.value && (await ho.toggleApp(y.id), es(y)), b && (ca(b.app), s.value.callHook("app:unmount", b.app)), await qt(500), t.value.$vtjEl.click();
8223
8223
  };
8224
8224
  return {
@@ -8358,7 +8358,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8358
8358
  v(i(ji), {
8359
8359
  size: "small",
8360
8360
  modelValue: d.value,
8361
- "onUpdate:modelValue": f[0] || (f[0] = (g) => d.value = g)
8361
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => d.value = m)
8362
8362
  }, {
8363
8363
  default: w(() => [
8364
8364
  v(i(Qo), {
@@ -8403,7 +8403,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8403
8403
  d.value === "custom" ? (h(), T(Kw, {
8404
8404
  key: 0,
8405
8405
  modelValue: p.value,
8406
- "onUpdate:modelValue": f[1] || (f[1] = (g) => p.value = g)
8406
+ "onUpdate:modelValue": f[1] || (f[1] = (m) => p.value = m)
8407
8407
  }, null, 8, ["modelValue"])) : L("", !0),
8408
8408
  L("", !0),
8409
8409
  v(i(pf), null, {
@@ -8442,7 +8442,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8442
8442
  "inactive-text": "辅助线",
8443
8443
  disabled: !!n.preview,
8444
8444
  modelValue: i(l).state.outlineEnabled,
8445
- "onUpdate:modelValue": f[2] || (f[2] = (g) => i(l).state.outlineEnabled = g)
8445
+ "onUpdate:modelValue": f[2] || (f[2] = (m) => i(l).state.outlineEnabled = m)
8446
8446
  }, null, 8, ["disabled", "modelValue"]),
8447
8447
  v(i(sr), {
8448
8448
  class: "v-toolbar-widget__active-event",
@@ -8452,7 +8452,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8452
8452
  "inactive-text": "响应事件",
8453
8453
  disabled: !!n.preview,
8454
8454
  modelValue: i(l).state.activeEvent,
8455
- "onUpdate:modelValue": f[3] || (f[3] = (g) => i(l).state.activeEvent = g)
8455
+ "onUpdate:modelValue": f[3] || (f[3] = (m) => i(l).state.activeEvent = m)
8456
8456
  }, null, 8, ["disabled", "modelValue"])
8457
8457
  ]));
8458
8458
  }
@@ -8483,7 +8483,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8483
8483
  title: "提示",
8484
8484
  type: "error"
8485
8485
  }), !1;
8486
- const f = fp(d.value), { dsl: g, id: m } = t;
8486
+ const f = fp(d.value), { dsl: m, id: g } = t;
8487
8487
  let b;
8488
8488
  l.value && (b = await vn.confirm(
8489
8489
  "该模板已存在,请确认您的操作是更新模板还是新建",
@@ -8494,9 +8494,9 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8494
8494
  cancelButtonText: "新建",
8495
8495
  showClose: !1
8496
8496
  }
8497
- ).catch(() => !1) ? m : void 0);
8497
+ ).catch(() => !1) ? g : void 0);
8498
8498
  const y = r.project.value?.platform || "web", E = {
8499
- dsl: JSON.stringify(g),
8499
+ dsl: JSON.stringify(m),
8500
8500
  cover: f,
8501
8501
  category: "",
8502
8502
  version: "",
@@ -8513,7 +8513,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8513
8513
  }, u = async (f) => {
8514
8514
  f.raw ? c.value = await Qi(f.raw) : c.value = "";
8515
8515
  };
8516
- return (f, g) => (h(), T(i(Xt), {
8516
+ return (f, m) => (h(), T(i(Xt), {
8517
8517
  width: "600px",
8518
8518
  height: "760px",
8519
8519
  icon: i(Qr),
@@ -8542,7 +8542,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8542
8542
  type: "warning",
8543
8543
  size: "small"
8544
8544
  }, {
8545
- default: w(() => [...g[0] || (g[0] = [
8545
+ default: w(() => [...m[0] || (m[0] = [
8546
8546
  te("更换图片", -1)
8547
8547
  ])]),
8548
8548
  _: 1
@@ -8640,10 +8640,10 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8640
8640
  o.skeleton?.openPreview(""), l.value = !0;
8641
8641
  } else
8642
8642
  We("请先打开文件", "warning");
8643
- }, g = () => {
8643
+ }, m = () => {
8644
8644
  const S = o.project.value;
8645
8645
  S && (S.currentFile ? S.publish(S.currentFile) : We("请先打开文件", "warning"));
8646
- }, m = async () => {
8646
+ }, g = async () => {
8647
8647
  const S = o.project.value;
8648
8648
  if (S)
8649
8649
  if (S.currentFile)
@@ -8676,13 +8676,13 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8676
8676
  if (_)
8677
8677
  switch (S) {
8678
8678
  case "current":
8679
- g();
8679
+ m();
8680
8680
  break;
8681
8681
  case "project":
8682
8682
  _.publish();
8683
8683
  break;
8684
8684
  case "template":
8685
- m();
8685
+ g();
8686
8686
  break;
8687
8687
  }
8688
8688
  }, y = async () => {
@@ -8776,7 +8776,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8776
8776
  }, 8, ["icon"])) : L("", !0),
8777
8777
  n.onlyPublishTemplate ? (h(), T(i(be), {
8778
8778
  key: 3,
8779
- onClick: m,
8779
+ onClick: g,
8780
8780
  icon: i(Qr),
8781
8781
  size: "small",
8782
8782
  type: "primary"
@@ -8790,7 +8790,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8790
8790
  "split-button": "",
8791
8791
  type: "primary",
8792
8792
  size: "small",
8793
- onClick: g,
8793
+ onClick: m,
8794
8794
  onCommand: b
8795
8795
  }, {
8796
8796
  dropdown: w(() => [
@@ -8853,10 +8853,10 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8853
8853
  const n = e, o = t, s = R(!1), r = R(n.modelValue), a = R(""), l = D(
8854
8854
  () => oa[n.modelValue] || n.modelValue
8855
8855
  ), c = D(() => {
8856
- const g = Object.entries(oa);
8857
- return a.value ? g.filter((m) => m[0].toLowerCase().includes(a.value)) : g;
8858
- }), d = (g) => {
8859
- r.value = g;
8856
+ const m = Object.entries(oa);
8857
+ return a.value ? m.filter((g) => g[0].toLowerCase().includes(a.value)) : m;
8858
+ }), d = (m) => {
8859
+ r.value = m;
8860
8860
  }, p = () => {
8861
8861
  o("change", r.value), o("update:modelValue", r.value), s.value = !1;
8862
8862
  }, u = () => {
@@ -8864,7 +8864,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8864
8864
  }, f = () => {
8865
8865
  s.value = !0;
8866
8866
  };
8867
- return (g, m) => (h(), M("div", r0, [
8867
+ return (m, g) => (h(), M("div", r0, [
8868
8868
  v(i(Ze), {
8869
8869
  size: n.size,
8870
8870
  readonly: "",
@@ -8887,7 +8887,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8887
8887
  submit: "",
8888
8888
  clear: "",
8889
8889
  modelValue: s.value,
8890
- "onUpdate:modelValue": m[1] || (m[1] = (b) => s.value = b),
8890
+ "onUpdate:modelValue": g[1] || (g[1] = (b) => s.value = b),
8891
8891
  onSubmit: p
8892
8892
  }, {
8893
8893
  extra: w(() => [
@@ -8896,7 +8896,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8896
8896
  type: "warning",
8897
8897
  onClick: u
8898
8898
  }, {
8899
- default: w(() => [...m[2] || (m[2] = [
8899
+ default: w(() => [...g[2] || (g[2] = [
8900
8900
  te(" 清除绑定 ", -1)
8901
8901
  ])]),
8902
8902
  _: 1
@@ -8909,7 +8909,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8909
8909
  "prefix-icon": i(pn),
8910
8910
  clearable: "",
8911
8911
  modelValue: a.value,
8912
- "onUpdate:modelValue": m[0] || (m[0] = (b) => a.value = b),
8912
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => a.value = b),
8913
8913
  placeholder: "请输入查询关键字"
8914
8914
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
8915
8915
  I("div", a0, [
@@ -8927,7 +8927,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8927
8927
  ]));
8928
8928
  }
8929
8929
  }), Xe = uf({
8930
- loader: () => import("./Editor-C188wTC2.js"),
8930
+ loader: () => import("./Editor-CB7H71mV.js"),
8931
8931
  loadingComponent: W({
8932
8932
  render() {
8933
8933
  return to("div", "正在拼命加载...");
@@ -8956,7 +8956,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8956
8956
  () => d.value || l.value ? "600px" : "650px"
8957
8957
  ), u = D(
8958
8958
  () => d.value ? "calc(100% - 360px)" : "calc(100% - 450px)"
8959
- ), f = D(() => !!m.value.layout), g = () => ({
8959
+ ), f = D(() => !!g.value.layout), m = () => ({
8960
8960
  __type: "page",
8961
8961
  dir: !1,
8962
8962
  layout: !1,
@@ -8971,41 +8971,41 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
8971
8971
  cache: !1,
8972
8972
  needLogin: !1,
8973
8973
  style: null
8974
- }), m = R();
8974
+ }), g = R();
8975
8975
  le(
8976
8976
  () => t.item,
8977
8977
  (x) => {
8978
- x ? m.value = Object.assign({}, x, {
8978
+ x ? g.value = Object.assign({}, x, {
8979
8979
  __type: x.layout ? "layout" : x.dir ? "dir" : "page"
8980
- }) : m.value = g();
8980
+ }) : g.value = m();
8981
8981
  },
8982
8982
  {
8983
8983
  immediate: !0
8984
8984
  }
8985
8985
  ), le(
8986
- () => m.value.__type,
8986
+ () => g.value.__type,
8987
8987
  (x) => {
8988
- m.value.dir = x === "dir", m.value.layout = x === "layout", m.value.pure = !0;
8988
+ g.value.dir = x === "dir", g.value.layout = x === "layout", g.value.pure = !0;
8989
8989
  }
8990
8990
  );
8991
8991
  const b = D({
8992
8992
  get() {
8993
- return JSON.stringify(m.value.meta || {}, null, 4);
8993
+ return JSON.stringify(g.value.meta || {}, null, 4);
8994
8994
  },
8995
8995
  set(x) {
8996
8996
  try {
8997
- m.value.meta = JSON.parse(x);
8997
+ g.value.meta = JSON.parse(x);
8998
8998
  } catch {
8999
8999
  Ue("路由元信息解析出错,必须是JSON格式数据", "运行时错误");
9000
9000
  }
9001
9001
  }
9002
9002
  }), y = D({
9003
9003
  get() {
9004
- return JSON.stringify(m.value.style || {}, null, 4);
9004
+ return JSON.stringify(g.value.style || {}, null, 4);
9005
9005
  },
9006
9006
  set(x) {
9007
9007
  try {
9008
- m.value.style = JSON.parse(x);
9008
+ g.value.style = JSON.parse(x);
9009
9009
  } catch {
9010
9010
  Ue("页面窗口表现配置解析出错,必须是JSON格式数据", "运行时错误");
9011
9011
  }
@@ -9015,7 +9015,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9015
9015
  { label: "目录", value: "dir" },
9016
9016
  { label: "布局", value: "layout" }
9017
9017
  ], k = (x) => {
9018
- m.value && (m.value.name = qi(x));
9018
+ g.value && (g.value.name = qi(x));
9019
9019
  }, S = async (x) => {
9020
9020
  const O = { ...x };
9021
9021
  return delete O.__type, O.layout && (O.pure = !0, O.mask = !1), n.value?.existPageName(O.name, [O.id]) ? (Ue("页面名称已存在,请更换"), !1) : (t.item ? (n.value?.updatePage(O), s.value?.setSelected(null), o.simulator.refresh()) : n.value?.createPage(O, t.parentId), !0);
@@ -9031,7 +9031,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9031
9031
  height: p.value,
9032
9032
  maximizable: !0,
9033
9033
  "form-props": { tooltipMessage: !1 },
9034
- model: m.value,
9034
+ model: g.value,
9035
9035
  "submit-method": S
9036
9036
  }, {
9037
9037
  default: w(() => [
@@ -9046,7 +9046,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9046
9046
  tip: l.value ? "UniApp不支持目录和布局类型" : void 0,
9047
9047
  required: ""
9048
9048
  }, null, 8, ["disabled", "tip"]),
9049
- !m.value.dir && t.item && !f.value ? (h(), T(i(X), {
9049
+ !g.value.dir && t.item && !f.value ? (h(), T(i(X), {
9050
9050
  key: 0,
9051
9051
  label: "路由",
9052
9052
  disabled: ""
@@ -9054,11 +9054,11 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9054
9054
  editor: w(() => [
9055
9055
  v(i(jn), { closable: !1 }, {
9056
9056
  default: w(() => [
9057
- te(ae(`${i(o).options.pageBasePath || ""}/${c.value}/${m.value.id}`) + " ", 1),
9057
+ te(ae(`${i(o).options.pageBasePath || ""}/${c.value}/${g.value.id}`) + " ", 1),
9058
9058
  v(i(Lt), {
9059
9059
  icon: i(Xi),
9060
9060
  onClick: O[0] || (O[0] = (C) => A(
9061
- `${i(o).options.pageBasePath || ""}/${c.value}/${m.value.id}`
9061
+ `${i(o).options.pageBasePath || ""}/${c.value}/${g.value.id}`
9062
9062
  ))
9063
9063
  }, null, 8, ["icon"])
9064
9064
  ]),
@@ -9090,8 +9090,8 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9090
9090
  }, {
9091
9091
  editor: w(() => [
9092
9092
  v(td, {
9093
- modelValue: m.value.icon,
9094
- "onUpdate:modelValue": O[1] || (O[1] = (C) => m.value.icon = C),
9093
+ modelValue: g.value.icon,
9094
+ "onUpdate:modelValue": O[1] || (O[1] = (C) => g.value.icon = C),
9095
9095
  size: "default"
9096
9096
  }, null, 8, ["modelValue"])
9097
9097
  ]),
@@ -9259,9 +9259,9 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9259
9259
  s("back");
9260
9260
  }, f = () => {
9261
9261
  s("remove");
9262
- }, g = () => {
9262
+ }, m = () => {
9263
9263
  s("save");
9264
- }, m = (_) => {
9264
+ }, g = (_) => {
9265
9265
  s("command", _.command);
9266
9266
  }, b = D(() => o.header ? {
9267
9267
  content: o.title,
@@ -9320,7 +9320,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9320
9320
  menus: o.menus,
9321
9321
  dropdown: { placement: "bottom-end" },
9322
9322
  onClick: d,
9323
- onCommand: m
9323
+ onCommand: g
9324
9324
  }, null, 8, ["size", "icon", "menus"])) : L("", !0),
9325
9325
  o.edit ? (h(), T(i(Re), {
9326
9326
  key: 2,
@@ -9347,7 +9347,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9347
9347
  icon: i(ja),
9348
9348
  background: "hover",
9349
9349
  title: "保存",
9350
- onClick: g
9350
+ onClick: m
9351
9351
  }, null, 8, ["size", "icon"])) : L("", !0),
9352
9352
  o.collapsable ? Kt((h(), T(i(Re), {
9353
9353
  key: 5,
@@ -9569,16 +9569,16 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9569
9569
  icon: nc
9570
9570
  }
9571
9571
  }, o = e, s = t, r = R(!!o.modelValue), a = D(() => o.actionInMore ? [] : o.actions.map((f) => {
9572
- const g = n[f];
9572
+ const m = n[f];
9573
9573
  return {
9574
9574
  name: f,
9575
- ...g
9575
+ ...m
9576
9576
  };
9577
9577
  })), l = D(() => o.actionInMore ? o.actions.map((f) => {
9578
- const g = n[f];
9578
+ const m = n[f];
9579
9579
  return {
9580
9580
  command: f,
9581
- ...g
9581
+ ...m
9582
9582
  };
9583
9583
  }) : []), c = D(() => ({
9584
9584
  "is-background": o.background,
@@ -9609,7 +9609,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9609
9609
  (f) => {
9610
9610
  r.value = !!f;
9611
9611
  }
9612
- ), (f, g) => (h(), T(i(Te), {
9612
+ ), (f, m) => (h(), T(i(Te), {
9613
9613
  class: we(["v-item", c.value]),
9614
9614
  justify: "space-between",
9615
9615
  align: "center",
@@ -9646,7 +9646,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9646
9646
  }, ae(e.subtitle), 3)) : L("", !0)
9647
9647
  ]),
9648
9648
  o.textTags ? (h(), M("div", p0, [
9649
- (h(!0), M(ne, null, de(o.textTags, (m) => (h(), M("span", null, ae(m), 1))), 256))
9649
+ (h(!0), M(ne, null, de(o.textTags, (g) => (h(), M("span", null, ae(g), 1))), 256))
9650
9650
  ])) : L("", !0)
9651
9651
  ])
9652
9652
  ]),
@@ -9654,30 +9654,30 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9654
9654
  }),
9655
9655
  v(i(Te), {
9656
9656
  class: "v-item__wrapper",
9657
- onClick: g[2] || (g[2] = $e(() => {
9657
+ onClick: m[2] || (m[2] = $e(() => {
9658
9658
  }, ["stop"]))
9659
9659
  }, {
9660
9660
  default: w(() => [
9661
9661
  v(i(Te), {
9662
9662
  class: "v-item__actions",
9663
- onClick: g[1] || (g[1] = $e(() => {
9663
+ onClick: m[1] || (m[1] = $e(() => {
9664
9664
  }, ["stop"]))
9665
9665
  }, {
9666
9666
  default: w(() => [
9667
- (h(!0), M(ne, null, de(a.value, (m) => (h(), T(i(Re), {
9668
- name: m.name,
9669
- title: m.label,
9667
+ (h(!0), M(ne, null, de(a.value, (g) => (h(), T(i(Re), {
9668
+ name: g.name,
9669
+ title: g.label,
9670
9670
  mode: "icon",
9671
9671
  size: "small",
9672
9672
  background: "none",
9673
9673
  type: "info",
9674
- icon: m.icon,
9675
- onClick: (b) => p(m.name)
9674
+ icon: g.icon,
9675
+ onClick: (b) => p(g.name)
9676
9676
  }, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
9677
9677
  o.switch ? (h(), T(i(sr), {
9678
9678
  key: 0,
9679
9679
  modelValue: r.value,
9680
- "onUpdate:modelValue": g[0] || (g[0] = (m) => r.value = m),
9680
+ "onUpdate:modelValue": m[0] || (m[0] = (g) => r.value = g),
9681
9681
  class: "v-item__switch",
9682
9682
  size: "small"
9683
9683
  }, null, 8, ["modelValue"])) : L("", !0),
@@ -9721,7 +9721,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9721
9721
  },
9722
9722
  emits: ["copy", "edit", "remove", "dragstart", "dragend"],
9723
9723
  setup(e, { emit: t }) {
9724
- const n = e, o = t, s = (g) => g ? wp[g] : null, r = [
9724
+ const n = e, o = t, s = (m) => m ? wp[m] : null, r = [
9725
9725
  {
9726
9726
  label: "复制",
9727
9727
  command: "copy",
@@ -9745,8 +9745,8 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9745
9745
  await vn.confirm("确认删除?", "提示", {
9746
9746
  type: "warning"
9747
9747
  }).catch(() => !1) && o("remove");
9748
- }, d = (g) => {
9749
- g.command === "edit" && a(), g.command === "remove" && c(), g.command === "copy" && l();
9748
+ }, d = (m) => {
9749
+ m.command === "edit" && a(), m.command === "remove" && c(), m.command === "copy" && l();
9750
9750
  }, p = D(() => ({
9751
9751
  "is-active": n.active,
9752
9752
  "is-draggable": n.draggable
@@ -9755,7 +9755,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9755
9755
  }, f = () => {
9756
9756
  o("dragend", n);
9757
9757
  };
9758
- return (g, m) => (h(), M("div", {
9758
+ return (m, g) => (h(), M("div", {
9759
9759
  class: we(["v-box", p.value]),
9760
9760
  draggable: e.draggable,
9761
9761
  onDragstart: u,
@@ -9767,7 +9767,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9767
9767
  align: "center"
9768
9768
  }, {
9769
9769
  default: w(() => [
9770
- Ht(g.$slots, "default", {}, () => [
9770
+ Ht(m.$slots, "default", {}, () => [
9771
9771
  n.icon ? (h(), T(i(Lt), {
9772
9772
  key: 0,
9773
9773
  class: "v-box__icon",
@@ -9813,47 +9813,47 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9813
9813
  emits: ["pick", "copy"],
9814
9814
  setup(e, { emit: t }) {
9815
9815
  const n = e, o = t, s = ["$components", "context"], r = R(""), a = R();
9816
- le(r, (g) => {
9817
- a.value.filter(g);
9816
+ le(r, (m) => {
9817
+ a.value.filter(m);
9818
9818
  });
9819
- const l = (g, m) => g ? m.label.includes(g) : !0, c = (g) => {
9820
- const m = g.value, b = Vs(m);
9821
- return b === "Object" || b === "Module" ? Object.keys(m || {}).length === 0 : b === "Array" ? m.length === 0 : !0;
9822
- }, d = (g, m = "this") => typeof g == "object" ? Array.isArray(g) ? g.map((y, E) => {
9819
+ const l = (m, g) => m ? g.label.includes(m) : !0, c = (m) => {
9820
+ const g = m.value, b = Vs(g);
9821
+ return b === "Object" || b === "Module" ? Object.keys(g || {}).length === 0 : b === "Array" ? g.length === 0 : !0;
9822
+ }, d = (m, g = "this") => typeof m == "object" ? Array.isArray(m) ? m.map((y, E) => {
9823
9823
  const k = `[${E}]`;
9824
9824
  return {
9825
9825
  label: k,
9826
9826
  value: y,
9827
9827
  type: Vs(y),
9828
- path: `${m}${k}`
9828
+ path: `${g}${k}`
9829
9829
  };
9830
- }) : Yh(g).map((y) => {
9831
- const E = g[y];
9830
+ }) : Yh(m).map((y) => {
9831
+ const E = m[y];
9832
9832
  return {
9833
9833
  label: y,
9834
9834
  value: E,
9835
9835
  type: Vs(E),
9836
- path: `${m}.${y}`
9836
+ path: `${g}.${y}`
9837
9837
  };
9838
9838
  }).filter(
9839
9839
  (y) => !y.label.startsWith("__") && !s.includes(y.label)
9840
- ) : [], p = (g, m) => {
9841
- if (g.level === 0)
9842
- m(d(n.context));
9840
+ ) : [], p = (m, g) => {
9841
+ if (m.level === 0)
9842
+ g(d(n.context));
9843
9843
  else {
9844
- const b = wa(g.data.value);
9845
- m(d(b, g.data.path));
9844
+ const b = wa(m.data.value);
9845
+ g(d(b, m.data.path));
9846
9846
  }
9847
- }, u = (g) => {
9848
- o("copy", g.path);
9849
- }, f = (g) => {
9850
- o("pick", g.path);
9847
+ }, u = (m) => {
9848
+ o("copy", m.path);
9849
+ }, f = (m) => {
9850
+ o("pick", m.path);
9851
9851
  };
9852
- return (g, m) => (h(), M("div", v0, [
9852
+ return (m, g) => (h(), M("div", v0, [
9853
9853
  I("div", b0, [
9854
9854
  v(i(Ze), {
9855
9855
  modelValue: r.value,
9856
- "onUpdate:modelValue": m[0] || (m[0] = (b) => r.value = b),
9856
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => r.value = b),
9857
9857
  size: "small",
9858
9858
  clearable: "",
9859
9859
  "prefix-icon": i(pn),
@@ -9861,7 +9861,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9861
9861
  }, null, 8, ["modelValue", "prefix-icon"]),
9862
9862
  I("div", y0, [
9863
9863
  v(i(rt), { "border-style": "dotted" }, {
9864
- default: w(() => [...m[1] || (m[1] = [
9864
+ default: w(() => [...g[1] || (g[1] = [
9865
9865
  te("可用项", -1)
9866
9866
  ])]),
9867
9867
  _: 1
@@ -9941,8 +9941,8 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9941
9941
  name: "viewer",
9942
9942
  label: "高级"
9943
9943
  }
9944
- ], d = R("normal"), p = R(), u = R(""), f = R(""), { pageRouteName: g, pageBasePath: m } = a.options, b = D(() => {
9945
- const C = a.project.value?.getPageRoutes(g, m) || [];
9944
+ ], d = R("normal"), p = R(), u = R(""), f = R(""), { pageRouteName: m, pageBasePath: g } = a.options, b = D(() => {
9945
+ const C = a.project.value?.getPageRoutes(m, g) || [];
9946
9946
  return u.value ? C.filter((V) => V.name.includes(u.value) || V.title.includes(u.value) || V.id.includes(u.value)) : C;
9947
9947
  }), y = D(() => {
9948
9948
  const C = a.project.value?.i18n.messages ?? [];
@@ -10342,7 +10342,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10342
10342
  return E.layout || (t.value?.homepage === E.id && k.push("主"), !d.value && E.mask && k.push("母"), !d.value && E.cache && k.push("缓"), !d.value && E.hidden && k.push("隐"), E.raw && k.push("源")), k;
10343
10343
  }, u = (E) => E.dir || E.layout ? ["add", "edit", "remove"] : E.raw ? ["home", "edit", "remove"] : ["home", "edit", "copy", "remove", "saveToBlock"], f = () => {
10344
10344
  l.value = void 0, a.value = void 0, r.value = !0;
10345
- }, g = async (E) => {
10345
+ }, m = async (E) => {
10346
10346
  const { name: k, modelValue: S } = E, { data: _, node: A } = S;
10347
10347
  if (k === "add" && (a.value = void 0, l.value = _.id, r.value = !0), k === "edit" && (a.value = _r(_), l.value = void 0, r.value = !0), k === "remove") {
10348
10348
  if (_.dir || _.layout) {
@@ -10359,7 +10359,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10359
10359
  t.value?.clonePage(_, x);
10360
10360
  }
10361
10361
  k === "home" && (t.value?.setHomepage(_.id), We("设置主页成功", "success")), k === "saveToBlock" && (await t.value?.saveToBlock(_), We("已保存到区块", "success"));
10362
- }, m = async (E) => {
10362
+ }, g = async (E) => {
10363
10363
  if (E.raw && We("这是源码模式页面,不能在设计器中打开", "warning"), E.dir || E.raw)
10364
10364
  n.project.value?.deactivate();
10365
10365
  else {
@@ -10397,8 +10397,8 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10397
10397
  subtitle: S.name,
10398
10398
  "model-value": { data: S, node: _ },
10399
10399
  actions: u(S),
10400
- onAction: g,
10401
- onClick: (A) => m(S),
10400
+ onAction: m,
10401
+ onClick: (A) => g(S),
10402
10402
  active: i(s)?.id === S.id,
10403
10403
  grow: "",
10404
10404
  small: "",
@@ -10450,13 +10450,13 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10450
10450
  return await qt(150), d(A);
10451
10451
  }
10452
10452
  return null;
10453
- }, f = (_) => _ ? (_ || "").split(",").map((x) => ({ url: x })) : [], g = R(
10453
+ }, f = (_) => _ ? (_ || "").split(",").map((x) => ({ url: x })) : [], m = R(
10454
10454
  f(n.modelValue)
10455
- ), m = D(() => Array.isArray(g.value) ? g.value.map((_) => _.url).join(",") : g.value ? g.value.url : "");
10455
+ ), g = D(() => Array.isArray(m.value) ? m.value.map((_) => _.url).join(",") : m.value ? m.value.url : "");
10456
10456
  le(
10457
10457
  () => n.modelValue,
10458
10458
  (_) => {
10459
- g.value = f(_);
10459
+ m.value = f(_);
10460
10460
  }
10461
10461
  ), le(l, async (_) => {
10462
10462
  if (_) {
@@ -10465,17 +10465,17 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10465
10465
  }
10466
10466
  });
10467
10467
  const b = () => {
10468
- if (!g.value || Array.isArray(g.value) && g.value.length === 0)
10468
+ if (!m.value || Array.isArray(m.value) && m.value.length === 0)
10469
10469
  return Ue("请选择文件"), !1;
10470
10470
  const _ = (n.attachment?.accept || "").toLowerCase().split(",");
10471
- return _.length > 0 ? [].concat(g.value).every((O) => {
10471
+ return _.length > 0 ? [].concat(m.value).every((O) => {
10472
10472
  const C = O.name || O.url.split("?")[0], V = C.substring(C.lastIndexOf(".")).toLowerCase();
10473
10473
  return _.includes(V);
10474
10474
  }) ? !0 : (Ue(`只支持 ${_.join(",")} 文件`), !1) : !0;
10475
10475
  }, y = () => {
10476
- b() && (o("change", m.value), o("update:modelValue", m.value), l.value = !1);
10476
+ b() && (o("change", g.value), o("update:modelValue", g.value), l.value = !1);
10477
10477
  }, E = () => {
10478
- g.value = [], o("change", void 0), o("update:modelValue", void 0), l.value = !1;
10478
+ m.value = [], o("change", void 0), o("update:modelValue", void 0), l.value = !1;
10479
10479
  }, k = () => {
10480
10480
  l.value = !0;
10481
10481
  }, S = (_) => {
@@ -10530,8 +10530,8 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10530
10530
  "limit-size": "5M",
10531
10531
  modelValue: a.value,
10532
10532
  "onUpdate:modelValue": A[0] || (A[0] = (x) => a.value = x),
10533
- "select-value": g.value,
10534
- "onUpdate:selectValue": A[1] || (A[1] = (x) => g.value = x)
10533
+ "select-value": m.value,
10534
+ "onUpdate:selectValue": A[1] || (A[1] = (x) => m.value = x)
10535
10535
  }, n.attachment, { onRemove: S }), null, 16, ["modelValue", "select-value"])
10536
10536
  ]),
10537
10537
  _: 1
@@ -10580,7 +10580,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10580
10580
  label: "插件",
10581
10581
  type: "danger"
10582
10582
  }
10583
- }, f = R(void 0), { current: g } = Pt(), m = R(!1), b = D(() => f.value?.id ? "编辑区块" : "新增区块"), y = D(() => `(共 ${n.value.length} 个)`), E = () => ({
10583
+ }, f = R(void 0), { current: m } = Pt(), g = R(!1), b = D(() => f.value?.id ? "编辑区块" : "新增区块"), y = D(() => `(共 ${n.value.length} 个)`), E = () => ({
10584
10584
  fromType: "Schema",
10585
10585
  name: "",
10586
10586
  title: "",
@@ -10606,9 +10606,9 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10606
10606
  return Ue(`名称【${z.name}】已经存在,请更换名称`), !1;
10607
10607
  return !0;
10608
10608
  }, A = () => {
10609
- f.value = E(), m.value = !0;
10609
+ f.value = E(), g.value = !0;
10610
10610
  }, x = (K) => {
10611
- f.value = _r(K), m.value = !0;
10611
+ f.value = _r(K), g.value = !0;
10612
10612
  }, O = (K) => {
10613
10613
  o.project.value?.cloneBlock(K);
10614
10614
  }, C = (K) => {
@@ -10669,7 +10669,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10669
10669
  v(i(ss), {
10670
10670
  name: N.name,
10671
10671
  title: N.title,
10672
- active: i(g)?.id === N.id,
10672
+ active: i(m)?.id === N.id,
10673
10673
  editable: !N.preset,
10674
10674
  tag: u[N.fromType || "Schema"]?.label,
10675
10675
  tagType: u[N.fromType || "Schema"]?.type,
@@ -10677,7 +10677,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10677
10677
  onCopy: ($) => O(N),
10678
10678
  onRemove: ($) => C(N),
10679
10679
  onClick: ($) => U(N),
10680
- draggable: i(g)?.id !== N.id,
10680
+ draggable: i(m)?.id !== N.id,
10681
10681
  onDragstart: ($) => H(N),
10682
10682
  onDragend: J
10683
10683
  }, null, 8, ["name", "title", "active", "editable", "tag", "tagType", "onEdit", "onCopy", "onRemove", "onClick", "draggable", "onDragstart"])
@@ -10697,8 +10697,8 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10697
10697
  description: "找不到符合条件的区块"
10698
10698
  })),
10699
10699
  v(i(Xt), {
10700
- modelValue: m.value,
10701
- "onUpdate:modelValue": z[1] || (z[1] = (j) => m.value = j),
10700
+ modelValue: g.value,
10701
+ "onUpdate:modelValue": z[1] || (z[1] = (j) => g.value = j),
10702
10702
  title: b.value,
10703
10703
  model: f.value,
10704
10704
  width: "600px",
@@ -10782,7 +10782,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10782
10782
  I("div", O0, [
10783
10783
  v(i(Ze), {
10784
10784
  modelValue: i(l),
10785
- "onUpdate:modelValue": f[0] || (f[0] = (g) => no(l) ? l.value = g : null),
10785
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => no(l) ? l.value = m : null),
10786
10786
  placeholder: "搜索组件",
10787
10787
  clearable: "",
10788
10788
  size: "small"
@@ -10799,17 +10799,17 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10799
10799
  gutter: 5
10800
10800
  }, {
10801
10801
  default: w(() => [
10802
- (h(!0), M(ne, null, de(i(c), (g, m) => (h(), T(i(Jr), {
10802
+ (h(!0), M(ne, null, de(i(c), (m, g) => (h(), T(i(Jr), {
10803
10803
  span: i(t),
10804
- key: `${g.name}_${m}`
10804
+ key: `${m.name}_${g}`
10805
10805
  }, {
10806
10806
  default: w(() => [
10807
10807
  v(i(ss), {
10808
- name: g.name,
10809
- title: g.label || g.name,
10810
- icon: g.icon,
10808
+ name: m.name,
10809
+ title: m.label || m.name,
10810
+ icon: m.icon,
10811
10811
  draggable: "",
10812
- onDragstart: (b) => d(g),
10812
+ onDragstart: (b) => d(m),
10813
10813
  onDragend: p
10814
10814
  }, null, 8, ["name", "title", "icon", "onDragstart"])
10815
10815
  ]),
@@ -10823,39 +10823,39 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10823
10823
  key: 1,
10824
10824
  items: i(o),
10825
10825
  modelValue: i(s),
10826
- "onUpdate:modelValue": f[2] || (f[2] = (g) => no(s) ? s.value = g : null)
10826
+ "onUpdate:modelValue": f[2] || (f[2] = (m) => no(s) ? s.value = m : null)
10827
10827
  }, {
10828
10828
  default: w(() => [
10829
10829
  I("div", R0, [
10830
10830
  i(r) ? (h(), T(i(ds), {
10831
10831
  key: 0,
10832
10832
  modelValue: i(a)[i(s)],
10833
- "onUpdate:modelValue": f[1] || (f[1] = (g) => i(a)[i(s)] = g)
10833
+ "onUpdate:modelValue": f[1] || (f[1] = (m) => i(a)[i(s)] = m)
10834
10834
  }, {
10835
10835
  default: w(() => [
10836
- (h(!0), M(ne, null, de(i(r).children, (g) => (h(), T(i(fs), {
10837
- key: g.name,
10838
- name: g.name,
10839
- title: `${g.label} (${g.count})`
10836
+ (h(!0), M(ne, null, de(i(r).children, (m) => (h(), T(i(fs), {
10837
+ key: m.name,
10838
+ name: m.name,
10839
+ title: `${m.label} (${m.count})`
10840
10840
  }, {
10841
10841
  default: w(() => [
10842
- g.components ? (h(), T(i(Wr), {
10842
+ m.components ? (h(), T(i(Wr), {
10843
10843
  key: 0,
10844
10844
  wrap: "wrap",
10845
10845
  gutter: 5
10846
10846
  }, {
10847
10847
  default: w(() => [
10848
- (h(!0), M(ne, null, de(g.components, (m) => (h(), T(i(Jr), {
10848
+ (h(!0), M(ne, null, de(m.components, (g) => (h(), T(i(Jr), {
10849
10849
  span: i(t),
10850
- key: m.name
10850
+ key: g.name
10851
10851
  }, {
10852
10852
  default: w(() => [
10853
10853
  v(i(ss), {
10854
- name: m.name,
10855
- title: m.label || m.name,
10856
- icon: m.icon,
10854
+ name: g.name,
10855
+ title: g.label || g.name,
10856
+ icon: g.icon,
10857
10857
  draggable: "",
10858
- onDragstart: (b) => d(m),
10858
+ onDragstart: (b) => d(g),
10859
10859
  onDragend: p
10860
10860
  }, null, 8, ["name", "title", "icon", "onDragstart"])
10861
10861
  ]),
@@ -10941,7 +10941,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10941
10941
  return !C && V && (C = await t.assets.getBlockMaterial(
10942
10942
  V
10943
10943
  )), C ? (n.value?.setDragging(C), !0) : !1;
10944
- }, g = async (x, O, C) => {
10944
+ }, m = async (x, O, C) => {
10945
10945
  const V = O.data, H = {
10946
10946
  prev: "top",
10947
10947
  next: "bottom",
@@ -10955,7 +10955,7 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
10955
10955
  J = !!await n.value?.allowDrop(K, H), n.value?.setDropping(J ? K : null, "inner");
10956
10956
  }
10957
10957
  return J;
10958
- }, m = (x) => {
10958
+ }, g = (x) => {
10959
10959
  const O = x?.model;
10960
10960
  if (!O || O.invisible || x.type === "slot") {
10961
10961
  n.value?.setSelected(null), n.value?.setHover(null);
@@ -11045,9 +11045,9 @@ const Mw = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
11045
11045
  "current-node-key": u.value,
11046
11046
  "highlight-current": !0,
11047
11047
  "expand-on-click-node": !1,
11048
- "allow-drop": g,
11048
+ "allow-drop": m,
11049
11049
  "allow-drag": f,
11050
- onCurrentChange: m,
11050
+ onCurrentChange: g,
11051
11051
  onNodeDrop: b,
11052
11052
  onNodeDragStart: k,
11053
11053
  onNodeDragEnd: S
@@ -11107,11 +11107,11 @@ Un.prototype = {
11107
11107
  e = this.castInput(e), t = this.castInput(t), e = this.removeEmpty(this.tokenize(e)), t = this.removeEmpty(this.tokenize(t));
11108
11108
  var l = t.length, c = e.length, d = 1, p = l + c;
11109
11109
  o.maxEditLength && (p = Math.min(p, o.maxEditLength));
11110
- var u = (n = o.timeout) !== null && n !== void 0 ? n : 1 / 0, f = Date.now() + u, g = [{
11110
+ var u = (n = o.timeout) !== null && n !== void 0 ? n : 1 / 0, f = Date.now() + u, m = [{
11111
11111
  oldPos: -1,
11112
11112
  lastComponent: void 0
11113
- }], m = this.extractCommon(g[0], t, e, 0);
11114
- if (g[0].oldPos + 1 >= c && m + 1 >= l)
11113
+ }], g = this.extractCommon(m[0], t, e, 0);
11114
+ if (m[0].oldPos + 1 >= c && g + 1 >= l)
11115
11115
  return a([{
11116
11116
  value: this.join(t),
11117
11117
  count: t.length
@@ -11119,8 +11119,8 @@ Un.prototype = {
11119
11119
  var b = -1 / 0, y = 1 / 0;
11120
11120
  function E() {
11121
11121
  for (var S = Math.max(b, -d); S <= Math.min(y, d); S += 2) {
11122
- var _ = void 0, A = g[S - 1], x = g[S + 1];
11123
- A && (g[S - 1] = void 0);
11122
+ var _ = void 0, A = m[S - 1], x = m[S + 1];
11123
+ A && (m[S - 1] = void 0);
11124
11124
  var O = !1;
11125
11125
  if (x) {
11126
11126
  var C = x.oldPos - S;
@@ -11128,12 +11128,12 @@ Un.prototype = {
11128
11128
  }
11129
11129
  var V = A && A.oldPos + 1 < c;
11130
11130
  if (!O && !V) {
11131
- g[S] = void 0;
11131
+ m[S] = void 0;
11132
11132
  continue;
11133
11133
  }
11134
- if (!V || O && A.oldPos + 1 < x.oldPos ? _ = r.addToPath(x, !0, void 0, 0) : _ = r.addToPath(A, void 0, !0, 1), m = r.extractCommon(_, t, e, S), _.oldPos + 1 >= c && m + 1 >= l)
11134
+ if (!V || O && A.oldPos + 1 < x.oldPos ? _ = r.addToPath(x, !0, void 0, 0) : _ = r.addToPath(A, void 0, !0, 1), g = r.extractCommon(_, t, e, S), _.oldPos + 1 >= c && g + 1 >= l)
11135
11135
  return a(V0(r, _.lastComponent, t, e, r.useLongestToken));
11136
- g[S] = _, _.oldPos + 1 >= c && (y = Math.min(y, S - 1)), m + 1 >= l && (b = Math.max(b, S + 1));
11136
+ m[S] = _, _.oldPos + 1 >= c && (y = Math.min(y, S - 1)), g + 1 >= l && (b = Math.max(b, S + 1));
11137
11137
  }
11138
11138
  d++;
11139
11139
  }
@@ -11211,18 +11211,18 @@ function V0(e, t, n, o, s) {
11211
11211
  }
11212
11212
  } else {
11213
11213
  if (!u.added && s) {
11214
- var g = n.slice(d, d + u.count);
11215
- g = g.map(function(b, y) {
11214
+ var m = n.slice(d, d + u.count);
11215
+ m = m.map(function(b, y) {
11216
11216
  var E = o[p + y];
11217
11217
  return E.length > b.length ? E : b;
11218
- }), u.value = e.join(g);
11218
+ }), u.value = e.join(m);
11219
11219
  } else
11220
11220
  u.value = e.join(n.slice(d, d + u.count));
11221
11221
  d += u.count, u.added || (p += u.count);
11222
11222
  }
11223
11223
  }
11224
- var m = r[c - 1];
11225
- return c > 1 && typeof m.value == "string" && (m.added || m.removed) && e.equals("", m.value) && (r[c - 2].value += m.value, r.pop()), r;
11224
+ var g = r[c - 1];
11225
+ return c > 1 && typeof g.value == "string" && (g.added || g.removed) && e.equals("", g.value) && (r[c - 2].value += g.value, r.pop()), r;
11226
11226
  }
11227
11227
  var P0 = new Un();
11228
11228
  function M0(e, t, n) {
@@ -11341,10 +11341,10 @@ var rd = { exports: {} };
11341
11341
  typeof l > "u" && (l = !0);
11342
11342
  var p = l, u = this.diff_commonPrefix(r, a), f = r.substring(0, u);
11343
11343
  r = r.substring(u), a = a.substring(u), u = this.diff_commonSuffix(r, a);
11344
- var g = r.substring(r.length - u);
11344
+ var m = r.substring(r.length - u);
11345
11345
  r = r.substring(0, r.length - u), a = a.substring(0, a.length - u);
11346
- var m = this.diff_compute_(r, a, p, d);
11347
- return f && m.unshift(new t.Diff(s, f)), g && m.push(new t.Diff(s, g)), this.diff_cleanupMerge(m), m;
11346
+ var g = this.diff_compute_(r, a, p, d);
11347
+ return f && g.unshift(new t.Diff(s, f)), m && g.push(new t.Diff(s, m)), this.diff_cleanupMerge(g), g;
11348
11348
  }, t.prototype.diff_compute_ = function(r, a, l, c) {
11349
11349
  var d;
11350
11350
  if (!r)
@@ -11366,9 +11366,9 @@ var rd = { exports: {} };
11366
11366
  new t.Diff(n, r),
11367
11367
  new t.Diff(o, a)
11368
11368
  ];
11369
- var g = this.diff_halfMatch_(r, a);
11370
- if (g) {
11371
- var m = g[0], b = g[1], y = g[2], E = g[3], k = g[4], S = this.diff_main(m, y, l, c), _ = this.diff_main(b, E, l, c);
11369
+ var m = this.diff_halfMatch_(r, a);
11370
+ if (m) {
11371
+ var g = m[0], b = m[1], y = m[2], E = m[3], k = m[4], S = this.diff_main(g, y, l, c), _ = this.diff_main(b, E, l, c);
11372
11372
  return S.concat(
11373
11373
  [new t.Diff(s, k)],
11374
11374
  _
@@ -11380,48 +11380,48 @@ var rd = { exports: {} };
11380
11380
  r = c.chars1, a = c.chars2;
11381
11381
  var d = c.lineArray, p = this.diff_main(r, a, !1, l);
11382
11382
  this.diff_charsToLines_(p, d), this.diff_cleanupSemantic(p), p.push(new t.Diff(s, ""));
11383
- for (var u = 0, f = 0, g = 0, m = "", b = ""; u < p.length; ) {
11383
+ for (var u = 0, f = 0, m = 0, g = "", b = ""; u < p.length; ) {
11384
11384
  switch (p[u][0]) {
11385
11385
  case o:
11386
- g++, b += p[u][1];
11386
+ m++, b += p[u][1];
11387
11387
  break;
11388
11388
  case n:
11389
- f++, m += p[u][1];
11389
+ f++, g += p[u][1];
11390
11390
  break;
11391
11391
  case s:
11392
- if (f >= 1 && g >= 1) {
11392
+ if (f >= 1 && m >= 1) {
11393
11393
  p.splice(
11394
- u - f - g,
11395
- f + g
11396
- ), u = u - f - g;
11397
- for (var y = this.diff_main(m, b, !1, l), E = y.length - 1; E >= 0; E--)
11394
+ u - f - m,
11395
+ f + m
11396
+ ), u = u - f - m;
11397
+ for (var y = this.diff_main(g, b, !1, l), E = y.length - 1; E >= 0; E--)
11398
11398
  p.splice(u, 0, y[E]);
11399
11399
  u = u + y.length;
11400
11400
  }
11401
- g = 0, f = 0, m = "", b = "";
11401
+ m = 0, f = 0, g = "", b = "";
11402
11402
  break;
11403
11403
  }
11404
11404
  u++;
11405
11405
  }
11406
11406
  return p.pop(), p;
11407
11407
  }, t.prototype.diff_bisect_ = function(r, a, l) {
11408
- for (var c = r.length, d = a.length, p = Math.ceil((c + d) / 2), u = p, f = 2 * p, g = new Array(f), m = new Array(f), b = 0; b < f; b++)
11409
- g[b] = -1, m[b] = -1;
11410
- g[u + 1] = 0, m[u + 1] = 0;
11408
+ for (var c = r.length, d = a.length, p = Math.ceil((c + d) / 2), u = p, f = 2 * p, m = new Array(f), g = new Array(f), b = 0; b < f; b++)
11409
+ m[b] = -1, g[b] = -1;
11410
+ m[u + 1] = 0, g[u + 1] = 0;
11411
11411
  for (var y = c - d, E = y % 2 != 0, k = 0, S = 0, _ = 0, A = 0, x = 0; x < p && !((/* @__PURE__ */ new Date()).getTime() > l); x++) {
11412
11412
  for (var O = -x + k; O <= x - S; O += 2) {
11413
11413
  var C = u + O, V;
11414
- O == -x || O != x && g[C - 1] < g[C + 1] ? V = g[C + 1] : V = g[C - 1] + 1;
11414
+ O == -x || O != x && m[C - 1] < m[C + 1] ? V = m[C + 1] : V = m[C - 1] + 1;
11415
11415
  for (var U = V - O; V < c && U < d && r.charAt(V) == a.charAt(U); )
11416
11416
  V++, U++;
11417
- if (g[C] = V, V > c)
11417
+ if (m[C] = V, V > c)
11418
11418
  S += 2;
11419
11419
  else if (U > d)
11420
11420
  k += 2;
11421
11421
  else if (E) {
11422
11422
  var H = u + y - O;
11423
- if (H >= 0 && H < f && m[H] != -1) {
11424
- var J = c - m[H];
11423
+ if (H >= 0 && H < f && g[H] != -1) {
11424
+ var J = c - g[H];
11425
11425
  if (V >= J)
11426
11426
  return this.diff_bisectSplit_(r, a, V, U, l);
11427
11427
  }
@@ -11429,17 +11429,17 @@ var rd = { exports: {} };
11429
11429
  }
11430
11430
  for (var K = -x + _; K <= x - A; K += 2) {
11431
11431
  var H = u + K, J;
11432
- K == -x || K != x && m[H - 1] < m[H + 1] ? J = m[H + 1] : J = m[H - 1] + 1;
11432
+ K == -x || K != x && g[H - 1] < g[H + 1] ? J = g[H + 1] : J = g[H - 1] + 1;
11433
11433
  for (var z = J - K; J < c && z < d && r.charAt(c - J - 1) == a.charAt(d - z - 1); )
11434
11434
  J++, z++;
11435
- if (m[H] = J, J > c)
11435
+ if (g[H] = J, J > c)
11436
11436
  A += 2;
11437
11437
  else if (z > d)
11438
11438
  _ += 2;
11439
11439
  else if (!E) {
11440
11440
  var C = u + y - K;
11441
- if (C >= 0 && C < f && g[C] != -1) {
11442
- var V = g[C], U = u + V - C;
11441
+ if (C >= 0 && C < f && m[C] != -1) {
11442
+ var V = m[C], U = u + V - C;
11443
11443
  if (J = c - J, V >= J)
11444
11444
  return this.diff_bisectSplit_(r, a, V, U, l);
11445
11445
  }
@@ -11451,19 +11451,19 @@ var rd = { exports: {} };
11451
11451
  new t.Diff(o, a)
11452
11452
  ];
11453
11453
  }, t.prototype.diff_bisectSplit_ = function(r, a, l, c, d) {
11454
- var p = r.substring(0, l), u = a.substring(0, c), f = r.substring(l), g = a.substring(c), m = this.diff_main(p, u, !1, d), b = this.diff_main(f, g, !1, d);
11455
- return m.concat(b);
11454
+ var p = r.substring(0, l), u = a.substring(0, c), f = r.substring(l), m = a.substring(c), g = this.diff_main(p, u, !1, d), b = this.diff_main(f, m, !1, d);
11455
+ return g.concat(b);
11456
11456
  }, t.prototype.diff_linesToChars_ = function(r, a) {
11457
11457
  var l = [], c = {};
11458
11458
  l[0] = "";
11459
- function d(g) {
11460
- for (var m = "", b = 0, y = -1, E = l.length; y < g.length - 1; ) {
11461
- y = g.indexOf(`
11462
- `, b), y == -1 && (y = g.length - 1);
11463
- var k = g.substring(b, y + 1);
11464
- (c.hasOwnProperty ? c.hasOwnProperty(k) : c[k] !== void 0) ? m += String.fromCharCode(c[k]) : (E == p && (k = g.substring(b), y = g.length), m += String.fromCharCode(E), c[k] = E, l[E++] = k), b = y + 1;
11459
+ function d(m) {
11460
+ for (var g = "", b = 0, y = -1, E = l.length; y < m.length - 1; ) {
11461
+ y = m.indexOf(`
11462
+ `, b), y == -1 && (y = m.length - 1);
11463
+ var k = m.substring(b, y + 1);
11464
+ (c.hasOwnProperty ? c.hasOwnProperty(k) : c[k] !== void 0) ? g += String.fromCharCode(c[k]) : (E == p && (k = m.substring(b), y = m.length), g += String.fromCharCode(E), c[k] = E, l[E++] = k), b = y + 1;
11465
11465
  }
11466
- return m;
11466
+ return g;
11467
11467
  }
11468
11468
  var p = 4e4, u = d(r);
11469
11469
  p = 65535;
@@ -11496,10 +11496,10 @@ var rd = { exports: {} };
11496
11496
  if (r == a)
11497
11497
  return d;
11498
11498
  for (var p = 0, u = 1; ; ) {
11499
- var f = r.substring(d - u), g = a.indexOf(f);
11500
- if (g == -1)
11499
+ var f = r.substring(d - u), m = a.indexOf(f);
11500
+ if (m == -1)
11501
11501
  return p;
11502
- u += g, (g == 0 || r.substring(d - u) == a.substring(0, u)) && (p = u, u++);
11502
+ u += m, (m == 0 || r.substring(d - u) == a.substring(0, u)) && (p = u, u++);
11503
11503
  }
11504
11504
  }, t.prototype.diff_halfMatch_ = function(r, a) {
11505
11505
  if (this.Diff_Timeout <= 0)
@@ -11535,24 +11535,24 @@ var rd = { exports: {} };
11535
11535
  l,
11536
11536
  c,
11537
11537
  Math.ceil(l.length / 2)
11538
- ), g;
11538
+ ), m;
11539
11539
  if (!u && !f)
11540
11540
  return null;
11541
- f ? u ? g = u[4].length > f[4].length ? u : f : g = f : g = u;
11542
- var m, b, y, E;
11543
- r.length > a.length ? (m = g[0], b = g[1], y = g[2], E = g[3]) : (y = g[0], E = g[1], m = g[2], b = g[3]);
11544
- var k = g[4];
11545
- return [m, b, y, E, k];
11541
+ f ? u ? m = u[4].length > f[4].length ? u : f : m = f : m = u;
11542
+ var g, b, y, E;
11543
+ r.length > a.length ? (g = m[0], b = m[1], y = m[2], E = m[3]) : (y = m[0], E = m[1], g = m[2], b = m[3]);
11544
+ var k = m[4];
11545
+ return [g, b, y, E, k];
11546
11546
  }, t.prototype.diff_cleanupSemantic = function(r) {
11547
- for (var a = !1, l = [], c = 0, d = null, p = 0, u = 0, f = 0, g = 0, m = 0; p < r.length; )
11548
- r[p][0] == s ? (l[c++] = p, u = g, f = m, g = 0, m = 0, d = r[p][1]) : (r[p][0] == o ? g += r[p][1].length : m += r[p][1].length, d && d.length <= Math.max(u, f) && d.length <= Math.max(
11549
- g,
11550
- m
11547
+ for (var a = !1, l = [], c = 0, d = null, p = 0, u = 0, f = 0, m = 0, g = 0; p < r.length; )
11548
+ r[p][0] == s ? (l[c++] = p, u = m, f = g, m = 0, g = 0, d = r[p][1]) : (r[p][0] == o ? m += r[p][1].length : g += r[p][1].length, d && d.length <= Math.max(u, f) && d.length <= Math.max(
11549
+ m,
11550
+ g
11551
11551
  ) && (r.splice(
11552
11552
  l[c - 1],
11553
11553
  0,
11554
11554
  new t.Diff(n, d)
11555
- ), r[l[c - 1] + 1][0] = o, c--, c--, p = c > 0 ? l[c - 1] : -1, u = 0, f = 0, g = 0, m = 0, d = null, a = !0)), p++;
11555
+ ), r[l[c - 1] + 1][0] = o, c--, c--, p = c > 0 ? l[c - 1] : -1, u = 0, f = 0, m = 0, g = 0, d = null, a = !0)), p++;
11556
11556
  for (a && this.diff_cleanupMerge(r), this.diff_cleanupSemanticLossless(r), p = 1; p < r.length; ) {
11557
11557
  if (r[p - 1][0] == n && r[p][0] == o) {
11558
11558
  var b = r[p - 1][1], y = r[p][1], E = this.diff_commonOverlap_(b, y), k = this.diff_commonOverlap_(y, b);
@@ -11580,22 +11580,22 @@ var rd = { exports: {} };
11580
11580
  var f = d.substring(d.length - u);
11581
11581
  c = c.substring(0, c.length - u), d = f + d.substring(0, d.length - u), p = f + p;
11582
11582
  }
11583
- for (var g = c, m = d, b = p, y = a(c, d) + a(d, p); d.charAt(0) === p.charAt(0); ) {
11583
+ for (var m = c, g = d, b = p, y = a(c, d) + a(d, p); d.charAt(0) === p.charAt(0); ) {
11584
11584
  c += d.charAt(0), d = d.substring(1) + p.charAt(0), p = p.substring(1);
11585
11585
  var E = a(c, d) + a(d, p);
11586
- E >= y && (y = E, g = c, m = d, b = p);
11586
+ E >= y && (y = E, m = c, g = d, b = p);
11587
11587
  }
11588
- r[l - 1][1] != g && (g ? r[l - 1][1] = g : (r.splice(l - 1, 1), l--), r[l][1] = m, b ? r[l + 1][1] = b : (r.splice(l + 1, 1), l--));
11588
+ r[l - 1][1] != m && (m ? r[l - 1][1] = m : (r.splice(l - 1, 1), l--), r[l][1] = g, b ? r[l + 1][1] = b : (r.splice(l + 1, 1), l--));
11589
11589
  }
11590
11590
  l++;
11591
11591
  }
11592
11592
  }, t.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, t.whitespaceRegex_ = /\s/, t.linebreakRegex_ = /[\r\n]/, t.blanklineEndRegex_ = /\n\r?\n$/, t.blanklineStartRegex_ = /^\r?\n\r?\n/, t.prototype.diff_cleanupEfficiency = function(r) {
11593
- for (var a = !1, l = [], c = 0, d = null, p = 0, u = !1, f = !1, g = !1, m = !1; p < r.length; )
11594
- r[p][0] == s ? (r[p][1].length < this.Diff_EditCost && (g || m) ? (l[c++] = p, u = g, f = m, d = r[p][1]) : (c = 0, d = null), g = m = !1) : (r[p][0] == n ? m = !0 : g = !0, d && (u && f && g && m || d.length < this.Diff_EditCost / 2 && u + f + g + m == 3) && (r.splice(
11593
+ for (var a = !1, l = [], c = 0, d = null, p = 0, u = !1, f = !1, m = !1, g = !1; p < r.length; )
11594
+ r[p][0] == s ? (r[p][1].length < this.Diff_EditCost && (m || g) ? (l[c++] = p, u = m, f = g, d = r[p][1]) : (c = 0, d = null), m = g = !1) : (r[p][0] == n ? g = !0 : m = !0, d && (u && f && m && g || d.length < this.Diff_EditCost / 2 && u + f + m + g == 3) && (r.splice(
11595
11595
  l[c - 1],
11596
11596
  0,
11597
11597
  new t.Diff(n, d)
11598
- ), r[l[c - 1] + 1][0] = o, c--, d = null, u && f ? (g = m = !0, c = 0) : (c--, p = c > 0 ? l[c - 1] : -1, g = m = !1), a = !0)), p++;
11598
+ ), r[l[c - 1] + 1][0] = o, c--, d = null, u && f ? (m = g = !0, c = 0) : (c--, p = c > 0 ? l[c - 1] : -1, m = g = !1), a = !0)), p++;
11599
11599
  a && this.diff_cleanupMerge(r);
11600
11600
  }, t.prototype.diff_cleanupMerge = function(r) {
11601
11601
  r.push(new t.Diff(s, ""));
@@ -11634,16 +11634,16 @@ var rd = { exports: {} };
11634
11634
  return r.length != u && r[u][0] === n ? p : p + (a - d);
11635
11635
  }, t.prototype.diff_prettyHtml = function(r) {
11636
11636
  for (var a = [], l = /&/g, c = /</g, d = />/g, p = /\n/g, u = 0; u < r.length; u++) {
11637
- var f = r[u][0], g = r[u][1], m = g.replace(l, "&amp;").replace(c, "&lt;").replace(d, "&gt;").replace(p, "&para;<br>");
11637
+ var f = r[u][0], m = r[u][1], g = m.replace(l, "&amp;").replace(c, "&lt;").replace(d, "&gt;").replace(p, "&para;<br>");
11638
11638
  switch (f) {
11639
11639
  case o:
11640
- a[u] = '<ins style="background:#e6ffe6;">' + m + "</ins>";
11640
+ a[u] = '<ins style="background:#e6ffe6;">' + g + "</ins>";
11641
11641
  break;
11642
11642
  case n:
11643
- a[u] = '<del style="background:#ffe6e6;">' + m + "</del>";
11643
+ a[u] = '<del style="background:#ffe6e6;">' + g + "</del>";
11644
11644
  break;
11645
11645
  case s:
11646
- a[u] = "<span>" + m + "</span>";
11646
+ a[u] = "<span>" + g + "</span>";
11647
11647
  break;
11648
11648
  }
11649
11649
  }
@@ -11699,11 +11699,11 @@ var rd = { exports: {} };
11699
11699
  break;
11700
11700
  case "-":
11701
11701
  case "=":
11702
- var g = parseInt(f, 10);
11703
- if (isNaN(g) || g < 0)
11702
+ var m = parseInt(f, 10);
11703
+ if (isNaN(m) || m < 0)
11704
11704
  throw new Error("Invalid number in diff_fromDelta: " + f);
11705
- var m = r.substring(d, d += g);
11706
- p[u].charAt(0) == "=" ? l[c++] = new t.Diff(s, m) : l[c++] = new t.Diff(n, m);
11705
+ var g = r.substring(d, d += m);
11706
+ p[u].charAt(0) == "=" ? l[c++] = new t.Diff(s, g) : l[c++] = new t.Diff(n, g);
11707
11707
  break;
11708
11708
  default:
11709
11709
  if (p[u])
@@ -11727,17 +11727,17 @@ var rd = { exports: {} };
11727
11727
  }
11728
11728
  var u = this.Match_Threshold, f = r.indexOf(a, l);
11729
11729
  f != -1 && (u = Math.min(p(0, f), u), f = r.lastIndexOf(a, l + a.length), f != -1 && (u = Math.min(p(0, f), u)));
11730
- var g = 1 << a.length - 1;
11730
+ var m = 1 << a.length - 1;
11731
11731
  f = -1;
11732
- for (var m, b, y = a.length + r.length, E, k = 0; k < a.length; k++) {
11733
- for (m = 0, b = y; m < b; )
11734
- p(k, l + b) <= u ? m = b : y = b, b = Math.floor((y - m) / 2 + m);
11732
+ for (var g, b, y = a.length + r.length, E, k = 0; k < a.length; k++) {
11733
+ for (g = 0, b = y; g < b; )
11734
+ p(k, l + b) <= u ? g = b : y = b, b = Math.floor((y - g) / 2 + g);
11735
11735
  y = b;
11736
11736
  var S = Math.max(1, l - b + 1), _ = Math.min(l + b, r.length) + a.length, A = Array(_ + 2);
11737
11737
  A[_ + 1] = (1 << k) - 1;
11738
11738
  for (var x = _; x >= S; x--) {
11739
11739
  var O = c[r.charAt(x - 1)];
11740
- if (k === 0 ? A[x] = (A[x + 1] << 1 | 1) & O : A[x] = (A[x + 1] << 1 | 1) & O | ((E[x + 1] | E[x]) << 1 | 1) | E[x + 1], A[x] & g) {
11740
+ if (k === 0 ? A[x] = (A[x + 1] << 1 | 1) & O : A[x] = (A[x + 1] << 1 | 1) & O | ((E[x + 1] | E[x]) << 1 | 1) | E[x + 1], A[x] & m) {
11741
11741
  var C = p(k, x - 1);
11742
11742
  if (C <= u)
11743
11743
  if (u = C, f = x - 1, f > l)
@@ -11800,20 +11800,20 @@ var rd = { exports: {} };
11800
11800
  throw new Error("Unknown call format to patch_make.");
11801
11801
  if (d.length === 0)
11802
11802
  return [];
11803
- for (var p = [], u = new t.patch_obj(), f = 0, g = 0, m = 0, b = c, y = c, E = 0; E < d.length; E++) {
11803
+ for (var p = [], u = new t.patch_obj(), f = 0, m = 0, g = 0, b = c, y = c, E = 0; E < d.length; E++) {
11804
11804
  var k = d[E][0], S = d[E][1];
11805
- switch (!f && k !== s && (u.start1 = g, u.start2 = m), k) {
11805
+ switch (!f && k !== s && (u.start1 = m, u.start2 = g), k) {
11806
11806
  case o:
11807
- u.diffs[f++] = d[E], u.length2 += S.length, y = y.substring(0, m) + S + y.substring(m);
11807
+ u.diffs[f++] = d[E], u.length2 += S.length, y = y.substring(0, g) + S + y.substring(g);
11808
11808
  break;
11809
11809
  case n:
11810
- u.length1 += S.length, u.diffs[f++] = d[E], y = y.substring(0, m) + y.substring(m + S.length);
11810
+ u.length1 += S.length, u.diffs[f++] = d[E], y = y.substring(0, g) + y.substring(g + S.length);
11811
11811
  break;
11812
11812
  case s:
11813
- S.length <= 2 * this.Patch_Margin && f && d.length != E + 1 ? (u.diffs[f++] = d[E], u.length1 += S.length, u.length2 += S.length) : S.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(u, b), p.push(u), u = new t.patch_obj(), f = 0, b = y, g = m);
11813
+ S.length <= 2 * this.Patch_Margin && f && d.length != E + 1 ? (u.diffs[f++] = d[E], u.length1 += S.length, u.length2 += S.length) : S.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(u, b), p.push(u), u = new t.patch_obj(), f = 0, b = y, m = g);
11814
11814
  break;
11815
11815
  }
11816
- k !== o && (g += S.length), k !== n && (m += S.length);
11816
+ k !== o && (m += S.length), k !== n && (g += S.length);
11817
11817
  }
11818
11818
  return f && (this.patch_addContext_(u, b), p.push(u)), p;
11819
11819
  }, t.prototype.patch_deepCopy = function(r) {
@@ -11832,22 +11832,22 @@ var rd = { exports: {} };
11832
11832
  var l = this.patch_addPadding(r);
11833
11833
  a = l + a + l, this.patch_splitMax(r);
11834
11834
  for (var c = 0, d = [], p = 0; p < r.length; p++) {
11835
- var u = r[p].start2 + c, f = this.diff_text1(r[p].diffs), g, m = -1;
11836
- if (f.length > this.Match_MaxBits ? (g = this.match_main(
11835
+ var u = r[p].start2 + c, f = this.diff_text1(r[p].diffs), m, g = -1;
11836
+ if (f.length > this.Match_MaxBits ? (m = this.match_main(
11837
11837
  a,
11838
11838
  f.substring(0, this.Match_MaxBits),
11839
11839
  u
11840
- ), g != -1 && (m = this.match_main(
11840
+ ), m != -1 && (g = this.match_main(
11841
11841
  a,
11842
11842
  f.substring(f.length - this.Match_MaxBits),
11843
11843
  u + f.length - this.Match_MaxBits
11844
- ), (m == -1 || g >= m) && (g = -1))) : g = this.match_main(a, f, u), g == -1)
11844
+ ), (g == -1 || m >= g) && (m = -1))) : m = this.match_main(a, f, u), m == -1)
11845
11845
  d[p] = !1, c -= r[p].length2 - r[p].length1;
11846
11846
  else {
11847
- d[p] = !0, c = g - u;
11847
+ d[p] = !0, c = m - u;
11848
11848
  var b;
11849
- if (m == -1 ? b = a.substring(g, g + f.length) : b = a.substring(g, m + this.Match_MaxBits), f == b)
11850
- a = a.substring(0, g) + this.diff_text2(r[p].diffs) + a.substring(g + f.length);
11849
+ if (g == -1 ? b = a.substring(m, m + f.length) : b = a.substring(m, g + this.Match_MaxBits), f == b)
11850
+ a = a.substring(0, m) + this.diff_text2(r[p].diffs) + a.substring(m + f.length);
11851
11851
  else {
11852
11852
  var y = this.diff_main(f, b, !1);
11853
11853
  if (f.length > this.Match_MaxBits && this.diff_levenshtein(y) / f.length > this.Patch_DeleteThreshold)
@@ -11856,7 +11856,7 @@ var rd = { exports: {} };
11856
11856
  this.diff_cleanupSemanticLossless(y);
11857
11857
  for (var E = 0, k, S = 0; S < r[p].diffs.length; S++) {
11858
11858
  var _ = r[p].diffs[S];
11859
- _[0] !== s && (k = this.diff_xIndex(y, E)), _[0] === o ? a = a.substring(0, g + k) + _[1] + a.substring(g + k) : _[0] === n && (a = a.substring(0, g + k) + a.substring(g + this.diff_xIndex(
11859
+ _[0] !== s && (k = this.diff_xIndex(y, E)), _[0] === o ? a = a.substring(0, m + k) + _[1] + a.substring(m + k) : _[0] === n && (a = a.substring(0, m + k) + a.substring(m + this.diff_xIndex(
11860
11860
  y,
11861
11861
  E + _[1].length
11862
11862
  ))), _[0] !== n && (E += _[1].length);
@@ -11891,17 +11891,17 @@ var rd = { exports: {} };
11891
11891
  var c = r[l];
11892
11892
  r.splice(l--, 1);
11893
11893
  for (var d = c.start1, p = c.start2, u = ""; c.diffs.length !== 0; ) {
11894
- var f = new t.patch_obj(), g = !0;
11894
+ var f = new t.patch_obj(), m = !0;
11895
11895
  for (f.start1 = d - u.length, f.start2 = p - u.length, u !== "" && (f.length1 = f.length2 = u.length, f.diffs.push(new t.Diff(s, u))); c.diffs.length !== 0 && f.length1 < a - this.Patch_Margin; ) {
11896
- var m = c.diffs[0][0], b = c.diffs[0][1];
11897
- m === o ? (f.length2 += b.length, p += b.length, f.diffs.push(c.diffs.shift()), g = !1) : m === n && f.diffs.length == 1 && f.diffs[0][0] == s && b.length > 2 * a ? (f.length1 += b.length, d += b.length, g = !1, f.diffs.push(new t.Diff(m, b)), c.diffs.shift()) : (b = b.substring(
11896
+ var g = c.diffs[0][0], b = c.diffs[0][1];
11897
+ g === o ? (f.length2 += b.length, p += b.length, f.diffs.push(c.diffs.shift()), m = !1) : g === n && f.diffs.length == 1 && f.diffs[0][0] == s && b.length > 2 * a ? (f.length1 += b.length, d += b.length, m = !1, f.diffs.push(new t.Diff(g, b)), c.diffs.shift()) : (b = b.substring(
11898
11898
  0,
11899
11899
  a - f.length1 - this.Patch_Margin
11900
- ), f.length1 += b.length, d += b.length, m === s ? (f.length2 += b.length, p += b.length) : g = !1, f.diffs.push(new t.Diff(m, b)), b == c.diffs[0][1] ? c.diffs.shift() : c.diffs[0][1] = c.diffs[0][1].substring(b.length));
11900
+ ), f.length1 += b.length, d += b.length, g === s ? (f.length2 += b.length, p += b.length) : m = !1, f.diffs.push(new t.Diff(g, b)), b == c.diffs[0][1] ? c.diffs.shift() : c.diffs[0][1] = c.diffs[0][1].substring(b.length));
11901
11901
  }
11902
11902
  u = this.diff_text2(f.diffs), u = u.substring(u.length - this.Patch_Margin);
11903
11903
  var y = this.diff_text1(c.diffs).substring(0, this.Patch_Margin);
11904
- y !== "" && (f.length1 += y.length, f.length2 += y.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === s ? f.diffs[f.diffs.length - 1][1] += y : f.diffs.push(new t.Diff(s, y))), g || r.splice(++l, 0, f);
11904
+ y !== "" && (f.length1 += y.length, f.length2 += y.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === s ? f.diffs[f.diffs.length - 1][1] += y : f.diffs.push(new t.Diff(s, y))), m || r.splice(++l, 0, f);
11905
11905
  }
11906
11906
  }
11907
11907
  }, t.prototype.patch_toText = function(r) {
@@ -11921,20 +11921,20 @@ var rd = { exports: {} };
11921
11921
  for (a.push(u), u.start1 = parseInt(p[1], 10), p[2] === "" ? (u.start1--, u.length1 = 1) : p[2] == "0" ? u.length1 = 0 : (u.start1--, u.length1 = parseInt(p[2], 10)), u.start2 = parseInt(p[3], 10), p[4] === "" ? (u.start2--, u.length2 = 1) : p[4] == "0" ? u.length2 = 0 : (u.start2--, u.length2 = parseInt(p[4], 10)), c++; c < l.length; ) {
11922
11922
  var f = l[c].charAt(0);
11923
11923
  try {
11924
- var g = decodeURI(l[c].substring(1));
11924
+ var m = decodeURI(l[c].substring(1));
11925
11925
  } catch {
11926
- throw new Error("Illegal escape in patch_fromText: " + g);
11926
+ throw new Error("Illegal escape in patch_fromText: " + m);
11927
11927
  }
11928
11928
  if (f == "-")
11929
- u.diffs.push(new t.Diff(n, g));
11929
+ u.diffs.push(new t.Diff(n, m));
11930
11930
  else if (f == "+")
11931
- u.diffs.push(new t.Diff(o, g));
11931
+ u.diffs.push(new t.Diff(o, m));
11932
11932
  else if (f == " ")
11933
- u.diffs.push(new t.Diff(s, g));
11933
+ u.diffs.push(new t.Diff(s, m));
11934
11934
  else {
11935
11935
  if (f == "@")
11936
11936
  break;
11937
- if (f !== "") throw new Error('Invalid patch mode "' + f + '" in: ' + g);
11937
+ if (f !== "") throw new Error('Invalid patch mode "' + f + '" in: ' + m);
11938
11938
  }
11939
11939
  c++;
11940
11940
  }
@@ -12691,7 +12691,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = N, re = $), Y ==
12691
12691
  Q = u(_e.subLanguage, ze, !0, uo[_e.subLanguage]), uo[_e.subLanguage] = /** @type {CompiledMode} */
12692
12692
  Q._top;
12693
12693
  } else
12694
- Q = g(ze, _e.subLanguage.length ? _e.subLanguage : null);
12694
+ Q = m(ze, _e.subLanguage.length ? _e.subLanguage : null);
12695
12695
  _e.relevance > 0 && (En += Q.relevance), dt.__addSublanguage(Q._emitter, Q.language);
12696
12696
  }
12697
12697
  function Pe() {
@@ -12854,7 +12854,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = N, re = $), Y ==
12854
12854
  };
12855
12855
  return $._emitter.addText(N), $;
12856
12856
  }
12857
- function g(N, $) {
12857
+ function m(N, $) {
12858
12858
  $ = $ || l.languages || Object.keys(t);
12859
12859
  const Y = f(N), re = $.filter(V).filter(H).map(
12860
12860
  (Pe) => u(Pe, N, !1)
@@ -12872,7 +12872,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = N, re = $), Y ==
12872
12872
  }), [Ne, He] = ge, Qe = Ne;
12873
12873
  return Qe.secondBest = He, Qe;
12874
12874
  }
12875
- function m(N, $, Y) {
12875
+ function g(N, $, Y) {
12876
12876
  const re = $ && n[$] || Y;
12877
12877
  N.classList.add("hljs"), N.classList.add(`language-${re}`);
12878
12878
  }
@@ -12893,8 +12893,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = N, re = $), Y ==
12893
12893
  N.innerHTML
12894
12894
  );
12895
12895
  $ = N;
12896
- const re = $.textContent, ge = Y ? p(re, { language: Y, ignoreIllegals: !0 }) : g(re);
12897
- N.innerHTML = ge.value, N.dataset.highlighted = "yes", m(N, Y, ge.language), N.result = {
12896
+ const re = $.textContent, ge = Y ? p(re, { language: Y, ignoreIllegals: !0 }) : m(re);
12897
+ N.innerHTML = ge.value, N.dataset.highlighted = "yes", g(N, Y, ge.language), N.result = {
12898
12898
  language: ge.language,
12899
12899
  // TODO: remove with version 11.0
12900
12900
  re: ge.relevance,
@@ -12987,7 +12987,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ge = N, re = $), Y ==
12987
12987
  }
12988
12988
  Object.assign(e, {
12989
12989
  highlight: p,
12990
- highlightAuto: g,
12990
+ highlightAuto: m,
12991
12991
  highlightAll: _,
12992
12992
  highlightElement: b,
12993
12993
  // TODO: Remove with v12 API
@@ -13453,7 +13453,7 @@ function zE(e) {
13453
13453
  keywords: l,
13454
13454
  contains: []
13455
13455
  // defined later
13456
- }, g = {
13456
+ }, m = {
13457
13457
  begin: ".?html`",
13458
13458
  end: "",
13459
13459
  starts: {
@@ -13465,7 +13465,7 @@ function zE(e) {
13465
13465
  ],
13466
13466
  subLanguage: "xml"
13467
13467
  }
13468
- }, m = {
13468
+ }, g = {
13469
13469
  begin: ".?css`",
13470
13470
  end: "",
13471
13471
  starts: {
@@ -13545,8 +13545,8 @@ function zE(e) {
13545
13545
  }, k = [
13546
13546
  e.APOS_STRING_MODE,
13547
13547
  e.QUOTE_STRING_MODE,
13548
- g,
13549
13548
  m,
13549
+ g,
13550
13550
  b,
13551
13551
  y,
13552
13552
  // Skip numbers when they are part of a variable name
@@ -13755,8 +13755,8 @@ function zE(e) {
13755
13755
  C,
13756
13756
  e.APOS_STRING_MODE,
13757
13757
  e.QUOTE_STRING_MODE,
13758
- g,
13759
13758
  m,
13759
+ g,
13760
13760
  b,
13761
13761
  y,
13762
13762
  E,
@@ -14373,7 +14373,7 @@ function WE(e) {
14373
14373
  begin: `\\b(${d})[jJ](?=${u})`
14374
14374
  }
14375
14375
  ]
14376
- }, g = {
14376
+ }, m = {
14377
14377
  className: "comment",
14378
14378
  begin: t.lookahead(/# type:/),
14379
14379
  end: /$/,
@@ -14390,7 +14390,7 @@ function WE(e) {
14390
14390
  endsWithParent: !0
14391
14391
  }
14392
14392
  ]
14393
- }, m = {
14393
+ }, g = {
14394
14394
  className: "params",
14395
14395
  variants: [
14396
14396
  // Exclude params in functions without params
@@ -14445,7 +14445,7 @@ function WE(e) {
14445
14445
  },
14446
14446
  { match: /\bor\b/, scope: "keyword" },
14447
14447
  c,
14448
- g,
14448
+ m,
14449
14449
  e.HASH_COMMENT_MODE,
14450
14450
  {
14451
14451
  match: [
@@ -14457,7 +14457,7 @@ function WE(e) {
14457
14457
  1: "keyword",
14458
14458
  3: "title.function"
14459
14459
  },
14460
- contains: [m]
14460
+ contains: [g]
14461
14461
  },
14462
14462
  {
14463
14463
  variants: [
@@ -14492,7 +14492,7 @@ function WE(e) {
14492
14492
  end: /(?=#)|$/,
14493
14493
  contains: [
14494
14494
  f,
14495
- m,
14495
+ g,
14496
14496
  c
14497
14497
  ]
14498
14498
  }
@@ -14825,10 +14825,10 @@ function KE(e) {
14825
14825
  "tcsh",
14826
14826
  "dash",
14827
14827
  "scsh"
14828
- ], g = e.SHEBANG({
14828
+ ], m = e.SHEBANG({
14829
14829
  binary: `(${f.join("|")})`,
14830
14830
  relevance: 10
14831
- }), m = {
14831
+ }), g = {
14832
14832
  className: "function",
14833
14833
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
14834
14834
  returnBegin: !0,
@@ -15090,11 +15090,11 @@ function KE(e) {
15090
15090
  ]
15091
15091
  },
15092
15092
  contains: [
15093
- g,
15093
+ m,
15094
15094
  // to catch known shells and boost relevancy
15095
15095
  e.SHEBANG(),
15096
15096
  // to catch unknown shells but still highlight the shebang
15097
- m,
15097
+ g,
15098
15098
  u,
15099
15099
  r,
15100
15100
  a,
@@ -15656,7 +15656,7 @@ function GE(e) {
15656
15656
  "nulls last",
15657
15657
  "depth first",
15658
15658
  "breadth first"
15659
- ], g = p, m = [
15659
+ ], m = p, g = [
15660
15660
  ...d,
15661
15661
  ...c
15662
15662
  ].filter((S) => !p.includes(S)), b = {
@@ -15667,9 +15667,9 @@ function GE(e) {
15667
15667
  begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
15668
15668
  relevance: 0
15669
15669
  }, E = {
15670
- begin: t.concat(/\b/, t.either(...g), /\s*\(/),
15670
+ begin: t.concat(/\b/, t.either(...m), /\s*\(/),
15671
15671
  relevance: 0,
15672
- keywords: { built_in: g }
15672
+ keywords: { built_in: m }
15673
15673
  };
15674
15674
  function k(S, {
15675
15675
  exceptions: _,
@@ -15685,7 +15685,7 @@ function GE(e) {
15685
15685
  illegal: /[{}]|<\//,
15686
15686
  keywords: {
15687
15687
  $pattern: /\b[\w\.]+/,
15688
- keyword: k(m, { when: (S) => S.length < 3 }),
15688
+ keyword: k(g, { when: (S) => S.length < 3 }),
15689
15689
  literal: r,
15690
15690
  type: l,
15691
15691
  built_in: u
@@ -15696,7 +15696,7 @@ function GE(e) {
15696
15696
  relevance: 0,
15697
15697
  keywords: {
15698
15698
  $pattern: /[\w\.]+/,
15699
- keyword: m.concat(f),
15699
+ keyword: g.concat(f),
15700
15700
  literal: r,
15701
15701
  type: l
15702
15702
  }
@@ -15770,8 +15770,8 @@ function rn(e, t) {
15770
15770
  n = n.slice(Pn.length), p = p + Pn, r = !1;
15771
15771
  continue;
15772
15772
  }
15773
- const u = n.match(new RegExp(`(${Vn}|${Pn})`)), f = u && u.index ? u.index : n.length, g = Math.min(f, d.length);
15774
- p = p + n.substring(0, g), n = n.slice(g), d = d.slice(g);
15773
+ const u = n.match(new RegExp(`(${Vn}|${Pn})`)), f = u && u.index ? u.index : n.length, m = Math.min(f, d.length);
15774
+ p = p + n.substring(0, m), n = n.slice(m), d = d.slice(m);
15775
15775
  }
15776
15776
  r && (p = p + Pn), c.textContent = p;
15777
15777
  }
@@ -15807,15 +15807,15 @@ function Ed(e, t) {
15807
15807
  }
15808
15808
  function YE(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
15809
15809
  const l = () => ({ type: ce.EMPTY }), c = (k, S, _) => ({ type: k, num: S, code: _ }), d = wd(e, t), p = a ? new RegExp(a) : void 0;
15810
- let u = 0, f = 0, g = !1;
15811
- const m = [], b = {
15812
- changes: m,
15810
+ let u = 0, f = 0, m = !1;
15811
+ const g = [], b = {
15812
+ changes: g,
15813
15813
  collector: [],
15814
15814
  stat: Ed(d, p)
15815
15815
  };
15816
15816
  for (let k = 0; k < d.length; k++) {
15817
- if (g) {
15818
- g = !1;
15817
+ if (m) {
15818
+ m = !1;
15819
15819
  continue;
15820
15820
  }
15821
15821
  const [S, _] = [d[k], d[k + 1]], [A, x] = [Uo(S), Uo(_)], O = S.value.replace(/\n$/, "").split(`
@@ -15824,7 +15824,7 @@ function YE(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
15824
15824
  for (const V of O) {
15825
15825
  let U = l(), H = l();
15826
15826
  const J = rn(n, V);
15827
- A === ce.EQUAL && (u++, f++, U = c(ce.EQUAL, u, J), H = c(ce.EQUAL, f, J)), A === ce.DELETE && (u++, U = c(ce.DELETE, u, J), H = l()), A === ce.ADD && (f++, U = l(), H = c(ce.ADD, f, J)), m.push({ left: U, right: H });
15827
+ A === ce.EQUAL && (u++, f++, U = c(ce.EQUAL, u, J), H = c(ce.EQUAL, f, J)), A === ce.DELETE && (u++, U = c(ce.DELETE, u, J), H = l()), A === ce.ADD && (f++, U = l(), H = c(ce.ADD, f, J)), g.push({ left: U, right: H });
15828
15828
  }
15829
15829
  break;
15830
15830
  }
@@ -15832,7 +15832,7 @@ function YE(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
15832
15832
  for (const V of O) {
15833
15833
  u++, f++;
15834
15834
  const U = rn(n, V);
15835
- m.push({
15835
+ g.push({
15836
15836
  left: c(ce.EQUAL, u, U),
15837
15837
  right: c(ce.EQUAL, f, U)
15838
15838
  });
@@ -15842,45 +15842,45 @@ function YE(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
15842
15842
  if (A === ce.DELETE) {
15843
15843
  if (x === ce.EQUAL)
15844
15844
  for (const V of O)
15845
- u++, m.push({
15845
+ u++, g.push({
15846
15846
  left: c(ce.DELETE, u, rn(n, V)),
15847
15847
  right: l()
15848
15848
  });
15849
15849
  if (x === ce.ADD) {
15850
- g = !0;
15850
+ m = !0;
15851
15851
  const V = Math.max(S.count, _.count);
15852
15852
  for (let U = 0; U < V; U++) {
15853
15853
  U < S.count && u++, U < _.count && f++;
15854
15854
  const [H, J] = [O[U], C[U]], K = s || O.length === C.length, z = K ? ls(J, H, o) : H, j = K ? ls(H, J, o) : J, B = p != null && p.test(H) ? ce.EQUAL : ce.DELETE, N = p != null && p.test(J) ? ce.EQUAL : ce.ADD, $ = U < S.count ? c(B, u, rn(n, z)) : l(), Y = U < _.count ? c(N, f, rn(n, j)) : l();
15855
- m.push({ left: $, right: Y });
15855
+ g.push({ left: $, right: Y });
15856
15856
  }
15857
15857
  }
15858
15858
  }
15859
15859
  if (A === ce.ADD)
15860
15860
  for (const V of O)
15861
- f++, m.push({
15861
+ f++, g.push({
15862
15862
  left: l(),
15863
15863
  right: c(ce.ADD, f, rn(n, V))
15864
15864
  });
15865
15865
  }
15866
15866
  if (e === t) {
15867
- for (let k = 0; k < m.length; k++)
15868
- m[k].fold = !1;
15867
+ for (let k = 0; k < g.length; k++)
15868
+ g[k].fold = !1;
15869
15869
  return b;
15870
15870
  }
15871
- for (let k = 0; k < m.length; k++) {
15872
- const S = m[k];
15871
+ for (let k = 0; k < g.length; k++) {
15872
+ const S = g[k];
15873
15873
  if (S.left.type === ce.DELETE || S.right.type === ce.ADD) {
15874
- const [_, A] = [Math.max(k - r, 0), Math.min(k + r + 1, m.length)];
15874
+ const [_, A] = [Math.max(k - r, 0), Math.min(k + r + 1, g.length)];
15875
15875
  for (let x = _; x < A; x++)
15876
- m[x].fold = !1;
15876
+ g[x].fold = !1;
15877
15877
  }
15878
15878
  S.fold === void 0 && (S.fold = !0);
15879
15879
  }
15880
15880
  const y = [];
15881
15881
  let E = [];
15882
- for (let k = 0; k < m.length; k++) {
15883
- const S = m[k];
15882
+ for (let k = 0; k < g.length; k++) {
15883
+ const S = g[k];
15884
15884
  if (S.fold === !1) {
15885
15885
  E.length && (E[0].hideIndex = b.collector.length, b.collector.push({
15886
15886
  lines: E,
@@ -15898,7 +15898,7 @@ function YE(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
15898
15898
  function XE(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
15899
15899
  const l = wd(e, t), c = a ? new RegExp(a) : void 0;
15900
15900
  let d = 0, p = 0, u = !1;
15901
- const f = [], g = {
15901
+ const f = [], m = {
15902
15902
  changes: f,
15903
15903
  collector: [],
15904
15904
  stat: Ed(l, c)
@@ -15979,25 +15979,25 @@ function XE(e, t, n = "plaintext", o = "word", s = !1, r = 10, a) {
15979
15979
  if (e === t) {
15980
15980
  for (let y = 0; y < f.length; y++)
15981
15981
  f[y].fold = !1;
15982
- return g;
15982
+ return m;
15983
15983
  }
15984
- const m = [];
15984
+ const g = [];
15985
15985
  let b = [];
15986
15986
  for (let y = 0; y < f.length; y++) {
15987
15987
  const E = f[y];
15988
15988
  if (E.fold === !1) {
15989
- b.length && (b[0].hideIndex = g.collector.length, g.collector.push({
15989
+ b.length && (b[0].hideIndex = m.collector.length, m.collector.push({
15990
15990
  lines: b,
15991
15991
  fold: !0
15992
- }), b = []), m.push(E);
15992
+ }), b = []), g.push(E);
15993
15993
  continue;
15994
15994
  }
15995
- E.type === "equal" && (E.hide = !0, b.push(E)), m.push(E);
15995
+ E.type === "equal" && (E.hide = !0, b.push(E)), g.push(E);
15996
15996
  }
15997
- return b.length && (b[0].hideIndex = g.collector.length, g.collector.push({
15997
+ return b.length && (b[0].hideIndex = m.collector.length, m.collector.push({
15998
15998
  lines: b,
15999
15999
  fold: !0
16000
- }), b = []), g.changes = m, g;
16000
+ }), b = []), m.changes = g, m;
16001
16001
  }
16002
16002
  const ZE = { key: 0 }, e1 = /* @__PURE__ */ I("td", {
16003
16003
  class: "blob-code blob-code-hunk",
@@ -16240,27 +16240,27 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16240
16240
  emits: ["diff"],
16241
16241
  setup(e, { emit: t }) {
16242
16242
  const n = e, o = t, s = D(() => n.outputFormat === "line-by-line"), r = D(() => {
16243
- let m = n.oldString || "";
16244
- return m = n.trim ? m.trim() : m, m = n.noDiffLineFeed ? m.replace(/(\r\n)/g, `
16245
- `) : m, m;
16243
+ let g = n.oldString || "";
16244
+ return g = n.trim ? g.trim() : g, g = n.noDiffLineFeed ? g.replace(/(\r\n)/g, `
16245
+ `) : g, g;
16246
16246
  }), a = D(() => {
16247
- let m = n.newString || "";
16248
- return m = n.trim ? m.trim() : m, m = n.noDiffLineFeed ? m.replace(/(\r\n)/g, `
16249
- `) : m, m;
16247
+ let g = n.newString || "";
16248
+ return g = n.trim ? g.trim() : g, g = n.noDiffLineFeed ? g.replace(/(\r\n)/g, `
16249
+ `) : g, g;
16250
16250
  }), l = D(
16251
16251
  () => s.value ? XE(r.value, a.value, n.language, n.diffStyle, n.forceInlineComparison, n.context, n.ignoreMatchingLines) : YE(r.value, a.value, n.language, n.diffStyle, n.forceInlineComparison, n.context, n.ignoreMatchingLines)
16252
16252
  ), c = R(l.value), d = D(() => c.value.stat.additionsNum === 0 && c.value.stat.deletionsNum === 0), p = R(-1);
16253
16253
  function u() {
16254
- const m = document.querySelectorAll(".blob-code-addition");
16255
- p.value < m.length - 1 && (p.value++, g(m));
16254
+ const g = document.querySelectorAll(".blob-code-addition");
16255
+ p.value < g.length - 1 && (p.value++, m(g));
16256
16256
  }
16257
16257
  function f() {
16258
- const m = document.querySelectorAll(".blob-code-addition");
16259
- p.value > 0 && (p.value--, g(m));
16258
+ const g = document.querySelectorAll(".blob-code-addition");
16259
+ p.value > 0 && (p.value--, m(g));
16260
16260
  }
16261
- function g(m) {
16262
- m.forEach((y) => y.classList.remove("current-diff"));
16263
- const b = m[p.value];
16261
+ function m(g) {
16262
+ g.forEach((y) => y.classList.remove("current-diff"));
16263
+ const b = g[p.value];
16264
16264
  b && (b.classList.add("current-diff"), b.scrollIntoView({ behavior: "smooth", block: "center" }));
16265
16265
  }
16266
16266
  return le(() => n, () => {
@@ -16271,16 +16271,16 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16271
16271
  delNum: c.value.stat.deletionsNum
16272
16272
  }
16273
16273
  });
16274
- }, { deep: !0, immediate: !0 }), (m, b) => (h(), M("div", {
16274
+ }, { deep: !0, immediate: !0 }), (g, b) => (h(), M("div", {
16275
16275
  class: "code-diff-view",
16276
- theme: m.theme,
16277
- style: Gn({ maxHeight: m.maxHeight })
16276
+ theme: g.theme,
16277
+ style: Gn({ maxHeight: g.maxHeight })
16278
16278
  }, [
16279
- m.hideHeader ? L("", !0) : (h(), M("div", T1, [
16279
+ g.hideHeader ? L("", !0) : (h(), M("div", T1, [
16280
16280
  i(s) ? (h(), M("div", O1, [
16281
16281
  I("span", null, [
16282
- I("div", I1, ae(m.filename), 1),
16283
- I("div", R1, ae(m.newFilename), 1)
16282
+ I("div", I1, ae(g.filename), 1),
16283
+ I("div", R1, ae(g.newFilename), 1)
16284
16284
  ]),
16285
16285
  I("span", N1, [
16286
16286
  I("button", {
@@ -16298,8 +16298,8 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16298
16298
  v(ki)
16299
16299
  ])
16300
16300
  ]),
16301
- m.hideStat ? L("", !0) : (h(), M("span", D1, [
16302
- Ht(m.$slots, "stat", {
16301
+ g.hideStat ? L("", !0) : (h(), M("span", D1, [
16302
+ Ht(g.$slots, "stat", {
16303
16303
  stat: i(c).stat
16304
16304
  }, () => [
16305
16305
  I("span", V1, "+" + ae(i(c).stat.additionsNum) + " additions", 1),
@@ -16307,9 +16307,9 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16307
16307
  ])
16308
16308
  ]))
16309
16309
  ])) : (h(), M("div", M1, [
16310
- I("span", j1, ae(m.filename), 1),
16310
+ I("span", j1, ae(g.filename), 1),
16311
16311
  I("span", L1, [
16312
- I("span", B1, ae(m.newFilename), 1),
16312
+ I("span", B1, ae(g.newFilename), 1),
16313
16313
  I("span", U1, [
16314
16314
  I("button", {
16315
16315
  class: "command-item-button",
@@ -16326,8 +16326,8 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16326
16326
  v(ki)
16327
16327
  ])
16328
16328
  ]),
16329
- m.hideStat ? L("", !0) : (h(), M("span", z1, [
16330
- Ht(m.$slots, "stat", {
16329
+ g.hideStat ? L("", !0) : (h(), M("span", z1, [
16330
+ Ht(g.$slots, "stat", {
16331
16331
  stat: i(c).stat
16332
16332
  }, () => [
16333
16333
  I("span", F1, "+" + ae(i(c).stat.additionsNum) + " additions", 1),
@@ -16379,9 +16379,9 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16379
16379
  name: "HistoryWidget",
16380
16380
  __name: "index",
16381
16381
  setup(e, { expose: t }) {
16382
- const { history: n, load: o, total: s, getHistoryDsl: r, engine: a } = Hc(), l = R(!1), c = mt(), d = R(), p = R(!1), u = R(!1), f = D(() => `(共 ${s.value} 条)`), g = D(
16382
+ const { history: n, load: o, total: s, getHistoryDsl: r, engine: a } = Hc(), l = R(!1), c = mt(), d = R(), p = R(!1), u = R(!1), f = D(() => `(共 ${s.value} 条)`), m = D(
16383
16383
  () => d.value ? "更新记录标记" : "保存历史记录"
16384
- ), m = async () => {
16384
+ ), g = async () => {
16385
16385
  const _ = n.value?.items.filter((x) => !!x.checked).map((x) => x.id);
16386
16386
  if (_?.length === 0) {
16387
16387
  We("请选择历史记录项", "warning");
@@ -16442,7 +16442,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16442
16442
  plus: "",
16443
16443
  subtitle: f.value,
16444
16444
  remove: !!i(s),
16445
- onRemove: m,
16445
+ onRemove: g,
16446
16446
  onPlus: y
16447
16447
  }, {
16448
16448
  "pre-actions": w(() => [
@@ -16518,7 +16518,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16518
16518
  key: 3,
16519
16519
  modelValue: p.value,
16520
16520
  "onUpdate:modelValue": A[3] || (A[3] = (x) => p.value = x),
16521
- title: g.value,
16521
+ title: m.value,
16522
16522
  width: "400px",
16523
16523
  height: "200px",
16524
16524
  model: d.value,
@@ -16791,7 +16791,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16791
16791
  setup(e) {
16792
16792
  const t = Le(), n = e, o = D(() => n.model ? "编辑API" : "新增API"), s = R("base"), r = R(), a = R(), l = R(n.model || {}), c = R(!1), d = R(""), p = R(`() => this.runApi({
16793
16793
  /* 在这里可输入接口参数 */
16794
- })`), u = R("模拟数据结果"), f = R(!1), g = [
16794
+ })`), u = R("模拟数据结果"), f = R(!1), m = [
16795
16795
  {
16796
16796
  label: "基础信息",
16797
16797
  value: "base"
@@ -16810,7 +16810,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16810
16810
  }
16811
16811
  ];
16812
16812
  df("currentModel", l);
16813
- const m = D(() => l.value?.method === "jsonp");
16813
+ const g = D(() => l.value?.method === "jsonp");
16814
16814
  le(
16815
16815
  () => n.model,
16816
16816
  (_) => {
@@ -16888,7 +16888,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16888
16888
  v(i(ms), {
16889
16889
  modelValue: s.value,
16890
16890
  "onUpdate:modelValue": A[0] || (A[0] = (x) => s.value = x),
16891
- items: g,
16891
+ items: m,
16892
16892
  "tab-position": "left",
16893
16893
  border: "",
16894
16894
  fit: ""
@@ -16977,7 +16977,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
16977
16977
  [Mn, s.value === "base"]
16978
16978
  ]),
16979
16979
  s.value === "settings" ? (h(), M(ne, { key: 0 }, [
16980
- m.value ? (h(), T(Y1, { key: 0 })) : (h(), T(q1, { key: 1 }))
16980
+ g.value ? (h(), T(Y1, { key: 0 })) : (h(), T(q1, { key: 1 }))
16981
16981
  ], 64)) : L("", !0),
16982
16982
  s.value === "mock" ? (h(), T(X1, { key: 1 })) : L("", !0),
16983
16983
  s.value === "test" ? (h(), T(Z1, {
@@ -17162,7 +17162,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17162
17162
  return c.value ? A.filter((x) => x.name.includes(c.value) || x.label?.includes(c.value) || x.url.includes(c.value)) : A;
17163
17163
  }), u = D(
17164
17164
  () => lr(p.value, (A) => A.category || "默认分组")
17165
- ), f = D(() => Object.keys(u.value)), g = D(() => f.value[0]), m = R(g.value), b = D(() => {
17165
+ ), f = D(() => Object.keys(u.value)), m = D(() => f.value[0]), g = R(m.value), b = D(() => {
17166
17166
  const A = t.value?.globals?.axios;
17167
17167
  if (A && Ki(A) && A.value)
17168
17168
  return Da(A, {}, !1, !1, !0)({})?.settings || {};
@@ -17252,8 +17252,8 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17252
17252
  }, null, 8, ["modelValue", "prefix-icon"])
17253
17253
  ]),
17254
17254
  v(i(ds), {
17255
- modelValue: m.value,
17256
- "onUpdate:modelValue": x[1] || (x[1] = (O) => m.value = O)
17255
+ modelValue: g.value,
17256
+ "onUpdate:modelValue": x[1] || (x[1] = (O) => g.value = O)
17257
17257
  }, {
17258
17258
  default: w(() => [
17259
17259
  (h(!0), M(ne, null, de(u.value, (O, C) => (h(), T(i(fs), {
@@ -17306,27 +17306,27 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17306
17306
  name: "DepsWidget",
17307
17307
  __name: "index",
17308
17308
  setup(e) {
17309
- const { dependencies: t, engine: n } = mc(), o = R(!1), s = R(!1), r = R({}), a = D(() => s.value ? "查看依赖" : r.value ? "编辑依赖" : "新增依赖"), l = (m) => m.required || m.official ? [] : ["edit", "remove"], c = (m) => m.official && !m.required, d = async (m) => (m.urls = m.urls.split(`
17310
- `), m.enabled = !0, m.official = !1, n.project.value?.setDeps(m), !0), p = (m) => {
17311
- n.project.value?.setDeps(m);
17309
+ const { dependencies: t, engine: n } = mc(), o = R(!1), s = R(!1), r = R({}), a = D(() => s.value ? "查看依赖" : r.value ? "编辑依赖" : "新增依赖"), l = (g) => g.required || g.official ? [] : ["edit", "remove"], c = (g) => g.official && !g.required, d = async (g) => (g.urls = g.urls.split(`
17310
+ `), g.enabled = !0, g.official = !1, n.project.value?.setDeps(g), !0), p = (g) => {
17311
+ n.project.value?.setDeps(g);
17312
17312
  }, u = () => {
17313
17313
  s.value = !1, o.value = !0, r.value = null;
17314
- }, f = (m) => {
17314
+ }, f = (g) => {
17315
17315
  s.value = !0, r.value = {
17316
- ...m,
17317
- urls: m.urls.join(`
17316
+ ...g,
17317
+ urls: g.urls.join(`
17318
17318
  `)
17319
17319
  }, o.value = !0;
17320
- }, g = (m, b) => {
17320
+ }, m = (g, b) => {
17321
17321
  b.name === "edit" && (r.value = {
17322
- ...m,
17322
+ ...g,
17323
17323
  enabled: !0,
17324
17324
  official: !1,
17325
- urls: m.urls.join(`
17325
+ urls: g.urls.join(`
17326
17326
  `)
17327
- }, s.value = !1, o.value = !0), b.name === "remove" && n.project.value?.removeDeps(m);
17327
+ }, s.value = !1, o.value = !0), b.name === "remove" && n.project.value?.removeDeps(g);
17328
17328
  };
17329
- return (m, b) => (h(), T(i(xe), {
17329
+ return (g, b) => (h(), T(i(xe), {
17330
17330
  class: "v-deps-widget",
17331
17331
  title: "依赖管理",
17332
17332
  plus: "",
@@ -17344,7 +17344,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17344
17344
  "onUpdate:modelValue": (E) => y.enabled = E,
17345
17345
  onSwitch: (E) => p(y),
17346
17346
  onClick: (E) => f(y),
17347
- onAction: (E) => g(y, E)
17347
+ onAction: (E) => m(y, E)
17348
17348
  }, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
17349
17349
  v(i(Xt), {
17350
17350
  modelValue: o.value,
@@ -17459,7 +17459,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17459
17459
  }, u = () => {
17460
17460
  o("action", { type: "open", model: n.model });
17461
17461
  };
17462
- return (f, g) => (h(), M("div", {
17462
+ return (f, m) => (h(), M("div", {
17463
17463
  class: we(["v-actions", [`is-${n.position}`]])
17464
17464
  }, [
17465
17465
  v(i(Re), {
@@ -17501,7 +17501,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17501
17501
  inheritAttrs: !1,
17502
17502
  __name: "index",
17503
17503
  setup(e, { expose: t }) {
17504
- const n = R(), o = R(), s = R(), { width: r, height: a } = Po(n), { dependencies: l, engine: c, apis: d, meta: p } = mc(), { current: u, isEmpty: f } = Pt(), g = D(() => c.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), m = D(() => c.skeleton?.getWidget("Toolbar")?.widgetRef.customSize), b = D(() => c.project.value?.config || {}), y = D(() => c.project.value?.uniConfig || {}), E = D(() => c.project.value?.globals || {}), k = D(() => c.project.value?.i18n || {}), { designer: S, hover: _, dropping: A, selected: x, lines: O } = Hh(
17504
+ const n = R(), o = R(), s = R(), { width: r, height: a } = Po(n), { dependencies: l, engine: c, apis: d, meta: p } = mc(), { current: u, isEmpty: f } = Pt(), m = D(() => c.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), g = D(() => c.skeleton?.getWidget("Toolbar")?.widgetRef.customSize), b = D(() => c.project.value?.config || {}), y = D(() => c.project.value?.uniConfig || {}), E = D(() => c.project.value?.globals || {}), k = D(() => c.project.value?.i18n || {}), { designer: S, hover: _, dropping: A, selected: x, lines: O } = Hh(
17505
17505
  o,
17506
17506
  l,
17507
17507
  d,
@@ -17554,7 +17554,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17554
17554
  };
17555
17555
  return t({
17556
17556
  designer: S,
17557
- mode: g
17557
+ mode: m
17558
17558
  }), (H, J) => (h(), M("div", {
17559
17559
  ref_key: "container",
17560
17560
  ref: n,
@@ -17563,10 +17563,10 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17563
17563
  v(i(nd), {
17564
17564
  ref_key: "viewport",
17565
17565
  ref: s,
17566
- mode: g.value,
17566
+ mode: m.value,
17567
17567
  width: i(r),
17568
17568
  height: i(a),
17569
- customSize: m.value
17569
+ customSize: g.value
17570
17570
  }, {
17571
17571
  default: w(() => [
17572
17572
  i(A) ? (h(), M("div", {
@@ -17639,25 +17639,25 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17639
17639
  () => a.value ? `编辑${t.title}` : `新增${t.title}`
17640
17640
  ), c = () => {
17641
17641
  a.value = !1, r.value = t.createEmpty(), s.value = !0;
17642
- }, d = (m, b) => {
17642
+ }, d = (g, b) => {
17643
17643
  switch (b.name) {
17644
17644
  case "edit":
17645
- u(m);
17645
+ u(g);
17646
17646
  break;
17647
17647
  case "remove":
17648
- t.remove(m);
17648
+ t.remove(g);
17649
17649
  break;
17650
17650
  }
17651
- }, p = (m) => {
17652
- r.value.value = m;
17653
- }, u = (m) => {
17651
+ }, p = (g) => {
17652
+ r.value.value = g;
17653
+ }, u = (g) => {
17654
17654
  a.value = !0, r.value = {
17655
- ...m
17655
+ ...g
17656
17656
  }, s.value = !0;
17657
- }, f = async (m) => t.submit(m, a.value), g = () => {
17657
+ }, f = async (g) => t.submit(g, a.value), m = () => {
17658
17658
  o.value?.itemRef.validate();
17659
17659
  };
17660
- return (m, b) => (h(), T(i(xe), {
17660
+ return (g, b) => (h(), T(i(xe), {
17661
17661
  title: t.title,
17662
17662
  class: "v-sub-panel",
17663
17663
  size: "small",
@@ -17688,7 +17688,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17688
17688
  onPick: p
17689
17689
  }, {
17690
17690
  default: w(() => [
17691
- Ht(m.$slots, "fields", ka(Sa({ model: r.value, isEdit: a.value, nameLabel: e.nameLabel, valueLabel: e.valueLabel })), () => [
17691
+ Ht(g.$slots, "fields", ka(Sa({ model: r.value, isEdit: a.value, nameLabel: e.nameLabel, valueLabel: e.valueLabel })), () => [
17692
17692
  v(i(X), {
17693
17693
  name: "name",
17694
17694
  label: e.nameLabel,
@@ -17711,7 +17711,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17711
17711
  height: "100%",
17712
17712
  modelValue: r.value.value,
17713
17713
  "onUpdate:modelValue": b[0] || (b[0] = (y) => r.value.value = y),
17714
- onBlur: g
17714
+ onBlur: m
17715
17715
  }, null, 8, ["modelValue"])
17716
17716
  ]),
17717
17717
  _: 1
@@ -17857,7 +17857,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17857
17857
  remove: a,
17858
17858
  submit: l
17859
17859
  }, {
17860
- fields: w(({ model: p, nameLabel: u, isEdit: f, valueLabel: g }) => [
17860
+ fields: w(({ model: p, nameLabel: u, isEdit: f, valueLabel: m }) => [
17861
17861
  v(i(X), {
17862
17862
  name: "name",
17863
17863
  label: u,
@@ -17869,7 +17869,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17869
17869
  v(i(X), {
17870
17870
  class: "v-binder__editor",
17871
17871
  name: "value",
17872
- label: g,
17872
+ label: m,
17873
17873
  required: ""
17874
17874
  }, {
17875
17875
  editor: w(() => [
@@ -17878,7 +17878,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17878
17878
  dark: "",
17879
17879
  height: "100%",
17880
17880
  modelValue: p.value,
17881
- "onUpdate:modelValue": (m) => p.value = m
17881
+ "onUpdate:modelValue": (g) => p.value = g
17882
17882
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
17883
17883
  ]),
17884
17884
  _: 2
@@ -18082,8 +18082,8 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18082
18082
  addCustom: d,
18083
18083
  removeCustom: p,
18084
18084
  isExist: u
18085
- } = Gh(o), f = R(!1), g = R(), m = () => {
18086
- f.value = !0, g.value = {
18085
+ } = Gh(o), f = R(!1), m = R(), g = () => {
18086
+ f.value = !0, m.value = {
18087
18087
  name: ""
18088
18088
  };
18089
18089
  }, b = async (E) => {
@@ -18128,7 +18128,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18128
18128
  removable: "",
18129
18129
  plus: "",
18130
18130
  grow: "",
18131
- onPlus: m,
18131
+ onPlus: g,
18132
18132
  onRemove: y
18133
18133
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : L("", !0),
18134
18134
  v(i(Xt), {
@@ -18139,7 +18139,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18139
18139
  height: "150px",
18140
18140
  "submit-method": b,
18141
18141
  formProps: { tooltipMessage: !1 },
18142
- model: g.value
18142
+ model: m.value
18143
18143
  }, {
18144
18144
  default: w(() => [
18145
18145
  v(i(X), {
@@ -18274,24 +18274,24 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18274
18274
  const { current: t, context: n } = Pt(), { selected: o } = yn(), { mouseEventList: s, keyboardEventList: r, componentEventList: a } = Zh(o), l = R({
18275
18275
  name: "",
18276
18276
  event: void 0
18277
- }), c = R(!1), d = (m) => {
18278
- l.value = _r(m), c.value = !0;
18279
- }, p = async (m) => {
18277
+ }), c = R(!1), d = (g) => {
18278
+ l.value = _r(g), c.value = !0;
18279
+ }, p = async (g) => {
18280
18280
  const b = {
18281
- ...m,
18282
- modifiers: m.modifiers.reduce((E, k) => (E[k] = !0, E), {})
18281
+ ...g,
18282
+ modifiers: g.modifiers.reduce((E, k) => (E[k] = !0, E), {})
18283
18283
  };
18284
18284
  return Vt(b.handler, n.value, !0) ? ((o.value?.model).setEvent(b), !0) : !1;
18285
- }, u = async (m) => {
18285
+ }, u = async (g) => {
18286
18286
  const b = o.value?.model;
18287
- m.name && (b.removeEvent(m.name), c.value = !1);
18287
+ g.name && (b.removeEvent(g.name), c.value = !1);
18288
18288
  }, f = async () => {
18289
18289
  l.value.name && await In("确定要删除该事件吗?") && u(l.value);
18290
- }, g = (m) => {
18291
- const { name: b, modelValue: y } = m;
18290
+ }, m = (g) => {
18291
+ const { name: b, modelValue: y } = g;
18292
18292
  b === "edit" && d(y), b === "remove" && u(y);
18293
18293
  };
18294
- return (m, b) => (h(), T(i(Te), {
18294
+ return (g, b) => (h(), T(i(Te), {
18295
18295
  class: "v-events-widget",
18296
18296
  direction: "column",
18297
18297
  fit: ""
@@ -18318,7 +18318,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18318
18318
  actions: y.event ? ["edit", "remove"] : ["edit"],
18319
18319
  active: !!y.event,
18320
18320
  onClick: (E) => d(y),
18321
- onAction: g
18321
+ onAction: m
18322
18322
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
18323
18323
  ]),
18324
18324
  _: 1
@@ -18339,7 +18339,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18339
18339
  actions: y.event ? ["edit", "remove"] : ["edit"],
18340
18340
  active: !!y.event,
18341
18341
  onClick: (E) => d(y),
18342
- onAction: g
18342
+ onAction: m
18343
18343
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
18344
18344
  ]),
18345
18345
  _: 1
@@ -18361,7 +18361,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18361
18361
  actions: y.event ? ["edit", "remove"] : ["edit"],
18362
18362
  active: !!y.event,
18363
18363
  onClick: (E) => d(y),
18364
- onAction: g
18364
+ onAction: m
18365
18365
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
18366
18366
  ]),
18367
18367
  _: 1
@@ -18427,8 +18427,8 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18427
18427
  vHtml: p,
18428
18428
  vModels: u,
18429
18429
  customDirectives: f,
18430
- onValueChange: g,
18431
- onForChange: m,
18430
+ onValueChange: m,
18431
+ onForChange: g,
18432
18432
  onModelChange: b,
18433
18433
  onAddCustom: y,
18434
18434
  onRemoveCustom: E,
@@ -18464,7 +18464,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18464
18464
  context: i(n),
18465
18465
  value: i(s).value,
18466
18466
  disabled: i(_),
18467
- onChange: i(g)
18467
+ onChange: i(m)
18468
18468
  }, null, 8, ["current", "context", "value", "disabled", "onChange"]),
18469
18469
  i(S) ? (h(), T(i(Se), {
18470
18470
  key: 0,
@@ -18475,7 +18475,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18475
18475
  context: i(n),
18476
18476
  value: i(r).value,
18477
18477
  disabled: i(_),
18478
- onChange: i(g)
18478
+ onChange: i(m)
18479
18479
  }, null, 8, ["current", "context", "value", "disabled", "onChange"])) : L("", !0),
18480
18480
  i(S) ? (h(), T(i(Se), {
18481
18481
  key: 1,
@@ -18486,7 +18486,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18486
18486
  context: i(n),
18487
18487
  value: !!i(a).value,
18488
18488
  disabled: i(_),
18489
- onChange: i(g)
18489
+ onChange: i(m)
18490
18490
  }, null, 8, ["current", "context", "value", "disabled", "onChange"])) : L("", !0),
18491
18491
  v(i(Se), {
18492
18492
  name: "vShow",
@@ -18495,7 +18495,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18495
18495
  current: i(t),
18496
18496
  context: i(n),
18497
18497
  value: i(l).value,
18498
- onChange: i(g)
18498
+ onChange: i(m)
18499
18499
  }, null, 8, ["current", "context", "value", "onChange"]),
18500
18500
  v(i(Se), {
18501
18501
  name: "vBind",
@@ -18504,7 +18504,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18504
18504
  current: i(t),
18505
18505
  context: i(n),
18506
18506
  value: i(c).value,
18507
- onChange: i(g)
18507
+ onChange: i(m)
18508
18508
  }, null, 8, ["current", "context", "value", "onChange"]),
18509
18509
  v(i(Se), {
18510
18510
  name: "vHtml",
@@ -18513,7 +18513,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18513
18513
  current: i(t),
18514
18514
  context: i(n),
18515
18515
  value: i(p).value,
18516
- onChange: i(g)
18516
+ onChange: i(m)
18517
18517
  }, null, 8, ["current", "context", "value", "onChange"])
18518
18518
  ]),
18519
18519
  _: 1
@@ -18542,7 +18542,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18542
18542
  current: i(t),
18543
18543
  context: i(n),
18544
18544
  value: i(d).value,
18545
- onChange: i(m)
18545
+ onChange: i(g)
18546
18546
  }, null, 8, ["current", "context", "value", "onChange"]),
18547
18547
  v(i(Se), {
18548
18548
  name: "item",
@@ -18555,7 +18555,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18555
18555
  context: i(n),
18556
18556
  value: i(d).iterator?.item,
18557
18557
  disabled: !i(d).value,
18558
- onChange: i(m)
18558
+ onChange: i(g)
18559
18559
  }, null, 8, ["current", "context", "value", "disabled", "onChange"]),
18560
18560
  v(i(Se), {
18561
18561
  name: "index",
@@ -18568,7 +18568,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18568
18568
  context: i(n),
18569
18569
  value: i(d).iterator?.index,
18570
18570
  disabled: !i(d).value,
18571
- onChange: i(m)
18571
+ onChange: i(g)
18572
18572
  }, null, 8, ["current", "context", "value", "disabled", "onChange"])
18573
18573
  ]),
18574
18574
  _: 1
@@ -18991,15 +18991,15 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
18991
18991
  }, 8, ["modelValue", "indeterminate"])
18992
18992
  ]),
18993
18993
  default: w(() => [
18994
- (h(!0), M(ne, null, de(l.value, ([f, g]) => (h(), T(i(Zs), {
18994
+ (h(!0), M(ne, null, de(l.value, ([f, m]) => (h(), T(i(Zs), {
18995
18995
  key: f,
18996
18996
  label: f
18997
18997
  }, {
18998
18998
  default: w(() => [
18999
- (h(!0), M(ne, null, de(g, (m) => (h(), T(i(Kr), {
19000
- key: m,
19001
- label: m,
19002
- value: m
18999
+ (h(!0), M(ne, null, de(m, (g) => (h(), T(i(Kr), {
19000
+ key: g,
19001
+ label: g,
19002
+ value: g
19003
19003
  }, null, 8, ["label", "value"]))), 128))
19004
19004
  ]),
19005
19005
  _: 2
@@ -19019,7 +19019,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19019
19019
  z.状态 = ["state"];
19020
19020
  const j = Object.keys(t.value.computed || {}), B = Object.keys(t.value.methods || {});
19021
19021
  return j.length && (z.计算属性 = j), B.length && (z.方法 = B), z;
19022
- }), c = R(!1), d = R(), p = R(!1), u = R(), f = R(!1), g = R(), m = R(!1), b = R(), y = D(() => t.value?.expose || []), E = () => {
19022
+ }), c = R(!1), d = R(), p = R(!1), u = R(), f = R(!1), m = R(), g = R(!1), b = R(), y = D(() => t.value?.expose || []), E = () => {
19023
19023
  d.value = void 0, c.value = !0;
19024
19024
  }, k = (z) => {
19025
19025
  const { name: j, modelValue: B } = z;
@@ -19034,16 +19034,16 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19034
19034
  const { name: j, modelValue: B } = z;
19035
19035
  j === "edit" && A(B), j === "remove" && t.value?.removeEmit(B.name);
19036
19036
  }, O = () => {
19037
- g.value = void 0, f.value = !0;
19037
+ m.value = void 0, f.value = !0;
19038
19038
  }, C = (z) => {
19039
- g.value = { ...z }, f.value = !0;
19039
+ m.value = { ...z }, f.value = !0;
19040
19040
  }, V = (z) => {
19041
19041
  const { name: j, modelValue: B } = z;
19042
19042
  j === "edit" && C(B), j === "remove" && t.value?.removeSlot(B.name);
19043
19043
  }, U = () => {
19044
- b.value = void 0, m.value = !0;
19044
+ b.value = void 0, g.value = !0;
19045
19045
  }, H = (z) => {
19046
- b.value = z, m.value = !0;
19046
+ b.value = z, g.value = !0;
19047
19047
  }, J = (z) => {
19048
19048
  const { name: j, modelValue: B } = z;
19049
19049
  j === "edit" && H(B), j === "remove" && t.value?.removeInject(B);
@@ -19148,7 +19148,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19148
19148
  "onUpdate:modelValue": j[2] || (j[2] = (B) => f.value = B),
19149
19149
  current: i(t),
19150
19150
  context: i(n),
19151
- item: g.value
19151
+ item: m.value
19152
19152
  }, null, 8, ["modelValue", "current", "context", "item"])) : L("", !0)
19153
19153
  ]),
19154
19154
  _: 1
@@ -19174,10 +19174,10 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19174
19174
  key: 0,
19175
19175
  "image-size": 50
19176
19176
  })),
19177
- m.value ? (h(), T(xk, {
19177
+ g.value ? (h(), T(xk, {
19178
19178
  key: 1,
19179
- modelValue: m.value,
19180
- "onUpdate:modelValue": j[3] || (j[3] = (B) => m.value = B),
19179
+ modelValue: g.value,
19180
+ "onUpdate:modelValue": j[3] || (j[3] = (B) => g.value = B),
19181
19181
  current: i(t),
19182
19182
  context: i(n),
19183
19183
  item: b.value
@@ -19265,8 +19265,8 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19265
19265
  label: _.title || "",
19266
19266
  value: _.id,
19267
19267
  data: _
19268
- })) : []), g = D(() => t.item ? "编辑数据源" : "新增数据源"), m = (_) => ["api", "meta"].includes(_.type), b = (_) => ["mock"].includes(_.type), y = (_) => {
19269
- c.value.ref = "", c.value.name = "", c.value.label = "", m(c.value) && c.value.transform && !c.value.transform.value && (c.value.transform.value = `(res) => {
19268
+ })) : []), m = D(() => t.item ? "编辑数据源" : "新增数据源"), g = (_) => ["api", "meta"].includes(_.type), b = (_) => ["mock"].includes(_.type), y = (_) => {
19269
+ c.value.ref = "", c.value.name = "", c.value.label = "", g(c.value) && c.value.transform && !c.value.transform.value && (c.value.transform.value = `(res) => {
19270
19270
  return res;
19271
19271
  }`), b(c.value) && c.value.mockTemplate && !c.value.mockTemplate.value && (c.value.mockTemplate.value = `(params) => {
19272
19272
  return {};
@@ -19298,7 +19298,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19298
19298
  return t.current?.setDataSource(_), !0;
19299
19299
  }, S = async () => {
19300
19300
  if (!t.context) return;
19301
- if (m(c.value) && !c.value.ref) {
19301
+ if (g(c.value) && !c.value.ref) {
19302
19302
  Ue("请先选择API");
19303
19303
  return;
19304
19304
  }
@@ -19334,7 +19334,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19334
19334
  return (_, A) => (h(), T(i(Xt), {
19335
19335
  width: "1000px",
19336
19336
  height: "700px",
19337
- title: g.value,
19337
+ title: m.value,
19338
19338
  model: c.value,
19339
19339
  "form-props": { tooltipMessage: !1 },
19340
19340
  "submit-method": k,
@@ -19369,7 +19369,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19369
19369
  key: c.value.type,
19370
19370
  required: "",
19371
19371
  disabled: !!t.item,
19372
- visible: m,
19372
+ visible: g,
19373
19373
  options: f.value,
19374
19374
  props: { filterable: !0 },
19375
19375
  onChange: E
@@ -19400,7 +19400,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19400
19400
  name: "transform.value",
19401
19401
  label: "转换函数",
19402
19402
  editor: "none",
19403
- visible: m
19403
+ visible: g
19404
19404
  }, {
19405
19405
  default: w(() => [
19406
19406
  v(i(Xe), {
@@ -19511,7 +19511,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19511
19511
  tag: f.type.toUpperCase(),
19512
19512
  "tag-type": a(f.type),
19513
19513
  onAction: d,
19514
- onClick: (g) => c(f)
19514
+ onClick: (m) => c(f)
19515
19515
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
19516
19516
  r.value.length ? L("", !0) : (h(), T(i(ot), {
19517
19517
  key: 0,
@@ -19822,17 +19822,17 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19822
19822
  ph(a, () => {
19823
19823
  s("close");
19824
19824
  });
19825
- const d = (g) => {
19826
- l.value = typeof g == "number" ? `${g}px` : "auto", p(l.value);
19827
- }, p = (g) => {
19828
- c.value = g === "auto" ? void 0 : "px";
19825
+ const d = (m) => {
19826
+ l.value = typeof m == "number" ? `${m}px` : "auto", p(l.value);
19827
+ }, p = (m) => {
19828
+ c.value = m === "auto" ? void 0 : "px";
19829
19829
  }, u = () => {
19830
19830
  l.value ? (s("update:modelValue", l.value), s("submit", o.name, l.value), s("close")) : Ue("请输入有效值", "提示");
19831
19831
  }, f = () => {
19832
19832
  l.value = void 0, s("update:modelValue", l.value), s("submit", o.name, void 0), s("close");
19833
19833
  };
19834
- return (g, m) => (h(), M("div", Nk, [
19835
- m[4] || (m[4] = I("div", { class: "v-spacing-input__modal" }, null, -1)),
19834
+ return (m, g) => (h(), M("div", Nk, [
19835
+ g[4] || (g[4] = I("div", { class: "v-spacing-input__modal" }, null, -1)),
19836
19836
  I("div", Dk, [
19837
19837
  v(i(Te), {
19838
19838
  class: "v-spacing-input__body",
@@ -19845,7 +19845,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19845
19845
  default: w(() => [
19846
19846
  v(i($i), {
19847
19847
  modelValue: l.value,
19848
- "onUpdate:modelValue": m[0] || (m[0] = (b) => l.value = b),
19848
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => l.value = b),
19849
19849
  size: "small",
19850
19850
  "with-unit": !!c.value,
19851
19851
  unit: c.value,
@@ -19864,7 +19864,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19864
19864
  }, {
19865
19865
  default: w(() => [
19866
19866
  I("span", {
19867
- onClick: m[1] || (m[1] = (b) => d("auto"))
19867
+ onClick: g[1] || (g[1] = (b) => d("auto"))
19868
19868
  }, "auto")
19869
19869
  ]),
19870
19870
  _: 1
@@ -19894,7 +19894,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19894
19894
  style: { width: "100%" },
19895
19895
  onClick: u
19896
19896
  }, {
19897
- default: w(() => [...m[2] || (m[2] = [
19897
+ default: w(() => [...g[2] || (g[2] = [
19898
19898
  te(" 确定 ", -1)
19899
19899
  ])]),
19900
19900
  _: 1
@@ -19905,7 +19905,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19905
19905
  style: { width: "100%" },
19906
19906
  onClick: f
19907
19907
  }, {
19908
- default: w(() => [...m[3] || (m[3] = [
19908
+ default: w(() => [...g[3] || (g[3] = [
19909
19909
  te(" 重置 ", -1)
19910
19910
  ])]),
19911
19911
  _: 1
@@ -19938,10 +19938,10 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19938
19938
  setup(e) {
19939
19939
  const t = e, n = R(), o = R(), { width: s, height: r } = Po(n), { width: a, height: l } = Po(o), c = R(!1), d = R(), p = R(), u = () => {
19940
19940
  c.value = !1, d.value = void 0, p.value = void 0;
19941
- }, f = (g) => {
19942
- d.value = g, p.value = t.styleJson[g], c.value = !0;
19941
+ }, f = (m) => {
19942
+ d.value = m, p.value = t.styleJson[m], c.value = !0;
19943
19943
  };
19944
- return (g, m) => (h(), T(i(xe), {
19944
+ return (m, g) => (h(), T(i(xe), {
19945
19945
  title: "间距",
19946
19946
  class: "v-sub-panel",
19947
19947
  size: "small",
@@ -19977,7 +19977,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19977
19977
  "data-automation-id": "margin-top-button",
19978
19978
  "aria-label": "Margin top button",
19979
19979
  class: "tb-path-color",
19980
- onClick: m[0] || (m[0] = (b) => f("margin-top"))
19980
+ onClick: g[0] || (g[0] = (b) => f("margin-top"))
19981
19981
  }, null, 8, Lk)
19982
19982
  ])
19983
19983
  ]),
@@ -19995,7 +19995,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
19995
19995
  "data-automation-id": "margin-right-button",
19996
19996
  "aria-label": "Margin right button",
19997
19997
  class: "lr-path-color",
19998
- onClick: m[1] || (m[1] = (b) => f("margin-right"))
19998
+ onClick: g[1] || (g[1] = (b) => f("margin-right"))
19999
19999
  }, null, 8, Bk)
20000
20000
  ])
20001
20001
  ]),
@@ -20013,7 +20013,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20013
20013
  "data-automation-id": "margin-bottom-button",
20014
20014
  "aria-label": "Margin bottom button",
20015
20015
  class: "tb-path-color",
20016
- onClick: m[2] || (m[2] = (b) => f("margin-bottom"))
20016
+ onClick: g[2] || (g[2] = (b) => f("margin-bottom"))
20017
20017
  }, null, 8, Uk)
20018
20018
  ])
20019
20019
  ]),
@@ -20031,7 +20031,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20031
20031
  "data-automation-id": "margin-left-button",
20032
20032
  "aria-label": "Margin left button",
20033
20033
  class: "lr-path-color",
20034
- onClick: m[3] || (m[3] = (b) => f("margin-left"))
20034
+ onClick: g[3] || (g[3] = (b) => f("margin-left"))
20035
20035
  }, null, 8, zk)
20036
20036
  ])
20037
20037
  ]),
@@ -20086,19 +20086,19 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20086
20086
  ], 8, jk)) : L("", !0),
20087
20087
  I("div", {
20088
20088
  class: we(["spacing-edit margin-top", { "is-setting": t.styleJson["margin-top"] }]),
20089
- onClick: m[4] || (m[4] = (b) => f("margin-top"))
20089
+ onClick: g[4] || (g[4] = (b) => f("margin-top"))
20090
20090
  }, ae(t.styleJson["margin-top"] || "-"), 3),
20091
20091
  I("div", {
20092
20092
  class: we(["spacing-edit margin-right", { "is-setting": t.styleJson["margin-right"] }]),
20093
- onClick: m[5] || (m[5] = (b) => f("margin-right"))
20093
+ onClick: g[5] || (g[5] = (b) => f("margin-right"))
20094
20094
  }, ae(t.styleJson["margin-right"] || "-"), 3),
20095
20095
  I("div", {
20096
20096
  class: we(["spacing-edit margin-bottom", { "is-setting": t.styleJson["margin-bottom"] }]),
20097
- onClick: m[6] || (m[6] = (b) => f("margin-bottom"))
20097
+ onClick: g[6] || (g[6] = (b) => f("margin-bottom"))
20098
20098
  }, ae(t.styleJson["margin-bottom"] || "-"), 3),
20099
20099
  I("div", {
20100
20100
  class: we(["spacing-edit margin-left", { "is-setting": t.styleJson["margin-left"] }]),
20101
- onClick: m[7] || (m[7] = (b) => f("margin-left"))
20101
+ onClick: g[7] || (g[7] = (b) => f("margin-left"))
20102
20102
  }, ae(t.styleJson["margin-left"] || "-"), 3)
20103
20103
  ]),
20104
20104
  I("div", {
@@ -20127,7 +20127,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20127
20127
  "data-automation-id": "padding-top-button",
20128
20128
  "aria-label": "Padding top button",
20129
20129
  class: "tb-path-color",
20130
- onClick: m[8] || (m[8] = (b) => f("padding-top"))
20130
+ onClick: g[8] || (g[8] = (b) => f("padding-top"))
20131
20131
  }, null, 8, Qk)
20132
20132
  ])
20133
20133
  ]),
@@ -20145,7 +20145,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20145
20145
  "data-automation-id": "padding-right-button",
20146
20146
  "aria-label": "Padding right button",
20147
20147
  class: "lr-path-color",
20148
- onClick: m[9] || (m[9] = (b) => f("padding-right"))
20148
+ onClick: g[9] || (g[9] = (b) => f("padding-right"))
20149
20149
  }, null, 8, qk)
20150
20150
  ])
20151
20151
  ]),
@@ -20163,7 +20163,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20163
20163
  "data-automation-id": "padding-bottom-button",
20164
20164
  "aria-label": "Padding bottom button",
20165
20165
  class: "tb-path-color",
20166
- onClick: m[10] || (m[10] = (b) => f("padding-bottom"))
20166
+ onClick: g[10] || (g[10] = (b) => f("padding-bottom"))
20167
20167
  }, null, 8, Yk)
20168
20168
  ])
20169
20169
  ]),
@@ -20181,7 +20181,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20181
20181
  "data-automation-id": "padding-left-button",
20182
20182
  "aria-label": "Padding left button",
20183
20183
  class: "lr-path-color",
20184
- onClick: m[11] || (m[11] = (b) => f("padding-left"))
20184
+ onClick: g[11] || (g[11] = (b) => f("padding-left"))
20185
20185
  }, null, 8, Xk)
20186
20186
  ])
20187
20187
  ]),
@@ -20236,22 +20236,22 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20236
20236
  ], 8, Gk)) : L("", !0),
20237
20237
  I("div", {
20238
20238
  class: we(["spacing-edit padding-top", { "is-setting": t.styleJson["padding-top"] }]),
20239
- onClick: m[12] || (m[12] = (b) => f("padding-top"))
20239
+ onClick: g[12] || (g[12] = (b) => f("padding-top"))
20240
20240
  }, ae(t.styleJson["padding-top"] || "-"), 3),
20241
20241
  I("div", {
20242
20242
  class: we(["spacing-edit padding-right", { "is-setting": t.styleJson["padding-right"] }]),
20243
- onClick: m[13] || (m[13] = (b) => f("padding-right"))
20243
+ onClick: g[13] || (g[13] = (b) => f("padding-right"))
20244
20244
  }, ae(t.styleJson["padding-right"] || "-"), 3),
20245
20245
  I("div", {
20246
20246
  class: we(["spacing-edit padding-bottom", { "is-setting": t.styleJson["padding-bottom"] }]),
20247
- onClick: m[14] || (m[14] = (b) => f("padding-bottom"))
20247
+ onClick: g[14] || (g[14] = (b) => f("padding-bottom"))
20248
20248
  }, ae(t.styleJson["padding-bottom"] || "-"), 3),
20249
20249
  I("div", {
20250
20250
  class: we(["spacing-edit padding-left", { "is-setting": t.styleJson["padding-left"] }]),
20251
- onClick: m[15] || (m[15] = (b) => f("padding-left"))
20251
+ onClick: g[15] || (g[15] = (b) => f("padding-left"))
20252
20252
  }, ae(t.styleJson["padding-left"] || "-"), 3)
20253
20253
  ], 512),
20254
- (h(), M("svg", sS, [...m[17] || (m[17] = [
20254
+ (h(), M("svg", sS, [...g[17] || (g[17] = [
20255
20255
  I("text", {
20256
20256
  x: "6",
20257
20257
  y: "4",
@@ -20262,7 +20262,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20262
20262
  "dominant-baseline": "hanging"
20263
20263
  }, " padding ", -1)
20264
20264
  ])])),
20265
- (h(), M("svg", aS, [...m[18] || (m[18] = [
20265
+ (h(), M("svg", aS, [...g[18] || (g[18] = [
20266
20266
  I("text", {
20267
20267
  x: "6",
20268
20268
  y: "4",
@@ -20278,7 +20278,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20278
20278
  key: 0,
20279
20279
  name: d.value,
20280
20280
  modelValue: p.value,
20281
- "onUpdate:modelValue": m[16] || (m[16] = (b) => p.value = b),
20281
+ "onUpdate:modelValue": g[16] || (g[16] = (b) => p.value = b),
20282
20282
  onClose: u,
20283
20283
  onSubmit: t.setStyle
20284
20284
  }, null, 8, ["name", "modelValue", "onSubmit"])) : L("", !0)
@@ -20403,12 +20403,12 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20403
20403
  { label: "上", svg: yg, value: "auto 0% 0% 0%" },
20404
20404
  { label: "下", svg: _g, value: "0% 0% auto 0%" },
20405
20405
  { label: "填充", svg: wg, value: "0% 0% 0% 0%" }
20406
- ], p = D(() => (t.styleJson.inset || "").split(" ")), u = (g) => {
20407
- a.value = g, l.value = t.styleJson[g], r.value = !0;
20406
+ ], p = D(() => (t.styleJson.inset || "").split(" ")), u = (m) => {
20407
+ a.value = m, l.value = t.styleJson[m], r.value = !0;
20408
20408
  }, f = () => {
20409
20409
  r.value = !1, a.value = void 0, l.value = void 0;
20410
20410
  };
20411
- return (g, m) => (h(), T(i(xe), {
20411
+ return (m, g) => (h(), T(i(xe), {
20412
20412
  title: "定位",
20413
20413
  class: "v-sub-panel",
20414
20414
  size: "small",
@@ -20469,7 +20469,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20469
20469
  "data-automation-id": "padding-top-button",
20470
20470
  "aria-label": "Padding top button",
20471
20471
  class: "tb-path-color",
20472
- onClick: m[0] || (m[0] = (b) => u("top"))
20472
+ onClick: g[0] || (g[0] = (b) => u("top"))
20473
20473
  }, null, 8, fS)
20474
20474
  ])
20475
20475
  ]),
@@ -20487,7 +20487,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20487
20487
  "data-automation-id": "padding-right-button",
20488
20488
  "aria-label": "Padding right button",
20489
20489
  class: "lr-path-color",
20490
- onClick: m[1] || (m[1] = (b) => u("right"))
20490
+ onClick: g[1] || (g[1] = (b) => u("right"))
20491
20491
  }, null, 8, pS)
20492
20492
  ])
20493
20493
  ]),
@@ -20505,7 +20505,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20505
20505
  "data-automation-id": "padding-bottom-button",
20506
20506
  "aria-label": "Padding bottom button",
20507
20507
  class: "tb-path-color",
20508
- onClick: m[2] || (m[2] = (b) => u("bottom"))
20508
+ onClick: g[2] || (g[2] = (b) => u("bottom"))
20509
20509
  }, null, 8, gS)
20510
20510
  ])
20511
20511
  ]),
@@ -20523,7 +20523,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20523
20523
  "data-automation-id": "padding-left-button",
20524
20524
  "aria-label": "Padding left button",
20525
20525
  class: "lr-path-color",
20526
- onClick: m[3] || (m[3] = (b) => u("left"))
20526
+ onClick: g[3] || (g[3] = (b) => u("left"))
20527
20527
  }, null, 8, mS)
20528
20528
  ])
20529
20529
  ]),
@@ -20578,19 +20578,19 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20578
20578
  ], 8, dS)) : L("", !0),
20579
20579
  I("div", {
20580
20580
  class: we(["spacing-edit padding-top", { "is-setting": t.styleJson.top }]),
20581
- onClick: m[4] || (m[4] = (b) => u("top"))
20581
+ onClick: g[4] || (g[4] = (b) => u("top"))
20582
20582
  }, ae(t.styleJson.top || p.value[0] || "-"), 3),
20583
20583
  I("div", {
20584
20584
  class: we(["spacing-edit padding-right", { "is-setting": t.styleJson.right }]),
20585
- onClick: m[5] || (m[5] = (b) => u("right"))
20585
+ onClick: g[5] || (g[5] = (b) => u("right"))
20586
20586
  }, ae(t.styleJson.right || p.value[1] || "-"), 3),
20587
20587
  I("div", {
20588
20588
  class: we(["spacing-edit padding-bottom", { "is-setting": t.styleJson.bottom }]),
20589
- onClick: m[6] || (m[6] = (b) => u("bottom"))
20589
+ onClick: g[6] || (g[6] = (b) => u("bottom"))
20590
20590
  }, ae(t.styleJson.bottom || p.value[2] || "-"), 3),
20591
20591
  I("div", {
20592
20592
  class: we(["spacing-edit padding-left", { "is-setting": t.styleJson.left }]),
20593
- onClick: m[7] || (m[7] = (b) => u("left"))
20593
+ onClick: g[7] || (g[7] = (b) => u("left"))
20594
20594
  }, ae(t.styleJson.left || p.value[3] || "-"), 3)
20595
20595
  ], 512),
20596
20596
  r.value ? (h(), T(Sd, {
@@ -20598,7 +20598,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
20598
20598
  auto: "",
20599
20599
  name: a.value,
20600
20600
  modelValue: l.value,
20601
- "onUpdate:modelValue": m[8] || (m[8] = (b) => l.value = b),
20601
+ "onUpdate:modelValue": g[8] || (g[8] = (b) => l.value = b),
20602
20602
  onClose: f,
20603
20603
  onSubmit: t.setStyle
20604
20604
  }, null, 8, ["name", "modelValue", "onSubmit"])) : L("", !0)
@@ -21173,7 +21173,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21173
21173
  refresh: () => {
21174
21174
  s.value = Symbol();
21175
21175
  }
21176
- }), (g, m) => (h(), M("div", {
21176
+ }), (m, g) => (h(), M("div", {
21177
21177
  ref_key: "container",
21178
21178
  ref: o,
21179
21179
  class: "v-previewer",
@@ -21285,12 +21285,12 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21285
21285
  "手动修改源码有风险,可能导致页面无法加载,请确认您的操作无误。"
21286
21286
  ), u = n.project.value?.toDsl();
21287
21287
  if (p && t.value && u) {
21288
- const { id: f, name: g } = t.value, m = await n.service.parseVue(u, {
21288
+ const { id: f, name: m } = t.value, g = await n.service.parseVue(u, {
21289
21289
  id: f,
21290
- name: g,
21290
+ name: m,
21291
21291
  source: d
21292
21292
  }).catch((b) => (Ue(b?.message), null));
21293
- m && (Array.isArray(m) ? Ue(m.join(","), "提示") : (t.value?.update(m), We("保存成功")));
21293
+ g && (Array.isArray(g) ? Ue(g.join(","), "提示") : (t.value?.update(g), We("保存成功")));
21294
21294
  }
21295
21295
  }
21296
21296
  };
@@ -21399,14 +21399,14 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21399
21399
  },
21400
21400
  setup(e) {
21401
21401
  const t = e, n = t.engine, { access: o } = n || {}, { latest: s } = $c(), r = D(() => {
21402
- const f = o?.getData()?.avatar || "", g = n.remote || "";
21403
- return f ? f.startsWith("https:") ? f : `${g}/api/oss/file/${f}` : null;
21402
+ const f = o?.getData()?.avatar || "", m = n.remote || "";
21403
+ return f ? f.startsWith("https:") ? f : `${m}/api/oss/file/${f}` : null;
21404
21404
  }), a = D(() => !!n.remote && !n.options.auth), l = D(() => o?.getData()?.name || "未登录"), c = D(() => o?.getData()?.id || "-"), d = D(() => o?.isLogined()), p = () => {
21405
21405
  o?.clear(), location.reload();
21406
21406
  }, u = () => {
21407
21407
  n.state.reset();
21408
21408
  };
21409
- return (f, g) => (h(), M("div", MS, [
21409
+ return (f, m) => (h(), M("div", MS, [
21410
21410
  I("div", jS, [
21411
21411
  I("div", LS, [
21412
21412
  v(i(hf), {
@@ -21420,9 +21420,9 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21420
21420
  _: 1
21421
21421
  }, 8, ["value", "hidden"])
21422
21422
  ]),
21423
- g[2] || (g[2] = I("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1)),
21423
+ m[2] || (m[2] = I("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1)),
21424
21424
  I("div", US, [
21425
- g[0] || (g[0] = te(" 版本: ", -1)),
21425
+ m[0] || (m[0] = te(" 版本: ", -1)),
21426
21426
  I("span", null, ae(i(ir)), 1)
21427
21427
  ]),
21428
21428
  I("div", zS, [
@@ -21430,7 +21430,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21430
21430
  size: "small",
21431
21431
  onClick: u
21432
21432
  }, {
21433
- default: w(() => [...g[1] || (g[1] = [
21433
+ default: w(() => [...m[1] || (m[1] = [
21434
21434
  te(" 重置状态 ", -1)
21435
21435
  ])]),
21436
21436
  _: 1
@@ -21458,7 +21458,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21458
21458
  size: "small",
21459
21459
  onClick: p
21460
21460
  }, {
21461
- default: w(() => [...g[3] || (g[3] = [
21461
+ default: w(() => [...m[3] || (m[3] = [
21462
21462
  te(" 退出登录 ", -1)
21463
21463
  ])]),
21464
21464
  _: 1
@@ -21467,7 +21467,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21467
21467
  size: "small",
21468
21468
  onClick: t.toRemoteAuth
21469
21469
  }, {
21470
- default: w(() => [...g[4] || (g[4] = [
21470
+ default: w(() => [...m[4] || (m[4] = [
21471
21471
  te(" 登录 ", -1)
21472
21472
  ])]),
21473
21473
  _: 1
@@ -21534,34 +21534,34 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21534
21534
  const n = e, o = R(), s = R(
21535
21535
  typeof n.modelValue == "object" ? JSON.stringify(n.modelValue, null, 2) : void 0
21536
21536
  ), r = D(() => !!s.value), a = R(!1), l = t, c = (f) => {
21537
- let g = !0;
21537
+ let m = !0;
21538
21538
  try {
21539
- const m = JSON.parse(f);
21540
- if (n.type === "Array" && !Array.isArray(m))
21539
+ const g = JSON.parse(f);
21540
+ if (n.type === "Array" && !Array.isArray(g))
21541
21541
  throw new Error(`"${f}" is not a Array`);
21542
- if (n.type === "Object" && !pp(m))
21542
+ if (n.type === "Object" && !pp(g))
21543
21543
  throw new Error(`"${f}" is not a PlainObject`);
21544
- if (typeof m != "object")
21544
+ if (typeof g != "object")
21545
21545
  throw new Error(`"${f}" is not a ${n.type}`);
21546
- } catch (m) {
21547
- g = !1, xa.error({
21546
+ } catch (g) {
21547
+ m = !1, xa.error({
21548
21548
  title: "代码错误",
21549
- message: m?.message || m
21549
+ message: g?.message || g
21550
21550
  });
21551
21551
  }
21552
- return g;
21552
+ return m;
21553
21553
  }, d = () => {
21554
21554
  const f = o.value?.getEditor();
21555
21555
  if (f) {
21556
- const g = f.getValue();
21557
- c(g) && (s.value = g, l("change", JSON.parse(g)), a.value = !1);
21556
+ const m = f.getValue();
21557
+ c(m) && (s.value = m, l("change", JSON.parse(m)), a.value = !1);
21558
21558
  }
21559
21559
  }, p = () => {
21560
21560
  s.value = "", l("change", void 0), a.value = !1;
21561
21561
  }, u = () => {
21562
21562
  a.value = !0;
21563
21563
  };
21564
- return (f, g) => (h(), M("div", {
21564
+ return (f, m) => (h(), M("div", {
21565
21565
  class: we(["v-json-setter", { "is-active": r.value }])
21566
21566
  }, [
21567
21567
  v(i(Ze), at({
@@ -21573,7 +21573,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21573
21573
  a.value ? (h(), T(i(Zt), {
21574
21574
  key: 0,
21575
21575
  modelValue: a.value,
21576
- "onUpdate:modelValue": g[0] || (g[0] = (m) => a.value = m),
21576
+ "onUpdate:modelValue": m[0] || (m[0] = (g) => a.value = g),
21577
21577
  title: n.type,
21578
21578
  width: "1000px",
21579
21579
  height: "600px",
@@ -21589,7 +21589,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21589
21589
  onClick: p,
21590
21590
  size: "default"
21591
21591
  }, {
21592
- default: w(() => [...g[1] || (g[1] = [
21592
+ default: w(() => [...m[1] || (m[1] = [
21593
21593
  te(" 清除 ", -1)
21594
21594
  ])]),
21595
21595
  _: 1
@@ -21626,11 +21626,11 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21626
21626
  const n = e, o = R(), s = R(n.modelValue.value), r = R(!1), a = D(() => !!s.value), l = t, c = () => {
21627
21627
  const u = o.value?.getEditor();
21628
21628
  if (u) {
21629
- const f = u.getValue(), g = {
21629
+ const f = u.getValue(), m = {
21630
21630
  type: "JSFunction",
21631
21631
  value: f
21632
21632
  };
21633
- Vt(g, {}) && (s.value = f, l("change", g), r.value = !1);
21633
+ Vt(m, {}) && (s.value = f, l("change", m), r.value = !1);
21634
21634
  }
21635
21635
  }, d = () => {
21636
21636
  s.value = "", l("change", void 0), r.value = !1;
@@ -21649,7 +21649,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21649
21649
  r.value ? (h(), T(i(Zt), {
21650
21650
  key: 0,
21651
21651
  modelValue: r.value,
21652
- "onUpdate:modelValue": f[0] || (f[0] = (g) => r.value = g),
21652
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m),
21653
21653
  title: e.title,
21654
21654
  subtitle: e.subtitle,
21655
21655
  width: "1000px",
@@ -21718,7 +21718,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21718
21718
  a.value ? (h(), T(i(Zt), {
21719
21719
  key: 0,
21720
21720
  modelValue: a.value,
21721
- "onUpdate:modelValue": f[0] || (f[0] = (g) => a.value = g),
21721
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => a.value = m),
21722
21722
  title: n.type,
21723
21723
  width: "1000px",
21724
21724
  height: "600px",
@@ -21900,8 +21900,8 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21900
21900
  refreshTemplates: c,
21901
21901
  loading: d,
21902
21902
  removeTemplate: p
21903
- } = rv(), u = R(""), f = R("0"), g = D(() => u.value ? o.value.filter((x) => x.name.includes(u.value) || x.label?.includes(u.value)) : o.value), m = D(() => {
21904
- const x = l?.getData()?.id, O = lr(g.value, (V) => V.userId === x ? "我的" : "共享"), C = [
21903
+ } = rv(), u = R(""), f = R("0"), m = D(() => u.value ? o.value.filter((x) => x.name.includes(u.value) || x.label?.includes(u.value)) : o.value), g = D(() => {
21904
+ const x = l?.getData()?.id, O = lr(m.value, (V) => V.userId === x ? "我的" : "共享"), C = [
21905
21905
  { label: "我的", model: {} },
21906
21906
  { label: "共享", model: {} }
21907
21907
  ];
@@ -21913,14 +21913,14 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21913
21913
  }), C;
21914
21914
  }), b = R([]), y = D(() => {
21915
21915
  const x = Number(f.value);
21916
- return Object.keys(m.value[x].model) || [];
21916
+ return Object.keys(g.value[x].model) || [];
21917
21917
  });
21918
21918
  le(y, (x) => {
21919
21919
  b.value = x;
21920
21920
  });
21921
21921
  const E = D(() => {
21922
21922
  const x = Number(f.value);
21923
- return m.value[x].model;
21923
+ return g.value[x].model;
21924
21924
  }), k = D(() => `(共 ${o.value.length} 个)`), S = async (x) => {
21925
21925
  await r() ? await a(x.id) : await vn.confirm(
21926
21926
  "使用模版需登录,您还没登录或已过期,请重新登录!",
@@ -21957,7 +21957,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
21957
21957
  }, null, 8, ["modelValue", "prefix-icon"])
21958
21958
  ]),
21959
21959
  v(i(ms), {
21960
- items: m.value,
21960
+ items: g.value,
21961
21961
  modelValue: f.value,
21962
21962
  "onUpdate:modelValue": O[2] || (O[2] = (C) => f.value = C),
21963
21963
  class: "v-templates-widgets__tab"
@@ -22247,9 +22247,9 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
22247
22247
  }), a.value = "";
22248
22248
  }, f = () => {
22249
22249
  s("cancel");
22250
- }, g = () => {
22250
+ }, m = () => {
22251
22251
  c.value = null, d.value = !0;
22252
- }, m = (E) => {
22252
+ }, g = (E) => {
22253
22253
  c.value = E, d.value = !0;
22254
22254
  }, b = async (E) => {
22255
22255
  await In("确定删除?").catch(() => !1) && r.state.removeLLM(E);
@@ -22280,7 +22280,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
22280
22280
  v(i(be), {
22281
22281
  size: "small",
22282
22282
  icon: i(cc),
22283
- onClick: $e(g, ["stop"])
22283
+ onClick: $e(m, ["stop"])
22284
22284
  }, {
22285
22285
  default: w(() => [...k[4] || (k[4] = [
22286
22286
  te(" 新增模型 ", -1)
@@ -22311,7 +22311,7 @@ const ki = /* @__PURE__ */ kd(E1, [["render", C1]]), A1 = ["theme"], T1 = {
22311
22311
  v(i(Lt), {
22312
22312
  size: "small",
22313
22313
  icon: i(ec),
22314
- onClick: $e((_) => m(S), ["stop"])
22314
+ onClick: $e((_) => g(S), ["stop"])
22315
22315
  }, null, 8, ["icon", "onClick"]),
22316
22316
  v(i(Lt), {
22317
22317
  size: "small",
@@ -22590,10 +22590,10 @@ function wx() {
22590
22590
  function f(P) {
22591
22591
  return b("(?=", P, ")");
22592
22592
  }
22593
- function g(P) {
22593
+ function m(P) {
22594
22594
  return b("(?:", P, ")*");
22595
22595
  }
22596
- function m(P) {
22596
+ function g(P) {
22597
22597
  return b("(?:", P, ")?");
22598
22598
  }
22599
22599
  function b(...P) {
@@ -23443,8 +23443,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), kt = ee, Je = ve), Ve
23443
23443
  concat: b,
23444
23444
  lookahead: f,
23445
23445
  either: E,
23446
- optional: m,
23447
- anyNumberOfTimes: g
23446
+ optional: g,
23447
+ anyNumberOfTimes: m
23448
23448
  };
23449
23449
  for (const ee in $t)
23450
23450
  typeof $t[ee] == "object" && e($t[ee]);
@@ -23885,7 +23885,7 @@ function Tx(e) {
23885
23885
  keywords: l,
23886
23886
  contains: []
23887
23887
  // defined later
23888
- }, g = {
23888
+ }, m = {
23889
23889
  begin: ".?html`",
23890
23890
  end: "",
23891
23891
  starts: {
@@ -23897,7 +23897,7 @@ function Tx(e) {
23897
23897
  ],
23898
23898
  subLanguage: "xml"
23899
23899
  }
23900
- }, m = {
23900
+ }, g = {
23901
23901
  begin: ".?css`",
23902
23902
  end: "",
23903
23903
  starts: {
@@ -23977,8 +23977,8 @@ function Tx(e) {
23977
23977
  }, S = [
23978
23978
  e.APOS_STRING_MODE,
23979
23979
  e.QUOTE_STRING_MODE,
23980
- g,
23981
23980
  m,
23981
+ g,
23982
23982
  b,
23983
23983
  y,
23984
23984
  // Skip numbers when they are part of a variable name
@@ -24187,8 +24187,8 @@ function Tx(e) {
24187
24187
  V,
24188
24188
  e.APOS_STRING_MODE,
24189
24189
  e.QUOTE_STRING_MODE,
24190
- g,
24191
24190
  m,
24191
+ g,
24192
24192
  b,
24193
24193
  y,
24194
24194
  k,
@@ -25379,10 +25379,10 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25379
25379
  icon: qr,
25380
25380
  disabled: !a.value
25381
25381
  }
25382
- ]), g = D(() => ({
25382
+ ]), m = D(() => ({
25383
25383
  "is-user": n.type === "user",
25384
25384
  "is-ai": n.type === "ai"
25385
- })), m = D(() => n.data.reasoning ? `已经深度思考 (用时 ${Math.ceil(n.data.thinking / 1e3)} 秒)` : d.value ? "展开" : "收起"), b = (O) => O.type === "json" && O.json ? O.dataType ? s[O.dataType] || s.other : O.json.includes("/sketch/") ? s.sketch : O.json.includes("/figma/") ? s.figma : O.json.includes("/group/") || O.json.includes("/frame/") || O.json.includes("/component/") || O.json.includes("/mastergo/") ? s.mastergo : s.other : O.image ? O.image : "", y = (O = "") => {
25385
+ })), g = D(() => n.data.reasoning ? `已经深度思考 (用时 ${Math.ceil(n.data.thinking / 1e3)} 秒)` : d.value ? "展开" : "收起"), b = (O) => O.type === "json" && O.json ? O.dataType ? s[O.dataType] || s.other : O.json.includes("/sketch/") ? s.sketch : O.json.includes("/figma/") ? s.figma : O.json.includes("/group/") || O.json.includes("/frame/") || O.json.includes("/component/") || O.json.includes("/mastergo/") ? s.mastergo : s.other : O.image ? O.image : "", y = (O = "") => {
25386
25386
  const C = O.split("/");
25387
25387
  return C.length > 6 ? C.slice(6).join("/") : O;
25388
25388
  }, E = (O) => {
@@ -25410,7 +25410,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25410
25410
  d.value = !1;
25411
25411
  }
25412
25412
  ), (O, C) => (h(), M("div", {
25413
- class: we(["v-ai-widget-bubble", g.value])
25413
+ class: we(["v-ai-widget-bubble", m.value])
25414
25414
  }, [
25415
25415
  r.value ? (h(), T(i(ps), {
25416
25416
  key: 0,
@@ -25432,7 +25432,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25432
25432
  onClick: S
25433
25433
  }, {
25434
25434
  default: w(() => [
25435
- te(ae(m.value) + " ", 1),
25435
+ te(ae(g.value) + " ", 1),
25436
25436
  v(i(Lt), { icon: p.value }, null, 8, ["icon"])
25437
25437
  ]),
25438
25438
  _: 1
@@ -25622,7 +25622,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25622
25622
  border: "",
25623
25623
  disabled: n.loading,
25624
25624
  modelValue: i(s).state.autoApply,
25625
- "onUpdate:modelValue": f[0] || (f[0] = (g) => i(s).state.autoApply = g)
25625
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => i(s).state.autoApply = m)
25626
25626
  }, null, 8, ["disabled", "modelValue"]),
25627
25627
  v(i(be), {
25628
25628
  icon: i(Yr),
@@ -25666,17 +25666,17 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25666
25666
  frame: Hr
25667
25667
  };
25668
25668
  return a.value && _[a.value.toLowerCase()] || or;
25669
- }), f = R(), g = mt(null), m = async (_) => {
25669
+ }), f = R(), m = mt(null), g = async (_) => {
25670
25670
  l.value = _, _ ? (await jt(), c.value?.focus()) : (d.value = "", p.value = null);
25671
25671
  }, b = async (_) => {
25672
25672
  if (_.status === "ready" && _.raw) {
25673
25673
  const A = await Xh(_.raw);
25674
- A && A.type ? (a.value = A.type, r.value = _.raw.name, g.value = A) : (await Jt(
25674
+ A && A.type ? (a.value = A.type, r.value = _.raw.name, m.value = A) : (await Jt(
25675
25675
  "无法识别文件, 只支持Sketch/Figma/MasterGo插件导出数据文件",
25676
25676
  {
25677
25677
  type: "warning"
25678
25678
  }
25679
- ), a.value = null, r.value = null, g.value = null, f.value.clearFiles());
25679
+ ), a.value = null, r.value = null, m.value = null, f.value.clearFiles());
25680
25680
  }
25681
25681
  }, y = () => {
25682
25682
  r.value = null, f.value.clearFiles();
@@ -25690,7 +25690,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25690
25690
  }
25691
25691
  );
25692
25692
  const E = async (_) => {
25693
- _.file && o("send", _.file, s.state.autoApply, g.value);
25693
+ _.file && o("send", _.file, s.state.autoApply, m.value);
25694
25694
  }, k = async () => {
25695
25695
  const _ = d.value.trim();
25696
25696
  _ || (await Jt("请输入元数据", {
@@ -25701,14 +25701,14 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25701
25701
  type: "application/json",
25702
25702
  lastModified: (/* @__PURE__ */ new Date()).getTime()
25703
25703
  });
25704
- a.value = A.type || "mastergo", r.value = C.name, g.value = A, p.value = C;
25704
+ a.value = A.type || "mastergo", r.value = C.name, m.value = A, p.value = C;
25705
25705
  } catch {
25706
25706
  await Jt("数据格式错误", {
25707
25707
  type: "warning"
25708
25708
  });
25709
25709
  }
25710
25710
  }, S = () => {
25711
- p.value ? o("send", p.value, s.state.autoApply, g.value) : f.value.submit();
25711
+ p.value ? o("send", p.value, s.state.autoApply, m.value) : f.value.submit();
25712
25712
  };
25713
25713
  return (_, A) => (h(), M("div", oC, [
25714
25714
  l.value ? (h(), M("div", rC, [
@@ -25725,7 +25725,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25725
25725
  v(i(be), {
25726
25726
  type: "default",
25727
25727
  size: "small",
25728
- onClick: A[1] || (A[1] = () => m(!1))
25728
+ onClick: A[1] || (A[1] = () => g(!1))
25729
25729
  }, {
25730
25730
  default: w(() => [...A[5] || (A[5] = [
25731
25731
  te(" 文件上传 ", -1)
@@ -25773,7 +25773,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25773
25773
  }),
25774
25774
  v(i(be), {
25775
25775
  size: "default",
25776
- onClick: A[2] || (A[2] = $e(() => m(!0), ["stop"]))
25776
+ onClick: A[2] || (A[2] = $e(() => g(!0), ["stop"]))
25777
25777
  }, {
25778
25778
  default: w(() => [...A[8] || (A[8] = [
25779
25779
  te(" 粘贴数据 ", -1)
@@ -25862,22 +25862,22 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25862
25862
  label: "元数据",
25863
25863
  value: "json"
25864
25864
  }
25865
- ], c = R("text"), d = (g) => {
25866
- c.value = "text", n.fillPromptInput(g.prompt);
25867
- }, p = (g) => {
25868
- o("send", { ...g });
25869
- }, u = (g, m) => {
25865
+ ], c = R("text"), d = (m) => {
25866
+ c.value = "text", n.fillPromptInput(m.prompt);
25867
+ }, p = (m) => {
25868
+ o("send", { ...m });
25869
+ }, u = (m, g) => {
25870
25870
  const b = r.state.llm || n.models[0].value, y = r.state.getLLMById(b);
25871
- o("imageSend", { file: g, auto: m, model: b, llm: y });
25872
- }, f = async (g, m, b) => {
25871
+ o("imageSend", { file: m, auto: g, model: b, llm: y });
25872
+ }, f = async (m, g, b) => {
25873
25873
  const y = r.state.llm || n.models[0].value, E = r.state.getLLMById(y);
25874
- o("jsonSend", { file: g, auto: m, model: y, content: b, llm: E });
25874
+ o("jsonSend", { file: m, auto: g, model: y, content: b, llm: E });
25875
25875
  };
25876
25876
  return wo(async () => {
25877
- const g = await s();
25878
- g?.success && (a.value = g.data);
25879
- }), (g, m) => (h(), M("div", uC, [
25880
- m[2] || (m[2] = I("div", { class: "v-ai-widget-new-chat__welcome" }, [
25877
+ const m = await s();
25878
+ m?.success && (a.value = m.data);
25879
+ }), (m, g) => (h(), M("div", uC, [
25880
+ g[2] || (g[2] = I("div", { class: "v-ai-widget-new-chat__welcome" }, [
25881
25881
  I("h3", null, "嗨!我是您的智能助手"),
25882
25882
  I("div", null, "我可以帮你开发低代码页面,请把你的任务交给我吧~")
25883
25883
  ], -1)),
@@ -25886,7 +25886,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25886
25886
  options: l,
25887
25887
  disabled: n.loading,
25888
25888
  modelValue: c.value,
25889
- "onUpdate:modelValue": m[0] || (m[0] = (b) => c.value = b),
25889
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => c.value = b),
25890
25890
  size: "small"
25891
25891
  }, null, 8, ["disabled", "modelValue"])
25892
25892
  ]),
@@ -25911,7 +25911,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25911
25911
  }, null, 8, ["loading"])) : L("", !0),
25912
25912
  a.value.length ? (h(), M(ne, { key: 3 }, [
25913
25913
  v(i(rt), { "content-position": "left" }, {
25914
- default: w(() => [...m[1] || (m[1] = [
25914
+ default: w(() => [...g[1] || (g[1] = [
25915
25915
  te("热门需求", -1)
25916
25916
  ])]),
25917
25917
  _: 1
@@ -25962,8 +25962,8 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
25962
25962
  self.MonacoEnvironment = {
25963
25963
  createTrustedTypesPolicy: void 0,
25964
25964
  async getWorker(u, f) {
25965
- let g;
25966
- return f === "json" && (g = await import("./json.worker-D1UBs5tZ.js")), ["css", "scss", "less"].includes(f) && (g = await import("./css.worker-DdCwg2F4.js")), ["html", "handlebars", "razor", "vue"].includes(f) && (g = await import("./html.worker-Bgmn5TLa.js")), ["typescript", "javascript"].includes(f) && (g = await import("./ts.worker-CtXbW5f6.js")), g = g || await import("./editor.worker-CEZ99gS2.js"), new g.default();
25965
+ let m;
25966
+ return f === "json" && (m = await import("./json.worker-D1UBs5tZ.js")), ["css", "scss", "less"].includes(f) && (m = await import("./css.worker-DdCwg2F4.js")), ["html", "handlebars", "razor", "vue"].includes(f) && (m = await import("./html.worker-Bgmn5TLa.js")), ["typescript", "javascript"].includes(f) && (m = await import("./ts.worker-CtXbW5f6.js")), m = m || await import("./editor.worker-CEZ99gS2.js"), new m.default();
25967
25967
  }
25968
25968
  };
25969
25969
  const s = n, r = R();
@@ -26123,8 +26123,8 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26123
26123
  const t = e, n = R(!1), o = R(!1), s = R(null), r = D(() => t.settings?.orderLink ? `${t.settings?.orderLink}?id=${s.value?.id}` : `${t.remote || Gi}/page/a3wwnb20?id=${s.value?.id}`), a = D(() => t.settings?.tokenLink || Km);
26124
26124
  le(
26125
26125
  () => t.settings,
26126
- (g) => {
26127
- g?.mode === 3 && (n.value = g.paid ? !1 : !g.free);
26126
+ (m) => {
26127
+ m?.mode === 3 && (n.value = m.paid ? !1 : !m.free);
26128
26128
  },
26129
26129
  {
26130
26130
  immediate: !0
@@ -26137,8 +26137,8 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26137
26137
  }, d = () => {
26138
26138
  n.value = !1;
26139
26139
  }, p = async () => {
26140
- const g = await t.createOrder();
26141
- g?.success && (o.value = !0, s.value = g.data);
26140
+ const m = await t.createOrder();
26141
+ m?.success && (o.value = !0, s.value = m.data);
26142
26142
  }, u = async () => {
26143
26143
  ((await t.getOrder(s.value?.id))?.data).status === "Completed" ? (await Jt("订单已经支付成功,你权限已经开通!", {
26144
26144
  type: "success"
@@ -26152,7 +26152,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26152
26152
  cancelButtonText: "再想想"
26153
26153
  }).catch(() => !1) && await t.cancelOrder(s.value?.id) && (o.value = !1);
26154
26154
  };
26155
- return (g, m) => (h(), M(ne, null, [
26155
+ return (m, g) => (h(), M(ne, null, [
26156
26156
  n.value ? (h(), M("div", SC)) : L("", !0),
26157
26157
  n.value ? (h(), M("div", xC, [
26158
26158
  v(i(jn), {
@@ -26160,7 +26160,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26160
26160
  type: "warning",
26161
26161
  closable: !1
26162
26162
  }, {
26163
- default: w(() => [...m[1] || (m[1] = [
26163
+ default: w(() => [...g[1] || (g[1] = [
26164
26164
  I("div", null, "如需要继续使用AI助手,请订阅开通使用资格。", -1)
26165
26165
  ])]),
26166
26166
  _: 1
@@ -26173,7 +26173,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26173
26173
  onClick: p
26174
26174
  }, {
26175
26175
  default: w(() => [
26176
- m[2] || (m[2] = te(" 立即开通 ", -1)),
26176
+ g[2] || (g[2] = te(" 立即开通 ", -1)),
26177
26177
  I("span", AC, ae(Number.parseInt(t.settings?.price)) + "元/月 ", 1)
26178
26178
  ]),
26179
26179
  _: 1
@@ -26186,7 +26186,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26186
26186
  bg: "",
26187
26187
  onClick: d
26188
26188
  }, {
26189
- default: w(() => [...m[3] || (m[3] = [
26189
+ default: w(() => [...g[3] || (g[3] = [
26190
26190
  te(" 取消 ", -1)
26191
26191
  ])]),
26192
26192
  _: 1
@@ -26194,7 +26194,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26194
26194
  v(i(rt), null, {
26195
26195
  default: w(() => [
26196
26196
  v(i(bf), { type: "info" }, {
26197
- default: w(() => [...m[4] || (m[4] = [
26197
+ default: w(() => [...g[4] || (g[4] = [
26198
26198
  te("或", -1)
26199
26199
  ])]),
26200
26200
  _: 1
@@ -26208,7 +26208,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26208
26208
  target: "_blank",
26209
26209
  href: a.value
26210
26210
  }, {
26211
- default: w(() => [...m[5] || (m[5] = [
26211
+ default: w(() => [...g[5] || (g[5] = [
26212
26212
  te(" 免费获取额度 ", -1)
26213
26213
  ])]),
26214
26214
  _: 1
@@ -26224,7 +26224,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26224
26224
  width: "1000px",
26225
26225
  title: "订单已创建",
26226
26226
  modelValue: o.value,
26227
- "onUpdate:modelValue": m[0] || (m[0] = (b) => o.value = b)
26227
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b)
26228
26228
  }, {
26229
26229
  footer: w(() => [
26230
26230
  v(i(be), {
@@ -26233,7 +26233,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26233
26233
  icon: i(tm),
26234
26234
  onClick: u
26235
26235
  }, {
26236
- default: w(() => [...m[12] || (m[12] = [
26236
+ default: w(() => [...g[12] || (g[12] = [
26237
26237
  te(" 已完成 ", -1)
26238
26238
  ])]),
26239
26239
  _: 1
@@ -26243,7 +26243,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26243
26243
  type: "info",
26244
26244
  onClick: f
26245
26245
  }, {
26246
- default: w(() => [...m[13] || (m[13] = [
26246
+ default: w(() => [...g[13] || (g[13] = [
26247
26247
  te("取消", -1)
26248
26248
  ])]),
26249
26249
  _: 1
@@ -26254,7 +26254,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26254
26254
  type: "success",
26255
26255
  closable: !1
26256
26256
  }, {
26257
- default: w(() => [...m[6] || (m[6] = [
26257
+ default: w(() => [...g[6] || (g[6] = [
26258
26258
  te(" 您的订单已经成功创建,请按以下步骤完成开通订阅。 ", -1)
26259
26259
  ])]),
26260
26260
  _: 1
@@ -26269,7 +26269,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26269
26269
  status: "wait"
26270
26270
  }, {
26271
26271
  description: w(() => [
26272
- m[7] || (m[7] = I("div", null, "微信扫码完成支付", -1)),
26272
+ g[7] || (g[7] = I("div", null, "微信扫码完成支付", -1)),
26273
26273
  I("div", TC, [
26274
26274
  I("img", {
26275
26275
  width: "200",
@@ -26285,7 +26285,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26285
26285
  status: "wait"
26286
26286
  }, {
26287
26287
  description: w(() => [
26288
- m[8] || (m[8] = I("div", null, "微信扫码添加客服好友", -1)),
26288
+ g[8] || (g[8] = I("div", null, "微信扫码添加客服好友", -1)),
26289
26289
  I("div", IC, [
26290
26290
  I("img", {
26291
26291
  width: "200",
@@ -26302,7 +26302,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26302
26302
  description: "复制以下订单信息发送给客服"
26303
26303
  }, {
26304
26304
  description: w(() => [
26305
- m[10] || (m[10] = I("div", null, "复制以下订单信息发送给客服", -1)),
26305
+ g[10] || (g[10] = I("div", null, "复制以下订单信息发送给客服", -1)),
26306
26306
  I("div", NC, [
26307
26307
  I("div", DC, ae(r.value), 1),
26308
26308
  v(i(be), {
@@ -26310,7 +26310,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26310
26310
  icon: i(Xi),
26311
26311
  onClick: c
26312
26312
  }, {
26313
- default: w(() => [...m[9] || (m[9] = [
26313
+ default: w(() => [...g[9] || (g[9] = [
26314
26314
  te("复制", -1)
26315
26315
  ])]),
26316
26316
  _: 1
@@ -26323,7 +26323,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26323
26323
  _: 1
26324
26324
  }),
26325
26325
  I("div", VC, [
26326
- m[11] || (m[11] = I("strong", null, "提示:", -1)),
26326
+ g[11] || (g[11] = I("strong", null, "提示:", -1)),
26327
26327
  te(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方" + ae(parseInt(String(t.settings?.max || 0), 10)) + "百万tokens使用量。 ", 1)
26328
26328
  ])
26329
26329
  ]),
@@ -26348,8 +26348,8 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26348
26348
  topics: p,
26349
26349
  loadChats: u,
26350
26350
  onRemoveTopic: f,
26351
- onView: g,
26352
- onRefresh: m,
26351
+ onView: m,
26352
+ onRefresh: g,
26353
26353
  onApply: b,
26354
26354
  listRef: y,
26355
26355
  panelRef: E,
@@ -26517,8 +26517,8 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26517
26517
  type: "ai",
26518
26518
  data: wt,
26519
26519
  code: !i(U),
26520
- onView: (Et) => i(g)(wt),
26521
- onRefresh: (Et) => i(m)(wt),
26520
+ onView: (Et) => i(m)(wt),
26521
+ onRefresh: (Et) => i(g)(wt),
26522
26522
  onApply: (Et) => i(b)(wt, !0),
26523
26523
  onFix: (Et) => i(H)(wt),
26524
26524
  onCancel: (Et) => i(He)(wt)
@@ -26941,12 +26941,12 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26941
26941
  if (!t.value) return;
26942
26942
  const y = t.value.i18n;
26943
26943
  y && (await a.value.validate() || (y.messages = b, t.value.setI18n(y)));
26944
- }, g = async () => {
26944
+ }, m = async () => {
26945
26945
  if (a.value) {
26946
26946
  const b = a.value.getSelected();
26947
26947
  a.value.remove(b);
26948
26948
  }
26949
- }, m = () => {
26949
+ }, g = () => {
26950
26950
  o.value = !0;
26951
26951
  };
26952
26952
  return le(l, () => {
@@ -26957,7 +26957,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26957
26957
  plus: "",
26958
26958
  remove: "",
26959
26959
  onPlus: u,
26960
- onRemove: g
26960
+ onRemove: m
26961
26961
  }, {
26962
26962
  actions: w(() => [
26963
26963
  v(i(Re), {
@@ -26966,7 +26966,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
26966
26966
  title: "设置",
26967
26967
  size: "default",
26968
26968
  icon: i(lm),
26969
- onClick: m
26969
+ onClick: g
26970
26970
  }, null, 8, ["icon"])
26971
26971
  ]),
26972
26972
  default: w(() => [
@@ -27097,7 +27097,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
27097
27097
  resizable: !l.value,
27098
27098
  "z-index": 3e3,
27099
27099
  modelValue: i(r),
27100
- "onUpdate:modelValue": f[3] || (f[3] = (g) => no(r) ? r.value = g : null),
27100
+ "onUpdate:modelValue": f[3] || (f[3] = (m) => no(r) ? r.value = m : null),
27101
27101
  modal: !1,
27102
27102
  onOpen: i(o),
27103
27103
  onClose: i(s)
@@ -27109,7 +27109,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
27109
27109
  type: "primary",
27110
27110
  title: "靠左",
27111
27111
  background: l.value === "left" ? "always" : "hover",
27112
- onClick: f[0] || (f[0] = (g) => d("left"))
27112
+ onClick: f[0] || (f[0] = (m) => d("left"))
27113
27113
  }, null, 8, ["icon", "background"]),
27114
27114
  v(i(Re), {
27115
27115
  icon: i(um),
@@ -27117,7 +27117,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
27117
27117
  type: "primary",
27118
27118
  title: "靠底",
27119
27119
  background: l.value === "bottom" ? "always" : "hover",
27120
- onClick: f[1] || (f[1] = (g) => d("bottom"))
27120
+ onClick: f[1] || (f[1] = (m) => d("bottom"))
27121
27121
  }, null, 8, ["icon", "background"]),
27122
27122
  v(i(Re), {
27123
27123
  icon: i(dm),
@@ -27125,7 +27125,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
27125
27125
  type: "primary",
27126
27126
  title: "靠右",
27127
27127
  background: l.value === "right" ? "always" : "hover",
27128
- onClick: f[2] || (f[2] = (g) => d("right"))
27128
+ onClick: f[2] || (f[2] = (m) => d("right"))
27129
27129
  }, null, 8, ["icon", "background"]),
27130
27130
  v(i(rt), { direction: "vertical" })
27131
27131
  ]),
@@ -27204,10 +27204,10 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
27204
27204
  }, c = async (p) => {
27205
27205
  if (!t.value) return;
27206
27206
  if (!await n.value.validate()) {
27207
- const f = (p || []).map((g) => {
27208
- const { name: m, development: b, production: y } = g;
27207
+ const f = (p || []).map((m) => {
27208
+ const { name: g, development: b, production: y } = m;
27209
27209
  return {
27210
- name: m,
27210
+ name: g,
27211
27211
  development: b,
27212
27212
  production: y
27213
27213
  };
@@ -28541,12 +28541,12 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
28541
28541
  e.classList.contains("el-input") ? l = e.querySelector(".el-input__inner") : (e.tagName === "INPUT" || e.tagName === "TEXTAREA") && (l = e);
28542
28542
  const c = l || e;
28543
28543
  let d = null, p = 0, u = !1;
28544
- const f = (g) => {
28545
- if (g.target.classList.contains(a))
28544
+ const f = (m) => {
28545
+ if (m.target.classList.contains(a))
28546
28546
  return;
28547
- g.preventDefault();
28548
- const m = Date.now(), b = m - p;
28549
- p = m, u = b > 0 && b < 100;
28547
+ m.preventDefault();
28548
+ const g = Date.now(), b = g - p;
28549
+ p = g, u = b > 0 && b < 100;
28550
28550
  let y;
28551
28551
  l ? y = parseFloat(l.value) : y = parseFloat(e.textContent || "0"), isNaN(y) && (y = 0);
28552
28552
  let E = o;
@@ -28554,7 +28554,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
28554
28554
  const S = Math.min(1, 100 / b);
28555
28555
  E += Math.floor(S * (o * 5));
28556
28556
  }
28557
- let k = y + (g.deltaY < 0 ? E : -E);
28557
+ let k = y + (m.deltaY < 0 ? E : -E);
28558
28558
  k < s && (k = s), k > r && (k = r), k = parseFloat(k.toFixed(10)), l ? (l.value = k.toString(), d && clearTimeout(d), d = setTimeout(() => {
28559
28559
  l.dispatchEvent(new Event("input")), l.dispatchEvent(new Event("change"));
28560
28560
  }, 500)) : e.textContent = k.toString(), c.classList.add("wheel-number-active"), setTimeout(() => {
@@ -28984,10 +28984,10 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
28984
28984
  const n = t, o = e, s = R(!1), r = R(o.modelValue), a = R(""), l = D(
28985
28985
  () => Ti[o.modelValue] || o.modelValue
28986
28986
  ), c = D(() => {
28987
- const g = Ti;
28988
- return a.value ? g.filter((m) => m.toLowerCase().includes(a.value)) : g;
28989
- }), d = (g) => {
28990
- r.value = g;
28987
+ const m = Ti;
28988
+ return a.value ? m.filter((g) => g.toLowerCase().includes(a.value)) : m;
28989
+ }), d = (m) => {
28990
+ r.value = m;
28991
28991
  }, p = () => {
28992
28992
  n("change", r.value), n("update:modelValue", r.value), s.value = !1;
28993
28993
  }, u = () => {
@@ -28995,7 +28995,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
28995
28995
  }, f = () => {
28996
28996
  s.value = !0;
28997
28997
  };
28998
- return (g, m) => (h(), M("div", xA, [
28998
+ return (m, g) => (h(), M("div", xA, [
28999
28999
  v(i(Ze), {
29000
29000
  size: o.size,
29001
29001
  readonly: "",
@@ -29020,7 +29020,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
29020
29020
  submit: "",
29021
29021
  clear: "",
29022
29022
  modelValue: s.value,
29023
- "onUpdate:modelValue": m[1] || (m[1] = (b) => s.value = b),
29023
+ "onUpdate:modelValue": g[1] || (g[1] = (b) => s.value = b),
29024
29024
  onSubmit: p,
29025
29025
  class: "van-icon-setter__dialog"
29026
29026
  }, {
@@ -29030,7 +29030,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
29030
29030
  type: "warning",
29031
29031
  onClick: u
29032
29032
  }, {
29033
- default: w(() => [...m[2] || (m[2] = [
29033
+ default: w(() => [...g[2] || (g[2] = [
29034
29034
  te(" 清除绑定 ", -1)
29035
29035
  ])]),
29036
29036
  _: 1
@@ -29043,7 +29043,7 @@ const Bx = ["innerHTML"], Ux = /* @__PURE__ */ W({
29043
29043
  "prefix-icon": i(pn),
29044
29044
  clearable: "",
29045
29045
  modelValue: a.value,
29046
- "onUpdate:modelValue": m[0] || (m[0] = (b) => a.value = b),
29046
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => a.value = b),
29047
29047
  placeholder: "请输入查询关键字",
29048
29048
  class: "van-icon-setter__input"
29049
29049
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
@@ -29639,7 +29639,7 @@ const Zo = new MA(), Jn = W({
29639
29639
  defaultSetter: p,
29640
29640
  removable: u,
29641
29641
  onRemove: f,
29642
- disabled: g
29642
+ disabled: m
29643
29643
  } = this;
29644
29644
  return to(tT, {
29645
29645
  context: e,
@@ -29655,7 +29655,7 @@ const Zo = new MA(), Jn = W({
29655
29655
  options: l,
29656
29656
  onChange: d,
29657
29657
  onRemove: f,
29658
- disabled: g
29658
+ disabled: m
29659
29659
  });
29660
29660
  },
29661
29661
  emits: ["change", "remove"],
@@ -29780,8 +29780,8 @@ class BA {
29780
29780
  if (p.length === 0)
29781
29781
  return;
29782
29782
  if (p.length === 1) {
29783
- const { name: f, params: g = [] } = p[0];
29784
- return f === "default" && !g.length ? void 0 : p[0];
29783
+ const { name: f, params: m = [] } = p[0];
29784
+ return f === "default" && !m.length ? void 0 : p[0];
29785
29785
  }
29786
29786
  const u = await LA(t.name, p).catch(() => null);
29787
29787
  if (!(u && u.name === "default" && (!u.params || u.params?.length === 0)))
@@ -30002,8 +30002,8 @@ class BA {
30002
30002
  return !0;
30003
30003
  const l = s.assets.componentMap, c = n !== "inner" && t.parent || t, d = await s.assets.getBlockMaterial(c.from) || l.get(c.name);
30004
30004
  if (!d) return !1;
30005
- const { parentIncludes: p = !0, name: u } = o, { childIncludes: f = !0 } = d, g = p === !0 || Array.isArray(p) && p.includes(c.name), m = f === !0 || Array.isArray(f) && f.includes(u);
30006
- return g && m;
30005
+ const { parentIncludes: p = !0, name: u } = o, { childIncludes: f = !0 } = d, m = p === !0 || Array.isArray(p) && p.includes(c.name), g = f === !0 || Array.isArray(f) && f.includes(u);
30006
+ return m && g;
30007
30007
  }
30008
30008
  dispose() {
30009
30009
  const { contentWindow: t, document: n } = this;
@@ -30155,8 +30155,8 @@ class FA {
30155
30155
  }
30156
30156
  if (!(typeof u == "function" && u.prototype && Object.getOwnPropertyNames(u.prototype).length > 0) && (typeof u == "function" || typeof u.install == "function")) {
30157
30157
  let f = {};
30158
- const g = a[p];
30159
- g && (f.locale = g);
30158
+ const m = a[p];
30159
+ m && (f.locale = m);
30160
30160
  try {
30161
30161
  t?.use(u, f);
30162
30162
  } catch {
@@ -30173,8 +30173,8 @@ class FA {
30173
30173
  createUniApp(t, n, o) {
30174
30174
  const { window: s, Vue: r } = this.env, { uniConfig: a = {}, homepage: l } = this.project || {}, { manifestJson: c, pagesJson: d, css: p } = a, u = Vm(
30175
30175
  a,
30176
- (m) => Da(m, s, !1, !0)
30177
- ), f = n.type === "block" ? "custom" : void 0, g = Pm({
30176
+ (g) => Da(g, s, !1, !0)
30177
+ ), f = n.type === "block" ? "custom" : void 0, m = Pm({
30178
30178
  Vue: r,
30179
30179
  UniH5: s.UniH5,
30180
30180
  window: s,
@@ -30197,7 +30197,7 @@ class FA {
30197
30197
  }
30198
30198
  ]
30199
30199
  });
30200
- return this.install(g, t), g.mount(s.document.body), g;
30200
+ return this.install(m, t), m.mount(s.document.body), m;
30201
30201
  }
30202
30202
  createApp(t, n, o) {
30203
30203
  const { window: s, container: r, Vue: a } = this.env, l = s.document.createElement("div");
@@ -30307,7 +30307,29 @@ class HA extends Ji {
30307
30307
  );
30308
30308
  }
30309
30309
  createGlobalCss(n = "web") {
30310
- return n === "uniapp" ? "" : `
30310
+ return n === "uniapp" ? `
30311
+ <style>
30312
+ body::-webkit-scrollbar {
30313
+ width: 3px;
30314
+ height: 3px;
30315
+ }
30316
+
30317
+ body::-webkit-scrollbar-track {
30318
+ background: transparent;
30319
+ border-radius: 3px;
30320
+ }
30321
+
30322
+ body::-webkit-scrollbar-thumb {
30323
+ background: rgba(0, 0, 0, 0.2);
30324
+ border-radius: 3px;
30325
+ transition: all 0.3s ease;
30326
+ }
30327
+
30328
+ body::-webkit-scrollbar-thumb:hover {
30329
+ background: rgba(0, 0, 0, 0.3);
30330
+ }
30331
+ </style>
30332
+ ` : `
30311
30333
  <style>
30312
30334
  html,
30313
30335
  body,
@@ -30364,7 +30386,7 @@ class HA extends Ji {
30364
30386
  materialExports: p,
30365
30387
  materialMapLibrary: u,
30366
30388
  libraryLocaleMap: f
30367
- } = Zf([Gm, ...o], this.materialPath, !0), { js: g, css: m } = ep(
30389
+ } = Zf([Gm, ...o], this.materialPath, !0), { js: m, css: g } = ep(
30368
30390
  this.enhance?.urls || []
30369
30391
  ), { platform: b = "web" } = this.engine.project.value || {};
30370
30392
  r.open(), r.write(`
@@ -30375,12 +30397,12 @@ class HA extends Ji {
30375
30397
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover"/>
30376
30398
  ${this.initFeatures()}
30377
30399
  ${this.createGlobalCss(b)}
30378
- ${tp([...l, ...m])}
30400
+ ${tp([...l, ...g])}
30379
30401
  </head>
30380
30402
  <body>
30381
30403
  </body>
30382
30404
  ${Tl(c)}
30383
- ${Tl([...a, ...g])}
30405
+ ${Tl([...a, ...m])}
30384
30406
  <script>
30385
30407
  __simulator__.emitReady(${JSON.stringify(d)},
30386
30408
  ${JSON.stringify(p)},
@@ -30393,19 +30415,19 @@ class HA extends Ji {
30393
30415
  }
30394
30416
  async emitReady(n = [], o = [], s = {}, r = {}) {
30395
30417
  this.renderer?.dispose(), this.renderer = null;
30396
- const a = this.contentWindow, { assets: l, service: c, current: d, provider: p, project: u, report: f } = this.engine, g = p.materials || {}, m = [];
30418
+ const a = this.contentWindow, { assets: l, service: c, current: d, provider: p, project: u, report: f } = this.engine, m = p.materials || {}, g = [];
30397
30419
  for (const y of o)
30398
30420
  try {
30399
- const E = g[y] ? (await g[y]()).default : a[y]?.default || a[y];
30400
- m.push(E);
30421
+ const E = m[y] ? (await m[y]()).default : a[y]?.default || a[y];
30422
+ g.push(E);
30401
30423
  } catch (E) {
30402
30424
  console.warn(E);
30403
30425
  }
30404
- l.clearCaches(), l.load(m);
30426
+ l.clearCaches(), l.load(g);
30405
30427
  const b = this.createEnv(
30406
30428
  n,
30407
30429
  s,
30408
- m,
30430
+ g,
30409
30431
  r
30410
30432
  );
30411
30433
  this.renderer = new FA(
@@ -30418,23 +30440,23 @@ class HA extends Ji {
30418
30440
  ), d.value && (this.renderer.render(d.value, u.value?.currentFile), this.rendered.value = Symbol()), this.triggerReady();
30419
30441
  }
30420
30442
  createEnv(n = [], o = {}, s = [], r = {}) {
30421
- const a = this.contentWindow, { engine: l } = this, { project: c, assets: d, provider: p } = l, u = this.enhance ? a[this.enhance.name] : void 0, f = n.reduce((_, A) => (_[A] = a[A], _), {}), g = {};
30443
+ const a = this.contentWindow, { engine: l } = this, { project: c, assets: d, provider: p } = l, u = this.enhance ? a[this.enhance.name] : void 0, f = n.reduce((_, A) => (_[A] = a[A], _), {}), m = {};
30422
30444
  Object.entries(r).forEach(([_, A]) => {
30423
- g[_] = a[A];
30445
+ m[_] = a[A];
30424
30446
  });
30425
- const m = {}, { groups: b, componentMap: y } = d;
30447
+ const g = {}, { groups: b, componentMap: y } = d;
30426
30448
  for (const _ of b.value) {
30427
30449
  const A = _.names || [];
30428
30450
  if (_.name === Gr)
30429
30451
  A.forEach((x) => {
30430
30452
  const O = y.get(x), C = O?.package || "", V = Pf[C], U = f[V];
30431
- U && O && (m[x] = Ol(O, U));
30453
+ U && O && (g[x] = Ol(O, U));
30432
30454
  });
30433
30455
  else {
30434
30456
  const x = f[o[_.library || ""]];
30435
30457
  x && A.forEach((O) => {
30436
30458
  const C = y.get(O);
30437
- C ? m[O] = Ol(C, x) : m[O] = x[O];
30459
+ C ? g[O] = Ol(C, x) : g[O] = x[O];
30438
30460
  });
30439
30461
  }
30440
30462
  }
@@ -30451,12 +30473,12 @@ class HA extends Ji {
30451
30473
  VueRouter: a.VueRouter,
30452
30474
  library: f,
30453
30475
  materials: s,
30454
- components: m,
30476
+ components: g,
30455
30477
  container: a.document.body,
30456
30478
  apis: S,
30457
30479
  globals: k,
30458
30480
  libraryLocaleMap: r,
30459
- locales: g,
30481
+ locales: m,
30460
30482
  enhance: u
30461
30483
  };
30462
30484
  }
@@ -30509,9 +30531,9 @@ class $A {
30509
30531
  const { categories: s, components: r, label: a, name: l, library: c, hidden: d } = o;
30510
30532
  if (!s || !r || d)
30511
30533
  continue;
30512
- const p = r.filter((m) => !!m.package).map((m) => m.name), u = s.map(
30513
- (m) => this.getCateoryComponents(m, r)
30514
- ), f = u.reduce((m, b) => b.count + m, 0), g = {
30534
+ const p = r.filter((g) => !!g.package).map((g) => g.name), u = s.map(
30535
+ (g) => this.getCateoryComponents(g, r)
30536
+ ), f = u.reduce((g, b) => b.count + g, 0), m = {
30515
30537
  name: o.name,
30516
30538
  label: a || l,
30517
30539
  count: f,
@@ -30520,7 +30542,7 @@ class $A {
30520
30542
  children: u,
30521
30543
  hidden: d
30522
30544
  };
30523
- n.push(g);
30545
+ n.push(m);
30524
30546
  }
30525
30547
  return n;
30526
30548
  }
@@ -30545,12 +30567,12 @@ class $A {
30545
30567
  o.name = n || o.name;
30546
30568
  const { id: s, name: r, slots: a, props: l, emits: c } = o, d = (u) => {
30547
30569
  const f = Array.isArray(u) ? u : [u];
30548
- let g = [];
30549
- for (const m of f)
30550
- g = g.concat(
30551
- Zo.getByType(m)
30570
+ let m = [];
30571
+ for (const g of f)
30572
+ m = m.concat(
30573
+ Zo.getByType(g)
30552
30574
  );
30553
- return g;
30575
+ return m;
30554
30576
  }, p = {
30555
30577
  id: s,
30556
30578
  name: r,
@@ -30727,8 +30749,8 @@ class HT extends Ji {
30727
30749
  pageRouteName: p,
30728
30750
  adapter: u,
30729
30751
  install: f,
30730
- access: g,
30731
- remote: m = Gi,
30752
+ access: m,
30753
+ remote: g = Gi,
30732
30754
  checkVersion: b = !0,
30733
30755
  openApi: y,
30734
30756
  enhance: E = !1
@@ -30748,7 +30770,7 @@ class HT extends Ji {
30748
30770
  engine: this,
30749
30771
  materialPath: d,
30750
30772
  enhance: this.getEnhanceConfig(E)
30751
- }), this.access = g || new lp({ alert: Jt, ...ip }), this.remote = m, this.report = new zA(this.remote, this.access, this.service), this.checkVersion = b, this.bindEvents(), this.init(r).then(this.render.bind(this)), us(this.dispose.bind(this));
30773
+ }), this.access = m || new lp({ alert: Jt, ...ip }), this.remote = g, this.report = new zA(this.remote, this.access, this.service), this.checkVersion = b, this.bindEvents(), this.init(r).then(this.render.bind(this)), us(this.dispose.bind(this));
30752
30774
  }
30753
30775
  /**
30754
30776
  * 初始化引擎
@@ -31141,13 +31163,13 @@ const KA = /* @__PURE__ */ W({
31141
31163
  onEnd(O, C) {
31142
31164
  c.value = C.elementWidth.value;
31143
31165
  }
31144
- }, f = R(), g = R(), m = R(), b = R(), y = R(), E = R(), k = R(), S = R(), _ = R(!1), A = R(!1);
31166
+ }, f = R(), m = R(), g = R(), b = R(), y = R(), E = R(), k = R(), S = R(), _ = R(!1), A = R(!1);
31145
31167
  return wo(async () => {
31146
31168
  o.remote && (await r() || await s()), d();
31147
31169
  }), t({
31148
31170
  brand: f,
31149
- toolbar: g,
31150
- actions: m,
31171
+ toolbar: m,
31172
+ actions: g,
31151
31173
  apps: b,
31152
31174
  workspace: y,
31153
31175
  settings: E,
@@ -31174,13 +31196,13 @@ const KA = /* @__PURE__ */ W({
31174
31196
  }, null, 512),
31175
31197
  v(i(Jn), {
31176
31198
  ref_key: "toolbar",
31177
- ref: g,
31199
+ ref: m,
31178
31200
  region: "Toolbar",
31179
31201
  preview: a.value
31180
31202
  }, null, 8, ["preview"]),
31181
31203
  v(i(Jn), {
31182
31204
  ref_key: "actions",
31183
- ref: m,
31205
+ ref: g,
31184
31206
  region: "Actions"
31185
31207
  }, null, 512)
31186
31208
  ]),
@@ -31313,12 +31335,12 @@ const KA = /* @__PURE__ */ W({
31313
31335
  o("change", E);
31314
31336
  }, f = () => {
31315
31337
  o("remove", n.name);
31316
- }, g = () => {
31317
- s.value = !0, r.value = yo(l.value) ? l.value.value : "";
31318
31338
  }, m = () => {
31339
+ s.value = !0, r.value = yo(l.value) ? l.value.value : "";
31340
+ }, g = () => {
31319
31341
  s.value = !1, r.value = "";
31320
31342
  }, b = async (E) => Vt(E, n.context, !0) ? (d[a.value.name] = l.value, l.value = E, o("change", E), !0) : !1, y = async () => {
31321
- await In("确定要解除绑定吗?") && (m(), l.value = void 0, o("change", void 0));
31343
+ await In("确定要解除绑定吗?") && (g(), l.value = void 0, o("change", void 0));
31322
31344
  };
31323
31345
  return (E, k) => (h(), T(i(zt), {
31324
31346
  class: "v-setter",
@@ -31372,7 +31394,7 @@ const KA = /* @__PURE__ */ W({
31372
31394
  I("div", XA, [
31373
31395
  n.variable ? (h(), T(i(Am), {
31374
31396
  key: 0,
31375
- onClick: g,
31397
+ onClick: m,
31376
31398
  class: we(["v-icon-vars", { "is-active": c.value }]),
31377
31399
  title: "绑定变量"
31378
31400
  }, null, 8, ["class"])) : L("", !0),
@@ -31516,9 +31538,9 @@ const KA = /* @__PURE__ */ W({
31516
31538
  index: { default: 0 }
31517
31539
  },
31518
31540
  setup(e, { expose: t }) {
31519
- const n = e, o = Le(), { isLogined: s, toRemoteAuth: r } = lo(), { widgets: a, widgetsRef: l } = ao(n.region), c = D(() => a.value.filter((y) => y.openType === "panel")), d = D(() => a.value.filter((y) => y.openType !== "panel")), p = c.value[n.index], u = R(p), f = R(p), g = (y) => {
31541
+ const n = e, o = Le(), { isLogined: s, toRemoteAuth: r } = lo(), { widgets: a, widgetsRef: l } = ao(n.region), c = D(() => a.value.filter((y) => y.openType === "panel")), d = D(() => a.value.filter((y) => y.openType !== "panel")), p = c.value[n.index], u = R(p), f = R(p), m = (y) => {
31520
31542
  u.value = y, f.value = f.value?.name === y.name ? null : y;
31521
- }, m = (y) => {
31543
+ }, g = (y) => {
31522
31544
  y.openType === "link" && y.url && window.open(y.url), y.openType === "dialog" && Fi({
31523
31545
  title: y.label,
31524
31546
  // icon: item.icon,
@@ -31546,7 +31568,7 @@ const KA = /* @__PURE__ */ W({
31546
31568
  label: k.label,
31547
31569
  active: u.value?.name === k.name,
31548
31570
  open: f.value?.name === k.name,
31549
- onClick: (S) => g(k)
31571
+ onClick: (S) => m(k)
31550
31572
  }, null, 8, ["class", "icon", "label", "active", "open", "onClick"]))), 128))
31551
31573
  ]),
31552
31574
  I("div", pT, [
@@ -31554,7 +31576,7 @@ const KA = /* @__PURE__ */ W({
31554
31576
  key: `icon-${k.name}`,
31555
31577
  icon: k.icon,
31556
31578
  label: k.label,
31557
- onClick: (S) => m(k)
31579
+ onClick: (S) => g(k)
31558
31580
  }, null, 8, ["icon", "label", "onClick"]))), 128))
31559
31581
  ])
31560
31582
  ]),
@@ -31590,7 +31612,7 @@ const KA = /* @__PURE__ */ W({
31590
31612
  onMenuChecked: p,
31591
31613
  closeAllTabs: u,
31592
31614
  closeOtherTabs: f
31593
- } = vv(o), g = R(!0), m = (_, A = {}) => {
31615
+ } = vv(o), m = R(!0), g = (_, A = {}) => {
31594
31616
  const x = A.url;
31595
31617
  x && window.open(x);
31596
31618
  }, b = (_) => {
@@ -31604,7 +31626,7 @@ const KA = /* @__PURE__ */ W({
31604
31626
  }
31605
31627
  }
31606
31628
  }, y = async () => {
31607
- g.value = !1, await jt(), g.value = !0;
31629
+ m.value = !1, await jt(), m.value = !0;
31608
31630
  }, E = () => c.value === "Designer", k = [
31609
31631
  {
31610
31632
  label: "关闭其他",
@@ -31623,7 +31645,7 @@ const KA = /* @__PURE__ */ W({
31623
31645
  currentTab: l,
31624
31646
  widgets: o,
31625
31647
  widgetsRef: s,
31626
- openTab: m,
31648
+ openTab: g,
31627
31649
  reload: y,
31628
31650
  isDesignerActive: E
31629
31651
  }), (_, A) => (h(), T(i(ks), {
@@ -31654,7 +31676,7 @@ const KA = /* @__PURE__ */ W({
31654
31676
  (h(!0), M(ne, null, de(i(o), (x) => (h(), M(ne, {
31655
31677
  key: x.name
31656
31678
  }, [
31657
- g.value && i(c) === x.name ? (h(), T(i(Bn), {
31679
+ m.value && i(c) === x.name ? (h(), T(i(Bn), {
31658
31680
  ref_for: !0,
31659
31681
  ref_key: "widgetsRef",
31660
31682
  ref: s,
@@ -31686,7 +31708,7 @@ const KA = /* @__PURE__ */ W({
31686
31708
  background: "hover"
31687
31709
  }
31688
31710
  ] : void 0
31689
- }))), g = D(() => {
31711
+ }))), m = D(() => {
31690
31712
  const y = r.value?.model;
31691
31713
  return y ? o.assets.componentMap.get(y.name)?.doc : null;
31692
31714
  });
@@ -31701,11 +31723,11 @@ const KA = /* @__PURE__ */ W({
31701
31723
  ), le(p, () => {
31702
31724
  u.value = !1;
31703
31725
  });
31704
- const m = () => {
31705
- if (g.value) {
31726
+ const g = () => {
31727
+ if (m.value) {
31706
31728
  const y = o.skeleton?.getRegion("Workspace");
31707
31729
  y && y.regionRef.openTab("Docs", {
31708
- url: g.value
31730
+ url: m.value
31709
31731
  });
31710
31732
  }
31711
31733
  }, b = (y) => {
@@ -31739,10 +31761,10 @@ const KA = /* @__PURE__ */ W({
31739
31761
  ]),
31740
31762
  _: 1
31741
31763
  }),
31742
- g.value ? (h(), T(i(Te), { key: 0 }, {
31764
+ m.value ? (h(), T(i(Te), { key: 0 }, {
31743
31765
  default: w(() => [
31744
31766
  v(i(Re), {
31745
- onClick: m,
31767
+ onClick: g,
31746
31768
  icon: i(sc),
31747
31769
  mode: "text",
31748
31770
  label: "帮助"