ss-component-new 1.3.407 → 1.3.409

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 (69) hide show
  1. package/dist/{MTLLoader-B0vEDLTb.cjs → MTLLoader-DNRpACBk.cjs} +1 -1
  2. package/dist/{MTLLoader-OOczUyeD.js → MTLLoader-h7E5XE68.js} +1 -1
  3. package/dist/{OrbitControls-BvaUWlJW.js → OrbitControls-BvtHysy8.js} +1 -1
  4. package/dist/{OrbitControls-DL4zlshS.cjs → OrbitControls-khnf7WST.cjs} +1 -1
  5. package/dist/{URDFLoader-g-0sln-a.cjs → URDFLoader-CRfWshaH.cjs} +1 -1
  6. package/dist/{URDFLoader-CNBPgS8q.js → URDFLoader-X2G1XdU6.js} +2 -2
  7. package/dist/{animationData-bdV-uefb.js → animationData-C9ZfpDJ6.js} +1 -1
  8. package/dist/{animationData-CERKhN5Q.cjs → animationData-DJWHLaMN.cjs} +1 -1
  9. package/dist/{array-q4Ja5XJL.cjs → array-B6umvCxZ.cjs} +1 -1
  10. package/dist/{array-DDe0KTs8.js → array-Bb2dOJbR.js} +2 -2
  11. package/dist/{iconfont-CulYgJft.cjs → iconfont-B2EK8Z6K.cjs} +1 -1
  12. package/dist/{iconfont-Bz3uoevq.js → iconfont-CMyqVr84.js} +2 -2
  13. package/dist/{index-BxYAWHue.cjs → index-B9F0Urrn.cjs} +1 -1
  14. package/dist/{index-BXSeYE-F.js → index-BC8Bm-mV.js} +1 -1
  15. package/dist/{index-CWJNRG1q.js → index-BDiybNFF.js} +4 -4
  16. package/dist/{index-DZM5aHlD.cjs → index-BDrm_57d.cjs} +1 -1
  17. package/dist/{index-BRyEcXsJ.cjs → index-BKcGqS2K.cjs} +1 -1
  18. package/dist/{index-DR-QE8pc.js → index-BOtlxF9O.js} +1 -1
  19. package/dist/{index-CIQN2Xpz.js → index-BQuKeSPB.js} +1 -1
  20. package/dist/{index-BHGwl4nZ.js → index-BdmyJI_x.js} +2 -2
  21. package/dist/{index-CGv3GaG4.js → index-BylC9YoM.js} +3 -3
  22. package/dist/{index-C07ewmJx.cjs → index-C1SVK9wn.cjs} +1 -1
  23. package/dist/{index-_mrM_SRr.js → index-CQYLR8_m.js} +2 -2
  24. package/dist/{index-BEraLBdd.cjs → index-CYxYlQS5.cjs} +1 -1
  25. package/dist/{index-BQDHAt6x.cjs → index-Cbe7vlim.cjs} +1 -1
  26. package/dist/{index-D3uB3K0x.cjs → index-ClxeNOd2.cjs} +1 -1
  27. package/dist/{index-CwEMshjn.cjs → index-D2dXKfmG.cjs} +1 -1
  28. package/dist/{index-DWEHRtS9.js → index-DTQTebVI.js} +687 -693
  29. package/dist/{index-D6UtT_Di.js → index-DTqGjl2S.js} +5474 -5474
  30. package/dist/{index-CLHSXBuQ.js → index-DgrfgLC6.js} +1 -1
  31. package/dist/{index-DU7EwCiS.js → index-Dh-84yey.js} +3 -3
  32. package/dist/{index-eVWfFfR0.cjs → index-Dm2N4Vf4.cjs} +1 -1
  33. package/dist/{index-F50xEFph.js → index-DmVHcBom.js} +1 -1
  34. package/dist/{index-Bg_qW-pV.cjs → index-DnvliHsl.cjs} +1 -1
  35. package/dist/{index-v-pIXHsE.js → index-S-IhYX7W.js} +1 -1
  36. package/dist/{index-5XbE34_8.js → index-VhZr_1Tu.js} +1 -1
  37. package/dist/{index-BtcXEdYY.cjs → index-Z17IDEu6.cjs} +10 -10
  38. package/dist/{index-DLxnn-2y.cjs → index-e8xW0Z71.cjs} +1 -1
  39. package/dist/{index-ClFSN031.cjs → index-jNoR6Asf.cjs} +9 -9
  40. package/dist/index-lHvCuL5r.cjs +2 -0
  41. package/dist/{index-B8SPGrXB.js → index-muqD0eXH.js} +3946 -3886
  42. package/dist/{index-VllNxE1i.cjs → index-pOjpg4hg.cjs} +1 -1
  43. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dsy5DUE-.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CZhofU19.js} +6972 -6974
  44. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CmOw6x4x.cjs} +86 -86
  45. package/dist/{main-CfTFU0gj.cjs → main-BrAb8Oip.cjs} +1 -1
  46. package/dist/{main-D5y0nQlm.js → main-DnTmNfMl.js} +2 -2
  47. package/dist/ss-component.cjs +1 -1
  48. package/dist/ss-component.css +2 -2
  49. package/dist/ss-component.js +8 -8
  50. package/dist/ss-component2.cjs +1 -1
  51. package/dist/ss-component2.js +8 -8
  52. package/dist/{threeModel-DhVeIyIF.js → threeModel-BPqLLEvN.js} +3 -3
  53. package/dist/{threeModel-DMzazYhv.cjs → threeModel-Bzc5i4ZX.cjs} +1 -1
  54. package/dist/{threePreview-BXDV8-_e.js → threePreview-CtlpBQp2.js} +3 -3
  55. package/dist/{threePreview-BtkpVZWF.cjs → threePreview-YTAeLDjm.cjs} +1 -1
  56. package/dist/{threeSceneView-BfaKv8gE.js → threeSceneView-D3HzuHHA.js} +8 -8
  57. package/dist/{threeSceneView-B0I8tvjl.cjs → threeSceneView-DYsNNt9R.cjs} +1 -1
  58. package/dist/{threeSceneViewForCPMPIP-w5eyroV_.cjs → threeSceneViewForCPMPIP-B6t5i-qP.cjs} +1 -1
  59. package/dist/{threeSceneViewForCPMPIP-DYTJk2Gi.js → threeSceneViewForCPMPIP-HQL03g8l.js} +7 -7
  60. package/dist/{threeTrackPathView-DGuaf0yA.js → threeTrackPathView-DJfd2u5c.js} +3 -3
  61. package/dist/{threeTrackPathView-4INoPaB2.cjs → threeTrackPathView-DhqxQjby.cjs} +1 -1
  62. package/dist/{threeViewerHost-BH6ANO6T.cjs → threeViewerHost-B-X1PvV9.cjs} +1 -1
  63. package/dist/{threeViewerHost-Dm3dYo3n.js → threeViewerHost-CJjscpvd.js} +2 -2
  64. package/dist/{urdfTree-DwvCDT5W.js → urdfTree-B8PQLbAY.js} +1 -1
  65. package/dist/{urdfTree-CCddp-qi.cjs → urdfTree-DaXi9dLr.cjs} +1 -1
  66. package/dist/{workpieceTreePanel-CBKSdvmT.cjs → workpieceTreePanel-CSu8xKTh.cjs} +1 -1
  67. package/dist/{workpieceTreePanel-C243M7H1.js → workpieceTreePanel-CahdkilS.js} +4 -4
  68. package/package.json +1 -1
  69. package/dist/index-BdfGPRGA.cjs +0 -2
@@ -1,5 +1,5 @@
1
- import { ref as I, resolveComponent as Q, createBlock as q, openBlock as y, defineComponent as n0, computed as i2, watch as U2, createElementBlock as E, createVNode as t2, withCtx as G, createElementVNode as n2, Fragment as M2, renderList as V2, withModifiers as xe, normalizeClass as et, toDisplayString as I2, createSlots as ye, renderSlot as C2, nextTick as O0, onMounted as ue, createTextVNode as G0, isRef as ur, isReactive as fr, toRaw as pr, createCommentVNode as c2, onBeforeUnmount as I4, normalizeStyle as H0, resolveDynamicComponent as g3, normalizeProps as gr, guardReactiveProps as mr, unref as I0, mergeProps as w1, reactive as F3, inject as r6, withDirectives as i3, vShow as a6, watchEffect as He, onUnmounted as Vt, resolveDirective as vr, h as Ei, toRefs as wr } from "vue";
2
- import { a2 as xr, a3 as br, I as Fs, g as _r, a4 as yr, a5 as Sr, a6 as Cr, a0 as Bi, a7 as kr, a8 as Dr, a9 as Or, aa as Mr, ab as Li, ac as Hi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dsy5DUE-.js";
1
+ import { ref as I, resolveComponent as Q, createBlock as q, openBlock as _, defineComponent as n0, computed as i2, watch as U2, createElementBlock as E, createVNode as t2, withCtx as G, createElementVNode as n2, Fragment as M2, renderList as V2, withModifiers as xe, normalizeClass as et, toDisplayString as I2, createSlots as ye, renderSlot as C2, nextTick as O0, onMounted as ue, createTextVNode as G0, isRef as ur, isReactive as fr, toRaw as pr, createCommentVNode as c2, onBeforeUnmount as I4, normalizeStyle as H0, resolveDynamicComponent as g3, normalizeProps as gr, guardReactiveProps as mr, unref as I0, mergeProps as w1, reactive as F3, inject as r6, withDirectives as i3, vShow as a6, watchEffect as He, onUnmounted as Vt, resolveDirective as vr, h as Ei, toRefs as wr } from "vue";
2
+ import { a2 as xr, a3 as br, I as Fs, g as _r, a4 as yr, a5 as Sr, a6 as Cr, a0 as Bi, a7 as kr, a8 as Dr, a9 as Or, aa as Mr, ab as Li, ac as Hi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CZhofU19.js";
3
3
  import { _ as A2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { S as St } from "./index-BHtNKL1L.js";
5
5
  import { o as qs, q as Ys, E as Pe, p as G6, m as Tr, s as zr, ay as Pr, ap as Vr, aq as Ar, ax as Er, b as Br } from "./request-XJsZ4h2T.js";
@@ -8,8 +8,8 @@ import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
8
8
  import { k as Gi, A as Gr, V as Xs } from "./index-C_qJRxvA.js";
9
9
  /* empty css */
10
10
  import { s as N4 } from "./index-BQ9pPu8K.js";
11
- import { T as Ri, a as Rr } from "./threeViewerHost-Dm3dYo3n.js";
12
- import { A as Nr } from "./index-DR-QE8pc.js";
11
+ import { T as Ri, a as Rr } from "./threeViewerHost-CJjscpvd.js";
12
+ import { A as Nr } from "./index-BOtlxF9O.js";
13
13
  var $r = "[object Date]";
14
14
  function jr(n) {
15
15
  return qs(n) && Ys(n) == $r;
@@ -47,7 +47,7 @@ const Ur = {
47
47
  const e = n, t = I(e.value);
48
48
  return (i, s) => {
49
49
  const o = Q("el-switch");
50
- return y(), q(o, {
50
+ return _(), q(o, {
51
51
  modelValue: t.value,
52
52
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
53
53
  "active-color": "#13ce66",
@@ -121,8 +121,8 @@ const Ur = {
121
121
  const c = () => {
122
122
  i("blurChange"), i("change", o.value);
123
123
  }, d = (m) => {
124
- var O;
125
- const b = m && typeof m == "object" ? ((O = m == null ? void 0 : m.target) == null ? void 0 : O.value) ?? "" : m;
124
+ var D;
125
+ const b = m && typeof m == "object" ? ((D = m == null ? void 0 : m.target) == null ? void 0 : D.value) ?? "" : m;
126
126
  o.value = b, s.value = b, i("input", b), b && t.suggestList && t.suggestList.length > 0 ? (a.value = !0, h.value = -1) : b || (a.value = !1);
127
127
  }, u = (m) => {
128
128
  !a.value || t.suggestList.length === 0 || (m.key === "ArrowDown" ? (m.preventDefault(), h.value = Math.min(h.value + 1, t.suggestList.length - 1), f()) : m.key === "ArrowUp" ? (m.preventDefault(), h.value = Math.max(h.value - 1, -1), f()) : m.key === "Enter" && h.value >= 0 ? (m.preventDefault(), p(t.suggestList[h.value])) : m.key === "Escape" && (a.value = !1, h.value = -1));
@@ -135,9 +135,9 @@ const Ur = {
135
135
  });
136
136
  }, p = (m) => {
137
137
  m && (o.value = m.label, s.value = m.label, a.value = !1, h.value = -1, i("selectSuggest", m), O0(() => {
138
- var b, O;
138
+ var b, D;
139
139
  try {
140
- (O = (b = l.value) == null ? void 0 : b.focus) == null || O.call(b);
140
+ (D = (b = l.value) == null ? void 0 : b.focus) == null || D.call(b);
141
141
  } catch {
142
142
  }
143
143
  }));
@@ -149,8 +149,8 @@ const Ur = {
149
149
  i("focus"), o.value && t.suggestList && t.suggestList.length > 0 && (a.value = !0);
150
150
  };
151
151
  return (m, b) => {
152
- const O = Q("el-input"), C = Q("el-popover");
153
- return Array.isArray(o.value) ? (y(), q(O, {
152
+ const D = Q("el-input"), C = Q("el-popover");
153
+ return Array.isArray(o.value) ? (_(), q(D, {
154
154
  key: 1,
155
155
  modelValue: o.value,
156
156
  "onUpdate:modelValue": b[2] || (b[2] = (k) => o.value = k),
@@ -165,7 +165,7 @@ const Ur = {
165
165
  ]),
166
166
  key: "0"
167
167
  } : void 0
168
- ]), 1032, ["modelValue", "disabled"])) : (y(), E("div", Fr, [
168
+ ]), 1032, ["modelValue", "disabled"])) : (_(), E("div", Fr, [
169
169
  t2(C, {
170
170
  visible: a.value && n.suggestList.length > 0,
171
171
  trigger: "manual",
@@ -175,7 +175,7 @@ const Ur = {
175
175
  "popper-class": "input-suggest-popper"
176
176
  }, {
177
177
  reference: G(() => [
178
- t2(O, {
178
+ t2(D, {
179
179
  modelValue: o.value,
180
180
  "onUpdate:modelValue": b[0] || (b[0] = (k) => o.value = k),
181
181
  disabled: !(t != null && t.isEdit) || (t == null ? void 0 : t.disabled),
@@ -203,7 +203,7 @@ const Ur = {
203
203
  ref_key: "suggestDropdownRef",
204
204
  ref: r
205
205
  }, [
206
- (y(!0), E(M2, null, V2(n.suggestList, (k, x) => (y(), E("div", {
206
+ (_(!0), E(M2, null, V2(n.suggestList, (k, x) => (_(), E("div", {
207
207
  key: x,
208
208
  class: et(["suggest-item", { highlight: x === h.value }]),
209
209
  onMousedown: b[1] || (b[1] = xe(() => {
@@ -1026,7 +1026,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1026
1026
  l.value = Dp();
1027
1027
  }), (c, d) => {
1028
1028
  const u = Q("el-input"), f = Q("el-popover");
1029
- return y(), q(f, {
1029
+ return _(), q(f, {
1030
1030
  width: "400",
1031
1031
  visible: o.value,
1032
1032
  title: "图标",
@@ -1034,7 +1034,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1034
1034
  }, {
1035
1035
  default: G(() => [
1036
1036
  n2("div", Op, [
1037
- (y(!0), E(M2, null, V2(l.value, (p, g) => (y(), E("div", {
1037
+ (_(!0), E(M2, null, V2(l.value, (p, g) => (_(), E("div", {
1038
1038
  key: g,
1039
1039
  class: "icon-wrap",
1040
1040
  onClick: (v) => h(p)
@@ -1081,7 +1081,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1081
1081
  };
1082
1082
  return (o, l) => {
1083
1083
  const r = Q("el-link");
1084
- return y(), q(r, {
1084
+ return _(), q(r, {
1085
1085
  onClick: s,
1086
1086
  type: "primary",
1087
1087
  target: "_self",
@@ -1117,8 +1117,8 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1117
1117
  s.value = d;
1118
1118
  }, { immediate: !0 }), (d, u) => {
1119
1119
  const f = Q("el-tag"), p = Q("el-option"), g = Q("el-select"), v = Q("el-button");
1120
- return y(), E("div", null, [
1121
- (y(!0), E(M2, null, V2(s.value, (m) => (y(), q(f, {
1120
+ return _(), E("div", null, [
1121
+ (_(!0), E(M2, null, V2(s.value, (m) => (_(), q(f, {
1122
1122
  key: m,
1123
1123
  closable: "",
1124
1124
  "disable-transitions": !1,
@@ -1130,7 +1130,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1130
1130
  ]),
1131
1131
  _: 2
1132
1132
  }, 1032, ["onClose"]))), 128)),
1133
- r.value ? (y(), q(g, {
1133
+ r.value ? (_(), q(g, {
1134
1134
  key: 0,
1135
1135
  modelValue: o.value,
1136
1136
  "onUpdate:modelValue": u[0] || (u[0] = (m) => o.value = m),
@@ -1140,14 +1140,14 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1140
1140
  placeholder: "请选择"
1141
1141
  }, {
1142
1142
  default: G(() => [
1143
- (y(!0), E(M2, null, V2(l.value, (m, b) => (y(), q(p, {
1143
+ (_(!0), E(M2, null, V2(l.value, (m, b) => (_(), q(p, {
1144
1144
  key: b,
1145
1145
  label: m == null ? void 0 : m.label,
1146
1146
  value: m == null ? void 0 : m.value
1147
1147
  }, null, 8, ["label", "value"]))), 128))
1148
1148
  ]),
1149
1149
  _: 1
1150
- }, 8, ["modelValue"])) : (y(), q(v, {
1150
+ }, 8, ["modelValue"])) : (_(), q(v, {
1151
1151
  key: 1,
1152
1152
  class: "button-new-tag",
1153
1153
  size: "small",
@@ -1179,7 +1179,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1179
1179
  const e = n, t = I(e.value);
1180
1180
  return (i, s) => {
1181
1181
  const o = Q("el-input");
1182
- return y(), q(o, {
1182
+ return _(), q(o, {
1183
1183
  modelValue: t.value,
1184
1184
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1185
1185
  disabled: !(e != null && e.isEdit),
@@ -1206,7 +1206,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1206
1206
  const t = I(n.value);
1207
1207
  return (i, s) => {
1208
1208
  const o = Q("el-color-picker");
1209
- return y(), q(o, {
1209
+ return _(), q(o, {
1210
1210
  modelValue: t.value,
1211
1211
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1212
1212
  "show-alpha": ""
@@ -1230,7 +1230,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1230
1230
  const t = I(n.value);
1231
1231
  return (i, s) => {
1232
1232
  const o = Q("el-input");
1233
- return y(), q(o, {
1233
+ return _(), q(o, {
1234
1234
  modelValue: t.value,
1235
1235
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1236
1236
  style: { height: "100%" },
@@ -1332,6 +1332,11 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1332
1332
  loading: {
1333
1333
  type: Boolean,
1334
1334
  default: !1
1335
+ },
1336
+ wholeValue: {
1337
+ type: Object,
1338
+ default: () => {
1339
+ }
1335
1340
  }
1336
1341
  },
1337
1342
  emits: ["blurChange", "click", "create", "tagChange", "fixChangeValue", "mouseEnter"],
@@ -1340,76 +1345,76 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1340
1345
  ue(async () => {
1341
1346
  var N;
1342
1347
  r.value = t == null ? void 0 : t.content, a.value = t == null ? void 0 : t.selectedTagList, await O0();
1343
- const A = (N = c.value) == null ? void 0 : N.$el;
1344
- d.value = !!(A != null && A.closest(".el-dialog"));
1348
+ const V = (N = c.value) == null ? void 0 : N.$el;
1349
+ d.value = !!(V != null && V.closest(".el-dialog"));
1345
1350
  });
1346
1351
  const u = () => {
1347
- var A;
1348
- Array.isArray(t == null ? void 0 : t.originalValue) && ((A = t == null ? void 0 : t.originalValue) == null ? void 0 : A.length) > 1 || (l.value = !0);
1352
+ var V;
1353
+ Array.isArray(t == null ? void 0 : t.originalValue) && ((V = t == null ? void 0 : t.originalValue) == null ? void 0 : V.length) > 1 || (l.value = !0);
1349
1354
  }, f = () => {
1350
1355
  i("mouseEnter");
1351
1356
  }, p = () => {
1352
1357
  l.value = !1;
1353
1358
  }, g = () => {
1354
1359
  }, v = () => {
1355
- let A = Ke(r.value);
1356
- A.push({
1360
+ let V = Ke(r.value);
1361
+ V.push({
1357
1362
  label: o.value,
1358
1363
  value: o.value
1359
- }), r.value = A, S.value ? s.value = [o.value] : s.value = o.value, l.value = !1, i("blurChange"), i("fixChangeValue");
1364
+ }), r.value = V, S.value ? s.value = [o.value] : s.value = o.value, l.value = !1, i("blurChange"), i("fixChangeValue");
1360
1365
  }, m = i2(() => {
1361
- const A = [];
1362
- return S.value && A.push("multiple"), A;
1363
- }), b = (A) => {
1366
+ const V = [];
1367
+ return S.value && V.push("multiple"), V;
1368
+ }), b = (V) => {
1364
1369
  var s2;
1365
- const { value: N } = A;
1370
+ const { value: N } = V;
1366
1371
  return Array.isArray(a.value) || (a.value = []), ((s2 = a.value) == null ? void 0 : s2.find((S2) => N == S2)) && S.value ? "active" : "";
1367
- }, O = (A) => {
1372
+ }, D = (V) => {
1368
1373
  let N = Ke(a.value);
1369
1374
  const l2 = /* @__PURE__ */ new Set();
1370
- for (let s2 = 0; s2 < A.length; s2++) {
1371
- const S2 = A[s2];
1375
+ for (let s2 = 0; s2 < V.length; s2++) {
1376
+ const S2 = V[s2];
1372
1377
  l2.add(S2);
1373
1378
  }
1374
1379
  N = N.filter((s2) => l2.has(s2)), Fs(a.value, N) || (a.value = N, i("tagChange", N));
1375
- }, C = (A) => {
1376
- const { value: N } = A, l2 = Ke(a.value), s2 = l2.findIndex((S2) => S2 === N);
1380
+ }, C = (V) => {
1381
+ const { value: N } = V, l2 = Ke(a.value), s2 = l2.findIndex((S2) => S2 === N);
1377
1382
  return s2 >= 0 ? l2.splice(s2, 1) : l2.push(N), l2;
1378
- }, k = (A) => {
1383
+ }, k = (V) => {
1379
1384
  if (!S.value)
1380
1385
  return;
1381
- const N = C(A);
1386
+ const N = C(V);
1382
1387
  a.value = N, i("tagChange", N);
1383
- }, x = (A) => {
1384
- i("blurChange"), S.value && O(A);
1388
+ }, x = (V) => {
1389
+ i("blurChange"), S.value && D(V);
1385
1390
  }, S = i2(() => {
1386
- const A = t.optionUrl;
1387
- return !!(A != null && A.multiple);
1391
+ const V = t.optionUrl;
1392
+ return !!(V != null && V.multiple);
1388
1393
  }), L = i2(() => {
1389
- var A, N, l2;
1390
- return !((A = t.optionUrl) != null && A.multipleLimit) && ((N = t.optionUrl) == null ? void 0 : N.multipleLimit) !== 0 ? 1 : parseInt((l2 = t.optionUrl) == null ? void 0 : l2.multipleLimit);
1391
- }), P = i2(() => {
1392
- var A;
1393
- return (A = r.value) == null ? void 0 : A.filter(
1394
+ var V, N, l2;
1395
+ return !((V = t.optionUrl) != null && V.multipleLimit) && ((N = t.optionUrl) == null ? void 0 : N.multipleLimit) !== 0 ? 1 : parseInt((l2 = t.optionUrl) == null ? void 0 : l2.multipleLimit);
1396
+ }), z = i2(() => {
1397
+ var V;
1398
+ return (V = r.value) == null ? void 0 : V.filter(
1394
1399
  (N, l2, s2) => l2 === s2.findIndex((S2) => S2.value === N.value)
1395
1400
  );
1396
- }), T = (A) => {
1397
- if (!A) return "";
1401
+ }), T = (V) => {
1402
+ if (!V) return "";
1398
1403
  const N = /* @__PURE__ */ new Set(["id", "create_time", "update_time", "sort", "create_user_id", "update_user_id", "department_id", "relatedId"]);
1399
- return Object.keys(A).filter((s2) => !N.has(s2) && A[s2] !== void 0 && A[s2] !== "").map((s2) => `${s2}: ${A[s2]}`).join("<br/>");
1400
- }, j = (A) => {
1404
+ return Object.keys(V).filter((s2) => !N.has(s2) && V[s2] !== void 0 && V[s2] !== "").map((s2) => `${s2}: ${V[s2]}`).join("<br/>");
1405
+ }, j = (V) => {
1401
1406
  var s2, S2, m2, E2;
1402
- if (!(A != null && A.value) || !(((s2 = t.optionUrl) == null ? void 0 : s2.mainKey) && Array.isArray((S2 = t.optionUrl) == null ? void 0 : S2.menus) && t.optionUrl.menus.length > 0) || !((E2 = (m2 = t.optionUrl) == null ? void 0 : m2.words) != null && E2.length)) return "";
1403
- const l2 = h.value.get(A.value);
1407
+ if (!(V != null && V.value) || !(((s2 = t.optionUrl) == null ? void 0 : s2.mainKey) && Array.isArray((S2 = t.optionUrl) == null ? void 0 : S2.menus) && t.optionUrl.menus.length > 0) || !((E2 = (m2 = t.optionUrl) == null ? void 0 : m2.words) != null && E2.length)) return "";
1408
+ const l2 = h.value.get(V.value);
1404
1409
  return l2 !== void 0 ? l2 : "加载中...";
1405
- }, M = async (A) => {
1410
+ }, M = async (V) => {
1406
1411
  var s2, S2, m2, E2, Q2, W2, F2, $;
1407
1412
  if (!((S2 = (s2 = t.optionUrl) == null ? void 0 : s2.menus) != null && S2.length) || !((E2 = (m2 = t.optionUrl) == null ? void 0 : m2.words) != null && E2.length) || !(($ = (Q2 = t.optionUrl) == null ? void 0 : Q2.words) == null ? void 0 : $[((F2 = (W2 = t.optionUrl) == null ? void 0 : W2.words) == null ? void 0 : F2.length) - 1])) return;
1408
1413
  const l2 = new Map(h.value);
1409
- A == null || A.forEach((W) => {
1414
+ V == null || V.forEach((W) => {
1410
1415
  l2.has(W) || l2.set(W, "加载中...");
1411
1416
  }), h.value = l2;
1412
- for (const W of A || []) {
1417
+ for (const W of V || []) {
1413
1418
  if (h.value.get(W) !== "加载中...") continue;
1414
1419
  const y2 = { ...t.optionUrl, value: W };
1415
1420
  try {
@@ -1421,8 +1426,8 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1421
1426
  }
1422
1427
  }
1423
1428
  }, h2 = async () => {
1424
- var A, N, l2, s2, S2, m2, E2, Q2, W2, F2, $, W, y2, d2, R2, J2;
1425
- if (((N = (A = t.optionUrl) == null ? void 0 : A.allSelectionContents) == null ? void 0 : N.length) > 0) {
1429
+ var V, N, l2, s2, S2, m2, E2, Q2, W2, F2, $, W, y2, d2, R2, J2;
1430
+ if (((N = (V = t.optionUrl) == null ? void 0 : V.allSelectionContents) == null ? void 0 : N.length) > 0) {
1426
1431
  let f2 = [], q2 = [], Y2 = (l2 = t.optionUrl) == null ? void 0 : l2.filterContent;
1427
1432
  Array.isArray(Y2) || (Y2 = (S2 = (s2 = Y2 == null ? void 0 : Y2.replaceAll("(", "")) == null ? void 0 : s2.replaceAll(")", "")) == null ? void 0 : S2.split("||")), Y2 == null || Y2.forEach((v2) => {
1428
1433
  var l0, V0, Oe;
@@ -1447,20 +1452,20 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1447
1452
  value: v2
1448
1453
  }));
1449
1454
  } else if (((y2 = (W = t.optionUrl) == null ? void 0 : W.menus) == null ? void 0 : y2.length) > 0) {
1450
- let f2 = await br(t.optionUrl);
1455
+ let f2 = await br(t.optionUrl, t == null ? void 0 : t.wholeValue);
1451
1456
  r.value = [...r.value, ...f2 ?? []], s.value = (R2 = (d2 = r.value) == null ? void 0 : d2[0]) == null ? void 0 : R2.value;
1452
1457
  }
1453
1458
  await M((J2 = r.value) == null ? void 0 : J2.map((f2) => f2 == null ? void 0 : f2.value)), i("click");
1454
1459
  };
1455
- return (A, N) => {
1460
+ return (V, N) => {
1456
1461
  const l2 = Q("el-tooltip"), s2 = Q("el-option"), S2 = Q("el-select");
1457
- return l.value ? l.value ? (y(), q(q3, {
1462
+ return l.value ? l.value ? (_(), q(q3, {
1458
1463
  key: 1,
1459
1464
  modelValue: o.value,
1460
1465
  "onUpdate:modelValue": N[1] || (N[1] = (m2) => o.value = m2),
1461
1466
  onChange: v,
1462
1467
  onBlur: p
1463
- }, null, 8, ["modelValue"])) : c2("", !0) : (y(), q(S2, {
1468
+ }, null, 8, ["modelValue"])) : c2("", !0) : (_(), q(S2, {
1464
1469
  key: 0,
1465
1470
  ref_key: "selectRef",
1466
1471
  ref: c,
@@ -1494,13 +1499,13 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1494
1499
  ], 10, Ip)
1495
1500
  ]),
1496
1501
  default: G(() => [
1497
- (y(!0), E(M2, null, V2(P.value, (m2) => (y(), q(s2, {
1502
+ (_(!0), E(M2, null, V2(z.value, (m2) => (_(), q(s2, {
1498
1503
  key: m2.value,
1499
1504
  label: m2.label,
1500
1505
  value: m2.value
1501
1506
  }, {
1502
1507
  default: G(() => [
1503
- j(m2) ? (y(), q(l2, {
1508
+ j(m2) ? (_(), q(l2, {
1504
1509
  key: 0,
1505
1510
  placement: "right",
1506
1511
  effect: "dark",
@@ -1512,7 +1517,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1512
1517
  n2("span", null, I2(m2.label), 1)
1513
1518
  ]),
1514
1519
  _: 2
1515
- }, 1032, ["content"])) : (y(), E("span", Rp, I2(m2.label), 1))
1520
+ }, 1032, ["content"])) : (_(), E("span", Rp, I2(m2.label), 1))
1516
1521
  ]),
1517
1522
  _: 2
1518
1523
  }, 1032, ["label", "value"]))), 128))
@@ -1521,7 +1526,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1521
1526
  }, 8, ["loading", "class", "modelValue", "multiple", "multiple-limit", "clearable", "placeholder", "disabled", "teleported"]));
1522
1527
  };
1523
1528
  }
1524
- }), $4 = /* @__PURE__ */ A2(Np, [["__scopeId", "data-v-aba934ed"]]), $p = ["loading"], jp = {
1529
+ }), $4 = /* @__PURE__ */ A2(Np, [["__scopeId", "data-v-75dfd00c"]]), $p = ["loading"], jp = {
1525
1530
  key: 1,
1526
1531
  class: "form-operator-wrap"
1527
1532
  }, Wp = { class: "form-content-view" }, Up = {
@@ -1628,7 +1633,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1628
1633
  g.value = !1, W.value = "";
1629
1634
  }
1630
1635
  }
1631
- }, b = I < HTMLInputElement | null > null, O = () => {
1636
+ }, b = I < HTMLInputElement | null > null, D = () => {
1632
1637
  var $;
1633
1638
  ($ = b.value) == null || $.click();
1634
1639
  }, C = i2(() => {
@@ -1648,7 +1653,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1648
1653
  var y2;
1649
1654
  const $ = (y2 = l.value) == null ? void 0 : y2.split("/");
1650
1655
  return ($ == null ? void 0 : $.some((d2) => (d2 == null ? void 0 : d2.includes("updateLoading")) || (d2 == null ? void 0 : d2.includes("loading")))) ? !1 : s.value === "view" && (t == null ? void 0 : t.showOperator);
1651
- }), L = ($) => Di($), P = () => {
1656
+ }), L = ($) => Di($), z = () => {
1652
1657
  r("fixChangeValue");
1653
1658
  }, T = ($) => {
1654
1659
  r("clickTrigger", $);
@@ -1661,7 +1666,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1661
1666
  value: $,
1662
1667
  key: W
1663
1668
  });
1664
- }, A = ($) => {
1669
+ }, V = ($) => {
1665
1670
  r("blurChange", d.value, {
1666
1671
  changeProp: $
1667
1672
  });
@@ -1761,14 +1766,14 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1761
1766
  ), ($, W) => {
1762
1767
  var J2;
1763
1768
  const y2 = Q("el-form-item"), d2 = Q("el-form"), R2 = Q("el-button");
1764
- return y(), E("div", {
1769
+ return _(), E("div", {
1765
1770
  class: "form-content",
1766
1771
  style: H0(C.value)
1767
1772
  }, [
1768
- (t == null ? void 0 : t.backGround) === "Yes" ? (y(), E("div", {
1773
+ (t == null ? void 0 : t.backGround) === "Yes" ? (_(), E("div", {
1769
1774
  key: 0,
1770
1775
  class: "form-backGround-upload",
1771
- onClick: W[0] || (W[0] = xe((f2) => O(), ["stop"]))
1776
+ onClick: W[0] || (W[0] = xe((f2) => D(), ["stop"]))
1772
1777
  }, [
1773
1778
  n2("input", {
1774
1779
  type: "file",
@@ -1784,7 +1789,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1784
1789
  alt: "上传背景"
1785
1790
  }, null, 8, $p)
1786
1791
  ])) : c2("", !0),
1787
- S.value ? (y(), E("div", jp, [
1792
+ S.value ? (_(), E("div", jp, [
1788
1793
  C2($.$slots, "operateCol", {
1789
1794
  renderColumns: n.rowContents,
1790
1795
  formDisabled: n.formDisabled,
@@ -1792,7 +1797,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1792
1797
  }, void 0, !0)
1793
1798
  ])) : c2("", !0),
1794
1799
  n2("div", Wp, [
1795
- (y(), q(d2, {
1800
+ (_(), q(d2, {
1796
1801
  ref_key: "formRef",
1797
1802
  ref: h,
1798
1803
  model: d.value,
@@ -1804,7 +1809,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1804
1809
  default: G(() => {
1805
1810
  var f2, q2, Y2;
1806
1811
  return [
1807
- !((f2 = $.item) != null && f2.isFormColHidden) && !((q2 = $.item) != null && q2.isHideInForm) ? (y(!0), E(M2, { key: 0 }, V2(t == null ? void 0 : t.rowContents, (w, ge) => (y(), q(y2, {
1812
+ !((f2 = $.item) != null && f2.isFormColHidden) && !((q2 = $.item) != null && q2.isHideInForm) ? (_(!0), E(M2, { key: 0 }, V2(t == null ? void 0 : t.rowContents, (w, ge) => (_(), q(y2, {
1808
1813
  key: w == null ? void 0 : w.prop,
1809
1814
  class: et(["form-item", { "form-row-content": !n.isRowFlex }]),
1810
1815
  prop: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
@@ -1820,13 +1825,13 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1820
1825
  default: G(() => {
1821
1826
  var P0, v2, l0, V0, Oe, Lt, k1, Ht, D1, rt, O1, M1, T1, z1;
1822
1827
  return [
1823
- !(w != null && w.isFormColHidden) && (w == null ? void 0 : w.type) !== "Url" ? (y(), q(g3(L((w == null ? void 0 : w.type) ?? "Input")), {
1828
+ !(w != null && w.isFormColHidden) && (w == null ? void 0 : w.type) !== "Url" ? (_(), q(g3(L((w == null ? void 0 : w.type) ?? "Input")), {
1824
1829
  modelValue: d.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
1825
1830
  "onUpdate:modelValue": (ee) => d.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)] = ee,
1826
1831
  isEdit: (t == null ? void 0 : t.isEdit) && !(w != null && w.isNoClick) && !(w != null && w.isReadonly),
1827
1832
  disabled: w == null ? void 0 : w.disabled,
1828
1833
  content: (w == null ? void 0 : w.contents) ?? [],
1829
- onFixChangeValue: P,
1834
+ onFixChangeValue: z,
1830
1835
  onClickTrigger: T,
1831
1836
  originalValue: d.value[(w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)],
1832
1837
  onChange: F2,
@@ -1834,21 +1839,22 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1834
1839
  key: w == null ? void 0 : w.prop,
1835
1840
  optionUrl: w,
1836
1841
  onChangeVisible: m2,
1837
- onBlurChange: (ee) => A((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
1842
+ onBlurChange: (ee) => V((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
1843
+ wholeValue: d.value,
1838
1844
  onTagChange: (ee) => h2(ee, (w == null ? void 0 : w.prop) ?? w.name),
1839
1845
  onCreate: (ee) => N(w, ee),
1840
1846
  config: w == null ? void 0 : w.config,
1841
1847
  configModel: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
1842
1848
  selectedTagList: (w == null ? void 0 : w.selectValue) ?? []
1843
- }, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : c2("", !0),
1844
- (w == null ? void 0 : w.type) === "Url" ? (y(), E("div", qp, [
1849
+ }, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : c2("", !0),
1850
+ (w == null ? void 0 : w.type) === "Url" ? (_(), E("div", qp, [
1845
1851
  t2(be, {
1846
1852
  class: "calculator-content form-preview",
1847
1853
  onClickTrigger: (ee) => x(d.value[(w == null ? void 0 : w.prop) ?? w.name]),
1848
1854
  modelValue: "详情"
1849
1855
  }, null, 8, ["onClickTrigger"])
1850
1856
  ])) : c2("", !0),
1851
- typeof d.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((P0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && P0.includes(".stl") || (v2 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && v2.includes(".obj") || (l0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && l0.includes(".urdf") || (V0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && V0.includes(".STL") || (Oe = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Oe.includes(".ls") || (Lt = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Lt.includes(".uv") || (k1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && k1.includes(".UV") || (Ht = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Ht.includes(".cpt") || (D1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && D1.includes(".CPT") || (rt = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && rt.includes(".cyd") || (O1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && O1.includes(".CYD") || (M1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && M1.includes(".nc") || (T1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && T1.includes(".NC") || (z1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && z1.includes(".csv")) ? (y(), q(be, {
1857
+ typeof d.value[(w == null ? void 0 : w.prop) ?? w.name] == "string" && ((P0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && P0.includes(".stl") || (v2 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && v2.includes(".obj") || (l0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && l0.includes(".urdf") || (V0 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && V0.includes(".STL") || (Oe = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Oe.includes(".ls") || (Lt = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Lt.includes(".uv") || (k1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && k1.includes(".UV") || (Ht = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && Ht.includes(".cpt") || (D1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && D1.includes(".CPT") || (rt = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && rt.includes(".cyd") || (O1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && O1.includes(".CYD") || (M1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && M1.includes(".nc") || (T1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && T1.includes(".NC") || (z1 = d.value[(w == null ? void 0 : w.prop) ?? w.name]) != null && z1.includes(".csv")) ? (_(), q(be, {
1852
1858
  key: 2,
1853
1859
  class: "calculator-content form-preview",
1854
1860
  onClickTrigger: (ee) => j(d.value[(w == null ? void 0 : w.prop) ?? w.name]),
@@ -1861,12 +1867,12 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1861
1867
  !(w != null && w.isFormColHidden) && (w != null && w.label) ? {
1862
1868
  name: "label",
1863
1869
  fn: G(() => [
1864
- w != null && w.label ? (y(), E("div", {
1870
+ w != null && w.label ? (_(), E("div", {
1865
1871
  key: 0,
1866
1872
  class: "from-item-label",
1867
1873
  style: H0({ width: n.isRowFlex ? "72px" : "auto", minWidth: n.isRowFlex ? "72px" : `calc((100% / ${(w == null ? void 0 : w.width) ?? 1}) - 8px)` })
1868
1874
  }, [
1869
- w != null && w.operable ? (y(), q(q3, {
1875
+ w != null && w.operable ? (_(), q(q3, {
1870
1876
  key: 0,
1871
1877
  value: w == null ? void 0 : w.label,
1872
1878
  appendShow: !0,
@@ -1883,8 +1889,8 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1883
1889
  }, null, 8, ["value", "content", "onChange"])
1884
1890
  ]),
1885
1891
  _: 2
1886
- }, 1032, ["value", "onChange"])) : (y(), E("div", Up, [
1887
- w != null && w.required || w != null && w.isMain ? (y(), E("span", Fp, "*")) : c2("", !0),
1892
+ }, 1032, ["value", "onChange"])) : (_(), E("div", Up, [
1893
+ w != null && w.required || w != null && w.isMain ? (_(), E("span", Fp, "*")) : c2("", !0),
1888
1894
  G0(" " + I2(w == null ? void 0 : w.label), 1)
1889
1895
  ]))
1890
1896
  ], 4)) : c2("", !0)
@@ -1892,16 +1898,16 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1892
1898
  key: "0"
1893
1899
  } : void 0
1894
1900
  ]), 1032, ["prop", "class", "disabled", "style"]))), 128)) : c2("", !0),
1895
- ((Y2 = t.buttonValue) == null ? void 0 : Y2.length) > 0 && n.isButtonRow ? (y(), E("div", {
1901
+ ((Y2 = t.buttonValue) == null ? void 0 : Y2.length) > 0 && n.isButtonRow ? (_(), E("div", {
1896
1902
  key: 1,
1897
1903
  class: "form-button",
1898
1904
  style: H0({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
1899
1905
  }, [
1900
- (y(!0), E(M2, null, V2(t == null ? void 0 : t.buttonValue, (w, ge) => (y(), E("div", {
1906
+ (_(!0), E(M2, null, V2(t == null ? void 0 : t.buttonValue, (w, ge) => (_(), E("div", {
1901
1907
  key: ge,
1902
1908
  class: "form-button-content"
1903
1909
  }, [
1904
- w ? (y(), E("div", {
1910
+ w ? (_(), E("div", {
1905
1911
  key: 0,
1906
1912
  class: "form-button-item",
1907
1913
  style: H0({ background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)" }),
@@ -1914,12 +1920,12 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1914
1920
  _: 1
1915
1921
  }, 8, ["model", "rules", "disabled", "class"]))
1916
1922
  ]),
1917
- ((J2 = t.buttonValue) == null ? void 0 : J2.length) > 0 && !n.isButtonRow ? (y(), E("div", {
1923
+ ((J2 = t.buttonValue) == null ? void 0 : J2.length) > 0 && !n.isButtonRow ? (_(), E("div", {
1918
1924
  key: 2,
1919
1925
  class: "form-button",
1920
1926
  style: H0({ justifyContent: n.isStartJustify ? "start" : "end" })
1921
1927
  }, [
1922
- (y(!0), E(M2, null, V2(t == null ? void 0 : t.buttonValue, (f2, q2) => (y(), E("div", {
1928
+ (_(!0), E(M2, null, V2(t == null ? void 0 : t.buttonValue, (f2, q2) => (_(), E("div", {
1923
1929
  key: q2,
1924
1930
  class: "form-button-content",
1925
1931
  onClick: (Y2) => W2(f2 == null ? void 0 : f2.label, t.isEnableWrap ? a.value : h.value)
@@ -1938,7 +1944,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1938
1944
  ], 4);
1939
1945
  };
1940
1946
  }
1941
- }, Qp = /* @__PURE__ */ A2(Xp, [["__scopeId", "data-v-12215a04"]]), Jp = {
1947
+ }, Qp = /* @__PURE__ */ A2(Xp, [["__scopeId", "data-v-e0b15d78"]]), Jp = {
1942
1948
  __name: "index",
1943
1949
  props: {
1944
1950
  value: String,
@@ -1965,7 +1971,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1965
1971
  };
1966
1972
  return (l, r) => {
1967
1973
  var a, h, c, d, u, f, p, g;
1968
- return y(), q(Qp, {
1974
+ return _(), q(Qp, {
1969
1975
  rowContents: ((a = t == null ? void 0 : t.content) == null ? void 0 : a.rowContents) ?? [],
1970
1976
  formRules: (h = t == null ? void 0 : t.content) == null ? void 0 : h.formRules,
1971
1977
  buttonValue: ((c = t == null ? void 0 : t.content) == null ? void 0 : c.buttonValue) ?? [],
@@ -1999,14 +2005,14 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
1999
2005
  };
2000
2006
  return (l, r) => {
2001
2007
  const a = Q("el-radio"), h = Q("el-radio-group");
2002
- return y(), q(h, {
2008
+ return _(), q(h, {
2003
2009
  modelValue: i.value,
2004
2010
  "onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
2005
2011
  style: { height: "100%" },
2006
2012
  onChange: r[1] || (r[1] = (c) => o(c))
2007
2013
  }, {
2008
2014
  default: G(() => [
2009
- (y(!0), E(M2, null, V2(t.content, (c, d) => (y(), q(a, {
2015
+ (_(!0), E(M2, null, V2(t.content, (c, d) => (_(), q(a, {
2010
2016
  key: d,
2011
2017
  label: c.value,
2012
2018
  disabled: c == null ? void 0 : c.disabled
@@ -2049,7 +2055,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
2049
2055
  };
2050
2056
  return (l, r) => {
2051
2057
  const a = Q("el-checkbox"), h = Q("el-checkbox-group");
2052
- return y(), q(h, {
2058
+ return _(), q(h, {
2053
2059
  modelValue: i.value,
2054
2060
  "onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
2055
2061
  style: { height: "100%" },
@@ -2057,7 +2063,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
2057
2063
  onChange: r[1] || (r[1] = (c) => o(c))
2058
2064
  }, {
2059
2065
  default: G(() => [
2060
- (y(!0), E(M2, null, V2(n.content, (c) => (y(), q(a, {
2066
+ (_(!0), E(M2, null, V2(n.content, (c) => (_(), q(a, {
2061
2067
  key: c.label,
2062
2068
  label: c.label,
2063
2069
  value: c.value,
@@ -2095,7 +2101,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
2095
2101
  });
2096
2102
  }), (t, i) => {
2097
2103
  var s;
2098
- return y(), q(tr, {
2104
+ return _(), q(tr, {
2099
2105
  tabsContents: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.tabsContents) ?? []
2100
2106
  }, ye({ _: 2 }, [
2101
2107
  V2(t.$slots, (o, l) => ({
@@ -2110,7 +2116,7 @@ const Op = { class: "icon-popover" }, Mp = ["onClick"], Tp = /* @__PURE__ */ n0(
2110
2116
  }, ng = {};
2111
2117
  function sg(n, e) {
2112
2118
  const t = Q("el-card");
2113
- return y(), q(t, null, {
2119
+ return _(), q(t, null, {
2114
2120
  default: G(() => [
2115
2121
  C2(n.$slots, "content")
2116
2122
  ]),
@@ -2151,7 +2157,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2151
2157
  s(t.columns);
2152
2158
  },
2153
2159
  { deep: !0, immediate: !0 }
2154
- ), (o, l) => (y(), E("div", lg, [
2160
+ ), (o, l) => (_(), E("div", lg, [
2155
2161
  C2(o.$slots, "headerButton", {}, void 0, !0)
2156
2162
  ]));
2157
2163
  }
@@ -2177,7 +2183,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2177
2183
  return (e, t) => {
2178
2184
  var r, a, h, c, d, u, f, p, g, v;
2179
2185
  const i = Q("svg-icon"), s = Q("el-tooltip"), o = Q("RecurseCol", !0), l = Q("el-table-column");
2180
- return n.column.isHidden ? c2("", !0) : (y(), q(l, {
2186
+ return n.column.isHidden ? c2("", !0) : (_(), q(l, {
2181
2187
  key: 0,
2182
2188
  label: n.column.label,
2183
2189
  prop: n.column.prop,
@@ -2190,10 +2196,10 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2190
2196
  "min-width": I0(Qs)(n.column)
2191
2197
  }, {
2192
2198
  header: G(() => [
2193
- n.column.prop !== "operate" ? (y(), E("span", {
2199
+ n.column.prop !== "operate" ? (_(), E("span", {
2194
2200
  key: 0,
2195
2201
  title: n.column.label
2196
- }, I2(n.column.label), 9, cg)) : (y(), q(s, {
2202
+ }, I2(n.column.label), 9, cg)) : (_(), q(s, {
2197
2203
  key: 1,
2198
2204
  content: "操作",
2199
2205
  placement: "left-start",
@@ -2215,19 +2221,19 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2215
2221
  $index: m.$index,
2216
2222
  scope: m
2217
2223
  }),
2218
- (y(!0), E(M2, null, V2(n.column.children, (b, O) => (y(), q(o, {
2219
- key: O,
2224
+ (_(!0), E(M2, null, V2(n.column.children, (b, D) => (_(), q(o, {
2225
+ key: D,
2220
2226
  column: b,
2221
2227
  tableData: n.tableData
2222
2228
  }, ye({ _: 2 }, [
2223
2229
  V2(e.$slots, (C, k) => ({
2224
2230
  name: k,
2225
- fn: G(({ row: x, slotData: S, item: L, column: P }) => [
2231
+ fn: G(({ row: x, slotData: S, item: L, column: z }) => [
2226
2232
  C2(e.$slots, k, w1({ ref_for: !0 }, S ?? x, {
2227
2233
  item: L ?? b,
2228
2234
  slotData: S ?? x,
2229
2235
  row: x,
2230
- column: P,
2236
+ column: z,
2231
2237
  columnProp: b
2232
2238
  }))
2233
2239
  ])
@@ -2280,16 +2286,16 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2280
2286
  })) : !1;
2281
2287
  };
2282
2288
  return (d, u) => {
2283
- var g, v, m, b, O, C, k, x, S, L;
2289
+ var g, v, m, b, D, C, k, x, S, L;
2284
2290
  const f = Q("svg-icon"), p = Q("el-table-column");
2285
- return n.column.isTableColHidden ? c2("", !0) : (y(), q(p, {
2291
+ return n.column.isTableColHidden ? c2("", !0) : (_(), q(p, {
2286
2292
  key: 0,
2287
2293
  label: n.column.label,
2288
2294
  prop: n.column.prop,
2289
2295
  fixed: ((g = n.column) == null ? void 0 : g.prop) === "operate" ? "right" : (v = n.column) == null ? void 0 : v.fixed,
2290
2296
  align: "center",
2291
2297
  "header-align": (((b = (m = n.column) == null ? void 0 : m.children) == null ? void 0 : b.length) > 0, "center"),
2292
- sortable: ((O = n.column) == null ? void 0 : O.prop) === "operate" ? !1 : (C = n.column) != null && C.sortable ? "custom" : !1,
2298
+ sortable: ((D = n.column) == null ? void 0 : D.prop) === "operate" ? !1 : (C = n.column) != null && C.sortable ? "custom" : !1,
2293
2299
  filters: (k = n.column) != null && k.filterable ? c(n.column) : null,
2294
2300
  "filter-method": l,
2295
2301
  "show-overflow-tooltip": ((x = n.column) == null ? void 0 : x.showOverflowTooltip) ?? !0,
@@ -2297,19 +2303,19 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2297
2303
  "min-width": I0(Qs)(n.column)
2298
2304
  }, {
2299
2305
  header: G(() => [
2300
- n.column.prop !== "operate" ? (y(), E(M2, { key: 0 }, [
2301
- n.column.operable && n.isEditViewport ? (y(), q(q3, {
2306
+ n.column.prop !== "operate" ? (_(), E(M2, { key: 0 }, [
2307
+ n.column.operable && n.isEditViewport ? (_(), q(q3, {
2302
2308
  key: 0,
2303
2309
  value: s.value.label,
2304
2310
  appendShow: !0,
2305
2311
  class: "col-edit-input",
2306
- onChange: u[1] || (u[1] = (P) => r(P, n.column))
2312
+ onChange: u[1] || (u[1] = (z) => r(z, n.column))
2307
2313
  }, {
2308
2314
  append: G(() => {
2309
- var P;
2315
+ var z;
2310
2316
  return [
2311
2317
  t2($4, {
2312
- value: (P = n.column) == null ? void 0 : P.columnType,
2318
+ value: (z = n.column) == null ? void 0 : z.columnType,
2313
2319
  content: o.value,
2314
2320
  clearable: !1,
2315
2321
  placeholder: "类型",
@@ -2319,20 +2325,20 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2319
2325
  ];
2320
2326
  }),
2321
2327
  _: 1
2322
- }, 8, ["value"])) : (y(), E("span", {
2328
+ }, 8, ["value"])) : (_(), E("span", {
2323
2329
  key: 1,
2324
2330
  title: n.column.label
2325
2331
  }, I2(n.column.label), 9, dg))
2326
2332
  ], 64)) : C2(d.$slots, "operateHeader", { key: 1 })
2327
2333
  ]),
2328
2334
  "filter-icon": G(() => {
2329
- var P, T, j, M;
2335
+ var z, T, j, M;
2330
2336
  return [
2331
- (P = n.column) != null && P.filterable && ((T = n.column) == null ? void 0 : T.prop) !== "operate" ? (y(), q(f, {
2337
+ (z = n.column) != null && z.filterable && ((T = n.column) == null ? void 0 : T.prop) !== "operate" ? (_(), q(f, {
2332
2338
  key: 0,
2333
2339
  name: (j = n.column) != null && j.filterable && ((M = n.column) == null ? void 0 : M.prop) !== "operate" ? "colFilter" : "",
2334
2340
  class: "custom-filter-icon"
2335
- }, null, 8, ["name"])) : (y(), q(f, {
2341
+ }, null, 8, ["name"])) : (_(), q(f, {
2336
2342
  key: 1,
2337
2343
  onClick: u[2] || (u[2] = xe(() => {
2338
2344
  }, ["stop"])),
@@ -2340,25 +2346,25 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2340
2346
  }))
2341
2347
  ];
2342
2348
  }),
2343
- default: G((P) => [
2349
+ default: G((z) => [
2344
2350
  C2(d.$slots, "content", {
2345
- row: P.row,
2346
- column: P.column,
2347
- $index: P.$index,
2348
- scope: P
2351
+ row: z.row,
2352
+ column: z.column,
2353
+ $index: z.$index,
2354
+ scope: z
2349
2355
  }),
2350
- (y(!0), E(M2, null, V2(n.column.children, (T, j) => (y(), q(hg, {
2356
+ (_(!0), E(M2, null, V2(n.column.children, (T, j) => (_(), q(hg, {
2351
2357
  key: j,
2352
2358
  column: T,
2353
2359
  tableData: n.tableData
2354
2360
  }, ye({ _: 2 }, [
2355
2361
  V2(d.$slots, (M, h2) => ({
2356
2362
  name: h2,
2357
- fn: G(({ row: A, slotData: N, item: l2, column: s2 }) => [
2358
- C2(d.$slots, h2, w1({ ref_for: !0 }, N ?? A, {
2363
+ fn: G(({ row: V, slotData: N, item: l2, column: s2 }) => [
2364
+ C2(d.$slots, h2, w1({ ref_for: !0 }, N ?? V, {
2359
2365
  item: l2 ?? T,
2360
- slotData: N ?? A,
2361
- row: A,
2366
+ slotData: N ?? V,
2367
+ row: V,
2362
2368
  column: s2,
2363
2369
  columnProp: T
2364
2370
  }))
@@ -2384,7 +2390,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2384
2390
  setup(n) {
2385
2391
  return (e, t) => {
2386
2392
  const i = Q("el-card");
2387
- return y(), E("div", null, [
2393
+ return _(), E("div", null, [
2388
2394
  t2(i, null, {
2389
2395
  header: G(() => [
2390
2396
  C2(e.$slots, "header", {}, void 0, !0)
@@ -2397,7 +2403,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2397
2403
  ]),
2398
2404
  _: 3
2399
2405
  }),
2400
- n.showTag ? (y(), E("div", fg, [
2406
+ n.showTag ? (_(), E("div", fg, [
2401
2407
  C2(e.$slots, "status", {}, void 0, !0)
2402
2408
  ])) : c2("", !0)
2403
2409
  ]);
@@ -2514,19 +2520,19 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2514
2520
  const t = n;
2515
2521
  G4(mt);
2516
2522
  const i = Hr(mt), { chooseTitle: s } = Ct(i), o = R4(mt), { activeMenuPath: l } = Ct(o), r = I(!1), a = I(), h = I(), c = i2(() => {
2517
- var _, D;
2523
+ var y, O;
2518
2524
  try {
2519
- return (((D = (_ = g.value) == null ? void 0 : _.getSelectionRows) == null ? void 0 : D.call(_)) ?? []).length > 0;
2525
+ return (((O = (y = g.value) == null ? void 0 : y.getSelectionRows) == null ? void 0 : O.call(y)) ?? []).length > 0;
2520
2526
  } catch {
2521
2527
  return !1;
2522
2528
  }
2523
2529
  }), d = F3({ x: 0, y: 0 }), u = I([]), f = I([]), p = I(0), g = I(null), v = I(null), m = I(null), b = i2(() => {
2524
- var _, D;
2525
- return Array.isArray(u.value) && ((D = (_ = u.value) == null ? void 0 : _[0]) == null ? void 0 : D.prop) === "disabled";
2526
- }), O = i2(() => t.allowRowAddOrDelete && !b.value), C = e;
2530
+ var y, O;
2531
+ return Array.isArray(u.value) && ((O = (y = u.value) == null ? void 0 : y[0]) == null ? void 0 : O.prop) === "disabled";
2532
+ }), D = i2(() => t.allowRowAddOrDelete && !b.value), C = e;
2527
2533
  r6("contentRef"), ue(() => {
2528
- var D, z, B, Z, e2;
2529
- S = x(), u.value = t == null ? void 0 : t.columns, f.value = (D = t == null ? void 0 : t.tableData) == null ? void 0 : D.map((r2) => {
2534
+ var O, A, B, Z, e2;
2535
+ S = x(), u.value = t == null ? void 0 : t.columns, f.value = (O = t == null ? void 0 : t.tableData) == null ? void 0 : O.map((r2) => {
2530
2536
  var o2, a2;
2531
2537
  let K = {};
2532
2538
  for (let F in r2)
@@ -2541,23 +2547,23 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2541
2547
  K[F] = r2[F];
2542
2548
  return K;
2543
2549
  });
2544
- let _ = (z = s.value) == null ? void 0 : z.find((r2) => (r2 == null ? void 0 : r2.parentContent) === l.value);
2545
- if (_) {
2546
- let r2 = (Z = (B = u.value) == null ? void 0 : B[0]) == null ? void 0 : Z.prop, K = (e2 = f.value) == null ? void 0 : e2.find((o2) => (o2 == null ? void 0 : o2[r2]) === (_ == null ? void 0 : _.value));
2550
+ let y = (A = s.value) == null ? void 0 : A.find((r2) => (r2 == null ? void 0 : r2.parentContent) === l.value);
2551
+ if (y) {
2552
+ let r2 = (Z = (B = u.value) == null ? void 0 : B[0]) == null ? void 0 : Z.prop, K = (e2 = f.value) == null ? void 0 : e2.find((o2) => (o2 == null ? void 0 : o2[r2]) === (y == null ? void 0 : y.value));
2547
2553
  g.value.setCurrentRow(), g.value && setTimeout(() => {
2548
2554
  g.value && g.value.setCurrentRow(K);
2549
2555
  }, 100);
2550
2556
  }
2551
2557
  Ht(), rt(), document.addEventListener("click", j);
2552
2558
  });
2553
- const k = (_) => {
2554
- if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[\+\-]\d{2}:\d{2})?$/.test(_))
2559
+ const k = (y) => {
2560
+ if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[\+\-]\d{2}:\d{2})?$/.test(y))
2555
2561
  return !1;
2556
- const z = new Date(_);
2557
- return !isNaN(z.getTime());
2562
+ const A = new Date(y);
2563
+ return !isNaN(A.getTime());
2558
2564
  };
2559
2565
  function x() {
2560
- const _ = /* @__PURE__ */ new WeakSet(), D = new MutationObserver(r2), z = /* @__PURE__ */ new WeakMap(), B = [];
2566
+ const y = /* @__PURE__ */ new WeakSet(), O = new MutationObserver(r2), A = /* @__PURE__ */ new WeakMap(), B = [];
2561
2567
  function Z(K) {
2562
2568
  try {
2563
2569
  const o2 = K.getBoundingClientRect(), a2 = K.clientWidth || o2.width || 1, F = o2.width / a2 || 1, u2 = parseFloat(getComputedStyle(K).zoom || "1");
@@ -2568,8 +2574,8 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2568
2574
  }
2569
2575
  function e2(K) {
2570
2576
  var F;
2571
- if (!K || _.has(K)) return;
2572
- _.add(K);
2577
+ if (!K || y.has(K)) return;
2578
+ y.add(K);
2573
2579
  const o2 = K.parentElement, a2 = (F = K.closest(".el-scrollbar")) == null ? void 0 : F.querySelector(".el-scrollbar__wrap");
2574
2580
  !o2 || !a2 || K.addEventListener(
2575
2581
  "pointerdown",
@@ -2602,17 +2608,17 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2602
2608
  const o2 = K.querySelector(".el-scrollbar__wrap"), a2 = K.querySelector(".el-scrollbar__bar.is-horizontal");
2603
2609
  if (!o2 || !a2) return;
2604
2610
  const F = o2.querySelector(".el-scrollbar__view") || o2.firstElementChild || o2, u2 = F.querySelector("table") || F.querySelector(".el-table__body") || F, P2 = u2.scrollWidth, K2 = o2.clientWidth, x2 = P2 - K2 > 2;
2605
- if (K.classList.toggle("has-x-scroll", x2), a2.style.display = "", x2 && K.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(e2), !z.has(o2)) {
2611
+ if (K.classList.toggle("has-x-scroll", x2), a2.style.display = "", x2 && K.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(e2), !A.has(o2)) {
2606
2612
  const D2 = new ResizeObserver(() => {
2607
2613
  const b2 = u2 && u2.scrollWidth || o2.scrollWidth, B2 = o2.clientWidth, A0 = b2 - B2 > 2;
2608
2614
  K.classList.toggle("has-x-scroll", A0);
2609
2615
  });
2610
- D2.observe(o2), u2 && D2.observe(u2), z.set(o2, D2), B.push(() => D2.disconnect());
2616
+ D2.observe(o2), u2 && D2.observe(u2), A.set(o2, D2), B.push(() => D2.disconnect());
2611
2617
  }
2612
2618
  });
2613
2619
  }
2614
- return r2(), D.observe(document.body, { childList: !0, subtree: !0 }), () => {
2615
- D.disconnect(), B.forEach((K) => {
2620
+ return r2(), O.observe(document.body, { childList: !0, subtree: !0 }), () => {
2621
+ O.disconnect(), B.forEach((K) => {
2616
2622
  try {
2617
2623
  K();
2618
2624
  } catch {
@@ -2624,12 +2630,12 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2624
2630
  U2(
2625
2631
  () => [s.value],
2626
2632
  () => {
2627
- var D, z, B, Z, e2, r2, K;
2628
- let _ = (D = s.value) == null ? void 0 : D.find((o2) => (o2 == null ? void 0 : o2.parentContent) === l.value);
2629
- if (_ || !((B = (z = s.value) == null ? void 0 : z[0]) != null && B.parentContent)) {
2633
+ var O, A, B, Z, e2, r2, K;
2634
+ let y = (O = s.value) == null ? void 0 : O.find((o2) => (o2 == null ? void 0 : o2.parentContent) === l.value);
2635
+ if (y || !((B = (A = s.value) == null ? void 0 : A[0]) != null && B.parentContent)) {
2630
2636
  let o2 = (e2 = (Z = u.value) == null ? void 0 : Z[0]) == null ? void 0 : e2.prop, a2 = (r2 = f.value) == null ? void 0 : r2.find((F) => {
2631
2637
  var u2, P2;
2632
- return (F == null ? void 0 : F[o2]) === ((_ == null ? void 0 : _.value) ?? ((P2 = (u2 = s.value) == null ? void 0 : u2[0]) == null ? void 0 : P2.value));
2638
+ return (F == null ? void 0 : F[o2]) === ((y == null ? void 0 : y.value) ?? ((P2 = (u2 = s.value) == null ? void 0 : u2[0]) == null ? void 0 : P2.value));
2633
2639
  });
2634
2640
  (K = g.value) == null || K.setCurrentRow(), g.value && a2 && setTimeout(() => {
2635
2641
  var F;
@@ -2642,122 +2648,110 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2642
2648
  S && S(), document.removeEventListener("click", j), f.value = void 0, u.value = void 0, L.value && clearTimeout(L.value);
2643
2649
  });
2644
2650
  const L = I(null);
2645
- U2(() => t == null ? void 0 : t.isEditViewport, async (_) => {
2646
- var D;
2647
- _ && ((D = t == null ? void 0 : t.tableData) == null ? void 0 : D.length) > 15 && (await O0(), L.value = setTimeout(() => {
2648
- const z = document.querySelectorAll(".el-table__body tr");
2649
- z.length > 0 && z[z.length - 1].scrollIntoView({ behavior: "smooth", block: "center" });
2651
+ U2(() => t == null ? void 0 : t.isEditViewport, async (y) => {
2652
+ var O;
2653
+ y && ((O = t == null ? void 0 : t.tableData) == null ? void 0 : O.length) > 15 && (await O0(), L.value = setTimeout(() => {
2654
+ const A = document.querySelectorAll(".el-table__body tr");
2655
+ A.length > 0 && A[A.length - 1].scrollIntoView({ behavior: "smooth", block: "center" });
2650
2656
  }, 10));
2651
2657
  }, { immediate: !0 });
2652
- const P = (_, D) => {
2653
- C("handleColEditChange", _, D);
2654
- }, T = (_, D) => {
2655
- C("handleColTypeChange", _, D);
2656
- }, j = (_) => {
2657
- var z, B, Z, e2;
2658
+ const z = (y, O) => {
2659
+ C("handleColEditChange", y, O);
2660
+ }, T = (y, O) => {
2661
+ C("handleColTypeChange", y, O);
2662
+ }, j = (y) => {
2663
+ var A, B, Z, e2;
2658
2664
  if (r.value = !1, !t.isEditViewport) return;
2659
- const D = _ == null ? void 0 : _.target;
2660
- (B = (z = g.value) == null ? void 0 : z.$el) != null && B.contains(D) || (Z = D == null ? void 0 : D.closest) != null && Z.call(D, "#themeButton, #themeBorderButton,#tableHeaderButton") || (e2 = D == null ? void 0 : D.closest) != null && e2.call(
2661
- D,
2665
+ const O = y == null ? void 0 : y.target;
2666
+ (B = (A = g.value) == null ? void 0 : A.$el) != null && B.contains(O) || (Z = O == null ? void 0 : O.closest) != null && Z.call(O, "#themeButton, #themeBorderButton,#tableHeaderButton") || (e2 = O == null ? void 0 : O.closest) != null && e2.call(
2667
+ O,
2662
2668
  ".el-popper, .el-select__popper, .el-select-dropdown, .el-picker__popper, .el-picker-panel,.el-dialog__wrapper, .el-overlay, .el-message-box__wrapper, .el-popover"
2663
2669
  ) || C("submitEditingTable");
2664
- }, M = i2(() => {
2665
- var _;
2666
- return (_ = t == null ? void 0 : t.extraButton) == null ? void 0 : _.filter((D) => {
2667
- var z;
2668
- return !((z = D == null ? void 0 : D.label) != null && z.includes("批量"));
2669
- });
2670
- }), h2 = i2(() => {
2671
- var _;
2672
- return (_ = t == null ? void 0 : t.extraButton) == null ? void 0 : _.filter((D) => {
2673
- var z;
2674
- return (z = D == null ? void 0 : D.label) == null ? void 0 : z.includes("批量");
2675
- });
2676
- }), A = I(0), N = I(!1), l2 = (_, D, z) => {
2677
- A.value = _ == null ? void 0 : _.id;
2678
- }, s2 = (_, D, z) => {
2679
- A.value = 0;
2670
+ }, M = i2(() => t == null ? void 0 : t.extraButton), h2 = i2(() => t == null ? void 0 : t.extraButton), V = I(0), N = I(!1), l2 = (y, O, A) => {
2671
+ V.value = y == null ? void 0 : y.id;
2672
+ }, s2 = (y, O, A) => {
2673
+ V.value = 0;
2680
2674
  }, S2 = () => {
2681
2675
  N.value = !1;
2682
- }, m2 = r6("getSuggestListForCell", () => []), E2 = r6("getSuggestLoadingForCell", () => !1), Q2 = (_, D, z, B) => {
2676
+ }, m2 = r6("getSuggestListForCell", () => []), E2 = r6("getSuggestLoadingForCell", () => !1), Q2 = (y, O, A, B) => {
2683
2677
  const Z = (B == null ? void 0 : B.formType) || (B == null ? void 0 : B.columnType) || "";
2684
- Z && Z.toUpperCase() !== "INPUT" && Z !== "" || C("cellInput", D, z, _);
2685
- }, W2 = (_, D, z, B) => {
2686
- C("selectSuggest", D, z, _);
2687
- }, F2 = (_) => {
2688
- C("selectChange", _);
2689
- }, $ = (_, D) => {
2690
- var z, B, Z;
2678
+ Z && Z.toUpperCase() !== "INPUT" && Z !== "" || C("cellInput", O, A, y);
2679
+ }, W2 = (y, O, A, B) => {
2680
+ C("selectSuggest", O, A, y);
2681
+ }, F2 = (y) => {
2682
+ C("selectChange", y);
2683
+ }, $ = (y, O) => {
2684
+ var A, B, Z;
2691
2685
  if (typeof t.selectable == "function")
2692
- return t.selectable(_, D);
2686
+ return t.selectable(y, O);
2693
2687
  if (t.selectMode === "single") {
2694
- const e2 = ((B = (z = g.value) == null ? void 0 : z.getSelectionRows) == null ? void 0 : B.call(z)) ?? [];
2695
- return e2.length === 0 || ((Z = e2 == null ? void 0 : e2[0]) == null ? void 0 : Z.id) === (_ == null ? void 0 : _.id);
2688
+ const e2 = ((B = (A = g.value) == null ? void 0 : A.getSelectionRows) == null ? void 0 : B.call(A)) ?? [];
2689
+ return e2.length === 0 || ((Z = e2 == null ? void 0 : e2[0]) == null ? void 0 : Z.id) === (y == null ? void 0 : y.id);
2696
2690
  }
2697
2691
  return !0;
2698
- }, W = (_, D, z, B) => i2(() => {
2692
+ }, W = (y, O, A, B) => i2(() => {
2699
2693
  var e2, r2, K, o2, a2, F, u2, P2, K2, x2;
2700
- let Z = _ != null && _[D == null ? void 0 : D.prop] ? ((r2 = (e2 = _ == null ? void 0 : _[D == null ? void 0 : D.prop]) == null ? void 0 : e2[0]) == null ? void 0 : r2.contents) ?? (_ == null ? void 0 : _[D == null ? void 0 : D.prop]) : ((o2 = (K = _ == null ? void 0 : _[z == null ? void 0 : z.prop]) == null ? void 0 : K[0]) == null ? void 0 : o2.contents) ?? (_ == null ? void 0 : _[z == null ? void 0 : z.prop]) ?? ((F = (a2 = B == null ? void 0 : B[z == null ? void 0 : z.prop]) == null ? void 0 : a2[0]) == null ? void 0 : F.contents) ?? (B == null ? void 0 : B[z == null ? void 0 : z.prop]) ?? ((K2 = (P2 = _ == null ? void 0 : _[(u2 = z == null ? void 0 : z.child) == null ? void 0 : u2.prop]) == null ? void 0 : P2[0]) == null ? void 0 : K2.contents) ?? (_ == null ? void 0 : _[(x2 = z == null ? void 0 : z.child) == null ? void 0 : x2.prop]);
2694
+ let Z = y != null && y[O == null ? void 0 : O.prop] ? ((r2 = (e2 = y == null ? void 0 : y[O == null ? void 0 : O.prop]) == null ? void 0 : e2[0]) == null ? void 0 : r2.contents) ?? (y == null ? void 0 : y[O == null ? void 0 : O.prop]) : ((o2 = (K = y == null ? void 0 : y[A == null ? void 0 : A.prop]) == null ? void 0 : K[0]) == null ? void 0 : o2.contents) ?? (y == null ? void 0 : y[A == null ? void 0 : A.prop]) ?? ((F = (a2 = B == null ? void 0 : B[A == null ? void 0 : A.prop]) == null ? void 0 : a2[0]) == null ? void 0 : F.contents) ?? (B == null ? void 0 : B[A == null ? void 0 : A.prop]) ?? ((K2 = (P2 = y == null ? void 0 : y[(u2 = A == null ? void 0 : A.child) == null ? void 0 : u2.prop]) == null ? void 0 : P2[0]) == null ? void 0 : K2.contents) ?? (y == null ? void 0 : y[(x2 = A == null ? void 0 : A.child) == null ? void 0 : x2.prop]);
2701
2695
  return Array.isArray(Z) && !(Z != null && Z.every((D2) => typeof D2 == "string" || typeof D2 == "number")) ? "查看" : Z;
2702
- }), y2 = (_) => {
2696
+ }), y2 = (y) => {
2703
2697
  var B, Z, e2;
2704
- let D = (Z = (B = u.value) == null ? void 0 : B[0]) == null ? void 0 : Z.prop, z = (e2 = f.value) == null ? void 0 : e2.map((r2) => r2 == null ? void 0 : r2[D]);
2698
+ let O = (Z = (B = u.value) == null ? void 0 : B[0]) == null ? void 0 : Z.prop, A = (e2 = f.value) == null ? void 0 : e2.map((r2) => r2 == null ? void 0 : r2[O]);
2705
2699
  C("rowClick", {
2706
- row: _,
2700
+ row: y,
2707
2701
  type: "table",
2708
2702
  usingRow: u.value,
2709
- firstContents: z
2703
+ firstContents: A
2710
2704
  });
2711
- }, d2 = (_, D, z, B) => {
2712
- if (!O.value) return;
2713
- const Z = z == null ? void 0 : z.innerText, e2 = vg(Z);
2714
- d.x = B.clientX, d.y = B.clientY, r.value = !0, e2 && (a.value = z.innerText), h.value = _;
2705
+ }, d2 = (y, O, A, B) => {
2706
+ if (!D.value) return;
2707
+ const Z = A == null ? void 0 : A.innerText, e2 = vg(Z);
2708
+ d.x = B.clientX, d.y = B.clientY, r.value = !0, e2 && (a.value = A.innerText), h.value = y;
2715
2709
  }, R2 = () => {
2716
2710
  C("clickButton", "删除", h.value, { extra: { label: "删除" } }), r.value = !1;
2717
2711
  }, J2 = () => {
2718
2712
  C("clickButton", "批量删除", null, { extra: { label: "批量删除" } }), r.value = !1;
2719
- }, f2 = (_) => {
2720
- C("buttonClick", _);
2721
- }, q2 = ({ prop: _, order: D }) => {
2722
- C("sortChange", { prop: _, order: D });
2713
+ }, f2 = (y) => {
2714
+ C("buttonClick", y);
2715
+ }, q2 = ({ prop: y, order: O }) => {
2716
+ C("sortChange", { prop: y, order: O });
2723
2717
  };
2724
2718
  U2(
2725
2719
  () => t == null ? void 0 : t.tableData,
2726
2720
  () => {
2727
- var _;
2728
- f.value = (_ = t == null ? void 0 : t.tableData) == null ? void 0 : _.map((D) => {
2721
+ var y;
2722
+ f.value = (y = t == null ? void 0 : t.tableData) == null ? void 0 : y.map((O) => {
2729
2723
  var B, Z;
2730
- let z = {};
2731
- for (let e2 in D)
2732
- if (z[e2] = ji(D[e2]) && D[e2] === 0 ? (B = D[e2]) == null ? void 0 : B.toString() : D[e2], e2 !== "id" && ((Z = It.value) == null ? void 0 : Z.prop) !== e2 && k(D[e2]))
2733
- if (!D[e2] || D[e2] === "" || D[e2] === null || D[e2] === void 0)
2734
- z[e2] = "";
2724
+ let A = {};
2725
+ for (let e2 in O)
2726
+ if (A[e2] = ji(O[e2]) && O[e2] === 0 ? (B = O[e2]) == null ? void 0 : B.toString() : O[e2], e2 !== "id" && ((Z = It.value) == null ? void 0 : Z.prop) !== e2 && k(O[e2]))
2727
+ if (!O[e2] || O[e2] === "" || O[e2] === null || O[e2] === void 0)
2728
+ A[e2] = "";
2735
2729
  else {
2736
- const r2 = me(D[e2], ["YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
2737
- z[e2] = r2.isValid() ? r2.format("YYYY-MM-DD HH:mm:ss") : "";
2730
+ const r2 = me(O[e2], ["YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
2731
+ A[e2] = r2.isValid() ? r2.format("YYYY-MM-DD HH:mm:ss") : "";
2738
2732
  }
2739
- return z;
2733
+ return A;
2740
2734
  });
2741
2735
  },
2742
2736
  { deep: !0 }
2743
2737
  );
2744
- const Y2 = (_) => Di(_), w = (_, D, z) => {
2745
- C("clickButton", _, D, z);
2746
- }, ge = (_) => {
2747
- C("doCurrentChange", _);
2748
- }, P0 = (_, D) => {
2749
- C("dbClickRow", _, D);
2750
- }, v2 = (_) => {
2751
- C("doSizeChange", _);
2752
- }, l0 = (_) => {
2753
- C("fixRow", _);
2754
- }, V0 = (_) => {
2755
- C("deleteRow", _);
2756
- }, Oe = (_, D) => {
2757
- C("clickButton", "删除", _, { extra: { label: "删除" }, index: D });
2758
- }, Lt = (_, D) => {
2738
+ const Y2 = (y) => Di(y), w = (y, O, A) => {
2739
+ C("clickButton", y, O, A);
2740
+ }, ge = (y) => {
2741
+ C("doCurrentChange", y);
2742
+ }, P0 = (y, O) => {
2743
+ C("dbClickRow", y, O);
2744
+ }, v2 = (y) => {
2745
+ C("doSizeChange", y);
2746
+ }, l0 = (y) => {
2747
+ C("fixRow", y);
2748
+ }, V0 = (y) => {
2749
+ C("deleteRow", y);
2750
+ }, Oe = (y, O) => {
2751
+ C("clickButton", "删除", y, { extra: { label: "删除" }, index: O });
2752
+ }, Lt = (y, O) => {
2759
2753
  var e2, r2, K, o2;
2760
- if ((_ == null ? void 0 : _.id) === "__empty__") {
2754
+ if ((y == null ? void 0 : y.id) === "__empty__") {
2761
2755
  const a2 = {};
2762
2756
  (e2 = u.value) == null || e2.forEach((F) => {
2763
2757
  const u2 = F == null ? void 0 : F.prop;
@@ -2765,60 +2759,60 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2765
2759
  }), a2.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, a2._isTemp = !0, C("addNewRow", { newRow: a2, targetIndex: 0 });
2766
2760
  return;
2767
2761
  }
2768
- const z = {};
2762
+ const A = {};
2769
2763
  (r2 = u.value) == null || r2.forEach((a2) => {
2770
2764
  const F = a2 == null ? void 0 : a2.prop;
2771
- !F || F === "operate" || (z[F] = "");
2772
- }), z.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, z._isTemp = !0, (_ == null ? void 0 : _.level) !== void 0 && (z.level = _.level), (_ == null ? void 0 : _.tableEditType) !== void 0 && (z.tableEditType = _.tableEditType);
2773
- const B = typeof D == "number" ? D : (K = f.value) == null ? void 0 : K.findIndex((a2) => (a2 == null ? void 0 : a2.id) === (_ == null ? void 0 : _.id)), Z = B >= 0 ? B + 1 : ((o2 = f.value) == null ? void 0 : o2.length) ?? 0;
2774
- C("addNewRow", { newRow: z, targetIndex: Z });
2775
- }, k1 = (_, D, z, B) => {
2776
- C("contentClick", _, D, z, B);
2765
+ !F || F === "operate" || (A[F] = "");
2766
+ }), A.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, A._isTemp = !0, (y == null ? void 0 : y.level) !== void 0 && (A.level = y.level), (y == null ? void 0 : y.tableEditType) !== void 0 && (A.tableEditType = y.tableEditType);
2767
+ const B = typeof O == "number" ? O : (K = f.value) == null ? void 0 : K.findIndex((a2) => (a2 == null ? void 0 : a2.id) === (y == null ? void 0 : y.id)), Z = B >= 0 ? B + 1 : ((o2 = f.value) == null ? void 0 : o2.length) ?? 0;
2768
+ C("addNewRow", { newRow: A, targetIndex: Z });
2769
+ }, k1 = (y, O, A, B) => {
2770
+ C("contentClick", y, O, A, B);
2777
2771
  }, Ht = () => {
2778
- var D;
2779
- const _ = (D = g.value) == null ? void 0 : D.$el.querySelector(".el-table__header-wrapper tr");
2780
- !_ || !t.isMoveColumn || Bi.create(_, {
2772
+ var O;
2773
+ const y = (O = g.value) == null ? void 0 : O.$el.querySelector(".el-table__header-wrapper tr");
2774
+ !y || !t.isMoveColumn || Bi.create(y, {
2781
2775
  animation: 180,
2782
2776
  delay: 0,
2783
2777
  handle: ".is-drag .cell",
2784
2778
  // 可拖拽区域为单元格
2785
- onMove: (z) => !z.related.classList.contains("is-not-drag"),
2786
- onEnd: (z) => {
2779
+ onMove: (A) => !A.related.classList.contains("is-not-drag"),
2780
+ onEnd: (A) => {
2787
2781
  p.value++;
2788
- const B = z.oldIndex - 3, Z = z.newIndex - 3, e2 = u.value.splice(B, 1)[0];
2782
+ const B = A.oldIndex - 3, Z = A.newIndex - 3, e2 = u.value.splice(B, 1)[0];
2789
2783
  u.value.splice(Z, 0, e2), t.isMoveColumn && O0(() => {
2790
2784
  Ht(), rt();
2791
2785
  });
2792
2786
  }
2793
2787
  });
2794
- }, D1 = ({ column: _ }) => _.label && _.label.length > 8 ? "long-header" : "", rt = () => {
2795
- var D;
2796
- const _ = (D = g.value) == null ? void 0 : D.$el.querySelector(".el-table__body-wrapper tbody");
2797
- _ && new Bi(_, {
2788
+ }, D1 = ({ column: y }) => y.label && y.label.length > 8 ? "long-header" : "", rt = () => {
2789
+ var O;
2790
+ const y = (O = g.value) == null ? void 0 : O.$el.querySelector(".el-table__body-wrapper tbody");
2791
+ y && new Bi(y, {
2798
2792
  animation: 150,
2799
2793
  handle: ".custom-drag-icon",
2800
2794
  ghostClass: "sortable-ghost",
2801
- onEnd: ({ newIndex: z, oldIndex: B }) => {
2795
+ onEnd: ({ newIndex: A, oldIndex: B }) => {
2802
2796
  const Z = [...f.value], [e2] = Z.splice(B, 1);
2803
2797
  Z.splice(B, 0, e2), f.value = Z, O0(() => {
2804
2798
  rt();
2805
2799
  });
2806
2800
  }
2807
2801
  });
2808
- }, O1 = (_) => new Promise((D) => {
2809
- const z = new FileReader();
2810
- z.onloadend = () => D(z.result), z.readAsDataURL(_);
2811
- }), M1 = (_, D = "file") => {
2812
- let z = _.split(","), B = z[0].match(/:(.*?);/)[1], Z = B.split("/")[1], e2 = atob(z[1]), r2 = e2.length, K = new Uint8Array(r2);
2802
+ }, O1 = (y) => new Promise((O) => {
2803
+ const A = new FileReader();
2804
+ A.onloadend = () => O(A.result), A.readAsDataURL(y);
2805
+ }), M1 = (y, O = "file") => {
2806
+ let A = y.split(","), B = A[0].match(/:(.*?);/)[1], Z = B.split("/")[1], e2 = atob(A[1]), r2 = e2.length, K = new Uint8Array(r2);
2813
2807
  for (; r2--; )
2814
2808
  K[r2] = e2.charCodeAt(r2);
2815
- return new File([K], `${D}.${Z}`, {
2809
+ return new File([K], `${O}.${Z}`, {
2816
2810
  type: B
2817
2811
  });
2818
- }, T1 = async (_) => {
2819
- const D = await O1(_);
2820
- let z = M1(D), B = new FormData();
2821
- B.append("file", z);
2812
+ }, T1 = async (y) => {
2813
+ const O = await O1(y);
2814
+ let A = M1(O), B = new FormData();
2815
+ B.append("file", A);
2822
2816
  let Z;
2823
2817
  return await R6(B).then((e2) => {
2824
2818
  var r2, K, o2, a2, F, u2, P2;
@@ -2827,13 +2821,13 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2827
2821
  name: (P2 = (o2 = (K = e2.data.result) == null ? void 0 : K.url) == null ? void 0 : o2.split("/")) == null ? void 0 : P2[((u2 = (F = (a2 = e2.data.result) == null ? void 0 : a2.url) == null ? void 0 : F.split("/")) == null ? void 0 : u2.length) - 1]
2828
2822
  };
2829
2823
  }), Z;
2830
- }, z1 = async (_) => {
2831
- var D;
2824
+ }, z1 = async (y) => {
2825
+ var O;
2832
2826
  try {
2833
- const z = _.clipboardData || (window == null ? void 0 : window.clipboardData), B = z.getData("text/plain");
2827
+ const A = y.clipboardData || (window == null ? void 0 : window.clipboardData), B = A.getData("text/plain");
2834
2828
  if (B === void 0) return;
2835
2829
  if (B.includes("<table")) {
2836
- _.preventDefault();
2830
+ y.preventDefault();
2837
2831
  const Z = ee(B);
2838
2832
  if (!Z.length) return;
2839
2833
  const { rowIndex: e2, columnIndex: r2 } = m.value || { rowIndex: 0, columnIndex: 0 }, K = [];
@@ -2857,11 +2851,11 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2857
2851
  }
2858
2852
  }
2859
2853
  } else {
2860
- const Z = z.getData("text/html");
2854
+ const Z = A.getData("text/html");
2861
2855
  if (Z === void 0) return;
2862
2856
  const r2 = new DOMParser().parseFromString(Z, "text/html"), K = r2.querySelectorAll("table");
2863
2857
  if ((K == null ? void 0 : K.length) > 0) {
2864
- _.preventDefault();
2858
+ y.preventDefault();
2865
2859
  const a2 = K[0].querySelectorAll("tr"), F = [];
2866
2860
  for (const K2 of a2) {
2867
2861
  const x2 = K2.querySelectorAll("td, th"), D2 = [];
@@ -2909,52 +2903,52 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2909
2903
  const o2 = r2.querySelectorAll("span");
2910
2904
  let a2 = "";
2911
2905
  if (o2.length === 0) {
2912
- const F = (D = _.clipboardData) == null ? void 0 : D.items;
2906
+ const F = (O = y.clipboardData) == null ? void 0 : O.items;
2913
2907
  a2 = [];
2914
2908
  for (const u2 of F)
2915
2909
  if ((u2 == null ? void 0 : u2.type) === "image/png") {
2916
2910
  const P2 = await T1(u2 == null ? void 0 : u2.getAsFile());
2917
2911
  a2.push(P2);
2918
2912
  } else
2919
- a2 = _.clipboardData.getData("text/plain");
2913
+ a2 = y.clipboardData.getData("text/plain");
2920
2914
  } else
2921
2915
  for (const F of o2)
2922
2916
  a2 = a2 + F.textContent.trim();
2923
2917
  if (Array.isArray(a2)) {
2924
- _.preventDefault();
2918
+ y.preventDefault();
2925
2919
  const { rowIndex: F, columnProp: u2 } = m.value || { rowIndex: 0, columnIndex: 0 }, P2 = {}, K2 = f.value;
2926
2920
  K2[F][u2] = a2;
2927
2921
  }
2928
2922
  }
2929
2923
  }
2930
- } catch (z) {
2931
- console.error("粘贴失败:", z);
2924
+ } catch (A) {
2925
+ console.error("粘贴失败:", A);
2932
2926
  }
2933
- }, ee = (_) => _.trim().split(/\r\n|\n|\r/).map((B) => B.trim() ? B.split(" ").map((Z) => Z.replace(/^"(.*)"$/, "$1")) : [""]), ir = (_) => {
2934
- var D;
2935
- _ && (m.value = {
2936
- rowIndex: _ == null ? void 0 : _.$index,
2937
- columnIndex: _ == null ? void 0 : _.cellIndex,
2938
- columnProp: (D = _.column) == null ? void 0 : D.property
2927
+ }, ee = (y) => y.trim().split(/\r\n|\n|\r/).map((B) => B.trim() ? B.split(" ").map((Z) => Z.replace(/^"(.*)"$/, "$1")) : [""]), ir = (y) => {
2928
+ var O;
2929
+ y && (m.value = {
2930
+ rowIndex: y == null ? void 0 : y.$index,
2931
+ columnIndex: y == null ? void 0 : y.cellIndex,
2932
+ columnProp: (O = y.column) == null ? void 0 : O.property
2939
2933
  });
2940
- }, nr = ({ row: _, rowIndex: D }) => D % 2 === 0 ? "default-row" : "special-row", sr = ({ column: _ }) => (_ == null ? void 0 : _.property) === "disabled" ? "row-header-cell" : "", or = (_, D, z) => {
2941
- let B = _;
2942
- if ((z == null ? void 0 : z.columnType) === "Date") {
2934
+ }, nr = ({ row: y, rowIndex: O }) => O % 2 === 0 ? "default-row" : "special-row", sr = ({ column: y }) => (y == null ? void 0 : y.property) === "disabled" ? "row-header-cell" : "", or = (y, O, A) => {
2935
+ let B = y;
2936
+ if ((A == null ? void 0 : A.columnType) === "Date") {
2943
2937
  if (!B || B === "" || B === null || B === void 0)
2944
2938
  B = "";
2945
2939
  else {
2946
2940
  const Z = me(B, ["YYYY-MM-DD", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
2947
2941
  B = Z.isValid() ? Z.format("YYYY-MM-DD") : "";
2948
2942
  }
2949
- D[z.prop] = B;
2943
+ O[A.prop] = B;
2950
2944
  }
2951
- C("cellChange", D, z, B);
2952
- }, lr = (_) => _ == null ? void 0 : _.toLocaleString("zh-CN", {
2945
+ C("cellChange", O, A, B);
2946
+ }, lr = (y) => y == null ? void 0 : y.toLocaleString("zh-CN", {
2953
2947
  minimumFractionDigits: 2,
2954
2948
  maximumFractionDigits: 2
2955
- }), rr = (_) => {
2956
- const { columns: D, data: z } = _, B = [];
2957
- return D.forEach((Z, e2) => {
2949
+ }), rr = (y) => {
2950
+ const { columns: O, data: A } = y, B = [];
2951
+ return O.forEach((Z, e2) => {
2958
2952
  var o2, a2;
2959
2953
  if (e2 === 0) {
2960
2954
  B[e2] = "合计";
@@ -2962,7 +2956,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2962
2956
  }
2963
2957
  const r2 = Z.property, K = (a2 = (o2 = t.columns) == null ? void 0 : o2.filter((F) => F == null ? void 0 : F.showSummary)) == null ? void 0 : a2.map((F) => F.prop);
2964
2958
  if (K != null && K.includes(r2)) {
2965
- const F = z == null ? void 0 : z.map((u2) => Number(u2[r2]));
2959
+ const F = A == null ? void 0 : A.map((u2) => Number(u2[r2]));
2966
2960
  if (F.every((u2) => isNaN(u2)))
2967
2961
  B[e2] = "N/A";
2968
2962
  else {
@@ -2978,28 +2972,28 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
2978
2972
  };
2979
2973
  U2(
2980
2974
  () => t == null ? void 0 : t.isClearSelection,
2981
- async (_) => {
2982
- var D;
2983
- _ && (await O0(), (D = g.value) == null || D.clearSelection());
2975
+ async (y) => {
2976
+ var O;
2977
+ y && (await O0(), (O = g.value) == null || O.clearSelection());
2984
2978
  },
2985
2979
  { immediate: !0 }
2986
2980
  );
2987
2981
  const It = i2(() => {
2988
- var D, z;
2989
- const _ = (D = u.value) == null ? void 0 : D.find((B) => B == null ? void 0 : B.isMainKey);
2990
- return _ || ((z = u.value) == null ? void 0 : z[0]);
2982
+ var O, A;
2983
+ const y = (O = u.value) == null ? void 0 : O.find((B) => B == null ? void 0 : B.isMainKey);
2984
+ return y || ((A = u.value) == null ? void 0 : A[0]);
2991
2985
  }), ar = i2(() => {
2992
- const _ = [], D = (z) => {
2993
- (z || []).forEach((B) => {
2994
- B != null && B.children && B.children.length > 0 ? D(B.children) : _.push(B);
2986
+ const y = [], O = (A) => {
2987
+ (A || []).forEach((B) => {
2988
+ B != null && B.children && B.children.length > 0 ? O(B.children) : y.push(B);
2995
2989
  });
2996
2990
  };
2997
- return D(u.value), _;
2991
+ return O(u.value), y;
2998
2992
  });
2999
- return (_, D) => {
2993
+ return (y, O) => {
3000
2994
  var K, o2, a2, F, u2, P2, K2;
3001
- const z = Q("el-icon"), B = Q("svg-icon"), Z = Q("el-table-column"), e2 = Q("el-table"), r2 = Q("el-pagination");
3002
- return y(), E("div", {
2995
+ const A = Q("el-icon"), B = Q("svg-icon"), Z = Q("el-table-column"), e2 = Q("el-table"), r2 = Q("el-pagination");
2996
+ return _(), E("div", {
3003
2997
  class: "table-content-show",
3004
2998
  ref_key: "tableOuterRef",
3005
2999
  ref: v
@@ -3010,16 +3004,16 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3010
3004
  columns: u.value
3011
3005
  }, {
3012
3006
  headerButton: G(() => [
3013
- C2(_.$slots, "headerButton", {
3007
+ C2(y.$slots, "headerButton", {
3014
3008
  buttons: M.value,
3015
3009
  columns: u.value
3016
3010
  }, void 0, !0)
3017
3011
  ]),
3018
3012
  _: 3
3019
3013
  }, 8, ["buttons", "columns"]),
3020
- C2(_.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
3021
- n.isCardViewport ? (y(), E("div", Tg, [
3022
- (y(!0), E(M2, null, V2(f.value, (x2) => (y(), q(gg, {
3014
+ C2(y.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
3015
+ n.isCardViewport ? (_(), E("div", Tg, [
3016
+ (_(!0), E(M2, null, V2(f.value, (x2) => (_(), q(gg, {
3023
3017
  key: x2 == null ? void 0 : x2.id,
3024
3018
  showTag: !1
3025
3019
  }, {
@@ -3033,16 +3027,16 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3033
3027
  ])
3034
3028
  ];
3035
3029
  }),
3036
- status: G(() => D[6] || (D[6] = [
3030
+ status: G(() => O[6] || (O[6] = [
3037
3031
  G0("已完成")
3038
3032
  ])),
3039
3033
  content: G(() => {
3040
3034
  var D2;
3041
3035
  return [
3042
- (y(!0), E(M2, null, V2((D2 = ar.value) == null ? void 0 : D2.filter((b2) => {
3036
+ (_(!0), E(M2, null, V2((D2 = ar.value) == null ? void 0 : D2.filter((b2) => {
3043
3037
  var B2;
3044
3038
  return (b2 == null ? void 0 : b2.prop) !== "operate" && (b2 == null ? void 0 : b2.prop) !== ((B2 = It.value) == null ? void 0 : B2.prop);
3045
- }), (b2) => (y(), E("div", {
3039
+ }), (b2) => (_(), E("div", {
3046
3040
  class: "card-content",
3047
3041
  key: b2 == null ? void 0 : b2.prop
3048
3042
  }, [
@@ -3050,7 +3044,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3050
3044
  title: b2 == null ? void 0 : b2.label
3051
3045
  }, [
3052
3046
  G0(I2(b2 == null ? void 0 : b2.label), 1),
3053
- D[7] || (D[7] = n2("span", { style: { "margin-left": "3px" } }, ":", -1))
3047
+ O[7] || (O[7] = n2("span", { style: { "margin-left": "3px" } }, ":", -1))
3054
3048
  ], 8, Vg),
3055
3049
  n2("span", {
3056
3050
  title: x2 == null ? void 0 : x2[b2 == null ? void 0 : b2.prop]
@@ -3062,13 +3056,13 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3062
3056
  var D2, b2;
3063
3057
  return [
3064
3058
  n2("div", Eg, [
3065
- (D2 = n.rowButton) != null && D2.find((B2) => (B2 == null ? void 0 : B2.label) === "编辑") ? (y(), q(B, {
3059
+ (D2 = n.rowButton) != null && D2.find((B2) => (B2 == null ? void 0 : B2.label) === "编辑") ? (_(), q(B, {
3066
3060
  key: 0,
3067
3061
  onClick: (B2) => w("编辑", x2, { extra: { label: "编辑" } }),
3068
3062
  name: "card-edit",
3069
3063
  style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
3070
3064
  }, null, 8, ["onClick"])) : c2("", !0),
3071
- (b2 = n.rowButton) != null && b2.find((B2) => (B2 == null ? void 0 : B2.label) === "删除") ? (y(), q(B, {
3065
+ (b2 = n.rowButton) != null && b2.find((B2) => (B2 == null ? void 0 : B2.label) === "删除") ? (_(), q(B, {
3072
3066
  key: 1,
3073
3067
  onClick: (B2) => w("删除", x2, { extra: { label: "删除" } }),
3074
3068
  name: "card-delete",
@@ -3079,7 +3073,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3079
3073
  }),
3080
3074
  _: 2
3081
3075
  }, 1024))), 128))
3082
- ])) : (y(), q(e2, {
3076
+ ])) : (_(), q(e2, {
3083
3077
  border: !0,
3084
3078
  "highlight-current-row": "",
3085
3079
  class: "table-wrap",
@@ -3103,7 +3097,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3103
3097
  "cell-class-name": sr,
3104
3098
  onCellMouseEnter: l2,
3105
3099
  onCellMouseLeave: s2,
3106
- onContextmenu: D[3] || (D[3] = xe(() => {
3100
+ onContextmenu: O[3] || (O[3] = xe(() => {
3107
3101
  }, ["prevent"])),
3108
3102
  "row-key": "id",
3109
3103
  "tree-props": { children: "children", hasChildren: "hasChildren" },
@@ -3114,17 +3108,17 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3114
3108
  empty: G(() => [
3115
3109
  n2("div", {
3116
3110
  class: "ss-empty-wrapper",
3117
- onMouseenter: D[1] || (D[1] = (x2) => N.value = !0),
3118
- onMouseleave: D[2] || (D[2] = (x2) => N.value = !1)
3111
+ onMouseenter: O[1] || (O[1] = (x2) => N.value = !0),
3112
+ onMouseleave: O[2] || (O[2] = (x2) => N.value = !1)
3119
3113
  }, [
3120
- D[5] || (D[5] = n2("div", { class: "ss-empty-text" }, "暂无数据", -1)),
3121
- O.value ? i3((y(), E("span", {
3114
+ O[5] || (O[5] = n2("div", { class: "ss-empty-text" }, "暂无数据", -1)),
3115
+ D.value ? i3((_(), E("span", {
3122
3116
  key: 0,
3123
3117
  title: "新增行",
3124
3118
  class: "ss-empty-add",
3125
- onClick: D[0] || (D[0] = xe((x2) => Lt({ id: "__empty__" }, 0), ["stop"]))
3119
+ onClick: O[0] || (O[0] = xe((x2) => Lt({ id: "__empty__" }, 0), ["stop"]))
3126
3120
  }, [
3127
- t2(z, { size: 14 }, {
3121
+ t2(A, { size: 14 }, {
3128
3122
  default: G(() => [
3129
3123
  t2(I0(G6))
3130
3124
  ]),
@@ -3138,7 +3132,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3138
3132
  default: G(() => {
3139
3133
  var x2, D2, b2, B2, A0, w0;
3140
3134
  return [
3141
- O.value ? (y(), q(Z, {
3135
+ D.value ? (_(), q(Z, {
3142
3136
  key: 0,
3143
3137
  width: 55,
3144
3138
  fixed: "",
@@ -3158,7 +3152,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3158
3152
  style: { cursor: "pointer" },
3159
3153
  onClick: xe(($0) => Lt(H, x0), ["stop"])
3160
3154
  }, [
3161
- t2(z, { size: 12 }, {
3155
+ t2(A, { size: 12 }, {
3162
3156
  default: G(() => [
3163
3157
  t2(I0(G6))
3164
3158
  ]),
@@ -3170,7 +3164,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3170
3164
  style: { cursor: "pointer" },
3171
3165
  onClick: xe(($0) => Oe(H, x0), ["stop"])
3172
3166
  }, [
3173
- t2(z, { size: 12 }, {
3167
+ t2(A, { size: 12 }, {
3174
3168
  default: G(() => [
3175
3169
  t2(I0(Tr))
3176
3170
  ]),
@@ -3178,19 +3172,19 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3178
3172
  })
3179
3173
  ], 8, _g)
3180
3174
  ], 512), [
3181
- [a6, (H == null ? void 0 : H.id) === A.value]
3175
+ [a6, (H == null ? void 0 : H.id) === V.value]
3182
3176
  ])
3183
3177
  ]),
3184
3178
  _: 1
3185
3179
  })) : c2("", !0),
3186
- n.allowSelect && n.isEditViewport ? (y(), q(Z, {
3180
+ n.allowSelect && n.isEditViewport ? (_(), q(Z, {
3187
3181
  key: 1,
3188
3182
  type: "selection",
3189
3183
  width: (x2 = n.columns) != null && x2.some((H) => H == null ? void 0 : H.showSummary) ? 55 : 38,
3190
3184
  fixed: "",
3191
3185
  selectable: $
3192
3186
  }, null, 8, ["width"])) : c2("", !0),
3193
- t != null && t.showIndex && !((D2 = t == null ? void 0 : t.tableData) != null && D2.some((H) => H == null ? void 0 : H.children)) && ((B2 = (b2 = t == null ? void 0 : t.columns) == null ? void 0 : b2[0]) == null ? void 0 : B2.prop) !== "disabled" ? (y(), q(Z, {
3187
+ t != null && t.showIndex && !((D2 = t == null ? void 0 : t.tableData) != null && D2.some((H) => H == null ? void 0 : H.children)) && ((B2 = (b2 = t == null ? void 0 : t.columns) == null ? void 0 : b2[0]) == null ? void 0 : B2.prop) !== "disabled" ? (_(), q(Z, {
3194
3188
  key: 2,
3195
3189
  type: "index",
3196
3190
  label: "序号",
@@ -3200,11 +3194,11 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3200
3194
  sortable: ""
3201
3195
  }, {
3202
3196
  default: G(({ row: H, column: x0, $index: $0 }) => [
3203
- n.isEditViewport ? c2("", !0) : (y(), E("span", yg, I2($0 + 1), 1))
3197
+ n.isEditViewport ? c2("", !0) : (_(), E("span", yg, I2($0 + 1), 1))
3204
3198
  ]),
3205
3199
  _: 1
3206
3200
  })) : c2("", !0),
3207
- (A0 = n.tableData) != null && A0.some((H) => H == null ? void 0 : H.children) && ((w0 = n.columns) == null ? void 0 : w0.length) > 0 ? (y(), q(Z, {
3201
+ (A0 = n.tableData) != null && A0.some((H) => H == null ? void 0 : H.children) && ((w0 = n.columns) == null ? void 0 : w0.length) > 0 ? (_(), q(Z, {
3208
3202
  key: 3,
3209
3203
  type: "index",
3210
3204
  label: "序号",
@@ -3213,28 +3207,28 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3213
3207
  align: "center"
3214
3208
  }, {
3215
3209
  default: G(({ row: H, column: x0, $index: $0 }) => [
3216
- n.isEditViewport ? c2("", !0) : (y(), E("span", Sg, I2($0 + 1), 1))
3210
+ n.isEditViewport ? c2("", !0) : (_(), E("span", Sg, I2($0 + 1), 1))
3217
3211
  ]),
3218
3212
  _: 1
3219
3213
  })) : c2("", !0),
3220
- (y(!0), E(M2, null, V2(u.value, (H, x0) => {
3214
+ (_(!0), E(M2, null, V2(u.value, (H, x0) => {
3221
3215
  var $0;
3222
- return y(), E(M2, null, [
3223
- ($0 = n.checkedColumns) != null && $0.includes(H == null ? void 0 : H.label) ? (y(), q(ug, {
3216
+ return _(), E(M2, null, [
3217
+ ($0 = n.checkedColumns) != null && $0.includes(H == null ? void 0 : H.label) ? (_(), q(ug, {
3224
3218
  key: 0,
3225
3219
  tableData: f.value,
3226
3220
  column: H,
3227
3221
  isEditViewport: n.isEditViewport,
3228
- onHandleColEditChange: P,
3222
+ onHandleColEditChange: z,
3229
3223
  onHandleColTypeChange: T
3230
3224
  }, {
3231
3225
  operateHeader: G(() => [
3232
- (H == null ? void 0 : H.label) === "操作" ? C2(_.$slots, "operateCol", { key: 0 }, void 0, !0) : c2("", !0)
3226
+ (H == null ? void 0 : H.label) === "操作" ? C2(y.$slots, "operateCol", { key: 0 }, void 0, !0) : c2("", !0)
3233
3227
  ]),
3234
3228
  content: G(({ row: g2, item: Z2, slotData: Ue, scope: cr, column: h0, columnProp: at, $index: hr }) => {
3235
3229
  var Oi, Mi, Ti, zi, Pi, Vi;
3236
3230
  return [
3237
- (g2 == null ? void 0 : g2.tableEditType) !== "edit" && (H == null ? void 0 : H.type) !== "operate" ? (y(), E("span", {
3231
+ (g2 == null ? void 0 : g2.tableEditType) !== "edit" && (H == null ? void 0 : H.type) !== "operate" ? (_(), E("span", {
3238
3232
  key: 0,
3239
3233
  class: "table-content",
3240
3234
  style: H0({
@@ -3250,9 +3244,9 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3250
3244
  });
3251
3245
  }
3252
3246
  }, [
3253
- _.$slots.content ? (y(), E(M2, { key: 0 }, [
3254
- ((Ti = n.columns) == null ? void 0 : Ti.findIndex((w2) => (w2 == null ? void 0 : w2.prop) === (H == null ? void 0 : H.prop))) >= ((g2 == null ? void 0 : g2.level) ?? -1) ? (y(), E("div", kg, [
3255
- C2(_.$slots, "content", {
3247
+ y.$slots.content ? (_(), E(M2, { key: 0 }, [
3248
+ ((Ti = n.columns) == null ? void 0 : Ti.findIndex((w2) => (w2 == null ? void 0 : w2.prop) === (H == null ? void 0 : H.prop))) >= ((g2 == null ? void 0 : g2.level) ?? -1) ? (_(), E("div", kg, [
3249
+ C2(y.$slots, "content", {
3256
3250
  row: g2,
3257
3251
  column: at ?? H,
3258
3252
  colIndex: x0,
@@ -3260,36 +3254,36 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3260
3254
  slotData: Ue
3261
3255
  }, void 0, !0)
3262
3256
  ])) : c2("", !0)
3263
- ], 64)) : ((zi = n.columns) == null ? void 0 : zi.findIndex((w2) => (w2 == null ? void 0 : w2.prop) === (H == null ? void 0 : H.prop))) >= ((g2 == null ? void 0 : g2.level) ?? -1) ? (y(), E(M2, { key: 1 }, [
3257
+ ], 64)) : ((zi = n.columns) == null ? void 0 : zi.findIndex((w2) => (w2 == null ? void 0 : w2.prop) === (H == null ? void 0 : H.prop))) >= ((g2 == null ? void 0 : g2.level) ?? -1) ? (_(), E(M2, { key: 1 }, [
3264
3258
  G0(I2(W(g2, H, Z2, Ue)), 1)
3265
3259
  ], 64)) : c2("", !0)
3266
3260
  ], 12, Cg)) : c2("", !0),
3267
- ((H == null ? void 0 : H.type) ?? "text") === "operate" ? (y(), E("span", {
3261
+ ((H == null ? void 0 : H.type) ?? "text") === "operate" ? (_(), E("span", {
3268
3262
  key: 1,
3269
3263
  class: "table-operate",
3270
3264
  style: H0({
3271
3265
  justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : H == null ? void 0 : H.align
3272
3266
  })
3273
3267
  }, [
3274
- C2(_.$slots, "actions", {
3268
+ C2(y.$slots, "actions", {
3275
3269
  item: g2,
3276
3270
  fIndex: hr
3277
3271
  }, void 0, !0),
3278
- n.isShowEdit ? (y(), E("span", {
3272
+ n.isShowEdit ? (_(), E("span", {
3279
3273
  key: 0,
3280
3274
  onClick: (w2) => l0(g2),
3281
3275
  class: "blue-table-operate table-operate-content"
3282
3276
  }, "编辑", 8, Dg)) : c2("", !0),
3283
- n.isShowDelete ? (y(), E("span", {
3277
+ n.isShowDelete ? (_(), E("span", {
3284
3278
  key: 1,
3285
3279
  onClick: (w2) => V0(g2),
3286
3280
  class: "red-table-operate table-operate-content"
3287
3281
  }, "删除", 8, Og)) : c2("", !0)
3288
3282
  ], 4)) : c2("", !0),
3289
- (g2 == null ? void 0 : g2.tableEditType) === "edit" ? (y(), E("span", Mg, [
3290
- (h0 == null ? void 0 : h0.property) === "disabled" || H != null && H.isReadonly ? (y(), E(M2, { key: 0 }, [
3283
+ (g2 == null ? void 0 : g2.tableEditType) === "edit" ? (_(), E("span", Mg, [
3284
+ (h0 == null ? void 0 : h0.property) === "disabled" || H != null && H.isReadonly ? (_(), E(M2, { key: 0 }, [
3291
3285
  G0(I2(g2[h0 == null ? void 0 : h0.property]), 1)
3292
- ], 64)) : (y(), q(g3((() => {
3286
+ ], 64)) : (_(), q(g3((() => {
3293
3287
  var Ai;
3294
3288
  const w2 = at ?? Z2 ?? H, P1 = g2 != null && g2[w2 == null ? void 0 : w2.prop] && Array.isArray(g2[w2.prop]) && ((Ai = g2[w2.prop]) != null && Ai.every((dr) => typeof dr == "Object")) ? "Upload" : ((w2 == null ? void 0 : w2.formType) ?? (w2 == null ? void 0 : w2.columnType)) === "" || !((w2 == null ? void 0 : w2.formType) ?? (w2 == null ? void 0 : w2.columnType)) ? "Input" : (w2 == null ? void 0 : w2.formType) ?? (w2 == null ? void 0 : w2.columnType);
3295
3289
  return Y2(P1);
@@ -3321,12 +3315,12 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3321
3315
  _: 3
3322
3316
  }, 8, ["data", "show-summary", "sum-text", "default-sort"])),
3323
3317
  n2("div", Bg, [
3324
- n.isCardViewport ? c2("", !0) : C2(_.$slots, "batchButton", {
3318
+ n.isCardViewport ? c2("", !0) : C2(y.$slots, "batchButton", {
3325
3319
  key: 0,
3326
3320
  buttons: h2.value,
3327
3321
  columns: u.value
3328
3322
  }, void 0, !0),
3329
- t != null && t.isShowPagination && n.tableData.length > 0 ? (y(), q(r2, {
3323
+ t != null && t.isShowPagination && n.tableData.length > 0 ? (_(), q(r2, {
3330
3324
  key: 1,
3331
3325
  onSizeChange: v2,
3332
3326
  onCurrentChange: ge,
@@ -3337,13 +3331,13 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3337
3331
  total: ((P2 = n.pageObj) == null ? void 0 : P2.total) ?? 0
3338
3332
  }, null, 8, ["current-page", "page-sizes", "page-size", "total"])) : c2("", !0)
3339
3333
  ]),
3340
- ((K2 = t == null ? void 0 : t.bottomButton) == null ? void 0 : K2.length) > 0 ? (y(), E("div", Lg, [
3341
- (y(!0), E(M2, null, V2(t == null ? void 0 : t.bottomButton, (x2, D2) => (y(), E("div", {
3334
+ ((K2 = t == null ? void 0 : t.bottomButton) == null ? void 0 : K2.length) > 0 ? (_(), E("div", Lg, [
3335
+ (_(!0), E(M2, null, V2(t == null ? void 0 : t.bottomButton, (x2, D2) => (_(), E("div", {
3342
3336
  key: D2,
3343
3337
  class: "table-child-button"
3344
3338
  }, [
3345
3339
  t2(be, {
3346
- onClickTrigger: D[4] || (D[4] = () => {
3340
+ onClickTrigger: O[4] || (O[4] = () => {
3347
3341
  }),
3348
3342
  modelValue: x2 == null ? void 0 : x2.label
3349
3343
  }, null, 8, ["modelValue"])
@@ -3360,7 +3354,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3360
3354
  modelValue: "删除本行",
3361
3355
  buttonType: ""
3362
3356
  }),
3363
- c.value ? (y(), q(be, {
3357
+ c.value ? (_(), q(be, {
3364
3358
  key: 0,
3365
3359
  emptyColor: !0,
3366
3360
  onClickTrigger: J2,
@@ -3372,12 +3366,12 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3372
3366
  ]),
3373
3367
  _: 1
3374
3368
  }, 8, ["style"]), [
3375
- [a6, r.value && O.value]
3369
+ [a6, r.value && D.value]
3376
3370
  ])
3377
3371
  ], 512);
3378
3372
  };
3379
3373
  }
3380
- }, Gg = /* @__PURE__ */ A2(Ig, [["__scopeId", "data-v-f13fbee6"]]), Rg = {
3374
+ }, Gg = /* @__PURE__ */ A2(Ig, [["__scopeId", "data-v-2cbbe6c9"]]), Rg = {
3381
3375
  __name: "index",
3382
3376
  props: {
3383
3377
  value: String,
@@ -3427,9 +3421,9 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3427
3421
  };
3428
3422
  return (r, a) => {
3429
3423
  var h, c, d, u, f, p, g;
3430
- return y(), E(M2, null, [
3424
+ return _(), E(M2, null, [
3431
3425
  C2(r.$slots, `${(h = t == null ? void 0 : t.content) == null ? void 0 : h.value}_tableHeader`),
3432
- (y(), q(Gg, {
3426
+ (_(), q(Gg, {
3433
3427
  columns: ((c = t == null ? void 0 : t.content) == null ? void 0 : c.columns) ?? [],
3434
3428
  tableData: i.value ?? [],
3435
3429
  checkedColumns: s.value,
@@ -3477,7 +3471,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3477
3471
  };
3478
3472
  return (a, h) => {
3479
3473
  const c = Q("el-cascader");
3480
- return y(), q(c, {
3474
+ return _(), q(c, {
3481
3475
  modelValue: i.value,
3482
3476
  "onUpdate:modelValue": h[0] || (h[0] = (d) => i.value = d),
3483
3477
  clearable: "",
@@ -3507,7 +3501,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3507
3501
  const e = n, t = I(e.value);
3508
3502
  return (i, s) => {
3509
3503
  const o = Q("el-option"), l = Q("el-select");
3510
- return y(), q(l, {
3504
+ return _(), q(l, {
3511
3505
  modelValue: t.value,
3512
3506
  "onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
3513
3507
  filterable: "",
@@ -3517,7 +3511,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3517
3511
  style: { width: "100%" }
3518
3512
  }, {
3519
3513
  default: G(() => [
3520
- (y(!0), E(M2, null, V2(e == null ? void 0 : e.content, (r) => (y(), q(o, {
3514
+ (_(!0), E(M2, null, V2(e == null ? void 0 : e.content, (r) => (_(), q(o, {
3521
3515
  key: r.value,
3522
3516
  label: r.label,
3523
3517
  value: r.value
@@ -3548,8 +3542,8 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3548
3542
  return ue(() => {
3549
3543
  }), (l, r) => {
3550
3544
  const a = Q("MenuItem", !0), h = Q("el-sub-menu"), c = Q("el-menu-item");
3551
- return y(!0), E(M2, null, V2(n.menuList, (d) => (y(), E(M2, null, [
3552
- d.show && d.children && d.children.length > 0 ? (y(), q(h, {
3545
+ return _(!0), E(M2, null, V2(n.menuList, (d) => (_(), E(M2, null, [
3546
+ d.show && d.children && d.children.length > 0 ? (_(), q(h, {
3553
3547
  index: d.path,
3554
3548
  key: d.path
3555
3549
  }, {
@@ -3576,7 +3570,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3576
3570
  ]), 1032, ["menuList"])
3577
3571
  ]),
3578
3572
  _: 2
3579
- }, 1032, ["index"])) : d.show ? (y(), q(c, {
3573
+ }, 1032, ["index"])) : d.show ? (_(), q(c, {
3580
3574
  index: d.path,
3581
3575
  key: d.path,
3582
3576
  onClick: (u) => i(d)
@@ -3634,7 +3628,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3634
3628
  }
3635
3629
  }), (C, k) => {
3636
3630
  const x = Q("el-sub-menu"), S = Q("el-menu-item"), L = Q("el-menu");
3637
- return y(), q(L, {
3631
+ return _(), q(L, {
3638
3632
  ref_key: "menuRef",
3639
3633
  ref: m,
3640
3634
  class: "menu-wrap",
@@ -3652,22 +3646,22 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3652
3646
  onSelect: f
3653
3647
  }, {
3654
3648
  default: G(() => [
3655
- (y(!0), E(M2, null, V2(n.menuList, (P) => (y(), E(M2, null, [
3656
- P.show && P.children && P.children.length > 0 ? (y(), q(x, {
3657
- index: P.path,
3658
- key: P.path,
3659
- style: H0(P.style)
3649
+ (_(!0), E(M2, null, V2(n.menuList, (z) => (_(), E(M2, null, [
3650
+ z.show && z.children && z.children.length > 0 ? (_(), q(x, {
3651
+ index: z.path,
3652
+ key: z.path,
3653
+ style: H0(z.style)
3660
3654
  }, {
3661
3655
  title: G(() => [
3662
3656
  t2(St, {
3663
- name: P.icon ?? ((P == null ? void 0 : P.level) <= 2 ? "default" : ""),
3657
+ name: z.icon ?? ((z == null ? void 0 : z.level) <= 2 ? "default" : ""),
3664
3658
  class: "menu-icon"
3665
3659
  }, null, 8, ["name"]),
3666
- C2(C.$slots, "title", { menu: P }, void 0, !0)
3660
+ C2(C.$slots, "title", { menu: z }, void 0, !0)
3667
3661
  ]),
3668
3662
  default: G(() => [
3669
3663
  t2(jg, {
3670
- menuList: P.children,
3664
+ menuList: z.children,
3671
3665
  onClickMenu: d
3672
3666
  }, ye({ _: 2 }, [
3673
3667
  V2(C.$slots, (T, j) => ({
@@ -3679,18 +3673,18 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3679
3673
  ]), 1032, ["menuList"])
3680
3674
  ]),
3681
3675
  _: 2
3682
- }, 1032, ["index", "style"])) : P.show ? (y(), q(S, {
3683
- index: P.path,
3684
- key: P.path,
3685
- style: H0(P.style),
3686
- onClick: (T) => d(P)
3676
+ }, 1032, ["index", "style"])) : z.show ? (_(), q(S, {
3677
+ index: z.path,
3678
+ key: z.path,
3679
+ style: H0(z.style),
3680
+ onClick: (T) => d(z)
3687
3681
  }, {
3688
3682
  title: G(() => [
3689
- C2(C.$slots, "title", { menu: P }, void 0, !0)
3683
+ C2(C.$slots, "title", { menu: z }, void 0, !0)
3690
3684
  ]),
3691
3685
  default: G(() => [
3692
3686
  t2(St, {
3693
- name: P.icon ?? ((P == null ? void 0 : P.level) <= 2 ? "default" : ""),
3687
+ name: z.icon ?? ((z == null ? void 0 : z.level) <= 2 ? "default" : ""),
3694
3688
  class: "menu-icon"
3695
3689
  }, null, 8, ["name"])
3696
3690
  ]),
@@ -3728,7 +3722,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3728
3722
  };
3729
3723
  return (s, o) => {
3730
3724
  const l = Q("el-date-picker");
3731
- return y(), q(l, {
3725
+ return _(), q(l, {
3732
3726
  "model-value": n.modelValue,
3733
3727
  "onUpdate:modelValue": i,
3734
3728
  type: "date",
@@ -3764,7 +3758,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3764
3758
  };
3765
3759
  return (o, l) => {
3766
3760
  const r = Q("el-date-picker");
3767
- return y(), q(r, {
3761
+ return _(), q(r, {
3768
3762
  "model-value": n.modelValue,
3769
3763
  "onUpdate:modelValue": i,
3770
3764
  type: "datetime",
@@ -3797,7 +3791,7 @@ const og = /* @__PURE__ */ A2(ng, [["render", sg]]), lg = { class: "extra-button
3797
3791
  const e = n, t = I(e.value);
3798
3792
  return (i, s) => {
3799
3793
  const o = Q("el-input");
3800
- return y(), q(o, {
3794
+ return _(), q(o, {
3801
3795
  modelValue: t.value,
3802
3796
  "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
3803
3797
  type: "textarea",
@@ -3847,7 +3841,7 @@ const Xg = { class: "docx-renderer" }, Qg = {
3847
3841
  renderComments: !1,
3848
3842
  renderAltChunks: !0
3849
3843
  });
3850
- }), (s, o) => (y(), E("div", Xg, [
3844
+ }), (s, o) => (_(), E("div", Xg, [
3851
3845
  n2("div", {
3852
3846
  ref_key: "docxPreview",
3853
3847
  ref: i,
@@ -3871,7 +3865,7 @@ const Xg = { class: "docx-renderer" }, Qg = {
3871
3865
  }).catch((l) => {
3872
3866
  console.log("预览失败", l);
3873
3867
  });
3874
- }), (s, o) => (y(), E("div", Zg, o[0] || (o[0] = [
3868
+ }), (s, o) => (_(), E("div", Zg, o[0] || (o[0] = [
3875
3869
  n2("div", { id: "excel" }, null, -1)
3876
3870
  ])));
3877
3871
  }
@@ -3910,14 +3904,14 @@ const Xg = { class: "docx-renderer" }, Qg = {
3910
3904
  }), (c, d) => {
3911
3905
  var g;
3912
3906
  const u = Q("el-table-column"), f = Q("el-table"), p = Q("el-pagination");
3913
- return y(), E("div", im, [
3907
+ return _(), E("div", im, [
3914
3908
  t2(f, {
3915
3909
  class: "csv-table",
3916
3910
  data: a.value,
3917
3911
  stripe: ""
3918
3912
  }, {
3919
3913
  default: G(() => [
3920
- (y(!0), E(M2, null, V2(l.value, (v) => (y(), q(u, {
3914
+ (_(!0), E(M2, null, V2(l.value, (v) => (_(), q(u, {
3921
3915
  key: v,
3922
3916
  prop: v,
3923
3917
  label: v
@@ -3971,15 +3965,15 @@ const Xg = { class: "docx-renderer" }, Qg = {
3971
3965
  }
3972
3966
  }), Vt(() => {
3973
3967
  i.value && URL.revokeObjectURL(i.value);
3974
- }), (o, l) => (y(), E("div", lm, [
3975
- s.value ? (y(), E("div", rm, l[0] || (l[0] = [
3968
+ }), (o, l) => (_(), E("div", lm, [
3969
+ s.value ? (_(), E("div", rm, l[0] || (l[0] = [
3976
3970
  n2("div", { class: "pdf-error-title" }, "证书附件加载失败", -1),
3977
3971
  n2("div", { class: "pdf-error-desc" }, "PDF 文件无法正常打开,请检查附件是否存在或稍后重试。", -1)
3978
- ]))) : i.value ? (y(), E("iframe", {
3972
+ ]))) : i.value ? (_(), E("iframe", {
3979
3973
  key: 1,
3980
3974
  src: i.value,
3981
3975
  class: "pdf-iframe"
3982
- }, null, 8, am)) : (y(), E("div", cm, "正在加载证书附件..."))
3976
+ }, null, 8, am)) : (_(), E("div", cm, "正在加载证书附件..."))
3983
3977
  ]));
3984
3978
  }
3985
3979
  }, dm = /* @__PURE__ */ A2(hm, [["__scopeId", "data-v-efbb83ba"]]);
@@ -5003,9 +4997,9 @@ class Xe {
5003
4997
  */
5004
4998
  extend(e, t = e) {
5005
4999
  if (e <= this.anchor && t >= this.anchor)
5006
- return V.range(e, t);
5000
+ return P.range(e, t);
5007
5001
  let i = Math.abs(e - this.anchor) > Math.abs(t - this.anchor) ? e : t;
5008
- return V.range(this.anchor, i);
5002
+ return P.range(this.anchor, i);
5009
5003
  }
5010
5004
  /**
5011
5005
  Compare this range to another range.
@@ -5026,7 +5020,7 @@ class Xe {
5026
5020
  static fromJSON(e) {
5027
5021
  if (!e || typeof e.anchor != "number" || typeof e.head != "number")
5028
5022
  throw new RangeError("Invalid JSON representation for SelectionRange");
5029
- return V.range(e.anchor, e.head);
5023
+ return P.range(e.anchor, e.head);
5030
5024
  }
5031
5025
  /**
5032
5026
  @internal
@@ -5035,7 +5029,7 @@ class Xe {
5035
5029
  return new Xe(e, t, i);
5036
5030
  }
5037
5031
  }
5038
- class V {
5032
+ class P {
5039
5033
  constructor(e, t) {
5040
5034
  this.ranges = e, this.mainIndex = t;
5041
5035
  }
@@ -5044,7 +5038,7 @@ class V {
5044
5038
  position for changes.
5045
5039
  */
5046
5040
  map(e, t = -1) {
5047
- return e.empty ? this : V.create(this.ranges.map((i) => i.map(e, t)), this.mainIndex);
5041
+ return e.empty ? this : P.create(this.ranges.map((i) => i.map(e, t)), this.mainIndex);
5048
5042
  }
5049
5043
  /**
5050
5044
  Compare this selection to another selection. By default, ranges
@@ -5073,13 +5067,13 @@ class V {
5073
5067
  holding only the main range from this selection.
5074
5068
  */
5075
5069
  asSingle() {
5076
- return this.ranges.length == 1 ? this : new V([this.main], 0);
5070
+ return this.ranges.length == 1 ? this : new P([this.main], 0);
5077
5071
  }
5078
5072
  /**
5079
5073
  Extend this selection with an extra range.
5080
5074
  */
5081
5075
  addRange(e, t = !0) {
5082
- return V.create([e].concat(this.ranges), t ? 0 : this.mainIndex + 1);
5076
+ return P.create([e].concat(this.ranges), t ? 0 : this.mainIndex + 1);
5083
5077
  }
5084
5078
  /**
5085
5079
  Replace a given range with another range, and then normalize the
@@ -5087,7 +5081,7 @@ class V {
5087
5081
  */
5088
5082
  replaceRange(e, t = this.mainIndex) {
5089
5083
  let i = this.ranges.slice();
5090
- return i[t] = e, V.create(i, this.mainIndex);
5084
+ return i[t] = e, P.create(i, this.mainIndex);
5091
5085
  }
5092
5086
  /**
5093
5087
  Convert this selection to an object that can be serialized to
@@ -5102,13 +5096,13 @@ class V {
5102
5096
  static fromJSON(e) {
5103
5097
  if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length)
5104
5098
  throw new RangeError("Invalid JSON representation for EditorSelection");
5105
- return new V(e.ranges.map((t) => Xe.fromJSON(t)), e.main);
5099
+ return new P(e.ranges.map((t) => Xe.fromJSON(t)), e.main);
5106
5100
  }
5107
5101
  /**
5108
5102
  Create a selection holding a single range.
5109
5103
  */
5110
5104
  static single(e, t = e) {
5111
- return new V([V.range(e, t)], 0);
5105
+ return new P([P.range(e, t)], 0);
5112
5106
  }
5113
5107
  /**
5114
5108
  Sort and merge the given set of ranges, creating a valid
@@ -5120,10 +5114,10 @@ class V {
5120
5114
  for (let i = 0, s = 0; s < e.length; s++) {
5121
5115
  let o = e[s];
5122
5116
  if (o.empty ? o.from <= i : o.from < i)
5123
- return V.normalized(e.slice(), t);
5117
+ return P.normalized(e.slice(), t);
5124
5118
  i = o.to;
5125
5119
  }
5126
- return new V(e, t);
5120
+ return new P(e, t);
5127
5121
  }
5128
5122
  /**
5129
5123
  Create a cursor selection range at the given position. You can
@@ -5149,10 +5143,10 @@ class V {
5149
5143
  let o = e[s], l = e[s - 1];
5150
5144
  if (o.empty ? o.from <= l.to : o.from < l.to) {
5151
5145
  let r = l.from, a = Math.max(o.to, l.to);
5152
- s <= t && t--, e.splice(--s, 2, o.anchor > o.head ? V.range(a, r) : V.range(r, a));
5146
+ s <= t && t--, e.splice(--s, 2, o.anchor > o.head ? P.range(a, r) : P.range(r, a));
5153
5147
  }
5154
5148
  }
5155
- return new V(e, t);
5149
+ return new P(e, t);
5156
5150
  }
5157
5151
  }
5158
5152
  function l8(n, e) {
@@ -5700,7 +5694,7 @@ function Y6(n, e, t) {
5700
5694
  let i = e.selection, s = vt(e.annotations);
5701
5695
  return e.userEvent && (s = s.concat(o0.userEvent.of(e.userEvent))), {
5702
5696
  changes: e.changes instanceof s0 ? e.changes : s0.of(e.changes || [], t, n.facet(c8)),
5703
- selection: i && (i instanceof V ? i : V.single(i.anchor, i.head)),
5697
+ selection: i && (i instanceof P ? i : P.single(i.anchor, i.head)),
5704
5698
  effects: vt(e.effects),
5705
5699
  annotations: s,
5706
5700
  scrollIntoView: !!e.scrollIntoView
@@ -5840,7 +5834,7 @@ class O2 {
5840
5834
  replaceSelection(e) {
5841
5835
  return typeof e == "string" && (e = this.toText(e)), this.changeByRange((t) => ({
5842
5836
  changes: { from: t.from, to: t.to, insert: e },
5843
- range: V.cursor(t.from + e.length)
5837
+ range: P.cursor(t.from + e.length)
5844
5838
  }));
5845
5839
  }
5846
5840
  /**
@@ -5865,7 +5859,7 @@ class O2 {
5865
5859
  }
5866
5860
  return {
5867
5861
  changes: s,
5868
- selection: V.create(o, t.mainIndex),
5862
+ selection: P.create(o, t.mainIndex),
5869
5863
  effects: l
5870
5864
  };
5871
5865
  }
@@ -5935,7 +5929,7 @@ class O2 {
5935
5929
  }
5936
5930
  return O2.create({
5937
5931
  doc: e.doc,
5938
- selection: V.fromJSON(e.selection),
5932
+ selection: P.fromJSON(e.selection),
5939
5933
  extensions: t.extensions ? s.concat([t.extensions]) : s
5940
5934
  });
5941
5935
  }
@@ -5945,7 +5939,7 @@ class O2 {
5945
5939
  transactions.
5946
5940
  */
5947
5941
  static create(e = {}) {
5948
- let t = v3.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof z2 ? e.doc : z2.of((e.doc || "").split(t.staticFacet(O2.lineSeparator) || $6)), s = e.selection ? e.selection instanceof V ? e.selection : V.single(e.selection.anchor, e.selection.head) : V.single(0);
5942
+ let t = v3.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof z2 ? e.doc : z2.of((e.doc || "").split(t.staticFacet(O2.lineSeparator) || $6)), s = e.selection ? e.selection instanceof P ? e.selection : P.single(e.selection.anchor, e.selection.head) : P.single(0);
5949
5943
  return l8(s, i.length), t.staticFacet(q6) || (s = s.asSingle()), new O2(t, i, s, t.dynamicSlots.map(() => null), (o, l) => l.create(o), null);
5950
5944
  }
5951
5945
  /**
@@ -6050,7 +6044,7 @@ class O2 {
6050
6044
  break;
6051
6045
  r = a;
6052
6046
  }
6053
- return l == r ? null : V.range(l + i, r + i);
6047
+ return l == r ? null : P.range(l + i, r + i);
6054
6048
  }
6055
6049
  }
6056
6050
  O2.allowMultipleSelections = q6;
@@ -6971,17 +6965,17 @@ function Lm(n, e, t, i, s, o, l, r) {
6971
6965
  if (s == "nearest")
6972
6966
  e.top < u.top ? (m = e.top - (u.top + l), t > 0 && e.bottom > u.bottom + m && (m = e.bottom - u.bottom + l)) : e.bottom > u.bottom && (m = e.bottom - u.bottom + l, t < 0 && e.top - m < u.top && (m = e.top - (u.top + l)));
6973
6967
  else {
6974
- let b = e.bottom - e.top, O = u.bottom - u.top;
6975
- m = (s == "center" && b <= O ? e.top + b / 2 - O / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - O + l) - u.top;
6968
+ let b = e.bottom - e.top, D = u.bottom - u.top;
6969
+ m = (s == "center" && b <= D ? e.top + b / 2 - D / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - D + l) - u.top;
6976
6970
  }
6977
6971
  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 || m)
6978
6972
  if (f)
6979
6973
  h.scrollBy(v, m);
6980
6974
  else {
6981
- let b = 0, O = 0;
6975
+ let b = 0, D = 0;
6982
6976
  if (m) {
6983
6977
  let C = c.scrollTop;
6984
- c.scrollTop += m / g, O = (c.scrollTop - C) * g;
6978
+ c.scrollTop += m / g, D = (c.scrollTop - C) * g;
6985
6979
  }
6986
6980
  if (v) {
6987
6981
  let C = c.scrollLeft;
@@ -6989,10 +6983,10 @@ function Lm(n, e, t, i, s, o, l, r) {
6989
6983
  }
6990
6984
  e = {
6991
6985
  left: e.left - b,
6992
- top: e.top - O,
6986
+ top: e.top - D,
6993
6987
  right: e.right - b,
6994
- bottom: e.bottom - O
6995
- }, b && Math.abs(b - v) < 1 && (i = "nearest"), O && Math.abs(O - m) < 1 && (s = "nearest");
6988
+ bottom: e.bottom - D
6989
+ }, b && Math.abs(b - v) < 1 && (i = "nearest"), D && Math.abs(D - m) < 1 && (s = "nearest");
6996
6990
  }
6997
6991
  if (f)
6998
6992
  break;
@@ -8434,7 +8428,7 @@ function tv(n, e, t, i, s) {
8434
8428
  let c = f0(n.text, l, a.forward(s, t));
8435
8429
  (c < a.from || c > a.to) && (c = h), I8 = n.text.slice(Math.min(l, c), Math.max(l, c));
8436
8430
  let d = r == (s ? e.length - 1 : 0) ? null : e[r + (s ? 1 : -1)];
8437
- return d && c == h && d.level + (s ? 0 : 1) < a.level ? V.cursor(d.side(!s, t) + n.from, d.forward(s, t) ? 1 : -1, d.level) : V.cursor(c + n.from, a.forward(s, t) ? -1 : 1, a.level);
8431
+ return d && c == h && d.level + (s ? 0 : 1) < a.level ? P.cursor(d.side(!s, t) + n.from, d.forward(s, t) ? 1 : -1, d.level) : P.cursor(c + n.from, a.forward(s, t) ? -1 : 1, a.level);
8438
8432
  }
8439
8433
  function iv(n, e, t) {
8440
8434
  for (let i = e; i < t; i++) {
@@ -8459,7 +8453,7 @@ class xt {
8459
8453
  return e.empty ? this : new xt(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
8460
8454
  }
8461
8455
  clip(e) {
8462
- return this.range.to <= e.doc.length ? this : new xt(V.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
8456
+ return this.range.to <= e.doc.length ? this : new xt(P.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
8463
8457
  }
8464
8458
  }
8465
8459
  const L1 = /* @__PURE__ */ _2.define({ map: (n, e) => n.map(e) }), Y8 = /* @__PURE__ */ _2.define();
@@ -8752,8 +8746,8 @@ class cn extends G2 {
8752
8746
  k.breakAtStart ? x.breakAfter = 1 : k.content.length && x.merge(x.length, x.length, k.content[0], !1, k.openStart, 0) && (x.breakAfter = k.content[0].breakAfter, k.content.shift()), C.content.length && x.merge(0, 0, C.content[C.content.length - 1], !0, 0, C.openEnd) && C.content.pop(), u = C.content.concat(x).concat(k.content);
8753
8747
  } else
8754
8748
  ({ content: u, breakAtStart: f, openStart: p, openEnd: g } = Jt.build(this.view.state.doc, c, d, this.decorations, this.dynamicDecorationMap));
8755
- let { i: v, off: m } = o.findPos(h, 1), { i: b, off: O } = o.findPos(a, -1);
8756
- D8(this, b, O, v, m, u, f, p, g);
8749
+ let { i: v, off: m } = o.findPos(h, 1), { i: b, off: D } = o.findPos(a, -1);
8750
+ D8(this, b, D, v, m, u, f, p, g);
8757
8751
  }
8758
8752
  i && this.fixCompositionDOM(i);
8759
8753
  }
@@ -9124,7 +9118,7 @@ function hv(n, e) {
9124
9118
  function dv(n, e, t = 1) {
9125
9119
  let i = n.charCategorizer(e), s = n.doc.lineAt(e), o = e - s.from;
9126
9120
  if (s.length == 0)
9127
- return V.cursor(e);
9121
+ return P.cursor(e);
9128
9122
  o == 0 ? t = 1 : o == s.length && (t = -1);
9129
9123
  let l = o, r = o;
9130
9124
  t < 0 ? l = f0(s.text, o, !1) : r = f0(s.text, o);
@@ -9141,7 +9135,7 @@ function dv(n, e, t = 1) {
9141
9135
  break;
9142
9136
  r = h;
9143
9137
  }
9144
- return V.range(l + s.from, r + s.from);
9138
+ return P.range(l + s.from, r + s.from);
9145
9139
  }
9146
9140
  function uv(n, e) {
9147
9141
  return e.left > n ? e.left - n : Math.max(0, n - e.right);
@@ -9165,10 +9159,10 @@ function f4(n, e, t) {
9165
9159
  for (let v = 0; v < g.length; v++) {
9166
9160
  let m = g[v];
9167
9161
  s && p6(s, m) && (m = hn(dn(m, s.bottom), s.top));
9168
- let b = uv(e, m), O = fv(t, m);
9169
- if (b == 0 && O == 0)
9162
+ let b = uv(e, m), D = fv(t, m);
9163
+ if (b == 0 && D == 0)
9170
9164
  return p.nodeType == 3 ? un(p, e, t) : f4(p, e, t);
9171
- (!i || l > O || l == O && o > b) && (i = p, s = m, o = b, l = O, r = b ? e < m.left ? v > 0 : v < g.length - 1 : !0), b == 0 ? t > m.bottom && (!c || c.bottom < m.bottom) ? (a = p, c = m) : t < m.top && (!d || d.top > m.top) && (h = p, d = m) : c && p6(c, m) ? c = dn(c, m.bottom) : d && p6(d, m) && (d = hn(d, m.top));
9165
+ (!i || l > D || l == D && o > b) && (i = p, s = m, o = b, l = D, r = b ? e < m.left ? v > 0 : v < g.length - 1 : !0), b == 0 ? t > m.bottom && (!c || c.bottom < m.bottom) ? (a = p, c = m) : t < m.top && (!d || d.top > m.top) && (h = p, d = m) : c && p6(c, m) ? c = dn(c, m.bottom) : d && p6(d, m) && (d = hn(d, m.top));
9172
9166
  }
9173
9167
  }
9174
9168
  if (c && c.bottom >= t ? (i = a, s = c) : d && d.top <= t && (i = h, s = d), !i)
@@ -9239,14 +9233,14 @@ function eo(n, e, t, i = -1) {
9239
9233
  return u > a.top + a.height / 2 ? a.to : a.from;
9240
9234
  ({ node: m, offset: b } = f4(C.dom, c, d));
9241
9235
  }
9242
- let O = n.docView.nearest(m);
9243
- if (!O)
9236
+ let D = n.docView.nearest(m);
9237
+ if (!D)
9244
9238
  return null;
9245
- if (O.isWidget && ((o = O.dom) === null || o === void 0 ? void 0 : o.nodeType) == 1) {
9246
- let C = O.dom.getBoundingClientRect();
9247
- return e.y < C.top || e.y <= C.bottom && e.x <= (C.left + C.right) / 2 ? O.posAtStart : O.posAtEnd;
9239
+ if (D.isWidget && ((o = D.dom) === null || o === void 0 ? void 0 : o.nodeType) == 1) {
9240
+ let C = D.dom.getBoundingClientRect();
9241
+ return e.y < C.top || e.y <= C.bottom && e.x <= (C.left + C.right) / 2 ? D.posAtStart : D.posAtEnd;
9248
9242
  } else
9249
- return O.localPosFromDOM(m, b) + O.posAtStart;
9243
+ return D.localPosFromDOM(m, b) + D.posAtStart;
9250
9244
  }
9251
9245
  function fn(n, e, t, i, s) {
9252
9246
  let o = Math.round((i - e.left) * n.defaultCharacterWidth);
@@ -9315,9 +9309,9 @@ function mv(n, e, t, i) {
9315
9309
  y: (o.top + o.bottom) / 2
9316
9310
  });
9317
9311
  if (a != null)
9318
- return V.cursor(a, t ? -1 : 1);
9312
+ return P.cursor(a, t ? -1 : 1);
9319
9313
  }
9320
- return V.cursor(t ? s.to : s.from, t ? -1 : 1);
9314
+ return P.cursor(t ? s.to : s.from, t ? -1 : 1);
9321
9315
  }
9322
9316
  function pn(n, e, t, i) {
9323
9317
  let s = n.state.doc.lineAt(e.head), o = n.bidiSpans(s), l = n.textDirectionAt(s.from);
@@ -9350,7 +9344,7 @@ function vv(n, e, t) {
9350
9344
  function wv(n, e, t, i) {
9351
9345
  let s = e.head, o = t ? 1 : -1;
9352
9346
  if (s == (t ? n.state.doc.length : 0))
9353
- return V.cursor(s, e.assoc);
9347
+ return P.cursor(s, e.assoc);
9354
9348
  let l = e.goalColumn, r, a = n.contentDOM.getBoundingClientRect(), h = n.coordsAtPos(s, e.assoc || -1), c = n.documentTop;
9355
9349
  if (h)
9356
9350
  l == null && (l = h.left - a.left), r = o < 0 ? h.top : h.bottom;
@@ -9363,7 +9357,7 @@ function wv(n, e, t, i) {
9363
9357
  let p = r + (u + f) * o, g = eo(n, { x: d, y: p }, !1, o);
9364
9358
  if (p < a.top || p > a.bottom || (o < 0 ? g < s : g > s)) {
9365
9359
  let v = n.docView.coordsForChar(g), m = !v || p < v.top ? -1 : 1;
9366
- return V.cursor(g, m, void 0, l);
9360
+ return P.cursor(g, m, void 0, l);
9367
9361
  }
9368
9362
  }
9369
9363
  }
@@ -9383,7 +9377,7 @@ function r3(n, e, t) {
9383
9377
  }
9384
9378
  function g6(n, e, t) {
9385
9379
  let i = r3(n.state.facet(J4).map((s) => s(n)), t.from, e.head > t.from ? -1 : 1);
9386
- return i == t.from ? t : V.cursor(i, i < t.from ? 1 : -1);
9380
+ return i == t.from ? t : P.cursor(i, i < t.from ? 1 : -1);
9387
9381
  }
9388
9382
  const Ft = "￿";
9389
9383
  class xv {
@@ -9474,7 +9468,7 @@ class _v {
9474
9468
  let d = Math.min(a, h), u = Math.max(a, h), f = c.from - d, p = c.to - u;
9475
9469
  (f == 0 || f == 1 || d == 0) && (p == 0 || p == -1 || u == e.state.doc.length) && (a = 0, h = e.state.doc.length);
9476
9470
  }
9477
- this.newSel = V.single(h, a);
9471
+ this.newSel = P.single(h, a);
9478
9472
  }
9479
9473
  }
9480
9474
  }
@@ -9492,12 +9486,12 @@ function to(n, e) {
9492
9486
  } else i && (!n.hasFocus && n.state.facet(we) || i.main.eq(s)) && (i = null);
9493
9487
  if (!t && !i)
9494
9488
  return !1;
9495
- 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) } : (X.mac || X.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 = V.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: z2.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 = {
9489
+ 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) } : (X.mac || X.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 = P.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: z2.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 = {
9496
9490
  from: s.from,
9497
9491
  to: s.to,
9498
9492
  insert: n.state.doc.slice(s.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, s.to))
9499
9493
  } : X.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
9500
- ` && n.lineWrapping && (i && (i = V.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: z2.of([" "]) }), t)
9494
+ ` && n.lineWrapping && (i && (i = P.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: z2.of([" "]) }), t)
9501
9495
  return ei(n, t, i, o);
9502
9496
  if (i && !i.main.eq(s)) {
9503
9497
  let l = !1, r = "select";
@@ -9546,7 +9540,7 @@ function yv(n, e, t) {
9546
9540
  let m = s.changes({ from: v, to: g, insert: e.insert }), b = p.to - o.to;
9547
9541
  return {
9548
9542
  changes: m,
9549
- range: a ? V.range(Math.max(0, a.anchor + b), Math.max(0, a.head + b)) : p.map(m)
9543
+ range: a ? P.range(Math.max(0, a.anchor + b), Math.max(0, a.head + b)) : p.map(m)
9550
9544
  };
9551
9545
  });
9552
9546
  } else
@@ -9591,7 +9585,7 @@ function kv(n, e) {
9591
9585
  if (n.length == 0)
9592
9586
  return null;
9593
9587
  let t = n[0].pos, i = n.length == 2 ? n[1].pos : t;
9594
- return t > -1 && i > -1 ? V.single(t + e, i + e) : null;
9588
+ return t > -1 && i > -1 ? P.single(t + e, i + e) : null;
9595
9589
  }
9596
9590
  class Dv {
9597
9591
  setSelectionOrigin(e) {
@@ -9740,14 +9734,14 @@ class zv {
9740
9734
  let s = e.ranges[i], o = null;
9741
9735
  if (s.empty) {
9742
9736
  let l = r3(this.atoms, s.from, 0);
9743
- l != s.from && (o = V.cursor(l, -1));
9737
+ l != s.from && (o = P.cursor(l, -1));
9744
9738
  } else {
9745
9739
  let l = r3(this.atoms, s.from, -1), r = r3(this.atoms, s.to, 1);
9746
- (l != s.from || r != s.to) && (o = V.range(s.from == s.anchor ? l : r, s.from == s.head ? l : r));
9740
+ (l != s.from || r != s.to) && (o = P.range(s.from == s.anchor ? l : r, s.from == s.head ? l : r));
9747
9741
  }
9748
9742
  o && (t || (t = e.ranges.slice()), t[i] = o);
9749
9743
  }
9750
- return t ? V.create(t, e.mainIndex) : e;
9744
+ return t ? P.create(t, e.mainIndex) : e;
9751
9745
  }
9752
9746
  select(e) {
9753
9747
  let { view: t } = this, i = this.skipAtoms(this.style.get(e, this.extend, this.multiple));
@@ -9821,14 +9815,14 @@ function oo(n, e) {
9821
9815
  let d = t.toText((l ? o.line(s++).text : e) + t.lineBreak);
9822
9816
  return {
9823
9817
  changes: { from: c.from, insert: d },
9824
- range: V.cursor(h.from + d.length)
9818
+ range: P.cursor(h.from + d.length)
9825
9819
  };
9826
9820
  });
9827
9821
  } else l ? i = t.changeByRange((a) => {
9828
9822
  let h = o.line(s++);
9829
9823
  return {
9830
9824
  changes: { from: a.from, to: a.to, insert: h.text },
9831
- range: V.cursor(a.from + h.length)
9825
+ range: P.cursor(a.from + h.length)
9832
9826
  };
9833
9827
  }) : i = t.replaceSelection(o);
9834
9828
  n.dispatch(i, {
@@ -9868,12 +9862,12 @@ J0.mousedown = (n, e) => {
9868
9862
  };
9869
9863
  function vn(n, e, t, i) {
9870
9864
  if (i == 1)
9871
- return V.cursor(e, t);
9865
+ return P.cursor(e, t);
9872
9866
  if (i == 2)
9873
9867
  return dv(n.state, e, t);
9874
9868
  {
9875
9869
  let s = e0.find(n.docView, e), o = n.state.doc.lineAt(s ? s.posAtEnd : e), l = s ? s.posAtStart : o.from, r = s ? s.posAtEnd : o.to;
9876
- return r < n.state.doc.length && r == o.to && r++, V.range(l, r);
9870
+ return r < n.state.doc.length && r == o.to && r++, P.range(l, r);
9877
9871
  }
9878
9872
  }
9879
9873
  let wn = (n, e, t) => e >= t.top && e <= t.bottom && n >= t.left && n <= t.right;
@@ -9914,9 +9908,9 @@ function Iv(n, e) {
9914
9908
  let a = xn(n, o), h, c = vn(n, a.pos, a.bias, i);
9915
9909
  if (t.pos != a.pos && !l) {
9916
9910
  let d = vn(n, t.pos, t.bias, i), u = Math.min(d.from, c.from), f = Math.max(d.to, c.to);
9917
- c = u < c.from ? V.range(u, f) : V.range(f, u);
9911
+ c = u < c.from ? P.range(u, f) : P.range(f, u);
9918
9912
  }
9919
- return l ? s.replaceRange(s.main.extend(c.from, c.to)) : r && i == 1 && s.ranges.length > 1 && (h = Gv(s, a.pos)) ? h : r ? s.addRange(c) : V.create([c]);
9913
+ return l ? s.replaceRange(s.main.extend(c.from, c.to)) : r && i == 1 && s.ranges.length > 1 && (h = Gv(s, a.pos)) ? h : r ? s.addRange(c) : P.create([c]);
9920
9914
  }
9921
9915
  };
9922
9916
  }
@@ -9924,7 +9918,7 @@ function Gv(n, e) {
9924
9918
  for (let t = 0; t < n.ranges.length; t++) {
9925
9919
  let { from: i, to: s } = n.ranges[t];
9926
9920
  if (i <= e && s >= e)
9927
- return V.create(n.ranges.slice(0, t).concat(n.ranges.slice(t + 1)), n.mainIndex == t ? 0 : n.mainIndex - (n.mainIndex > t ? 1 : 0));
9921
+ return P.create(n.ranges.slice(0, t).concat(n.ranges.slice(t + 1)), n.mainIndex == t ? 0 : n.mainIndex - (n.mainIndex > t ? 1 : 0));
9928
9922
  }
9929
9923
  return null;
9930
9924
  }
@@ -9934,7 +9928,7 @@ J0.dragstart = (n, e) => {
9934
9928
  let s = n.docView.nearest(e.target);
9935
9929
  if (s && s.isWidget) {
9936
9930
  let o = s.posAtStart, l = o + s.length;
9937
- (o >= t.to || l <= t.from) && (t = V.range(o, l));
9931
+ (o >= t.to || l <= t.from) && (t = P.range(o, l));
9938
9932
  }
9939
9933
  }
9940
9934
  let { inputState: i } = n;
@@ -10674,8 +10668,8 @@ class Mn {
10674
10668
  }
10675
10669
  Mt && (h |= 2);
10676
10670
  }
10677
- let O = !this.viewportIsAppropriate(this.viewport, c) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
10678
- return O && (h & 2 && (h |= this.updateScaler()), this.viewport = this.getViewport(c, this.scrollTarget), h |= this.updateForViewport()), (h & 2 || O) && 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;
10671
+ let D = !this.viewportIsAppropriate(this.viewport, c) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
10672
+ 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;
10679
10673
  }
10680
10674
  get visibleTop() {
10681
10675
  return this.scaler.fromDOM(this.pixelViewport.top);
@@ -10745,9 +10739,9 @@ class Mn {
10745
10739
  }
10746
10740
  let v = ew(e, (m) => m.from >= u.from && m.to <= u.to && Math.abs(m.from - c) < o && Math.abs(m.to - d) < o && !g.some((b) => m.from < b && m.to > b));
10747
10741
  if (!v) {
10748
- if (d < u.to && t && i && t.visibleRanges.some((O) => O.from <= d && O.to >= d)) {
10749
- let O = t.moveToLineBoundary(V.cursor(d), !1, !0).head;
10750
- O > c && (d = O);
10742
+ if (d < u.to && t && i && t.visibleRanges.some((D) => D.from <= d && D.to >= d)) {
10743
+ let D = t.moveToLineBoundary(P.cursor(d), !1, !0).head;
10744
+ D > c && (d = D);
10751
10745
  }
10752
10746
  let m = this.gapSize(u, c, d, f), b = i || m < 2e6 ? m : 2e6;
10753
10747
  v = new m6(c, d, m, b);
@@ -10763,8 +10757,8 @@ class Mn {
10763
10757
  if (i) {
10764
10758
  let g = s / this.heightOracle.lineLength * this.heightOracle.lineHeight, v, m;
10765
10759
  if (u != null) {
10766
- let b = N1(d, u), O = ((this.visibleBottom - this.visibleTop) / 2 + g) / c.height;
10767
- v = b - O, m = b + O;
10760
+ let b = N1(d, u), D = ((this.visibleBottom - this.visibleTop) / 2 + g) / c.height;
10761
+ v = b - D, m = b + D;
10768
10762
  } else
10769
10763
  v = (this.visibleTop - c.top - g) / c.height, m = (this.visibleBottom - c.top + g) / c.height;
10770
10764
  f = R1(d, v), p = R1(d, m);
@@ -10773,12 +10767,12 @@ class Mn {
10773
10767
  if (g > 2e6)
10774
10768
  for (let x of e)
10775
10769
  x.from >= c.from && x.from < c.to && x.size != x.displaySize && x.from * this.heightOracle.charWidth + m < this.pixelViewport.left && (m = x.size - x.displaySize);
10776
- let b = this.pixelViewport.left + m, O = this.pixelViewport.right + m, C, k;
10770
+ let b = this.pixelViewport.left + m, D = this.pixelViewport.right + m, C, k;
10777
10771
  if (u != null) {
10778
- let x = N1(d, u), S = ((O - b) / 2 + v) / g;
10772
+ let x = N1(d, u), S = ((D - b) / 2 + v) / g;
10779
10773
  C = x - S, k = x + S;
10780
10774
  } else
10781
- C = (b - v) / g, k = (O + v) / g;
10775
+ C = (b - v) / g, k = (D + v) / g;
10782
10776
  f = R1(d, C), p = R1(d, k);
10783
10777
  }
10784
10778
  f > c.from && a(c.from, f, c, d), p < c.to && a(p, c.to, c, d);
@@ -11478,13 +11472,13 @@ class ow {
11478
11472
  let h = { from: r, to: a, insert: z2.of(i.text.split(`
11479
11473
  `)) };
11480
11474
  if (h.from == this.from && o < this.from ? h.from = o : h.to == this.to && o > this.to && (h.to = o), h.from == h.to && !h.insert.length) {
11481
- let c = V.single(this.toEditorPos(i.selectionStart), this.toEditorPos(i.selectionEnd));
11475
+ let c = P.single(this.toEditorPos(i.selectionStart), this.toEditorPos(i.selectionEnd));
11482
11476
  c.main.eq(s) || e.dispatch({ selection: c, userEvent: "select" });
11483
11477
  return;
11484
11478
  }
11485
11479
  if ((X.mac || X.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert: z2.of([i.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
11486
11480
  let c = this.to - this.from + (h.to - h.from + h.insert.length);
11487
- ei(e, h, V.single(this.toEditorPos(i.selectionStart, c), this.toEditorPos(i.selectionEnd, c)));
11481
+ ei(e, h, P.single(this.toEditorPos(i.selectionStart, c), this.toEditorPos(i.selectionEnd, c)));
11488
11482
  }
11489
11483
  this.pendingContextChange && (this.revertPending(e.state), this.setSelection(e.state));
11490
11484
  }, this.handlers.characterboundsupdate = (i) => {
@@ -11707,7 +11701,7 @@ class Y {
11707
11701
  for (let u of e) {
11708
11702
  if (d && (d = d.map(u.changes)), u.scrollIntoView) {
11709
11703
  let { main: f } = u.state.selection;
11710
- d = new xt(f.empty ? f : V.cursor(f.head, f.head > f.anchor ? -1 : 1));
11704
+ d = new xt(f.empty ? f : P.cursor(f.head, f.head > f.anchor ? -1 : 1));
11711
11705
  }
11712
11706
  for (let f of u.effects)
11713
11707
  f.is(L1) && (d = f.value.clip(this.state));
@@ -12045,7 +12039,7 @@ class Y {
12045
12039
  */
12046
12040
  visualLineSide(e, t) {
12047
12041
  let i = this.bidiSpans(e), s = this.textDirectionAt(e.from), o = i[t ? i.length - 1 : 0];
12048
- return V.cursor(o.side(t, s) + e.from, o.forward(!t, s) ? 1 : -1);
12042
+ return P.cursor(o.side(t, s) + e.from, o.forward(!t, s) ? 1 : -1);
12049
12043
  }
12050
12044
  /**
12051
12045
  Move to the next line boundary in the given direction. If
@@ -12225,7 +12219,7 @@ class Y {
12225
12219
  cause it to scroll the given position or range into view.
12226
12220
  */
12227
12221
  static scrollIntoView(e, t = {}) {
12228
- return L1.of(new xt(typeof e == "number" ? V.cursor(e) : e, t.y, t.x, t.yMargin, t.xMargin));
12222
+ return L1.of(new xt(typeof e == "number" ? P.cursor(e) : e, t.y, t.x, t.yMargin, t.xMargin));
12229
12223
  }
12230
12224
  /**
12231
12225
  Return an effect that resets the editor to its current (at the
@@ -12241,7 +12235,7 @@ class Y {
12241
12235
  */
12242
12236
  scrollSnapshot() {
12243
12237
  let { scrollTop: e, scrollLeft: t } = this.scrollDOM, i = this.viewState.scrollAnchorAt(e);
12244
- return L1.of(new xt(V.cursor(i.from), "start", "start", i.top - e, t, !0));
12238
+ return L1.of(new xt(P.cursor(i.from), "start", "start", i.top - e, t, !0));
12245
12239
  }
12246
12240
  /**
12247
12241
  Enable or disable tab-focus mode, which disables key bindings
@@ -12427,8 +12421,8 @@ function uw(n, e = rw) {
12427
12421
  s(b, !0), f[b] || (f[b] = {
12428
12422
  preventDefault: !0,
12429
12423
  stopPropagation: !1,
12430
- run: [(O) => {
12431
- let C = ze = { view: O, prefix: b, scope: l };
12424
+ run: [(D) => {
12425
+ let C = ze = { view: D, prefix: b, scope: l };
12432
12426
  return setTimeout(() => {
12433
12427
  ze == C && (ze = null);
12434
12428
  }, dw), !0;
@@ -12534,9 +12528,9 @@ function fw(n, e, t) {
12534
12528
  return [];
12535
12529
  let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection == $2.LTR, l = n.contentDOM, r = l.getBoundingClientRect(), a = vo(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 = p4(n, i, 1), p = p4(n, s, -1), g = f.type == _0.Text ? f : null, v = p.type == _0.Text ? p : null;
12536
12530
  if (g && (n.lineWrapping || f.widgetLineBreaks) && (g = Bn(n, i, 1, g)), v && (n.lineWrapping || p.widgetLineBreaks) && (v = Bn(n, s, -1, v)), g && v && g.from == v.from && g.to == v.to)
12537
- return b(O(t.from, t.to, g));
12531
+ return b(D(t.from, t.to, g));
12538
12532
  {
12539
- let k = g ? O(t.from, null, g) : C(f, !1), x = v ? O(null, t.to, v) : C(p, !0), S = [];
12533
+ let k = g ? D(t.from, null, g) : C(f, !1), x = v ? D(null, t.to, v) : C(p, !0), S = [];
12540
12534
  return (g || f).to < (v || p).from - (g && v ? 1 : 0) || f.widgetLineBreaks > 1 && k.bottom + n.defaultLineHeight / 2 < x.top ? S.push(m(d, k.bottom, u, x.top)) : k.bottom < x.top && n.elementAtHeight((k.bottom + x.top) / 2).type == _0.Text && (k.bottom = x.top = (k.bottom + x.top) / 2), b(k).concat(S).concat(b(x));
12541
12535
  }
12542
12536
  function m(k, x, S, L) {
@@ -12544,20 +12538,20 @@ function fw(n, e, t) {
12544
12538
  }
12545
12539
  function b({ top: k, bottom: x, horizontal: S }) {
12546
12540
  let L = [];
12547
- for (let P = 0; P < S.length; P += 2)
12548
- L.push(m(S[P], k, S[P + 1], x));
12541
+ for (let z = 0; z < S.length; z += 2)
12542
+ L.push(m(S[z], k, S[z + 1], x));
12549
12543
  return L;
12550
12544
  }
12551
- function O(k, x, S) {
12552
- let L = 1e9, P = -1e9, T = [];
12553
- function j(A, N, l2, s2, S2) {
12554
- let m2 = n.coordsAtPos(A, A == S.to ? -2 : 2), E2 = n.coordsAtPos(l2, l2 == S.from ? 2 : -2);
12555
- !m2 || !E2 || (L = Math.min(m2.top, E2.top, L), P = Math.max(m2.bottom, E2.bottom, P), S2 == $2.LTR ? T.push(o && N ? d : m2.left, o && s2 ? u : E2.right) : T.push(!o && s2 ? d : E2.left, !o && N ? u : m2.right));
12545
+ function D(k, x, S) {
12546
+ let L = 1e9, z = -1e9, T = [];
12547
+ function j(V, N, l2, s2, S2) {
12548
+ let m2 = n.coordsAtPos(V, V == S.to ? -2 : 2), E2 = n.coordsAtPos(l2, l2 == S.from ? 2 : -2);
12549
+ !m2 || !E2 || (L = Math.min(m2.top, E2.top, L), z = Math.max(m2.bottom, E2.bottom, z), S2 == $2.LTR ? T.push(o && N ? d : m2.left, o && s2 ? u : E2.right) : T.push(!o && s2 ? d : E2.left, !o && N ? u : m2.right));
12556
12550
  }
12557
12551
  let M = k ?? S.from, h2 = x ?? S.to;
12558
- for (let A of n.visibleRanges)
12559
- if (A.to > M && A.from < h2)
12560
- for (let N = Math.max(A.from, M), l2 = Math.min(A.to, h2); ; ) {
12552
+ for (let V of n.visibleRanges)
12553
+ if (V.to > M && V.from < h2)
12554
+ for (let N = Math.max(V.from, M), l2 = Math.min(V.to, h2); ; ) {
12561
12555
  let s2 = n.state.doc.lineAt(N);
12562
12556
  for (let S2 of n.bidiSpans(s2)) {
12563
12557
  let m2 = S2.from + s2.from, E2 = S2.to + s2.from;
@@ -12568,7 +12562,7 @@ function fw(n, e, t) {
12568
12562
  if (N = s2.to + 1, N >= l2)
12569
12563
  break;
12570
12564
  }
12571
- return T.length == 0 && j(M, k == null, h2, x == null, n.textDirection), { top: L, bottom: P, horizontal: T };
12565
+ return T.length == 0 && j(M, k == null, h2, x == null, n.textDirection), { top: L, bottom: z, horizontal: T };
12572
12566
  }
12573
12567
  function C(k, x) {
12574
12568
  let S = r.top + (x ? k.top : k.bottom);
@@ -12654,7 +12648,7 @@ const vw = /* @__PURE__ */ wo({
12654
12648
  for (let s of e.selection.ranges) {
12655
12649
  let o = s == e.selection.main;
12656
12650
  if (s.empty || t.drawRangeCursor) {
12657
- let l = o ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", r = s.empty ? s : V.cursor(s.head, s.head > s.anchor ? -1 : 1);
12651
+ let l = o ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", r = s.empty ? s : P.cursor(s.head, s.head > s.anchor ? -1 : 1);
12658
12652
  for (let a of _1.forRange(n, l, r))
12659
12653
  i.push(a);
12660
12654
  }
@@ -12987,17 +12981,17 @@ function Lw(n, e, t) {
12987
12981
  let l = Math.min(e.off, t.off), r = Math.max(e.off, t.off);
12988
12982
  for (let a = i; a <= s; a++) {
12989
12983
  let h = n.doc.line(a);
12990
- h.length <= r && o.push(V.range(h.from + l, h.to + r));
12984
+ h.length <= r && o.push(P.range(h.from + l, h.to + r));
12991
12985
  }
12992
12986
  } else {
12993
12987
  let l = Math.min(e.col, t.col), r = Math.max(e.col, t.col);
12994
12988
  for (let a = i; a <= s; a++) {
12995
12989
  let h = n.doc.line(a), c = Z6(h.text, l, n.tabSize, !0);
12996
12990
  if (c < 0)
12997
- o.push(V.cursor(h.to));
12991
+ o.push(P.cursor(h.to));
12998
12992
  else {
12999
12993
  let d = Z6(h.text, r, n.tabSize);
13000
- o.push(V.range(h.from + c, h.from + d));
12994
+ o.push(P.range(h.from + c, h.from + d));
13001
12995
  }
13002
12996
  }
13003
12997
  }
@@ -13025,7 +13019,7 @@ function Iw(n, e) {
13025
13019
  if (!r)
13026
13020
  return i;
13027
13021
  let a = Lw(n.state, t, r);
13028
- return a.length ? l ? V.create(a.concat(i.ranges)) : V.create(a) : i;
13022
+ return a.length ? l ? P.create(a.concat(i.ranges)) : P.create(a) : i;
13029
13023
  }
13030
13024
  } : null;
13031
13025
  }
@@ -13227,7 +13221,7 @@ const x6 = /* @__PURE__ */ J.define({
13227
13221
  c.style.top = Nt;
13228
13222
  continue;
13229
13223
  }
13230
- let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, v = (e = Rn.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, m = h.offset || Uw, b = this.view.textDirection == $2.LTR, O = u.width > i.right - i.left ? b ? i.left : i.right - u.width : b ? Math.max(i.left, Math.min(d.left - (f ? 14 : 0) + m.x, i.right - g)) : Math.min(Math.max(i.left, d.left - g + (f ? 14 : 0) - m.x), i.right - g), C = this.above[r];
13224
+ let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, g = u.right - u.left, v = (e = Rn.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, m = h.offset || Uw, b = this.view.textDirection == $2.LTR, D = u.width > i.right - i.left ? b ? i.left : i.right - u.width : b ? Math.max(i.left, Math.min(d.left - (f ? 14 : 0) + m.x, i.right - g)) : Math.min(Math.max(i.left, d.left - g + (f ? 14 : 0) - m.x), i.right - g), C = this.above[r];
13231
13225
  !a.strictSide && (C ? d.top - v - p - m.y < i.top : d.bottom + v + p + m.y > i.bottom) && C == i.bottom - d.bottom > d.top - i.top && (C = this.above[r] = !C);
13232
13226
  let k = (C ? d.top - i.top : i.bottom - d.bottom) - p;
13233
13227
  if (k < v && h.resize !== !1) {
@@ -13237,15 +13231,15 @@ const x6 = /* @__PURE__ */ J.define({
13237
13231
  }
13238
13232
  Rn.set(h, v), c.style.height = (v = k) / o + "px";
13239
13233
  } else c.style.height && (c.style.height = "");
13240
- let x = C ? d.top - v - p - m.y : d.bottom + p + m.y, S = O + g;
13234
+ let x = C ? d.top - v - p - m.y : d.bottom + p + m.y, S = D + g;
13241
13235
  if (h.overlap !== !0)
13242
13236
  for (let L of l)
13243
- L.left < S && L.right > O && L.top < x + v && L.bottom > x && (x = C ? L.top - v - 2 - p : L.bottom + p + 2);
13244
- if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", Nn(c, (O - n.parent.left) / s)) : (c.style.top = x / o + "px", Nn(c, O / s)), f) {
13245
- let L = d.left + (b ? m.x : -m.x) - (O + 14 - 7);
13237
+ L.left < S && L.right > D && L.top < x + v && L.bottom > x && (x = C ? L.top - v - 2 - p : L.bottom + p + 2);
13238
+ if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", Nn(c, (D - n.parent.left) / s)) : (c.style.top = x / o + "px", Nn(c, D / s)), f) {
13239
+ let L = d.left + (b ? m.x : -m.x) - (D + 14 - 7);
13246
13240
  f.style.left = L / s + "px";
13247
13241
  }
13248
- h.overlap !== !0 && l.push({ left: O, top: x, right: S, bottom: x + v }), c.classList.toggle("cm-tooltip-above", C), c.classList.toggle("cm-tooltip-below", !C), h.positioned && h.positioned(n.space);
13242
+ h.overlap !== !0 && l.push({ left: D, top: x, right: S, bottom: x + v }), c.classList.toggle("cm-tooltip-above", C), c.classList.toggle("cm-tooltip-below", !C), h.positioned && h.positioned(n.space);
13249
13243
  }
13250
13244
  }
13251
13245
  maybeMeasure() {
@@ -15043,29 +15037,29 @@ function ai(n) {
15043
15037
  function mx(n) {
15044
15038
  var e;
15045
15039
  let { buffer: t, nodeSet: i, maxBufferLength: s = Do, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new ri(t, t.length) : t, a = i.types, h = 0, c = 0;
15046
- function d(k, x, S, L, P, T) {
15047
- let { id: j, start: M, end: h2, size: A } = r, N = c, l2 = h;
15048
- for (; A < 0; )
15049
- if (r.next(), A == -1) {
15040
+ function d(k, x, S, L, z, T) {
15041
+ let { id: j, start: M, end: h2, size: V } = r, N = c, l2 = h;
15042
+ for (; V < 0; )
15043
+ if (r.next(), V == -1) {
15050
15044
  let Q2 = o[j];
15051
15045
  S.push(Q2), L.push(M - k);
15052
15046
  return;
15053
- } else if (A == -3) {
15047
+ } else if (V == -3) {
15054
15048
  h = j;
15055
15049
  return;
15056
- } else if (A == -4) {
15050
+ } else if (V == -4) {
15057
15051
  c = j;
15058
15052
  return;
15059
15053
  } else
15060
- throw new RangeError(`Unrecognized record size: ${A}`);
15054
+ throw new RangeError(`Unrecognized record size: ${V}`);
15061
15055
  let s2 = a[j], S2, m2, E2 = M - k;
15062
- if (h2 - M <= s && (m2 = v(r.pos - x, P))) {
15056
+ if (h2 - M <= s && (m2 = v(r.pos - x, z))) {
15063
15057
  let Q2 = new Uint16Array(m2.size - m2.skip), W2 = r.pos - m2.size, F2 = Q2.length;
15064
15058
  for (; r.pos > W2; )
15065
15059
  F2 = m(m2.start, Q2, F2);
15066
15060
  S2 = new Ne(Q2, h2 - m2.start, i), E2 = m2.start - k;
15067
15061
  } else {
15068
- let Q2 = r.pos - A;
15062
+ let Q2 = r.pos - V;
15069
15063
  r.next();
15070
15064
  let W2 = [], F2 = [], $ = j >= l ? j : -1, W = 0, y2 = h2;
15071
15065
  for (; r.pos > Q2; )
@@ -15079,62 +15073,62 @@ function mx(n) {
15079
15073
  S.push(S2), L.push(E2);
15080
15074
  }
15081
15075
  function u(k, x, S, L) {
15082
- let P = [], T = 0, j = -1;
15076
+ let z = [], T = 0, j = -1;
15083
15077
  for (; r.pos > x; ) {
15084
- let { id: M, start: h2, end: A, size: N } = r;
15078
+ let { id: M, start: h2, end: V, size: N } = r;
15085
15079
  if (N > 4)
15086
15080
  r.next();
15087
15081
  else {
15088
15082
  if (j > -1 && h2 < j)
15089
15083
  break;
15090
- j < 0 && (j = A - s), P.push(M, h2, A), T++, r.next();
15084
+ j < 0 && (j = V - s), z.push(M, h2, V), T++, r.next();
15091
15085
  }
15092
15086
  }
15093
15087
  if (T) {
15094
- let M = new Uint16Array(T * 4), h2 = P[P.length - 2];
15095
- for (let A = P.length - 3, N = 0; A >= 0; A -= 3)
15096
- M[N++] = P[A], M[N++] = P[A + 1] - h2, M[N++] = P[A + 2] - h2, M[N++] = N;
15097
- S.push(new Ne(M, P[2] - h2, i)), L.push(h2 - k);
15088
+ let M = new Uint16Array(T * 4), h2 = z[z.length - 2];
15089
+ for (let V = z.length - 3, N = 0; V >= 0; V -= 3)
15090
+ M[N++] = z[V], M[N++] = z[V + 1] - h2, M[N++] = z[V + 2] - h2, M[N++] = N;
15091
+ S.push(new Ne(M, z[2] - h2, i)), L.push(h2 - k);
15098
15092
  }
15099
15093
  }
15100
15094
  function f(k, x) {
15101
- return (S, L, P) => {
15095
+ return (S, L, z) => {
15102
15096
  let T = 0, j = S.length - 1, M, h2;
15103
15097
  if (j >= 0 && (M = S[j]) instanceof t0) {
15104
- if (!j && M.type == k && M.length == P)
15098
+ if (!j && M.type == k && M.length == z)
15105
15099
  return M;
15106
15100
  (h2 = M.prop(k2.lookAhead)) && (T = L[j] + M.length + h2);
15107
15101
  }
15108
- return g(k, S, L, P, T, x);
15102
+ return g(k, S, L, z, T, x);
15109
15103
  };
15110
15104
  }
15111
- function p(k, x, S, L, P, T, j, M, h2) {
15112
- let A = [], N = [];
15105
+ function p(k, x, S, L, z, T, j, M, h2) {
15106
+ let V = [], N = [];
15113
15107
  for (; k.length > L; )
15114
- A.push(k.pop()), N.push(x.pop() + S - P);
15115
- k.push(g(i.types[j], A, N, T - P, M - T, h2)), x.push(P - S);
15108
+ V.push(k.pop()), N.push(x.pop() + S - z);
15109
+ k.push(g(i.types[j], V, N, T - z, M - T, h2)), x.push(z - S);
15116
15110
  }
15117
- function g(k, x, S, L, P, T, j) {
15111
+ function g(k, x, S, L, z, T, j) {
15118
15112
  if (T) {
15119
15113
  let M = [k2.contextHash, T];
15120
15114
  j = j ? [M].concat(j) : [M];
15121
15115
  }
15122
- if (P > 25) {
15123
- let M = [k2.lookAhead, P];
15116
+ if (z > 25) {
15117
+ let M = [k2.lookAhead, z];
15124
15118
  j = j ? [M].concat(j) : [M];
15125
15119
  }
15126
15120
  return new t0(k, x, S, L, j);
15127
15121
  }
15128
15122
  function v(k, x) {
15129
- let S = r.fork(), L = 0, P = 0, T = 0, j = S.end - s, M = { size: 0, start: 0, skip: 0 };
15123
+ let S = r.fork(), L = 0, z = 0, T = 0, j = S.end - s, M = { size: 0, start: 0, skip: 0 };
15130
15124
  e: for (let h2 = S.pos - k; S.pos > h2; ) {
15131
- let A = S.size;
15132
- if (S.id == x && A >= 0) {
15133
- M.size = L, M.start = P, M.skip = T, T += 4, L += 4, S.next();
15125
+ let V = S.size;
15126
+ if (S.id == x && V >= 0) {
15127
+ M.size = L, M.start = z, M.skip = T, T += 4, L += 4, S.next();
15134
15128
  continue;
15135
15129
  }
15136
- let N = S.pos - A;
15137
- if (A < 0 || N < h2 || S.start < j)
15130
+ let N = S.pos - V;
15131
+ if (V < 0 || N < h2 || S.start < j)
15138
15132
  break;
15139
15133
  let l2 = S.id >= l ? 4 : 0, s2 = S.start;
15140
15134
  for (S.next(); S.pos > N; ) {
@@ -15146,12 +15140,12 @@ function mx(n) {
15146
15140
  else S.id >= l && (l2 += 4);
15147
15141
  S.next();
15148
15142
  }
15149
- P = s2, L += A, T += l2;
15143
+ z = s2, L += V, T += l2;
15150
15144
  }
15151
- return (x < 0 || L == k) && (M.size = L, M.start = P, M.skip = T), M.size > 4 ? M : void 0;
15145
+ return (x < 0 || L == k) && (M.size = L, M.start = z, M.skip = T), M.size > 4 ? M : void 0;
15152
15146
  }
15153
15147
  function m(k, x, S) {
15154
- let { id: L, start: P, end: T, size: j } = r;
15148
+ let { id: L, start: z, end: T, size: j } = r;
15155
15149
  if (r.next(), j >= 0 && L < l) {
15156
15150
  let M = S;
15157
15151
  if (j > 4) {
@@ -15159,15 +15153,15 @@ function mx(n) {
15159
15153
  for (; r.pos > h2; )
15160
15154
  S = m(k, x, S);
15161
15155
  }
15162
- x[--S] = M, x[--S] = T - k, x[--S] = P - k, x[--S] = L;
15156
+ x[--S] = M, x[--S] = T - k, x[--S] = z - k, x[--S] = L;
15163
15157
  } else j == -3 ? h = L : j == -4 && (c = L);
15164
15158
  return S;
15165
15159
  }
15166
- let b = [], O = [];
15160
+ let b = [], D = [];
15167
15161
  for (; r.pos > 0; )
15168
- d(n.start || 0, n.bufferStart || 0, b, O, -1, 0);
15169
- let C = (e = n.length) !== null && e !== void 0 ? e : b.length ? O[0] + b[0].length : 0;
15170
- return new t0(a[n.topID], b.reverse(), O.reverse(), C);
15162
+ d(n.start || 0, n.bufferStart || 0, b, D, -1, 0);
15163
+ let C = (e = n.length) !== null && e !== void 0 ? e : b.length ? D[0] + b[0].length : 0;
15164
+ return new t0(a[n.topID], b.reverse(), D.reverse(), C);
15171
15165
  }
15172
15166
  const Xn = /* @__PURE__ */ new WeakMap();
15173
15167
  function u3(n, e) {
@@ -15196,15 +15190,15 @@ function ci(n, e, t, i, s, o, l, r, a) {
15196
15190
  /* Balance.BranchFactor */
15197
15191
  ), d = [], u = [];
15198
15192
  function f(p, g, v, m, b) {
15199
- for (let O = v; O < m; ) {
15200
- let C = O, k = g[O], x = u3(n, p[O]);
15201
- for (O++; O < m; O++) {
15202
- let S = u3(n, p[O]);
15193
+ for (let D = v; D < m; ) {
15194
+ let C = D, k = g[D], x = u3(n, p[D]);
15195
+ for (D++; D < m; D++) {
15196
+ let S = u3(n, p[D]);
15203
15197
  if (x + S >= c)
15204
15198
  break;
15205
15199
  x += S;
15206
15200
  }
15207
- if (O == C + 1) {
15201
+ if (D == C + 1) {
15208
15202
  if (x > c) {
15209
15203
  let S = p[C];
15210
15204
  f(S.children, S.positions, 0, S.children.length, g[C] + b);
@@ -15212,8 +15206,8 @@ function ci(n, e, t, i, s, o, l, r, a) {
15212
15206
  }
15213
15207
  d.push(p[C]);
15214
15208
  } else {
15215
- let S = g[O - 1] + p[O - 1].length - k;
15216
- d.push(ci(n, p, g, C, O, k, S, null, a));
15209
+ let S = g[D - 1] + p[D - 1].length - k;
15210
+ d.push(ci(n, p, g, C, D, k, S, null, a));
15217
15211
  }
15218
15212
  u.push(k + b - o);
15219
15213
  }
@@ -15520,11 +15514,11 @@ class Cx {
15520
15514
  if (u && u.overlay) {
15521
15515
  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();
15522
15516
  for (let v = 0, m = r; ; v++) {
15523
- let b = v < u.overlay.length ? u.overlay[v] : null, O = b ? b.from + r : a, C = Math.max(t, m), k = Math.min(i, O);
15517
+ let b = v < u.overlay.length ? u.overlay[v] : null, D = b ? b.from + r : a, C = Math.max(t, m), k = Math.min(i, D);
15524
15518
  if (C < k && g)
15525
- for (; e.from < k && (this.highlightRange(e, C, k, s, o), this.startSpan(Math.min(k, e.to), h), !(e.to >= O || !e.nextSibling())); )
15519
+ for (; e.from < k && (this.highlightRange(e, C, k, s, o), this.startSpan(Math.min(k, e.to), h), !(e.to >= D || !e.nextSibling())); )
15526
15520
  ;
15527
- if (!b || O > i)
15521
+ if (!b || D > i)
15528
15522
  break;
15529
15523
  m = b.to + r, m > t && (this.highlightRange(f.cursor(), Math.max(t, b.from + r), Math.min(i, m), "", p), this.startSpan(Math.min(i, m), h));
15530
15524
  }
@@ -17378,7 +17372,7 @@ class T0 {
17378
17372
  };
17379
17373
  }
17380
17374
  static fromJSON(e) {
17381
- return new T0(e.changes && s0.fromJSON(e.changes), [], e.mapped && he.fromJSON(e.mapped), e.startSelection && V.fromJSON(e.startSelection), e.selectionsAfter.map(V.fromJSON));
17375
+ return new T0(e.changes && s0.fromJSON(e.changes), [], e.mapped && he.fromJSON(e.mapped), e.startSelection && P.fromJSON(e.startSelection), e.selectionsAfter.map(P.fromJSON));
17382
17376
  }
17383
17377
  // This does not check `addToHistory` and such, it assumes the
17384
17378
  // transaction needs to be converted to an item. Returns null when
@@ -17503,7 +17497,7 @@ const Bb = [
17503
17497
  { key: "Alt-u", mac: "Mod-Shift-u", run: Mb, preventDefault: !0 }
17504
17498
  ];
17505
17499
  function Et(n, e) {
17506
- return V.create(n.ranges.map(e), n.mainIndex);
17500
+ return P.create(n.ranges.map(e), n.mainIndex);
17507
17501
  }
17508
17502
  function pe(n, e) {
17509
17503
  return n.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
@@ -17513,7 +17507,7 @@ function Z0({ state: n, dispatch: e }, t) {
17513
17507
  return i.eq(n.selection, !0) ? !1 : (e(pe(n, i)), !0);
17514
17508
  }
17515
17509
  function n6(n, e) {
17516
- return V.cursor(e ? n.to : n.from);
17510
+ return P.cursor(e ? n.to : n.from);
17517
17511
  }
17518
17512
  function il(n, e) {
17519
17513
  return Z0(n, (t) => t.empty ? n.moveByChar(t, e) : n6(t, e));
@@ -17541,7 +17535,7 @@ function s6(n, e, t) {
17541
17535
  Ib(n, h, s) ? i = h : a = t ? h.to : h.from;
17542
17536
  }
17543
17537
  let o = i.type.prop(s), l, r;
17544
- return o && (l = t ? ae(n, i.from, 1) : ae(n, i.to, -1)) && l.matched ? r = t ? l.end.to : l.end.from : r = t ? i.to : i.from, V.cursor(r, t ? -1 : 1);
17538
+ return o && (l = t ? ae(n, i.from, 1) : ae(n, i.to, -1)) && l.matched ? r = t ? l.end.to : l.end.from : r = t ? i.to : i.from, P.cursor(r, t ? -1 : 1);
17545
17539
  }
17546
17540
  const Gb = (n) => Z0(n, (e) => s6(n.state, e, !v0(n))), Rb = (n) => Z0(n, (e) => s6(n.state, e, v0(n)));
17547
17541
  function ll(n, e) {
@@ -17586,11 +17580,11 @@ function We(n, e, t) {
17586
17580
  let i = n.lineBlockAt(e.head), s = n.moveToLineBoundary(e, t);
17587
17581
  if (s.head == e.head && s.head != (t ? i.to : i.from) && (s = n.moveToLineBoundary(e, t, !1)), !t && s.head == i.from && i.length) {
17588
17582
  let o = /^\s*/.exec(n.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length;
17589
- o && e.head != i.from + o && (s = V.cursor(i.from + o));
17583
+ o && e.head != i.from + o && (s = P.cursor(i.from + o));
17590
17584
  }
17591
17585
  return s;
17592
17586
  }
17593
- const Nb = (n) => Z0(n, (e) => We(n, e, !0)), $b = (n) => Z0(n, (e) => We(n, e, !1)), jb = (n) => Z0(n, (e) => We(n, e, !v0(n))), Wb = (n) => Z0(n, (e) => We(n, e, v0(n))), Ub = (n) => Z0(n, (e) => V.cursor(n.lineBlockAt(e.head).from, 1)), Fb = (n) => Z0(n, (e) => V.cursor(n.lineBlockAt(e.head).to, -1));
17587
+ const Nb = (n) => Z0(n, (e) => We(n, e, !0)), $b = (n) => Z0(n, (e) => We(n, e, !1)), jb = (n) => Z0(n, (e) => We(n, e, !v0(n))), Wb = (n) => Z0(n, (e) => We(n, e, v0(n))), Ub = (n) => Z0(n, (e) => P.cursor(n.lineBlockAt(e.head).from, 1)), Fb = (n) => Z0(n, (e) => P.cursor(n.lineBlockAt(e.head).to, -1));
17594
17588
  function qb(n, e, t) {
17595
17589
  let i = !1, s = Et(n.selection, (o) => {
17596
17590
  let l = ae(n, o.head, -1) || ae(n, o.head, 1) || o.head > 0 && ae(n, o.head - 1, 1) || o.head < n.doc.length && ae(n, o.head + 1, -1);
@@ -17598,7 +17592,7 @@ function qb(n, e, t) {
17598
17592
  return o;
17599
17593
  i = !0;
17600
17594
  let r = l.start.from == o.head ? l.end.to : l.end.from;
17601
- return V.cursor(r);
17595
+ return P.cursor(r);
17602
17596
  });
17603
17597
  return i ? (e(pe(n, s)), !0) : !1;
17604
17598
  }
@@ -17606,7 +17600,7 @@ const Yb = ({ state: n, dispatch: e }) => qb(n, e);
17606
17600
  function K0(n, e) {
17607
17601
  let t = Et(n.state.selection, (i) => {
17608
17602
  let s = e(i);
17609
- return V.range(i.anchor, s.head, s.goalColumn, s.bidiLevel || void 0);
17603
+ return P.range(i.anchor, s.head, s.goalColumn, s.bidiLevel || void 0);
17610
17604
  });
17611
17605
  return t.eq(n.state.selection) ? !1 : (n.dispatch(pe(n.state, t)), !0);
17612
17606
  }
@@ -17625,9 +17619,9 @@ const ml = (n) => gl(n, !1), vl = (n) => gl(n, !0);
17625
17619
  function wl(n, e) {
17626
17620
  return K0(n, (t) => n.moveVertically(t, e, cl(n).height));
17627
17621
  }
17628
- const rs = (n) => wl(n, !1), as = (n) => wl(n, !0), Zb = (n) => K0(n, (e) => We(n, e, !0)), e_ = (n) => K0(n, (e) => We(n, e, !1)), t_ = (n) => K0(n, (e) => We(n, e, !v0(n))), i_ = (n) => K0(n, (e) => We(n, e, v0(n))), n_ = (n) => K0(n, (e) => V.cursor(n.lineBlockAt(e.head).from)), s_ = (n) => K0(n, (e) => V.cursor(n.lineBlockAt(e.head).to)), cs = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: 0 })), !0), hs = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: n.doc.length })), !0), ds = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: n.selection.main.anchor, head: 0 })), !0), us = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), o_ = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), l_ = ({ state: n, dispatch: e }) => {
17629
- let t = o6(n).map(({ from: i, to: s }) => V.range(i, Math.min(s + 1, n.doc.length)));
17630
- return e(n.update({ selection: V.create(t), userEvent: "select" })), !0;
17622
+ const rs = (n) => wl(n, !1), as = (n) => wl(n, !0), Zb = (n) => K0(n, (e) => We(n, e, !0)), e_ = (n) => K0(n, (e) => We(n, e, !1)), t_ = (n) => K0(n, (e) => We(n, e, !v0(n))), i_ = (n) => K0(n, (e) => We(n, e, v0(n))), n_ = (n) => K0(n, (e) => P.cursor(n.lineBlockAt(e.head).from)), s_ = (n) => K0(n, (e) => P.cursor(n.lineBlockAt(e.head).to)), cs = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: 0 })), !0), hs = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: n.doc.length })), !0), ds = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: n.selection.main.anchor, head: 0 })), !0), us = ({ state: n, dispatch: e }) => (e(pe(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), o_ = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), l_ = ({ state: n, dispatch: e }) => {
17623
+ let t = o6(n).map(({ from: i, to: s }) => P.range(i, Math.min(s + 1, n.doc.length)));
17624
+ return e(n.update({ selection: P.create(t), userEvent: "select" })), !0;
17631
17625
  }, r_ = ({ state: n, dispatch: e }) => {
17632
17626
  let t = Et(n.selection, (i) => {
17633
17627
  let s = c0(n), o = s.resolveStack(i.from, 1);
@@ -17638,14 +17632,14 @@ const rs = (n) => wl(n, !1), as = (n) => wl(n, !0), Zb = (n) => K0(n, (e) => We(
17638
17632
  for (let l = o; l; l = l.next) {
17639
17633
  let { node: r } = l;
17640
17634
  if ((r.from < i.from && r.to >= i.to || r.to > i.to && r.from <= i.from) && l.next)
17641
- return V.range(r.to, r.from);
17635
+ return P.range(r.to, r.from);
17642
17636
  }
17643
17637
  return i;
17644
17638
  });
17645
17639
  return t.eq(n.selection) ? !1 : (e(pe(n, t)), !0);
17646
17640
  }, a_ = ({ state: n, dispatch: e }) => {
17647
17641
  let t = n.selection, i = null;
17648
- return t.ranges.length > 1 ? i = V.create([t.main]) : t.main.empty || (i = V.create([V.cursor(t.main.head)])), i ? (e(pe(n, i)), !0) : !1;
17642
+ return t.ranges.length > 1 ? i = P.create([t.main]) : t.main.empty || (i = P.create([P.cursor(t.main.head)])), i ? (e(pe(n, i)), !0) : !1;
17649
17643
  };
17650
17644
  function S1(n, e) {
17651
17645
  if (n.state.readOnly)
@@ -17657,7 +17651,7 @@ function S1(n, e) {
17657
17651
  a < l ? (t = "delete.backward", a = X1(n, a, !1)) : a > l && (t = "delete.forward", a = X1(n, a, !0)), l = Math.min(l, a), r = Math.max(r, a);
17658
17652
  } else
17659
17653
  l = X1(n, l, !1), r = X1(n, r, !0);
17660
- return l == r ? { range: o } : { changes: { from: l, to: r }, range: V.cursor(l, l < o.head ? -1 : 1) };
17654
+ return l == r ? { range: o } : { changes: { from: l, to: r }, range: P.cursor(l, l < o.head ? -1 : 1) };
17661
17655
  });
17662
17656
  return s.changes.empty ? !1 : (n.dispatch(i.update(s, {
17663
17657
  scrollIntoView: !0,
@@ -17712,7 +17706,7 @@ const xl = (n, e, t) => S1(n, (i) => {
17712
17706
  return !1;
17713
17707
  let t = n.changeByRange((i) => ({
17714
17708
  changes: { from: i.from, to: i.to, insert: z2.of(["", ""]) },
17715
- range: V.cursor(i.from)
17709
+ range: P.cursor(i.from)
17716
17710
  }));
17717
17711
  return e(n.update(t, { scrollIntoView: !0, userEvent: "input" })), !0;
17718
17712
  }, p_ = ({ state: n, dispatch: e }) => {
@@ -17724,7 +17718,7 @@ const xl = (n, e, t) => S1(n, (i) => {
17724
17718
  let s = i.from, o = n.doc.lineAt(s), l = s == o.from ? s - 1 : f0(o.text, s - o.from, !1) + o.from, r = s == o.to ? s + 1 : f0(o.text, s - o.from, !0) + o.from;
17725
17719
  return {
17726
17720
  changes: { from: l, to: r, insert: n.doc.slice(s, r).append(n.doc.slice(l, s)) },
17727
- range: V.cursor(r)
17721
+ range: P.cursor(r)
17728
17722
  };
17729
17723
  });
17730
17724
  return t.changes.empty ? !1 : (e(n.update(t, { scrollIntoView: !0, userEvent: "move.character" })), !0);
@@ -17753,17 +17747,17 @@ function Sl(n, e, t) {
17753
17747
  if (t) {
17754
17748
  i.push({ from: o.to, to: l.to }, { from: o.from, insert: l.text + n.lineBreak });
17755
17749
  for (let a of o.ranges)
17756
- s.push(V.range(Math.min(n.doc.length, a.anchor + r), Math.min(n.doc.length, a.head + r)));
17750
+ s.push(P.range(Math.min(n.doc.length, a.anchor + r), Math.min(n.doc.length, a.head + r)));
17757
17751
  } else {
17758
17752
  i.push({ from: l.from, to: o.from }, { from: o.to, insert: n.lineBreak + l.text });
17759
17753
  for (let a of o.ranges)
17760
- s.push(V.range(a.anchor - r, a.head - r));
17754
+ s.push(P.range(a.anchor - r, a.head - r));
17761
17755
  }
17762
17756
  }
17763
17757
  return i.length ? (e(n.update({
17764
17758
  changes: i,
17765
17759
  scrollIntoView: !0,
17766
- selection: V.create(s, n.selection.mainIndex),
17760
+ selection: P.create(s, n.selection.mainIndex),
17767
17761
  userEvent: "move.line"
17768
17762
  })), !0) : !1;
17769
17763
  }
@@ -17810,7 +17804,7 @@ function kl(n) {
17810
17804
  let d = ["", u1(e, c)];
17811
17805
  return a && d.push(u1(e, h.lineIndent(r.from, -1))), {
17812
17806
  changes: { from: o, to: l, insert: z2.of(d) },
17813
- range: V.cursor(o + 1 + d[1].length)
17807
+ range: P.cursor(o + 1 + d[1].length)
17814
17808
  };
17815
17809
  });
17816
17810
  return t(e.update(i, { scrollIntoView: !0, userEvent: "input" })), !0;
@@ -17827,7 +17821,7 @@ function gi(n, e) {
17827
17821
  let o = n.changes(s);
17828
17822
  return {
17829
17823
  changes: s,
17830
- range: V.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1))
17824
+ range: P.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1))
17831
17825
  };
17832
17826
  });
17833
17827
  }
@@ -18117,7 +18111,7 @@ function A4(n) {
18117
18111
  let v = f / 100;
18118
18112
  a && (v = v * (a == "-" ? -1 : 1) + r.number / l.doc.lines), f = Math.round(l.doc.lines * v);
18119
18113
  } else h && a && (f = f * (a == "-" ? -1 : 1) + r.number);
18120
- let p = l.doc.line(Math.max(1, Math.min(l.doc.lines, f))), g = V.cursor(p.from + Math.max(0, Math.min(u, p.length)));
18114
+ let p = l.doc.line(Math.max(1, Math.min(l.doc.lines, f))), g = P.cursor(p.from + Math.max(0, Math.min(u, p.length)));
18121
18115
  n.dispatch({
18122
18116
  effects: [e1.of(!1), Y.scrollIntoView(g.from, { y: "center" })],
18123
18117
  selection: g
@@ -18228,7 +18222,7 @@ const I_ = /* @__PURE__ */ i0.fromClass(class {
18228
18222
  ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
18229
18223
  ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
18230
18224
  }), R_ = ({ state: n, dispatch: e }) => {
18231
- let { selection: t } = n, i = V.create(t.ranges.map((s) => n.wordAt(s.head) || V.cursor(s.head)), t.mainIndex);
18225
+ let { selection: t } = n, i = P.create(t.ranges.map((s) => n.wordAt(s.head) || P.cursor(s.head)), t.mainIndex);
18232
18226
  return i.eq(t) ? !1 : (e(n.update({ selection: i })), !0);
18233
18227
  };
18234
18228
  function N_(n, e) {
@@ -18258,7 +18252,7 @@ const $_ = ({ state: n, dispatch: e }) => {
18258
18252
  return !1;
18259
18253
  let s = N_(n, i);
18260
18254
  return s ? (e(n.update({
18261
- selection: n.selection.addRange(V.range(s.from, s.to), !1),
18255
+ selection: n.selection.addRange(P.range(s.from, s.to), !1),
18262
18256
  effects: Y.scrollIntoView(s.to)
18263
18257
  })), !0) : !1;
18264
18258
  }, Bt = /* @__PURE__ */ J.define({
@@ -18491,7 +18485,7 @@ const H3 = /* @__PURE__ */ C1((n, { query: e }) => {
18491
18485
  let { to: t } = n.state.selection.main, i = e.nextMatch(n.state, t, t);
18492
18486
  if (!i)
18493
18487
  return !1;
18494
- let s = V.single(i.from, i.to), o = n.state.facet(Bt);
18488
+ let s = P.single(i.from, i.to), o = n.state.facet(Bt);
18495
18489
  return n.dispatch({
18496
18490
  selection: s,
18497
18491
  effects: [xi(n, i), o.scrollToMatch(s.main, n)],
@@ -18501,7 +18495,7 @@ const H3 = /* @__PURE__ */ C1((n, { query: e }) => {
18501
18495
  let { state: t } = n, { from: i } = t.selection.main, s = e.prevMatch(t, i, i);
18502
18496
  if (!s)
18503
18497
  return !1;
18504
- let o = V.single(s.from, s.to), l = n.state.facet(Bt);
18498
+ let o = P.single(s.from, s.to), l = n.state.facet(Bt);
18505
18499
  return n.dispatch({
18506
18500
  selection: o,
18507
18501
  effects: [xi(n, s), l.scrollToMatch(o.main, n)],
@@ -18510,7 +18504,7 @@ const H3 = /* @__PURE__ */ C1((n, { query: e }) => {
18510
18504
  }), X_ = /* @__PURE__ */ C1((n, { query: e }) => {
18511
18505
  let t = e.matchAll(n.state, 1e3);
18512
18506
  return !t || !t.length ? !1 : (n.dispatch({
18513
- selection: V.create(t.map((i) => V.range(i.from, i.to))),
18507
+ selection: P.create(t.map((i) => P.range(i.from, i.to))),
18514
18508
  userEvent: "select.search.matches"
18515
18509
  }), !0);
18516
18510
  }), Q_ = ({ state: n, dispatch: e }) => {
@@ -18521,10 +18515,10 @@ const H3 = /* @__PURE__ */ C1((n, { query: e }) => {
18521
18515
  for (let r = new zt(n.doc, n.sliceDoc(i, s)); !r.next().done; ) {
18522
18516
  if (o.length > 1e3)
18523
18517
  return !1;
18524
- r.value.from == i && (l = o.length), o.push(V.range(r.value.from, r.value.to));
18518
+ r.value.from == i && (l = o.length), o.push(P.range(r.value.from, r.value.to));
18525
18519
  }
18526
18520
  return e(n.update({
18527
- selection: V.create(o, l),
18521
+ selection: P.create(o, l),
18528
18522
  userEvent: "select.search.matches"
18529
18523
  })), !0;
18530
18524
  }, vs = /* @__PURE__ */ C1((n, { query: e }) => {
@@ -18537,7 +18531,7 @@ const H3 = /* @__PURE__ */ C1((n, { query: e }) => {
18537
18531
  let l = o, r = [], a, h, c = [];
18538
18532
  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(Y.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(i).number) + ".")));
18539
18533
  let d = n.state.changes(r);
18540
- return l && (a = V.single(l.from, l.to).map(d), c.push(xi(n, l)), c.push(t.facet(Bt).scrollToMatch(a.main, n))), n.dispatch({
18534
+ return l && (a = P.single(l.from, l.to).map(d), c.push(xi(n, l)), c.push(t.facet(Bt).scrollToMatch(a.main, n))), n.dispatch({
18541
18535
  changes: d,
18542
18536
  selection: a,
18543
18537
  effects: c,
@@ -18866,7 +18860,7 @@ function oy(n, e, t, i) {
18866
18860
  let a = n.toText(e);
18867
18861
  return {
18868
18862
  changes: { from: r.from + o, to: i == s.from ? r.to : r.from + l, insert: a },
18869
- range: V.cursor(r.from + o + a.length)
18863
+ range: P.cursor(r.from + o + a.length)
18870
18864
  };
18871
18865
  })), { scrollIntoView: !0, userEvent: "input.complete" });
18872
18866
  }
@@ -18906,19 +18900,19 @@ class ry {
18906
18900
  return null;
18907
18901
  let { chars: t, folded: i, any: s, precise: o, byWord: l } = this;
18908
18902
  if (t.length == 1) {
18909
- let b = C0(e, 0), O = le(b), C = O == e.length ? 0 : -100;
18903
+ let b = C0(e, 0), D = le(b), C = D == e.length ? 0 : -100;
18910
18904
  if (b != t[0]) if (b == i[0])
18911
18905
  C += -200;
18912
18906
  else
18913
18907
  return null;
18914
- return this.ret(C, [0, O]);
18908
+ return this.ret(C, [0, D]);
18915
18909
  }
18916
18910
  let r = e.indexOf(this.pattern);
18917
18911
  if (r == 0)
18918
18912
  return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
18919
18913
  let a = t.length, h = 0;
18920
18914
  if (r < 0) {
18921
- for (let b = 0, O = Math.min(e.length, 200); b < O && h < a; ) {
18915
+ for (let b = 0, D = Math.min(e.length, 200); b < D && h < a; ) {
18922
18916
  let C = C0(e, b);
18923
18917
  (C == t[h] || C == i[h]) && (s[h++] = b), b += le(C);
18924
18918
  }
@@ -18926,7 +18920,7 @@ class ry {
18926
18920
  return null;
18927
18921
  }
18928
18922
  let c = 0, d = 0, u = !1, f = 0, p = -1, g = -1, v = /[a-z]/.test(e), m = !0;
18929
- for (let b = 0, O = Math.min(e.length, 200), C = 0; b < O && d < a; ) {
18923
+ for (let b = 0, D = Math.min(e.length, 200), C = 0; b < D && d < a; ) {
18930
18924
  let k = C0(e, b);
18931
18925
  r < 0 && (c < a && k == t[c] && (o[c++] = b), f < a && (k == t[f] || k == i[f] ? (f == 0 && (p = b), g = b + 1, f++) : f = 0));
18932
18926
  let x, S = k < 255 ? k >= 48 && k <= 57 || k >= 97 && k <= 122 ? 2 : k >= 65 && k <= 90 ? 1 : 0 : (x = j4(k)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
@@ -19764,7 +19758,7 @@ const Py = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19764
19758
  if (a == r && l6(n.doc, l.head) == Nl(C0(a, 0)))
19765
19759
  return {
19766
19760
  changes: { from: l.head - a.length, to: l.head + a.length },
19767
- range: V.cursor(l.head - a.length)
19761
+ range: P.cursor(l.head - a.length)
19768
19762
  };
19769
19763
  }
19770
19764
  return { range: s = l };
@@ -19804,13 +19798,13 @@ function Hy(n, e, t, i) {
19804
19798
  return {
19805
19799
  changes: [{ insert: e, from: l.from }, { insert: t, from: l.to }],
19806
19800
  effects: Qe.of(l.to + e.length),
19807
- range: V.range(l.anchor + e.length, l.head + e.length)
19801
+ range: P.range(l.anchor + e.length, l.head + e.length)
19808
19802
  };
19809
19803
  let r = l6(n.doc, l.head);
19810
19804
  return !r || /\s/.test(r) || i.indexOf(r) > -1 ? {
19811
19805
  changes: { insert: e + t, from: l.head },
19812
19806
  effects: Qe.of(l.head + e.length),
19813
- range: V.cursor(l.head + e.length)
19807
+ range: P.cursor(l.head + e.length)
19814
19808
  } : { range: s = l };
19815
19809
  });
19816
19810
  return s ? null : n.update(o, {
@@ -19821,7 +19815,7 @@ function Hy(n, e, t, i) {
19821
19815
  function Iy(n, e, t) {
19822
19816
  let i = null, s = n.changeByRange((o) => o.empty && l6(n.doc, o.head) == t ? {
19823
19817
  changes: { from: o.head, to: o.head + t.length, insert: t },
19824
- range: V.cursor(o.head + t.length)
19818
+ range: P.cursor(o.head + t.length)
19825
19819
  } : i = { range: o });
19826
19820
  return i ? null : n.update(s, {
19827
19821
  scrollIntoView: !0,
@@ -19834,7 +19828,7 @@ function Gy(n, e, t, i) {
19834
19828
  return {
19835
19829
  changes: [{ insert: e, from: r.from }, { insert: e, from: r.to }],
19836
19830
  effects: Qe.of(r.to + e.length),
19837
- range: V.range(r.anchor + e.length, r.head + e.length)
19831
+ range: P.range(r.anchor + e.length, r.head + e.length)
19838
19832
  };
19839
19833
  let a = r.head, h = l6(n.doc, a), c;
19840
19834
  if (h == e) {
@@ -19842,13 +19836,13 @@ function Gy(n, e, t, i) {
19842
19836
  return {
19843
19837
  changes: { insert: e + e, from: a },
19844
19838
  effects: Qe.of(a + e.length),
19845
- range: V.cursor(a + e.length)
19839
+ range: P.cursor(a + e.length)
19846
19840
  };
19847
19841
  if (jl(n, a)) {
19848
19842
  let u = t && n.sliceDoc(a, a + e.length * 3) == e + e + e ? e + e + e : e;
19849
19843
  return {
19850
19844
  changes: { from: a, to: a + u.length, insert: u },
19851
- range: V.cursor(a + u.length)
19845
+ range: P.cursor(a + u.length)
19852
19846
  };
19853
19847
  }
19854
19848
  } else {
@@ -19856,13 +19850,13 @@ function Gy(n, e, t, i) {
19856
19850
  return {
19857
19851
  changes: { insert: e + e + e + e, from: a },
19858
19852
  effects: Qe.of(a + e.length),
19859
- range: V.cursor(a + e.length)
19853
+ range: P.cursor(a + e.length)
19860
19854
  };
19861
19855
  if (n.charCategorizer(a)(h) != j2.Word && Ds(n, a, s) > -1 && !Ry(n, a, e, s))
19862
19856
  return {
19863
19857
  changes: { insert: e + e, from: a },
19864
19858
  effects: Qe.of(a + e.length),
19865
- range: V.cursor(a + e.length)
19859
+ range: P.cursor(a + e.length)
19866
19860
  };
19867
19861
  }
19868
19862
  return { range: o = r };
@@ -21882,14 +21876,14 @@ function ES(n, e) {
21882
21876
  } else if (u == "tag") {
21883
21877
  let g = L6(c, p), v = r[g], m = [], b = p && p.lastChild;
21884
21878
  g && (!b || b.name != "CloseTag" || p3(c, b) != g) && m.push(v ? v.closeCompletion : { label: "</" + g + ">", type: "type", boost: 2 });
21885
- let O = m.concat(((v == null ? void 0 : v.children) || (p ? o : l)).map((C) => C.openCompletion));
21879
+ let D = m.concat(((v == null ? void 0 : v.children) || (p ? o : l)).map((C) => C.openCompletion));
21886
21880
  if (p && (v != null && v.text.length)) {
21887
21881
  let C = p.firstChild;
21888
- C.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(C.to, a.pos)) && (O = O.concat(v.text));
21882
+ C.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(C.to, a.pos)) && (D = D.concat(v.text));
21889
21883
  }
21890
21884
  return {
21891
21885
  from: f,
21892
- options: O,
21886
+ options: D,
21893
21887
  validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
21894
21888
  };
21895
21889
  } else
@@ -21954,7 +21948,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
21954
21948
  if (p.from == u - 2 && ((d = v.lastChild) === null || d === void 0 ? void 0 : d.name) != "CloseTag" && (g = $s(l.doc, v, u))) {
21955
21949
  let m = u + (l.doc.sliceString(u, u + 1) === ">" ? 1 : 0), b = `${g}>`;
21956
21950
  return {
21957
- range: V.cursor(u + b.length, -1),
21951
+ range: P.cursor(u + b.length, -1),
21958
21952
  changes: { from: u, to: m, insert: b }
21959
21953
  };
21960
21954
  }
@@ -21991,7 +21985,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
21991
21985
  parent: document.querySelector("#xml-editor")
21992
21986
  });
21993
21987
  s.dom.style.width = "100%";
21994
- }), (s, o) => (y(), E("div", LS, [
21988
+ }), (s, o) => (_(), E("div", LS, [
21995
21989
  n2("div", HS, null, 512)
21996
21990
  ]));
21997
21991
  }
@@ -22005,7 +21999,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22005
21999
  const e = n, t = i2(() => e.blobUrl), i = i2(() => [e.blobUrl]);
22006
22000
  return (s, o) => {
22007
22001
  const l = Q("el-image");
22008
- return y(), E("div", RS, [
22002
+ return _(), E("div", RS, [
22009
22003
  t2(l, {
22010
22004
  class: "render-img",
22011
22005
  src: t.value,
@@ -22035,7 +22029,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22035
22029
  height: h
22036
22030
  }).preview(l);
22037
22031
  });
22038
- }), (s, o) => (y(), E("div", jS, [
22032
+ }), (s, o) => (_(), E("div", jS, [
22039
22033
  n2("div", {
22040
22034
  ref_key: "pptxPreview",
22041
22035
  ref: i,
@@ -22056,7 +22050,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22056
22050
  i.value = l;
22057
22051
  }), Vt(() => {
22058
22052
  i.value && URL.revokeObjectURL(i.value);
22059
- }), (s, o) => (y(), E("div", FS, [
22053
+ }), (s, o) => (_(), E("div", FS, [
22060
22054
  n2("video", {
22061
22055
  src: i.value,
22062
22056
  class: "video-tag",
@@ -22123,19 +22117,19 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22123
22117
  isNc: u.value
22124
22118
  }));
22125
22119
  const h = i2(() => (r == null ? void 0 : r.value) === "cpt"), c = i2(() => (r == null ? void 0 : r.value) === "uv"), d = i2(() => (r == null ? void 0 : r.value) === "cyd"), u = i2(() => (r == null ? void 0 : r.value) === "nc"), f = i2(() => (r == null ? void 0 : r.value) === "txt"), p = i2(() => {
22126
- var T, j, M, h2, A, N;
22127
- return ((j = (T = i.blobUrl) == null ? void 0 : T.toUpperCase()) == null ? void 0 : j.includes(".OBJ")) || ((h2 = (M = i.blobUrl) == null ? void 0 : M.toUpperCase()) == null ? void 0 : h2.includes(".STL")) || ((N = (A = i.blobUrl) == null ? void 0 : A.toUpperCase()) == null ? void 0 : N.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
22120
+ var T, j, M, h2, V, N;
22121
+ return ((j = (T = i.blobUrl) == null ? void 0 : T.toUpperCase()) == null ? void 0 : j.includes(".OBJ")) || ((h2 = (M = i.blobUrl) == null ? void 0 : M.toUpperCase()) == null ? void 0 : h2.includes(".STL")) || ((N = (V = i.blobUrl) == null ? void 0 : V.toUpperCase()) == null ? void 0 : N.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
22128
22122
  }), g = i2(() => (r == null ? void 0 : r.value) === "ls"), v = i2(() => {
22129
22123
  var T, j;
22130
22124
  return ((j = (T = i.blobUrl) == null ? void 0 : T.toUpperCase()) == null ? void 0 : j.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
22131
- }), m = i2(() => v.value), b = i2(() => (r == null ? void 0 : r.value) === "docx"), O = i2(() => (r == null ? void 0 : r.value) === "csv"), C = i2(() => (r == null ? void 0 : r.value) === "xlsx"), k = i2(() => (r == null ? void 0 : r.value) === "pdf"), x = i2(() => {
22125
+ }), m = i2(() => v.value), b = i2(() => (r == null ? void 0 : r.value) === "docx"), D = i2(() => (r == null ? void 0 : r.value) === "csv"), C = i2(() => (r == null ? void 0 : r.value) === "xlsx"), k = i2(() => (r == null ? void 0 : r.value) === "pdf"), x = i2(() => {
22132
22126
  const T = r == null ? void 0 : r.value;
22133
22127
  return T === "jpg" || T === "jpeg" || T === "png" || T === "gif" || T === "webp" || T === "bmp";
22134
- }), S = i2(() => (r == null ? void 0 : r.value) === "pptx"), L = i2(() => (r == null ? void 0 : r.value) === "mp4"), P = i2(() => !f && !g && !m && !b && !C && !k && !x && !S);
22128
+ }), S = i2(() => (r == null ? void 0 : r.value) === "pptx"), L = i2(() => (r == null ? void 0 : r.value) === "mp4"), z = i2(() => !f && !g && !m && !b && !C && !k && !x && !S);
22135
22129
  return Vt(() => {
22136
22130
  t("destroy");
22137
- }), (T, j) => (y(), E("div", XS, [
22138
- a.value ? (y(), E("div", QS, [
22131
+ }), (T, j) => (_(), E("div", XS, [
22132
+ a.value ? (_(), E("div", QS, [
22139
22133
  t2(Ri, {
22140
22134
  files: l.value,
22141
22135
  "three-data": {
@@ -22150,60 +22144,60 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22150
22144
  }
22151
22145
  }, null, 8, ["files", "three-data"])
22152
22146
  ])) : c2("", !0),
22153
- b.value ? (y(), E("div", JS, [
22147
+ b.value ? (_(), E("div", JS, [
22154
22148
  t2(Jg, {
22155
22149
  fileName: o.value,
22156
22150
  blobUrl: s.value
22157
22151
  }, null, 8, ["fileName", "blobUrl"])
22158
22152
  ])) : c2("", !0),
22159
- p.value || v.value ? (y(), E("div", ZS, [
22160
- (y(), q(Ri, {
22153
+ p.value || v.value ? (_(), E("div", ZS, [
22154
+ (_(), q(Ri, {
22161
22155
  files: l.value,
22162
22156
  key: i == null ? void 0 : i.fullScreen
22163
22157
  }, null, 8, ["files"]))
22164
22158
  ])) : c2("", !0),
22165
- C.value ? (y(), E("div", eC, [
22159
+ C.value ? (_(), E("div", eC, [
22166
22160
  t2(tm, {
22167
22161
  fileName: o.value,
22168
22162
  blobUrl: s.value
22169
22163
  }, null, 8, ["fileName", "blobUrl"])
22170
22164
  ])) : c2("", !0),
22171
- O.value ? (y(), E("div", tC, [
22165
+ D.value ? (_(), E("div", tC, [
22172
22166
  t2(om, {
22173
22167
  fileName: o.value,
22174
22168
  blobUrl: s.value
22175
22169
  }, null, 8, ["fileName", "blobUrl"])
22176
22170
  ])) : c2("", !0),
22177
- k.value ? (y(), E("div", iC, [
22171
+ k.value ? (_(), E("div", iC, [
22178
22172
  t2(dm, {
22179
22173
  fileName: o.value,
22180
22174
  blobUrl: s.value
22181
22175
  }, null, 8, ["fileName", "blobUrl"])
22182
22176
  ])) : c2("", !0),
22183
- x.value ? (y(), E("div", nC, [
22177
+ x.value ? (_(), E("div", nC, [
22184
22178
  t2($S, {
22185
22179
  fileName: o.value,
22186
22180
  blobUrl: s.value
22187
22181
  }, null, 8, ["fileName", "blobUrl"])
22188
22182
  ])) : c2("", !0),
22189
- S.value ? (y(), E("div", sC, [
22183
+ S.value ? (_(), E("div", sC, [
22190
22184
  t2(US, {
22191
22185
  fileName: o.value,
22192
22186
  blobUrl: s.value
22193
22187
  }, null, 8, ["fileName", "blobUrl"])
22194
22188
  ])) : c2("", !0),
22195
- L.value ? (y(), E("div", oC, [
22189
+ L.value ? (_(), E("div", oC, [
22196
22190
  t2(KS, {
22197
22191
  fileName: o.value,
22198
22192
  blobUrl: s.value
22199
22193
  }, null, 8, ["fileName", "blobUrl"])
22200
- ])) : !b.value && !C.value && !k.value && !v.value && !x.value && !S.value && !p.value && !L.value && !a.value && !O.value ? (y(), E("div", lC, [
22194
+ ])) : !b.value && !C.value && !k.value && !v.value && !x.value && !S.value && !p.value && !L.value && !a.value && !D.value ? (_(), E("div", lC, [
22201
22195
  t2(GS, {
22202
22196
  fileName: o.value,
22203
22197
  blobUrl: s.value
22204
22198
  }, null, 8, ["fileName", "blobUrl"])
22205
22199
  ])) : c2("", !0),
22206
- P.value ? (y(), E("div", rC, j[0] || (j[0] = [
22200
+ z.value ? (_(), E("div", rC, j[0] || (j[0] = [
22207
22201
  n2("div", null, "当前文件格式暂不支持预览", -1)
22208
22202
  ]))) : c2("", !0)
22209
22203
  ]));
@@ -22244,9 +22238,9 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22244
22238
  t("destroy");
22245
22239
  }), (c, d) => {
22246
22240
  var u;
22247
- return y(), E("div", cC, [
22248
- (((u = s.value) == null ? void 0 : u.length) || 0) > 1 ? (y(), E("div", hC, [
22249
- (y(!0), E(M2, null, V2(s.value, (f, p) => (y(), E("div", {
22241
+ return _(), E("div", cC, [
22242
+ (((u = s.value) == null ? void 0 : u.length) || 0) > 1 ? (_(), E("div", hC, [
22243
+ (_(!0), E(M2, null, V2(s.value, (f, p) => (_(), E("div", {
22250
22244
  key: p,
22251
22245
  class: et(["left-item", {
22252
22246
  "active-item": p == o.value
@@ -22285,9 +22279,9 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22285
22279
  const p = o.value;
22286
22280
  return (v = p == null ? void 0 : p[0]) == null ? void 0 : v.name;
22287
22281
  }), h = () => {
22288
- var v, m, b, O;
22282
+ var v, m, b, D;
22289
22283
  var p = document.createElement("a"), g = (m = (v = o.value) == null ? void 0 : v[0]) == null ? void 0 : m.blobUrl;
22290
- p.style.display = "none", p.href = g, p.download = decodeURI((O = (b = o.value) == null ? void 0 : b[0]) == null ? void 0 : O.name), document.body.appendChild(p), p.click(), document.body.removeChild(p);
22284
+ p.style.display = "none", p.href = g, p.download = decodeURI((D = (b = o.value) == null ? void 0 : b[0]) == null ? void 0 : D.name), document.body.appendChild(p), p.click(), document.body.removeChild(p);
22291
22285
  }, c = I(!1), d = () => {
22292
22286
  const p = c.value;
22293
22287
  c.value = !p;
@@ -22305,7 +22299,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22305
22299
  }));
22306
22300
  }), (p, g) => {
22307
22301
  const v = Q("el-icon");
22308
- return y(), q(N4, {
22302
+ return _(), q(N4, {
22309
22303
  class: "file-preview-dialog",
22310
22304
  visible: s.value,
22311
22305
  onBeforeDestroy: f,
@@ -22346,7 +22340,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22346
22340
  return [
22347
22341
  n2("div", vC, [
22348
22342
  g[0] || (g[0] = n2("div", { class: "file-preview-header" }, null, -1)),
22349
- (y(), q(Zl, {
22343
+ (_(), q(Zl, {
22350
22344
  class: "file-preview-content",
22351
22345
  fileDataList: o.value,
22352
22346
  key: (m = o.value) == null ? void 0 : m.length,
@@ -22386,7 +22380,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22386
22380
  const a = I(Array.isArray(t.modelValue) ? t.modelValue : []), h = I(!1), c = I(""), d = I(""), u = I(Array.isArray(t.modelValue) ? t.modelValue : []), f = () => {
22387
22381
  h.value = !0, u.value = o.value, a.value = o.value;
22388
22382
  }, p = async (x) => {
22389
- var L, P;
22383
+ var L, z;
22390
22384
  let S;
22391
22385
  if ((L = x == null ? void 0 : x.url) != null && L.includes("http") ? S = await Br.get(x.url, {
22392
22386
  responseType: "blob",
@@ -22394,7 +22388,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22394
22388
  "Content-Type": "application/json"
22395
22389
  }
22396
22390
  }) : S = await Ks({
22397
- url: (P = R0(x)) == null ? void 0 : P.url
22391
+ url: (z = R0(x)) == null ? void 0 : z.url
22398
22392
  }), !x.url.toUpperCase().includes(".OBJ") && !x.url.toUpperCase().includes(".STL") && !x.url.toUpperCase().includes(".MTL") && !x.url.toUpperCase().includes(".URDF")) {
22399
22393
  let T = URL.createObjectURL(S == null ? void 0 : S.data);
22400
22394
  d.value = T;
@@ -22402,14 +22396,14 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22402
22396
  d.value = x == null ? void 0 : x.url;
22403
22397
  return d.value;
22404
22398
  }, g = async (x) => {
22405
- var L, P, T, j, M, h2, A, N, l2;
22399
+ var L, z, T, j, M, h2, V, N, l2;
22406
22400
  if ((x == null ? void 0 : x.oldUrl) || (x == null ? void 0 : x.url)) {
22407
22401
  const s2 = Ir.service({
22408
22402
  lock: !0,
22409
22403
  text: "Loading",
22410
22404
  background: "rgba(0, 0, 0, 0.7)"
22411
22405
  });
22412
- c.value = x != null && x.oldUrl ? (T = x == null ? void 0 : x.oldUrl) == null ? void 0 : T.split("/")[((P = (L = x == null ? void 0 : x.oldUrl) == null ? void 0 : L.split("/")) == null ? void 0 : P.length) - 1] : (x == null ? void 0 : x.name) + "." + ((l2 = (M = (j = R0(x)) == null ? void 0 : j.url) == null ? void 0 : M.split(".")) == null ? void 0 : l2[((N = (A = (h2 = R0(x)) == null ? void 0 : h2.url) == null ? void 0 : A.split(".")) == null ? void 0 : N.length) - 1]), d.value = await p(x).finally(() => {
22406
+ c.value = x != null && x.oldUrl ? (T = x == null ? void 0 : x.oldUrl) == null ? void 0 : T.split("/")[((z = (L = x == null ? void 0 : x.oldUrl) == null ? void 0 : L.split("/")) == null ? void 0 : z.length) - 1] : (x == null ? void 0 : x.name) + "." + ((l2 = (M = (j = R0(x)) == null ? void 0 : j.url) == null ? void 0 : M.split(".")) == null ? void 0 : l2[((N = (V = (h2 = R0(x)) == null ? void 0 : h2.url) == null ? void 0 : V.split(".")) == null ? void 0 : N.length) - 1]), d.value = await p(x).finally(() => {
22413
22407
  s2.close();
22414
22408
  });
22415
22409
  } else {
@@ -22425,19 +22419,19 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22425
22419
  l.value = !1;
22426
22420
  }, m = (x) => {
22427
22421
  var S;
22428
- u.value = (S = R0(u.value)) == null ? void 0 : S.filter((L, P) => P !== x), a.value = u.value;
22422
+ u.value = (S = R0(u.value)) == null ? void 0 : S.filter((L, z) => z !== x), a.value = u.value;
22429
22423
  }, b = (x) => {
22430
22424
  var M;
22431
- const S = x.split(","), L = (M = S == null ? void 0 : S[0]) == null ? void 0 : M.match(/:(.*?);/)[1], P = atob(S[1]);
22432
- let T = P.length;
22425
+ const S = x.split(","), L = (M = S == null ? void 0 : S[0]) == null ? void 0 : M.match(/:(.*?);/)[1], z = atob(S[1]);
22426
+ let T = z.length;
22433
22427
  const j = new Uint8Array(T);
22434
22428
  for (; T--; )
22435
- j[T] = P.charCodeAt(T);
22429
+ j[T] = z.charCodeAt(T);
22436
22430
  return new Blob([j], { type: L });
22437
- }, O = async () => {
22438
- var P;
22431
+ }, D = async () => {
22432
+ var z;
22439
22433
  s.value = !0;
22440
- const x = (P = a.value) == null ? void 0 : P.map(async (T) => {
22434
+ const x = (z = a.value) == null ? void 0 : z.map(async (T) => {
22441
22435
  if (T != null && T.base64) {
22442
22436
  const j = new FormData(), M = b(T == null ? void 0 : T.base64);
22443
22437
  return j.append("file", M, T == null ? void 0 : T.name), await m3(j);
@@ -22449,10 +22443,10 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22449
22443
  }), S = await Promise.all(x);
22450
22444
  let L = [];
22451
22445
  S == null || S.map((T) => {
22452
- var j, M, h2, A, N, l2;
22446
+ var j, M, h2, V, N, l2;
22453
22447
  return L.push({
22454
22448
  name: ((M = (j = T == null ? void 0 : T.data) == null ? void 0 : j.result) == null ? void 0 : M.fileName) ?? (T == null ? void 0 : T.name),
22455
- url: ((A = (h2 = T == null ? void 0 : T.data) == null ? void 0 : h2.result) == null ? void 0 : A.url) ?? (T == null ? void 0 : T.url)
22449
+ url: ((V = (h2 = T == null ? void 0 : T.data) == null ? void 0 : h2.result) == null ? void 0 : V.url) ?? (T == null ? void 0 : T.url)
22456
22450
  }), (l2 = (N = T == null ? void 0 : T.data) == null ? void 0 : N.result) == null ? void 0 : l2.url;
22457
22451
  }), Pe.success("上传成功"), o.value = L, i("update:modelValue", L), i("change", L), a.value = [], h.value = !1, s.value = !1;
22458
22452
  }, C = () => {
@@ -22461,13 +22455,13 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22461
22455
  if (!x) return;
22462
22456
  const S = new FileReader();
22463
22457
  S.onload = (L) => {
22464
- const P = a.value === "" ? [] : a.value;
22465
- P.push({
22458
+ const z = a.value === "" ? [] : a.value;
22459
+ z.push({
22466
22460
  name: x.name,
22467
22461
  size: x.size,
22468
22462
  type: x.type,
22469
22463
  base64: L.target.result
22470
- }), a.value = P;
22464
+ }), a.value = z;
22471
22465
  }, S.onerror = (L) => {
22472
22466
  console.error("文件读取错误:", L), fileData.value = {
22473
22467
  name: "",
@@ -22478,8 +22472,8 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22478
22472
  }, S.readAsDataURL(x.raw);
22479
22473
  };
22480
22474
  return (x, S) => {
22481
- const L = Q("svg-icon"), P = Q("el-icon"), T = Q("el-upload"), j = vr("loading");
22482
- return t != null && t.isEdit ? (y(), E("div", xC, [
22475
+ const L = Q("svg-icon"), z = Q("el-icon"), T = Q("el-upload"), j = vr("loading");
22476
+ return t != null && t.isEdit ? (_(), E("div", xC, [
22483
22477
  t2(be, {
22484
22478
  type: "primary",
22485
22479
  onClickTrigger: f,
@@ -22487,9 +22481,9 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22487
22481
  modelValue: "上传"
22488
22482
  }),
22489
22483
  n2("div", bC, [
22490
- (y(!0), E(M2, null, V2(o.value, (M) => {
22491
- var h2, A, N, l2, s2, S2;
22492
- return y(), E("div", {
22484
+ (_(!0), E(M2, null, V2(o.value, (M) => {
22485
+ var h2, V, N, l2, s2, S2;
22486
+ return _(), E("div", {
22493
22487
  class: "upload-content-title",
22494
22488
  key: M,
22495
22489
  style: { display: "flex", "justify-content": "space-between", width: "100%", position: "relative" }
@@ -22497,7 +22491,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22497
22491
  n2("div", {
22498
22492
  style: { width: "90%", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
22499
22493
  title: M == null ? void 0 : M.name
22500
- }, I2((A = (h2 = M == null ? void 0 : M.url) == null ? void 0 : h2.split(".")) != null && A[1] ? (M == null ? void 0 : M.name) + "." + ((S2 = (N = M == null ? void 0 : M.url) == null ? void 0 : N.split(".")) == null ? void 0 : S2[((s2 = (l2 = M == null ? void 0 : M.url) == null ? void 0 : l2.split(".")) == null ? void 0 : s2.length) - 1]) : M == null ? void 0 : M.name), 9, _C),
22494
+ }, I2((V = (h2 = M == null ? void 0 : M.url) == null ? void 0 : h2.split(".")) != null && V[1] ? (M == null ? void 0 : M.name) + "." + ((S2 = (N = M == null ? void 0 : M.url) == null ? void 0 : N.split(".")) == null ? void 0 : S2[((s2 = (l2 = M == null ? void 0 : M.url) == null ? void 0 : l2.split(".")) == null ? void 0 : s2.length) - 1]) : M == null ? void 0 : M.name), 9, _C),
22501
22495
  n2("div", yC, [
22502
22496
  t2(L, {
22503
22497
  class: "icon-blue",
@@ -22515,7 +22509,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22515
22509
  title: "上传文件"
22516
22510
  }, {
22517
22511
  default: G(() => [
22518
- i3((y(), E("div", null, [
22512
+ i3((_(), E("div", null, [
22519
22513
  t2(T, {
22520
22514
  "file-list": u.value,
22521
22515
  "onUpdate:fileList": S[0] || (S[0] = (M) => u.value = M),
@@ -22531,7 +22525,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22531
22525
  n2("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
22532
22526
  ])),
22533
22527
  default: G(() => [
22534
- t2(P, { class: "el-icon--upload" }, {
22528
+ t2(z, { class: "el-icon--upload" }, {
22535
22529
  default: G(() => [
22536
22530
  t2(I0(Er))
22537
22531
  ]),
@@ -22543,10 +22537,10 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22543
22537
  ], -1))
22544
22538
  ]),
22545
22539
  file: G(({ file: M, index: h2 }) => {
22546
- var A, N, l2, s2;
22540
+ var V, N, l2, s2;
22547
22541
  return [
22548
22542
  n2("div", SC, [
22549
- n2("div", CC, I2((N = (A = M == null ? void 0 : M.url) == null ? void 0 : A.split(".")) != null && N[1] ? (M == null ? void 0 : M.name) + "." + ((s2 = (l2 = M == null ? void 0 : M.url) == null ? void 0 : l2.split(".")) == null ? void 0 : s2[1]) : M == null ? void 0 : M.name), 1),
22543
+ n2("div", CC, I2((N = (V = M == null ? void 0 : M.url) == null ? void 0 : V.split(".")) != null && N[1] ? (M == null ? void 0 : M.name) + "." + ((s2 = (l2 = M == null ? void 0 : M.url) == null ? void 0 : l2.split(".")) == null ? void 0 : s2[1]) : M == null ? void 0 : M.name), 1),
22550
22544
  n2("div", kC, [
22551
22545
  t2(L, {
22552
22546
  class: "icon-blue",
@@ -22580,7 +22574,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22580
22574
  }, null, 8, ["disabled"]),
22581
22575
  t2(be, {
22582
22576
  type: "primary",
22583
- onClickTrigger: O,
22577
+ onClickTrigger: D,
22584
22578
  id: "themeButton",
22585
22579
  disabled: s.value,
22586
22580
  modelValue: "确认"
@@ -22589,7 +22583,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22589
22583
  ]),
22590
22584
  _: 1
22591
22585
  }, 8, ["visible"]),
22592
- l.value ? (y(), q(er, {
22586
+ l.value ? (_(), q(er, {
22593
22587
  key: 0,
22594
22588
  fileDataList: r.value,
22595
22589
  onDestroy: v
@@ -22608,7 +22602,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22608
22602
  emits: ["update:modelValue", "change"],
22609
22603
  setup(n, { emit: e }) {
22610
22604
  const t = n, i = i2(() => "http://222.92.178.198:62001"), s = e, o = async (h) => {
22611
- var g, v, m, b, O;
22605
+ var g, v, m, b, D;
22612
22606
  const { file: c, onSuccess: d, onError: u } = h, f = new FormData();
22613
22607
  f.append("file", c);
22614
22608
  const p = await m3(f);
@@ -22616,7 +22610,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22616
22610
  name: c == null ? void 0 : c.name,
22617
22611
  uid: c == null ? void 0 : c.uid,
22618
22612
  id: (m = (v = p == null ? void 0 : p.data) == null ? void 0 : v.result) == null ? void 0 : m.id,
22619
- url: (O = (b = p == null ? void 0 : p.data) == null ? void 0 : b.result) == null ? void 0 : O.url
22613
+ url: (D = (b = p == null ? void 0 : p.data) == null ? void 0 : b.result) == null ? void 0 : D.url
22620
22614
  }]);
22621
22615
  }, l = I([]);
22622
22616
  U2(() => t == null ? void 0 : t.modelValue, (h) => {
@@ -22637,7 +22631,7 @@ const BS = /* @__PURE__ */ Y.inputHandler.of((n, e, t, i, s) => {
22637
22631
  };
22638
22632
  return (h, c) => {
22639
22633
  const d = Q("el-icon"), u = Q("el-upload");
22640
- return y(), q(u, {
22634
+ return _(), q(u, {
22641
22635
  class: "upload-demo",
22642
22636
  drag: "",
22643
22637
  action: "#",
@@ -23063,8 +23057,8 @@ var LC = /* @__PURE__ */ n0({
23063
23057
  function l() {
23064
23058
  const x = s.value, S = t.signaturePad.toData(), L = Math.max(window.devicePixelRatio || 1, 1);
23065
23059
  x.width = x.offsetWidth * L, x.height = x.offsetHeight * L;
23066
- const P = x.getContext("2d");
23067
- P && P.scale(L, L), t.signaturePad.clear(), t.signatureData = Us, t.signaturePad.fromData(S);
23060
+ const z = x.getContext("2d");
23061
+ z && z.scale(L, L), t.signaturePad.clear(), t.signatureData = Us, t.signaturePad.fromData(S);
23068
23062
  }
23069
23063
  function r(x = n.saveType, S) {
23070
23064
  if (t.signaturePad.isEmpty()) {
@@ -23133,7 +23127,7 @@ var LC = /* @__PURE__ */ n0({
23133
23127
  function b() {
23134
23128
  return t.signaturePad.isEmpty();
23135
23129
  }
23136
- function O() {
23130
+ function D() {
23137
23131
  return o.value;
23138
23132
  }
23139
23133
  function C() {
@@ -23169,7 +23163,7 @@ var LC = /* @__PURE__ */ n0({
23169
23163
  lockSignaturePad: v,
23170
23164
  openSignaturePad: m,
23171
23165
  isEmpty: b,
23172
- getPropImagesAndCacheImages: O,
23166
+ getPropImagesAndCacheImages: D,
23173
23167
  clearCacheImages: C,
23174
23168
  clearSignature: k
23175
23169
  };
@@ -23252,7 +23246,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23252
23246
  return (h, c) => {
23253
23247
  var p, g, v;
23254
23248
  const d = Q("el-input-number"), u = Q("el-color-picker"), f = Q("el-button");
23255
- return y(), E(M2, null, [
23249
+ return _(), E(M2, null, [
23256
23250
  n2("div", IC, [
23257
23251
  C2(h.$slots, "signatureRender", {}, void 0, !0),
23258
23252
  n2("div", GC, [
@@ -23330,7 +23324,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23330
23324
  };
23331
23325
  return (i, s) => {
23332
23326
  const o = Q("el-dropdown-menu"), l = Q("el-dropdown");
23333
- return y(), q(l, { onVisibleChange: t }, {
23327
+ return _(), q(l, { onVisibleChange: t }, {
23334
23328
  dropdown: G(() => [
23335
23329
  t2(o, null, {
23336
23330
  default: G(() => [
@@ -23436,7 +23430,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23436
23430
  }), c = (m) => {
23437
23431
  if (!m)
23438
23432
  return [];
23439
- const b = /{\\pict[\s\S]+?({\\\*\\blipuid\s?[\da-fA-F]+)[\s}]*/, O = new RegExp("(?:(" + b.source + "))([\\da-fA-F\\s]+)\\}", "g"), C = m.match(O), k = [];
23433
+ const b = /{\\pict[\s\S]+?({\\\*\\blipuid\s?[\da-fA-F]+)[\s}]*/, D = new RegExp("(?:(" + b.source + "))([\\da-fA-F\\s]+)\\}", "g"), C = m.match(D), k = [];
23440
23434
  if (C)
23441
23435
  for (const x of C) {
23442
23436
  let S = !1;
@@ -23447,25 +23441,25 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23447
23441
  }
23448
23442
  return k;
23449
23443
  }, d = (m) => btoa(m.match(/\w{2}/g).map((b) => String.fromCharCode(parseInt(b, 16))).join("")), u = (m, b = "file") => {
23450
- let O = m.split(","), C = O[0].match(/:(.*?);/)[1], k = C.split("/")[1], x = atob(O[1]), S = x.length, L = new Uint8Array(S);
23444
+ let D = m.split(","), C = D[0].match(/:(.*?);/)[1], k = C.split("/")[1], x = atob(D[1]), S = x.length, L = new Uint8Array(S);
23451
23445
  for (; S--; )
23452
23446
  L[S] = x.charCodeAt(S);
23453
23447
  return new File([L], `${b}.${k}`, {
23454
23448
  type: C
23455
23449
  });
23456
23450
  }, f = async (m, b) => {
23457
- let O = u(m), C = new FormData();
23458
- C.append("file", O), await R6(C).then((k) => {
23451
+ let D = u(m), C = new FormData();
23452
+ C.append("file", D), await R6(C).then((k) => {
23459
23453
  });
23460
23454
  };
23461
23455
  function p() {
23462
23456
  const m = document.createElement("input");
23463
23457
  m.setAttribute("type", "file"), m.setAttribute("accept", ".pdf,.doc,.docx,.xls,.xlsx,.txt"), m.click(), m.onchange = async () => {
23464
- var O;
23458
+ var D;
23465
23459
  const b = m.files[0];
23466
23460
  if (b)
23467
23461
  try {
23468
- const C = await R6({ file: b }), k = (O = C == null ? void 0 : C.data) == null ? void 0 : O.result, x = o.getSelection(!0);
23462
+ const C = await R6({ file: b }), k = (D = C == null ? void 0 : C.data) == null ? void 0 : D.result, x = o.getSelection(!0);
23469
23463
  o.insertText(x.index, `📎 ${b.name}`, "link", k.url), o.setSelection(x.index + b.name.length + 2);
23470
23464
  } catch (C) {
23471
23465
  console.error("上传失败:", C);
@@ -23486,22 +23480,22 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23486
23480
  }
23487
23481
  m.root.addEventListener("paste", async (b) => {
23488
23482
  l.value = [];
23489
- const O = b.clipboardData.getData("text/rtf");
23490
- if (O && O !== "") {
23491
- const k = c(O).map((P) => d(P.hex));
23492
- for (let P = 0; P < k.length; P++) {
23483
+ const D = b.clipboardData.getData("text/rtf");
23484
+ if (D && D !== "") {
23485
+ const k = c(D).map((z) => d(z.hex));
23486
+ for (let z = 0; z < k.length; z++) {
23493
23487
  let T = l.value;
23494
- T.push(`data:image/png;base64,${k[P]}`), l.value = T, await f(`data:image/png;base64,${k[P]}`, k.length);
23488
+ T.push(`data:image/png;base64,${k[z]}`), l.value = T, await f(`data:image/png;base64,${k[z]}`, k.length);
23495
23489
  }
23496
- o.selection.root.querySelectorAll('img[src*="//:0"]').forEach((P, T) => {
23497
- l.value[T] ? P.src = l.value[T] : P.style.display = "none";
23490
+ o.selection.root.querySelectorAll('img[src*="//:0"]').forEach((z, T) => {
23491
+ l.value[T] ? z.src = l.value[T] : z.style.display = "none";
23498
23492
  });
23499
23493
  }
23500
23494
  r("update:modelValue", a.value);
23501
23495
  }), m.on("text-change", function() {
23502
23496
  a.value = m.root.innerHTML, r("update:modelValue", a.value);
23503
23497
  });
23504
- }), e({ getDeltaOps: g, setContent: v }), (m, b) => (y(), E("div", UC, [
23498
+ }), e({ getDeltaOps: g, setContent: v }), (m, b) => (_(), E("div", UC, [
23505
23499
  n2("div", {
23506
23500
  ref_key: "quillEditorRef",
23507
23501
  ref: s,
@@ -23526,7 +23520,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23526
23520
  const e = n;
23527
23521
  return (t, i) => {
23528
23522
  const s = Q("el-image");
23529
- return y(), q(s, {
23523
+ return _(), q(s, {
23530
23524
  style: { width: "100px", height: "100px" },
23531
23525
  src: e == null ? void 0 : e.modelValue,
23532
23526
  fit: "contain",
@@ -23572,7 +23566,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23572
23566
  };
23573
23567
  return (d, u) => {
23574
23568
  const f = Q("el-option"), p = Q("el-select");
23575
- return y(), q(p, {
23569
+ return _(), q(p, {
23576
23570
  class: "multiple-checkbox",
23577
23571
  modelValue: s.value,
23578
23572
  "onUpdate:modelValue": u[0] || (u[0] = (g) => s.value = g),
@@ -23592,7 +23586,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23592
23586
  ], 10, KC)
23593
23587
  ]),
23594
23588
  default: G(() => [
23595
- (y(!0), E(M2, null, V2(d.options, (g) => (y(), q(f, {
23589
+ (_(!0), E(M2, null, V2(d.options, (g) => (_(), q(f, {
23596
23590
  key: g.value,
23597
23591
  label: g.label,
23598
23592
  value: g.value
@@ -23627,7 +23621,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23627
23621
  };
23628
23622
  return (o, l) => {
23629
23623
  const r = Q("el-time-picker");
23630
- return y(), q(r, {
23624
+ return _(), q(r, {
23631
23625
  "model-value": n.modelValue,
23632
23626
  "onUpdate:modelValue": i,
23633
23627
  clearable: "",
@@ -23672,7 +23666,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23672
23666
  }),
23673
23667
  parent: s
23674
23668
  }), i.dom.style.width = "100%");
23675
- }), (s, o) => (y(), E("div", ZC, [
23669
+ }), (s, o) => (_(), E("div", ZC, [
23676
23670
  n2("div", ek, null, 512)
23677
23671
  ]));
23678
23672
  }
@@ -23693,7 +23687,7 @@ const IC = { class: "signature-wrap" }, GC = { class: "signature-types" }, RC =
23693
23687
  }
23694
23688
  },
23695
23689
  setup(n) {
23696
- return (e, t) => (y(), E("div", null, I2(n.modelValue), 1));
23690
+ return (e, t) => (_(), E("div", null, I2(n.modelValue), 1));
23697
23691
  }
23698
23692
  }, sk = {
23699
23693
  LINK: Pp,
@@ -23769,13 +23763,13 @@ const ok = ["onDblclick"], lk = {
23769
23763
  { deep: !0, immediate: !0 }
23770
23764
  ), (c, d) => {
23771
23765
  const u = Q("el-tab-pane"), f = Q("el-tabs");
23772
- return y(), q(f, {
23766
+ return _(), q(f, {
23773
23767
  modelValue: o.value,
23774
23768
  "onUpdate:modelValue": d[0] || (d[0] = (p) => o.value = p),
23775
23769
  "tab-position": t == null ? void 0 : t.tabPosition
23776
23770
  }, {
23777
23771
  default: G(() => [
23778
- (y(!0), E(M2, null, V2(s.value, (p, g) => (y(), q(u, {
23772
+ (_(!0), E(M2, null, V2(s.value, (p, g) => (_(), q(u, {
23779
23773
  key: (p == null ? void 0 : p.label) + g,
23780
23774
  name: p == null ? void 0 : p.value,
23781
23775
  lazy: !0
@@ -23783,19 +23777,19 @@ const ok = ["onDblclick"], lk = {
23783
23777
  label: G(() => {
23784
23778
  var v;
23785
23779
  return [
23786
- p != null && p.label ? (y(), E("div", {
23780
+ p != null && p.label ? (_(), E("div", {
23787
23781
  key: 0,
23788
23782
  onDblclick: (m) => r(p)
23789
23783
  }, I2(p == null ? void 0 : p.label), 41, ok)) : c2("", !0),
23790
- p != null && p.contents && ((v = p == null ? void 0 : p.contents) == null ? void 0 : v.length) > 0 ? (y(), E("div", lk, [
23791
- (y(!0), E(M2, null, V2(p == null ? void 0 : p.contents, (m, b) => (y(), E("div", {
23784
+ p != null && p.contents && ((v = p == null ? void 0 : p.contents) == null ? void 0 : v.length) > 0 ? (_(), E("div", lk, [
23785
+ (_(!0), E(M2, null, V2(p == null ? void 0 : p.contents, (m, b) => (_(), E("div", {
23792
23786
  key: b,
23793
23787
  class: "tabs-children"
23794
23788
  }, [
23795
- m != null && m.value || (m == null ? void 0 : m.value) === "" ? (y(), q(g3(l(m == null ? void 0 : m.type)), {
23789
+ m != null && m.value || (m == null ? void 0 : m.value) === "" ? (_(), q(g3(l(m == null ? void 0 : m.type)), {
23796
23790
  key: 0,
23797
23791
  modelValue: m.value,
23798
- "onUpdate:modelValue": (O) => m.value = O,
23792
+ "onUpdate:modelValue": (D) => m.value = D,
23799
23793
  content: (m == null ? void 0 : m.contents) ?? []
23800
23794
  }, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : c2("", !0)
23801
23795
  ]))), 128))
@@ -23808,12 +23802,12 @@ const ok = ["onDblclick"], lk = {
23808
23802
  tab: p,
23809
23803
  index: g
23810
23804
  }, () => [
23811
- (y(!0), E(M2, null, V2(p == null ? void 0 : p.children, (v, m) => (y(), E("div", {
23805
+ (_(!0), E(M2, null, V2(p == null ? void 0 : p.children, (v, m) => (_(), E("div", {
23812
23806
  key: m,
23813
23807
  class: "tabs-contents"
23814
23808
  }, [
23815
23809
  C2(c.$slots, `${(v == null ? void 0 : v.value) ?? ""}_operateButtons`, {}, void 0, !0),
23816
- v != null && v.value || (v == null ? void 0 : v.value) === "" ? (y(), q(g3(l(v == null ? void 0 : v.type)), {
23810
+ v != null && v.value || (v == null ? void 0 : v.value) === "" ? (_(), q(g3(l(v == null ? void 0 : v.type)), {
23817
23811
  key: 0,
23818
23812
  modelValue: v.value,
23819
23813
  "onUpdate:modelValue": (b) => v.value = b,