ss-component-new 1.3.253 → 1.3.255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/{MTLLoader-DhkbjDn5.cjs → MTLLoader-BbkyASan.cjs} +1 -1
  2. package/dist/{MTLLoader-kSybMwCv.js → MTLLoader-CxB65QQq.js} +1 -1
  3. package/dist/{OrbitControls-XEy6yLM5.cjs → OrbitControls-Bfvb5pv-.cjs} +1 -1
  4. package/dist/{OrbitControls-DWkGT_jN.js → OrbitControls-CgDI9Dzj.js} +1 -1
  5. package/dist/{URDFLoader-DWfsFwAW.js → URDFLoader-B18rFuGQ.js} +2 -2
  6. package/dist/{URDFLoader-DhIlh9SZ.cjs → URDFLoader-BqTfjAvX.cjs} +1 -1
  7. package/dist/{animationData-EX8ALJ90.js → animationData-BeC7Ksan.js} +3 -3
  8. package/dist/{animationData-CNTkCldk.cjs → animationData-gmN8vwXr.cjs} +1 -1
  9. package/dist/{array-DK9t-RZ5.cjs → array-B3bl5bn0.cjs} +1 -1
  10. package/dist/{array-BDy1Ncle.js → array-B_7zpz6-.js} +49 -49
  11. package/dist/{iconfont-D-Fv-qGO.js → iconfont-BDyitR5V.js} +2 -2
  12. package/dist/{iconfont-DxOyAp3D.cjs → iconfont-BFTB_6By.cjs} +1 -1
  13. package/dist/{index-2M-IP1bA.cjs → index-2gZmwL3z.cjs} +1 -1
  14. package/dist/{index-COYH6Dsm.js → index-B-jXswxK.js} +6 -6
  15. package/dist/{index-DGVfotFX.cjs → index-B6zxXi7b.cjs} +1 -1
  16. package/dist/{index-DcmpIuyR.cjs → index-B74OQdfz.cjs} +1 -1
  17. package/dist/{index-Dt2q9_xX.cjs → index-B91fpH7E.cjs} +1 -1
  18. package/dist/{index-Coq7X7y8.cjs → index-BApaBsV6.cjs} +1 -1
  19. package/dist/index-BH1QeTrv.cjs +1 -0
  20. package/dist/{index-kylznSf-.js → index-BH9-Hsyp.js} +2 -2
  21. package/dist/{index-CpxOzwA-.cjs → index-BJH237uR.cjs} +1 -1
  22. package/dist/{index-C1Dc_mjt.cjs → index-BLvDoVkw.cjs} +1 -1
  23. package/dist/{index-BeRCQCdi.js → index-BRMBKwzE.js} +3 -3
  24. package/dist/{index-3sGayDdt.cjs → index-BRlrWa15.cjs} +1 -1
  25. package/dist/{index-DdFWw0IN.js → index-BXhJyiwp.js} +8 -8
  26. package/dist/{index-C8p1jD8G.cjs → index-Bnmzd5N2.cjs} +1 -1
  27. package/dist/{index-DBb0okvF.js → index-ByM9ae-R.js} +4 -4
  28. package/dist/{index-BYEED-kW.js → index-Bzl8VR0c.js} +1 -1
  29. package/dist/{index-BM2WGfYi.js → index-C39FYBsm.js} +1 -1
  30. package/dist/{index-LncjUMsU.cjs → index-C3JTaW7V.cjs} +1 -1
  31. package/dist/{index-D2Njli4E.js → index-C3m4WIgZ.js} +2 -2
  32. package/dist/index-C5C5PAT9.cjs +25 -0
  33. package/dist/{index-nwtQ-O1L.js → index-C6CIqdD6.js} +1 -1
  34. package/dist/{index-DnvhrR1b.js → index-C7-7DQ8H.js} +2 -2
  35. package/dist/{index-DcyVuH_R.js → index-CJzLKi9Z.js} +487 -500
  36. package/dist/{index-CSj2fJ4e.cjs → index-CVHrgtSc.cjs} +1 -1
  37. package/dist/{index-DcCZWQJ_.cjs → index-CaSVfO-G.cjs} +1 -1
  38. package/dist/{index-Be8WkE9-.cjs → index-CdCCxGXJ.cjs} +1 -1
  39. package/dist/{index-BDZtQ4N8.cjs → index-Cie1OJYf.cjs} +1 -1
  40. package/dist/{index-DGYepoGt.cjs → index-CnC7rI16.cjs} +1 -1
  41. package/dist/{index-BJGOMZS3.js → index-CnsAVNcF.js} +8 -8
  42. package/dist/{index-GUB8vyLB.cjs → index-CpHrJbzU.cjs} +12 -12
  43. package/dist/{index-BnVCc6o9.js → index-CymLx2yV.js} +2 -2
  44. package/dist/{index-CmTRhztd.cjs → index-CzFGWnnh.cjs} +1 -1
  45. package/dist/{index-89JD0Pir.cjs → index-D2E3Xa62.cjs} +1 -1
  46. package/dist/{index-CrIGzoIr.js → index-D5xR-9jl.js} +1 -1
  47. package/dist/{index-CMPrUwf8.js → index-D653Ji8G.js} +5 -5
  48. package/dist/{index-DMMoAxR-.js → index-D6tHtGNW.js} +3 -3
  49. package/dist/{index-Cj1LFMSA.cjs → index-D9pE21Gn.cjs} +1 -1
  50. package/dist/{index-C5bjM7FA.cjs → index-DBANew_v.cjs} +1 -1
  51. package/dist/{index-CLvFKdVq.js → index-DEUR6Zpv.js} +2081 -2169
  52. package/dist/{index-le2Rca0l.cjs → index-DGmrINxj.cjs} +1 -1
  53. package/dist/{index-2lGKiZFJ.js → index-DHXgFlyQ.js} +1 -1
  54. package/dist/{index-DW_nJVg2.cjs → index-DI5_eNwC.cjs} +1 -1
  55. package/dist/{index-BEapybFg.js → index-DJ_OL_C0.js} +46 -46
  56. package/dist/{index-CyQpi2tP.js → index-DTr9CURw.js} +4786 -4262
  57. package/dist/{index-CIMZWqaV.cjs → index-D_8L21gF.cjs} +1 -1
  58. package/dist/{index-D4fO0WEV.js → index-DgUG27vK.js} +1 -1
  59. package/dist/{index-OFkIV22_.js → index-DjdKTqAw.js} +8 -8
  60. package/dist/{index-CpVaoLky.js → index-JXxkyOQY.js} +3965 -3935
  61. package/dist/{index-xqHfzzQD.cjs → index-LhirSlbf.cjs} +1 -1
  62. package/dist/{index-DUtmk1bj.cjs → index-OAw89GlW.cjs} +1 -1
  63. package/dist/{index-B3TCH363.cjs → index-TlpsYQOO.cjs} +7 -6
  64. package/dist/{index-CNwliXjU.js → index-p1BJpeCx.js} +5 -5
  65. package/dist/{index-CA8t9-gv.js → index-qgYEDwXG.js} +2 -2
  66. package/dist/{index-BGbxImVv.js → index-vd4vRJW2.js} +13 -13
  67. package/dist/{index-CkLgyT6u.cjs → index-wKWv56Bw.cjs} +1 -1
  68. package/dist/{index-Bfi1UoGP.js → index-yIdddQuP.js} +2 -2
  69. package/dist/{index-XFkwHh-P.js → index-yQLmOtsY.js} +2 -2
  70. package/dist/{index-BGwuI_x4.js → index-zrTuHtuS.js} +1 -1
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CRAl9Y7G.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDAZDHvN.cjs} +68 -68
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-ucfC0PVu.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js} +2486 -2481
  73. package/dist/{main-C8097bU2.cjs → main-BnxMggPl.cjs} +1 -1
  74. package/dist/{main-DbTUPiOc.js → main-DDaIzcjA.js} +4 -4
  75. package/dist/menuIndex-CD_6J90j.cjs +1 -0
  76. package/dist/menuIndex-dHBsUkqd.js +83 -0
  77. package/dist/obj/model.mtl +42 -0
  78. package/dist/obj/model.obj +26110 -0
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +2 -2
  81. package/dist/ss-component.js +11 -11
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +13 -13
  84. package/dist/{threeModel-De-7T9uY.cjs → threeModel-BN6c75D5.cjs} +1 -1
  85. package/dist/{threeModel-BJchxIwW.js → threeModel-CDIFaejZ.js} +76 -76
  86. package/dist/{threePreview-DvYgRY2j.js → threePreview-BtIIDlh-.js} +5 -5
  87. package/dist/{threePreview-JLq5yZic.cjs → threePreview-DwWlg7lI.cjs} +1 -1
  88. package/dist/{threeSceneView-CygIbwt0.cjs → threeSceneView-C-yzvZdv.cjs} +1 -1
  89. package/dist/{threeSceneView-CUJzhEK6.js → threeSceneView-CvuMlo8L.js} +11 -11
  90. package/dist/{threeSceneViewForCPMPIP-DW7gUluU.cjs → threeSceneViewForCPMPIP-BvcImuS8.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-FGl_ZFFr.js → threeSceneViewForCPMPIP-DhZWA7GU.js} +9 -9
  92. package/dist/{threeTrackPathView-CJeLq_TJ.cjs → threeTrackPathView-DTXw71Wd.cjs} +1 -1
  93. package/dist/{threeTrackPathView-COd-EfJg.js → threeTrackPathView-DX1p8Ie-.js} +4 -4
  94. package/dist/{threeViewerHost-UYIlXdwN.js → threeViewerHost-C7qflIpN.js} +3 -3
  95. package/dist/{threeViewerHost-NEd9wdRM.cjs → threeViewerHost-CBGXmZgT.cjs} +1 -1
  96. package/dist/{urdfTree-D_szdiKY.cjs → urdfTree-CN3JKSRs.cjs} +1 -1
  97. package/dist/{urdfTree-xl8HRmIY.js → urdfTree-CR3g-bil.js} +1 -1
  98. package/dist/{workpieceTreePanel-Cpiuo7hc.js → workpieceTreePanel-CmQM28rE.js} +4 -4
  99. package/dist/{workpieceTreePanel-CTJjkLo9.cjs → workpieceTreePanel-DBHiE5Se.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/public/obj/model.mtl +42 -0
  102. package/public/obj/model.obj +26110 -0
  103. package/dist/index-Blu30Md_.cjs +0 -25
  104. package/dist/index-ltYEl6x9.cjs +0 -1
  105. package/dist/menuIndex-COeE6K1p.cjs +0 -1
  106. package/dist/menuIndex-OsQ53sC9.js +0 -55
@@ -1,15 +1,15 @@
1
- import { ref as I, resolveComponent as X, createBlock as q, openBlock as _, computed as n2, watch as q2, createElementBlock as A, createVNode as t2, withCtx as B, createElementVNode as o2, Fragment as b2, renderList as M2, withModifiers as Ce, normalizeClass as Ke, toDisplayString as L2, createSlots as pe, renderSlot as v2, nextTick as A0, defineComponent as i0, onMounted as we, createTextVNode as E0, isRef as ar, isReactive as cr, toRaw as hr, createCommentVNode as c2, onBeforeUnmount as O4, normalizeStyle as P0, withDirectives as Rt, resolveDynamicComponent as s3, vShow as U1, normalizeProps as dr, guardReactiveProps as ur, unref as V0, mergeProps as d1, reactive as E3, inject as Q3, watchEffect as ze, onUnmounted as u1, resolveDirective as fr, h as Si, toRefs as pr } from "vue";
2
- import { ac as gr, ad as mr, R as Bs, g as vr, aa as Ci, ae as wr, af as xr, ag as br, ah as _r, ai as ki, aj as Di } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-ucfC0PVu.js";
1
+ import { ref as I, resolveComponent as X, createBlock as q, openBlock as _, computed as n2, watch as q2, createElementBlock as A, createVNode as t2, withCtx as B, createElementVNode as o2, Fragment as b2, renderList as M2, withModifiers as Ce, normalizeClass as Ke, toDisplayString as L2, createSlots as pe, renderSlot as v2, nextTick as A0, defineComponent as i0, onMounted as we, createTextVNode as E0, isRef as rr, isReactive as ar, toRaw as cr, createCommentVNode as c2, onBeforeUnmount as O4, normalizeStyle as P0, withDirectives as Rt, resolveDynamicComponent as s3, vShow as U1, normalizeProps as hr, guardReactiveProps as dr, unref as V0, mergeProps as d1, reactive as E3, inject as Q3, watchEffect as ze, onUnmounted as u1, resolveDirective as ur, h as Si, toRefs as fr } from "vue";
2
+ import { ac as pr, ad as gr, R as Bs, g as mr, aa as Ci, ae as vr, af as wr, ag as xr, ah as br, ai as ki, aj as Di } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js";
3
3
  import { _ as P2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { S as vt } from "./index-BHtNKL1L.js";
5
- import { j as Ls, k as Hs, E as B3, g as M6, at as yr, s as Is, au as Sr, aj as Cr, ak as kr, as as Dr, b as Or } from "./request-DHW6ycUJ.js";
6
- import { a7 as Mr, a8 as Oi, a as M4, p as ht, s as wt, u as T4, c as B0, a4 as Nt, g as Tr, j as Gs, t as zr, i as Pr } from "./index-CLvFKdVq.js";
5
+ import { j as Ls, k as Hs, E as B3, g as M6, at as _r, s as yr, au as Sr, aj as Cr, ak as kr, as as Dr, b as Or } from "./request-DHW6ycUJ.js";
6
+ import { a8 as Mr, a9 as Oi, a as M4, p as ht, s as wt, u as T4, c as B0, a4 as Nt, g as Tr, j as Is, t as zr, a6 as T6, i as Pr } from "./index-DEUR6Zpv.js";
7
7
  import { _ as ue } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
8
- import { e as Mi, G as Rs } from "./index-D2Njli4E.js";
8
+ import { e as Mi, G as Gs } from "./index-C3m4WIgZ.js";
9
9
  /* empty css */
10
10
  import { s as z4 } from "./index-Cxi75Fab.js";
11
- import { T as Ti, a as Vr } from "./threeViewerHost-UYIlXdwN.js";
12
- import { A as Ar } from "./index-BnVCc6o9.js";
11
+ import { T as Ti, a as Vr } from "./threeViewerHost-C7qflIpN.js";
12
+ import { A as Ar } from "./index-CymLx2yV.js";
13
13
  var Er = "[object Date]";
14
14
  function Br(n) {
15
15
  return Ls(n) && Hs(n) == Er;
@@ -1209,10 +1209,10 @@ const Qf = { class: "icon-popover" }, Jf = ["onClick"], Zf = /* @__PURE__ */ i0(
1209
1209
  return n;
1210
1210
  if (e.has(n))
1211
1211
  return e.get(n);
1212
- if (ar(n))
1212
+ if (rr(n))
1213
1213
  return We(n.value, e);
1214
- if (cr(n))
1215
- return We(hr(n), e);
1214
+ if (ar(n))
1215
+ return We(cr(n), e);
1216
1216
  if (n instanceof Date) return new Date(n);
1217
1217
  if (n instanceof RegExp) return new RegExp(n);
1218
1218
  if (Array.isArray(n)) {
@@ -1236,7 +1236,7 @@ const Qf = { class: "icon-popover" }, Jf = ["onClick"], Zf = /* @__PURE__ */ i0(
1236
1236
  var i, s, o, l, r, a, h, c, d, u, f;
1237
1237
  let e = (i = n == null ? void 0 : n.menus) == null ? void 0 : i.join("/");
1238
1238
  n != null && n.endChildMenu && (n == null ? void 0 : n.endChildMenu) !== "" && (e == null ? void 0 : e[(e == null ? void 0 : e.length) - 1]) === "/" && (e = e + (n == null ? void 0 : n.endChildMenu)), (e == null ? void 0 : e[(e == null ? void 0 : e.length) - 1]) === "/" && (e = e + ((o = (s = n.value) == null ? void 0 : s.split(" ")) == null ? void 0 : o[0]));
1239
- let t = await gr(e);
1239
+ let t = await pr(e);
1240
1240
  if (t = (l = t == null ? void 0 : t.filter((p) => {
1241
1241
  var g, m;
1242
1242
  return (p == null ? void 0 : p.name) === ((m = n == null ? void 0 : n.groups) == null ? void 0 : m[((g = n == null ? void 0 : n.groups) == null ? void 0 : g.length) - 1]);
@@ -1410,7 +1410,7 @@ const Qf = { class: "icon-popover" }, Jf = ["onClick"], Zf = /* @__PURE__ */ i0(
1410
1410
  value: z2
1411
1411
  }));
1412
1412
  } else if (((R2 = (T2 = t.optionUrl) == null ? void 0 : T2.menus) == null ? void 0 : R2.length) > 0) {
1413
- let k2 = await mr(t.optionUrl);
1413
+ let k2 = await gr(t.optionUrl);
1414
1414
  r.value = [...r.value, ...k2 ?? []], s.value = (X2 = (W2 = r.value) == null ? void 0 : W2[0]) == null ? void 0 : X2.value;
1415
1415
  }
1416
1416
  await V((u0 = r.value) == null ? void 0 : u0.map((k2) => k2 == null ? void 0 : k2.value)), i("click");
@@ -1538,7 +1538,7 @@ const Qf = { class: "icon-popover" }, Jf = ["onClick"], Zf = /* @__PURE__ */ i0(
1538
1538
  });
1539
1539
  const r = e, a = I(null), h = I(null), c = I(), d = I(), u = I(0), f = n2(() => {
1540
1540
  var T;
1541
- return (T = Rs) == null ? void 0 : T.map((G) => ({
1541
+ return (T = Gs) == null ? void 0 : T.map((G) => ({
1542
1542
  value: G == null ? void 0 : G.key,
1543
1543
  label: G == null ? void 0 : G.key
1544
1544
  }));
@@ -1962,13 +1962,13 @@ const Qf = { class: "icon-popover" }, Jf = ["onClick"], Zf = /* @__PURE__ */ i0(
1962
1962
  });
1963
1963
  }), (t, i) => {
1964
1964
  var s;
1965
- return _(), q(j8, {
1965
+ return _(), q($8, {
1966
1966
  tabsContents: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.tabsContents) ?? []
1967
1967
  }, pe({ _: 2 }, [
1968
1968
  M2(t.$slots, (o, l) => ({
1969
1969
  name: l,
1970
1970
  fn: B((r) => [
1971
- v2(t.$slots, l, dr(ur(r || {})))
1971
+ v2(t.$slots, l, hr(dr(r || {})))
1972
1972
  ])
1973
1973
  }))
1974
1974
  ]), 1032, ["tabsContents"]);
@@ -2022,7 +2022,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2022
2022
  v2(o.$slots, "headerButton", {}, void 0, !0)
2023
2023
  ]));
2024
2024
  }
2025
- }, zp = /* @__PURE__ */ P2(Tp, [["__scopeId", "data-v-00ed78e9"]]), Ns = (n) => {
2025
+ }, zp = /* @__PURE__ */ P2(Tp, [["__scopeId", "data-v-00ed78e9"]]), Rs = (n) => {
2026
2026
  var s;
2027
2027
  if (n != null && n.minWidth) return n.minWidth;
2028
2028
  if ((n == null ? void 0 : n.prop) === "operate") return 50;
@@ -2054,7 +2054,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2054
2054
  sortable: ((d = n.column) == null ? void 0 : d.prop) === "operate" || ((u = n.column) == null ? void 0 : u.label) === "操作" || Array.isArray((f = n.column) == null ? void 0 : f.children) && n.column.children.length > 0 ? !1 : ((p = n.column) == null ? void 0 : p.sortable) ?? !1 ? "custom" : !1,
2055
2055
  "show-overflow-tooltip": ((g = n.column) == null ? void 0 : g.showOverflowTooltip) ?? !0,
2056
2056
  "class-name": (((m = n.column) == null ? void 0 : m.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag",
2057
- "min-width": V0(Ns)(n.column)
2057
+ "min-width": V0(Rs)(n.column)
2058
2058
  }, {
2059
2059
  header: B(() => [
2060
2060
  n.column.prop !== "operate" ? (_(), A("span", {
@@ -2119,7 +2119,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2119
2119
  setup(n, { emit: e }) {
2120
2120
  const t = n, i = e, s = I(null), o = n2(() => {
2121
2121
  var d, u;
2122
- return (u = (d = Rs) == null ? void 0 : d.map((f) => ({
2122
+ return (u = (d = Gs) == null ? void 0 : d.map((f) => ({
2123
2123
  value: f == null ? void 0 : f.key,
2124
2124
  label: f == null ? void 0 : f.key
2125
2125
  }))) == null ? void 0 : u.filter((f) => (f == null ? void 0 : f.value) !== "Upload");
@@ -2161,7 +2161,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2161
2161
  "filter-method": l,
2162
2162
  "show-overflow-tooltip": ((x = n.column) == null ? void 0 : x.showOverflowTooltip) ?? !0,
2163
2163
  "class-name": ((k = n.column) == null ? void 0 : k.prop) === "operate" ? "action" : (((L = n.column) == null ? void 0 : L.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag",
2164
- "min-width": V0(Ns)(n.column)
2164
+ "min-width": V0(Rs)(n.column)
2165
2165
  }, {
2166
2166
  header: B(() => [
2167
2167
  n.column.prop !== "operate" ? (_(), A(b2, { key: 0 }, [
@@ -2292,7 +2292,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2292
2292
  ], Gp = (n) => {
2293
2293
  if (!n)
2294
2294
  return !1;
2295
- const e = vr(n);
2295
+ const e = mr(n);
2296
2296
  return Ip.includes(e);
2297
2297
  }, Rp = { class: "table-row-prefix-wrapper" }, Np = {
2298
2298
  title: "拖动排序",
@@ -2619,7 +2619,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2619
2619
  M("fixRow", b);
2620
2620
  }, K0 = (b) => {
2621
2621
  M("deleteRow", b);
2622
- }, W8 = (b, D) => {
2622
+ }, j8 = (b, D) => {
2623
2623
  M("clickButton", "删除", b, { extra: { label: "删除" }, index: D });
2624
2624
  }, mi = (b, D) => {
2625
2625
  var e2, l2, Y, s2;
@@ -2638,7 +2638,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2638
2638
  }), z.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, z._isTemp = !0, (b == null ? void 0 : b.level) !== void 0 && (z.level = b.level), (b == null ? void 0 : b.tableEditType) !== void 0 && (z.tableEditType = b.tableEditType);
2639
2639
  const E = typeof D == "number" ? D : (Y = f.value) == null ? void 0 : Y.findIndex((r2) => (r2 == null ? void 0 : r2.id) === (b == null ? void 0 : b.id)), Z = E >= 0 ? E + 1 : ((s2 = f.value) == null ? void 0 : s2.length) ?? 0;
2640
2640
  M("addNewRow", { newRow: z, targetIndex: Z });
2641
- }, U8 = (b, D, z, E) => {
2641
+ }, W8 = (b, D, z, E) => {
2642
2642
  M("contentClick", b, D, z, E);
2643
2643
  }, vi = () => {
2644
2644
  var D;
@@ -2657,7 +2657,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2657
2657
  });
2658
2658
  }
2659
2659
  });
2660
- }, F8 = ({ column: b }) => b.label && b.label.length > 8 ? "long-header" : "", X3 = () => {
2660
+ }, U8 = ({ column: b }) => b.label && b.label.length > 8 ? "long-header" : "", X3 = () => {
2661
2661
  var D;
2662
2662
  const b = (D = g.value) == null ? void 0 : D.$el.querySelector(".el-table__body-wrapper tbody");
2663
2663
  b && new Ci(b, {
@@ -2671,36 +2671,36 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2671
2671
  });
2672
2672
  }
2673
2673
  });
2674
- }, q8 = (b) => new Promise((D) => {
2674
+ }, F8 = (b) => new Promise((D) => {
2675
2675
  const z = new FileReader();
2676
2676
  z.onloadend = () => D(z.result), z.readAsDataURL(b);
2677
- }), Y8 = (b, D = "file") => {
2677
+ }), q8 = (b, D = "file") => {
2678
2678
  let z = b.split(","), E = z[0].match(/:(.*?);/)[1], Z = E.split("/")[1], e2 = atob(z[1]), l2 = e2.length, Y = new Uint8Array(l2);
2679
2679
  for (; l2--; )
2680
2680
  Y[l2] = e2.charCodeAt(l2);
2681
2681
  return new File([Y], `${D}.${Z}`, {
2682
2682
  type: E
2683
2683
  });
2684
- }, K8 = async (b) => {
2685
- const D = await q8(b);
2686
- let z = Y8(D), E = new FormData();
2684
+ }, Y8 = async (b) => {
2685
+ const D = await F8(b);
2686
+ let z = q8(D), E = new FormData();
2687
2687
  E.append("file", z);
2688
2688
  let Z;
2689
- return await Gs(E).then((e2) => {
2689
+ return await Is(E).then((e2) => {
2690
2690
  var l2, Y, s2, r2, F, h2, O2;
2691
2691
  Z = {
2692
2692
  url: (l2 = e2.data.result) == null ? void 0 : l2.url,
2693
2693
  name: (O2 = (s2 = (Y = e2.data.result) == null ? void 0 : Y.url) == null ? void 0 : s2.split("/")) == null ? void 0 : O2[((h2 = (F = (r2 = e2.data.result) == null ? void 0 : r2.url) == null ? void 0 : F.split("/")) == null ? void 0 : h2.length) - 1]
2694
2694
  };
2695
2695
  }), Z;
2696
- }, X8 = async (b) => {
2696
+ }, K8 = async (b) => {
2697
2697
  var D;
2698
2698
  try {
2699
2699
  const z = b.clipboardData || (window == null ? void 0 : window.clipboardData), E = z.getData("text/plain");
2700
2700
  if (E === void 0) return;
2701
2701
  if (E.includes("<table")) {
2702
2702
  b.preventDefault();
2703
- const Z = Q8(E);
2703
+ const Z = X8(E);
2704
2704
  if (!Z.length) return;
2705
2705
  const { rowIndex: e2, columnIndex: l2 } = v.value || { rowIndex: 0, columnIndex: 0 }, Y = [];
2706
2706
  if (Z == null || Z.forEach((s2) => {
@@ -2779,7 +2779,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2779
2779
  r2 = [];
2780
2780
  for (const h2 of F)
2781
2781
  if ((h2 == null ? void 0 : h2.type) === "image/png") {
2782
- const O2 = await K8(h2 == null ? void 0 : h2.getAsFile());
2782
+ const O2 = await Y8(h2 == null ? void 0 : h2.getAsFile());
2783
2783
  r2.push(O2);
2784
2784
  } else
2785
2785
  r2 = b.clipboardData.getData("text/plain");
@@ -2796,14 +2796,14 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2796
2796
  } catch (z) {
2797
2797
  console.error("粘贴失败:", z);
2798
2798
  }
2799
- }, Q8 = (b) => b.trim().split(/\r\n|\n|\r/).map((E) => E.trim() ? E.split(" ").map((Z) => Z.replace(/^"(.*)"$/, "$1")) : [""]), J8 = (b) => {
2799
+ }, X8 = (b) => b.trim().split(/\r\n|\n|\r/).map((E) => E.trim() ? E.split(" ").map((Z) => Z.replace(/^"(.*)"$/, "$1")) : [""]), Q8 = (b) => {
2800
2800
  var D;
2801
2801
  b && (v.value = {
2802
2802
  rowIndex: b == null ? void 0 : b.$index,
2803
2803
  columnIndex: b == null ? void 0 : b.cellIndex,
2804
2804
  columnProp: (D = b.column) == null ? void 0 : D.property
2805
2805
  });
2806
- }, Z8 = ({ row: b, rowIndex: D }) => D % 2 === 0 ? "default-row" : "special-row", er = ({ column: b }) => (b == null ? void 0 : b.property) === "disabled" ? "row-header-cell" : "", tr = (b, D, z) => {
2806
+ }, J8 = ({ row: b, rowIndex: D }) => D % 2 === 0 ? "default-row" : "special-row", Z8 = ({ column: b }) => (b == null ? void 0 : b.property) === "disabled" ? "row-header-cell" : "", er = (b, D, z) => {
2807
2807
  let E = b;
2808
2808
  if ((z == null ? void 0 : z.columnType) === "Date") {
2809
2809
  if (!E || E === "" || E === null || E === void 0)
@@ -2815,10 +2815,10 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2815
2815
  D[z.prop] = E;
2816
2816
  }
2817
2817
  M("cellChange", D, z, E);
2818
- }, ir = (b) => b == null ? void 0 : b.toLocaleString("zh-CN", {
2818
+ }, tr = (b) => b == null ? void 0 : b.toLocaleString("zh-CN", {
2819
2819
  minimumFractionDigits: 2,
2820
2820
  maximumFractionDigits: 2
2821
- }), nr = (b) => {
2821
+ }), ir = (b) => {
2822
2822
  const { columns: D, data: z } = b, E = [];
2823
2823
  return D.forEach((Z, e2) => {
2824
2824
  var s2, r2;
@@ -2836,7 +2836,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2836
2836
  const p2 = Number($2);
2837
2837
  return isNaN(p2) ? O2 : O2 + p2;
2838
2838
  }, 0);
2839
- E[e2] = ir(h2), ["price", "sales", "cost", "profit"].includes(l2) && (E[e2] = "¥" + E[e2]);
2839
+ E[e2] = tr(h2), ["price", "sales", "cost", "profit"].includes(l2) && (E[e2] = "¥" + E[e2]);
2840
2840
  }
2841
2841
  } else
2842
2842
  E[e2] = "";
@@ -2854,7 +2854,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2854
2854
  var D, z;
2855
2855
  const b = (D = u.value) == null ? void 0 : D.find((E) => E == null ? void 0 : E.isMainKey);
2856
2856
  return b || ((z = u.value) == null ? void 0 : z[0]);
2857
- }), sr = n2(() => {
2857
+ }), nr = n2(() => {
2858
2858
  const b = [], D = (z) => {
2859
2859
  (z || []).forEach((E) => {
2860
2860
  E != null && E.children && E.children.length > 0 ? D(E.children) : b.push(E);
@@ -2905,7 +2905,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2905
2905
  content: B(() => {
2906
2906
  var x2;
2907
2907
  return [
2908
- (_(!0), A(b2, null, M2((x2 = sr.value) == null ? void 0 : x2.filter((g2) => {
2908
+ (_(!0), A(b2, null, M2((x2 = nr.value) == null ? void 0 : x2.filter((g2) => {
2909
2909
  var V2;
2910
2910
  return (g2 == null ? void 0 : g2.prop) !== "operate" && (g2 == null ? void 0 : g2.prop) !== ((V2 = Tt.value) == null ? void 0 : V2.prop);
2911
2911
  }), (g2) => (_(), A("div", {
@@ -2953,7 +2953,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2953
2953
  "show-summary": (Y = n.columns) == null ? void 0 : Y.some((p2) => p2 == null ? void 0 : p2.showSummary),
2954
2954
  onSortChange: ce,
2955
2955
  "sum-text": (s2 = n.summaryInfo) == null ? void 0 : s2.text,
2956
- "summary-method": nr,
2956
+ "summary-method": ir,
2957
2957
  stripe: "",
2958
2958
  style: { width: "100%", "overflow-x": "auto" },
2959
2959
  "max-height": "600",
@@ -2961,13 +2961,13 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
2961
2961
  ref: g,
2962
2962
  "empty-text": "暂无数据",
2963
2963
  onCellContextmenu: u0,
2964
- onPaste: X8,
2964
+ onPaste: K8,
2965
2965
  onSelectionChange: T2,
2966
2966
  onRowDblclick: a0,
2967
2967
  key: p.value,
2968
- "row-class-name": Z8,
2969
- "header-cell-class-name": F8,
2970
- "cell-class-name": er,
2968
+ "row-class-name": J8,
2969
+ "header-cell-class-name": U8,
2970
+ "cell-class-name": Z8,
2971
2971
  onCellMouseEnter: G,
2972
2972
  onCellMouseLeave: i2,
2973
2973
  onContextmenu: D[3] || (D[3] = Ce(() => {
@@ -3035,11 +3035,11 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3035
3035
  o2("span", {
3036
3036
  title: "删除本行",
3037
3037
  style: { cursor: "pointer" },
3038
- onClick: Ce((H0) => W8(j, p0), ["stop"])
3038
+ onClick: Ce((H0) => j8(j, p0), ["stop"])
3039
3039
  }, [
3040
3040
  t2(z, { size: 12 }, {
3041
3041
  default: B(() => [
3042
- t2(V0(yr))
3042
+ t2(V0(_r))
3043
3043
  ]),
3044
3044
  _: 1
3045
3045
  })
@@ -3098,7 +3098,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3098
3098
  operateHeader: B(() => [
3099
3099
  (j == null ? void 0 : j.label) === "操作" ? v2(b.$slots, "operateCol", { key: 0 }, void 0, !0) : c2("", !0)
3100
3100
  ]),
3101
- content: B(({ row: u2, item: U2, slotData: Re, scope: or, column: n0, columnProp: it, $index: lr }) => {
3101
+ content: B(({ row: u2, item: U2, slotData: Re, scope: sr, column: n0, columnProp: it, $index: or }) => {
3102
3102
  var wi, xi, bi, _i;
3103
3103
  return [
3104
3104
  (u2 == null ? void 0 : u2.tableEditType) !== "edit" && (j == null ? void 0 : j.type) !== "operate" ? (_(), A("span", {
@@ -3107,7 +3107,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3107
3107
  style: P0({ cursor: j != null && j.isExistChild ? "pointer" : "default", color: j != null && j.isExistChild && !(j != null && j.directiveColor) ? "var(--vertical-menuitem-active-bg)" : "", textDecoration: j != null && j.isExistChild ? "underline" : "" }),
3108
3108
  onClick: (f2) => {
3109
3109
  var b1;
3110
- return U8(u2 != null && u2[j == null ? void 0 : j.prop] ? u2 == null ? void 0 : u2[j == null ? void 0 : j.prop] : (u2 == null ? void 0 : u2[U2 == null ? void 0 : U2.prop]) ?? (Re == null ? void 0 : Re[U2 == null ? void 0 : U2.prop]) ?? (u2 == null ? void 0 : u2[(b1 = U2 == null ? void 0 : U2.child) == null ? void 0 : b1.prop]), U2 == null ? void 0 : U2.prop, u2 ?? Re, {
3110
+ return W8(u2 != null && u2[j == null ? void 0 : j.prop] ? u2 == null ? void 0 : u2[j == null ? void 0 : j.prop] : (u2 == null ? void 0 : u2[U2 == null ? void 0 : U2.prop]) ?? (Re == null ? void 0 : Re[U2 == null ? void 0 : U2.prop]) ?? (u2 == null ? void 0 : u2[(b1 = U2 == null ? void 0 : U2.child) == null ? void 0 : b1.prop]), U2 == null ? void 0 : U2.prop, u2 ?? Re, {
3111
3111
  data: W2(u2, j, U2, Re).value,
3112
3112
  isExistChild: j == null ? void 0 : j.isExistChild
3113
3113
  });
@@ -3136,7 +3136,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3136
3136
  }, [
3137
3137
  v2(b.$slots, "actions", {
3138
3138
  item: u2,
3139
- fIndex: lr
3139
+ fIndex: or
3140
3140
  }, void 0, !0),
3141
3141
  n.isShowEdit ? (_(), A("span", {
3142
3142
  key: 0,
@@ -3154,7 +3154,7 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3154
3154
  E0(L2(u2[n0 == null ? void 0 : n0.property]), 1)
3155
3155
  ], 64)) : (_(), q(s3((() => {
3156
3156
  var yi;
3157
- const f2 = it ?? U2 ?? j, b1 = u2 != null && u2[f2 == null ? void 0 : f2.prop] && Array.isArray(u2[f2.prop]) && ((yi = u2[f2.prop]) != null && yi.every((rr) => typeof rr == "Object")) ? "Upload" : ((f2 == null ? void 0 : f2.formType) ?? (f2 == null ? void 0 : f2.columnType)) === "" || !((f2 == null ? void 0 : f2.formType) ?? (f2 == null ? void 0 : f2.columnType)) ? "Input" : (f2 == null ? void 0 : f2.formType) ?? (f2 == null ? void 0 : f2.columnType);
3157
+ const f2 = it ?? U2 ?? j, b1 = u2 != null && u2[f2 == null ? void 0 : f2.prop] && Array.isArray(u2[f2.prop]) && ((yi = u2[f2.prop]) != null && yi.every((lr) => typeof lr == "Object")) ? "Upload" : ((f2 == null ? void 0 : f2.formType) ?? (f2 == null ? void 0 : f2.columnType)) === "" || !((f2 == null ? void 0 : f2.formType) ?? (f2 == null ? void 0 : f2.columnType)) ? "Input" : (f2 == null ? void 0 : f2.formType) ?? (f2 == null ? void 0 : f2.columnType);
3158
3158
  return Ie(b1);
3159
3159
  })()), {
3160
3160
  key: 1,
@@ -3165,11 +3165,11 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3165
3165
  optionUrl: it ?? U2 ?? j,
3166
3166
  "suggest-list": V0(D2)(u2, n0),
3167
3167
  loading: V0(H2)(u2, n0),
3168
- onFocus: (f2) => J8(or),
3168
+ onFocus: (f2) => Q8(sr),
3169
3169
  onInput: (f2) => _2(f2, u2, n0, it ?? U2 ?? j),
3170
3170
  onSelectSuggest: (f2) => w(f2, u2, n0),
3171
3171
  onChange: (f2) => {
3172
- tr(f2, u2, j), M("cellChange", u2, n0, f2);
3172
+ er(f2, u2, j), M("cellChange", u2, n0, f2);
3173
3173
  }
3174
3174
  }, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "suggest-list", "loading", "onFocus", "onInput", "onSelectSuggest", "onChange"]))
3175
3175
  ])) : c2("", !0)
@@ -3555,9 +3555,9 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3555
3555
  }, 8, ["mode", "default-active", "openeds", "unique-opened", "collapse"]);
3556
3556
  };
3557
3557
  }
3558
- }), $s = /* @__PURE__ */ P2(ug, [["__scopeId", "data-v-cce7242d"]]), GC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3558
+ }), Ns = /* @__PURE__ */ P2(ug, [["__scopeId", "data-v-cce7242d"]]), GC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3559
3559
  __proto__: null,
3560
- default: $s
3560
+ default: Ns
3561
3561
  }, Symbol.toStringTag, { value: "Module" })), fg = {
3562
3562
  __name: "index",
3563
3563
  props: {
@@ -3658,20 +3658,8 @@ const Op = /* @__PURE__ */ P2(kp, [["render", Dp]]), Mp = { class: "extra-button
3658
3658
  };
3659
3659
  }
3660
3660
  }, mg = /* @__PURE__ */ P2(gg, [["__scopeId", "data-v-b66aada5"]]);
3661
- function T6(n) {
3662
- const e = sessionStorage.getItem("loginToken") ?? "123456";
3663
- return Is({
3664
- url: "/api/sysFile/uploadFile",
3665
- method: "post",
3666
- data: n,
3667
- headers: {
3668
- Authorization: e,
3669
- "Content-Type": "multipart/form-data"
3670
- }
3671
- });
3672
- }
3673
3661
  function vg(n) {
3674
- return Is({
3662
+ return yr({
3675
3663
  url: "/api/sysFile/delete",
3676
3664
  method: "post",
3677
3665
  data: n
@@ -3688,7 +3676,7 @@ const wg = { class: "docx-renderer" }, xg = {
3688
3676
  return ze(async () => {
3689
3677
  t.value;
3690
3678
  const o = await (await fetch(t.value)).blob();
3691
- await wr(o, i.value, null, {
3679
+ await vr(o, i.value, null, {
3692
3680
  ignoreHeight: !1,
3693
3681
  ignoreWidth: !1,
3694
3682
  ignoreFonts: !1,
@@ -3728,7 +3716,7 @@ const wg = { class: "docx-renderer" }, xg = {
3728
3716
  return ze(async () => {
3729
3717
  t.value;
3730
3718
  const o = await (await fetch(t.value)).blob();
3731
- i.value = xr.init(document.getElementById("excel")), i.value.preview(o).then(() => {
3719
+ i.value = wr.init(document.getElementById("excel")), i.value.preview(o).then(() => {
3732
3720
  console.log("预览完成");
3733
3721
  }).catch((l) => {
3734
3722
  console.log("预览失败", l);
@@ -3755,7 +3743,7 @@ const wg = { class: "docx-renderer" }, xg = {
3755
3743
  const c = (s.currentPage - 1) * s.pageSize, d = c + s.pageSize;
3756
3744
  return o.value.slice(c, d);
3757
3745
  }), h = (c) => {
3758
- c && br.parse(c, {
3746
+ c && xr.parse(c, {
3759
3747
  complete(d) {
3760
3748
  const [u, ...f] = d.data;
3761
3749
  l.value = u, o.value = f.map(
@@ -3845,18 +3833,18 @@ const wg = { class: "docx-renderer" }, xg = {
3845
3833
  ]));
3846
3834
  }
3847
3835
  }, Ag = /* @__PURE__ */ P2(Vg, [["__scopeId", "data-v-efbb83ba"]]);
3848
- let z6 = [], js = [];
3836
+ let z6 = [], $s = [];
3849
3837
  (() => {
3850
3838
  let n = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
3851
3839
  for (let e = 0, t = 0; e < n.length; e++)
3852
- (e % 2 ? js : z6).push(t = t + n[e]);
3840
+ (e % 2 ? $s : z6).push(t = t + n[e]);
3853
3841
  })();
3854
3842
  function Eg(n) {
3855
3843
  if (n < 768) return !1;
3856
3844
  for (let e = 0, t = z6.length; ; ) {
3857
3845
  let i = e + t >> 1;
3858
3846
  if (n < z6[i]) t = i;
3859
- else if (n >= js[i]) e = i + 1;
3847
+ else if (n >= $s[i]) e = i + 1;
3860
3848
  else return !0;
3861
3849
  if (e == t) return !1;
3862
3850
  }
@@ -3866,11 +3854,11 @@ function Ai(n) {
3866
3854
  }
3867
3855
  const Ei = 8205;
3868
3856
  function Bg(n, e, t = !0, i = !0) {
3869
- return (t ? Ws : Lg)(n, e, i);
3857
+ return (t ? js : Lg)(n, e, i);
3870
3858
  }
3871
- function Ws(n, e, t) {
3859
+ function js(n, e, t) {
3872
3860
  if (e == n.length) return e;
3873
- e && Us(n.charCodeAt(e)) && Fs(n.charCodeAt(e - 1)) && e--;
3861
+ e && Ws(n.charCodeAt(e)) && Us(n.charCodeAt(e - 1)) && e--;
3874
3862
  let i = J3(n, e);
3875
3863
  for (e += Bi(i); e < n.length; ) {
3876
3864
  let s = J3(n, e);
@@ -3889,7 +3877,7 @@ function Ws(n, e, t) {
3889
3877
  }
3890
3878
  function Lg(n, e, t) {
3891
3879
  for (; e > 0; ) {
3892
- let i = Ws(n, e - 2, t);
3880
+ let i = js(n, e - 2, t);
3893
3881
  if (i < e) return i;
3894
3882
  e--;
3895
3883
  }
@@ -3897,14 +3885,14 @@ function Lg(n, e, t) {
3897
3885
  }
3898
3886
  function J3(n, e) {
3899
3887
  let t = n.charCodeAt(e);
3900
- if (!Fs(t) || e + 1 == n.length) return t;
3888
+ if (!Us(t) || e + 1 == n.length) return t;
3901
3889
  let i = n.charCodeAt(e + 1);
3902
- return Us(i) ? (t - 55296 << 10) + (i - 56320) + 65536 : t;
3890
+ return Ws(i) ? (t - 55296 << 10) + (i - 56320) + 65536 : t;
3903
3891
  }
3904
- function Us(n) {
3892
+ function Ws(n) {
3905
3893
  return n >= 56320 && n < 57344;
3906
3894
  }
3907
- function Fs(n) {
3895
+ function Us(n) {
3908
3896
  return n >= 55296 && n < 56320;
3909
3897
  }
3910
3898
  function Bi(n) {
@@ -3996,7 +3984,7 @@ class C2 {
3996
3984
  iterator will run in reverse.
3997
3985
  */
3998
3986
  iterRange(e, t = this.length) {
3999
- return new qs(this, e, t);
3987
+ return new Fs(this, e, t);
4000
3988
  }
4001
3989
  /**
4002
3990
  Return a cursor that iterates over the given range of lines,
@@ -4014,7 +4002,7 @@ class C2 {
4014
4002
  let s = this.line(e).from;
4015
4003
  i = this.iterRange(s, Math.max(s, t == this.lines + 1 ? this.length : t <= 1 ? 0 : this.line(t - 1).to));
4016
4004
  }
4017
- return new Ys(i);
4005
+ return new qs(i);
4018
4006
  }
4019
4007
  /**
4020
4008
  Return the document as a string, using newline characters to
@@ -4252,7 +4240,7 @@ class $t {
4252
4240
  return e < 0 && (this.nextInner(-e, -this.dir), e = this.value.length), this.nextInner(e, this.dir);
4253
4241
  }
4254
4242
  }
4255
- class qs {
4243
+ class Fs {
4256
4244
  constructor(e, t, i) {
4257
4245
  this.value = "", this.done = !1, this.cursor = new $t(e, t > i ? -1 : 1), this.pos = t > i ? e.length : 0, this.from = Math.min(t, i), this.to = Math.max(t, i);
4258
4246
  }
@@ -4272,7 +4260,7 @@ class qs {
4272
4260
  return this.cursor.lineBreak && this.value != "";
4273
4261
  }
4274
4262
  }
4275
- class Ys {
4263
+ class qs {
4276
4264
  constructor(e) {
4277
4265
  this.inner = e, this.afterBreak = !0, this.value = "", this.done = !1;
4278
4266
  }
@@ -4286,7 +4274,7 @@ class Ys {
4286
4274
  }
4287
4275
  typeof Symbol < "u" && (C2.prototype[Symbol.iterator] = function() {
4288
4276
  return this.iter();
4289
- }, $t.prototype[Symbol.iterator] = qs.prototype[Symbol.iterator] = Ys.prototype[Symbol.iterator] = function() {
4277
+ }, $t.prototype[Symbol.iterator] = Fs.prototype[Symbol.iterator] = qs.prototype[Symbol.iterator] = function() {
4290
4278
  return this;
4291
4279
  });
4292
4280
  class Ig {
@@ -4413,7 +4401,7 @@ class oe {
4413
4401
  match the length before `other`.
4414
4402
  */
4415
4403
  composeDesc(e) {
4416
- return this.empty ? e : e.empty ? this : Ks(this, e);
4404
+ return this.empty ? e : e.empty ? this : Ys(this, e);
4417
4405
  }
4418
4406
  /**
4419
4407
  Map this description, which should start with the same document
@@ -4536,7 +4524,7 @@ class Q2 extends oe {
4536
4524
  returned value will represent the change `docA` → `docC`.
4537
4525
  */
4538
4526
  compose(e) {
4539
- return this.empty ? e : e.empty ? this : Ks(this, e, !0);
4527
+ return this.empty ? e : e.empty ? this : Ys(this, e, !0);
4540
4528
  }
4541
4529
  /**
4542
4530
  Given another change set starting in the same document, maps this
@@ -4749,7 +4737,7 @@ function A6(n, e, t, i = !1) {
4749
4737
  }
4750
4738
  }
4751
4739
  }
4752
- function Ks(n, e, t = !1) {
4740
+ function Ys(n, e, t = !1) {
4753
4741
  let i = [], s = t ? [] : null, o = new Kt(n), l = new Kt(e);
4754
4742
  for (let r = !1; ; ) {
4755
4743
  if (o.done && l.done)
@@ -5017,7 +5005,7 @@ class P {
5017
5005
  return new P(e, t);
5018
5006
  }
5019
5007
  }
5020
- function Xs(n, e) {
5008
+ function Ks(n, e) {
5021
5009
  for (let t of n.ranges)
5022
5010
  if (t.to > e)
5023
5011
  throw new RangeError("Selection points outside of document");
@@ -5211,7 +5199,7 @@ class r0 {
5211
5199
  }
5212
5200
  const $e = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
5213
5201
  function zt(n) {
5214
- return (e) => new Qs(e, n);
5202
+ return (e) => new Xs(e, n);
5215
5203
  }
5216
5204
  const tt = {
5217
5205
  /**
@@ -5239,7 +5227,7 @@ const tt = {
5239
5227
  */
5240
5228
  lowest: /* @__PURE__ */ zt($e.lowest)
5241
5229
  };
5242
- class Qs {
5230
+ class Xs {
5243
5231
  constructor(e, t) {
5244
5232
  this.inner = e, this.prec = t;
5245
5233
  }
@@ -5332,7 +5320,7 @@ function $g(n, e, t) {
5332
5320
  throw new RangeError("Duplicate use of compartment in extensions");
5333
5321
  let h = e.get(l.compartment) || l.inner;
5334
5322
  t.set(l.compartment, h), o(h, r);
5335
- } else if (l instanceof Qs)
5323
+ } else if (l instanceof Xs)
5336
5324
  o(l.inner, l.prec);
5337
5325
  else if (l instanceof r0)
5338
5326
  i[r].push(l), l.provides && o(l.provides, r);
@@ -5362,13 +5350,13 @@ function jt(n, e) {
5362
5350
  function l3(n, e) {
5363
5351
  return e & 1 ? n.config.staticValues[e >> 1] : n.values[e >> 1];
5364
5352
  }
5365
- const Js = /* @__PURE__ */ J.define(), L6 = /* @__PURE__ */ J.define({
5353
+ const Qs = /* @__PURE__ */ J.define(), L6 = /* @__PURE__ */ J.define({
5366
5354
  combine: (n) => n.some((e) => e),
5367
5355
  static: !0
5368
- }), Zs = /* @__PURE__ */ J.define({
5356
+ }), Js = /* @__PURE__ */ J.define({
5369
5357
  combine: (n) => n.length ? n[0] : void 0,
5370
5358
  static: !0
5371
- }), eo = /* @__PURE__ */ J.define(), to = /* @__PURE__ */ J.define(), io = /* @__PURE__ */ J.define(), no = /* @__PURE__ */ J.define({
5359
+ }), Zs = /* @__PURE__ */ J.define(), eo = /* @__PURE__ */ J.define(), to = /* @__PURE__ */ J.define(), io = /* @__PURE__ */ J.define({
5372
5360
  combine: (n) => n.length ? n[0] : !1
5373
5361
  });
5374
5362
  class xe {
@@ -5458,7 +5446,7 @@ m2.reconfigure = /* @__PURE__ */ m2.define();
5458
5446
  m2.appendConfig = /* @__PURE__ */ m2.define();
5459
5447
  class J2 {
5460
5448
  constructor(e, t, i, s, o, l) {
5461
- this.startState = e, this.changes = t, this.selection = i, this.effects = s, this.annotations = o, this.scrollIntoView = l, this._doc = null, this._state = null, i && Xs(i, t.newLength), o.some((r) => r.type == J2.time) || (this.annotations = o.concat(J2.time.of(Date.now())));
5449
+ this.startState = e, this.changes = t, this.selection = i, this.effects = s, this.annotations = o, this.scrollIntoView = l, this._doc = null, this._state = null, i && Ks(i, t.newLength), o.some((r) => r.type == J2.time) || (this.annotations = o.concat(J2.time.of(Date.now())));
5462
5450
  }
5463
5451
  /**
5464
5452
  @internal
@@ -5547,7 +5535,7 @@ function Ug(n, e) {
5547
5535
  !t.length || t[t.length - 1] < o ? t.push(o, l) : t[t.length - 1] < l && (t[t.length - 1] = l);
5548
5536
  }
5549
5537
  }
5550
- function so(n, e, t) {
5538
+ function no(n, e, t) {
5551
5539
  var i;
5552
5540
  let s, o, l;
5553
5541
  return t ? (s = e.changes, o = Q2.empty(e.changes.length), l = n.changes.compose(e.changes)) : (s = e.changes.map(n.changes), o = n.changes.mapDesc(e.changes, !0), l = n.changes.compose(s)), {
@@ -5561,27 +5549,27 @@ function so(n, e, t) {
5561
5549
  function H6(n, e, t) {
5562
5550
  let i = e.selection, s = dt(e.annotations);
5563
5551
  return e.userEvent && (s = s.concat(J2.userEvent.of(e.userEvent))), {
5564
- changes: e.changes instanceof Q2 ? e.changes : Q2.of(e.changes || [], t, n.facet(Zs)),
5552
+ changes: e.changes instanceof Q2 ? e.changes : Q2.of(e.changes || [], t, n.facet(Js)),
5565
5553
  selection: i && (i instanceof P ? i : P.single(i.anchor, i.head)),
5566
5554
  effects: dt(e.effects),
5567
5555
  annotations: s,
5568
5556
  scrollIntoView: !!e.scrollIntoView
5569
5557
  };
5570
5558
  }
5571
- function oo(n, e, t) {
5559
+ function so(n, e, t) {
5572
5560
  let i = H6(n, e.length ? e[0] : {}, n.doc.length);
5573
5561
  e.length && e[0].filter === !1 && (t = !1);
5574
5562
  for (let o = 1; o < e.length; o++) {
5575
5563
  e[o].filter === !1 && (t = !1);
5576
5564
  let l = !!e[o].sequential;
5577
- i = so(i, H6(n, e[o], l ? i.changes.newLength : n.doc.length), l);
5565
+ i = no(i, H6(n, e[o], l ? i.changes.newLength : n.doc.length), l);
5578
5566
  }
5579
5567
  let s = J2.create(n, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView);
5580
5568
  return qg(t ? Fg(s) : s);
5581
5569
  }
5582
5570
  function Fg(n) {
5583
5571
  let e = n.startState, t = !0;
5584
- for (let s of e.facet(eo)) {
5572
+ for (let s of e.facet(Zs)) {
5585
5573
  let o = s(n);
5586
5574
  if (o === !1) {
5587
5575
  t = !1;
@@ -5599,18 +5587,18 @@ function Fg(n) {
5599
5587
  }
5600
5588
  n = J2.create(e, s, n.selection && n.selection.map(o), m2.mapEffects(n.effects, o), n.annotations, n.scrollIntoView);
5601
5589
  }
5602
- let i = e.facet(to);
5590
+ let i = e.facet(eo);
5603
5591
  for (let s = i.length - 1; s >= 0; s--) {
5604
5592
  let o = i[s](n);
5605
- o instanceof J2 ? n = o : Array.isArray(o) && o.length == 1 && o[0] instanceof J2 ? n = o[0] : n = oo(e, dt(o), !1);
5593
+ o instanceof J2 ? n = o : Array.isArray(o) && o.length == 1 && o[0] instanceof J2 ? n = o[0] : n = so(e, dt(o), !1);
5606
5594
  }
5607
5595
  return n;
5608
5596
  }
5609
5597
  function qg(n) {
5610
- let e = n.startState, t = e.facet(io), i = n;
5598
+ let e = n.startState, t = e.facet(to), i = n;
5611
5599
  for (let s = t.length - 1; s >= 0; s--) {
5612
5600
  let o = t[s](n);
5613
- o && Object.keys(o).length && (i = so(i, H6(e, o, n.changes.newLength), !0));
5601
+ o && Object.keys(o).length && (i = no(i, H6(e, o, n.changes.newLength), !0));
5614
5602
  }
5615
5603
  return i == n ? n : J2.create(e, n.changes, n.selection, i.effects, i.annotations, i.scrollIntoView);
5616
5604
  }
@@ -5681,7 +5669,7 @@ class y2 {
5681
5669
  specs take precedence over earlier ones.
5682
5670
  */
5683
5671
  update(...e) {
5684
- return oo(this, e, !0);
5672
+ return so(this, e, !0);
5685
5673
  }
5686
5674
  /**
5687
5675
  @internal
@@ -5808,7 +5796,7 @@ class y2 {
5808
5796
  */
5809
5797
  static create(e = {}) {
5810
5798
  let t = o3.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof C2 ? e.doc : C2.of((e.doc || "").split(t.staticFacet(y2.lineSeparator) || P6)), s = e.selection ? e.selection instanceof P ? e.selection : P.single(e.selection.anchor, e.selection.head) : P.single(0);
5811
- return Xs(s, i.length), t.staticFacet(L6) || (s = s.asSingle()), new y2(t, i, s, t.dynamicSlots.map(() => null), (o, l) => l.create(o), null);
5799
+ return Ks(s, i.length), t.staticFacet(L6) || (s = s.asSingle()), new y2(t, i, s, t.dynamicSlots.map(() => null), (o, l) => l.create(o), null);
5812
5800
  }
5813
5801
  /**
5814
5802
  The size (in columns) of a tab in the document, determined by
@@ -5830,7 +5818,7 @@ class y2 {
5830
5818
  [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only.
5831
5819
  */
5832
5820
  get readOnly() {
5833
- return this.facet(no);
5821
+ return this.facet(io);
5834
5822
  }
5835
5823
  /**
5836
5824
  Look up a translation for the given phrase (via the
@@ -5873,7 +5861,7 @@ class y2 {
5873
5861
  */
5874
5862
  languageDataAt(e, t, i = -1) {
5875
5863
  let s = [];
5876
- for (let o of this.facet(Js))
5864
+ for (let o of this.facet(Qs))
5877
5865
  for (let l of o(this, t, i))
5878
5866
  Object.prototype.hasOwnProperty.call(l, e) && s.push(l[e]);
5879
5867
  return s;
@@ -5919,18 +5907,18 @@ y2.allowMultipleSelections = L6;
5919
5907
  y2.tabSize = /* @__PURE__ */ J.define({
5920
5908
  combine: (n) => n.length ? n[0] : 4
5921
5909
  });
5922
- y2.lineSeparator = Zs;
5923
- y2.readOnly = no;
5910
+ y2.lineSeparator = Js;
5911
+ y2.readOnly = io;
5924
5912
  y2.phrases = /* @__PURE__ */ J.define({
5925
5913
  compare(n, e) {
5926
5914
  let t = Object.keys(n), i = Object.keys(e);
5927
5915
  return t.length == i.length && t.every((s) => n[s] == e[s]);
5928
5916
  }
5929
5917
  });
5930
- y2.languageData = Js;
5931
- y2.changeFilter = eo;
5932
- y2.transactionFilter = to;
5933
- y2.transactionExtender = io;
5918
+ y2.languageData = Qs;
5919
+ y2.changeFilter = Zs;
5920
+ y2.transactionFilter = eo;
5921
+ y2.transactionExtender = to;
5934
5922
  H3.reconfigure = /* @__PURE__ */ m2.define();
5935
5923
  function re(n, e, t = {}) {
5936
5924
  let i = {};
@@ -5969,7 +5957,7 @@ class Xe {
5969
5957
  Xe.prototype.startSide = Xe.prototype.endSide = 0;
5970
5958
  Xe.prototype.point = !1;
5971
5959
  Xe.prototype.mapMode = g0.TrackDel;
5972
- let G6 = class lo {
5960
+ let G6 = class oo {
5973
5961
  constructor(e, t, i) {
5974
5962
  this.from = e, this.to = t, this.value = i;
5975
5963
  }
@@ -5977,7 +5965,7 @@ let G6 = class lo {
5977
5965
  @internal
5978
5966
  */
5979
5967
  static create(e, t, i) {
5980
- return new lo(e, t, i);
5968
+ return new oo(e, t, i);
5981
5969
  }
5982
5970
  };
5983
5971
  function R6(n, e) {
@@ -6072,7 +6060,7 @@ class S2 {
6072
6060
  return this;
6073
6061
  if (i && (t = t.slice().sort(R6)), this.isEmpty)
6074
6062
  return t.length ? S2.of(t) : this;
6075
- let r = new ro(this, null, -1).goto(0), a = 0, h = [], c = new ge();
6063
+ let r = new lo(this, null, -1).goto(0), a = 0, h = [], c = new ge();
6076
6064
  for (; r.value || a < t.length; )
6077
6065
  if (a < t.length && (r.from - t[a].from || r.startSide - t[a].value.startSide) >= 0) {
6078
6066
  let d = t[a++];
@@ -6287,7 +6275,7 @@ function Ii(n, e, t) {
6287
6275
  }
6288
6276
  return s;
6289
6277
  }
6290
- class ro {
6278
+ class lo {
6291
6279
  constructor(e, t, i, s = 0) {
6292
6280
  this.layer = e, this.skip = t, this.minPoint = i, this.rank = s;
6293
6281
  }
@@ -6351,7 +6339,7 @@ class Xt {
6351
6339
  let s = [];
6352
6340
  for (let o = 0; o < e.length; o++)
6353
6341
  for (let l = e[o]; !l.isEmpty; l = l.nextLayer)
6354
- l.maxPoint >= i && s.push(new ro(l, t, i, o));
6342
+ l.maxPoint >= i && s.push(new lo(l, t, i, o));
6355
6343
  return s.length == 1 ? s[0] : new Xt(s);
6356
6344
  }
6357
6345
  get startSide() {
@@ -6722,16 +6710,16 @@ function A2() {
6722
6710
  }
6723
6711
  e++;
6724
6712
  }
6725
- for (; e < arguments.length; e++) ao(n, arguments[e]);
6713
+ for (; e < arguments.length; e++) ro(n, arguments[e]);
6726
6714
  return n;
6727
6715
  }
6728
- function ao(n, e) {
6716
+ function ro(n, e) {
6729
6717
  if (typeof e == "string")
6730
6718
  n.appendChild(document.createTextNode(e));
6731
6719
  else if (e != null) if (e.nodeType != null)
6732
6720
  n.appendChild(e);
6733
6721
  else if (Array.isArray(e))
6734
- for (var t = 0; t < e.length; t++) ao(n, e[t]);
6722
+ for (var t = 0; t < e.length; t++) ro(n, e[t]);
6735
6723
  else
6736
6724
  throw new RangeError("Unsupported child node: " + e);
6737
6725
  }
@@ -6805,7 +6793,7 @@ function nm(n) {
6805
6793
  bottom: n.innerHeight
6806
6794
  };
6807
6795
  }
6808
- function co(n, e) {
6796
+ function ao(n, e) {
6809
6797
  let t = e.width / n.offsetWidth, i = e.height / n.offsetHeight;
6810
6798
  return (t > 0.995 && t < 1.005 || !isFinite(t) || Math.abs(e.width - n.offsetWidth) < 1) && (t = 1), (i > 0.995 && i < 1.005 || !isFinite(i) || Math.abs(e.height - n.offsetHeight) < 1) && (i = 1), { scaleX: t, scaleY: i };
6811
6799
  }
@@ -6822,7 +6810,7 @@ function sm(n, e, t, i, s, o, l, r) {
6822
6810
  continue;
6823
6811
  }
6824
6812
  let y = c.getBoundingClientRect();
6825
- ({ scaleX: p, scaleY: g } = co(c, y)), u = {
6813
+ ({ scaleX: p, scaleY: g } = ao(c, y)), u = {
6826
6814
  left: y.left,
6827
6815
  right: y.left + c.clientWidth * p,
6828
6816
  top: y.top,
@@ -6896,7 +6884,7 @@ class lm {
6896
6884
  }
6897
6885
  }
6898
6886
  let nt = null;
6899
- function ho(n) {
6887
+ function co(n) {
6900
6888
  if (n.setActive)
6901
6889
  return n.setActive();
6902
6890
  if (nt)
@@ -6937,7 +6925,7 @@ function rm(n) {
6937
6925
  }
6938
6926
  return null;
6939
6927
  }
6940
- function uo(n) {
6928
+ function ho(n) {
6941
6929
  for (; n.attributes.length; )
6942
6930
  n.removeAttributeNode(n.attributes[0]);
6943
6931
  }
@@ -6957,10 +6945,10 @@ function am(n, e) {
6957
6945
  i = Qe(t), t = t.parentNode;
6958
6946
  }
6959
6947
  }
6960
- function fo(n) {
6948
+ function uo(n) {
6961
6949
  return n.scrollTop > Math.max(1, n.scrollHeight - n.clientHeight - 4);
6962
6950
  }
6963
- function po(n, e) {
6951
+ function fo(n, e) {
6964
6952
  for (let t = n, i = e; ; ) {
6965
6953
  if (t.nodeType == 3 && i > 0)
6966
6954
  return { node: t, offset: i };
@@ -6974,7 +6962,7 @@ function po(n, e) {
6974
6962
  return null;
6975
6963
  }
6976
6964
  }
6977
- function go(n, e) {
6965
+ function po(n, e) {
6978
6966
  for (let t = n, i = e; ; ) {
6979
6967
  if (t.nodeType == 3 && i < t.nodeValue.length)
6980
6968
  return { node: t, offset: i };
@@ -7138,7 +7126,7 @@ class B2 {
7138
7126
  return !1;
7139
7127
  }
7140
7128
  childCursor(e = this.length) {
7141
- return new mo(this.children, e, this.children.length);
7129
+ return new go(this.children, e, this.children.length);
7142
7130
  }
7143
7131
  childPos(e, t = 1) {
7144
7132
  return this.childCursor().findPos(e, t);
@@ -7185,7 +7173,7 @@ function Fi(n) {
7185
7173
  let e = n.nextSibling;
7186
7174
  return n.parentNode.removeChild(n), e;
7187
7175
  }
7188
- class mo {
7176
+ class go {
7189
7177
  constructor(e, t, i) {
7190
7178
  this.children = e, this.pos = t, this.i = i, this.off = 0;
7191
7179
  }
@@ -7198,7 +7186,7 @@ class mo {
7198
7186
  }
7199
7187
  }
7200
7188
  }
7201
- function vo(n, e, t, i, s, o, l, r, a) {
7189
+ function mo(n, e, t, i, s, o, l, r, a) {
7202
7190
  let { children: h } = n, c = h.length ? h[e] : null, d = o.length ? o[o.length - 1] : null, u = d ? d.breakAfter : l;
7203
7191
  if (!(e == i && c && !l && !u && o.length < 2 && c.merge(t, s, o.length ? d : null, t == 0, r, a))) {
7204
7192
  if (i < h.length) {
@@ -7215,27 +7203,27 @@ function vo(n, e, t, i, s, o, l, r, a) {
7215
7203
  !o.length && e && i < h.length && !h[e - 1].breakAfter && h[i].merge(0, 0, h[e - 1], !1, r, a) && e--, (e < i || o.length) && n.replaceChildren(e, i, o);
7216
7204
  }
7217
7205
  }
7218
- function wo(n, e, t, i, s, o) {
7206
+ function vo(n, e, t, i, s, o) {
7219
7207
  let l = n.childCursor(), { i: r, off: a } = l.findPos(t, 1), { i: h, off: c } = l.findPos(e, -1), d = e - t;
7220
7208
  for (let u of i)
7221
7209
  d += u.length;
7222
- n.length += d, vo(n, h, c, r, a, i, 0, s, o);
7210
+ n.length += d, mo(n, h, c, r, a, i, 0, s, o);
7223
7211
  }
7224
7212
  let _0 = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, F6 = typeof document < "u" ? document : { documentElement: { style: {} } };
7225
- const q6 = /* @__PURE__ */ /Edge\/(\d+)/.exec(_0.userAgent), xo = /* @__PURE__ */ /MSIE \d/.test(_0.userAgent), Y6 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_0.userAgent), G3 = !!(xo || Y6 || q6), qi = !G3 && /* @__PURE__ */ /gecko\/(\d+)/i.test(_0.userAgent), t6 = !G3 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(_0.userAgent), cm = "webkitFontSmoothing" in F6.documentElement.style, bo = !G3 && /* @__PURE__ */ /Apple Computer/.test(_0.vendor), Yi = bo && (/* @__PURE__ */ /Mobile\/\w+/.test(_0.userAgent) || _0.maxTouchPoints > 2);
7213
+ const q6 = /* @__PURE__ */ /Edge\/(\d+)/.exec(_0.userAgent), wo = /* @__PURE__ */ /MSIE \d/.test(_0.userAgent), Y6 = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_0.userAgent), G3 = !!(wo || Y6 || q6), qi = !G3 && /* @__PURE__ */ /gecko\/(\d+)/i.test(_0.userAgent), t6 = !G3 && /* @__PURE__ */ /Chrome\/(\d+)/.exec(_0.userAgent), cm = "webkitFontSmoothing" in F6.documentElement.style, xo = !G3 && /* @__PURE__ */ /Apple Computer/.test(_0.vendor), Yi = xo && (/* @__PURE__ */ /Mobile\/\w+/.test(_0.userAgent) || _0.maxTouchPoints > 2);
7226
7214
  var K = {
7227
7215
  mac: Yi || /* @__PURE__ */ /Mac/.test(_0.platform),
7228
7216
  windows: /* @__PURE__ */ /Win/.test(_0.platform),
7229
7217
  linux: /* @__PURE__ */ /Linux|X11/.test(_0.platform),
7230
7218
  ie: G3,
7231
- ie_version: xo ? F6.documentMode || 6 : Y6 ? +Y6[1] : q6 ? +q6[1] : 0,
7219
+ ie_version: wo ? F6.documentMode || 6 : Y6 ? +Y6[1] : q6 ? +q6[1] : 0,
7232
7220
  gecko: qi,
7233
7221
  gecko_version: qi ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(_0.userAgent) || [0, 0])[1] : 0,
7234
7222
  chrome: !!t6,
7235
7223
  chrome_version: t6 ? +t6[1] : 0,
7236
7224
  ios: Yi,
7237
7225
  android: /* @__PURE__ */ /Android\b/.test(_0.userAgent),
7238
- safari: bo,
7226
+ safari: xo,
7239
7227
  webkit_version: cm ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(_0.userAgent) || [0, 0])[1] : 0,
7240
7228
  tabSize: F6.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
7241
7229
  };
@@ -7283,7 +7271,7 @@ class me extends B2 {
7283
7271
  s.setParent(this);
7284
7272
  }
7285
7273
  setAttrs(e) {
7286
- if (uo(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs)
7274
+ if (ho(e), this.mark.class && (e.className = this.mark.class), this.mark.attrs)
7287
7275
  for (let t in this.mark.attrs)
7288
7276
  e.setAttribute(t, this.mark.attrs[t]);
7289
7277
  return e;
@@ -7298,7 +7286,7 @@ class me extends B2 {
7298
7286
  this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, t);
7299
7287
  }
7300
7288
  merge(e, t, i, s, o, l) {
7301
- return i && (!(i instanceof me && i.mark.eq(this.mark)) || e && o <= 0 || t < this.length && l <= 0) ? !1 : (wo(this, e, t, i ? i.children.slice() : [], o - 1, l - 1), this.markDirty(), !0);
7289
+ return i && (!(i instanceof me && i.mark.eq(this.mark)) || e && o <= 0 || t < this.length && l <= 0) ? !1 : (vo(this, e, t, i ? i.children.slice() : [], o - 1, l - 1), this.markDirty(), !0);
7302
7290
  }
7303
7291
  split(e) {
7304
7292
  let t = [], i = 0, s = -1, o = 0;
@@ -7310,10 +7298,10 @@ class me extends B2 {
7310
7298
  return this.length = e, s > -1 && (this.children.length = s, this.markDirty()), new me(this.mark, t, l);
7311
7299
  }
7312
7300
  domAtPos(e) {
7313
- return _o(this, e);
7301
+ return bo(this, e);
7314
7302
  }
7315
7303
  coordsAt(e, t) {
7316
- return So(this, e, t);
7304
+ return yo(this, e, t);
7317
7305
  }
7318
7306
  }
7319
7307
  function dm(n, e, t) {
@@ -7441,7 +7429,7 @@ class bt extends B2 {
7441
7429
  }
7442
7430
  }
7443
7431
  F0.prototype.children = De.prototype.children = bt.prototype.children = L4;
7444
- function _o(n, e) {
7432
+ function bo(n, e) {
7445
7433
  let t = n.dom, { children: i } = n, s = 0;
7446
7434
  for (let o = 0; s < i.length; s++) {
7447
7435
  let l = i[s], r = o + l.length;
@@ -7465,11 +7453,11 @@ function _o(n, e) {
7465
7453
  }
7466
7454
  return new h0(t, 0);
7467
7455
  }
7468
- function yo(n, e, t) {
7456
+ function _o(n, e, t) {
7469
7457
  let i, { children: s } = n;
7470
- t > 0 && e instanceof me && s.length && (i = s[s.length - 1]) instanceof me && i.mark.eq(e.mark) ? yo(i, e.children[0], t - 1) : (s.push(e), e.setParent(n)), n.length += e.length;
7458
+ t > 0 && e instanceof me && s.length && (i = s[s.length - 1]) instanceof me && i.mark.eq(e.mark) ? _o(i, e.children[0], t - 1) : (s.push(e), e.setParent(n)), n.length += e.length;
7471
7459
  }
7472
- function So(n, e, t) {
7460
+ function yo(n, e, t) {
7473
7461
  let i = null, s = -1, o = null, l = -1;
7474
7462
  function r(h, c) {
7475
7463
  for (let d = 0, u = 0; d < h.children.length && u <= c; d++) {
@@ -7654,7 +7642,7 @@ class d2 extends Xe {
7654
7642
  if (e.isBlockGap)
7655
7643
  i = -5e8, s = 4e8;
7656
7644
  else {
7657
- let { start: o, end: l } = Co(e, t);
7645
+ let { start: o, end: l } = So(e, t);
7658
7646
  i = (o ? t ? -3e8 : -1 : 5e8) - 1, s = (l ? t ? 2e8 : 1 : -6e8) + 1;
7659
7647
  }
7660
7648
  return new Ae(e, i, s, t, e.widget || null, !0);
@@ -7684,7 +7672,7 @@ class d2 extends Xe {
7684
7672
  d2.none = S2.empty;
7685
7673
  class f1 extends d2 {
7686
7674
  constructor(e) {
7687
- let { start: t, end: i } = Co(e);
7675
+ let { start: t, end: i } = So(e);
7688
7676
  super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
7689
7677
  }
7690
7678
  eq(e) {
@@ -7736,7 +7724,7 @@ class Ae extends d2 {
7736
7724
  }
7737
7725
  }
7738
7726
  Ae.prototype.point = !0;
7739
- function Co(n, e = !1) {
7727
+ function So(n, e = !1) {
7740
7728
  let { inclusiveStart: t, inclusiveEnd: i } = n;
7741
7729
  return t == null && (t = n.inclusive), i == null && (i = n.inclusive), { start: t ?? e, end: i ?? e };
7742
7730
  }
@@ -7758,7 +7746,7 @@ class F2 extends B2 {
7758
7746
  return !1;
7759
7747
  this.dom || i.transferDOM(this);
7760
7748
  }
7761
- return s && this.setDeco(i ? i.attrs : null), wo(this, e, t, i ? i.children.slice() : [], o, l), !0;
7749
+ return s && this.setDeco(i ? i.attrs : null), vo(this, e, t, i ? i.children.slice() : [], o, l), !0;
7762
7750
  }
7763
7751
  split(e) {
7764
7752
  let t = new F2();
@@ -7779,7 +7767,7 @@ class F2 extends B2 {
7779
7767
  a3(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
7780
7768
  }
7781
7769
  append(e, t) {
7782
- yo(this, e, t);
7770
+ _o(this, e, t);
7783
7771
  }
7784
7772
  // Only called when building a line view in ContentBuilder
7785
7773
  addLineDeco(e) {
@@ -7787,14 +7775,14 @@ class F2 extends B2 {
7787
7775
  t && (this.attrs = K6(t, this.attrs || {})), i && (this.attrs = K6({ class: i }, this.attrs || {}));
7788
7776
  }
7789
7777
  domAtPos(e) {
7790
- return _o(this, e);
7778
+ return bo(this, e);
7791
7779
  }
7792
7780
  reuseDOM(e) {
7793
7781
  e.nodeName == "DIV" && (this.setDOM(e), this.flags |= 6);
7794
7782
  }
7795
7783
  sync(e, t) {
7796
7784
  var i;
7797
- this.dom ? this.flags & 4 && (uo(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (X6(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
7785
+ this.dom ? this.flags & 4 && (ho(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (X6(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
7798
7786
  let s = this.dom.lastChild;
7799
7787
  for (; s && B2.get(s) instanceof me; )
7800
7788
  s = s.lastChild;
@@ -7822,7 +7810,7 @@ class F2 extends B2 {
7822
7810
  } : null;
7823
7811
  }
7824
7812
  coordsAt(e, t) {
7825
- let i = So(this, e, t);
7813
+ let i = yo(this, e, t);
7826
7814
  if (!this.children.length && i && this.parent) {
7827
7815
  let { heightOracle: s } = this.parent.view.viewState, o = i.bottom - i.top;
7828
7816
  if (Math.abs(o - s.lineHeight) < 2 && s.textHeight < o) {
@@ -8028,18 +8016,18 @@ var G2 = /* @__PURE__ */ function(n) {
8028
8016
  return n[n.LTR = 0] = "LTR", n[n.RTL = 1] = "RTL", n;
8029
8017
  }(G2 || (G2 = {}));
8030
8018
  const Ze = G2.LTR, H4 = G2.RTL;
8031
- function ko(n) {
8019
+ function Co(n) {
8032
8020
  let e = [];
8033
8021
  for (let t = 0; t < n.length; t++)
8034
8022
  e.push(1 << +n[t]);
8035
8023
  return e;
8036
8024
  }
8037
- const mm = /* @__PURE__ */ ko("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), vm = /* @__PURE__ */ ko("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), J6 = /* @__PURE__ */ Object.create(null), X0 = [];
8025
+ const mm = /* @__PURE__ */ Co("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), vm = /* @__PURE__ */ Co("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), J6 = /* @__PURE__ */ Object.create(null), X0 = [];
8038
8026
  for (let n of ["()", "[]", "{}"]) {
8039
8027
  let e = /* @__PURE__ */ n.charCodeAt(0), t = /* @__PURE__ */ n.charCodeAt(1);
8040
8028
  J6[e] = t, J6[t] = -e;
8041
8029
  }
8042
- function Do(n) {
8030
+ function ko(n) {
8043
8031
  return n <= 247 ? mm[n] : 1424 <= n && n <= 1524 ? 2 : 1536 <= n && n <= 1785 ? vm[n - 1536] : 1774 <= n && n <= 2220 ? 4 : 8192 <= n && n <= 8204 ? 256 : 64336 <= n && n <= 65023 ? 4 : 1;
8044
8032
  }
8045
8033
  const wm = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;
@@ -8086,12 +8074,12 @@ class Oe {
8086
8074
  return o;
8087
8075
  }
8088
8076
  }
8089
- function Oo(n, e) {
8077
+ function Do(n, e) {
8090
8078
  if (n.length != e.length)
8091
8079
  return !1;
8092
8080
  for (let t = 0; t < n.length; t++) {
8093
8081
  let i = n[t], s = e[t];
8094
- if (i.from != s.from || i.to != s.to || i.direction != s.direction || !Oo(i.inner, s.inner))
8082
+ if (i.from != s.from || i.to != s.to || i.direction != s.direction || !Do(i.inner, s.inner))
8095
8083
  return !1;
8096
8084
  }
8097
8085
  return !0;
@@ -8101,7 +8089,7 @@ function xm(n, e, t, i, s) {
8101
8089
  for (let o = 0; o <= i.length; o++) {
8102
8090
  let l = o ? i[o - 1].to : e, r = o < i.length ? i[o].from : t, a = o ? 256 : s;
8103
8091
  for (let h = l, c = a, d = a; h < r; h++) {
8104
- let u = Do(n.charCodeAt(h));
8092
+ let u = ko(n.charCodeAt(h));
8105
8093
  u == 512 ? u = c : u == 8 && d == 4 && (u = 16), E2[h] = u == 4 ? 2 : u, u & 7 && (d = u), c = u;
8106
8094
  }
8107
8095
  for (let h = l, c = a, d = a; h < r; h++) {
@@ -8273,17 +8261,17 @@ function ym(n, e, t) {
8273
8261
  if (!n)
8274
8262
  return [new Oe(0, 0, e == H4 ? 1 : 0)];
8275
8263
  if (e == Ze && !t.length && !wm.test(n))
8276
- return Mo(n.length);
8264
+ return Oo(n.length);
8277
8265
  if (t.length)
8278
8266
  for (; n.length > E2.length; )
8279
8267
  E2[E2.length] = 256;
8280
8268
  let i = [], s = e == Ze ? 0 : 1;
8281
8269
  return e4(n, s, s, t, 0, n.length, i), i;
8282
8270
  }
8283
- function Mo(n) {
8271
+ function Oo(n) {
8284
8272
  return [new Oe(0, n, 0)];
8285
8273
  }
8286
- let To = "";
8274
+ let Mo = "";
8287
8275
  function Sm(n, e, t, i, s) {
8288
8276
  var o;
8289
8277
  let l = i.head - n.from, r = Oe.find(e, l, (o = i.bidiLevel) !== null && o !== void 0 ? o : -1, i.assoc), a = e[r], h = a.side(s, t);
@@ -8294,13 +8282,13 @@ function Sm(n, e, t, i, s) {
8294
8282
  a = e[r = u], l = a.side(!s, t), h = a.side(s, t);
8295
8283
  }
8296
8284
  let c = l0(n.text, l, a.forward(s, t));
8297
- (c < a.from || c > a.to) && (c = h), To = n.text.slice(Math.min(l, c), Math.max(l, c));
8285
+ (c < a.from || c > a.to) && (c = h), Mo = n.text.slice(Math.min(l, c), Math.max(l, c));
8298
8286
  let d = r == (s ? e.length - 1 : 0) ? null : e[r + (s ? 1 : -1)];
8299
8287
  return d && c == h && d.level + (s ? 0 : 1) < a.level ? P.cursor(d.side(!s, t) + n.from, d.forward(s, t) ? 1 : -1, d.level) : P.cursor(c + n.from, a.forward(s, t) ? -1 : 1, a.level);
8300
8288
  }
8301
8289
  function Cm(n, e, t) {
8302
8290
  for (let i = e; i < t; i++) {
8303
- let s = Do(n.charCodeAt(i));
8291
+ let s = ko(n.charCodeAt(i));
8304
8292
  if (s == 1)
8305
8293
  return Ze;
8306
8294
  if (s == 2 || s == 4)
@@ -8308,11 +8296,11 @@ function Cm(n, e, t) {
8308
8296
  }
8309
8297
  return Ze;
8310
8298
  }
8311
- const zo = /* @__PURE__ */ J.define(), Po = /* @__PURE__ */ J.define(), Vo = /* @__PURE__ */ J.define(), Ao = /* @__PURE__ */ J.define(), t4 = /* @__PURE__ */ J.define(), Eo = /* @__PURE__ */ J.define(), Bo = /* @__PURE__ */ J.define(), I4 = /* @__PURE__ */ J.define(), G4 = /* @__PURE__ */ J.define(), Lo = /* @__PURE__ */ J.define({
8299
+ const To = /* @__PURE__ */ J.define(), zo = /* @__PURE__ */ J.define(), Po = /* @__PURE__ */ J.define(), Vo = /* @__PURE__ */ J.define(), t4 = /* @__PURE__ */ J.define(), Ao = /* @__PURE__ */ J.define(), Eo = /* @__PURE__ */ J.define(), I4 = /* @__PURE__ */ J.define(), G4 = /* @__PURE__ */ J.define(), Bo = /* @__PURE__ */ J.define({
8312
8300
  combine: (n) => n.some((e) => e)
8313
- }), Ho = /* @__PURE__ */ J.define({
8301
+ }), Lo = /* @__PURE__ */ J.define({
8314
8302
  combine: (n) => n.some((e) => e)
8315
- }), Io = /* @__PURE__ */ J.define();
8303
+ }), Ho = /* @__PURE__ */ J.define();
8316
8304
  class ft {
8317
8305
  constructor(e, t = "nearest", i = "nearest", s = 5, o = 5, l = !1) {
8318
8306
  this.range = e, this.y = t, this.x = i, this.yMargin = s, this.xMargin = o, this.isSnapshot = l;
@@ -8324,9 +8312,9 @@ class ft {
8324
8312
  return this.range.to <= e.doc.length ? this : new ft(P.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
8325
8313
  }
8326
8314
  }
8327
- const k1 = /* @__PURE__ */ m2.define({ map: (n, e) => n.map(e) }), Go = /* @__PURE__ */ m2.define();
8315
+ const k1 = /* @__PURE__ */ m2.define({ map: (n, e) => n.map(e) }), Io = /* @__PURE__ */ m2.define();
8328
8316
  function S0(n, e, t) {
8329
- let i = n.facet(Ao);
8317
+ let i = n.facet(Vo);
8330
8318
  i.length ? i[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
8331
8319
  }
8332
8320
  const de = /* @__PURE__ */ J.define({ combine: (n) => n.length ? n[0] : !0 });
@@ -8417,9 +8405,9 @@ class i6 {
8417
8405
  this.spec = this.value = null;
8418
8406
  }
8419
8407
  }
8420
- const Ro = /* @__PURE__ */ J.define(), R4 = /* @__PURE__ */ J.define(), e1 = /* @__PURE__ */ J.define(), No = /* @__PURE__ */ J.define(), N4 = /* @__PURE__ */ J.define(), $o = /* @__PURE__ */ J.define();
8408
+ const Go = /* @__PURE__ */ J.define(), R4 = /* @__PURE__ */ J.define(), e1 = /* @__PURE__ */ J.define(), Ro = /* @__PURE__ */ J.define(), N4 = /* @__PURE__ */ J.define(), No = /* @__PURE__ */ J.define();
8421
8409
  function Xi(n, e) {
8422
- let t = n.state.facet($o);
8410
+ let t = n.state.facet(No);
8423
8411
  if (!t.length)
8424
8412
  return t;
8425
8413
  let i = t.map((o) => o instanceof Function ? o(n) : o), s = [];
@@ -8440,10 +8428,10 @@ function Xi(n, e) {
8440
8428
  }
8441
8429
  }), s;
8442
8430
  }
8443
- const jo = /* @__PURE__ */ J.define();
8431
+ const $o = /* @__PURE__ */ J.define();
8444
8432
  function $4(n) {
8445
8433
  let e = 0, t = 0, i = 0, s = 0;
8446
- for (let o of n.state.facet(jo)) {
8434
+ for (let o of n.state.facet($o)) {
8447
8435
  let l = o(n);
8448
8436
  l && (l.left != null && (e = Math.max(e, l.left)), l.right != null && (t = Math.max(t, l.right)), l.top != null && (i = Math.max(i, l.top)), l.bottom != null && (s = Math.max(s, l.bottom)));
8449
8437
  }
@@ -8615,7 +8603,7 @@ class Qi extends B2 {
8615
8603
  } else
8616
8604
  ({ content: u, breakAtStart: f, openStart: p, openEnd: g } = Ut.build(this.view.state.doc, c, d, this.decorations, this.dynamicDecorationMap));
8617
8605
  let { i: m, off: v } = o.findPos(h, 1), { i: y, off: O } = o.findPos(a, -1);
8618
- vo(this, y, O, m, v, u, f, p, g);
8606
+ mo(this, y, O, m, v, u, f, p, g);
8619
8607
  }
8620
8608
  i && this.fixCompositionDOM(i);
8621
8609
  }
@@ -8623,7 +8611,7 @@ class Qi extends B2 {
8623
8611
  this.editContextFormatting = this.editContextFormatting.map(e.changes);
8624
8612
  for (let t of e.transactions)
8625
8613
  for (let i of t.effects)
8626
- i.is(Go) && (this.editContextFormatting = i.value);
8614
+ i.is(Io) && (this.editContextFormatting = i.value);
8627
8615
  }
8628
8616
  compositionView(e) {
8629
8617
  let t = new F0(e.text.nodeValue);
@@ -8667,7 +8655,7 @@ class Qi extends B2 {
8667
8655
  if (K.gecko) {
8668
8656
  let u = Mm(a.node, a.offset);
8669
8657
  if (u && u != 3) {
8670
- let f = (u == 1 ? po : go)(a.node, a.offset);
8658
+ let f = (u == 1 ? fo : po)(a.node, a.offset);
8671
8659
  f && (a = new h0(f.node, f.offset));
8672
8660
  }
8673
8661
  }
@@ -8836,7 +8824,7 @@ class Qi extends B2 {
8836
8824
  }
8837
8825
  childCursor(e = this.length) {
8838
8826
  let t = this.children.length;
8839
- return t && (e -= this.children[--t].length), new mo(this.children, e, t);
8827
+ return t && (e -= this.children[--t].length), new go(this.children, e, t);
8840
8828
  }
8841
8829
  computeBlockGapDeco() {
8842
8830
  let e = [], t = this.view.viewState;
@@ -8858,7 +8846,7 @@ class Qi extends B2 {
8858
8846
  return d2.set(e);
8859
8847
  }
8860
8848
  updateDeco() {
8861
- let e = 1, t = this.view.state.facet(e1).map((o) => (this.dynamicDecorationMap[e++] = typeof o == "function") ? o(this.view) : o), i = !1, s = this.view.state.facet(No).map((o, l) => {
8849
+ let e = 1, t = this.view.state.facet(e1).map((o) => (this.dynamicDecorationMap[e++] = typeof o == "function") ? o(this.view) : o), i = !1, s = this.view.state.facet(Ro).map((o, l) => {
8862
8850
  let r = typeof o == "function";
8863
8851
  return r && (i = !0), r ? o(this.view) : o;
8864
8852
  });
@@ -8877,7 +8865,7 @@ class Qi extends B2 {
8877
8865
  this.view.scrollDOM.scrollTop = h.top - e.yMargin, this.view.scrollDOM.scrollLeft = e.xMargin;
8878
8866
  return;
8879
8867
  }
8880
- for (let h of this.view.state.facet(Io))
8868
+ for (let h of this.view.state.facet(Ho))
8881
8869
  try {
8882
8870
  if (h(this.view, e.range, e))
8883
8871
  return !0;
@@ -8905,11 +8893,11 @@ class Qi extends B2 {
8905
8893
  function Dm(n) {
8906
8894
  return n.node.nodeType == 1 && n.node.firstChild && (n.offset == 0 || n.node.childNodes[n.offset - 1].contentEditable == "false") && (n.offset == n.node.childNodes.length || n.node.childNodes[n.offset].contentEditable == "false");
8907
8895
  }
8908
- function Wo(n, e) {
8896
+ function jo(n, e) {
8909
8897
  let t = n.observer.selectionRange;
8910
8898
  if (!t.focusNode)
8911
8899
  return null;
8912
- let i = po(t.focusNode, t.focusOffset), s = go(t.focusNode, t.focusOffset), o = i || s;
8900
+ let i = fo(t.focusNode, t.focusOffset), s = po(t.focusNode, t.focusOffset), o = i || s;
8913
8901
  if (s && i && s.node != i.node) {
8914
8902
  let r = B2.get(s.node);
8915
8903
  if (!r || r instanceof F0 && r.text != s.node.nodeValue)
@@ -8925,7 +8913,7 @@ function Wo(n, e) {
8925
8913
  return { from: l, to: l + o.node.nodeValue.length, node: o.node };
8926
8914
  }
8927
8915
  function Om(n, e, t) {
8928
- let i = Wo(n, t);
8916
+ let i = jo(n, t);
8929
8917
  if (!i)
8930
8918
  return null;
8931
8919
  let { node: s, from: o, to: l } = i, r = s.nodeValue;
@@ -9063,7 +9051,7 @@ function en(n, e, t) {
9063
9051
  }
9064
9052
  return { node: n, offset: s > -1 ? s : l > 0 ? n.nodeValue.length : 0 };
9065
9053
  }
9066
- function Uo(n, e, t, i = -1) {
9054
+ function Wo(n, e, t, i = -1) {
9067
9055
  var s, o;
9068
9056
  let l = n.contentDOM.getBoundingClientRect(), r = l.top + n.viewState.paddingTop, a, { docHeight: h } = n.viewState, { x: c, y: d } = e, u = d - r;
9069
9057
  if (u < 0)
@@ -9184,7 +9172,7 @@ function Im(n, e, t, i) {
9184
9172
  function nn(n, e, t, i) {
9185
9173
  let s = n.state.doc.lineAt(e.head), o = n.bidiSpans(s), l = n.textDirectionAt(s.from);
9186
9174
  for (let r = e, a = null; ; ) {
9187
- let h = Sm(s, o, l, r, t), c = To;
9175
+ let h = Sm(s, o, l, r, t), c = Mo;
9188
9176
  if (!h) {
9189
9177
  if (s.number == (t ? n.state.doc.lines : 1))
9190
9178
  return r;
@@ -9222,7 +9210,7 @@ function Rm(n, e, t, i) {
9222
9210
  }
9223
9211
  let d = a.left + l, u = i ?? n.viewState.heightOracle.textHeight >> 1;
9224
9212
  for (let f = 0; ; f += 10) {
9225
- let p = r + (u + f) * o, g = Uo(n, { x: d, y: p }, !1, o);
9213
+ let p = r + (u + f) * o, g = Wo(n, { x: d, y: p }, !1, o);
9226
9214
  if (p < a.top || p > a.bottom || (o < 0 ? g < s : g > s)) {
9227
9215
  let m = n.docView.coordsForChar(g), v = !m || p < m.top ? -1 : 1;
9228
9216
  return P.cursor(g, v, void 0, l);
@@ -9340,7 +9328,7 @@ class jm {
9340
9328
  }
9341
9329
  }
9342
9330
  }
9343
- function Fo(n, e) {
9331
+ function Uo(n, e) {
9344
9332
  let t, { newSel: i } = e, s = n.state.selection.main, o = n.inputState.lastKeyTime > Date.now() - 100 ? n.inputState.lastKeyCode : -1;
9345
9333
  if (e.bounds) {
9346
9334
  let { from: l, to: r } = e.bounds, a = s.from, h = null;
@@ -9378,7 +9366,7 @@ function j4(n, e, t, i = -1) {
9378
9366
  let o = e.insert.toString();
9379
9367
  n.inputState.composing >= 0 && n.inputState.composing++;
9380
9368
  let l, r = () => l || (l = Wm(n, e, t));
9381
- return n.state.facet(Eo).some((a) => a(n, e.from, e.to, o, r)) || n.dispatch(r()), !0;
9369
+ return n.state.facet(Ao).some((a) => a(n, e.from, e.to, o, r)) || n.dispatch(r()), !0;
9382
9370
  }
9383
9371
  function Wm(n, e, t) {
9384
9372
  let i, s = n.state, o = s.selection.main;
@@ -9388,7 +9376,7 @@ function Wm(n, e, t) {
9388
9376
  } else {
9389
9377
  let r = s.changes(e), a = t && t.main.to <= r.newLength ? t.main : void 0;
9390
9378
  if (s.selection.ranges.length > 1 && n.inputState.composing >= 0 && e.to <= o.to && e.to >= o.to - 10) {
9391
- let h = n.state.sliceDoc(e.from, e.to), c, d = t && Wo(n, t.main.head);
9379
+ let h = n.state.sliceDoc(e.from, e.to), c, d = t && jo(n, t.main.head);
9392
9380
  if (d) {
9393
9381
  let p = e.insert.length - (e.to - e.from);
9394
9382
  c = { from: d.from, to: d.to - p };
@@ -9494,10 +9482,10 @@ class Ym {
9494
9482
  keydown(e) {
9495
9483
  if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
9496
9484
  return !0;
9497
- if (this.tabFocusMode > 0 && e.keyCode != 27 && Yo.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), K.android && K.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
9485
+ if (this.tabFocusMode > 0 && e.keyCode != 27 && qo.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), K.android && K.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
9498
9486
  return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
9499
9487
  let t;
9500
- return K.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = qo.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || Xm.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);
9488
+ return K.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = Fo.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || Xm.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);
9501
9489
  }
9502
9490
  flushIOSKey(e) {
9503
9491
  let t = this.pendingIOSKey;
@@ -9549,12 +9537,12 @@ function Km(n) {
9549
9537
  t(i).observers.push(j0[i]);
9550
9538
  return e;
9551
9539
  }
9552
- const qo = [
9540
+ const Fo = [
9553
9541
  { key: "Backspace", keyCode: 8, inputType: "deleteContentBackward" },
9554
9542
  { key: "Enter", keyCode: 13, inputType: "insertParagraph" },
9555
9543
  { key: "Enter", keyCode: 13, inputType: "insertLineBreak" },
9556
9544
  { key: "Delete", keyCode: 46, inputType: "deleteContentForward" }
9557
- ], Xm = "dthko", Yo = [16, 17, 18, 20, 91, 92, 224, 225], D1 = 6;
9545
+ ], Xm = "dthko", qo = [16, 17, 18, 20, 91, 92, 224, 225], D1 = 6;
9558
9546
  function O1(n) {
9559
9547
  return Math.max(0, n) * 0.7 + 8;
9560
9548
  }
@@ -9565,7 +9553,7 @@ class Jm {
9565
9553
  constructor(e, t, i, s) {
9566
9554
  this.view = e, this.startEvent = t, this.style = i, this.mustSelect = s, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = om(e.contentDOM), this.atoms = e.state.facet(N4).map((l) => l(e));
9567
9555
  let o = e.contentDOM.ownerDocument;
9568
- o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(y2.allowMultipleSelections) && Zm(e, t), this.dragging = tv(e, t) && Qo(t) == 1 ? null : !1;
9556
+ o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(y2.allowMultipleSelections) && Zm(e, t), this.dragging = tv(e, t) && Xo(t) == 1 ? null : !1;
9569
9557
  }
9570
9558
  start(e) {
9571
9559
  this.dragging === !1 && this.select(e);
@@ -9623,11 +9611,11 @@ class Jm {
9623
9611
  }
9624
9612
  }
9625
9613
  function Zm(n, e) {
9626
- let t = n.state.facet(zo);
9614
+ let t = n.state.facet(To);
9627
9615
  return t.length ? t[0](e) : K.mac ? e.metaKey : e.ctrlKey;
9628
9616
  }
9629
9617
  function ev(n, e) {
9630
- let t = n.state.facet(Po);
9618
+ let t = n.state.facet(zo);
9631
9619
  return t.length ? t[0](e) : K.mac ? !e.altKey : !e.ctrlKey;
9632
9620
  }
9633
9621
  function tv(n, e) {
@@ -9655,14 +9643,14 @@ function iv(n, e) {
9655
9643
  return !1;
9656
9644
  return !0;
9657
9645
  }
9658
- const q0 = /* @__PURE__ */ Object.create(null), j0 = /* @__PURE__ */ Object.create(null), Ko = K.ie && K.ie_version < 15 || K.ios && K.webkit_version < 604;
9646
+ const q0 = /* @__PURE__ */ Object.create(null), j0 = /* @__PURE__ */ Object.create(null), Yo = K.ie && K.ie_version < 15 || K.ios && K.webkit_version < 604;
9659
9647
  function nv(n) {
9660
9648
  let e = n.dom.parentNode;
9661
9649
  if (!e)
9662
9650
  return;
9663
9651
  let t = e.appendChild(document.createElement("textarea"));
9664
9652
  t.style.cssText = "position: fixed; left: -10000px; top: 10px", t.focus(), setTimeout(() => {
9665
- n.focus(), t.remove(), Xo(n, t.value);
9653
+ n.focus(), t.remove(), Ko(n, t.value);
9666
9654
  }, 50);
9667
9655
  }
9668
9656
  function R3(n, e, t) {
@@ -9670,7 +9658,7 @@ function R3(n, e, t) {
9670
9658
  t = i(t, n);
9671
9659
  return t;
9672
9660
  }
9673
- function Xo(n, e) {
9661
+ function Ko(n, e) {
9674
9662
  e = R3(n.state, I4, e);
9675
9663
  let { state: t } = n, i, s = 1, o = t.toText(e), l = o.lines == t.selection.ranges.length;
9676
9664
  if (s4 != null && t.selection.ranges.every((a) => a.empty) && s4 == o.toString()) {
@@ -9712,13 +9700,13 @@ q0.mousedown = (n, e) => {
9712
9700
  if (n.observer.flush(), n.inputState.lastTouchTime > Date.now() - 2e3)
9713
9701
  return !1;
9714
9702
  let t = null;
9715
- for (let i of n.state.facet(Vo))
9703
+ for (let i of n.state.facet(Po))
9716
9704
  if (t = i(n, e), t)
9717
9705
  break;
9718
9706
  if (!t && e.button == 0 && (t = lv(n, e)), t) {
9719
9707
  let i = !n.hasFocus;
9720
9708
  n.inputState.startMouseSelection(new Jm(n, e, t, i)), i && n.observer.ignore(() => {
9721
- ho(n.contentDOM);
9709
+ co(n.contentDOM);
9722
9710
  let o = n.root.activeElement;
9723
9711
  o && !o.contains(n.contentDOM) && o.blur();
9724
9712
  });
@@ -9760,14 +9748,14 @@ function an(n, e) {
9760
9748
  }
9761
9749
  const ov = K.ie && K.ie_version <= 11;
9762
9750
  let cn = null, hn = 0, dn = 0;
9763
- function Qo(n) {
9751
+ function Xo(n) {
9764
9752
  if (!ov)
9765
9753
  return n.detail;
9766
9754
  let e = cn, t = dn;
9767
9755
  return cn = n, dn = Date.now(), hn = !e || t > Date.now() - 400 && Math.abs(e.clientX - n.clientX) < 2 && Math.abs(e.clientY - n.clientY) < 2 ? (hn + 1) % 3 : 1;
9768
9756
  }
9769
9757
  function lv(n, e) {
9770
- let t = an(n, e), i = Qo(e), s = n.state.selection;
9758
+ let t = an(n, e), i = Xo(e), s = n.state.selection;
9771
9759
  return {
9772
9760
  update(o) {
9773
9761
  o.docChanged && (t.pos = o.changes.mapPos(t.pos), s = s.map(o.changes));
@@ -9841,8 +9829,8 @@ q0.paste = (n, e) => {
9841
9829
  if (n.state.readOnly)
9842
9830
  return !0;
9843
9831
  n.observer.flush();
9844
- let t = Ko ? null : e.clipboardData;
9845
- return t ? (Xo(n, t.getData("text/plain") || t.getData("text/uri-list")), !0) : (nv(n), !1);
9832
+ let t = Yo ? null : e.clipboardData;
9833
+ return t ? (Ko(n, t.getData("text/plain") || t.getData("text/uri-list")), !0) : (nv(n), !1);
9846
9834
  };
9847
9835
  function av(n, e) {
9848
9836
  let t = n.dom.parentNode;
@@ -9877,32 +9865,32 @@ q0.copy = q0.cut = (n, e) => {
9877
9865
  scrollIntoView: !0,
9878
9866
  userEvent: "delete.cut"
9879
9867
  });
9880
- let o = Ko ? null : e.clipboardData;
9868
+ let o = Yo ? null : e.clipboardData;
9881
9869
  return o ? (o.clearData(), o.setData("text/plain", t), !0) : (av(n, t), !1);
9882
9870
  };
9883
- const Jo = /* @__PURE__ */ xe.define();
9884
- function Zo(n, e) {
9871
+ const Qo = /* @__PURE__ */ xe.define();
9872
+ function Jo(n, e) {
9885
9873
  let t = [];
9886
- for (let i of n.facet(Bo)) {
9874
+ for (let i of n.facet(Eo)) {
9887
9875
  let s = i(n, e);
9888
9876
  s && t.push(s);
9889
9877
  }
9890
- return t.length ? n.update({ effects: t, annotations: Jo.of(!0) }) : null;
9878
+ return t.length ? n.update({ effects: t, annotations: Qo.of(!0) }) : null;
9891
9879
  }
9892
- function el(n) {
9880
+ function Zo(n) {
9893
9881
  setTimeout(() => {
9894
9882
  let e = n.hasFocus;
9895
9883
  if (e != n.inputState.notifiedFocused) {
9896
- let t = Zo(n.state, e);
9884
+ let t = Jo(n.state, e);
9897
9885
  t ? n.dispatch(t) : n.update([]);
9898
9886
  }
9899
9887
  }, 10);
9900
9888
  }
9901
9889
  j0.focus = (n) => {
9902
- n.inputState.lastFocusTime = Date.now(), !n.scrollDOM.scrollTop && (n.inputState.lastScrollTop || n.inputState.lastScrollLeft) && (n.scrollDOM.scrollTop = n.inputState.lastScrollTop, n.scrollDOM.scrollLeft = n.inputState.lastScrollLeft), el(n);
9890
+ n.inputState.lastFocusTime = Date.now(), !n.scrollDOM.scrollTop && (n.inputState.lastScrollTop || n.inputState.lastScrollLeft) && (n.scrollDOM.scrollTop = n.inputState.lastScrollTop, n.scrollDOM.scrollLeft = n.inputState.lastScrollLeft), Zo(n);
9903
9891
  };
9904
9892
  j0.blur = (n) => {
9905
- n.observer.clearSelectionRange(), el(n);
9893
+ n.observer.clearSelectionRange(), Zo(n);
9906
9894
  };
9907
9895
  j0.compositionstart = j0.compositionupdate = (n) => {
9908
9896
  n.observer.editContext || (n.inputState.compositionFirstChange == null && (n.inputState.compositionFirstChange = !0), n.inputState.composing < 0 && (n.inputState.composing = 0));
@@ -9925,7 +9913,7 @@ q0.beforeinput = (n, e) => {
9925
9913
  }
9926
9914
  }
9927
9915
  let s;
9928
- if (K.chrome && K.android && (s = qo.find((o) => o.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
9916
+ if (K.chrome && K.android && (s = Fo.find((o) => o.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
9929
9917
  let o = ((i = window.visualViewport) === null || i === void 0 ? void 0 : i.height) || 0;
9930
9918
  setTimeout(() => {
9931
9919
  var l;
@@ -10116,7 +10104,7 @@ function h3(n, e) {
10116
10104
  return n == e ? n : (n.constructor != e.constructor && (yt = !0), e);
10117
10105
  }
10118
10106
  v0.prototype.size = 1;
10119
- class tl extends v0 {
10107
+ class el extends v0 {
10120
10108
  constructor(e, t, i) {
10121
10109
  super(e, t), this.deco = i;
10122
10110
  }
@@ -10136,7 +10124,7 @@ class tl extends v0 {
10136
10124
  return `block(${this.length})`;
10137
10125
  }
10138
10126
  }
10139
- class z0 extends tl {
10127
+ class z0 extends el {
10140
10128
  constructor(e, t) {
10141
10129
  super(e, t, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0;
10142
10130
  }
@@ -10331,7 +10319,7 @@ class W4 {
10331
10319
  let s = i.widget ? i.widget.estimatedHeight : 0, o = i.widget ? i.widget.lineBreaks : 0;
10332
10320
  s < 0 && (s = this.oracle.lineHeight);
10333
10321
  let l = t - e;
10334
- i.block ? this.addBlock(new tl(l, s, i)) : (l || o || s >= pv) && this.addLineDeco(s, o, l);
10322
+ i.block ? this.addBlock(new el(l, s, i)) : (l || o || s >= pv) && this.addLineDeco(s, o, l);
10335
10323
  } else t > e && this.span(e, t);
10336
10324
  this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to);
10337
10325
  }
@@ -10501,7 +10489,7 @@ class vn {
10501
10489
  let a = o.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
10502
10490
  (t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
10503
10491
  let h = a.from != this.viewport.from || a.to != this.viewport.to;
10504
- this.viewport = a, e.flags |= this.updateForViewport(), (h || !e.changes.empty || e.flags & 2) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(e.changes), t && (this.scrollTarget = t), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(Ho) && (this.mustEnforceCursorAssoc = !0);
10492
+ this.viewport = a, e.flags |= this.updateForViewport(), (h || !e.changes.empty || e.flags & 2) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, e.changes))), e.flags |= this.computeVisibleRanges(e.changes), t && (this.scrollTarget = t), !this.mustEnforceCursorAssoc && e.selectionSet && e.view.lineWrapping && e.state.selection.main.empty && e.state.selection.main.assoc && !e.state.facet(Lo) && (this.mustEnforceCursorAssoc = !0);
10505
10493
  }
10506
10494
  measure(e) {
10507
10495
  let t = e.contentDOM, i = window.getComputedStyle(t), s = this.heightOracle, o = i.whiteSpace;
@@ -10510,13 +10498,13 @@ class vn {
10510
10498
  this.contentDOMHeight = r.height, this.mustMeasureContent = !1;
10511
10499
  let h = 0, c = 0;
10512
10500
  if (r.width && r.height) {
10513
- let { scaleX: M, scaleY: C } = co(t, r);
10501
+ let { scaleX: M, scaleY: C } = ao(t, r);
10514
10502
  (M > 5e-3 && Math.abs(this.scaleX - M) > 5e-3 || C > 5e-3 && Math.abs(this.scaleY - C) > 5e-3) && (this.scaleX = M, this.scaleY = C, h |= 16, l = a = !0);
10515
10503
  }
10516
10504
  let d = (parseInt(i.paddingTop) || 0) * this.scaleY, u = (parseInt(i.paddingBottom) || 0) * this.scaleY;
10517
10505
  (this.paddingTop != d || this.paddingBottom != u) && (this.paddingTop = d, this.paddingBottom = u, h |= 18), this.editorWidth != e.scrollDOM.clientWidth && (s.lineWrapping && (a = !0), this.editorWidth = e.scrollDOM.clientWidth, h |= 16);
10518
10506
  let f = e.scrollDOM.scrollTop * this.scaleY;
10519
- this.scrollTop != f && (this.scrollAnchorHeight = -1, this.scrollTop = f), this.scrolledToBottom = fo(e.scrollDOM);
10507
+ this.scrollTop != f && (this.scrollAnchorHeight = -1, this.scrollTop = f), this.scrolledToBottom = uo(e.scrollDOM);
10520
10508
  let p = (this.printing ? xv : vv)(t, this.paddingTop), g = p.top - this.pixelViewport.top, m = p.bottom - this.pixelViewport.bottom;
10521
10509
  this.pixelViewport = p;
10522
10510
  let v = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left;
@@ -10793,7 +10781,7 @@ function It(n, e) {
10793
10781
  let t = e.toDOM(n.top), i = e.toDOM(n.bottom);
10794
10782
  return new ie(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((s) => It(s, e)) : n._content);
10795
10783
  }
10796
- const P1 = /* @__PURE__ */ J.define({ combine: (n) => n.join(" ") }), o4 = /* @__PURE__ */ J.define({ combine: (n) => n.indexOf(!0) > -1 }), l4 = /* @__PURE__ */ Pe.newName(), il = /* @__PURE__ */ Pe.newName(), nl = /* @__PURE__ */ Pe.newName(), sl = { "&light": "." + il, "&dark": "." + nl };
10784
+ const P1 = /* @__PURE__ */ J.define({ combine: (n) => n.join(" ") }), o4 = /* @__PURE__ */ J.define({ combine: (n) => n.indexOf(!0) > -1 }), l4 = /* @__PURE__ */ Pe.newName(), tl = /* @__PURE__ */ Pe.newName(), il = /* @__PURE__ */ Pe.newName(), nl = { "&light": "." + tl, "&dark": "." + il };
10797
10785
  function r4(n, e, t) {
10798
10786
  return new Pe(e, {
10799
10787
  finish(i) {
@@ -11075,7 +11063,7 @@ const Sv = /* @__PURE__ */ r4("." + l4, {
11075
11063
  border: "1px solid #555",
11076
11064
  backgroundColor: "inherit"
11077
11065
  }
11078
- }, sl), Cv = {
11066
+ }, nl), Cv = {
11079
11067
  childList: !0,
11080
11068
  characterData: !0,
11081
11069
  subtree: !0,
@@ -11264,7 +11252,7 @@ class kv {
11264
11252
  let t = this.readChange();
11265
11253
  if (!t)
11266
11254
  return this.view.requestMeasure(), !1;
11267
- let i = this.view.state, s = Fo(this.view, t);
11255
+ let i = this.view.state, s = Uo(this.view, t);
11268
11256
  return this.view.state == i && (t.domChanged || t.newSel && !t.newSel.main.eq(this.view.state.selection.main)) && this.view.update([]), s;
11269
11257
  }
11270
11258
  readMutation(e) {
@@ -11368,7 +11356,7 @@ class Ov {
11368
11356
  }
11369
11357
  }
11370
11358
  }
11371
- e.dispatch({ effects: Go.of(d2.set(s)) });
11359
+ e.dispatch({ effects: Io.of(d2.set(s)) });
11372
11360
  }, this.handlers.compositionstart = () => {
11373
11361
  e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
11374
11362
  }, this.handlers.compositionend = () => {
@@ -11558,7 +11546,7 @@ class Q {
11558
11546
  return;
11559
11547
  }
11560
11548
  let l = this.hasFocus, r = 0, a = null;
11561
- e.some((u) => u.annotation(Jo)) ? (this.inputState.notifiedFocused = l, r = 1) : l != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = l, a = Zo(o, l), a || (r = 1));
11549
+ e.some((u) => u.annotation(Qo)) ? (this.inputState.notifiedFocused = l, r = 1) : l != this.inputState.notifiedFocused && (this.inputState.notifiedFocused = l, a = Jo(o, l), a || (r = 1));
11562
11550
  let h = this.observer.delayedAndroidKey, c = null;
11563
11551
  if (h ? (this.observer.clearDelayedAndroidKey(), c = this.observer.readChange(), (c && !this.state.doc.eq(o.doc) || !this.state.selection.eq(o.selection)) && (c = null)) : this.observer.clear(), o.facet(y2.phrases) != this.state.facet(y2.phrases))
11564
11552
  return this.setState(o);
@@ -11586,7 +11574,7 @@ class Q {
11586
11574
  S0(this.state, f, "update listener");
11587
11575
  }
11588
11576
  (a || c) && Promise.resolve().then(() => {
11589
- a && this.state == a.startState && this.dispatch(a), c && !Fo(this, c) && h.force && ut(this.contentDOM, h.key, h.keyCode);
11577
+ a && this.state == a.startState && this.dispatch(a), c && !Uo(this, c) && h.force && ut(this.contentDOM, h.key, h.keyCode);
11590
11578
  });
11591
11579
  }
11592
11580
  /**
@@ -11667,7 +11655,7 @@ class Q {
11667
11655
  try {
11668
11656
  for (let r = 0; ; r++) {
11669
11657
  if (l < 0)
11670
- if (fo(i))
11658
+ if (uo(i))
11671
11659
  o = -1, l = this.viewState.heightMap.height;
11672
11660
  else {
11673
11661
  let f = this.viewState.scrollAnchorAt(s);
@@ -11725,10 +11713,10 @@ class Q {
11725
11713
  Get the CSS classes for the currently active editor themes.
11726
11714
  */
11727
11715
  get themeClasses() {
11728
- return l4 + " " + (this.state.facet(o4) ? nl : il) + " " + this.state.facet(P1);
11716
+ return l4 + " " + (this.state.facet(o4) ? il : tl) + " " + this.state.facet(P1);
11729
11717
  }
11730
11718
  updateAttrs() {
11731
- let e = yn(this, Ro, {
11719
+ let e = yn(this, Go, {
11732
11720
  class: "cm-editor" + (this.hasFocus ? " cm-focused " : " ") + this.themeClasses
11733
11721
  }), t = {
11734
11722
  spellcheck: "false",
@@ -11957,7 +11945,7 @@ class Q {
11957
11945
  return this.docView.posFromDOM(e, t);
11958
11946
  }
11959
11947
  posAtCoords(e, t = !0) {
11960
- return this.readMeasured(), Uo(this, e, t);
11948
+ return this.readMeasured(), Wo(this, e, t);
11961
11949
  }
11962
11950
  /**
11963
11951
  Get the screen coordinates at the given document position.
@@ -12017,7 +12005,7 @@ class Q {
12017
12005
  this may trigger a DOM layout.
12018
12006
  */
12019
12007
  textDirectionAt(e) {
12020
- return !this.state.facet(Lo) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e));
12008
+ return !this.state.facet(Bo) || e < this.viewport.from || e > this.viewport.to ? this.textDirection : (this.readMeasured(), this.docView.textDirectionAt(e));
12021
12009
  }
12022
12010
  /**
12023
12011
  Whether this editor [wraps lines](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping)
@@ -12038,10 +12026,10 @@ class Q {
12038
12026
  */
12039
12027
  bidiSpans(e) {
12040
12028
  if (e.length > Mv)
12041
- return Mo(e.length);
12029
+ return Oo(e.length);
12042
12030
  let t = this.textDirectionAt(e.from), i;
12043
12031
  for (let o of this.bidiCache)
12044
- if (o.from == e.from && o.dir == t && (o.fresh || Oo(o.isolates, i = Xi(this, e))))
12032
+ if (o.from == e.from && o.dir == t && (o.fresh || Do(o.isolates, i = Xi(this, e))))
12045
12033
  return o.order;
12046
12034
  i || (i = Xi(this, e));
12047
12035
  let s = ym(e.text, t, i);
@@ -12059,7 +12047,7 @@ class Q {
12059
12047
  */
12060
12048
  focus() {
12061
12049
  this.observer.ignore(() => {
12062
- ho(this.contentDOM), this.docView.updateSelection();
12050
+ co(this.contentDOM), this.docView.updateSelection();
12063
12051
  });
12064
12052
  }
12065
12053
  /**
@@ -12175,7 +12163,7 @@ class Q {
12175
12163
  target editors with a dark or light theme.
12176
12164
  */
12177
12165
  static baseTheme(e) {
12178
- return tt.lowest(Lt.of(r4("." + l4, e, sl)));
12166
+ return tt.lowest(Lt.of(r4("." + l4, e, nl)));
12179
12167
  }
12180
12168
  /**
12181
12169
  Retrieve an editor view instance from the view's DOM
@@ -12188,27 +12176,27 @@ class Q {
12188
12176
  }
12189
12177
  }
12190
12178
  Q.styleModule = Lt;
12191
- Q.inputHandler = Eo;
12179
+ Q.inputHandler = Ao;
12192
12180
  Q.clipboardInputFilter = I4;
12193
12181
  Q.clipboardOutputFilter = G4;
12194
- Q.scrollHandler = Io;
12195
- Q.focusChangeEffect = Bo;
12196
- Q.perLineTextDirection = Lo;
12197
- Q.exceptionSink = Ao;
12182
+ Q.scrollHandler = Ho;
12183
+ Q.focusChangeEffect = Eo;
12184
+ Q.perLineTextDirection = Bo;
12185
+ Q.exceptionSink = Vo;
12198
12186
  Q.updateListener = t4;
12199
12187
  Q.editable = de;
12200
- Q.mouseSelectionStyle = Vo;
12201
- Q.dragMovesSelection = Po;
12202
- Q.clickAddsSelectionRange = zo;
12188
+ Q.mouseSelectionStyle = Po;
12189
+ Q.dragMovesSelection = zo;
12190
+ Q.clickAddsSelectionRange = To;
12203
12191
  Q.decorations = e1;
12204
- Q.outerDecorations = No;
12192
+ Q.outerDecorations = Ro;
12205
12193
  Q.atomicRanges = N4;
12206
- Q.bidiIsolatedRanges = $o;
12207
- Q.scrollMargins = jo;
12194
+ Q.bidiIsolatedRanges = No;
12195
+ Q.scrollMargins = $o;
12208
12196
  Q.darkTheme = o4;
12209
12197
  Q.cspNonce = /* @__PURE__ */ J.define({ combine: (n) => n.length ? n[0] : "" });
12210
12198
  Q.contentAttributes = R4;
12211
- Q.editorAttributes = Ro;
12199
+ Q.editorAttributes = Go;
12212
12200
  Q.lineWrapping = /* @__PURE__ */ Q.contentAttributes.of({ class: "cm-lineWrapping" });
12213
12201
  Q.announce = /* @__PURE__ */ m2.define();
12214
12202
  const Mv = 4096, _n = {};
@@ -12262,15 +12250,15 @@ function V1(n, e, t) {
12262
12250
  }
12263
12251
  const Pv = /* @__PURE__ */ tt.default(/* @__PURE__ */ Q.domEventHandlers({
12264
12252
  keydown(n, e) {
12265
- return ll(ol(e.state), n, e, "editor");
12253
+ return ol(sl(e.state), n, e, "editor");
12266
12254
  }
12267
12255
  })), F4 = /* @__PURE__ */ J.define({ enables: Pv }), Sn = /* @__PURE__ */ new WeakMap();
12268
- function ol(n) {
12256
+ function sl(n) {
12269
12257
  let e = n.facet(F4), t = Sn.get(e);
12270
12258
  return t || Sn.set(e, t = Ev(e.reduce((i, s) => i.concat(s), []))), t;
12271
12259
  }
12272
12260
  function Vv(n, e, t) {
12273
- return ll(ol(n.state), e, n, t);
12261
+ return ol(sl(n.state), e, n, t);
12274
12262
  }
12275
12263
  let Se = null;
12276
12264
  const Av = 4e3;
@@ -12324,10 +12312,10 @@ function Ev(n, e = Tv) {
12324
12312
  return t;
12325
12313
  }
12326
12314
  let a4 = null;
12327
- function ll(n, e, t, i) {
12315
+ function ol(n, e, t, i) {
12328
12316
  a4 = e;
12329
12317
  let s = im(e), o = b0(s, 0), l = te(o) == s.length && s != " ", r = "", a = !1, h = !1, c = !1;
12330
- Se && Se.view == t && Se.scope == i && (r = Se.prefix + " ", Yo.indexOf(e.keyCode) < 0 && (h = !0, Se = null));
12318
+ Se && Se.view == t && Se.scope == i && (r = Se.prefix + " ", qo.indexOf(e.keyCode) < 0 && (h = !0, Se = null));
12331
12319
  let d = /* @__PURE__ */ new Set(), u = (m) => {
12332
12320
  if (m) {
12333
12321
  for (let v of m.run)
@@ -12374,13 +12362,13 @@ class g1 {
12374
12362
  let s = e.coordsAtPos(i.head, i.assoc || 1);
12375
12363
  if (!s)
12376
12364
  return [];
12377
- let o = rl(e);
12365
+ let o = ll(e);
12378
12366
  return [new g1(t, s.left - o.left, s.top - o.top, null, s.bottom - s.top)];
12379
12367
  } else
12380
12368
  return Bv(e, t, i);
12381
12369
  }
12382
12370
  }
12383
- function rl(n) {
12371
+ function ll(n) {
12384
12372
  let e = n.scrollDOM.getBoundingClientRect();
12385
12373
  return { left: (n.textDirection == G2.LTR ? e.left : e.right - n.scrollDOM.clientWidth * n.scaleX) - n.scrollDOM.scrollLeft * n.scaleX, top: e.top - n.scrollDOM.scrollTop * n.scaleY };
12386
12374
  }
@@ -12394,7 +12382,7 @@ function Cn(n, e, t, i) {
12394
12382
  function Bv(n, e, t) {
12395
12383
  if (t.to <= n.viewport.from || t.from >= n.viewport.to)
12396
12384
  return [];
12397
- let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection == G2.LTR, l = n.contentDOM, r = l.getBoundingClientRect(), a = rl(n), h = l.querySelector(".cm-line"), c = h && window.getComputedStyle(h), d = r.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), u = r.right - (c ? parseInt(c.paddingRight) : 0), f = n4(n, i, 1), p = n4(n, s, -1), g = f.type == m0.Text ? f : null, m = p.type == m0.Text ? p : null;
12385
+ let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), o = n.textDirection == G2.LTR, l = n.contentDOM, r = l.getBoundingClientRect(), a = ll(n), h = l.querySelector(".cm-line"), c = h && window.getComputedStyle(h), d = r.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), u = r.right - (c ? parseInt(c.paddingRight) : 0), f = n4(n, i, 1), p = n4(n, s, -1), g = f.type == m0.Text ? f : null, m = p.type == m0.Text ? p : null;
12398
12386
  if (g && (n.lineWrapping || f.widgetLineBreaks) && (g = Cn(n, i, 1, g)), m && (n.lineWrapping || p.widgetLineBreaks) && (m = Cn(n, s, -1, m)), g && m && g.from == m.from && g.to == m.to)
12399
12387
  return y(O(t.from, t.to, g));
12400
12388
  {
@@ -12480,7 +12468,7 @@ class Hv {
12480
12468
  }
12481
12469
  }
12482
12470
  const J1 = /* @__PURE__ */ J.define();
12483
- function al(n) {
12471
+ function rl(n) {
12484
12472
  return [
12485
12473
  K2.define((e) => new Hv(e, n)),
12486
12474
  J1.of(n)
@@ -12503,13 +12491,13 @@ function Iv(n = {}) {
12503
12491
  Gv,
12504
12492
  Rv,
12505
12493
  Nv,
12506
- Ho.of(!0)
12494
+ Lo.of(!0)
12507
12495
  ];
12508
12496
  }
12509
- function cl(n) {
12497
+ function al(n) {
12510
12498
  return n.startState.facet(t1) != n.state.facet(t1);
12511
12499
  }
12512
- const Gv = /* @__PURE__ */ al({
12500
+ const Gv = /* @__PURE__ */ rl({
12513
12501
  above: !0,
12514
12502
  markers(n) {
12515
12503
  let { state: e } = n, t = e.facet(t1), i = [];
@@ -12525,7 +12513,7 @@ const Gv = /* @__PURE__ */ al({
12525
12513
  },
12526
12514
  update(n, e) {
12527
12515
  n.transactions.some((i) => i.selection) && (e.style.animationName = e.style.animationName == "cm-blink" ? "cm-blink2" : "cm-blink");
12528
- let t = cl(n);
12516
+ let t = al(n);
12529
12517
  return t && kn(n.state, e), n.docChanged || n.selectionSet || t;
12530
12518
  },
12531
12519
  mount(n, e) {
@@ -12536,13 +12524,13 @@ const Gv = /* @__PURE__ */ al({
12536
12524
  function kn(n, e) {
12537
12525
  e.style.animationDuration = n.facet(t1).cursorBlinkRate + "ms";
12538
12526
  }
12539
- const Rv = /* @__PURE__ */ al({
12527
+ const Rv = /* @__PURE__ */ rl({
12540
12528
  above: !1,
12541
12529
  markers(n) {
12542
12530
  return n.state.selection.ranges.map((e) => e.empty ? [] : g1.forRange(n, "cm-selectionBackground", e)).reduce((e, t) => e.concat(t));
12543
12531
  },
12544
12532
  update(n, e) {
12545
- return n.docChanged || n.selectionSet || n.viewportChanged || cl(n);
12533
+ return n.docChanged || n.selectionSet || n.viewportChanged || al(n);
12546
12534
  },
12547
12535
  class: "cm-selectionLayer"
12548
12536
  }), Nv = /* @__PURE__ */ tt.highest(/* @__PURE__ */ Q.theme({
@@ -12559,7 +12547,7 @@ const Rv = /* @__PURE__ */ al({
12559
12547
  }
12560
12548
  }
12561
12549
  }
12562
- })), hl = /* @__PURE__ */ m2.define({
12550
+ })), cl = /* @__PURE__ */ m2.define({
12563
12551
  map(n, e) {
12564
12552
  return n == null ? null : e.mapPos(n);
12565
12553
  }
@@ -12568,7 +12556,7 @@ const Rv = /* @__PURE__ */ al({
12568
12556
  return null;
12569
12557
  },
12570
12558
  update(n, e) {
12571
- return n != null && (n = e.changes.mapPos(n)), e.effects.reduce((t, i) => i.is(hl) ? i.value : t, n);
12559
+ return n != null && (n = e.changes.mapPos(n)), e.effects.reduce((t, i) => i.is(cl) ? i.value : t, n);
12572
12560
  }
12573
12561
  }), $v = /* @__PURE__ */ K2.fromClass(class {
12574
12562
  constructor(n) {
@@ -12600,7 +12588,7 @@ const Rv = /* @__PURE__ */ al({
12600
12588
  this.cursor && this.cursor.remove();
12601
12589
  }
12602
12590
  setDropPos(n) {
12603
- this.view.state.field(Gt) != n && this.view.dispatch({ effects: hl.of(n) });
12591
+ this.view.state.field(Gt) != n && this.view.dispatch({ effects: cl.of(n) });
12604
12592
  }
12605
12593
  }, {
12606
12594
  eventObservers: {
@@ -12931,7 +12919,7 @@ function hw(n = {}) {
12931
12919
  ];
12932
12920
  }
12933
12921
  const Vt = "-10000px";
12934
- class dl {
12922
+ class hl {
12935
12923
  constructor(e, t, i, s) {
12936
12924
  this.facet = t, this.createTooltipView = i, this.removeTooltipView = s, this.input = e.state.facet(t), this.tooltips = this.input.filter((l) => l);
12937
12925
  let o = null;
@@ -12983,7 +12971,7 @@ const a6 = /* @__PURE__ */ J.define({
12983
12971
  constructor(n) {
12984
12972
  this.view = n, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
12985
12973
  let e = n.state.facet(a6);
12986
- this.position = e.position, this.parent = e.parent, this.classes = n.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null, this.manager = new dl(n, Y4, (t, i) => this.createTooltip(t, i), (t) => {
12974
+ this.position = e.position, this.parent = e.parent, this.classes = n.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null, this.manager = new hl(n, Y4, (t, i) => this.createTooltip(t, i), (t) => {
12987
12975
  this.resizeObserver && this.resizeObserver.unobserve(t.dom), t.dom.remove();
12988
12976
  }), this.above = this.manager.tooltips.map((t) => !!t.above), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((t) => {
12989
12977
  Date.now() > this.lastTransaction - 50 && t.length > 0 && t[t.length - 1].intersectionRatio < 1 && this.measureSoon();
@@ -13198,7 +13186,7 @@ class N3 {
13198
13186
  return new N3(e);
13199
13187
  }
13200
13188
  constructor(e) {
13201
- this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new dl(e, u3, (t, i) => this.createHostedView(t, i), (t) => t.dom.remove());
13189
+ this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new hl(e, u3, (t, i) => this.createHostedView(t, i), (t) => t.dom.remove());
13202
13190
  }
13203
13191
  createHostedView(e, t) {
13204
13192
  let i = e.create(this.view);
@@ -13387,7 +13375,7 @@ function ww(n, e = {}) {
13387
13375
  ]
13388
13376
  };
13389
13377
  }
13390
- function ul(n, e) {
13378
+ function dl(n, e) {
13391
13379
  let t = n.plugin(q4);
13392
13380
  if (!t)
13393
13381
  return null;
@@ -13403,10 +13391,10 @@ const xw = /* @__PURE__ */ m2.define(), Pn = /* @__PURE__ */ J.define({
13403
13391
  }
13404
13392
  });
13405
13393
  function i1(n, e) {
13406
- let t = n.plugin(fl), i = t ? t.specs.indexOf(e) : -1;
13394
+ let t = n.plugin(ul), i = t ? t.specs.indexOf(e) : -1;
13407
13395
  return i > -1 ? t.panels[i] : null;
13408
13396
  }
13409
- const fl = /* @__PURE__ */ K2.fromClass(class {
13397
+ const ul = /* @__PURE__ */ K2.fromClass(class {
13410
13398
  constructor(n) {
13411
13399
  this.input = n.state.facet(n1), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(n));
13412
13400
  let e = n.state.facet(Pn);
@@ -13487,7 +13475,7 @@ function Vn(n) {
13487
13475
  return n.remove(), e;
13488
13476
  }
13489
13477
  const n1 = /* @__PURE__ */ J.define({
13490
- enables: fl
13478
+ enables: ul
13491
13479
  });
13492
13480
  class ve extends Xe {
13493
13481
  /**
@@ -13528,12 +13516,12 @@ const e3 = /* @__PURE__ */ J.define(), bw = /* @__PURE__ */ J.define(), _w = {
13528
13516
  side: "before"
13529
13517
  }, Ft = /* @__PURE__ */ J.define();
13530
13518
  function yw(n) {
13531
- return [pl(), Ft.of({ ..._w, ...n })];
13519
+ return [fl(), Ft.of({ ..._w, ...n })];
13532
13520
  }
13533
13521
  const An = /* @__PURE__ */ J.define({
13534
13522
  combine: (n) => n.some((e) => e)
13535
13523
  });
13536
- function pl(n) {
13524
+ function fl(n) {
13537
13525
  return [
13538
13526
  Sw
13539
13527
  ];
@@ -13634,7 +13622,7 @@ class Cw {
13634
13622
  addElement(e, t, i) {
13635
13623
  let { gutter: s } = this, o = (t.top - this.height) / e.scaleY, l = t.height / e.scaleY;
13636
13624
  if (this.i == s.elements.length) {
13637
- let r = new gl(e, l, o, i);
13625
+ let r = new pl(e, l, o, i);
13638
13626
  s.elements.push(r), s.dom.appendChild(r.dom);
13639
13627
  } else
13640
13628
  s.elements[this.i].update(e, l, o, i);
@@ -13680,7 +13668,7 @@ class Bn {
13680
13668
  let r = e.lineBlockAtHeight(l - e.documentTop);
13681
13669
  t.domEventHandlers[i](e, r, s) && s.preventDefault();
13682
13670
  });
13683
- this.markers = En(t.markers(e)), t.initialSpacer && (this.spacer = new gl(e, 0, 0, [t.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none");
13671
+ this.markers = En(t.markers(e)), t.initialSpacer && (this.spacer = new pl(e, 0, 0, [t.initialSpacer(e)]), this.dom.appendChild(this.spacer.dom), this.spacer.dom.style.cssText += "visibility: hidden; pointer-events: none");
13684
13672
  }
13685
13673
  update(e) {
13686
13674
  let t = this.markers;
@@ -13696,7 +13684,7 @@ class Bn {
13696
13684
  e.destroy();
13697
13685
  }
13698
13686
  }
13699
- class gl {
13687
+ class pl {
13700
13688
  constructor(e, t, i, s) {
13701
13689
  this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, t, i, s);
13702
13690
  }
@@ -13802,7 +13790,7 @@ const Mw = /* @__PURE__ */ Ft.compute([rt], (n) => ({
13802
13790
  function Tw(n = {}) {
13803
13791
  return [
13804
13792
  rt.of(n),
13805
- pl(),
13793
+ fl(),
13806
13794
  Mw
13807
13795
  ];
13808
13796
  }
@@ -13827,7 +13815,7 @@ const zw = /* @__PURE__ */ new class extends ve {
13827
13815
  function Vw() {
13828
13816
  return Pw;
13829
13817
  }
13830
- const ml = 1024;
13818
+ const gl = 1024;
13831
13819
  let Aw = 0;
13832
13820
  class d6 {
13833
13821
  constructor(e, t) {
@@ -14223,7 +14211,7 @@ class Ee {
14223
14211
  */
14224
14212
  findChild(e, t, i, s, o) {
14225
14213
  let { buffer: l } = this, r = -1;
14226
- for (let a = e; a != t && !(vl(o, s, l[a + 1], l[a + 2]) && (r = a, i > 0)); a = l[a + 3])
14214
+ for (let a = e; a != t && !(ml(o, s, l[a + 1], l[a + 2]) && (r = a, i > 0)); a = l[a + 3])
14227
14215
  ;
14228
14216
  return r;
14229
14217
  }
@@ -14240,7 +14228,7 @@ class Ee {
14240
14228
  return new Ee(o, l, this.set);
14241
14229
  }
14242
14230
  }
14243
- function vl(n, e, t, i) {
14231
+ function ml(n, e, t, i) {
14244
14232
  switch (n) {
14245
14233
  case -2:
14246
14234
  return t < e;
@@ -14274,7 +14262,7 @@ function s1(n, e, t, i) {
14274
14262
  n = l;
14275
14263
  }
14276
14264
  }
14277
- class wl {
14265
+ class vl {
14278
14266
  cursor(e = 0) {
14279
14267
  return new f4(this, e);
14280
14268
  }
@@ -14311,7 +14299,7 @@ class wl {
14311
14299
  return this.parent;
14312
14300
  }
14313
14301
  }
14314
- class $0 extends wl {
14302
+ class $0 extends vl {
14315
14303
  constructor(e, t, i, s) {
14316
14304
  super(), this._tree = e, this.from = t, this.index = i, this._parent = s;
14317
14305
  }
@@ -14328,7 +14316,7 @@ class $0 extends wl {
14328
14316
  for (let l = this; ; ) {
14329
14317
  for (let { children: r, positions: a } = l._tree, h = t > 0 ? r.length : -1; e != h; e += t) {
14330
14318
  let c = r[e], d = a[e] + l.from;
14331
- if (vl(s, i, d, d + c.length)) {
14319
+ if (ml(s, i, d, d + c.length)) {
14332
14320
  if (c instanceof Ee) {
14333
14321
  if (o & Z2.ExcludeBuffers)
14334
14322
  continue;
@@ -14467,7 +14455,7 @@ class Bw {
14467
14455
  this.parent = e, this.buffer = t, this.index = i, this.start = s;
14468
14456
  }
14469
14457
  }
14470
- class Me extends wl {
14458
+ class Me extends vl {
14471
14459
  get name() {
14472
14460
  return this.type.name;
14473
14461
  }
@@ -14567,7 +14555,7 @@ class Me extends wl {
14567
14555
  return this.context.buffer.childString(this.index);
14568
14556
  }
14569
14557
  }
14570
- function xl(n) {
14558
+ function wl(n) {
14571
14559
  if (!n.length)
14572
14560
  return null;
14573
14561
  let e = 0, t = n[0];
@@ -14583,7 +14571,7 @@ class Lw {
14583
14571
  this.heads = e, this.node = t;
14584
14572
  }
14585
14573
  get next() {
14586
- return xl(this.heads);
14574
+ return wl(this.heads);
14587
14575
  }
14588
14576
  }
14589
14577
  function Hw(n, e, t) {
@@ -14599,7 +14587,7 @@ function Hw(n, e, t) {
14599
14587
  (s || (s = [i])).push(s1(r, e, t, !1));
14600
14588
  }
14601
14589
  }
14602
- return s ? xl(s) : i;
14590
+ return s ? wl(s) : i;
14603
14591
  }
14604
14592
  class f4 {
14605
14593
  /**
@@ -14904,7 +14892,7 @@ function Q4(n) {
14904
14892
  }
14905
14893
  function Iw(n) {
14906
14894
  var e;
14907
- let { buffer: t, nodeSet: i, maxBufferLength: s = ml, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new X4(t, t.length) : t, a = i.types, h = 0, c = 0;
14895
+ let { buffer: t, nodeSet: i, maxBufferLength: s = gl, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new X4(t, t.length) : t, a = i.types, h = 0, c = 0;
14908
14896
  function d(C, x, k, L, $, V) {
14909
14897
  let { id: U, start: S, end: R, size: N } = r, T = c, G = h;
14910
14898
  for (; N < 0; )
@@ -15151,7 +15139,7 @@ class qe {
15151
15139
  return s;
15152
15140
  }
15153
15141
  }
15154
- class bl {
15142
+ class xl {
15155
15143
  /**
15156
15144
  Start a parse, returning a [partial parse](#common.PartialParse)
15157
15145
  object. [`fragments`](#common.TreeFragment) can be passed in to
@@ -15268,7 +15256,7 @@ function jw(n) {
15268
15256
  e.push(e[i].concat(n[t]));
15269
15257
  return e.sort((t, i) => i.length - t.length);
15270
15258
  }
15271
- function _l(n) {
15259
+ function bl(n) {
15272
15260
  let e = /* @__PURE__ */ Object.create(null);
15273
15261
  for (let t in n) {
15274
15262
  let i = n[t];
@@ -15302,9 +15290,9 @@ function _l(n) {
15302
15290
  e[h] = c.sort(e[h]);
15303
15291
  }
15304
15292
  }
15305
- return yl.add(e);
15293
+ return _l.add(e);
15306
15294
  }
15307
- const yl = new w2();
15295
+ const _l = new w2();
15308
15296
  class g3 {
15309
15297
  constructor(e, t, i, s) {
15310
15298
  this.tags = e, this.mode = t, this.context = i, this.next = s;
@@ -15323,7 +15311,7 @@ class g3 {
15323
15311
  }
15324
15312
  }
15325
15313
  g3.empty = new g3([], 2, null);
15326
- function Sl(n, e) {
15314
+ function yl(n, e) {
15327
15315
  let t = /* @__PURE__ */ Object.create(null);
15328
15316
  for (let o of n)
15329
15317
  if (!Array.isArray(o.tag))
@@ -15405,7 +15393,7 @@ class Fw {
15405
15393
  }
15406
15394
  }
15407
15395
  function qw(n) {
15408
- let e = n.type.prop(yl);
15396
+ let e = n.type.prop(_l);
15409
15397
  for (; e && e.context && !n.matchContext(e.context); )
15410
15398
  e = e.next;
15411
15399
  return e || null;
@@ -15780,7 +15768,7 @@ for (let n in H) {
15780
15768
  let e = H[n];
15781
15769
  e instanceof I0 && (e.name = n);
15782
15770
  }
15783
- Sl([
15771
+ yl([
15784
15772
  { tag: H.link, class: "tok-link" },
15785
15773
  { tag: H.heading, class: "tok-heading" },
15786
15774
  { tag: H.emphasis, class: "tok-emphasis" },
@@ -16077,7 +16065,7 @@ class v3 {
16077
16065
  promise resolves.
16078
16066
  */
16079
16067
  static getSkippingParser(e) {
16080
- return new class extends bl {
16068
+ return new class extends xl {
16081
16069
  createParse(t, i, s) {
16082
16070
  let o = s[0].from, l = s[s.length - 1].to;
16083
16071
  return {
@@ -16141,7 +16129,7 @@ U0.state = /* @__PURE__ */ r0.define({
16141
16129
  return e.startState.facet(Be) != e.state.facet(Be) ? St.init(e.state) : n.apply(e);
16142
16130
  }
16143
16131
  });
16144
- let Cl = (n) => {
16132
+ let Sl = (n) => {
16145
16133
  let e = setTimeout(
16146
16134
  () => n(),
16147
16135
  500
@@ -16149,7 +16137,7 @@ let Cl = (n) => {
16149
16137
  );
16150
16138
  return () => clearTimeout(e);
16151
16139
  };
16152
- typeof requestIdleCallback < "u" && (Cl = (n) => {
16140
+ typeof requestIdleCallback < "u" && (Sl = (n) => {
16153
16141
  let e = -1, t = setTimeout(
16154
16142
  () => {
16155
16143
  e = requestIdleCallback(n, {
@@ -16174,7 +16162,7 @@ const p6 = typeof navigator < "u" && (!((f6 = navigator.scheduling) === null ||
16174
16162
  if (this.working)
16175
16163
  return;
16176
16164
  let { state: e } = this.view, t = e.field(U0.state);
16177
- (t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = Cl(this.work));
16165
+ (t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = Sl(this.work));
16178
16166
  }
16179
16167
  work(e) {
16180
16168
  this.working = null;
@@ -16323,7 +16311,7 @@ class $3 {
16323
16311
  return this.options.simulateBreak || null;
16324
16312
  }
16325
16313
  }
16326
- const kl = /* @__PURE__ */ new w2();
16314
+ const Cl = /* @__PURE__ */ new w2();
16327
16315
  function ex(n, e, t) {
16328
16316
  let i = e.resolveStack(t), s = e.resolveInner(t, -1).resolve(t, 0).enterUnfinishedNodesBefore(t);
16329
16317
  if (s != i.node) {
@@ -16333,9 +16321,9 @@ function ex(n, e, t) {
16333
16321
  for (let l = o.length - 1; l >= 0; l--)
16334
16322
  i = { node: o[l], next: i };
16335
16323
  }
16336
- return Dl(i, n, t);
16324
+ return kl(i, n, t);
16337
16325
  }
16338
- function Dl(n, e, t) {
16326
+ function kl(n, e, t) {
16339
16327
  for (let i = n; i; i = i.next) {
16340
16328
  let s = ix(i.node);
16341
16329
  if (s)
@@ -16347,7 +16335,7 @@ function tx(n) {
16347
16335
  return n.pos == n.options.simulateBreak && n.options.simulateDoubleBreak;
16348
16336
  }
16349
16337
  function ix(n) {
16350
- let e = n.type.prop(kl);
16338
+ let e = n.type.prop(Cl);
16351
16339
  if (e)
16352
16340
  return e;
16353
16341
  let t = n.firstChild, i;
@@ -16415,7 +16403,7 @@ class ti extends $3 {
16415
16403
  and return the result of that.
16416
16404
  */
16417
16405
  continue() {
16418
- return Dl(this.context.next, this.base, this.pos);
16406
+ return kl(this.context.next, this.base, this.pos);
16419
16407
  }
16420
16408
  }
16421
16409
  function sx(n, e) {
@@ -16475,7 +16463,7 @@ function ax() {
16475
16463
  return a.length ? [n, { changes: a, sequential: !0 }] : n;
16476
16464
  });
16477
16465
  }
16478
- const cx = /* @__PURE__ */ J.define(), Ol = /* @__PURE__ */ new w2();
16466
+ const cx = /* @__PURE__ */ J.define(), Dl = /* @__PURE__ */ new w2();
16479
16467
  function hx(n, e, t) {
16480
16468
  let i = t0(n);
16481
16469
  if (i.length < t)
@@ -16487,7 +16475,7 @@ function hx(n, e, t) {
16487
16475
  continue;
16488
16476
  if (o && r.from < e)
16489
16477
  break;
16490
- let a = r.type.prop(Ol);
16478
+ let a = r.type.prop(Dl);
16491
16479
  if (a && (r.to < i.length - 50 || i.length == n.doc.length || !dx(r))) {
16492
16480
  let h = a(r, n);
16493
16481
  h && h.from <= t && h.from >= e && h.to > t && (o = h);
@@ -16507,12 +16495,12 @@ function x3(n, e, t) {
16507
16495
  }
16508
16496
  return hx(n, e, t);
16509
16497
  }
16510
- function Ml(n, e) {
16498
+ function Ol(n, e) {
16511
16499
  let t = e.mapPos(n.from, 1), i = e.mapPos(n.to, -1);
16512
16500
  return t >= i ? void 0 : { from: t, to: i };
16513
16501
  }
16514
- const j3 = /* @__PURE__ */ m2.define({ map: Ml }), m1 = /* @__PURE__ */ m2.define({ map: Ml });
16515
- function Tl(n) {
16502
+ const j3 = /* @__PURE__ */ m2.define({ map: Ol }), m1 = /* @__PURE__ */ m2.define({ map: Ol });
16503
+ function Ml(n) {
16516
16504
  let e = [];
16517
16505
  for (let { head: t } of n.state.selection.ranges)
16518
16506
  e.some((i) => i.from <= t && i.to >= t) || e.push(n.lineBlockAt(t));
@@ -16526,7 +16514,7 @@ const et = /* @__PURE__ */ r0.define({
16526
16514
  e.isUserEvent("delete") && e.changes.iterChangedRanges((t, i) => n = Wn(n, t, i)), n = n.map(e.changes);
16527
16515
  for (let t of e.effects)
16528
16516
  if (t.is(j3) && !ux(n, t.value.from, t.value.to)) {
16529
- let { preparePlaceholder: i } = e.state.facet(Vl), s = i ? d2.replace({ widget: new xx(i(e.state, t.value)) }) : Un;
16517
+ let { preparePlaceholder: i } = e.state.facet(Pl), s = i ? d2.replace({ widget: new xx(i(e.state, t.value)) }) : Un;
16530
16518
  n = n.update({ add: [s.range(t.value.from, t.value.to)] });
16531
16519
  } else t.is(m1) && (n = n.update({
16532
16520
  filter: (i, s) => t.value.from != i || t.value.to != s,
@@ -16578,27 +16566,27 @@ function ux(n, e, t) {
16578
16566
  s == e && o == t && (i = !0);
16579
16567
  }), i;
16580
16568
  }
16581
- function zl(n, e) {
16582
- return n.field(et, !1) ? e : e.concat(m2.appendConfig.of(Al()));
16569
+ function Tl(n, e) {
16570
+ return n.field(et, !1) ? e : e.concat(m2.appendConfig.of(Vl()));
16583
16571
  }
16584
16572
  const fx = (n) => {
16585
- for (let e of Tl(n)) {
16573
+ for (let e of Ml(n)) {
16586
16574
  let t = x3(n.state, e.from, e.to);
16587
16575
  if (t)
16588
- return n.dispatch({ effects: zl(n.state, [j3.of(t), Pl(n, t)]) }), !0;
16576
+ return n.dispatch({ effects: Tl(n.state, [j3.of(t), zl(n, t)]) }), !0;
16589
16577
  }
16590
16578
  return !1;
16591
16579
  }, px = (n) => {
16592
16580
  if (!n.state.field(et, !1))
16593
16581
  return !1;
16594
16582
  let e = [];
16595
- for (let t of Tl(n)) {
16583
+ for (let t of Ml(n)) {
16596
16584
  let i = b3(n.state, t.from, t.to);
16597
- i && e.push(m1.of(i), Pl(n, i, !1));
16585
+ i && e.push(m1.of(i), zl(n, i, !1));
16598
16586
  }
16599
16587
  return e.length && n.dispatch({ effects: e }), e.length > 0;
16600
16588
  };
16601
- function Pl(n, e, t = !0) {
16589
+ function zl(n, e, t = !0) {
16602
16590
  let i = n.state.doc.lineAt(e.from).number, s = n.state.doc.lineAt(e.to).number;
16603
16591
  return Q.announce.of(`${n.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`);
16604
16592
  }
@@ -16608,7 +16596,7 @@ const gx = (n) => {
16608
16596
  let s = n.lineBlockAt(i), o = x3(e, s.from, s.to);
16609
16597
  o && t.push(j3.of(o)), i = (o ? n.lineBlockAt(o.to) : s).to + 1;
16610
16598
  }
16611
- return t.length && n.dispatch({ effects: zl(n.state, t) }), !!t.length;
16599
+ return t.length && n.dispatch({ effects: Tl(n.state, t) }), !!t.length;
16612
16600
  }, mx = (n) => {
16613
16601
  let e = n.state.field(et, !1);
16614
16602
  if (!e || !e.size)
@@ -16626,16 +16614,16 @@ const gx = (n) => {
16626
16614
  placeholderDOM: null,
16627
16615
  preparePlaceholder: null,
16628
16616
  placeholderText: "…"
16629
- }, Vl = /* @__PURE__ */ J.define({
16617
+ }, Pl = /* @__PURE__ */ J.define({
16630
16618
  combine(n) {
16631
16619
  return re(n, wx);
16632
16620
  }
16633
16621
  });
16634
- function Al(n) {
16622
+ function Vl(n) {
16635
16623
  return [et, yx];
16636
16624
  }
16637
- function El(n, e) {
16638
- let { state: t } = n, i = t.facet(Vl), s = (l) => {
16625
+ function Al(n, e) {
16626
+ let { state: t } = n, i = t.facet(Pl), s = (l) => {
16639
16627
  let r = n.lineBlockAt(n.posAtDOM(l.target)), a = b3(n.state, r.from, r.to);
16640
16628
  a && n.dispatch({ effects: m1.of(a) }), l.preventDefault();
16641
16629
  };
@@ -16646,7 +16634,7 @@ function El(n, e) {
16646
16634
  }
16647
16635
  const Un = /* @__PURE__ */ d2.replace({ widget: /* @__PURE__ */ new class extends Le {
16648
16636
  toDOM(n) {
16649
- return El(n, null);
16637
+ return Al(n, null);
16650
16638
  }
16651
16639
  }() });
16652
16640
  class xx extends Le {
@@ -16657,7 +16645,7 @@ class xx extends Le {
16657
16645
  return this.value == e.value;
16658
16646
  }
16659
16647
  toDOM(e) {
16660
- return El(e, this.value);
16648
+ return Al(e, this.value);
16661
16649
  }
16662
16650
  }
16663
16651
  const bx = {
@@ -16722,7 +16710,7 @@ function _x(n = {}) {
16722
16710
  }
16723
16711
  }
16724
16712
  }),
16725
- Al()
16713
+ Vl()
16726
16714
  ];
16727
16715
  }
16728
16716
  const yx = /* @__PURE__ */ Q.baseTheme({
@@ -16749,7 +16737,7 @@ class W3 {
16749
16737
  return (i || (i = /* @__PURE__ */ Object.create(null)))["." + a] = r, a;
16750
16738
  }
16751
16739
  const o = typeof t.all == "string" ? t.all : t.all ? s(t.all) : void 0, l = t.scope;
16752
- this.scope = l instanceof U0 ? (r) => r.prop(at) == l.data : l ? (r) => r == l : void 0, this.style = Sl(e.map((r) => ({
16740
+ this.scope = l instanceof U0 ? (r) => r.prop(at) == l.data : l ? (r) => r == l : void 0, this.style = yl(e.map((r) => ({
16753
16741
  tag: r.tag,
16754
16742
  class: r.class || s(Object.assign({}, r, { tag: null }))
16755
16743
  })), {
@@ -16775,18 +16763,18 @@ class W3 {
16775
16763
  return new W3(e, t || {});
16776
16764
  }
16777
16765
  }
16778
- const g4 = /* @__PURE__ */ J.define(), Bl = /* @__PURE__ */ J.define({
16766
+ const g4 = /* @__PURE__ */ J.define(), El = /* @__PURE__ */ J.define({
16779
16767
  combine(n) {
16780
16768
  return n.length ? [n[0]] : null;
16781
16769
  }
16782
16770
  });
16783
16771
  function m6(n) {
16784
16772
  let e = n.facet(g4);
16785
- return e.length ? e : n.facet(Bl);
16773
+ return e.length ? e : n.facet(El);
16786
16774
  }
16787
16775
  function Sx(n, e) {
16788
16776
  let t = [kx], i;
16789
- return n instanceof W3 && (n.module && t.push(Q.styleModule.of(n.module)), i = n.themeType), e != null && e.fallback ? t.push(Bl.of(n)) : i ? t.push(g4.computeN([Q.darkTheme], (s) => s.facet(Q.darkTheme) == (i == "dark") ? [n] : [])) : t.push(g4.of(n)), t;
16777
+ return n instanceof W3 && (n.module && t.push(Q.styleModule.of(n.module)), i = n.themeType), e != null && e.fallback ? t.push(El.of(n)) : i ? t.push(g4.computeN([Q.darkTheme], (s) => s.facet(Q.darkTheme) == (i == "dark") ? [n] : [])) : t.push(g4.of(n)), t;
16790
16778
  }
16791
16779
  class Cx {
16792
16780
  constructor(e) {
@@ -16890,12 +16878,12 @@ const kx = /* @__PURE__ */ tt.high(/* @__PURE__ */ K2.fromClass(Cx, {
16890
16878
  ]), Ox = /* @__PURE__ */ Q.baseTheme({
16891
16879
  "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
16892
16880
  "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
16893
- }), Ll = 1e4, Hl = "()[]{}", Il = /* @__PURE__ */ J.define({
16881
+ }), Bl = 1e4, Ll = "()[]{}", Hl = /* @__PURE__ */ J.define({
16894
16882
  combine(n) {
16895
16883
  return re(n, {
16896
16884
  afterCursor: !0,
16897
- brackets: Hl,
16898
- maxScanDistance: Ll,
16885
+ brackets: Ll,
16886
+ maxScanDistance: Bl,
16899
16887
  renderMatch: zx
16900
16888
  });
16901
16889
  }
@@ -16911,7 +16899,7 @@ const Px = /* @__PURE__ */ r0.define({
16911
16899
  update(n, e) {
16912
16900
  if (!e.docChanged && !e.selection)
16913
16901
  return n;
16914
- let t = [], i = e.state.facet(Il);
16902
+ let t = [], i = e.state.facet(Hl);
16915
16903
  for (let s of e.state.selection.ranges) {
16916
16904
  if (!s.empty)
16917
16905
  continue;
@@ -16926,9 +16914,9 @@ const Px = /* @__PURE__ */ r0.define({
16926
16914
  Ox
16927
16915
  ];
16928
16916
  function Ax(n = {}) {
16929
- return [Il.of(n), Vx];
16917
+ return [Hl.of(n), Vx];
16930
16918
  }
16931
- const Gl = /* @__PURE__ */ new w2();
16919
+ const Il = /* @__PURE__ */ new w2();
16932
16920
  function m4(n, e, t) {
16933
16921
  let i = n.prop(e < 0 ? w2.openedBy : w2.closedBy);
16934
16922
  if (i)
@@ -16941,11 +16929,11 @@ function m4(n, e, t) {
16941
16929
  return null;
16942
16930
  }
16943
16931
  function v4(n) {
16944
- let e = n.type.prop(Gl);
16932
+ let e = n.type.prop(Il);
16945
16933
  return e ? e(n.node) : n;
16946
16934
  }
16947
16935
  function ne(n, e, t, i = {}) {
16948
- let s = i.maxScanDistance || Ll, o = i.brackets || Hl, l = t0(n), r = l.resolveInner(e, t);
16936
+ let s = i.maxScanDistance || Bl, o = i.brackets || Ll, l = t0(n), r = l.resolveInner(e, t);
16949
16937
  for (let a = r; a; a = a.parent) {
16950
16938
  let h = m4(a.type, t, o);
16951
16939
  if (h && a.from < a.to) {
@@ -17043,7 +17031,7 @@ function Ix(n, e) {
17043
17031
  let l = Yn[s] = k0.define({
17044
17032
  id: Fn.length,
17045
17033
  name: i,
17046
- props: [_l({ [i]: t })]
17034
+ props: [bl({ [i]: t })]
17047
17035
  });
17048
17036
  return Fn.push(l), l.id;
17049
17037
  }
@@ -17065,11 +17053,11 @@ const Rx = /* @__PURE__ */ ii(
17065
17053
  0
17066
17054
  /* CommentOption.Toggle */
17067
17055
  ), Nx = /* @__PURE__ */ ii(
17068
- Rl,
17056
+ Gl,
17069
17057
  0
17070
17058
  /* CommentOption.Toggle */
17071
17059
  ), $x = /* @__PURE__ */ ii(
17072
- (n, e) => Rl(n, e, Wx(e)),
17060
+ (n, e) => Gl(n, e, Wx(e)),
17073
17061
  0
17074
17062
  /* CommentOption.Toggle */
17075
17063
  );
@@ -17109,7 +17097,7 @@ function Wx(n) {
17109
17097
  }
17110
17098
  return e;
17111
17099
  }
17112
- function Rl(n, e, t = e.selection.ranges) {
17100
+ function Gl(n, e, t = e.selection.ranges) {
17113
17101
  let i = t.map((o) => ni(e, o.from).block);
17114
17102
  if (!i.every((o) => o))
17115
17103
  return null;
@@ -17164,7 +17152,7 @@ function Ux(n, e, t = e.selection.ranges) {
17164
17152
  }
17165
17153
  return null;
17166
17154
  }
17167
- const w4 = /* @__PURE__ */ xe.define(), Fx = /* @__PURE__ */ xe.define(), qx = /* @__PURE__ */ J.define(), Nl = /* @__PURE__ */ J.define({
17155
+ const w4 = /* @__PURE__ */ xe.define(), Fx = /* @__PURE__ */ xe.define(), qx = /* @__PURE__ */ J.define(), Rl = /* @__PURE__ */ J.define({
17168
17156
  combine(n) {
17169
17157
  return re(n, {
17170
17158
  minDepth: 100,
@@ -17176,15 +17164,15 @@ const w4 = /* @__PURE__ */ xe.define(), Fx = /* @__PURE__ */ xe.define(), qx = /
17176
17164
  joinToEvent: (e, t) => (i, s) => e(i, s) || t(i, s)
17177
17165
  });
17178
17166
  }
17179
- }), $l = /* @__PURE__ */ r0.define({
17167
+ }), Nl = /* @__PURE__ */ r0.define({
17180
17168
  create() {
17181
17169
  return se.empty;
17182
17170
  },
17183
17171
  update(n, e) {
17184
- let t = e.state.facet(Nl), i = e.annotation(w4);
17172
+ let t = e.state.facet(Rl), i = e.annotation(w4);
17185
17173
  if (i) {
17186
17174
  let a = C0.fromTransaction(e, i.selection), h = i.side, c = h == 0 ? n.undone : n.done;
17187
- return a ? c = _3(c, c.length, t.minDepth, a) : c = Ul(c, e.startState.selection), new se(h == 0 ? i.rest : c, h == 0 ? c : i.rest);
17175
+ return a ? c = _3(c, c.length, t.minDepth, a) : c = Wl(c, e.startState.selection), new se(h == 0 ? i.rest : c, h == 0 ? c : i.rest);
17188
17176
  }
17189
17177
  let s = e.annotation(Fx);
17190
17178
  if ((s == "full" || s == "before") && (n = n.isolate()), e.annotation(J2.addToHistory) === !1)
@@ -17201,11 +17189,11 @@ const w4 = /* @__PURE__ */ xe.define(), Fx = /* @__PURE__ */ xe.define(), qx = /
17201
17189
  });
17202
17190
  function Yx(n = {}) {
17203
17191
  return [
17204
- $l,
17205
- Nl.of(n),
17192
+ Nl,
17193
+ Rl.of(n),
17206
17194
  Q.domEventHandlers({
17207
17195
  beforeinput(e, t) {
17208
- let i = e.inputType == "historyUndo" ? jl : e.inputType == "historyRedo" ? x4 : null;
17196
+ let i = e.inputType == "historyUndo" ? $l : e.inputType == "historyRedo" ? x4 : null;
17209
17197
  return i ? (e.preventDefault(), i(t)) : !1;
17210
17198
  }
17211
17199
  })
@@ -17215,14 +17203,14 @@ function U3(n, e) {
17215
17203
  return function({ state: t, dispatch: i }) {
17216
17204
  if (!e && t.readOnly)
17217
17205
  return !1;
17218
- let s = t.field($l, !1);
17206
+ let s = t.field(Nl, !1);
17219
17207
  if (!s)
17220
17208
  return !1;
17221
17209
  let o = s.pop(n, t, e);
17222
17210
  return o ? (i(o), !0) : !1;
17223
17211
  };
17224
17212
  }
17225
- const jl = /* @__PURE__ */ U3(0, !1), x4 = /* @__PURE__ */ U3(1, !1), Kx = /* @__PURE__ */ U3(0, !0), Xx = /* @__PURE__ */ U3(1, !0);
17213
+ const $l = /* @__PURE__ */ U3(0, !1), x4 = /* @__PURE__ */ U3(1, !1), Kx = /* @__PURE__ */ U3(0, !0), Xx = /* @__PURE__ */ U3(1, !0);
17226
17214
  class C0 {
17227
17215
  constructor(e, t, i, s, o) {
17228
17216
  this.changes = e, this.effects = t, this.mapped = i, this.startSelection = s, this.selectionsAfter = o;
@@ -17273,11 +17261,11 @@ function Qx(n, e) {
17273
17261
  function Jx(n, e) {
17274
17262
  return n.ranges.length == e.ranges.length && n.ranges.filter((t, i) => t.empty != e.ranges[i].empty).length === 0;
17275
17263
  }
17276
- function Wl(n, e) {
17264
+ function jl(n, e) {
17277
17265
  return n.length ? e.length ? n.concat(e) : n : e;
17278
17266
  }
17279
17267
  const G0 = [], Zx = 200;
17280
- function Ul(n, e) {
17268
+ function Wl(n, e) {
17281
17269
  if (n.length) {
17282
17270
  let t = n[n.length - 1], i = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - Zx));
17283
17271
  return i.length && i[i.length - 1].eq(e) ? n : (i.push(e), _3(n, n.length - 1, 1e9, t.setSelAfter(i)));
@@ -17303,7 +17291,7 @@ function w6(n, e) {
17303
17291
  return i.length ? [C0.selection(i)] : G0;
17304
17292
  }
17305
17293
  function tb(n, e, t) {
17306
- let i = Wl(n.selectionsAfter.length ? n.selectionsAfter.map((r) => r.map(e)) : G0, t);
17294
+ let i = jl(n.selectionsAfter.length ? n.selectionsAfter.map((r) => r.map(e)) : G0, t);
17307
17295
  if (!n.changes)
17308
17296
  return C0.selection(i);
17309
17297
  let s = n.changes.map(e), o = e.mapDesc(n.changes, !0), l = n.mapped ? n.mapped.composeDesc(o) : o;
@@ -17320,11 +17308,11 @@ class se {
17320
17308
  addChanges(e, t, i, s, o) {
17321
17309
  let l = this.done, r = l[l.length - 1];
17322
17310
  return r && r.changes && !r.changes.empty && e.changes && (!i || ib.test(i)) && (!r.selectionsAfter.length && t - this.prevTime < s.newGroupDelay && s.joinToEvent(o, Qx(r.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
17323
- i == "input.type.compose") ? l = _3(l, l.length - 1, s.minDepth, new C0(e.changes.compose(r.changes), Wl(m2.mapEffects(e.effects, r.changes), r.effects), r.mapped, r.startSelection, G0)) : l = _3(l, l.length, s.minDepth, e), new se(l, G0, t, i);
17311
+ i == "input.type.compose") ? l = _3(l, l.length - 1, s.minDepth, new C0(e.changes.compose(r.changes), jl(m2.mapEffects(e.effects, r.changes), r.effects), r.mapped, r.startSelection, G0)) : l = _3(l, l.length, s.minDepth, e), new se(l, G0, t, i);
17324
17312
  }
17325
17313
  addSelection(e, t, i, s) {
17326
17314
  let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : G0;
17327
- return o.length > 0 && t - this.prevTime < s && i == this.prevUserEvent && i && /^select($|\.)/.test(i) && Jx(o[o.length - 1], e) ? this : new se(Ul(this.done, e), this.undone, t, i);
17315
+ return o.length > 0 && t - this.prevTime < s && i == this.prevUserEvent && i && /^select($|\.)/.test(i) && Jx(o[o.length - 1], e) ? this : new se(Wl(this.done, e), this.undone, t, i);
17328
17316
  }
17329
17317
  addMapping(e) {
17330
17318
  return new se(w6(this.done, e), w6(this.undone, e), this.prevTime, this.prevUserEvent);
@@ -17358,7 +17346,7 @@ class se {
17358
17346
  }
17359
17347
  se.empty = /* @__PURE__ */ new se(G0, G0);
17360
17348
  const nb = [
17361
- { key: "Mod-z", run: jl, preventDefault: !0 },
17349
+ { key: "Mod-z", run: $l, preventDefault: !0 },
17362
17350
  { key: "Mod-y", mac: "Mod-Shift-z", run: x4, preventDefault: !0 },
17363
17351
  { linux: "Ctrl-Shift-z", run: x4, preventDefault: !0 },
17364
17352
  { key: "Mod-u", run: Kx, preventDefault: !0 },
@@ -17377,17 +17365,17 @@ function Y0({ state: n, dispatch: e }, t) {
17377
17365
  function F3(n, e) {
17378
17366
  return P.cursor(e ? n.to : n.from);
17379
17367
  }
17380
- function Fl(n, e) {
17368
+ function Ul(n, e) {
17381
17369
  return Y0(n, (t) => t.empty ? n.moveByChar(t, e) : F3(t, e));
17382
17370
  }
17383
17371
  function d0(n) {
17384
17372
  return n.textDirectionAt(n.state.selection.main.head) == G2.LTR;
17385
17373
  }
17386
- const ql = (n) => Fl(n, !d0(n)), Yl = (n) => Fl(n, d0(n));
17387
- function Kl(n, e) {
17374
+ const Fl = (n) => Ul(n, !d0(n)), ql = (n) => Ul(n, d0(n));
17375
+ function Yl(n, e) {
17388
17376
  return Y0(n, (t) => t.empty ? n.moveByGroup(t, e) : F3(t, e));
17389
17377
  }
17390
- const sb = (n) => Kl(n, !d0(n)), ob = (n) => Kl(n, d0(n));
17378
+ const sb = (n) => Yl(n, !d0(n)), ob = (n) => Yl(n, d0(n));
17391
17379
  function lb(n, e, t) {
17392
17380
  if (e.type.prop(t))
17393
17381
  return !0;
@@ -17406,7 +17394,7 @@ function q3(n, e, t) {
17406
17394
  return o && (l = t ? ne(n, i.from, 1) : ne(n, i.to, -1)) && l.matched ? r = t ? l.end.to : l.end.from : r = t ? i.to : i.from, P.cursor(r, t ? -1 : 1);
17407
17395
  }
17408
17396
  const rb = (n) => Y0(n, (e) => q3(n.state, e, !d0(n))), ab = (n) => Y0(n, (e) => q3(n.state, e, d0(n)));
17409
- function Xl(n, e) {
17397
+ function Kl(n, e) {
17410
17398
  return Y0(n, (t) => {
17411
17399
  if (!t.empty)
17412
17400
  return F3(t, e);
@@ -17414,8 +17402,8 @@ function Xl(n, e) {
17414
17402
  return i.head != t.head ? i : n.moveToLineBoundary(t, e);
17415
17403
  });
17416
17404
  }
17417
- const Ql = (n) => Xl(n, !1), Jl = (n) => Xl(n, !0);
17418
- function Zl(n) {
17405
+ const Xl = (n) => Kl(n, !1), Ql = (n) => Kl(n, !0);
17406
+ function Jl(n) {
17419
17407
  let e = n.scrollDOM.clientHeight < n.scrollDOM.scrollHeight - 2, t = 0, i = 0, s;
17420
17408
  if (e) {
17421
17409
  for (let o of n.state.facet(Q.scrollMargins)) {
@@ -17432,8 +17420,8 @@ function Zl(n) {
17432
17420
  height: Math.max(n.defaultLineHeight, s - 5)
17433
17421
  };
17434
17422
  }
17435
- function e8(n, e) {
17436
- let t = Zl(n), { state: i } = n, s = Ot(i.selection, (l) => l.empty ? n.moveVertically(l, e, t.height) : F3(l, e));
17423
+ function Zl(n, e) {
17424
+ let t = Jl(n), { state: i } = n, s = Ot(i.selection, (l) => l.empty ? n.moveVertically(l, e, t.height) : F3(l, e));
17437
17425
  if (s.eq(i.selection))
17438
17426
  return !1;
17439
17427
  let o;
@@ -17443,7 +17431,7 @@ function e8(n, e) {
17443
17431
  }
17444
17432
  return n.dispatch(ae(i, s), { effects: o }), !0;
17445
17433
  }
17446
- const Kn = (n) => e8(n, !1), b4 = (n) => e8(n, !0);
17434
+ const Kn = (n) => Zl(n, !1), b4 = (n) => Zl(n, !0);
17447
17435
  function He(n, e, t) {
17448
17436
  let i = n.lineBlockAt(e.head), s = n.moveToLineBoundary(e, t);
17449
17437
  if (s.head == e.head && s.head != (t ? i.to : i.from) && (s = n.moveToLineBoundary(e, t, !1)), !t && s.head == i.from && i.length) {
@@ -17472,22 +17460,22 @@ function W0(n, e) {
17472
17460
  });
17473
17461
  return t.eq(n.state.selection) ? !1 : (n.dispatch(ae(n.state, t)), !0);
17474
17462
  }
17475
- function t8(n, e) {
17463
+ function e8(n, e) {
17476
17464
  return W0(n, (t) => n.moveByChar(t, e));
17477
17465
  }
17478
- const i8 = (n) => t8(n, !d0(n)), n8 = (n) => t8(n, d0(n));
17479
- function s8(n, e) {
17466
+ const t8 = (n) => e8(n, !d0(n)), i8 = (n) => e8(n, d0(n));
17467
+ function n8(n, e) {
17480
17468
  return W0(n, (t) => n.moveByGroup(t, e));
17481
17469
  }
17482
- const vb = (n) => s8(n, !d0(n)), wb = (n) => s8(n, d0(n)), xb = (n) => W0(n, (e) => q3(n.state, e, !d0(n))), bb = (n) => W0(n, (e) => q3(n.state, e, d0(n)));
17483
- function o8(n, e) {
17470
+ const vb = (n) => n8(n, !d0(n)), wb = (n) => n8(n, d0(n)), xb = (n) => W0(n, (e) => q3(n.state, e, !d0(n))), bb = (n) => W0(n, (e) => q3(n.state, e, d0(n)));
17471
+ function s8(n, e) {
17484
17472
  return W0(n, (t) => n.moveVertically(t, e));
17485
17473
  }
17486
- const l8 = (n) => o8(n, !1), r8 = (n) => o8(n, !0);
17487
- function a8(n, e) {
17488
- return W0(n, (t) => n.moveVertically(t, e, Zl(n).height));
17474
+ const o8 = (n) => s8(n, !1), l8 = (n) => s8(n, !0);
17475
+ function r8(n, e) {
17476
+ return W0(n, (t) => n.moveVertically(t, e, Jl(n).height));
17489
17477
  }
17490
- const Xn = (n) => a8(n, !1), Qn = (n) => a8(n, !0), _b = (n) => W0(n, (e) => He(n, e, !0)), yb = (n) => W0(n, (e) => He(n, e, !1)), Sb = (n) => W0(n, (e) => He(n, e, !d0(n))), Cb = (n) => W0(n, (e) => He(n, e, d0(n))), kb = (n) => W0(n, (e) => P.cursor(n.lineBlockAt(e.head).from)), Db = (n) => W0(n, (e) => P.cursor(n.lineBlockAt(e.head).to)), Jn = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: 0 })), !0), Zn = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: n.doc.length })), !0), es = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: n.selection.main.anchor, head: 0 })), !0), ts = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), Ob = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), Mb = ({ state: n, dispatch: e }) => {
17478
+ const Xn = (n) => r8(n, !1), Qn = (n) => r8(n, !0), _b = (n) => W0(n, (e) => He(n, e, !0)), yb = (n) => W0(n, (e) => He(n, e, !1)), Sb = (n) => W0(n, (e) => He(n, e, !d0(n))), Cb = (n) => W0(n, (e) => He(n, e, d0(n))), kb = (n) => W0(n, (e) => P.cursor(n.lineBlockAt(e.head).from)), Db = (n) => W0(n, (e) => P.cursor(n.lineBlockAt(e.head).to)), Jn = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: 0 })), !0), Zn = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: n.doc.length })), !0), es = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: n.selection.main.anchor, head: 0 })), !0), ts = ({ state: n, dispatch: e }) => (e(ae(n, { anchor: n.selection.main.anchor, head: n.doc.length })), !0), Ob = ({ state: n, dispatch: e }) => (e(n.update({ selection: { anchor: 0, head: n.doc.length }, userEvent: "select" })), !0), Mb = ({ state: n, dispatch: e }) => {
17491
17479
  let t = Y3(n).map(({ from: i, to: s }) => P.range(i, Math.min(s + 1, n.doc.length)));
17492
17480
  return e(n.update({ selection: P.create(t), userEvent: "select" })), !0;
17493
17481
  }, Tb = ({ state: n, dispatch: e }) => {
@@ -17535,7 +17523,7 @@ function G1(n, e, t) {
17535
17523
  });
17536
17524
  return e;
17537
17525
  }
17538
- const c8 = (n, e, t) => v1(n, (i) => {
17526
+ const a8 = (n, e, t) => v1(n, (i) => {
17539
17527
  let s = i.from, { state: o } = n, l = o.doc.lineAt(s), r, a;
17540
17528
  if (t && !e && s > l.from && s < l.from + 200 && !/[^ \t]/.test(r = l.text.slice(0, s - l.from))) {
17541
17529
  if (r[r.length - 1] == " ")
@@ -17547,7 +17535,7 @@ const c8 = (n, e, t) => v1(n, (i) => {
17547
17535
  } else
17548
17536
  a = l0(l.text, s - l.from, e, e) + l.from, a == s && l.number != (e ? o.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(l.text.slice(a - l.from, s - l.from)) && (a = l0(l.text, a - l.from, !1, !1) + l.from);
17549
17537
  return a;
17550
- }), _4 = (n) => c8(n, !1, !0), h8 = (n) => c8(n, !0, !1), d8 = (n, e) => v1(n, (t) => {
17538
+ }), _4 = (n) => a8(n, !1, !0), c8 = (n) => a8(n, !0, !1), h8 = (n, e) => v1(n, (t) => {
17551
17539
  let i = t.head, { state: s } = n, o = s.doc.lineAt(i), l = s.charCategorizer(i);
17552
17540
  for (let r = null; ; ) {
17553
17541
  if (i == (e ? o.to : o.from)) {
@@ -17560,7 +17548,7 @@ const c8 = (n, e, t) => v1(n, (i) => {
17560
17548
  (h != " " || i != t.head) && (r = c), i = a;
17561
17549
  }
17562
17550
  return i;
17563
- }), u8 = (n) => d8(n, !1), Pb = (n) => d8(n, !0), Vb = (n) => v1(n, (e) => {
17551
+ }), d8 = (n) => h8(n, !1), Pb = (n) => h8(n, !0), Vb = (n) => v1(n, (e) => {
17564
17552
  let t = n.lineBlockAt(e.head).to;
17565
17553
  return e.head < t ? t : Math.min(n.state.doc.length, e.head + 1);
17566
17554
  }), Ab = (n) => v1(n, (e) => {
@@ -17604,7 +17592,7 @@ function Y3(n) {
17604
17592
  }
17605
17593
  return e;
17606
17594
  }
17607
- function f8(n, e, t) {
17595
+ function u8(n, e, t) {
17608
17596
  if (n.readOnly)
17609
17597
  return !1;
17610
17598
  let i = [], s = [];
@@ -17629,8 +17617,8 @@ function f8(n, e, t) {
17629
17617
  userEvent: "move.line"
17630
17618
  })), !0) : !1;
17631
17619
  }
17632
- const Hb = ({ state: n, dispatch: e }) => f8(n, e, !1), Ib = ({ state: n, dispatch: e }) => f8(n, e, !0);
17633
- function p8(n, e, t) {
17620
+ const Hb = ({ state: n, dispatch: e }) => u8(n, e, !1), Ib = ({ state: n, dispatch: e }) => u8(n, e, !0);
17621
+ function f8(n, e, t) {
17634
17622
  if (n.readOnly)
17635
17623
  return !1;
17636
17624
  let i = [];
@@ -17638,7 +17626,7 @@ function p8(n, e, t) {
17638
17626
  t ? i.push({ from: s.from, insert: n.doc.slice(s.from, s.to) + n.lineBreak }) : i.push({ from: s.to, insert: n.lineBreak + n.doc.slice(s.from, s.to) });
17639
17627
  return e(n.update({ changes: i, scrollIntoView: !0, userEvent: "input.copyline" })), !0;
17640
17628
  }
17641
- const Gb = ({ state: n, dispatch: e }) => p8(n, e, !1), Rb = ({ state: n, dispatch: e }) => p8(n, e, !0), Nb = (n) => {
17629
+ const Gb = ({ state: n, dispatch: e }) => f8(n, e, !1), Rb = ({ state: n, dispatch: e }) => f8(n, e, !0), Nb = (n) => {
17642
17630
  if (n.state.readOnly)
17643
17631
  return !1;
17644
17632
  let { state: e } = n, t = e.changes(Y3(e).map(({ from: s, to: o }) => (s > 0 ? s-- : o < e.doc.length && o++, { from: s, to: o }))), i = Ot(e.selection, (s) => {
@@ -17657,8 +17645,8 @@ function $b(n, e) {
17657
17645
  let t = t0(n).resolveInner(e), i = t.childBefore(e), s = t.childAfter(e), o;
17658
17646
  return i && s && i.to <= e && s.from >= e && (o = i.type.prop(w2.closedBy)) && o.indexOf(s.name) > -1 && n.doc.lineAt(i.to).from == n.doc.lineAt(s.from).from && !/\S/.test(n.sliceDoc(i.to, s.from)) ? { from: i.to, to: s.from } : null;
17659
17647
  }
17660
- const is = /* @__PURE__ */ g8(!1), jb = /* @__PURE__ */ g8(!0);
17661
- function g8(n) {
17648
+ const is = /* @__PURE__ */ p8(!1), jb = /* @__PURE__ */ p8(!0);
17649
+ function p8(n) {
17662
17650
  return ({ state: e, dispatch: t }) => {
17663
17651
  if (e.readOnly)
17664
17652
  return !1;
@@ -17719,30 +17707,30 @@ const Wb = ({ state: n, dispatch: e }) => {
17719
17707
  l++;
17720
17708
  i.push({ from: t.from + l, to: t.from + s.length, insert: r.slice(l) });
17721
17709
  }), { userEvent: "delete.dedent" })), !0), qb = (n) => (n.setTabFocusMode(), !0), Yb = [
17722
- { key: "Ctrl-b", run: ql, shift: i8, preventDefault: !0 },
17723
- { key: "Ctrl-f", run: Yl, shift: n8 },
17724
- { key: "Ctrl-p", run: Ql, shift: l8 },
17725
- { key: "Ctrl-n", run: Jl, shift: r8 },
17710
+ { key: "Ctrl-b", run: Fl, shift: t8, preventDefault: !0 },
17711
+ { key: "Ctrl-f", run: ql, shift: i8 },
17712
+ { key: "Ctrl-p", run: Xl, shift: o8 },
17713
+ { key: "Ctrl-n", run: Ql, shift: l8 },
17726
17714
  { key: "Ctrl-a", run: fb, shift: kb },
17727
17715
  { key: "Ctrl-e", run: pb, shift: Db },
17728
- { key: "Ctrl-d", run: h8 },
17716
+ { key: "Ctrl-d", run: c8 },
17729
17717
  { key: "Ctrl-h", run: _4 },
17730
17718
  { key: "Ctrl-k", run: Vb },
17731
- { key: "Ctrl-Alt-h", run: u8 },
17719
+ { key: "Ctrl-Alt-h", run: d8 },
17732
17720
  { key: "Ctrl-o", run: Bb },
17733
17721
  { key: "Ctrl-t", run: Lb },
17734
17722
  { key: "Ctrl-v", run: b4 }
17735
17723
  ], Kb = /* @__PURE__ */ [
17736
- { key: "ArrowLeft", run: ql, shift: i8, preventDefault: !0 },
17724
+ { key: "ArrowLeft", run: Fl, shift: t8, preventDefault: !0 },
17737
17725
  { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: sb, shift: vb, preventDefault: !0 },
17738
17726
  { mac: "Cmd-ArrowLeft", run: db, shift: Sb, preventDefault: !0 },
17739
- { key: "ArrowRight", run: Yl, shift: n8, preventDefault: !0 },
17727
+ { key: "ArrowRight", run: ql, shift: i8, preventDefault: !0 },
17740
17728
  { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: ob, shift: wb, preventDefault: !0 },
17741
17729
  { mac: "Cmd-ArrowRight", run: ub, shift: Cb, preventDefault: !0 },
17742
- { key: "ArrowUp", run: Ql, shift: l8, preventDefault: !0 },
17730
+ { key: "ArrowUp", run: Xl, shift: o8, preventDefault: !0 },
17743
17731
  { mac: "Cmd-ArrowUp", run: Jn, shift: es },
17744
17732
  { mac: "Ctrl-ArrowUp", run: Kn, shift: Xn },
17745
- { key: "ArrowDown", run: Jl, shift: r8, preventDefault: !0 },
17733
+ { key: "ArrowDown", run: Ql, shift: l8, preventDefault: !0 },
17746
17734
  { mac: "Cmd-ArrowDown", run: Zn, shift: ts },
17747
17735
  { mac: "Ctrl-ArrowDown", run: b4, shift: Qn },
17748
17736
  { key: "PageUp", run: Kn, shift: Xn },
@@ -17754,8 +17742,8 @@ const Wb = ({ state: n, dispatch: e }) => {
17754
17742
  { key: "Enter", run: is, shift: is },
17755
17743
  { key: "Mod-a", run: Ob },
17756
17744
  { key: "Backspace", run: _4, shift: _4 },
17757
- { key: "Delete", run: h8 },
17758
- { key: "Mod-Backspace", mac: "Alt-Backspace", run: u8 },
17745
+ { key: "Delete", run: c8 },
17746
+ { key: "Mod-Backspace", mac: "Alt-Backspace", run: d8 },
17759
17747
  { key: "Mod-Delete", mac: "Alt-Delete", run: Pb },
17760
17748
  { mac: "Mod-Backspace", run: Ab },
17761
17749
  { mac: "Mod-Delete", run: Eb }
@@ -17852,16 +17840,16 @@ class Ct {
17852
17840
  typeof Symbol < "u" && (Ct.prototype[Symbol.iterator] = function() {
17853
17841
  return this;
17854
17842
  });
17855
- const m8 = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, oi = "gm" + (/x/.unicode == null ? "" : "u");
17856
- class v8 {
17843
+ const g8 = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, oi = "gm" + (/x/.unicode == null ? "" : "u");
17844
+ class m8 {
17857
17845
  /**
17858
17846
  Create a cursor that will search the given range in the given
17859
17847
  document. `query` should be the raw pattern (as you'd pass it to
17860
17848
  `new RegExp`).
17861
17849
  */
17862
17850
  constructor(e, t, i, s = 0, o = e.length) {
17863
- if (this.text = e, this.to = o, this.curLine = "", this.done = !1, this.value = m8, /\\[sWDnr]|\n|\r|\[\^/.test(t))
17864
- return new w8(e, t, i, s, o);
17851
+ if (this.text = e, this.to = o, this.curLine = "", this.done = !1, this.value = g8, /\\[sWDnr]|\n|\r|\[\^/.test(t))
17852
+ return new v8(e, t, i, s, o);
17865
17853
  this.re = new RegExp(t, oi + (i != null && i.ignoreCase ? "i" : "")), this.test = i == null ? void 0 : i.test, this.iter = e.iter();
17866
17854
  let l = e.lineAt(s);
17867
17855
  this.curLineStart = l.from, this.matchPos = y3(e, s), this.getLine(this.curLineStart);
@@ -17911,9 +17899,9 @@ class pt {
17911
17899
  return l > t && (o = e.sliceString(t, l) + o, l = t), s.to < i && (o += e.sliceString(s.to, i)), x6.set(e, new pt(l, o)), new pt(t, o.slice(t - l, i - l));
17912
17900
  }
17913
17901
  }
17914
- class w8 {
17902
+ class v8 {
17915
17903
  constructor(e, t, i, s, o) {
17916
- this.text = e, this.to = o, this.done = !1, this.value = m8, this.matchPos = y3(e, s), this.re = new RegExp(t, oi + (i != null && i.ignoreCase ? "i" : "")), this.test = i == null ? void 0 : i.test, this.flat = pt.get(e, s, this.chunkEnd(
17904
+ this.text = e, this.to = o, this.done = !1, this.value = g8, this.matchPos = y3(e, s), this.re = new RegExp(t, oi + (i != null && i.ignoreCase ? "i" : "")), this.test = i == null ? void 0 : i.test, this.flat = pt.get(e, s, this.chunkEnd(
17917
17905
  s + 5e3
17918
17906
  /* Chunk.Base */
17919
17907
  ));
@@ -17935,7 +17923,7 @@ class w8 {
17935
17923
  }
17936
17924
  }
17937
17925
  }
17938
- typeof Symbol < "u" && (v8.prototype[Symbol.iterator] = w8.prototype[Symbol.iterator] = function() {
17926
+ typeof Symbol < "u" && (m8.prototype[Symbol.iterator] = v8.prototype[Symbol.iterator] = function() {
17939
17927
  return this;
17940
17928
  });
17941
17929
  function Qb(n) {
@@ -18136,7 +18124,7 @@ const h_ = ({ state: n, dispatch: e }) => {
18136
18124
  });
18137
18125
  }
18138
18126
  });
18139
- class x8 {
18127
+ class w8 {
18140
18128
  /**
18141
18129
  Create a query object.
18142
18130
  */
@@ -18171,7 +18159,7 @@ class x8 {
18171
18159
  return i == null && (i = s.doc.length), this.regexp ? ot(this, s, t, i) : st(this, s, t, i);
18172
18160
  }
18173
18161
  }
18174
- class b8 {
18162
+ class x8 {
18175
18163
  constructor(e) {
18176
18164
  this.spec = e;
18177
18165
  }
@@ -18182,7 +18170,7 @@ function st(n, e, t, i) {
18182
18170
  function d_(n, e) {
18183
18171
  return (t, i, s, o) => ((o > t || o + s.length < i) && (o = Math.max(0, t - 2), s = n.sliceString(o, Math.min(n.length, i + 2))), (e(S3(s, t - o)) != N2.Word || e(C3(s, t - o)) != N2.Word) && (e(C3(s, i - o)) != N2.Word || e(S3(s, i - o)) != N2.Word));
18184
18172
  }
18185
- class u_ extends b8 {
18173
+ class u_ extends x8 {
18186
18174
  constructor(e) {
18187
18175
  super(e);
18188
18176
  }
@@ -18231,7 +18219,7 @@ class u_ extends b8 {
18231
18219
  }
18232
18220
  }
18233
18221
  function ot(n, e, t, i) {
18234
- return new v8(e.doc, n.search, {
18222
+ return new m8(e.doc, n.search, {
18235
18223
  ignoreCase: !n.caseSensitive,
18236
18224
  test: n.wholeWord ? f_(e.charCategorizer(e.selection.main.head)) : void 0
18237
18225
  }, t, i);
@@ -18245,7 +18233,7 @@ function C3(n, e) {
18245
18233
  function f_(n) {
18246
18234
  return (e, t, i) => !i[0].length || (n(S3(i.input, i.index)) != N2.Word || n(C3(i.input, i.index)) != N2.Word) && (n(C3(i.input, i.index + i[0].length)) != N2.Word || n(S3(i.input, i.index + i[0].length)) != N2.Word);
18247
18235
  }
18248
- class p_ extends b8 {
18236
+ class p_ extends x8 {
18249
18237
  nextMatch(e, t, i) {
18250
18238
  let s = ot(this.spec, e, i, e.doc.length).next();
18251
18239
  return s.done && (s = ot(this.spec, e, 0, t).next()), s.done ? null : s.value;
@@ -18346,7 +18334,7 @@ const g_ = /* @__PURE__ */ d2.mark({ class: "cm-searchMatch" }), m_ = /* @__PURE
18346
18334
  function w1(n) {
18347
18335
  return (e) => {
18348
18336
  let t = e.state.field(Te, !1);
18349
- return t && t.query.spec.valid ? n(e, t) : S8(e);
18337
+ return t && t.query.spec.valid ? n(e, t) : y8(e);
18350
18338
  };
18351
18339
  }
18352
18340
  const k3 = /* @__PURE__ */ w1((n, { query: e }) => {
@@ -18358,7 +18346,7 @@ const k3 = /* @__PURE__ */ w1((n, { query: e }) => {
18358
18346
  selection: s,
18359
18347
  effects: [ai(n, i), o.scrollToMatch(s.main, n)],
18360
18348
  userEvent: "select.search"
18361
- }), y8(n), !0;
18349
+ }), _8(n), !0;
18362
18350
  }), D3 = /* @__PURE__ */ w1((n, { query: e }) => {
18363
18351
  let { state: t } = n, { from: i } = t.selection.main, s = e.prevMatch(t, i, i);
18364
18352
  if (!s)
@@ -18368,7 +18356,7 @@ const k3 = /* @__PURE__ */ w1((n, { query: e }) => {
18368
18356
  selection: o,
18369
18357
  effects: [ai(n, s), l.scrollToMatch(o.main, n)],
18370
18358
  userEvent: "select.search"
18371
- }), y8(n), !0;
18359
+ }), _8(n), !0;
18372
18360
  }), w_ = /* @__PURE__ */ w1((n, { query: e }) => {
18373
18361
  let t = e.matchAll(n.state, 1e3);
18374
18362
  return !t || !t.length ? !1 : (n.dispatch({
@@ -18430,7 +18418,7 @@ function S4(n, e) {
18430
18418
  if (e && !a)
18431
18419
  return e;
18432
18420
  let h = n.facet(Mt);
18433
- return new x8({
18421
+ return new w8({
18434
18422
  search: ((t = e == null ? void 0 : e.literal) !== null && t !== void 0 ? t : h.literal) ? a : a.replace(/\n/g, "\\n"),
18435
18423
  caseSensitive: (i = e == null ? void 0 : e.caseSensitive) !== null && i !== void 0 ? i : h.caseSensitive,
18436
18424
  literal: (s = e == null ? void 0 : e.literal) !== null && s !== void 0 ? s : h.literal,
@@ -18438,18 +18426,18 @@ function S4(n, e) {
18438
18426
  wholeWord: (l = e == null ? void 0 : e.wholeWord) !== null && l !== void 0 ? l : h.wholeWord
18439
18427
  });
18440
18428
  }
18441
- function _8(n) {
18429
+ function b8(n) {
18442
18430
  let e = i1(n, ri);
18443
18431
  return e && e.dom.querySelector("[main-field]");
18444
18432
  }
18445
- function y8(n) {
18446
- let e = _8(n);
18433
+ function _8(n) {
18434
+ let e = b8(n);
18447
18435
  e && e == n.root.activeElement && e.select();
18448
18436
  }
18449
- const S8 = (n) => {
18437
+ const y8 = (n) => {
18450
18438
  let e = n.state.field(Te, !1);
18451
18439
  if (e && e.panel) {
18452
- let t = _8(n);
18440
+ let t = b8(n);
18453
18441
  if (t && t != n.root.activeElement) {
18454
18442
  let i = S4(n.state, e.query.spec);
18455
18443
  i.valid && n.dispatch({ effects: l1.of(i) }), t.focus(), t.select();
@@ -18460,17 +18448,17 @@ const S8 = (n) => {
18460
18448
  e ? l1.of(S4(n.state, e.query.spec)) : m2.appendConfig.of(C_)
18461
18449
  ] });
18462
18450
  return !0;
18463
- }, C8 = (n) => {
18451
+ }, S8 = (n) => {
18464
18452
  let e = n.state.field(Te, !1);
18465
18453
  if (!e || !e.panel)
18466
18454
  return !1;
18467
18455
  let t = i1(n, ri);
18468
18456
  return t && t.dom.contains(n.root.activeElement) && n.focus(), n.dispatch({ effects: li.of(!1) }), !0;
18469
18457
  }, __ = [
18470
- { key: "Mod-f", run: S8, scope: "editor search-panel" },
18458
+ { key: "Mod-f", run: y8, scope: "editor search-panel" },
18471
18459
  { key: "F3", run: k3, shift: D3, scope: "editor search-panel", preventDefault: !0 },
18472
18460
  { key: "Mod-g", run: k3, shift: D3, scope: "editor search-panel", preventDefault: !0 },
18473
- { key: "Escape", run: C8, scope: "editor search-panel" },
18461
+ { key: "Escape", run: S8, scope: "editor search-panel" },
18474
18462
  { key: "Mod-Shift-l", run: x_ },
18475
18463
  { key: "Mod-Alt-g", run: Jb },
18476
18464
  { key: "Mod-d", run: h_, preventDefault: !0 }
@@ -18536,14 +18524,14 @@ class y_ {
18536
18524
  ],
18537
18525
  A2("button", {
18538
18526
  name: "close",
18539
- onclick: () => C8(e),
18527
+ onclick: () => S8(e),
18540
18528
  "aria-label": M0(e, "close"),
18541
18529
  type: "button"
18542
18530
  }, ["×"])
18543
18531
  ]);
18544
18532
  }
18545
18533
  commit() {
18546
- let e = new x8({
18534
+ let e = new w8({
18547
18535
  search: this.searchField.value,
18548
18536
  caseSensitive: this.caseField.checked,
18549
18537
  regexp: this.reField.checked,
@@ -18629,7 +18617,7 @@ const S_ = /* @__PURE__ */ Q.baseTheme({
18629
18617
  /* @__PURE__ */ tt.low(v_),
18630
18618
  S_
18631
18619
  ];
18632
- class k8 {
18620
+ class C8 {
18633
18621
  /**
18634
18622
  Create a new completion context. (Mostly useful for testing
18635
18623
  completion sources—in the editor, the extension will create
@@ -18658,7 +18646,7 @@ class k8 {
18658
18646
  cursor.
18659
18647
  */
18660
18648
  matchBefore(e) {
18661
- let t = this.state.doc.lineAt(this.pos), i = Math.max(t.from, this.pos - 250), s = t.text.slice(i - t.from, this.pos - t.from), o = s.search(D8(e, !1));
18649
+ let t = this.state.doc.lineAt(this.pos), i = Math.max(t.from, this.pos - 250), s = t.text.slice(i - t.from, this.pos - t.from), o = s.search(k8(e, !1));
18662
18650
  return o < 0 ? null : { from: i + o, to: this.pos, text: s.slice(o) };
18663
18651
  }
18664
18652
  /**
@@ -18714,12 +18702,12 @@ class as {
18714
18702
  function Ye(n) {
18715
18703
  return n.selection.main.from;
18716
18704
  }
18717
- function D8(n, e) {
18705
+ function k8(n, e) {
18718
18706
  var t;
18719
18707
  let { source: i } = n, s = e && i[0] != "^", o = i[i.length - 1] != "$";
18720
18708
  return !s && !o ? n : new RegExp(`${s ? "^" : ""}(?:${i})${o ? "$" : ""}`, (t = n.flags) !== null && t !== void 0 ? t : n.ignoreCase ? "i" : "");
18721
18709
  }
18722
- const O8 = /* @__PURE__ */ xe.define();
18710
+ const D8 = /* @__PURE__ */ xe.define();
18723
18711
  function O_(n, e, t, i) {
18724
18712
  let { main: s } = n.selection, o = t - s.from, l = i - s.from;
18725
18713
  return Object.assign(Object.assign({}, n.changeByRange((r) => {
@@ -19156,7 +19144,7 @@ class M3 {
19156
19144
  /* State.Inactive */
19157
19145
  ) : a));
19158
19146
  for (let a of e.effects)
19159
- a.is(T8) && (l = l && l.setSelected(a.value, this.id));
19147
+ a.is(M8) && (l = l && l.setSelected(a.value, this.id));
19160
19148
  return o == this.active && l == this.open ? this : new M3(o, this.id, l);
19161
19149
  }
19162
19150
  get tooltip() {
@@ -19193,9 +19181,9 @@ function us(n, e) {
19193
19181
  return e > -1 && (t["aria-activedescendant"] = n + "-" + e), t;
19194
19182
  }
19195
19183
  const R_ = [];
19196
- function M8(n, e) {
19184
+ function O8(n, e) {
19197
19185
  if (n.isUserEvent("input.complete")) {
19198
- let i = n.annotation(O8);
19186
+ let i = n.annotation(D8);
19199
19187
  if (i && e.activateOnCompletion(i))
19200
19188
  return 12;
19201
19189
  }
@@ -19213,7 +19201,7 @@ class R0 {
19213
19201
  return this.state == 1;
19214
19202
  }
19215
19203
  update(e, t) {
19216
- let i = M8(e, t), s = this;
19204
+ let i = O8(e, t), s = this;
19217
19205
  (i & 8 || i & 16 && this.touches(e)) && (s = new R0(
19218
19206
  s.source,
19219
19207
  0
@@ -19268,7 +19256,7 @@ class gt extends R0 {
19268
19256
  /* State.Inactive */
19269
19257
  );
19270
19258
  let a = e.changes.mapPos(this.limit);
19271
- return N_(s.validFor, e.state, o, l) ? new gt(this.source, this.explicit, a, s, o, l) : s.update && (s = s.update(s, o, l, new k8(e.state, r, !1))) ? new gt(this.source, this.explicit, a, s, s.from, (i = s.to) !== null && i !== void 0 ? i : Ye(e.state)) : new R0(this.source, 1, this.explicit);
19259
+ return N_(s.validFor, e.state, o, l) ? new gt(this.source, this.explicit, a, s, o, l) : s.update && (s = s.update(s, o, l, new C8(e.state, r, !1))) ? new gt(this.source, this.explicit, a, s, s.from, (i = s.to) !== null && i !== void 0 ? i : Ye(e.state)) : new R0(this.source, 1, this.explicit);
19272
19260
  }
19273
19261
  map(e) {
19274
19262
  return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new gt(this.source, this.explicit, e.mapPos(this.limit), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new R0(
@@ -19285,13 +19273,13 @@ function N_(n, e, t, i) {
19285
19273
  if (!n)
19286
19274
  return !1;
19287
19275
  let s = e.sliceDoc(t, i);
19288
- return typeof n == "function" ? n(s, t, i, e) : D8(n, !0).test(s);
19276
+ return typeof n == "function" ? n(s, t, i, e) : k8(n, !0).test(s);
19289
19277
  }
19290
19278
  const ci = /* @__PURE__ */ m2.define({
19291
19279
  map(n, e) {
19292
19280
  return n.map((t) => t.map(e));
19293
19281
  }
19294
- }), T8 = /* @__PURE__ */ m2.define(), y0 = /* @__PURE__ */ r0.define({
19282
+ }), M8 = /* @__PURE__ */ m2.define(), y0 = /* @__PURE__ */ r0.define({
19295
19283
  create() {
19296
19284
  return M3.start();
19297
19285
  },
@@ -19306,7 +19294,7 @@ const ci = /* @__PURE__ */ m2.define({
19306
19294
  function hi(n, e) {
19307
19295
  const t = e.completion.apply || e.completion.label;
19308
19296
  let i = n.state.field(y0).active.find((s) => s.source == e.source);
19309
- return i instanceof gt ? (typeof t == "string" ? n.dispatch(Object.assign(Object.assign({}, O_(n.state, t, i.from, i.to)), { annotations: O8.of(e.completion) })) : t(n, e.completion, i.from, i.to), !0) : !1;
19297
+ return i instanceof gt ? (typeof t == "string" ? n.dispatch(Object.assign(Object.assign({}, O_(n.state, t, i.from, i.to)), { annotations: D8.of(e.completion) })) : t(n, e.completion, i.from, i.to), !0) : !1;
19310
19298
  }
19311
19299
  const $_ = /* @__PURE__ */ E_(y0, hi);
19312
19300
  function $1(n, e = "option") {
@@ -19315,9 +19303,9 @@ function $1(n, e = "option") {
19315
19303
  if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(e0).interactionDelay)
19316
19304
  return !1;
19317
19305
  let s = 1, o;
19318
- e == "page" && (o = ul(t, i.open.tooltip)) && (s = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
19306
+ e == "page" && (o = dl(t, i.open.tooltip)) && (s = Math.max(2, Math.floor(o.dom.offsetHeight / o.dom.querySelector("li").offsetHeight) - 1));
19319
19307
  let { length: l } = i.open.options, r = i.open.selected > -1 ? i.open.selected + s * (n ? 1 : -1) : n ? 0 : l - 1;
19320
- return r < 0 ? r = e == "page" ? 0 : l - 1 : r >= l && (r = e == "page" ? l - 1 : 0), t.dispatch({ effects: T8.of(r) }), !0;
19308
+ return r < 0 ? r = e == "page" ? 0 : l - 1 : r >= l && (r = e == "page" ? l - 1 : 0), t.dispatch({ effects: M8.of(r) }), !0;
19321
19309
  };
19322
19310
  }
19323
19311
  const j_ = (n) => {
@@ -19346,7 +19334,7 @@ const F_ = 50, q_ = 1e3, Y_ = /* @__PURE__ */ K2.fromClass(class {
19346
19334
  if (!n.selectionSet && !n.docChanged && n.startState.field(y0) == e)
19347
19335
  return;
19348
19336
  let i = n.transactions.some((o) => {
19349
- let l = M8(o, t);
19337
+ let l = O8(o, t);
19350
19338
  return l & 8 || (o.selection || o.docChanged) && !(l & 3);
19351
19339
  });
19352
19340
  for (let o = 0; o < this.running.length; o++) {
@@ -19376,7 +19364,7 @@ const F_ = 50, q_ = 1e3, Y_ = /* @__PURE__ */ K2.fromClass(class {
19376
19364
  this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(e0).updateSyncTime));
19377
19365
  }
19378
19366
  startQuery(n) {
19379
- let { state: e } = this.view, t = Ye(e), i = new k8(e, t, n.explicit, this.view), s = new U_(n, i);
19367
+ let { state: e } = this.view, t = Ye(e), i = new C8(e, t, n.explicit, this.view), s = new U_(n, i);
19380
19368
  this.running.push(s), Promise.resolve(n.source(i)).then((o) => {
19381
19369
  s.context.aborted || (s.done = o || null, this.scheduleAccept());
19382
19370
  }, (o) => {
@@ -19426,7 +19414,7 @@ const F_ = 50, q_ = 1e3, Y_ = /* @__PURE__ */ K2.fromClass(class {
19426
19414
  blur(n) {
19427
19415
  let e = this.view.state.field(y0, !1);
19428
19416
  if (e && e.tooltip && this.view.state.facet(e0).closeOnBlur) {
19429
- let t = e.open && ul(this.view, e.open.tooltip);
19417
+ let t = e.open && dl(this.view, e.open.tooltip);
19430
19418
  (!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: r1.of(null) }), 10);
19431
19419
  }
19432
19420
  },
@@ -19581,7 +19569,7 @@ const F_ = 50, q_ = 1e3, Y_ = /* @__PURE__ */ K2.fromClass(class {
19581
19569
  }();
19582
19570
  di.startSide = 1;
19583
19571
  di.endSide = -1;
19584
- const z8 = /* @__PURE__ */ r0.define({
19572
+ const T8 = /* @__PURE__ */ r0.define({
19585
19573
  create() {
19586
19574
  return S2.empty;
19587
19575
  },
@@ -19596,16 +19584,16 @@ const z8 = /* @__PURE__ */ r0.define({
19596
19584
  }
19597
19585
  });
19598
19586
  function J_() {
19599
- return [ey, z8];
19587
+ return [ey, T8];
19600
19588
  }
19601
19589
  const y6 = "()[]{}<>«»»«[]{}";
19602
- function P8(n) {
19590
+ function z8(n) {
19603
19591
  for (let e = 0; e < y6.length; e += 2)
19604
19592
  if (y6.charCodeAt(e) == n)
19605
19593
  return y6.charAt(e + 1);
19606
19594
  return V4(n < 128 ? n : n + 1);
19607
19595
  }
19608
- function V8(n, e) {
19596
+ function P8(n, e) {
19609
19597
  return n.languageDataAt("closeBrackets", e)[0] || a1;
19610
19598
  }
19611
19599
  const Z_ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), ey = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i) => {
@@ -19619,11 +19607,11 @@ const Z_ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19619
19607
  }), ty = ({ state: n, dispatch: e }) => {
19620
19608
  if (n.readOnly)
19621
19609
  return !1;
19622
- let i = V8(n, n.selection.main.head).brackets || a1.brackets, s = null, o = n.changeByRange((l) => {
19610
+ let i = P8(n, n.selection.main.head).brackets || a1.brackets, s = null, o = n.changeByRange((l) => {
19623
19611
  if (l.empty) {
19624
19612
  let r = sy(n.doc, l.head);
19625
19613
  for (let a of i)
19626
- if (a == r && K3(n.doc, l.head) == P8(b0(a, 0)))
19614
+ if (a == r && K3(n.doc, l.head) == z8(b0(a, 0)))
19627
19615
  return {
19628
19616
  changes: { from: l.head - a.length, to: l.head + a.length },
19629
19617
  range: P.cursor(l.head - a.length)
@@ -19636,19 +19624,19 @@ const Z_ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19636
19624
  { key: "Backspace", run: ty }
19637
19625
  ];
19638
19626
  function ny(n, e) {
19639
- let t = V8(n, n.selection.main.head), i = t.brackets || a1.brackets;
19627
+ let t = P8(n, n.selection.main.head), i = t.brackets || a1.brackets;
19640
19628
  for (let s of i) {
19641
- let o = P8(b0(s, 0));
19629
+ let o = z8(b0(s, 0));
19642
19630
  if (e == s)
19643
19631
  return o == s ? ry(n, s, i.indexOf(s + s + s) > -1, t) : oy(n, s, o, t.before || a1.before);
19644
- if (e == o && A8(n, n.selection.main.from))
19632
+ if (e == o && V8(n, n.selection.main.from))
19645
19633
  return ly(n, s, o);
19646
19634
  }
19647
19635
  return null;
19648
19636
  }
19649
- function A8(n, e) {
19637
+ function V8(n, e) {
19650
19638
  let t = !1;
19651
- return n.field(z8).between(0, n.doc.length, (i) => {
19639
+ return n.field(T8).between(0, n.doc.length, (i) => {
19652
19640
  i == e && (t = !0);
19653
19641
  }), t;
19654
19642
  }
@@ -19706,7 +19694,7 @@ function ry(n, e, t, i) {
19706
19694
  effects: Fe.of(a + e.length),
19707
19695
  range: P.cursor(a + e.length)
19708
19696
  };
19709
- if (A8(n, a)) {
19697
+ if (V8(n, a)) {
19710
19698
  let u = t && n.sliceDoc(a, a + e.length * 3) == e + e + e ? e + e + e : e;
19711
19699
  return {
19712
19700
  changes: { from: a, to: a + u.length, insert: u },
@@ -19779,7 +19767,7 @@ function cy(n = {}) {
19779
19767
  Q_
19780
19768
  ];
19781
19769
  }
19782
- const E8 = [
19770
+ const A8 = [
19783
19771
  { key: "Ctrl-Space", run: fs },
19784
19772
  { mac: "Alt-`", run: fs },
19785
19773
  { key: "Escape", run: W_ },
@@ -19788,7 +19776,7 @@ const E8 = [
19788
19776
  { key: "PageDown", run: /* @__PURE__ */ $1(!0, "page") },
19789
19777
  { key: "PageUp", run: /* @__PURE__ */ $1(!1, "page") },
19790
19778
  { key: "Enter", run: j_ }
19791
- ], hy = /* @__PURE__ */ tt.highest(/* @__PURE__ */ F4.computeN([e0], (n) => n.facet(e0).defaultKeymap ? [E8] : []));
19779
+ ], hy = /* @__PURE__ */ tt.highest(/* @__PURE__ */ F4.computeN([e0], (n) => n.facet(e0).defaultKeymap ? [A8] : []));
19792
19780
  class ms {
19793
19781
  constructor(e, t, i) {
19794
19782
  this.from = e, this.to = t, this.diagnostic = i;
@@ -19856,12 +19844,12 @@ function dy(n, e) {
19856
19844
  if (s != null)
19857
19845
  return s;
19858
19846
  let o = n.startState.doc.lineAt(e.pos);
19859
- return !!(n.effects.some((l) => l.is(B8)) || n.changes.touchesRange(o.from, Math.max(o.to, i)));
19847
+ return !!(n.effects.some((l) => l.is(E8)) || n.changes.touchesRange(o.from, Math.max(o.to, i)));
19860
19848
  }
19861
19849
  function uy(n, e) {
19862
19850
  return n.field(L0, !1) ? e : e.concat(m2.appendConfig.of(Cy));
19863
19851
  }
19864
- const B8 = /* @__PURE__ */ m2.define(), ui = /* @__PURE__ */ m2.define(), L8 = /* @__PURE__ */ m2.define(), L0 = /* @__PURE__ */ r0.define({
19852
+ const E8 = /* @__PURE__ */ m2.define(), ui = /* @__PURE__ */ m2.define(), B8 = /* @__PURE__ */ m2.define(), L0 = /* @__PURE__ */ r0.define({
19865
19853
  create() {
19866
19854
  return new je(d2.none, null, null);
19867
19855
  },
@@ -19875,10 +19863,10 @@ const B8 = /* @__PURE__ */ m2.define(), ui = /* @__PURE__ */ m2.define(), L8 = /
19875
19863
  !t.size && s && e.state.facet(c1).autoPanel && (s = null), n = new je(t, s, i);
19876
19864
  }
19877
19865
  for (let t of e.effects)
19878
- if (t.is(B8)) {
19866
+ if (t.is(E8)) {
19879
19867
  let i = e.state.facet(c1).autoPanel ? t.value.length ? h1.open : null : n.panel;
19880
19868
  n = je.init(t.value, i, e.state);
19881
- } else t.is(ui) ? n = new je(n.diagnostics, t.value ? h1.open : null, n.selected) : t.is(L8) && (n = new je(n.diagnostics, n.panel, t.value));
19869
+ } else t.is(ui) ? n = new je(n.diagnostics, t.value ? h1.open : null, n.selected) : t.is(B8) && (n = new je(n.diagnostics, n.panel, t.value));
19882
19870
  return n;
19883
19871
  },
19884
19872
  provide: (n) => [
@@ -19903,7 +19891,7 @@ function py(n, e, t) {
19903
19891
  } : null;
19904
19892
  }
19905
19893
  function gy(n, e) {
19906
- return A2("ul", { class: "cm-tooltip-lint" }, e.map((t) => I8(n, t, !1)));
19894
+ return A2("ul", { class: "cm-tooltip-lint" }, e.map((t) => H8(n, t, !1)));
19907
19895
  }
19908
19896
  const my = (n) => {
19909
19897
  let e = n.state.field(L0, !1);
@@ -19935,7 +19923,7 @@ const my = (n) => {
19935
19923
  }));
19936
19924
  }
19937
19925
  });
19938
- function H8(n) {
19926
+ function L8(n) {
19939
19927
  let e = [];
19940
19928
  if (n)
19941
19929
  e: for (let { name: t } of n) {
@@ -19950,9 +19938,9 @@ function H8(n) {
19950
19938
  }
19951
19939
  return e;
19952
19940
  }
19953
- function I8(n, e, t) {
19941
+ function H8(n, e, t) {
19954
19942
  var i;
19955
- let s = t ? H8(e.actions) : [];
19943
+ let s = t ? L8(e.actions) : [];
19956
19944
  return A2("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, A2("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(n) : e.message), (i = e.actions) === null || i === void 0 ? void 0 : i.map((o, l) => {
19957
19945
  let r = !1, a = (u) => {
19958
19946
  if (u.preventDefault(), r)
@@ -19987,7 +19975,7 @@ class xy extends Le {
19987
19975
  }
19988
19976
  class ws {
19989
19977
  constructor(e, t) {
19990
- this.diagnostic = t, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = I8(e, t, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option");
19978
+ this.diagnostic = t, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = H8(e, t, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option");
19991
19979
  }
19992
19980
  }
19993
19981
  class h1 {
@@ -20007,7 +19995,7 @@ class h1 {
20007
19995
  else if (s.keyCode == 13)
20008
19996
  this.view.focus();
20009
19997
  else if (s.keyCode >= 65 && s.keyCode <= 90 && this.selectedIndex >= 0) {
20010
- let { diagnostic: o } = this.items[this.selectedIndex], l = H8(o.actions);
19998
+ let { diagnostic: o } = this.items[this.selectedIndex], l = L8(o.actions);
20011
19999
  for (let r = 0; r < l.length; r++)
20012
20000
  if (l[r].toUpperCase().charCodeAt(0) == s.keyCode) {
20013
20001
  let a = kt(this.view.state.field(L0).diagnostics, o);
@@ -20096,7 +20084,7 @@ class h1 {
20096
20084
  i && this.view.dispatch({
20097
20085
  selection: { anchor: i.from, head: i.to },
20098
20086
  scrollIntoView: !0,
20099
- effects: L8.of(i)
20087
+ effects: B8.of(i)
20100
20088
  });
20101
20089
  }
20102
20090
  static open(e) {
@@ -20245,7 +20233,7 @@ const Cy = [
20245
20233
  ...__,
20246
20234
  ...nb,
20247
20235
  ...vx,
20248
- ...E8,
20236
+ ...A8,
20249
20237
  ...wy
20250
20238
  ])
20251
20239
  ];
@@ -20854,7 +20842,7 @@ class mt {
20854
20842
  }
20855
20843
  mt.prototype.contextual = mt.prototype.fallback = mt.prototype.extend = !1;
20856
20844
  mt.prototype.fallback = mt.prototype.extend = !1;
20857
- class G8 {
20845
+ class I8 {
20858
20846
  /**
20859
20847
  Create a tokenizer. The first argument is the function that,
20860
20848
  given an input stream, scans for the types of tokens it
@@ -21260,7 +21248,7 @@ class Ey {
21260
21248
  this.start = e.start, this.shift = e.shift || C6, this.reduce = e.reduce || C6, this.reuse = e.reuse || C6, this.hash = e.hash || (() => 0), this.strict = e.strict !== !1;
21261
21249
  }
21262
21250
  }
21263
- class P3 extends bl {
21251
+ class P3 extends xl {
21264
21252
  /**
21265
21253
  @internal
21266
21254
  */
@@ -21300,7 +21288,7 @@ class P3 extends bl {
21300
21288
  top: i.indexOf(a) > -1,
21301
21289
  error: a == 0,
21302
21290
  skipped: e.skippedNodes && e.skippedNodes.indexOf(a) > -1
21303
- }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = ml;
21291
+ }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = gl;
21304
21292
  let l = W1(e.tokenData);
21305
21293
  this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
21306
21294
  for (let r = 0; r < this.specializerSpecs.length; r++)
@@ -21566,7 +21554,7 @@ const qy = new Ey({
21566
21554
  return s == C4 || s == Wy ? new Ms(k4(i, 1) || "", n) : n;
21567
21555
  },
21568
21556
  strict: !1
21569
- }), Yy = new G8((n, e) => {
21557
+ }), Yy = new I8((n, e) => {
21570
21558
  if (n.next == 60) {
21571
21559
  if (n.advance(), n.next == 47) {
21572
21560
  n.advance();
@@ -21580,7 +21568,7 @@ const qy = new Ey({
21580
21568
  }
21581
21569
  }, { contextual: !0 });
21582
21570
  function fi(n, e) {
21583
- return new G8((t) => {
21571
+ return new I8((t) => {
21584
21572
  let i = 0, s = e.charCodeAt(0);
21585
21573
  e: for (; !(t.next < 0); t.advance(), i++)
21586
21574
  if (t.next == s) {
@@ -21591,7 +21579,7 @@ function fi(n, e) {
21591
21579
  i && t.acceptToken(n);
21592
21580
  });
21593
21581
  }
21594
- const Ky = fi(Ry, "-->"), Xy = fi(Ny, "?>"), Qy = fi($y, "]]>"), Jy = _l({
21582
+ const Ky = fi(Ry, "-->"), Xy = fi(Ny, "?>"), Qy = fi($y, "]]>"), Jy = bl({
21595
21583
  Text: H.content,
21596
21584
  "StartTag StartCloseTag EndTag SelfCloseEndTag": H.angleBracket,
21597
21585
  TagName: H.tagName,
@@ -21762,7 +21750,7 @@ const D4 = /* @__PURE__ */ m3.define({
21762
21750
  name: "xml",
21763
21751
  parser: /* @__PURE__ */ Zy.configure({
21764
21752
  props: [
21765
- /* @__PURE__ */ kl.add({
21753
+ /* @__PURE__ */ Cl.add({
21766
21754
  Element(n) {
21767
21755
  let e = /^\s*<\//.test(n.textAfter);
21768
21756
  return n.lineIndent(n.node.from) + (e ? 0 : n.unit);
@@ -21771,13 +21759,13 @@ const D4 = /* @__PURE__ */ m3.define({
21771
21759
  return n.column(n.node.from) + n.unit;
21772
21760
  }
21773
21761
  }),
21774
- /* @__PURE__ */ Ol.add({
21762
+ /* @__PURE__ */ Dl.add({
21775
21763
  Element(n) {
21776
21764
  let e = n.firstChild, t = n.lastChild;
21777
21765
  return !e || e.name != "OpenTag" ? null : { from: e.to, to: t.name == "CloseTag" ? t.from : n.to };
21778
21766
  }
21779
21767
  }),
21780
- /* @__PURE__ */ Gl.add({
21768
+ /* @__PURE__ */ Il.add({
21781
21769
  "OpenTag CloseTag": (n) => n.getChild("TagName")
21782
21770
  })
21783
21771
  ]
@@ -21892,7 +21880,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
21892
21880
  const s = t.value, l = await (await fetch(s)).arrayBuffer();
21893
21881
  A0(() => {
21894
21882
  const r = i.value, a = r.clientWidth, h = r.clientHeight;
21895
- _r(i.value, {
21883
+ br(i.value, {
21896
21884
  width: a,
21897
21885
  height: h
21898
21886
  }).preview(l);
@@ -22070,7 +22058,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22070
22058
  ]))) : c2("", !0)
22071
22059
  ]));
22072
22060
  }
22073
- }, R8 = /* @__PURE__ */ P2(VS, [["__scopeId", "data-v-c6a41c66"]]), AS = { class: "file-preview-container" }, ES = {
22061
+ }, G8 = /* @__PURE__ */ P2(VS, [["__scopeId", "data-v-c6a41c66"]]), AS = { class: "file-preview-container" }, ES = {
22074
22062
  key: 0,
22075
22063
  class: "container-left"
22076
22064
  }, BS = ["title", "onClick"], LS = { class: "container-right" }, HS = /* @__PURE__ */ i0({
@@ -22122,7 +22110,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22122
22110
  ], 2))), 128))
22123
22111
  ])) : c2("", !0),
22124
22112
  o2("div", LS, [
22125
- t2(R8, {
22113
+ t2(G8, {
22126
22114
  class: "right-item",
22127
22115
  fileName: r.value,
22128
22116
  blobUrl: a.value,
@@ -22132,7 +22120,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22132
22120
  ]);
22133
22121
  };
22134
22122
  }
22135
- }), N8 = /* @__PURE__ */ P2(HS, [["__scopeId", "data-v-59c4408e"]]), IS = { class: "file-preview-dialog-header" }, GS = ["title"], RS = { class: "header-right" }, NS = { class: "file-preview-dialog-body" }, $S = /* @__PURE__ */ i0({
22123
+ }), R8 = /* @__PURE__ */ P2(HS, [["__scopeId", "data-v-59c4408e"]]), IS = { class: "file-preview-dialog-header" }, GS = ["title"], RS = { class: "header-right" }, NS = { class: "file-preview-dialog-body" }, $S = /* @__PURE__ */ i0({
22136
22124
  __name: "index",
22137
22125
  props: {
22138
22126
  fileDataList: {},
@@ -22208,7 +22196,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22208
22196
  return [
22209
22197
  o2("div", NS, [
22210
22198
  g[0] || (g[0] = o2("div", { class: "file-preview-header" }, null, -1)),
22211
- (_(), q(N8, {
22199
+ (_(), q(R8, {
22212
22200
  class: "file-preview-content",
22213
22201
  fileDataList: o.value,
22214
22202
  key: (v = o.value) == null ? void 0 : v.length,
@@ -22222,7 +22210,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22222
22210
  }, 8, ["visible", "fullScreen"]);
22223
22211
  };
22224
22212
  }
22225
- }), $8 = /* @__PURE__ */ P2($S, [["__scopeId", "data-v-6111da55"]]), jS = {
22213
+ }), N8 = /* @__PURE__ */ P2($S, [["__scopeId", "data-v-6111da55"]]), jS = {
22226
22214
  key: 0,
22227
22215
  class: "upload-value"
22228
22216
  }, WS = { class: "upload-content-title-wrap" }, US = ["title"], FS = {
@@ -22340,7 +22328,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22340
22328
  }, k.readAsDataURL(x.raw);
22341
22329
  };
22342
22330
  return (x, k) => {
22343
- const L = X("svg-icon"), $ = X("el-icon"), V = X("el-upload"), U = fr("loading");
22331
+ const L = X("svg-icon"), $ = X("el-icon"), V = X("el-upload"), U = ur("loading");
22344
22332
  return t != null && t.isEdit ? (_(), A("div", jS, [
22345
22333
  t2(ue, {
22346
22334
  type: "primary",
@@ -22451,7 +22439,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22451
22439
  ]),
22452
22440
  _: 1
22453
22441
  }, 8, ["visible"]),
22454
- l.value ? (_(), q($8, {
22442
+ l.value ? (_(), q(N8, {
22455
22443
  key: 0,
22456
22444
  fileDataList: r.value,
22457
22445
  onDestroy: m
@@ -22459,7 +22447,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22459
22447
  ])) : c2("", !0);
22460
22448
  };
22461
22449
  }
22462
- }, JS = /* @__PURE__ */ P2(QS, [["__scopeId", "data-v-d52076ff"]]), ZS = /* @__PURE__ */ i0({
22450
+ }, JS = /* @__PURE__ */ P2(QS, [["__scopeId", "data-v-57fd5f4a"]]), ZS = /* @__PURE__ */ i0({
22463
22451
  __name: "index",
22464
22452
  props: {
22465
22453
  modelValue: {
@@ -22523,7 +22511,7 @@ const oS = /* @__PURE__ */ Q.inputHandler.of((n, e, t, i, s) => {
22523
22511
  }, 8, ["file-list"]);
22524
22512
  };
22525
22513
  }
22526
- }), eC = /* @__PURE__ */ P2(ZS, [["__scopeId", "data-v-995a3fab"]]);
22514
+ }), eC = /* @__PURE__ */ P2(ZS, [["__scopeId", "data-v-9bd7172a"]]);
22527
22515
  /*!
22528
22516
  * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
22529
22517
  * (c) 2020 Szymon Nowak | Released under the MIT license
@@ -23014,7 +23002,7 @@ var lC = /* @__PURE__ */ i0({
23014
23002
  t.onResizeHandler && window.removeEventListener("resize", t.onResizeHandler, !1);
23015
23003
  }), {
23016
23004
  // data
23017
- ...pr(t),
23005
+ ...fr(t),
23018
23006
  signaturePadCanvas: i,
23019
23007
  // computed properties
23020
23008
  propsImagesAndCustomImages: o,
@@ -23310,7 +23298,7 @@ const aC = { class: "signature-wrap" }, cC = { class: "signature-types" }, hC =
23310
23298
  });
23311
23299
  }, u = async (f, p) => {
23312
23300
  let g = d(f), m = new FormData();
23313
- m.append("file", g), await Gs(m).then((v) => {
23301
+ m.append("file", g), await Is(m).then((v) => {
23314
23302
  });
23315
23303
  };
23316
23304
  return we(() => {
@@ -23479,7 +23467,7 @@ const aC = { class: "signature-wrap" }, cC = { class: "signature-types" }, hC =
23479
23467
  TABLE: ag,
23480
23468
  SELECT: P4,
23481
23469
  MULTISELECT: hg,
23482
- SSMenu: $s,
23470
+ SSMenu: Ns,
23483
23471
  DATE: fg,
23484
23472
  DATETIME: pg,
23485
23473
  TEXTAREA: mg,
@@ -23489,9 +23477,9 @@ const aC = { class: "signature-wrap" }, cC = { class: "signature-types" }, hC =
23489
23477
  CASCADER: cg,
23490
23478
  BUTTON: ue,
23491
23479
  DROPDOWN: pC,
23492
- FILEPREVIEW: R8,
23493
- FILEPREVIEWCONTAINER: N8,
23494
- FILEPREVIEWDIALOG: $8,
23480
+ FILEPREVIEW: G8,
23481
+ FILEPREVIEWCONTAINER: R8,
23482
+ FILEPREVIEWDIALOG: N8,
23495
23483
  QUILL: vC,
23496
23484
  IMAGE: wC,
23497
23485
  SSTAGSELECT: _C,
@@ -23604,28 +23592,27 @@ const CC = ["onDblclick"], kC = {
23604
23592
  }, 8, ["modelValue", "tab-position"]);
23605
23593
  };
23606
23594
  }
23607
- }), j8 = /* @__PURE__ */ P2(DC, [["__scopeId", "data-v-6b92e250"]]), $C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23595
+ }), $8 = /* @__PURE__ */ P2(DC, [["__scopeId", "data-v-6b92e250"]]), $C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23608
23596
  __proto__: null,
23609
- default: j8
23597
+ default: $8
23610
23598
  }, Symbol.toStringTag, { value: "Module" }));
23611
23599
  export {
23612
- R8 as S,
23600
+ G8 as S,
23613
23601
  pC as _,
23614
23602
  We as a,
23615
23603
  xp as b,
23616
23604
  L3 as c,
23617
23605
  Hr as d,
23618
- j8 as e,
23606
+ $8 as e,
23619
23607
  Vp as f,
23620
23608
  Xf as g,
23621
23609
  gi as h,
23622
- $8 as i,
23610
+ N8 as i,
23623
23611
  rg as j,
23624
23612
  Vi as k,
23625
23613
  yp as l,
23626
23614
  fC as m,
23627
23615
  GC as n,
23628
23616
  $C as o,
23629
- P4 as s,
23630
- T6 as u
23617
+ P4 as s
23631
23618
  };