ss-component-new 1.2.30 → 1.2.32

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.
Files changed (106) hide show
  1. package/dist/{MTLLoader-CGJ_BoN_.cjs → MTLLoader-BK95MfNU.cjs} +1 -1
  2. package/dist/{MTLLoader-DKu2hJu8.js → MTLLoader-BzJ43684.js} +1 -1
  3. package/dist/{OrbitControls-CcSIJs8U.cjs → OrbitControls-2eTi7aWC.cjs} +1 -1
  4. package/dist/{OrbitControls-BqqUzhiB.js → OrbitControls-D-HKj8Fo.js} +1 -1
  5. package/dist/{animationData-CqnPk9Xj.cjs → animationData-0sWRlTij.cjs} +1 -1
  6. package/dist/{animationData-C9-csPUd.js → animationData-B5nSa3Wr.js} +3 -3
  7. package/dist/{array-GAxUIYkk.js → array-BRaoaWrW.js} +1 -1
  8. package/dist/{array-CNff52dF.cjs → array-C44hFkbE.cjs} +1 -1
  9. package/dist/{dataUtil-B8GQMfU9.cjs → dataUtil-CEoQ4Ndk.cjs} +1 -1
  10. package/dist/{dataUtil-CUqnwA-C.js → dataUtil-CQtKj9uA.js} +1 -1
  11. package/dist/{fileUtil-2jbB0UOW.js → fileUtil-Dj784v6C.js} +1 -1
  12. package/dist/{fileUtil-DmlOwzdA.cjs → fileUtil-DtGYyEnX.cjs} +1 -1
  13. package/dist/{iconfont-Clbumxhq.js → iconfont-B00HEBSZ.js} +2 -2
  14. package/dist/{iconfont-BRjtaT1w.cjs → iconfont-C9S_ZYmF.cjs} +1 -1
  15. package/dist/{index-LjM9Nk8B.js → index--C6k-D2N.js} +16 -16
  16. package/dist/{index-D_vF-xur.js → index-15b-TQsb.js} +2 -2
  17. package/dist/{index-B1K65cVA.js → index-7_o-VRMN.js} +2 -2
  18. package/dist/{index-CLYAJN6W.js → index-B--EuduQ.js} +8 -8
  19. package/dist/{index-DnxJ5v5h.js → index-BDRc8Y81.js} +1 -1
  20. package/dist/{index-B1TG4KX4.js → index-BDnhFcKf.js} +2 -2
  21. package/dist/{index-DPJaR6_y.cjs → index-BWrns3Oc.cjs} +1 -1
  22. package/dist/{index-Bg67M1I0.cjs → index-BalMucur.cjs} +1 -1
  23. package/dist/{index-CGrK7vLD.cjs → index-BdKvrPvY.cjs} +10 -10
  24. package/dist/{index-BVx8ubcY.js → index-BhXhtoRc.js} +2 -2
  25. package/dist/{index-Bnlo1Vn9.cjs → index-BtpjDKvW.cjs} +1 -1
  26. package/dist/{index-CPUuPtdW.cjs → index-C1qs0RQj.cjs} +1 -1
  27. package/dist/{index-D-vSuC_W.cjs → index-C4l0VtK0.cjs} +1 -1
  28. package/dist/{index-BUqXSmZN.cjs → index-C8Pcs5aU.cjs} +1 -1
  29. package/dist/{index-T8lPGzLV.cjs → index-CD9AL3Zp.cjs} +1 -1
  30. package/dist/{index-NsYVgt6J.cjs → index-CIIVTNal.cjs} +1 -1
  31. package/dist/{index-CVduLh5F.js → index-CNwegUef.js} +3 -3
  32. package/dist/{index-DOqV1gv2.js → index-CPGdT7Ir.js} +3 -3
  33. package/dist/{index-B4kwMjRZ.cjs → index-CWLJn5Pm.cjs} +1 -1
  34. package/dist/{index-BH-dztWs.js → index-CamDUXA9.js} +1 -1
  35. package/dist/{index-Cx-hhVVM.js → index-Cf9pDAXa.js} +5 -5
  36. package/dist/index-CgjAehAI.cjs +1 -0
  37. package/dist/{index-M0XPuhvZ.cjs → index-CkTe2T2S.cjs} +1 -1
  38. package/dist/{index-BuPMGirQ.js → index-ClIX3WK6.js} +841 -830
  39. package/dist/{index-CWvU6SMj.js → index-ClijEvVw.js} +2 -2
  40. package/dist/{index-Dc_H7_4Q.cjs → index-CnE7ML6c.cjs} +1 -1
  41. package/dist/{index-BR2gy9VY.js → index-CocGAXyD.js} +11 -11
  42. package/dist/index-CshWG_Bn.cjs +1 -0
  43. package/dist/{index-BDHmuN0R.cjs → index-D7eQxqbc.cjs} +1 -1
  44. package/dist/{index-CF3_9CuM.js → index-DABjfIra.js} +1 -1
  45. package/dist/{index-C5bKf4Rc.cjs → index-DBtBAS_Q.cjs} +1 -1
  46. package/dist/{index-B524ZAt_.js → index-DFF7L3iO.js} +1 -1
  47. package/dist/{index-CSkbFCKk.js → index-DH8MpnEO.js} +1 -1
  48. package/dist/{index-ZxdNFChm.js → index-DRtjEAPe.js} +2 -2
  49. package/dist/{index-eU4qzdNW.cjs → index-DVYQdx3z.cjs} +1 -1
  50. package/dist/{index-Bf_EwhXB.js → index-DZR8LUZN.js} +2 -2
  51. package/dist/{index-DC41esc7.cjs → index-DcJFFIQw.cjs} +1 -1
  52. package/dist/index-Dj0KOUf5.js +2761 -0
  53. package/dist/{index-BKH5yrms.cjs → index-DjhlRPC-.cjs} +1 -1
  54. package/dist/{index-Dyk6Ept4.cjs → index-DlHrVgZ8.cjs} +1 -1
  55. package/dist/{index-4vFpZiro.cjs → index-Dmx1WOtT.cjs} +1 -1
  56. package/dist/{index-Ct1BlKod.cjs → index-Dpt2UYlJ.cjs} +1 -1
  57. package/dist/{index-DLNYVMBT.js → index-Dr4WmRi_.js} +32 -33
  58. package/dist/{index-DQEoNTv9.js → index-Dwzx2xTf.js} +1 -1
  59. package/dist/{index-C4sVFEb2.cjs → index-HQwjD7os.cjs} +1 -1
  60. package/dist/index-J7ZV_p_y.js +2874 -0
  61. package/dist/{index-h2jxROLW.js → index-aYtsSmZR.js} +2 -2
  62. package/dist/{index-DpHuDey-.js → index-b8sQiO-W.js} +5 -5
  63. package/dist/{index-CVfE7lev.cjs → index-fLRprcfZ.cjs} +1 -1
  64. package/dist/{index-DNmodmj5.js → index-pApFSSVJ.js} +2 -2
  65. package/dist/index-rwUPu6ZD.cjs +1 -0
  66. package/dist/{index-zfSd0dDx.cjs → index-sNFUCD37.cjs} +1 -1
  67. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BAJOxaYG.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CX15bSA6.js} +7381 -7364
  68. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bz5a6KNq.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-hIVK_HWV.cjs} +13 -13
  69. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0V41x5SW.cjs} +1 -1
  70. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C5hViTw-.js} +1 -1
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-B5pFO8Nu.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B95xPNJf.js} +5 -5
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CfeHVTqR.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-qUMVkjAK.cjs} +1 -1
  73. package/dist/{index.vue_vue_type_style_index_1_lang-C_c9xkIT.js → index.vue_vue_type_style_index_1_lang-4wOK4zzH.js} +1711 -1685
  74. package/dist/{index.vue_vue_type_style_index_1_lang-Dn15anMU.cjs → index.vue_vue_type_style_index_1_lang-C1o8R3nH.cjs} +1 -1
  75. package/dist/index.vue_vue_type_style_index_1_lang-C4diM8a_.cjs +32 -0
  76. package/dist/{index.vue_vue_type_style_index_1_lang-C_-spRZf.js → index.vue_vue_type_style_index_1_lang-Cgrrd0F_.js} +4 -4
  77. package/dist/{main-Cqs48dh5.cjs → main-CB1J3P3P.cjs} +1 -1
  78. package/dist/{main-D13CgkQa.js → main-DJo5OeDN.js} +4 -4
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +2 -2
  81. package/dist/ss-component.js +10 -10
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +11 -11
  84. package/dist/{threeModel-B1Q-W8uT.cjs → threeModel-CuxcqV63.cjs} +1 -1
  85. package/dist/{threeModel-CdhAh8Bx.js → threeModel-D04_GFIf.js} +4 -4
  86. package/dist/{threePreview-DFaqe_Df.cjs → threePreview-CW0sFOSX.cjs} +1 -1
  87. package/dist/{threePreview-qK1L0B-6.js → threePreview-V9Xz9HjD.js} +3 -3
  88. package/dist/{threeSceneView-MV6u29zj.cjs → threeSceneView-BF_WPeoa.cjs} +1 -1
  89. package/dist/{threeSceneView-D7A2EUjB.js → threeSceneView-DDsAajYr.js} +10 -10
  90. package/dist/{threeSceneViewForCPMPIP-CFMeh1a1.js → threeSceneViewForCPMPIP-BRcYZwUP.js} +9 -9
  91. package/dist/{threeSceneViewForCPMPIP-DWIRSSMI.cjs → threeSceneViewForCPMPIP-QaddctTy.cjs} +1 -1
  92. package/dist/{threeTrackPathView-zpNY2aoY.js → threeTrackPathView-4BeFstTz.js} +4 -4
  93. package/dist/{threeTrackPathView-jcnhqw1L.cjs → threeTrackPathView-B7nPn2Ux.cjs} +1 -1
  94. package/dist/{threeViewerHost-SnFuinLz.js → threeViewerHost-Cn8KRcg6.js} +3 -3
  95. package/dist/{threeViewerHost-Bmk1dyAX.cjs → threeViewerHost-jb5Evx2L.cjs} +1 -1
  96. package/dist/{urdfTree-BqMKYhyU.js → urdfTree-6IOpa4uv.js} +1 -1
  97. package/dist/{urdfTree-BhIdc1in.cjs → urdfTree-BKFaMWwA.cjs} +1 -1
  98. package/dist/{workpieceTreePanel-CrJBeLgr.js → workpieceTreePanel-BxHEIkWb.js} +5 -5
  99. package/dist/{workpieceTreePanel-ugZl4wP-.cjs → workpieceTreePanel-cCIDMmlI.cjs} +1 -1
  100. package/package.json +2 -2
  101. package/dist/index-B6nEh_Jv.js +0 -2865
  102. package/dist/index-BQ4Ui0xZ.cjs +0 -1
  103. package/dist/index-CBzeyNqc.cjs +0 -1
  104. package/dist/index-CJz9KUlK.js +0 -2761
  105. package/dist/index-CQGU-KUl.cjs +0 -1
  106. package/dist/index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs +0 -32
@@ -1,12 +1,12 @@
1
- import { ref as G, resolveComponent as X, createBlock as $, openBlock as b, createCommentVNode as t0, createSlots as L2, withCtx as L, renderSlot as u0, defineComponent as d2, onMounted as ae, createVNode as Q, createElementVNode as o0, createElementBlock as A, Fragment as _0, renderList as C0, createTextVNode as B2, toDisplayString as j0, reactive as r1, h as Ee, Transition as $r, withDirectives as ht, vShow as jt, createApp as jr, toRefs as D4, nextTick as y2, isRef as Wr, watch as a2, computed as i0, onBeforeUnmount as On, normalizeStyle as X0, normalizeClass as K3, resolveDynamicComponent as Wt, normalizeProps as Ur, guardReactiveProps as Fr, mergeProps as a1, withModifiers as M4, inject as qr, watchEffect as we, onUnmounted as c1, unref as it, resolveDirective as Yr } from "vue";
1
+ import { ref as G, resolveComponent as X, createBlock as j, openBlock as b, createCommentVNode as t0, createSlots as L2, withCtx as I, renderSlot as f0, defineComponent as d2, onMounted as ae, createVNode as Q, createElementVNode as o0, createElementBlock as A, Fragment as _0, renderList as C0, createTextVNode as B2, toDisplayString as j0, reactive as r1, h as Ee, Transition as $r, withDirectives as ht, vShow as jt, createApp as jr, toRefs as D4, nextTick as y2, isRef as Wr, watch as a2, computed as i0, onBeforeUnmount as On, normalizeStyle as X0, normalizeClass as K3, resolveDynamicComponent as Wt, normalizeProps as Ur, guardReactiveProps as Fr, mergeProps as a1, withModifiers as M4, inject as qr, watchEffect as we, onUnmounted as c1, unref as it, resolveDirective as Yr } from "vue";
2
2
  import { S as dt } from "./index-BHtNKL1L.js";
3
- import { aR as Kr, d as Qe, aO as ms, aS as Xr, aT as Qr, aU as Jr, aV as Zr, aW as vs, aX as ws } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
3
+ import { aR as Kr, d as Qe, aO as ms, aS as Xr, aT as Qr, aU as Jr, aV as Zr, aW as vs, aX as ws } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C5hViTw-.js";
4
4
  import { _ as P0 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import { bD as T4, bE as z4, c4 as e8, c5 as xs, br as t8, aW as e3, O as i8, a8 as P4, aA as Ct, aV as bs, V as A4, c6 as n8, E as E3, p as t3, s as i3, c as Y2, a as V4, c7 as s8, aM as o8, ao as l8, c8 as r8, b as a8, aS as c8 } from "./index-DBDeHECn.js";
6
- import { _ as ne, s as Dn } from "./index-LjM9Nk8B.js";
7
- import { a as Mn, u as E4, aM as B4 } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
8
- import { u as L4, T as X3, b as h8, d as d8 } from "./threeViewerHost-SnFuinLz.js";
9
- import { s as u8 } from "./index-B524ZAt_.js";
6
+ import { _ as ne, s as Dn } from "./index--C6k-D2N.js";
7
+ import { a as Mn, u as E4, aM as B4 } from "./index.vue_vue_type_style_index_1_lang-4wOK4zzH.js";
8
+ import { u as L4, T as X3, b as h8, d as d8 } from "./threeViewerHost-Cn8KRcg6.js";
9
+ import { s as u8 } from "./index-DFF7L3iO.js";
10
10
  var f8 = "[object Date]";
11
11
  function p8(n) {
12
12
  return T4(n) && z4(n) == f8;
@@ -44,7 +44,7 @@ const m8 = {
44
44
  const e = n, t = G(e.value);
45
45
  return (i, s) => {
46
46
  const o = X("el-switch");
47
- return b(), $(o, {
47
+ return b(), j(o, {
48
48
  modelValue: t.value,
49
49
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
50
50
  "active-color": "#13ce66",
@@ -77,7 +77,7 @@ const m8 = {
77
77
  const e = n, t = G(e.value);
78
78
  return (i, s) => {
79
79
  const o = X("el-input");
80
- return Array.isArray(t.value) ? t0("", !0) : (b(), $(o, {
80
+ return Array.isArray(t.value) ? t0("", !0) : (b(), j(o, {
81
81
  key: 0,
82
82
  modelValue: t.value,
83
83
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
@@ -86,8 +86,8 @@ const m8 = {
86
86
  }, L2({ _: 2 }, [
87
87
  n.appendShow ? {
88
88
  name: "append",
89
- fn: L(() => [
90
- u0(i.$slots, "append")
89
+ fn: I(() => [
90
+ f0(i.$slots, "append")
91
91
  ]),
92
92
  key: "0"
93
93
  } : void 0
@@ -743,13 +743,13 @@ const Xd = { class: "icon-popover" }, Qd = ["onClick"], Jd = /* @__PURE__ */ d2(
743
743
  l.value = Kd();
744
744
  }), (c, d) => {
745
745
  const u = X("el-input"), f = X("el-popover");
746
- return b(), $(f, {
746
+ return b(), j(f, {
747
747
  width: "400",
748
748
  visible: o.value,
749
749
  title: "图标",
750
750
  placement: "bottom"
751
751
  }, {
752
- default: L(() => [
752
+ default: I(() => [
753
753
  o0("div", Xd, [
754
754
  (b(!0), A(_0, null, C0(l.value, (p, g) => (b(), A("div", {
755
755
  key: g,
@@ -763,7 +763,7 @@ const Xd = { class: "icon-popover" }, Qd = ["onClick"], Jd = /* @__PURE__ */ d2(
763
763
  ], 8, Qd))), 128))
764
764
  ])
765
765
  ]),
766
- reference: L(() => [
766
+ reference: I(() => [
767
767
  Q(u, {
768
768
  modelValue: s.value,
769
769
  "onUpdate:modelValue": d[0] || (d[0] = (p) => s.value = p),
@@ -773,7 +773,7 @@ const Xd = { class: "icon-popover" }, Qd = ["onClick"], Jd = /* @__PURE__ */ d2(
773
773
  onFocus: r,
774
774
  onBlur: a
775
775
  }, {
776
- prepend: L(() => [
776
+ prepend: I(() => [
777
777
  Q(dt, {
778
778
  name: s.value,
779
779
  style: { width: "20px", height: "20px" }
@@ -798,13 +798,13 @@ const Xd = { class: "icon-popover" }, Qd = ["onClick"], Jd = /* @__PURE__ */ d2(
798
798
  };
799
799
  return (o, l) => {
800
800
  const r = X("el-link");
801
- return b(), $(r, {
801
+ return b(), j(r, {
802
802
  onClick: s,
803
803
  type: "primary",
804
804
  target: "_self",
805
805
  underline: ""
806
806
  }, {
807
- default: L(() => [
807
+ default: I(() => [
808
808
  B2(j0(n.modelValue), 1)
809
809
  ]),
810
810
  _: 1
@@ -865,12 +865,12 @@ function tu(n, e) {
865
865
  r: "20",
866
866
  fill: "none"
867
867
  })
868
- ]), M = s.text ? Ee("p", { class: g.b("text") }, [s.text]) : void 0;
868
+ ]), D = s.text ? Ee("p", { class: g.b("text") }, [s.text]) : void 0;
869
869
  return Ee($r, {
870
870
  name: g.b("fade"),
871
871
  onAfterLeave: h
872
872
  }, {
873
- default: L(() => [
873
+ default: I(() => [
874
874
  ht(Q("div", {
875
875
  style: {
876
876
  backgroundColor: s.background || ""
@@ -883,7 +883,7 @@ function tu(n, e) {
883
883
  }, [
884
884
  Ee("div", {
885
885
  class: g.b("spinner")
886
- }, [y, M])
886
+ }, [y, D])
887
887
  ]), [[jt, s.visible]])
888
888
  ])
889
889
  });
@@ -1028,19 +1028,19 @@ const ou = {
1028
1028
  }, { immediate: !0 }), (d, u) => {
1029
1029
  const f = X("el-tag"), p = X("el-option"), g = X("el-select"), v = X("el-button");
1030
1030
  return b(), A("div", null, [
1031
- (b(!0), A(_0, null, C0(s.value, (w) => (b(), $(f, {
1031
+ (b(!0), A(_0, null, C0(s.value, (w) => (b(), j(f, {
1032
1032
  key: w,
1033
1033
  closable: "",
1034
1034
  "disable-transitions": !1,
1035
1035
  style: { "margin-right": "8px" },
1036
1036
  onClose: (y) => a(w)
1037
1037
  }, {
1038
- default: L(() => [
1038
+ default: I(() => [
1039
1039
  B2(j0(w), 1)
1040
1040
  ]),
1041
1041
  _: 2
1042
1042
  }, 1032, ["onClose"]))), 128)),
1043
- r.value ? (b(), $(g, {
1043
+ r.value ? (b(), j(g, {
1044
1044
  key: 0,
1045
1045
  modelValue: o.value,
1046
1046
  "onUpdate:modelValue": u[0] || (u[0] = (w) => o.value = w),
@@ -1049,21 +1049,21 @@ const ou = {
1049
1049
  onChange: c,
1050
1050
  placeholder: "请选择"
1051
1051
  }, {
1052
- default: L(() => [
1053
- (b(!0), A(_0, null, C0(l.value, (w, y) => (b(), $(p, {
1052
+ default: I(() => [
1053
+ (b(!0), A(_0, null, C0(l.value, (w, y) => (b(), j(p, {
1054
1054
  key: y,
1055
1055
  label: w == null ? void 0 : w.label,
1056
1056
  value: w == null ? void 0 : w.value
1057
1057
  }, null, 8, ["label", "value"]))), 128))
1058
1058
  ]),
1059
1059
  _: 1
1060
- }, 8, ["modelValue"])) : (b(), $(v, {
1060
+ }, 8, ["modelValue"])) : (b(), j(v, {
1061
1061
  key: 1,
1062
1062
  class: "button-new-tag",
1063
1063
  size: "small",
1064
1064
  onClick: h
1065
1065
  }, {
1066
- default: L(() => u[1] || (u[1] = [
1066
+ default: I(() => u[1] || (u[1] = [
1067
1067
  B2(" + 添加 ")
1068
1068
  ])),
1069
1069
  _: 1,
@@ -1089,7 +1089,7 @@ const ou = {
1089
1089
  const e = n, t = G(e.value);
1090
1090
  return (i, s) => {
1091
1091
  const o = X("el-input");
1092
- return b(), $(o, {
1092
+ return b(), j(o, {
1093
1093
  modelValue: t.value,
1094
1094
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1095
1095
  disabled: !(e != null && e.isEdit),
@@ -1116,7 +1116,7 @@ const ou = {
1116
1116
  const t = G(n.value);
1117
1117
  return (i, s) => {
1118
1118
  const o = X("el-color-picker");
1119
- return b(), $(o, {
1119
+ return b(), j(o, {
1120
1120
  modelValue: t.value,
1121
1121
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1122
1122
  "show-alpha": ""
@@ -1140,7 +1140,7 @@ const ou = {
1140
1140
  const t = G(n.value);
1141
1141
  return (i, s) => {
1142
1142
  const o = X("el-input");
1143
- return b(), $(o, {
1143
+ return b(), j(o, {
1144
1144
  modelValue: t.value,
1145
1145
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1146
1146
  style: { height: "100%" },
@@ -1192,16 +1192,27 @@ const ou = {
1192
1192
  (d, u, f) => u === f.findIndex((p) => p.value === d.value)
1193
1193
  );
1194
1194
  }), h = async () => {
1195
- var c, d, u, f, p;
1196
- if (((d = (c = t.optionUrl) == null ? void 0 : c.menuSelect) == null ? void 0 : d.length) > 0 || (u = t.optionUrl) != null && u.menuId) {
1197
- let g = await Kr(t.optionUrl);
1198
- o.value = [...o.value, ...g], s.value = (p = (f = o.value) == null ? void 0 : f[0]) == null ? void 0 : p.value;
1195
+ var c, d, u, f, p, g, v, w, y, D, k, O, x, S, E, L, z;
1196
+ if (((d = (c = t.optionUrl) == null ? void 0 : c.allSelectionContents) == null ? void 0 : d.length) > 0) {
1197
+ let H = "", _ = [];
1198
+ (v = (g = (p = (f = (u = t.optionUrl) == null ? void 0 : u.selectFilter) == null ? void 0 : f.replaceAll("(", "")) == null ? void 0 : p.replaceAll(")", "")) == null ? void 0 : g.split("||")) == null || v.forEach(($) => {
1199
+ let h0 = $ == null ? void 0 : $.split("=");
1200
+ H = h0 == null ? void 0 : h0[0], _ == null || _.push(h0 == null ? void 0 : h0[1]);
1201
+ });
1202
+ let R = (y = (w = t.optionUrl) == null ? void 0 : w.contactValue) == null ? void 0 : y[H], Y = _ == null ? void 0 : _.findIndex(($) => $ === R);
1203
+ o.value = (O = (k = (D = t.optionUrl) == null ? void 0 : D.allSelectionContents) == null ? void 0 : k[Y]) == null ? void 0 : O.map(($) => ({
1204
+ label: $,
1205
+ value: $
1206
+ }));
1207
+ } else if (((S = (x = t.optionUrl) == null ? void 0 : x.menuSelect) == null ? void 0 : S.length) > 0 || (E = t.optionUrl) != null && E.menuId) {
1208
+ let H = await Kr(t.optionUrl);
1209
+ o.value = [...o.value, ...H], s.value = (z = (L = o.value) == null ? void 0 : L[0]) == null ? void 0 : z.value;
1199
1210
  }
1200
1211
  i("click");
1201
1212
  };
1202
1213
  return (c, d) => {
1203
1214
  const u = X("el-option"), f = X("el-select");
1204
- return b(), $(f, {
1215
+ return b(), j(f, {
1205
1216
  modelValue: s.value,
1206
1217
  "onUpdate:modelValue": d[0] || (d[0] = (p) => s.value = p),
1207
1218
  filterable: "",
@@ -1212,8 +1223,8 @@ const ou = {
1212
1223
  onChange: l,
1213
1224
  onVisibleChange: h
1214
1225
  }, {
1215
- default: L(() => [
1216
- (b(!0), A(_0, null, C0(a.value, (p) => (b(), $(u, {
1226
+ default: I(() => [
1227
+ (b(!0), A(_0, null, C0(a.value, (p) => (b(), j(u, {
1217
1228
  key: p.value,
1218
1229
  label: p.label,
1219
1230
  value: p.value
@@ -1276,7 +1287,7 @@ const ou = {
1276
1287
  setup(n, { emit: e }) {
1277
1288
  const t = n, i = Mn(t3), { isEdit: s } = i3(i), o = E4(), { activeMenuPath: l } = i3(o);
1278
1289
  ae(() => {
1279
- I();
1290
+ H();
1280
1291
  });
1281
1292
  const r = e, a = G(null), h = G(null), c = G(), d = G(), u = G(0), f = i0(() => {
1282
1293
  var _;
@@ -1289,12 +1300,12 @@ const ou = {
1289
1300
  }, g = i0(() => {
1290
1301
  var Y;
1291
1302
  const _ = (Y = l.value) == null ? void 0 : Y.split("/");
1292
- return (_ == null ? void 0 : _.some((q) => (q == null ? void 0 : q.includes("updateLoading")) || (q == null ? void 0 : q.includes("loading")))) ? !1 : s.value === "view" && (t == null ? void 0 : t.showOperator);
1303
+ return (_ == null ? void 0 : _.some(($) => ($ == null ? void 0 : $.includes("updateLoading")) || ($ == null ? void 0 : $.includes("loading")))) ? !1 : s.value === "view" && (t == null ? void 0 : t.showOperator);
1293
1304
  }), v = (_) => us(_), w = (_) => {
1294
1305
  r("clickTrigger", _);
1295
1306
  }, y = (_) => {
1296
1307
  r("preview", _);
1297
- }, M = () => {
1308
+ }, D = () => {
1298
1309
  r("blur", d.value);
1299
1310
  }, k = (_) => {
1300
1311
  r("blurChange", d.value, {
@@ -1317,7 +1328,7 @@ const ou = {
1317
1328
  r("changeVisible", _);
1318
1329
  }, E = (_, R) => {
1319
1330
  r("handleColEditChange", _, R);
1320
- }, H = async (_, R) => {
1331
+ }, L = async (_, R) => {
1321
1332
  await y2(), r("handleColTypeChange", _, R);
1322
1333
  };
1323
1334
  a2(
@@ -1326,13 +1337,13 @@ const ou = {
1326
1337
  var R, Y;
1327
1338
  if (((R = t == null ? void 0 : t.rowContents) == null ? void 0 : R.length) === 0) return;
1328
1339
  const _ = {};
1329
- (Y = Y2(t == null ? void 0 : t.rowContents)) == null || Y.forEach((q) => {
1330
- _[(q == null ? void 0 : q.prop) ?? (q == null ? void 0 : q.name)] = x(q == null ? void 0 : q.type, q == null ? void 0 : q.value);
1340
+ (Y = Y2(t == null ? void 0 : t.rowContents)) == null || Y.forEach(($) => {
1341
+ _[($ == null ? void 0 : $.prop) ?? ($ == null ? void 0 : $.name)] = x($ == null ? void 0 : $.type, $ == null ? void 0 : $.value);
1331
1342
  }), c.value = _, d.value = _, O();
1332
1343
  },
1333
1344
  { deep: !0, immediate: !0 }
1334
1345
  );
1335
- const P = async (_, R) => {
1346
+ const z = async (_, R) => {
1336
1347
  if (await y2(), !!R) {
1337
1348
  if (_ === "取消")
1338
1349
  return r(
@@ -1342,21 +1353,21 @@ const ou = {
1342
1353
  buttonName: _
1343
1354
  }
1344
1355
  );
1345
- await (R == null ? void 0 : R.validate((Y, q) => {
1356
+ await (R == null ? void 0 : R.validate((Y, $) => {
1346
1357
  Y ? r(
1347
1358
  "onButtonClick",
1348
1359
  {
1349
1360
  content: d.value,
1350
1361
  buttonName: _
1351
1362
  }
1352
- ) : console.log("表单校验失败", q);
1363
+ ) : console.log("表单校验失败", $);
1353
1364
  }));
1354
1365
  }
1355
1366
  };
1356
1367
  On(() => {
1357
1368
  c.value = void 0, d.value = void 0, u.value = null;
1358
1369
  });
1359
- const I = () => {
1370
+ const H = () => {
1360
1371
  if (d.value) {
1361
1372
  let _ = {};
1362
1373
  for (let R in d.value)
@@ -1374,20 +1385,20 @@ const ou = {
1374
1385
  { deep: !0 }
1375
1386
  ), (_, R) => {
1376
1387
  var y0;
1377
- const Y = X("el-form-item"), q = X("el-form"), m0 = X("el-button");
1388
+ const Y = X("el-form-item"), $ = X("el-form"), h0 = X("el-button");
1378
1389
  return b(), A("div", {
1379
1390
  class: "form-content",
1380
1391
  style: X0({ flexDirection: n.isButtonRow ? "row" : "column" })
1381
1392
  }, [
1382
1393
  g.value ? (b(), A("div", hu, [
1383
- u0(_.$slots, "operateCol", {
1394
+ f0(_.$slots, "operateCol", {
1384
1395
  renderColumns: n.rowContents,
1385
1396
  formDisabled: n.formDisabled,
1386
1397
  formLabelsOperable: n.formLabelsOperable
1387
1398
  }, void 0, !0)
1388
1399
  ])) : t0("", !0),
1389
1400
  o0("div", du, [
1390
- t.isEnableWrap ? (b(), $(q, {
1401
+ t.isEnableWrap ? (b(), j($, {
1391
1402
  ref_key: "formWrapRef",
1392
1403
  ref: a,
1393
1404
  model: c.value,
@@ -1396,20 +1407,20 @@ const ou = {
1396
1407
  class: K3(n.formDisabled ? "form-data disabled-form" : "form-data"),
1397
1408
  key: t.isRowFlex + u.value
1398
1409
  }, {
1399
- default: L(() => {
1410
+ default: I(() => {
1400
1411
  var v0;
1401
1412
  return [
1402
- (b(!0), A(_0, null, C0(t == null ? void 0 : t.rowContents, (m, B0) => ht((b(), $(Y, {
1413
+ (b(!0), A(_0, null, C0(t == null ? void 0 : t.rowContents, (m, B0) => ht((b(), j(Y, {
1403
1414
  key: B0,
1404
1415
  disabled: n.formDisabled || (m == null ? void 0 : m.disabled),
1405
1416
  class: "form-item",
1406
1417
  prop: (m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name),
1407
1418
  style: X0({ flexDirection: n.isRowFlex ? "row" : "column", alignItems: n.isRowFlex ? "center" : "start", height: n.isRowFlex ? "100%" : "auto" })
1408
1419
  }, L2({
1409
- default: L(() => {
1420
+ default: I(() => {
1410
1421
  var k0, I0, U0, t2, o2, C2, k2, Oe, De, Me, Te, ze, Pe, Ae;
1411
1422
  return [
1412
- m != null && m.isFormColHidden ? t0("", !0) : (b(), $(Wt(v((m == null ? void 0 : m.type) ?? "Input")), {
1423
+ m != null && m.isFormColHidden ? t0("", !0) : (b(), j(Wt(v((m == null ? void 0 : m.type) ?? "Input")), {
1413
1424
  modelValue: d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)],
1414
1425
  "onUpdate:modelValue": (N2) => d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)] = N2,
1415
1426
  key: m == null ? void 0 : m.type,
@@ -1417,14 +1428,14 @@ const ou = {
1417
1428
  isEdit: t == null ? void 0 : t.isEdit,
1418
1429
  disabled: m == null ? void 0 : m.disabled,
1419
1430
  onClickTrigger: w,
1420
- onBlur: M,
1421
- onChange: I,
1431
+ onBlur: D,
1432
+ onChange: H,
1422
1433
  optionUrl: m == null ? void 0 : m.optionUrl,
1423
1434
  onChangeVisible: S,
1424
1435
  onBlurChange: (N2) => k((m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)),
1425
1436
  config: m == null ? void 0 : m.config
1426
1437
  }, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "disabled", "optionUrl", "onBlurChange", "config"])),
1427
- typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || (U0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && U0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (o2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && o2.includes(".ls") || (C2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && C2.includes(".uv") || (k2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(), $(ne, {
1438
+ typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || (U0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && U0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (o2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && o2.includes(".ls") || (C2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && C2.includes(".uv") || (k2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(), j(ne, {
1428
1439
  key: 1,
1429
1440
  class: "calculator-content form-preview",
1430
1441
  onClickTrigger: (N2) => y(d.value[(m == null ? void 0 : m.prop) ?? m.name]),
@@ -1436,26 +1447,26 @@ const ou = {
1436
1447
  }, [
1437
1448
  !(m != null && m.isFormColHidden) && (m != null && m.label) ? {
1438
1449
  name: "label",
1439
- fn: L(() => [
1450
+ fn: I(() => [
1440
1451
  m != null && m.label ? (b(), A("div", {
1441
1452
  key: 0,
1442
1453
  class: "from-item-label",
1443
1454
  style: X0({ width: n.isRowFlex ? "72px" : "260px", minWidth: n.isRowFlex ? "72px" : "260px" })
1444
1455
  }, [
1445
- m != null && m.operable ? (b(), $(n3, {
1456
+ m != null && m.operable ? (b(), j(n3, {
1446
1457
  key: 0,
1447
1458
  value: m == null ? void 0 : m.label,
1448
1459
  appendShow: !0,
1449
1460
  class: "col-edit-input",
1450
1461
  onChange: (k0) => E(k0, m)
1451
1462
  }, {
1452
- append: L(() => [
1463
+ append: I(() => [
1453
1464
  Q(s3, {
1454
1465
  value: m == null ? void 0 : m.type,
1455
1466
  content: f.value,
1456
1467
  placeholder: "类型",
1457
1468
  style: { width: "100%" },
1458
- onChange: (k0) => H(k0, m)
1469
+ onChange: (k0) => L(k0, m)
1459
1470
  }, null, 8, ["value", "content", "onChange"])
1460
1471
  ]),
1461
1472
  _: 2
@@ -1480,14 +1491,14 @@ const ou = {
1480
1491
  key: 0,
1481
1492
  class: "form-button-item",
1482
1493
  style: X0({ background: (m == null ? void 0 : m.background) ?? "var(--ssComponent-primary-color)" }),
1483
- onClick: (k0) => P(m == null ? void 0 : m.label, a.value)
1494
+ onClick: (k0) => z(m == null ? void 0 : m.label, a.value)
1484
1495
  }, j0(m == null ? void 0 : m.label), 13, fu)) : t0("", !0)
1485
1496
  ]))), 128))
1486
1497
  ], 4)) : t0("", !0)
1487
1498
  ];
1488
1499
  }),
1489
1500
  _: 1
1490
- }, 8, ["model", "rules", "disabled", "class"])) : (b(), $(q, {
1501
+ }, 8, ["model", "rules", "disabled", "class"])) : (b(), j($, {
1491
1502
  ref_key: "formRef",
1492
1503
  ref: h,
1493
1504
  model: d.value,
@@ -1496,10 +1507,10 @@ const ou = {
1496
1507
  class: K3(n.formDisabled ? "form-noRegular-data disabled-form" : "form-noRegular-data"),
1497
1508
  key: u.value
1498
1509
  }, {
1499
- default: L(() => {
1510
+ default: I(() => {
1500
1511
  var v0;
1501
1512
  return [
1502
- (b(!0), A(_0, null, C0(t == null ? void 0 : t.rowContents, (m, B0) => ht((b(), $(Y, {
1513
+ (b(!0), A(_0, null, C0(t == null ? void 0 : t.rowContents, (m, B0) => ht((b(), j(Y, {
1503
1514
  key: B0,
1504
1515
  class: K3(["form-item", { "form-row-content": !n.isRowFlex }]),
1505
1516
  prop: (m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name),
@@ -1512,18 +1523,18 @@ const ou = {
1512
1523
  minWidth: `calc((100% / ${(m == null ? void 0 : m.width) ?? 1}) - 12px)`
1513
1524
  })
1514
1525
  }, L2({
1515
- default: L(() => {
1526
+ default: I(() => {
1516
1527
  var k0, I0, U0, t2, o2, C2, k2, Oe, De, Me, Te, ze, Pe, Ae;
1517
1528
  return [
1518
- !(m != null && m.isFormColHidden) && (m == null ? void 0 : m.type) !== "Url" ? (b(), $(Wt(v((m == null ? void 0 : m.type) ?? "Input")), {
1529
+ !(m != null && m.isFormColHidden) && (m == null ? void 0 : m.type) !== "Url" ? (b(), j(Wt(v((m == null ? void 0 : m.type) ?? "Input")), {
1519
1530
  modelValue: d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)],
1520
1531
  "onUpdate:modelValue": (N2) => d.value[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.name)] = N2,
1521
1532
  isEdit: t == null ? void 0 : t.isEdit,
1522
1533
  disabled: m == null ? void 0 : m.disabled,
1523
1534
  content: (m == null ? void 0 : m.contents) ?? [],
1524
1535
  onClickTrigger: w,
1525
- onChange: I,
1526
- onBlur: M,
1536
+ onChange: H,
1537
+ onBlur: D,
1527
1538
  key: m == null ? void 0 : m.type,
1528
1539
  optionUrl: m == null ? void 0 : m.optionUrl,
1529
1540
  onChangeVisible: S,
@@ -1537,7 +1548,7 @@ const ou = {
1537
1548
  modelValue: "详情"
1538
1549
  }, null, 8, ["onClickTrigger"])
1539
1550
  ])) : t0("", !0),
1540
- typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || (U0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && U0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (o2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && o2.includes(".ls") || (C2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && C2.includes(".uv") || (k2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(), $(ne, {
1551
+ typeof d.value[(m == null ? void 0 : m.prop) ?? m.name] == "string" && ((k0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k0.includes(".stl") || (I0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && I0.includes(".obj") || (U0 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && U0.includes(".urdf") || (t2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && t2.includes(".STL") || (o2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && o2.includes(".ls") || (C2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && C2.includes(".uv") || (k2 = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && k2.includes(".UV") || (Oe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Oe.includes(".cpt") || (De = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && De.includes(".CPT") || (Me = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Me.includes(".cyd") || (Te = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Te.includes(".CYD") || (ze = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && ze.includes(".nc") || (Pe = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Pe.includes(".NC") || (Ae = d.value[(m == null ? void 0 : m.prop) ?? m.name]) != null && Ae.includes(".csv")) ? (b(), j(ne, {
1541
1552
  key: 2,
1542
1553
  class: "calculator-content form-preview",
1543
1554
  onClickTrigger: (N2) => y(d.value[(m == null ? void 0 : m.prop) ?? m.name]),
@@ -1549,26 +1560,26 @@ const ou = {
1549
1560
  }, [
1550
1561
  !(m != null && m.isFormColHidden) && (m != null && m.label) ? {
1551
1562
  name: "label",
1552
- fn: L(() => [
1563
+ fn: I(() => [
1553
1564
  m != null && m.label ? (b(), A("div", {
1554
1565
  key: 0,
1555
1566
  class: "from-item-label",
1556
1567
  style: X0({ width: n.isRowFlex ? "72px" : "auto", minWidth: n.isRowFlex ? "72px" : `calc((100% / ${(m == null ? void 0 : m.width) ?? 1}) - 8px)` })
1557
1568
  }, [
1558
- m != null && m.operable ? (b(), $(n3, {
1569
+ m != null && m.operable ? (b(), j(n3, {
1559
1570
  key: 0,
1560
1571
  value: m == null ? void 0 : m.label,
1561
1572
  appendShow: !0,
1562
1573
  class: "col-edit-input",
1563
1574
  onChange: (k0) => E(k0, m)
1564
1575
  }, {
1565
- append: L(() => [
1576
+ append: I(() => [
1566
1577
  Q(s3, {
1567
1578
  value: m == null ? void 0 : m.type,
1568
1579
  content: f.value,
1569
1580
  placeholder: "类型",
1570
1581
  style: { width: "100%" },
1571
- onChange: (k0) => H(k0, m)
1582
+ onChange: (k0) => L(k0, m)
1572
1583
  }, null, 8, ["value", "content", "onChange"])
1573
1584
  ]),
1574
1585
  _: 2
@@ -1593,7 +1604,7 @@ const ou = {
1593
1604
  key: 0,
1594
1605
  class: "form-button-item",
1595
1606
  style: X0({ background: (m == null ? void 0 : m.background) ?? "var(--ssComponent-primary-color)" }),
1596
- onClick: (k0) => P(m == null ? void 0 : m.label, h.value)
1607
+ onClick: (k0) => z(m == null ? void 0 : m.label, h.value)
1597
1608
  }, j0(m == null ? void 0 : m.label), 13, mu)) : t0("", !0)
1598
1609
  ]))), 128))
1599
1610
  ], 4)) : t0("", !0)
@@ -1610,13 +1621,13 @@ const ou = {
1610
1621
  (b(!0), A(_0, null, C0(t == null ? void 0 : t.buttonValue, (v0, m) => (b(), A("div", {
1611
1622
  key: m,
1612
1623
  class: "form-button-content",
1613
- onClick: (B0) => P(v0 == null ? void 0 : v0.label, t.isEnableWrap ? a.value : h.value)
1624
+ onClick: (B0) => z(v0 == null ? void 0 : v0.label, t.isEnableWrap ? a.value : h.value)
1614
1625
  }, [
1615
- Q(m0, {
1626
+ Q(h0, {
1616
1627
  id: "themeButton",
1617
1628
  style: X0({ background: (v0 == null ? void 0 : v0.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" })
1618
1629
  }, {
1619
- default: L(() => [
1630
+ default: I(() => [
1620
1631
  B2(j0(v0 == null ? void 0 : v0.label), 1)
1621
1632
  ]),
1622
1633
  _: 2
@@ -1653,7 +1664,7 @@ const ou = {
1653
1664
  };
1654
1665
  return (l, r) => {
1655
1666
  var a, h, c, d, u, f, p, g;
1656
- return b(), $(xu, {
1667
+ return b(), j(xu, {
1657
1668
  rowContents: ((a = t == null ? void 0 : t.content) == null ? void 0 : a.rowContents) ?? [],
1658
1669
  formRules: (h = t == null ? void 0 : t.content) == null ? void 0 : h.formRules,
1659
1670
  buttonValue: ((c = t == null ? void 0 : t.content) == null ? void 0 : c.buttonValue) ?? [],
@@ -1687,19 +1698,19 @@ const ou = {
1687
1698
  };
1688
1699
  return (l, r) => {
1689
1700
  const a = X("el-radio"), h = X("el-radio-group");
1690
- return b(), $(h, {
1701
+ return b(), j(h, {
1691
1702
  modelValue: i.value,
1692
1703
  "onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
1693
1704
  style: { height: "100%" },
1694
1705
  onChange: r[1] || (r[1] = (c) => o(c))
1695
1706
  }, {
1696
- default: L(() => [
1697
- (b(!0), A(_0, null, C0(t.content, (c, d) => (b(), $(a, {
1707
+ default: I(() => [
1708
+ (b(!0), A(_0, null, C0(t.content, (c, d) => (b(), j(a, {
1698
1709
  key: d,
1699
1710
  label: c.value,
1700
1711
  disabled: c == null ? void 0 : c.disabled
1701
1712
  }, {
1702
- default: L(() => [
1713
+ default: I(() => [
1703
1714
  B2(j0(c == null ? void 0 : c.label), 1)
1704
1715
  ]),
1705
1716
  _: 2
@@ -1737,23 +1748,23 @@ const ou = {
1737
1748
  };
1738
1749
  return (l, r) => {
1739
1750
  const a = X("el-checkbox"), h = X("el-checkbox-group");
1740
- return b(), $(h, {
1751
+ return b(), j(h, {
1741
1752
  modelValue: i.value,
1742
1753
  "onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
1743
1754
  style: { height: "100%" },
1744
1755
  min: n.min,
1745
1756
  onChange: r[1] || (r[1] = (c) => o(c))
1746
1757
  }, {
1747
- default: L(() => [
1748
- (b(!0), A(_0, null, C0(n.content, (c) => (b(), $(a, {
1758
+ default: I(() => [
1759
+ (b(!0), A(_0, null, C0(n.content, (c) => (b(), j(a, {
1749
1760
  key: c.label,
1750
1761
  label: c.label,
1751
1762
  value: c.value,
1752
1763
  style: X0({ width: n.isWrap ? "100%" : "auto", marginRight: n.isWrap ? 0 : "12px" })
1753
1764
  }, {
1754
- default: L(() => [
1765
+ default: I(() => [
1755
1766
  o0("span", null, j0(c.label), 1),
1756
- u0(l.$slots, "append")
1767
+ f0(l.$slots, "append")
1757
1768
  ]),
1758
1769
  _: 2
1759
1770
  }, 1032, ["label", "value", "style"]))), 128))
@@ -1783,13 +1794,13 @@ const ou = {
1783
1794
  });
1784
1795
  }), (t, i) => {
1785
1796
  var s;
1786
- return b(), $(Ir, {
1797
+ return b(), j(Ir, {
1787
1798
  tabsContents: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.tabsContents) ?? []
1788
1799
  }, L2({ _: 2 }, [
1789
1800
  C0(t.$slots, (o, l) => ({
1790
1801
  name: l,
1791
- fn: L((r) => [
1792
- u0(t.$slots, l, Ur(Fr(r || {})))
1802
+ fn: I((r) => [
1803
+ f0(t.$slots, l, Ur(Fr(r || {})))
1793
1804
  ])
1794
1805
  }))
1795
1806
  ]), 1032, ["tabsContents"]);
@@ -1798,9 +1809,9 @@ const ou = {
1798
1809
  }, ku = {};
1799
1810
  function Ou(n, e) {
1800
1811
  const t = X("el-card");
1801
- return b(), $(t, null, {
1802
- default: L(() => [
1803
- u0(n.$slots, "content")
1812
+ return b(), j(t, null, {
1813
+ default: I(() => [
1814
+ f0(n.$slots, "content")
1804
1815
  ]),
1805
1816
  _: 3
1806
1817
  });
@@ -1840,7 +1851,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
1840
1851
  },
1841
1852
  { deep: !0, immediate: !0 }
1842
1853
  ), (o, l) => (b(), A("div", Mu, [
1843
- u0(o.$slots, "headerButton", {}, void 0, !0)
1854
+ f0(o.$slots, "headerButton", {}, void 0, !0)
1844
1855
  ]));
1845
1856
  }
1846
1857
  }, zu = /* @__PURE__ */ P0(Tu, [["__scopeId", "data-v-00ed78e9"]]), Pu = { key: 0 }, Au = /* @__PURE__ */ d2({
@@ -1855,7 +1866,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
1855
1866
  return (e, t) => {
1856
1867
  var r, a, h, c, d, u, f, p, g, v, w;
1857
1868
  const i = X("svg-icon"), s = X("el-tooltip"), o = X("RecurseCol", !0), l = X("el-table-column");
1858
- return n.column.isHidden ? t0("", !0) : (b(), $(l, {
1869
+ return n.column.isHidden ? t0("", !0) : (b(), j(l, {
1859
1870
  key: 0,
1860
1871
  label: n.column.label,
1861
1872
  prop: n.column.prop,
@@ -1867,14 +1878,14 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
1867
1878
  "min-width": ((g = n.column) == null ? void 0 : g.label) === "操作" ? 40 : (v = n.column) == null ? void 0 : v.width,
1868
1879
  "class-name": (((w = n.column) == null ? void 0 : w.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
1869
1880
  }, {
1870
- header: L(() => [
1871
- n.column.label !== "操作" ? (b(), A("span", Pu, j0(n.column.label), 1)) : (b(), $(s, {
1881
+ header: I(() => [
1882
+ n.column.label !== "操作" ? (b(), A("span", Pu, j0(n.column.label), 1)) : (b(), j(s, {
1872
1883
  key: 1,
1873
1884
  content: "操作",
1874
1885
  placement: "left-start",
1875
1886
  effect: "light"
1876
1887
  }, {
1877
- default: L(() => [
1888
+ default: I(() => [
1878
1889
  Q(i, {
1879
1890
  name: "operate",
1880
1891
  style: { width: "15px", height: "15px" }
@@ -1883,25 +1894,25 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
1883
1894
  _: 1
1884
1895
  }))
1885
1896
  ]),
1886
- default: L((y) => [
1887
- u0(e.$slots, "content", {
1897
+ default: I((y) => [
1898
+ f0(e.$slots, "content", {
1888
1899
  row: y.row,
1889
1900
  column: y.column,
1890
1901
  $index: y.$index,
1891
1902
  scope: y
1892
1903
  }),
1893
- (b(!0), A(_0, null, C0(n.column.children, (M, k) => (b(), $(o, {
1904
+ (b(!0), A(_0, null, C0(n.column.children, (D, k) => (b(), j(o, {
1894
1905
  key: k,
1895
- column: M
1906
+ column: D
1896
1907
  }, L2({ _: 2 }, [
1897
1908
  C0(e.$slots, (O, x) => ({
1898
1909
  name: x,
1899
- fn: L(({ row: S, slotData: E, item: H, column: P }) => [
1900
- u0(e.$slots, x, a1({ ref_for: !0 }, E ?? S, {
1901
- item: H ?? M,
1910
+ fn: I(({ row: S, slotData: E, item: L, column: z }) => [
1911
+ f0(e.$slots, x, a1({ ref_for: !0 }, E ?? S, {
1912
+ item: L ?? D,
1902
1913
  slotData: E ?? S,
1903
1914
  row: S,
1904
- column: P
1915
+ column: z
1905
1916
  }))
1906
1917
  ])
1907
1918
  }))
@@ -1953,36 +1964,36 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
1953
1964
  })) : !1;
1954
1965
  };
1955
1966
  return (d, u) => {
1956
- var g, v, w, y, M, k, O, x, S, E, H, P;
1967
+ var g, v, w, y, D, k, O, x, S, E, L, z;
1957
1968
  const f = X("svg-icon"), p = X("el-table-column");
1958
- return n.column.isTableColHidden ? t0("", !0) : (b(), $(p, {
1969
+ return n.column.isTableColHidden ? t0("", !0) : (b(), j(p, {
1959
1970
  key: 0,
1960
1971
  label: n.column.label,
1961
1972
  prop: n.column.prop,
1962
1973
  fixed: ((g = n.column) == null ? void 0 : g.label) === "操作" ? "right" : (v = n.column) == null ? void 0 : v.fixed,
1963
1974
  align: ((w = n.column) == null ? void 0 : w.align) ?? "left",
1964
- sortable: ((y = n.column) == null ? void 0 : y.label) === "操作" ? !1 : ((M = n.column) == null ? void 0 : M.sortable) ?? !1,
1975
+ sortable: ((y = n.column) == null ? void 0 : y.label) === "操作" ? !1 : ((D = n.column) == null ? void 0 : D.sortable) ?? !1,
1965
1976
  filters: (k = n.column) != null && k.filterable ? c(n.column) : null,
1966
1977
  "filter-method": l,
1967
1978
  "show-overflow-tooltip": ((O = n.column) == null ? void 0 : O.showOverflowTooltip) ?? !0,
1968
1979
  width: ((x = n.column) == null ? void 0 : x.width) > 80 ? 80 : (S = n.column) == null ? void 0 : S.width,
1969
1980
  "min-width": ((E = n.column) == null ? void 0 : E.label) === "操作" ? 40 : "auto",
1970
- "class-name": ((H = n.column) == null ? void 0 : H.prop) === "operate" ? "action" : (((P = n.column) == null ? void 0 : P.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
1981
+ "class-name": ((L = n.column) == null ? void 0 : L.prop) === "operate" ? "action" : (((z = n.column) == null ? void 0 : z.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
1971
1982
  }, {
1972
- header: L(() => [
1983
+ header: I(() => [
1973
1984
  n.column.label !== "操作" ? (b(), A(_0, { key: 0 }, [
1974
- n.column.operable && n.isEditViewport ? (b(), $(n3, {
1985
+ n.column.operable && n.isEditViewport ? (b(), j(n3, {
1975
1986
  key: 0,
1976
1987
  value: s.value.label,
1977
1988
  appendShow: !0,
1978
1989
  class: "col-edit-input",
1979
- onChange: u[1] || (u[1] = (I) => r(I, n.column))
1990
+ onChange: u[1] || (u[1] = (H) => r(H, n.column))
1980
1991
  }, {
1981
- append: L(() => {
1982
- var I;
1992
+ append: I(() => {
1993
+ var H;
1983
1994
  return [
1984
1995
  Q(s3, {
1985
- value: (I = n.column) == null ? void 0 : I.columnType,
1996
+ value: (H = n.column) == null ? void 0 : H.columnType,
1986
1997
  content: o.value,
1987
1998
  clearable: !1,
1988
1999
  placeholder: "类型",
@@ -1996,16 +2007,16 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
1996
2007
  key: 1,
1997
2008
  title: n.column.label
1998
2009
  }, j0(n.column.label), 9, Vu))
1999
- ], 64)) : u0(d.$slots, "operateHeader", { key: 1 })
2010
+ ], 64)) : f0(d.$slots, "operateHeader", { key: 1 })
2000
2011
  ]),
2001
- "filter-icon": L(() => {
2002
- var I, _, R, Y;
2012
+ "filter-icon": I(() => {
2013
+ var H, _, R, Y;
2003
2014
  return [
2004
- (I = n.column) != null && I.filterable && ((_ = n.column) == null ? void 0 : _.label) !== "操作" ? (b(), $(f, {
2015
+ (H = n.column) != null && H.filterable && ((_ = n.column) == null ? void 0 : _.label) !== "操作" ? (b(), j(f, {
2005
2016
  key: 0,
2006
2017
  name: (R = n.column) != null && R.filterable && ((Y = n.column) == null ? void 0 : Y.label) !== "操作" ? "colFilter" : "",
2007
2018
  class: "custom-filter-icon"
2008
- }, null, 8, ["name"])) : (b(), $(f, {
2019
+ }, null, 8, ["name"])) : (b(), j(f, {
2009
2020
  key: 1,
2010
2021
  onClick: u[2] || (u[2] = M4(() => {
2011
2022
  }, ["stop"])),
@@ -2013,24 +2024,24 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2013
2024
  }))
2014
2025
  ];
2015
2026
  }),
2016
- default: L((I) => [
2017
- u0(d.$slots, "content", {
2018
- row: I.row,
2019
- column: I.column,
2020
- $index: I.$index,
2021
- scope: I
2027
+ default: I((H) => [
2028
+ f0(d.$slots, "content", {
2029
+ row: H.row,
2030
+ column: H.column,
2031
+ $index: H.$index,
2032
+ scope: H
2022
2033
  }),
2023
- (b(!0), A(_0, null, C0(n.column.children, (_, R) => (b(), $(Au, {
2034
+ (b(!0), A(_0, null, C0(n.column.children, (_, R) => (b(), j(Au, {
2024
2035
  key: R,
2025
2036
  column: _
2026
2037
  }, L2({ _: 2 }, [
2027
- C0(d.$slots, (Y, q) => ({
2028
- name: q,
2029
- fn: L(({ row: m0, slotData: y0, item: v0, column: m }) => [
2030
- u0(d.$slots, q, a1({ ref_for: !0 }, y0 ?? m0, {
2038
+ C0(d.$slots, (Y, $) => ({
2039
+ name: $,
2040
+ fn: I(({ row: h0, slotData: y0, item: v0, column: m }) => [
2041
+ f0(d.$slots, $, a1({ ref_for: !0 }, y0 ?? h0, {
2031
2042
  item: v0 ?? _,
2032
- slotData: y0 ?? m0,
2033
- row: m0,
2043
+ slotData: y0 ?? h0,
2044
+ row: h0,
2034
2045
  column: m,
2035
2046
  columnProp: _
2036
2047
  }))
@@ -2058,19 +2069,19 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2058
2069
  const i = X("el-card");
2059
2070
  return b(), A("div", null, [
2060
2071
  Q(i, null, {
2061
- header: L(() => [
2062
- u0(e.$slots, "header", {}, void 0, !0)
2072
+ header: I(() => [
2073
+ f0(e.$slots, "header", {}, void 0, !0)
2063
2074
  ]),
2064
- footer: L(() => [
2065
- u0(e.$slots, "footer", {}, void 0, !0)
2075
+ footer: I(() => [
2076
+ f0(e.$slots, "footer", {}, void 0, !0)
2066
2077
  ]),
2067
- default: L(() => [
2068
- u0(e.$slots, "content", {}, void 0, !0)
2078
+ default: I(() => [
2079
+ f0(e.$slots, "content", {}, void 0, !0)
2069
2080
  ]),
2070
2081
  _: 3
2071
2082
  }),
2072
2083
  n.showTag ? (b(), A("div", Bu, [
2073
- u0(e.$slots, "status", {}, void 0, !0)
2084
+ f0(e.$slots, "status", {}, void 0, !0)
2074
2085
  ])) : t0("", !0)
2075
2086
  ]);
2076
2087
  };
@@ -2143,11 +2154,11 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2143
2154
  const i = G(!1), s = G(), o = G(), l = r1({ x: 0, y: 0 }), r = G([]), a = G([]), h = G(0), c = G(null), d = G(null), u = G(null), f = e, p = qr("contentRef");
2144
2155
  ae(() => {
2145
2156
  var C;
2146
- w = v(), r.value = t == null ? void 0 : t.columns, a.value = (C = t == null ? void 0 : t.tableData) == null ? void 0 : C.map((z) => {
2147
- var J, r0, p0;
2157
+ w = v(), r.value = t == null ? void 0 : t.columns, a.value = (C = t == null ? void 0 : t.tableData) == null ? void 0 : C.map((P) => {
2158
+ var J, r0, g0;
2148
2159
  let V = {};
2149
- for (let Z in z)
2150
- Z !== "level" && (V[Z] = Ss(z[Z]) && z[Z] === 0 ? (J = z[Z]) == null ? void 0 : J.toString() : z[Z]), Z !== "id" && ((r0 = yt.value) == null ? void 0 : r0.prop) !== Z && g(z[Z]) ? V[Z] = z[Z] ? (p0 = Qe(z[Z])) == null ? void 0 : p0.format("YYYY-MM-DD HH:mm:ss") : z[Z] : V[Z] = z[Z];
2160
+ for (let Z in P)
2161
+ Z !== "level" && (V[Z] = Ss(P[Z]) && P[Z] === 0 ? (J = P[Z]) == null ? void 0 : J.toString() : P[Z]), Z !== "id" && ((r0 = yt.value) == null ? void 0 : r0.prop) !== Z && g(P[Z]) ? V[Z] = P[Z] ? (g0 = Qe(P[Z])) == null ? void 0 : g0.format("YYYY-MM-DD HH:mm:ss") : P[Z] : V[Z] = P[Z];
2151
2162
  return V;
2152
2163
  }), o2(), k2(), document.addEventListener("click", O);
2153
2164
  });
@@ -2158,21 +2169,21 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2158
2169
  return !isNaN(V.getTime());
2159
2170
  };
2160
2171
  function v() {
2161
- const C = /* @__PURE__ */ new WeakSet(), z = new MutationObserver(Z), V = /* @__PURE__ */ new WeakMap(), J = [];
2172
+ const C = /* @__PURE__ */ new WeakSet(), P = new MutationObserver(Z), V = /* @__PURE__ */ new WeakMap(), J = [];
2162
2173
  function r0(e0) {
2163
2174
  try {
2164
- const l0 = e0.getBoundingClientRect(), d0 = e0.clientWidth || l0.width || 1, a0 = l0.width / d0 || 1, K = parseFloat(getComputedStyle(e0).zoom || "1");
2175
+ const l0 = e0.getBoundingClientRect(), u0 = e0.clientWidth || l0.width || 1, a0 = l0.width / u0 || 1, K = parseFloat(getComputedStyle(e0).zoom || "1");
2165
2176
  return K ? a0 / K : a0;
2166
2177
  } catch {
2167
2178
  return 1;
2168
2179
  }
2169
2180
  }
2170
- function p0(e0) {
2181
+ function g0(e0) {
2171
2182
  var a0;
2172
2183
  if (!e0 || C.has(e0)) return;
2173
2184
  C.add(e0);
2174
- const l0 = e0.parentElement, d0 = (a0 = e0.closest(".el-scrollbar")) == null ? void 0 : a0.querySelector(".el-scrollbar__wrap");
2175
- !l0 || !d0 || e0.addEventListener(
2185
+ const l0 = e0.parentElement, u0 = (a0 = e0.closest(".el-scrollbar")) == null ? void 0 : a0.querySelector(".el-scrollbar__wrap");
2186
+ !l0 || !u0 || e0.addEventListener(
2176
2187
  "pointerdown",
2177
2188
  (K) => {
2178
2189
  K.preventDefault(), K.stopPropagation();
@@ -2181,17 +2192,17 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2181
2192
  } catch {
2182
2193
  }
2183
2194
  l0.classList.add("is-dragging");
2184
- const g0 = r0(l0), n0 = l0.clientWidth || 1, S0 = e0.clientWidth || 0, A0 = Math.max(1, (n0 - S0) / g0), O2 = Math.max(1, (d0.scrollWidth || 0) - (d0.clientWidth || 0)), D = K.clientX, l2 = d0.scrollLeft, L0 = O2 / A0, j = (V0) => {
2185
- const Y3 = (V0.clientX - D) / g0;
2186
- d0.scrollLeft = l2 + Y3 * L0;
2195
+ const m0 = r0(l0), n0 = l0.clientWidth || 1, S0 = e0.clientWidth || 0, A0 = Math.max(1, (n0 - S0) / m0), O2 = Math.max(1, (u0.scrollWidth || 0) - (u0.clientWidth || 0)), M = K.clientX, l2 = u0.scrollLeft, L0 = O2 / A0, W = (V0) => {
2196
+ const Y3 = (V0.clientX - M) / m0;
2197
+ u0.scrollLeft = l2 + Y3 * L0;
2187
2198
  }, c0 = () => {
2188
2199
  try {
2189
2200
  e0.releasePointerCapture && e0.releasePointerCapture(K.pointerId);
2190
2201
  } catch {
2191
2202
  }
2192
- e0.removeEventListener("pointermove", j), e0.removeEventListener("pointerup", c0), e0.removeEventListener("pointercancel", c0), l0.classList.remove("is-dragging");
2203
+ e0.removeEventListener("pointermove", W), e0.removeEventListener("pointerup", c0), e0.removeEventListener("pointercancel", c0), l0.classList.remove("is-dragging");
2193
2204
  };
2194
- e0.addEventListener("pointermove", j), e0.addEventListener("pointerup", c0), e0.addEventListener("pointercancel", c0);
2205
+ e0.addEventListener("pointermove", W), e0.addEventListener("pointerup", c0), e0.addEventListener("pointercancel", c0);
2195
2206
  },
2196
2207
  !0
2197
2208
  // 捕获阶段,保证我们先手
@@ -2200,20 +2211,20 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2200
2211
  function Z() {
2201
2212
  document.querySelectorAll(".el-scrollbar").forEach((e0) => {
2202
2213
  if (!e0.closest(".el-table")) return;
2203
- const l0 = e0.querySelector(".el-scrollbar__wrap"), d0 = e0.querySelector(".el-scrollbar__bar.is-horizontal");
2204
- if (!l0 || !d0) return;
2205
- const a0 = l0.querySelector(".el-scrollbar__view") || l0.firstElementChild || l0, K = a0.querySelector("table") || a0.querySelector(".el-table__body") || a0, g0 = K.scrollWidth, n0 = l0.clientWidth, S0 = g0 - n0 > 2;
2206
- if (e0.classList.toggle("has-x-scroll", S0), d0.style.display = "", S0 && e0.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(p0), !V.has(l0)) {
2214
+ const l0 = e0.querySelector(".el-scrollbar__wrap"), u0 = e0.querySelector(".el-scrollbar__bar.is-horizontal");
2215
+ if (!l0 || !u0) return;
2216
+ const a0 = l0.querySelector(".el-scrollbar__view") || l0.firstElementChild || l0, K = a0.querySelector("table") || a0.querySelector(".el-table__body") || a0, m0 = K.scrollWidth, n0 = l0.clientWidth, S0 = m0 - n0 > 2;
2217
+ if (e0.classList.toggle("has-x-scroll", S0), u0.style.display = "", S0 && e0.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(g0), !V.has(l0)) {
2207
2218
  const A0 = new ResizeObserver(() => {
2208
- const O2 = K && K.scrollWidth || l0.scrollWidth, D = l0.clientWidth, l2 = O2 - D > 2;
2219
+ const O2 = K && K.scrollWidth || l0.scrollWidth, M = l0.clientWidth, l2 = O2 - M > 2;
2209
2220
  e0.classList.toggle("has-x-scroll", l2);
2210
2221
  });
2211
2222
  A0.observe(l0), K && A0.observe(K), V.set(l0, A0), J.push(() => A0.disconnect());
2212
2223
  }
2213
2224
  });
2214
2225
  }
2215
- return Z(), z.observe(document.body, { childList: !0, subtree: !0 }), () => {
2216
- z.disconnect(), J.forEach((e0) => {
2226
+ return Z(), P.observe(document.body, { childList: !0, subtree: !0 }), () => {
2227
+ P.disconnect(), J.forEach((e0) => {
2217
2228
  try {
2218
2229
  e0();
2219
2230
  } catch {
@@ -2227,78 +2238,78 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2227
2238
  });
2228
2239
  const y = G(null);
2229
2240
  a2(() => t == null ? void 0 : t.isEditViewport, async (C) => {
2230
- var z;
2231
- C && ((z = t == null ? void 0 : t.tableData) == null ? void 0 : z.length) > 15 && (await y2(), y.value = setTimeout(() => {
2241
+ var P;
2242
+ C && ((P = t == null ? void 0 : t.tableData) == null ? void 0 : P.length) > 15 && (await y2(), y.value = setTimeout(() => {
2232
2243
  const V = document.querySelectorAll(".el-table__body tr");
2233
2244
  V.length > 0 && V[V.length - 1].scrollIntoView({ behavior: "smooth", block: "center" });
2234
2245
  }, 10));
2235
2246
  }, { immediate: !0 });
2236
- const M = (C, z) => {
2237
- f("handleColEditChange", C, z);
2238
- }, k = (C, z) => {
2239
- f("handleColTypeChange", C, z);
2247
+ const D = (C, P) => {
2248
+ f("handleColEditChange", C, P);
2249
+ }, k = (C, P) => {
2250
+ f("handleColTypeChange", C, P);
2240
2251
  }, O = (C) => {
2241
- var z, V, J;
2242
- i.value = !1, t.isEditViewport && p.value && !((V = (z = c.value) == null ? void 0 : z.$el) != null && V.contains(C == null ? void 0 : C.target)) && ((J = p.value) != null && J.contains(C == null ? void 0 : C.target)) && f("submitEditingTable");
2252
+ var P, V, J;
2253
+ i.value = !1, t.isEditViewport && p.value && !((V = (P = c.value) == null ? void 0 : P.$el) != null && V.contains(C == null ? void 0 : C.target)) && ((J = p.value) != null && J.contains(C == null ? void 0 : C.target)) && f("submitEditingTable");
2243
2254
  }, x = i0(() => {
2244
2255
  var C;
2245
- return (C = t == null ? void 0 : t.extraButton) == null ? void 0 : C.filter((z) => {
2256
+ return (C = t == null ? void 0 : t.extraButton) == null ? void 0 : C.filter((P) => {
2246
2257
  var V;
2247
- return !((V = z == null ? void 0 : z.label) != null && V.includes("批量"));
2258
+ return !((V = P == null ? void 0 : P.label) != null && V.includes("批量"));
2248
2259
  });
2249
2260
  }), S = i0(() => {
2250
2261
  var C;
2251
- return (C = t == null ? void 0 : t.extraButton) == null ? void 0 : C.filter((z) => {
2262
+ return (C = t == null ? void 0 : t.extraButton) == null ? void 0 : C.filter((P) => {
2252
2263
  var V;
2253
- return (V = z == null ? void 0 : z.label) == null ? void 0 : V.includes("批量");
2264
+ return (V = P == null ? void 0 : P.label) == null ? void 0 : V.includes("批量");
2254
2265
  });
2255
- }), E = G(0), H = (C, z, V) => {
2266
+ }), E = G(0), L = (C, P, V) => {
2256
2267
  E.value = C == null ? void 0 : C.id;
2257
- }, P = (C, z, V) => {
2268
+ }, z = (C, P, V) => {
2258
2269
  E.value = 0;
2259
- }, I = (C) => {
2270
+ }, H = (C) => {
2260
2271
  f("selectChange", C);
2261
- }, _ = (C, z, V, J) => i0(() => {
2262
- var p0, Z, e0, l0, d0, a0, K, g0, n0, S0;
2263
- let r0 = C != null && C[z == null ? void 0 : z.prop] ? ((Z = (p0 = C == null ? void 0 : C[z == null ? void 0 : z.prop]) == null ? void 0 : p0[0]) == null ? void 0 : Z.contents) ?? (C == null ? void 0 : C[z == null ? void 0 : z.prop]) : ((l0 = (e0 = C == null ? void 0 : C[V == null ? void 0 : V.prop]) == null ? void 0 : e0[0]) == null ? void 0 : l0.contents) ?? (C == null ? void 0 : C[V == null ? void 0 : V.prop]) ?? ((a0 = (d0 = J == null ? void 0 : J[V == null ? void 0 : V.prop]) == null ? void 0 : d0[0]) == null ? void 0 : a0.contents) ?? (J == null ? void 0 : J[V == null ? void 0 : V.prop]) ?? ((n0 = (g0 = C == null ? void 0 : C[(K = V == null ? void 0 : V.child) == null ? void 0 : K.prop]) == null ? void 0 : g0[0]) == null ? void 0 : n0.contents) ?? (C == null ? void 0 : C[(S0 = V == null ? void 0 : V.child) == null ? void 0 : S0.prop]);
2272
+ }, _ = (C, P, V, J) => i0(() => {
2273
+ var g0, Z, e0, l0, u0, a0, K, m0, n0, S0;
2274
+ let r0 = C != null && C[P == null ? void 0 : P.prop] ? ((Z = (g0 = C == null ? void 0 : C[P == null ? void 0 : P.prop]) == null ? void 0 : g0[0]) == null ? void 0 : Z.contents) ?? (C == null ? void 0 : C[P == null ? void 0 : P.prop]) : ((l0 = (e0 = C == null ? void 0 : C[V == null ? void 0 : V.prop]) == null ? void 0 : e0[0]) == null ? void 0 : l0.contents) ?? (C == null ? void 0 : C[V == null ? void 0 : V.prop]) ?? ((a0 = (u0 = J == null ? void 0 : J[V == null ? void 0 : V.prop]) == null ? void 0 : u0[0]) == null ? void 0 : a0.contents) ?? (J == null ? void 0 : J[V == null ? void 0 : V.prop]) ?? ((n0 = (m0 = C == null ? void 0 : C[(K = V == null ? void 0 : V.child) == null ? void 0 : K.prop]) == null ? void 0 : m0[0]) == null ? void 0 : n0.contents) ?? (C == null ? void 0 : C[(S0 = V == null ? void 0 : V.child) == null ? void 0 : S0.prop]);
2264
2275
  return Array.isArray(r0) && !(r0 != null && r0.every((A0) => typeof A0 == "string" || typeof A0 == "number")) ? "查看" : r0;
2265
- }), R = (C, z, V, J) => {
2266
- var r0, p0, Z, e0;
2267
- s.value = void 0, ((r0 = V.innerText) != null && r0.includes(".urdf") || (p0 = V.innerText) != null && p0.includes(".stl") || (Z = V.innerText) != null && Z.includes(".obj") || (e0 = V.innerText) != null && e0.includes(".STL")) && (l.x = J.clientX, l.y = J.clientY, i.value = !0, s.value = V.innerText, o.value = C);
2276
+ }), R = (C, P, V, J) => {
2277
+ var r0, g0, Z, e0;
2278
+ s.value = void 0, ((r0 = V.innerText) != null && r0.includes(".urdf") || (g0 = V.innerText) != null && g0.includes(".stl") || (Z = V.innerText) != null && Z.includes(".obj") || (e0 = V.innerText) != null && e0.includes(".STL")) && (l.x = J.clientX, l.y = J.clientY, i.value = !0, s.value = V.innerText, o.value = C);
2268
2279
  }, Y = () => {
2269
2280
  s.value && f("preview", {
2270
2281
  row: s.value,
2271
2282
  rowData: o.value,
2272
2283
  type: "table"
2273
2284
  });
2274
- }, q = () => {
2285
+ }, $ = () => {
2275
2286
  s.value && f("rowClick", {
2276
2287
  row: s.value,
2277
2288
  rowData: o.value,
2278
2289
  type: "table"
2279
2290
  });
2280
- }, m0 = (C) => {
2291
+ }, h0 = (C) => {
2281
2292
  f("buttonClick", C);
2282
2293
  };
2283
2294
  a2(
2284
2295
  () => t == null ? void 0 : t.tableData,
2285
2296
  () => {
2286
2297
  var C;
2287
- a.value = (C = t == null ? void 0 : t.tableData) == null ? void 0 : C.map((z) => {
2288
- var J, r0, p0;
2298
+ a.value = (C = t == null ? void 0 : t.tableData) == null ? void 0 : C.map((P) => {
2299
+ var J, r0, g0;
2289
2300
  let V = {};
2290
- for (let Z in z)
2291
- V[Z] = Ss(z[Z]) && z[Z] === 0 ? (J = z[Z]) == null ? void 0 : J.toString() : z[Z], Z !== "id" && ((r0 = yt.value) == null ? void 0 : r0.prop) !== Z && g(z[Z]) && (V[Z] = z[Z] ? (p0 = Qe(z[Z])) == null ? void 0 : p0.format("YYYY-MM-DD HH:mm:ss") : z[Z]);
2301
+ for (let Z in P)
2302
+ V[Z] = Ss(P[Z]) && P[Z] === 0 ? (J = P[Z]) == null ? void 0 : J.toString() : P[Z], Z !== "id" && ((r0 = yt.value) == null ? void 0 : r0.prop) !== Z && g(P[Z]) && (V[Z] = P[Z] ? (g0 = Qe(P[Z])) == null ? void 0 : g0.format("YYYY-MM-DD HH:mm:ss") : P[Z]);
2292
2303
  return V;
2293
2304
  });
2294
2305
  },
2295
2306
  { deep: !0 }
2296
2307
  );
2297
- const y0 = (C) => us(C), v0 = (C, z, V) => {
2298
- f("clickButton", C, z, V);
2308
+ const y0 = (C) => us(C), v0 = (C, P, V) => {
2309
+ f("clickButton", C, P, V);
2299
2310
  }, m = (C) => {
2300
2311
  f("doCurrentChange", C);
2301
- }, B0 = (C, z) => {
2312
+ }, B0 = (C, P) => {
2302
2313
  f("dbClickRow", C);
2303
2314
  }, k0 = (C) => {
2304
2315
  f("doSizeChange", C);
@@ -2306,11 +2317,11 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2306
2317
  f("fixRow", C);
2307
2318
  }, U0 = (C) => {
2308
2319
  f("deleteRow", C);
2309
- }, t2 = (C, z, V, J) => {
2310
- f("contentClick", C, z, V, J);
2320
+ }, t2 = (C, P, V, J) => {
2321
+ f("contentClick", C, P, V, J);
2311
2322
  }, o2 = () => {
2312
- var z;
2313
- const C = (z = c.value) == null ? void 0 : z.$el.querySelector(".el-table__header-wrapper tr");
2323
+ var P;
2324
+ const C = (P = c.value) == null ? void 0 : P.$el.querySelector(".el-table__header-wrapper tr");
2314
2325
  !C || !t.isMoveColumn || ms.create(C, {
2315
2326
  animation: 180,
2316
2327
  delay: 0,
@@ -2319,50 +2330,50 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2319
2330
  onMove: (V) => !V.related.classList.contains("is-not-drag"),
2320
2331
  onEnd: (V) => {
2321
2332
  h.value++;
2322
- const J = V.oldIndex - 3, r0 = V.newIndex - 3, p0 = r.value.splice(J, 1)[0];
2323
- r.value.splice(r0, 0, p0), t.isMoveColumn && y2(() => {
2333
+ const J = V.oldIndex - 3, r0 = V.newIndex - 3, g0 = r.value.splice(J, 1)[0];
2334
+ r.value.splice(r0, 0, g0), t.isMoveColumn && y2(() => {
2324
2335
  o2(), k2();
2325
2336
  });
2326
2337
  }
2327
2338
  });
2328
2339
  }, C2 = ({ column: C }) => C.label && C.label.length > 8 ? "long-header" : "", k2 = () => {
2329
- var z;
2330
- const C = (z = c.value) == null ? void 0 : z.$el.querySelector(".el-table__body-wrapper tbody");
2340
+ var P;
2341
+ const C = (P = c.value) == null ? void 0 : P.$el.querySelector(".el-table__body-wrapper tbody");
2331
2342
  C && new ms(C, {
2332
2343
  animation: 150,
2333
2344
  handle: ".custom-drag-icon",
2334
2345
  ghostClass: "sortable-ghost",
2335
2346
  onEnd: ({ newIndex: V, oldIndex: J }) => {
2336
- const r0 = [...a.value], [p0] = r0.splice(J, 1);
2337
- r0.splice(J, 0, p0), a.value = r0, y2(() => {
2347
+ const r0 = [...a.value], [g0] = r0.splice(J, 1);
2348
+ r0.splice(J, 0, g0), a.value = r0, y2(() => {
2338
2349
  k2();
2339
2350
  });
2340
2351
  }
2341
2352
  });
2342
- }, Oe = (C) => new Promise((z) => {
2353
+ }, Oe = (C) => new Promise((P) => {
2343
2354
  const V = new FileReader();
2344
- V.onloadend = () => z(V.result), V.readAsDataURL(C);
2345
- }), De = (C, z = "file") => {
2346
- let V = C.split(","), J = V[0].match(/:(.*?);/)[1], r0 = J.split("/")[1], p0 = atob(V[1]), Z = p0.length, e0 = new Uint8Array(Z);
2355
+ V.onloadend = () => P(V.result), V.readAsDataURL(C);
2356
+ }), De = (C, P = "file") => {
2357
+ let V = C.split(","), J = V[0].match(/:(.*?);/)[1], r0 = J.split("/")[1], g0 = atob(V[1]), Z = g0.length, e0 = new Uint8Array(Z);
2347
2358
  for (; Z--; )
2348
- e0[Z] = p0.charCodeAt(Z);
2349
- return new File([e0], `${z}.${r0}`, {
2359
+ e0[Z] = g0.charCodeAt(Z);
2360
+ return new File([e0], `${P}.${r0}`, {
2350
2361
  type: J
2351
2362
  });
2352
2363
  }, Me = async (C) => {
2353
- const z = await Oe(C);
2354
- let V = De(z), J = new FormData();
2364
+ const P = await Oe(C);
2365
+ let V = De(P), J = new FormData();
2355
2366
  J.append("file", V);
2356
2367
  let r0;
2357
- return await L4(J).then((p0) => {
2358
- var Z, e0, l0, d0, a0, K, g0;
2368
+ return await L4(J).then((g0) => {
2369
+ var Z, e0, l0, u0, a0, K, m0;
2359
2370
  r0 = {
2360
- url: (Z = p0.data.result) == null ? void 0 : Z.url,
2361
- name: (g0 = (l0 = (e0 = p0.data.result) == null ? void 0 : e0.url) == null ? void 0 : l0.split("/")) == null ? void 0 : g0[((K = (a0 = (d0 = p0.data.result) == null ? void 0 : d0.url) == null ? void 0 : a0.split("/")) == null ? void 0 : K.length) - 1]
2371
+ url: (Z = g0.data.result) == null ? void 0 : Z.url,
2372
+ name: (m0 = (l0 = (e0 = g0.data.result) == null ? void 0 : e0.url) == null ? void 0 : l0.split("/")) == null ? void 0 : m0[((K = (a0 = (u0 = g0.data.result) == null ? void 0 : u0.url) == null ? void 0 : a0.split("/")) == null ? void 0 : K.length) - 1]
2362
2373
  };
2363
2374
  }), r0;
2364
2375
  }, Te = async (C) => {
2365
- var z;
2376
+ var P;
2366
2377
  try {
2367
2378
  const V = C.clipboardData || (window == null ? void 0 : window.clipboardData), J = V.getData("text/plain");
2368
2379
  if (J === void 0) return;
@@ -2370,12 +2381,12 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2370
2381
  C.preventDefault();
2371
2382
  const r0 = ze(J);
2372
2383
  if (!r0.length) return;
2373
- const { rowIndex: p0, columnIndex: Z } = u.value || { rowIndex: 0, columnIndex: 0 }, e0 = [];
2384
+ const { rowIndex: g0, columnIndex: Z } = u.value || { rowIndex: 0, columnIndex: 0 }, e0 = [];
2374
2385
  if (r0 == null || r0.forEach((l0) => {
2375
2386
  e0.push(l0.length + Z);
2376
2387
  }), (e0 == null ? void 0 : e0.filter((l0) => {
2377
- var d0;
2378
- return l0 > Object.keys((d0 = a.value) == null ? void 0 : d0[0]).length;
2388
+ var u0;
2389
+ return l0 > Object.keys((u0 = a.value) == null ? void 0 : u0[0]).length;
2379
2390
  }).length) > 0) {
2380
2391
  E3({
2381
2392
  type: "warning",
@@ -2384,10 +2395,10 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2384
2395
  return;
2385
2396
  }
2386
2397
  for (let l0 = 0; l0 < r0.length; l0++) {
2387
- const d0 = r0[l0], a0 = a.value[p0 + l0], K = Y2(r.value).map((g0) => g0.prop);
2388
- for (let g0 = 0; g0 < d0.length && Z + g0 < K.length; g0++) {
2389
- const n0 = K[Z + g0];
2390
- (a0 == null ? void 0 : a0[n0]) !== void 0 && (a0[n0] = d0[g0] || "");
2398
+ const u0 = r0[l0], a0 = a.value[g0 + l0], K = Y2(r.value).map((m0) => m0.prop);
2399
+ for (let m0 = 0; m0 < u0.length && Z + m0 < K.length; m0++) {
2400
+ const n0 = K[Z + m0];
2401
+ (a0 == null ? void 0 : a0[n0]) !== void 0 && (a0[n0] = u0[m0] || "");
2391
2402
  }
2392
2403
  }
2393
2404
  } else {
@@ -2396,19 +2407,19 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2396
2407
  const Z = new DOMParser().parseFromString(r0, "text/html"), e0 = Z.querySelectorAll("table");
2397
2408
  if ((e0 == null ? void 0 : e0.length) > 0) {
2398
2409
  C.preventDefault();
2399
- const d0 = e0[0].querySelectorAll("tr"), a0 = [];
2400
- for (const n0 of d0) {
2410
+ const u0 = e0[0].querySelectorAll("tr"), a0 = [];
2411
+ for (const n0 of u0) {
2401
2412
  const S0 = n0.querySelectorAll("td, th"), A0 = [];
2402
2413
  for (const O2 of S0) {
2403
- const D = O2.querySelectorAll("img");
2404
- if (D.length > 0)
2405
- for (const l2 of D) {
2414
+ const M = O2.querySelectorAll("img");
2415
+ if (M.length > 0)
2416
+ for (const l2 of M) {
2406
2417
  const L0 = l2.getAttribute("src");
2407
2418
  if (L0 && L0.startsWith("file:///")) {
2408
- const j = L0.match(/base64,(.*)/);
2409
- j && A0.push({
2419
+ const W = L0.match(/base64,(.*)/);
2420
+ W && A0.push({
2410
2421
  type: "image",
2411
- content: `data:image/png;base64,${j[1]}`
2422
+ content: `data:image/png;base64,${W[1]}`
2412
2423
  });
2413
2424
  } else L0 && L0.startsWith("data:") && A0.push({
2414
2425
  type: "image",
@@ -2423,15 +2434,15 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2423
2434
  }
2424
2435
  a0.push(A0);
2425
2436
  }
2426
- const { rowIndex: K, columnProp: g0 } = u.value || { rowIndex: 0, columnIndex: 0 };
2437
+ const { rowIndex: K, columnProp: m0 } = u.value || { rowIndex: 0, columnIndex: 0 };
2427
2438
  if (Array.isArray(a0) && a0.length) {
2428
2439
  const n0 = [];
2429
2440
  a0.forEach((A0) => {
2430
2441
  if (A0 != null && A0.length) {
2431
- const O2 = {}, D = t.columns;
2432
- for (let l2 = 0; l2 < (D == null ? void 0 : D.length); l2++) {
2433
- const L0 = D[l2], j = L0 == null ? void 0 : L0.prop, c0 = A0 == null ? void 0 : A0[l2], V0 = c0 == null ? void 0 : c0.content;
2434
- O2[j] = V0;
2442
+ const O2 = {}, M = t.columns;
2443
+ for (let l2 = 0; l2 < (M == null ? void 0 : M.length); l2++) {
2444
+ const L0 = M[l2], W = L0 == null ? void 0 : L0.prop, c0 = A0 == null ? void 0 : A0[l2], V0 = c0 == null ? void 0 : c0.content;
2445
+ O2[W] = V0;
2435
2446
  }
2436
2447
  n0.push(O2);
2437
2448
  }
@@ -2441,23 +2452,23 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2441
2452
  }
2442
2453
  } else {
2443
2454
  const l0 = Z.querySelectorAll("span");
2444
- let d0 = "";
2455
+ let u0 = "";
2445
2456
  if (l0.length === 0) {
2446
- const a0 = (z = C.clipboardData) == null ? void 0 : z.items;
2447
- d0 = [];
2457
+ const a0 = (P = C.clipboardData) == null ? void 0 : P.items;
2458
+ u0 = [];
2448
2459
  for (const K of a0)
2449
2460
  if ((K == null ? void 0 : K.type) === "image/png") {
2450
- const g0 = await Me(K == null ? void 0 : K.getAsFile());
2451
- d0.push(g0);
2461
+ const m0 = await Me(K == null ? void 0 : K.getAsFile());
2462
+ u0.push(m0);
2452
2463
  } else
2453
- d0 = C.clipboardData.getData("text/plain");
2464
+ u0 = C.clipboardData.getData("text/plain");
2454
2465
  } else
2455
2466
  for (const a0 of l0)
2456
- d0 = d0 + a0.textContent.trim();
2457
- if (Array.isArray(d0)) {
2467
+ u0 = u0 + a0.textContent.trim();
2468
+ if (Array.isArray(u0)) {
2458
2469
  C.preventDefault();
2459
- const { rowIndex: a0, columnProp: K } = u.value || { rowIndex: 0, columnIndex: 0 }, g0 = {}, n0 = a.value;
2460
- n0[a0][K] = d0;
2470
+ const { rowIndex: a0, columnProp: K } = u.value || { rowIndex: 0, columnIndex: 0 }, m0 = {}, n0 = a.value;
2471
+ n0[a0][K] = u0;
2461
2472
  }
2462
2473
  }
2463
2474
  }
@@ -2465,57 +2476,57 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2465
2476
  console.error("粘贴失败:", V);
2466
2477
  }
2467
2478
  }, ze = (C) => C.trim().split(/\r\n|\n|\r/).map((J) => J.trim() ? J.split(" ").map((r0) => r0.replace(/^"(.*)"$/, "$1")) : [""]), Pe = (C) => {
2468
- var z;
2479
+ var P;
2469
2480
  C && (u.value = {
2470
2481
  rowIndex: C == null ? void 0 : C.$index,
2471
2482
  columnIndex: C == null ? void 0 : C.cellIndex,
2472
- columnProp: (z = C.column) == null ? void 0 : z.property
2483
+ columnProp: (P = C.column) == null ? void 0 : P.property
2473
2484
  });
2474
- }, Ae = ({ row: C, rowIndex: z }) => z % 2 === 0 ? "default-row" : "special-row", N2 = (C, z, V) => {
2475
- f("cellChange", z, V, C);
2485
+ }, Ae = ({ row: C, rowIndex: P }) => P % 2 === 0 ? "default-row" : "special-row", N2 = (C, P, V) => {
2486
+ f("cellChange", P, V, C);
2476
2487
  }, Rr = (C) => C == null ? void 0 : C.toLocaleString("zh-CN", {
2477
2488
  minimumFractionDigits: 2,
2478
2489
  maximumFractionDigits: 2
2479
2490
  }), Nr = (C) => {
2480
- const { columns: z, data: V } = C, J = [];
2481
- return z.forEach((r0, p0) => {
2482
- var l0, d0;
2483
- if (p0 === 0) {
2484
- J[p0] = "合计";
2491
+ const { columns: P, data: V } = C, J = [];
2492
+ return P.forEach((r0, g0) => {
2493
+ var l0, u0;
2494
+ if (g0 === 0) {
2495
+ J[g0] = "合计";
2485
2496
  return;
2486
2497
  }
2487
- const Z = r0.property, e0 = (d0 = (l0 = t.columns) == null ? void 0 : l0.filter((a0) => a0 == null ? void 0 : a0.showSummary)) == null ? void 0 : d0.map((a0) => a0.prop);
2498
+ const Z = r0.property, e0 = (u0 = (l0 = t.columns) == null ? void 0 : l0.filter((a0) => a0 == null ? void 0 : a0.showSummary)) == null ? void 0 : u0.map((a0) => a0.prop);
2488
2499
  if (e0 != null && e0.includes(Z)) {
2489
2500
  const a0 = V == null ? void 0 : V.map((K) => Number(K[Z]));
2490
2501
  if (a0.every((K) => isNaN(K)))
2491
- J[p0] = "N/A";
2502
+ J[g0] = "N/A";
2492
2503
  else {
2493
- const K = a0.reduce((g0, n0) => {
2504
+ const K = a0.reduce((m0, n0) => {
2494
2505
  const S0 = Number(n0);
2495
- return isNaN(S0) ? g0 : g0 + S0;
2506
+ return isNaN(S0) ? m0 : m0 + S0;
2496
2507
  }, 0);
2497
- J[p0] = Rr(K), ["price", "sales", "cost", "profit"].includes(Z) && (J[p0] = "¥" + J[p0]);
2508
+ J[g0] = Rr(K), ["price", "sales", "cost", "profit"].includes(Z) && (J[g0] = "¥" + J[g0]);
2498
2509
  }
2499
2510
  } else
2500
- J[p0] = "";
2511
+ J[g0] = "";
2501
2512
  }), J;
2502
2513
  };
2503
2514
  a2(
2504
2515
  () => t == null ? void 0 : t.isClearSelection,
2505
2516
  async (C) => {
2506
- var z;
2507
- C && (await y2(), (z = c.value) == null || z.clearSelection());
2517
+ var P;
2518
+ C && (await y2(), (P = c.value) == null || P.clearSelection());
2508
2519
  },
2509
2520
  { immediate: !0 }
2510
2521
  );
2511
2522
  const yt = i0(() => {
2512
- var z, V;
2513
- const C = (z = r.value) == null ? void 0 : z.find((J) => J == null ? void 0 : J.isMainKey);
2523
+ var P, V;
2524
+ const C = (P = r.value) == null ? void 0 : P.find((J) => J == null ? void 0 : J.isMainKey);
2514
2525
  return C || ((V = r.value) == null ? void 0 : V[0]);
2515
2526
  });
2516
- return (C, z) => {
2517
- var Z, e0, l0, d0, a0;
2518
- const V = X("el-table-column"), J = X("svg-icon"), r0 = X("el-table"), p0 = X("el-pagination");
2527
+ return (C, P) => {
2528
+ var Z, e0, l0, u0, a0;
2529
+ const V = X("el-table-column"), J = X("svg-icon"), r0 = X("el-table"), g0 = X("el-pagination");
2519
2530
  return b(), A("div", {
2520
2531
  class: "table-content-show",
2521
2532
  ref_key: "tableOuterRef",
@@ -2523,40 +2534,40 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2523
2534
  }, [
2524
2535
  Q(zu, {
2525
2536
  buttons: x.value,
2526
- onButtonClick: m0,
2537
+ onButtonClick: h0,
2527
2538
  columns: r.value
2528
2539
  }, {
2529
- headerButton: L(() => [
2530
- u0(C.$slots, "headerButton", {
2540
+ headerButton: I(() => [
2541
+ f0(C.$slots, "headerButton", {
2531
2542
  buttons: x.value,
2532
2543
  columns: r.value
2533
2544
  }, void 0, !0)
2534
2545
  ]),
2535
2546
  _: 3
2536
2547
  }, 8, ["buttons", "columns"]),
2537
- u0(C.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
2548
+ f0(C.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
2538
2549
  n.isCardViewport ? (b(), A("div", Fu, [
2539
- (b(!0), A(_0, null, C0(a.value, (K) => (b(), $(Hu, {
2550
+ (b(!0), A(_0, null, C0(a.value, (K) => (b(), j(Hu, {
2540
2551
  key: K == null ? void 0 : K.id,
2541
2552
  showTag: !1
2542
2553
  }, {
2543
- header: L(() => {
2544
- var g0, n0;
2554
+ header: I(() => {
2555
+ var m0, n0;
2545
2556
  return [
2546
2557
  o0("div", qu, [
2547
2558
  o0("span", {
2548
- title: K == null ? void 0 : K[(g0 = yt.value) == null ? void 0 : g0.prop]
2559
+ title: K == null ? void 0 : K[(m0 = yt.value) == null ? void 0 : m0.prop]
2549
2560
  }, j0(K[(n0 = yt.value) == null ? void 0 : n0.prop]), 9, Yu)
2550
2561
  ])
2551
2562
  ];
2552
2563
  }),
2553
- status: L(() => z[1] || (z[1] = [
2564
+ status: I(() => P[1] || (P[1] = [
2554
2565
  B2("已完成")
2555
2566
  ])),
2556
- content: L(() => {
2557
- var g0;
2567
+ content: I(() => {
2568
+ var m0;
2558
2569
  return [
2559
- (b(!0), A(_0, null, C0((g0 = r.value) == null ? void 0 : g0.filter((n0) => {
2570
+ (b(!0), A(_0, null, C0((m0 = r.value) == null ? void 0 : m0.filter((n0) => {
2560
2571
  var S0;
2561
2572
  return (n0 == null ? void 0 : n0.label) !== "操作" && (n0 == null ? void 0 : n0.prop) !== ((S0 = yt.value) == null ? void 0 : S0.prop);
2562
2573
  }), (n0) => (b(), A("div", {
@@ -2567,7 +2578,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2567
2578
  title: n0 == null ? void 0 : n0.label
2568
2579
  }, [
2569
2580
  B2(j0(n0 == null ? void 0 : n0.label), 1),
2570
- z[2] || (z[2] = o0("span", { style: { "margin-left": "3px" } }, ":", -1))
2581
+ P[2] || (P[2] = o0("span", { style: { "margin-left": "3px" } }, ":", -1))
2571
2582
  ], 8, Ku),
2572
2583
  o0("span", {
2573
2584
  title: K == null ? void 0 : K[n0 == null ? void 0 : n0.prop]
@@ -2575,17 +2586,17 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2575
2586
  ]))), 128))
2576
2587
  ];
2577
2588
  }),
2578
- footer: L(() => {
2579
- var g0, n0;
2589
+ footer: I(() => {
2590
+ var m0, n0;
2580
2591
  return [
2581
2592
  o0("div", Qu, [
2582
- (g0 = n.rowButton) != null && g0.find((S0) => (S0 == null ? void 0 : S0.label) === "编辑") ? (b(), $(J, {
2593
+ (m0 = n.rowButton) != null && m0.find((S0) => (S0 == null ? void 0 : S0.label) === "编辑") ? (b(), j(J, {
2583
2594
  key: 0,
2584
2595
  onClick: (S0) => v0("编辑", K, { extra: { label: "编辑" } }),
2585
2596
  name: "card-edit",
2586
2597
  style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
2587
2598
  }, null, 8, ["onClick"])) : t0("", !0),
2588
- (n0 = n.rowButton) != null && n0.find((S0) => (S0 == null ? void 0 : S0.label) === "删除") ? (b(), $(J, {
2599
+ (n0 = n.rowButton) != null && n0.find((S0) => (S0 == null ? void 0 : S0.label) === "删除") ? (b(), j(J, {
2589
2600
  key: 1,
2590
2601
  onClick: (S0) => v0("删除", K, { extra: { label: "删除" } }),
2591
2602
  name: "card-delete",
@@ -2596,7 +2607,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2596
2607
  }),
2597
2608
  _: 2
2598
2609
  }, 1024))), 128))
2599
- ])) : (b(), $(r0, {
2610
+ ])) : (b(), j(r0, {
2600
2611
  border: !1,
2601
2612
  "highlight-current-row": "",
2602
2613
  class: "table-wrap",
@@ -2612,45 +2623,45 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2612
2623
  "empty-text": "暂无数据",
2613
2624
  onCellContextmenu: R,
2614
2625
  onPaste: Te,
2615
- onSelectionChange: I,
2626
+ onSelectionChange: H,
2616
2627
  onRowDblclick: B0,
2617
2628
  key: h.value,
2618
2629
  "row-class-name": Ae,
2619
2630
  "header-cell-class-name": C2,
2620
- onCellMouseEnter: H,
2621
- onCellMouseLeave: P,
2622
- onContextmenu: z[0] || (z[0] = M4(() => {
2631
+ onCellMouseEnter: L,
2632
+ onCellMouseLeave: z,
2633
+ onContextmenu: P[0] || (P[0] = M4(() => {
2623
2634
  }, ["prevent"])),
2624
2635
  "row-key": "id",
2625
2636
  "tree-props": { children: "children", hasChildren: "hasChildren" },
2626
2637
  "default-sort": n.defaultSort
2627
2638
  }, {
2628
- default: L(() => {
2629
- var K, g0, n0, S0, A0, O2;
2639
+ default: I(() => {
2640
+ var K, m0, n0, S0, A0, O2;
2630
2641
  return [
2631
- ((K = n.columns) == null ? void 0 : K.length) > 0 && n.allowSelect ? (b(), $(V, {
2642
+ ((K = n.columns) == null ? void 0 : K.length) > 0 && n.allowSelect ? (b(), j(V, {
2632
2643
  key: 0,
2633
2644
  type: "selection",
2634
- width: (g0 = n.columns) != null && g0.some((D) => D == null ? void 0 : D.showSummary) ? 55 : 38,
2645
+ width: (m0 = n.columns) != null && m0.some((M) => M == null ? void 0 : M.showSummary) ? 55 : 38,
2635
2646
  fixed: ""
2636
2647
  }, null, 8, ["width"])) : t0("", !0),
2637
2648
  Q(V, {
2638
2649
  "show-overflow-tooltip": !1,
2639
2650
  "min-width": 12
2640
2651
  }, {
2641
- default: L(({ row: D, column: l2, $index: L0 }) => [
2652
+ default: I(({ row: M, column: l2, $index: L0 }) => [
2642
2653
  ht(o0("span", Iu, [
2643
2654
  Q(J, {
2644
2655
  name: "drag",
2645
2656
  style: { width: "15px", height: "15px", cursor: "move" }
2646
2657
  })
2647
2658
  ], 512), [
2648
- [jt, (D == null ? void 0 : D.id) === E.value]
2659
+ [jt, (M == null ? void 0 : M.id) === E.value]
2649
2660
  ])
2650
2661
  ]),
2651
2662
  _: 1
2652
2663
  }),
2653
- n.showIndex && !((n0 = n.tableData) != null && n0.some((D) => D == null ? void 0 : D.children)) && ((S0 = n.columns) == null ? void 0 : S0.length) > 0 ? (b(), $(V, {
2664
+ n.showIndex && !((n0 = n.tableData) != null && n0.some((M) => M == null ? void 0 : M.children)) && ((S0 = n.columns) == null ? void 0 : S0.length) > 0 ? (b(), j(V, {
2654
2665
  key: 1,
2655
2666
  type: "index",
2656
2667
  label: "序号",
@@ -2658,12 +2669,12 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2658
2669
  }, L2({ _: 2 }, [
2659
2670
  n.isEditViewport ? {
2660
2671
  name: "default",
2661
- fn: L(({ row: D, column: l2, $index: L0 }) => {
2662
- var j, c0;
2672
+ fn: I(({ row: M, column: l2, $index: L0 }) => {
2673
+ var W, c0;
2663
2674
  return [
2664
- L0 === ((j = a.value) == null ? void 0 : j.length) - 1 && ((c0 = n.cacheExtraButtons) != null && c0.some((V0) => (V0 == null ? void 0 : V0.label) === "新增")) ? u0(C.$slots, "rowCreate", {
2675
+ L0 === ((W = a.value) == null ? void 0 : W.length) - 1 && ((c0 = n.cacheExtraButtons) != null && c0.some((V0) => (V0 == null ? void 0 : V0.label) === "新增")) ? f0(C.$slots, "rowCreate", {
2665
2676
  key: 0,
2666
- row: D,
2677
+ row: M,
2667
2678
  index: L0 + 1
2668
2679
  }, void 0, !0) : t0("", !0)
2669
2680
  ];
@@ -2671,7 +2682,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2671
2682
  key: "0"
2672
2683
  } : void 0
2673
2684
  ]), 1024)) : t0("", !0),
2674
- (A0 = n.tableData) != null && A0.some((D) => D == null ? void 0 : D.children) && ((O2 = n.columns) == null ? void 0 : O2.length) > 0 ? (b(), $(V, {
2685
+ (A0 = n.tableData) != null && A0.some((M) => M == null ? void 0 : M.children) && ((O2 = n.columns) == null ? void 0 : O2.length) > 0 ? (b(), j(V, {
2675
2686
  key: 2,
2676
2687
  type: "default",
2677
2688
  "min-width": 15,
@@ -2679,12 +2690,12 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2679
2690
  }, L2({ _: 2 }, [
2680
2691
  n.isEditViewport ? {
2681
2692
  name: "default",
2682
- fn: L(({ row: D, column: l2, $index: L0 }) => {
2683
- var j, c0;
2693
+ fn: I(({ row: M, column: l2, $index: L0 }) => {
2694
+ var W, c0;
2684
2695
  return [
2685
- L0 === ((j = a.value) == null ? void 0 : j.length) - 1 && ((c0 = n.cacheExtraButtons) != null && c0.some((V0) => (V0 == null ? void 0 : V0.label) === "新增")) ? u0(C.$slots, "rowCreate", {
2696
+ L0 === ((W = a.value) == null ? void 0 : W.length) - 1 && ((c0 = n.cacheExtraButtons) != null && c0.some((V0) => (V0 == null ? void 0 : V0.label) === "新增")) ? f0(C.$slots, "rowCreate", {
2686
2697
  key: 0,
2687
- row: D,
2698
+ row: M,
2688
2699
  index: L0 + 1
2689
2700
  }, void 0, !0) : t0("", !0)
2690
2701
  ];
@@ -2692,95 +2703,95 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2692
2703
  key: "0"
2693
2704
  } : void 0
2694
2705
  ]), 1024)) : t0("", !0),
2695
- (b(!0), A(_0, null, C0(r.value, (D, l2) => {
2706
+ (b(!0), A(_0, null, C0(r.value, (M, l2) => {
2696
2707
  var L0;
2697
2708
  return b(), A(_0, null, [
2698
- (L0 = n.checkedColumns) != null && L0.includes(D == null ? void 0 : D.label) ? (b(), $(Eu, {
2709
+ (L0 = n.checkedColumns) != null && L0.includes(M == null ? void 0 : M.label) ? (b(), j(Eu, {
2699
2710
  key: 0,
2700
2711
  tableData: a.value,
2701
- column: D,
2712
+ column: M,
2702
2713
  isEditViewport: n.isEditViewport,
2703
- onHandleColEditChange: M,
2714
+ onHandleColEditChange: D,
2704
2715
  onHandleColTypeChange: k
2705
2716
  }, {
2706
- operateHeader: L(() => [
2707
- u0(C.$slots, "operateCol", {}, void 0, !0)
2717
+ operateHeader: I(() => [
2718
+ f0(C.$slots, "operateCol", {}, void 0, !0)
2708
2719
  ]),
2709
- content: L(({ row: j, item: c0, slotData: V0, scope: Y3, column: qe, columnProp: Gr }) => {
2720
+ content: I(({ row: W, item: c0, slotData: V0, scope: Y3, column: qe, columnProp: Gr }) => {
2710
2721
  var fs, ps, gs;
2711
2722
  return [
2712
- D != null && D.isExistChild ? (b(), A("span", Ru, [
2723
+ M != null && M.isExistChild ? (b(), A("span", Ru, [
2713
2724
  o0("div", Nu, [
2714
2725
  Q(J, {
2715
2726
  name: "TableLook",
2716
2727
  style: { width: "16px", height: "16px", color: "var(--vertical-menuitem-active-bg)", cursor: "pointer" },
2717
2728
  onClick: (F0) => {
2718
2729
  var St;
2719
- return t2(j != null && j[D == null ? void 0 : D.prop] ? j == null ? void 0 : j[D == null ? void 0 : D.prop] : (j == null ? void 0 : j[c0 == null ? void 0 : c0.prop]) ?? (V0 == null ? void 0 : V0[c0 == null ? void 0 : c0.prop]) ?? (j == null ? void 0 : j[(St = c0 == null ? void 0 : c0.child) == null ? void 0 : St.prop]), c0 == null ? void 0 : c0.prop, j ?? V0, {
2720
- data: _(j, D, c0, V0).value,
2721
- isMainKey: D == null ? void 0 : D.isMainKey,
2722
- isExistChild: D == null ? void 0 : D.isExistChild,
2723
- columnType: D,
2724
- rowContent: j
2730
+ return t2(W != null && W[M == null ? void 0 : M.prop] ? W == null ? void 0 : W[M == null ? void 0 : M.prop] : (W == null ? void 0 : W[c0 == null ? void 0 : c0.prop]) ?? (V0 == null ? void 0 : V0[c0 == null ? void 0 : c0.prop]) ?? (W == null ? void 0 : W[(St = c0 == null ? void 0 : c0.child) == null ? void 0 : St.prop]), c0 == null ? void 0 : c0.prop, W ?? V0, {
2731
+ data: _(W, M, c0, V0).value,
2732
+ isMainKey: M == null ? void 0 : M.isMainKey,
2733
+ isExistChild: M == null ? void 0 : M.isExistChild,
2734
+ columnType: M,
2735
+ rowContent: W
2725
2736
  });
2726
2737
  }
2727
2738
  }, null, 8, ["onClick"])
2728
2739
  ])
2729
2740
  ])) : t0("", !0),
2730
- ((D == null ? void 0 : D.type) ?? "text") === "text" && ((j == null ? void 0 : j.tableEditType) ?? "text") === "text" && !(D != null && D.isExistChild) ? (b(), A("span", {
2741
+ ((M == null ? void 0 : M.type) ?? "text") === "text" && ((W == null ? void 0 : W.tableEditType) ?? "text") === "text" && !(M != null && M.isExistChild) ? (b(), A("span", {
2731
2742
  key: 1,
2732
2743
  class: "table-content",
2733
- style: X0({ cursor: D != null && D.isMainKey ? "pointer" : "default", color: D != null && D.isMainKey ? "var(--vertical-menuitem-active-bg)" : "", textDecoration: D != null && D.isMainKey ? "underline" : "" }),
2744
+ style: X0({ cursor: M != null && M.isMainKey ? "pointer" : "default", color: M != null && M.isMainKey ? "var(--vertical-menuitem-active-bg)" : "", textDecoration: M != null && M.isMainKey ? "underline" : "" }),
2734
2745
  onClick: (F0) => {
2735
2746
  var St;
2736
- return t2(j != null && j[D == null ? void 0 : D.prop] ? j == null ? void 0 : j[D == null ? void 0 : D.prop] : (j == null ? void 0 : j[c0 == null ? void 0 : c0.prop]) ?? (V0 == null ? void 0 : V0[c0 == null ? void 0 : c0.prop]) ?? (j == null ? void 0 : j[(St = c0 == null ? void 0 : c0.child) == null ? void 0 : St.prop]), c0 == null ? void 0 : c0.prop, j ?? V0, {
2737
- data: _(j, D, c0, V0).value,
2738
- isMainKey: D == null ? void 0 : D.isMainKey
2747
+ return t2(W != null && W[M == null ? void 0 : M.prop] ? W == null ? void 0 : W[M == null ? void 0 : M.prop] : (W == null ? void 0 : W[c0 == null ? void 0 : c0.prop]) ?? (V0 == null ? void 0 : V0[c0 == null ? void 0 : c0.prop]) ?? (W == null ? void 0 : W[(St = c0 == null ? void 0 : c0.child) == null ? void 0 : St.prop]), c0 == null ? void 0 : c0.prop, W ?? V0, {
2748
+ data: _(W, M, c0, V0).value,
2749
+ isMainKey: M == null ? void 0 : M.isMainKey
2739
2750
  });
2740
2751
  }
2741
2752
  }, [
2742
2753
  C.$slots.content ? (b(), A(_0, { key: 0 }, [
2743
- ((fs = n.columns) == null ? void 0 : fs.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (D == null ? void 0 : D.prop))) >= ((j == null ? void 0 : j.level) ?? -1) ? (b(), A("div", $u, [
2744
- u0(C.$slots, "content", {
2745
- row: j,
2746
- column: Gr ?? D,
2754
+ ((fs = n.columns) == null ? void 0 : fs.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (M == null ? void 0 : M.prop))) >= ((W == null ? void 0 : W.level) ?? -1) ? (b(), A("div", $u, [
2755
+ f0(C.$slots, "content", {
2756
+ row: W,
2757
+ column: Gr ?? M,
2747
2758
  colIndex: l2,
2748
2759
  item: c0,
2749
2760
  slotData: V0
2750
2761
  }, void 0, !0)
2751
2762
  ])) : t0("", !0)
2752
- ], 64)) : ((ps = n.columns) == null ? void 0 : ps.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (D == null ? void 0 : D.prop))) >= ((j == null ? void 0 : j.level) ?? -1) ? (b(), A(_0, { key: 1 }, [
2753
- B2(j0(_(j, D, c0, V0)), 1)
2763
+ ], 64)) : ((ps = n.columns) == null ? void 0 : ps.findIndex((F0) => (F0 == null ? void 0 : F0.prop) === (M == null ? void 0 : M.prop))) >= ((W == null ? void 0 : W.level) ?? -1) ? (b(), A(_0, { key: 1 }, [
2764
+ B2(j0(_(W, M, c0, V0)), 1)
2754
2765
  ], 64)) : t0("", !0)
2755
2766
  ], 12, Gu)) : t0("", !0),
2756
- ((D == null ? void 0 : D.type) ?? "text") === "operate" && !(D != null && D.isExistChild) ? (b(), A("span", {
2767
+ ((M == null ? void 0 : M.type) ?? "text") === "operate" && !(M != null && M.isExistChild) ? (b(), A("span", {
2757
2768
  key: 2,
2758
2769
  class: "table-operate",
2759
2770
  style: X0({
2760
- justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : D == null ? void 0 : D.align
2771
+ justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : M == null ? void 0 : M.align
2761
2772
  })
2762
2773
  }, [
2763
- u0(C.$slots, "actions", { item: j }, void 0, !0),
2774
+ f0(C.$slots, "actions", { item: W }, void 0, !0),
2764
2775
  n.isShowEdit ? (b(), A("span", {
2765
2776
  key: 0,
2766
- onClick: (F0) => I0(j),
2777
+ onClick: (F0) => I0(W),
2767
2778
  class: "blue-table-operate table-operate-content"
2768
2779
  }, "编辑", 8, ju)) : t0("", !0),
2769
2780
  n.isShowDelete ? (b(), A("span", {
2770
2781
  key: 1,
2771
- onClick: (F0) => U0(j),
2782
+ onClick: (F0) => U0(W),
2772
2783
  class: "red-table-operate table-operate-content"
2773
2784
  }, "删除", 8, Wu)) : t0("", !0)
2774
2785
  ], 4)) : t0("", !0),
2775
- ((D == null ? void 0 : D.type) ?? "text") === "edit" && ((j == null ? void 0 : j.tableEditType) ?? "text") !== "edit" || ((D == null ? void 0 : D.type) ?? "text") === "text" && ((j == null ? void 0 : j.tableEditType) ?? "text") === "edit" && !(D != null && D.isExistChild) ? (b(), A("span", Uu, [
2776
- (b(), $(Wt(y0(j != null && j[D == null ? void 0 : D.prop] && Array.isArray(j[D.prop]) && ((gs = j[D.prop]) != null && gs.every((F0) => typeof F0 == "Object")) ? "Upload" : (D == null ? void 0 : D.columnType) === "" || !(D != null && D.columnType) ? "Input" : D == null ? void 0 : D.columnType)), {
2777
- modelValue: j[qe == null ? void 0 : qe.property],
2778
- "onUpdate:modelValue": (F0) => j[qe == null ? void 0 : qe.property] = F0,
2786
+ ((M == null ? void 0 : M.type) ?? "text") === "edit" && ((W == null ? void 0 : W.tableEditType) ?? "text") !== "edit" || ((M == null ? void 0 : M.type) ?? "text") === "text" && ((W == null ? void 0 : W.tableEditType) ?? "text") === "edit" && !(M != null && M.isExistChild) ? (b(), A("span", Uu, [
2787
+ (b(), j(Wt(y0(W != null && W[M == null ? void 0 : M.prop] && Array.isArray(W[M.prop]) && ((gs = W[M.prop]) != null && gs.every((F0) => typeof F0 == "Object")) ? "Upload" : (M == null ? void 0 : M.columnType) === "" || !(M != null && M.columnType) ? "Input" : M == null ? void 0 : M.columnType)), {
2788
+ modelValue: W[qe == null ? void 0 : qe.property],
2789
+ "onUpdate:modelValue": (F0) => W[qe == null ? void 0 : qe.property] = F0,
2779
2790
  style: { height: "100%" },
2780
- content: (D == null ? void 0 : D.contents) ?? [],
2781
- optionUrl: D == null ? void 0 : D.optionUrl,
2791
+ content: (M == null ? void 0 : M.contents) ?? [],
2792
+ optionUrl: M == null ? void 0 : M.optionUrl,
2782
2793
  onFocus: (F0) => Pe(Y3),
2783
- onChange: (F0) => N2(F0, j, D)
2794
+ onChange: (F0) => N2(F0, W, M)
2784
2795
  }, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "onFocus", "onChange"]))
2785
2796
  ])) : t0("", !0)
2786
2797
  ];
@@ -2794,18 +2805,18 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2794
2805
  _: 3
2795
2806
  }, 8, ["data", "show-summary", "sum-text", "default-sort"])),
2796
2807
  o0("div", Ju, [
2797
- n.isCardViewport ? t0("", !0) : u0(C.$slots, "batchButton", {
2808
+ n.isCardViewport ? t0("", !0) : f0(C.$slots, "batchButton", {
2798
2809
  key: 0,
2799
2810
  buttons: S.value,
2800
2811
  columns: r.value
2801
2812
  }, void 0, !0),
2802
- t != null && t.isShowPagination && n.tableData.length > 0 ? (b(), $(p0, {
2813
+ t != null && t.isShowPagination && n.tableData.length > 0 ? (b(), j(g0, {
2803
2814
  key: 1,
2804
2815
  onSizeChange: k0,
2805
2816
  onCurrentChange: m,
2806
2817
  "current-page": ((e0 = n.pageObj) == null ? void 0 : e0.currentPage) ?? 1,
2807
2818
  "page-sizes": (l0 = n.pageObj) == null ? void 0 : l0.pageSizes,
2808
- "page-size": ((d0 = n.pageObj) == null ? void 0 : d0.pageSize) ?? 10,
2819
+ "page-size": ((u0 = n.pageObj) == null ? void 0 : u0.pageSize) ?? 10,
2809
2820
  layout: "total, sizes, prev, pager, next, jumper",
2810
2821
  total: ((a0 = n.pageObj) == null ? void 0 : a0.total) ?? 0
2811
2822
  }, null, 8, ["current-page", "page-sizes", "page-size", "total"])) : t0("", !0)
@@ -2813,11 +2824,11 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2813
2824
  ht(Q(Du, {
2814
2825
  style: X0({ top: l.y + "px", left: l.x + "px", position: "fixed", zIndex: 999 })
2815
2826
  }, {
2816
- content: L(() => [
2827
+ content: I(() => [
2817
2828
  o0("div", Zu, [
2818
2829
  Q(ne, {
2819
2830
  emptyColor: !0,
2820
- onClickTrigger: q,
2831
+ onClickTrigger: $,
2821
2832
  modelValue: "弹出模型",
2822
2833
  buttonType: ""
2823
2834
  }),
@@ -2875,8 +2886,8 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2875
2886
  return (l, r) => {
2876
2887
  var a, h, c, d, u, f, p;
2877
2888
  return b(), A(_0, null, [
2878
- u0(l.$slots, `${(a = t == null ? void 0 : t.content) == null ? void 0 : a.value}_tableHeader`),
2879
- (b(), $(tf, {
2889
+ f0(l.$slots, `${(a = t == null ? void 0 : t.content) == null ? void 0 : a.value}_tableHeader`),
2890
+ (b(), j(tf, {
2880
2891
  columns: ((h = t == null ? void 0 : t.content) == null ? void 0 : h.columns) ?? [],
2881
2892
  tableData: i.value ?? [],
2882
2893
  currentPage: (c = t == null ? void 0 : t.content) == null ? void 0 : c.currentPage,
@@ -2889,10 +2900,10 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2889
2900
  onDoClickRow: o,
2890
2901
  key: i.value ?? []
2891
2902
  }, {
2892
- actions: L(({ item: g }) => {
2903
+ actions: I(({ item: g }) => {
2893
2904
  var v;
2894
2905
  return [
2895
- u0(l.$slots, `${(v = t == null ? void 0 : t.content) == null ? void 0 : v.value}_action`, { item: g })
2906
+ f0(l.$slots, `${(v = t == null ? void 0 : t.content) == null ? void 0 : v.value}_action`, { item: g })
2896
2907
  ];
2897
2908
  }),
2898
2909
  _: 3
@@ -2923,7 +2934,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2923
2934
  };
2924
2935
  return (a, h) => {
2925
2936
  const c = X("el-cascader");
2926
- return b(), $(c, {
2937
+ return b(), j(c, {
2927
2938
  modelValue: i.value,
2928
2939
  "onUpdate:modelValue": h[0] || (h[0] = (d) => i.value = d),
2929
2940
  clearable: "",
@@ -2953,7 +2964,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2953
2964
  const e = n, t = G(e.value);
2954
2965
  return (i, s) => {
2955
2966
  const o = X("el-option"), l = X("el-select");
2956
- return b(), $(l, {
2967
+ return b(), j(l, {
2957
2968
  modelValue: t.value,
2958
2969
  "onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
2959
2970
  filterable: "",
@@ -2962,8 +2973,8 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2962
2973
  placeholder: "请选择下拉内容...",
2963
2974
  style: { width: "100%" }
2964
2975
  }, {
2965
- default: L(() => [
2966
- (b(!0), A(_0, null, C0(e == null ? void 0 : e.content, (r) => (b(), $(o, {
2976
+ default: I(() => [
2977
+ (b(!0), A(_0, null, C0(e == null ? void 0 : e.content, (r) => (b(), j(o, {
2967
2978
  key: r.value,
2968
2979
  label: r.label,
2969
2980
  value: r.value
@@ -2995,18 +3006,18 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
2995
3006
  }), (l, r) => {
2996
3007
  const a = X("MenuItem", !0), h = X("el-sub-menu"), c = X("el-menu-item");
2997
3008
  return b(!0), A(_0, null, C0(n.menuList, (d) => (b(), A(_0, null, [
2998
- d.show && d.children && d.children.length > 0 ? (b(), $(h, {
3009
+ d.show && d.children && d.children.length > 0 ? (b(), j(h, {
2999
3010
  index: d.path,
3000
3011
  key: d.path
3001
3012
  }, {
3002
- title: L(() => [
3013
+ title: I(() => [
3003
3014
  Q(dt, {
3004
3015
  name: d.icon ?? ((d == null ? void 0 : d.level) <= 2 ? "default" : ""),
3005
3016
  class: "menu-icon"
3006
3017
  }, null, 8, ["name"]),
3007
- u0(l.$slots, "title", { menu: d })
3018
+ f0(l.$slots, "title", { menu: d })
3008
3019
  ]),
3009
- default: L(() => [
3020
+ default: I(() => [
3010
3021
  Q(a, {
3011
3022
  menuList: d.children,
3012
3023
  onClickMenu: i,
@@ -3015,22 +3026,22 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
3015
3026
  }, L2({ _: 2 }, [
3016
3027
  C0(l.$slots, (u, f) => ({
3017
3028
  name: f,
3018
- fn: L((p) => [
3019
- u0(l.$slots, f, a1({ ref_for: !0 }, p))
3029
+ fn: I((p) => [
3030
+ f0(l.$slots, f, a1({ ref_for: !0 }, p))
3020
3031
  ])
3021
3032
  }))
3022
3033
  ]), 1032, ["menuList"])
3023
3034
  ]),
3024
3035
  _: 2
3025
- }, 1032, ["index"])) : d.show ? (b(), $(c, {
3036
+ }, 1032, ["index"])) : d.show ? (b(), j(c, {
3026
3037
  index: d.path,
3027
3038
  key: d.path,
3028
3039
  onClick: (u) => i(d)
3029
3040
  }, {
3030
- title: L(() => [
3031
- u0(l.$slots, "title", { menu: d })
3041
+ title: I(() => [
3042
+ f0(l.$slots, "title", { menu: d })
3032
3043
  ]),
3033
- default: L(() => [
3044
+ default: I(() => [
3034
3045
  Q(dt, {
3035
3046
  name: d.icon ?? ((d == null ? void 0 : d.level) <= 2 ? "default" : ""),
3036
3047
  class: "menu-icon"
@@ -3065,8 +3076,8 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
3065
3076
  h("closeMenu", g);
3066
3077
  }, f = i0(() => r.value ? (a == null ? void 0 : a.mode) === "vertical" ? r.value : o.value : (a == null ? void 0 : a.mode) === "vertical" ? i.value : o.value), p = i0(() => s.value);
3067
3078
  return (g, v) => {
3068
- const w = X("el-sub-menu"), y = X("el-menu-item"), M = X("el-menu");
3069
- return b(), $(M, {
3079
+ const w = X("el-sub-menu"), y = X("el-menu-item"), D = X("el-menu");
3080
+ return b(), j(D, {
3070
3081
  class: "menu-wrap",
3071
3082
  mode: n.mode,
3072
3083
  "default-active": f.value,
@@ -3079,44 +3090,44 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
3079
3090
  onOpen: d,
3080
3091
  onClose: u
3081
3092
  }, {
3082
- default: L(() => [
3093
+ default: I(() => [
3083
3094
  (b(!0), A(_0, null, C0(n.menuList, (k) => (b(), A(_0, null, [
3084
- k.show && k.children && k.children.length > 0 ? (b(), $(w, {
3095
+ k.show && k.children && k.children.length > 0 ? (b(), j(w, {
3085
3096
  index: k.path,
3086
3097
  key: k.path,
3087
3098
  style: X0(k.style)
3088
3099
  }, {
3089
- title: L(() => [
3100
+ title: I(() => [
3090
3101
  Q(dt, {
3091
3102
  name: k.icon ?? ((k == null ? void 0 : k.level) <= 2 ? "default" : ""),
3092
3103
  class: "menu-icon"
3093
3104
  }, null, 8, ["name"]),
3094
- u0(g.$slots, "title", { menu: k }, void 0, !0)
3105
+ f0(g.$slots, "title", { menu: k }, void 0, !0)
3095
3106
  ]),
3096
- default: L(() => [
3107
+ default: I(() => [
3097
3108
  Q(lf, {
3098
3109
  menuList: k.children,
3099
3110
  onClickMenu: c
3100
3111
  }, L2({ _: 2 }, [
3101
3112
  C0(g.$slots, (O, x) => ({
3102
3113
  name: x,
3103
- fn: L((S) => [
3104
- u0(g.$slots, x, a1({ ref_for: !0 }, S), void 0, !0)
3114
+ fn: I((S) => [
3115
+ f0(g.$slots, x, a1({ ref_for: !0 }, S), void 0, !0)
3105
3116
  ])
3106
3117
  }))
3107
3118
  ]), 1032, ["menuList"])
3108
3119
  ]),
3109
3120
  _: 2
3110
- }, 1032, ["index", "style"])) : k.show ? (b(), $(y, {
3121
+ }, 1032, ["index", "style"])) : k.show ? (b(), j(y, {
3111
3122
  index: k.path,
3112
3123
  key: k.path,
3113
3124
  style: X0(k.style),
3114
3125
  onClick: (O) => c(k)
3115
3126
  }, {
3116
- title: L(() => [
3117
- u0(g.$slots, "title", { menu: k }, void 0, !0)
3127
+ title: I(() => [
3128
+ f0(g.$slots, "title", { menu: k }, void 0, !0)
3118
3129
  ]),
3119
- default: L(() => [
3130
+ default: I(() => [
3120
3131
  Q(dt, {
3121
3132
  name: k.icon ?? ((k == null ? void 0 : k.level) <= 2 ? "default" : ""),
3122
3133
  class: "menu-icon"
@@ -3150,7 +3161,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
3150
3161
  const t = G(n.value);
3151
3162
  return (i, s) => {
3152
3163
  const o = X("el-date-picker");
3153
- return b(), $(o, {
3164
+ return b(), j(o, {
3154
3165
  modelValue: t.value,
3155
3166
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
3156
3167
  type: "date",
@@ -3177,7 +3188,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
3177
3188
  const t = G(n.value);
3178
3189
  return (i, s) => {
3179
3190
  const o = X("el-date-picker");
3180
- return b(), $(o, {
3191
+ return b(), j(o, {
3181
3192
  modelValue: t.value,
3182
3193
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
3183
3194
  type: "datetime",
@@ -3204,7 +3215,7 @@ const Du = /* @__PURE__ */ P0(ku, [["render", Ou]]), Mu = { class: "extra-button
3204
3215
  const e = n, t = G(e.value);
3205
3216
  return (i, s) => {
3206
3217
  const o = X("el-input");
3207
- return b(), $(o, {
3218
+ return b(), j(o, {
3208
3219
  modelValue: t.value,
3209
3220
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
3210
3221
  type: "textarea",
@@ -3335,8 +3346,8 @@ const ff = { class: "docx-renderer" }, pf = {
3335
3346
  data: a.value,
3336
3347
  stripe: ""
3337
3348
  }, {
3338
- default: L(() => [
3339
- (b(!0), A(_0, null, C0(l.value, (v) => (b(), $(u, {
3349
+ default: I(() => [
3350
+ (b(!0), A(_0, null, C0(l.value, (v) => (b(), j(u, {
3340
3351
  key: v,
3341
3352
  prop: v,
3342
3353
  label: v
@@ -4557,7 +4568,7 @@ function U4(n, e) {
4557
4568
  throw new RangeError("Selection points outside of document");
4558
4569
  }
4559
4570
  let zn = 0;
4560
- class F {
4571
+ class q {
4561
4572
  constructor(e, t, i, s, o) {
4562
4573
  this.combine = e, this.compareInput = t, this.compare = i, this.isStatic = s, this.id = zn++, this.default = e([]), this.extensions = typeof o == "function" ? o(this) : o;
4563
4574
  }
@@ -4572,7 +4583,7 @@ class F {
4572
4583
  Define a new facet.
4573
4584
  */
4574
4585
  static define(e = {}) {
4575
- return new F(e.combine || ((t) => t), e.compareInput || ((t, i) => t === i), e.compare || (e.combine ? (t, i) => t === i : Pn), !!e.static, e.enables);
4586
+ return new q(e.combine || ((t) => t), e.compareInput || ((t, i) => t === i), e.compare || (e.combine ? (t, i) => t === i : Pn), !!e.static, e.enables);
4576
4587
  }
4577
4588
  /**
4578
4589
  Returns an extension that adds the given value to this facet.
@@ -4635,7 +4646,7 @@ class j1 {
4635
4646
  let f, p = u.config.address[o];
4636
4647
  if (p != null) {
4637
4648
  let g = l3(u, p);
4638
- if (this.dependencies.every((v) => v instanceof F ? u.facet(v) === d.facet(v) : v instanceof e2 ? u.field(v, !1) == d.field(v, !1) : !0) || (r ? zs(f = i(d), g, s) : s(f = i(d), g)))
4649
+ if (this.dependencies.every((v) => v instanceof q ? u.facet(v) === d.facet(v) : v instanceof e2 ? u.field(v, !1) == d.field(v, !1) : !0) || (r ? zs(f = i(d), g, s) : s(f = i(d), g)))
4639
4650
  return d.values[l] = g, 0;
4640
4651
  } else
4641
4652
  f = i(d);
@@ -4693,7 +4704,7 @@ function Ef(n, e, t) {
4693
4704
  }
4694
4705
  };
4695
4706
  }
4696
- const v1 = /* @__PURE__ */ F.define({ static: !0 });
4707
+ const v1 = /* @__PURE__ */ q.define({ static: !0 });
4697
4708
  class e2 {
4698
4709
  constructor(e, t, i, s, o) {
4699
4710
  this.id = e, this.createF = t, this.updateF = i, this.compareF = s, this.spec = o, this.provides = void 0;
@@ -4896,13 +4907,13 @@ function Ht(n, e) {
4896
4907
  function l3(n, e) {
4897
4908
  return e & 1 ? n.config.staticValues[e >> 1] : n.values[e >> 1];
4898
4909
  }
4899
- const q4 = /* @__PURE__ */ F.define(), Ei = /* @__PURE__ */ F.define({
4910
+ const q4 = /* @__PURE__ */ q.define(), Ei = /* @__PURE__ */ q.define({
4900
4911
  combine: (n) => n.some((e) => e),
4901
4912
  static: !0
4902
- }), Y4 = /* @__PURE__ */ F.define({
4913
+ }), Y4 = /* @__PURE__ */ q.define({
4903
4914
  combine: (n) => n.length ? n[0] : void 0,
4904
4915
  static: !0
4905
- }), K4 = /* @__PURE__ */ F.define(), X4 = /* @__PURE__ */ F.define(), Q4 = /* @__PURE__ */ F.define(), J4 = /* @__PURE__ */ F.define({
4916
+ }), K4 = /* @__PURE__ */ q.define(), X4 = /* @__PURE__ */ q.define(), Q4 = /* @__PURE__ */ q.define(), J4 = /* @__PURE__ */ q.define({
4906
4917
  combine: (n) => n.length ? n[0] : !1
4907
4918
  });
4908
4919
  class ce {
@@ -4939,10 +4950,10 @@ class Hf {
4939
4950
  type.
4940
4951
  */
4941
4952
  of(e) {
4942
- return new h0(this, e);
4953
+ return new d0(this, e);
4943
4954
  }
4944
4955
  }
4945
- class h0 {
4956
+ class d0 {
4946
4957
  /**
4947
4958
  @internal
4948
4959
  */
@@ -4955,7 +4966,7 @@ class h0 {
4955
4966
  */
4956
4967
  map(e) {
4957
4968
  let t = this.type.map(this.value, e);
4958
- return t === void 0 ? void 0 : t == this.value ? this : new h0(this.type, t);
4969
+ return t === void 0 ? void 0 : t == this.value ? this : new d0(this.type, t);
4959
4970
  }
4960
4971
  /**
4961
4972
  Tells you whether this effect object is of a given
@@ -4988,8 +4999,8 @@ class h0 {
4988
4999
  return i;
4989
5000
  }
4990
5001
  }
4991
- h0.reconfigure = /* @__PURE__ */ h0.define();
4992
- h0.appendConfig = /* @__PURE__ */ h0.define();
5002
+ d0.reconfigure = /* @__PURE__ */ d0.define();
5003
+ d0.appendConfig = /* @__PURE__ */ d0.define();
4993
5004
  class W0 {
4994
5005
  constructor(e, t, i, s, o, l) {
4995
5006
  this.startState = e, this.changes = t, this.selection = i, this.effects = s, this.annotations = o, this.scrollIntoView = l, this._doc = null, this._state = null, i && U4(i, t.newLength), o.some((r) => r.type == W0.time) || (this.annotations = o.concat(W0.time.of(Date.now())));
@@ -5087,7 +5098,7 @@ function Z4(n, e, t) {
5087
5098
  return t ? (s = e.changes, o = $0.empty(e.changes.length), l = n.changes.compose(e.changes)) : (s = e.changes.map(n.changes), o = n.changes.mapDesc(e.changes, !0), l = n.changes.compose(s)), {
5088
5099
  changes: l,
5089
5100
  selection: e.selection ? e.selection.map(o) : (i = n.selection) === null || i === void 0 ? void 0 : i.map(s),
5090
- effects: h0.mapEffects(n.effects, s).concat(h0.mapEffects(e.effects, o)),
5101
+ effects: d0.mapEffects(n.effects, s).concat(d0.mapEffects(e.effects, o)),
5091
5102
  annotations: n.annotations.length ? n.annotations.concat(e.annotations) : e.annotations,
5092
5103
  scrollIntoView: n.scrollIntoView || e.scrollIntoView
5093
5104
  };
@@ -5131,7 +5142,7 @@ function Rf(n) {
5131
5142
  let l = n.changes.filter(t);
5132
5143
  s = l.changes, o = l.filtered.mapDesc(l.changes).invertedDesc;
5133
5144
  }
5134
- n = W0.create(e, s, n.selection && n.selection.map(o), h0.mapEffects(n.effects, o), n.annotations, n.scrollIntoView);
5145
+ n = W0.create(e, s, n.selection && n.selection.map(o), d0.mapEffects(n.effects, o), n.annotations, n.scrollIntoView);
5135
5146
  }
5136
5147
  let i = e.facet(X4);
5137
5148
  for (let s = i.length - 1; s >= 0; s--) {
@@ -5223,7 +5234,7 @@ class w0 {
5223
5234
  applyTransaction(e) {
5224
5235
  let t = this.config, { base: i, compartments: s } = t;
5225
5236
  for (let r of e.effects)
5226
- r.is(B3.reconfigure) ? (t && (s = /* @__PURE__ */ new Map(), t.compartments.forEach((a, h) => s.set(h, a)), t = null), s.set(r.value.compartment, r.value.extension)) : r.is(h0.reconfigure) ? (t = null, i = r.value) : r.is(h0.appendConfig) && (t = null, i = st(i).concat(r.value));
5237
+ r.is(B3.reconfigure) ? (t && (s = /* @__PURE__ */ new Map(), t.compartments.forEach((a, h) => s.set(h, a)), t = null), s.set(r.value.compartment, r.value.extension)) : r.is(d0.reconfigure) ? (t = null, i = r.value) : r.is(d0.appendConfig) && (t = null, i = st(i).concat(r.value));
5227
5238
  let o;
5228
5239
  t ? o = e.startState.values.slice() : (t = o3.resolve(i, s, this), o = new w0(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, h) => h.reconfigure(a, this), null).values);
5229
5240
  let l = e.startState.facet(Ei) ? e.newSelection : e.newSelection.asSingle();
@@ -5257,7 +5268,7 @@ class w0 {
5257
5268
  for (let u = 0; u < r; u++)
5258
5269
  o[u] = o[u].map(c);
5259
5270
  let d = s.mapDesc(h, !0);
5260
- o.push(a.range.map(d)), s = s.compose(c), l = h0.mapEffects(l, c).concat(h0.mapEffects(st(a.effects), d));
5271
+ o.push(a.range.map(d)), s = s.compose(c), l = d0.mapEffects(l, c).concat(d0.mapEffects(st(a.effects), d));
5261
5272
  }
5262
5273
  return {
5263
5274
  changes: s,
@@ -5450,12 +5461,12 @@ class w0 {
5450
5461
  }
5451
5462
  }
5452
5463
  w0.allowMultipleSelections = Ei;
5453
- w0.tabSize = /* @__PURE__ */ F.define({
5464
+ w0.tabSize = /* @__PURE__ */ q.define({
5454
5465
  combine: (n) => n.length ? n[0] : 4
5455
5466
  });
5456
5467
  w0.lineSeparator = Y4;
5457
5468
  w0.readOnly = J4;
5458
- w0.phrases = /* @__PURE__ */ F.define({
5469
+ w0.phrases = /* @__PURE__ */ q.define({
5459
5470
  compare(n, e) {
5460
5471
  let t = Object.keys(n), i = Object.keys(e);
5461
5472
  return t.length == i.length && t.every((s) => n[s] == e[s]);
@@ -5465,7 +5476,7 @@ w0.languageData = q4;
5465
5476
  w0.changeFilter = K4;
5466
5477
  w0.transactionFilter = X4;
5467
5478
  w0.transactionExtender = Q4;
5468
- B3.reconfigure = /* @__PURE__ */ h0.define();
5479
+ B3.reconfigure = /* @__PURE__ */ d0.define();
5469
5480
  function Z2(n, e, t = {}) {
5470
5481
  let i = {};
5471
5482
  for (let s of n)
@@ -6367,17 +6378,17 @@ function Qf(n, e, t, i, s, o, l, r) {
6367
6378
  if (s == "nearest")
6368
6379
  e.top < u.top ? (w = e.top - (u.top + l), t > 0 && e.bottom > u.bottom + w && (w = e.bottom - u.bottom + l)) : e.bottom > u.bottom && (w = e.bottom - u.bottom + l, t < 0 && e.top - w < u.top && (w = e.top - (u.top + l)));
6369
6380
  else {
6370
- let y = e.bottom - e.top, M = u.bottom - u.top;
6371
- w = (s == "center" && y <= M ? e.top + y / 2 - M / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - M + l) - u.top;
6381
+ let y = e.bottom - e.top, D = u.bottom - u.top;
6382
+ w = (s == "center" && y <= D ? e.top + y / 2 - D / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - D + l) - u.top;
6372
6383
  }
6373
6384
  if (i == "nearest" ? e.left < u.left ? (v = e.left - (u.left + o), t > 0 && e.right > u.right + v && (v = e.right - u.right + o)) : e.right > u.right && (v = e.right - u.right + o, t < 0 && e.left < u.left + v && (v = e.left - (u.left + o))) : v = (i == "center" ? e.left + (e.right - e.left) / 2 - (u.right - u.left) / 2 : i == "start" == r ? e.left - o : e.right - (u.right - u.left) + o) - u.left, v || w)
6374
6385
  if (f)
6375
6386
  h.scrollBy(v, w);
6376
6387
  else {
6377
- let y = 0, M = 0;
6388
+ let y = 0, D = 0;
6378
6389
  if (w) {
6379
6390
  let k = c.scrollTop;
6380
- c.scrollTop += w / g, M = (c.scrollTop - k) * g;
6391
+ c.scrollTop += w / g, D = (c.scrollTop - k) * g;
6381
6392
  }
6382
6393
  if (v) {
6383
6394
  let k = c.scrollLeft;
@@ -6385,10 +6396,10 @@ function Qf(n, e, t, i, s, o, l, r) {
6385
6396
  }
6386
6397
  e = {
6387
6398
  left: e.left - y,
6388
- top: e.top - M,
6399
+ top: e.top - D,
6389
6400
  right: e.right - y,
6390
- bottom: e.bottom - M
6391
- }, y && Math.abs(y - v) < 1 && (i = "nearest"), M && Math.abs(M - w) < 1 && (s = "nearest");
6401
+ bottom: e.bottom - D
6402
+ }, y && Math.abs(y - v) < 1 && (i = "nearest"), D && Math.abs(D - w) < 1 && (s = "nearest");
6392
6403
  }
6393
6404
  if (f)
6394
6405
  break;
@@ -6757,7 +6768,7 @@ function fo(n, e, t, i, s, o) {
6757
6768
  }
6758
6769
  let p2 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Wi = typeof document < "u" ? document : { documentElement: { style: {} } };
6759
6770
  const Ui = /* @__PURE__ */ /Edge\/(\d+)/.exec(p2.userAgent), po = /* @__PURE__ */ /MSIE \d/.test(p2.userAgent), Fi = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(p2.userAgent), H3 = !!(po || Fi || Ui), Ns = !H3 && /* @__PURE__ */ /gecko\/(\d+)/i.test(p2.userAgent), ei = !H3 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(p2.userAgent), ip = "webkitFontSmoothing" in Wi.documentElement.style, go = !H3 && /* @__PURE__ */ /Apple Computer/.test(p2.vendor), Gs = go && (/* @__PURE__ */ /Mobile\/\w+/.test(p2.userAgent) || p2.maxTouchPoints > 2);
6760
- var W = {
6771
+ var U = {
6761
6772
  mac: Gs || /* @__PURE__ */ /Mac/.test(p2.platform),
6762
6773
  windows: /* @__PURE__ */ /Win/.test(p2.platform),
6763
6774
  linux: /* @__PURE__ */ /Linux|X11/.test(p2.platform),
@@ -6854,12 +6865,12 @@ function sp(n, e, t) {
6854
6865
  let i = n.nodeValue.length;
6855
6866
  e > i && (e = i);
6856
6867
  let s = e, o = e, l = 0;
6857
- e == 0 && t < 0 || e == i && t >= 0 ? W.chrome || W.gecko || (e ? (s--, l = 1) : o < i && (o++, l = -1)) : t < 0 ? s-- : o < i && o++;
6868
+ e == 0 && t < 0 || e == i && t >= 0 ? U.chrome || U.gecko || (e ? (s--, l = 1) : o < i && (o++, l = -1)) : t < 0 ? s-- : o < i && o++;
6858
6869
  let r = je(n, s, o).getClientRects();
6859
6870
  if (!r.length)
6860
6871
  return null;
6861
6872
  let a = r[(l ? l < 0 : t >= 0) ? 0 : r.length - 1];
6862
- return W.safari && !l && a.width == 0 && (a = Array.prototype.find.call(r, (h) => h.width) || a), l ? L3(a, l < 0) : a || null;
6873
+ return U.safari && !l && a.width == 0 && (a = Array.prototype.find.call(r, (h) => h.width) || a), l ? L3(a, l < 0) : a || null;
6863
6874
  }
6864
6875
  class pe extends M0 {
6865
6876
  static create(e, t, i) {
@@ -7332,7 +7343,7 @@ class R0 extends M0 {
7332
7343
  let s = this.dom.lastChild;
7333
7344
  for (; s && M0.get(s) instanceof le; )
7334
7345
  s = s.lastChild;
7335
- if (!s || !this.length || s.nodeName != "BR" && ((i = M0.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!W.ios || !this.children.some((o) => o instanceof H2))) {
7346
+ if (!s || !this.length || s.nodeName != "BR" && ((i = M0.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!U.ios || !this.children.some((o) => o instanceof H2))) {
7336
7347
  let o = document.createElement("BR");
7337
7348
  o.cmIgnore = !0, this.dom.appendChild(o);
7338
7349
  }
@@ -7842,11 +7853,11 @@ function vp(n, e, t) {
7842
7853
  }
7843
7854
  return We;
7844
7855
  }
7845
- const ko = /* @__PURE__ */ F.define(), Oo = /* @__PURE__ */ F.define(), Do = /* @__PURE__ */ F.define(), Mo = /* @__PURE__ */ F.define(), Zi = /* @__PURE__ */ F.define(), To = /* @__PURE__ */ F.define(), zo = /* @__PURE__ */ F.define(), Bn = /* @__PURE__ */ F.define(), Ln = /* @__PURE__ */ F.define(), Po = /* @__PURE__ */ F.define({
7856
+ const ko = /* @__PURE__ */ q.define(), Oo = /* @__PURE__ */ q.define(), Do = /* @__PURE__ */ q.define(), Mo = /* @__PURE__ */ q.define(), Zi = /* @__PURE__ */ q.define(), To = /* @__PURE__ */ q.define(), zo = /* @__PURE__ */ q.define(), Bn = /* @__PURE__ */ q.define(), Ln = /* @__PURE__ */ q.define(), Po = /* @__PURE__ */ q.define({
7846
7857
  combine: (n) => n.some((e) => e)
7847
- }), Ao = /* @__PURE__ */ F.define({
7858
+ }), Ao = /* @__PURE__ */ q.define({
7848
7859
  combine: (n) => n.some((e) => e)
7849
- }), Vo = /* @__PURE__ */ F.define();
7860
+ }), Vo = /* @__PURE__ */ q.define();
7850
7861
  class lt {
7851
7862
  constructor(e, t = "nearest", i = "nearest", s = 5, o = 5, l = !1) {
7852
7863
  this.range = e, this.y = t, this.x = i, this.yMargin = s, this.xMargin = o, this.isSnapshot = l;
@@ -7858,14 +7869,14 @@ class lt {
7858
7869
  return this.range.to <= e.doc.length ? this : new lt(T.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
7859
7870
  }
7860
7871
  }
7861
- const _1 = /* @__PURE__ */ h0.define({ map: (n, e) => n.map(e) }), Eo = /* @__PURE__ */ h0.define();
7872
+ const _1 = /* @__PURE__ */ d0.define({ map: (n, e) => n.map(e) }), Eo = /* @__PURE__ */ d0.define();
7862
7873
  function m2(n, e, t) {
7863
7874
  let i = n.facet(Mo);
7864
7875
  i.length ? i[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
7865
7876
  }
7866
- const ie = /* @__PURE__ */ F.define({ combine: (n) => n.length ? n[0] : !0 });
7877
+ const ie = /* @__PURE__ */ q.define({ combine: (n) => n.length ? n[0] : !0 });
7867
7878
  let wp = 0;
7868
- const Je = /* @__PURE__ */ F.define({
7879
+ const Je = /* @__PURE__ */ q.define({
7869
7880
  combine(n) {
7870
7881
  return n.filter((e, t) => {
7871
7882
  for (let i = 0; i < t; i++)
@@ -7951,7 +7962,7 @@ class ti {
7951
7962
  this.spec = this.value = null;
7952
7963
  }
7953
7964
  }
7954
- const Bo = /* @__PURE__ */ F.define(), Hn = /* @__PURE__ */ F.define(), Xt = /* @__PURE__ */ F.define(), Lo = /* @__PURE__ */ F.define(), In = /* @__PURE__ */ F.define(), Ho = /* @__PURE__ */ F.define();
7965
+ const Bo = /* @__PURE__ */ q.define(), Hn = /* @__PURE__ */ q.define(), Xt = /* @__PURE__ */ q.define(), Lo = /* @__PURE__ */ q.define(), In = /* @__PURE__ */ q.define(), Ho = /* @__PURE__ */ q.define();
7955
7966
  function js(n, e) {
7956
7967
  let t = n.state.facet(Ho);
7957
7968
  if (!t.length)
@@ -7974,7 +7985,7 @@ function js(n, e) {
7974
7985
  }
7975
7986
  }), s;
7976
7987
  }
7977
- const Io = /* @__PURE__ */ F.define();
7988
+ const Io = /* @__PURE__ */ q.define();
7978
7989
  function Rn(n) {
7979
7990
  let e = 0, t = 0, i = 0, s = 0;
7980
7991
  for (let o of n.state.facet(Io)) {
@@ -7983,7 +7994,7 @@ function Rn(n) {
7983
7994
  }
7984
7995
  return { left: e, right: t, top: i, bottom: s };
7985
7996
  }
7986
- const Pt = /* @__PURE__ */ F.define();
7997
+ const Pt = /* @__PURE__ */ q.define();
7987
7998
  class z2 {
7988
7999
  constructor(e, t, i, s) {
7989
8000
  this.fromA = e, this.toA = t, this.fromB = i, this.toB = s;
@@ -8111,7 +8122,7 @@ class Ws extends M0 {
8111
8122
  let { from: h, to: c } = this.hasComposition;
8112
8123
  i = new z2(h, c, e.changes.mapPos(h, -1), e.changes.mapPos(c, 1)).addToSet(i.slice());
8113
8124
  }
8114
- this.hasComposition = o ? { from: o.range.fromB, to: o.range.toB } : null, (W.ie || W.chrome) && !o && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
8125
+ this.hasComposition = o ? { from: o.range.fromB, to: o.range.toB } : null, (U.ie || U.chrome) && !o && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
8115
8126
  let l = this.decorations, r = this.updateDeco(), a = Sp(l, r, e.changes);
8116
8127
  return i = z2.extendWithRanges(i, a), !(this.flags & 7) && i.length == 0 ? !1 : (this.updateInner(i, e.startState.doc.length, o), e.transactions.length && (this.lastUpdate = Date.now()), !0);
8117
8128
  }
@@ -8122,7 +8133,7 @@ class Ws extends M0 {
8122
8133
  let { observer: s } = this.view;
8123
8134
  s.ignore(() => {
8124
8135
  this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
8125
- let l = W.chrome || W.ios ? { node: s.selectionRange.focusNode, written: !1 } : void 0;
8136
+ let l = U.chrome || U.ios ? { node: s.selectionRange.focusNode, written: !1 } : void 0;
8126
8137
  this.sync(this.view, l), this.flags &= -8, l && (l.written || s.selectionRange.focusNode != l.node) && (this.forceSelection = !0), this.dom.style.height = "";
8127
8138
  }), this.markedForComposition.forEach(
8128
8139
  (l) => l.flags &= -9
@@ -8148,8 +8159,8 @@ class Ws extends M0 {
8148
8159
  O.breakAtStart ? x.breakAfter = 1 : O.content.length && x.merge(x.length, x.length, O.content[0], !1, O.openStart, 0) && (x.breakAfter = O.content[0].breakAfter, O.content.shift()), k.content.length && x.merge(0, 0, k.content[k.content.length - 1], !0, 0, k.openEnd) && k.content.pop(), u = k.content.concat(x).concat(O.content);
8149
8160
  } else
8150
8161
  ({ content: u, breakAtStart: f, openStart: p, openEnd: g } = Rt.build(this.view.state.doc, c, d, this.decorations, this.dynamicDecorationMap));
8151
- let { i: v, off: w } = o.findPos(h, 1), { i: y, off: M } = o.findPos(a, -1);
8152
- uo(this, y, M, v, w, u, f, p, g);
8162
+ let { i: v, off: w } = o.findPos(h, 1), { i: y, off: D } = o.findPos(a, -1);
8163
+ uo(this, y, D, v, w, u, f, p, g);
8153
8164
  }
8154
8165
  i && this.fixCompositionDOM(i);
8155
8166
  }
@@ -8189,16 +8200,16 @@ class Ws extends M0 {
8189
8200
  let l = this.forceSelection;
8190
8201
  this.forceSelection = !1;
8191
8202
  let r = this.view.state.selection.main, a = this.moveToLine(this.domAtPos(r.anchor)), h = r.empty ? a : this.moveToLine(this.domAtPos(r.head));
8192
- if (W.gecko && r.empty && !this.hasComposition && xp(a)) {
8203
+ if (U.gecko && r.empty && !this.hasComposition && xp(a)) {
8193
8204
  let d = document.createTextNode("");
8194
8205
  this.view.observer.ignore(() => a.node.insertBefore(d, a.node.childNodes[a.offset] || null)), a = h = new n2(d, 0), l = !0;
8195
8206
  }
8196
8207
  let c = this.view.observer.selectionRange;
8197
8208
  (l || !c.focusNode || (!It(a.node, a.offset, c.anchorNode, c.anchorOffset) || !It(h.node, h.offset, c.focusNode, c.focusOffset)) && !this.suppressWidgetCursorChange(c, r)) && (this.view.observer.ignore(() => {
8198
- W.android && W.chrome && this.dom.contains(c.focusNode) && Cp(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
8209
+ U.android && U.chrome && this.dom.contains(c.focusNode) && Cp(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
8199
8210
  let d = Yt(this.view.root);
8200
8211
  if (d) if (r.empty) {
8201
- if (W.gecko) {
8212
+ if (U.gecko) {
8202
8213
  let u = _p(a.node, a.offset);
8203
8214
  if (u && u != 3) {
8204
8215
  let f = (u == 1 ? ao : co)(a.node, a.offset);
@@ -8561,10 +8572,10 @@ function en(n, e, t) {
8561
8572
  for (let v = 0; v < g.length; v++) {
8562
8573
  let w = g[v];
8563
8574
  s && ii(s, w) && (w = Us(Fs(w, s.bottom), s.top));
8564
- let y = Dp(e, w), M = Mp(t, w);
8565
- if (y == 0 && M == 0)
8575
+ let y = Dp(e, w), D = Mp(t, w);
8576
+ if (y == 0 && D == 0)
8566
8577
  return p.nodeType == 3 ? qs(p, e, t) : en(p, e, t);
8567
- (!i || l > M || l == M && o > y) && (i = p, s = w, o = y, l = M, r = y ? e < w.left ? v > 0 : v < g.length - 1 : !0), y == 0 ? t > w.bottom && (!c || c.bottom < w.bottom) ? (a = p, c = w) : t < w.top && (!d || d.top > w.top) && (h = p, d = w) : c && ii(c, w) ? c = Fs(c, w.bottom) : d && ii(d, w) && (d = Us(d, w.top));
8578
+ (!i || l > D || l == D && o > y) && (i = p, s = w, o = y, l = D, r = y ? e < w.left ? v > 0 : v < g.length - 1 : !0), y == 0 ? t > w.bottom && (!c || c.bottom < w.bottom) ? (a = p, c = w) : t < w.top && (!d || d.top > w.top) && (h = p, d = w) : c && ii(c, w) ? c = Fs(c, w.bottom) : d && ii(d, w) && (d = Us(d, w.top));
8568
8579
  }
8569
8580
  }
8570
8581
  if (c && c.bottom >= t ? (i = a, s = c) : d && d.top <= t && (i = h, s = d), !i)
@@ -8589,7 +8600,7 @@ function qs(n, e, t) {
8589
8600
  let d = (c.top > t ? c.top - t : t - c.bottom) - 1;
8590
8601
  if (c.left - 1 <= e && c.right + 1 >= e && d < o) {
8591
8602
  let u = e >= (c.left + c.right) / 2, f = u;
8592
- if ((W.chrome || W.gecko) && je(n, r).getBoundingClientRect().left == c.right && (f = !u), d <= 0)
8603
+ if ((U.chrome || U.gecko) && je(n, r).getBoundingClientRect().left == c.right && (f = !u), d <= 0)
8593
8604
  return { node: n, offset: r + (f ? 1 : 0) };
8594
8605
  s = r + (f ? 1 : 0), o = d;
8595
8606
  }
@@ -8625,7 +8636,7 @@ function No(n, e, t, i = -1) {
8625
8636
  k && ({ offsetNode: w, offset: y } = k);
8626
8637
  } else if (p.caretRangeFromPoint) {
8627
8638
  let k = p.caretRangeFromPoint(c, d);
8628
- k && ({ startContainer: w, startOffset: y } = k, (!n.contentDOM.contains(w) || W.safari && Tp(w, y, c) || W.chrome && zp(w, y, c)) && (w = void 0));
8639
+ k && ({ startContainer: w, startOffset: y } = k, (!n.contentDOM.contains(w) || U.safari && Tp(w, y, c) || U.chrome && zp(w, y, c)) && (w = void 0));
8629
8640
  }
8630
8641
  w && (y = Math.min(J2(w), y));
8631
8642
  }
@@ -8635,14 +8646,14 @@ function No(n, e, t, i = -1) {
8635
8646
  return u > a.top + a.height / 2 ? a.to : a.from;
8636
8647
  ({ node: w, offset: y } = en(k.dom, c, d));
8637
8648
  }
8638
- let M = n.docView.nearest(w);
8639
- if (!M)
8649
+ let D = n.docView.nearest(w);
8650
+ if (!D)
8640
8651
  return null;
8641
- if (M.isWidget && ((o = M.dom) === null || o === void 0 ? void 0 : o.nodeType) == 1) {
8642
- let k = M.dom.getBoundingClientRect();
8643
- return e.y < k.top || e.y <= k.bottom && e.x <= (k.left + k.right) / 2 ? M.posAtStart : M.posAtEnd;
8652
+ if (D.isWidget && ((o = D.dom) === null || o === void 0 ? void 0 : o.nodeType) == 1) {
8653
+ let k = D.dom.getBoundingClientRect();
8654
+ return e.y < k.top || e.y <= k.bottom && e.x <= (k.left + k.right) / 2 ? D.posAtStart : D.posAtEnd;
8644
8655
  } else
8645
- return M.localPosFromDOM(w, y) + M.posAtStart;
8656
+ return D.localPosFromDOM(w, y) + D.posAtStart;
8646
8657
  }
8647
8658
  function Ys(n, e, t, i, s) {
8648
8659
  let o = Math.round((i - e.left) * n.defaultCharacterWidth);
@@ -8866,7 +8877,7 @@ class Lp {
8866
8877
  a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = Np(r, this.bounds.from);
8867
8878
  } else {
8868
8879
  let r = e.observer.selectionRange, a = o && o.node == r.focusNode && o.offset == r.focusOffset || !ji(e.contentDOM, r.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(r.focusNode, r.focusOffset), h = l && l.node == r.anchorNode && l.offset == r.anchorOffset || !ji(e.contentDOM, r.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(r.anchorNode, r.anchorOffset), c = e.viewport;
8869
- if ((W.ios || W.chrome) && e.state.selection.main.empty && a != h && (c.from > 0 || c.to < e.state.doc.length)) {
8880
+ if ((U.ios || U.chrome) && e.state.selection.main.empty && a != h && (c.from > 0 || c.to < e.state.doc.length)) {
8870
8881
  let d = Math.min(a, h), u = Math.max(a, h), f = c.from - d, p = c.to - u;
8871
8882
  (f == 0 || f == 1 || d == 0) && (p == 0 || p == -1 || u == e.state.doc.length) && (a = 0, h = e.state.doc.length);
8872
8883
  }
@@ -8878,9 +8889,9 @@ function Go(n, e) {
8878
8889
  let t, { newSel: i } = e, s = n.state.selection.main, o = n.inputState.lastKeyTime > Date.now() - 100 ? n.inputState.lastKeyCode : -1;
8879
8890
  if (e.bounds) {
8880
8891
  let { from: l, to: r } = e.bounds, a = s.from, h = null;
8881
- (o === 8 || W.android && e.text.length < r - l) && (a = s.to, h = "end");
8892
+ (o === 8 || U.android && e.text.length < r - l) && (a = s.to, h = "end");
8882
8893
  let c = Ip(n.state.doc.sliceString(l, r, At), e.text, a - l, h);
8883
- c && (W.chrome && o == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == At + At && c.toB--, t = {
8894
+ c && (U.chrome && o == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == At + At && c.toB--, t = {
8884
8895
  from: l + c.from,
8885
8896
  to: l + c.toA,
8886
8897
  insert: b0.of(e.text.slice(c.from, c.toB).split(At))
@@ -8888,11 +8899,11 @@ function Go(n, e) {
8888
8899
  } else i && (!n.hasFocus && n.state.facet(ie) || i.main.eq(s)) && (i = null);
8889
8900
  if (!t && !i)
8890
8901
  return !1;
8891
- if (!t && e.typeOver && !s.empty && i && i.main.empty ? t = { from: s.from, to: s.to, insert: n.state.doc.slice(s.from, s.to) } : (W.mac || W.android) && t && t.from == t.to && t.from == s.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: b0.of([t.insert.toString().replace(".", " ")]) }) : t && t.from >= s.from && t.to <= s.to && (t.from != s.from || t.to != s.to) && s.to - s.from - (t.to - t.from) <= 4 ? t = {
8902
+ if (!t && e.typeOver && !s.empty && i && i.main.empty ? t = { from: s.from, to: s.to, insert: n.state.doc.slice(s.from, s.to) } : (U.mac || U.android) && t && t.from == t.to && t.from == s.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: b0.of([t.insert.toString().replace(".", " ")]) }) : t && t.from >= s.from && t.to <= s.to && (t.from != s.from || t.to != s.to) && s.to - s.from - (t.to - t.from) <= 4 ? t = {
8892
8903
  from: s.from,
8893
8904
  to: s.to,
8894
8905
  insert: n.state.doc.slice(s.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, s.to))
8895
- } : W.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
8906
+ } : U.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
8896
8907
  ` && n.lineWrapping && (i && (i = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: b0.of([" "]) }), t)
8897
8908
  return Nn(n, t, i, o);
8898
8909
  if (i && !i.main.eq(s)) {
@@ -8902,10 +8913,10 @@ function Go(n, e) {
8902
8913
  return !1;
8903
8914
  }
8904
8915
  function Nn(n, e, t, i = -1) {
8905
- if (W.ios && n.inputState.flushIOSKey(e))
8916
+ if (U.ios && n.inputState.flushIOSKey(e))
8906
8917
  return !0;
8907
8918
  let s = n.state.selection.main;
8908
- if (W.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
8919
+ if (U.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
8909
8920
  // after a completion when you press enter
8910
8921
  (e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && ot(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && ot(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && ot(n.contentDOM, "Delete", 46)))
8911
8922
  return !0;
@@ -8994,7 +9005,7 @@ class Gp {
8994
9005
  this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
8995
9006
  }
8996
9007
  constructor(e) {
8997
- this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, W.safari && e.contentDOM.addEventListener("input", () => null), W.gecko && ng(e.contentDOM.ownerDocument);
9008
+ this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, U.safari && e.contentDOM.addEventListener("input", () => null), U.gecko && ng(e.contentDOM.ownerDocument);
8998
9009
  }
8999
9010
  handleEvent(e) {
9000
9011
  !Kp(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || (this.view.updateState != 0 ? Promise.resolve().then(() => this.runHandlers(e.type, e)) : this.runHandlers(e.type, e));
@@ -9028,17 +9039,17 @@ class Gp {
9028
9039
  keydown(e) {
9029
9040
  if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
9030
9041
  return !0;
9031
- if (this.tabFocusMode > 0 && e.keyCode != 27 && jo.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), W.android && W.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
9042
+ if (this.tabFocusMode > 0 && e.keyCode != 27 && jo.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), U.android && U.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
9032
9043
  return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
9033
9044
  let t;
9034
- return W.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = $o.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || jp.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
9045
+ return U.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = $o.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || jp.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
9035
9046
  }
9036
9047
  flushIOSKey(e) {
9037
9048
  let t = this.pendingIOSKey;
9038
9049
  return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, ot(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
9039
9050
  }
9040
9051
  ignoreDuringComposition(e) {
9041
- return /^key/.test(e.type) ? this.composing > 0 ? !0 : W.safari && !W.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
9052
+ return /^key/.test(e.type) ? this.composing > 0 ? !0 : U.safari && !U.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
9042
9053
  }
9043
9054
  startMouseSelection(e) {
9044
9055
  this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
@@ -9158,11 +9169,11 @@ class Up {
9158
9169
  }
9159
9170
  function Fp(n, e) {
9160
9171
  let t = n.state.facet(ko);
9161
- return t.length ? t[0](e) : W.mac ? e.metaKey : e.ctrlKey;
9172
+ return t.length ? t[0](e) : U.mac ? e.metaKey : e.ctrlKey;
9162
9173
  }
9163
9174
  function qp(n, e) {
9164
9175
  let t = n.state.facet(Oo);
9165
- return t.length ? t[0](e) : W.mac ? !e.altKey : !e.ctrlKey;
9176
+ return t.length ? t[0](e) : U.mac ? !e.altKey : !e.ctrlKey;
9166
9177
  }
9167
9178
  function Yp(n, e) {
9168
9179
  let { main: t } = n.state.selection;
@@ -9189,7 +9200,7 @@ function Kp(n, e) {
9189
9200
  return !1;
9190
9201
  return !0;
9191
9202
  }
9192
- const I2 = /* @__PURE__ */ Object.create(null), A2 = /* @__PURE__ */ Object.create(null), Wo = W.ie && W.ie_version < 15 || W.ios && W.webkit_version < 604;
9203
+ const I2 = /* @__PURE__ */ Object.create(null), A2 = /* @__PURE__ */ Object.create(null), Wo = U.ie && U.ie_version < 15 || U.ios && U.webkit_version < 604;
9193
9204
  function Xp(n) {
9194
9205
  let e = n.dom.parentNode;
9195
9206
  if (!e)
@@ -9292,7 +9303,7 @@ function e6(n, e) {
9292
9303
  let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
9293
9304
  return { pos: t, bias: Qp(n, t, e.clientX, e.clientY) };
9294
9305
  }
9295
- const Jp = W.ie && W.ie_version <= 11;
9306
+ const Jp = U.ie && U.ie_version <= 11;
9296
9307
  let t6 = null, i6 = 0, n6 = 0;
9297
9308
  function Fo(n) {
9298
9309
  if (!Jp)
@@ -9442,7 +9453,7 @@ A2.compositionstart = A2.compositionupdate = (n) => {
9442
9453
  n.observer.editContext || (n.inputState.compositionFirstChange == null && (n.inputState.compositionFirstChange = !0), n.inputState.composing < 0 && (n.inputState.composing = 0));
9443
9454
  };
9444
9455
  A2.compositionend = (n) => {
9445
- n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, W.chrome && W.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
9456
+ n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, U.chrome && U.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
9446
9457
  n.inputState.composing < 0 && n.docView.hasComposition && n.update([]);
9447
9458
  }, 50));
9448
9459
  };
@@ -9459,14 +9470,14 @@ I2.beforeinput = (n, e) => {
9459
9470
  }
9460
9471
  }
9461
9472
  let s;
9462
- if (W.chrome && W.android && (s = $o.find((o) => o.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
9473
+ if (U.chrome && U.android && (s = $o.find((o) => o.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
9463
9474
  let o = ((i = window.visualViewport) === null || i === void 0 ? void 0 : i.height) || 0;
9464
9475
  setTimeout(() => {
9465
9476
  var l;
9466
9477
  (((l = window.visualViewport) === null || l === void 0 ? void 0 : l.height) || 0) > o + 10 && n.hasFocus && (n.contentDOM.blur(), n.focus());
9467
9478
  }, 100);
9468
9479
  }
9469
- return W.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), W.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => A2.compositionend(n, e), 20), !1;
9480
+ return U.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), U.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => A2.compositionend(n, e), 20), !1;
9470
9481
  };
9471
9482
  const o6 = /* @__PURE__ */ new Set();
9472
9483
  function ng(n) {
@@ -10070,8 +10081,8 @@ class c6 {
10070
10081
  }
10071
10082
  gt && (h |= 2);
10072
10083
  }
10073
- let M = !this.viewportIsAppropriate(this.viewport, c) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
10074
- return M && (h & 2 && (h |= this.updateScaler()), this.viewport = this.getViewport(c, this.scrollTarget), h |= this.updateForViewport()), (h & 2 || M) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(l ? [] : this.lineGaps, e)), h |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), h;
10084
+ let D = !this.viewportIsAppropriate(this.viewport, c) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
10085
+ return D && (h & 2 && (h |= this.updateScaler()), this.viewport = this.getViewport(c, this.scrollTarget), h |= this.updateForViewport()), (h & 2 || D) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(l ? [] : this.lineGaps, e)), h |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), h;
10075
10086
  }
10076
10087
  get visibleTop() {
10077
10088
  return this.scaler.fromDOM(this.pixelViewport.top);
@@ -10141,9 +10152,9 @@ class c6 {
10141
10152
  }
10142
10153
  let v = gg(e, (w) => w.from >= u.from && w.to <= u.to && Math.abs(w.from - c) < o && Math.abs(w.to - d) < o && !g.some((y) => w.from < y && w.to > y));
10143
10154
  if (!v) {
10144
- if (d < u.to && t && i && t.visibleRanges.some((M) => M.from <= d && M.to >= d)) {
10145
- let M = t.moveToLineBoundary(T.cursor(d), !1, !0).head;
10146
- M > c && (d = M);
10155
+ if (d < u.to && t && i && t.visibleRanges.some((D) => D.from <= d && D.to >= d)) {
10156
+ let D = t.moveToLineBoundary(T.cursor(d), !1, !0).head;
10157
+ D > c && (d = D);
10147
10158
  }
10148
10159
  let w = this.gapSize(u, c, d, f), y = i || w < 2e6 ? w : 2e6;
10149
10160
  v = new si(c, d, w, y);
@@ -10159,8 +10170,8 @@ class c6 {
10159
10170
  if (i) {
10160
10171
  let g = s / this.heightOracle.lineLength * this.heightOracle.lineHeight, v, w;
10161
10172
  if (u != null) {
10162
- let y = O1(d, u), M = ((this.visibleBottom - this.visibleTop) / 2 + g) / c.height;
10163
- v = y - M, w = y + M;
10173
+ let y = O1(d, u), D = ((this.visibleBottom - this.visibleTop) / 2 + g) / c.height;
10174
+ v = y - D, w = y + D;
10164
10175
  } else
10165
10176
  v = (this.visibleTop - c.top - g) / c.height, w = (this.visibleBottom - c.top + g) / c.height;
10166
10177
  f = k1(d, v), p = k1(d, w);
@@ -10169,12 +10180,12 @@ class c6 {
10169
10180
  if (g > 2e6)
10170
10181
  for (let x of e)
10171
10182
  x.from >= c.from && x.from < c.to && x.size != x.displaySize && x.from * this.heightOracle.charWidth + w < this.pixelViewport.left && (w = x.size - x.displaySize);
10172
- let y = this.pixelViewport.left + w, M = this.pixelViewport.right + w, k, O;
10183
+ let y = this.pixelViewport.left + w, D = this.pixelViewport.right + w, k, O;
10173
10184
  if (u != null) {
10174
- let x = O1(d, u), S = ((M - y) / 2 + v) / g;
10185
+ let x = O1(d, u), S = ((D - y) / 2 + v) / g;
10175
10186
  k = x - S, O = x + S;
10176
10187
  } else
10177
- k = (y - v) / g, O = (M + v) / g;
10188
+ k = (y - v) / g, O = (D + v) / g;
10178
10189
  f = k1(d, k), p = k1(d, O);
10179
10190
  }
10180
10191
  f > c.from && a(c.from, f, c, d), p < c.to && a(p, c.to, c, d);
@@ -10327,7 +10338,7 @@ function Vt(n, e) {
10327
10338
  let t = e.toDOM(n.top), i = e.toDOM(n.bottom);
10328
10339
  return new q2(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((s) => Vt(s, e)) : n._content);
10329
10340
  }
10330
- const D1 = /* @__PURE__ */ F.define({ combine: (n) => n.join(" ") }), sn = /* @__PURE__ */ F.define({ combine: (n) => n.indexOf(!0) > -1 }), on = /* @__PURE__ */ xe.newName(), Qo = /* @__PURE__ */ xe.newName(), Jo = /* @__PURE__ */ xe.newName(), Zo = { "&light": "." + Qo, "&dark": "." + Jo };
10341
+ const D1 = /* @__PURE__ */ q.define({ combine: (n) => n.join(" ") }), sn = /* @__PURE__ */ q.define({ combine: (n) => n.indexOf(!0) > -1 }), on = /* @__PURE__ */ xe.newName(), Qo = /* @__PURE__ */ xe.newName(), Jo = /* @__PURE__ */ xe.newName(), Zo = { "&light": "." + Qo, "&dark": "." + Jo };
10331
10342
  function ln(n, e, t) {
10332
10343
  return new xe(e, {
10333
10344
  finish(i) {
@@ -10615,15 +10626,15 @@ const mg = /* @__PURE__ */ ln("." + on, {
10615
10626
  subtree: !0,
10616
10627
  attributes: !0,
10617
10628
  characterDataOldValue: !0
10618
- }, oi = W.ie && W.ie_version <= 11;
10629
+ }, oi = U.ie && U.ie_version <= 11;
10619
10630
  class wg {
10620
10631
  constructor(e) {
10621
10632
  this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new Zf(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((t) => {
10622
10633
  for (let i of t)
10623
10634
  this.queue.push(i);
10624
- (W.ie && W.ie_version <= 11 || W.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
10625
- }), window.EditContext && W.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
10626
- !(W.chrome && W.chrome_version < 126) && (this.editContext = new bg(e), e.state.facet(ie) && (e.contentDOM.editContext = this.editContext.editContext)), oi && (this.onCharData = (t) => {
10635
+ (U.ie && U.ie_version <= 11 || U.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
10636
+ }), window.EditContext && U.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
10637
+ !(U.chrome && U.chrome_version < 126) && (this.editContext = new bg(e), e.state.facet(ie) && (e.contentDOM.editContext = this.editContext.editContext)), oi && (this.onCharData = (t) => {
10627
10638
  this.queue.push({
10628
10639
  target: t.target,
10629
10640
  type: "characterData",
@@ -10674,14 +10685,14 @@ class wg {
10674
10685
  t || (this.selectionChanged = !1);
10675
10686
  return;
10676
10687
  }
10677
- (W.ie && W.ie_version <= 11 || W.android && W.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
10688
+ (U.ie && U.ie_version <= 11 || U.android && U.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
10678
10689
  s.focusNode && It(s.focusNode, s.focusOffset, s.anchorNode, s.anchorOffset) ? this.flushSoon() : this.flush(!1);
10679
10690
  }
10680
10691
  readSelectionRange() {
10681
10692
  let { view: e } = this, t = Yt(e.root);
10682
10693
  if (!t)
10683
10694
  return !1;
10684
- let i = W.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && xg(this.view, t) || t;
10695
+ let i = U.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && xg(this.view, t) || t;
10685
10696
  if (!i || this.selectionRange.eq(i))
10686
10697
  return !1;
10687
10698
  let s = W1(this.dom, i);
@@ -10878,7 +10889,7 @@ class bg {
10878
10889
  c.main.eq(s) || e.dispatch({ selection: c, userEvent: "select" });
10879
10890
  return;
10880
10891
  }
10881
- if ((W.mac || W.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert: b0.of([i.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
10892
+ if ((U.mac || U.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert: b0.of([i.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
10882
10893
  let c = this.to - this.from + (h.to - h.from + h.insert.length);
10883
10894
  Nn(e, h, T.single(this.toEditorPos(i.selectionStart, c), this.toEditorPos(i.selectionEnd, c)));
10884
10895
  }
@@ -10988,7 +10999,7 @@ class bg {
10988
10999
  this.editContext.removeEventListener(e, this.handlers[e]);
10989
11000
  }
10990
11001
  }
10991
- class U {
11002
+ class F {
10992
11003
  /**
10993
11004
  The current editor state.
10994
11005
  */
@@ -11272,7 +11283,7 @@ class U {
11272
11283
  translate: "no",
11273
11284
  contenteditable: this.state.facet(ie) ? "true" : "false",
11274
11285
  class: "cm-content",
11275
- style: `${W.tabSize}: ${this.state.tabSize}`,
11286
+ style: `${U.tabSize}: ${this.state.tabSize}`,
11276
11287
  role: "textbox",
11277
11288
  "aria-multiline": "true"
11278
11289
  };
@@ -11287,7 +11298,7 @@ class U {
11287
11298
  let t = !0;
11288
11299
  for (let i of e)
11289
11300
  for (let s of i.effects)
11290
- if (s.is(U.announce)) {
11301
+ if (s.is(F.announce)) {
11291
11302
  t && (this.announceDOM.textContent = ""), t = !1;
11292
11303
  let o = this.announceDOM.appendChild(document.createElement("div"));
11293
11304
  o.textContent = s.value;
@@ -11295,7 +11306,7 @@ class U {
11295
11306
  }
11296
11307
  mountStyles() {
11297
11308
  this.styleModules = this.state.facet(Pt);
11298
- let e = this.state.facet(U.cspNonce);
11309
+ let e = this.state.facet(F.cspNonce);
11299
11310
  xe.mount(this.root, this.styleModules.concat(mg).reverse(), e ? { nonce: e } : void 0);
11300
11311
  }
11301
11312
  readMeasured() {
@@ -11586,7 +11597,7 @@ class U {
11586
11597
  */
11587
11598
  get hasFocus() {
11588
11599
  var e;
11589
- return (this.dom.ownerDocument.hasFocus() || W.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
11600
+ return (this.dom.ownerDocument.hasFocus() || U.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
11590
11601
  }
11591
11602
  /**
11592
11603
  Put focus on the editor.
@@ -11721,30 +11732,30 @@ class U {
11721
11732
  return ((t = s == null ? void 0 : s.rootView) === null || t === void 0 ? void 0 : t.view) || null;
11722
11733
  }
11723
11734
  }
11724
- U.styleModule = Pt;
11725
- U.inputHandler = To;
11726
- U.clipboardInputFilter = Bn;
11727
- U.clipboardOutputFilter = Ln;
11728
- U.scrollHandler = Vo;
11729
- U.focusChangeEffect = zo;
11730
- U.perLineTextDirection = Po;
11731
- U.exceptionSink = Mo;
11732
- U.updateListener = Zi;
11733
- U.editable = ie;
11734
- U.mouseSelectionStyle = Do;
11735
- U.dragMovesSelection = Oo;
11736
- U.clickAddsSelectionRange = ko;
11737
- U.decorations = Xt;
11738
- U.outerDecorations = Lo;
11739
- U.atomicRanges = In;
11740
- U.bidiIsolatedRanges = Ho;
11741
- U.scrollMargins = Io;
11742
- U.darkTheme = sn;
11743
- U.cspNonce = /* @__PURE__ */ F.define({ combine: (n) => n.length ? n[0] : "" });
11744
- U.contentAttributes = Hn;
11745
- U.editorAttributes = Bo;
11746
- U.lineWrapping = /* @__PURE__ */ U.contentAttributes.of({ class: "cm-lineWrapping" });
11747
- U.announce = /* @__PURE__ */ h0.define();
11735
+ F.styleModule = Pt;
11736
+ F.inputHandler = To;
11737
+ F.clipboardInputFilter = Bn;
11738
+ F.clipboardOutputFilter = Ln;
11739
+ F.scrollHandler = Vo;
11740
+ F.focusChangeEffect = zo;
11741
+ F.perLineTextDirection = Po;
11742
+ F.exceptionSink = Mo;
11743
+ F.updateListener = Zi;
11744
+ F.editable = ie;
11745
+ F.mouseSelectionStyle = Do;
11746
+ F.dragMovesSelection = Oo;
11747
+ F.clickAddsSelectionRange = ko;
11748
+ F.decorations = Xt;
11749
+ F.outerDecorations = Lo;
11750
+ F.atomicRanges = In;
11751
+ F.bidiIsolatedRanges = Ho;
11752
+ F.scrollMargins = Io;
11753
+ F.darkTheme = sn;
11754
+ F.cspNonce = /* @__PURE__ */ q.define({ combine: (n) => n.length ? n[0] : "" });
11755
+ F.contentAttributes = Hn;
11756
+ F.editorAttributes = Bo;
11757
+ F.lineWrapping = /* @__PURE__ */ F.contentAttributes.of({ class: "cm-lineWrapping" });
11758
+ F.announce = /* @__PURE__ */ d0.define();
11748
11759
  const _g = 4096, f6 = {};
11749
11760
  class d3 {
11750
11761
  constructor(e, t, i, s, o, l) {
@@ -11768,7 +11779,7 @@ function p6(n, e, t) {
11768
11779
  }
11769
11780
  return t;
11770
11781
  }
11771
- const yg = W.mac ? "mac" : W.windows ? "win" : W.linux ? "linux" : "key";
11782
+ const yg = U.mac ? "mac" : U.windows ? "win" : U.linux ? "linux" : "key";
11772
11783
  function Sg(n, e) {
11773
11784
  const t = n.split(/-(?!$)/);
11774
11785
  let i = t[t.length - 1];
@@ -11794,11 +11805,11 @@ function Sg(n, e) {
11794
11805
  function M1(n, e, t) {
11795
11806
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t !== !1 && e.shiftKey && (n = "Shift-" + n), n;
11796
11807
  }
11797
- const Cg = /* @__PURE__ */ Fe.default(/* @__PURE__ */ U.domEventHandlers({
11808
+ const Cg = /* @__PURE__ */ Fe.default(/* @__PURE__ */ F.domEventHandlers({
11798
11809
  keydown(n, e) {
11799
11810
  return tl(el(e.state), n, e, "editor");
11800
11811
  }
11801
- })), jn = /* @__PURE__ */ F.define({ enables: Cg }), g6 = /* @__PURE__ */ new WeakMap();
11812
+ })), jn = /* @__PURE__ */ q.define({ enables: Cg }), g6 = /* @__PURE__ */ new WeakMap();
11802
11813
  function el(n) {
11803
11814
  let e = n.facet(jn), t = g6.get(e);
11804
11815
  return t || g6.set(e, t = Dg(e.reduce((i, s) => i.concat(s), []))), t;
@@ -11823,8 +11834,8 @@ function Dg(n, e = yg) {
11823
11834
  s(y, !0), f[y] || (f[y] = {
11824
11835
  preventDefault: !0,
11825
11836
  stopPropagation: !1,
11826
- run: [(M) => {
11827
- let k = ue = { view: M, prefix: y, scope: l };
11837
+ run: [(D) => {
11838
+ let k = ue = { view: D, prefix: y, scope: l };
11828
11839
  return setTimeout(() => {
11829
11840
  ue == k && (ue = null);
11830
11841
  }, Og), !0;
@@ -11872,8 +11883,8 @@ function tl(n, e, t, i) {
11872
11883
  return !1;
11873
11884
  }, f = n[i], p, g;
11874
11885
  return f && (u(f[r + M1(s, e, !l)]) ? a = !0 : l && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
11875
- !(W.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
11876
- !(W.mac && e.altKey && !e.ctrlKey) && (p = be[e.keyCode]) && p != s ? (u(f[r + M1(p, e, !0)]) || e.shiftKey && (g = qt[e.keyCode]) != s && g != p && u(f[r + M1(g, e, !1)])) && (a = !0) : l && e.shiftKey && u(f[r + M1(s, e, !0)]) && (a = !0), !a && u(f._any) && (a = !0)), h && (a = !0), a && c && e.stopPropagation(), rn = null, a;
11886
+ !(U.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
11887
+ !(U.mac && e.altKey && !e.ctrlKey) && (p = be[e.keyCode]) && p != s ? (u(f[r + M1(p, e, !0)]) || e.shiftKey && (g = qt[e.keyCode]) != s && g != p && u(f[r + M1(g, e, !1)])) && (a = !0) : l && e.shiftKey && u(f[r + M1(s, e, !0)]) && (a = !0), !a && u(f._any) && (a = !0)), h && (a = !0), a && c && e.stopPropagation(), rn = null, a;
11877
11888
  }
11878
11889
  class u1 {
11879
11890
  /**
@@ -11930,9 +11941,9 @@ function Mg(n, e, t) {
11930
11941
  return [];
11931
11942
  let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection == z0.LTR, l = n.contentDOM, r = l.getBoundingClientRect(), a = il(n), h = l.querySelector(".cm-line"), c = h && window.getComputedStyle(h), d = r.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), u = r.right - (c ? parseInt(c.paddingRight) : 0), f = tn(n, i, 1), p = tn(n, s, -1), g = f.type == c2.Text ? f : null, v = p.type == c2.Text ? p : null;
11932
11943
  if (g && (n.lineWrapping || f.widgetLineBreaks) && (g = m6(n, i, 1, g)), v && (n.lineWrapping || p.widgetLineBreaks) && (v = m6(n, s, -1, v)), g && v && g.from == v.from && g.to == v.to)
11933
- return y(M(t.from, t.to, g));
11944
+ return y(D(t.from, t.to, g));
11934
11945
  {
11935
- let O = g ? M(t.from, null, g) : k(f, !1), x = v ? M(null, t.to, v) : k(p, !0), S = [];
11946
+ let O = g ? D(t.from, null, g) : k(f, !1), x = v ? D(null, t.to, v) : k(p, !0), S = [];
11936
11947
  return (g || f).to < (v || p).from - (g && v ? 1 : 0) || f.widgetLineBreaks > 1 && O.bottom + n.defaultLineHeight / 2 < x.top ? S.push(w(d, O.bottom, u, x.top)) : O.bottom < x.top && n.elementAtHeight((O.bottom + x.top) / 2).type == c2.Text && (O.bottom = x.top = (O.bottom + x.top) / 2), y(O).concat(S).concat(y(x));
11937
11948
  }
11938
11949
  function w(O, x, S, E) {
@@ -11940,31 +11951,31 @@ function Mg(n, e, t) {
11940
11951
  }
11941
11952
  function y({ top: O, bottom: x, horizontal: S }) {
11942
11953
  let E = [];
11943
- for (let H = 0; H < S.length; H += 2)
11944
- E.push(w(S[H], O, S[H + 1], x));
11954
+ for (let L = 0; L < S.length; L += 2)
11955
+ E.push(w(S[L], O, S[L + 1], x));
11945
11956
  return E;
11946
11957
  }
11947
- function M(O, x, S) {
11948
- let E = 1e9, H = -1e9, P = [];
11949
- function I(Y, q, m0, y0, v0) {
11950
- let m = n.coordsAtPos(Y, Y == S.to ? -2 : 2), B0 = n.coordsAtPos(m0, m0 == S.from ? 2 : -2);
11951
- !m || !B0 || (E = Math.min(m.top, B0.top, E), H = Math.max(m.bottom, B0.bottom, H), v0 == z0.LTR ? P.push(o && q ? d : m.left, o && y0 ? u : B0.right) : P.push(!o && y0 ? d : B0.left, !o && q ? u : m.right));
11958
+ function D(O, x, S) {
11959
+ let E = 1e9, L = -1e9, z = [];
11960
+ function H(Y, $, h0, y0, v0) {
11961
+ let m = n.coordsAtPos(Y, Y == S.to ? -2 : 2), B0 = n.coordsAtPos(h0, h0 == S.from ? 2 : -2);
11962
+ !m || !B0 || (E = Math.min(m.top, B0.top, E), L = Math.max(m.bottom, B0.bottom, L), v0 == z0.LTR ? z.push(o && $ ? d : m.left, o && y0 ? u : B0.right) : z.push(!o && y0 ? d : B0.left, !o && $ ? u : m.right));
11952
11963
  }
11953
11964
  let _ = O ?? S.from, R = x ?? S.to;
11954
11965
  for (let Y of n.visibleRanges)
11955
11966
  if (Y.to > _ && Y.from < R)
11956
- for (let q = Math.max(Y.from, _), m0 = Math.min(Y.to, R); ; ) {
11957
- let y0 = n.state.doc.lineAt(q);
11967
+ for (let $ = Math.max(Y.from, _), h0 = Math.min(Y.to, R); ; ) {
11968
+ let y0 = n.state.doc.lineAt($);
11958
11969
  for (let v0 of n.bidiSpans(y0)) {
11959
11970
  let m = v0.from + y0.from, B0 = v0.to + y0.from;
11960
- if (m >= m0)
11971
+ if (m >= h0)
11961
11972
  break;
11962
- B0 > q && I(Math.max(m, q), O == null && m <= _, Math.min(B0, m0), x == null && B0 >= R, v0.dir);
11973
+ B0 > $ && H(Math.max(m, $), O == null && m <= _, Math.min(B0, h0), x == null && B0 >= R, v0.dir);
11963
11974
  }
11964
- if (q = y0.to + 1, q >= m0)
11975
+ if ($ = y0.to + 1, $ >= h0)
11965
11976
  break;
11966
11977
  }
11967
- return P.length == 0 && I(_, O == null, R, x == null, n.textDirection), { top: E, bottom: H, horizontal: P };
11978
+ return z.length == 0 && H(_, O == null, R, x == null, n.textDirection), { top: E, bottom: L, horizontal: z };
11968
11979
  }
11969
11980
  function k(O, x) {
11970
11981
  let S = r.top + (x ? O.top : O.bottom);
@@ -12013,14 +12024,14 @@ class zg {
12013
12024
  this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
12014
12025
  }
12015
12026
  }
12016
- const Y1 = /* @__PURE__ */ F.define();
12027
+ const Y1 = /* @__PURE__ */ q.define();
12017
12028
  function nl(n) {
12018
12029
  return [
12019
12030
  G0.define((e) => new zg(e, n)),
12020
12031
  Y1.of(n)
12021
12032
  ];
12022
12033
  }
12023
- const Qt = /* @__PURE__ */ F.define({
12034
+ const Qt = /* @__PURE__ */ q.define({
12024
12035
  combine(n) {
12025
12036
  return Z2(n, {
12026
12037
  cursorBlinkRate: 1200,
@@ -12079,7 +12090,7 @@ const Vg = /* @__PURE__ */ nl({
12079
12090
  return n.docChanged || n.selectionSet || n.viewportChanged || sl(n);
12080
12091
  },
12081
12092
  class: "cm-selectionLayer"
12082
- }), Eg = /* @__PURE__ */ Fe.highest(/* @__PURE__ */ U.theme({
12093
+ }), Eg = /* @__PURE__ */ Fe.highest(/* @__PURE__ */ F.theme({
12083
12094
  ".cm-line": {
12084
12095
  "& ::selection, &::selection": { backgroundColor: "transparent !important" },
12085
12096
  caretColor: "transparent !important"
@@ -12093,7 +12104,7 @@ const Vg = /* @__PURE__ */ nl({
12093
12104
  }
12094
12105
  }
12095
12106
  }
12096
- })), ol = /* @__PURE__ */ h0.define({
12107
+ })), ol = /* @__PURE__ */ d0.define({
12097
12108
  map(n, e) {
12098
12109
  return n == null ? null : e.mapPos(n);
12099
12110
  }
@@ -12276,7 +12287,7 @@ function Gg() {
12276
12287
  }
12277
12288
  return li || !1;
12278
12289
  }
12279
- const K1 = /* @__PURE__ */ F.define({
12290
+ const K1 = /* @__PURE__ */ q.define({
12280
12291
  combine(n) {
12281
12292
  let e = Z2(n, {
12282
12293
  render: null,
@@ -12427,7 +12438,7 @@ function Zg(n, e) {
12427
12438
  }
12428
12439
  function em(n) {
12429
12440
  let e = (t) => t.altKey && t.button == 0;
12430
- return U.mouseSelectionStyle.of((t, i) => e(i) ? Zg(t, i) : null);
12441
+ return F.mouseSelectionStyle.of((t, i) => e(i) ? Zg(t, i) : null);
12431
12442
  }
12432
12443
  const tm = {
12433
12444
  Alt: [18, (n) => !!n.altKey],
@@ -12458,7 +12469,7 @@ function nm(n = {}) {
12458
12469
  });
12459
12470
  return [
12460
12471
  i,
12461
- U.contentAttributes.of((s) => {
12472
+ F.contentAttributes.of((s) => {
12462
12473
  var o;
12463
12474
  return !((o = s.plugin(i)) === null || o === void 0) && o.isDown ? im : null;
12464
12475
  })
@@ -12504,11 +12515,11 @@ function sm(n) {
12504
12515
  let e = n.dom.ownerDocument.documentElement;
12505
12516
  return { top: 0, left: 0, bottom: e.clientHeight, right: e.clientWidth };
12506
12517
  }
12507
- const ri = /* @__PURE__ */ F.define({
12518
+ const ri = /* @__PURE__ */ q.define({
12508
12519
  combine: (n) => {
12509
12520
  var e, t, i;
12510
12521
  return {
12511
- position: W.ios ? "absolute" : ((e = n.find((s) => s.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
12522
+ position: U.ios ? "absolute" : ((e = n.find((s) => s.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
12512
12523
  parent: ((t = n.find((s) => s.parent)) === null || t === void 0 ? void 0 : t.parent) || null,
12513
12524
  tooltipSpace: ((i = n.find((s) => s.tooltipSpace)) === null || i === void 0 ? void 0 : i.tooltipSpace) || sm
12514
12525
  };
@@ -12576,7 +12587,7 @@ const ri = /* @__PURE__ */ F.define({
12576
12587
  let n = 1, e = 1, t = !1;
12577
12588
  if (this.position == "fixed" && this.manager.tooltipViews.length) {
12578
12589
  let { dom: o } = this.manager.tooltipViews[0];
12579
- if (W.gecko)
12590
+ if (U.gecko)
12580
12591
  t = o.offsetParent != this.container.ownerDocument.body;
12581
12592
  else if (o.style.top == Dt && o.style.left == "0px") {
12582
12593
  let l = o.getBoundingClientRect();
@@ -12623,7 +12634,7 @@ const ri = /* @__PURE__ */ F.define({
12623
12634
  c.style.top = Dt;
12624
12635
  continue;
12625
12636
  }
12626
- let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, v = (e = _6.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, w = h.offset || lm, y = this.view.textDirection == z0.LTR, M = u.width > i.right - i.left ? y ? i.left : i.right - u.width : y ? Math.max(i.left, Math.min(d.left - (f ? 14 : 0) + w.x, i.right - g)) : Math.min(Math.max(i.left, d.left - g + (f ? 14 : 0) - w.x), i.right - g), k = this.above[r];
12637
+ let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, v = (e = _6.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, w = h.offset || lm, y = this.view.textDirection == z0.LTR, D = u.width > i.right - i.left ? y ? i.left : i.right - u.width : y ? Math.max(i.left, Math.min(d.left - (f ? 14 : 0) + w.x, i.right - g)) : Math.min(Math.max(i.left, d.left - g + (f ? 14 : 0) - w.x), i.right - g), k = this.above[r];
12627
12638
  !a.strictSide && (k ? d.top - v - p - w.y < i.top : d.bottom + v + p + w.y > i.bottom) && k == i.bottom - d.bottom > d.top - i.top && (k = this.above[r] = !k);
12628
12639
  let O = (k ? d.top - i.top : i.bottom - d.bottom) - p;
12629
12640
  if (O < v && h.resize !== !1) {
@@ -12633,15 +12644,15 @@ const ri = /* @__PURE__ */ F.define({
12633
12644
  }
12634
12645
  _6.set(h, v), c.style.height = (v = O) / o + "px";
12635
12646
  } else c.style.height && (c.style.height = "");
12636
- let x = k ? d.top - v - p - w.y : d.bottom + p + w.y, S = M + g;
12647
+ let x = k ? d.top - v - p - w.y : d.bottom + p + w.y, S = D + g;
12637
12648
  if (h.overlap !== !0)
12638
12649
  for (let E of l)
12639
- E.left < S && E.right > M && E.top < x + v && E.bottom > x && (x = k ? E.top - v - 2 - p : E.bottom + p + 2);
12640
- if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", y6(c, (M - n.parent.left) / s)) : (c.style.top = x / o + "px", y6(c, M / s)), f) {
12641
- let E = d.left + (y ? w.x : -w.x) - (M + 14 - 7);
12650
+ E.left < S && E.right > D && E.top < x + v && E.bottom > x && (x = k ? E.top - v - 2 - p : E.bottom + p + 2);
12651
+ if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", y6(c, (D - n.parent.left) / s)) : (c.style.top = x / o + "px", y6(c, D / s)), f) {
12652
+ let E = d.left + (y ? w.x : -w.x) - (D + 14 - 7);
12642
12653
  f.style.left = E / s + "px";
12643
12654
  }
12644
- h.overlap !== !0 && l.push({ left: M, top: x, right: S, bottom: x + v }), c.classList.toggle("cm-tooltip-above", k), c.classList.toggle("cm-tooltip-below", !k), h.positioned && h.positioned(n.space);
12655
+ h.overlap !== !0 && l.push({ left: D, top: x, right: S, bottom: x + v }), c.classList.toggle("cm-tooltip-above", k), c.classList.toggle("cm-tooltip-below", !k), h.positioned && h.positioned(n.space);
12645
12656
  }
12646
12657
  }
12647
12658
  maybeMeasure() {
@@ -12660,7 +12671,7 @@ function y6(n, e) {
12660
12671
  let t = parseInt(n.style.left, 10);
12661
12672
  (isNaN(t) || Math.abs(e - t) > 1) && (n.style.left = e + "px");
12662
12673
  }
12663
- const om = /* @__PURE__ */ U.baseTheme({
12674
+ const om = /* @__PURE__ */ F.baseTheme({
12664
12675
  ".cm-tooltip": {
12665
12676
  zIndex: 500,
12666
12677
  boxSizing: "border-box"
@@ -12721,9 +12732,9 @@ const om = /* @__PURE__ */ U.baseTheme({
12721
12732
  borderBottomColor: "transparent"
12722
12733
  }
12723
12734
  }
12724
- }), lm = { x: 0, y: 0 }, Un = /* @__PURE__ */ F.define({
12735
+ }), lm = { x: 0, y: 0 }, Un = /* @__PURE__ */ q.define({
12725
12736
  enables: [Wn, om]
12726
- }), u3 = /* @__PURE__ */ F.define({
12737
+ }), u3 = /* @__PURE__ */ q.define({
12727
12738
  combine: (n) => n.reduce((e, t) => e.concat(t), [])
12728
12739
  });
12729
12740
  class R3 {
@@ -12883,7 +12894,7 @@ function hm(n, e, t, i, s, o) {
12883
12894
  return a >= e && a <= t;
12884
12895
  }
12885
12896
  function dm(n, e = {}) {
12886
- let t = h0.define(), i = e2.define({
12897
+ let t = d0.define(), i = e2.define({
12887
12898
  create() {
12888
12899
  return [];
12889
12900
  },
@@ -12928,7 +12939,7 @@ function rl(n, e) {
12928
12939
  let i = t.manager.tooltips.indexOf(e);
12929
12940
  return i < 0 ? null : t.manager.tooltipViews[i];
12930
12941
  }
12931
- const um = /* @__PURE__ */ h0.define(), S6 = /* @__PURE__ */ F.define({
12942
+ const um = /* @__PURE__ */ d0.define(), S6 = /* @__PURE__ */ q.define({
12932
12943
  combine(n) {
12933
12944
  let e, t;
12934
12945
  for (let i of n)
@@ -12969,7 +12980,7 @@ const al = /* @__PURE__ */ G0.fromClass(class {
12969
12980
  this.top.sync([]), this.bottom.sync([]);
12970
12981
  }
12971
12982
  }, {
12972
- provide: (n) => U.scrollMargins.of((e) => {
12983
+ provide: (n) => F.scrollMargins.of((e) => {
12973
12984
  let t = e.plugin(n);
12974
12985
  return t && { top: t.top.scrollMargin(), bottom: t.bottom.scrollMargin() };
12975
12986
  })
@@ -13020,7 +13031,7 @@ function C6(n) {
13020
13031
  let e = n.nextSibling;
13021
13032
  return n.remove(), e;
13022
13033
  }
13023
- const Zt = /* @__PURE__ */ F.define({
13034
+ const Zt = /* @__PURE__ */ q.define({
13024
13035
  enables: al
13025
13036
  });
13026
13037
  class re extends Ge {
@@ -13048,7 +13059,7 @@ re.prototype.toDOM = void 0;
13048
13059
  re.prototype.mapMode = r2.TrackBefore;
13049
13060
  re.prototype.startSide = re.prototype.endSide = -1;
13050
13061
  re.prototype.point = !0;
13051
- const X1 = /* @__PURE__ */ F.define(), fm = /* @__PURE__ */ F.define(), pm = {
13062
+ const X1 = /* @__PURE__ */ q.define(), fm = /* @__PURE__ */ q.define(), pm = {
13052
13063
  class: "",
13053
13064
  renderEmptyElements: !1,
13054
13065
  elementStyle: "",
@@ -13060,11 +13071,11 @@ const X1 = /* @__PURE__ */ F.define(), fm = /* @__PURE__ */ F.define(), pm = {
13060
13071
  updateSpacer: null,
13061
13072
  domEventHandlers: {},
13062
13073
  side: "before"
13063
- }, Nt = /* @__PURE__ */ F.define();
13074
+ }, Nt = /* @__PURE__ */ q.define();
13064
13075
  function gm(n) {
13065
13076
  return [cl(), Nt.of({ ...pm, ...n })];
13066
13077
  }
13067
- const k6 = /* @__PURE__ */ F.define({
13078
+ const k6 = /* @__PURE__ */ q.define({
13068
13079
  combine: (n) => n.some((e) => e)
13069
13080
  });
13070
13081
  function cl(n) {
@@ -13146,7 +13157,7 @@ const mm = /* @__PURE__ */ G0.fromClass(class {
13146
13157
  this.dom.remove(), this.domAfter && this.domAfter.remove();
13147
13158
  }
13148
13159
  }, {
13149
- provide: (n) => U.scrollMargins.of((e) => {
13160
+ provide: (n) => F.scrollMargins.of((e) => {
13150
13161
  let t = e.plugin(n);
13151
13162
  if (!t || t.gutters.length == 0 || !t.fixed)
13152
13163
  return null;
@@ -13277,7 +13288,7 @@ function wm(n, e) {
13277
13288
  return !1;
13278
13289
  return !0;
13279
13290
  }
13280
- const xm = /* @__PURE__ */ F.define(), bm = /* @__PURE__ */ F.define(), Ze = /* @__PURE__ */ F.define({
13291
+ const xm = /* @__PURE__ */ q.define(), bm = /* @__PURE__ */ q.define(), Ze = /* @__PURE__ */ q.define({
13281
13292
  combine(n) {
13282
13293
  return Z2(n, { formatNumber: String, domEventHandlers: {} }, {
13283
13294
  domEventHandlers(e, t) {
@@ -13368,7 +13379,7 @@ class hi {
13368
13379
  this.from = e, this.to = t;
13369
13380
  }
13370
13381
  }
13371
- class f0 {
13382
+ class p0 {
13372
13383
  /**
13373
13384
  Create a new node prop type.
13374
13385
  */
@@ -13395,17 +13406,17 @@ class f0 {
13395
13406
  };
13396
13407
  }
13397
13408
  }
13398
- f0.closedBy = new f0({ deserialize: (n) => n.split(" ") });
13399
- f0.openedBy = new f0({ deserialize: (n) => n.split(" ") });
13400
- f0.group = new f0({ deserialize: (n) => n.split(" ") });
13401
- f0.isolate = new f0({ deserialize: (n) => {
13409
+ p0.closedBy = new p0({ deserialize: (n) => n.split(" ") });
13410
+ p0.openedBy = new p0({ deserialize: (n) => n.split(" ") });
13411
+ p0.group = new p0({ deserialize: (n) => n.split(" ") });
13412
+ p0.isolate = new p0({ deserialize: (n) => {
13402
13413
  if (n && n != "rtl" && n != "ltr" && n != "auto")
13403
13414
  throw new RangeError("Invalid value for isolate: " + n);
13404
13415
  return n || "auto";
13405
13416
  } });
13406
- f0.contextHash = new f0({ perNode: !0 });
13407
- f0.lookAhead = new f0({ perNode: !0 });
13408
- f0.mounted = new f0({ perNode: !0 });
13417
+ p0.contextHash = new p0({ perNode: !0 });
13418
+ p0.lookAhead = new p0({ perNode: !0 });
13419
+ p0.mounted = new p0({ perNode: !0 });
13409
13420
  class f3 {
13410
13421
  constructor(e, t, i) {
13411
13422
  this.tree = e, this.overlay = t, this.parser = i;
@@ -13414,7 +13425,7 @@ class f3 {
13414
13425
  @internal
13415
13426
  */
13416
13427
  static get(e) {
13417
- return e && e.props && e.props[f0.mounted.id];
13428
+ return e && e.props && e.props[p0.mounted.id];
13418
13429
  }
13419
13430
  }
13420
13431
  const Dm = /* @__PURE__ */ Object.create(null);
@@ -13480,7 +13491,7 @@ class w2 {
13480
13491
  if (typeof e == "string") {
13481
13492
  if (this.name == e)
13482
13493
  return !0;
13483
- let t = this.prop(f0.group);
13494
+ let t = this.prop(p0.group);
13484
13495
  return t ? t.indexOf(e) > -1 : !1;
13485
13496
  }
13486
13497
  return this.id == e;
@@ -13499,7 +13510,7 @@ class w2 {
13499
13510
  for (let s of i.split(" "))
13500
13511
  t[s] = e[i];
13501
13512
  return (i) => {
13502
- for (let s = i.prop(f0.group), o = -1; o < (s ? s.length : 0); o++) {
13513
+ for (let s = i.prop(p0.group), o = -1; o < (s ? s.length : 0); o++) {
13503
13514
  let l = t[o < 0 ? i.name : s[o]];
13504
13515
  if (l)
13505
13516
  return l;
@@ -14439,23 +14450,23 @@ function Yn(n) {
14439
14450
  function Pm(n) {
14440
14451
  var e;
14441
14452
  let { buffer: t, nodeSet: i, maxBufferLength: s = dl, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new qn(t, t.length) : t, a = i.types, h = 0, c = 0;
14442
- function d(O, x, S, E, H, P) {
14443
- let { id: I, start: _, end: R, size: Y } = r, q = c, m0 = h;
14453
+ function d(O, x, S, E, L, z) {
14454
+ let { id: H, start: _, end: R, size: Y } = r, $ = c, h0 = h;
14444
14455
  for (; Y < 0; )
14445
14456
  if (r.next(), Y == -1) {
14446
- let k0 = o[I];
14457
+ let k0 = o[H];
14447
14458
  S.push(k0), E.push(_ - O);
14448
14459
  return;
14449
14460
  } else if (Y == -3) {
14450
- h = I;
14461
+ h = H;
14451
14462
  return;
14452
14463
  } else if (Y == -4) {
14453
- c = I;
14464
+ c = H;
14454
14465
  return;
14455
14466
  } else
14456
14467
  throw new RangeError(`Unrecognized record size: ${Y}`);
14457
- let y0 = a[I], v0, m, B0 = _ - O;
14458
- if (R - _ <= s && (m = v(r.pos - x, H))) {
14468
+ let y0 = a[H], v0, m, B0 = _ - O;
14469
+ if (R - _ <= s && (m = v(r.pos - x, L))) {
14459
14470
  let k0 = new Uint16Array(m.size - m.skip), I0 = r.pos - m.size, U0 = k0.length;
14460
14471
  for (; r.pos > I0; )
14461
14472
  U0 = w(m.start, k0, U0);
@@ -14463,107 +14474,107 @@ function Pm(n) {
14463
14474
  } else {
14464
14475
  let k0 = r.pos - Y;
14465
14476
  r.next();
14466
- let I0 = [], U0 = [], t2 = I >= l ? I : -1, o2 = 0, C2 = R;
14477
+ let I0 = [], U0 = [], t2 = H >= l ? H : -1, o2 = 0, C2 = R;
14467
14478
  for (; r.pos > k0; )
14468
- t2 >= 0 && r.id == t2 && r.size >= 0 ? (r.end <= C2 - s && (p(I0, U0, _, o2, r.end, C2, t2, q, m0), o2 = I0.length, C2 = r.end), r.next()) : P > 2500 ? u(_, k0, I0, U0) : d(_, k0, I0, U0, t2, P + 1);
14469
- if (t2 >= 0 && o2 > 0 && o2 < I0.length && p(I0, U0, _, o2, _, C2, t2, q, m0), I0.reverse(), U0.reverse(), t2 > -1 && o2 > 0) {
14470
- let k2 = f(y0, m0);
14479
+ t2 >= 0 && r.id == t2 && r.size >= 0 ? (r.end <= C2 - s && (p(I0, U0, _, o2, r.end, C2, t2, $, h0), o2 = I0.length, C2 = r.end), r.next()) : z > 2500 ? u(_, k0, I0, U0) : d(_, k0, I0, U0, t2, z + 1);
14480
+ if (t2 >= 0 && o2 > 0 && o2 < I0.length && p(I0, U0, _, o2, _, C2, t2, $, h0), I0.reverse(), U0.reverse(), t2 > -1 && o2 > 0) {
14481
+ let k2 = f(y0, h0);
14471
14482
  v0 = Kn(y0, I0, U0, 0, I0.length, 0, R - _, k2, k2);
14472
14483
  } else
14473
- v0 = g(y0, I0, U0, R - _, q - R, m0);
14484
+ v0 = g(y0, I0, U0, R - _, $ - R, h0);
14474
14485
  }
14475
14486
  S.push(v0), E.push(B0);
14476
14487
  }
14477
14488
  function u(O, x, S, E) {
14478
- let H = [], P = 0, I = -1;
14489
+ let L = [], z = 0, H = -1;
14479
14490
  for (; r.pos > x; ) {
14480
- let { id: _, start: R, end: Y, size: q } = r;
14481
- if (q > 4)
14491
+ let { id: _, start: R, end: Y, size: $ } = r;
14492
+ if ($ > 4)
14482
14493
  r.next();
14483
14494
  else {
14484
- if (I > -1 && R < I)
14495
+ if (H > -1 && R < H)
14485
14496
  break;
14486
- I < 0 && (I = Y - s), H.push(_, R, Y), P++, r.next();
14497
+ H < 0 && (H = Y - s), L.push(_, R, Y), z++, r.next();
14487
14498
  }
14488
14499
  }
14489
- if (P) {
14490
- let _ = new Uint16Array(P * 4), R = H[H.length - 2];
14491
- for (let Y = H.length - 3, q = 0; Y >= 0; Y -= 3)
14492
- _[q++] = H[Y], _[q++] = H[Y + 1] - R, _[q++] = H[Y + 2] - R, _[q++] = q;
14493
- S.push(new ye(_, H[2] - R, i)), E.push(R - O);
14500
+ if (z) {
14501
+ let _ = new Uint16Array(z * 4), R = L[L.length - 2];
14502
+ for (let Y = L.length - 3, $ = 0; Y >= 0; Y -= 3)
14503
+ _[$++] = L[Y], _[$++] = L[Y + 1] - R, _[$++] = L[Y + 2] - R, _[$++] = $;
14504
+ S.push(new ye(_, L[2] - R, i)), E.push(R - O);
14494
14505
  }
14495
14506
  }
14496
14507
  function f(O, x) {
14497
- return (S, E, H) => {
14498
- let P = 0, I = S.length - 1, _, R;
14499
- if (I >= 0 && (_ = S[I]) instanceof N0) {
14500
- if (!I && _.type == O && _.length == H)
14508
+ return (S, E, L) => {
14509
+ let z = 0, H = S.length - 1, _, R;
14510
+ if (H >= 0 && (_ = S[H]) instanceof N0) {
14511
+ if (!H && _.type == O && _.length == L)
14501
14512
  return _;
14502
- (R = _.prop(f0.lookAhead)) && (P = E[I] + _.length + R);
14513
+ (R = _.prop(p0.lookAhead)) && (z = E[H] + _.length + R);
14503
14514
  }
14504
- return g(O, S, E, H, P, x);
14515
+ return g(O, S, E, L, z, x);
14505
14516
  };
14506
14517
  }
14507
- function p(O, x, S, E, H, P, I, _, R) {
14508
- let Y = [], q = [];
14518
+ function p(O, x, S, E, L, z, H, _, R) {
14519
+ let Y = [], $ = [];
14509
14520
  for (; O.length > E; )
14510
- Y.push(O.pop()), q.push(x.pop() + S - H);
14511
- O.push(g(i.types[I], Y, q, P - H, _ - P, R)), x.push(H - S);
14521
+ Y.push(O.pop()), $.push(x.pop() + S - L);
14522
+ O.push(g(i.types[H], Y, $, z - L, _ - z, R)), x.push(L - S);
14512
14523
  }
14513
- function g(O, x, S, E, H, P, I) {
14514
- if (P) {
14515
- let _ = [f0.contextHash, P];
14516
- I = I ? [_].concat(I) : [_];
14524
+ function g(O, x, S, E, L, z, H) {
14525
+ if (z) {
14526
+ let _ = [p0.contextHash, z];
14527
+ H = H ? [_].concat(H) : [_];
14517
14528
  }
14518
- if (H > 25) {
14519
- let _ = [f0.lookAhead, H];
14520
- I = I ? [_].concat(I) : [_];
14529
+ if (L > 25) {
14530
+ let _ = [p0.lookAhead, L];
14531
+ H = H ? [_].concat(H) : [_];
14521
14532
  }
14522
- return new N0(O, x, S, E, I);
14533
+ return new N0(O, x, S, E, H);
14523
14534
  }
14524
14535
  function v(O, x) {
14525
- let S = r.fork(), E = 0, H = 0, P = 0, I = S.end - s, _ = { size: 0, start: 0, skip: 0 };
14536
+ let S = r.fork(), E = 0, L = 0, z = 0, H = S.end - s, _ = { size: 0, start: 0, skip: 0 };
14526
14537
  e: for (let R = S.pos - O; S.pos > R; ) {
14527
14538
  let Y = S.size;
14528
14539
  if (S.id == x && Y >= 0) {
14529
- _.size = E, _.start = H, _.skip = P, P += 4, E += 4, S.next();
14540
+ _.size = E, _.start = L, _.skip = z, z += 4, E += 4, S.next();
14530
14541
  continue;
14531
14542
  }
14532
- let q = S.pos - Y;
14533
- if (Y < 0 || q < R || S.start < I)
14543
+ let $ = S.pos - Y;
14544
+ if (Y < 0 || $ < R || S.start < H)
14534
14545
  break;
14535
- let m0 = S.id >= l ? 4 : 0, y0 = S.start;
14536
- for (S.next(); S.pos > q; ) {
14546
+ let h0 = S.id >= l ? 4 : 0, y0 = S.start;
14547
+ for (S.next(); S.pos > $; ) {
14537
14548
  if (S.size < 0)
14538
14549
  if (S.size == -3)
14539
- m0 += 4;
14550
+ h0 += 4;
14540
14551
  else
14541
14552
  break e;
14542
- else S.id >= l && (m0 += 4);
14553
+ else S.id >= l && (h0 += 4);
14543
14554
  S.next();
14544
14555
  }
14545
- H = y0, E += Y, P += m0;
14556
+ L = y0, E += Y, z += h0;
14546
14557
  }
14547
- return (x < 0 || E == O) && (_.size = E, _.start = H, _.skip = P), _.size > 4 ? _ : void 0;
14558
+ return (x < 0 || E == O) && (_.size = E, _.start = L, _.skip = z), _.size > 4 ? _ : void 0;
14548
14559
  }
14549
14560
  function w(O, x, S) {
14550
- let { id: E, start: H, end: P, size: I } = r;
14551
- if (r.next(), I >= 0 && E < l) {
14561
+ let { id: E, start: L, end: z, size: H } = r;
14562
+ if (r.next(), H >= 0 && E < l) {
14552
14563
  let _ = S;
14553
- if (I > 4) {
14554
- let R = r.pos - (I - 4);
14564
+ if (H > 4) {
14565
+ let R = r.pos - (H - 4);
14555
14566
  for (; r.pos > R; )
14556
14567
  S = w(O, x, S);
14557
14568
  }
14558
- x[--S] = _, x[--S] = P - O, x[--S] = H - O, x[--S] = E;
14559
- } else I == -3 ? h = E : I == -4 && (c = E);
14569
+ x[--S] = _, x[--S] = z - O, x[--S] = L - O, x[--S] = E;
14570
+ } else H == -3 ? h = E : H == -4 && (c = E);
14560
14571
  return S;
14561
14572
  }
14562
- let y = [], M = [];
14573
+ let y = [], D = [];
14563
14574
  for (; r.pos > 0; )
14564
- d(n.start || 0, n.bufferStart || 0, y, M, -1, 0);
14565
- let k = (e = n.length) !== null && e !== void 0 ? e : y.length ? M[0] + y[0].length : 0;
14566
- return new N0(a[n.topID], y.reverse(), M.reverse(), k);
14575
+ d(n.start || 0, n.bufferStart || 0, y, D, -1, 0);
14576
+ let k = (e = n.length) !== null && e !== void 0 ? e : y.length ? D[0] + y[0].length : 0;
14577
+ return new N0(a[n.topID], y.reverse(), D.reverse(), k);
14567
14578
  }
14568
14579
  const P6 = /* @__PURE__ */ new WeakMap();
14569
14580
  function Q1(n, e) {
@@ -14592,15 +14603,15 @@ function Kn(n, e, t, i, s, o, l, r, a) {
14592
14603
  /* Balance.BranchFactor */
14593
14604
  ), d = [], u = [];
14594
14605
  function f(p, g, v, w, y) {
14595
- for (let M = v; M < w; ) {
14596
- let k = M, O = g[M], x = Q1(n, p[M]);
14597
- for (M++; M < w; M++) {
14598
- let S = Q1(n, p[M]);
14606
+ for (let D = v; D < w; ) {
14607
+ let k = D, O = g[D], x = Q1(n, p[D]);
14608
+ for (D++; D < w; D++) {
14609
+ let S = Q1(n, p[D]);
14599
14610
  if (x + S >= c)
14600
14611
  break;
14601
14612
  x += S;
14602
14613
  }
14603
- if (M == k + 1) {
14614
+ if (D == k + 1) {
14604
14615
  if (x > c) {
14605
14616
  let S = p[k];
14606
14617
  f(S.children, S.positions, 0, S.children.length, g[k] + y);
@@ -14608,8 +14619,8 @@ function Kn(n, e, t, i, s, o, l, r, a) {
14608
14619
  }
14609
14620
  d.push(p[k]);
14610
14621
  } else {
14611
- let S = g[M - 1] + p[M - 1].length - O;
14612
- d.push(Kn(n, p, g, k, M, O, S, null, a));
14622
+ let S = g[D - 1] + p[D - 1].length - O;
14623
+ d.push(Kn(n, p, g, k, D, O, S, null, a));
14613
14624
  }
14614
14625
  u.push(O + y - o);
14615
14626
  }
@@ -14728,7 +14739,7 @@ class Am {
14728
14739
  return this.string.slice(e, t);
14729
14740
  }
14730
14741
  }
14731
- new f0({ perNode: !0 });
14742
+ new p0({ perNode: !0 });
14732
14743
  let Vm = 0;
14733
14744
  class D2 {
14734
14745
  /**
@@ -14838,7 +14849,7 @@ function ml(n) {
14838
14849
  }
14839
14850
  return vl.add(e);
14840
14851
  }
14841
- const vl = new f0();
14852
+ const vl = new p0();
14842
14853
  class g3 {
14843
14854
  constructor(e, t, i, s) {
14844
14855
  this.tags = e, this.mode = t, this.context = i, this.next = s;
@@ -14912,15 +14923,15 @@ class Rm {
14912
14923
  let h = s, c = Nm(e) || g3.empty, d = Hm(o, c.tags);
14913
14924
  if (d && (h && (h += " "), h += d, c.mode == 1 && (s += (s ? " " : "") + d)), this.startSpan(Math.max(t, r), h), c.opaque)
14914
14925
  return;
14915
- let u = e.tree && e.tree.prop(f0.mounted);
14926
+ let u = e.tree && e.tree.prop(p0.mounted);
14916
14927
  if (u && u.overlay) {
14917
14928
  let f = e.node.enter(u.overlay[0].from + r, 1), p = this.highlighters.filter((v) => !v.scope || v.scope(u.tree.type)), g = e.firstChild();
14918
14929
  for (let v = 0, w = r; ; v++) {
14919
- let y = v < u.overlay.length ? u.overlay[v] : null, M = y ? y.from + r : a, k = Math.max(t, w), O = Math.min(i, M);
14930
+ let y = v < u.overlay.length ? u.overlay[v] : null, D = y ? y.from + r : a, k = Math.max(t, w), O = Math.min(i, D);
14920
14931
  if (k < O && g)
14921
- for (; e.from < O && (this.highlightRange(e, k, O, s, o), this.startSpan(Math.min(O, e.to), h), !(e.to >= M || !e.nextSibling())); )
14932
+ for (; e.from < O && (this.highlightRange(e, k, O, s, o), this.startSpan(Math.min(O, e.to), h), !(e.to >= D || !e.nextSibling())); )
14922
14933
  ;
14923
- if (!y || M > i)
14934
+ if (!y || D > i)
14924
14935
  break;
14925
14936
  w = y.to + r, w > t && (this.highlightRange(f.cursor(), Math.max(t, y.from + r), Math.min(i, w), "", p), this.startSpan(Math.min(i, w), h));
14926
14937
  }
@@ -15347,13 +15358,13 @@ wl([
15347
15358
  { tag: B.punctuation, class: "tok-punctuation" }
15348
15359
  ]);
15349
15360
  var ui;
15350
- const et = /* @__PURE__ */ new f0();
15361
+ const et = /* @__PURE__ */ new p0();
15351
15362
  function Gm(n) {
15352
- return F.define({
15363
+ return q.define({
15353
15364
  combine: n ? (e) => e.concat(n) : void 0
15354
15365
  });
15355
15366
  }
15356
- const $m = /* @__PURE__ */ new f0();
15367
+ const $m = /* @__PURE__ */ new p0();
15357
15368
  class E2 {
15358
15369
  /**
15359
15370
  Construct a language object. If you need to invoke this
@@ -15406,7 +15417,7 @@ class E2 {
15406
15417
  i.push({ from: l, to: l + o.length });
15407
15418
  return;
15408
15419
  }
15409
- let r = o.prop(f0.mounted);
15420
+ let r = o.prop(p0.mounted);
15410
15421
  if (r) {
15411
15422
  if (r.tree.prop(et) == this.data) {
15412
15423
  if (r.overlay)
@@ -15436,7 +15447,7 @@ class E2 {
15436
15447
  return !0;
15437
15448
  }
15438
15449
  }
15439
- E2.setState = /* @__PURE__ */ h0.define();
15450
+ E2.setState = /* @__PURE__ */ d0.define();
15440
15451
  function E6(n, e, t) {
15441
15452
  let i = n.facet(Se), s = K0(n).topNode;
15442
15453
  if (!i || i.allowsNesting)
@@ -15737,14 +15748,14 @@ const fi = typeof navigator < "u" && (!((ui = navigator.scheduling) === null ||
15737
15748
  eventHandlers: { focus() {
15738
15749
  this.scheduleWork();
15739
15750
  } }
15740
- }), Se = /* @__PURE__ */ F.define({
15751
+ }), Se = /* @__PURE__ */ q.define({
15741
15752
  combine(n) {
15742
15753
  return n.length ? n[0] : null;
15743
15754
  },
15744
15755
  enables: (n) => [
15745
15756
  E2.state,
15746
15757
  Wm,
15747
- U.contentAttributes.compute([n], (e) => {
15758
+ F.contentAttributes.compute([n], (e) => {
15748
15759
  let t = e.facet(n);
15749
15760
  return t && t.name ? { "data-language": t.name } : {};
15750
15761
  })
@@ -15758,7 +15769,7 @@ class Um {
15758
15769
  this.language = e, this.support = t, this.extension = [e, t];
15759
15770
  }
15760
15771
  }
15761
- const Fm = /* @__PURE__ */ F.define(), Xn = /* @__PURE__ */ F.define({
15772
+ const Fm = /* @__PURE__ */ q.define(), Xn = /* @__PURE__ */ q.define({
15762
15773
  combine: (n) => {
15763
15774
  if (!n.length)
15764
15775
  return " ";
@@ -15857,7 +15868,7 @@ class N3 {
15857
15868
  return this.options.simulateBreak || null;
15858
15869
  }
15859
15870
  }
15860
- const bl = /* @__PURE__ */ new f0();
15871
+ const bl = /* @__PURE__ */ new p0();
15861
15872
  function qm(n, e, t) {
15862
15873
  let i = e.resolveStack(t), s = e.resolveInner(t, -1).resolve(t, 0).enterUnfinishedNodesBefore(t);
15863
15874
  if (s != i.node) {
@@ -15885,7 +15896,7 @@ function Km(n) {
15885
15896
  if (e)
15886
15897
  return e;
15887
15898
  let t = n.firstChild, i;
15888
- if (t && (i = t.type.prop(f0.closedBy))) {
15899
+ if (t && (i = t.type.prop(p0.closedBy))) {
15889
15900
  let s = n.lastChild, o = s && i.indexOf(s.name) > -1;
15890
15901
  return (l) => Zm(l, !0, 1, void 0, o && !Ym(l) ? s.from : void 0);
15891
15902
  }
@@ -16009,7 +16020,7 @@ function tv() {
16009
16020
  return a.length ? [n, { changes: a, sequential: !0 }] : n;
16010
16021
  });
16011
16022
  }
16012
- const iv = /* @__PURE__ */ F.define(), yl = /* @__PURE__ */ new f0();
16023
+ const iv = /* @__PURE__ */ q.define(), yl = /* @__PURE__ */ new p0();
16013
16024
  function nv(n, e, t) {
16014
16025
  let i = K0(n);
16015
16026
  if (i.length < t)
@@ -16045,7 +16056,7 @@ function Sl(n, e) {
16045
16056
  let t = e.mapPos(n.from, 1), i = e.mapPos(n.to, -1);
16046
16057
  return t >= i ? void 0 : { from: t, to: i };
16047
16058
  }
16048
- const G3 = /* @__PURE__ */ h0.define({ map: Sl }), f1 = /* @__PURE__ */ h0.define({ map: Sl });
16059
+ const G3 = /* @__PURE__ */ d0.define({ map: Sl }), f1 = /* @__PURE__ */ d0.define({ map: Sl });
16049
16060
  function Cl(n) {
16050
16061
  let e = [];
16051
16062
  for (let { head: t } of n.state.selection.ranges)
@@ -16069,7 +16080,7 @@ const Ue = /* @__PURE__ */ e2.define({
16069
16080
  }));
16070
16081
  return e.selection && (n = L6(n, e.selection.main.head)), n;
16071
16082
  },
16072
- provide: (n) => U.decorations.from(n),
16083
+ provide: (n) => F.decorations.from(n),
16073
16084
  toJSON(n, e) {
16074
16085
  let t = [];
16075
16086
  return n.between(0, e.doc.length, (i, s) => {
@@ -16113,7 +16124,7 @@ function ov(n, e, t) {
16113
16124
  }), i;
16114
16125
  }
16115
16126
  function kl(n, e) {
16116
- return n.field(Ue, !1) ? e : e.concat(h0.appendConfig.of(Ml()));
16127
+ return n.field(Ue, !1) ? e : e.concat(d0.appendConfig.of(Ml()));
16117
16128
  }
16118
16129
  const lv = (n) => {
16119
16130
  for (let e of Cl(n)) {
@@ -16134,7 +16145,7 @@ const lv = (n) => {
16134
16145
  };
16135
16146
  function Ol(n, e, t = !0) {
16136
16147
  let i = n.state.doc.lineAt(e.from).number, s = n.state.doc.lineAt(e.to).number;
16137
- return U.announce.of(`${n.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`);
16148
+ return F.announce.of(`${n.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`);
16138
16149
  }
16139
16150
  const av = (n) => {
16140
16151
  let { state: e } = n, t = [];
@@ -16160,7 +16171,7 @@ const av = (n) => {
16160
16171
  placeholderDOM: null,
16161
16172
  preparePlaceholder: null,
16162
16173
  placeholderText: "…"
16163
- }, Dl = /* @__PURE__ */ F.define({
16174
+ }, Dl = /* @__PURE__ */ q.define({
16164
16175
  combine(n) {
16165
16176
  return Z2(n, dv);
16166
16177
  }
@@ -16259,7 +16270,7 @@ function pv(n = {}) {
16259
16270
  Ml()
16260
16271
  ];
16261
16272
  }
16262
- const gv = /* @__PURE__ */ U.baseTheme({
16273
+ const gv = /* @__PURE__ */ F.baseTheme({
16263
16274
  ".cm-foldPlaceholder": {
16264
16275
  backgroundColor: "#eee",
16265
16276
  border: "1px solid #ddd",
@@ -16309,7 +16320,7 @@ class $3 {
16309
16320
  return new $3(e, t || {});
16310
16321
  }
16311
16322
  }
16312
- const pn = /* @__PURE__ */ F.define(), zl = /* @__PURE__ */ F.define({
16323
+ const pn = /* @__PURE__ */ q.define(), zl = /* @__PURE__ */ q.define({
16313
16324
  combine(n) {
16314
16325
  return n.length ? [n[0]] : null;
16315
16326
  }
@@ -16320,7 +16331,7 @@ function gi(n) {
16320
16331
  }
16321
16332
  function mv(n, e) {
16322
16333
  let t = [wv], i;
16323
- return n instanceof $3 && (n.module && t.push(U.styleModule.of(n.module)), i = n.themeType), e != null && e.fallback ? t.push(zl.of(n)) : i ? t.push(pn.computeN([U.darkTheme], (s) => s.facet(U.darkTheme) == (i == "dark") ? [n] : [])) : t.push(pn.of(n)), t;
16334
+ return n instanceof $3 && (n.module && t.push(F.styleModule.of(n.module)), i = n.themeType), e != null && e.fallback ? t.push(zl.of(n)) : i ? t.push(pn.computeN([F.darkTheme], (s) => s.facet(F.darkTheme) == (i == "dark") ? [n] : [])) : t.push(pn.of(n)), t;
16324
16335
  }
16325
16336
  class vv {
16326
16337
  constructor(e) {
@@ -16421,10 +16432,10 @@ const wv = /* @__PURE__ */ Fe.high(/* @__PURE__ */ G0.fromClass(vv, {
16421
16432
  tag: B.invalid,
16422
16433
  color: "#f00"
16423
16434
  }
16424
- ]), bv = /* @__PURE__ */ U.baseTheme({
16435
+ ]), bv = /* @__PURE__ */ F.baseTheme({
16425
16436
  "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
16426
16437
  "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
16427
- }), Pl = 1e4, Al = "()[]{}", Vl = /* @__PURE__ */ F.define({
16438
+ }), Pl = 1e4, Al = "()[]{}", Vl = /* @__PURE__ */ q.define({
16428
16439
  combine(n) {
16429
16440
  return Z2(n, {
16430
16441
  afterCursor: !0,
@@ -16454,7 +16465,7 @@ const Cv = /* @__PURE__ */ e2.define({
16454
16465
  }
16455
16466
  return s0.set(t, !0);
16456
16467
  },
16457
- provide: (n) => U.decorations.from(n)
16468
+ provide: (n) => F.decorations.from(n)
16458
16469
  }), kv = [
16459
16470
  Cv,
16460
16471
  bv
@@ -16462,9 +16473,9 @@ const Cv = /* @__PURE__ */ e2.define({
16462
16473
  function Ov(n = {}) {
16463
16474
  return [Vl.of(n), kv];
16464
16475
  }
16465
- const El = /* @__PURE__ */ new f0();
16476
+ const El = /* @__PURE__ */ new p0();
16466
16477
  function gn(n, e, t) {
16467
- let i = n.prop(e < 0 ? f0.openedBy : f0.closedBy);
16478
+ let i = n.prop(e < 0 ? p0.openedBy : p0.closedBy);
16468
16479
  if (i)
16469
16480
  return i;
16470
16481
  if (n.name.length == 1) {
@@ -16698,7 +16709,7 @@ function Iv(n, e, t = e.selection.ranges) {
16698
16709
  }
16699
16710
  return null;
16700
16711
  }
16701
- const vn = /* @__PURE__ */ ce.define(), Rv = /* @__PURE__ */ ce.define(), Nv = /* @__PURE__ */ F.define(), Ll = /* @__PURE__ */ F.define({
16712
+ const vn = /* @__PURE__ */ ce.define(), Rv = /* @__PURE__ */ ce.define(), Nv = /* @__PURE__ */ q.define(), Ll = /* @__PURE__ */ q.define({
16702
16713
  combine(n) {
16703
16714
  return Z2(n, {
16704
16715
  minDepth: 100,
@@ -16737,7 +16748,7 @@ function Gv(n = {}) {
16737
16748
  return [
16738
16749
  Hl,
16739
16750
  Ll.of(n),
16740
- U.domEventHandlers({
16751
+ F.domEventHandlers({
16741
16752
  beforeinput(e, t) {
16742
16753
  let i = e.inputType == "historyUndo" ? Il : e.inputType == "historyRedo" ? wn : null;
16743
16754
  return i ? (e.preventDefault(), i(t)) : !1;
@@ -16841,7 +16852,7 @@ function Yv(n, e, t) {
16841
16852
  if (!n.changes)
16842
16853
  return v2.selection(i);
16843
16854
  let s = n.changes.map(e), o = e.mapDesc(n.changes, !0), l = n.mapped ? n.mapped.composeDesc(o) : o;
16844
- return new v2(s, h0.mapEffects(n.effects, e), l, n.startSelection.map(o), i);
16855
+ return new v2(s, d0.mapEffects(n.effects, e), l, n.startSelection.map(o), i);
16845
16856
  }
16846
16857
  const Kv = /^(input\.type|delete)($|\.)/;
16847
16858
  class X2 {
@@ -16854,7 +16865,7 @@ class X2 {
16854
16865
  addChanges(e, t, i, s, o) {
16855
16866
  let l = this.done, r = l[l.length - 1];
16856
16867
  return r && r.changes && !r.changes.empty && e.changes && (!i || Kv.test(i)) && (!r.selectionsAfter.length && t - this.prevTime < s.newGroupDelay && s.joinToEvent(o, Wv(r.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
16857
- i == "input.type.compose") ? l = _3(l, l.length - 1, s.minDepth, new v2(e.changes.compose(r.changes), Rl(h0.mapEffects(e.effects, r.changes), r.effects), r.mapped, r.startSelection, M2)) : l = _3(l, l.length, s.minDepth, e), new X2(l, M2, t, i);
16868
+ i == "input.type.compose") ? l = _3(l, l.length - 1, s.minDepth, new v2(e.changes.compose(r.changes), Rl(d0.mapEffects(e.effects, r.changes), r.effects), r.mapped, r.startSelection, M2)) : l = _3(l, l.length, s.minDepth, e), new X2(l, M2, t, i);
16858
16869
  }
16859
16870
  addSelection(e, t, i, s) {
16860
16871
  let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : M2;
@@ -16929,7 +16940,7 @@ function Zv(n, e, t) {
16929
16940
  return i && (i > 2 || /[^\s,.;:]/.test(n.sliceDoc(e.from, e.to))) || e.firstChild;
16930
16941
  }
16931
16942
  function U3(n, e, t) {
16932
- let i = K0(n).resolveInner(e.head), s = t ? f0.closedBy : f0.openedBy;
16943
+ let i = K0(n).resolveInner(e.head), s = t ? p0.closedBy : p0.openedBy;
16933
16944
  for (let a = e.head; ; ) {
16934
16945
  let h = t ? i.childAfter(a) : i.childBefore(a);
16935
16946
  if (!h)
@@ -16952,7 +16963,7 @@ const Fl = (n) => Ul(n, !1), ql = (n) => Ul(n, !0);
16952
16963
  function Yl(n) {
16953
16964
  let e = n.scrollDOM.clientHeight < n.scrollDOM.scrollHeight - 2, t = 0, i = 0, s;
16954
16965
  if (e) {
16955
- for (let o of n.state.facet(U.scrollMargins)) {
16966
+ for (let o of n.state.facet(F.scrollMargins)) {
16956
16967
  let l = o(n);
16957
16968
  l != null && l.top && (t = Math.max(l == null ? void 0 : l.top, t)), l != null && l.bottom && (i = Math.max(l == null ? void 0 : l.bottom, i));
16958
16969
  }
@@ -16973,7 +16984,7 @@ function Kl(n, e) {
16973
16984
  let o;
16974
16985
  if (t.selfScroll) {
16975
16986
  let l = n.coordsAtPos(i.selection.main.head), r = n.scrollDOM.getBoundingClientRect(), a = r.top + t.marginTop, h = r.bottom - t.marginBottom;
16976
- l && l.top > a && l.bottom < h && (o = U.scrollIntoView(s.main.head, { y: "start", yMargin: l.top - a }));
16987
+ l && l.top > a && l.bottom < h && (o = F.scrollIntoView(s.main.head, { y: "start", yMargin: l.top - a }));
16977
16988
  }
16978
16989
  return n.dispatch(ee(i, s), { effects: o }), !0;
16979
16990
  }
@@ -17058,12 +17069,12 @@ function p1(n, e) {
17058
17069
  return s.changes.empty ? !1 : (n.dispatch(i.update(s, {
17059
17070
  scrollIntoView: !0,
17060
17071
  userEvent: t,
17061
- effects: t == "delete.selection" ? U.announce.of(i.phrase("Selection deleted")) : void 0
17072
+ effects: t == "delete.selection" ? F.announce.of(i.phrase("Selection deleted")) : void 0
17062
17073
  })), !0);
17063
17074
  }
17064
17075
  function B1(n, e, t) {
17065
- if (n instanceof U)
17066
- for (let i of n.state.facet(U.atomicRanges).map((s) => s(n)))
17076
+ if (n instanceof F)
17077
+ for (let i of n.state.facet(F.atomicRanges).map((s) => s(n)))
17067
17078
  i.between(e, e, (s, o) => {
17068
17079
  s < e && o > e && (e = t ? o : s);
17069
17080
  });
@@ -17189,7 +17200,7 @@ function Bw(n, e) {
17189
17200
  if (/\(\)|\[\]|\{\}/.test(n.sliceDoc(e - 1, e + 1)))
17190
17201
  return { from: e, to: e };
17191
17202
  let t = K0(n).resolveInner(e), i = t.childBefore(e), s = t.childAfter(e), o;
17192
- return i && s && i.to <= e && s.from >= e && (o = i.type.prop(f0.closedBy)) && o.indexOf(s.name) > -1 && n.doc.lineAt(i.to).from == n.doc.lineAt(s.from).from && !/\S/.test(n.sliceDoc(i.to, s.from)) ? { from: i.to, to: s.from } : null;
17203
+ return i && s && i.to <= e && s.from >= e && (o = i.type.prop(p0.closedBy)) && o.indexOf(s.name) > -1 && n.doc.lineAt(i.to).from == n.doc.lineAt(s.from).from && !/\S/.test(n.sliceDoc(i.to, s.from)) ? { from: i.to, to: s.from } : null;
17193
17204
  }
17194
17205
  const Y6 = /* @__PURE__ */ hr(!1), Lw = /* @__PURE__ */ hr(!0);
17195
17206
  function hr(n) {
@@ -17515,13 +17526,13 @@ function _n(n) {
17515
17526
  } else h && a && (f = f * (a == "-" ? -1 : 1) + r.number);
17516
17527
  let p = l.doc.line(Math.max(1, Math.min(l.doc.lines, f))), g = T.cursor(p.from + Math.max(0, Math.min(u, p.length)));
17517
17528
  n.dispatch({
17518
- effects: [Gt.of(!1), U.scrollIntoView(g.from, { y: "center" })],
17529
+ effects: [Gt.of(!1), F.scrollIntoView(g.from, { y: "center" })],
17519
17530
  selection: g
17520
17531
  }), n.focus();
17521
17532
  }
17522
17533
  return { dom: i };
17523
17534
  }
17524
- const Gt = /* @__PURE__ */ h0.define(), X6 = /* @__PURE__ */ e2.define({
17535
+ const Gt = /* @__PURE__ */ d0.define(), X6 = /* @__PURE__ */ e2.define({
17525
17536
  create() {
17526
17537
  return !0;
17527
17538
  },
@@ -17535,10 +17546,10 @@ const Gt = /* @__PURE__ */ h0.define(), X6 = /* @__PURE__ */ e2.define({
17535
17546
  let e = Jt(n, _n);
17536
17547
  if (!e) {
17537
17548
  let t = [Gt.of(!0)];
17538
- n.state.field(X6, !1) == null && t.push(h0.appendConfig.of([X6, Fw])), n.dispatch({ effects: t }), e = Jt(n, _n);
17549
+ n.state.field(X6, !1) == null && t.push(d0.appendConfig.of([X6, Fw])), n.dispatch({ effects: t }), e = Jt(n, _n);
17539
17550
  }
17540
17551
  return e && e.dom.querySelector("input").select(), !0;
17541
- }, Fw = /* @__PURE__ */ U.baseTheme({
17552
+ }, Fw = /* @__PURE__ */ F.baseTheme({
17542
17553
  ".cm-panel.cm-gotoLine": {
17543
17554
  padding: "2px 6px 4px",
17544
17555
  position: "relative",
@@ -17559,7 +17570,7 @@ const Gt = /* @__PURE__ */ h0.define(), X6 = /* @__PURE__ */ e2.define({
17559
17570
  minSelectionLength: 1,
17560
17571
  maxMatches: 100,
17561
17572
  wholeWords: !1
17562
- }, Yw = /* @__PURE__ */ F.define({
17573
+ }, Yw = /* @__PURE__ */ q.define({
17563
17574
  combine(n) {
17564
17575
  return Z2(n, qw, {
17565
17576
  highlightWordAroundCursor: (e, t) => e || t,
@@ -17620,7 +17631,7 @@ const Zw = /* @__PURE__ */ G0.fromClass(class {
17620
17631
  }
17621
17632
  }, {
17622
17633
  decorations: (n) => n.decorations
17623
- }), ex = /* @__PURE__ */ U.baseTheme({
17634
+ }), ex = /* @__PURE__ */ F.baseTheme({
17624
17635
  ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
17625
17636
  ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
17626
17637
  }), tx = ({ state: n, dispatch: e }) => {
@@ -17655,9 +17666,9 @@ const nx = ({ state: n, dispatch: e }) => {
17655
17666
  let s = ix(n, i);
17656
17667
  return s ? (e(n.update({
17657
17668
  selection: n.selection.addRange(T.range(s.from, s.to), !1),
17658
- effects: U.scrollIntoView(s.to)
17669
+ effects: F.scrollIntoView(s.to)
17659
17670
  })), !0) : !1;
17660
- }, _t = /* @__PURE__ */ F.define({
17671
+ }, _t = /* @__PURE__ */ q.define({
17661
17672
  combine(n) {
17662
17673
  return Z2(n, {
17663
17674
  top: !1,
@@ -17666,7 +17677,7 @@ const nx = ({ state: n, dispatch: e }) => {
17666
17677
  regexp: !1,
17667
17678
  wholeWord: !1,
17668
17679
  createPanel: (e) => new gx(e),
17669
- scrollToMatch: (e) => U.scrollIntoView(e)
17680
+ scrollToMatch: (e) => F.scrollIntoView(e)
17670
17681
  });
17671
17682
  }
17672
17683
  });
@@ -17835,7 +17846,7 @@ class rx extends gr {
17835
17846
  s(o.value.from, o.value.to);
17836
17847
  }
17837
17848
  }
17838
- const i1 = /* @__PURE__ */ h0.define(), ns = /* @__PURE__ */ h0.define(), ve = /* @__PURE__ */ e2.define({
17849
+ const i1 = /* @__PURE__ */ d0.define(), ns = /* @__PURE__ */ d0.define(), ve = /* @__PURE__ */ e2.define({
17839
17850
  create(n) {
17840
17851
  return new xi(yn(n).create(), null);
17841
17852
  },
@@ -17931,7 +17942,7 @@ const k3 = /* @__PURE__ */ g1((n, { query: e }) => {
17931
17942
  if (!o)
17932
17943
  return !1;
17933
17944
  let l = o, r = [], a, h, c = [];
17934
- l.from == i && l.to == s && (h = t.toText(e.getReplacement(l)), r.push({ from: l.from, to: l.to, insert: h }), l = e.nextMatch(t, l.from, l.to), c.push(U.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(i).number) + ".")));
17945
+ l.from == i && l.to == s && (h = t.toText(e.getReplacement(l)), r.push({ from: l.from, to: l.to, insert: h }), l = e.nextMatch(t, l.from, l.to), c.push(F.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(i).number) + ".")));
17935
17946
  let d = n.state.changes(r);
17936
17947
  return l && (a = T.single(l.from, l.to).map(d), c.push(os(n, l)), c.push(t.facet(_t).scrollToMatch(a.main, n))), n.dispatch({
17937
17948
  changes: d,
@@ -17951,7 +17962,7 @@ const k3 = /* @__PURE__ */ g1((n, { query: e }) => {
17951
17962
  let i = n.state.phrase("replaced $ matches", t.length) + ".";
17952
17963
  return n.dispatch({
17953
17964
  changes: t,
17954
- effects: U.announce.of(i),
17965
+ effects: F.announce.of(i),
17955
17966
  userEvent: "input.replace.all"
17956
17967
  }), !0;
17957
17968
  });
@@ -17991,7 +18002,7 @@ const wr = (n) => {
17991
18002
  } else
17992
18003
  n.dispatch({ effects: [
17993
18004
  ns.of(!0),
17994
- e ? i1.of(yn(n.state, e.query.spec)) : h0.appendConfig.of(vx)
18005
+ e ? i1.of(yn(n.state, e.query.spec)) : d0.appendConfig.of(vx)
17995
18006
  ] });
17996
18007
  return !0;
17997
18008
  }, xr = (n) => {
@@ -18127,9 +18138,9 @@ function os(n, { from: e, to: t }) {
18127
18138
  break;
18128
18139
  }
18129
18140
  }
18130
- return U.announce.of(`${n.state.phrase("current match")}. ${r} ${n.state.phrase("on line")} ${i.number}.`);
18141
+ return F.announce.of(`${n.state.phrase("current match")}. ${r} ${n.state.phrase("on line")} ${i.number}.`);
18131
18142
  }
18132
- const mx = /* @__PURE__ */ U.baseTheme({
18143
+ const mx = /* @__PURE__ */ F.baseTheme({
18133
18144
  ".cm-panel.cm-search": {
18134
18145
  padding: "2px 6px 4px",
18135
18146
  position: "relative",
@@ -18273,7 +18284,7 @@ function _x(n) {
18273
18284
  let e = t4.get(n);
18274
18285
  return e || t4.set(n, e = xx(n)), e;
18275
18286
  }
18276
- const D3 = /* @__PURE__ */ h0.define(), n1 = /* @__PURE__ */ h0.define();
18287
+ const D3 = /* @__PURE__ */ d0.define(), n1 = /* @__PURE__ */ d0.define();
18277
18288
  class yx {
18278
18289
  constructor(e) {
18279
18290
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
@@ -18302,19 +18313,19 @@ class yx {
18302
18313
  return null;
18303
18314
  let { chars: t, folded: i, any: s, precise: o, byWord: l } = this;
18304
18315
  if (t.length == 1) {
18305
- let y = f2(e, 0), M = F2(y), k = M == e.length ? 0 : -100;
18316
+ let y = f2(e, 0), D = F2(y), k = D == e.length ? 0 : -100;
18306
18317
  if (y != t[0]) if (y == i[0])
18307
18318
  k += -200;
18308
18319
  else
18309
18320
  return null;
18310
- return this.ret(k, [0, M]);
18321
+ return this.ret(k, [0, D]);
18311
18322
  }
18312
18323
  let r = e.indexOf(this.pattern);
18313
18324
  if (r == 0)
18314
18325
  return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
18315
18326
  let a = t.length, h = 0;
18316
18327
  if (r < 0) {
18317
- for (let y = 0, M = Math.min(e.length, 200); y < M && h < a; ) {
18328
+ for (let y = 0, D = Math.min(e.length, 200); y < D && h < a; ) {
18318
18329
  let k = f2(e, y);
18319
18330
  (k == t[h] || k == i[h]) && (s[h++] = y), y += F2(k);
18320
18331
  }
@@ -18322,7 +18333,7 @@ class yx {
18322
18333
  return null;
18323
18334
  }
18324
18335
  let c = 0, d = 0, u = !1, f = 0, p = -1, g = -1, v = /[a-z]/.test(e), w = !0;
18325
- for (let y = 0, M = Math.min(e.length, 200), k = 0; y < M && d < a; ) {
18336
+ for (let y = 0, D = Math.min(e.length, 200), k = 0; y < D && d < a; ) {
18326
18337
  let O = f2(e, y);
18327
18338
  r < 0 && (c < a && O == t[c] && (o[c++] = y), f < a && (O == t[f] || O == i[f] ? (f == 0 && (p = y), g = y + 1, f++) : f = 0));
18328
18339
  let x, S = O < 255 ? O >= 48 && O <= 57 || O >= 97 && O <= 122 ? 2 : O >= 65 && O <= 90 ? 1 : 0 : (x = Tn(O)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
@@ -18350,7 +18361,7 @@ class Sx {
18350
18361
  return i == null ? null : (this.matched = [0, t.length], this.score = i + (e.length == this.pattern.length ? 0 : -100), this);
18351
18362
  }
18352
18363
  }
18353
- const Y0 = /* @__PURE__ */ F.define({
18364
+ const Y0 = /* @__PURE__ */ q.define({
18354
18365
  combine(n) {
18355
18366
  return Z2(n, {
18356
18367
  activateOnTyping: !0,
@@ -18821,11 +18832,11 @@ function Ex(n, e, t, i) {
18821
18832
  let s = e.sliceDoc(t, i);
18822
18833
  return typeof n == "function" ? n(s, t, i, e) : _r(n, !0).test(s);
18823
18834
  }
18824
- const ls = /* @__PURE__ */ h0.define({
18835
+ const ls = /* @__PURE__ */ d0.define({
18825
18836
  map(n, e) {
18826
18837
  return n.map((t) => t.map(e));
18827
18838
  }
18828
- }), Cr = /* @__PURE__ */ h0.define(), g2 = /* @__PURE__ */ e2.define({
18839
+ }), Cr = /* @__PURE__ */ d0.define(), g2 = /* @__PURE__ */ e2.define({
18829
18840
  create() {
18830
18841
  return M3.start();
18831
18842
  },
@@ -18834,7 +18845,7 @@ const ls = /* @__PURE__ */ h0.define({
18834
18845
  },
18835
18846
  provide: (n) => [
18836
18847
  Un.from(n, (e) => e.tooltip),
18837
- U.contentAttributes.from(n, (e) => e.attrs)
18848
+ F.contentAttributes.from(n, (e) => e.attrs)
18838
18849
  ]
18839
18850
  });
18840
18851
  function rs(n, e) {
@@ -18971,7 +18982,7 @@ const Rx = 50, Nx = 1e3, Gx = /* @__PURE__ */ G0.fromClass(class {
18971
18982
  this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: D3.of(!1) }), 20), this.composing = 0;
18972
18983
  }
18973
18984
  }
18974
- }), $x = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), jx = /* @__PURE__ */ Fe.highest(/* @__PURE__ */ U.domEventHandlers({
18985
+ }), $x = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), jx = /* @__PURE__ */ Fe.highest(/* @__PURE__ */ F.domEventHandlers({
18975
18986
  keydown(n, e) {
18976
18987
  let t = e.state.field(g2, !1);
18977
18988
  if (!t || !t.open || t.open.disabled || t.open.selected < 0 || n.key.length > 1 || n.ctrlKey && !($x && n.altKey) || n.metaKey)
@@ -18979,7 +18990,7 @@ const Rx = 50, Nx = 1e3, Gx = /* @__PURE__ */ G0.fromClass(class {
18979
18990
  let i = t.open.options[t.open.selected], s = t.active.find((l) => l.source == i.source), o = i.completion.commitCharacters || s.result.commitCharacters;
18980
18991
  return o && o.indexOf(n.key) > -1 && rs(e, i), !1;
18981
18992
  }
18982
- })), Wx = /* @__PURE__ */ U.baseTheme({
18993
+ })), Wx = /* @__PURE__ */ F.baseTheme({
18983
18994
  ".cm-tooltip.cm-tooltip-autocomplete": {
18984
18995
  "& > ul": {
18985
18996
  fontFamily: "monospace",
@@ -19106,7 +19117,7 @@ const Rx = 50, Nx = 1e3, Gx = /* @__PURE__ */ G0.fromClass(class {
19106
19117
  brackets: ["(", "[", "{", "'", '"'],
19107
19118
  before: ")]}:;>",
19108
19119
  stringPrefixes: []
19109
- }, Ie = /* @__PURE__ */ h0.define({
19120
+ }, Ie = /* @__PURE__ */ d0.define({
19110
19121
  map(n, e) {
19111
19122
  let t = e.mapPos(n, -1, r2.TrackAfter);
19112
19123
  return t ?? void 0;
@@ -19142,7 +19153,7 @@ function Or(n) {
19142
19153
  function Dr(n, e) {
19143
19154
  return n.languageDataAt("closeBrackets", e)[0] || s1;
19144
19155
  }
19145
- const Fx = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), qx = /* @__PURE__ */ U.inputHandler.of((n, e, t, i) => {
19156
+ const Fx = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), qx = /* @__PURE__ */ F.inputHandler.of((n, e, t, i) => {
19146
19157
  if ((Fx ? n.composing : n.compositionStarted) || n.state.readOnly)
19147
19158
  return !1;
19148
19159
  let s = n.state.selection.main;
@@ -19393,9 +19404,9 @@ function sb(n, e) {
19393
19404
  return !!(n.effects.some((l) => l.is(zr)) || n.changes.touchesRange(o.from, Math.max(o.to, i)));
19394
19405
  }
19395
19406
  function ob(n, e) {
19396
- return n.field(S2, !1) ? e : e.concat(h0.appendConfig.of(vb));
19407
+ return n.field(S2, !1) ? e : e.concat(d0.appendConfig.of(vb));
19397
19408
  }
19398
- const zr = /* @__PURE__ */ h0.define(), cs = /* @__PURE__ */ h0.define(), Pr = /* @__PURE__ */ h0.define(), S2 = /* @__PURE__ */ e2.define({
19409
+ const zr = /* @__PURE__ */ d0.define(), cs = /* @__PURE__ */ d0.define(), Pr = /* @__PURE__ */ d0.define(), S2 = /* @__PURE__ */ e2.define({
19399
19410
  create() {
19400
19411
  return new Le(s0.none, null, null);
19401
19412
  },
@@ -19417,7 +19428,7 @@ const zr = /* @__PURE__ */ h0.define(), cs = /* @__PURE__ */ h0.define(), Pr = /
19417
19428
  },
19418
19429
  provide: (n) => [
19419
19430
  Zt.from(n, (e) => e.panel),
19420
- U.decorations.from(n, (e) => e.diagnostics)
19431
+ F.decorations.from(n, (e) => e.diagnostics)
19421
19432
  ]
19422
19433
  }), lb = /* @__PURE__ */ s0.mark({ class: "cm-lintRange cm-lintRange-active" });
19423
19434
  function rb(n, e, t) {
@@ -19456,7 +19467,7 @@ const cb = (n) => {
19456
19467
  }, db = [
19457
19468
  { key: "Mod-Shift-m", run: cb, preventDefault: !0 },
19458
19469
  { key: "F8", run: hb }
19459
- ], o1 = /* @__PURE__ */ F.define({
19470
+ ], o1 = /* @__PURE__ */ q.define({
19460
19471
  combine(n) {
19461
19472
  return Object.assign({ sources: n.map((e) => e.source).filter((e) => e != null) }, Z2(n.map((e) => e.config), {
19462
19473
  delay: 750,
@@ -19643,7 +19654,7 @@ function fb(n, e = 'viewBox="0 0 40 40"') {
19643
19654
  function R1(n) {
19644
19655
  return fb(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`, 'width="6" height="3"');
19645
19656
  }
19646
- const pb = /* @__PURE__ */ U.baseTheme({
19657
+ const pb = /* @__PURE__ */ F.baseTheme({
19647
19658
  ".cm-diagnostic": {
19648
19659
  padding: "3px 6px 3px 8px",
19649
19660
  marginLeft: "-1px",
@@ -19747,7 +19758,7 @@ function mb(n) {
19747
19758
  }
19748
19759
  const vb = [
19749
19760
  S2,
19750
- /* @__PURE__ */ U.decorations.compute([S2], (n) => {
19761
+ /* @__PURE__ */ F.decorations.compute([S2], (n) => {
19751
19762
  let { selected: e, panel: t } = n.field(S2);
19752
19763
  return !e || !t || e.from == e.to ? s0.none : s0.set([
19753
19764
  lb.range(e.from, e.to)
@@ -20503,7 +20514,7 @@ class Sb {
20503
20514
  return null;
20504
20515
  let r = l + o.length;
20505
20516
  if (r <= this.safeTo) {
20506
- let a = o.prop(f0.lookAhead);
20517
+ let a = o.prop(p0.lookAhead);
20507
20518
  if (!a || r + a < this.fragment.to)
20508
20519
  return o;
20509
20520
  }
@@ -20686,7 +20697,7 @@ class kb {
20686
20697
  let h = e.curContext && e.curContext.tracker.strict, c = h ? e.curContext.hash : 0;
20687
20698
  for (let d = this.fragments.nodeAt(s); d; ) {
20688
20699
  let u = this.parser.nodeSet.types[d.type.id] == d.type ? o.getGoto(e.state, d.type.id) : -1;
20689
- if (u > -1 && d.length && (!h || (d.prop(f0.contextHash) || 0) == c))
20700
+ if (u > -1 && d.length && (!h || (d.prop(p0.contextHash) || 0) == c))
20690
20701
  return e.useNode(d, u), b2 && console.log(l + this.stackID(e) + ` (via reuse of ${o.getName(d.type.id)})`), !0;
20691
20702
  if (!(d instanceof N0) || d.children.length == 0 || d.positions[0] > 0)
20692
20703
  break;
@@ -20814,7 +20825,7 @@ class P3 extends gl {
20814
20825
  if (e.nodeProps)
20815
20826
  for (let r of e.nodeProps) {
20816
20827
  let a = r[0];
20817
- typeof a == "string" && (a = f0[a]);
20828
+ typeof a == "string" && (a = p0[a]);
20818
20829
  for (let h = 1; h < r.length; ) {
20819
20830
  let c = r[h++];
20820
20831
  if (c >= 0)
@@ -21278,14 +21289,14 @@ function Xb(n, e) {
21278
21289
  } else if (u == "tag") {
21279
21290
  let g = Ci(c, p), v = r[g], w = [], y = p && p.lastChild;
21280
21291
  g && (!y || y.name != "CloseTag" || Z1(c, y) != g) && w.push(v ? v.closeCompletion : { label: "</" + g + ">", type: "type", boost: 2 });
21281
- let M = w.concat(((v == null ? void 0 : v.children) || (p ? o : l)).map((k) => k.openCompletion));
21292
+ let D = w.concat(((v == null ? void 0 : v.children) || (p ? o : l)).map((k) => k.openCompletion));
21282
21293
  if (p && (v != null && v.text.length)) {
21283
21294
  let k = p.firstChild;
21284
- k.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(k.to, a.pos)) && (M = M.concat(v.text));
21295
+ k.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(k.to, a.pos)) && (D = D.concat(v.text));
21285
21296
  }
21286
21297
  return {
21287
21298
  from: f,
21288
- options: M,
21299
+ options: D,
21289
21300
  validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
21290
21301
  };
21291
21302
  } else
@@ -21333,7 +21344,7 @@ function S4(n, e, t = n.length) {
21333
21344
  let i = e.firstChild, s = i && i.getChild("TagName");
21334
21345
  return s ? n.sliceString(s.from, Math.min(s.to, t)) : "";
21335
21346
  }
21336
- const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21347
+ const Jb = /* @__PURE__ */ F.inputHandler.of((n, e, t, i, s) => {
21337
21348
  if (n.composing || n.state.readOnly || e != t || i != ">" && i != "/" || !kn.isActiveAt(n.state, e, -1))
21338
21349
  return !1;
21339
21350
  let o = s(), { state: l } = o, r = l.changeByRange((a) => {
@@ -21381,9 +21392,9 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21381
21392
  i.value = r.target.result;
21382
21393
  }, l.readAsText(o);
21383
21394
  }), we(() => {
21384
- const s = new U({
21395
+ const s = new F({
21385
21396
  doc: i.value,
21386
- extensions: [wb, Qb(), U.lineWrapping, w0.readOnly.of(!0)],
21397
+ extensions: [wb, Qb(), F.lineWrapping, w0.readOnly.of(!0)],
21387
21398
  parent: document.querySelector("#xml-editor")
21388
21399
  });
21389
21400
  s.dom.style.width = "100%";
@@ -21506,11 +21517,11 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21506
21517
  emits: ["destroy"],
21507
21518
  setup(n, { emit: e }) {
21508
21519
  const t = e, i = n, s = i0(() => i.blobUrl), o = i0(() => i.fileName), l = i0(() => [i == null ? void 0 : i.blobUrl]), r = i0(() => {
21509
- const H = o.value;
21510
- if (!H) return;
21511
- const P = H.lastIndexOf(".");
21512
- let I = H == null ? void 0 : H.slice(P + 1);
21513
- return I = I == null ? void 0 : I.toLowerCase(), I;
21520
+ const L = o.value;
21521
+ if (!L) return;
21522
+ const z = L.lastIndexOf(".");
21523
+ let H = L == null ? void 0 : L.slice(z + 1);
21524
+ return H = H == null ? void 0 : H.toLowerCase(), H;
21514
21525
  }), a = i0(() => (o.value, h.value || c.value || d.value));
21515
21526
  i0(() => ({
21516
21527
  isUv: c.value,
@@ -21518,18 +21529,18 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21518
21529
  isCyd: d.value
21519
21530
  }));
21520
21531
  const h = i0(() => (r == null ? void 0 : r.value) === "cpt"), c = i0(() => (r == null ? void 0 : r.value) === "uv"), d = i0(() => (r == null ? void 0 : r.value) === "cyd"), u = i0(() => (r == null ? void 0 : r.value) === "txt"), f = i0(() => {
21521
- var H, P, I, _, R, Y;
21522
- return ((P = (H = i.blobUrl) == null ? void 0 : H.toUpperCase()) == null ? void 0 : P.includes(".OBJ")) || ((_ = (I = i.blobUrl) == null ? void 0 : I.toUpperCase()) == null ? void 0 : _.includes(".STL")) || ((Y = (R = i.blobUrl) == null ? void 0 : R.toUpperCase()) == null ? void 0 : Y.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
21532
+ var L, z, H, _, R, Y;
21533
+ return ((z = (L = i.blobUrl) == null ? void 0 : L.toUpperCase()) == null ? void 0 : z.includes(".OBJ")) || ((_ = (H = i.blobUrl) == null ? void 0 : H.toUpperCase()) == null ? void 0 : _.includes(".STL")) || ((Y = (R = i.blobUrl) == null ? void 0 : R.toUpperCase()) == null ? void 0 : Y.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
21523
21534
  }), p = i0(() => (r == null ? void 0 : r.value) === "ls"), g = i0(() => {
21524
- var H, P;
21525
- return ((P = (H = i.blobUrl) == null ? void 0 : H.toUpperCase()) == null ? void 0 : P.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
21526
- }), v = i0(() => g.value), w = i0(() => (r == null ? void 0 : r.value) === "docx"), y = i0(() => (r == null ? void 0 : r.value) === "csv"), M = i0(() => (r == null ? void 0 : r.value) === "xlsx"), k = i0(() => (r == null ? void 0 : r.value) === "pdf"), O = i0(() => {
21527
- const H = r == null ? void 0 : r.value;
21528
- return H === "jpg" || H === "png";
21529
- }), x = i0(() => (r == null ? void 0 : r.value) === "pptx"), S = i0(() => (r == null ? void 0 : r.value) === "mp4"), E = i0(() => !u && !p && !v && !w && !M && !k && !O && !x);
21535
+ var L, z;
21536
+ return ((z = (L = i.blobUrl) == null ? void 0 : L.toUpperCase()) == null ? void 0 : z.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
21537
+ }), v = i0(() => g.value), w = i0(() => (r == null ? void 0 : r.value) === "docx"), y = i0(() => (r == null ? void 0 : r.value) === "csv"), D = i0(() => (r == null ? void 0 : r.value) === "xlsx"), k = i0(() => (r == null ? void 0 : r.value) === "pdf"), O = i0(() => {
21538
+ const L = r == null ? void 0 : r.value;
21539
+ return L === "jpg" || L === "png";
21540
+ }), x = i0(() => (r == null ? void 0 : r.value) === "pptx"), S = i0(() => (r == null ? void 0 : r.value) === "mp4"), E = i0(() => !u && !p && !v && !w && !D && !k && !O && !x);
21530
21541
  return c1(() => {
21531
21542
  t("destroy");
21532
- }), (H, P) => (b(), A("div", f_, [
21543
+ }), (L, z) => (b(), A("div", f_, [
21533
21544
  a.value ? (b(), A("div", p_, [
21534
21545
  Q(X3, {
21535
21546
  "file-urls": l.value,
@@ -21552,7 +21563,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21552
21563
  }, null, 8, ["fileName", "blobUrl"])
21553
21564
  ])) : t0("", !0),
21554
21565
  f.value ? (b(), A("div", m_, [
21555
- (b(), $(X3, {
21566
+ (b(), j(X3, {
21556
21567
  "file-urls": l.value,
21557
21568
  isThreeScene: !1,
21558
21569
  key: i == null ? void 0 : i.fullScreen,
@@ -21560,14 +21571,14 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21560
21571
  }, null, 8, ["file-urls", "extension"]))
21561
21572
  ])) : t0("", !0),
21562
21573
  g.value ? (b(), A("div", v_, [
21563
- (b(), $(X3, {
21574
+ (b(), j(X3, {
21564
21575
  "file-urls": l.value,
21565
21576
  isThreeScene: !0,
21566
21577
  key: i == null ? void 0 : i.fullScreen,
21567
21578
  extension: r.value
21568
21579
  }, null, 8, ["file-urls", "extension"]))
21569
21580
  ])) : t0("", !0),
21570
- M.value ? (b(), A("div", w_, [
21581
+ D.value ? (b(), A("div", w_, [
21571
21582
  Q(wf, {
21572
21583
  fileName: o.value,
21573
21584
  blobUrl: s.value
@@ -21602,13 +21613,13 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21602
21613
  fileName: o.value,
21603
21614
  blobUrl: s.value
21604
21615
  }, null, 8, ["fileName", "blobUrl"])
21605
- ])) : !w.value && !M.value && !k.value && !g.value && !O.value && !x.value && !f.value && !S.value && !a.value && !y.value ? (b(), A("div", C_, [
21616
+ ])) : !w.value && !D.value && !k.value && !g.value && !O.value && !x.value && !f.value && !S.value && !a.value && !y.value ? (b(), A("div", C_, [
21606
21617
  Q(i_, {
21607
21618
  fileName: o.value,
21608
21619
  blobUrl: s.value
21609
21620
  }, null, 8, ["fileName", "blobUrl"])
21610
21621
  ])) : t0("", !0),
21611
- E.value ? (b(), A("div", k_, P[0] || (P[0] = [
21622
+ E.value ? (b(), A("div", k_, z[0] || (z[0] = [
21612
21623
  o0("div", null, "当前文件格式暂不支持预览", -1)
21613
21624
  ]))) : t0("", !0)
21614
21625
  ]));
@@ -21690,14 +21701,14 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21690
21701
  }));
21691
21702
  }), (p, g) => {
21692
21703
  const v = X("el-icon");
21693
- return b(), $(Dn, {
21704
+ return b(), j(Dn, {
21694
21705
  class: "file-preview-dialog",
21695
21706
  visible: s.value,
21696
21707
  onBeforeDestroy: f,
21697
21708
  showClose: !1,
21698
21709
  fullScreen: c.value
21699
21710
  }, {
21700
- header: L(() => [
21711
+ header: I(() => [
21701
21712
  o0("div", z_, [
21702
21713
  o0("div", {
21703
21714
  class: "header-left",
@@ -21705,19 +21716,19 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21705
21716
  }, j0(a.value), 9, P_),
21706
21717
  o0("div", A_, [
21707
21718
  Q(v, null, {
21708
- default: L(() => [
21719
+ default: I(() => [
21709
21720
  Q(it(s8), { onClick: h })
21710
21721
  ]),
21711
21722
  _: 1
21712
21723
  }),
21713
21724
  Q(v, null, {
21714
- default: L(() => [
21725
+ default: I(() => [
21715
21726
  Q(it(o8), { onClick: d })
21716
21727
  ]),
21717
21728
  _: 1
21718
21729
  }),
21719
21730
  Q(v, null, {
21720
- default: L(() => [
21731
+ default: I(() => [
21721
21732
  Q(it(l8), { onClick: u })
21722
21733
  ]),
21723
21734
  _: 1
@@ -21725,12 +21736,12 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21725
21736
  ])
21726
21737
  ])
21727
21738
  ]),
21728
- default: L(() => {
21739
+ default: I(() => {
21729
21740
  var w;
21730
21741
  return [
21731
21742
  o0("div", V_, [
21732
21743
  g[0] || (g[0] = o0("div", { class: "file-preview-header" }, null, -1)),
21733
- (b(), $(Lr, {
21744
+ (b(), j(Lr, {
21734
21745
  class: "file-preview-content",
21735
21746
  fileDataList: o.value,
21736
21747
  key: (w = o.value) == null ? void 0 : w.length,
@@ -21770,7 +21781,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21770
21781
  const a = G(Array.isArray(t.modelValue) ? t.modelValue : []), h = G(!1), c = G(""), d = G(""), u = G(Array.isArray(t.modelValue) ? t.modelValue : []), f = () => {
21771
21782
  h.value = !0, u.value = o.value, a.value = o.value;
21772
21783
  }, p = async (x) => {
21773
- var E, H;
21784
+ var E, L;
21774
21785
  let S;
21775
21786
  if ((E = x == null ? void 0 : x.url) != null && E.includes("http") ? S = await a8.get(x.url, {
21776
21787
  responseType: "blob",
@@ -21778,21 +21789,21 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21778
21789
  "Content-Type": "application/json"
21779
21790
  }
21780
21791
  }) : S = await d8({
21781
- url: (H = Y2(x)) == null ? void 0 : H.url
21792
+ url: (L = Y2(x)) == null ? void 0 : L.url
21782
21793
  }), !x.url.toUpperCase().includes(".OBJ") && !x.url.toUpperCase().includes(".STL") && !x.url.toUpperCase().includes(".MTL") && !x.url.toUpperCase().includes(".URDF")) {
21783
- let P = URL.createObjectURL(S.data);
21784
- d.value = P;
21794
+ let z = URL.createObjectURL(S.data);
21795
+ d.value = z;
21785
21796
  } else
21786
21797
  d.value = x == null ? void 0 : x.url;
21787
21798
  }, g = async (x) => {
21788
- var E, H, P, I, _, R, Y, q, m0;
21799
+ var E, L, z, H, _, R, Y, $, h0;
21789
21800
  if ((x == null ? void 0 : x.oldUrl) || (x == null ? void 0 : x.url)) {
21790
21801
  const y0 = ou.service({
21791
21802
  lock: !0,
21792
21803
  text: "Loading",
21793
21804
  background: "rgba(0, 0, 0, 0.7)"
21794
21805
  });
21795
- c.value = x != null && x.oldUrl ? (P = x == null ? void 0 : x.oldUrl) == null ? void 0 : P.split("/")[((H = (E = x == null ? void 0 : x.oldUrl) == null ? void 0 : E.split("/")) == null ? void 0 : H.length) - 1] : (x == null ? void 0 : x.name) + "." + ((m0 = (_ = (I = Y2(x)) == null ? void 0 : I.url) == null ? void 0 : _.split(".")) == null ? void 0 : m0[((q = (Y = (R = Y2(x)) == null ? void 0 : R.url) == null ? void 0 : Y.split(".")) == null ? void 0 : q.length) - 1]), await p(x).finally(() => {
21806
+ c.value = x != null && x.oldUrl ? (z = x == null ? void 0 : x.oldUrl) == null ? void 0 : z.split("/")[((L = (E = x == null ? void 0 : x.oldUrl) == null ? void 0 : E.split("/")) == null ? void 0 : L.length) - 1] : (x == null ? void 0 : x.name) + "." + ((h0 = (_ = (H = Y2(x)) == null ? void 0 : H.url) == null ? void 0 : _.split(".")) == null ? void 0 : h0[(($ = (Y = (R = Y2(x)) == null ? void 0 : R.url) == null ? void 0 : Y.split(".")) == null ? void 0 : $.length) - 1]), await p(x).finally(() => {
21796
21807
  y0.close();
21797
21808
  });
21798
21809
  } else {
@@ -21808,35 +21819,35 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21808
21819
  l.value = !1;
21809
21820
  }, w = (x) => {
21810
21821
  var S;
21811
- u.value = (S = Y2(u.value)) == null ? void 0 : S.filter((E, H) => H !== x), a.value = u.value;
21822
+ u.value = (S = Y2(u.value)) == null ? void 0 : S.filter((E, L) => L !== x), a.value = u.value;
21812
21823
  }, y = (x) => {
21813
21824
  var _;
21814
- const S = x.split(","), E = (_ = S == null ? void 0 : S[0]) == null ? void 0 : _.match(/:(.*?);/)[1], H = atob(S[1]);
21815
- let P = H.length;
21816
- const I = new Uint8Array(P);
21817
- for (; P--; )
21818
- I[P] = H.charCodeAt(P);
21819
- return new Blob([I], { type: E });
21820
- }, M = async () => {
21821
- var H;
21825
+ const S = x.split(","), E = (_ = S == null ? void 0 : S[0]) == null ? void 0 : _.match(/:(.*?);/)[1], L = atob(S[1]);
21826
+ let z = L.length;
21827
+ const H = new Uint8Array(z);
21828
+ for (; z--; )
21829
+ H[z] = L.charCodeAt(z);
21830
+ return new Blob([H], { type: E });
21831
+ }, D = async () => {
21832
+ var L;
21822
21833
  s.value = !0;
21823
- const x = (H = a.value) == null ? void 0 : H.map(async (P) => {
21824
- if (P != null && P.base64) {
21825
- const I = new FormData(), _ = y(P == null ? void 0 : P.base64);
21826
- return I.append("file", _, P == null ? void 0 : P.name), await Di(I);
21827
- } else if (P != null && P.raw) {
21828
- const I = new FormData();
21829
- return I.append("file", P == null ? void 0 : P.raw, P == null ? void 0 : P.name), await Di(I);
21834
+ const x = (L = a.value) == null ? void 0 : L.map(async (z) => {
21835
+ if (z != null && z.base64) {
21836
+ const H = new FormData(), _ = y(z == null ? void 0 : z.base64);
21837
+ return H.append("file", _, z == null ? void 0 : z.name), await Di(H);
21838
+ } else if (z != null && z.raw) {
21839
+ const H = new FormData();
21840
+ return H.append("file", z == null ? void 0 : z.raw, z == null ? void 0 : z.name), await Di(H);
21830
21841
  } else
21831
- return P;
21842
+ return z;
21832
21843
  }), S = await Promise.all(x);
21833
21844
  let E = [];
21834
- S == null || S.map((P) => {
21835
- var I, _, R, Y, q, m0;
21845
+ S == null || S.map((z) => {
21846
+ var H, _, R, Y, $, h0;
21836
21847
  return E.push({
21837
- name: ((_ = (I = P == null ? void 0 : P.data) == null ? void 0 : I.result) == null ? void 0 : _.fileName) ?? (P == null ? void 0 : P.name),
21838
- url: ((Y = (R = P == null ? void 0 : P.data) == null ? void 0 : R.result) == null ? void 0 : Y.url) ?? (P == null ? void 0 : P.url)
21839
- }), (m0 = (q = P == null ? void 0 : P.data) == null ? void 0 : q.result) == null ? void 0 : m0.url;
21848
+ name: ((_ = (H = z == null ? void 0 : z.data) == null ? void 0 : H.result) == null ? void 0 : _.fileName) ?? (z == null ? void 0 : z.name),
21849
+ url: ((Y = (R = z == null ? void 0 : z.data) == null ? void 0 : R.result) == null ? void 0 : Y.url) ?? (z == null ? void 0 : z.url)
21850
+ }), (h0 = ($ = z == null ? void 0 : z.data) == null ? void 0 : $.result) == null ? void 0 : h0.url;
21840
21851
  }), E3.success("上传成功"), o.value = E, i("update:modelValue", E), i("change", E), a.value = [], h.value = !1, s.value = !1;
21841
21852
  }, k = () => {
21842
21853
  h.value = !1, a.value = o.value, u.value = o.value;
@@ -21844,13 +21855,13 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21844
21855
  if (!x) return;
21845
21856
  const S = new FileReader();
21846
21857
  S.onload = (E) => {
21847
- const H = a.value === "" ? [] : a.value;
21848
- H.push({
21858
+ const L = a.value === "" ? [] : a.value;
21859
+ L.push({
21849
21860
  name: x.name,
21850
21861
  size: x.size,
21851
21862
  type: x.type,
21852
21863
  base64: E.target.result
21853
- }), a.value = H;
21864
+ }), a.value = L;
21854
21865
  }, S.onerror = (E) => {
21855
21866
  console.error("文件读取错误:", E), fileData.value = {
21856
21867
  name: "",
@@ -21861,7 +21872,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21861
21872
  }, S.readAsDataURL(x.raw);
21862
21873
  };
21863
21874
  return (x, S) => {
21864
- const E = X("svg-icon"), H = X("el-icon"), P = X("el-upload"), I = Yr("loading");
21875
+ const E = X("svg-icon"), L = X("el-icon"), z = X("el-upload"), H = Yr("loading");
21865
21876
  return t != null && t.isEdit ? (b(), A("div", B_, [
21866
21877
  Q(ne, {
21867
21878
  type: "primary",
@@ -21871,7 +21882,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21871
21882
  }),
21872
21883
  o0("div", L_, [
21873
21884
  (b(!0), A(_0, null, C0(o.value, (_) => {
21874
- var R, Y, q, m0;
21885
+ var R, Y, $, h0;
21875
21886
  return b(), A("div", {
21876
21887
  class: "upload-content-title",
21877
21888
  key: _,
@@ -21880,7 +21891,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21880
21891
  o0("div", {
21881
21892
  style: { width: "90%", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
21882
21893
  title: _ == null ? void 0 : _.name
21883
- }, j0((Y = (R = _ == null ? void 0 : _.url) == null ? void 0 : R.split(".")) != null && Y[1] ? (_ == null ? void 0 : _.name) + "." + ((m0 = (q = _ == null ? void 0 : _.url) == null ? void 0 : q.split(".")) == null ? void 0 : m0[1]) : _ == null ? void 0 : _.name), 9, H_),
21894
+ }, j0((Y = (R = _ == null ? void 0 : _.url) == null ? void 0 : R.split(".")) != null && Y[1] ? (_ == null ? void 0 : _.name) + "." + ((h0 = ($ = _ == null ? void 0 : _.url) == null ? void 0 : $.split(".")) == null ? void 0 : h0[1]) : _ == null ? void 0 : _.name), 9, H_),
21884
21895
  o0("div", I_, [
21885
21896
  Q(E, {
21886
21897
  class: "icon-blue",
@@ -21897,9 +21908,9 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21897
21908
  onBeforeDestroy: k,
21898
21909
  title: "上传文件"
21899
21910
  }, {
21900
- default: L(() => [
21911
+ default: I(() => [
21901
21912
  ht((b(), A("div", null, [
21902
- Q(P, {
21913
+ Q(z, {
21903
21914
  "file-list": u.value,
21904
21915
  "onUpdate:fileList": S[0] || (S[0] = (_) => u.value = _),
21905
21916
  multiple: "",
@@ -21910,12 +21921,12 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21910
21921
  "on-change": O,
21911
21922
  class: "upload-content"
21912
21923
  }, {
21913
- tip: L(() => S[1] || (S[1] = [
21924
+ tip: I(() => S[1] || (S[1] = [
21914
21925
  o0("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
21915
21926
  ])),
21916
- default: L(() => [
21917
- Q(H, { class: "el-icon--upload" }, {
21918
- default: L(() => [
21927
+ default: I(() => [
21928
+ Q(L, { class: "el-icon--upload" }, {
21929
+ default: I(() => [
21919
21930
  Q(it(r8))
21920
21931
  ]),
21921
21932
  _: 1
@@ -21925,11 +21936,11 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21925
21936
  o0("em", null, "点击上传")
21926
21937
  ], -1))
21927
21938
  ]),
21928
- file: L(({ file: _, index: R }) => {
21929
- var Y, q, m0, y0;
21939
+ file: I(({ file: _, index: R }) => {
21940
+ var Y, $, h0, y0;
21930
21941
  return [
21931
21942
  o0("div", R_, [
21932
- o0("div", N_, j0((q = (Y = _ == null ? void 0 : _.url) == null ? void 0 : Y.split(".")) != null && q[1] ? (_ == null ? void 0 : _.name) + "." + ((y0 = (m0 = _ == null ? void 0 : _.url) == null ? void 0 : m0.split(".")) == null ? void 0 : y0[1]) : _ == null ? void 0 : _.name), 1),
21943
+ o0("div", N_, j0(($ = (Y = _ == null ? void 0 : _.url) == null ? void 0 : Y.split(".")) != null && $[1] ? (_ == null ? void 0 : _.name) + "." + ((y0 = (h0 = _ == null ? void 0 : _.url) == null ? void 0 : h0.split(".")) == null ? void 0 : y0[1]) : _ == null ? void 0 : _.name), 1),
21933
21944
  o0("div", G_, [
21934
21945
  Q(E, {
21935
21946
  class: "icon-blue",
@@ -21950,10 +21961,10 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21950
21961
  _: 1
21951
21962
  }, 8, ["file-list"])
21952
21963
  ])), [
21953
- [I, s.value]
21964
+ [H, s.value]
21954
21965
  ])
21955
21966
  ]),
21956
- footer: L(() => [
21967
+ footer: I(() => [
21957
21968
  o0("div", $_, [
21958
21969
  Q(ne, {
21959
21970
  onClickTrigger: k,
@@ -21963,7 +21974,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21963
21974
  }, null, 8, ["disabled"]),
21964
21975
  Q(ne, {
21965
21976
  type: "primary",
21966
- onClickTrigger: M,
21977
+ onClickTrigger: D,
21967
21978
  id: "themeButton",
21968
21979
  disabled: s.value,
21969
21980
  modelValue: "确认"
@@ -21972,7 +21983,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21972
21983
  ]),
21973
21984
  _: 1
21974
21985
  }, 8, ["visible"]),
21975
- l.value ? (b(), $(Hr, {
21986
+ l.value ? (b(), j(Hr, {
21976
21987
  key: 0,
21977
21988
  fileDataList: r.value,
21978
21989
  onDestroy: v
@@ -21991,7 +22002,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21991
22002
  emits: ["update:modelValue", "change"],
21992
22003
  setup(n, { emit: e }) {
21993
22004
  const t = n, i = i0(() => "http://222.92.178.198:62001"), s = e, o = async (h) => {
21994
- var g, v, w, y, M;
22005
+ var g, v, w, y, D;
21995
22006
  const { file: c, onSuccess: d, onError: u } = h, f = new FormData();
21996
22007
  f.append("file", c);
21997
22008
  const p = await Di(f);
@@ -21999,7 +22010,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
21999
22010
  name: c == null ? void 0 : c.name,
22000
22011
  uid: c == null ? void 0 : c.uid,
22001
22012
  id: (w = (v = p == null ? void 0 : p.data) == null ? void 0 : v.result) == null ? void 0 : w.id,
22002
- url: (M = (y = p == null ? void 0 : p.data) == null ? void 0 : y.result) == null ? void 0 : M.url
22013
+ url: (D = (y = p == null ? void 0 : p.data) == null ? void 0 : y.result) == null ? void 0 : D.url
22003
22014
  }]);
22004
22015
  }, l = G([]);
22005
22016
  a2(() => t == null ? void 0 : t.modelValue, (h) => {
@@ -22020,7 +22031,7 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
22020
22031
  };
22021
22032
  return (h, c) => {
22022
22033
  const d = X("el-icon"), u = X("el-upload");
22023
- return b(), $(u, {
22034
+ return b(), j(u, {
22024
22035
  class: "upload-demo",
22025
22036
  drag: "",
22026
22037
  action: "#",
@@ -22032,9 +22043,9 @@ const Jb = /* @__PURE__ */ U.inputHandler.of((n, e, t, i, s) => {
22032
22043
  "on-progress": a,
22033
22044
  "on-remove": r
22034
22045
  }, {
22035
- default: L(() => [
22046
+ default: I(() => [
22036
22047
  Q(d, null, {
22037
- default: L(() => [
22048
+ default: I(() => [
22038
22049
  Q(it(c8))
22039
22050
  ]),
22040
22051
  _: 1
@@ -22446,8 +22457,8 @@ var J_ = /* @__PURE__ */ d2({
22446
22457
  function l() {
22447
22458
  const x = s.value, S = t.signaturePad.toData(), E = Math.max(window.devicePixelRatio || 1, 1);
22448
22459
  x.width = x.offsetWidth * E, x.height = x.offsetHeight * E;
22449
- const H = x.getContext("2d");
22450
- H && H.scale(E, E), t.signaturePad.clear(), t.signatureData = O4, t.signaturePad.fromData(S);
22460
+ const L = x.getContext("2d");
22461
+ L && L.scale(E, E), t.signaturePad.clear(), t.signatureData = O4, t.signaturePad.fromData(S);
22451
22462
  }
22452
22463
  function r(x = n.saveType, S) {
22453
22464
  if (t.signaturePad.isEmpty()) {
@@ -22516,7 +22527,7 @@ var J_ = /* @__PURE__ */ d2({
22516
22527
  function y() {
22517
22528
  return t.signaturePad.isEmpty();
22518
22529
  }
22519
- function M() {
22530
+ function D() {
22520
22531
  return o.value;
22521
22532
  }
22522
22533
  function k() {
@@ -22552,7 +22563,7 @@ var J_ = /* @__PURE__ */ d2({
22552
22563
  lockSignaturePad: v,
22553
22564
  openSignaturePad: w,
22554
22565
  isEmpty: y,
22555
- getPropImagesAndCacheImages: M,
22566
+ getPropImagesAndCacheImages: D,
22556
22567
  clearCacheImages: k,
22557
22568
  clearSignature: O
22558
22569
  };
@@ -22637,9 +22648,9 @@ const ey = { class: "signature-wrap" }, ty = { class: "signature-types" }, iy =
22637
22648
  const d = X("el-input-number"), u = X("el-color-picker"), f = X("el-button");
22638
22649
  return b(), A(_0, null, [
22639
22650
  o0("div", ey, [
22640
- u0(h.$slots, "signatureRender", {}, void 0, !0),
22651
+ f0(h.$slots, "signatureRender", {}, void 0, !0),
22641
22652
  o0("div", ty, [
22642
- u0(h.$slots, "signatureTypes", {}, void 0, !0)
22653
+ f0(h.$slots, "signatureTypes", {}, void 0, !0)
22643
22654
  ])
22644
22655
  ]),
22645
22656
  Q(Dn, {
@@ -22649,7 +22660,7 @@ const ey = { class: "signature-wrap" }, ty = { class: "signature-types" }, iy =
22649
22660
  visible: (v = n.signPadInfo) == null ? void 0 : v.dialogShow,
22650
22661
  onBeforeDestroy: l
22651
22662
  }, {
22652
- default: L(() => [
22663
+ default: I(() => [
22653
22664
  o0("div", iy, [
22654
22665
  Q(it(Z_), {
22655
22666
  ref_key: "signaturePadRef",
@@ -22680,9 +22691,9 @@ const ey = { class: "signature-wrap" }, ty = { class: "signature-types" }, iy =
22680
22691
  ])
22681
22692
  ])
22682
22693
  ]),
22683
- footer: L(() => [
22694
+ footer: I(() => [
22684
22695
  Q(f, { onClick: l }, {
22685
- default: L(() => c[4] || (c[4] = [
22696
+ default: I(() => c[4] || (c[4] = [
22686
22697
  B2("取消")
22687
22698
  ])),
22688
22699
  _: 1,
@@ -22692,7 +22703,7 @@ const ey = { class: "signature-wrap" }, ty = { class: "signature-types" }, iy =
22692
22703
  type: "primary",
22693
22704
  onClick: r
22694
22705
  }, {
22695
- default: L(() => c[5] || (c[5] = [
22706
+ default: I(() => c[5] || (c[5] = [
22696
22707
  B2("确认")
22697
22708
  ])),
22698
22709
  _: 1,
@@ -22713,18 +22724,18 @@ const ey = { class: "signature-wrap" }, ty = { class: "signature-types" }, iy =
22713
22724
  };
22714
22725
  return (i, s) => {
22715
22726
  const o = X("el-dropdown-menu"), l = X("el-dropdown");
22716
- return b(), $(l, { onVisibleChange: t }, {
22717
- dropdown: L(() => [
22727
+ return b(), j(l, { onVisibleChange: t }, {
22728
+ dropdown: I(() => [
22718
22729
  Q(o, null, {
22719
- default: L(() => [
22720
- u0(i.$slots, "dropMenu")
22730
+ default: I(() => [
22731
+ f0(i.$slots, "dropMenu")
22721
22732
  ]),
22722
22733
  _: 3
22723
22734
  })
22724
22735
  ]),
22725
- default: L(() => [
22736
+ default: I(() => [
22726
22737
  o0("div", null, [
22727
- u0(i.$slots, "dropTitle")
22738
+ f0(i.$slots, "dropTitle")
22728
22739
  ])
22729
22740
  ]),
22730
22741
  _: 3
@@ -22815,17 +22826,17 @@ const ey = { class: "signature-wrap" }, ty = { class: "signature-types" }, iy =
22815
22826
  const p = /{\\pict[\s\S]+?({\\\*\\blipuid\s?[\da-fA-F]+)[\s}]*/, g = new RegExp("(?:(" + p.source + "))([\\da-fA-F\\s]+)\\}", "g"), v = f.match(g), w = [];
22816
22827
  if (v)
22817
22828
  for (const y of v) {
22818
- let M = !1;
22819
- y.includes("\\pngblip") ? M = "image/png" : y.includes("\\jpegblip") && (M = "image/jpeg"), M && w.push({
22829
+ let D = !1;
22830
+ y.includes("\\pngblip") ? D = "image/png" : y.includes("\\jpegblip") && (D = "image/jpeg"), D && w.push({
22820
22831
  hex: y.replace(p, "").replace(/[^\da-fA-F]/g, ""),
22821
- type: M
22832
+ type: D
22822
22833
  });
22823
22834
  }
22824
22835
  return w;
22825
22836
  }, c = (f) => btoa(f.match(/\w{2}/g).map((p) => String.fromCharCode(parseInt(p, 16))).join("")), d = (f, p = "file") => {
22826
- let g = f.split(","), v = g[0].match(/:(.*?);/)[1], w = v.split("/")[1], y = atob(g[1]), M = y.length, k = new Uint8Array(M);
22827
- for (; M--; )
22828
- k[M] = y.charCodeAt(M);
22837
+ let g = f.split(","), v = g[0].match(/:(.*?);/)[1], w = v.split("/")[1], y = atob(g[1]), D = y.length, k = new Uint8Array(D);
22838
+ for (; D--; )
22839
+ k[D] = y.charCodeAt(D);
22829
22840
  return new File([k], `${p}.${w}`, {
22830
22841
  type: v
22831
22842
  });
@@ -22883,7 +22894,7 @@ const ey = { class: "signature-wrap" }, ty = { class: "signature-types" }, iy =
22883
22894
  const e = n;
22884
22895
  return (t, i) => {
22885
22896
  const s = X("el-image");
22886
- return b(), $(s, {
22897
+ return b(), j(s, {
22887
22898
  style: { width: "100px", height: "100px" },
22888
22899
  src: e == null ? void 0 : e.modelValue,
22889
22900
  fit: "contain",
@@ -22961,18 +22972,18 @@ const uy = ["onDblclick"], fy = {
22961
22972
  { deep: !0, immediate: !0 }
22962
22973
  ), (c, d) => {
22963
22974
  const u = X("el-tab-pane"), f = X("el-tabs");
22964
- return b(), $(f, {
22975
+ return b(), j(f, {
22965
22976
  type: "card",
22966
22977
  modelValue: o.value,
22967
22978
  "onUpdate:modelValue": d[0] || (d[0] = (p) => o.value = p),
22968
22979
  "tab-position": t == null ? void 0 : t.tabPosition
22969
22980
  }, {
22970
- default: L(() => [
22971
- (b(!0), A(_0, null, C0(s.value, (p, g) => (b(), $(u, {
22981
+ default: I(() => [
22982
+ (b(!0), A(_0, null, C0(s.value, (p, g) => (b(), j(u, {
22972
22983
  key: g,
22973
22984
  name: p == null ? void 0 : p.value
22974
22985
  }, {
22975
- label: L(() => {
22986
+ label: I(() => {
22976
22987
  var v;
22977
22988
  return [
22978
22989
  p != null && p.label ? (b(), A("div", {
@@ -22984,24 +22995,24 @@ const uy = ["onDblclick"], fy = {
22984
22995
  key: y,
22985
22996
  class: "tabs-children"
22986
22997
  }, [
22987
- w != null && w.value || (w == null ? void 0 : w.value) === "" ? (b(), $(Wt(l(w == null ? void 0 : w.type)), {
22998
+ w != null && w.value || (w == null ? void 0 : w.value) === "" ? (b(), j(Wt(l(w == null ? void 0 : w.type)), {
22988
22999
  key: 0,
22989
23000
  modelValue: w.value,
22990
- "onUpdate:modelValue": (M) => w.value = M,
23001
+ "onUpdate:modelValue": (D) => w.value = D,
22991
23002
  content: (w == null ? void 0 : w.contents) ?? []
22992
23003
  }, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : t0("", !0)
22993
23004
  ]))), 128))
22994
23005
  ])) : t0("", !0),
22995
- u0(c.$slots, `${(p == null ? void 0 : p.value) ?? ""}_header`, {}, void 0, !0)
23006
+ f0(c.$slots, `${(p == null ? void 0 : p.value) ?? ""}_header`, {}, void 0, !0)
22996
23007
  ];
22997
23008
  }),
22998
- default: L(() => [
23009
+ default: I(() => [
22999
23010
  (b(!0), A(_0, null, C0(p == null ? void 0 : p.children, (v, w) => (b(), A("div", {
23000
23011
  key: w,
23001
23012
  class: "tabs-contents"
23002
23013
  }, [
23003
- u0(c.$slots, `${(v == null ? void 0 : v.value) ?? ""}_operateButtons`, {}, void 0, !0),
23004
- v != null && v.value || (v == null ? void 0 : v.value) === "" ? (b(), $(Wt(l(v == null ? void 0 : v.type)), {
23014
+ f0(c.$slots, `${(v == null ? void 0 : v.value) ?? ""}_operateButtons`, {}, void 0, !0),
23015
+ v != null && v.value || (v == null ? void 0 : v.value) === "" ? (b(), j(Wt(l(v == null ? void 0 : v.type)), {
23005
23016
  key: 0,
23006
23017
  modelValue: v.value,
23007
23018
  "onUpdate:modelValue": (y) => v.value = y,
@@ -23011,8 +23022,8 @@ const uy = ["onDblclick"], fy = {
23011
23022
  }, L2({ _: 2 }, [
23012
23023
  name ? {
23013
23024
  name,
23014
- fn: L((y) => [
23015
- u0(c.$slots, name, a1({ ref_for: !0 }, y || {}), void 0, !0)
23025
+ fn: I((y) => [
23026
+ f0(c.$slots, name, a1({ ref_for: !0 }, y || {}), void 0, !0)
23016
23027
  ]),
23017
23028
  key: "0"
23018
23029
  } : void 0