@vtj/designer 0.13.0 → 0.13.2

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 Du } 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.0
22
+ * @version 0.13.2
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const Dn = "0.13.0", Ou = {
25
+ const Dn = "0.13.2", Ou = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, Mu = {
@@ -623,10 +623,10 @@ function cc(r) {
623
623
  }
624
624
  function dc(r) {
625
625
  const t = Pe(), e = I(() => {
626
- const A = r.value?.model || null;
627
- return ze(A) ? null : A;
626
+ const C = r.value?.model || null;
627
+ return ze(C) ? null : C;
628
628
  }), s = I(() => {
629
- const A = e.value?.parent || t.current.value, T = A.nodes || A?.children || [];
629
+ const C = e.value?.parent || t.current.value, T = C.nodes || C?.children || [];
630
630
  if (T.length) {
631
631
  const U = T.findIndex((H) => H.id === e.value?.id), se = T[U - 1];
632
632
  return se ? se.directives.some(
@@ -634,14 +634,14 @@ function dc(r) {
634
634
  ) : !1;
635
635
  }
636
636
  return !1;
637
- }), a = (A) => I(() => e.value && (e.value.directives || []).find((T) => T.name === A) || Ds(A)), o = () => I(() => {
637
+ }), a = (C) => I(() => e.value && (e.value.directives || []).find((T) => T.name === C) || Ds(C)), o = () => I(() => {
638
638
  if (!e.value) return [];
639
- const A = t.assets.componentMap.get(e.value.name || "");
640
- return (A ? cc(A) : []).map((U) => (e.value?.directives || []).find(
639
+ const C = t.assets.componentMap.get(e.value.name || "");
640
+ return (C ? cc(C) : []).map((U) => (e.value?.directives || []).find(
641
641
  (se) => se.name === "vModel" && se.arg == U.name
642
642
  ) || uc(U.name));
643
643
  }), l = () => I(() => e.value ? (e.value.directives || []).filter(
644
- (A) => !hi.includes(A.name)
644
+ (C) => !hi.includes(C.name)
645
645
  ) : []), i = a("vIf"), u = a("vElseIf"), p = a("vElse"), f = a("vShow"), v = a("vBind"), m = a("vFor"), h = a("vHtml"), g = o(), _ = l(), w = {
646
646
  vIf: i,
647
647
  vElseIf: u,
@@ -663,36 +663,36 @@ function dc(r) {
663
663
  vHtml: h,
664
664
  vModels: g,
665
665
  customDirectives: _,
666
- onValueChange: (A, T) => {
667
- const U = w[A];
666
+ onValueChange: (C, T) => {
667
+ const U = w[C];
668
668
  e.value && (T ? (U.value.value = T, e.value.setDirective(U.value)) : (U.value.value = void 0, e.value.removeDirective(U.value)));
669
669
  },
670
- onForChange: (A, T) => {
670
+ onForChange: (C, T) => {
671
671
  if (e.value) {
672
- if (A === "value") {
672
+ if (C === "value") {
673
673
  T ? (m.value.value = T, e.value.setDirective(m.value)) : e.value.removeDirective(m.value);
674
674
  return;
675
675
  }
676
- (A === "item" || A === "index") && (m.value.iterator = {
676
+ (C === "item" || C === "index") && (m.value.iterator = {
677
677
  ...m.value.iterator,
678
- [A]: T || void 0
678
+ [C]: T || void 0
679
679
  }, e.value.setDirective(m.value));
680
680
  }
681
681
  },
682
- onModelChange: (A, T) => {
682
+ onModelChange: (C, T) => {
683
683
  if (!e.value) return;
684
- const U = parseInt(A), se = g.value[U];
684
+ const U = parseInt(C), se = g.value[U];
685
685
  se && (T ? (se.value = T, e.value.setDirective(se)) : (se.value = void 0, e.value.removeDirective(se)));
686
686
  },
687
687
  onAddCustom: () => {
688
- const A = Ds("");
689
- e.value?.setDirective(A);
688
+ const C = Ds("");
689
+ e.value?.setDirective(C);
690
690
  },
691
- onRemoveCustom: async (A) => {
692
- await Ht("确定删除指令?") && e.value?.removeDirective(A);
691
+ onRemoveCustom: async (C) => {
692
+ await Ht("确定删除指令?") && e.value?.removeDirective(C);
693
693
  },
694
- onCustomChange: (A) => (T, U) => {
695
- A.update({ [T]: U }), e.value?.setDirective(A);
694
+ onCustomChange: (C) => (T, U) => {
695
+ C.update({ [T]: U }), e.value?.setDirective(C);
696
696
  },
697
697
  branchVisiable: s
698
698
  };
@@ -1470,7 +1470,7 @@ function Tc() {
1470
1470
  postImageTopic: S,
1471
1471
  postJsonTopic: k,
1472
1472
  cancelChat: j
1473
- } = un(), V = "CHAT_HIDE_CODE", O = t.skeleton?.getRegion("Apps").regionRef, x = E(!1), A = E(!1), T = E(!0), U = E(!1), se = Vc("LLM", e), H = E([]), te = E([]), z = E(null), ce = E(null), N = E(), F = E(), K = E(!!yn.get(V, { type: "local" })), q = E(""), ke = E(), _e = I(() => te.value.some((L) => L.status === "Pending")), Le = I(() => ke.value ? ke.value.mode === 2 && !ke.value.invited : !0), { height: It } = kn(N), Ct = async (L) => {
1473
+ } = un(), V = "CHAT_HIDE_CODE", O = t.skeleton?.getRegion("Apps").regionRef, x = E(!1), C = E(!1), T = E(!0), U = E(!1), se = Vc("LLM", e), H = E([]), te = E([]), z = E(null), ce = E(null), N = E(), F = E(), K = E(!!yn.get(V, { type: "local" })), q = E(""), ke = E(), _e = I(() => te.value.some((L) => L.status === "Pending")), Le = I(() => ke.value ? ke.value.mode === 2 && !ke.value.invited : !0), { height: It } = kn(N), Ct = async (L) => {
1474
1474
  const ie = await o(L);
1475
1475
  if (ie && ie.success) {
1476
1476
  const we = ie.data || [];
@@ -1482,9 +1482,9 @@ function Tc() {
1482
1482
  const ie = await a(L.id).catch(() => null);
1483
1483
  ie && ie.success && (H.value = ie.data), H.value.length && (T.value = !1, z.value = H.value[0], await Ct(z.value.id)), x.value = !0;
1484
1484
  }, ot = async (L) => {
1485
- A.value = !0;
1485
+ C.value = !0;
1486
1486
  const ie = await Rc(L, t), we = await s(ie).catch(() => null);
1487
- if (A.value = !1, we && we.success) {
1487
+ if (C.value = !1, we && we.success) {
1488
1488
  const { topic: Ae, chat: he } = we.data;
1489
1489
  he.type = Ae.type, te.value = [], H.value.unshift(Ae), T.value = !1, z.value = Ae;
1490
1490
  const Ye = Tt(he);
@@ -1495,9 +1495,9 @@ function Tc() {
1495
1495
  await tt(null);
1496
1496
  return we;
1497
1497
  }, Nt = async (L) => {
1498
- A.value = !0;
1498
+ C.value = !0;
1499
1499
  const ie = await Qa(L, t), we = await S(ie);
1500
- if (A.value = !1, we && we.success) {
1500
+ if (C.value = !1, we && we.success) {
1501
1501
  const { topic: Ae, chat: he } = we.data;
1502
1502
  te.value = [], H.value.unshift(Ae), T.value = !1, z.value = Ae, Ae.image && (he.image = _(Ae.image)), he.type = Ae.type;
1503
1503
  const Ye = Tt(he);
@@ -1514,9 +1514,9 @@ function Tc() {
1514
1514
  await tt(null);
1515
1515
  return we;
1516
1516
  }, lt = async (L) => {
1517
- A.value = !0;
1517
+ C.value = !0;
1518
1518
  const ie = await Qa(L, t), we = await k(ie);
1519
- if (A.value = !1, we && we.success) {
1519
+ if (C.value = !1, we && we.success) {
1520
1520
  const { topic: Ae, chat: he } = we.data;
1521
1521
  te.value = [], H.value.unshift(Ae), T.value = !1, z.value = Ae, Ae.image && (he.image = _(Ae.image)), Ae.json && (he.json = w(Ae.json)), he.type = Ae.type, he.dataType = Ae.dataType;
1522
1522
  const Ye = Tt(he);
@@ -1534,12 +1534,12 @@ function Tc() {
1534
1534
  return we;
1535
1535
  }, qe = async (L) => {
1536
1536
  if (!z.value) return;
1537
- A.value = !0;
1537
+ C.value = !0;
1538
1538
  const ie = {
1539
1539
  topicId: z.value.id,
1540
1540
  prompt: L.prompt
1541
1541
  }, we = await l(ie).catch(() => null);
1542
- if (A.value = !1, we && we.success) {
1542
+ if (C.value = !1, we && we.success) {
1543
1543
  const Ae = Tt(we.data);
1544
1544
  te.value.push(Ae), ft(Ae, (he) => {
1545
1545
  if (he.status === "Error" && he.message)
@@ -1675,7 +1675,7 @@ function Tc() {
1675
1675
  isLogined: r,
1676
1676
  isReady: x,
1677
1677
  init: tt,
1678
- loading: A,
1678
+ loading: C,
1679
1679
  isNewChat: T,
1680
1680
  models: se,
1681
1681
  onPostTopic: ot,
@@ -1741,7 +1741,7 @@ function jc(r) {
1741
1741
  p ? (e.value.includes(p.id) || e.value.unshift(p.id), s.value = p.id) : f && (e.value = e.value.filter((v) => v !== f.id), s.value = e.value[0] || "");
1742
1742
  }
1743
1743
  ), X(s, (p) => {
1744
- if (p && t.value) {
1744
+ if (p && t.value && t.value.currentFile?.id !== p) {
1745
1745
  const f = t.value.getFile(p);
1746
1746
  f && t.value.active(f);
1747
1747
  }
@@ -2168,13 +2168,13 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2168
2168
  if (j)
2169
2169
  if (j.currentFile)
2170
2170
  if (await a()) {
2171
- const V = await e.simulator.capture(), { name: O, title: x, market: A } = j.currentFile;
2171
+ const V = await e.simulator.capture(), { name: O, title: x, market: C } = j.currentFile;
2172
2172
  if (!V) {
2173
2173
  Oe("截图失败", "warning");
2174
2174
  return;
2175
2175
  }
2176
2176
  u.value = {
2177
- id: A?.id,
2177
+ id: C?.id,
2178
2178
  canvas: V,
2179
2179
  name: O,
2180
2180
  label: x,
@@ -2465,7 +2465,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2465
2465
  ]));
2466
2466
  }
2467
2467
  }), Me = El({
2468
- loader: () => import("./Editor-DHLvxB1R.js"),
2468
+ loader: () => import("./Editor-yvSc3Zup.js"),
2469
2469
  loadingComponent: M({
2470
2470
  render() {
2471
2471
  return ln("div", "正在拼命加载...");
@@ -2524,6 +2524,8 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2524
2524
  () => g.value.__type,
2525
2525
  (x) => {
2526
2526
  g.value.dir = x === "dir", g.value.layout = x === "layout";
2527
+ const { platform: C = "web" } = e.value || {};
2528
+ C !== "web" && (g.value.pure = !0);
2527
2529
  }
2528
2530
  );
2529
2531
  const _ = I({
@@ -2555,14 +2557,14 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2555
2557
  ], k = (x) => {
2556
2558
  g.value && (g.value.name = vo(x));
2557
2559
  }, j = async (x) => {
2558
- const A = { ...x };
2559
- return delete A.__type, A.layout && (A.pure = !0, A.mask = !1), e.value?.existPageName(A.name, [A.id]) ? (xe("页面名称已存在,请更换"), !1) : (t.item ? (e.value?.updatePage(A), a.value?.setSelected(null), s.simulator.refresh()) : e.value?.createPage(A, t.parentId), !0);
2560
+ const C = { ...x };
2561
+ return delete C.__type, C.layout && (C.pure = !0, C.mask = !1), e.value?.existPageName(C.name, [C.id]) ? (xe("页面名称已存在,请更换"), !1) : (t.item ? (e.value?.updatePage(C), a.value?.setSelected(null), s.simulator.refresh()) : e.value?.createPage(C, t.parentId), !0);
2560
2562
  }, { copy: V } = ba({}), O = (x) => {
2561
2563
  V(x), _t.success({
2562
2564
  message: "已经复制到粘贴板"
2563
2565
  });
2564
2566
  };
2565
- return (x, A) => (c(), y(n(Ot), {
2567
+ return (x, C) => (c(), y(n(Ot), {
2566
2568
  title: o.value,
2567
2569
  class: "v-pages-widget-form",
2568
2570
  width: "800px",
@@ -2595,7 +2597,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2595
2597
  Q(ne(`${n(s).options.pageBasePath || ""}/${u.value}/${g.value.id}`) + " ", 1),
2596
2598
  d(n(ct), {
2597
2599
  icon: n(ko),
2598
- onClick: A[0] || (A[0] = (T) => O(
2600
+ onClick: C[0] || (C[0] = (T) => O(
2599
2601
  `${n(s).options.pageBasePath || ""}/${u.value}/${g.value.id}`
2600
2602
  ))
2601
2603
  }, null, 8, ["icon"])
@@ -2629,7 +2631,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2629
2631
  editor: b(() => [
2630
2632
  d(Fo, {
2631
2633
  modelValue: g.value.icon,
2632
- "onUpdate:modelValue": A[1] || (A[1] = (T) => g.value.icon = T),
2634
+ "onUpdate:modelValue": C[1] || (C[1] = (T) => g.value.icon = T),
2633
2635
  size: "default"
2634
2636
  }, null, 8, ["modelValue"])
2635
2637
  ]),
@@ -2698,7 +2700,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2698
2700
  height: "100%",
2699
2701
  lang: "json",
2700
2702
  modelValue: _.value,
2701
- "onUpdate:modelValue": A[2] || (A[2] = (T) => _.value = T)
2703
+ "onUpdate:modelValue": C[2] || (C[2] = (T) => _.value = T)
2702
2704
  }, null, 8, ["modelValue"])
2703
2705
  ]),
2704
2706
  _: 1
@@ -2726,7 +2728,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2726
2728
  width: "100%",
2727
2729
  lang: "json",
2728
2730
  modelValue: w.value,
2729
- "onUpdate:modelValue": A[3] || (A[3] = (T) => w.value = T)
2731
+ "onUpdate:modelValue": C[3] || (C[3] = (T) => w.value = T)
2730
2732
  }, null, 8, ["modelValue"])
2731
2733
  ]),
2732
2734
  _: 1
@@ -2831,8 +2833,8 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2831
2833
  autoScrollToBottom: (V = 400) => {
2832
2834
  const O = l.value?.bodyRef?.$el;
2833
2835
  if (O) {
2834
- const { offsetHeight: x, scrollHeight: A, scrollTop: T } = O;
2835
- A - (x + T) < V && O.scrollTo(0, O.scrollHeight);
2836
+ const { offsetHeight: x, scrollHeight: C, scrollTop: T } = O;
2837
+ C - (x + T) < V && O.scrollTo(0, O.scrollHeight);
2836
2838
  }
2837
2839
  },
2838
2840
  scrollToTop: () => {
@@ -3500,7 +3502,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3500
3502
  message: "已经复制到粘贴板"
3501
3503
  });
3502
3504
  };
3503
- return (x, A) => (c(), y(n(Jt), {
3505
+ return (x, C) => (c(), y(n(Jt), {
3504
3506
  "model-value": e.modelValue,
3505
3507
  class: "v-binder",
3506
3508
  title: x.title,
@@ -3528,7 +3530,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3528
3530
  class: "v-binder__tabs",
3529
3531
  items: u,
3530
3532
  modelValue: p.value,
3531
- "onUpdate:modelValue": A[1] || (A[1] = (T) => p.value = T)
3533
+ "onUpdate:modelValue": C[1] || (C[1] = (T) => p.value = T)
3532
3534
  }, {
3533
3535
  default: b(() => [
3534
3536
  d(n(be), {
@@ -3541,7 +3543,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3541
3543
  kt(R("div", null, [
3542
3544
  d(n(We), {
3543
3545
  modelValue: n(o),
3544
- "onUpdate:modelValue": A[0] || (A[0] = (T) => Rn(o) ? o.value = T : null),
3546
+ "onUpdate:modelValue": C[0] || (C[0] = (T) => Rn(o) ? o.value = T : null),
3545
3547
  size: "small",
3546
3548
  clearable: "",
3547
3549
  "prefix-icon": n(gn),
@@ -3570,7 +3572,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3570
3572
  kt(R("div", null, [
3571
3573
  R("div", null, [
3572
3574
  d(n(et), { "border-style": "dotted" }, {
3573
- default: b(() => A[2] || (A[2] = [
3575
+ default: b(() => C[2] || (C[2] = [
3574
3576
  Q("页面路由", -1)
3575
3577
  ])),
3576
3578
  _: 1,
@@ -3622,7 +3624,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3622
3624
  size: "default",
3623
3625
  onClick: S
3624
3626
  }, {
3625
- default: b(() => A[3] || (A[3] = [
3627
+ default: b(() => C[3] || (C[3] = [
3626
3628
  Q(" 移除绑定 ", -1)
3627
3629
  ])),
3628
3630
  _: 1,
@@ -3638,7 +3640,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3638
3640
  size: "default",
3639
3641
  onClick: k
3640
3642
  }, {
3641
- default: b(() => A[4] || (A[4] = [
3643
+ default: b(() => C[4] || (C[4] = [
3642
3644
  Q(" 取消 ", -1)
3643
3645
  ])),
3644
3646
  _: 1,
@@ -3649,7 +3651,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3649
3651
  size: "default",
3650
3652
  onClick: j
3651
3653
  }, {
3652
- default: b(() => A[5] || (A[5] = [
3654
+ default: b(() => C[5] || (C[5] = [
3653
3655
  Q(" 确定 ", -1)
3654
3656
  ])),
3655
3657
  _: 1,
@@ -3956,8 +3958,8 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3956
3958
  return xe("请选择文件"), !1;
3957
3959
  const k = (e.attachment?.accept || "").toLowerCase().split(",");
3958
3960
  return k.length > 0 ? [].concat(v.value).every((O) => {
3959
- const x = O.name || O.url.split("?")[0], A = x.substring(x.lastIndexOf(".")).toLowerCase();
3960
- return k.includes(A);
3961
+ const x = O.name || O.url.split("?")[0], C = x.substring(x.lastIndexOf(".")).toLowerCase();
3962
+ return k.includes(C);
3961
3963
  }) ? !0 : (xe(`只支持 ${k.join(",")} 文件`), !1) : !0;
3962
3964
  }, g = () => {
3963
3965
  h() && (s("change", m.value), s("update:modelValue", m.value), i.value = !1);
@@ -4086,7 +4088,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4086
4088
  m.value = S(), g.value = !0;
4087
4089
  }, x = (z) => {
4088
4090
  m.value = Mn(z), g.value = !0;
4089
- }, A = (z) => {
4091
+ }, C = (z) => {
4090
4092
  s.project.value?.cloneBlock(z);
4091
4093
  }, T = (z) => {
4092
4094
  s.project.value?.removeBlock(z.id);
@@ -4151,7 +4153,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4151
4153
  tag: v[K.fromType || "Schema"]?.label,
4152
4154
  tagType: v[K.fromType || "Schema"]?.type,
4153
4155
  onEdit: (q) => x(K),
4154
- onCopy: (q) => A(K),
4156
+ onCopy: (q) => C(K),
4155
4157
  onRemove: (q) => T(K),
4156
4158
  onClick: (q) => se(K),
4157
4159
  draggable: n(h)?.id !== K.id,
@@ -4359,13 +4361,13 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4359
4361
  name: "OutlineWidget",
4360
4362
  __name: "index",
4361
4363
  setup(r) {
4362
- const { engine: t, designer: e, selected: s } = Mt(), { current: a } = at(), o = E([]), l = (x, A) => {
4363
- if (A === "slot") return [];
4364
+ const { engine: t, designer: e, selected: s } = Mt(), { current: a } = at(), o = E([]), l = (x, C) => {
4365
+ if (C === "slot") return [];
4364
4366
  if (ze(x))
4365
4367
  return x.locked ? ["unlock"] : ["lock"];
4366
4368
  const T = x.parent;
4367
4369
  return T && (T.locked || T.invisible) ? [] : a.value?.locked ? [] : x.locked ? ["unlock"] : x.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
4368
- }, i = (x, A) => {
4370
+ }, i = (x, C) => {
4369
4371
  const T = {};
4370
4372
  if (!x.some((H) => H.slot)) return u(x);
4371
4373
  for (const H of x) {
@@ -4375,16 +4377,16 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4375
4377
  const se = [];
4376
4378
  for (const [H, te] of Object.entries(T))
4377
4379
  se.push({
4378
- id: `${A.id}-${H}`,
4380
+ id: `${C.id}-${H}`,
4379
4381
  label: `#${H}`,
4380
4382
  type: "slot",
4381
- model: A,
4383
+ model: C,
4382
4384
  disabled: !0,
4383
4385
  children: u(te)
4384
4386
  });
4385
4387
  return se;
4386
4388
  }, u = (x) => {
4387
- const A = [];
4389
+ const C = [];
4388
4390
  return x.forEach((T) => {
4389
4391
  const U = {
4390
4392
  id: T.id,
@@ -4393,15 +4395,15 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4393
4395
  //getNodeType(model),
4394
4396
  model: T
4395
4397
  };
4396
- Array.isArray(T.children) && (U.children = i(T.children, T)), A.push(U);
4397
- }), A;
4398
+ Array.isArray(T.children) && (U.children = i(T.children, T)), C.push(U);
4399
+ }), C;
4398
4400
  }, p = () => {
4399
4401
  if (!a.value) return [];
4400
- const { id: x, name: A, nodes: T } = a.value;
4402
+ const { id: x, name: C, nodes: T } = a.value;
4401
4403
  return [
4402
4404
  {
4403
4405
  id: x,
4404
- label: A,
4406
+ label: C,
4405
4407
  type: x,
4406
4408
  model: a.value,
4407
4409
  children: u(T)
@@ -4410,16 +4412,16 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4410
4412
  }, f = async () => {
4411
4413
  o.value = p(), s.value?.model && (await mt(), e.value?.setSelected(s.value.model));
4412
4414
  }, v = I(() => s.value?.model.id), m = async (x) => {
4413
- const A = x.data;
4414
- if (A.type === "slot" || ze(A.model) || A.model.locked || A.model.name === "template")
4415
+ const C = x.data;
4416
+ if (C.type === "slot" || ze(C.model) || C.model.locked || C.model.name === "template")
4415
4417
  return !1;
4416
- let T = t.assets.componentMap.get(A.model.name);
4417
- const U = A.model.from;
4418
+ let T = t.assets.componentMap.get(C.model.name);
4419
+ const U = C.model.from;
4418
4420
  return !T && U && (T = await t.assets.getBlockMaterial(
4419
4421
  U
4420
4422
  )), T ? (e.value?.setDragging(T), !0) : !1;
4421
- }, h = async (x, A, T) => {
4422
- const U = A.data, H = {
4423
+ }, h = async (x, C, T) => {
4424
+ const U = C.data, H = {
4423
4425
  prev: "top",
4424
4426
  next: "bottom",
4425
4427
  inner: "inner"
@@ -4433,14 +4435,14 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4433
4435
  }
4434
4436
  return te;
4435
4437
  }, g = (x) => {
4436
- const A = x?.model;
4437
- if (!A || A.invisible || x.type === "slot") {
4438
+ const C = x?.model;
4439
+ if (!C || C.invisible || x.type === "slot") {
4438
4440
  e.value?.setSelected(null), e.value?.setHover(null);
4439
4441
  return;
4440
4442
  }
4441
- e.value?.setSelected(A), e.value?.setHover(null);
4442
- }, _ = async (x, A, T) => {
4443
- const U = x.data, se = A.data;
4443
+ e.value?.setSelected(C), e.value?.setHover(null);
4444
+ }, _ = async (x, C, T) => {
4445
+ const U = x.data, se = C.data;
4444
4446
  if (ze(se.model)) {
4445
4447
  const N = U.model;
4446
4448
  delete N.slot, a.value?.move(N, void 0, "inner"), e.value?.setDropping(null), e.value?.setDragging(null);
@@ -4474,18 +4476,18 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4474
4476
  }, S = () => {
4475
4477
  e.value?.setHover(null);
4476
4478
  }, k = (x) => {
4477
- const A = x.data;
4478
- A.dragging = !0;
4479
- const T = t.assets.componentMap.get(A.model.name);
4479
+ const C = x.data;
4480
+ C.dragging = !0;
4481
+ const T = t.assets.componentMap.get(C.model.name);
4480
4482
  T && e.value?.setDragging(T);
4481
4483
  }, j = async (x) => {
4482
- const A = x.data;
4483
- A.dragging = !1;
4484
- }, V = (x, A) => {
4485
- x && ((x.id === A.id || !ze(x) && A.isChild(x)) && e.value?.setSelected(null), e.value?.setHover(null));
4484
+ const C = x.data;
4485
+ C.dragging = !1;
4486
+ }, V = (x, C) => {
4487
+ x && ((x.id === C.id || !ze(x) && C.isChild(x)) && e.value?.setSelected(null), e.value?.setHover(null));
4486
4488
  }, O = (x) => {
4487
- const { name: A, modelValue: T } = x, U = s.value?.model;
4488
- switch (A) {
4489
+ const { name: C, modelValue: T } = x, U = s.value?.model;
4490
+ switch (C) {
4489
4491
  case "lock":
4490
4492
  V(U, T), T.lock();
4491
4493
  break;
@@ -4507,7 +4509,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4507
4509
  break;
4508
4510
  }
4509
4511
  };
4510
- return X(t.changed, f, { immediate: !0 }), (x, A) => (c(), y(n(fe), {
4512
+ return X(t.changed, f, { immediate: !0 }), (x, C) => (c(), y(n(fe), {
4511
4513
  class: "v-outline-widget",
4512
4514
  title: "大纲树"
4513
4515
  }, {
@@ -5339,7 +5341,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5339
5341
  }
5340
5342
  break;
5341
5343
  }
5342
- }, A = (U) => {
5344
+ }, C = (U) => {
5343
5345
  if (U && S.value) {
5344
5346
  const se = i.assets.componentMap.get(U.name);
5345
5347
  se && S.value.setDragging(se), S.value.setDraggingNode(U);
@@ -5389,7 +5391,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5389
5391
  model: n(V).model,
5390
5392
  path: n(V).path,
5391
5393
  onAction: x,
5392
- onDragstart: A,
5394
+ onDragstart: C,
5393
5395
  onDragend: T
5394
5396
  }, null, 8, ["position", "model", "path"])
5395
5397
  ], 4)) : B("", !0),
@@ -6370,12 +6372,12 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6370
6372
  fit: !1
6371
6373
  }, {
6372
6374
  default: b(() => [
6373
- (c(!0), D(Y, null, le(n(v), (A, T) => (c(), y(n(fe), {
6375
+ (c(!0), D(Y, null, le(n(v), (C, T) => (c(), y(n(fe), {
6374
6376
  card: "",
6375
6377
  border: "",
6376
6378
  class: "v-sub-panel",
6377
6379
  size: "small",
6378
- title: `v-model: ${V(A)}`,
6380
+ title: `v-model: ${V(C)}`,
6379
6381
  body: { grow: !1 },
6380
6382
  fit: !1
6381
6383
  }, {
@@ -6393,7 +6395,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6393
6395
  setters: "ExpressionSetter",
6394
6396
  current: n(t),
6395
6397
  context: n(e),
6396
- value: A.value,
6398
+ value: C.value,
6397
6399
  onChange: n(_)
6398
6400
  }, null, 8, ["name", "current", "context", "value", "onChange"])
6399
6401
  ]),
@@ -6420,8 +6422,8 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6420
6422
  onPlus: n(w)
6421
6423
  }, {
6422
6424
  default: b(() => [
6423
- (c(!0), D(Y, null, le(n(m), (A, T) => (c(), y(n(fe), {
6424
- key: A.id,
6425
+ (c(!0), D(Y, null, le(n(m), (C, T) => (c(), y(n(fe), {
6426
+ key: C.id,
6425
6427
  card: "",
6426
6428
  border: "",
6427
6429
  class: "v-sub-panel",
@@ -6430,7 +6432,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6430
6432
  body: { grow: !1 },
6431
6433
  fit: !1,
6432
6434
  remove: !0,
6433
- onRemove: (U) => n(S)(A)
6435
+ onRemove: (U) => n(S)(C)
6434
6436
  }, {
6435
6437
  default: b(() => [
6436
6438
  d(n(Ze), {
@@ -6446,8 +6448,8 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6446
6448
  setters: "StringSetter",
6447
6449
  current: n(t),
6448
6450
  context: n(e),
6449
- value: A.name,
6450
- onChange: n(k)(A)
6451
+ value: C.name,
6452
+ onChange: n(k)(C)
6451
6453
  }, null, 8, ["current", "context", "value", "onChange"]),
6452
6454
  d(n(pe), {
6453
6455
  name: "value",
@@ -6455,9 +6457,9 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6455
6457
  setters: "ExpressionSetter",
6456
6458
  current: n(t),
6457
6459
  context: n(e),
6458
- value: A.value,
6459
- disabled: !A.name,
6460
- onChange: n(k)(A)
6460
+ value: C.value,
6461
+ disabled: !C.name,
6462
+ onChange: n(k)(C)
6461
6463
  }, null, 8, ["current", "context", "value", "disabled", "onChange"]),
6462
6464
  d(n(pe), {
6463
6465
  name: "arg",
@@ -6465,9 +6467,9 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6465
6467
  setters: "StringSetter",
6466
6468
  current: n(t),
6467
6469
  context: n(e),
6468
- value: A.arg,
6469
- disabled: !A.name,
6470
- onChange: n(k)(A)
6470
+ value: C.arg,
6471
+ disabled: !C.name,
6472
+ onChange: n(k)(C)
6471
6473
  }, null, 8, ["current", "context", "value", "disabled", "onChange"]),
6472
6474
  d(n(pe), {
6473
6475
  name: "modifiers",
@@ -6475,9 +6477,9 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6475
6477
  setters: "ObjectSetter",
6476
6478
  current: n(t),
6477
6479
  context: n(e),
6478
- value: A.modifiers,
6479
- disabled: !A.name,
6480
- onChange: n(k)(A),
6480
+ value: C.modifiers,
6481
+ disabled: !C.name,
6482
+ onChange: n(k)(C),
6481
6483
  variable: !1
6482
6484
  }, null, 8, ["current", "context", "value", "disabled", "onChange"])
6483
6485
  ]),
@@ -6763,7 +6765,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6763
6765
  m.value = void 0, v.value = !0;
6764
6766
  }, x = (H) => {
6765
6767
  m.value = { ...H }, v.value = !0;
6766
- }, A = (H) => {
6768
+ }, C = (H) => {
6767
6769
  const { name: te, modelValue: z } = H;
6768
6770
  te === "edit" && x(z), te === "remove" && t.value?.removeSlot(z.name);
6769
6771
  }, T = () => {
@@ -6860,7 +6862,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6860
6862
  border: "",
6861
6863
  actions: ["remove"],
6862
6864
  onClick: (ce) => x(z),
6863
- onAction: A
6865
+ onAction: C
6864
6866
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
6865
6867
  o.value.length ? B("", !0) : (c(), y(n(Ne), {
6866
6868
  key: 0,
@@ -6990,10 +6992,10 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6990
6992
  O && (u.value.name = O.code, u.value.label = O.title || "");
6991
6993
  }
6992
6994
  }, k = async (V) => {
6993
- const { transform: O, test: x, name: A } = V;
6995
+ const { transform: O, test: x, name: C } = V;
6994
6996
  if (!t.current) return !1;
6995
- if (!t.item && t.current.dataSources[A])
6996
- return xe(`名称【${A}】已经存在,请更换名称`), !1;
6997
+ if (!t.item && t.current.dataSources[C])
6998
+ return xe(`名称【${C}】已经存在,请更换名称`), !1;
6997
6999
  if (O?.value) {
6998
7000
  if (!st(O, t.context, !0))
6999
7001
  return !1;
@@ -7029,12 +7031,12 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7029
7031
  }
7030
7032
  }, x = Bn(u.value.test, {
7031
7033
  runApi: O
7032
- }), A = u.value.transform?.value ? Bn(u.value.transform, {}, !0) : (T) => T;
7034
+ }), C = u.value.transform?.value ? Bn(u.value.transform, {}, !0) : (T) => T;
7033
7035
  p.value = !0;
7034
7036
  try {
7035
7037
  l?.disableIntercept();
7036
7038
  const T = await x();
7037
- f.value = JSON.stringify(await A(T), null, 2), l?.enableIntercept();
7039
+ f.value = JSON.stringify(await C(T), null, 2), l?.enableIntercept();
7038
7040
  } catch (T) {
7039
7041
  $t.error(T);
7040
7042
  }
@@ -9585,13 +9587,13 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9585
9587
  loading: p,
9586
9588
  removeTemplate: f
9587
9589
  } = mc(), v = E(""), m = E("0"), h = I(() => v.value ? s.value.filter((x) => x.name.includes(v.value) || x.label?.includes(v.value)) : s.value), g = I(() => {
9588
- const x = i?.getData()?.id, A = Tn(h.value, (U) => U.userId === x ? "我的" : "共享"), T = [
9590
+ const x = i?.getData()?.id, C = Tn(h.value, (U) => U.userId === x ? "我的" : "共享"), T = [
9589
9591
  { label: "我的", model: {} },
9590
9592
  { label: "共享", model: {} }
9591
9593
  ];
9592
9594
  return T.forEach((U) => {
9593
9595
  U.model = Tn(
9594
- A[U.label],
9596
+ C[U.label],
9595
9597
  (se) => se.category
9596
9598
  );
9597
9599
  }), T;
@@ -9621,7 +9623,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9621
9623
  };
9622
9624
  return t({
9623
9625
  refreshTemplates: u
9624
- }), (x, A) => kt((c(), y(n(fe), {
9626
+ }), (x, C) => kt((c(), y(n(fe), {
9625
9627
  class: "v-blocks-widget v-templates-widgets",
9626
9628
  title: "模板",
9627
9629
  subtitle: k.value,
@@ -9634,7 +9636,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9634
9636
  d(n(We), {
9635
9637
  size: "small",
9636
9638
  modelValue: v.value,
9637
- "onUpdate:modelValue": A[0] || (A[0] = (T) => v.value = T),
9639
+ "onUpdate:modelValue": C[0] || (C[0] = (T) => v.value = T),
9638
9640
  "prefix-icon": n(gn),
9639
9641
  placeholder: "搜索模板",
9640
9642
  clearable: ""
@@ -9643,14 +9645,14 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9643
9645
  d(n(us), {
9644
9646
  items: g.value,
9645
9647
  modelValue: m.value,
9646
- "onUpdate:modelValue": A[2] || (A[2] = (T) => m.value = T),
9648
+ "onUpdate:modelValue": C[2] || (C[2] = (T) => m.value = T),
9647
9649
  class: "v-templates-widgets__tab"
9648
9650
  }, {
9649
9651
  default: b(() => [
9650
9652
  w.value.length ? (c(), y(n(os), {
9651
9653
  key: 0,
9652
9654
  modelValue: _.value,
9653
- "onUpdate:modelValue": A[1] || (A[1] = (T) => _.value = T)
9655
+ "onUpdate:modelValue": C[1] || (C[1] = (T) => _.value = T)
9654
9656
  }, {
9655
9657
  default: b(() => [
9656
9658
  (c(!0), D(Y, null, le(S.value, (T, U) => (c(), y(n(ls), {
@@ -9682,7 +9684,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9682
9684
  effect: "light",
9683
9685
  round: ""
9684
9686
  }, {
9685
- default: b(() => A[3] || (A[3] = [
9687
+ default: b(() => C[3] || (C[3] = [
9686
9688
  Q(" VIP ", -1)
9687
9689
  ])),
9688
9690
  _: 1,
@@ -9713,7 +9715,7 @@ const Bc = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
9713
9715
  round: "",
9714
9716
  onClick: (H) => j(se)
9715
9717
  }, {
9716
- default: b(() => A[4] || (A[4] = [
9718
+ default: b(() => C[4] || (C[4] = [
9717
9719
  Q(" 使用 ", -1)
9718
9720
  ])),
9719
9721
  _: 2,
@@ -10072,15 +10074,15 @@ var Ms, Ga;
10072
10074
  function Xm() {
10073
10075
  if (Ga) return Ms;
10074
10076
  Ga = 1;
10075
- function r(C) {
10076
- return C instanceof Map ? C.clear = C.delete = C.set = function() {
10077
+ function r(A) {
10078
+ return A instanceof Map ? A.clear = A.delete = A.set = function() {
10077
10079
  throw new Error("map is read-only");
10078
- } : C instanceof Set && (C.add = C.clear = C.delete = function() {
10080
+ } : A instanceof Set && (A.add = A.clear = A.delete = function() {
10079
10081
  throw new Error("set is read-only");
10080
- }), Object.freeze(C), Object.getOwnPropertyNames(C).forEach((P) => {
10081
- const G = C[P], me = typeof G;
10082
+ }), Object.freeze(A), Object.getOwnPropertyNames(A).forEach((P) => {
10083
+ const G = A[P], me = typeof G;
10082
10084
  (me === "object" || me === "function") && !Object.isFrozen(G) && r(G);
10083
- }), C;
10085
+ }), A;
10084
10086
  }
10085
10087
  class t {
10086
10088
  /**
@@ -10093,30 +10095,30 @@ function Xm() {
10093
10095
  this.isMatchIgnored = !0;
10094
10096
  }
10095
10097
  }
10096
- function e(C) {
10097
- return C.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
10098
+ function e(A) {
10099
+ return A.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
10098
10100
  }
10099
- function s(C, ...P) {
10101
+ function s(A, ...P) {
10100
10102
  const G = /* @__PURE__ */ Object.create(null);
10101
- for (const me in C)
10102
- G[me] = C[me];
10103
+ for (const me in A)
10104
+ G[me] = A[me];
10103
10105
  return P.forEach(function(me) {
10104
10106
  for (const Ue in me)
10105
10107
  G[Ue] = me[Ue];
10106
10108
  }), /** @type {T} */
10107
10109
  G;
10108
10110
  }
10109
- const a = "</span>", o = (C) => !!C.scope, l = (C, { prefix: P }) => {
10110
- if (C.startsWith("language:"))
10111
- return C.replace("language:", "language-");
10112
- if (C.includes(".")) {
10113
- const G = C.split(".");
10111
+ const a = "</span>", o = (A) => !!A.scope, l = (A, { prefix: P }) => {
10112
+ if (A.startsWith("language:"))
10113
+ return A.replace("language:", "language-");
10114
+ if (A.includes(".")) {
10115
+ const G = A.split(".");
10114
10116
  return [
10115
10117
  `${P}${G.shift()}`,
10116
10118
  ...G.map((me, Ue) => `${me}${"_".repeat(Ue + 1)}`)
10117
10119
  ].join(" ");
10118
10120
  }
10119
- return `${P}${C}`;
10121
+ return `${P}${A}`;
10120
10122
  };
10121
10123
  class i {
10122
10124
  /**
@@ -10169,9 +10171,9 @@ function Xm() {
10169
10171
  this.buffer += `<span class="${P}">`;
10170
10172
  }
10171
10173
  }
10172
- const u = (C = {}) => {
10174
+ const u = (A = {}) => {
10173
10175
  const P = { children: [] };
10174
- return Object.assign(P, C), P;
10176
+ return Object.assign(P, A), P;
10175
10177
  };
10176
10178
  class p {
10177
10179
  constructor() {
@@ -10260,39 +10262,39 @@ function Xm() {
10260
10262
  return this.closeAllNodes(), !0;
10261
10263
  }
10262
10264
  }
10263
- function v(C) {
10264
- return C ? typeof C == "string" ? C : C.source : null;
10265
+ function v(A) {
10266
+ return A ? typeof A == "string" ? A : A.source : null;
10265
10267
  }
10266
- function m(C) {
10267
- return _("(?=", C, ")");
10268
+ function m(A) {
10269
+ return _("(?=", A, ")");
10268
10270
  }
10269
- function h(C) {
10270
- return _("(?:", C, ")*");
10271
+ function h(A) {
10272
+ return _("(?:", A, ")*");
10271
10273
  }
10272
- function g(C) {
10273
- return _("(?:", C, ")?");
10274
+ function g(A) {
10275
+ return _("(?:", A, ")?");
10274
10276
  }
10275
- function _(...C) {
10276
- return C.map((G) => v(G)).join("");
10277
+ function _(...A) {
10278
+ return A.map((G) => v(G)).join("");
10277
10279
  }
10278
- function w(C) {
10279
- const P = C[C.length - 1];
10280
- return typeof P == "object" && P.constructor === Object ? (C.splice(C.length - 1, 1), P) : {};
10280
+ function w(A) {
10281
+ const P = A[A.length - 1];
10282
+ return typeof P == "object" && P.constructor === Object ? (A.splice(A.length - 1, 1), P) : {};
10281
10283
  }
10282
- function S(...C) {
10283
- return "(" + (w(C).capture ? "" : "?:") + C.map((me) => v(me)).join("|") + ")";
10284
+ function S(...A) {
10285
+ return "(" + (w(A).capture ? "" : "?:") + A.map((me) => v(me)).join("|") + ")";
10284
10286
  }
10285
- function k(C) {
10286
- return new RegExp(C.toString() + "|").exec("").length - 1;
10287
+ function k(A) {
10288
+ return new RegExp(A.toString() + "|").exec("").length - 1;
10287
10289
  }
10288
- function j(C, P) {
10289
- const G = C && C.exec(P);
10290
+ function j(A, P) {
10291
+ const G = A && A.exec(P);
10290
10292
  return G && G.index === 0;
10291
10293
  }
10292
10294
  const V = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
10293
- function O(C, { joinWith: P }) {
10295
+ function O(A, { joinWith: P }) {
10294
10296
  let G = 0;
10295
- return C.map((me) => {
10297
+ return A.map((me) => {
10296
10298
  G += 1;
10297
10299
  const Ue = G;
10298
10300
  let Fe = v(me), ae = "";
@@ -10307,12 +10309,12 @@ function Xm() {
10307
10309
  return ae;
10308
10310
  }).map((me) => `(${me})`).join(P);
10309
10311
  }
10310
- const x = /\b\B/, A = "[a-zA-Z]\\w*", T = "[a-zA-Z_]\\w*", U = "\\b\\d+(\\.\\d+)?", se = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", H = "\\b(0b[01]+)", te = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", z = (C = {}) => {
10312
+ const x = /\b\B/, C = "[a-zA-Z]\\w*", T = "[a-zA-Z_]\\w*", U = "\\b\\d+(\\.\\d+)?", se = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", H = "\\b(0b[01]+)", te = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", z = (A = {}) => {
10311
10313
  const P = /^#![ ]*\//;
10312
- return C.binary && (C.begin = _(
10314
+ return A.binary && (A.begin = _(
10313
10315
  P,
10314
10316
  /.*\b/,
10315
- C.binary,
10317
+ A.binary,
10316
10318
  /\b.*/
10317
10319
  )), s({
10318
10320
  scope: "meta",
@@ -10323,7 +10325,7 @@ function Xm() {
10323
10325
  "on:begin": (G, me) => {
10324
10326
  G.index !== 0 && me.ignoreMatch();
10325
10327
  }
10326
- }, C);
10328
+ }, A);
10327
10329
  }, ce = {
10328
10330
  begin: "\\\\[\\s\\S]",
10329
10331
  relevance: 0
@@ -10341,11 +10343,11 @@ function Xm() {
10341
10343
  contains: [ce]
10342
10344
  }, K = {
10343
10345
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
10344
- }, q = function(C, P, G = {}) {
10346
+ }, q = function(A, P, G = {}) {
10345
10347
  const me = s(
10346
10348
  {
10347
10349
  scope: "comment",
10348
- begin: C,
10350
+ begin: A,
10349
10351
  end: P,
10350
10352
  contains: []
10351
10353
  },
@@ -10434,7 +10436,7 @@ function Xm() {
10434
10436
  ]
10435
10437
  }, Nt = {
10436
10438
  scope: "title",
10437
- begin: A,
10439
+ begin: C,
10438
10440
  relevance: 0
10439
10441
  }, lt = {
10440
10442
  scope: "title",
@@ -10456,9 +10458,9 @@ function Xm() {
10456
10458
  C_LINE_COMMENT_MODE: ke,
10457
10459
  C_NUMBER_MODE: Ct,
10458
10460
  C_NUMBER_RE: se,
10459
- END_SAME_AS_BEGIN: function(C) {
10461
+ END_SAME_AS_BEGIN: function(A) {
10460
10462
  return Object.assign(
10461
- C,
10463
+ A,
10462
10464
  {
10463
10465
  /** @type {ModeCallback} */
10464
10466
  "on:begin": (P, G) => {
@@ -10472,7 +10474,7 @@ function Xm() {
10472
10474
  );
10473
10475
  },
10474
10476
  HASH_COMMENT_MODE: Le,
10475
- IDENT_RE: A,
10477
+ IDENT_RE: C,
10476
10478
  MATCH_NOTHING_RE: x,
10477
10479
  METHOD_GUARD: qe,
10478
10480
  NUMBER_MODE: It,
@@ -10486,39 +10488,39 @@ function Xm() {
10486
10488
  UNDERSCORE_IDENT_RE: T,
10487
10489
  UNDERSCORE_TITLE_MODE: lt
10488
10490
  });
10489
- function Pt(C, P) {
10490
- C.input[C.index - 1] === "." && P.ignoreMatch();
10491
+ function Pt(A, P) {
10492
+ A.input[A.index - 1] === "." && P.ignoreMatch();
10491
10493
  }
10492
- function ft(C, P) {
10493
- C.className !== void 0 && (C.scope = C.className, delete C.className);
10494
+ function ft(A, P) {
10495
+ A.className !== void 0 && (A.scope = A.className, delete A.className);
10494
10496
  }
10495
- function dt(C, P) {
10496
- P && C.beginKeywords && (C.begin = "\\b(" + C.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", C.__beforeBegin = Pt, C.keywords = C.keywords || C.beginKeywords, delete C.beginKeywords, C.relevance === void 0 && (C.relevance = 0));
10497
+ function dt(A, P) {
10498
+ P && A.beginKeywords && (A.begin = "\\b(" + A.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", A.__beforeBegin = Pt, A.keywords = A.keywords || A.beginKeywords, delete A.beginKeywords, A.relevance === void 0 && (A.relevance = 0));
10497
10499
  }
10498
- function it(C, P) {
10499
- Array.isArray(C.illegal) && (C.illegal = S(...C.illegal));
10500
+ function it(A, P) {
10501
+ Array.isArray(A.illegal) && (A.illegal = S(...A.illegal));
10500
10502
  }
10501
- function Yt(C, P) {
10502
- if (C.match) {
10503
- if (C.begin || C.end) throw new Error("begin & end are not supported with match");
10504
- C.begin = C.match, delete C.match;
10503
+ function Yt(A, P) {
10504
+ if (A.match) {
10505
+ if (A.begin || A.end) throw new Error("begin & end are not supported with match");
10506
+ A.begin = A.match, delete A.match;
10505
10507
  }
10506
10508
  }
10507
- function gs(C, P) {
10508
- C.relevance === void 0 && (C.relevance = 1);
10509
+ function gs(A, P) {
10510
+ A.relevance === void 0 && (A.relevance = 1);
10509
10511
  }
10510
- const fs = (C, P) => {
10511
- if (!C.beforeMatch) return;
10512
- if (C.starts) throw new Error("beforeMatch cannot be used with starts");
10513
- const G = Object.assign({}, C);
10514
- Object.keys(C).forEach((me) => {
10515
- delete C[me];
10516
- }), C.keywords = G.keywords, C.begin = _(G.beforeMatch, m(G.begin)), C.starts = {
10512
+ const fs = (A, P) => {
10513
+ if (!A.beforeMatch) return;
10514
+ if (A.starts) throw new Error("beforeMatch cannot be used with starts");
10515
+ const G = Object.assign({}, A);
10516
+ Object.keys(A).forEach((me) => {
10517
+ delete A[me];
10518
+ }), A.keywords = G.keywords, A.begin = _(G.beforeMatch, m(G.begin)), A.starts = {
10517
10519
  relevance: 0,
10518
10520
  contains: [
10519
10521
  Object.assign(G, { endsParent: !0 })
10520
10522
  ]
10521
- }, C.relevance = 0, delete G.beforeMatch;
10523
+ }, A.relevance = 0, delete G.beforeMatch;
10522
10524
  }, hs = [
10523
10525
  "of",
10524
10526
  "and",
@@ -10535,12 +10537,12 @@ function Xm() {
10535
10537
  "value"
10536
10538
  // common variable name
10537
10539
  ], bs = "keyword";
10538
- function Qt(C, P, G = bs) {
10540
+ function Qt(A, P, G = bs) {
10539
10541
  const me = /* @__PURE__ */ Object.create(null);
10540
- return typeof C == "string" ? Ue(G, C.split(" ")) : Array.isArray(C) ? Ue(G, C) : Object.keys(C).forEach(function(Fe) {
10542
+ return typeof A == "string" ? Ue(G, A.split(" ")) : Array.isArray(A) ? Ue(G, A) : Object.keys(A).forEach(function(Fe) {
10541
10543
  Object.assign(
10542
10544
  me,
10543
- Qt(C[Fe], P, Fe)
10545
+ Qt(A[Fe], P, Fe)
10544
10546
  );
10545
10547
  }), me;
10546
10548
  function Ue(Fe, ae) {
@@ -10550,55 +10552,55 @@ function Xm() {
10550
10552
  });
10551
10553
  }
10552
10554
  }
10553
- function ys(C, P) {
10554
- return P ? Number(P) : ws(C) ? 0 : 1;
10555
+ function ys(A, P) {
10556
+ return P ? Number(P) : ws(A) ? 0 : 1;
10555
10557
  }
10556
- function ws(C) {
10557
- return hs.includes(C.toLowerCase());
10558
+ function ws(A) {
10559
+ return hs.includes(A.toLowerCase());
10558
10560
  }
10559
- const Pn = {}, zt = (C) => {
10560
- console.error(C);
10561
- }, zn = (C, ...P) => {
10562
- console.log(`WARN: ${C}`, ...P);
10563
- }, L = (C, P) => {
10564
- Pn[`${C}/${P}`] || (console.log(`Deprecated as of ${C}. ${P}`), Pn[`${C}/${P}`] = !0);
10561
+ const Pn = {}, zt = (A) => {
10562
+ console.error(A);
10563
+ }, zn = (A, ...P) => {
10564
+ console.log(`WARN: ${A}`, ...P);
10565
+ }, L = (A, P) => {
10566
+ Pn[`${A}/${P}`] || (console.log(`Deprecated as of ${A}. ${P}`), Pn[`${A}/${P}`] = !0);
10565
10567
  }, ie = new Error();
10566
- function we(C, P, { key: G }) {
10568
+ function we(A, P, { key: G }) {
10567
10569
  let me = 0;
10568
- const Ue = C[G], Fe = {}, ae = {};
10570
+ const Ue = A[G], Fe = {}, ae = {};
10569
10571
  for (let Z = 1; Z <= P.length; Z++)
10570
10572
  ae[Z + me] = Ue[Z], Fe[Z + me] = !0, me += k(P[Z - 1]);
10571
- C[G] = ae, C[G]._emit = Fe, C[G]._multi = !0;
10573
+ A[G] = ae, A[G]._emit = Fe, A[G]._multi = !0;
10572
10574
  }
10573
- function Ae(C) {
10574
- if (Array.isArray(C.begin)) {
10575
- if (C.skip || C.excludeBegin || C.returnBegin)
10575
+ function Ae(A) {
10576
+ if (Array.isArray(A.begin)) {
10577
+ if (A.skip || A.excludeBegin || A.returnBegin)
10576
10578
  throw zt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), ie;
10577
- if (typeof C.beginScope != "object" || C.beginScope === null)
10579
+ if (typeof A.beginScope != "object" || A.beginScope === null)
10578
10580
  throw zt("beginScope must be object"), ie;
10579
- we(C, C.begin, { key: "beginScope" }), C.begin = O(C.begin, { joinWith: "" });
10581
+ we(A, A.begin, { key: "beginScope" }), A.begin = O(A.begin, { joinWith: "" });
10580
10582
  }
10581
10583
  }
10582
- function he(C) {
10583
- if (Array.isArray(C.end)) {
10584
- if (C.skip || C.excludeEnd || C.returnEnd)
10584
+ function he(A) {
10585
+ if (Array.isArray(A.end)) {
10586
+ if (A.skip || A.excludeEnd || A.returnEnd)
10585
10587
  throw zt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), ie;
10586
- if (typeof C.endScope != "object" || C.endScope === null)
10588
+ if (typeof A.endScope != "object" || A.endScope === null)
10587
10589
  throw zt("endScope must be object"), ie;
10588
- we(C, C.end, { key: "endScope" }), C.end = O(C.end, { joinWith: "" });
10590
+ we(A, A.end, { key: "endScope" }), A.end = O(A.end, { joinWith: "" });
10589
10591
  }
10590
10592
  }
10591
- function Ye(C) {
10592
- C.scope && typeof C.scope == "object" && C.scope !== null && (C.beginScope = C.scope, delete C.scope);
10593
+ function Ye(A) {
10594
+ A.scope && typeof A.scope == "object" && A.scope !== null && (A.beginScope = A.scope, delete A.scope);
10593
10595
  }
10594
- function rt(C) {
10595
- Ye(C), typeof C.beginScope == "string" && (C.beginScope = { _wrap: C.beginScope }), typeof C.endScope == "string" && (C.endScope = { _wrap: C.endScope }), Ae(C), he(C);
10596
+ function rt(A) {
10597
+ Ye(A), typeof A.beginScope == "string" && (A.beginScope = { _wrap: A.beginScope }), typeof A.endScope == "string" && (A.endScope = { _wrap: A.endScope }), Ae(A), he(A);
10596
10598
  }
10597
- function Sn(C) {
10599
+ function Sn(A) {
10598
10600
  function P(ae, Z) {
10599
10601
  return new RegExp(
10600
10602
  v(ae),
10601
- "m" + (C.case_insensitive ? "i" : "") + (C.unicodeRegex ? "u" : "") + (Z ? "g" : "")
10603
+ "m" + (A.case_insensitive ? "i" : "") + (A.unicodeRegex ? "u" : "") + (Z ? "g" : "")
10602
10604
  );
10603
10605
  }
10604
10606
  class G {
@@ -10673,7 +10675,7 @@ function Xm() {
10673
10675
  Yt,
10674
10676
  rt,
10675
10677
  fs
10676
- ].forEach((He) => He(ae, Z)), C.compilerExtensions.forEach((He) => He(ae, Z)), ae.__beforeBegin = null, [
10678
+ ].forEach((He) => He(ae, Z)), A.compilerExtensions.forEach((He) => He(ae, Z)), ae.__beforeBegin = null, [
10677
10679
  dt,
10678
10680
  // do this later so compiler extensions that come earlier have access to the
10679
10681
  // raw array if they wanted to perhaps manipulate it, etc.
@@ -10682,7 +10684,7 @@ function Xm() {
10682
10684
  gs
10683
10685
  ].forEach((He) => He(ae, Z)), ae.isCompiled = !0;
10684
10686
  let Xe = null;
10685
- return typeof ae.keywords == "object" && ae.keywords.$pattern && (ae.keywords = Object.assign({}, ae.keywords), Xe = ae.keywords.$pattern, delete ae.keywords.$pattern), Xe = Xe || /\w+/, ae.keywords && (ae.keywords = Qt(ae.keywords, C.case_insensitive)), de.keywordPatternRe = P(Xe, !0), Z && (ae.begin || (ae.begin = /\B|\b/), de.beginRe = P(de.begin), !ae.end && !ae.endsWithParent && (ae.end = /\B|\b/), ae.end && (de.endRe = P(de.end)), de.terminatorEnd = v(de.end) || "", ae.endsWithParent && Z.terminatorEnd && (de.terminatorEnd += (ae.end ? "|" : "") + Z.terminatorEnd)), ae.illegal && (de.illegalRe = P(
10687
+ return typeof ae.keywords == "object" && ae.keywords.$pattern && (ae.keywords = Object.assign({}, ae.keywords), Xe = ae.keywords.$pattern, delete ae.keywords.$pattern), Xe = Xe || /\w+/, ae.keywords && (ae.keywords = Qt(ae.keywords, A.case_insensitive)), de.keywordPatternRe = P(Xe, !0), Z && (ae.begin || (ae.begin = /\B|\b/), de.beginRe = P(de.begin), !ae.end && !ae.endsWithParent && (ae.end = /\B|\b/), ae.end && (de.endRe = P(de.end)), de.terminatorEnd = v(de.end) || "", ae.endsWithParent && Z.terminatorEnd && (de.terminatorEnd += (ae.end ? "|" : "") + Z.terminatorEnd)), ae.illegal && (de.illegalRe = P(
10686
10688
  /** @type {RegExp | string} */
10687
10689
  ae.illegal
10688
10690
  )), ae.contains || (ae.contains = []), ae.contains = [].concat(...ae.contains.map(function(He) {
@@ -10695,20 +10697,20 @@ function Xm() {
10695
10697
  );
10696
10698
  }), ae.starts && Fe(ae.starts, Z), de.matcher = Ue(de), de;
10697
10699
  }
10698
- if (C.compilerExtensions || (C.compilerExtensions = []), C.contains && C.contains.includes("self"))
10700
+ if (A.compilerExtensions || (A.compilerExtensions = []), A.contains && A.contains.includes("self"))
10699
10701
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
10700
- return C.classNameAliases = s(C.classNameAliases || {}), Fe(
10702
+ return A.classNameAliases = s(A.classNameAliases || {}), Fe(
10701
10703
  /** @type Mode */
10702
- C
10704
+ A
10703
10705
  );
10704
10706
  }
10705
- function ht(C) {
10706
- return C ? C.endsWithParent || ht(C.starts) : !1;
10707
+ function ht(A) {
10708
+ return A ? A.endsWithParent || ht(A.starts) : !1;
10707
10709
  }
10708
- function Xt(C) {
10709
- return C.variants && !C.cachedVariants && (C.cachedVariants = C.variants.map(function(P) {
10710
- return s(C, { variants: null }, P);
10711
- })), C.cachedVariants ? C.cachedVariants : ht(C) ? s(C, { starts: C.starts ? s(C.starts) : null }) : Object.isFrozen(C) ? s(C) : C;
10710
+ function Xt(A) {
10711
+ return A.variants && !A.cachedVariants && (A.cachedVariants = A.variants.map(function(P) {
10712
+ return s(A, { variants: null }, P);
10713
+ })), A.cachedVariants ? A.cachedVariants : ht(A) ? s(A, { starts: A.starts ? s(A.starts) : null }) : Object.isFrozen(A) ? s(A) : A;
10712
10714
  }
10713
10715
  var el = "11.11.1";
10714
10716
  class tl extends Error {
@@ -10716,7 +10718,7 @@ function Xm() {
10716
10718
  super(P), this.name = "HTMLInjectionError", this.html = G;
10717
10719
  }
10718
10720
  }
10719
- const ks = e, _a = s, Sa = Symbol("nomatch"), nl = 7, Ca = function(C) {
10721
+ const ks = e, _a = s, Sa = Symbol("nomatch"), nl = 7, Ca = function(A) {
10720
10722
  const P = /* @__PURE__ */ Object.create(null), G = /* @__PURE__ */ Object.create(null), me = [];
10721
10723
  let Ue = !0;
10722
10724
  const Fe = "Could not find the language '{}', did you forget to load/include a language module?", ae = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -11035,7 +11037,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
11035
11037
  function il(J, re) {
11036
11038
  let Se = null;
11037
11039
  try {
11038
- Se = re(C);
11040
+ Se = re(A);
11039
11041
  } catch (Ve) {
11040
11042
  if (zt("Language definition for '{}' could not be registered.".replace("{}", J)), Ue)
11041
11043
  zt(Ve);
@@ -11043,7 +11045,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
11043
11045
  throw Ve;
11044
11046
  Se = ae;
11045
11047
  }
11046
- Se.name || (Se.name = J), P[J] = Se, Se.rawDefinition = re.bind(null, C), Se.aliases && Ea(Se.aliases, { languageName: J });
11048
+ Se.name || (Se.name = J), P[J] = Se, Se.rawDefinition = re.bind(null, A), Se.aliases && Ea(Se.aliases, { languageName: J });
11047
11049
  }
11048
11050
  function rl(J) {
11049
11051
  delete P[J];
@@ -11092,7 +11094,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
11092
11094
  function ml(J) {
11093
11095
  return L("10.7.0", "highlightBlock will be removed entirely in v12.0"), L("10.7.0", "Please use highlightElement now."), Cs(J);
11094
11096
  }
11095
- Object.assign(C, {
11097
+ Object.assign(A, {
11096
11098
  highlight: He,
11097
11099
  highlightAuto: Ss,
11098
11100
  highlightAll: Ln,
@@ -11111,11 +11113,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
11111
11113
  inherit: _a,
11112
11114
  addPlugin: dl,
11113
11115
  removePlugin: pl
11114
- }), C.debugMode = function() {
11116
+ }), A.debugMode = function() {
11115
11117
  Ue = !1;
11116
- }, C.safeMode = function() {
11118
+ }, A.safeMode = function() {
11117
11119
  Ue = !0;
11118
- }, C.versionString = el, C.regex = {
11120
+ }, A.versionString = el, A.regex = {
11119
11121
  concat: _,
11120
11122
  lookahead: m,
11121
11123
  either: S,
@@ -11124,7 +11126,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Ge = J, Ve = re), Se
11124
11126
  };
11125
11127
  for (const J in At)
11126
11128
  typeof At[J] == "object" && r(At[J]);
11127
- return Object.assign(C, At), C;
11129
+ return Object.assign(A, At), A;
11128
11130
  }, fn = Ca({});
11129
11131
  return fn.newInstance = () => Ca({}), Ms = fn, fn.HighlightJS = fn, fn.default = fn, Ms;
11130
11132
  }
@@ -11692,7 +11694,7 @@ function ov(r) {
11692
11694
  excludeEnd: !0,
11693
11695
  keywords: i,
11694
11696
  contains: O
11695
- }, A = {
11697
+ }, C = {
11696
11698
  variants: [
11697
11699
  // class Car extends vehicle
11698
11700
  {
@@ -11992,7 +11994,7 @@ function ov(r) {
11992
11994
  },
11993
11995
  z,
11994
11996
  H,
11995
- A,
11997
+ C,
11996
11998
  N,
11997
11999
  {
11998
12000
  match: /\$[(.]/
@@ -13007,13 +13009,13 @@ const gv = ["innerHTML"], fv = /* @__PURE__ */ M({
13007
13009
  ]), h = I(() => ({
13008
13010
  "is-user": e.type === "user",
13009
13011
  "is-ai": e.type === "ai"
13010
- })), g = I(() => e.data.reasoning ? `已经深度思考 (用时 ${Math.ceil(e.data.thinking / 1e3)} 秒)` : p.value ? "展开" : "收起"), _ = (A) => A.type === "json" && A.json ? A.dataType ? a[A.dataType] || a.other : A.json.includes("/sketch/") ? a.sketch : A.json.includes("/figma/") ? a.figma : A.json.includes("/group/") || A.json.includes("/frame/") || A.json.includes("/component/") || A.json.includes("/mastergo/") ? a.mastergo : a.other : A.image ? A.image : "", w = (A = "") => {
13011
- const T = A.split("/");
13012
- return T.length > 6 ? T.slice(6).join("/") : A;
13013
- }, S = (A) => {
13014
- A && window.open(A);
13015
- }, k = (A) => {
13016
- s(A.name, A);
13012
+ })), g = I(() => e.data.reasoning ? `已经深度思考 (用时 ${Math.ceil(e.data.thinking / 1e3)} 秒)` : p.value ? "展开" : "收起"), _ = (C) => C.type === "json" && C.json ? C.dataType ? a[C.dataType] || a.other : C.json.includes("/sketch/") ? a.sketch : C.json.includes("/figma/") ? a.figma : C.json.includes("/group/") || C.json.includes("/frame/") || C.json.includes("/component/") || C.json.includes("/mastergo/") ? a.mastergo : a.other : C.image ? C.image : "", w = (C = "") => {
13013
+ const T = C.split("/");
13014
+ return T.length > 6 ? T.slice(6).join("/") : C;
13015
+ }, S = (C) => {
13016
+ C && window.open(C);
13017
+ }, k = (C) => {
13018
+ s(C.name, C);
13017
13019
  }, j = () => {
13018
13020
  p.value = !p.value;
13019
13021
  }, V = () => {
@@ -13025,8 +13027,8 @@ const gv = ["innerHTML"], fv = /* @__PURE__ */ M({
13025
13027
  };
13026
13028
  return X(
13027
13029
  () => e.data.collapsed,
13028
- (A) => {
13029
- p.value = !!A;
13030
+ (C) => {
13031
+ p.value = !!C;
13030
13032
  },
13031
13033
  { immediate: !0 }
13032
13034
  ), X(
@@ -13034,7 +13036,7 @@ const gv = ["innerHTML"], fv = /* @__PURE__ */ M({
13034
13036
  () => {
13035
13037
  p.value = !1;
13036
13038
  }
13037
- ), (A, T) => (c(), D("div", {
13039
+ ), (C, T) => (c(), D("div", {
13038
13040
  class: ge(["v-ai-widget-bubble", h.value])
13039
13041
  }, [
13040
13042
  o.value ? (c(), y(n(is), {
@@ -13327,7 +13329,7 @@ const gv = ["innerHTML"], fv = /* @__PURE__ */ M({
13327
13329
  type: "warning"
13328
13330
  }), u.value?.focus());
13329
13331
  try {
13330
- const O = JSON.parse(V), x = JSON.stringify(O), A = new Blob([x], { type: "application/json" }), T = new File([A], "data.json", {
13332
+ const O = JSON.parse(V), x = JSON.stringify(O), C = new Blob([x], { type: "application/json" }), T = new File([C], "data.json", {
13331
13333
  type: "application/json",
13332
13334
  lastModified: (/* @__PURE__ */ new Date()).getTime()
13333
13335
  });
@@ -14005,7 +14007,7 @@ const gv = ["innerHTML"], fv = /* @__PURE__ */ M({
14005
14007
  scrollToTop: V,
14006
14008
  scrollToBottom: O,
14007
14009
  expandAll: x,
14008
- collapseAll: A,
14010
+ collapseAll: C,
14009
14011
  isPending: T,
14010
14012
  toggleHideCode: U,
14011
14013
  isHideCode: se,
@@ -14108,7 +14110,7 @@ const gv = ["innerHTML"], fv = /* @__PURE__ */ M({
14108
14110
  title: "全部折叠",
14109
14111
  background: "hover",
14110
14112
  disabled: n(s),
14111
- onClick: n(A)
14113
+ onClick: n(C)
14112
14114
  }, null, 8, ["icon", "disabled", "onClick"]),
14113
14115
  d(n(je), {
14114
14116
  mode: "icon",
@@ -17454,14 +17456,14 @@ class vf extends ho {
17454
17456
  const O = V.names || [];
17455
17457
  if (V.name === Zn)
17456
17458
  O.forEach((x) => {
17457
- const A = w.get(x), T = A?.package || "", U = oi[T], se = m[U];
17458
- se && A && (g[x] = La(A, se));
17459
+ const C = w.get(x), T = C?.package || "", U = oi[T], se = m[U];
17460
+ se && C && (g[x] = La(C, se));
17459
17461
  });
17460
17462
  else {
17461
17463
  const x = m[s[V.library || ""]];
17462
- x && O.forEach((A) => {
17463
- const T = w.get(A);
17464
- T ? g[A] = La(T, x) : g[A] = x[A];
17464
+ x && O.forEach((C) => {
17465
+ const T = w.get(C);
17466
+ T ? g[C] = La(T, x) : g[C] = x[C];
17465
17467
  });
17466
17468
  }
17467
17469
  }
@@ -18274,9 +18276,9 @@ const nn = M({
18274
18276
  },
18275
18277
  setup(r, { expose: t }) {
18276
18278
  const e = r, { engine: s, loginBySign: a, isLogined: o } = un(), l = E(!1), i = E(parseInt(e.leftWidth)), u = E(parseInt(e.rightWidth)), p = () => {
18277
- s.checkVersion && zo((A) => {
18279
+ s.checkVersion && zo((C) => {
18278
18280
  xe(
18279
- `VTJ 发布了版本 ${A},您可以通过重新安装依赖更新到最新版本`,
18281
+ `VTJ 发布了版本 ${C},您可以通过重新安装依赖更新到最新版本`,
18280
18282
  "版本更新"
18281
18283
  );
18282
18284
  });
@@ -18284,20 +18286,20 @@ const nn = M({
18284
18286
  dirs: ["e"],
18285
18287
  maxWidth: 600,
18286
18288
  minWidth: 49,
18287
- onResizing(A, T) {
18289
+ onResizing(C, T) {
18288
18290
  i.value = T.elementWidth.value;
18289
18291
  },
18290
- onEnd(A, T) {
18292
+ onEnd(C, T) {
18291
18293
  i.value = T.elementWidth.value;
18292
18294
  }
18293
18295
  }, v = {
18294
18296
  dirs: ["w"],
18295
18297
  maxWidth: 600,
18296
18298
  minWidth: 2,
18297
- onResizing(A, T) {
18299
+ onResizing(C, T) {
18298
18300
  u.value = T.elementWidth.value;
18299
18301
  },
18300
- onEnd(A, T) {
18302
+ onEnd(C, T) {
18301
18303
  u.value = T.elementWidth.value;
18302
18304
  }
18303
18305
  }, m = E(), h = E(), g = E(), _ = E(), w = E(), S = E(), k = E(), j = E(), V = E(!1), O = E(!1);
@@ -18317,13 +18319,13 @@ const nn = M({
18317
18319
  rightWidth: u,
18318
18320
  preview: j,
18319
18321
  isPreview: l
18320
- }), (A, T) => (c(), y(n(Ul), { locale: n(Hl) }, {
18322
+ }), (C, T) => (c(), y(n(Ul), { locale: n(Hl) }, {
18321
18323
  default: b(() => [
18322
18324
  d(n(Da), { class: "v-skeleton" }, {
18323
18325
  default: b(() => [
18324
18326
  d(n(Fl), {
18325
18327
  class: "v-skeleton__header",
18326
- height: A.headerHeight
18328
+ height: C.headerHeight
18327
18329
  }, {
18328
18330
  default: b(() => [
18329
18331
  d(n(nn), {
@@ -18407,7 +18409,7 @@ const nn = M({
18407
18409
  l.value ? B("", !0) : (c(), y(n(Wl), {
18408
18410
  key: 0,
18409
18411
  class: "v-skeleton__footer",
18410
- height: A.footerHeight
18412
+ height: C.footerHeight
18411
18413
  }, {
18412
18414
  default: b(() => [
18413
18415
  d(n(nn), {