ss-component-new 1.3.533 → 1.3.534

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ref as N, resolveComponent as J, createBlock as q, openBlock as x, defineComponent as i0, computed as r2, watch as F2, createElementBlock as z, createVNode as i2, withCtx as H, createElementVNode as a2, Fragment as k2, renderList as M2, withModifiers as Ge, normalizeClass as Ce, toDisplayString as E2, createSlots as ae, renderSlot as D2, nextTick as G0, onMounted as Ve, createTextVNode as T0, isRef as m9, isReactive as w9, toRaw as x9, createCommentVNode as Q, onBeforeUnmount as X4, normalizeStyle as h0, resolveDynamicComponent as Lt, normalizeProps as b9, guardReactiveProps as _9, unref as Y0, mergeProps as G1, reactive as o6, inject as x6, withDirectives as v3, vShow as b6, watchEffect as it, onUnmounted as e1, resolveDirective as y9, h as qi, toRefs as S9 } from "vue";
1
+ import { ref as N, resolveComponent as J, createBlock as q, openBlock as x, defineComponent as i0, computed as r2, watch as F2, createElementBlock as z, createVNode as t2, withCtx as H, createElementVNode as a2, Fragment as k2, renderList as M2, withModifiers as Ge, normalizeClass as Ce, toDisplayString as E2, createSlots as ae, renderSlot as D2, nextTick as G0, onMounted as Ve, createTextVNode as T0, isRef as m9, isReactive as w9, toRaw as x9, createCommentVNode as Q, onBeforeUnmount as X4, normalizeStyle as h0, resolveDynamicComponent as Lt, normalizeProps as b9, guardReactiveProps as _9, unref as Y0, mergeProps as G1, reactive as o6, inject as x6, withDirectives as v3, vShow as b6, watchEffect as it, onUnmounted as e1, resolveDirective as y9, h as qi, toRefs as S9 } from "vue";
2
2
  import { a8 as C9, a9 as k9, g as D9, aa as O9, ab as M9, ac as T9, a5 as Yi, ad as z9, ae as P9, af as V9, ag as A9, ah as Fi, ai as Ki } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-CSiO4SIG.js";
3
3
  import { _ as B2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { S as It } from "./index-BHtNKL1L.js";
@@ -8,7 +8,7 @@ import { _ as q0 } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
8
8
  import { m as Qi, B as W9, Y as a8 } from "./index-DB1HWx1W.js";
9
9
  /* empty css */
10
10
  import { s as ei } from "./index-11kpzK0A.js";
11
- import { T as Ji, a as U9 } from "./threeViewerHost-C25yJdV7.js";
11
+ import { T as Ji, a as U9 } from "./threeViewerHost-tz3s8Mvi.js";
12
12
  import { A as I9 } from "./index-CVIPXYtg.js";
13
13
  var q9 = "[object Date]";
14
14
  function Y9(n) {
@@ -166,7 +166,7 @@ const K9 = {
166
166
  key: "0"
167
167
  } : void 0
168
168
  ]), 1032, ["modelValue", "disabled"])) : (x(), z("div", X9, [
169
- i2(D, {
169
+ t2(D, {
170
170
  visible: a.value && n.suggestList.length > 0,
171
171
  trigger: "manual",
172
172
  placement: "bottom-start",
@@ -175,7 +175,7 @@ const K9 = {
175
175
  "popper-class": "input-suggest-popper"
176
176
  }, {
177
177
  reference: H(() => [
178
- i2(M, {
178
+ t2(M, {
179
179
  modelValue: o.value,
180
180
  "onUpdate:modelValue": S[0] || (S[0] = (O) => o.value = O),
181
181
  disabled: !(t != null && t.isEdit) || (t == null ? void 0 : t.disabled),
@@ -1042,7 +1042,7 @@ const Ap = { class: "icon-popover" }, Ep = ["onClick"], Bp = /* @__PURE__ */ i0(
1042
1042
  class: "icon-wrap",
1043
1043
  onClick: (m) => h(p)
1044
1044
  }, [
1045
- i2(It, {
1045
+ t2(It, {
1046
1046
  name: p == null ? void 0 : p.value,
1047
1047
  style: { width: "20px", height: "20px" }
1048
1048
  }, null, 8, ["name"])
@@ -1050,7 +1050,7 @@ const Ap = { class: "icon-popover" }, Ep = ["onClick"], Bp = /* @__PURE__ */ i0(
1050
1050
  ])
1051
1051
  ]),
1052
1052
  reference: H(() => [
1053
- i2(u, {
1053
+ t2(u, {
1054
1054
  modelValue: s.value,
1055
1055
  "onUpdate:modelValue": d[0] || (d[0] = (p) => s.value = p),
1056
1056
  placeholder: "请输入",
@@ -1060,7 +1060,7 @@ const Ap = { class: "icon-popover" }, Ep = ["onClick"], Bp = /* @__PURE__ */ i0(
1060
1060
  onBlur: a
1061
1061
  }, {
1062
1062
  prepend: H(() => [
1063
- i2(It, {
1063
+ t2(It, {
1064
1064
  name: s.value,
1065
1065
  style: { width: "20px", height: "20px" }
1066
1066
  }, null, 8, ["name"])
@@ -1431,13 +1431,13 @@ const Wp = async (n) => {
1431
1431
  const U = /* @__PURE__ */ new Set(["id", "create_time", "update_time", "sort", "create_user_id", "update_user_id", "department_id", "relatedId"]);
1432
1432
  return Object.keys(L).filter((c2) => !U.has(c2) && L[c2] !== void 0 && L[c2] !== "").map((c2) => `${c2}: ${L[c2]}`).join("<br/>");
1433
1433
  }, Y = (L) => {
1434
- var c2, S2, m2, L2;
1435
- if (!(L != null && L.value) || !(((c2 = t.optionUrl) == null ? void 0 : c2.mainKey) && Array.isArray((S2 = t.optionUrl) == null ? void 0 : S2.menus) && t.optionUrl.menus.length > 0) || !((L2 = (m2 = t.optionUrl) == null ? void 0 : m2.words) != null && L2.length)) return "";
1434
+ var c2, S2, v2, L2;
1435
+ if (!(L != null && L.value) || !(((c2 = t.optionUrl) == null ? void 0 : c2.mainKey) && Array.isArray((S2 = t.optionUrl) == null ? void 0 : S2.menus) && t.optionUrl.menus.length > 0) || !((L2 = (v2 = t.optionUrl) == null ? void 0 : v2.words) != null && L2.length)) return "";
1436
1436
  const l2 = h.value.get(L.value);
1437
1437
  return l2 !== void 0 ? l2 : "加载中...";
1438
1438
  }, P = async (L) => {
1439
- var c2, S2, m2, L2, n0, q2, J2, a0;
1440
- if (!((S2 = (c2 = t.optionUrl) == null ? void 0 : c2.menus) != null && S2.length) || !((L2 = (m2 = t.optionUrl) == null ? void 0 : m2.words) != null && L2.length) || !((a0 = (n0 = t.optionUrl) == null ? void 0 : n0.words) == null ? void 0 : a0[((J2 = (q2 = t.optionUrl) == null ? void 0 : q2.words) == null ? void 0 : J2.length) - 1])) return;
1439
+ var c2, S2, v2, L2, n0, q2, J2, a0;
1440
+ if (!((S2 = (c2 = t.optionUrl) == null ? void 0 : c2.menus) != null && S2.length) || !((L2 = (v2 = t.optionUrl) == null ? void 0 : v2.words) != null && L2.length) || !((a0 = (n0 = t.optionUrl) == null ? void 0 : n0.words) == null ? void 0 : a0[((J2 = (q2 = t.optionUrl) == null ? void 0 : q2.words) == null ? void 0 : J2.length) - 1])) return;
1441
1441
  const l2 = new Map(h.value);
1442
1442
  L == null || L.forEach((X2) => {
1443
1443
  l2.has(X2) || l2.set(X2, "加载中...");
@@ -1446,51 +1446,51 @@ const Wp = async (n) => {
1446
1446
  if (h.value.get(X2) !== "加载中...") continue;
1447
1447
  const v0 = { ...t.optionUrl, value: X2 };
1448
1448
  try {
1449
- const R = await Wp(v0), I = V(R), b2 = new Map(h.value);
1450
- b2.set(X2, I), h.value = b2;
1449
+ const R = await Wp(v0), I = V(R), x2 = new Map(h.value);
1450
+ x2.set(X2, I), h.value = x2;
1451
1451
  } catch {
1452
1452
  const I = new Map(h.value);
1453
1453
  I.set(X2, ""), h.value = I;
1454
1454
  }
1455
1455
  }
1456
1456
  }, f2 = async () => {
1457
- var L, U, l2, c2, S2, m2, L2, n0, q2, J2, a0, X2, v0, R, I, b2;
1457
+ var L, U, l2, c2, S2, v2, L2, n0, q2, J2, a0, X2, v0, R, I, x2;
1458
1458
  if (((U = (L = t.optionUrl) == null ? void 0 : L.allSelectionContents) == null ? void 0 : U.length) > 0) {
1459
1459
  let F = [], j2 = [], G2 = (l2 = t.optionUrl) == null ? void 0 : l2.filterContent;
1460
- Array.isArray(G2) || (G2 = (S2 = (c2 = G2 == null ? void 0 : G2.replaceAll("(", "")) == null ? void 0 : c2.replaceAll(")", "")) == null ? void 0 : S2.split("||")), G2 == null || G2.forEach((g2) => {
1460
+ Array.isArray(G2) || (G2 = (S2 = (c2 = G2 == null ? void 0 : G2.replaceAll("(", "")) == null ? void 0 : c2.replaceAll(")", "")) == null ? void 0 : S2.split("||")), G2 == null || G2.forEach((p2) => {
1461
1461
  var Z2, w, X0;
1462
- (g2 == null ? void 0 : g2[0]) === "@" && (g2 = (w = (Z2 = g2 == null ? void 0 : g2.replace("(", "$R")) == null ? void 0 : Z2.split("$R")) == null ? void 0 : w[1], g2 = g2 == null ? void 0 : g2.slice(0, (g2 == null ? void 0 : g2.length) - 1)), j2 == null || j2.push(Qi("(" + g2 + ")")), F == null || F.push(Object.keys((X0 = Qi("(" + g2 + ")")) == null ? void 0 : X0[0]));
1462
+ (p2 == null ? void 0 : p2[0]) === "@" && (p2 = (w = (Z2 = p2 == null ? void 0 : p2.replace("(", "$R")) == null ? void 0 : Z2.split("$R")) == null ? void 0 : w[1], p2 = p2 == null ? void 0 : p2.slice(0, (p2 == null ? void 0 : p2.length) - 1)), j2 == null || j2.push(Qi("(" + p2 + ")")), F == null || F.push(Object.keys((X0 = Qi("(" + p2 + ")")) == null ? void 0 : X0[0]));
1463
1463
  }), F = F == null ? void 0 : F[0];
1464
1464
  let c0 = [];
1465
- for (let g2 in (m2 = t.optionUrl) == null ? void 0 : m2.contactValue)
1466
- if (F != null && F.find((Z2) => Z2 === g2) || F != null && F.find((Z2) => g2 == null ? void 0 : g2.includes("." + Z2))) {
1467
- let Z2 = (F == null ? void 0 : F.find((w) => w === g2)) ?? (F == null ? void 0 : F.find((w) => g2 == null ? void 0 : g2.includes("." + w)));
1465
+ for (let p2 in (v2 = t.optionUrl) == null ? void 0 : v2.contactValue)
1466
+ if (F != null && F.find((Z2) => Z2 === p2) || F != null && F.find((Z2) => p2 == null ? void 0 : p2.includes("." + Z2))) {
1467
+ let Z2 = (F == null ? void 0 : F.find((w) => w === p2)) ?? (F == null ? void 0 : F.find((w) => p2 == null ? void 0 : p2.includes("." + w)));
1468
1468
  c0.push({
1469
- [Z2]: (n0 = (L2 = t.optionUrl) == null ? void 0 : L2.contactValue) == null ? void 0 : n0[g2]
1469
+ [Z2]: (n0 = (L2 = t.optionUrl) == null ? void 0 : L2.contactValue) == null ? void 0 : n0[p2]
1470
1470
  });
1471
1471
  }
1472
1472
  let Q2 = {};
1473
- c0 == null || c0.forEach((g2) => {
1474
- for (let Z2 in g2)
1475
- Q2[Z2] = g2 == null ? void 0 : g2[Z2];
1473
+ c0 == null || c0.forEach((p2) => {
1474
+ for (let Z2 in p2)
1475
+ Q2[Z2] = p2 == null ? void 0 : p2[Z2];
1476
1476
  });
1477
- let V2 = j2 == null ? void 0 : j2.findIndex((g2) => JSON.stringify(g2 == null ? void 0 : g2[0]) === JSON.stringify(Q2));
1478
- r.value = (a0 = (J2 = (q2 = t.optionUrl) == null ? void 0 : q2.allSelectionContents) == null ? void 0 : J2[V2]) == null ? void 0 : a0.map((g2) => ({
1479
- label: g2,
1480
- value: g2
1477
+ let A2 = j2 == null ? void 0 : j2.findIndex((p2) => JSON.stringify(p2 == null ? void 0 : p2[0]) === JSON.stringify(Q2));
1478
+ r.value = (a0 = (J2 = (q2 = t.optionUrl) == null ? void 0 : q2.allSelectionContents) == null ? void 0 : J2[A2]) == null ? void 0 : a0.map((p2) => ({
1479
+ label: p2,
1480
+ value: p2
1481
1481
  }));
1482
1482
  } else if (((v0 = (X2 = t.optionUrl) == null ? void 0 : X2.menus) == null ? void 0 : v0.length) > 0) {
1483
1483
  let F = await k9(t.optionUrl, t == null ? void 0 : t.wholeValue);
1484
1484
  r.value = [...r.value, ...F ?? []], s.value = (I = (R = r.value) == null ? void 0 : R[0]) == null ? void 0 : I.value;
1485
1485
  }
1486
- await P((b2 = r.value) == null ? void 0 : b2.map((F) => F == null ? void 0 : F.value)), i("click");
1486
+ await P((x2 = r.value) == null ? void 0 : x2.map((F) => F == null ? void 0 : F.value)), i("click");
1487
1487
  };
1488
1488
  return (L, U) => {
1489
1489
  const l2 = J("el-tooltip"), c2 = J("el-option"), S2 = J("el-select");
1490
1490
  return l.value ? l.value ? (x(), q(Gt, {
1491
1491
  key: 1,
1492
1492
  modelValue: o.value,
1493
- "onUpdate:modelValue": U[1] || (U[1] = (m2) => o.value = m2),
1493
+ "onUpdate:modelValue": U[1] || (U[1] = (v2) => o.value = v2),
1494
1494
  onChange: m,
1495
1495
  onBlur: p
1496
1496
  }, null, 8, ["modelValue"])) : Q("", !0) : (x(), q(S2, {
@@ -1500,7 +1500,7 @@ const Wp = async (n) => {
1500
1500
  class: Ce(["ss-select", v.value]),
1501
1501
  loading: t == null ? void 0 : t.loading,
1502
1502
  modelValue: s.value,
1503
- "onUpdate:modelValue": U[0] || (U[0] = (m2) => s.value = m2),
1503
+ "onUpdate:modelValue": U[0] || (U[0] = (v2) => s.value = v2),
1504
1504
  filterable: "",
1505
1505
  "allow-create": "true",
1506
1506
  "default-first-option": "true",
@@ -1518,34 +1518,34 @@ const Wp = async (n) => {
1518
1518
  onDblclick: u,
1519
1519
  onMouseenter: f
1520
1520
  }, {
1521
- label: H(({ label: m2, value: L2 }) => [
1521
+ label: H(({ label: v2, value: L2 }) => [
1522
1522
  a2("div", {
1523
1523
  class: Ce(["option", [S({ value: L2 })]]),
1524
1524
  onClick: Ge((n0) => O({ value: L2 }), ["stop"])
1525
1525
  }, [
1526
- a2("div", Ip, E2(m2), 1)
1526
+ a2("div", Ip, E2(v2), 1)
1527
1527
  ], 10, Up)
1528
1528
  ]),
1529
1529
  default: H(() => [
1530
- (x(!0), z(k2, null, M2(E.value, (m2) => (x(), q(c2, {
1531
- key: m2.value,
1532
- label: m2.label,
1533
- value: m2.value
1530
+ (x(!0), z(k2, null, M2(E.value, (v2) => (x(), q(c2, {
1531
+ key: v2.value,
1532
+ label: v2.label,
1533
+ value: v2.value
1534
1534
  }, {
1535
1535
  default: H(() => [
1536
- Y(m2) ? (x(), q(l2, {
1536
+ Y(v2) ? (x(), q(l2, {
1537
1537
  key: 0,
1538
1538
  placement: "right",
1539
1539
  effect: "dark",
1540
- content: Y(m2),
1540
+ content: Y(v2),
1541
1541
  "raw-content": !0,
1542
1542
  offset: 50
1543
1543
  }, {
1544
1544
  default: H(() => [
1545
- a2("span", null, E2(m2.label), 1)
1545
+ a2("span", null, E2(v2.label), 1)
1546
1546
  ]),
1547
1547
  _: 2
1548
- }, 1032, ["content"])) : (x(), z("span", qp, E2(m2.label), 1))
1548
+ }, 1032, ["content"])) : (x(), z("span", qp, E2(v2.label), 1))
1549
1549
  ]),
1550
1550
  _: 2
1551
1551
  }, 1032, ["label", "value"]))), 128))
@@ -1645,14 +1645,14 @@ const Wp = async (n) => {
1645
1645
  v0();
1646
1646
  });
1647
1647
  const r = e, a = N(null), h = N(null), c = N(), d = N(), u = N(0), f = N(""), p = N(""), g = N(!1), m = N(""), v = r2(() => {
1648
- const I = ((t == null ? void 0 : t.rowContents) || []).some((b2) => {
1648
+ const I = ((t == null ? void 0 : t.rowContents) || []).some((x2) => {
1649
1649
  var G2;
1650
- const { prop: F } = b2 || {};
1650
+ const { prop: F } = x2 || {};
1651
1651
  return (G2 = F == null ? void 0 : F.includes) == null ? void 0 : G2.call(F, ".");
1652
1652
  });
1653
1653
  return (t == null ? void 0 : t.layer) && I;
1654
1654
  }), S = r2(() => {
1655
- var b2;
1655
+ var x2;
1656
1656
  const R = {
1657
1657
  [ft]: [],
1658
1658
  tabList: []
@@ -1660,16 +1660,16 @@ const Wp = async (n) => {
1660
1660
  if (!v)
1661
1661
  return R;
1662
1662
  const I = {};
1663
- return (b2 = t == null ? void 0 : t.rowContents) == null || b2.forEach((F) => {
1663
+ return (x2 = t == null ? void 0 : t.rowContents) == null || x2.forEach((F) => {
1664
1664
  const { prop: j2, value: G2, label: c0 } = F || {};
1665
- let [Q2, V2] = c0.split(".", 2);
1666
- V2 || (V2 = Q2, Q2 = ft);
1667
- const g2 = {
1665
+ let [Q2, A2] = c0.split(".", 2);
1666
+ A2 || (A2 = Q2, Q2 = ft);
1667
+ const p2 = {
1668
1668
  tabName: Q2,
1669
- labelName: V2,
1669
+ labelName: A2,
1670
1670
  ...F
1671
1671
  };
1672
- I[Q2] || (I[Q2] = []), I[Q2].push(g2);
1672
+ I[Q2] || (I[Q2] = []), I[Q2].push(p2);
1673
1673
  }), R[ft] = I[ft] || [], delete I[ft], R.tabList = Object.keys(I).map((F) => ({
1674
1674
  name: F,
1675
1675
  rows: I[F]
@@ -1685,8 +1685,8 @@ const Wp = async (n) => {
1685
1685
  if (R) {
1686
1686
  p.value && (URL.revokeObjectURL(p.value), p.value = "");
1687
1687
  try {
1688
- const I = await r8({ url: R }), b2 = new Blob([I == null ? void 0 : I.data], { type: (I == null ? void 0 : I.headers["content-type"]) || "image/*" });
1689
- p.value = URL.createObjectURL(b2);
1688
+ const I = await r8({ url: R }), x2 = new Blob([I == null ? void 0 : I.data], { type: (I == null ? void 0 : I.headers["content-type"]) || "image/*" });
1689
+ p.value = URL.createObjectURL(x2);
1690
1690
  } catch {
1691
1691
  p.value = "";
1692
1692
  }
@@ -1699,18 +1699,18 @@ const Wp = async (n) => {
1699
1699
  }, { immediate: !0 });
1700
1700
  const D = async (R) => {
1701
1701
  var F, j2, G2;
1702
- const I = R.target, b2 = (F = I == null ? void 0 : I.files) == null ? void 0 : F[0];
1703
- if (b2) {
1704
- if (!b2.type.startsWith("image/")) {
1702
+ const I = R.target, x2 = (F = I == null ? void 0 : I.files) == null ? void 0 : F[0];
1703
+ if (x2) {
1704
+ if (!x2.type.startsWith("image/")) {
1705
1705
  Xe.error("请上传图片文件"), I.value = "";
1706
1706
  return;
1707
1707
  }
1708
1708
  g.value = !0;
1709
1709
  try {
1710
1710
  const c0 = new FormData();
1711
- c0.append("file", b2);
1712
- const Q2 = await T3(c0), V2 = (G2 = (j2 = Q2 == null ? void 0 : Q2.data) == null ? void 0 : j2.result) == null ? void 0 : G2.url;
1713
- V2 ? (f.value = V2, r("update:backGroundImage", V2), M(V2), Xe.success("背景图片上传成功")) : Xe.error("背景图片上传失败");
1711
+ c0.append("file", x2);
1712
+ const Q2 = await T3(c0), A2 = (G2 = (j2 = Q2 == null ? void 0 : Q2.data) == null ? void 0 : j2.result) == null ? void 0 : G2.url;
1713
+ A2 ? (f.value = A2, r("update:backGroundImage", A2), M(A2), Xe.success("背景图片上传成功")) : Xe.error("背景图片上传失败");
1714
1714
  } catch {
1715
1715
  Xe.error("背景图片上传失败");
1716
1716
  } finally {
@@ -1721,10 +1721,10 @@ const Wp = async (n) => {
1721
1721
  var R;
1722
1722
  (R = O.value) == null || R.click();
1723
1723
  }, k = r2(() => {
1724
- const R = Number(t == null ? void 0 : t.textSize), I = W9(t == null ? void 0 : t.textColor), b2 = {
1724
+ const R = Number(t == null ? void 0 : t.textSize), I = W9(t == null ? void 0 : t.textColor), x2 = {
1725
1725
  flexDirection: t != null && t.isButtonRow ? "row" : "column"
1726
1726
  };
1727
- return !Number.isNaN(R) && R && (b2["--ssform-label-fontSize"] = `${R}px`, b2["--ssform-input-fontSize"] = `${R}px`), I && (b2["--ssform-label-color"] = I), p.value && (b2.backgroundImage = `url(${p.value})`, b2.backgroundSize = "cover", b2.backgroundPosition = "center", b2.backgroundRepeat = "no-repeat"), b2;
1727
+ return !Number.isNaN(R) && R && (x2["--ssform-label-fontSize"] = `${R}px`, x2["--ssform-input-fontSize"] = `${R}px`), I && (x2["--ssform-label-color"] = I), p.value && (x2.backgroundImage = `url(${p.value})`, x2.backgroundSize = "cover", x2.backgroundPosition = "center", x2.backgroundRepeat = "no-repeat"), x2;
1728
1728
  }), G = r2(() => {
1729
1729
  var R;
1730
1730
  return (R = a8) == null ? void 0 : R.map((I) => ({
@@ -1734,8 +1734,8 @@ const Wp = async (n) => {
1734
1734
  }), E = (R) => {
1735
1735
  r("routeUrl", R);
1736
1736
  }, V = r2(() => {
1737
- var b2;
1738
- const R = (b2 = l.value) == null ? void 0 : b2.split("/");
1737
+ var x2;
1738
+ const R = (x2 = l.value) == null ? void 0 : x2.split("/");
1739
1739
  return (R == null ? void 0 : R.some((F) => (F == null ? void 0 : F.includes("updateLoading")) || (F == null ? void 0 : F.includes("loading")))) ? !1 : s.value === "view" && (t == null ? void 0 : t.showOperator);
1740
1740
  }), Y = (R) => Gi(R), P = () => {
1741
1741
  r("fixChangeValue");
@@ -1759,14 +1759,14 @@ const Wp = async (n) => {
1759
1759
  item: R,
1760
1760
  value: I
1761
1761
  });
1762
- }, m2 = () => {
1762
+ }, v2 = () => {
1763
1763
  G0(() => {
1764
1764
  u.value++;
1765
1765
  });
1766
1766
  }, L2 = (R, I) => I, n0 = (R) => {
1767
1767
  var j2;
1768
- const { type: I, multiple: b2, value: F } = R || {};
1769
- if (!((j2 = I == null ? void 0 : I.toUpperCase) != null && j2.call(I)) === "SELECT" || b2 !== !0 || Array.isArray(F))
1768
+ const { type: I, multiple: x2, value: F } = R || {};
1769
+ if (!((j2 = I == null ? void 0 : I.toUpperCase) != null && j2.call(I)) === "SELECT" || x2 !== !0 || Array.isArray(F))
1770
1770
  return F;
1771
1771
  try {
1772
1772
  return JSON.parse(F);
@@ -1783,10 +1783,10 @@ const Wp = async (n) => {
1783
1783
  F2(
1784
1784
  () => t == null ? void 0 : t.rowContents,
1785
1785
  () => {
1786
- var I, b2;
1786
+ var I, x2;
1787
1787
  if (((I = t == null ? void 0 : t.rowContents) == null ? void 0 : I.length) === 0) return;
1788
1788
  const R = {};
1789
- (b2 = F0(t == null ? void 0 : t.rowContents)) == null || b2.forEach((F) => {
1789
+ (x2 = F0(t == null ? void 0 : t.rowContents)) == null || x2.forEach((F) => {
1790
1790
  var G2;
1791
1791
  R[(F == null ? void 0 : F.prop) ?? (F == null ? void 0 : F.name)] = L2(F == null ? void 0 : F.type, F == null ? void 0 : F.value);
1792
1792
  const { type: j2 } = F || {};
@@ -1794,17 +1794,17 @@ const Wp = async (n) => {
1794
1794
  const c0 = (F == null ? void 0 : F.prop) ?? (F == null ? void 0 : F.name);
1795
1795
  R[c0] = n0(F);
1796
1796
  }
1797
- }), c.value = R, d.value = R, m2();
1797
+ }), c.value = R, d.value = R, v2();
1798
1798
  },
1799
1799
  { deep: !0, immediate: !0 }
1800
1800
  ), r2(() => {
1801
1801
  var I;
1802
- return (I = t == null ? void 0 : t.rowContents) == null ? void 0 : I.find((b2) => {
1803
- const { type: F, optionUrl: j2 = {} } = b2, { multiple: G2, multipleLimit: c0, menuFilter: Q2 = [] } = j2, V2 = F === "Select", g2 = G2, Z2 = "@Type:Manual", w = Q2 == null ? void 0 : Q2.find((V0) => {
1802
+ return (I = t == null ? void 0 : t.rowContents) == null ? void 0 : I.find((x2) => {
1803
+ const { type: F, optionUrl: j2 = {} } = x2, { multiple: G2, multipleLimit: c0, menuFilter: Q2 = [] } = j2, A2 = F === "Select", p2 = G2, Z2 = "@Type:Manual", w = Q2 == null ? void 0 : Q2.find((V0) => {
1804
1804
  const { content: ue } = V0;
1805
1805
  return ue.includes(Z2);
1806
1806
  }), X0 = c0 && c0 > 1;
1807
- return V2 && g2 && w && X0;
1807
+ return A2 && p2 && w && X0;
1808
1808
  });
1809
1809
  });
1810
1810
  const X2 = async (R, I) => {
@@ -1817,8 +1817,8 @@ const Wp = async (n) => {
1817
1817
  buttonName: R
1818
1818
  }
1819
1819
  );
1820
- await (I == null ? void 0 : I.validate((b2, F) => {
1821
- b2 ? r(
1820
+ await (I == null ? void 0 : I.validate((x2, F) => {
1821
+ x2 ? r(
1822
1822
  "onButtonClick",
1823
1823
  {
1824
1824
  content: d.value,
@@ -1849,7 +1849,7 @@ const Wp = async (n) => {
1849
1849
  { deep: !0 }
1850
1850
  ), (R, I) => {
1851
1851
  var Q2;
1852
- const b2 = J("el-form-item"), F = J("el-tab-pane"), j2 = J("el-tabs"), G2 = J("el-form"), c0 = J("el-button");
1852
+ const x2 = J("el-form-item"), F = J("el-tab-pane"), j2 = J("el-tabs"), G2 = J("el-form"), c0 = J("el-button");
1853
1853
  return x(), z("div", {
1854
1854
  class: "form-content",
1855
1855
  style: h0(k.value)
@@ -1857,7 +1857,7 @@ const Wp = async (n) => {
1857
1857
  (t == null ? void 0 : t.backGround) === "Yes" ? (x(), z("div", {
1858
1858
  key: 0,
1859
1859
  class: "form-backGround-upload",
1860
- onClick: I[0] || (I[0] = Ge((V2) => _(), ["stop"]))
1860
+ onClick: I[0] || (I[0] = Ge((A2) => _(), ["stop"]))
1861
1861
  }, [
1862
1862
  a2("input", {
1863
1863
  type: "file",
@@ -1891,11 +1891,11 @@ const Wp = async (n) => {
1891
1891
  class: Ce(n.formDisabled ? "form-noRegular-data disabled-form" : "form-noRegular-data")
1892
1892
  }, {
1893
1893
  default: H(() => {
1894
- var V2, g2, Z2, w, X0, V0, ue;
1894
+ var A2, p2, Z2, w, X0, V0, ue;
1895
1895
  return [
1896
- (g2 = (V2 = S.value) == null ? void 0 : V2[ft]) != null && g2.length ? (x(), z("div", Qp, [
1896
+ (p2 = (A2 = S.value) == null ? void 0 : A2[ft]) != null && p2.length ? (x(), z("div", Qp, [
1897
1897
  a2("div", Jp, [
1898
- !((Z2 = R.item) != null && Z2.isFormColHidden) && !((w = R.item) != null && w.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(S.value[ft], (b, se) => (x(), q(b2, {
1898
+ !((Z2 = R.item) != null && Z2.isFormColHidden) && !((w = R.item) != null && w.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(S.value[ft], (b, se) => (x(), q(x2, {
1899
1899
  key: b == null ? void 0 : b.prop,
1900
1900
  class: Ce(["form-item", { "form-row-content": !n.isRowFlex }]),
1901
1901
  prop: (b == null ? void 0 : b.prop) ?? (b == null ? void 0 : b.name),
@@ -1934,7 +1934,7 @@ const Wp = async (n) => {
1934
1934
  selectedTagList: (b == null ? void 0 : b.selectValue) ?? []
1935
1935
  }, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : Q("", !0),
1936
1936
  (b == null ? void 0 : b.type) === "Url" ? (x(), z("div", tg, [
1937
- i2(q0, {
1937
+ t2(q0, {
1938
1938
  class: "calculator-content form-preview",
1939
1939
  onClickTrigger: (j0) => E(d.value[(b == null ? void 0 : b.prop) ?? b.name]),
1940
1940
  modelValue: "详情"
@@ -1966,7 +1966,7 @@ const Wp = async (n) => {
1966
1966
  onChange: (O0) => J2(O0, b)
1967
1967
  }, {
1968
1968
  append: H(() => [
1969
- i2(p1, {
1969
+ t2(p1, {
1970
1970
  value: b == null ? void 0 : b.type,
1971
1971
  content: G.value,
1972
1972
  placeholder: "类型",
@@ -2002,7 +2002,7 @@ const Wp = async (n) => {
2002
2002
  var se, O0;
2003
2003
  return [
2004
2004
  a2("div", ig, [
2005
- !((se = R.layerFormItem) != null && se.isFormColHidden) && !((O0 = R.layerFormItem) != null && O0.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(b.rows, (y, Ue) => (x(), q(b2, {
2005
+ !((se = R.layerFormItem) != null && se.isFormColHidden) && !((O0 = R.layerFormItem) != null && O0.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(b.rows, (y, Ue) => (x(), q(x2, {
2006
2006
  key: y == null ? void 0 : y.prop,
2007
2007
  class: Ce(["form-item", { "form-row-content": !n.isRowFlex }]),
2008
2008
  prop: (y == null ? void 0 : y.prop) ?? (y == null ? void 0 : y.name),
@@ -2041,7 +2041,7 @@ const Wp = async (n) => {
2041
2041
  selectedTagList: (y == null ? void 0 : y.selectValue) ?? []
2042
2042
  }, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : Q("", !0),
2043
2043
  (y == null ? void 0 : y.type) === "Url" ? (x(), z("div", og, [
2044
- i2(q0, {
2044
+ t2(q0, {
2045
2045
  class: "calculator-content form-preview",
2046
2046
  onClickTrigger: (A) => E(d.value[(y == null ? void 0 : y.prop) ?? y.name]),
2047
2047
  modelValue: "详情"
@@ -2073,7 +2073,7 @@ const Wp = async (n) => {
2073
2073
  onChange: (A0) => J2(A0, y)
2074
2074
  }, {
2075
2075
  append: H(() => [
2076
- i2(p1, {
2076
+ t2(p1, {
2077
2077
  value: y == null ? void 0 : y.type,
2078
2078
  content: G.value,
2079
2079
  placeholder: "类型",
@@ -2129,9 +2129,9 @@ const Wp = async (n) => {
2129
2129
  key: u.value
2130
2130
  }, {
2131
2131
  default: H(() => {
2132
- var V2, g2, Z2;
2132
+ var A2, p2, Z2;
2133
2133
  return [
2134
- !((V2 = R.item) != null && V2.isFormColHidden) && !((g2 = R.item) != null && g2.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(t == null ? void 0 : t.rowContents, (w, X0) => (x(), q(b2, {
2134
+ !((A2 = R.item) != null && A2.isFormColHidden) && !((p2 = R.item) != null && p2.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(t == null ? void 0 : t.rowContents, (w, X0) => (x(), q(x2, {
2135
2135
  key: w == null ? void 0 : w.prop,
2136
2136
  class: Ce(["form-item", { "form-row-content": !n.isRowFlex }]),
2137
2137
  prop: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
@@ -2170,7 +2170,7 @@ const Wp = async (n) => {
2170
2170
  selectedTagList: (w == null ? void 0 : w.selectValue) ?? []
2171
2171
  }, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "wholeValue", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : Q("", !0),
2172
2172
  (w == null ? void 0 : w.type) === "Url" ? (x(), z("div", cg, [
2173
- i2(q0, {
2173
+ t2(q0, {
2174
2174
  class: "calculator-content form-preview",
2175
2175
  onClickTrigger: (y0) => E(d.value[(w == null ? void 0 : w.prop) ?? w.name]),
2176
2176
  modelValue: "详情"
@@ -2202,7 +2202,7 @@ const Wp = async (n) => {
2202
2202
  onChange: (V0) => J2(V0, w)
2203
2203
  }, {
2204
2204
  append: H(() => [
2205
- i2(p1, {
2205
+ t2(p1, {
2206
2206
  value: w == null ? void 0 : w.type,
2207
2207
  content: G.value,
2208
2208
  placeholder: "类型",
@@ -2247,17 +2247,17 @@ const Wp = async (n) => {
2247
2247
  class: "form-button",
2248
2248
  style: h0({ justifyContent: n.isStartJustify ? "start" : "end" })
2249
2249
  }, [
2250
- (x(!0), z(k2, null, M2(t == null ? void 0 : t.buttonValue, (V2, g2) => (x(), z("div", {
2251
- key: g2,
2250
+ (x(!0), z(k2, null, M2(t == null ? void 0 : t.buttonValue, (A2, p2) => (x(), z("div", {
2251
+ key: p2,
2252
2252
  class: "form-button-content",
2253
- onClick: (Z2) => X2(V2 == null ? void 0 : V2.label, t.isEnableWrap ? a.value : h.value)
2253
+ onClick: (Z2) => X2(A2 == null ? void 0 : A2.label, t.isEnableWrap ? a.value : h.value)
2254
2254
  }, [
2255
- i2(c0, {
2255
+ t2(c0, {
2256
2256
  id: "themeButton",
2257
- style: h0({ background: (V2 == null ? void 0 : V2.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" })
2257
+ style: h0({ background: (A2 == null ? void 0 : A2.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" })
2258
2258
  }, {
2259
2259
  default: H(() => [
2260
- T0(E2(V2 == null ? void 0 : V2.label), 1)
2260
+ T0(E2(A2 == null ? void 0 : A2.label), 1)
2261
2261
  ]),
2262
2262
  _: 2
2263
2263
  }, 1032, ["style"])
@@ -2528,7 +2528,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
2528
2528
  effect: "light"
2529
2529
  }, {
2530
2530
  default: H(() => [
2531
- i2(i, {
2531
+ t2(i, {
2532
2532
  name: "operate",
2533
2533
  style: { width: "15px", height: "15px" }
2534
2534
  })
@@ -2636,7 +2636,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
2636
2636
  append: H(() => {
2637
2637
  var E;
2638
2638
  return [
2639
- i2(p1, {
2639
+ t2(p1, {
2640
2640
  value: (E = n.column) == null ? void 0 : E.columnType,
2641
2641
  content: o.value,
2642
2642
  clearable: !1,
@@ -2713,7 +2713,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
2713
2713
  return (e, t) => {
2714
2714
  const i = J("el-card");
2715
2715
  return x(), z("div", null, [
2716
- i2(i, null, {
2716
+ t2(i, null, {
2717
2717
  header: H(() => [
2718
2718
  D2(e.$slots, "header", {}, void 0, !0)
2719
2719
  ]),
@@ -2857,27 +2857,27 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
2857
2857
  return Array.isArray(u.value) && ((T = (C = u.value) == null ? void 0 : C[0]) == null ? void 0 : T.prop) === "disabled";
2858
2858
  }), M = r2(() => t.allowRowAddOrDelete && !S.value), D = e;
2859
2859
  x6("contentRef"), Ve(() => {
2860
- var T, A, $, s2, o2;
2861
- G = k(), u.value = t == null ? void 0 : t.columns, f.value = (T = t == null ? void 0 : t.tableData) == null ? void 0 : T.map((d2) => {
2862
- var h2, u2;
2863
- let e2 = {};
2864
- for (let X in d2)
2865
- if (X !== "level" && (e2[X] = tn(d2[X]) && d2[X] === 0 ? (h2 = d2[X]) == null ? void 0 : h2.toString() : d2[X]), X !== "id" && ((u2 = oe.value) == null ? void 0 : u2.prop) !== X && _(d2[X]))
2866
- if (!d2[X] || d2[X] === "" || d2[X] === null || d2[X] === void 0)
2867
- e2[X] = "";
2860
+ var T, A, $, s2, o2, _2;
2861
+ G = k(), u.value = t == null ? void 0 : t.columns, f.value = (T = t == null ? void 0 : t.tableData) == null ? void 0 : T.map((K) => {
2862
+ var d2, u2;
2863
+ let h2 = {};
2864
+ for (let i2 in K)
2865
+ if (i2 !== "level" && (h2[i2] = tn(K[i2]) && K[i2] === 0 ? (d2 = K[i2]) == null ? void 0 : d2.toString() : K[i2]), i2 !== "id" && ((u2 = oe.value) == null ? void 0 : u2.prop) !== i2 && _(K[i2]))
2866
+ if (!K[i2] || K[i2] === "" || K[i2] === null || K[i2] === void 0)
2867
+ h2[i2] = "";
2868
2868
  else {
2869
- const p2 = Be(d2[X]).tz("Asia/Shanghai").format("YYYY-MM-DD HH:mm:ss");
2870
- e2[X] = p2 === "Invalid Date" ? "" : p2;
2869
+ const z2 = Be(K[i2]).tz("Asia/Shanghai").format("YYYY-MM-DD HH:mm:ss");
2870
+ h2[i2] = z2 === "Invalid Date" ? "" : z2;
2871
2871
  }
2872
2872
  else
2873
- e2[X] = d2[X];
2874
- return e2;
2873
+ h2[i2] = K[i2];
2874
+ return h2;
2875
2875
  });
2876
- let C = (A = s.value) == null ? void 0 : A.find((d2) => (d2 == null ? void 0 : d2.parentContent) === l.value);
2876
+ let C = (A = s.value) == null ? void 0 : A.find((K) => (K == null ? void 0 : K.parentContent) === l.value);
2877
2877
  if (C) {
2878
- let d2 = (s2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : s2.prop, e2 = (o2 = f.value) == null ? void 0 : o2.find((h2) => (h2 == null ? void 0 : h2[d2]) === (C == null ? void 0 : C.value));
2879
- g.value.setCurrentRow(), g.value && setTimeout(() => {
2880
- g.value && g.value.setCurrentRow(e2);
2878
+ let K = (s2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : s2.prop, h2 = (o2 = f.value) == null ? void 0 : o2.find((d2) => (d2 == null ? void 0 : d2[K]) === (C == null ? void 0 : C.value));
2879
+ (_2 = g.value) == null || _2.setCurrentRow(), g.value && setTimeout(() => {
2880
+ g.value && g.value.setCurrentRow(h2);
2881
2881
  }, 100);
2882
2882
  }
2883
2883
  se(), y(), document.addEventListener("click", P);
@@ -2891,64 +2891,64 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
2891
2891
  return !isNaN(A.getTime());
2892
2892
  };
2893
2893
  function k() {
2894
- const C = /* @__PURE__ */ new WeakSet(), T = new MutationObserver(d2), A = /* @__PURE__ */ new WeakMap(), $ = [];
2895
- function s2(e2) {
2894
+ const C = /* @__PURE__ */ new WeakSet(), T = new MutationObserver(_2), A = /* @__PURE__ */ new WeakMap(), $ = [];
2895
+ function s2(K) {
2896
2896
  try {
2897
- const h2 = e2.getBoundingClientRect(), u2 = e2.clientWidth || h2.width || 1, X = h2.width / u2 || 1, p2 = parseFloat(getComputedStyle(e2).zoom || "1");
2898
- return p2 ? X / p2 : X;
2897
+ const h2 = K.getBoundingClientRect(), d2 = K.clientWidth || h2.width || 1, u2 = h2.width / d2 || 1, i2 = parseFloat(getComputedStyle(K).zoom || "1");
2898
+ return i2 ? u2 / i2 : u2;
2899
2899
  } catch {
2900
2900
  return 1;
2901
2901
  }
2902
2902
  }
2903
- function o2(e2) {
2904
- var X;
2905
- if (!e2 || C.has(e2)) return;
2906
- C.add(e2);
2907
- const h2 = e2.parentElement, u2 = (X = e2.closest(".el-scrollbar")) == null ? void 0 : X.querySelector(".el-scrollbar__wrap");
2908
- !h2 || !u2 || e2.addEventListener(
2903
+ function o2(K) {
2904
+ var u2;
2905
+ if (!K || C.has(K)) return;
2906
+ C.add(K);
2907
+ const h2 = K.parentElement, d2 = (u2 = K.closest(".el-scrollbar")) == null ? void 0 : u2.querySelector(".el-scrollbar__wrap");
2908
+ !h2 || !d2 || K.addEventListener(
2909
2909
  "pointerdown",
2910
- (p2) => {
2911
- p2.preventDefault(), p2.stopPropagation();
2910
+ (i2) => {
2911
+ i2.preventDefault(), i2.stopPropagation();
2912
2912
  try {
2913
- e2.setPointerCapture && e2.setPointerCapture(p2.pointerId);
2913
+ K.setPointerCapture && K.setPointerCapture(i2.pointerId);
2914
2914
  } catch {
2915
2915
  }
2916
2916
  h2.classList.add("is-dragging");
2917
- const A2 = s2(h2), e0 = h2.clientWidth || 1, S0 = e2.clientWidth || 0, Y2 = Math.max(1, (e0 - S0) / A2), C2 = Math.max(1, (u2.scrollWidth || 0) - (u2.clientWidth || 0)), W2 = p2.clientX, _2 = u2.scrollLeft, H2 = C2 / Y2, xe = (j) => {
2918
- const Ie = (j.clientX - W2) / A2;
2919
- u2.scrollLeft = _2 + Ie * H2;
2917
+ const z2 = s2(h2), e0 = h2.clientWidth || 1, S0 = K.clientWidth || 0, Y2 = Math.max(1, (e0 - S0) / z2), C2 = Math.max(1, (d2.scrollWidth || 0) - (d2.clientWidth || 0)), W2 = i2.clientX, b2 = d2.scrollLeft, H2 = C2 / Y2, xe = (j) => {
2918
+ const Ie = (j.clientX - W2) / z2;
2919
+ d2.scrollLeft = b2 + Ie * H2;
2920
2920
  }, le = () => {
2921
2921
  try {
2922
- e2.releasePointerCapture && e2.releasePointerCapture(p2.pointerId);
2922
+ K.releasePointerCapture && K.releasePointerCapture(i2.pointerId);
2923
2923
  } catch {
2924
2924
  }
2925
- e2.removeEventListener("pointermove", xe), e2.removeEventListener("pointerup", le), e2.removeEventListener("pointercancel", le), h2.classList.remove("is-dragging");
2925
+ K.removeEventListener("pointermove", xe), K.removeEventListener("pointerup", le), K.removeEventListener("pointercancel", le), h2.classList.remove("is-dragging");
2926
2926
  };
2927
- e2.addEventListener("pointermove", xe), e2.addEventListener("pointerup", le), e2.addEventListener("pointercancel", le);
2927
+ K.addEventListener("pointermove", xe), K.addEventListener("pointerup", le), K.addEventListener("pointercancel", le);
2928
2928
  },
2929
2929
  !0
2930
2930
  // 捕获阶段,保证我们先手
2931
2931
  );
2932
2932
  }
2933
- function d2() {
2934
- document.querySelectorAll(".el-scrollbar").forEach((e2) => {
2935
- if (!e2.closest(".el-table")) return;
2936
- const h2 = e2.querySelector(".el-scrollbar__wrap"), u2 = e2.querySelector(".el-scrollbar__bar.is-horizontal");
2937
- if (!h2 || !u2) return;
2938
- const X = h2.querySelector(".el-scrollbar__view") || h2.firstElementChild || h2, p2 = X.querySelector("table") || X.querySelector(".el-table__body") || X, A2 = p2.scrollWidth, e0 = h2.clientWidth, S0 = A2 - e0 > 2;
2939
- if (e2.classList.toggle("has-x-scroll", S0), u2.style.display = "", S0 && e2.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(o2), !A.has(h2)) {
2933
+ function _2() {
2934
+ document.querySelectorAll(".el-scrollbar").forEach((K) => {
2935
+ if (!K.closest(".el-table")) return;
2936
+ const h2 = K.querySelector(".el-scrollbar__wrap"), d2 = K.querySelector(".el-scrollbar__bar.is-horizontal");
2937
+ if (!h2 || !d2) return;
2938
+ const u2 = h2.querySelector(".el-scrollbar__view") || h2.firstElementChild || h2, i2 = u2.querySelector("table") || u2.querySelector(".el-table__body") || u2, z2 = i2.scrollWidth, e0 = h2.clientWidth, S0 = z2 - e0 > 2;
2939
+ if (K.classList.toggle("has-x-scroll", S0), d2.style.display = "", S0 && K.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(o2), !A.has(h2)) {
2940
2940
  const Y2 = new ResizeObserver(() => {
2941
- const C2 = p2 && p2.scrollWidth || h2.scrollWidth, W2 = h2.clientWidth, _2 = C2 - W2 > 2;
2942
- e2.classList.toggle("has-x-scroll", _2);
2941
+ const C2 = i2 && i2.scrollWidth || h2.scrollWidth, W2 = h2.clientWidth, b2 = C2 - W2 > 2;
2942
+ K.classList.toggle("has-x-scroll", b2);
2943
2943
  });
2944
- Y2.observe(h2), p2 && Y2.observe(p2), A.set(h2, Y2), $.push(() => Y2.disconnect());
2944
+ Y2.observe(h2), i2 && Y2.observe(i2), A.set(h2, Y2), $.push(() => Y2.disconnect());
2945
2945
  }
2946
2946
  });
2947
2947
  }
2948
- return d2(), T.observe(document.body, { childList: !0, subtree: !0 }), () => {
2949
- T.disconnect(), $.forEach((e2) => {
2948
+ return _2(), T.observe(document.body, { childList: !0, subtree: !0 }), () => {
2949
+ T.disconnect(), $.forEach((K) => {
2950
2950
  try {
2951
- e2();
2951
+ K();
2952
2952
  } catch {
2953
2953
  }
2954
2954
  }), $.length = 0;
@@ -2958,16 +2958,16 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
2958
2958
  F2(
2959
2959
  () => [s.value],
2960
2960
  () => {
2961
- var T, A, $, s2, o2, d2, e2;
2961
+ var T, A, $, s2, o2, _2, K;
2962
2962
  let C = (T = s.value) == null ? void 0 : T.find((h2) => (h2 == null ? void 0 : h2.parentContent) === l.value);
2963
2963
  if (C || !(($ = (A = s.value) == null ? void 0 : A[0]) != null && $.parentContent)) {
2964
- let h2 = (o2 = (s2 = u.value) == null ? void 0 : s2[0]) == null ? void 0 : o2.prop, u2 = (d2 = f.value) == null ? void 0 : d2.find((X) => {
2965
- var p2, A2;
2966
- return (X == null ? void 0 : X[h2]) === ((C == null ? void 0 : C.value) ?? ((A2 = (p2 = s.value) == null ? void 0 : p2[0]) == null ? void 0 : A2.value));
2964
+ let h2 = (o2 = (s2 = u.value) == null ? void 0 : s2[0]) == null ? void 0 : o2.prop, d2 = (_2 = f.value) == null ? void 0 : _2.find((u2) => {
2965
+ var i2, z2;
2966
+ return (u2 == null ? void 0 : u2[h2]) === ((C == null ? void 0 : C.value) ?? ((z2 = (i2 = s.value) == null ? void 0 : i2[0]) == null ? void 0 : z2.value));
2967
2967
  });
2968
- (e2 = g.value) == null || e2.setCurrentRow(), g.value && u2 && setTimeout(() => {
2969
- var X;
2970
- (X = g.value) == null || X.setCurrentRow(u2);
2968
+ (K = g.value) == null || K.setCurrentRow(), g.value && d2 && setTimeout(() => {
2969
+ var u2;
2970
+ (u2 = g.value) == null || u2.setCurrentRow(d2);
2971
2971
  }, 20);
2972
2972
  }
2973
2973
  },
@@ -2999,7 +2999,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
2999
2999
  U.value = C == null ? void 0 : C.id;
3000
3000
  }, S2 = (C, T, A) => {
3001
3001
  U.value = 0;
3002
- }, m2 = () => {
3002
+ }, v2 = () => {
3003
3003
  l2.value = !1;
3004
3004
  }, L2 = x6("getSuggestListForCell", () => []), n0 = x6("getSuggestLoadingForCell", () => !1), q2 = (C, T, A, $) => {
3005
3005
  const s2 = ($ == null ? void 0 : $.formType) || ($ == null ? void 0 : $.columnType) || "";
@@ -3018,12 +3018,12 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3018
3018
  }
3019
3019
  return !0;
3020
3020
  }, v0 = (C, T, A, $) => r2(() => {
3021
- var o2, d2, e2, h2, u2, X, p2, A2, e0, S0;
3022
- let s2 = C != null && C[T == null ? void 0 : T.prop] ? ((d2 = (o2 = C == null ? void 0 : C[T == null ? void 0 : T.prop]) == null ? void 0 : o2[0]) == null ? void 0 : d2.contents) ?? (C == null ? void 0 : C[T == null ? void 0 : T.prop]) : ((h2 = (e2 = C == null ? void 0 : C[A == null ? void 0 : A.prop]) == null ? void 0 : e2[0]) == null ? void 0 : h2.contents) ?? (C == null ? void 0 : C[A == null ? void 0 : A.prop]) ?? ((X = (u2 = $ == null ? void 0 : $[A == null ? void 0 : A.prop]) == null ? void 0 : u2[0]) == null ? void 0 : X.contents) ?? ($ == null ? void 0 : $[A == null ? void 0 : A.prop]) ?? ((e0 = (A2 = C == null ? void 0 : C[(p2 = A == null ? void 0 : A.child) == null ? void 0 : p2.prop]) == null ? void 0 : A2[0]) == null ? void 0 : e0.contents) ?? (C == null ? void 0 : C[(S0 = A == null ? void 0 : A.child) == null ? void 0 : S0.prop]);
3021
+ var o2, _2, K, h2, d2, u2, i2, z2, e0, S0;
3022
+ let s2 = C != null && C[T == null ? void 0 : T.prop] ? ((_2 = (o2 = C == null ? void 0 : C[T == null ? void 0 : T.prop]) == null ? void 0 : o2[0]) == null ? void 0 : _2.contents) ?? (C == null ? void 0 : C[T == null ? void 0 : T.prop]) : ((h2 = (K = C == null ? void 0 : C[A == null ? void 0 : A.prop]) == null ? void 0 : K[0]) == null ? void 0 : h2.contents) ?? (C == null ? void 0 : C[A == null ? void 0 : A.prop]) ?? ((u2 = (d2 = $ == null ? void 0 : $[A == null ? void 0 : A.prop]) == null ? void 0 : d2[0]) == null ? void 0 : u2.contents) ?? ($ == null ? void 0 : $[A == null ? void 0 : A.prop]) ?? ((e0 = (z2 = C == null ? void 0 : C[(i2 = A == null ? void 0 : A.child) == null ? void 0 : i2.prop]) == null ? void 0 : z2[0]) == null ? void 0 : e0.contents) ?? (C == null ? void 0 : C[(S0 = A == null ? void 0 : A.child) == null ? void 0 : S0.prop]);
3023
3023
  return Array.isArray(s2) && !(s2 != null && s2.every((Y2) => typeof Y2 == "string" || typeof Y2 == "number")) ? "查看" : s2;
3024
3024
  }), R = (C) => {
3025
3025
  var $, s2, o2;
3026
- let T = (s2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : s2.prop, A = (o2 = f.value) == null ? void 0 : o2.map((d2) => d2 == null ? void 0 : d2[T]);
3026
+ let T = (s2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : s2.prop, A = (o2 = f.value) == null ? void 0 : o2.map((_2) => _2 == null ? void 0 : _2[T]);
3027
3027
  D("rowClick", {
3028
3028
  row: C,
3029
3029
  type: "table",
@@ -3034,7 +3034,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3034
3034
  if (!M.value) return;
3035
3035
  const s2 = A == null ? void 0 : A.innerText, o2 = Ag(s2);
3036
3036
  d.x = $.clientX, d.y = $.clientY, r.value = !0, o2 && (a.value = A.innerText), h.value = C;
3037
- }, b2 = () => {
3037
+ }, x2 = () => {
3038
3038
  D("clickButton", "删除", h.value, { extra: { label: "删除" } }), r.value = !1;
3039
3039
  }, F = () => {
3040
3040
  D("clickButton", "批量删除", null, { extra: { label: "批量删除" } }), r.value = !1;
@@ -3055,8 +3055,8 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3055
3055
  if (!T[o2] || T[o2] === "" || T[o2] === null || T[o2] === void 0)
3056
3056
  A[o2] = "";
3057
3057
  else {
3058
- const d2 = Be(T[o2], ["YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
3059
- A[o2] = d2.isValid() ? d2.format("YYYY-MM-DD HH:mm:ss") : "";
3058
+ const _2 = Be(T[o2], ["YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
3059
+ A[o2] = _2.isValid() ? _2.format("YYYY-MM-DD HH:mm:ss") : "";
3060
3060
  }
3061
3061
  return A;
3062
3062
  });
@@ -3065,9 +3065,9 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3065
3065
  );
3066
3066
  const c0 = (C) => Gi(C), Q2 = (C, T, A) => {
3067
3067
  D("clickButton", C, T, A);
3068
- }, V2 = (C) => {
3068
+ }, A2 = (C) => {
3069
3069
  D("doCurrentChange", C);
3070
- }, g2 = (C, T) => {
3070
+ }, p2 = (C, T) => {
3071
3071
  D("dbClickRow", C, T);
3072
3072
  }, Z2 = (C) => {
3073
3073
  D("doSizeChange", C);
@@ -3078,21 +3078,21 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3078
3078
  }, V0 = (C, T) => {
3079
3079
  D("clickButton", "删除", C, { extra: { label: "删除" }, index: T });
3080
3080
  }, ue = (C, T) => {
3081
- var o2, d2, e2, h2;
3081
+ var o2, _2, K, h2;
3082
3082
  if ((C == null ? void 0 : C.id) === "__empty__") {
3083
- const u2 = {};
3084
- (o2 = u.value) == null || o2.forEach((X) => {
3085
- const p2 = X == null ? void 0 : X.prop;
3086
- !p2 || p2 === "operate" || (u2[p2] = "");
3087
- }), u2.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, u2._isTemp = !0, D("addNewRow", { newRow: u2, targetIndex: 0 });
3083
+ const d2 = {};
3084
+ (o2 = u.value) == null || o2.forEach((u2) => {
3085
+ const i2 = u2 == null ? void 0 : u2.prop;
3086
+ !i2 || i2 === "operate" || (d2[i2] = "");
3087
+ }), d2.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, d2._isTemp = !0, D("addNewRow", { newRow: d2, targetIndex: 0 });
3088
3088
  return;
3089
3089
  }
3090
3090
  const A = {};
3091
- (d2 = u.value) == null || d2.forEach((u2) => {
3092
- const X = u2 == null ? void 0 : u2.prop;
3093
- !X || X === "operate" || (A[X] = "");
3091
+ (_2 = u.value) == null || _2.forEach((d2) => {
3092
+ const u2 = d2 == null ? void 0 : d2.prop;
3093
+ !u2 || u2 === "operate" || (A[u2] = "");
3094
3094
  }), A.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, A._isTemp = !0, (C == null ? void 0 : C.level) !== void 0 && (A.level = C.level), (C == null ? void 0 : C.tableEditType) !== void 0 && (A.tableEditType = C.tableEditType);
3095
- const $ = typeof T == "number" ? T : (e2 = f.value) == null ? void 0 : e2.findIndex((u2) => (u2 == null ? void 0 : u2.id) === (C == null ? void 0 : C.id)), s2 = $ >= 0 ? $ + 1 : ((h2 = f.value) == null ? void 0 : h2.length) ?? 0;
3095
+ const $ = typeof T == "number" ? T : (K = f.value) == null ? void 0 : K.findIndex((d2) => (d2 == null ? void 0 : d2.id) === (C == null ? void 0 : C.id)), s2 = $ >= 0 ? $ + 1 : ((h2 = f.value) == null ? void 0 : h2.length) ?? 0;
3096
3096
  D("addNewRow", { newRow: A, targetIndex: s2 });
3097
3097
  }, b = (C, T, A, $) => {
3098
3098
  D("contentClick", C, T, A, $);
@@ -3131,10 +3131,10 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3131
3131
  const A = new FileReader();
3132
3132
  A.onloadend = () => T(A.result), A.readAsDataURL(C);
3133
3133
  }), A0 = (C, T = "file") => {
3134
- let A = C.split(","), $ = A[0].match(/:(.*?);/)[1], s2 = $.split("/")[1], o2 = atob(A[1]), d2 = o2.length, e2 = new Uint8Array(d2);
3135
- for (; d2--; )
3136
- e2[d2] = o2.charCodeAt(d2);
3137
- return new File([e2], `${T}.${s2}`, {
3134
+ let A = C.split(","), $ = A[0].match(/:(.*?);/)[1], s2 = $.split("/")[1], o2 = atob(A[1]), _2 = o2.length, K = new Uint8Array(_2);
3135
+ for (; _2--; )
3136
+ K[_2] = o2.charCodeAt(_2);
3137
+ return new File([K], `${T}.${s2}`, {
3138
3138
  type: $
3139
3139
  });
3140
3140
  }, fe = async (C) => {
@@ -3143,10 +3143,10 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3143
3143
  $.append("file", A);
3144
3144
  let s2;
3145
3145
  return await J6($).then((o2) => {
3146
- var d2, e2, h2, u2, X, p2, A2;
3146
+ var _2, K, h2, d2, u2, i2, z2;
3147
3147
  s2 = {
3148
- url: (d2 = o2.data.result) == null ? void 0 : d2.url,
3149
- name: (A2 = (h2 = (e2 = o2.data.result) == null ? void 0 : e2.url) == null ? void 0 : h2.split("/")) == null ? void 0 : A2[((p2 = (X = (u2 = o2.data.result) == null ? void 0 : u2.url) == null ? void 0 : X.split("/")) == null ? void 0 : p2.length) - 1]
3148
+ url: (_2 = o2.data.result) == null ? void 0 : _2.url,
3149
+ name: (z2 = (h2 = (K = o2.data.result) == null ? void 0 : K.url) == null ? void 0 : h2.split("/")) == null ? void 0 : z2[((i2 = (u2 = (d2 = o2.data.result) == null ? void 0 : d2.url) == null ? void 0 : u2.split("/")) == null ? void 0 : i2.length) - 1]
3150
3150
  };
3151
3151
  }), s2;
3152
3152
  }, pe = async (C) => {
@@ -3158,12 +3158,12 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3158
3158
  C.preventDefault();
3159
3159
  const s2 = ge($);
3160
3160
  if (!s2.length) return;
3161
- const { rowIndex: o2, columnIndex: d2 } = v.value || { rowIndex: 0, columnIndex: 0 }, e2 = [];
3161
+ const { rowIndex: o2, columnIndex: _2 } = v.value || { rowIndex: 0, columnIndex: 0 }, K = [];
3162
3162
  if (s2 == null || s2.forEach((h2) => {
3163
- e2.push(h2.length + d2);
3164
- }), (e2 == null ? void 0 : e2.filter((h2) => {
3165
- var u2;
3166
- return h2 > Object.keys((u2 = f.value) == null ? void 0 : u2[0]).length;
3163
+ K.push(h2.length + _2);
3164
+ }), (K == null ? void 0 : K.filter((h2) => {
3165
+ var d2;
3166
+ return h2 > Object.keys((d2 = f.value) == null ? void 0 : d2[0]).length;
3167
3167
  }).length) > 0) {
3168
3168
  Xe({
3169
3169
  type: "warning",
@@ -3172,26 +3172,26 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3172
3172
  return;
3173
3173
  }
3174
3174
  for (let h2 = 0; h2 < s2.length; h2++) {
3175
- const u2 = s2[h2], X = f.value[o2 + h2], p2 = F0(u.value).map((A2) => A2.prop);
3176
- for (let A2 = 0; A2 < u2.length && d2 + A2 < p2.length; A2++) {
3177
- const e0 = p2[d2 + A2];
3178
- (X == null ? void 0 : X[e0]) !== void 0 && (X[e0] = u2[A2] || "");
3175
+ const d2 = s2[h2], u2 = f.value[o2 + h2], i2 = F0(u.value).map((z2) => z2.prop);
3176
+ for (let z2 = 0; z2 < d2.length && _2 + z2 < i2.length; z2++) {
3177
+ const e0 = i2[_2 + z2];
3178
+ (u2 == null ? void 0 : u2[e0]) !== void 0 && (u2[e0] = d2[z2] || "");
3179
3179
  }
3180
3180
  }
3181
3181
  } else {
3182
3182
  const s2 = A.getData("text/html");
3183
3183
  if (s2 === void 0) return;
3184
- const d2 = new DOMParser().parseFromString(s2, "text/html"), e2 = d2.querySelectorAll("table");
3185
- if ((e2 == null ? void 0 : e2.length) > 0) {
3184
+ const _2 = new DOMParser().parseFromString(s2, "text/html"), K = _2.querySelectorAll("table");
3185
+ if ((K == null ? void 0 : K.length) > 0) {
3186
3186
  C.preventDefault();
3187
- const u2 = e2[0].querySelectorAll("tr"), X = [];
3188
- for (const e0 of u2) {
3187
+ const d2 = K[0].querySelectorAll("tr"), u2 = [];
3188
+ for (const e0 of d2) {
3189
3189
  const S0 = e0.querySelectorAll("td, th"), Y2 = [];
3190
3190
  for (const C2 of S0) {
3191
3191
  const W2 = C2.querySelectorAll("img");
3192
3192
  if (W2.length > 0)
3193
- for (const _2 of W2) {
3194
- const H2 = _2.getAttribute("src");
3193
+ for (const b2 of W2) {
3194
+ const H2 = b2.getAttribute("src");
3195
3195
  if (H2 && H2.startsWith("file:///")) {
3196
3196
  const xe = H2.match(/base64,(.*)/);
3197
3197
  xe && Y2.push({
@@ -3209,43 +3209,43 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3209
3209
  content: C2.textContent.trim()
3210
3210
  });
3211
3211
  }
3212
- X.push(Y2);
3212
+ u2.push(Y2);
3213
3213
  }
3214
- const { rowIndex: p2, columnProp: A2 } = v.value || { rowIndex: 0, columnIndex: 0 };
3215
- if (Array.isArray(X) && X.length) {
3214
+ const { rowIndex: i2, columnProp: z2 } = v.value || { rowIndex: 0, columnIndex: 0 };
3215
+ if (Array.isArray(u2) && u2.length) {
3216
3216
  const e0 = [];
3217
- X.forEach((Y2) => {
3217
+ u2.forEach((Y2) => {
3218
3218
  if (Y2 != null && Y2.length) {
3219
3219
  const C2 = {}, W2 = t.columns;
3220
- for (let _2 = 0; _2 < (W2 == null ? void 0 : W2.length); _2++) {
3221
- const H2 = W2[_2], xe = H2 == null ? void 0 : H2.prop, le = Y2 == null ? void 0 : Y2[_2], j = le == null ? void 0 : le.content;
3220
+ for (let b2 = 0; b2 < (W2 == null ? void 0 : W2.length); b2++) {
3221
+ const H2 = W2[b2], xe = H2 == null ? void 0 : H2.prop, le = Y2 == null ? void 0 : Y2[b2], j = le == null ? void 0 : le.content;
3222
3222
  C2[xe] = j;
3223
3223
  }
3224
3224
  e0.push(C2);
3225
3225
  }
3226
3226
  });
3227
3227
  let S0 = F0(f.value);
3228
- f.value.splice(p2 + 1, 0, ...e0);
3228
+ f.value.splice(i2 + 1, 0, ...e0);
3229
3229
  }
3230
3230
  } else {
3231
- const h2 = d2.querySelectorAll("span");
3232
- let u2 = "";
3231
+ const h2 = _2.querySelectorAll("span");
3232
+ let d2 = "";
3233
3233
  if (h2.length === 0) {
3234
- const X = (T = C.clipboardData) == null ? void 0 : T.items;
3235
- u2 = [];
3236
- for (const p2 of X)
3237
- if ((p2 == null ? void 0 : p2.type) === "image/png") {
3238
- const A2 = await fe(p2 == null ? void 0 : p2.getAsFile());
3239
- u2.push(A2);
3234
+ const u2 = (T = C.clipboardData) == null ? void 0 : T.items;
3235
+ d2 = [];
3236
+ for (const i2 of u2)
3237
+ if ((i2 == null ? void 0 : i2.type) === "image/png") {
3238
+ const z2 = await fe(i2 == null ? void 0 : i2.getAsFile());
3239
+ d2.push(z2);
3240
3240
  } else
3241
- u2 = C.clipboardData.getData("text/plain");
3241
+ d2 = C.clipboardData.getData("text/plain");
3242
3242
  } else
3243
- for (const X of h2)
3244
- u2 = u2 + X.textContent.trim();
3245
- if (Array.isArray(u2)) {
3243
+ for (const u2 of h2)
3244
+ d2 = d2 + u2.textContent.trim();
3245
+ if (Array.isArray(d2)) {
3246
3246
  C.preventDefault();
3247
- const { rowIndex: X, columnProp: p2 } = v.value || { rowIndex: 0, columnIndex: 0 }, A2 = {}, e0 = f.value;
3248
- e0[X][p2] = u2;
3247
+ const { rowIndex: u2, columnProp: i2 } = v.value || { rowIndex: 0, columnIndex: 0 }, z2 = {}, e0 = f.value;
3248
+ e0[u2][i2] = d2;
3249
3249
  }
3250
3250
  }
3251
3251
  }
@@ -3277,22 +3277,22 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3277
3277
  }), dt = (C) => {
3278
3278
  const { columns: T, data: A } = C, $ = [];
3279
3279
  return T.forEach((s2, o2) => {
3280
- var h2, u2;
3280
+ var h2, d2;
3281
3281
  if (o2 === 0) {
3282
3282
  $[o2] = "合计";
3283
3283
  return;
3284
3284
  }
3285
- const d2 = s2.property, e2 = (u2 = (h2 = t.columns) == null ? void 0 : h2.filter((X) => X == null ? void 0 : X.showSummary)) == null ? void 0 : u2.map((X) => X.prop);
3286
- if (e2 != null && e2.includes(d2)) {
3287
- const X = A == null ? void 0 : A.map((p2) => Number(p2[d2]));
3288
- if (X.every((p2) => isNaN(p2)))
3285
+ const _2 = s2.property, K = (d2 = (h2 = t.columns) == null ? void 0 : h2.filter((u2) => u2 == null ? void 0 : u2.showSummary)) == null ? void 0 : d2.map((u2) => u2.prop);
3286
+ if (K != null && K.includes(_2)) {
3287
+ const u2 = A == null ? void 0 : A.map((i2) => Number(i2[_2]));
3288
+ if (u2.every((i2) => isNaN(i2)))
3289
3289
  $[o2] = "N/A";
3290
3290
  else {
3291
- const p2 = X.reduce((A2, e0) => {
3291
+ const i2 = u2.reduce((z2, e0) => {
3292
3292
  const S0 = Number(e0);
3293
- return isNaN(S0) ? A2 : A2 + S0;
3293
+ return isNaN(S0) ? z2 : z2 + S0;
3294
3294
  }, 0);
3295
- $[o2] = ht(p2), ["price", "sales", "cost", "profit"].includes(d2) && ($[o2] = "¥" + $[o2]);
3295
+ $[o2] = ht(i2), ["price", "sales", "cost", "profit"].includes(_2) && ($[o2] = "¥" + $[o2]);
3296
3296
  }
3297
3297
  } else
3298
3298
  $[o2] = "";
@@ -3319,14 +3319,14 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3319
3319
  return T(u.value), C;
3320
3320
  });
3321
3321
  return (C, T) => {
3322
- var e2, h2, u2, X, p2, A2, e0, S0, Y2;
3323
- const A = J("el-icon"), $ = J("svg-icon"), s2 = J("el-table-column"), o2 = J("el-table"), d2 = J("el-pagination");
3322
+ var K, h2, d2, u2, i2, z2, e0, S0, Y2;
3323
+ const A = J("el-icon"), $ = J("svg-icon"), s2 = J("el-table-column"), o2 = J("el-table"), _2 = J("el-pagination");
3324
3324
  return x(), z("div", {
3325
3325
  class: "table-content-show",
3326
3326
  ref_key: "tableOuterRef",
3327
3327
  ref: m
3328
3328
  }, [
3329
- !n.hideHeaderContent && ((e2 = n.columns) == null ? void 0 : e2.length) > 0 ? (x(), q(Cg, {
3329
+ !n.hideHeaderContent && ((K = n.columns) == null ? void 0 : K.length) > 0 ? (x(), q(Cg, {
3330
3330
  key: 0,
3331
3331
  buttons: f2.value,
3332
3332
  onButtonClick: j2,
@@ -3346,9 +3346,9 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3346
3346
  "highlight-current-row": "",
3347
3347
  class: "table-wrap",
3348
3348
  data: f.value,
3349
- "show-summary": (u2 = n.columns) == null ? void 0 : u2.some((C2) => C2 == null ? void 0 : C2.showSummary),
3349
+ "show-summary": (d2 = n.columns) == null ? void 0 : d2.some((C2) => C2 == null ? void 0 : C2.showSummary),
3350
3350
  onSortChange: G2,
3351
- "sum-text": (X = n.summaryInfo) == null ? void 0 : X.text,
3351
+ "sum-text": (u2 = n.summaryInfo) == null ? void 0 : u2.text,
3352
3352
  "summary-method": dt,
3353
3353
  stripe: "",
3354
3354
  style: { width: "100%", "overflow-x": "auto" },
@@ -3358,7 +3358,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3358
3358
  onCellContextmenu: I,
3359
3359
  onPaste: pe,
3360
3360
  onSelectionChange: a0,
3361
- onRowDblclick: g2,
3361
+ onRowDblclick: p2,
3362
3362
  key: p.value,
3363
3363
  "row-class-name": me,
3364
3364
  "header-cell-class-name": O0,
@@ -3371,7 +3371,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3371
3371
  "tree-props": { children: "children", hasChildren: "hasChildren" },
3372
3372
  "default-sort": n.defaultSort,
3373
3373
  onRowClick: R,
3374
- onMouseleave: m2
3374
+ onMouseleave: v2
3375
3375
  }, {
3376
3376
  empty: H(() => [
3377
3377
  a2("div", {
@@ -3386,9 +3386,9 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3386
3386
  class: "ss-empty-add",
3387
3387
  onClick: T[0] || (T[0] = Ge((C2) => ue({ id: "__empty__" }, 0), ["stop"]))
3388
3388
  }, [
3389
- i2(A, { size: 14 }, {
3389
+ t2(A, { size: 14 }, {
3390
3390
  default: H(() => [
3391
- i2(Y0(Q6))
3391
+ t2(Y0(Q6))
3392
3392
  ]),
3393
3393
  _: 1
3394
3394
  })
@@ -3398,7 +3398,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3398
3398
  ], 32)
3399
3399
  ]),
3400
3400
  default: H(() => {
3401
- var C2, W2, _2, H2, xe, le;
3401
+ var C2, W2, b2, H2, xe, le;
3402
3402
  return [
3403
3403
  M.value ? (x(), q(s2, {
3404
3404
  key: 0,
@@ -3410,7 +3410,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3410
3410
  default: H(({ row: j, $index: Ie }) => [
3411
3411
  v3(a2("div", Eg, [
3412
3412
  a2("span", Bg, [
3413
- i2($, {
3413
+ t2($, {
3414
3414
  name: "drag",
3415
3415
  style: { width: "15px", height: "15px", cursor: "move" }
3416
3416
  })
@@ -3420,9 +3420,9 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3420
3420
  style: { cursor: "pointer" },
3421
3421
  onClick: Ge((qe) => ue(j, Ie), ["stop"])
3422
3422
  }, [
3423
- i2(A, { size: 12 }, {
3423
+ t2(A, { size: 12 }, {
3424
3424
  default: H(() => [
3425
- i2(Y0(Q6))
3425
+ t2(Y0(Q6))
3426
3426
  ]),
3427
3427
  _: 1
3428
3428
  })
@@ -3432,9 +3432,9 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3432
3432
  style: { cursor: "pointer" },
3433
3433
  onClick: Ge((qe) => V0(j, Ie), ["stop"])
3434
3434
  }, [
3435
- i2(A, { size: 12 }, {
3435
+ t2(A, { size: 12 }, {
3436
3436
  default: H(() => [
3437
- i2(Y0(B9))
3437
+ t2(Y0(B9))
3438
3438
  ]),
3439
3439
  _: 1
3440
3440
  })
@@ -3452,7 +3452,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3452
3452
  fixed: "",
3453
3453
  selectable: X2
3454
3454
  }, null, 8, ["width"])) : Q("", !0),
3455
- t != null && t.showIndex && !((W2 = t == null ? void 0 : t.tableData) != null && W2.some((j) => j == null ? void 0 : j.children)) && ((H2 = (_2 = t == null ? void 0 : t.columns) == null ? void 0 : _2[0]) == null ? void 0 : H2.prop) !== "disabled" ? (x(), q(s2, {
3455
+ t != null && t.showIndex && !((W2 = t == null ? void 0 : t.tableData) != null && W2.some((j) => j == null ? void 0 : j.children)) && ((H2 = (b2 = t == null ? void 0 : t.columns) == null ? void 0 : b2[0]) == null ? void 0 : H2.prop) !== "disabled" ? (x(), q(s2, {
3456
3456
  key: 2,
3457
3457
  type: "index",
3458
3458
  label: "序号",
@@ -3493,10 +3493,10 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3493
3493
  operateHeader: H(() => [
3494
3494
  (j == null ? void 0 : j.label) === "操作" ? D2(C.$slots, "operateCol", { key: 0 }, void 0, !0) : Q("", !0)
3495
3495
  ]),
3496
- content: H(({ row: w2, item: s0, slotData: ut, scope: p9, column: m0, columnProp: Mt, $index: g9 }) => {
3496
+ content: H(({ row: m2, item: s0, slotData: ut, scope: p9, column: m0, columnProp: Mt, $index: g9 }) => {
3497
3497
  var Ri, Ni, $i, ji, Wi, Ui;
3498
3498
  return [
3499
- (w2 == null ? void 0 : w2.tableEditType) !== "edit" && (j == null ? void 0 : j.type) !== "operate" ? (x(), z("span", {
3499
+ (m2 == null ? void 0 : m2.tableEditType) !== "edit" && (j == null ? void 0 : j.type) !== "operate" ? (x(), z("span", {
3500
3500
  key: 0,
3501
3501
  class: "table-content",
3502
3502
  style: h0({
@@ -3504,26 +3504,26 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3504
3504
  color: (j != null && j.isExistChild || Array.isArray(j == null ? void 0 : j.relatedPages) && ((Ni = j == null ? void 0 : j.relatedPages) == null ? void 0 : Ni.length) > 0) && !(j != null && j.directiveColor) ? "var(--vertical-menuitem-active-bg)" : "",
3505
3505
  textDecoration: j != null && j.isExistChild ? "underline" : ""
3506
3506
  }),
3507
- onClick: (x2) => {
3507
+ onClick: (w2) => {
3508
3508
  var I1;
3509
- return b(w2 != null && w2[j == null ? void 0 : j.prop] ? w2 == null ? void 0 : w2[j == null ? void 0 : j.prop] : (w2 == null ? void 0 : w2[s0 == null ? void 0 : s0.prop]) ?? (ut == null ? void 0 : ut[s0 == null ? void 0 : s0.prop]) ?? (w2 == null ? void 0 : w2[(I1 = s0 == null ? void 0 : s0.child) == null ? void 0 : I1.prop]), s0 == null ? void 0 : s0.prop, w2 ?? ut, {
3510
- data: v0(w2, j, s0, ut).value,
3509
+ return b(m2 != null && m2[j == null ? void 0 : j.prop] ? m2 == null ? void 0 : m2[j == null ? void 0 : j.prop] : (m2 == null ? void 0 : m2[s0 == null ? void 0 : s0.prop]) ?? (ut == null ? void 0 : ut[s0 == null ? void 0 : s0.prop]) ?? (m2 == null ? void 0 : m2[(I1 = s0 == null ? void 0 : s0.child) == null ? void 0 : I1.prop]), s0 == null ? void 0 : s0.prop, m2 ?? ut, {
3510
+ data: v0(m2, j, s0, ut).value,
3511
3511
  isExistChild: j == null ? void 0 : j.isExistChild
3512
3512
  });
3513
3513
  }
3514
3514
  }, [
3515
3515
  C.$slots.content ? (x(), z(k2, { key: 0 }, [
3516
- (($i = n.columns) == null ? void 0 : $i.findIndex((x2) => (x2 == null ? void 0 : x2.prop) === (j == null ? void 0 : j.prop))) >= ((w2 == null ? void 0 : w2.level) ?? -1) ? (x(), z("div", $g, [
3516
+ (($i = n.columns) == null ? void 0 : $i.findIndex((w2) => (w2 == null ? void 0 : w2.prop) === (j == null ? void 0 : j.prop))) >= ((m2 == null ? void 0 : m2.level) ?? -1) ? (x(), z("div", $g, [
3517
3517
  D2(C.$slots, "content", {
3518
- row: w2,
3518
+ row: m2,
3519
3519
  column: Mt ?? j,
3520
3520
  colIndex: Ie,
3521
3521
  item: s0,
3522
3522
  slotData: ut
3523
3523
  }, void 0, !0)
3524
3524
  ])) : Q("", !0)
3525
- ], 64)) : ((ji = n.columns) == null ? void 0 : ji.findIndex((x2) => (x2 == null ? void 0 : x2.prop) === (j == null ? void 0 : j.prop))) >= ((w2 == null ? void 0 : w2.level) ?? -1) ? (x(), z(k2, { key: 1 }, [
3526
- T0(E2(v0(w2, j, s0, ut)), 1)
3525
+ ], 64)) : ((ji = n.columns) == null ? void 0 : ji.findIndex((w2) => (w2 == null ? void 0 : w2.prop) === (j == null ? void 0 : j.prop))) >= ((m2 == null ? void 0 : m2.level) ?? -1) ? (x(), z(k2, { key: 1 }, [
3526
+ T0(E2(v0(m2, j, s0, ut)), 1)
3527
3527
  ], 64)) : Q("", !0)
3528
3528
  ], 12, Ng)) : Q("", !0),
3529
3529
  ((j == null ? void 0 : j.type) ?? "text") === "operate" ? (x(), z("span", {
@@ -3534,41 +3534,41 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3534
3534
  })
3535
3535
  }, [
3536
3536
  D2(C.$slots, "actions", {
3537
- item: w2,
3537
+ item: m2,
3538
3538
  fIndex: g9
3539
3539
  }, void 0, !0),
3540
3540
  n.isShowEdit ? (x(), z("span", {
3541
3541
  key: 0,
3542
- onClick: (x2) => w(w2),
3542
+ onClick: (w2) => w(m2),
3543
3543
  class: "blue-table-operate table-operate-content"
3544
3544
  }, "编辑", 8, jg)) : Q("", !0),
3545
3545
  n.isShowDelete ? (x(), z("span", {
3546
3546
  key: 1,
3547
- onClick: (x2) => X0(w2),
3547
+ onClick: (w2) => X0(m2),
3548
3548
  class: "red-table-operate table-operate-content"
3549
3549
  }, "删除", 8, Wg)) : Q("", !0)
3550
3550
  ], 4)) : Q("", !0),
3551
- (w2 == null ? void 0 : w2.tableEditType) === "edit" ? (x(), z("span", Ug, [
3551
+ (m2 == null ? void 0 : m2.tableEditType) === "edit" ? (x(), z("span", Ug, [
3552
3552
  (m0 == null ? void 0 : m0.property) === "disabled" || j != null && j.isReadonly ? (x(), z(k2, { key: 0 }, [
3553
- T0(E2(w2[m0 == null ? void 0 : m0.property]), 1)
3553
+ T0(E2(m2[m0 == null ? void 0 : m0.property]), 1)
3554
3554
  ], 64)) : (x(), q(Lt((() => {
3555
3555
  var Ii;
3556
- const x2 = Mt ?? s0 ?? j, I1 = w2 != null && w2[x2 == null ? void 0 : x2.prop] && Array.isArray(w2[x2.prop]) && ((Ii = w2[x2.prop]) != null && Ii.every((v9) => typeof v9 == "Object")) ? "Upload" : ((x2 == null ? void 0 : x2.formType) ?? (x2 == null ? void 0 : x2.columnType)) === "" || !((x2 == null ? void 0 : x2.formType) ?? (x2 == null ? void 0 : x2.columnType)) ? "Input" : (x2 == null ? void 0 : x2.formType) ?? (x2 == null ? void 0 : x2.columnType);
3556
+ const w2 = Mt ?? s0 ?? j, I1 = m2 != null && m2[w2 == null ? void 0 : w2.prop] && Array.isArray(m2[w2.prop]) && ((Ii = m2[w2.prop]) != null && Ii.every((v9) => typeof v9 == "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);
3557
3557
  return c0(I1);
3558
3558
  })()), {
3559
3559
  key: 1,
3560
- modelValue: w2[m0 == null ? void 0 : m0.property],
3561
- "onUpdate:modelValue": (x2) => w2[m0 == null ? void 0 : m0.property] = x2,
3560
+ modelValue: m2[m0 == null ? void 0 : m0.property],
3561
+ "onUpdate:modelValue": (w2) => m2[m0 == null ? void 0 : m0.property] = w2,
3562
3562
  style: { height: "100%" },
3563
3563
  content: ((Wi = Mt ?? s0 ?? j) == null ? void 0 : Wi.contents) ?? ((Ui = Mt ?? s0 ?? j) == null ? void 0 : Ui.options) ?? [],
3564
3564
  optionUrl: Mt ?? s0 ?? j,
3565
- "suggest-list": Y0(L2)(w2, m0),
3566
- loading: Y0(n0)(w2, m0),
3567
- onFocus: (x2) => ve(p9),
3568
- onInput: (x2) => q2(x2, w2, m0, Mt ?? s0 ?? j),
3569
- onSelectSuggest: (x2) => J2(x2, w2, m0),
3570
- onChange: (x2) => {
3571
- y0(x2, w2, j), D("cellChange", w2, m0, x2);
3565
+ "suggest-list": Y0(L2)(m2, m0),
3566
+ loading: Y0(n0)(m2, m0),
3567
+ onFocus: (w2) => ve(p9),
3568
+ onInput: (w2) => q2(w2, m2, m0, Mt ?? s0 ?? j),
3569
+ onSelectSuggest: (w2) => J2(w2, m2, m0),
3570
+ onChange: (w2) => {
3571
+ y0(w2, m2, j), D("cellChange", m2, m0, w2);
3572
3572
  }
3573
3573
  }, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "suggest-list", "loading", "onFocus", "onInput", "onSelectSuggest", "onChange"]))
3574
3574
  ])) : Q("", !0)
@@ -3587,12 +3587,12 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3587
3587
  showTag: !1
3588
3588
  }, {
3589
3589
  header: H(() => {
3590
- var W2, _2;
3590
+ var W2, b2;
3591
3591
  return [
3592
3592
  a2("div", qg, [
3593
3593
  a2("span", {
3594
3594
  title: C2 == null ? void 0 : C2[(W2 = oe.value) == null ? void 0 : W2.prop]
3595
- }, E2(C2[(_2 = oe.value) == null ? void 0 : _2.prop]), 9, Yg)
3595
+ }, E2(C2[(b2 = oe.value) == null ? void 0 : b2.prop]), 9, Yg)
3596
3596
  ])
3597
3597
  ];
3598
3598
  }),
@@ -3602,27 +3602,27 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3602
3602
  content: H(() => {
3603
3603
  var W2;
3604
3604
  return [
3605
- (x(!0), z(k2, null, M2((W2 = j0.value) == null ? void 0 : W2.filter((_2) => {
3605
+ (x(!0), z(k2, null, M2((W2 = j0.value) == null ? void 0 : W2.filter((b2) => {
3606
3606
  var H2;
3607
- return (_2 == null ? void 0 : _2.prop) !== "operate" && (_2 == null ? void 0 : _2.prop) !== ((H2 = oe.value) == null ? void 0 : H2.prop);
3608
- }), (_2) => (x(), z("div", {
3607
+ return (b2 == null ? void 0 : b2.prop) !== "operate" && (b2 == null ? void 0 : b2.prop) !== ((H2 = oe.value) == null ? void 0 : H2.prop);
3608
+ }), (b2) => (x(), z("div", {
3609
3609
  class: "card-content",
3610
- key: _2 == null ? void 0 : _2.prop
3610
+ key: b2 == null ? void 0 : b2.prop
3611
3611
  }, [
3612
3612
  a2("span", {
3613
- title: _2 == null ? void 0 : _2.label
3613
+ title: b2 == null ? void 0 : b2.label
3614
3614
  }, [
3615
- T0(E2(_2 == null ? void 0 : _2.label), 1),
3615
+ T0(E2(b2 == null ? void 0 : b2.label), 1),
3616
3616
  T[7] || (T[7] = a2("span", { style: { "margin-left": "3px" } }, ":", -1))
3617
3617
  ], 8, Fg),
3618
3618
  a2("span", {
3619
- title: C2 == null ? void 0 : C2[_2 == null ? void 0 : _2.prop]
3620
- }, E2(C2 == null ? void 0 : C2[_2 == null ? void 0 : _2.prop]), 9, Kg)
3619
+ title: C2 == null ? void 0 : C2[b2 == null ? void 0 : b2.prop]
3620
+ }, E2(C2 == null ? void 0 : C2[b2 == null ? void 0 : b2.prop]), 9, Kg)
3621
3621
  ]))), 128))
3622
3622
  ];
3623
3623
  }),
3624
3624
  footer: H(() => {
3625
- var W2, _2;
3625
+ var W2, b2;
3626
3626
  return [
3627
3627
  a2("div", Xg, [
3628
3628
  (W2 = n.rowButton) != null && W2.find((H2) => (H2 == null ? void 0 : H2.label) === "编辑") ? (x(), q($, {
@@ -3631,7 +3631,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3631
3631
  name: "card-edit",
3632
3632
  style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
3633
3633
  }, null, 8, ["onClick"])) : Q("", !0),
3634
- (_2 = n.rowButton) != null && _2.find((H2) => (H2 == null ? void 0 : H2.label) === "删除") ? (x(), q($, {
3634
+ (b2 = n.rowButton) != null && b2.find((H2) => (H2 == null ? void 0 : H2.label) === "删除") ? (x(), q($, {
3635
3635
  key: 1,
3636
3636
  onClick: (H2) => Q2("删除", C2, { extra: { label: "删除" } }),
3637
3637
  name: "card-delete",
@@ -3649,12 +3649,12 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3649
3649
  buttons: L.value,
3650
3650
  columns: u.value
3651
3651
  }, void 0, !0),
3652
- t != null && t.isShowPagination && n.tableData.length > 0 ? (x(), q(d2, {
3652
+ t != null && t.isShowPagination && n.tableData.length > 0 ? (x(), q(_2, {
3653
3653
  key: 1,
3654
3654
  onSizeChange: Z2,
3655
- onCurrentChange: V2,
3656
- "current-page": ((p2 = n.pageObj) == null ? void 0 : p2.currentPage) ?? 1,
3657
- "page-sizes": (A2 = n.pageObj) == null ? void 0 : A2.pageSizes,
3655
+ onCurrentChange: A2,
3656
+ "current-page": ((i2 = n.pageObj) == null ? void 0 : i2.currentPage) ?? 1,
3657
+ "page-sizes": (z2 = n.pageObj) == null ? void 0 : z2.pageSizes,
3658
3658
  "page-size": ((e0 = n.pageObj) == null ? void 0 : e0.pageSize) ?? 10,
3659
3659
  layout: "total, sizes, prev, pager, next, jumper",
3660
3660
  total: ((S0 = n.pageObj) == null ? void 0 : S0.total) ?? 0
@@ -3665,22 +3665,22 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3665
3665
  key: W2,
3666
3666
  class: "table-child-button"
3667
3667
  }, [
3668
- i2(q0, {
3668
+ t2(q0, {
3669
3669
  onClickTrigger: T[4] || (T[4] = () => {
3670
3670
  }),
3671
3671
  modelValue: C2 == null ? void 0 : C2.label,
3672
- onClick: (_2) => O(C2)
3672
+ onClick: (b2) => O(C2)
3673
3673
  }, null, 8, ["modelValue", "onClick"])
3674
3674
  ]))), 128))
3675
3675
  ])) : Q("", !0),
3676
- v3(i2(_g, {
3676
+ v3(t2(_g, {
3677
3677
  style: h0({ top: d.y + "px", left: d.x + "px", position: "fixed", zIndex: 999 })
3678
3678
  }, {
3679
3679
  content: H(() => [
3680
3680
  a2("div", Zg, [
3681
- i2(q0, {
3681
+ t2(q0, {
3682
3682
  emptyColor: !0,
3683
- onClickTrigger: b2,
3683
+ onClickTrigger: x2,
3684
3684
  modelValue: "删除本行",
3685
3685
  buttonType: ""
3686
3686
  }),
@@ -3701,7 +3701,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3701
3701
  ], 512);
3702
3702
  };
3703
3703
  }
3704
- }, tv = /* @__PURE__ */ B2(ev, [["__scopeId", "data-v-8cfc6639"]]), iv = {
3704
+ }, tv = /* @__PURE__ */ B2(ev, [["__scopeId", "data-v-c796f416"]]), iv = {
3705
3705
  __name: "index",
3706
3706
  props: {
3707
3707
  value: String,
@@ -3878,14 +3878,14 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3878
3878
  key: d.path
3879
3879
  }, {
3880
3880
  title: H(() => [
3881
- i2(It, {
3881
+ t2(It, {
3882
3882
  name: d.icon ?? ((d == null ? void 0 : d.level) <= 2 ? "default" : ""),
3883
3883
  class: "menu-icon"
3884
3884
  }, null, 8, ["name"]),
3885
3885
  D2(l.$slots, "title", { menu: d })
3886
3886
  ]),
3887
3887
  default: H(() => [
3888
- i2(a, {
3888
+ t2(a, {
3889
3889
  menuList: d.children,
3890
3890
  onClickMenu: i,
3891
3891
  onOpenMenu: s,
@@ -3909,7 +3909,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3909
3909
  D2(l.$slots, "title", { menu: d })
3910
3910
  ]),
3911
3911
  default: H(() => [
3912
- i2(It, {
3912
+ t2(It, {
3913
3913
  name: d.icon ?? ((d == null ? void 0 : d.level) <= 2 ? "default" : ""),
3914
3914
  class: "menu-icon"
3915
3915
  }, null, 8, ["name"])
@@ -3983,14 +3983,14 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
3983
3983
  style: h0(E.style)
3984
3984
  }, {
3985
3985
  title: H(() => [
3986
- i2(It, {
3986
+ t2(It, {
3987
3987
  name: E.icon ?? ((E == null ? void 0 : E.level) <= 2 ? "default" : ""),
3988
3988
  class: "menu-icon"
3989
3989
  }, null, 8, ["name"]),
3990
3990
  D2(D.$slots, "title", { menu: E }, void 0, !0)
3991
3991
  ]),
3992
3992
  default: H(() => [
3993
- i2(ov, {
3993
+ t2(ov, {
3994
3994
  menuList: E.children,
3995
3995
  onClickMenu: d
3996
3996
  }, ae({ _: 2 }, [
@@ -4013,7 +4013,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
4013
4013
  D2(D.$slots, "title", { menu: E }, void 0, !0)
4014
4014
  ]),
4015
4015
  default: H(() => [
4016
- i2(It, {
4016
+ t2(It, {
4017
4017
  name: E.icon ?? ((E == null ? void 0 : E.level) <= 2 ? "default" : ""),
4018
4018
  class: "menu-icon"
4019
4019
  }, null, 8, ["name"])
@@ -4235,7 +4235,7 @@ const uv = { class: "docx-renderer" }, fv = {
4235
4235
  var g;
4236
4236
  const u = J("el-table-column"), f = J("el-table"), p = J("el-pagination");
4237
4237
  return x(), z("div", wv, [
4238
- i2(f, {
4238
+ t2(f, {
4239
4239
  class: "csv-table",
4240
4240
  data: a.value,
4241
4241
  stripe: ""
@@ -4250,7 +4250,7 @@ const uv = { class: "docx-renderer" }, fv = {
4250
4250
  _: 1
4251
4251
  }, 8, ["data"]),
4252
4252
  a2("div", xv, [
4253
- i2(p, {
4253
+ t2(p, {
4254
4254
  class: "pagination-self",
4255
4255
  onCurrentChange: r,
4256
4256
  "current-page": s == null ? void 0 : s.currentPage,
@@ -4372,7 +4372,7 @@ function p8(n) {
4372
4372
  function on(n) {
4373
4373
  return n < 65536 ? 1 : 2;
4374
4374
  }
4375
- class P2 {
4375
+ class V2 {
4376
4376
  /**
4377
4377
  Get the line description around the given position.
4378
4378
  */
@@ -4504,10 +4504,10 @@ class P2 {
4504
4504
  static of(e) {
4505
4505
  if (e.length == 0)
4506
4506
  throw new RangeError("A document must have at least one line");
4507
- return e.length == 1 && !e[0] ? P2.empty : e.length <= 32 ? new t0(e) : ke.from(t0.split(e, []));
4507
+ return e.length == 1 && !e[0] ? V2.empty : e.length <= 32 ? new t0(e) : ke.from(t0.split(e, []));
4508
4508
  }
4509
4509
  }
4510
- class t0 extends P2 {
4510
+ class t0 extends V2 {
4511
4511
  constructor(e, t = Pv(e)) {
4512
4512
  super(), this.text = e, this.length = t;
4513
4513
  }
@@ -4569,7 +4569,7 @@ class t0 extends P2 {
4569
4569
  return s > -1 && t.push(new t0(i, s)), t;
4570
4570
  }
4571
4571
  }
4572
- class ke extends P2 {
4572
+ class ke extends V2 {
4573
4573
  constructor(e, t) {
4574
4574
  super(), this.children = e, this.length = t, this.lines = 0;
4575
4575
  for (let i of e)
@@ -4666,7 +4666,7 @@ class ke extends P2 {
4666
4666
  return u(), r.length == 1 ? r[0] : new ke(r, t);
4667
4667
  }
4668
4668
  }
4669
- P2.empty = /* @__PURE__ */ new t0([""], 0);
4669
+ V2.empty = /* @__PURE__ */ new t0([""], 0);
4670
4670
  function Pv(n) {
4671
4671
  let e = -1;
4672
4672
  for (let t of n)
@@ -4746,7 +4746,7 @@ class v8 {
4746
4746
  return !1;
4747
4747
  }
4748
4748
  }
4749
- typeof Symbol < "u" && (P2.prototype[Symbol.iterator] = function() {
4749
+ typeof Symbol < "u" && (V2.prototype[Symbol.iterator] = function() {
4750
4750
  return this.iter();
4751
4751
  }, g1.prototype[Symbol.iterator] = g8.prototype[Symbol.iterator] = v8.prototype[Symbol.iterator] = function() {
4752
4752
  return this;
@@ -4984,8 +4984,8 @@ class d0 extends ze {
4984
4984
  t[s] = r, t[s + 1] = l;
4985
4985
  let a = s >> 1;
4986
4986
  for (; i.length < a; )
4987
- i.push(P2.empty);
4988
- i.push(l ? e.slice(o, o + l) : P2.empty);
4987
+ i.push(V2.empty);
4988
+ i.push(l ? e.slice(o, o + l) : V2.empty);
4989
4989
  }
4990
4990
  o += l;
4991
4991
  }
@@ -5099,7 +5099,7 @@ class d0 extends ze {
5099
5099
  let { from: d, to: u = d, insert: f } = c;
5100
5100
  if (d > u || d < 0 || u > t)
5101
5101
  throw new RangeError(`Invalid change range ${d} to ${u} (in doc of length ${t})`);
5102
- let p = f ? typeof f == "string" ? P2.of(f.split(i || e4)) : f : P2.empty, g = p.length;
5102
+ let p = f ? typeof f == "string" ? V2.of(f.split(i || e4)) : f : V2.empty, g = p.length;
5103
5103
  if (d == u && g == 0)
5104
5104
  return;
5105
5105
  d < l && a(), d > l && C0(s, d - l, -1), C0(s, u - d, g), Qe(o, s, p), l = u;
@@ -5132,8 +5132,8 @@ class d0 extends ze {
5132
5132
  t.push(o[0], 0);
5133
5133
  else {
5134
5134
  for (; i.length < s; )
5135
- i.push(P2.empty);
5136
- i[s] = P2.of(o.slice(1)), t.push(o[0], i[s].length);
5135
+ i.push(V2.empty);
5136
+ i[s] = V2.of(o.slice(1)), t.push(o[0], i[s].length);
5137
5137
  }
5138
5138
  }
5139
5139
  }
@@ -5160,7 +5160,7 @@ function Qe(n, e, t) {
5160
5160
  n[n.length - 1] = n[n.length - 1].append(t);
5161
5161
  else {
5162
5162
  for (; n.length < i; )
5163
- n.push(P2.empty);
5163
+ n.push(V2.empty);
5164
5164
  n.push(t);
5165
5165
  }
5166
5166
  }
@@ -5171,7 +5171,7 @@ function t4(n, e, t) {
5171
5171
  if (a < 0)
5172
5172
  s += r, o += r;
5173
5173
  else {
5174
- let h = s, c = o, d = P2.empty;
5174
+ let h = s, c = o, d = V2.empty;
5175
5175
  for (; h += r, c += a, a && i && (d = d.append(i[l - 2 >> 1])), !(t || l == n.sections.length || n.sections[l + 1] < 0); )
5176
5176
  r = n.sections[l++], a = n.sections[l++];
5177
5177
  e(s, h, o, c, d), s = h, o = c;
@@ -5250,11 +5250,11 @@ class y1 {
5250
5250
  }
5251
5251
  get text() {
5252
5252
  let { inserted: e } = this.set, t = this.i - 2 >> 1;
5253
- return t >= e.length ? P2.empty : e[t];
5253
+ return t >= e.length ? V2.empty : e[t];
5254
5254
  }
5255
5255
  textBit(e) {
5256
5256
  let { inserted: t } = this.set, i = this.i - 2 >> 1;
5257
- return i >= t.length && !e ? P2.empty : t[i].slice(this.off, e == null ? void 0 : this.off + e);
5257
+ return i >= t.length && !e ? V2.empty : t[i].slice(this.off, e == null ? void 0 : this.off + e);
5258
5258
  }
5259
5259
  forward(e) {
5260
5260
  e == this.len ? this.next() : (this.len -= e, this.off += e);
@@ -6207,7 +6207,7 @@ class T2 {
6207
6207
  [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
6208
6208
  */
6209
6209
  toText(e) {
6210
- return P2.of(e.split(this.facet(T2.lineSeparator) || e4));
6210
+ return V2.of(e.split(this.facet(T2.lineSeparator) || e4));
6211
6211
  }
6212
6212
  /**
6213
6213
  Return the given range of the document as a string.
@@ -6269,7 +6269,7 @@ class T2 {
6269
6269
  transactions.
6270
6270
  */
6271
6271
  static create(e = {}) {
6272
- let t = z3.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof P2 ? e.doc : P2.of((e.doc || "").split(t.staticFacet(T2.lineSeparator) || e4)), s = e.selection ? e.selection instanceof B ? e.selection : B.single(e.selection.anchor, e.selection.head) : B.single(0);
6272
+ let t = z3.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof V2 ? e.doc : V2.of((e.doc || "").split(t.staticFacet(T2.lineSeparator) || e4)), s = e.selection ? e.selection instanceof B ? e.selection : B.single(e.selection.anchor, e.selection.head) : B.single(0);
6273
6273
  return w8(s, i.length), t.staticFacet(o4) || (s = s.asSingle()), new T2(t, i, s, t.dynamicSlots.map(() => null), (o, l) => l.create(o), null);
6274
6274
  }
6275
6275
  /**
@@ -6485,7 +6485,7 @@ class si {
6485
6485
  return { mapped: i.length ? new si(s, o, i, r) : null, pos: l };
6486
6486
  }
6487
6487
  }
6488
- class z2 {
6488
+ class P2 {
6489
6489
  constructor(e, t, i, s) {
6490
6490
  this.chunkPos = e, this.chunk = t, this.nextLayer = i, this.maxPoint = s;
6491
6491
  }
@@ -6493,7 +6493,7 @@ class z2 {
6493
6493
  @internal
6494
6494
  */
6495
6495
  static create(e, t, i, s) {
6496
- return new z2(e, t, i, s);
6496
+ return new P2(e, t, i, s);
6497
6497
  }
6498
6498
  /**
6499
6499
  @internal
@@ -6533,14 +6533,14 @@ class z2 {
6533
6533
  if (t.length == 0 && !l)
6534
6534
  return this;
6535
6535
  if (i && (t = t.slice().sort(c4)), this.isEmpty)
6536
- return t.length ? z2.of(t) : this;
6536
+ return t.length ? P2.of(t) : this;
6537
6537
  let r = new T8(this, null, -1).goto(0), a = 0, h = [], c = new Ne();
6538
6538
  for (; r.value || a < t.length; )
6539
6539
  if (a < t.length && (r.from - t[a].from || r.startSide - t[a].value.startSide) >= 0) {
6540
6540
  let d = t[a++];
6541
6541
  c.addInner(d.from, d.to, d.value) || h.push(d);
6542
6542
  } else r.rangeIndex == 1 && r.chunkIndex < this.chunk.length && (a == t.length || this.chunkEnd(r.chunkIndex) < t[a].from) && (!l || s > this.chunkEnd(r.chunkIndex) || o < this.chunkPos[r.chunkIndex]) && c.addChunk(this.chunkPos[r.chunkIndex], this.chunk[r.chunkIndex]) ? r.nextChunk() : ((!l || s > r.to || o < r.from || l(r.from, r.to, r.value)) && (c.addInner(r.from, r.to, r.value) || h.push(a4.create(r.from, r.to, r.value))), r.next());
6543
- return c.finishInner(this.nextLayer.isEmpty && !h.length ? z2.empty : this.nextLayer.update({ add: h, filter: l, filterFrom: s, filterTo: o }));
6543
+ return c.finishInner(this.nextLayer.isEmpty && !h.length ? P2.empty : this.nextLayer.update({ add: h, filter: l, filterFrom: s, filterTo: o }));
6544
6544
  }
6545
6545
  /**
6546
6546
  Map this range set through a set of changes, return the new set.
@@ -6559,7 +6559,7 @@ class z2 {
6559
6559
  }
6560
6560
  }
6561
6561
  let o = this.nextLayer.map(e);
6562
- return t.length == 0 ? o : new z2(i, t, o || z2.empty, s);
6562
+ return t.length == 0 ? o : new P2(i, t, o || P2.empty, s);
6563
6563
  }
6564
6564
  /**
6565
6565
  Iterate over the ranges that touch the region `from` to `to`,
@@ -6663,15 +6663,15 @@ class z2 {
6663
6663
  */
6664
6664
  static join(e) {
6665
6665
  if (!e.length)
6666
- return z2.empty;
6666
+ return P2.empty;
6667
6667
  let t = e[e.length - 1];
6668
6668
  for (let i = e.length - 2; i >= 0; i--)
6669
- for (let s = e[i]; s != z2.empty; s = s.nextLayer)
6670
- t = new z2(s.chunkPos, s.chunk, t, Math.max(s.maxPoint, t.maxPoint));
6669
+ for (let s = e[i]; s != P2.empty; s = s.nextLayer)
6670
+ t = new P2(s.chunkPos, s.chunk, t, Math.max(s.maxPoint, t.maxPoint));
6671
6671
  return t;
6672
6672
  }
6673
6673
  }
6674
- z2.empty = /* @__PURE__ */ new z2([], [], null, -1);
6674
+ P2.empty = /* @__PURE__ */ new P2([], [], null, -1);
6675
6675
  function qv(n) {
6676
6676
  if (n.length > 1)
6677
6677
  for (let e = n[0], t = 1; t < n.length; t++) {
@@ -6682,7 +6682,7 @@ function qv(n) {
6682
6682
  }
6683
6683
  return n;
6684
6684
  }
6685
- z2.empty.nextLayer = z2.empty;
6685
+ P2.empty.nextLayer = P2.empty;
6686
6686
  class Ne {
6687
6687
  finishChunk(e) {
6688
6688
  this.chunks.push(new si(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
@@ -6724,7 +6724,7 @@ class Ne {
6724
6724
  used anymore after this has been called.
6725
6725
  */
6726
6726
  finish() {
6727
- return this.finishInner(z2.empty);
6727
+ return this.finishInner(P2.empty);
6728
6728
  }
6729
6729
  /**
6730
6730
  @internal
@@ -6732,7 +6732,7 @@ class Ne {
6732
6732
  finishInner(e) {
6733
6733
  if (this.from.length && this.finishChunk(!1), this.chunks.length == 0)
6734
6734
  return e;
6735
- let t = z2.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
6735
+ let t = P2.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
6736
6736
  return this.from = null, t;
6737
6737
  }
6738
6738
  }
@@ -7685,7 +7685,7 @@ function R8(n, e, t, i, s, o) {
7685
7685
  }
7686
7686
  let L0 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, g4 = typeof document < "u" ? document : { documentElement: { style: {} } };
7687
7687
  const v4 = /* @__PURE__ */ /Edge\/(\d+)/.exec(L0.userAgent), N8 = /* @__PURE__ */ /MSIE \d/.test(L0.userAgent), m4 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(L0.userAgent), a6 = !!(N8 || m4 || v4), mn = !a6 && /* @__PURE__ */ /gecko\/(\d+)/i.test(L0.userAgent), C6 = !a6 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(L0.userAgent), nm = "webkitFontSmoothing" in g4.documentElement.style, $8 = !a6 && /* @__PURE__ */ /Apple Computer/.test(L0.vendor), wn = $8 && (/* @__PURE__ */ /Mobile\/\w+/.test(L0.userAgent) || L0.maxTouchPoints > 2);
7688
- var t2 = {
7688
+ var e2 = {
7689
7689
  mac: wn || /* @__PURE__ */ /Mac/.test(L0.platform),
7690
7690
  windows: /* @__PURE__ */ /Win/.test(L0.platform),
7691
7691
  linux: /* @__PURE__ */ /Linux|X11/.test(L0.platform),
@@ -7782,12 +7782,12 @@ function om(n, e, t) {
7782
7782
  let i = n.nodeValue.length;
7783
7783
  e > i && (e = i);
7784
7784
  let s = e, o = e, l = 0;
7785
- e == 0 && t < 0 || e == i && t >= 0 ? t2.chrome || t2.gecko || (e ? (s--, l = 1) : o < i && (o++, l = -1)) : t < 0 ? s-- : o < i && o++;
7785
+ e == 0 && t < 0 || e == i && t >= 0 ? e2.chrome || e2.gecko || (e ? (s--, l = 1) : o < i && (o++, l = -1)) : t < 0 ? s-- : o < i && o++;
7786
7786
  let r = Ct(n, s, o).getClientRects();
7787
7787
  if (!r.length)
7788
7788
  return null;
7789
7789
  let a = r[(l ? l < 0 : t >= 0) ? 0 : r.length - 1];
7790
- return t2.safari && !l && a.width == 0 && (a = Array.prototype.find.call(r, (h) => h.width) || a), l ? r6(a, l < 0) : a || null;
7790
+ return e2.safari && !l && a.width == 0 && (a = Array.prototype.find.call(r, (h) => h.width) || a), l ? r6(a, l < 0) : a || null;
7791
7791
  }
7792
7792
  class Je extends $2 {
7793
7793
  static create(e, t, i) {
@@ -7820,12 +7820,12 @@ class Je extends $2 {
7820
7820
  }
7821
7821
  get overrideDOMText() {
7822
7822
  if (this.length == 0)
7823
- return P2.empty;
7823
+ return V2.empty;
7824
7824
  let e = this;
7825
7825
  for (; e.parent; )
7826
7826
  e = e.parent;
7827
7827
  let { view: t } = e, i = t && t.state.doc, s = this.posAtStart;
7828
- return i ? i.slice(s, s + this.length) : P2.empty;
7828
+ return i ? i.slice(s, s + this.length) : V2.empty;
7829
7829
  }
7830
7830
  domAtPos(e) {
7831
7831
  return (this.length ? e == 0 : this.side > 0) ? k0.before(this.dom) : k0.after(this.dom, e == this.length);
@@ -7896,7 +7896,7 @@ class Ft extends $2 {
7896
7896
  return this.dom.getBoundingClientRect();
7897
7897
  }
7898
7898
  get overrideDOMText() {
7899
- return P2.empty;
7899
+ return V2.empty;
7900
7900
  }
7901
7901
  get isHidden() {
7902
7902
  return !0;
@@ -8077,7 +8077,7 @@ class at {
8077
8077
  var z0 = /* @__PURE__ */ function(n) {
8078
8078
  return n[n.Text = 0] = "Text", n[n.WidgetBefore = 1] = "WidgetBefore", n[n.WidgetAfter = 2] = "WidgetAfter", n[n.WidgetRange = 3] = "WidgetRange", n;
8079
8079
  }(z0 || (z0 = {}));
8080
- class v2 extends yt {
8080
+ class g2 extends yt {
8081
8081
  constructor(e, t, i, s) {
8082
8082
  super(), this.startSide = e, this.endSide = t, this.widget = i, this.spec = s;
8083
8083
  }
@@ -8134,7 +8134,7 @@ class v2 extends yt {
8134
8134
  pass `true` for `sort` to make the library sort them for you.
8135
8135
  */
8136
8136
  static set(e, t = !1) {
8137
- return z2.of(e, t);
8137
+ return P2.of(e, t);
8138
8138
  }
8139
8139
  /**
8140
8140
  @internal
@@ -8143,8 +8143,8 @@ class v2 extends yt {
8143
8143
  return this.widget ? this.widget.estimatedHeight > -1 : !1;
8144
8144
  }
8145
8145
  }
8146
- v2.none = z2.empty;
8147
- class R1 extends v2 {
8146
+ g2.none = P2.empty;
8147
+ class R1 extends g2 {
8148
8148
  constructor(e) {
8149
8149
  let { start: t, end: i } = I8(e);
8150
8150
  super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
@@ -8160,7 +8160,7 @@ class R1 extends v2 {
8160
8160
  }
8161
8161
  }
8162
8162
  R1.prototype.point = !1;
8163
- class N1 extends v2 {
8163
+ class N1 extends g2 {
8164
8164
  constructor(e) {
8165
8165
  super(-2e8, -2e8, null, e);
8166
8166
  }
@@ -8175,7 +8175,7 @@ class N1 extends v2 {
8175
8175
  }
8176
8176
  N1.prototype.mapMode = M0.TrackBefore;
8177
8177
  N1.prototype.point = !0;
8178
- class ot extends v2 {
8178
+ class ot extends g2 {
8179
8179
  constructor(e, t, i, s, o, l) {
8180
8180
  super(t, i, o, e), this.block = s, this.isReplace = l, this.mapMode = s ? t <= 0 ? M0.TrackBefore : M0.TrackAfter : M0.TrackDel;
8181
8181
  }
@@ -8260,7 +8260,7 @@ class o0 extends $2 {
8260
8260
  let s = this.dom.lastChild;
8261
8261
  for (; s && $2.get(s) instanceof $e; )
8262
8262
  s = s.lastChild;
8263
- if (!s || !this.length || s.nodeName != "BR" && ((i = $2.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!t2.ios || !this.children.some((o) => o instanceof ce))) {
8263
+ if (!s || !this.length || s.nodeName != "BR" && ((i = $2.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!e2.ios || !this.children.some((o) => o instanceof ce))) {
8264
8264
  let o = document.createElement("BR");
8265
8265
  o.cmIgnore = !0, this.dom.appendChild(o);
8266
8266
  }
@@ -8337,7 +8337,7 @@ class Re extends $2 {
8337
8337
  (!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
8338
8338
  }
8339
8339
  get overrideDOMText() {
8340
- return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : P2.empty;
8340
+ return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : V2.empty;
8341
8341
  }
8342
8342
  domBoundsAround() {
8343
8343
  return null;
@@ -8459,7 +8459,7 @@ class w1 {
8459
8459
  }
8460
8460
  static build(e, t, i, s, o) {
8461
8461
  let l = new w1(e, t, i, o);
8462
- return l.openEnd = z2.spans(s, t, i, l), l.openStart < 0 && (l.openStart = l.openEnd), l.finish(l.openEnd), l;
8462
+ return l.openEnd = P2.spans(s, t, i, l), l.openStart < 0 && (l.openStart = l.openEnd), l.finish(l.openEnd), l;
8463
8463
  }
8464
8464
  }
8465
8465
  function K1(n, e) {
@@ -8823,7 +8823,7 @@ class r0 {
8823
8823
  let a = [];
8824
8824
  return l && a.push(O1.of((h) => {
8825
8825
  let c = h.plugin(r);
8826
- return c ? l(c) : v2.none;
8826
+ return c ? l(c) : g2.none;
8827
8827
  })), o && a.push(o(r)), a;
8828
8828
  });
8829
8829
  }
@@ -8885,7 +8885,7 @@ function bn(n, e) {
8885
8885
  if (!t.length)
8886
8886
  return t;
8887
8887
  let i = t.map((o) => o instanceof Function ? o(n) : o), s = [];
8888
- return z2.spans(i, e.from, e.to, {
8888
+ return P2.spans(i, e.from, e.to, {
8889
8889
  point() {
8890
8890
  },
8891
8891
  span(o, l, r, a) {
@@ -9024,7 +9024,7 @@ class _n extends $2 {
9024
9024
  return this.view.state.doc.length;
9025
9025
  }
9026
9026
  constructor(e) {
9027
- super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = v2.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new o0()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new ee(0, 0, 0, e.state.doc.length)], 0, null);
9027
+ super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = g2.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new o0()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new ee(0, 0, 0, e.state.doc.length)], 0, null);
9028
9028
  }
9029
9029
  // Update the document view to a given state.
9030
9030
  update(e) {
@@ -9039,7 +9039,7 @@ class _n extends $2 {
9039
9039
  let { from: h, to: c } = this.hasComposition;
9040
9040
  i = new ee(h, c, e.changes.mapPos(h, -1), e.changes.mapPos(c, 1)).addToSet(i.slice());
9041
9041
  }
9042
- this.hasComposition = o ? { from: o.range.fromB, to: o.range.toB } : null, (t2.ie || t2.chrome) && !o && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
9042
+ this.hasComposition = o ? { from: o.range.fromB, to: o.range.toB } : null, (e2.ie || e2.chrome) && !o && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
9043
9043
  let l = this.decorations, r = this.updateDeco(), a = Cm(l, r, e.changes);
9044
9044
  return i = ee.extendWithRanges(i, a), !(this.flags & 7) && i.length == 0 ? !1 : (this.updateInner(i, e.startState.doc.length, o), e.transactions.length && (this.lastUpdate = Date.now()), !0);
9045
9045
  }
@@ -9050,7 +9050,7 @@ class _n extends $2 {
9050
9050
  let { observer: s } = this.view;
9051
9051
  s.ignore(() => {
9052
9052
  this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
9053
- let l = t2.chrome || t2.ios ? { node: s.selectionRange.focusNode, written: !1 } : void 0;
9053
+ let l = e2.chrome || e2.ios ? { node: s.selectionRange.focusNode, written: !1 } : void 0;
9054
9054
  this.sync(this.view, l), this.flags &= -8, l && (l.written || s.selectionRange.focusNode != l.node) && (this.forceSelection = !0), this.dom.style.height = "";
9055
9055
  }), this.markedForComposition.forEach(
9056
9056
  (l) => l.flags &= -9
@@ -9117,16 +9117,16 @@ class _n extends $2 {
9117
9117
  let l = this.forceSelection;
9118
9118
  this.forceSelection = !1;
9119
9119
  let r = this.view.state.selection.main, a = this.moveToLine(this.domAtPos(r.anchor)), h = r.empty ? a : this.moveToLine(this.domAtPos(r.head));
9120
- if (t2.gecko && r.empty && !this.hasComposition && bm(a)) {
9120
+ if (e2.gecko && r.empty && !this.hasComposition && bm(a)) {
9121
9121
  let d = document.createTextNode("");
9122
9122
  this.view.observer.ignore(() => a.node.insertBefore(d, a.node.childNodes[a.offset] || null)), a = h = new k0(d, 0), l = !0;
9123
9123
  }
9124
9124
  let c = this.view.observer.selectionRange;
9125
9125
  (l || !c.focusNode || (!m1(a.node, a.offset, c.anchorNode, c.anchorOffset) || !m1(h.node, h.offset, c.focusNode, c.focusOffset)) && !this.suppressWidgetCursorChange(c, r)) && (this.view.observer.ignore(() => {
9126
- t2.android && t2.chrome && this.dom.contains(c.focusNode) && km(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
9126
+ e2.android && e2.chrome && this.dom.contains(c.focusNode) && km(c.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
9127
9127
  let d = k1(this.view.root);
9128
9128
  if (d) if (r.empty) {
9129
- if (t2.gecko) {
9129
+ if (e2.gecko) {
9130
9130
  let u = ym(a.node, a.offset);
9131
9131
  if (u && u != 3) {
9132
9132
  let f = (u == 1 ? B8 : L8)(a.node, a.offset);
@@ -9306,7 +9306,7 @@ class _n extends $2 {
9306
9306
  let o = s == t.viewports.length ? null : t.viewports[s], l = o ? o.from - 1 : this.length;
9307
9307
  if (l > i) {
9308
9308
  let r = (t.lineBlockAt(l).bottom - t.lineBlockAt(i).top) / this.view.scaleY;
9309
- e.push(v2.replace({
9309
+ e.push(g2.replace({
9310
9310
  widget: new b4(r),
9311
9311
  block: !0,
9312
9312
  inclusive: !0,
@@ -9317,14 +9317,14 @@ class _n extends $2 {
9317
9317
  break;
9318
9318
  i = o.to + 1;
9319
9319
  }
9320
- return v2.set(e);
9320
+ return g2.set(e);
9321
9321
  }
9322
9322
  updateDeco() {
9323
9323
  let e = 1, t = this.view.state.facet(O1).map((o) => (this.dynamicDecorationMap[e++] = typeof o == "function") ? o(this.view) : o), i = !1, s = this.view.state.facet(ao).map((o, l) => {
9324
9324
  let r = typeof o == "function";
9325
9325
  return r && (i = !0), r ? o(this.view) : o;
9326
9326
  });
9327
- for (s.length && (this.dynamicDecorationMap[e++] = i, t.push(z2.join(s))), this.decorations = [
9327
+ for (s.length && (this.dynamicDecorationMap[e++] = i, t.push(P2.join(s))), this.decorations = [
9328
9328
  this.editContextFormatting,
9329
9329
  ...t,
9330
9330
  this.computeBlockGapDeco(),
@@ -9431,7 +9431,7 @@ let Sm = class {
9431
9431
  };
9432
9432
  function Cm(n, e, t) {
9433
9433
  let i = new Sm();
9434
- return z2.compare(n, e, t, i), i.changes;
9434
+ return P2.compare(n, e, t, i), i.changes;
9435
9435
  }
9436
9436
  function km(n, e) {
9437
9437
  for (let t = n; t && t != e; t = t.assignedSlot || t.parentNode)
@@ -9517,7 +9517,7 @@ function Cn(n, e, t) {
9517
9517
  let d = (c.top > t ? c.top - t : t - c.bottom) - 1;
9518
9518
  if (c.left - 1 <= e && c.right + 1 >= e && d < o) {
9519
9519
  let u = e >= (c.left + c.right) / 2, f = u;
9520
- if ((t2.chrome || t2.gecko) && Ct(n, r).getBoundingClientRect().left == c.right && (f = !u), d <= 0)
9520
+ if ((e2.chrome || e2.gecko) && Ct(n, r).getBoundingClientRect().left == c.right && (f = !u), d <= 0)
9521
9521
  return { node: n, offset: r + (f ? 1 : 0) };
9522
9522
  s = r + (f ? 1 : 0), o = d;
9523
9523
  }
@@ -9553,7 +9553,7 @@ function fo(n, e, t, i = -1) {
9553
9553
  D && ({ offsetNode: v, offset: S } = D);
9554
9554
  } else if (p.caretRangeFromPoint) {
9555
9555
  let D = p.caretRangeFromPoint(c, d);
9556
- D && ({ startContainer: v, startOffset: S } = D, (!n.contentDOM.contains(v) || t2.safari && zm(v, S, c) || t2.chrome && Pm(v, S, c)) && (v = void 0));
9556
+ D && ({ startContainer: v, startOffset: S } = D, (!n.contentDOM.contains(v) || e2.safari && zm(v, S, c) || e2.chrome && Pm(v, S, c)) && (v = void 0));
9557
9557
  }
9558
9558
  v && (S = Math.min(Pe(v), S));
9559
9559
  }
@@ -9794,7 +9794,7 @@ class Hm {
9794
9794
  a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = $m(r, this.bounds.from);
9795
9795
  } else {
9796
9796
  let r = e.observer.selectionRange, a = o && o.node == r.focusNode && o.offset == r.focusOffset || !p4(e.contentDOM, r.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(r.focusNode, r.focusOffset), h = l && l.node == r.anchorNode && l.offset == r.anchorOffset || !p4(e.contentDOM, r.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(r.anchorNode, r.anchorOffset), c = e.viewport;
9797
- if ((t2.ios || t2.chrome) && e.state.selection.main.empty && a != h && (c.from > 0 || c.to < e.state.doc.length)) {
9797
+ if ((e2.ios || e2.chrome) && e.state.selection.main.empty && a != h && (c.from > 0 || c.to < e.state.doc.length)) {
9798
9798
  let d = Math.min(a, h), u = Math.max(a, h), f = c.from - d, p = c.to - u;
9799
9799
  (f == 0 || f == 1 || d == 0) && (p == 0 || p == -1 || u == e.state.doc.length) && (a = 0, h = e.state.doc.length);
9800
9800
  }
@@ -9806,22 +9806,22 @@ function po(n, e) {
9806
9806
  let t, { newSel: i } = e, s = n.state.selection.main, o = n.inputState.lastKeyTime > Date.now() - 100 ? n.inputState.lastKeyCode : -1;
9807
9807
  if (e.bounds) {
9808
9808
  let { from: l, to: r } = e.bounds, a = s.from, h = null;
9809
- (o === 8 || t2.android && e.text.length < r - l) && (a = s.to, h = "end");
9809
+ (o === 8 || e2.android && e.text.length < r - l) && (a = s.to, h = "end");
9810
9810
  let c = Rm(n.state.doc.sliceString(l, r, d1), e.text, a - l, h);
9811
- c && (t2.chrome && o == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == d1 + d1 && c.toB--, t = {
9811
+ c && (e2.chrome && o == 13 && c.toB == c.from + 2 && e.text.slice(c.from, c.toB) == d1 + d1 && c.toB--, t = {
9812
9812
  from: l + c.from,
9813
9813
  to: l + c.toA,
9814
- insert: P2.of(e.text.slice(c.from, c.toB).split(d1))
9814
+ insert: V2.of(e.text.slice(c.from, c.toB).split(d1))
9815
9815
  });
9816
9816
  } else i && (!n.hasFocus && n.state.facet(He) || i.main.eq(s)) && (i = null);
9817
9817
  if (!t && !i)
9818
9818
  return !1;
9819
- 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) } : (t2.mac || t2.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 = B.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: P2.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 = {
9819
+ 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) } : (e2.mac || e2.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 = B.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: V2.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 = {
9820
9820
  from: s.from,
9821
9821
  to: s.to,
9822
9822
  insert: n.state.doc.slice(s.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, s.to))
9823
- } : t2.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
9824
- ` && n.lineWrapping && (i && (i = B.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: P2.of([" "]) }), t)
9823
+ } : e2.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
9824
+ ` && n.lineWrapping && (i && (i = B.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: V2.of([" "]) }), t)
9825
9825
  return ui(n, t, i, o);
9826
9826
  if (i && !i.main.eq(s)) {
9827
9827
  let l = !1, r = "select";
@@ -9830,10 +9830,10 @@ function po(n, e) {
9830
9830
  return !1;
9831
9831
  }
9832
9832
  function ui(n, e, t, i = -1) {
9833
- if (t2.ios && n.inputState.flushIOSKey(e))
9833
+ if (e2.ios && n.inputState.flushIOSKey(e))
9834
9834
  return !0;
9835
9835
  let s = n.state.selection.main;
9836
- if (t2.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
9836
+ if (e2.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
9837
9837
  // after a completion when you press enter
9838
9838
  (e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && Nt(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && Nt(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && Nt(n.contentDOM, "Delete", 46)))
9839
9839
  return !0;
@@ -9922,7 +9922,7 @@ class jm {
9922
9922
  this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
9923
9923
  }
9924
9924
  constructor(e) {
9925
- this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, t2.safari && e.contentDOM.addEventListener("input", () => null), t2.gecko && sw(e.contentDOM.ownerDocument);
9925
+ this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, e2.safari && e.contentDOM.addEventListener("input", () => null), e2.gecko && sw(e.contentDOM.ownerDocument);
9926
9926
  }
9927
9927
  handleEvent(e) {
9928
9928
  !Xm(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || (this.view.updateState != 0 ? Promise.resolve().then(() => this.runHandlers(e.type, e)) : this.runHandlers(e.type, e));
@@ -9956,17 +9956,17 @@ class jm {
9956
9956
  keydown(e) {
9957
9957
  if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
9958
9958
  return !0;
9959
- if (this.tabFocusMode > 0 && e.keyCode != 27 && vo.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), t2.android && t2.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
9959
+ if (this.tabFocusMode > 0 && e.keyCode != 27 && vo.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), e2.android && e2.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
9960
9960
  return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
9961
9961
  let t;
9962
- return t2.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = go.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || Um.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
9962
+ return e2.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = go.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || Um.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
9963
9963
  }
9964
9964
  flushIOSKey(e) {
9965
9965
  let t = this.pendingIOSKey;
9966
9966
  return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, Nt(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
9967
9967
  }
9968
9968
  ignoreDuringComposition(e) {
9969
- return /^key/.test(e.type) ? this.composing > 0 ? !0 : t2.safari && !t2.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
9969
+ return /^key/.test(e.type) ? this.composing > 0 ? !0 : e2.safari && !e2.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
9970
9970
  }
9971
9971
  startMouseSelection(e) {
9972
9972
  this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
@@ -10086,11 +10086,11 @@ class qm {
10086
10086
  }
10087
10087
  function Ym(n, e) {
10088
10088
  let t = n.state.facet(Q8);
10089
- return t.length ? t[0](e) : t2.mac ? e.metaKey : e.ctrlKey;
10089
+ return t.length ? t[0](e) : e2.mac ? e.metaKey : e.ctrlKey;
10090
10090
  }
10091
10091
  function Fm(n, e) {
10092
10092
  let t = n.state.facet(J8);
10093
- return t.length ? t[0](e) : t2.mac ? !e.altKey : !e.ctrlKey;
10093
+ return t.length ? t[0](e) : e2.mac ? !e.altKey : !e.ctrlKey;
10094
10094
  }
10095
10095
  function Km(n, e) {
10096
10096
  let { main: t } = n.state.selection;
@@ -10117,7 +10117,7 @@ function Xm(n, e) {
10117
10117
  return !1;
10118
10118
  return !0;
10119
10119
  }
10120
- const he = /* @__PURE__ */ Object.create(null), ie = /* @__PURE__ */ Object.create(null), mo = t2.ie && t2.ie_version < 15 || t2.ios && t2.webkit_version < 604;
10120
+ const he = /* @__PURE__ */ Object.create(null), ie = /* @__PURE__ */ Object.create(null), mo = e2.ie && e2.ie_version < 15 || e2.ios && e2.webkit_version < 604;
10121
10121
  function Qm(n) {
10122
10122
  let e = n.dom.parentNode;
10123
10123
  if (!e)
@@ -10220,7 +10220,7 @@ function Pn(n, e) {
10220
10220
  let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
10221
10221
  return { pos: t, bias: Jm(n, t, e.clientX, e.clientY) };
10222
10222
  }
10223
- const Zm = t2.ie && t2.ie_version <= 11;
10223
+ const Zm = e2.ie && e2.ie_version <= 11;
10224
10224
  let Vn = null, An = 0, En = 0;
10225
10225
  function xo(n) {
10226
10226
  if (!Zm)
@@ -10370,7 +10370,7 @@ ie.compositionstart = ie.compositionupdate = (n) => {
10370
10370
  n.observer.editContext || (n.inputState.compositionFirstChange == null && (n.inputState.compositionFirstChange = !0), n.inputState.composing < 0 && (n.inputState.composing = 0));
10371
10371
  };
10372
10372
  ie.compositionend = (n) => {
10373
- n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, t2.chrome && t2.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
10373
+ n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, e2.chrome && e2.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
10374
10374
  n.inputState.composing < 0 && n.docView.hasComposition && n.update([]);
10375
10375
  }, 50));
10376
10376
  };
@@ -10387,14 +10387,14 @@ he.beforeinput = (n, e) => {
10387
10387
  }
10388
10388
  }
10389
10389
  let s;
10390
- if (t2.chrome && t2.android && (s = go.find((o) => o.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
10390
+ if (e2.chrome && e2.android && (s = go.find((o) => o.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
10391
10391
  let o = ((i = window.visualViewport) === null || i === void 0 ? void 0 : i.height) || 0;
10392
10392
  setTimeout(() => {
10393
10393
  var l;
10394
10394
  (((l = window.visualViewport) === null || l === void 0 ? void 0 : l.height) || 0) > o + 10 && n.hasFocus && (n.contentDOM.blur(), n.focus());
10395
10395
  }, 100);
10396
10396
  }
10397
- return t2.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), t2.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => ie.compositionend(n, e), 20), !1;
10397
+ return e2.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), e2.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => ie.compositionend(n, e), 20), !1;
10398
10398
  };
10399
10399
  const Ln = /* @__PURE__ */ new Set();
10400
10400
  function sw(n) {
@@ -10409,7 +10409,7 @@ function Gn() {
10409
10409
  }
10410
10410
  class ow {
10411
10411
  constructor(e) {
10412
- this.lineWrapping = e, this.doc = P2.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30;
10412
+ this.lineWrapping = e, this.doc = V2.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30;
10413
10413
  }
10414
10414
  heightForGap(e, t) {
10415
10415
  let i = this.doc.lineAt(t).number - this.doc.lineAt(e).number + 1;
@@ -10839,12 +10839,12 @@ class fi {
10839
10839
  // to each other.
10840
10840
  static build(e, t, i, s) {
10841
10841
  let o = new fi(i, e);
10842
- return z2.spans(t, i, s, o, 0), o.finish(i);
10842
+ return P2.spans(t, i, s, o, 0), o.finish(i);
10843
10843
  }
10844
10844
  }
10845
10845
  function cw(n, e, t) {
10846
10846
  let i = new hw();
10847
- return z2.compare(n, e, t, i, 0), i.changes;
10847
+ return P2.compare(n, e, t, i, 0), i.changes;
10848
10848
  }
10849
10849
  class hw {
10850
10850
  constructor() {
@@ -10905,7 +10905,7 @@ class M6 {
10905
10905
  return !0;
10906
10906
  }
10907
10907
  draw(e, t) {
10908
- return v2.replace({
10908
+ return g2.replace({
10909
10909
  widget: new pw(this.displaySize * (t ? e.scaleY : e.scaleX), t)
10910
10910
  }).range(this.from, this.to);
10911
10911
  }
@@ -10929,10 +10929,10 @@ class Nn {
10929
10929
  constructor(e) {
10930
10930
  this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = $n, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = I2.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
10931
10931
  let t = e.facet(ci).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
10932
- this.heightOracle = new ow(t), this.stateDeco = e.facet(O1).filter((i) => typeof i != "function"), this.heightMap = P0.empty().applyChanges(this.stateDeco, P2.empty, this.heightOracle.setDoc(e.doc), [new ee(0, 0, 0, e.doc.length)]);
10932
+ this.heightOracle = new ow(t), this.stateDeco = e.facet(O1).filter((i) => typeof i != "function"), this.heightMap = P0.empty().applyChanges(this.stateDeco, V2.empty, this.heightOracle.setDoc(e.doc), [new ee(0, 0, 0, e.doc.length)]);
10933
10933
  for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
10934
10934
  ;
10935
- this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = v2.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
10935
+ this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = g2.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
10936
10936
  }
10937
10937
  updateForViewport() {
10938
10938
  let e = [this.viewport], { main: t } = this.state.selection;
@@ -10994,7 +10994,7 @@ class Nn {
10994
10994
  g > 0 && m > 0 ? c = Math.max(g, m) : g < 0 && m < 0 && (c = Math.min(g, m)), Gn();
10995
10995
  for (let O of this.viewports) {
10996
10996
  let _ = O.from == this.viewport.from ? D : e.docView.measureVisibleLineHeights(O);
10997
- this.heightMap = (l ? P0.empty().applyChanges(this.stateDeco, P2.empty, this.heightOracle, [new ee(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new lw(O.from, _));
10997
+ this.heightMap = (l ? P0.empty().applyChanges(this.stateDeco, V2.empty, this.heightOracle, [new ee(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new lw(O.from, _));
10998
10998
  }
10999
10999
  Xt && (h |= 2);
11000
11000
  }
@@ -11116,13 +11116,13 @@ class Nn {
11116
11116
  return this.heightOracle.lineWrapping ? e.height * o : s.total * this.heightOracle.charWidth * o;
11117
11117
  }
11118
11118
  updateLineGaps(e) {
11119
- M6.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = v2.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
11119
+ M6.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = g2.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
11120
11120
  }
11121
11121
  computeVisibleRanges(e) {
11122
11122
  let t = this.stateDeco;
11123
11123
  this.lineGaps.length && (t = t.concat(this.lineGapDeco));
11124
11124
  let i = [];
11125
- z2.spans(t, this.viewport.from, this.viewport.to, {
11125
+ P2.spans(t, this.viewport.from, this.viewport.to, {
11126
11126
  span(o, l) {
11127
11127
  i.push({ from: o, to: l });
11128
11128
  },
@@ -11166,7 +11166,7 @@ class Z1 {
11166
11166
  }
11167
11167
  function gw(n, e, t) {
11168
11168
  let i = [], s = n, o = 0;
11169
- return z2.spans(t, n, e, {
11169
+ return P2.spans(t, n, e, {
11170
11170
  span() {
11171
11171
  },
11172
11172
  point(l, r) {
@@ -11543,15 +11543,15 @@ const mw = /* @__PURE__ */ z4("." + T4, {
11543
11543
  subtree: !0,
11544
11544
  attributes: !0,
11545
11545
  characterDataOldValue: !0
11546
- }, T6 = t2.ie && t2.ie_version <= 11;
11546
+ }, T6 = e2.ie && e2.ie_version <= 11;
11547
11547
  class xw {
11548
11548
  constructor(e) {
11549
11549
  this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new em(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((t) => {
11550
11550
  for (let i of t)
11551
11551
  this.queue.push(i);
11552
- (t2.ie && t2.ie_version <= 11 || t2.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
11553
- }), window.EditContext && t2.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
11554
- !(t2.chrome && t2.chrome_version < 126) && (this.editContext = new _w(e), e.state.facet(He) && (e.contentDOM.editContext = this.editContext.editContext)), T6 && (this.onCharData = (t) => {
11552
+ (e2.ie && e2.ie_version <= 11 || e2.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
11553
+ }), window.EditContext && e2.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
11554
+ !(e2.chrome && e2.chrome_version < 126) && (this.editContext = new _w(e), e.state.facet(He) && (e.contentDOM.editContext = this.editContext.editContext)), T6 && (this.onCharData = (t) => {
11555
11555
  this.queue.push({
11556
11556
  target: t.target,
11557
11557
  type: "characterData",
@@ -11602,14 +11602,14 @@ class xw {
11602
11602
  t || (this.selectionChanged = !1);
11603
11603
  return;
11604
11604
  }
11605
- (t2.ie && t2.ie_version <= 11 || t2.android && t2.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
11605
+ (e2.ie && e2.ie_version <= 11 || e2.android && e2.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
11606
11606
  s.focusNode && m1(s.focusNode, s.focusOffset, s.anchorNode, s.anchorOffset) ? this.flushSoon() : this.flush(!1);
11607
11607
  }
11608
11608
  readSelectionRange() {
11609
11609
  let { view: e } = this, t = k1(e.root);
11610
11610
  if (!t)
11611
11611
  return !1;
11612
- let i = t2.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && bw(this.view, t) || t;
11612
+ let i = e2.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && bw(this.view, t) || t;
11613
11613
  if (!i || this.selectionRange.eq(i))
11614
11614
  return !1;
11615
11615
  let s = x3(this.dom, i);
@@ -11799,14 +11799,14 @@ class _w {
11799
11799
  this.handlers.textupdate = (i) => {
11800
11800
  let s = e.state.selection.main, { anchor: o, head: l } = s, r = this.toEditorPos(i.updateRangeStart), a = this.toEditorPos(i.updateRangeEnd);
11801
11801
  e.inputState.composing >= 0 && !this.composing && (this.composing = { contextBase: i.updateRangeStart, editorBase: r, drifted: !1 });
11802
- let h = { from: r, to: a, insert: P2.of(i.text.split(`
11802
+ let h = { from: r, to: a, insert: V2.of(i.text.split(`
11803
11803
  `)) };
11804
11804
  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) {
11805
11805
  let c = B.single(this.toEditorPos(i.selectionStart), this.toEditorPos(i.selectionEnd));
11806
11806
  c.main.eq(s) || e.dispatch({ selection: c, userEvent: "select" });
11807
11807
  return;
11808
11808
  }
11809
- if ((t2.mac || t2.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert: P2.of([i.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
11809
+ if ((e2.mac || e2.android) && h.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: r, to: a, insert: V2.of([i.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
11810
11810
  let c = this.to - this.from + (h.to - h.from + h.insert.length);
11811
11811
  ui(e, h, B.single(this.toEditorPos(i.selectionStart, c), this.toEditorPos(i.selectionEnd, c)));
11812
11812
  }
@@ -11826,11 +11826,11 @@ class _w {
11826
11826
  let a = this.toEditorPos(o.rangeStart), h = this.toEditorPos(o.rangeEnd);
11827
11827
  if (a < h) {
11828
11828
  let c = `text-decoration: underline ${l == "Dashed" ? "dashed " : l == "Squiggle" ? "wavy " : ""}${r == "Thin" ? 1 : 2}px`;
11829
- s.push(v2.mark({ attributes: { style: c } }).range(a, h));
11829
+ s.push(g2.mark({ attributes: { style: c } }).range(a, h));
11830
11830
  }
11831
11831
  }
11832
11832
  }
11833
- e.dispatch({ effects: lo.of(v2.set(s)) });
11833
+ e.dispatch({ effects: lo.of(g2.set(s)) });
11834
11834
  }, this.handlers.compositionstart = () => {
11835
11835
  e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
11836
11836
  }, this.handlers.compositionend = () => {
@@ -12200,7 +12200,7 @@ class Z {
12200
12200
  translate: "no",
12201
12201
  contenteditable: this.state.facet(He) ? "true" : "false",
12202
12202
  class: "cm-content",
12203
- style: `${t2.tabSize}: ${this.state.tabSize}`,
12203
+ style: `${e2.tabSize}: ${this.state.tabSize}`,
12204
12204
  role: "textbox",
12205
12205
  "aria-multiline": "true"
12206
12206
  };
@@ -12514,7 +12514,7 @@ class Z {
12514
12514
  */
12515
12515
  get hasFocus() {
12516
12516
  var e;
12517
- return (this.dom.ownerDocument.hasFocus() || t2.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
12517
+ return (this.dom.ownerDocument.hasFocus() || e2.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
12518
12518
  }
12519
12519
  /**
12520
12520
  Put focus on the editor.
@@ -12696,7 +12696,7 @@ function In(n, e, t) {
12696
12696
  }
12697
12697
  return t;
12698
12698
  }
12699
- const Sw = t2.mac ? "mac" : t2.windows ? "win" : t2.linux ? "linux" : "key";
12699
+ const Sw = e2.mac ? "mac" : e2.windows ? "win" : e2.linux ? "linux" : "key";
12700
12700
  function Cw(n, e) {
12701
12701
  const t = n.split(/-(?!$)/);
12702
12702
  let i = t[t.length - 1];
@@ -12800,8 +12800,8 @@ function Mo(n, e, t, i) {
12800
12800
  return !1;
12801
12801
  }, f = n[i], p, g;
12802
12802
  return f && (u(f[r + n3(s, e, !l)]) ? a = !0 : l && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
12803
- !(t2.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
12804
- !(t2.mac && e.altKey && !e.ctrlKey) && (p = st[e.keyCode]) && p != s ? (u(f[r + n3(p, e, !0)]) || e.shiftKey && (g = C1[e.keyCode]) != s && g != p && u(f[r + n3(g, e, !1)])) && (a = !0) : l && e.shiftKey && u(f[r + n3(s, e, !0)]) && (a = !0), !a && u(f._any) && (a = !0)), h && (a = !0), a && c && e.stopPropagation(), P4 = null, a;
12803
+ !(e2.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
12804
+ !(e2.mac && e.altKey && !e.ctrlKey) && (p = st[e.keyCode]) && p != s ? (u(f[r + n3(p, e, !0)]) || e.shiftKey && (g = C1[e.keyCode]) != s && g != p && u(f[r + n3(g, e, !1)])) && (a = !0) : l && e.shiftKey && u(f[r + n3(s, e, !0)]) && (a = !0), !a && u(f._any) && (a = !0)), h && (a = !0), a && c && e.stopPropagation(), P4 = null, a;
12805
12805
  }
12806
12806
  class $1 {
12807
12807
  /**
@@ -12875,8 +12875,8 @@ function Tw(n, e, t) {
12875
12875
  function M(O, _, k) {
12876
12876
  let G = 1e9, E = -1e9, V = [];
12877
12877
  function Y(L, U, l2, c2, S2) {
12878
- let m2 = n.coordsAtPos(L, L == k.to ? -2 : 2), L2 = n.coordsAtPos(l2, l2 == k.from ? 2 : -2);
12879
- !m2 || !L2 || (G = Math.min(m2.top, L2.top, G), E = Math.max(m2.bottom, L2.bottom, E), S2 == I2.LTR ? V.push(o && U ? d : m2.left, o && c2 ? u : L2.right) : V.push(!o && c2 ? d : L2.left, !o && U ? u : m2.right));
12878
+ let v2 = n.coordsAtPos(L, L == k.to ? -2 : 2), L2 = n.coordsAtPos(l2, l2 == k.from ? 2 : -2);
12879
+ !v2 || !L2 || (G = Math.min(v2.top, L2.top, G), E = Math.max(v2.bottom, L2.bottom, E), S2 == I2.LTR ? V.push(o && U ? d : v2.left, o && c2 ? u : L2.right) : V.push(!o && c2 ? d : L2.left, !o && U ? u : v2.right));
12880
12880
  }
12881
12881
  let P = O ?? k.from, f2 = _ ?? k.to;
12882
12882
  for (let L of n.visibleRanges)
@@ -12884,10 +12884,10 @@ function Tw(n, e, t) {
12884
12884
  for (let U = Math.max(L.from, P), l2 = Math.min(L.to, f2); ; ) {
12885
12885
  let c2 = n.state.doc.lineAt(U);
12886
12886
  for (let S2 of n.bidiSpans(c2)) {
12887
- let m2 = S2.from + c2.from, L2 = S2.to + c2.from;
12888
- if (m2 >= l2)
12887
+ let v2 = S2.from + c2.from, L2 = S2.to + c2.from;
12888
+ if (v2 >= l2)
12889
12889
  break;
12890
- L2 > U && Y(Math.max(m2, U), O == null && m2 <= P, Math.min(L2, l2), _ == null && L2 >= f2, S2.dir);
12890
+ L2 > U && Y(Math.max(v2, U), O == null && v2 <= P, Math.min(L2, l2), _ == null && L2 >= f2, S2.dir);
12891
12891
  }
12892
12892
  if (U = c2.to + 1, U >= l2)
12893
12893
  break;
@@ -13221,7 +13221,7 @@ let Xn = null;
13221
13221
  function Uw() {
13222
13222
  return Xn || (Xn = r0.fromClass(class {
13223
13223
  constructor(n) {
13224
- this.view = n, this.decorations = v2.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(C3)), this.decorations = this.decorator.createDeco(n);
13224
+ this.view = n, this.decorations = g2.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(C3)), this.decorations = this.decorator.createDeco(n);
13225
13225
  }
13226
13226
  makeDecorator(n) {
13227
13227
  return new Rw({
@@ -13230,11 +13230,11 @@ function Uw() {
13230
13230
  let { doc: s } = t.state, o = B0(e[0], 0);
13231
13231
  if (o == 9) {
13232
13232
  let l = s.lineAt(i), r = t.state.tabSize, a = t1(l.text, r, i - l.from);
13233
- return v2.replace({
13233
+ return g2.replace({
13234
13234
  widget: new Fw((r - a % r) * this.view.defaultCharacterWidth / this.view.scaleX)
13235
13235
  });
13236
13236
  }
13237
- return this.decorationCache[o] || (this.decorationCache[o] = v2.replace({ widget: new Yw(n, o) }));
13237
+ return this.decorationCache[o] || (this.decorationCache[o] = g2.replace({ widget: new Yw(n, o) }));
13238
13238
  },
13239
13239
  boundary: n.replaceTabs ? void 0 : /[^]/
13240
13240
  });
@@ -13287,7 +13287,7 @@ class Fw extends at {
13287
13287
  function Kw() {
13288
13288
  return Qw;
13289
13289
  }
13290
- const Xw = /* @__PURE__ */ v2.line({ class: "cm-activeLine" }), Qw = /* @__PURE__ */ r0.fromClass(class {
13290
+ const Xw = /* @__PURE__ */ g2.line({ class: "cm-activeLine" }), Qw = /* @__PURE__ */ r0.fromClass(class {
13291
13291
  constructor(n) {
13292
13292
  this.decorations = this.getDeco(n);
13293
13293
  }
@@ -13300,7 +13300,7 @@ const Xw = /* @__PURE__ */ v2.line({ class: "cm-activeLine" }), Qw = /* @__PURE_
13300
13300
  let s = n.lineBlockAt(i.head);
13301
13301
  s.from > e && (t.push(Xw.range(s.from)), e = s.from);
13302
13302
  }
13303
- return v2.set(t);
13303
+ return g2.set(t);
13304
13304
  }
13305
13305
  }, {
13306
13306
  decorations: (n) => n.decorations
@@ -13436,7 +13436,7 @@ const P6 = /* @__PURE__ */ n2.define({
13436
13436
  combine: (n) => {
13437
13437
  var e, t, i;
13438
13438
  return {
13439
- position: t2.ios ? "absolute" : ((e = n.find((s) => s.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
13439
+ position: e2.ios ? "absolute" : ((e = n.find((s) => s.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
13440
13440
  parent: ((t = n.find((s) => s.parent)) === null || t === void 0 ? void 0 : t.parent) || null,
13441
13441
  tooltipSpace: ((i = n.find((s) => s.tooltipSpace)) === null || i === void 0 ? void 0 : i.tooltipSpace) || ox
13442
13442
  };
@@ -13504,7 +13504,7 @@ const P6 = /* @__PURE__ */ n2.define({
13504
13504
  let n = 1, e = 1, t = !1;
13505
13505
  if (this.position == "fixed" && this.manager.tooltipViews.length) {
13506
13506
  let { dom: o } = this.manager.tooltipViews[0];
13507
- if (t2.gecko)
13507
+ if (e2.gecko)
13508
13508
  t = o.offsetParent != this.container.ownerDocument.body;
13509
13509
  else if (o.style.top == l1 && o.style.left == "0px") {
13510
13510
  let l = o.getBoundingClientRect();
@@ -13980,7 +13980,7 @@ const k3 = /* @__PURE__ */ n2.define(), px = /* @__PURE__ */ n2.define(), gx = {
13980
13980
  class: "",
13981
13981
  renderEmptyElements: !1,
13982
13982
  elementStyle: "",
13983
- markers: () => z2.empty,
13983
+ markers: () => P2.empty,
13984
13984
  lineMarker: () => null,
13985
13985
  widgetMarker: () => null,
13986
13986
  lineMarkerChange: null,
@@ -14024,7 +14024,7 @@ const mx = /* @__PURE__ */ r0.fromClass(class {
14024
14024
  syncGutters(n) {
14025
14025
  let e = this.dom.nextSibling;
14026
14026
  n && (this.dom.remove(), this.domAfter && this.domAfter.remove());
14027
- let t = z2.iter(this.view.state.facet(k3), this.view.viewport.from), i = [], s = this.gutters.map((o) => new wx(o, this.view.viewport, -this.view.documentPadding.top));
14027
+ let t = P2.iter(this.view.state.facet(k3), this.view.viewport.from), i = [], s = this.gutters.map((o) => new wx(o, this.view.viewport, -this.view.documentPadding.top));
14028
14028
  for (let o of this.view.viewportLineBlocks)
14029
14029
  if (i.length && (i = []), Array.isArray(o.type)) {
14030
14030
  let l = !0;
@@ -14049,7 +14049,7 @@ const mx = /* @__PURE__ */ r0.fromClass(class {
14049
14049
  n && (this.view.scrollDOM.insertBefore(this.dom, e), this.domAfter && this.view.scrollDOM.appendChild(this.domAfter));
14050
14050
  }
14051
14051
  updateGutters(n) {
14052
- let e = n.startState.facet(x1), t = n.state.facet(x1), i = n.docChanged || n.heightChanged || n.viewportChanged || !z2.eq(n.startState.facet(k3), n.state.facet(k3), n.view.viewport.from, n.view.viewport.to);
14052
+ let e = n.startState.facet(x1), t = n.state.facet(x1), i = n.docChanged || n.heightChanged || n.viewportChanged || !P2.eq(n.startState.facet(k3), n.state.facet(k3), n.view.viewport.from, n.view.viewport.to);
14053
14053
  if (e == t)
14054
14054
  for (let s of this.gutters)
14055
14055
  s.update(n) && (i = !0);
@@ -14091,7 +14091,7 @@ function E4(n, e, t) {
14091
14091
  }
14092
14092
  class wx {
14093
14093
  constructor(e, t, i) {
14094
- this.gutter = e, this.height = i, this.i = 0, this.cursor = z2.iter(e.markers, t.from);
14094
+ this.gutter = e, this.height = i, this.i = 0, this.cursor = P2.iter(e.markers, t.from);
14095
14095
  }
14096
14096
  addElement(e, t, i) {
14097
14097
  let { gutter: s } = this, o = (t.top - this.height) / e.scaleY, l = t.height / e.scaleY;
@@ -14151,7 +14151,7 @@ class ss {
14151
14151
  s != this.spacer.markers[0] && this.spacer.update(e.view, 0, 0, [s]);
14152
14152
  }
14153
14153
  let i = e.view.viewport;
14154
- return !z2.eq(this.markers, t, i.from, i.to) || (this.config.lineMarkerChange ? this.config.lineMarkerChange(e) : !1);
14154
+ return !P2.eq(this.markers, t, i.from, i.to) || (this.config.lineMarkerChange ? this.config.lineMarkerChange(e) : !1);
14155
14155
  }
14156
14156
  destroy() {
14157
14157
  for (let e of this.elements)
@@ -14284,7 +14284,7 @@ const Cx = /* @__PURE__ */ new class extends je {
14284
14284
  let s = n.doc.lineAt(i.head).from;
14285
14285
  s > t && (t = s, e.push(Cx.range(s)));
14286
14286
  }
14287
- return z2.of(e);
14287
+ return P2.of(e);
14288
14288
  });
14289
14289
  function Dx() {
14290
14290
  return kx;
@@ -15382,12 +15382,12 @@ function Vx(n) {
15382
15382
  return;
15383
15383
  } else
15384
15384
  throw new RangeError(`Unrecognized record size: ${L}`);
15385
- let c2 = a[Y], S2, m2, L2 = P - O;
15386
- if (f2 - P <= s && (m2 = m(r.pos - _, E))) {
15387
- let n0 = new Uint16Array(m2.size - m2.skip), q2 = r.pos - m2.size, J2 = n0.length;
15385
+ let c2 = a[Y], S2, v2, L2 = P - O;
15386
+ if (f2 - P <= s && (v2 = m(r.pos - _, E))) {
15387
+ let n0 = new Uint16Array(v2.size - v2.skip), q2 = r.pos - v2.size, J2 = n0.length;
15388
15388
  for (; r.pos > q2; )
15389
- J2 = v(m2.start, n0, J2);
15390
- S2 = new lt(n0, f2 - m2.start, i), L2 = m2.start - O;
15389
+ J2 = v(v2.start, n0, J2);
15390
+ S2 = new lt(n0, f2 - v2.start, i), L2 = v2.start - O;
15391
15391
  } else {
15392
15392
  let n0 = r.pos - L;
15393
15393
  r.next();
@@ -15872,7 +15872,7 @@ function $x(n) {
15872
15872
  e = e.next;
15873
15873
  return e || null;
15874
15874
  }
15875
- const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 = K(Fe), B6 = K(Fe), Se = K(), pt = K(Se), _e = K(), ye = K(), H4 = K(), r1 = K(H4), c3 = K(), W = {
15875
+ const X = Q0.define, r3 = X(), Ye = X(), cs = X(Ye), hs = X(Ye), Fe = X(), a3 = X(Fe), B6 = X(Fe), Se = X(), pt = X(Se), _e = X(), ye = X(), H4 = X(), r1 = X(H4), c3 = X(), W = {
15876
15876
  /**
15877
15877
  A comment.
15878
15878
  */
@@ -15880,15 +15880,15 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
15880
15880
  /**
15881
15881
  A line [comment](#highlight.tags.comment).
15882
15882
  */
15883
- lineComment: K(r3),
15883
+ lineComment: X(r3),
15884
15884
  /**
15885
15885
  A block [comment](#highlight.tags.comment).
15886
15886
  */
15887
- blockComment: K(r3),
15887
+ blockComment: X(r3),
15888
15888
  /**
15889
15889
  A documentation [comment](#highlight.tags.comment).
15890
15890
  */
15891
- docComment: K(r3),
15891
+ docComment: X(r3),
15892
15892
  /**
15893
15893
  Any kind of identifier.
15894
15894
  */
@@ -15896,7 +15896,7 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
15896
15896
  /**
15897
15897
  The [name](#highlight.tags.name) of a variable.
15898
15898
  */
15899
- variableName: K(Ye),
15899
+ variableName: X(Ye),
15900
15900
  /**
15901
15901
  A type [name](#highlight.tags.name).
15902
15902
  */
@@ -15904,7 +15904,7 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
15904
15904
  /**
15905
15905
  A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
15906
15906
  */
15907
- tagName: K(cs),
15907
+ tagName: X(cs),
15908
15908
  /**
15909
15909
  A property or field [name](#highlight.tags.name).
15910
15910
  */
@@ -15912,23 +15912,23 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
15912
15912
  /**
15913
15913
  An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
15914
15914
  */
15915
- attributeName: K(hs),
15915
+ attributeName: X(hs),
15916
15916
  /**
15917
15917
  The [name](#highlight.tags.name) of a class.
15918
15918
  */
15919
- className: K(Ye),
15919
+ className: X(Ye),
15920
15920
  /**
15921
15921
  A label [name](#highlight.tags.name).
15922
15922
  */
15923
- labelName: K(Ye),
15923
+ labelName: X(Ye),
15924
15924
  /**
15925
15925
  A namespace [name](#highlight.tags.name).
15926
15926
  */
15927
- namespace: K(Ye),
15927
+ namespace: X(Ye),
15928
15928
  /**
15929
15929
  The [name](#highlight.tags.name) of a macro.
15930
15930
  */
15931
- macroName: K(Ye),
15931
+ macroName: X(Ye),
15932
15932
  /**
15933
15933
  A literal value.
15934
15934
  */
@@ -15940,15 +15940,15 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
15940
15940
  /**
15941
15941
  A documentation [string](#highlight.tags.string).
15942
15942
  */
15943
- docString: K(a3),
15943
+ docString: X(a3),
15944
15944
  /**
15945
15945
  A character literal (subtag of [string](#highlight.tags.string)).
15946
15946
  */
15947
- character: K(a3),
15947
+ character: X(a3),
15948
15948
  /**
15949
15949
  An attribute value (subtag of [string](#highlight.tags.string)).
15950
15950
  */
15951
- attributeValue: K(a3),
15951
+ attributeValue: X(a3),
15952
15952
  /**
15953
15953
  A number [literal](#highlight.tags.literal).
15954
15954
  */
@@ -15956,32 +15956,32 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
15956
15956
  /**
15957
15957
  An integer [number](#highlight.tags.number) literal.
15958
15958
  */
15959
- integer: K(B6),
15959
+ integer: X(B6),
15960
15960
  /**
15961
15961
  A floating-point [number](#highlight.tags.number) literal.
15962
15962
  */
15963
- float: K(B6),
15963
+ float: X(B6),
15964
15964
  /**
15965
15965
  A boolean [literal](#highlight.tags.literal).
15966
15966
  */
15967
- bool: K(Fe),
15967
+ bool: X(Fe),
15968
15968
  /**
15969
15969
  Regular expression [literal](#highlight.tags.literal).
15970
15970
  */
15971
- regexp: K(Fe),
15971
+ regexp: X(Fe),
15972
15972
  /**
15973
15973
  An escape [literal](#highlight.tags.literal), for example a
15974
15974
  backslash escape in a string.
15975
15975
  */
15976
- escape: K(Fe),
15976
+ escape: X(Fe),
15977
15977
  /**
15978
15978
  A color [literal](#highlight.tags.literal).
15979
15979
  */
15980
- color: K(Fe),
15980
+ color: X(Fe),
15981
15981
  /**
15982
15982
  A URL [literal](#highlight.tags.literal).
15983
15983
  */
15984
- url: K(Fe),
15984
+ url: X(Fe),
15985
15985
  /**
15986
15986
  A language keyword.
15987
15987
  */
@@ -15990,40 +15990,40 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
15990
15990
  The [keyword](#highlight.tags.keyword) for the self or this
15991
15991
  object.
15992
15992
  */
15993
- self: K(_e),
15993
+ self: X(_e),
15994
15994
  /**
15995
15995
  The [keyword](#highlight.tags.keyword) for null.
15996
15996
  */
15997
- null: K(_e),
15997
+ null: X(_e),
15998
15998
  /**
15999
15999
  A [keyword](#highlight.tags.keyword) denoting some atomic value.
16000
16000
  */
16001
- atom: K(_e),
16001
+ atom: X(_e),
16002
16002
  /**
16003
16003
  A [keyword](#highlight.tags.keyword) that represents a unit.
16004
16004
  */
16005
- unit: K(_e),
16005
+ unit: X(_e),
16006
16006
  /**
16007
16007
  A modifier [keyword](#highlight.tags.keyword).
16008
16008
  */
16009
- modifier: K(_e),
16009
+ modifier: X(_e),
16010
16010
  /**
16011
16011
  A [keyword](#highlight.tags.keyword) that acts as an operator.
16012
16012
  */
16013
- operatorKeyword: K(_e),
16013
+ operatorKeyword: X(_e),
16014
16014
  /**
16015
16015
  A control-flow related [keyword](#highlight.tags.keyword).
16016
16016
  */
16017
- controlKeyword: K(_e),
16017
+ controlKeyword: X(_e),
16018
16018
  /**
16019
16019
  A [keyword](#highlight.tags.keyword) that defines something.
16020
16020
  */
16021
- definitionKeyword: K(_e),
16021
+ definitionKeyword: X(_e),
16022
16022
  /**
16023
16023
  A [keyword](#highlight.tags.keyword) related to defining or
16024
16024
  interfacing with modules.
16025
16025
  */
16026
- moduleKeyword: K(_e),
16026
+ moduleKeyword: X(_e),
16027
16027
  /**
16028
16028
  An operator.
16029
16029
  */
@@ -16031,39 +16031,39 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
16031
16031
  /**
16032
16032
  An [operator](#highlight.tags.operator) that dereferences something.
16033
16033
  */
16034
- derefOperator: K(ye),
16034
+ derefOperator: X(ye),
16035
16035
  /**
16036
16036
  Arithmetic-related [operator](#highlight.tags.operator).
16037
16037
  */
16038
- arithmeticOperator: K(ye),
16038
+ arithmeticOperator: X(ye),
16039
16039
  /**
16040
16040
  Logical [operator](#highlight.tags.operator).
16041
16041
  */
16042
- logicOperator: K(ye),
16042
+ logicOperator: X(ye),
16043
16043
  /**
16044
16044
  Bit [operator](#highlight.tags.operator).
16045
16045
  */
16046
- bitwiseOperator: K(ye),
16046
+ bitwiseOperator: X(ye),
16047
16047
  /**
16048
16048
  Comparison [operator](#highlight.tags.operator).
16049
16049
  */
16050
- compareOperator: K(ye),
16050
+ compareOperator: X(ye),
16051
16051
  /**
16052
16052
  [Operator](#highlight.tags.operator) that updates its operand.
16053
16053
  */
16054
- updateOperator: K(ye),
16054
+ updateOperator: X(ye),
16055
16055
  /**
16056
16056
  [Operator](#highlight.tags.operator) that defines something.
16057
16057
  */
16058
- definitionOperator: K(ye),
16058
+ definitionOperator: X(ye),
16059
16059
  /**
16060
16060
  Type-related [operator](#highlight.tags.operator).
16061
16061
  */
16062
- typeOperator: K(ye),
16062
+ typeOperator: X(ye),
16063
16063
  /**
16064
16064
  Control-flow [operator](#highlight.tags.operator).
16065
16065
  */
16066
- controlOperator: K(ye),
16066
+ controlOperator: X(ye),
16067
16067
  /**
16068
16068
  Program or markup punctuation.
16069
16069
  */
@@ -16072,7 +16072,7 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
16072
16072
  [Punctuation](#highlight.tags.punctuation) that separates
16073
16073
  things.
16074
16074
  */
16075
- separator: K(H4),
16075
+ separator: X(H4),
16076
16076
  /**
16077
16077
  Bracket-style [punctuation](#highlight.tags.punctuation).
16078
16078
  */
@@ -16081,22 +16081,22 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
16081
16081
  Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
16082
16082
  tokens).
16083
16083
  */
16084
- angleBracket: K(r1),
16084
+ angleBracket: X(r1),
16085
16085
  /**
16086
16086
  Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
16087
16087
  tokens).
16088
16088
  */
16089
- squareBracket: K(r1),
16089
+ squareBracket: X(r1),
16090
16090
  /**
16091
16091
  Parentheses (usually `(` and `)` tokens). Subtag of
16092
16092
  [bracket](#highlight.tags.bracket).
16093
16093
  */
16094
- paren: K(r1),
16094
+ paren: X(r1),
16095
16095
  /**
16096
16096
  Braces (usually `{` and `}` tokens). Subtag of
16097
16097
  [bracket](#highlight.tags.bracket).
16098
16098
  */
16099
- brace: K(r1),
16099
+ brace: X(r1),
16100
16100
  /**
16101
16101
  Content, for example plain text in XML or markup documents.
16102
16102
  */
@@ -16108,77 +16108,77 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
16108
16108
  /**
16109
16109
  A level 1 [heading](#highlight.tags.heading).
16110
16110
  */
16111
- heading1: K(pt),
16111
+ heading1: X(pt),
16112
16112
  /**
16113
16113
  A level 2 [heading](#highlight.tags.heading).
16114
16114
  */
16115
- heading2: K(pt),
16115
+ heading2: X(pt),
16116
16116
  /**
16117
16117
  A level 3 [heading](#highlight.tags.heading).
16118
16118
  */
16119
- heading3: K(pt),
16119
+ heading3: X(pt),
16120
16120
  /**
16121
16121
  A level 4 [heading](#highlight.tags.heading).
16122
16122
  */
16123
- heading4: K(pt),
16123
+ heading4: X(pt),
16124
16124
  /**
16125
16125
  A level 5 [heading](#highlight.tags.heading).
16126
16126
  */
16127
- heading5: K(pt),
16127
+ heading5: X(pt),
16128
16128
  /**
16129
16129
  A level 6 [heading](#highlight.tags.heading).
16130
16130
  */
16131
- heading6: K(pt),
16131
+ heading6: X(pt),
16132
16132
  /**
16133
16133
  A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
16134
16134
  */
16135
- contentSeparator: K(Se),
16135
+ contentSeparator: X(Se),
16136
16136
  /**
16137
16137
  [Content](#highlight.tags.content) that represents a list.
16138
16138
  */
16139
- list: K(Se),
16139
+ list: X(Se),
16140
16140
  /**
16141
16141
  [Content](#highlight.tags.content) that represents a quote.
16142
16142
  */
16143
- quote: K(Se),
16143
+ quote: X(Se),
16144
16144
  /**
16145
16145
  [Content](#highlight.tags.content) that is emphasized.
16146
16146
  */
16147
- emphasis: K(Se),
16147
+ emphasis: X(Se),
16148
16148
  /**
16149
16149
  [Content](#highlight.tags.content) that is styled strong.
16150
16150
  */
16151
- strong: K(Se),
16151
+ strong: X(Se),
16152
16152
  /**
16153
16153
  [Content](#highlight.tags.content) that is part of a link.
16154
16154
  */
16155
- link: K(Se),
16155
+ link: X(Se),
16156
16156
  /**
16157
16157
  [Content](#highlight.tags.content) that is styled as code or
16158
16158
  monospace.
16159
16159
  */
16160
- monospace: K(Se),
16160
+ monospace: X(Se),
16161
16161
  /**
16162
16162
  [Content](#highlight.tags.content) that has a strike-through
16163
16163
  style.
16164
16164
  */
16165
- strikethrough: K(Se),
16165
+ strikethrough: X(Se),
16166
16166
  /**
16167
16167
  Inserted text in a change-tracking format.
16168
16168
  */
16169
- inserted: K(),
16169
+ inserted: X(),
16170
16170
  /**
16171
16171
  Deleted text.
16172
16172
  */
16173
- deleted: K(),
16173
+ deleted: X(),
16174
16174
  /**
16175
16175
  Changed text.
16176
16176
  */
16177
- changed: K(),
16177
+ changed: X(),
16178
16178
  /**
16179
16179
  An invalid or unsyntactic element.
16180
16180
  */
16181
- invalid: K(),
16181
+ invalid: X(),
16182
16182
  /**
16183
16183
  Metadata or meta-instruction.
16184
16184
  */
@@ -16187,17 +16187,17 @@ const K = Q0.define, r3 = K(), Ye = K(), cs = K(Ye), hs = K(Ye), Fe = K(), a3 =
16187
16187
  [Metadata](#highlight.tags.meta) that applies to the entire
16188
16188
  document.
16189
16189
  */
16190
- documentMeta: K(c3),
16190
+ documentMeta: X(c3),
16191
16191
  /**
16192
16192
  [Metadata](#highlight.tags.meta) that annotates or adds
16193
16193
  attributes to a given syntactic element.
16194
16194
  */
16195
- annotation: K(c3),
16195
+ annotation: X(c3),
16196
16196
  /**
16197
16197
  Processing instruction or preprocessor directive. Subtag of
16198
16198
  [meta](#highlight.tags.meta).
16199
16199
  */
16200
- processingInstruction: K(c3),
16200
+ processingInstruction: X(c3),
16201
16201
  /**
16202
16202
  [Modifier](#highlight.Tag^defineModifier) that indicates that a
16203
16203
  given element is being defined. Expected to be used with the
@@ -16982,13 +16982,13 @@ function Qo(n) {
16982
16982
  }
16983
16983
  const Dt = /* @__PURE__ */ _0.define({
16984
16984
  create() {
16985
- return v2.none;
16985
+ return g2.none;
16986
16986
  },
16987
16987
  update(n, e) {
16988
16988
  e.isUserEvent("delete") && e.changes.iterChangedRanges((t, i) => n = fs(n, t, i)), n = n.map(e.changes);
16989
16989
  for (let t of e.effects)
16990
16990
  if (t.is(u6) && !lb(n, t.value.from, t.value.to)) {
16991
- let { preparePlaceholder: i } = e.state.facet(el), s = i ? v2.replace({ widget: new fb(i(e.state, t.value)) }) : ps;
16991
+ let { preparePlaceholder: i } = e.state.facet(el), s = i ? g2.replace({ widget: new fb(i(e.state, t.value)) }) : ps;
16992
16992
  n = n.update({ add: [s.range(t.value.from, t.value.to)] });
16993
16993
  } else t.is(j1) && (n = n.update({
16994
16994
  filter: (i, s) => t.value.from != i || t.value.to != s,
@@ -17014,7 +17014,7 @@ const Dt = /* @__PURE__ */ _0.define({
17014
17014
  throw new RangeError("Invalid JSON for fold state");
17015
17015
  e.push(ps.range(i, s));
17016
17016
  }
17017
- return v2.set(e, !0);
17017
+ return g2.set(e, !0);
17018
17018
  }
17019
17019
  });
17020
17020
  function fs(n, e, t = e) {
@@ -17106,7 +17106,7 @@ function il(n, e) {
17106
17106
  let o = document.createElement("span");
17107
17107
  return o.textContent = i.placeholderText, o.setAttribute("aria-label", t.phrase("folded code")), o.title = t.phrase("unfold"), o.className = "cm-foldPlaceholder", o.onclick = s, o;
17108
17108
  }
17109
- const ps = /* @__PURE__ */ v2.replace({ widget: /* @__PURE__ */ new class extends at {
17109
+ const ps = /* @__PURE__ */ g2.replace({ widget: /* @__PURE__ */ new class extends at {
17110
17110
  toDOM(n) {
17111
17111
  return il(n, null);
17112
17112
  }
@@ -17166,7 +17166,7 @@ function gb(n = {}) {
17166
17166
  class: "cm-foldGutter",
17167
17167
  markers(l) {
17168
17168
  var r;
17169
- return ((r = l.plugin(s)) === null || r === void 0 ? void 0 : r.markers) || z2.empty;
17169
+ return ((r = l.plugin(s)) === null || r === void 0 ? void 0 : r.markers) || P2.empty;
17170
17170
  },
17171
17171
  initialSpacer() {
17172
17172
  return new G6(e, !1);
@@ -17260,11 +17260,11 @@ class wb {
17260
17260
  }
17261
17261
  buildDeco(e, t) {
17262
17262
  if (!t || !this.tree.length)
17263
- return v2.none;
17263
+ return g2.none;
17264
17264
  let i = new Ne();
17265
17265
  for (let { from: s, to: o } of e.visibleRanges)
17266
17266
  Rx(this.tree, t, (l, r, a) => {
17267
- i.add(l, r, this.markCache[a] || (this.markCache[a] = v2.mark({ class: a })));
17267
+ i.add(l, r, this.markCache[a] || (this.markCache[a] = g2.mark({ class: a })));
17268
17268
  }, s, o);
17269
17269
  return i.finish();
17270
17270
  }
@@ -17361,14 +17361,14 @@ const xb = /* @__PURE__ */ Ot.high(/* @__PURE__ */ r0.fromClass(wb, {
17361
17361
  renderMatch: Cb
17362
17362
  });
17363
17363
  }
17364
- }), yb = /* @__PURE__ */ v2.mark({ class: "cm-matchingBracket" }), Sb = /* @__PURE__ */ v2.mark({ class: "cm-nonmatchingBracket" });
17364
+ }), yb = /* @__PURE__ */ g2.mark({ class: "cm-matchingBracket" }), Sb = /* @__PURE__ */ g2.mark({ class: "cm-nonmatchingBracket" });
17365
17365
  function Cb(n) {
17366
17366
  let e = [], t = n.matched ? yb : Sb;
17367
17367
  return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
17368
17368
  }
17369
17369
  const kb = /* @__PURE__ */ _0.define({
17370
17370
  create() {
17371
- return v2.none;
17371
+ return g2.none;
17372
17372
  },
17373
17373
  update(n, e) {
17374
17374
  if (!e.docChanged && !e.selection)
@@ -17380,7 +17380,7 @@ const kb = /* @__PURE__ */ _0.define({
17380
17380
  let o = Me(e.state, s.head, -1, i) || s.head > 0 && Me(e.state, s.head - 1, 1, i) || i.afterCursor && (Me(e.state, s.head, 1, i) || s.head < e.state.doc.length && Me(e.state, s.head + 1, -1, i));
17381
17381
  o && (t = t.concat(i.renderMatch(o, e.state)));
17382
17382
  }
17383
- return v2.set(t, !0);
17383
+ return g2.set(t, !0);
17384
17384
  },
17385
17385
  provide: (n) => Z.decorations.from(n)
17386
17386
  }), Db = [
@@ -18035,7 +18035,7 @@ const Pl = (n, e, t) => W1(n, (i) => {
18035
18035
  if (n.readOnly)
18036
18036
  return !1;
18037
18037
  let t = n.changeByRange((i) => ({
18038
- changes: { from: i.from, to: i.to, insert: P2.of(["", ""]) },
18038
+ changes: { from: i.from, to: i.to, insert: V2.of(["", ""]) },
18039
18039
  range: B.cursor(i.from)
18040
18040
  }));
18041
18041
  return e(n.update(t, { scrollIntoView: !0, userEvent: "input" })), !0;
@@ -18133,7 +18133,7 @@ function Hl(n) {
18133
18133
  a ? { from: o, to: l } = a : o > r.from && o < r.from + 100 && !/\S/.test(r.text.slice(0, o)) && (o = r.from);
18134
18134
  let d = ["", V1(e, c)];
18135
18135
  return a && d.push(V1(e, h.lineIndent(r.from, -1))), {
18136
- changes: { from: o, to: l, insert: P2.of(d) },
18136
+ changes: { from: o, to: l, insert: V2.of(d) },
18137
18137
  range: B.cursor(o + 1 + d[1].length)
18138
18138
  };
18139
18139
  });
@@ -18499,7 +18499,7 @@ const b1 = /* @__PURE__ */ y2.define(), Os = /* @__PURE__ */ _0.define({
18499
18499
  function X_(n) {
18500
18500
  return [ty, ey];
18501
18501
  }
18502
- const Q_ = /* @__PURE__ */ v2.mark({ class: "cm-selectionMatch" }), J_ = /* @__PURE__ */ v2.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
18502
+ const Q_ = /* @__PURE__ */ g2.mark({ class: "cm-selectionMatch" }), J_ = /* @__PURE__ */ g2.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
18503
18503
  function Ms(n, e, t, i) {
18504
18504
  return (t == 0 || n(e.sliceDoc(t - 1, t)) != K2.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != K2.Word);
18505
18505
  }
@@ -18516,24 +18516,24 @@ const ey = /* @__PURE__ */ r0.fromClass(class {
18516
18516
  getDeco(n) {
18517
18517
  let e = n.state.facet(K_), { state: t } = n, i = t.selection;
18518
18518
  if (i.ranges.length > 1)
18519
- return v2.none;
18519
+ return g2.none;
18520
18520
  let s = i.main, o, l = null;
18521
18521
  if (s.empty) {
18522
18522
  if (!e.highlightWordAroundCursor)
18523
- return v2.none;
18523
+ return g2.none;
18524
18524
  let a = t.wordAt(s.head);
18525
18525
  if (!a)
18526
- return v2.none;
18526
+ return g2.none;
18527
18527
  l = t.charCategorizer(s.head), o = t.sliceDoc(a.from, a.to);
18528
18528
  } else {
18529
18529
  let a = s.to - s.from;
18530
18530
  if (a < e.minSelectionLength || a > 200)
18531
- return v2.none;
18531
+ return g2.none;
18532
18532
  if (e.wholeWords) {
18533
18533
  if (o = t.sliceDoc(s.from, s.to), l = t.charCategorizer(s.head), !(Ms(l, t, s.from, s.to) && Z_(l, t, s.from, s.to)))
18534
- return v2.none;
18534
+ return g2.none;
18535
18535
  } else if (o = t.sliceDoc(s.from, s.to), !o)
18536
- return v2.none;
18536
+ return g2.none;
18537
18537
  }
18538
18538
  let r = [];
18539
18539
  for (let a of n.visibleRanges) {
@@ -18541,10 +18541,10 @@ const ey = /* @__PURE__ */ r0.fromClass(class {
18541
18541
  for (; !h.next().done; ) {
18542
18542
  let { from: c, to: d } = h.value;
18543
18543
  if ((!l || Ms(l, t, c, d)) && (s.empty && c <= s.from && d >= s.to ? r.push(J_.range(c, d)) : (c >= s.to || d <= s.from) && r.push(Q_.range(c, d)), r.length > e.maxMatches))
18544
- return v2.none;
18544
+ return g2.none;
18545
18545
  }
18546
18546
  }
18547
- return v2.set(r);
18547
+ return g2.set(r);
18548
18548
  }
18549
18549
  }, {
18550
18550
  decorations: (n) => n.decorations
@@ -18779,7 +18779,7 @@ class W6 {
18779
18779
  this.query = e, this.panel = t;
18780
18780
  }
18781
18781
  }
18782
- const cy = /* @__PURE__ */ v2.mark({ class: "cm-searchMatch" }), hy = /* @__PURE__ */ v2.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), dy = /* @__PURE__ */ r0.fromClass(class {
18782
+ const cy = /* @__PURE__ */ g2.mark({ class: "cm-searchMatch" }), hy = /* @__PURE__ */ g2.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), dy = /* @__PURE__ */ r0.fromClass(class {
18783
18783
  constructor(n) {
18784
18784
  this.view = n, this.decorations = this.highlight(n.state.field(tt));
18785
18785
  }
@@ -18789,7 +18789,7 @@ const cy = /* @__PURE__ */ v2.mark({ class: "cm-searchMatch" }), hy = /* @__PURE
18789
18789
  }
18790
18790
  highlight({ query: n, panel: e }) {
18791
18791
  if (!e || !n.spec.valid)
18792
- return v2.none;
18792
+ return g2.none;
18793
18793
  let { view: t } = this, i = new Ne();
18794
18794
  for (let s = 0, o = t.visibleRanges, l = o.length; s < l; s++) {
18795
18795
  let { from: r, to: a } = o[s];
@@ -20045,7 +20045,7 @@ Ei.startSide = 1;
20045
20045
  Ei.endSide = -1;
20046
20046
  const Jl = /* @__PURE__ */ _0.define({
20047
20047
  create() {
20048
- return z2.empty;
20048
+ return P2.empty;
20049
20049
  },
20050
20050
  update(n, e) {
20051
20051
  if (n = n.map(e.changes), e.selection) {
@@ -20280,13 +20280,13 @@ class vt {
20280
20280
  }
20281
20281
  let p = mS(r);
20282
20282
  if (r.some((g) => g.from == g.to || g.from == g.to - 1 && i.doc.lineAt(g.from).to == g.from))
20283
- l.add(u, u, v2.widget({
20283
+ l.add(u, u, g2.widget({
20284
20284
  widget: new fS(p),
20285
20285
  diagnostics: r.slice()
20286
20286
  }));
20287
20287
  else {
20288
20288
  let g = r.reduce((m, v) => v.markClass ? m + " " + v.markClass : m, "");
20289
- l.add(u, f, v2.mark({
20289
+ l.add(u, f, g2.mark({
20290
20290
  class: "cm-lintRange cm-lintRange-" + p + g,
20291
20291
  diagnostics: r.slice(),
20292
20292
  inclusiveEnd: r.some((m) => m.to > f)
@@ -20325,7 +20325,7 @@ function lS(n, e) {
20325
20325
  }
20326
20326
  const n9 = /* @__PURE__ */ y2.define(), Bi = /* @__PURE__ */ y2.define(), s9 = /* @__PURE__ */ y2.define(), K0 = /* @__PURE__ */ _0.define({
20327
20327
  create() {
20328
- return new vt(v2.none, null, null);
20328
+ return new vt(g2.none, null, null);
20329
20329
  },
20330
20330
  update(n, e) {
20331
20331
  if (e.docChanged && n.diagnostics.size) {
@@ -20347,7 +20347,7 @@ const n9 = /* @__PURE__ */ y2.define(), Bi = /* @__PURE__ */ y2.define(), s9 = /
20347
20347
  z1.from(n, (e) => e.panel),
20348
20348
  Z.decorations.from(n, (e) => e.diagnostics)
20349
20349
  ]
20350
- }), rS = /* @__PURE__ */ v2.mark({ class: "cm-lintRange cm-lintRange-active" });
20350
+ }), rS = /* @__PURE__ */ g2.mark({ class: "cm-lintRange cm-lintRange-active" });
20351
20351
  function aS(n, e, t) {
20352
20352
  let { diagnostics: i } = n.state.field(K0), s, o = -1, l = -1;
20353
20353
  i.between(e - (t < 0 ? 1 : 0), e + (t > 0 ? 1 : 0), (a, h, { spec: c }) => {
@@ -20677,7 +20677,7 @@ const wS = [
20677
20677
  K0,
20678
20678
  /* @__PURE__ */ Z.decorations.compute([K0], (n) => {
20679
20679
  let { selected: e, panel: t } = n.field(K0);
20680
- return !e || !t || e.from == e.to ? v2.none : v2.set([
20680
+ return !e || !t || e.from == e.to ? g2.none : g2.set([
20681
20681
  rS.range(e.from, e.to)
20682
20682
  ]);
20683
20683
  }),
@@ -22330,7 +22330,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22330
22330
  return (s, o) => {
22331
22331
  const l = J("el-image");
22332
22332
  return x(), z("div", iC, [
22333
- i2(l, {
22333
+ t2(l, {
22334
22334
  class: "render-img",
22335
22335
  src: t.value,
22336
22336
  "zoom-rate": 1.2,
@@ -22460,7 +22460,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22460
22460
  t("destroy");
22461
22461
  }), (V, Y) => (x(), z("div", uC, [
22462
22462
  a.value ? (x(), z("div", fC, [
22463
- i2(Ji, {
22463
+ t2(Ji, {
22464
22464
  files: l.value,
22465
22465
  "three-data": {
22466
22466
  data: {
@@ -22475,7 +22475,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22475
22475
  }, null, 8, ["files", "three-data"])
22476
22476
  ])) : Q("", !0),
22477
22477
  S.value ? (x(), z("div", pC, [
22478
- i2(pv, {
22478
+ t2(pv, {
22479
22479
  fileName: o.value,
22480
22480
  blobUrl: s.value
22481
22481
  }, null, 8, ["fileName", "blobUrl"])
@@ -22487,42 +22487,42 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22487
22487
  }, null, 8, ["files"]))
22488
22488
  ])) : Q("", !0),
22489
22489
  D.value ? (x(), z("div", vC, [
22490
- i2(mv, {
22490
+ t2(mv, {
22491
22491
  fileName: o.value,
22492
22492
  blobUrl: s.value
22493
22493
  }, null, 8, ["fileName", "blobUrl"])
22494
22494
  ])) : Q("", !0),
22495
22495
  M.value ? (x(), z("div", mC, [
22496
- i2(_v, {
22496
+ t2(_v, {
22497
22497
  fileName: o.value,
22498
22498
  blobUrl: s.value
22499
22499
  }, null, 8, ["fileName", "blobUrl"])
22500
22500
  ])) : Q("", !0),
22501
22501
  O.value ? (x(), z("div", wC, [
22502
- i2(Ov, {
22502
+ t2(Ov, {
22503
22503
  fileName: o.value,
22504
22504
  blobUrl: s.value
22505
22505
  }, null, 8, ["fileName", "blobUrl"])
22506
22506
  ])) : Q("", !0),
22507
22507
  _.value ? (x(), z("div", xC, [
22508
- i2(sC, {
22508
+ t2(sC, {
22509
22509
  fileName: o.value,
22510
22510
  blobUrl: s.value
22511
22511
  }, null, 8, ["fileName", "blobUrl"])
22512
22512
  ])) : Q("", !0),
22513
22513
  k.value ? (x(), z("div", bC, [
22514
- i2(rC, {
22514
+ t2(rC, {
22515
22515
  fileName: o.value,
22516
22516
  blobUrl: s.value
22517
22517
  }, null, 8, ["fileName", "blobUrl"])
22518
22518
  ])) : Q("", !0),
22519
22519
  G.value ? (x(), z("div", _C, [
22520
- i2(dC, {
22520
+ t2(dC, {
22521
22521
  fileName: o.value,
22522
22522
  blobUrl: s.value
22523
22523
  }, null, 8, ["fileName", "blobUrl"])
22524
22524
  ])) : !S.value && !D.value && !O.value && !m.value && !_.value && !k.value && !p.value && !G.value && !a.value && !M.value ? (x(), z("div", yC, [
22525
- i2(tC, {
22525
+ t2(tC, {
22526
22526
  fileName: o.value,
22527
22527
  blobUrl: s.value
22528
22528
  }, null, 8, ["fileName", "blobUrl"])
@@ -22584,7 +22584,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22584
22584
  ], 2))), 128))
22585
22585
  ])) : Q("", !0),
22586
22586
  a2("div", MC, [
22587
- i2(h9, {
22587
+ t2(h9, {
22588
22588
  class: "right-item",
22589
22589
  fileName: r.value,
22590
22590
  blobUrl: a.value,
@@ -22644,21 +22644,21 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22644
22644
  title: a.value
22645
22645
  }, E2(a.value), 9, PC),
22646
22646
  a2("div", VC, [
22647
- i2(m, null, {
22647
+ t2(m, null, {
22648
22648
  default: H(() => [
22649
- i2(Y0(L9), { onClick: h })
22649
+ t2(Y0(L9), { onClick: h })
22650
22650
  ]),
22651
22651
  _: 1
22652
22652
  }),
22653
- i2(m, null, {
22653
+ t2(m, null, {
22654
22654
  default: H(() => [
22655
- i2(Y0(H9), { onClick: d })
22655
+ t2(Y0(H9), { onClick: d })
22656
22656
  ]),
22657
22657
  _: 1
22658
22658
  }),
22659
- i2(m, null, {
22659
+ t2(m, null, {
22660
22660
  default: H(() => [
22661
- i2(Y0(G9), { onClick: u })
22661
+ t2(Y0(G9), { onClick: u })
22662
22662
  ]),
22663
22663
  _: 1
22664
22664
  })
@@ -22808,7 +22808,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22808
22808
  return (_, k) => {
22809
22809
  const G = J("svg-icon"), E = J("el-icon"), V = J("el-upload"), Y = y9("loading");
22810
22810
  return t != null && t.isEdit && !(t != null && t.disabled) ? (x(), z("div", BC, [
22811
- i2(q0, {
22811
+ t2(q0, {
22812
22812
  type: "primary",
22813
22813
  onClickTrigger: f,
22814
22814
  class: "upload-button",
@@ -22827,24 +22827,24 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22827
22827
  title: P == null ? void 0 : P.name
22828
22828
  }, E2((L = (f2 = P == null ? void 0 : P.url) == null ? void 0 : f2.split(".")) != null && L[1] ? (P == null ? void 0 : P.name) + "." + ((S2 = (U = P == null ? void 0 : P.url) == null ? void 0 : U.split(".")) == null ? void 0 : S2[((c2 = (l2 = P == null ? void 0 : P.url) == null ? void 0 : l2.split(".")) == null ? void 0 : c2.length) - 1]) : P == null ? void 0 : P.name), 9, HC),
22829
22829
  a2("div", GC, [
22830
- i2(G, {
22830
+ t2(G, {
22831
22831
  class: "icon-blue",
22832
22832
  name: "EyeFill",
22833
22833
  style: { width: "20px", height: "20px", cursor: "pointer" },
22834
- onClick: (m2) => g(P)
22834
+ onClick: (v2) => g(P)
22835
22835
  }, null, 8, ["onClick"])
22836
22836
  ])
22837
22837
  ]);
22838
22838
  }), 128))
22839
22839
  ]),
22840
- i2(ei, {
22840
+ t2(ei, {
22841
22841
  visible: h.value,
22842
22842
  onBeforeDestroy: D,
22843
22843
  title: "上传文件"
22844
22844
  }, {
22845
22845
  default: H(() => [
22846
22846
  v3((x(), z("div", null, [
22847
- i2(V, {
22847
+ t2(V, {
22848
22848
  "file-list": u.value,
22849
22849
  "onUpdate:fileList": k[0] || (k[0] = (P) => u.value = P),
22850
22850
  multiple: "",
@@ -22859,9 +22859,9 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22859
22859
  a2("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
22860
22860
  ])),
22861
22861
  default: H(() => [
22862
- i2(E, { class: "el-icon--upload" }, {
22862
+ t2(E, { class: "el-icon--upload" }, {
22863
22863
  default: H(() => [
22864
- i2(Y0(R9))
22864
+ t2(Y0(R9))
22865
22865
  ]),
22866
22866
  _: 1
22867
22867
  }),
@@ -22876,13 +22876,13 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22876
22876
  a2("div", RC, [
22877
22877
  a2("div", NC, E2((U = (L = P == null ? void 0 : P.url) == null ? void 0 : L.split(".")) != null && U[1] ? (P == null ? void 0 : P.name) + "." + ((c2 = (l2 = P == null ? void 0 : P.url) == null ? void 0 : l2.split(".")) == null ? void 0 : c2[1]) : P == null ? void 0 : P.name), 1),
22878
22878
  a2("div", $C, [
22879
- i2(G, {
22879
+ t2(G, {
22880
22880
  class: "icon-blue",
22881
22881
  name: "EyeFill",
22882
22882
  style: { width: "20px", height: "20px", cursor: "pointer" },
22883
22883
  onClick: (S2) => g(P)
22884
22884
  }, null, 8, ["onClick"]),
22885
- i2(G, {
22885
+ t2(G, {
22886
22886
  class: "icon-blue",
22887
22887
  name: "Cancel",
22888
22888
  style: { width: "20px", height: "20px", cursor: "pointer" },
@@ -22900,13 +22900,13 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22900
22900
  ]),
22901
22901
  footer: H(() => [
22902
22902
  a2("div", jC, [
22903
- i2(q0, {
22903
+ t2(q0, {
22904
22904
  onClickTrigger: D,
22905
22905
  id: "themeBorderButton",
22906
22906
  disabled: s.value,
22907
22907
  modelValue: "取消"
22908
22908
  }, null, 8, ["disabled"]),
22909
- i2(q0, {
22909
+ t2(q0, {
22910
22910
  type: "primary",
22911
22911
  onClickTrigger: M,
22912
22912
  id: "themeButton",
@@ -22978,9 +22978,9 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
22978
22978
  "on-remove": r
22979
22979
  }, {
22980
22980
  default: H(() => [
22981
- i2(d, null, {
22981
+ t2(d, null, {
22982
22982
  default: H(() => [
22983
- i2(Y0(Q6))
22983
+ t2(Y0(Q6))
22984
22984
  ]),
22985
22985
  _: 1
22986
22986
  })
@@ -23587,7 +23587,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
23587
23587
  D2(h.$slots, "signatureTypes", {}, void 0, !0)
23588
23588
  ])
23589
23589
  ]),
23590
- i2(ei, {
23590
+ t2(ei, {
23591
23591
  class: "signature-dialog",
23592
23592
  title: (p = n.signPadInfo) == null ? void 0 : p.dialogTitle,
23593
23593
  dialogWidth: `${((g = n.signPadInfo) == null ? void 0 : g.dialogWidth) ?? 30}%`,
@@ -23596,7 +23596,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
23596
23596
  }, {
23597
23597
  default: H(() => [
23598
23598
  a2("div", ik, [
23599
- i2(Y0(ZC), {
23599
+ t2(Y0(ZC), {
23600
23600
  ref_key: "signaturePadRef",
23601
23601
  ref: i,
23602
23602
  options: s.signOptions
@@ -23605,7 +23605,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
23605
23605
  a2("div", nk, [
23606
23606
  a2("div", null, [
23607
23607
  c[2] || (c[2] = a2("span", null, "画笔粗细:", -1)),
23608
- i2(d, {
23608
+ t2(d, {
23609
23609
  modelValue: s.signOptions.minWidth,
23610
23610
  "onUpdate:modelValue": c[0] || (c[0] = (v) => s.signOptions.minWidth = v),
23611
23611
  min: 0.5,
@@ -23616,7 +23616,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
23616
23616
  ]),
23617
23617
  a2("div", null, [
23618
23618
  c[3] || (c[3] = a2("span", null, "画笔颜色:", -1)),
23619
- i2(u, {
23619
+ t2(u, {
23620
23620
  modelValue: s.signOptions.penColor,
23621
23621
  "onUpdate:modelValue": c[1] || (c[1] = (v) => s.signOptions.penColor = v),
23622
23622
  "color-format": "hex",
@@ -23626,14 +23626,14 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
23626
23626
  ])
23627
23627
  ]),
23628
23628
  footer: H(() => [
23629
- i2(f, { onClick: l }, {
23629
+ t2(f, { onClick: l }, {
23630
23630
  default: H(() => c[4] || (c[4] = [
23631
23631
  T0("取消")
23632
23632
  ])),
23633
23633
  _: 1,
23634
23634
  __: [4]
23635
23635
  }),
23636
- i2(f, {
23636
+ t2(f, {
23637
23637
  type: "primary",
23638
23638
  onClick: r
23639
23639
  }, {
@@ -23660,7 +23660,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
23660
23660
  const o = J("el-dropdown-menu"), l = J("el-dropdown");
23661
23661
  return x(), q(l, { onVisibleChange: t }, {
23662
23662
  dropdown: H(() => [
23663
- i2(o, null, {
23663
+ t2(o, null, {
23664
23664
  default: H(() => [
23665
23665
  D2(i.$slots, "dropMenu")
23666
23666
  ]),
@@ -24036,7 +24036,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
24036
24036
  return (i, s) => {
24037
24037
  const o = J("el-carousel-item"), l = J("el-carousel");
24038
24038
  return x(), z("div", null, [
24039
- i2(l, { trigger: "click" }, {
24039
+ t2(l, { trigger: "click" }, {
24040
24040
  default: H(() => [
24041
24041
  (x(!0), z(k2, null, M2(t.value, (r, a) => (x(), q(o, { key: a }, {
24042
24042
  default: H(() => [