yh-report 2.0.21 → 2.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { ref as he, computed as be, defineComponent as _t, watch as us, reactive as Xf, onMounted as dn, onUnmounted as Br, resolveComponent as ue, openBlock as L, createElementBlock as j, normalizeClass as wi, unref as b, normalizeStyle as Rt, createElementVNode as M, createVNode as Q, withCtx as S, Fragment as re, renderList as We, createBlock as le, resolveDynamicComponent as Em, toDisplayString as De, createCommentVNode as oe, createTextVNode as B, renderSlot as Hs, onActivated as Zf, onDeactivated as Vf, toRaw as qm, withDirectives as bt, vShow as yt, isRef as Mm, withKeys as Dm, nextTick as Lm } from "vue";
2
- import { ElMessage as fr, ElEmpty as Um, ElDialog as Af, ElFormItem as fe, ElInput as Fi, ElSwitch as si, ElButton as $e, ElRadioGroup as Mi, ElRadioButton as ke, ElCheckbox as vh, ElColorPicker as xh, ElForm as zm, ElTabs as Wm, ElCollapse as Bm, ElCollapseItem as Nm, ElTooltip as Im } from "element-plus";
1
+ import { ref as he, computed as be, defineComponent as _t, watch as hs, reactive as Xf, onMounted as cn, onUnmounted as Br, resolveComponent as ue, openBlock as L, createElementBlock as j, normalizeClass as wi, unref as b, normalizeStyle as Rt, createElementVNode as M, createVNode as Q, withCtx as S, Fragment as re, renderList as We, createBlock as le, resolveDynamicComponent as Em, toDisplayString as De, createCommentVNode as oe, createTextVNode as B, renderSlot as Hs, onActivated as Zf, onDeactivated as Vf, toRaw as qm, withDirectives as bt, vShow as yt, isRef as Mm, withKeys as Dm, nextTick as Lm } from "vue";
2
+ import { ElMessage as fr, ElEmpty as Um, ElDialog as Af, ElFormItem as fe, ElInput as Yn, ElSwitch as si, ElButton as $e, ElRadioGroup as Mi, ElRadioButton as ke, ElCheckbox as vh, ElColorPicker as xh, ElForm as zm, ElTabs as Wm, ElCollapse as Bm, ElCollapseItem as Nm, ElTooltip as Im } from "element-plus";
3
3
  import { useRoute as Yf, onBeforeRouteLeave as Gm } from "vue-router";
4
4
  import { useFullscreen as jm } from "@vueuse/core";
5
5
  import { defineStore as Fm, storeToRefs as Lt } from "pinia";
6
- import { b as Hm, s as Km, C as ne, F as Re, r as Jm, e as eg, f as tg, _ as ig, D as Di, p as ng, h as Ef, i as sg, j as rg, T as lg, k as og, I as ag, l as hg } from "./index-d0ce0898.mjs";
6
+ import { b as Hm, s as Km, C as ne, F as Re, r as Jm, e as eg, f as tg, _ as ig, D as Qs, p as ng, h as Ef, i as sg, j as rg, T as lg, k as og, I as ag, l as hg } from "./index-b3dd0a39.mjs";
7
7
  import { cloneDeep as mo, set as ri, get as ug } from "lodash-es";
8
8
  import "@/libs/api.request.js";
9
9
  import "echarts";
@@ -178,7 +178,7 @@ const Ut = function() {
178
178
  };
179
179
  }
180
180
  const P = he([]), X = be(() => mo(P.value).map((x) => (x.cols = x.cols.filter((D) => D.rowSpan !== 0 && D.colSpan !== 0), x)));
181
- us(
181
+ hs(
182
182
  [o, r, f],
183
183
  () => {
184
184
  P.value = $();
@@ -358,7 +358,7 @@ const Ut = function() {
358
358
  function te(A) {
359
359
  z = null, E.width = "0px", E.height = "0px", E.left = "0px", E.top = "0px";
360
360
  }
361
- return dn(async () => {
361
+ return cn(async () => {
362
362
  var A, x;
363
363
  if (!f.value.colConfig) {
364
364
  let D = [], q = 10;
@@ -404,6 +404,7 @@ const Ut = function() {
404
404
  "data-drag": "params",
405
405
  "data-source": "column",
406
406
  "data-target": "params",
407
+ required: N.isNull,
407
408
  onClick: (k) => _(ee),
408
409
  "data-index": ee,
409
410
  label: N.name
@@ -421,7 +422,7 @@ const Ut = function() {
421
422
  }, mg, 8, Og)
422
423
  ]),
423
424
  _: 2
424
- }, 1032, ["class", "onClick", "data-index", "label"]))), 256))
425
+ }, 1032, ["class", "required", "onClick", "data-index", "label"]))), 256))
425
426
  ]),
426
427
  _: 1
427
428
  })
@@ -808,7 +809,7 @@ const Ut = function() {
808
809
  }
809
810
  return Zf(() => {
810
811
  g();
811
- }), dn(() => {
812
+ }), cn(() => {
812
813
  g();
813
814
  }), Br(() => {
814
815
  m();
@@ -907,7 +908,7 @@ const Fg = { class: "chart-series-wrapper" }, Hg = ["data-drag", "data-index"],
907
908
  default: S(() => [
908
909
  Q(b(fe), { label: "名称" }, {
909
910
  default: S(() => [
910
- Q(b(Fi), {
911
+ Q(b(Yn), {
911
912
  modelValue: b(t).name,
912
913
  "onUpdate:modelValue": s[0] || (s[0] = (a) => b(t).name = a),
913
914
  placeholder: "修改筛选参数标签"
@@ -1075,7 +1076,7 @@ const Fg = { class: "chart-series-wrapper" }, Hg = ["data-drag", "data-index"],
1075
1076
  ]),
1076
1077
  _: 1
1077
1078
  }),
1078
- [b(Di).DATE, b(Di).DATETIME].includes(b(t).dataType) ? (L(), le(r, {
1079
+ [b(Qs).DATE, b(Qs).DATETIME].includes(b(t).dataType) ? (L(), le(r, {
1079
1080
  key: 0,
1080
1081
  span: 24
1081
1082
  }, {
@@ -1117,21 +1118,7 @@ const Fg = { class: "chart-series-wrapper" }, Hg = ["data-drag", "data-index"],
1117
1118
  ]),
1118
1119
  _: 1
1119
1120
  })) : oe("", !0),
1120
- Q(r, { span: 12 }, {
1121
- default: S(() => [
1122
- Q(b(fe), { label: "不能为空" }, {
1123
- default: S(() => [
1124
- Q(b(si), {
1125
- modelValue: b(t).isNull,
1126
- "onUpdate:modelValue": s[4] || (s[4] = (a) => b(t).isNull = a)
1127
- }, null, 8, ["modelValue"])
1128
- ]),
1129
- _: 1
1130
- })
1131
- ]),
1132
- _: 1
1133
- }),
1134
- b(t).isNull && [b(Di).DATE, b(Di).DATETIME].includes(b(t).dataType) ? (L(), le(r, {
1121
+ b(t).isNull && [b(Qs).DATE, b(Qs).DATETIME].includes(b(t).dataType) ? (L(), le(r, {
1135
1122
  key: 1,
1136
1123
  span: 12
1137
1124
  }, {
@@ -1140,7 +1127,7 @@ const Fg = { class: "chart-series-wrapper" }, Hg = ["data-drag", "data-index"],
1140
1127
  default: S(() => [
1141
1128
  Q(o, {
1142
1129
  modelValue: b(t).defaultValue,
1143
- "onUpdate:modelValue": s[5] || (s[5] = (a) => b(t).defaultValue = a)
1130
+ "onUpdate:modelValue": s[4] || (s[4] = (a) => b(t).defaultValue = a)
1144
1131
  }, {
1145
1132
  default: S(() => [
1146
1133
  Q(l, {
@@ -1168,30 +1155,27 @@ const Fg = { class: "chart-series-wrapper" }, Hg = ["data-drag", "data-index"],
1168
1155
  ]),
1169
1156
  _: 1
1170
1157
  })) : oe("", !0),
1171
- b(t).isNull && ![b(Di).DATE, b(Di).DATETIME].includes(b(t).dataType) ? (L(), le(r, {
1172
- key: 2,
1173
- span: 12
1174
- }, {
1158
+ Q(r, { span: 12 }, {
1175
1159
  default: S(() => [
1176
- Q(b(fe), { label: "默认值" }, {
1160
+ Q(b(fe), { label: "是否显示" }, {
1177
1161
  default: S(() => [
1178
- Q(b(Fi), {
1179
- modelValue: b(t).defaultValue,
1180
- "onUpdate:modelValue": s[6] || (s[6] = (a) => b(t).defaultValue = a)
1162
+ Q(b(si), {
1163
+ modelValue: b(t).isShow,
1164
+ "onUpdate:modelValue": s[5] || (s[5] = (a) => b(t).isShow = a)
1181
1165
  }, null, 8, ["modelValue"])
1182
1166
  ]),
1183
1167
  _: 1
1184
1168
  })
1185
1169
  ]),
1186
1170
  _: 1
1187
- })) : oe("", !0),
1171
+ }),
1188
1172
  Q(r, { span: 12 }, {
1189
1173
  default: S(() => [
1190
- Q(b(fe), { label: "是否显示" }, {
1174
+ Q(b(fe), { label: "不能为空" }, {
1191
1175
  default: S(() => [
1192
1176
  Q(b(si), {
1193
- modelValue: b(t).isShow,
1194
- "onUpdate:modelValue": s[7] || (s[7] = (a) => b(t).isShow = a)
1177
+ modelValue: b(t).isNull,
1178
+ "onUpdate:modelValue": s[6] || (s[6] = (a) => b(t).isNull = a)
1195
1179
  }, null, 8, ["modelValue"])
1196
1180
  ]),
1197
1181
  _: 1
@@ -1199,20 +1183,23 @@ const Fg = { class: "chart-series-wrapper" }, Hg = ["data-drag", "data-index"],
1199
1183
  ]),
1200
1184
  _: 1
1201
1185
  }),
1202
- Q(r, { span: 24 }, {
1186
+ b(t).isNull ? (L(), le(r, {
1187
+ key: 2,
1188
+ span: 24
1189
+ }, {
1203
1190
  default: S(() => [
1204
1191
  Q(b(fe), { label: "默认值" }, {
1205
1192
  default: S(() => [
1206
- Q(b(Fi), {
1193
+ Q(b(Yn), {
1207
1194
  modelValue: b(t).defaultValue,
1208
- "onUpdate:modelValue": s[8] || (s[8] = (a) => b(t).defaultValue = a)
1195
+ "onUpdate:modelValue": s[7] || (s[7] = (a) => b(t).defaultValue = a)
1209
1196
  }, null, 8, ["modelValue"])
1210
1197
  ]),
1211
1198
  _: 1
1212
1199
  })
1213
1200
  ]),
1214
1201
  _: 1
1215
- })
1202
+ })) : oe("", !0)
1216
1203
  ], 64)) : oe("", !0);
1217
1204
  };
1218
1205
  }
@@ -1312,7 +1299,7 @@ class pe {
1312
1299
  Replace a range of the text with the given content.
1313
1300
  */
1314
1301
  replace(e, t, i) {
1315
- [e, t] = sn(this, e, t);
1302
+ [e, t] = tn(this, e, t);
1316
1303
  let s = [];
1317
1304
  return this.decompose(
1318
1305
  0,
@@ -1344,7 +1331,7 @@ class pe {
1344
1331
  Retrieve the text between the given points.
1345
1332
  */
1346
1333
  slice(e, t = this.length) {
1347
- [e, t] = sn(this, e, t);
1334
+ [e, t] = tn(this, e, t);
1348
1335
  let i = [];
1349
1336
  return this.decompose(e, t, i, 0), Xt.from(i, t - e);
1350
1337
  }
@@ -1356,7 +1343,7 @@ class pe {
1356
1343
  return !0;
1357
1344
  if (e.length != this.length || e.lines != this.lines)
1358
1345
  return !1;
1359
- let t = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), s = new qn(this), r = new qn(e);
1346
+ let t = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), s = new En(this), r = new En(e);
1360
1347
  for (let l = t, o = t; ; ) {
1361
1348
  if (s.next(l), r.next(l), l = 0, s.lineBreak != r.lineBreak || s.done != r.done || s.value != r.value)
1362
1349
  return !1;
@@ -1370,7 +1357,7 @@ class pe {
1370
1357
  them as separate strings.
1371
1358
  */
1372
1359
  iter(e = 1) {
1373
- return new qn(this, e);
1360
+ return new En(this, e);
1374
1361
  }
1375
1362
  /**
1376
1363
  Iterate over a range of the text. When `from` > `to`, the
@@ -1460,13 +1447,13 @@ class Ae extends pe {
1460
1447
  replace(e, t, i) {
1461
1448
  if (!(i instanceof Ae))
1462
1449
  return super.replace(e, t, i);
1463
- [e, t] = sn(this, e, t);
1450
+ [e, t] = tn(this, e, t);
1464
1451
  let s = Ks(this.text, Ks(i.text, kh(this.text, 0, e)), t), r = this.length + i.length - (t - e);
1465
1452
  return s.length <= 32 ? new Ae(s, r) : Xt.from(Ae.split(s, []), r);
1466
1453
  }
1467
1454
  sliceString(e, t = this.length, i = `
1468
1455
  `) {
1469
- [e, t] = sn(this, e, t);
1456
+ [e, t] = tn(this, e, t);
1470
1457
  let s = "";
1471
1458
  for (let r = 0, l = 0; r <= t && l < this.text.length; l++) {
1472
1459
  let o = this.text[l], a = r + o.length;
@@ -1513,7 +1500,7 @@ class Xt extends pe {
1513
1500
  }
1514
1501
  }
1515
1502
  replace(e, t, i) {
1516
- if ([e, t] = sn(this, e, t), i.lines < this.lines)
1503
+ if ([e, t] = tn(this, e, t), i.lines < this.lines)
1517
1504
  for (let s = 0, r = 0; s < this.children.length; s++) {
1518
1505
  let l = this.children[s], o = r + l.length;
1519
1506
  if (e >= r && t <= o) {
@@ -1530,7 +1517,7 @@ class Xt extends pe {
1530
1517
  }
1531
1518
  sliceString(e, t = this.length, i = `
1532
1519
  `) {
1533
- [e, t] = sn(this, e, t);
1520
+ [e, t] = tn(this, e, t);
1534
1521
  let s = "";
1535
1522
  for (let r = 0, l = 0; r < this.children.length && l <= t; r++) {
1536
1523
  let o = this.children[r], a = l + o.length;
@@ -1603,7 +1590,7 @@ function Ks(n, e, t = 0, i = 1e9) {
1603
1590
  function kh(n, e, t) {
1604
1591
  return Ks(n, [""], e, t);
1605
1592
  }
1606
- class qn {
1593
+ class En {
1607
1594
  constructor(e, t = 1) {
1608
1595
  this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof Ae ? e.text.length : e.children.length) << 1];
1609
1596
  }
@@ -1636,7 +1623,7 @@ class qn {
1636
1623
  }
1637
1624
  class Uf {
1638
1625
  constructor(e, t, i) {
1639
- this.value = "", this.done = !1, this.cursor = new qn(e, t > i ? -1 : 1), this.pos = t > i ? e.length : 0, this.from = Math.min(t, i), this.to = Math.max(t, i);
1626
+ this.value = "", this.done = !1, this.cursor = new En(e, t > i ? -1 : 1), this.pos = t > i ? e.length : 0, this.from = Math.min(t, i), this.to = Math.max(t, i);
1640
1627
  }
1641
1628
  nextInner(e, t) {
1642
1629
  if (t < 0 ? this.pos <= this.from : this.pos >= this.to)
@@ -1668,7 +1655,7 @@ class zf {
1668
1655
  }
1669
1656
  typeof Symbol < "u" && (pe.prototype[Symbol.iterator] = function() {
1670
1657
  return this.iter();
1671
- }, qn.prototype[Symbol.iterator] = Uf.prototype[Symbol.iterator] = zf.prototype[Symbol.iterator] = function() {
1658
+ }, En.prototype[Symbol.iterator] = Uf.prototype[Symbol.iterator] = zf.prototype[Symbol.iterator] = function() {
1672
1659
  return this;
1673
1660
  });
1674
1661
  class l_ {
@@ -1685,7 +1672,7 @@ class l_ {
1685
1672
  return this.to - this.from;
1686
1673
  }
1687
1674
  }
1688
- function sn(n, e, t) {
1675
+ function tn(n, e, t) {
1689
1676
  return e = Math.max(0, Math.min(n.length, e)), [e, Math.max(e, Math.min(n.length, t))];
1690
1677
  }
1691
1678
  function Ie(n, e, t = !0, i = !0) {
@@ -1959,7 +1946,7 @@ class Me extends qt {
1959
1946
  @internal
1960
1947
  */
1961
1948
  filter(e) {
1962
- let t = [], i = [], s = [], r = new Wn(this);
1949
+ let t = [], i = [], s = [], r = new zn(this);
1963
1950
  e:
1964
1951
  for (let l = 0, o = 0; ; ) {
1965
1952
  let a = l == e.length ? 1e9 : e[l++];
@@ -2100,7 +2087,7 @@ function Qo(n, e, t) {
2100
2087
  }
2101
2088
  }
2102
2089
  function bo(n, e, t, i = !1) {
2103
- let s = [], r = i ? [] : null, l = new Wn(n), o = new Wn(e);
2090
+ let s = [], r = i ? [] : null, l = new zn(n), o = new zn(e);
2104
2091
  for (let a = -1; ; ) {
2105
2092
  if (l.done && o.len || o.done && l.len)
2106
2093
  throw new Error("Mismatched change set lengths");
@@ -2133,7 +2120,7 @@ function bo(n, e, t, i = !1) {
2133
2120
  }
2134
2121
  }
2135
2122
  function Wf(n, e, t = !1) {
2136
- let i = [], s = t ? [] : null, r = new Wn(n), l = new Wn(e);
2123
+ let i = [], s = t ? [] : null, r = new zn(n), l = new zn(e);
2137
2124
  for (let o = !1; ; ) {
2138
2125
  if (r.done && l.done)
2139
2126
  return s ? Me.createSet(i, s) : qt.create(i);
@@ -2156,7 +2143,7 @@ function Wf(n, e, t = !1) {
2156
2143
  }
2157
2144
  }
2158
2145
  }
2159
- class Wn {
2146
+ class zn {
2160
2147
  constructor(e) {
2161
2148
  this.set = e, this.i = 0, this.next();
2162
2149
  }
@@ -2505,7 +2492,7 @@ function Th(n, e, t) {
2505
2492
  function yo(n, e) {
2506
2493
  let t = !1;
2507
2494
  for (let i of e)
2508
- Mn(n, i) & 1 && (t = !0);
2495
+ qn(n, i) & 1 && (t = !0);
2509
2496
  return t;
2510
2497
  }
2511
2498
  function h_(n, e, t) {
@@ -2525,7 +2512,7 @@ function h_(n, e, t) {
2525
2512
  return {
2526
2513
  create(a) {
2527
2514
  for (let u of i)
2528
- Mn(a, u);
2515
+ qn(a, u);
2529
2516
  return a.values[l] = o(a), 1;
2530
2517
  },
2531
2518
  update(a, u) {
@@ -2594,7 +2581,7 @@ class Ue {
2594
2581
  }
2595
2582
  }
2596
2583
  const $i = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
2597
- function bn(n) {
2584
+ function _n(n) {
2598
2585
  return (e) => new Nf(e, n);
2599
2586
  }
2600
2587
  const Qi = {
@@ -2602,26 +2589,26 @@ const Qi = {
2602
2589
  The highest precedence level, for extensions that should end up
2603
2590
  near the start of the precedence ordering.
2604
2591
  */
2605
- highest: /* @__PURE__ */ bn($i.highest),
2592
+ highest: /* @__PURE__ */ _n($i.highest),
2606
2593
  /**
2607
2594
  A higher-than-default precedence, for extensions that should
2608
2595
  come before those with default precedence.
2609
2596
  */
2610
- high: /* @__PURE__ */ bn($i.high),
2597
+ high: /* @__PURE__ */ _n($i.high),
2611
2598
  /**
2612
2599
  The default precedence, which is also used for extensions
2613
2600
  without an explicit precedence.
2614
2601
  */
2615
- default: /* @__PURE__ */ bn($i.default),
2602
+ default: /* @__PURE__ */ _n($i.default),
2616
2603
  /**
2617
2604
  A lower-than-default precedence.
2618
2605
  */
2619
- low: /* @__PURE__ */ bn($i.low),
2606
+ low: /* @__PURE__ */ _n($i.low),
2620
2607
  /**
2621
2608
  The lowest precedence level. Meant for things that should end up
2622
2609
  near the end of the extension order.
2623
2610
  */
2624
- lowest: /* @__PURE__ */ bn($i.lowest)
2611
+ lowest: /* @__PURE__ */ _n($i.lowest)
2625
2612
  };
2626
2613
  class Nf {
2627
2614
  constructor(e, t) {
@@ -2731,7 +2718,7 @@ function u_(n, e, t) {
2731
2718
  }
2732
2719
  return r(n, $i.default), i.reduce((l, o) => l.concat(o));
2733
2720
  }
2734
- function Mn(n, e) {
2721
+ function qn(n, e) {
2735
2722
  if (e & 1)
2736
2723
  return 2;
2737
2724
  let t = e >> 1, i = n.status[t];
@@ -2943,11 +2930,11 @@ function Jf(n, e, t) {
2943
2930
  };
2944
2931
  }
2945
2932
  function xo(n, e, t) {
2946
- let i = e.selection, s = Hi(e.annotations);
2933
+ let i = e.selection, s = ji(e.annotations);
2947
2934
  return e.userEvent && (s = s.concat(Ee.userEvent.of(e.userEvent))), {
2948
2935
  changes: e.changes instanceof Me ? e.changes : Me.of(e.changes || [], t, n.facet(Gf)),
2949
2936
  selection: i && (i instanceof U ? i : U.single(i.anchor, i.head)),
2950
- effects: Hi(e.effects),
2937
+ effects: ji(e.effects),
2951
2938
  annotations: s,
2952
2939
  scrollIntoView: !!e.scrollIntoView
2953
2940
  };
@@ -2986,7 +2973,7 @@ function O_(n) {
2986
2973
  let i = e.facet(Ff);
2987
2974
  for (let s = i.length - 1; s >= 0; s--) {
2988
2975
  let r = i[s](n);
2989
- r instanceof Ee ? n = r : Array.isArray(r) && r.length == 1 && r[0] instanceof Ee ? n = r[0] : n = ed(e, Hi(r), !1);
2976
+ r instanceof Ee ? n = r : Array.isArray(r) && r.length == 1 && r[0] instanceof Ee ? n = r[0] : n = ed(e, ji(r), !1);
2990
2977
  }
2991
2978
  return n;
2992
2979
  }
@@ -2999,7 +2986,7 @@ function p_(n) {
2999
2986
  return i == n ? n : Ee.create(e, n.changes, n.selection, i.effects, i.annotations, i.scrollIntoView);
3000
2987
  }
3001
2988
  const m_ = [];
3002
- function Hi(n) {
2989
+ function ji(n) {
3003
2990
  return n == null ? m_ : Array.isArray(n) ? n : [n];
3004
2991
  }
3005
2992
  var Xe = /* @__PURE__ */ function(n) {
@@ -3037,7 +3024,7 @@ class ge {
3037
3024
  constructor(e, t, i, s, r, l) {
3038
3025
  this.config = e, this.doc = t, this.selection = i, this.values = s, this.status = e.statusTemplate.slice(), this.computeSlot = r, l && (l._state = this);
3039
3026
  for (let o = 0; o < this.config.dynamicSlots.length; o++)
3040
- Mn(this, o << 1);
3027
+ qn(this, o << 1);
3041
3028
  this.computeSlot = null;
3042
3029
  }
3043
3030
  field(e, t = !0) {
@@ -3047,7 +3034,7 @@ class ge {
3047
3034
  throw new RangeError("Field is not present in this state");
3048
3035
  return;
3049
3036
  }
3050
- return Mn(this, i), Or(this, i);
3037
+ return qn(this, i), Or(this, i);
3051
3038
  }
3052
3039
  /**
3053
3040
  Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
@@ -3073,7 +3060,7 @@ class ge {
3073
3060
  applyTransaction(e) {
3074
3061
  let t = this.config, { base: i, compartments: s } = t;
3075
3062
  for (let o of e.effects)
3076
- o.is(Nr.reconfigure) ? (t && (s = /* @__PURE__ */ new Map(), t.compartments.forEach((a, u) => s.set(u, a)), t = null), s.set(o.value.compartment, o.value.extension)) : o.is(ae.reconfigure) ? (t = null, i = o.value) : o.is(ae.appendConfig) && (t = null, i = Hi(i).concat(o.value));
3063
+ o.is(Nr.reconfigure) ? (t && (s = /* @__PURE__ */ new Map(), t.compartments.forEach((a, u) => s.set(u, a)), t = null), s.set(o.value.compartment, o.value.extension)) : o.is(ae.reconfigure) ? (t = null, i = o.value) : o.is(ae.appendConfig) && (t = null, i = ji(i).concat(o.value));
3077
3064
  let r;
3078
3065
  t ? r = e.startState.values.slice() : (t = dr.resolve(i, s, this), r = new ge(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, u) => u.reconfigure(a, this), null).values);
3079
3066
  let l = e.startState.facet(vo) ? e.newSelection : e.newSelection.asSingle();
@@ -3101,13 +3088,13 @@ class ge {
3101
3088
  [`update`](https://codemirror.net/6/docs/ref/#state.EditorState.update).
3102
3089
  */
3103
3090
  changeByRange(e) {
3104
- let t = this.selection, i = e(t.ranges[0]), s = this.changes(i.changes), r = [i.range], l = Hi(i.effects);
3091
+ let t = this.selection, i = e(t.ranges[0]), s = this.changes(i.changes), r = [i.range], l = ji(i.effects);
3105
3092
  for (let o = 1; o < t.ranges.length; o++) {
3106
3093
  let a = e(t.ranges[o]), u = this.changes(a.changes), h = u.map(s);
3107
3094
  for (let f = 0; f < o; f++)
3108
3095
  r[f] = r[f].map(h);
3109
3096
  let c = s.mapDesc(u, !0);
3110
- r.push(a.range.map(c)), s = s.compose(h), l = ae.mapEffects(l, h).concat(ae.mapEffects(Hi(a.effects), c));
3097
+ r.push(a.range.map(c)), s = s.compose(h), l = ae.mapEffects(l, h).concat(ae.mapEffects(ji(a.effects), c));
3111
3098
  }
3112
3099
  return {
3113
3100
  changes: s,
@@ -3142,7 +3129,7 @@ class ge {
3142
3129
  */
3143
3130
  facet(e) {
3144
3131
  let t = this.config.address[e.id];
3145
- return t == null ? e.default : (Mn(this, t), Or(this, t));
3132
+ return t == null ? e.default : (qn(this, t), Or(this, t));
3146
3133
  }
3147
3134
  /**
3148
3135
  Convert this state to a JSON-serializable object. When custom
@@ -3506,7 +3493,7 @@ class _e {
3506
3493
  ranges that end at or after `from`.
3507
3494
  */
3508
3495
  iter(e = 0) {
3509
- return Bn.from([this]).goto(e);
3496
+ return Wn.from([this]).goto(e);
3510
3497
  }
3511
3498
  /**
3512
3499
  @internal
@@ -3519,14 +3506,14 @@ class _e {
3519
3506
  starting from `from`.
3520
3507
  */
3521
3508
  static iter(e, t = 0) {
3522
- return Bn.from(e).goto(t);
3509
+ return Wn.from(e).goto(t);
3523
3510
  }
3524
3511
  /**
3525
3512
  Iterate over two groups of sets, calling methods on `comparator`
3526
3513
  to notify it of possible differences.
3527
3514
  */
3528
3515
  static compare(e, t, i, s, r = -1) {
3529
- let l = e.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= r), o = t.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= r), a = Ch(l, o, i), u = new yn(l, a, r), h = new yn(o, a, r);
3516
+ let l = e.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= r), o = t.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= r), a = Ch(l, o, i), u = new Qn(l, a, r), h = new Qn(o, a, r);
3530
3517
  i.iterGaps((c, f, d) => Rh(u, c, h, f, d, s)), i.empty && i.length == 0 && Rh(u, 0, h, 0, 0, s);
3531
3518
  }
3532
3519
  /**
@@ -3540,7 +3527,7 @@ class _e {
3540
3527
  return !1;
3541
3528
  if (!r.length)
3542
3529
  return !0;
3543
- let o = Ch(r, l), a = new yn(r, o, 0).goto(i), u = new yn(l, o, 0).goto(i);
3530
+ let o = Ch(r, l), a = new Qn(r, o, 0).goto(i), u = new Qn(l, o, 0).goto(i);
3544
3531
  for (; ; ) {
3545
3532
  if (a.to != u.to || !ko(a.active, u.active) || a.point && (!u.point || !a.point.eq(u.point)))
3546
3533
  return !1;
@@ -3557,7 +3544,7 @@ class _e {
3557
3544
  of the iteration.
3558
3545
  */
3559
3546
  static spans(e, t, i, s, r = -1) {
3560
- let l = new yn(e, null, r).goto(t), o = t, a = l.openStart;
3547
+ let l = new Qn(e, null, r).goto(t), o = t, a = l.openStart;
3561
3548
  for (; ; ) {
3562
3549
  let u = Math.min(l.to, i);
3563
3550
  if (l.point) {
@@ -3730,7 +3717,7 @@ class id {
3730
3717
  return this.from - e.from || this.startSide - e.startSide || this.rank - e.rank || this.to - e.to || this.endSide - e.endSide;
3731
3718
  }
3732
3719
  }
3733
- class Bn {
3720
+ class Wn {
3734
3721
  constructor(e) {
3735
3722
  this.heap = e;
3736
3723
  }
@@ -3739,7 +3726,7 @@ class Bn {
3739
3726
  for (let r = 0; r < e.length; r++)
3740
3727
  for (let l = e[r]; !l.isEmpty; l = l.nextLayer)
3741
3728
  l.maxPoint >= i && s.push(new id(l, t, i, r));
3742
- return s.length == 1 ? s[0] : new Bn(s);
3729
+ return s.length == 1 ? s[0] : new Wn(s);
3743
3730
  }
3744
3731
  get startSide() {
3745
3732
  return this.value ? this.value.startSide : 0;
@@ -3778,9 +3765,9 @@ function Ol(n, e) {
3778
3765
  n[i] = t, n[e] = s, e = i;
3779
3766
  }
3780
3767
  }
3781
- class yn {
3768
+ class Qn {
3782
3769
  constructor(e, t, i) {
3783
- this.minPoint = i, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = Bn.from(e, t, i);
3770
+ this.minPoint = i, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = Wn.from(e, t, i);
3784
3771
  }
3785
3772
  goto(e, t = -1e9) {
3786
3773
  return this.cursor.goto(e, t), this.active.length = this.activeTo.length = this.activeRank.length = 0, this.minActive = -1, this.to = e, this.endSide = t, this.openStart = -1, this.next(), this;
@@ -3888,7 +3875,7 @@ function Xh(n, e) {
3888
3875
  (e[s] - i || n[s].endSide - n[t].endSide) < 0 && (t = s, i = e[s]);
3889
3876
  return t;
3890
3877
  }
3891
- function On(n, e, t = n.length) {
3878
+ function fn(n, e, t = n.length) {
3892
3879
  let i = 0;
3893
3880
  for (let s = 0; s < t && s < n.length; )
3894
3881
  n.charCodeAt(s) == 9 ? (i += e - i % e, s++) : (i++, s = Ie(n, s));
@@ -4070,7 +4057,7 @@ var Oi = {
4070
4057
  220: "\\",
4071
4058
  221: "]",
4072
4059
  222: "'"
4073
- }, Nn = {
4060
+ }, Bn = {
4074
4061
  48: ")",
4075
4062
  49: "!",
4076
4063
  50: "@",
@@ -4101,14 +4088,14 @@ for (var Be = 0; Be < 10; Be++)
4101
4088
  for (var Be = 1; Be <= 24; Be++)
4102
4089
  Oi[Be + 111] = "F" + Be;
4103
4090
  for (var Be = 65; Be <= 90; Be++)
4104
- Oi[Be] = String.fromCharCode(Be + 32), Nn[Be] = String.fromCharCode(Be);
4091
+ Oi[Be] = String.fromCharCode(Be + 32), Bn[Be] = String.fromCharCode(Be);
4105
4092
  for (var pl in Oi)
4106
- Nn.hasOwnProperty(pl) || (Nn[pl] = Oi[pl]);
4093
+ Bn.hasOwnProperty(pl) || (Bn[pl] = Oi[pl]);
4107
4094
  function x_(n) {
4108
- var e = S_ && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || v_ && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Nn : Oi)[n.keyCode] || n.key || "Unidentified";
4095
+ var e = S_ && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || v_ && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Bn : Oi)[n.keyCode] || n.key || "Unidentified";
4109
4096
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
4110
4097
  }
4111
- function In(n) {
4098
+ function Nn(n) {
4112
4099
  let e;
4113
4100
  return n.nodeType == 11 ? e = n.getSelection ? n : n.ownerDocument : e = n, e.getSelection();
4114
4101
  }
@@ -4124,10 +4111,10 @@ function er(n, e) {
4124
4111
  return !1;
4125
4112
  }
4126
4113
  }
4127
- function Gn(n) {
4114
+ function In(n) {
4128
4115
  return n.nodeType == 3 ? Zi(n, 0, n.nodeValue.length).getClientRects() : n.nodeType == 1 ? n.getClientRects() : [];
4129
4116
  }
4130
- function Dn(n, e, t, i) {
4117
+ function Mn(n, e, t, i) {
4131
4118
  return t ? Yh(n, e, t, i, -1) || Yh(n, e, t, i, 1) : !1;
4132
4119
  }
4133
4120
  function Xi(n) {
@@ -4268,21 +4255,21 @@ class k_ {
4268
4255
  this.anchorNode = e, this.anchorOffset = t, this.focusNode = i, this.focusOffset = s;
4269
4256
  }
4270
4257
  }
4271
- let Li = null;
4258
+ let Di = null;
4272
4259
  function sd(n) {
4273
4260
  if (n.setActive)
4274
4261
  return n.setActive();
4275
- if (Li)
4276
- return n.focus(Li);
4262
+ if (Di)
4263
+ return n.focus(Di);
4277
4264
  let e = [];
4278
4265
  for (let t = n; t && (e.push(t, t.scrollTop, t.scrollLeft), t != t.ownerDocument); t = t.parentNode)
4279
4266
  ;
4280
- if (n.focus(Li == null ? {
4267
+ if (n.focus(Di == null ? {
4281
4268
  get preventScroll() {
4282
- return Li = { preventScroll: !0 }, !0;
4269
+ return Di = { preventScroll: !0 }, !0;
4283
4270
  }
4284
- } : void 0), !Li) {
4285
- Li = !1;
4271
+ } : void 0), !Di) {
4272
+ Di = !1;
4286
4273
  for (let t = 0; t < e.length; ) {
4287
4274
  let i = e[t++], s = e[t++], r = e[t++];
4288
4275
  i.scrollTop != s && (i.scrollTop = s), i.scrollLeft != r && (i.scrollLeft = r);
@@ -4294,7 +4281,7 @@ function Zi(n, e, t = e) {
4294
4281
  let i = Eh || (Eh = document.createRange());
4295
4282
  return i.setEnd(n, t), i.setStart(n, e), i;
4296
4283
  }
4297
- function Ki(n, e, t, i) {
4284
+ function Fi(n, e, t, i) {
4298
4285
  let s = { key: e, code: e, keyCode: t, which: t, cancelable: !0 };
4299
4286
  i && ({ altKey: s.altKey, ctrlKey: s.ctrlKey, shiftKey: s.shiftKey, metaKey: s.metaKey } = i);
4300
4287
  let r = new KeyboardEvent("keydown", s);
@@ -4770,7 +4757,7 @@ class ui extends xe {
4770
4757
  super.destroy(), this.dom && this.widget.destroy(this.dom);
4771
4758
  }
4772
4759
  }
4773
- class rn extends xe {
4760
+ class nn extends xe {
4774
4761
  constructor(e) {
4775
4762
  super(), this.side = e;
4776
4763
  }
@@ -4781,10 +4768,10 @@ class rn extends xe {
4781
4768
  return !1;
4782
4769
  }
4783
4770
  become(e) {
4784
- return e instanceof rn && e.side == this.side;
4771
+ return e instanceof nn && e.side == this.side;
4785
4772
  }
4786
4773
  split() {
4787
- return new rn(this.side);
4774
+ return new nn(this.side);
4788
4775
  }
4789
4776
  sync() {
4790
4777
  if (!this.dom) {
@@ -4814,7 +4801,7 @@ class rn extends xe {
4814
4801
  return !0;
4815
4802
  }
4816
4803
  }
4817
- xt.prototype.children = ui.prototype.children = rn.prototype.children = $a;
4804
+ xt.prototype.children = ui.prototype.children = nn.prototype.children = $a;
4818
4805
  function Od(n, e) {
4819
4806
  let t = n.dom, { children: i } = n, s = 0;
4820
4807
  for (let r = 0; s < i.length; s++) {
@@ -4859,7 +4846,7 @@ function Z_(n) {
4859
4846
  let e = n.dom.lastChild;
4860
4847
  if (!e)
4861
4848
  return n.dom.getBoundingClientRect();
4862
- let t = Gn(e);
4849
+ let t = In(e);
4863
4850
  return t[t.length - 1] || null;
4864
4851
  }
4865
4852
  function V_(n, e) {
@@ -5009,7 +4996,7 @@ class se extends Ri {
5009
4996
  of lower-precedence decorations.
5010
4997
  */
5011
4998
  static mark(e) {
5012
- return new cs(e);
4999
+ return new us(e);
5013
5000
  }
5014
5001
  /**
5015
5002
  Create a widget decoration, which displays a DOM element at the
@@ -5038,7 +5025,7 @@ class se extends Ri {
5038
5025
  line starting at the given position.
5039
5026
  */
5040
5027
  static line(e) {
5041
- return new fs(e);
5028
+ return new cs(e);
5042
5029
  }
5043
5030
  /**
5044
5031
  Build a [`DecorationSet`](https://codemirror.net/6/docs/ref/#view.DecorationSet) from the given
@@ -5056,14 +5043,14 @@ class se extends Ri {
5056
5043
  }
5057
5044
  }
5058
5045
  se.none = _e.empty;
5059
- class cs extends se {
5046
+ class us extends se {
5060
5047
  constructor(e) {
5061
5048
  let { start: t, end: i } = gd(e);
5062
5049
  super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
5063
5050
  }
5064
5051
  eq(e) {
5065
5052
  var t, i;
5066
- return this == e || e instanceof cs && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((i = e.attrs) === null || i === void 0 ? void 0 : i.class)) && mr(this.attrs, e.attrs, "class");
5053
+ return this == e || e instanceof us && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((i = e.attrs) === null || i === void 0 ? void 0 : i.class)) && mr(this.attrs, e.attrs, "class");
5067
5054
  }
5068
5055
  range(e, t = e) {
5069
5056
  if (e >= t)
@@ -5071,13 +5058,13 @@ class cs extends se {
5071
5058
  return super.range(e, t);
5072
5059
  }
5073
5060
  }
5074
- cs.prototype.point = !1;
5075
- class fs extends se {
5061
+ us.prototype.point = !1;
5062
+ class cs extends se {
5076
5063
  constructor(e) {
5077
5064
  super(-2e8, -2e8, null, e);
5078
5065
  }
5079
5066
  eq(e) {
5080
- return e instanceof fs && this.spec.class == e.spec.class && mr(this.spec.attributes, e.spec.attributes);
5067
+ return e instanceof cs && this.spec.class == e.spec.class && mr(this.spec.attributes, e.spec.attributes);
5081
5068
  }
5082
5069
  range(e, t = e) {
5083
5070
  if (t != e)
@@ -5085,8 +5072,8 @@ class fs extends se {
5085
5072
  return super.range(e, t);
5086
5073
  }
5087
5074
  }
5088
- fs.prototype.mapMode = Ne.TrackBefore;
5089
- fs.prototype.point = !0;
5075
+ cs.prototype.mapMode = Ne.TrackBefore;
5076
+ cs.prototype.point = !0;
5090
5077
  class pi extends se {
5091
5078
  constructor(e, t, i, s, r, l) {
5092
5079
  super(t, i, r, e), this.block = s, this.isReplace = l, this.mapMode = s ? t <= 0 ? Ne.TrackBefore : Ne.TrackAfter : Ne.TrackDel;
@@ -5184,7 +5171,7 @@ class Ye extends xe {
5184
5171
  for (let i of this.children) {
5185
5172
  if (!(i instanceof xt) || /[^ -~]/.test(i.text))
5186
5173
  return null;
5187
- let s = Gn(i.dom);
5174
+ let s = In(i.dom);
5188
5175
  if (s.length != 1)
5189
5176
  return null;
5190
5177
  e += s[0].width, t = s[0].height;
@@ -5305,7 +5292,7 @@ class qo extends ii {
5305
5292
  return !1;
5306
5293
  }
5307
5294
  }
5308
- class Ln {
5295
+ class Dn {
5309
5296
  constructor(e, t, i, s) {
5310
5297
  this.doc = e, this.pos = t, this.end = i, this.disallowBlockEffectsFor = s, this.content = [], this.curLine = null, this.breakAtStart = 0, this.pendingBuffer = 0, this.bufferMarks = [], this.atCursorPos = !0, this.openStart = -1, this.openEnd = -1, this.text = "", this.textOff = 0, this.cursor = e.iter(), this.skip = t;
5311
5298
  }
@@ -5319,7 +5306,7 @@ class Ln {
5319
5306
  return this.curLine || (this.content.push(this.curLine = new Ye()), this.atCursorPos = !0), this.curLine;
5320
5307
  }
5321
5308
  flushBuffer(e = this.bufferMarks) {
5322
- this.pendingBuffer && (this.curLine.append(vs(new rn(-1), e), e.length), this.pendingBuffer = 0);
5309
+ this.pendingBuffer && (this.curLine.append(vs(new nn(-1), e), e.length), this.pendingBuffer = 0);
5323
5310
  }
5324
5311
  addBlockWidget(e) {
5325
5312
  this.flushBuffer(), this.curLine = null, this.content.push(e);
@@ -5361,17 +5348,17 @@ class Ln {
5361
5348
  let o = t - e;
5362
5349
  if (i instanceof pi)
5363
5350
  if (i.block)
5364
- i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Gt(i.widget || ln.block, o, i));
5351
+ i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new Gt(i.widget || sn.block, o, i));
5365
5352
  else {
5366
- let a = ui.create(i.widget || ln.inline, o, o ? 0 : i.startSide), u = this.atCursorPos && !a.isEditable && r <= s.length && (e < t || i.startSide > 0), h = !a.isEditable && (e < t || r > s.length || i.startSide <= 0), c = this.getLine();
5367
- this.pendingBuffer == 2 && !u && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(s), u && (c.append(vs(new rn(1), s), r), r = s.length + Math.max(0, r - s.length)), c.append(vs(a, s), r), this.atCursorPos = h, this.pendingBuffer = h ? e < t || r > s.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = s.slice());
5353
+ let a = ui.create(i.widget || sn.inline, o, o ? 0 : i.startSide), u = this.atCursorPos && !a.isEditable && r <= s.length && (e < t || i.startSide > 0), h = !a.isEditable && (e < t || r > s.length || i.startSide <= 0), c = this.getLine();
5354
+ this.pendingBuffer == 2 && !u && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(s), u && (c.append(vs(new nn(1), s), r), r = s.length + Math.max(0, r - s.length)), c.append(vs(a, s), r), this.atCursorPos = h, this.pendingBuffer = h ? e < t || r > s.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = s.slice());
5368
5355
  }
5369
5356
  else
5370
5357
  this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(i);
5371
5358
  o && (this.textOff + o <= this.text.length ? this.textOff += o : (this.skip += o - (this.text.length - this.textOff), this.text = "", this.textOff = 0), this.pos = t), this.openStart < 0 && (this.openStart = r);
5372
5359
  }
5373
5360
  static build(e, t, i, s, r) {
5374
- let l = new Ln(e, t, i, r);
5361
+ let l = new Dn(e, t, i, r);
5375
5362
  return l.openEnd = _e.spans(s, t, i, l), l.openStart < 0 && (l.openStart = l.openEnd), l.finish(l.openEnd), l;
5376
5363
  }
5377
5364
  }
@@ -5380,7 +5367,7 @@ function vs(n, e) {
5380
5367
  n = new Kt(t, [n], n.length);
5381
5368
  return n;
5382
5369
  }
5383
- class ln extends ii {
5370
+ class sn extends ii {
5384
5371
  constructor(e) {
5385
5372
  super(), this.tag = e;
5386
5373
  }
@@ -5397,8 +5384,8 @@ class ln extends ii {
5397
5384
  return !0;
5398
5385
  }
5399
5386
  }
5400
- ln.inline = /* @__PURE__ */ new ln("span");
5401
- ln.block = /* @__PURE__ */ new ln("div");
5387
+ sn.inline = /* @__PURE__ */ new sn("span");
5388
+ sn.block = /* @__PURE__ */ new sn("div");
5402
5389
  var Ce = /* @__PURE__ */ function(n) {
5403
5390
  return n[n.LTR = 0] = "LTR", n[n.RTL = 1] = "RTL", n;
5404
5391
  }(Ce || (Ce = {}));
@@ -5691,15 +5678,15 @@ const vd = /* @__PURE__ */ H.define(), xd = /* @__PURE__ */ H.define(), $d = /*
5691
5678
  }), Cd = /* @__PURE__ */ H.define({
5692
5679
  combine: (n) => n.some((e) => e)
5693
5680
  }), Rd = /* @__PURE__ */ H.define();
5694
- class Ji {
5681
+ class Hi {
5695
5682
  constructor(e, t = "nearest", i = "nearest", s = 5, r = 5, l = !1) {
5696
5683
  this.range = e, this.y = t, this.x = i, this.yMargin = s, this.xMargin = r, this.isSnapshot = l;
5697
5684
  }
5698
5685
  map(e) {
5699
- return e.empty ? this : new Ji(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
5686
+ return e.empty ? this : new Hi(this.range.map(e), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
5700
5687
  }
5701
5688
  clip(e) {
5702
- return this.range.to <= e.doc.length ? this : new Ji(U.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
5689
+ return this.range.to <= e.doc.length ? this : new Hi(U.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
5703
5690
  }
5704
5691
  }
5705
5692
  const xs = /* @__PURE__ */ ae.define({ map: (n, e) => n.map(e) }), Xd = /* @__PURE__ */ ae.define();
@@ -5709,7 +5696,7 @@ function st(n, e, t) {
5709
5696
  }
5710
5697
  const It = /* @__PURE__ */ H.define({ combine: (n) => n.length ? n[0] : !0 });
5711
5698
  let N_ = 0;
5712
- const Xn = /* @__PURE__ */ H.define();
5699
+ const Cn = /* @__PURE__ */ H.define();
5713
5700
  class qe {
5714
5701
  constructor(e, t, i, s, r) {
5715
5702
  this.id = e, this.create = t, this.domEventHandlers = i, this.domEventObservers = s, this.extension = r(this);
@@ -5721,8 +5708,8 @@ class qe {
5721
5708
  static define(e, t) {
5722
5709
  const { eventHandlers: i, eventObservers: s, provide: r, decorations: l } = t || {};
5723
5710
  return new qe(N_++, e, i, s, (o) => {
5724
- let a = [Xn.of(o)];
5725
- return l && a.push(jn.of((u) => {
5711
+ let a = [Cn.of(o)];
5712
+ return l && a.push(Gn.of((u) => {
5726
5713
  let h = u.plugin(o);
5727
5714
  return h ? l(h) : se.none;
5728
5715
  })), r && a.push(r(o)), a;
@@ -5777,7 +5764,7 @@ class gl {
5777
5764
  this.spec = this.value = null;
5778
5765
  }
5779
5766
  }
5780
- const Zd = /* @__PURE__ */ H.define(), Ta = /* @__PURE__ */ H.define(), jn = /* @__PURE__ */ H.define(), Vd = /* @__PURE__ */ H.define(), Ca = /* @__PURE__ */ H.define(), Ad = /* @__PURE__ */ H.define();
5767
+ const Zd = /* @__PURE__ */ H.define(), Ta = /* @__PURE__ */ H.define(), Gn = /* @__PURE__ */ H.define(), Vd = /* @__PURE__ */ H.define(), Ca = /* @__PURE__ */ H.define(), Ad = /* @__PURE__ */ H.define();
5781
5768
  function zh(n, e) {
5782
5769
  let t = n.state.facet(Ad);
5783
5770
  if (!t.length)
@@ -5809,7 +5796,7 @@ function Ra(n) {
5809
5796
  }
5810
5797
  return { left: e, right: t, top: i, bottom: s };
5811
5798
  }
5812
- const Zn = /* @__PURE__ */ H.define();
5799
+ const Rn = /* @__PURE__ */ H.define();
5813
5800
  class mt {
5814
5801
  constructor(e, t, i, s) {
5815
5802
  this.fromA = e, this.toA = t, this.fromB = i, this.toB = s;
@@ -5968,12 +5955,12 @@ class Wh extends xe {
5968
5955
  break;
5969
5956
  let { fromA: a, toA: u, fromB: h, toB: c } = o, f, d, p, g;
5970
5957
  if (i && i.range.fromB < c && i.range.toB > h) {
5971
- let P = Ln.build(this.view.state.doc, h, i.range.fromB, this.decorations, this.dynamicDecorationMap), X = Ln.build(this.view.state.doc, i.range.toB, c, this.decorations, this.dynamicDecorationMap);
5958
+ let P = Dn.build(this.view.state.doc, h, i.range.fromB, this.decorations, this.dynamicDecorationMap), X = Dn.build(this.view.state.doc, i.range.toB, c, this.decorations, this.dynamicDecorationMap);
5972
5959
  d = P.breakAtStart, p = P.openStart, g = X.openEnd;
5973
5960
  let $ = this.compositionView(i);
5974
5961
  X.breakAtStart ? $.breakAfter = 1 : X.content.length && $.merge($.length, $.length, X.content[0], !1, X.openStart, 0) && ($.breakAfter = X.content[0].breakAfter, X.content.shift()), P.content.length && $.merge(0, 0, P.content[P.content.length - 1], !0, 0, P.openEnd) && P.content.pop(), f = P.content.concat($).concat(X.content);
5975
5962
  } else
5976
- ({ content: f, breakAtStart: d, openStart: p, openEnd: g } = Ln.build(this.view.state.doc, h, c, this.decorations, this.dynamicDecorationMap));
5963
+ ({ content: f, breakAtStart: d, openStart: p, openEnd: g } = Dn.build(this.view.state.doc, h, c, this.decorations, this.dynamicDecorationMap));
5977
5964
  let { i: m, off: O } = r.findPos(u, 1), { i: y, off: Z } = r.findPos(a, -1);
5978
5965
  ud(this, y, Z, m, O, f, d, p, g);
5979
5966
  }
@@ -6020,9 +6007,9 @@ class Wh extends xe {
6020
6007
  this.view.observer.ignore(() => a.node.insertBefore(c, a.node.childNodes[a.offset] || null)), a = u = new je(c, 0), l = !0;
6021
6008
  }
6022
6009
  let h = this.view.observer.selectionRange;
6023
- (l || !h.focusNode || (!Dn(a.node, a.offset, h.anchorNode, h.anchorOffset) || !Dn(u.node, u.offset, h.focusNode, h.focusOffset)) && !this.suppressWidgetCursorChange(h, o)) && (this.view.observer.ignore(() => {
6010
+ (l || !h.focusNode || (!Mn(a.node, a.offset, h.anchorNode, h.anchorOffset) || !Mn(u.node, u.offset, h.focusNode, h.focusOffset)) && !this.suppressWidgetCursorChange(h, o)) && (this.view.observer.ignore(() => {
6024
6011
  J.android && J.chrome && this.dom.contains(h.focusNode) && K_(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
6025
- let c = In(this.view.root);
6012
+ let c = Nn(this.view.root);
6026
6013
  if (c)
6027
6014
  if (o.empty) {
6028
6015
  if (J.gecko) {
@@ -6050,12 +6037,12 @@ class Wh extends xe {
6050
6037
  // composition, avoid moving it across it and disrupting the
6051
6038
  // composition.
6052
6039
  suppressWidgetCursorChange(e, t) {
6053
- return this.hasComposition && t.empty && Dn(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset) && this.posFromDOM(e.focusNode, e.focusOffset) == t.head;
6040
+ return this.hasComposition && t.empty && Mn(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset) && this.posFromDOM(e.focusNode, e.focusOffset) == t.head;
6054
6041
  }
6055
6042
  enforceCursorAssoc() {
6056
6043
  if (this.hasComposition)
6057
6044
  return;
6058
- let { view: e } = this, t = e.state.selection.main, i = In(e.root), { anchorNode: s, anchorOffset: r } = e.observer.selectionRange;
6045
+ let { view: e } = this, t = e.state.selection.main, i = Nn(e.root), { anchorNode: s, anchorOffset: r } = e.observer.selectionRange;
6059
6046
  if (!i || !t.empty || !t.assoc || !i.modify)
6060
6047
  return;
6061
6048
  let l = Ye.find(this, t.head);
@@ -6166,7 +6153,7 @@ class Wh extends xe {
6166
6153
  if (u >= i) {
6167
6154
  let d = c.dom.getBoundingClientRect();
6168
6155
  if (t.push(d.height), l) {
6169
- let p = c.dom.lastChild, g = p ? Gn(p) : [];
6156
+ let p = c.dom.lastChild, g = p ? In(p) : [];
6170
6157
  if (g.length) {
6171
6158
  let m = g[g.length - 1], O = a ? m.right - d.left : d.right - m.left;
6172
6159
  O > o && (o = O, this.minWidth = r, this.minWidthFrom = u, this.minWidthTo = f);
@@ -6191,7 +6178,7 @@ class Wh extends xe {
6191
6178
  let e = document.createElement("div"), t, i, s;
6192
6179
  return e.className = "cm-line", e.style.width = "99999px", e.style.position = "absolute", e.textContent = "abc def ghi jkl mno pqr stu", this.view.observer.ignore(() => {
6193
6180
  this.dom.appendChild(e);
6194
- let r = Gn(e.firstChild)[0];
6181
+ let r = In(e.firstChild)[0];
6195
6182
  t = e.getBoundingClientRect().height, i = r ? r.width / 27 : 7, s = r ? r.height : t, e.remove();
6196
6183
  }), { lineHeight: t, charWidth: i, textHeight: s };
6197
6184
  }
@@ -6219,7 +6206,7 @@ class Wh extends xe {
6219
6206
  return se.set(e);
6220
6207
  }
6221
6208
  updateDeco() {
6222
- let e = 1, t = this.view.state.facet(jn).map((r) => (this.dynamicDecorationMap[e++] = typeof r == "function") ? r(this.view) : r), i = !1, s = this.view.state.facet(Vd).map((r, l) => {
6209
+ let e = 1, t = this.view.state.facet(Gn).map((r) => (this.dynamicDecorationMap[e++] = typeof r == "function") ? r(this.view) : r), i = !1, s = this.view.state.facet(Vd).map((r, l) => {
6223
6210
  let o = typeof r == "function";
6224
6211
  return o && (i = !0), o ? r(this.view) : r;
6225
6212
  });
@@ -6301,7 +6288,7 @@ function G_(n, e, t) {
6301
6288
  if (f instanceof Ye || c.nodeName == "DIV" && c.parentNode == n.contentDOM)
6302
6289
  return { range: u, text: s, marks: h, line: c };
6303
6290
  if (c != n.contentDOM)
6304
- h.push({ node: c, deco: new cs({
6291
+ h.push({ node: c, deco: new us({
6305
6292
  inclusive: !0,
6306
6293
  attributes: A_(c),
6307
6294
  tagName: c.tagName.toLowerCase()
@@ -6384,7 +6371,7 @@ function Nh(n, e) {
6384
6371
  function zo(n, e, t) {
6385
6372
  let i, s, r, l, o = !1, a, u, h, c;
6386
6373
  for (let p = n.firstChild; p; p = p.nextSibling) {
6387
- let g = Gn(p);
6374
+ let g = In(p);
6388
6375
  for (let m = 0; m < g.length; m++) {
6389
6376
  let O = g[m];
6390
6377
  s && _l(s, O) && (O = Bh(Nh(O, s.bottom), s.top));
@@ -6603,7 +6590,7 @@ function Ql(n, e, t) {
6603
6590
  let i = ir(n.state.facet(Ca).map((s) => s(n)), t.from, e.head > t.from ? -1 : 1);
6604
6591
  return i == t.from ? t : U.cursor(i, i < t.from ? 1 : -1);
6605
6592
  }
6606
- const Vn = "￿";
6593
+ const Xn = "￿";
6607
6594
  class a0 {
6608
6595
  constructor(e, t) {
6609
6596
  this.points = e, this.text = "", this.lineSeparator = t.facet(ge.lineSeparator);
@@ -6612,7 +6599,7 @@ class a0 {
6612
6599
  this.text += e;
6613
6600
  }
6614
6601
  lineBreak() {
6615
- this.text += Vn;
6602
+ this.text += Xn;
6616
6603
  }
6617
6604
  readRange(e, t) {
6618
6605
  if (!e)
@@ -6702,11 +6689,11 @@ function Md(n, e) {
6702
6689
  if (e.bounds) {
6703
6690
  let { from: l, to: o } = e.bounds, a = s.from, u = null;
6704
6691
  (r === 8 || J.android && e.text.length < o - l) && (a = s.to, u = "end");
6705
- let h = f0(n.state.doc.sliceString(l, o, Vn), e.text, a - l, u);
6706
- h && (J.chrome && r == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == Vn + Vn && h.toB--, t = {
6692
+ let h = f0(n.state.doc.sliceString(l, o, Xn), e.text, a - l, u);
6693
+ h && (J.chrome && r == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == Xn + Xn && h.toB--, t = {
6707
6694
  from: l + h.from,
6708
6695
  to: l + h.toA,
6709
- insert: pe.of(e.text.slice(h.from, h.toB).split(Vn))
6696
+ insert: pe.of(e.text.slice(h.from, h.toB).split(Xn))
6710
6697
  });
6711
6698
  } else
6712
6699
  i && (!n.hasFocus && n.state.facet(It) || i.main.eq(s)) && (i = null);
@@ -6731,7 +6718,7 @@ function Xa(n, e, t, i = -1) {
6731
6718
  let s = n.state.selection.main;
6732
6719
  if (J.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
6733
6720
  // after a completion when you press enter
6734
- (e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && Ki(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && Ki(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && Ki(n.contentDOM, "Delete", 46)))
6721
+ (e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && Fi(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && Fi(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && Fi(n.contentDOM, "Delete", 46)))
6735
6722
  return !0;
6736
6723
  let r = e.insert.toString();
6737
6724
  n.inputState.composing >= 0 && n.inputState.composing++;
@@ -6859,7 +6846,7 @@ class p0 {
6859
6846
  }
6860
6847
  flushIOSKey(e) {
6861
6848
  let t = this.pendingIOSKey;
6862
- return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, Ki(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
6849
+ return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, Fi(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
6863
6850
  }
6864
6851
  ignoreDuringComposition(e) {
6865
6852
  return /^key/.test(e.type) ? this.composing > 0 ? !0 : J.safari && !J.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
@@ -6992,7 +6979,7 @@ function S0(n, e) {
6992
6979
  let { main: t } = n.state.selection;
6993
6980
  if (t.empty)
6994
6981
  return !1;
6995
- let i = In(n.root);
6982
+ let i = Nn(n.root);
6996
6983
  if (!i || i.rangeCount == 0)
6997
6984
  return !0;
6998
6985
  let s = i.getRangeAt(0).getClientRects();
@@ -7300,9 +7287,9 @@ function R0(n) {
7300
7287
  }));
7301
7288
  }
7302
7289
  const lu = ["pre-wrap", "normal", "pre-line", "break-spaces"];
7303
- let on = !1;
7290
+ let rn = !1;
7304
7291
  function ou() {
7305
- on = !1;
7292
+ rn = !1;
7306
7293
  }
7307
7294
  class X0 {
7308
7295
  constructor(e) {
@@ -7412,7 +7399,7 @@ class Je {
7412
7399
  this.flags = (e ? 2 : 0) | this.flags & -3;
7413
7400
  }
7414
7401
  setHeight(e) {
7415
- this.height != e && (Math.abs(this.height - e) > nr && (on = !0), this.height = e);
7402
+ this.height != e && (Math.abs(this.height - e) > nr && (rn = !0), this.height = e);
7416
7403
  }
7417
7404
  // Base case is to replace a leaf node, which simply builds a tree
7418
7405
  // from the new nodes and returns that (HeightMapBranch and
@@ -7472,7 +7459,7 @@ class Je {
7472
7459
  }
7473
7460
  }
7474
7461
  function _r(n, e) {
7475
- return n == e ? n : (n.constructor != e.constructor && (on = !0), e);
7462
+ return n == e ? n : (n.constructor != e.constructor && (rn = !0), e);
7476
7463
  }
7477
7464
  Je.prototype.size = 1;
7478
7465
  class Gd extends Je {
@@ -7591,7 +7578,7 @@ class ze extends Je {
7591
7578
  }
7592
7579
  o <= r && l.push(null, new ze(r - o).updateHeight(e, o));
7593
7580
  let u = Je.of(l);
7594
- return (a < 0 || Math.abs(u.height - this.height) >= nr || Math.abs(a - this.heightMetrics(e, t).perLine) >= nr) && (on = !0), _r(this, u);
7581
+ return (a < 0 || Math.abs(u.height - this.height) >= nr || Math.abs(a - this.heightMetrics(e, t).perLine) >= nr) && (rn = !0), _r(this, u);
7595
7582
  } else
7596
7583
  (i || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
7597
7584
  return this;
@@ -7828,7 +7815,7 @@ class hu {
7828
7815
  constructor(e) {
7829
7816
  this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = uu, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = Ce.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
7830
7817
  let t = e.facet(Ta).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
7831
- this.heightOracle = new X0(t), this.stateDeco = e.facet(jn).filter((i) => typeof i != "function"), this.heightMap = Je.empty().applyChanges(this.stateDeco, pe.empty, this.heightOracle.setDoc(e.doc), [new mt(0, 0, 0, e.doc.length)]);
7818
+ this.heightOracle = new X0(t), this.stateDeco = e.facet(Gn).filter((i) => typeof i != "function"), this.heightMap = Je.empty().applyChanges(this.stateDeco, pe.empty, this.heightOracle.setDoc(e.doc), [new mt(0, 0, 0, e.doc.length)]);
7832
7819
  for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
7833
7820
  ;
7834
7821
  this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = se.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
@@ -7850,15 +7837,15 @@ class hu {
7850
7837
  }
7851
7838
  updateViewportLines() {
7852
7839
  this.viewportLines = [], this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, (e) => {
7853
- this.viewportLines.push(An(e, this.scaler));
7840
+ this.viewportLines.push(Zn(e, this.scaler));
7854
7841
  });
7855
7842
  }
7856
7843
  update(e, t = null) {
7857
7844
  this.state = e.state;
7858
7845
  let i = this.stateDeco;
7859
- this.stateDeco = this.state.facet(jn).filter((h) => typeof h != "function");
7846
+ this.stateDeco = this.state.facet(Gn).filter((h) => typeof h != "function");
7860
7847
  let s = e.changedRanges, r = mt.extendWithRanges(s, Y0(i, this.stateDeco, e ? e.changes : Me.empty(this.state.doc.length))), l = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
7861
- ou(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), r), (this.heightMap.height != l || on) && (e.flags |= 2), o ? (this.scrollAnchorPos = e.changes.mapPos(o.from, -1), this.scrollAnchorHeight = o.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = l);
7848
+ ou(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), r), (this.heightMap.height != l || rn) && (e.flags |= 2), o ? (this.scrollAnchorPos = e.changes.mapPos(o.from, -1), this.scrollAnchorHeight = o.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = l);
7862
7849
  let a = r.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
7863
7850
  (t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
7864
7851
  let u = a.from != this.viewport.from || a.to != this.viewport.to;
@@ -7895,7 +7882,7 @@ class hu {
7895
7882
  let $ = X.from == this.viewport.from ? P : e.docView.measureVisibleLineHeights(X);
7896
7883
  this.heightMap = (l ? Je.empty().applyChanges(this.stateDeco, pe.empty, this.heightOracle, [new mt(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new Z0(X.from, $));
7897
7884
  }
7898
- on && (u |= 2);
7885
+ rn && (u |= 2);
7899
7886
  }
7900
7887
  let Z = !this.viewportIsAppropriate(this.viewport, h) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
7901
7888
  return Z && (u & 2 && (u |= this.updateScaler()), this.viewport = this.getViewport(h, this.scrollTarget), u |= this.updateForViewport()), (u & 2 || Z) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(l ? [] : this.lineGaps, e)), u |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), u;
@@ -8039,17 +8026,17 @@ class hu {
8039
8026
  return this.visibleRanges = i, s;
8040
8027
  }
8041
8028
  lineBlockAt(e) {
8042
- return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || An(this.heightMap.lineAt(e, Te.ByPos, this.heightOracle, 0, 0), this.scaler);
8029
+ return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || Zn(this.heightMap.lineAt(e, Te.ByPos, this.heightOracle, 0, 0), this.scaler);
8043
8030
  }
8044
8031
  lineBlockAtHeight(e) {
8045
- return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || An(this.heightMap.lineAt(this.scaler.fromDOM(e), Te.ByHeight, this.heightOracle, 0, 0), this.scaler);
8032
+ return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || Zn(this.heightMap.lineAt(this.scaler.fromDOM(e), Te.ByHeight, this.heightOracle, 0, 0), this.scaler);
8046
8033
  }
8047
8034
  scrollAnchorAt(e) {
8048
8035
  let t = this.lineBlockAtHeight(e + 8);
8049
8036
  return t.from >= this.viewport.from || this.viewportLines[0].top - e > 200 ? t : this.viewportLines[0];
8050
8037
  }
8051
8038
  elementAtHeight(e) {
8052
- return An(this.heightMap.blockAt(this.scaler.fromDOM(e), this.heightOracle, 0, 0), this.scaler);
8039
+ return Zn(this.heightMap.blockAt(this.scaler.fromDOM(e), this.heightOracle, 0, 0), this.scaler);
8053
8040
  }
8054
8041
  get docHeight() {
8055
8042
  return this.scaler.toDOM(this.heightMap.height);
@@ -8148,11 +8135,11 @@ class Va {
8148
8135
  return e instanceof Va ? this.scale == e.scale && this.viewports.length == e.viewports.length && this.viewports.every((t, i) => t.from == e.viewports[i].from && t.to == e.viewports[i].to) : !1;
8149
8136
  }
8150
8137
  }
8151
- function An(n, e) {
8138
+ function Zn(n, e) {
8152
8139
  if (e.scale == 1)
8153
8140
  return n;
8154
8141
  let t = e.toDOM(n.top), i = e.toDOM(n.bottom);
8155
- return new Vt(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((s) => An(s, e)) : n._content);
8142
+ return new Vt(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((s) => Zn(s, e)) : n._content);
8156
8143
  }
8157
8144
  const Cs = /* @__PURE__ */ H.define({ combine: (n) => n.join(" ") }), No = /* @__PURE__ */ H.define({ combine: (n) => n.indexOf(!0) > -1 }), Io = /* @__PURE__ */ di.newName(), jd = /* @__PURE__ */ di.newName(), Fd = /* @__PURE__ */ di.newName(), Hd = { "&light": "." + jd, "&dark": "." + Fd };
8158
8145
  function Go(n, e, t) {
@@ -8484,10 +8471,10 @@ class N0 {
8484
8471
  return;
8485
8472
  }
8486
8473
  (J.ie && J.ie_version <= 11 || J.android && J.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
8487
- s.focusNode && Dn(s.focusNode, s.focusOffset, s.anchorNode, s.anchorOffset) ? this.flushSoon() : this.flush(!1);
8474
+ s.focusNode && Mn(s.focusNode, s.focusOffset, s.anchorNode, s.anchorOffset) ? this.flushSoon() : this.flush(!1);
8488
8475
  }
8489
8476
  readSelectionRange() {
8490
- let { view: e } = this, t = In(e.root);
8477
+ let { view: e } = this, t = Nn(e.root);
8491
8478
  if (!t)
8492
8479
  return !1;
8493
8480
  let i = J.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && I0(this.view, t) || t;
@@ -8551,7 +8538,7 @@ class N0 {
8551
8538
  if (!this.delayedAndroidKey) {
8552
8539
  let s = () => {
8553
8540
  let r = this.delayedAndroidKey;
8554
- r && (this.clearDelayedAndroidKey(), this.view.inputState.lastKeyCode = r.keyCode, this.view.inputState.lastKeyTime = Date.now(), !this.flush() && r.force && Ki(this.dom, r.key, r.keyCode));
8541
+ r && (this.clearDelayedAndroidKey(), this.view.inputState.lastKeyCode = r.keyCode, this.view.inputState.lastKeyTime = Date.now(), !this.flush() && r.force && Fi(this.dom, r.key, r.keyCode));
8555
8542
  };
8556
8543
  this.flushingAndroidKey = this.view.win.requestAnimationFrame(s);
8557
8544
  }
@@ -8656,7 +8643,7 @@ function cu(n, e, t) {
8656
8643
  }
8657
8644
  function fu(n, e) {
8658
8645
  let t = e.startContainer, i = e.startOffset, s = e.endContainer, r = e.endOffset, l = n.docView.domAtPos(n.state.selection.main.anchor);
8659
- return Dn(l.node, l.offset, s, r) && ([t, i, s, r] = [s, r, t, i]), { anchorNode: t, anchorOffset: i, focusNode: s, focusOffset: r };
8646
+ return Mn(l.node, l.offset, s, r) && ([t, i, s, r] = [s, r, t, i]), { anchorNode: t, anchorOffset: i, focusNode: s, focusOffset: r };
8660
8647
  }
8661
8648
  function I0(n, e) {
8662
8649
  if (e.getComposedRanges) {
@@ -8725,7 +8712,7 @@ class G0 {
8725
8712
  t.addEventListener(i, this.handlers[i]);
8726
8713
  this.measureReq = { read: (i) => {
8727
8714
  this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());
8728
- let s = In(i.root);
8715
+ let s = Nn(i.root);
8729
8716
  s && s.rangeCount && this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect());
8730
8717
  } };
8731
8718
  }
@@ -8871,7 +8858,7 @@ class G {
8871
8858
  var t;
8872
8859
  this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
8873
8860
  let { dispatch: i } = e;
8874
- this.dispatchTransactions = e.dispatchTransactions || i && ((s) => s.forEach((r) => i(r, this))) || ((s) => this.update(s)), this.dispatch = this.dispatch.bind(this), this._root = e.root || T_(e.parent) || document, this.viewState = new hu(e.state || ge.create(e)), e.scrollTo && e.scrollTo.is(xs) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(Xn).map((s) => new gl(s));
8861
+ this.dispatchTransactions = e.dispatchTransactions || i && ((s) => s.forEach((r) => i(r, this))) || ((s) => this.update(s)), this.dispatch = this.dispatch.bind(this), this._root = e.root || T_(e.parent) || document, this.viewState = new hu(e.state || ge.create(e)), e.scrollTo && e.scrollTo.is(xs) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(Cn).map((s) => new gl(s));
8875
8862
  for (let s of this.plugins)
8876
8863
  s.update(this);
8877
8864
  this.observer = new N0(this), this.inputState = new p0(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Wh(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
@@ -8913,12 +8900,12 @@ class G {
8913
8900
  for (let f of e) {
8914
8901
  if (c && (c = c.map(f.changes)), f.scrollIntoView) {
8915
8902
  let { main: d } = f.state.selection;
8916
- c = new Ji(d.empty ? d : U.cursor(d.head, d.head > d.anchor ? -1 : 1));
8903
+ c = new Hi(d.empty ? d : U.cursor(d.head, d.head > d.anchor ? -1 : 1));
8917
8904
  }
8918
8905
  for (let d of f.effects)
8919
8906
  d.is(xs) && (c = d.value.clip(this.state));
8920
8907
  }
8921
- this.viewState.update(s, c), this.bidiCache = Qr.update(this.bidiCache, s.changes), s.empty || (this.updatePlugins(s), this.inputState.update(s)), t = this.docView.update(s), this.state.facet(Zn) != this.styleModules && this.mountStyles(), i = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((f) => f.isUserEvent("select.pointer")));
8908
+ this.viewState.update(s, c), this.bidiCache = Qr.update(this.bidiCache, s.changes), s.empty || (this.updatePlugins(s), this.inputState.update(s)), t = this.docView.update(s), this.state.facet(Rn) != this.styleModules && this.mountStyles(), i = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((f) => f.isUserEvent("select.pointer")));
8922
8909
  } finally {
8923
8910
  this.updateState = 0;
8924
8911
  }
@@ -8930,7 +8917,7 @@ class G {
8930
8917
  st(this.state, d, "update listener");
8931
8918
  }
8932
8919
  (a || h) && Promise.resolve().then(() => {
8933
- a && this.state == a.startState && this.dispatch(a), h && !Md(this, h) && u.force && Ki(this.contentDOM, u.key, u.keyCode);
8920
+ a && this.state == a.startState && this.dispatch(a), h && !Md(this, h) && u.force && Fi(this.contentDOM, u.key, u.keyCode);
8934
8921
  });
8935
8922
  }
8936
8923
  /**
@@ -8952,7 +8939,7 @@ class G {
8952
8939
  try {
8953
8940
  for (let i of this.plugins)
8954
8941
  i.destroy(this);
8955
- this.viewState = new hu(e), this.plugins = e.facet(Xn).map((i) => new gl(i)), this.pluginMap.clear();
8942
+ this.viewState = new hu(e), this.plugins = e.facet(Cn).map((i) => new gl(i)), this.pluginMap.clear();
8956
8943
  for (let i of this.plugins)
8957
8944
  i.update(this);
8958
8945
  this.docView.destroy(), this.docView = new Wh(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
@@ -8962,7 +8949,7 @@ class G {
8962
8949
  t && this.focus(), this.requestMeasure();
8963
8950
  }
8964
8951
  updatePlugins(e) {
8965
- let t = e.startState.facet(Xn), i = e.state.facet(Xn);
8952
+ let t = e.startState.facet(Cn), i = e.state.facet(Cn);
8966
8953
  if (t != i) {
8967
8954
  let s = [];
8968
8955
  for (let r of i) {
@@ -9104,7 +9091,7 @@ class G {
9104
9091
  }
9105
9092
  }
9106
9093
  mountStyles() {
9107
- this.styleModules = this.state.facet(Zn);
9094
+ this.styleModules = this.state.facet(Rn);
9108
9095
  let e = this.state.facet(G.cspNonce);
9109
9096
  di.mount(this.root, this.styleModules.concat(W0).reverse(), e ? { nonce: e } : void 0);
9110
9097
  }
@@ -9431,7 +9418,7 @@ class G {
9431
9418
  cause it to scroll the given position or range into view.
9432
9419
  */
9433
9420
  static scrollIntoView(e, t = {}) {
9434
- return xs.of(new Ji(typeof e == "number" ? U.cursor(e) : e, t.y, t.x, t.yMargin, t.xMargin));
9421
+ return xs.of(new Hi(typeof e == "number" ? U.cursor(e) : e, t.y, t.x, t.yMargin, t.xMargin));
9435
9422
  }
9436
9423
  /**
9437
9424
  Return an effect that resets the editor to its current (at the
@@ -9447,7 +9434,7 @@ class G {
9447
9434
  */
9448
9435
  scrollSnapshot() {
9449
9436
  let { scrollTop: e, scrollLeft: t } = this.scrollDOM, i = this.viewState.scrollAnchorAt(e);
9450
- return xs.of(new Ji(U.cursor(i.from), "start", "start", i.top - e, t, !0));
9437
+ return xs.of(new Hi(U.cursor(i.from), "start", "start", i.top - e, t, !0));
9451
9438
  }
9452
9439
  /**
9453
9440
  Enable or disable tab-focus mode, which disables key bindings
@@ -9508,7 +9495,7 @@ class G {
9508
9495
  `&light` when a light theme is active).
9509
9496
  */
9510
9497
  static theme(e, t) {
9511
- let i = di.newName(), s = [Cs.of(i), Zn.of(Go(`.${i}`, e))];
9498
+ let i = di.newName(), s = [Cs.of(i), Rn.of(Go(`.${i}`, e))];
9512
9499
  return t && t.dark && s.push(No.of(!0)), s;
9513
9500
  }
9514
9501
  /**
@@ -9519,7 +9506,7 @@ class G {
9519
9506
  target editors with a dark or light theme.
9520
9507
  */
9521
9508
  static baseTheme(e) {
9522
- return Qi.lowest(Zn.of(Go("." + Io, e, Hd)));
9509
+ return Qi.lowest(Rn.of(Go("." + Io, e, Hd)));
9523
9510
  }
9524
9511
  /**
9525
9512
  Retrieve an editor view instance from the view's DOM
@@ -9531,7 +9518,7 @@ class G {
9531
9518
  return ((t = s == null ? void 0 : s.rootView) === null || t === void 0 ? void 0 : t.view) || null;
9532
9519
  }
9533
9520
  }
9534
- G.styleModule = Zn;
9521
+ G.styleModule = Rn;
9535
9522
  G.inputHandler = wd;
9536
9523
  G.clipboardInputFilter = wa;
9537
9524
  G.clipboardOutputFilter = ka;
@@ -9544,7 +9531,7 @@ G.editable = It;
9544
9531
  G.mouseSelectionStyle = $d;
9545
9532
  G.dragMovesSelection = xd;
9546
9533
  G.clickAddsSelectionRange = vd;
9547
- G.decorations = jn;
9534
+ G.decorations = Gn;
9548
9535
  G.outerDecorations = Vd;
9549
9536
  G.atomicRanges = Ca;
9550
9537
  G.bidiIsolatedRanges = Ad;
@@ -9682,9 +9669,9 @@ function Jd(n, e, t, i) {
9682
9669
  return !1;
9683
9670
  }, d = n[i], p, g;
9684
9671
  return d && (f(d[o + Rs(s, e, !l)]) ? a = !0 : l && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
9685
- !(J.windows && e.ctrlKey && e.altKey) && (p = Oi[e.keyCode]) && p != s ? (f(d[o + Rs(p, e, !0)]) || e.shiftKey && (g = Nn[e.keyCode]) != s && g != p && f(d[o + Rs(g, e, !1)])) && (a = !0) : l && e.shiftKey && f(d[o + Rs(s, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && h && e.stopPropagation(), jo = null, a;
9672
+ !(J.windows && e.ctrlKey && e.altKey) && (p = Oi[e.keyCode]) && p != s ? (f(d[o + Rs(p, e, !0)]) || e.shiftKey && (g = Bn[e.keyCode]) != s && g != p && f(d[o + Rs(g, e, !1)])) && (a = !0) : l && e.shiftKey && f(d[o + Rs(s, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && h && e.stopPropagation(), jo = null, a;
9686
9673
  }
9687
- class ds {
9674
+ class fs {
9688
9675
  /**
9689
9676
  Create a marker with the given class and dimensions. If `width`
9690
9677
  is null, the DOM element will get no width style.
@@ -9718,7 +9705,7 @@ class ds {
9718
9705
  if (!s)
9719
9706
  return [];
9720
9707
  let r = eO(e);
9721
- return [new ds(t, s.left - r.left, s.top - r.top, null, s.bottom - s.top)];
9708
+ return [new fs(t, s.left - r.left, s.top - r.top, null, s.bottom - s.top)];
9722
9709
  } else
9723
9710
  return iQ(e, t, i);
9724
9711
  }
@@ -9745,7 +9732,7 @@ function iQ(n, e, t) {
9745
9732
  return (g || d).to < (m || p).from - (g && m ? 1 : 0) || d.widgetLineBreaks > 1 && X.bottom + n.defaultLineHeight / 2 < $.top ? w.push(O(c, X.bottom, f, $.top)) : X.bottom < $.top && n.elementAtHeight((X.bottom + $.top) / 2).type == Ke.Text && (X.bottom = $.top = (X.bottom + $.top) / 2), y(X).concat(w).concat(y($));
9746
9733
  }
9747
9734
  function O(X, $, w, T) {
9748
- return new ds(e, X - a.left, $ - a.top, w - X, T - $);
9735
+ return new fs(e, X - a.left, $ - a.top, w - X, T - $);
9749
9736
  }
9750
9737
  function y({ top: X, bottom: $, horizontal: w }) {
9751
9738
  let T = [];
@@ -9829,7 +9816,7 @@ function tO(n) {
9829
9816
  sr.of(n)
9830
9817
  ];
9831
9818
  }
9832
- const Fn = /* @__PURE__ */ H.define({
9819
+ const jn = /* @__PURE__ */ H.define({
9833
9820
  combine(n) {
9834
9821
  return zt(n, {
9835
9822
  cursorBlinkRate: 1200,
@@ -9842,7 +9829,7 @@ const Fn = /* @__PURE__ */ H.define({
9842
9829
  });
9843
9830
  function rQ(n = {}) {
9844
9831
  return [
9845
- Fn.of(n),
9832
+ jn.of(n),
9846
9833
  lQ,
9847
9834
  oQ,
9848
9835
  aQ,
@@ -9850,17 +9837,17 @@ function rQ(n = {}) {
9850
9837
  ];
9851
9838
  }
9852
9839
  function iO(n) {
9853
- return n.startState.facet(Fn) != n.state.facet(Fn);
9840
+ return n.startState.facet(jn) != n.state.facet(jn);
9854
9841
  }
9855
9842
  const lQ = /* @__PURE__ */ tO({
9856
9843
  above: !0,
9857
9844
  markers(n) {
9858
- let { state: e } = n, t = e.facet(Fn), i = [];
9845
+ let { state: e } = n, t = e.facet(jn), i = [];
9859
9846
  for (let s of e.selection.ranges) {
9860
9847
  let r = s == e.selection.main;
9861
9848
  if (s.empty || t.drawRangeCursor) {
9862
9849
  let l = r ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", o = s.empty ? s : U.cursor(s.head, s.head > s.anchor ? -1 : 1);
9863
- for (let a of ds.forRange(n, l, o))
9850
+ for (let a of fs.forRange(n, l, o))
9864
9851
  i.push(a);
9865
9852
  }
9866
9853
  }
@@ -9877,12 +9864,12 @@ const lQ = /* @__PURE__ */ tO({
9877
9864
  class: "cm-cursorLayer"
9878
9865
  });
9879
9866
  function gu(n, e) {
9880
- e.style.animationDuration = n.facet(Fn).cursorBlinkRate + "ms";
9867
+ e.style.animationDuration = n.facet(jn).cursorBlinkRate + "ms";
9881
9868
  }
9882
9869
  const oQ = /* @__PURE__ */ tO({
9883
9870
  above: !1,
9884
9871
  markers(n) {
9885
- return n.state.selection.ranges.map((e) => e.empty ? [] : ds.forRange(n, "cm-selectionBackground", e)).reduce((e, t) => e.concat(t));
9872
+ return n.state.selection.ranges.map((e) => e.empty ? [] : fs.forRange(n, "cm-selectionBackground", e)).reduce((e, t) => e.concat(t));
9886
9873
  },
9887
9874
  update(n, e) {
9888
9875
  return n.docChanged || n.selectionSet || n.viewportChanged || iO(n);
@@ -9906,7 +9893,7 @@ const oQ = /* @__PURE__ */ tO({
9906
9893
  map(n, e) {
9907
9894
  return n == null ? null : e.mapPos(n);
9908
9895
  }
9909
- }), Yn = /* @__PURE__ */ Ue.define({
9896
+ }), Vn = /* @__PURE__ */ Ue.define({
9910
9897
  create() {
9911
9898
  return null;
9912
9899
  },
@@ -9919,11 +9906,11 @@ const oQ = /* @__PURE__ */ tO({
9919
9906
  }
9920
9907
  update(n) {
9921
9908
  var e;
9922
- let t = n.state.field(Yn);
9923
- t == null ? this.cursor != null && ((e = this.cursor) === null || e === void 0 || e.remove(), this.cursor = null) : (this.cursor || (this.cursor = this.view.scrollDOM.appendChild(document.createElement("div")), this.cursor.className = "cm-dropCursor"), (n.startState.field(Yn) != t || n.docChanged || n.geometryChanged) && this.view.requestMeasure(this.measureReq));
9909
+ let t = n.state.field(Vn);
9910
+ t == null ? this.cursor != null && ((e = this.cursor) === null || e === void 0 || e.remove(), this.cursor = null) : (this.cursor || (this.cursor = this.view.scrollDOM.appendChild(document.createElement("div")), this.cursor.className = "cm-dropCursor"), (n.startState.field(Vn) != t || n.docChanged || n.geometryChanged) && this.view.requestMeasure(this.measureReq));
9924
9911
  }
9925
9912
  readPos() {
9926
- let { view: n } = this, e = n.state.field(Yn), t = e != null && n.coordsAtPos(e);
9913
+ let { view: n } = this, e = n.state.field(Vn), t = e != null && n.coordsAtPos(e);
9927
9914
  if (!t)
9928
9915
  return null;
9929
9916
  let i = n.scrollDOM.getBoundingClientRect();
@@ -9943,7 +9930,7 @@ const oQ = /* @__PURE__ */ tO({
9943
9930
  this.cursor && this.cursor.remove();
9944
9931
  }
9945
9932
  setDropPos(n) {
9946
- this.view.state.field(Yn) != n && this.view.dispatch({ effects: nO.of(n) });
9933
+ this.view.state.field(Vn) != n && this.view.dispatch({ effects: nO.of(n) });
9947
9934
  }
9948
9935
  }, {
9949
9936
  eventObservers: {
@@ -9962,7 +9949,7 @@ const oQ = /* @__PURE__ */ tO({
9962
9949
  }
9963
9950
  });
9964
9951
  function uQ() {
9965
- return [Yn, hQ];
9952
+ return [Vn, hQ];
9966
9953
  }
9967
9954
  function _u(n, e, t, i, s) {
9968
9955
  e.lastIndex = 0;
@@ -10110,7 +10097,7 @@ function gQ() {
10110
10097
  decoration: (e, t, i) => {
10111
10098
  let { doc: s } = t.state, r = tt(e[0], 0);
10112
10099
  if (r == 9) {
10113
- let l = s.lineAt(i), o = t.state.tabSize, a = On(l.text, o, i - l.from);
10100
+ let l = s.lineAt(i), o = t.state.tabSize, a = fn(l.text, o, i - l.from);
10114
10101
  return se.replace({
10115
10102
  widget: new yQ((o - a % o) * this.view.defaultCharacterWidth / this.view.scaleX)
10116
10103
  });
@@ -10213,7 +10200,7 @@ function PQ(n, e) {
10213
10200
  return t ? Math.round(Math.abs((t.left - e) / n.defaultCharacterWidth)) : -1;
10214
10201
  }
10215
10202
  function bu(n, e) {
10216
- let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1), i = n.state.doc.lineAt(t), s = t - i.from, r = s > Ho ? -1 : s == i.length ? PQ(n, e.clientX) : On(i.text, n.state.tabSize, t - i.from);
10203
+ let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1), i = n.state.doc.lineAt(t), s = t - i.from, r = s > Ho ? -1 : s == i.length ? PQ(n, e.clientX) : fn(i.text, n.state.tabSize, t - i.from);
10217
10204
  return { line: i.number, col: r, off: s };
10218
10205
  }
10219
10206
  function wQ(n, e) {
@@ -10273,7 +10260,7 @@ function RQ(n = {}) {
10273
10260
  })
10274
10261
  ];
10275
10262
  }
10276
- const Sn = "-10000px";
10263
+ const bn = "-10000px";
10277
10264
  class sO {
10278
10265
  constructor(e, t, i, s) {
10279
10266
  this.facet = t, this.createTooltipView = i, this.removeTooltipView = s, this.input = e.state.facet(t), this.tooltips = this.input.filter((l) => l);
@@ -10373,7 +10360,7 @@ const vl = /* @__PURE__ */ H.define({
10373
10360
  let s = document.createElement("div");
10374
10361
  s.className = "cm-tooltip-arrow", t.dom.appendChild(s);
10375
10362
  }
10376
- return t.dom.style.position = this.position, t.dom.style.top = Sn, t.dom.style.left = "0px", this.container.insertBefore(t.dom, i), t.mount && t.mount(this.view), this.resizeObserver && this.resizeObserver.observe(t.dom), t;
10363
+ return t.dom.style.position = this.position, t.dom.style.top = bn, t.dom.style.left = "0px", this.container.insertBefore(t.dom, i), t.mount && t.mount(this.view), this.resizeObserver && this.resizeObserver.observe(t.dom), t;
10377
10364
  }
10378
10365
  destroy() {
10379
10366
  var n, e, t;
@@ -10388,7 +10375,7 @@ const vl = /* @__PURE__ */ H.define({
10388
10375
  let { dom: r } = this.manager.tooltipViews[0];
10389
10376
  if (J.gecko)
10390
10377
  t = r.offsetParent != this.container.ownerDocument.body;
10391
- else if (r.style.top == Sn && r.style.left == "0px") {
10378
+ else if (r.style.top == bn && r.style.left == "0px") {
10392
10379
  let l = r.getBoundingClientRect();
10393
10380
  t = Math.abs(l.top + 1e4) > 1 || Math.abs(l.left) > 1;
10394
10381
  }
@@ -10430,7 +10417,7 @@ const vl = /* @__PURE__ */ H.define({
10430
10417
  for (let o = 0; o < this.manager.tooltips.length; o++) {
10431
10418
  let a = this.manager.tooltips[o], u = this.manager.tooltipViews[o], { dom: h } = u, c = n.pos[o], f = n.size[o];
10432
10419
  if (!c || a.clip !== !1 && (c.bottom <= Math.max(t.top, i.top) || c.top >= Math.min(t.bottom, i.bottom) || c.right < Math.max(t.left, i.left) - 0.1 || c.left > Math.min(t.right, i.right) + 0.1)) {
10433
- h.style.top = Sn;
10420
+ h.style.top = bn;
10434
10421
  continue;
10435
10422
  }
10436
10423
  let d = a.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, p = d ? 7 : 0, g = f.right - f.left, m = (e = yu.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, O = u.offset || VQ, y = this.view.textDirection == Ce.LTR, Z = f.width > i.right - i.left ? y ? i.left : i.right - f.width : y ? Math.max(i.left, Math.min(c.left - (d ? 14 : 0) + O.x, i.right - g)) : Math.min(Math.max(i.left, c.left - g + (d ? 14 : 0) - O.x), i.right - g), P = this.above[o];
@@ -10438,7 +10425,7 @@ const vl = /* @__PURE__ */ H.define({
10438
10425
  let X = (P ? c.top - i.top : i.bottom - c.bottom) - p;
10439
10426
  if (X < m && u.resize !== !1) {
10440
10427
  if (X < this.view.defaultLineHeight) {
10441
- h.style.top = Sn;
10428
+ h.style.top = bn;
10442
10429
  continue;
10443
10430
  }
10444
10431
  yu.set(u, m), h.style.height = (m = X) / r + "px";
@@ -10458,7 +10445,7 @@ const vl = /* @__PURE__ */ H.define({
10458
10445
  maybeMeasure() {
10459
10446
  if (this.manager.tooltips.length && (this.view.inView && this.view.requestMeasure(this.measureReq), this.inView != this.view.inView && (this.inView = this.view.inView, !this.inView)))
10460
10447
  for (let n of this.manager.tooltipViews)
10461
- n.dom.style.top = Sn;
10448
+ n.dom.style.top = bn;
10462
10449
  }
10463
10450
  }, {
10464
10451
  eventObservers: {
@@ -10748,13 +10735,13 @@ const DQ = /* @__PURE__ */ ae.define(), vu = /* @__PURE__ */ H.define({
10748
10735
  return { topContainer: e, bottomContainer: t };
10749
10736
  }
10750
10737
  });
10751
- function Hn(n, e) {
10738
+ function Fn(n, e) {
10752
10739
  let t = n.plugin(lO), i = t ? t.specs.indexOf(e) : -1;
10753
10740
  return i > -1 ? t.panels[i] : null;
10754
10741
  }
10755
10742
  const lO = /* @__PURE__ */ qe.fromClass(class {
10756
10743
  constructor(n) {
10757
- this.input = n.state.facet(Kn), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(n));
10744
+ this.input = n.state.facet(Hn), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(n));
10758
10745
  let e = n.state.facet(vu);
10759
10746
  this.top = new Zs(n, !0, e.topContainer), this.bottom = new Zs(n, !1, e.bottomContainer), this.top.sync(this.panels.filter((t) => t.top)), this.bottom.sync(this.panels.filter((t) => !t.top));
10760
10747
  for (let t of this.panels)
@@ -10763,7 +10750,7 @@ const lO = /* @__PURE__ */ qe.fromClass(class {
10763
10750
  update(n) {
10764
10751
  let e = n.state.facet(vu);
10765
10752
  this.top.container != e.topContainer && (this.top.sync([]), this.top = new Zs(n.view, !0, e.topContainer)), this.bottom.container != e.bottomContainer && (this.bottom.sync([]), this.bottom = new Zs(n.view, !1, e.bottomContainer)), this.top.syncClasses(), this.bottom.syncClasses();
10766
- let t = n.state.facet(Kn);
10753
+ let t = n.state.facet(Hn);
10767
10754
  if (t != this.input) {
10768
10755
  let i = t.filter((a) => a), s = [], r = [], l = [], o = [];
10769
10756
  for (let a of i) {
@@ -10832,7 +10819,7 @@ function xu(n) {
10832
10819
  let e = n.nextSibling;
10833
10820
  return n.remove(), e;
10834
10821
  }
10835
- const Kn = /* @__PURE__ */ H.define({
10822
+ const Hn = /* @__PURE__ */ H.define({
10836
10823
  enables: lO
10837
10824
  });
10838
10825
  class Jt extends Ri {
@@ -10871,9 +10858,9 @@ const lr = /* @__PURE__ */ H.define(), LQ = /* @__PURE__ */ H.define(), UQ = {
10871
10858
  initialSpacer: null,
10872
10859
  updateSpacer: null,
10873
10860
  domEventHandlers: {}
10874
- }, Un = /* @__PURE__ */ H.define();
10861
+ }, Ln = /* @__PURE__ */ H.define();
10875
10862
  function zQ(n) {
10876
- return [oO(), Un.of(Object.assign(Object.assign({}, UQ), n))];
10863
+ return [oO(), Ln.of(Object.assign(Object.assign({}, UQ), n))];
10877
10864
  }
10878
10865
  const Ko = /* @__PURE__ */ H.define({
10879
10866
  combine: (n) => n.some((e) => e)
@@ -10886,7 +10873,7 @@ function oO(n) {
10886
10873
  }
10887
10874
  const WQ = /* @__PURE__ */ qe.fromClass(class {
10888
10875
  constructor(n) {
10889
- this.view = n, this.prevViewport = n.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = n.state.facet(Un).map((e) => new Pu(n, e));
10876
+ this.view = n, this.prevViewport = n.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = n.state.facet(Ln).map((e) => new Pu(n, e));
10890
10877
  for (let e of this.gutters)
10891
10878
  this.dom.appendChild(e.dom);
10892
10879
  this.fixed = !n.state.facet(Ko), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), n.scrollDOM.insertBefore(this.dom, n.contentDOM);
@@ -10926,7 +10913,7 @@ const WQ = /* @__PURE__ */ qe.fromClass(class {
10926
10913
  n && this.view.scrollDOM.insertBefore(this.dom, e);
10927
10914
  }
10928
10915
  updateGutters(n) {
10929
- let e = n.startState.facet(Un), t = n.state.facet(Un), i = n.docChanged || n.heightChanged || n.viewportChanged || !_e.eq(n.startState.facet(lr), n.state.facet(lr), n.view.viewport.from, n.view.viewport.to);
10916
+ let e = n.startState.facet(Ln), t = n.state.facet(Ln), i = n.docChanged || n.heightChanged || n.viewportChanged || !_e.eq(n.startState.facet(lr), n.state.facet(lr), n.view.viewport.from, n.view.viewport.to);
10930
10917
  if (e == t)
10931
10918
  for (let s of this.gutters)
10932
10919
  s.update(n) && (i = !0);
@@ -11079,7 +11066,7 @@ function NQ(n, e) {
11079
11066
  return !1;
11080
11067
  return !0;
11081
11068
  }
11082
- const IQ = /* @__PURE__ */ H.define(), GQ = /* @__PURE__ */ H.define(), Ni = /* @__PURE__ */ H.define({
11069
+ const IQ = /* @__PURE__ */ H.define(), GQ = /* @__PURE__ */ H.define(), Bi = /* @__PURE__ */ H.define({
11083
11070
  combine(n) {
11084
11071
  return zt(n, { formatNumber: String, domEventHandlers: {} }, {
11085
11072
  domEventHandlers(e, t) {
@@ -11105,9 +11092,9 @@ class xl extends Jt {
11105
11092
  }
11106
11093
  }
11107
11094
  function $l(n, e) {
11108
- return n.state.facet(Ni).formatNumber(e, n.state);
11095
+ return n.state.facet(Bi).formatNumber(e, n.state);
11109
11096
  }
11110
- const jQ = /* @__PURE__ */ Un.compute([Ni], (n) => ({
11097
+ const jQ = /* @__PURE__ */ Ln.compute([Bi], (n) => ({
11111
11098
  class: "cm-lineNumbers",
11112
11099
  renderEmptyElements: !1,
11113
11100
  markers(e) {
@@ -11124,7 +11111,7 @@ const jQ = /* @__PURE__ */ Un.compute([Ni], (n) => ({
11124
11111
  }
11125
11112
  return null;
11126
11113
  },
11127
- lineMarkerChange: (e) => e.startState.facet(Ni) != e.state.facet(Ni),
11114
+ lineMarkerChange: (e) => e.startState.facet(Bi) != e.state.facet(Bi),
11128
11115
  initialSpacer(e) {
11129
11116
  return new xl($l(e, wu(e.state.doc.lines)));
11130
11117
  },
@@ -11132,11 +11119,11 @@ const jQ = /* @__PURE__ */ Un.compute([Ni], (n) => ({
11132
11119
  let i = $l(t.view, wu(t.view.state.doc.lines));
11133
11120
  return i == e.number ? e : new xl(i);
11134
11121
  },
11135
- domEventHandlers: n.facet(Ni).domEventHandlers
11122
+ domEventHandlers: n.facet(Bi).domEventHandlers
11136
11123
  }));
11137
11124
  function FQ(n = {}) {
11138
11125
  return [
11139
- Ni.of(n),
11126
+ Bi.of(n),
11140
11127
  oO(),
11141
11128
  jQ
11142
11129
  ];
@@ -11207,7 +11194,7 @@ de.isolate = new de({ deserialize: (n) => {
11207
11194
  de.contextHash = new de({ perNode: !0 });
11208
11195
  de.lookAhead = new de({ perNode: !0 });
11209
11196
  de.mounted = new de({ perNode: !0 });
11210
- class Jn {
11197
+ class Kn {
11211
11198
  constructor(e, t, i) {
11212
11199
  this.tree = e, this.overlay = t, this.parser = i;
11213
11200
  }
@@ -11364,7 +11351,7 @@ class Ze {
11364
11351
  @internal
11365
11352
  */
11366
11353
  toString() {
11367
- let e = Jn.get(this);
11354
+ let e = Kn.get(this);
11368
11355
  if (e && !e.overlay)
11369
11356
  return e.tree.toString();
11370
11357
  let t = "";
@@ -11410,7 +11397,7 @@ class Ze {
11410
11397
  [`resolveInner`](#common.Tree.resolveInner) instead.
11411
11398
  */
11412
11399
  resolve(e, t = 0) {
11413
- let i = es(Vs.get(this) || this.topNode, e, t, !1);
11400
+ let i = Jn(Vs.get(this) || this.topNode, e, t, !1);
11414
11401
  return Vs.set(this, i), i;
11415
11402
  }
11416
11403
  /**
@@ -11421,7 +11408,7 @@ class Ze {
11421
11408
  the host trees).
11422
11409
  */
11423
11410
  resolveInner(e, t = 0) {
11424
- let i = es(ku.get(this) || this.topNode, e, t, !0);
11411
+ let i = Jn(ku.get(this) || this.topNode, e, t, !0);
11425
11412
  return ku.set(this, i), i;
11426
11413
  }
11427
11414
  /**
@@ -11591,7 +11578,7 @@ function uO(n, e, t, i) {
11591
11578
  return !0;
11592
11579
  }
11593
11580
  }
11594
- function es(n, e, t, i) {
11581
+ function Jn(n, e, t, i) {
11595
11582
  for (var s; n.from == n.to || (t < 1 ? n.from >= e : n.from > e) || (t > -1 ? n.to <= e : n.to < e); ) {
11596
11583
  let l = !i && n instanceof Fe && n.index < 0 ? null : n.parent;
11597
11584
  if (!l)
@@ -11621,10 +11608,10 @@ class cO {
11621
11608
  return Tu(this, e, t, i);
11622
11609
  }
11623
11610
  resolve(e, t = 0) {
11624
- return es(this, e, t, !1);
11611
+ return Jn(this, e, t, !1);
11625
11612
  }
11626
11613
  resolveInner(e, t = 0) {
11627
- return es(this, e, t, !0);
11614
+ return Jn(this, e, t, !0);
11628
11615
  }
11629
11616
  matchContext(e) {
11630
11617
  return ea(this.parent, e);
@@ -11672,7 +11659,7 @@ class Fe extends cO {
11672
11659
  return new At(new i1(l, h, e, c), null, f);
11673
11660
  } else if (r & ve.IncludeAnonymous || !h.type.isAnonymous || Ma(h)) {
11674
11661
  let f;
11675
- if (!(r & ve.IgnoreMounts) && (f = Jn.get(h)) && !f.overlay)
11662
+ if (!(r & ve.IgnoreMounts) && (f = Kn.get(h)) && !f.overlay)
11676
11663
  return new Fe(f.tree, c, e, l);
11677
11664
  let d = new Fe(h, c, e, l);
11678
11665
  return r & ve.IncludeAnonymous || !d.type.isAnonymous ? d : d.nextChild(t < 0 ? h.children.length - 1 : 0, t, i, s);
@@ -11721,7 +11708,7 @@ class Fe extends cO {
11721
11708
  }
11722
11709
  enter(e, t, i = 0) {
11723
11710
  let s;
11724
- if (!(i & ve.IgnoreOverlays) && (s = Jn.get(this._tree)) && s.overlay) {
11711
+ if (!(i & ve.IgnoreOverlays) && (s = Kn.get(this._tree)) && s.overlay) {
11725
11712
  let r = e - this.from;
11726
11713
  for (let { from: l, to: o } of s.overlay)
11727
11714
  if ((t > 0 ? l <= r : l < r) && (t < 0 ? o >= r : o > r))
@@ -11928,10 +11915,10 @@ function s1(n, e, t) {
11928
11915
  let l = r.parent;
11929
11916
  (s || (s = [i])).push(l.resolve(e, t)), r = l;
11930
11917
  } else {
11931
- let l = Jn.get(r.tree);
11918
+ let l = Kn.get(r.tree);
11932
11919
  if (l && l.overlay && l.overlay[0].from <= e && l.overlay[l.overlay.length - 1].to >= e) {
11933
11920
  let o = new Fe(l.tree, l.overlay[0].from + r.from, -1, r);
11934
- (s || (s = [i])).push(es(o, e, t, !1));
11921
+ (s || (s = [i])).push(Jn(o, e, t, !1));
11935
11922
  }
11936
11923
  }
11937
11924
  return s ? fO(s) : i;
@@ -12610,7 +12597,7 @@ class h1 {
12610
12597
  if (t) {
12611
12598
  this.innerDone++;
12612
12599
  let i = Object.assign(/* @__PURE__ */ Object.create(null), e.target.props);
12613
- i[de.mounted.id] = new Jn(t, e.overlay, e.parser), e.target.props = i;
12600
+ i[de.mounted.id] = new Kn(t, e.overlay, e.parser), e.target.props = i;
12614
12601
  }
12615
12602
  return null;
12616
12603
  }
@@ -12897,7 +12884,7 @@ function g1(n) {
12897
12884
  e.push(e[i].concat(n[t]));
12898
12885
  return e.sort((t, i) => i.length - t.length);
12899
12886
  }
12900
- function pn(n) {
12887
+ function dn(n) {
12901
12888
  let e = /* @__PURE__ */ Object.create(null);
12902
12889
  for (let t in n) {
12903
12890
  let i = n[t];
@@ -13039,7 +13026,7 @@ function y1(n) {
13039
13026
  e = e.next;
13040
13027
  return e || null;
13041
13028
  }
13042
- const I = ft.define, As = I(), li = I(), Eu = I(li), qu = I(li), oi = I(), Ys = I(oi), Pl = I(oi), Ct = I(), Si = I(Ct), kt = I(), Tt = I(), ia = I(), vn = I(ia), Es = I(), v = {
13029
+ const I = ft.define, As = I(), li = I(), Eu = I(li), qu = I(li), oi = I(), Ys = I(oi), Pl = I(oi), Ct = I(), Si = I(Ct), kt = I(), Tt = I(), ia = I(), yn = I(ia), Es = I(), v = {
13043
13030
  /**
13044
13031
  A comment.
13045
13032
  */
@@ -13243,27 +13230,27 @@ const I = ft.define, As = I(), li = I(), Eu = I(li), qu = I(li), oi = I(), Ys =
13243
13230
  /**
13244
13231
  Bracket-style [punctuation](#highlight.tags.punctuation).
13245
13232
  */
13246
- bracket: vn,
13233
+ bracket: yn,
13247
13234
  /**
13248
13235
  Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
13249
13236
  tokens).
13250
13237
  */
13251
- angleBracket: I(vn),
13238
+ angleBracket: I(yn),
13252
13239
  /**
13253
13240
  Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
13254
13241
  tokens).
13255
13242
  */
13256
- squareBracket: I(vn),
13243
+ squareBracket: I(yn),
13257
13244
  /**
13258
13245
  Parentheses (usually `(` and `)` tokens). Subtag of
13259
13246
  [bracket](#highlight.tags.bracket).
13260
13247
  */
13261
- paren: I(vn),
13248
+ paren: I(yn),
13262
13249
  /**
13263
13250
  Braces (usually `{` and `}` tokens). Subtag of
13264
13251
  [bracket](#highlight.tags.bracket).
13265
13252
  */
13266
- brace: I(vn),
13253
+ brace: I(yn),
13267
13254
  /**
13268
13255
  Content, for example plain text in XML or markup documents.
13269
13256
  */
@@ -13442,13 +13429,13 @@ pO([
13442
13429
  { tag: v.punctuation, class: "tok-punctuation" }
13443
13430
  ]);
13444
13431
  var wl;
13445
- const Ii = /* @__PURE__ */ new de();
13432
+ const Ni = /* @__PURE__ */ new de();
13446
13433
  function Ua(n) {
13447
13434
  return H.define({
13448
13435
  combine: n ? (e) => e.concat(n) : void 0
13449
13436
  });
13450
13437
  }
13451
- const Os = /* @__PURE__ */ new de();
13438
+ const ds = /* @__PURE__ */ new de();
13452
13439
  class St {
13453
13440
  /**
13454
13441
  Construct a language object. If you need to invoke this
@@ -13463,10 +13450,10 @@ class St {
13463
13450
  } }), this.parser = t, this.extension = [
13464
13451
  gi.of(this),
13465
13452
  ge.languageData.of((r, l, o) => {
13466
- let a = Mu(r, l, o), u = a.type.prop(Ii);
13453
+ let a = Mu(r, l, o), u = a.type.prop(Ni);
13467
13454
  if (!u)
13468
13455
  return [];
13469
- let h = r.facet(u), c = a.type.prop(Os);
13456
+ let h = r.facet(u), c = a.type.prop(ds);
13470
13457
  if (c) {
13471
13458
  let f = a.resolve(l - a.from, o);
13472
13459
  for (let d of c)
@@ -13483,7 +13470,7 @@ class St {
13483
13470
  Query whether this language is active at the given position.
13484
13471
  */
13485
13472
  isActiveAt(e, t, i = -1) {
13486
- return Mu(e, t, i).type.prop(Ii) == this.data;
13473
+ return Mu(e, t, i).type.prop(Ni) == this.data;
13487
13474
  }
13488
13475
  /**
13489
13476
  Find the document regions that were parsed using this language.
@@ -13497,13 +13484,13 @@ class St {
13497
13484
  if (!t || !t.allowsNesting)
13498
13485
  return [];
13499
13486
  let i = [], s = (r, l) => {
13500
- if (r.prop(Ii) == this.data) {
13487
+ if (r.prop(Ni) == this.data) {
13501
13488
  i.push({ from: l, to: l + r.length });
13502
13489
  return;
13503
13490
  }
13504
13491
  let o = r.prop(de.mounted);
13505
13492
  if (o) {
13506
- if (o.tree.prop(Ii) == this.data) {
13493
+ if (o.tree.prop(Ni) == this.data) {
13507
13494
  if (o.overlay)
13508
13495
  for (let a of o.overlay)
13509
13496
  i.push({ from: a.from + l, to: a.to + l });
@@ -13549,7 +13536,7 @@ class ei extends St {
13549
13536
  static define(e) {
13550
13537
  let t = Ua(e.languageData);
13551
13538
  return new ei(t, e.parser.configure({
13552
- props: [Ii.add((i) => i.isTop ? t : void 0)]
13539
+ props: [Ni.add((i) => i.isTop ? t : void 0)]
13553
13540
  }), e.name);
13554
13541
  }
13555
13542
  /**
@@ -13591,7 +13578,7 @@ class S1 {
13591
13578
  return e < i || t >= this.cursorPos ? this.doc.sliceString(e, t) : this.string.slice(e - i, t - i);
13592
13579
  }
13593
13580
  }
13594
- let xn = null;
13581
+ let Sn = null;
13595
13582
  class xr {
13596
13583
  constructor(e, t, i = [], s, r, l, o, a) {
13597
13584
  this.parser = e, this.state = t, this.fragments = i, this.tree = s, this.treeLen = r, this.viewport = l, this.skipped = o, this.scheduleOn = a, this.parse = null, this.tempSkipped = [];
@@ -13638,12 +13625,12 @@ class xr {
13638
13625
  }), this.treeLen = e, this.tree = t, this.fragments = this.withoutTempSkipped(jt.addTree(this.tree, this.fragments, !0)), this.parse = null);
13639
13626
  }
13640
13627
  withContext(e) {
13641
- let t = xn;
13642
- xn = this;
13628
+ let t = Sn;
13629
+ Sn = this;
13643
13630
  try {
13644
13631
  return e();
13645
13632
  } finally {
13646
- xn = t;
13633
+ Sn = t;
13647
13634
  }
13648
13635
  }
13649
13636
  withoutTempSkipped(e) {
@@ -13712,7 +13699,7 @@ class xr {
13712
13699
  return {
13713
13700
  parsedPos: r,
13714
13701
  advance() {
13715
- let a = xn;
13702
+ let a = Sn;
13716
13703
  if (a) {
13717
13704
  for (let u of s)
13718
13705
  a.tempSkipped.push(u);
@@ -13740,13 +13727,13 @@ class xr {
13740
13727
  parse is in progress.
13741
13728
  */
13742
13729
  static get() {
13743
- return xn;
13730
+ return Sn;
13744
13731
  }
13745
13732
  }
13746
13733
  function Du(n, e, t) {
13747
13734
  return jt.applyChanges(n, [{ fromA: e, toA: t, fromB: e, toB: t }]);
13748
13735
  }
13749
- class an {
13736
+ class ln {
13750
13737
  constructor(e) {
13751
13738
  this.context = e, this.tree = e.tree;
13752
13739
  }
@@ -13754,20 +13741,20 @@ class an {
13754
13741
  if (!e.docChanged && this.tree == this.context.tree)
13755
13742
  return this;
13756
13743
  let t = this.context.changes(e.changes, e.state), i = this.context.treeLen == e.startState.doc.length ? void 0 : Math.max(e.changes.mapPos(this.context.treeLen), t.viewport.to);
13757
- return t.work(20, i) || t.takeTree(), new an(t);
13744
+ return t.work(20, i) || t.takeTree(), new ln(t);
13758
13745
  }
13759
13746
  static init(e) {
13760
13747
  let t = Math.min(3e3, e.doc.length), i = xr.create(e.facet(gi).parser, e, { from: 0, to: t });
13761
- return i.work(20, t) || i.takeTree(), new an(i);
13748
+ return i.work(20, t) || i.takeTree(), new ln(i);
13762
13749
  }
13763
13750
  }
13764
13751
  St.state = /* @__PURE__ */ Ue.define({
13765
- create: an.init,
13752
+ create: ln.init,
13766
13753
  update(n, e) {
13767
13754
  for (let t of e.effects)
13768
13755
  if (t.is(St.setState))
13769
13756
  return t.value;
13770
- return e.startState.facet(gi) != e.state.facet(gi) ? an.init(e.state) : n.apply(e);
13757
+ return e.startState.facet(gi) != e.state.facet(gi) ? ln.init(e.state) : n.apply(e);
13771
13758
  }
13772
13759
  });
13773
13760
  let mO = (n) => {
@@ -13817,7 +13804,7 @@ const kl = typeof navigator < "u" && (!((wl = navigator.scheduling) === null ||
13817
13804
  ))
13818
13805
  return;
13819
13806
  let l = Date.now() + Math.min(this.chunkBudget, 100, e && !kl ? Math.max(25, e.timeRemaining() - 5) : 1e9), o = r.context.treeLen < s && i.doc.length > s + 1e3, a = r.context.work(() => kl && kl() || Date.now() > l, s + (o ? 0 : 1e5));
13820
- this.chunkBudget -= Date.now() - t, (a || this.chunkBudget <= 0) && (r.context.takeTree(), this.view.dispatch({ effects: St.setState.of(new an(r.context)) })), this.chunkBudget > 0 && !(a && !o) && this.scheduleWork(), this.checkAsyncSchedule(r.context);
13807
+ this.chunkBudget -= Date.now() - t, (a || this.chunkBudget <= 0) && (r.context.takeTree(), this.view.dispatch({ effects: St.setState.of(new ln(r.context)) })), this.chunkBudget > 0 && !(a && !o) && this.scheduleWork(), this.checkAsyncSchedule(r.context);
13821
13808
  }
13822
13809
  checkAsyncSchedule(e) {
13823
13810
  e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => st(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
@@ -13845,7 +13832,7 @@ const kl = typeof navigator < "u" && (!((wl = navigator.scheduling) === null ||
13845
13832
  })
13846
13833
  ]
13847
13834
  });
13848
- class mn {
13835
+ class On {
13849
13836
  /**
13850
13837
  Create a language support object.
13851
13838
  */
@@ -13867,7 +13854,7 @@ function $r(n) {
13867
13854
  let e = n.facet(Kr);
13868
13855
  return e.charCodeAt(0) == 9 ? n.tabSize * e.length : e.length;
13869
13856
  }
13870
- function ts(n, e) {
13857
+ function es(n, e) {
13871
13858
  let t = "", i = n.tabSize, s = n.facet(Kr)[0];
13872
13859
  if (s == " ") {
13873
13860
  for (; e >= i; )
@@ -13929,7 +13916,7 @@ class Jr {
13929
13916
  position in the given string.
13930
13917
  */
13931
13918
  countColumn(e, t = e.length) {
13932
- return On(e, this.state.tabSize, t);
13919
+ return fn(e, this.state.tabSize, t);
13933
13920
  }
13934
13921
  /**
13935
13922
  Find the indentation column of the line at the given point.
@@ -14108,7 +14095,7 @@ function X1() {
14108
14095
  let c = za(l, h.from);
14109
14096
  if (c == null)
14110
14097
  continue;
14111
- let f = /^\s*/.exec(h.text)[0], d = ts(l, c);
14098
+ let f = /^\s*/.exec(h.text)[0], d = es(l, c);
14112
14099
  f != d && a.push({ from: h.from, to: h.from + f.length, insert: d });
14113
14100
  }
14114
14101
  return a.length ? [n, { changes: a, sequential: !0 }] : n;
@@ -14154,7 +14141,7 @@ function QO(n, e) {
14154
14141
  let t = e.mapPos(n.from, 1), i = e.mapPos(n.to, -1);
14155
14142
  return t >= i ? void 0 : { from: t, to: i };
14156
14143
  }
14157
- const tl = /* @__PURE__ */ ae.define({ map: QO }), ps = /* @__PURE__ */ ae.define({ map: QO });
14144
+ const tl = /* @__PURE__ */ ae.define({ map: QO }), Os = /* @__PURE__ */ ae.define({ map: QO });
14158
14145
  function bO(n) {
14159
14146
  let e = [];
14160
14147
  for (let { head: t } of n.state.selection.ranges)
@@ -14172,7 +14159,7 @@ const Ai = /* @__PURE__ */ Ue.define({
14172
14159
  let { preparePlaceholder: i } = e.state.facet(Ia), s = i ? se.replace({ widget: new z1(i(e.state, t.value)) }) : Lu;
14173
14160
  n = n.update({ add: [s.range(t.value.from, t.value.to)] });
14174
14161
  } else
14175
- t.is(ps) && (n = n.update({
14162
+ t.is(Os) && (n = n.update({
14176
14163
  filter: (i, s) => t.value.from != i || t.value.to != s,
14177
14164
  filterFrom: t.value.from,
14178
14165
  filterTo: t.value.to
@@ -14238,7 +14225,7 @@ const E1 = (n) => {
14238
14225
  let e = [];
14239
14226
  for (let t of bO(n)) {
14240
14227
  let i = wr(n.state, t.from, t.to);
14241
- i && e.push(ps.of(i), SO(n, i, !1));
14228
+ i && e.push(Os.of(i), SO(n, i, !1));
14242
14229
  }
14243
14230
  return e.length && n.dispatch({ effects: e }), e.length > 0;
14244
14231
  };
@@ -14259,7 +14246,7 @@ const M1 = (n) => {
14259
14246
  return !1;
14260
14247
  let t = [];
14261
14248
  return e.between(0, n.state.doc.length, (i, s) => {
14262
- t.push(ps.of({ from: i, to: s }));
14249
+ t.push(Os.of({ from: i, to: s }));
14263
14250
  }), n.dispatch({ effects: t }), !0;
14264
14251
  }, L1 = [
14265
14252
  { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: E1 },
@@ -14282,7 +14269,7 @@ function vO(n) {
14282
14269
  function xO(n, e) {
14283
14270
  let { state: t } = n, i = t.facet(Ia), s = (l) => {
14284
14271
  let o = n.lineBlockAt(n.posAtDOM(l.target)), a = wr(n.state, o.from, o.to);
14285
- a && n.dispatch({ effects: ps.of(a) }), l.preventDefault();
14272
+ a && n.dispatch({ effects: Os.of(a) }), l.preventDefault();
14286
14273
  };
14287
14274
  if (i.placeholderDOM)
14288
14275
  return i.placeholderDOM(n, s, e);
@@ -14359,7 +14346,7 @@ function B1(n = {}) {
14359
14346
  return !0;
14360
14347
  let u = wr(l.state, o.from, o.to);
14361
14348
  if (u)
14362
- return l.dispatch({ effects: ps.of(u) }), !0;
14349
+ return l.dispatch({ effects: Os.of(u) }), !0;
14363
14350
  let h = Pr(l.state, o.from, o.to);
14364
14351
  return h ? (l.dispatch({ effects: tl.of(h) }), !0) : !1;
14365
14352
  } })
@@ -14382,7 +14369,7 @@ const N1 = /* @__PURE__ */ G.baseTheme({
14382
14369
  cursor: "pointer"
14383
14370
  }
14384
14371
  });
14385
- class ms {
14372
+ class ps {
14386
14373
  constructor(e, t) {
14387
14374
  this.specs = e;
14388
14375
  let i;
@@ -14391,7 +14378,7 @@ class ms {
14391
14378
  return (i || (i = /* @__PURE__ */ Object.create(null)))["." + a] = o, a;
14392
14379
  }
14393
14380
  const r = typeof t.all == "string" ? t.all : t.all ? s(t.all) : void 0, l = t.scope;
14394
- this.scope = l instanceof St ? (o) => o.prop(Ii) == l.data : l ? (o) => o == l : void 0, this.style = pO(e.map((o) => ({
14381
+ this.scope = l instanceof St ? (o) => o.prop(Ni) == l.data : l ? (o) => o == l : void 0, this.style = pO(e.map((o) => ({
14395
14382
  tag: o.tag,
14396
14383
  class: o.class || s(Object.assign({}, o, { tag: null }))
14397
14384
  })), {
@@ -14414,7 +14401,7 @@ class ms {
14414
14401
  defined earlier.
14415
14402
  */
14416
14403
  static define(e, t) {
14417
- return new ms(e, t || {});
14404
+ return new ps(e, t || {});
14418
14405
  }
14419
14406
  }
14420
14407
  const na = /* @__PURE__ */ H.define(), $O = /* @__PURE__ */ H.define({
@@ -14428,7 +14415,7 @@ function Cl(n) {
14428
14415
  }
14429
14416
  function PO(n, e) {
14430
14417
  let t = [G1], i;
14431
- return n instanceof ms && (n.module && t.push(G.styleModule.of(n.module)), i = n.themeType), e != null && e.fallback ? t.push($O.of(n)) : i ? t.push(na.computeN([G.darkTheme], (s) => s.facet(G.darkTheme) == (i == "dark") ? [n] : [])) : t.push(na.of(n)), t;
14418
+ return n instanceof ps && (n.module && t.push(G.styleModule.of(n.module)), i = n.themeType), e != null && e.fallback ? t.push($O.of(n)) : i ? t.push(na.computeN([G.darkTheme], (s) => s.facet(G.darkTheme) == (i == "dark") ? [n] : [])) : t.push(na.of(n)), t;
14432
14419
  }
14433
14420
  class I1 {
14434
14421
  constructor(e) {
@@ -14451,7 +14438,7 @@ class I1 {
14451
14438
  }
14452
14439
  const G1 = /* @__PURE__ */ Qi.high(/* @__PURE__ */ qe.fromClass(I1, {
14453
14440
  decorations: (n) => n.decorations
14454
- })), j1 = /* @__PURE__ */ ms.define([
14441
+ })), j1 = /* @__PURE__ */ ps.define([
14455
14442
  {
14456
14443
  tag: v.meta,
14457
14444
  color: "#404740"
@@ -14685,7 +14672,7 @@ function ob(n, e) {
14685
14672
  let l = Wu[s] = et.define({
14686
14673
  id: Uu.length,
14687
14674
  name: i,
14688
- props: [pn({ [i]: t })]
14675
+ props: [dn({ [i]: t })]
14689
14676
  });
14690
14677
  return Uu.push(l), l.id;
14691
14678
  }
@@ -14719,16 +14706,16 @@ function ja(n, e) {
14719
14706
  let t = n.languageDataAt("commentTokens", e, 1);
14720
14707
  return t.length ? t[0] : {};
14721
14708
  }
14722
- const $n = 50;
14709
+ const vn = 50;
14723
14710
  function fb(n, { open: e, close: t }, i, s) {
14724
- let r = n.sliceDoc(i - $n, i), l = n.sliceDoc(s, s + $n), o = /\s*$/.exec(r)[0].length, a = /^\s*/.exec(l)[0].length, u = r.length - o;
14711
+ let r = n.sliceDoc(i - vn, i), l = n.sliceDoc(s, s + vn), o = /\s*$/.exec(r)[0].length, a = /^\s*/.exec(l)[0].length, u = r.length - o;
14725
14712
  if (r.slice(u - e.length, u) == e && l.slice(a, a + t.length) == t)
14726
14713
  return {
14727
14714
  open: { pos: i - o, margin: o && 1 },
14728
14715
  close: { pos: s + a, margin: a && 1 }
14729
14716
  };
14730
14717
  let h, c;
14731
- s - i <= 2 * $n ? h = c = n.sliceDoc(i, s) : (h = n.sliceDoc(i, i + $n), c = n.sliceDoc(s - $n, s));
14718
+ s - i <= 2 * vn ? h = c = n.sliceDoc(i, s) : (h = n.sliceDoc(i, i + vn), c = n.sliceDoc(s - vn, s));
14732
14719
  let f = /^\s*/.exec(h)[0].length, d = /\s*$/.exec(c)[0].length, p = c.length - d - t.length;
14733
14720
  return h.slice(f, f + e.length) == e && c.slice(p, p + t.length) == t ? {
14734
14721
  open: {
@@ -15006,14 +14993,14 @@ const Pb = [
15006
14993
  { key: "Mod-u", run: _b, preventDefault: !0 },
15007
14994
  { key: "Alt-u", mac: "Mod-Shift-u", run: Qb, preventDefault: !0 }
15008
14995
  ];
15009
- function gn(n, e) {
14996
+ function pn(n, e) {
15010
14997
  return U.create(n.ranges.map(e), n.mainIndex);
15011
14998
  }
15012
14999
  function Wt(n, e) {
15013
15000
  return n.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
15014
15001
  }
15015
15002
  function Pt({ state: n, dispatch: e }, t) {
15016
- let i = gn(n.selection, t);
15003
+ let i = pn(n.selection, t);
15017
15004
  return i.eq(n.selection, !0) ? !1 : (e(Wt(n, i)), !0);
15018
15005
  }
15019
15006
  function nl(n, e) {
@@ -15075,7 +15062,7 @@ function WO(n) {
15075
15062
  };
15076
15063
  }
15077
15064
  function BO(n, e) {
15078
- let t = WO(n), { state: i } = n, s = gn(i.selection, (l) => l.empty ? n.moveVertically(l, e, t.height) : nl(l, e));
15065
+ let t = WO(n), { state: i } = n, s = pn(i.selection, (l) => l.empty ? n.moveVertically(l, e, t.height) : nl(l, e));
15079
15066
  if (s.eq(i.selection))
15080
15067
  return !1;
15081
15068
  let r;
@@ -15096,7 +15083,7 @@ function bi(n, e, t) {
15096
15083
  }
15097
15084
  const Xb = (n) => Pt(n, (e) => bi(n, e, !0)), Zb = (n) => Pt(n, (e) => bi(n, e, !1)), Vb = (n) => Pt(n, (e) => bi(n, e, !He(n))), Ab = (n) => Pt(n, (e) => bi(n, e, He(n))), Yb = (n) => Pt(n, (e) => U.cursor(n.lineBlockAt(e.head).from, 1)), Eb = (n) => Pt(n, (e) => U.cursor(n.lineBlockAt(e.head).to, -1));
15098
15085
  function qb(n, e, t) {
15099
- let i = !1, s = gn(n.selection, (r) => {
15086
+ let i = !1, s = pn(n.selection, (r) => {
15100
15087
  let l = Yt(n, r.head, -1) || Yt(n, r.head, 1) || r.head > 0 && Yt(n, r.head - 1, 1) || r.head < n.doc.length && Yt(n, r.head + 1, -1);
15101
15088
  if (!l || !l.end)
15102
15089
  return r;
@@ -15108,7 +15095,7 @@ function qb(n, e, t) {
15108
15095
  }
15109
15096
  const Mb = ({ state: n, dispatch: e }) => qb(n, e, !1);
15110
15097
  function Qt(n, e) {
15111
- let t = gn(n.state.selection, (i) => {
15098
+ let t = pn(n.state.selection, (i) => {
15112
15099
  let s = e(i);
15113
15100
  return U.range(i.anchor, s.head, s.goalColumn, s.bidiLevel || void 0);
15114
15101
  });
@@ -15133,7 +15120,7 @@ const Nu = (n) => JO(n, !1), Iu = (n) => JO(n, !0), Wb = (n) => Qt(n, (e) => bi(
15133
15120
  let t = rl(n).map(({ from: i, to: s }) => U.range(i, Math.min(s + 1, n.doc.length)));
15134
15121
  return e(n.update({ selection: U.create(t), userEvent: "select" })), !0;
15135
15122
  }, Kb = ({ state: n, dispatch: e }) => {
15136
- let t = gn(n.selection, (i) => {
15123
+ let t = pn(n.selection, (i) => {
15137
15124
  let s = Pe(n), r = s.resolveStack(i.from, 1);
15138
15125
  if (i.empty) {
15139
15126
  let l = s.resolveStack(i.from, -1);
@@ -15151,7 +15138,7 @@ const Nu = (n) => JO(n, !1), Iu = (n) => JO(n, !0), Wb = (n) => Qt(n, (e) => bi(
15151
15138
  let t = n.selection, i = null;
15152
15139
  return t.ranges.length > 1 ? i = U.create([t.main]) : t.main.empty || (i = U.create([U.cursor(t.main.head)])), i ? (e(Wt(n, i)), !0) : !1;
15153
15140
  };
15154
- function gs(n, e) {
15141
+ function ms(n, e) {
15155
15142
  if (n.state.readOnly)
15156
15143
  return !1;
15157
15144
  let t = "delete.selection", { state: i } = n, s = i.changeByRange((r) => {
@@ -15177,19 +15164,19 @@ function qs(n, e, t) {
15177
15164
  });
15178
15165
  return e;
15179
15166
  }
15180
- const ep = (n, e, t) => gs(n, (i) => {
15167
+ const ep = (n, e, t) => ms(n, (i) => {
15181
15168
  let s = i.from, { state: r } = n, l = r.doc.lineAt(s), o, a;
15182
15169
  if (t && !e && s > l.from && s < l.from + 200 && !/[^ \t]/.test(o = l.text.slice(0, s - l.from))) {
15183
15170
  if (o[o.length - 1] == " ")
15184
15171
  return s - 1;
15185
- let u = On(o, r.tabSize), h = u % $r(r) || $r(r);
15172
+ let u = fn(o, r.tabSize), h = u % $r(r) || $r(r);
15186
15173
  for (let c = 0; c < h && o[o.length - 1 - c] == " "; c++)
15187
15174
  s--;
15188
15175
  a = s;
15189
15176
  } else
15190
15177
  a = Ie(l.text, s - l.from, e, e) + l.from, a == s && l.number != (e ? r.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(l.text.slice(a - l.from, s - l.from)) && (a = Ie(l.text, a - l.from, !1, !1) + l.from);
15191
15178
  return a;
15192
- }), ha = (n) => ep(n, !1, !0), tp = (n) => ep(n, !0, !1), ip = (n, e) => gs(n, (t) => {
15179
+ }), ha = (n) => ep(n, !1, !0), tp = (n) => ep(n, !0, !1), ip = (n, e) => ms(n, (t) => {
15193
15180
  let i = t.head, { state: s } = n, r = s.doc.lineAt(i), l = s.charCategorizer(i);
15194
15181
  for (let o = null; ; ) {
15195
15182
  if (i == (e ? r.to : r.from)) {
@@ -15202,13 +15189,13 @@ const ep = (n, e, t) => gs(n, (i) => {
15202
15189
  (u != " " || i != t.head) && (o = h), i = a;
15203
15190
  }
15204
15191
  return i;
15205
- }), np = (n) => ip(n, !1), ey = (n) => ip(n, !0), ty = (n) => gs(n, (e) => {
15192
+ }), np = (n) => ip(n, !1), ey = (n) => ip(n, !0), ty = (n) => ms(n, (e) => {
15206
15193
  let t = n.lineBlockAt(e.head).to;
15207
15194
  return e.head < t ? t : Math.min(n.state.doc.length, e.head + 1);
15208
- }), iy = (n) => gs(n, (e) => {
15195
+ }), iy = (n) => ms(n, (e) => {
15209
15196
  let t = n.moveToLineBoundary(e, !1).head;
15210
15197
  return e.head > t ? t : Math.max(0, e.head - 1);
15211
- }), ny = (n) => gs(n, (e) => {
15198
+ }), ny = (n) => ms(n, (e) => {
15212
15199
  let t = n.moveToLineBoundary(e, !0).head;
15213
15200
  return e.head < t ? t : Math.min(n.state.doc.length, e.head + 1);
15214
15201
  }), sy = ({ state: n, dispatch: e }) => {
@@ -15283,7 +15270,7 @@ function rp(n, e, t) {
15283
15270
  const ay = ({ state: n, dispatch: e }) => rp(n, e, !1), hy = ({ state: n, dispatch: e }) => rp(n, e, !0), uy = (n) => {
15284
15271
  if (n.state.readOnly)
15285
15272
  return !1;
15286
- let { state: e } = n, t = e.changes(rl(e).map(({ from: s, to: r }) => (s > 0 ? s-- : r < e.doc.length && r++, { from: s, to: r }))), i = gn(e.selection, (s) => {
15273
+ let { state: e } = n, t = e.changes(rl(e).map(({ from: s, to: r }) => (s > 0 ? s-- : r < e.doc.length && r++, { from: s, to: r }))), i = pn(e.selection, (s) => {
15287
15274
  let r;
15288
15275
  if (n.lineWrapping) {
15289
15276
  let l = n.lineBlockAt(s.head), o = n.coordsAtPos(s.head, s.assoc || 1);
@@ -15308,11 +15295,11 @@ function lp(n) {
15308
15295
  let { from: r, to: l } = s, o = e.doc.lineAt(r), a = !n && r == l && cy(e, r);
15309
15296
  n && (r = l = (l <= o.to ? o : e.doc.lineAt(l)).to);
15310
15297
  let u = new Jr(e, { simulateBreak: r, simulateDoubleBreak: !!a }), h = za(u, r);
15311
- for (h == null && (h = On(/^\s*/.exec(e.doc.lineAt(r).text)[0], e.tabSize)); l < o.to && /\s/.test(o.text[l - o.from]); )
15298
+ for (h == null && (h = fn(/^\s*/.exec(e.doc.lineAt(r).text)[0], e.tabSize)); l < o.to && /\s/.test(o.text[l - o.from]); )
15312
15299
  l++;
15313
15300
  a ? { from: r, to: l } = a : r > o.from && r < o.from + 100 && !/\S/.test(o.text.slice(0, r)) && (r = o.from);
15314
- let c = ["", ts(e, h)];
15315
- return a && c.push(ts(e, u.lineIndent(o.from, -1))), {
15301
+ let c = ["", es(e, h)];
15302
+ return a && c.push(es(e, u.lineIndent(o.from, -1))), {
15316
15303
  changes: { from: r, to: l, insert: pe.of(c) },
15317
15304
  range: U.cursor(r + 1 + c[1].length)
15318
15305
  };
@@ -15346,7 +15333,7 @@ const dy = ({ state: n, dispatch: e }) => {
15346
15333
  if (a == null)
15347
15334
  return;
15348
15335
  /\S/.test(r.text) || (a = 0);
15349
- let u = /^\s*/.exec(r.text)[0], h = ts(n, a);
15336
+ let u = /^\s*/.exec(r.text)[0], h = es(n, a);
15350
15337
  (u != h || o.from < r.from + u.length) && (t[r.from] = a, l.push({ from: r.from, to: r.from + u.length, insert: h }));
15351
15338
  });
15352
15339
  return s.changes.empty || e(n.update(s, { userEvent: "indent" })), !0;
@@ -15356,7 +15343,7 @@ const dy = ({ state: n, dispatch: e }) => {
15356
15343
  let s = /^\s*/.exec(t.text)[0];
15357
15344
  if (!s)
15358
15345
  return;
15359
- let r = On(s, n.tabSize), l = 0, o = ts(n, Math.max(0, r - $r(n)));
15346
+ let r = fn(s, n.tabSize), l = 0, o = es(n, Math.max(0, r - $r(n)));
15360
15347
  for (; l < s.length && l < o.length && s.charCodeAt(l) == o.charCodeAt(l); )
15361
15348
  l++;
15362
15349
  i.push({ from: t.from + l, to: t.from + s.length, insert: o.slice(l) });
@@ -15450,7 +15437,7 @@ function op(n, e) {
15450
15437
  throw new RangeError("Unsupported child node: " + e);
15451
15438
  }
15452
15439
  const Ju = typeof String.prototype.normalize == "function" ? (n) => n.normalize("NFKD") : (n) => n;
15453
- class hn {
15440
+ class on {
15454
15441
  /**
15455
15442
  Create a text cursor. The query is the search string, `from` to
15456
15443
  `to` provides the region to search.
@@ -15520,7 +15507,7 @@ class hn {
15520
15507
  return this.query.charCodeAt(0) == e && (this.query.length == 1 ? s = { from: t, to: i } : this.matches.push(1, t)), s && this.test && !this.test(s.from, s.to, this.buffer, this.bufferStart) && (s = null), s;
15521
15508
  }
15522
15509
  }
15523
- typeof Symbol < "u" && (hn.prototype[Symbol.iterator] = function() {
15510
+ typeof Symbol < "u" && (on.prototype[Symbol.iterator] = function() {
15524
15511
  return this;
15525
15512
  });
15526
15513
  const ap = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, Ha = "gm" + (/x/.unicode == null ? "" : "u");
@@ -15563,7 +15550,7 @@ class hp {
15563
15550
  }
15564
15551
  }
15565
15552
  const Zl = /* @__PURE__ */ new WeakMap();
15566
- class en {
15553
+ class Ki {
15567
15554
  constructor(e, t) {
15568
15555
  this.from = e, this.text = t;
15569
15556
  }
@@ -15573,18 +15560,18 @@ class en {
15573
15560
  static get(e, t, i) {
15574
15561
  let s = Zl.get(e);
15575
15562
  if (!s || s.from >= i || s.to <= t) {
15576
- let o = new en(t, e.sliceString(t, i));
15563
+ let o = new Ki(t, e.sliceString(t, i));
15577
15564
  return Zl.set(e, o), o;
15578
15565
  }
15579
15566
  if (s.from == t && s.to == i)
15580
15567
  return s;
15581
15568
  let { text: r, from: l } = s;
15582
- return l > t && (r = e.sliceString(t, l) + r, l = t), s.to < i && (r += e.sliceString(s.to, i)), Zl.set(e, new en(l, r)), new en(t, r.slice(t - l, i - l));
15569
+ return l > t && (r = e.sliceString(t, l) + r, l = t), s.to < i && (r += e.sliceString(s.to, i)), Zl.set(e, new Ki(l, r)), new Ki(t, r.slice(t - l, i - l));
15583
15570
  }
15584
15571
  }
15585
15572
  class up {
15586
15573
  constructor(e, t, i, s, r) {
15587
- this.text = e, this.to = r, this.done = !1, this.value = ap, this.matchPos = Tr(e, s), this.re = new RegExp(t, Ha + (i != null && i.ignoreCase ? "i" : "")), this.test = i == null ? void 0 : i.test, this.flat = en.get(e, s, this.chunkEnd(
15574
+ this.text = e, this.to = r, this.done = !1, this.value = ap, this.matchPos = Tr(e, s), this.re = new RegExp(t, Ha + (i != null && i.ignoreCase ? "i" : "")), this.test = i == null ? void 0 : i.test, this.flat = Ki.get(e, s, this.chunkEnd(
15588
15575
  s + 5e3
15589
15576
  /* Chunk.Base */
15590
15577
  ));
@@ -15602,7 +15589,7 @@ class up {
15602
15589
  }
15603
15590
  if (this.flat.to == this.to)
15604
15591
  return this.done = !0, this;
15605
- this.flat = en.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
15592
+ this.flat = Ki.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
15606
15593
  }
15607
15594
  }
15608
15595
  }
@@ -15628,7 +15615,7 @@ function ua(n) {
15628
15615
  let e = String(n.state.doc.lineAt(n.state.selection.main.head).number), t = ye("input", { class: "cm-textfield", name: "line", value: e }), i = ye("form", {
15629
15616
  class: "cm-gotoLine",
15630
15617
  onkeydown: (r) => {
15631
- r.keyCode == 27 ? (r.preventDefault(), n.dispatch({ effects: zn.of(!1) }), n.focus()) : r.keyCode == 13 && (r.preventDefault(), s());
15618
+ r.keyCode == 27 ? (r.preventDefault(), n.dispatch({ effects: Un.of(!1) }), n.focus()) : r.keyCode == 13 && (r.preventDefault(), s());
15632
15619
  },
15633
15620
  onsubmit: (r) => {
15634
15621
  r.preventDefault(), s();
@@ -15636,7 +15623,7 @@ function ua(n) {
15636
15623
  }, ye("label", n.state.phrase("Go to line"), ": ", t), " ", ye("button", { class: "cm-button", type: "submit" }, n.state.phrase("go")), ye("button", {
15637
15624
  name: "close",
15638
15625
  onclick: () => {
15639
- n.dispatch({ effects: zn.of(!1) }), n.focus();
15626
+ n.dispatch({ effects: Un.of(!1) }), n.focus();
15640
15627
  },
15641
15628
  "aria-label": n.state.phrase("close"),
15642
15629
  type: "button"
@@ -15653,27 +15640,27 @@ function ua(n) {
15653
15640
  u && a && (d = d * (a == "-" ? -1 : 1) + o.number);
15654
15641
  let p = l.doc.line(Math.max(1, Math.min(l.doc.lines, d))), g = U.cursor(p.from + Math.max(0, Math.min(f, p.length)));
15655
15642
  n.dispatch({
15656
- effects: [zn.of(!1), G.scrollIntoView(g.from, { y: "center" })],
15643
+ effects: [Un.of(!1), G.scrollIntoView(g.from, { y: "center" })],
15657
15644
  selection: g
15658
15645
  }), n.focus();
15659
15646
  }
15660
15647
  return { dom: i };
15661
15648
  }
15662
- const zn = /* @__PURE__ */ ae.define(), ec = /* @__PURE__ */ Ue.define({
15649
+ const Un = /* @__PURE__ */ ae.define(), ec = /* @__PURE__ */ Ue.define({
15663
15650
  create() {
15664
15651
  return !0;
15665
15652
  },
15666
15653
  update(n, e) {
15667
15654
  for (let t of e.effects)
15668
- t.is(zn) && (n = t.value);
15655
+ t.is(Un) && (n = t.value);
15669
15656
  return n;
15670
15657
  },
15671
- provide: (n) => Kn.from(n, (e) => e ? ua : null)
15658
+ provide: (n) => Hn.from(n, (e) => e ? ua : null)
15672
15659
  }), yy = (n) => {
15673
- let e = Hn(n, ua);
15660
+ let e = Fn(n, ua);
15674
15661
  if (!e) {
15675
- let t = [zn.of(!0)];
15676
- n.state.field(ec, !1) == null && t.push(ae.appendConfig.of([ec, Sy])), n.dispatch({ effects: t }), e = Hn(n, ua);
15662
+ let t = [Un.of(!0)];
15663
+ n.state.field(ec, !1) == null && t.push(ae.appendConfig.of([ec, Sy])), n.dispatch({ effects: t }), e = Fn(n, ua);
15677
15664
  }
15678
15665
  return e && e.dom.querySelector("input").select(), !0;
15679
15666
  }, Sy = /* @__PURE__ */ G.baseTheme({
@@ -15748,7 +15735,7 @@ const ky = /* @__PURE__ */ qe.fromClass(class {
15748
15735
  }
15749
15736
  let o = [];
15750
15737
  for (let a of n.visibleRanges) {
15751
- let u = new hn(t.doc, r, a.from, a.to);
15738
+ let u = new on(t.doc, r, a.from, a.to);
15752
15739
  for (; !u.next().done; ) {
15753
15740
  let { from: h, to: c } = u.value;
15754
15741
  if ((!l || tc(l, t, h, c)) && (s.empty && h <= s.from && c >= s.to ? o.push(Py.range(h, c)) : (h >= s.to || c <= s.from) && o.push($y.range(h, c)), o.length > e.maxMatches))
@@ -15768,11 +15755,11 @@ const ky = /* @__PURE__ */ qe.fromClass(class {
15768
15755
  };
15769
15756
  function Ry(n, e) {
15770
15757
  let { main: t, ranges: i } = n.selection, s = n.wordAt(t.head), r = s && s.from == t.from && s.to == t.to;
15771
- for (let l = !1, o = new hn(n.doc, e, i[i.length - 1].to); ; )
15758
+ for (let l = !1, o = new on(n.doc, e, i[i.length - 1].to); ; )
15772
15759
  if (o.next(), o.done) {
15773
15760
  if (l)
15774
15761
  return null;
15775
- o = new hn(n.doc, e, 0, Math.max(0, i[i.length - 1].from - 1)), l = !0;
15762
+ o = new on(n.doc, e, 0, Math.max(0, i[i.length - 1].from - 1)), l = !0;
15776
15763
  } else {
15777
15764
  if (l && i.some((a) => a.from == o.value.from))
15778
15765
  continue;
@@ -15796,7 +15783,7 @@ const Xy = ({ state: n, dispatch: e }) => {
15796
15783
  selection: n.selection.addRange(U.range(s.from, s.to), !1),
15797
15784
  effects: G.scrollIntoView(s.to)
15798
15785
  })), !0) : !1;
15799
- }, _n = /* @__PURE__ */ H.define({
15786
+ }, mn = /* @__PURE__ */ H.define({
15800
15787
  combine(n) {
15801
15788
  return zt(n, {
15802
15789
  top: !1,
@@ -15841,7 +15828,7 @@ class fp {
15841
15828
  */
15842
15829
  getCursor(e, t = 0, i) {
15843
15830
  let s = e.doc ? e : ge.create({ doc: e });
15844
- return i == null && (i = s.doc.length), this.regexp ? Bi(this, s, t, i) : Wi(this, s, t, i);
15831
+ return i == null && (i = s.doc.length), this.regexp ? Wi(this, s, t, i) : zi(this, s, t, i);
15845
15832
  }
15846
15833
  }
15847
15834
  class dp {
@@ -15849,8 +15836,8 @@ class dp {
15849
15836
  this.spec = e;
15850
15837
  }
15851
15838
  }
15852
- function Wi(n, e, t, i) {
15853
- return new hn(e.doc, n.unquoted, t, i, n.caseSensitive ? void 0 : (s) => s.toLowerCase(), n.wholeWord ? Zy(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
15839
+ function zi(n, e, t, i) {
15840
+ return new on(e.doc, n.unquoted, t, i, n.caseSensitive ? void 0 : (s) => s.toLowerCase(), n.wholeWord ? Zy(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
15854
15841
  }
15855
15842
  function Zy(n, e) {
15856
15843
  return (t, i, s, r) => ((r > t || r + s.length < i) && (r = Math.max(0, t - 2), s = n.sliceString(r, Math.min(n.length, i + 2))), (e(Cr(s, t - r)) != Xe.Word || e(Rr(s, t - r)) != Xe.Word) && (e(Rr(s, i - r)) != Xe.Word || e(Cr(s, i - r)) != Xe.Word));
@@ -15860,10 +15847,10 @@ class Vy extends dp {
15860
15847
  super(e);
15861
15848
  }
15862
15849
  nextMatch(e, t, i) {
15863
- let s = Wi(this.spec, e, i, e.doc.length).nextOverlapping();
15850
+ let s = zi(this.spec, e, i, e.doc.length).nextOverlapping();
15864
15851
  if (s.done) {
15865
15852
  let r = Math.min(e.doc.length, t + this.spec.unquoted.length);
15866
- s = Wi(this.spec, e, 0, r).nextOverlapping();
15853
+ s = zi(this.spec, e, 0, r).nextOverlapping();
15867
15854
  }
15868
15855
  return s.done || s.value.from == t && s.value.to == i ? null : s.value;
15869
15856
  }
@@ -15871,7 +15858,7 @@ class Vy extends dp {
15871
15858
  // cursor, done by scanning chunk after chunk forward.
15872
15859
  prevMatchInRange(e, t, i) {
15873
15860
  for (let s = i; ; ) {
15874
- let r = Math.max(t, s - 1e4 - this.spec.unquoted.length), l = Wi(this.spec, e, r, s), o = null;
15861
+ let r = Math.max(t, s - 1e4 - this.spec.unquoted.length), l = zi(this.spec, e, r, s), o = null;
15875
15862
  for (; !l.nextOverlapping().done; )
15876
15863
  o = l.value;
15877
15864
  if (o)
@@ -15889,7 +15876,7 @@ class Vy extends dp {
15889
15876
  return this.spec.unquote(this.spec.replace);
15890
15877
  }
15891
15878
  matchAll(e, t) {
15892
- let i = Wi(this.spec, e, 0, e.doc.length), s = [];
15879
+ let i = zi(this.spec, e, 0, e.doc.length), s = [];
15893
15880
  for (; !i.next().done; ) {
15894
15881
  if (s.length >= t)
15895
15882
  return null;
@@ -15898,12 +15885,12 @@ class Vy extends dp {
15898
15885
  return s;
15899
15886
  }
15900
15887
  highlight(e, t, i, s) {
15901
- let r = Wi(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(i + this.spec.unquoted.length, e.doc.length));
15888
+ let r = zi(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(i + this.spec.unquoted.length, e.doc.length));
15902
15889
  for (; !r.next().done; )
15903
15890
  s(r.value.from, r.value.to);
15904
15891
  }
15905
15892
  }
15906
- function Bi(n, e, t, i) {
15893
+ function Wi(n, e, t, i) {
15907
15894
  return new hp(e.doc, n.search, {
15908
15895
  ignoreCase: !n.caseSensitive,
15909
15896
  test: n.wholeWord ? Ay(e.charCategorizer(e.selection.main.head)) : void 0
@@ -15920,8 +15907,8 @@ function Ay(n) {
15920
15907
  }
15921
15908
  class Yy extends dp {
15922
15909
  nextMatch(e, t, i) {
15923
- let s = Bi(this.spec, e, i, e.doc.length).next();
15924
- return s.done && (s = Bi(this.spec, e, 0, t).next()), s.done ? null : s.value;
15910
+ let s = Wi(this.spec, e, i, e.doc.length).next();
15911
+ return s.done && (s = Wi(this.spec, e, 0, t).next()), s.done ? null : s.value;
15925
15912
  }
15926
15913
  prevMatchInRange(e, t, i) {
15927
15914
  for (let s = 1; ; s++) {
@@ -15929,7 +15916,7 @@ class Yy extends dp {
15929
15916
  t,
15930
15917
  i - s * 1e4
15931
15918
  /* FindPrev.ChunkSize */
15932
- ), l = Bi(this.spec, e, r, i), o = null;
15919
+ ), l = Wi(this.spec, e, r, i), o = null;
15933
15920
  for (; !l.next().done; )
15934
15921
  o = l.value;
15935
15922
  if (o && (r == t || o.from > r + 10))
@@ -15956,7 +15943,7 @@ class Yy extends dp {
15956
15943
  });
15957
15944
  }
15958
15945
  matchAll(e, t) {
15959
- let i = Bi(this.spec, e, 0, e.doc.length), s = [];
15946
+ let i = Wi(this.spec, e, 0, e.doc.length), s = [];
15960
15947
  for (; !i.next().done; ) {
15961
15948
  if (s.length >= t)
15962
15949
  return null;
@@ -15965,7 +15952,7 @@ class Yy extends dp {
15965
15952
  return s;
15966
15953
  }
15967
15954
  highlight(e, t, i, s) {
15968
- let r = Bi(this.spec, e, Math.max(
15955
+ let r = Wi(this.spec, e, Math.max(
15969
15956
  0,
15970
15957
  t - 250
15971
15958
  /* RegExp.HighlightMargin */
@@ -15974,16 +15961,16 @@ class Yy extends dp {
15974
15961
  s(r.value.from, r.value.to);
15975
15962
  }
15976
15963
  }
15977
- const is = /* @__PURE__ */ ae.define(), Ka = /* @__PURE__ */ ae.define(), fi = /* @__PURE__ */ Ue.define({
15964
+ const ts = /* @__PURE__ */ ae.define(), Ka = /* @__PURE__ */ ae.define(), fi = /* @__PURE__ */ Ue.define({
15978
15965
  create(n) {
15979
15966
  return new Vl(ca(n).create(), null);
15980
15967
  },
15981
15968
  update(n, e) {
15982
15969
  for (let t of e.effects)
15983
- t.is(is) ? n = new Vl(t.value.create(), n.panel) : t.is(Ka) && (n = new Vl(n.query, t.value ? Ja : null));
15970
+ t.is(ts) ? n = new Vl(t.value.create(), n.panel) : t.is(Ka) && (n = new Vl(n.query, t.value ? Ja : null));
15984
15971
  return n;
15985
15972
  },
15986
- provide: (n) => Kn.from(n, (e) => e.panel)
15973
+ provide: (n) => Hn.from(n, (e) => e.panel)
15987
15974
  });
15988
15975
  class Vl {
15989
15976
  constructor(e, t) {
@@ -16016,33 +16003,33 @@ const Ey = /* @__PURE__ */ se.mark({ class: "cm-searchMatch" }), qy = /* @__PURE
16016
16003
  }, {
16017
16004
  decorations: (n) => n.decorations
16018
16005
  });
16019
- function _s(n) {
16006
+ function gs(n) {
16020
16007
  return (e) => {
16021
16008
  let t = e.state.field(fi, !1);
16022
16009
  return t && t.query.spec.valid ? n(e, t) : mp(e);
16023
16010
  };
16024
16011
  }
16025
- const Xr = /* @__PURE__ */ _s((n, { query: e }) => {
16012
+ const Xr = /* @__PURE__ */ gs((n, { query: e }) => {
16026
16013
  let { to: t } = n.state.selection.main, i = e.nextMatch(n.state, t, t);
16027
16014
  if (!i)
16028
16015
  return !1;
16029
- let s = U.single(i.from, i.to), r = n.state.facet(_n);
16016
+ let s = U.single(i.from, i.to), r = n.state.facet(mn);
16030
16017
  return n.dispatch({
16031
16018
  selection: s,
16032
16019
  effects: [eh(n, i), r.scrollToMatch(s.main, n)],
16033
16020
  userEvent: "select.search"
16034
16021
  }), pp(n), !0;
16035
- }), Zr = /* @__PURE__ */ _s((n, { query: e }) => {
16022
+ }), Zr = /* @__PURE__ */ gs((n, { query: e }) => {
16036
16023
  let { state: t } = n, { from: i } = t.selection.main, s = e.prevMatch(t, i, i);
16037
16024
  if (!s)
16038
16025
  return !1;
16039
- let r = U.single(s.from, s.to), l = n.state.facet(_n);
16026
+ let r = U.single(s.from, s.to), l = n.state.facet(mn);
16040
16027
  return n.dispatch({
16041
16028
  selection: r,
16042
16029
  effects: [eh(n, s), l.scrollToMatch(r.main, n)],
16043
16030
  userEvent: "select.search"
16044
16031
  }), pp(n), !0;
16045
- }), Dy = /* @__PURE__ */ _s((n, { query: e }) => {
16032
+ }), Dy = /* @__PURE__ */ gs((n, { query: e }) => {
16046
16033
  let t = e.matchAll(n.state, 1e3);
16047
16034
  return !t || !t.length ? !1 : (n.dispatch({
16048
16035
  selection: U.create(t.map((i) => U.range(i.from, i.to))),
@@ -16053,7 +16040,7 @@ const Xr = /* @__PURE__ */ _s((n, { query: e }) => {
16053
16040
  if (t.ranges.length > 1 || t.main.empty)
16054
16041
  return !1;
16055
16042
  let { from: i, to: s } = t.main, r = [], l = 0;
16056
- for (let o = new hn(n.doc, n.sliceDoc(i, s)); !o.next().done; ) {
16043
+ for (let o = new on(n.doc, n.sliceDoc(i, s)); !o.next().done; ) {
16057
16044
  if (r.length > 1e3)
16058
16045
  return !1;
16059
16046
  o.value.from == i && (l = r.length), r.push(U.range(o.value.from, o.value.to));
@@ -16062,7 +16049,7 @@ const Xr = /* @__PURE__ */ _s((n, { query: e }) => {
16062
16049
  selection: U.create(r, l),
16063
16050
  userEvent: "select.search.matches"
16064
16051
  })), !0;
16065
- }, ic = /* @__PURE__ */ _s((n, { query: e }) => {
16052
+ }, ic = /* @__PURE__ */ gs((n, { query: e }) => {
16066
16053
  let { state: t } = n, { from: i, to: s } = t.selection.main;
16067
16054
  if (t.readOnly)
16068
16055
  return !1;
@@ -16072,7 +16059,7 @@ const Xr = /* @__PURE__ */ _s((n, { query: e }) => {
16072
16059
  let l = r, o = [], a, u, h = [];
16073
16060
  if (l.from == i && l.to == s && (u = t.toText(e.getReplacement(l)), o.push({ from: l.from, to: l.to, insert: u }), l = e.nextMatch(t, l.from, l.to), h.push(G.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(i).number) + "."))), l) {
16074
16061
  let c = o.length == 0 || o[0].from >= r.to ? 0 : r.to - r.from - u.length;
16075
- a = U.single(l.from - c, l.to - c), h.push(eh(n, l)), h.push(t.facet(_n).scrollToMatch(a.main, n));
16062
+ a = U.single(l.from - c, l.to - c), h.push(eh(n, l)), h.push(t.facet(mn).scrollToMatch(a.main, n));
16076
16063
  }
16077
16064
  return n.dispatch({
16078
16065
  changes: o,
@@ -16080,7 +16067,7 @@ const Xr = /* @__PURE__ */ _s((n, { query: e }) => {
16080
16067
  effects: h,
16081
16068
  userEvent: "input.replace"
16082
16069
  }), !0;
16083
- }), Uy = /* @__PURE__ */ _s((n, { query: e }) => {
16070
+ }), Uy = /* @__PURE__ */ gs((n, { query: e }) => {
16084
16071
  if (n.state.readOnly)
16085
16072
  return !1;
16086
16073
  let t = e.matchAll(n.state, 1e9).map((s) => {
@@ -16097,14 +16084,14 @@ const Xr = /* @__PURE__ */ _s((n, { query: e }) => {
16097
16084
  }), !0;
16098
16085
  });
16099
16086
  function Ja(n) {
16100
- return n.state.facet(_n).createPanel(n);
16087
+ return n.state.facet(mn).createPanel(n);
16101
16088
  }
16102
16089
  function ca(n, e) {
16103
16090
  var t, i, s, r, l;
16104
16091
  let o = n.selection.main, a = o.empty || o.to > o.from + 100 ? "" : n.sliceDoc(o.from, o.to);
16105
16092
  if (e && !a)
16106
16093
  return e;
16107
- let u = n.facet(_n);
16094
+ let u = n.facet(mn);
16108
16095
  return new fp({
16109
16096
  search: ((t = e == null ? void 0 : e.literal) !== null && t !== void 0 ? t : u.literal) ? a : a.replace(/\n/g, "\\n"),
16110
16097
  caseSensitive: (i = e == null ? void 0 : e.caseSensitive) !== null && i !== void 0 ? i : u.caseSensitive,
@@ -16114,7 +16101,7 @@ function ca(n, e) {
16114
16101
  });
16115
16102
  }
16116
16103
  function Op(n) {
16117
- let e = Hn(n, Ja);
16104
+ let e = Fn(n, Ja);
16118
16105
  return e && e.dom.querySelector("[main-field]");
16119
16106
  }
16120
16107
  function pp(n) {
@@ -16127,19 +16114,19 @@ const mp = (n) => {
16127
16114
  let t = Op(n);
16128
16115
  if (t && t != n.root.activeElement) {
16129
16116
  let i = ca(n.state, e.query.spec);
16130
- i.valid && n.dispatch({ effects: is.of(i) }), t.focus(), t.select();
16117
+ i.valid && n.dispatch({ effects: ts.of(i) }), t.focus(), t.select();
16131
16118
  }
16132
16119
  } else
16133
16120
  n.dispatch({ effects: [
16134
16121
  Ka.of(!0),
16135
- e ? is.of(ca(n.state, e.query.spec)) : ae.appendConfig.of(Ny)
16122
+ e ? ts.of(ca(n.state, e.query.spec)) : ae.appendConfig.of(Ny)
16136
16123
  ] });
16137
16124
  return !0;
16138
16125
  }, gp = (n) => {
16139
16126
  let e = n.state.field(fi, !1);
16140
16127
  if (!e || !e.panel)
16141
16128
  return !1;
16142
- let t = Hn(n, Ja);
16129
+ let t = Fn(n, Ja);
16143
16130
  return t && t.dom.contains(n.root.activeElement) && n.focus(), n.dispatch({ effects: Ka.of(!1) }), !0;
16144
16131
  }, zy = [
16145
16132
  { key: "Mod-f", run: mp, scope: "editor search-panel" },
@@ -16225,7 +16212,7 @@ class Wy {
16225
16212
  wholeWord: this.wordField.checked,
16226
16213
  replace: this.replaceField.value
16227
16214
  });
16228
- e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: is.of(e) }));
16215
+ e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: ts.of(e) }));
16229
16216
  }
16230
16217
  keydown(e) {
16231
16218
  J0(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Zr : Xr)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), ic(this.view));
@@ -16233,7 +16220,7 @@ class Wy {
16233
16220
  update(e) {
16234
16221
  for (let t of e.transactions)
16235
16222
  for (let i of t.effects)
16236
- i.is(is) && !i.value.eq(this.query) && this.setQuery(i.value);
16223
+ i.is(ts) && !i.value.eq(this.query) && this.setQuery(i.value);
16237
16224
  }
16238
16225
  setQuery(e) {
16239
16226
  this.query = e, this.searchField.value = e.search, this.replaceField.value = e.replace, this.caseField.checked = e.caseSensitive, this.reField.checked = e.regexp, this.wordField.checked = e.wholeWord;
@@ -16245,7 +16232,7 @@ class Wy {
16245
16232
  return 80;
16246
16233
  }
16247
16234
  get top() {
16248
- return this.view.state.facet(_n).top;
16235
+ return this.view.state.facet(mn).top;
16249
16236
  }
16250
16237
  }
16251
16238
  function lt(n, e) {
@@ -16425,7 +16412,7 @@ function jy(n) {
16425
16412
  let e = rc.get(n);
16426
16413
  return e || rc.set(n, e = ll(n)), e;
16427
16414
  }
16428
- const Vr = /* @__PURE__ */ ae.define(), ns = /* @__PURE__ */ ae.define();
16415
+ const Vr = /* @__PURE__ */ ae.define(), is = /* @__PURE__ */ ae.define();
16429
16416
  class Fy {
16430
16417
  constructor(e) {
16431
16418
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
@@ -16616,7 +16603,7 @@ class eS {
16616
16603
  }
16617
16604
  }), this.dom.addEventListener("focusout", (a) => {
16618
16605
  let u = e.state.field(this.stateField, !1);
16619
- u && u.tooltip && e.state.facet(Le).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: ns.of(null) });
16606
+ u && u.tooltip && e.state.facet(Le).closeOnBlur && a.relatedTarget != e.contentDOM && e.dispatch({ effects: is.of(null) });
16620
16607
  }), this.showOptions(r, s.id);
16621
16608
  }
16622
16609
  mount() {
@@ -16784,12 +16771,12 @@ function nS(n, e) {
16784
16771
  }
16785
16772
  return l;
16786
16773
  }
16787
- class Gi {
16774
+ class Ii {
16788
16775
  constructor(e, t, i, s, r, l) {
16789
16776
  this.options = e, this.attrs = t, this.tooltip = i, this.timestamp = s, this.selected = r, this.disabled = l;
16790
16777
  }
16791
16778
  setSelected(e, t) {
16792
- return e == this.selected || e >= this.options.length ? this : new Gi(this.options, ac(t, e), this.tooltip, this.timestamp, e, this.disabled);
16779
+ return e == this.selected || e >= this.options.length ? this : new Ii(this.options, ac(t, e), this.tooltip, this.timestamp, e, this.disabled);
16793
16780
  }
16794
16781
  static build(e, t, i, s, r, l) {
16795
16782
  if (s && !l && e.some((u) => u.isPending))
@@ -16806,17 +16793,17 @@ class Gi {
16806
16793
  break;
16807
16794
  }
16808
16795
  }
16809
- return new Gi(o, ac(i, a), {
16796
+ return new Ii(o, ac(i, a), {
16810
16797
  pos: e.reduce((u, h) => h.hasResult() ? Math.min(u, h.from) : u, 1e8),
16811
16798
  create: hS,
16812
16799
  above: r.aboveCursor
16813
16800
  }, s ? s.timestamp : Date.now(), a, !1);
16814
16801
  }
16815
16802
  map(e) {
16816
- return new Gi(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);
16803
+ return new Ii(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);
16817
16804
  }
16818
16805
  setDisabled() {
16819
- return new Gi(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
16806
+ return new Ii(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
16820
16807
  }
16821
16808
  }
16822
16809
  class Ar {
@@ -16837,7 +16824,7 @@ class Ar {
16837
16824
  )).update(e, i));
16838
16825
  r.length == this.active.length && r.every((a, u) => a == this.active[u]) && (r = this.active);
16839
16826
  let l = this.open, o = e.effects.some((a) => a.is(nh));
16840
- l && e.docChanged && (l = l.map(e.changes)), e.selection || r.some((a) => a.hasResult() && e.changes.touchesRange(a.from, a.to)) || !sS(r, this.active) || o ? l = Gi.build(r, t, this.id, l, i, o) : l && l.disabled && !r.some((a) => a.isPending) && (l = null), !l && r.every((a) => !a.isPending) && r.some((a) => a.hasResult()) && (r = r.map((a) => a.hasResult() ? new pt(
16827
+ l && e.docChanged && (l = l.map(e.changes)), e.selection || r.some((a) => a.hasResult() && e.changes.touchesRange(a.from, a.to)) || !sS(r, this.active) || o ? l = Ii.build(r, t, this.id, l, i, o) : l && l.disabled && !r.some((a) => a.isPending) && (l = null), !l && r.every((a) => !a.isPending) && r.some((a) => a.hasResult()) && (r = r.map((a) => a.hasResult() ? new pt(
16841
16828
  a.source,
16842
16829
  0
16843
16830
  /* State.Inactive */
@@ -16913,7 +16900,7 @@ class pt {
16913
16900
  for (let r of e.effects)
16914
16901
  if (r.is(Vr))
16915
16902
  s = new pt(s.source, 1, r.value);
16916
- else if (r.is(ns))
16903
+ else if (r.is(is))
16917
16904
  s = new pt(
16918
16905
  s.source,
16919
16906
  0
@@ -16934,7 +16921,7 @@ class pt {
16934
16921
  return e.changes.touchesRange(Ci(e.state));
16935
16922
  }
16936
16923
  }
16937
- class tn extends pt {
16924
+ class Ji extends pt {
16938
16925
  constructor(e, t, i, s, r, l) {
16939
16926
  super(e, 3, t), this.limit = i, this.result = s, this.from = r, this.to = l;
16940
16927
  }
@@ -16955,10 +16942,10 @@ class tn extends pt {
16955
16942
  /* State.Inactive */
16956
16943
  );
16957
16944
  let a = e.changes.mapPos(this.limit);
16958
- return aS(s.validFor, e.state, r, l) ? new tn(this.source, this.explicit, a, s, r, l) : s.update && (s = s.update(s, r, l, new _p(e.state, o, !1))) ? new tn(this.source, this.explicit, a, s, s.from, (i = s.to) !== null && i !== void 0 ? i : Ci(e.state)) : new pt(this.source, 1, this.explicit);
16945
+ return aS(s.validFor, e.state, r, l) ? new Ji(this.source, this.explicit, a, s, r, l) : s.update && (s = s.update(s, r, l, new _p(e.state, o, !1))) ? new Ji(this.source, this.explicit, a, s, s.from, (i = s.to) !== null && i !== void 0 ? i : Ci(e.state)) : new pt(this.source, 1, this.explicit);
16959
16946
  }
16960
16947
  map(e) {
16961
- return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new tn(this.source, this.explicit, e.mapPos(this.limit), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new pt(
16948
+ return e.empty ? this : (this.result.map ? this.result.map(this.result, e) : this.result) ? new Ji(this.source, this.explicit, e.mapPos(this.limit), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)) : new pt(
16962
16949
  this.source,
16963
16950
  0
16964
16951
  /* State.Inactive */
@@ -16993,7 +16980,7 @@ const nh = /* @__PURE__ */ ae.define({
16993
16980
  function sh(n, e) {
16994
16981
  const t = e.completion.apply || e.completion.label;
16995
16982
  let i = n.state.field(nt).active.find((s) => s.source == e.source);
16996
- return i instanceof tn ? (typeof t == "string" ? n.dispatch(Object.assign(Object.assign({}, Gy(n.state, t, i.from, i.to)), { annotations: ih.of(e.completion) })) : t(n, e.completion, i.from, i.to), !0) : !1;
16983
+ return i instanceof Ji ? (typeof t == "string" ? n.dispatch(Object.assign(Object.assign({}, Gy(n.state, t, i.from, i.to)), { annotations: ih.of(e.completion) })) : t(n, e.completion, i.from, i.to), !0) : !1;
16997
16984
  }
16998
16985
  const hS = /* @__PURE__ */ tS(nt, sh);
16999
16986
  function Ls(n, e = "option") {
@@ -17015,7 +17002,7 @@ const uS = (n) => {
17015
17002
  return !e || !e.active.some(
17016
17003
  (t) => t.state != 0
17017
17004
  /* State.Inactive */
17018
- ) ? !1 : (n.dispatch({ effects: ns.of(null) }), !0);
17005
+ ) ? !1 : (n.dispatch({ effects: is.of(null) }), !0);
17019
17006
  };
17020
17007
  class fS {
17021
17008
  constructor(e, t) {
@@ -17067,7 +17054,7 @@ const dS = 50, OS = 1e3, pS = /* @__PURE__ */ qe.fromClass(class {
17067
17054
  this.running.push(s), Promise.resolve(n.source(i)).then((r) => {
17068
17055
  s.context.aborted || (s.done = r || null, this.scheduleAccept());
17069
17056
  }, (r) => {
17070
- this.view.dispatch({ effects: ns.of(null) }), st(this.view.state, r);
17057
+ this.view.dispatch({ effects: is.of(null) }), st(this.view.state, r);
17071
17058
  });
17072
17059
  }
17073
17060
  scheduleAccept() {
@@ -17084,7 +17071,7 @@ const dS = 50, OS = 1e3, pS = /* @__PURE__ */ qe.fromClass(class {
17084
17071
  if (r.done === void 0)
17085
17072
  continue;
17086
17073
  if (this.running.splice(s--, 1), r.done) {
17087
- let o = Ci(r.updates.length ? r.updates[0].startState : this.view.state), a = Math.min(o, r.done.from + (r.active.explicit ? 0 : 1)), u = new tn(r.active.source, r.active.explicit, a, r.done, r.done.from, (n = r.done.to) !== null && n !== void 0 ? n : o);
17074
+ let o = Ci(r.updates.length ? r.updates[0].startState : this.view.state), a = Math.min(o, r.done.from + (r.active.explicit ? 0 : 1)), u = new Ji(r.active.source, r.active.explicit, a, r.done, r.done.from, (n = r.done.to) !== null && n !== void 0 ? n : o);
17088
17075
  for (let h of r.updates)
17089
17076
  u = u.update(h, t);
17090
17077
  if (u.hasResult()) {
@@ -17114,7 +17101,7 @@ const dS = 50, OS = 1e3, pS = /* @__PURE__ */ qe.fromClass(class {
17114
17101
  let e = this.view.state.field(nt, !1);
17115
17102
  if (e && e.tooltip && this.view.state.facet(Le).closeOnBlur) {
17116
17103
  let t = e.open && rO(this.view, e.open.tooltip);
17117
- (!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: ns.of(null) }), 10);
17104
+ (!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: is.of(null) }), 10);
17118
17105
  }
17119
17106
  },
17120
17107
  compositionstart() {
@@ -17323,7 +17310,7 @@ let QS = /* @__PURE__ */ se.widget({ widget: /* @__PURE__ */ new class extends i
17323
17310
  return !1;
17324
17311
  }
17325
17312
  }() }), bS = /* @__PURE__ */ se.mark({ class: "cm-snippetField" });
17326
- class Qn {
17313
+ class gn {
17327
17314
  constructor(e, t) {
17328
17315
  this.ranges = e, this.active = t, this.deco = se.set(e.map((i) => (i.from == i.to ? QS : bS).range(i.from, i.to)));
17329
17316
  }
@@ -17335,26 +17322,26 @@ class Qn {
17335
17322
  return null;
17336
17323
  t.push(s);
17337
17324
  }
17338
- return new Qn(t, this.active);
17325
+ return new gn(t, this.active);
17339
17326
  }
17340
17327
  selectionInsideField(e) {
17341
17328
  return e.ranges.every((t) => this.ranges.some((i) => i.field == this.active && i.from <= t.from && i.to >= t.to));
17342
17329
  }
17343
17330
  }
17344
- const Qs = /* @__PURE__ */ ae.define({
17331
+ const _s = /* @__PURE__ */ ae.define({
17345
17332
  map(n, e) {
17346
17333
  return n && n.map(e);
17347
17334
  }
17348
- }), yS = /* @__PURE__ */ ae.define(), ss = /* @__PURE__ */ Ue.define({
17335
+ }), yS = /* @__PURE__ */ ae.define(), ns = /* @__PURE__ */ Ue.define({
17349
17336
  create() {
17350
17337
  return null;
17351
17338
  },
17352
17339
  update(n, e) {
17353
17340
  for (let t of e.effects) {
17354
- if (t.is(Qs))
17341
+ if (t.is(_s))
17355
17342
  return t.value;
17356
17343
  if (t.is(yS) && n)
17357
- return new Qn(n.ranges, t.value);
17344
+ return new gn(n.ranges, t.value);
17358
17345
  }
17359
17346
  return n && e.docChanged && (n = n.map(e.changes)), n && e.selection && !n.selectionInsideField(e.selection) && (n = null), n;
17360
17347
  },
@@ -17372,26 +17359,26 @@ function SS(n) {
17372
17359
  annotations: i ? [ih.of(i), Ee.userEvent.of("input.complete")] : void 0
17373
17360
  };
17374
17361
  if (o.length && (u.selection = oh(o, 0)), o.some((h) => h.field > 0)) {
17375
- let h = new Qn(o, 0), c = u.effects = [Qs.of(h)];
17376
- t.state.field(ss, !1) === void 0 && c.push(ae.appendConfig.of([ss, wS, kS, Sp]));
17362
+ let h = new gn(o, 0), c = u.effects = [_s.of(h)];
17363
+ t.state.field(ns, !1) === void 0 && c.push(ae.appendConfig.of([ns, wS, kS, Sp]));
17377
17364
  }
17378
17365
  t.dispatch(t.state.update(u));
17379
17366
  };
17380
17367
  }
17381
17368
  function vp(n) {
17382
17369
  return ({ state: e, dispatch: t }) => {
17383
- let i = e.field(ss, !1);
17370
+ let i = e.field(ns, !1);
17384
17371
  if (!i || n < 0 && i.active == 0)
17385
17372
  return !1;
17386
17373
  let s = i.active + n, r = n > 0 && !i.ranges.some((l) => l.field == s + n);
17387
17374
  return t(e.update({
17388
17375
  selection: oh(i.ranges, s),
17389
- effects: Qs.of(r ? null : new Qn(i.ranges, s)),
17376
+ effects: _s.of(r ? null : new gn(i.ranges, s)),
17390
17377
  scrollIntoView: !0
17391
17378
  })), !0;
17392
17379
  };
17393
17380
  }
17394
- const vS = ({ state: n, dispatch: e }) => n.field(ss, !1) ? (e(n.update({ effects: Qs.of(null) })), !0) : !1, xS = /* @__PURE__ */ vp(1), $S = /* @__PURE__ */ vp(-1), PS = [
17381
+ const vS = ({ state: n, dispatch: e }) => n.field(ns, !1) ? (e(n.update({ effects: _s.of(null) })), !0) : !1, xS = /* @__PURE__ */ vp(1), $S = /* @__PURE__ */ vp(-1), PS = [
17395
17382
  { key: "Tab", run: xS, shift: $S },
17396
17383
  { key: "Escape", run: vS }
17397
17384
  ], uc = /* @__PURE__ */ H.define({
@@ -17404,17 +17391,17 @@ function me(n, e) {
17404
17391
  }
17405
17392
  const kS = /* @__PURE__ */ G.domEventHandlers({
17406
17393
  mousedown(n, e) {
17407
- let t = e.state.field(ss, !1), i;
17394
+ let t = e.state.field(ns, !1), i;
17408
17395
  if (!t || (i = e.posAtCoords({ x: n.clientX, y: n.clientY })) == null)
17409
17396
  return !1;
17410
17397
  let s = t.ranges.find((r) => r.from <= i && r.to >= i);
17411
17398
  return !s || s.field == t.active ? !1 : (e.dispatch({
17412
17399
  selection: oh(t.ranges, s.field),
17413
- effects: Qs.of(t.ranges.some((r) => r.field > s.field) ? new Qn(t.ranges, s.field) : null),
17400
+ effects: _s.of(t.ranges.some((r) => r.field > s.field) ? new gn(t.ranges, s.field) : null),
17414
17401
  scrollIntoView: !0
17415
17402
  }), !0);
17416
17403
  }
17417
- }), rs = {
17404
+ }), ss = {
17418
17405
  brackets: ["(", "[", "{", "'", '"'],
17419
17406
  before: ")]}:;>",
17420
17407
  stringPrefixes: []
@@ -17452,7 +17439,7 @@ function $p(n) {
17452
17439
  return ya(n < 128 ? n : n + 1);
17453
17440
  }
17454
17441
  function Pp(n, e) {
17455
- return n.languageDataAt("closeBrackets", e)[0] || rs;
17442
+ return n.languageDataAt("closeBrackets", e)[0] || ss;
17456
17443
  }
17457
17444
  const CS = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), RS = /* @__PURE__ */ G.inputHandler.of((n, e, t, i) => {
17458
17445
  if ((CS ? n.composing : n.compositionStarted) || n.state.readOnly)
@@ -17465,7 +17452,7 @@ const CS = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
17465
17452
  }), XS = ({ state: n, dispatch: e }) => {
17466
17453
  if (n.readOnly)
17467
17454
  return !1;
17468
- let i = Pp(n, n.selection.main.head).brackets || rs.brackets, s = null, r = n.changeByRange((l) => {
17455
+ let i = Pp(n, n.selection.main.head).brackets || ss.brackets, s = null, r = n.changeByRange((l) => {
17469
17456
  if (l.empty) {
17470
17457
  let o = AS(n.doc, l.head);
17471
17458
  for (let a of i)
@@ -17482,11 +17469,11 @@ const CS = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
17482
17469
  { key: "Backspace", run: XS }
17483
17470
  ];
17484
17471
  function VS(n, e) {
17485
- let t = Pp(n, n.selection.main.head), i = t.brackets || rs.brackets;
17472
+ let t = Pp(n, n.selection.main.head), i = t.brackets || ss.brackets;
17486
17473
  for (let s of i) {
17487
17474
  let r = $p(tt(s, 0));
17488
17475
  if (e == s)
17489
- return r == s ? qS(n, s, i.indexOf(s + s + s) > -1, t) : YS(n, s, r, t.before || rs.before);
17476
+ return r == s ? qS(n, s, i.indexOf(s + s + s) > -1, t) : YS(n, s, r, t.before || ss.before);
17490
17477
  if (e == r && wp(n, n.selection.main.from))
17491
17478
  return ES(n, s, r);
17492
17479
  }
@@ -17537,7 +17524,7 @@ function ES(n, e, t) {
17537
17524
  });
17538
17525
  }
17539
17526
  function qS(n, e, t, i) {
17540
- let s = i.stringPrefixes || rs.stringPrefixes, r = null, l = n.changeByRange((o) => {
17527
+ let s = i.stringPrefixes || ss.stringPrefixes, r = null, l = n.changeByRange((o) => {
17541
17528
  if (!o.empty)
17542
17529
  return {
17543
17530
  changes: [{ insert: e, from: o.from }, { insert: e, from: o.to }],
@@ -17645,7 +17632,7 @@ class Pi {
17645
17632
  this.diagnostics = e, this.panel = t, this.selected = i;
17646
17633
  }
17647
17634
  static init(e, t, i) {
17648
- let s = i.facet(ls).markerFilter;
17635
+ let s = i.facet(rs).markerFilter;
17649
17636
  s && (e = s(e, i));
17650
17637
  let r = e.slice().sort((h, c) => h.from - c.from || h.to - c.to), l = new Ht(), o = [], a = 0;
17651
17638
  for (let h = 0; ; ) {
@@ -17681,10 +17668,10 @@ class Pi {
17681
17668
  o[g].to <= a && o.splice(g--, 1);
17682
17669
  }
17683
17670
  let u = l.finish();
17684
- return new Pi(u, t, un(u));
17671
+ return new Pi(u, t, an(u));
17685
17672
  }
17686
17673
  }
17687
- function un(n, e = null, t = 0) {
17674
+ function an(n, e = null, t = 0) {
17688
17675
  let i = null;
17689
17676
  return n.between(t, 1e9, (s, r, { spec: l }) => {
17690
17677
  if (!(e && l.diagnostics.indexOf(e) < 0))
@@ -17698,7 +17685,7 @@ function un(n, e = null, t = 0) {
17698
17685
  }), i;
17699
17686
  }
17700
17687
  function US(n, e) {
17701
- let t = e.pos, i = e.end || t, s = n.state.facet(ls).hideOn(n, t, i);
17688
+ let t = e.pos, i = e.end || t, s = n.state.facet(rs).hideOn(n, t, i);
17702
17689
  if (s != null)
17703
17690
  return s;
17704
17691
  let r = n.startState.doc.lineAt(e.pos);
@@ -17716,20 +17703,20 @@ const Tp = /* @__PURE__ */ ae.define(), hh = /* @__PURE__ */ ae.define(), Cp = /
17716
17703
  let t = n.diagnostics.map(e.changes), i = null, s = n.panel;
17717
17704
  if (n.selected) {
17718
17705
  let r = e.changes.mapPos(n.selected.from, 1);
17719
- i = un(t, n.selected.diagnostic, r) || un(t, null, r);
17706
+ i = an(t, n.selected.diagnostic, r) || an(t, null, r);
17720
17707
  }
17721
- !t.size && s && e.state.facet(ls).autoPanel && (s = null), n = new Pi(t, s, i);
17708
+ !t.size && s && e.state.facet(rs).autoPanel && (s = null), n = new Pi(t, s, i);
17722
17709
  }
17723
17710
  for (let t of e.effects)
17724
17711
  if (t.is(Tp)) {
17725
- let i = e.state.facet(ls).autoPanel ? t.value.length ? os.open : null : n.panel;
17712
+ let i = e.state.facet(rs).autoPanel ? t.value.length ? ls.open : null : n.panel;
17726
17713
  n = Pi.init(t.value, i, e.state);
17727
17714
  } else
17728
- t.is(hh) ? n = new Pi(n.diagnostics, t.value ? os.open : null, n.selected) : t.is(Cp) && (n = new Pi(n.diagnostics, n.panel, t.value));
17715
+ t.is(hh) ? n = new Pi(n.diagnostics, t.value ? ls.open : null, n.selected) : t.is(Cp) && (n = new Pi(n.diagnostics, n.panel, t.value));
17729
17716
  return n;
17730
17717
  },
17731
17718
  provide: (n) => [
17732
- Kn.from(n, (e) => e.panel),
17719
+ Hn.from(n, (e) => e.panel),
17733
17720
  G.decorations.from(n, (e) => e.diagnostics)
17734
17721
  ]
17735
17722
  }), WS = /* @__PURE__ */ se.mark({ class: "cm-lintRange cm-lintRange-active" });
@@ -17739,7 +17726,7 @@ function BS(n, e, t) {
17739
17726
  if (e >= a && e <= u && (a == u || (e > a || t > 0) && (e < u || t < 0)))
17740
17727
  return s = h.diagnostics, r = a, l = u, !1;
17741
17728
  });
17742
- let o = n.state.facet(ls).tooltipFilter;
17729
+ let o = n.state.facet(rs).tooltipFilter;
17743
17730
  return s && o && (s = o(s, n.state)), s ? {
17744
17731
  pos: r,
17745
17732
  end: l,
@@ -17755,7 +17742,7 @@ function NS(n, e) {
17755
17742
  const IS = (n) => {
17756
17743
  let e = n.state.field(ut, !1);
17757
17744
  (!e || !e.panel) && n.dispatch({ effects: zS(n.state, [hh.of(!0)]) });
17758
- let t = Hn(n, os.open);
17745
+ let t = Fn(n, ls.open);
17759
17746
  return t && t.dom.querySelector(".cm-panel-lint ul").focus(), !0;
17760
17747
  }, Oc = (n) => {
17761
17748
  let e = n.state.field(ut, !1);
@@ -17769,7 +17756,7 @@ const IS = (n) => {
17769
17756
  }, jS = [
17770
17757
  { key: "Mod-Shift-m", run: IS, preventDefault: !0 },
17771
17758
  { key: "F8", run: GS }
17772
- ], ls = /* @__PURE__ */ H.define({
17759
+ ], rs = /* @__PURE__ */ H.define({
17773
17760
  combine(n) {
17774
17761
  return Object.assign({ sources: n.map((e) => e.source).filter((e) => e != null) }, zt(n.map((e) => e.config), {
17775
17762
  delay: 750,
@@ -17806,7 +17793,7 @@ function Xp(n, e, t) {
17806
17793
  if (f.preventDefault(), o)
17807
17794
  return;
17808
17795
  o = !0;
17809
- let d = un(n.state.field(ut).diagnostics, e);
17796
+ let d = an(n.state.field(ut).diagnostics, e);
17810
17797
  d && r.apply(n, d.from, d.to);
17811
17798
  }, { name: u } = r, h = s[l] ? u.indexOf(s[l]) : -1, c = h < 0 ? u : [
17812
17799
  u.slice(0, h),
@@ -17838,7 +17825,7 @@ class pc {
17838
17825
  this.diagnostic = t, this.id = "item_" + Math.floor(Math.random() * 4294967295).toString(16), this.dom = Xp(e, t, !0), this.dom.id = this.id, this.dom.setAttribute("role", "option");
17839
17826
  }
17840
17827
  }
17841
- class os {
17828
+ class ls {
17842
17829
  constructor(e) {
17843
17830
  this.view = e, this.items = [];
17844
17831
  let t = (s) => {
@@ -17858,7 +17845,7 @@ class os {
17858
17845
  let { diagnostic: r } = this.items[this.selectedIndex], l = Rp(r.actions);
17859
17846
  for (let o = 0; o < l.length; o++)
17860
17847
  if (l[o].toUpperCase().charCodeAt(0) == s.keyCode) {
17861
- let a = un(this.view.state.field(ut).diagnostics, r);
17848
+ let a = an(this.view.state.field(ut).diagnostics, r);
17862
17849
  a && r.actions[o].apply(e, a.from, a.to);
17863
17850
  }
17864
17851
  } else
@@ -17940,7 +17927,7 @@ class os {
17940
17927
  moveSelection(e) {
17941
17928
  if (this.selectedIndex < 0)
17942
17929
  return;
17943
- let t = this.view.state.field(ut), i = un(t.diagnostics, this.items[e].diagnostic);
17930
+ let t = this.view.state.field(ut), i = an(t.diagnostics, this.items[e].diagnostic);
17944
17931
  i && this.view.dispatch({
17945
17932
  selection: { anchor: i.from, head: i.to },
17946
17933
  scrollIntoView: !0,
@@ -17948,7 +17935,7 @@ class os {
17948
17935
  });
17949
17936
  }
17950
17937
  static open(e) {
17951
- return new os(e);
17938
+ return new ls(e);
17952
17939
  }
17953
17940
  }
17954
17941
  function HS(n, e = 'viewBox="0 0 40 40"') {
@@ -18519,7 +18506,7 @@ class Er {
18519
18506
  return new Er(this.stack, this.pos, this.index);
18520
18507
  }
18521
18508
  }
18522
- function En(n, e = Uint16Array) {
18509
+ function An(n, e = Uint16Array) {
18523
18510
  if (typeof n != "string")
18524
18511
  return n;
18525
18512
  let t = null;
@@ -18693,7 +18680,7 @@ class sv {
18693
18680
  return i;
18694
18681
  }
18695
18682
  }
18696
- class nn {
18683
+ class en {
18697
18684
  constructor(e, t) {
18698
18685
  this.data = e, this.id = t;
18699
18686
  }
@@ -18702,10 +18689,10 @@ class nn {
18702
18689
  Zp(this.data, e, t, this.id, i.data, i.tokenPrecTable);
18703
18690
  }
18704
18691
  }
18705
- nn.prototype.contextual = nn.prototype.fallback = nn.prototype.extend = !1;
18692
+ en.prototype.contextual = en.prototype.fallback = en.prototype.extend = !1;
18706
18693
  class qr {
18707
18694
  constructor(e, t, i) {
18708
- this.precTable = t, this.elseToken = i, this.data = typeof e == "string" ? En(e) : e;
18695
+ this.precTable = t, this.elseToken = i, this.data = typeof e == "string" ? An(e) : e;
18709
18696
  }
18710
18697
  token(e, t) {
18711
18698
  let i = e.pos, s = 0;
@@ -18722,7 +18709,7 @@ class qr {
18722
18709
  s && (e.reset(i, e.token), e.acceptToken(this.elseToken, s));
18723
18710
  }
18724
18711
  }
18725
- qr.prototype.contextual = nn.prototype.fallback = nn.prototype.extend = !1;
18712
+ qr.prototype.contextual = en.prototype.fallback = en.prototype.extend = !1;
18726
18713
  class ct {
18727
18714
  /**
18728
18715
  Create a tokenizer. The first argument is the function that,
@@ -19172,11 +19159,11 @@ class _i extends dO {
19172
19159
  error: a == 0,
19173
19160
  skipped: e.skippedNodes && e.skippedNodes.indexOf(a) > -1
19174
19161
  }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = hO;
19175
- let l = En(e.tokenData);
19162
+ let l = An(e.tokenData);
19176
19163
  this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
19177
19164
  for (let o = 0; o < this.specializerSpecs.length; o++)
19178
19165
  this.specialized[o] = this.specializerSpecs[o].term;
19179
- this.specializers = this.specializerSpecs.map(yc), this.states = En(e.states, Uint32Array), this.data = En(e.stateData), this.goto = En(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((o) => typeof o == "number" ? new nn(l, o) : o), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
19166
+ this.specializers = this.specializerSpecs.map(yc), this.states = An(e.states, Uint32Array), this.data = An(e.stateData), this.goto = An(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((o) => typeof o == "number" ? new en(l, o) : o), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
19180
19167
  }
19181
19168
  createParse(e, t, i) {
19182
19169
  let s = new av(this, e, t, i);
@@ -19480,7 +19467,7 @@ const Yv = new ct((n, e) => {
19480
19467
  }
19481
19468
  }
19482
19469
  n.acceptToken(pv, -t);
19483
- }), Ev = pn({
19470
+ }), Ev = dn({
19484
19471
  "get set async static": v.modifier,
19485
19472
  "for while do if else switch try catch finally return throw break continue default case": v.controlKeyword,
19486
19473
  "in of await yield void typeof delete instanceof as satisfies": v.operatorKeyword,
@@ -19654,19 +19641,19 @@ const Yv = new ct((n, e) => {
19654
19641
  "MethodDeclaration",
19655
19642
  "ForStatement"
19656
19643
  ]);
19657
- function Pn(n) {
19644
+ function xn(n) {
19658
19645
  return (e, t) => {
19659
19646
  let i = e.node.getChild("VariableDefinition");
19660
19647
  return i && t(i, n), !0;
19661
19648
  };
19662
19649
  }
19663
19650
  const Uv = ["FunctionDeclaration"], zv = {
19664
- FunctionDeclaration: /* @__PURE__ */ Pn("function"),
19665
- ClassDeclaration: /* @__PURE__ */ Pn("class"),
19651
+ FunctionDeclaration: /* @__PURE__ */ xn("function"),
19652
+ ClassDeclaration: /* @__PURE__ */ xn("class"),
19666
19653
  ClassExpression: () => !0,
19667
- EnumDeclaration: /* @__PURE__ */ Pn("constant"),
19668
- TypeAliasDeclaration: /* @__PURE__ */ Pn("type"),
19669
- NamespaceDeclaration: /* @__PURE__ */ Pn("namespace"),
19654
+ EnumDeclaration: /* @__PURE__ */ xn("constant"),
19655
+ TypeAliasDeclaration: /* @__PURE__ */ xn("type"),
19656
+ NamespaceDeclaration: /* @__PURE__ */ xn("namespace"),
19670
19657
  VariableDefinition(n, e) {
19671
19658
  n.matchContext(Uv) || e(n, "variable");
19672
19659
  },
@@ -19782,16 +19769,16 @@ const Ft = /* @__PURE__ */ ei.define({
19782
19769
  facet: /* @__PURE__ */ Ua({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
19783
19770
  }, Bv = /* @__PURE__ */ Ft.configure({ dialect: "ts" }, "typescript"), Nv = /* @__PURE__ */ Ft.configure({
19784
19771
  dialect: "jsx",
19785
- props: [/* @__PURE__ */ Os.add((n) => n.isTop ? [Lp] : void 0)]
19772
+ props: [/* @__PURE__ */ ds.add((n) => n.isTop ? [Lp] : void 0)]
19786
19773
  }), Iv = /* @__PURE__ */ Ft.configure({
19787
19774
  dialect: "jsx ts",
19788
- props: [/* @__PURE__ */ Os.add((n) => n.isTop ? [Lp] : void 0)]
19775
+ props: [/* @__PURE__ */ ds.add((n) => n.isTop ? [Lp] : void 0)]
19789
19776
  }, "typescript");
19790
19777
  let Up = (n) => ({ label: n, type: "keyword" });
19791
19778
  const zp = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Up), Gv = /* @__PURE__ */ zp.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(Up));
19792
19779
  function jv(n = {}) {
19793
19780
  let e = n.jsx ? n.typescript ? Iv : Nv : n.typescript ? Bv : Ft, t = n.typescript ? Lv.concat(Gv) : Ep.concat(zp);
19794
- return new mn(e, [
19781
+ return new On(e, [
19795
19782
  Ft.data.of({
19796
19783
  autocomplete: th(Dp, ll(t))
19797
19784
  }),
@@ -19843,7 +19830,7 @@ const Hv = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19843
19830
  r,
19844
19831
  l.update(o, { userEvent: "input.complete", scrollIntoView: !0 })
19845
19832
  ]), !0);
19846
- }), Jv = "#002b36", ex = "#073642", Dl = "#586e75", Pc = "#657b83", Wp = "#839496", Oa = "#93a1a1", hr = "#eee8d5", tx = "#fdf6e3", zs = "#dc322f", ix = "#cb4b16", wn = "#b58900", Ll = "#859900", Ul = "#2aa198", wc = "#268bd2", nx = "#6c71c4", Ws = "#d33682", kc = "#d30102", sx = Wp, Tc = "#00252f", zl = "#173541", rx = Jv, Wl = ex, lx = "#173541", Cc = Wp, ox = /* @__PURE__ */ G.theme({
19833
+ }), Jv = "#002b36", ex = "#073642", Dl = "#586e75", Pc = "#657b83", Wp = "#839496", Oa = "#93a1a1", hr = "#eee8d5", tx = "#fdf6e3", zs = "#dc322f", ix = "#cb4b16", $n = "#b58900", Ll = "#859900", Ul = "#2aa198", wc = "#268bd2", nx = "#6c71c4", Ws = "#d33682", kc = "#d30102", sx = Wp, Tc = "#00252f", zl = "#173541", rx = Jv, Wl = ex, lx = "#173541", Cc = Wp, ox = /* @__PURE__ */ G.theme({
19847
19834
  "&": {
19848
19835
  color: Oa,
19849
19836
  backgroundColor: rx
@@ -19899,7 +19886,7 @@ const Hv = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19899
19886
  color: Pc
19900
19887
  }
19901
19888
  }
19902
- }, { dark: !0 }), ax = /* @__PURE__ */ ms.define([
19889
+ }, { dark: !0 }), ax = /* @__PURE__ */ ps.define([
19903
19890
  { tag: v.keyword, color: Ll },
19904
19891
  {
19905
19892
  tag: [v.name, v.deleted, v.character, v.propertyName, v.macroName],
@@ -19910,7 +19897,7 @@ const Hv = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19910
19897
  { tag: [v.labelName], color: Ws },
19911
19898
  {
19912
19899
  tag: [v.color, /* @__PURE__ */ v.constant(v.name), /* @__PURE__ */ v.standard(v.name)],
19913
- color: wn
19900
+ color: $n
19914
19901
  },
19915
19902
  { tag: [/* @__PURE__ */ v.definition(v.name), v.separator], color: Ul },
19916
19903
  { tag: [v.brace], color: Ws },
@@ -19954,7 +19941,7 @@ const Hv = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19954
19941
  tag: [v.quote],
19955
19942
  color: Ll
19956
19943
  },
19957
- { tag: [v.string], color: wn },
19944
+ { tag: [v.string], color: $n },
19958
19945
  {
19959
19946
  tag: v.link,
19960
19947
  color: Ul,
@@ -19963,14 +19950,14 @@ const Hv = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19963
19950
  },
19964
19951
  {
19965
19952
  tag: [v.url, v.escape, /* @__PURE__ */ v.special(v.string)],
19966
- color: wn
19953
+ color: $n
19967
19954
  },
19968
19955
  { tag: [v.meta], color: zs },
19969
19956
  { tag: [v.comment], color: Dl, fontStyle: "italic" },
19970
19957
  { tag: v.strong, fontWeight: "bold", color: hr },
19971
19958
  { tag: v.emphasis, fontStyle: "italic", color: Ll },
19972
19959
  { tag: v.strikethrough, textDecoration: "line-through" },
19973
- { tag: v.heading, fontWeight: "bold", color: wn },
19960
+ { tag: v.heading, fontWeight: "bold", color: $n },
19974
19961
  { tag: v.heading1, fontWeight: "bold", color: tx },
19975
19962
  {
19976
19963
  tag: [v.heading2, v.heading3, v.heading4],
@@ -19988,13 +19975,13 @@ const Hv = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
19988
19975
  },
19989
19976
  {
19990
19977
  tag: [v.contentSeparator],
19991
- color: wn
19978
+ color: $n
19992
19979
  },
19993
19980
  { tag: v.invalid, color: Dl, borderBottom: `1px dotted ${zs}` }
19994
19981
  ]), hx = [
19995
19982
  ox,
19996
19983
  /* @__PURE__ */ PO(ax)
19997
- ], ux = pn({
19984
+ ], ux = dn({
19998
19985
  null: v.null,
19999
19986
  instanceof: v.operatorKeyword,
20000
19987
  this: v.self,
@@ -20080,7 +20067,7 @@ const Hv = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
20080
20067
  }
20081
20068
  });
20082
20069
  function Ox() {
20083
- return new mn(dx);
20070
+ return new On(dx);
20084
20071
  }
20085
20072
  const px = 101, Rc = 1, mx = 102, gx = 103, Xc = 2, Bp = [
20086
20073
  9,
@@ -20109,7 +20096,7 @@ const px = 101, Rc = 1, mx = 102, gx = 103, Xc = 2, Bp = [
20109
20096
  8287,
20110
20097
  12288
20111
20098
  ], _x = 58, Qx = 40, Np = 95, bx = 91, ur = 45, yx = 46, Sx = 35, vx = 37, xx = 38, $x = 92, Px = 10;
20112
- function as(n) {
20099
+ function os(n) {
20113
20100
  return n >= 65 && n <= 90 || n >= 97 && n <= 122 || n >= 161;
20114
20101
  }
20115
20102
  function Ip(n) {
@@ -20118,7 +20105,7 @@ function Ip(n) {
20118
20105
  const wx = new ct((n, e) => {
20119
20106
  for (let t = !1, i = 0, s = 0; ; s++) {
20120
20107
  let { next: r } = n;
20121
- if (as(r) || r == ur || r == Np || t && Ip(r))
20108
+ if (os(r) || r == ur || r == Np || t && Ip(r))
20122
20109
  !t && (r != ur || s > 0) && (t = !0), i === s && r == ur && i++, n.advance();
20123
20110
  else if (r == $x && n.peek(1) != Px)
20124
20111
  n.advance(), n.next > -1 && n.advance(), t = !0;
@@ -20130,19 +20117,19 @@ const wx = new ct((n, e) => {
20130
20117
  }), kx = new ct((n) => {
20131
20118
  if (Bp.includes(n.peek(-1))) {
20132
20119
  let { next: e } = n;
20133
- (as(e) || e == Np || e == Sx || e == yx || e == bx || e == _x && as(n.peek(1)) || e == ur || e == xx) && n.acceptToken(px);
20120
+ (os(e) || e == Np || e == Sx || e == yx || e == bx || e == _x && os(n.peek(1)) || e == ur || e == xx) && n.acceptToken(px);
20134
20121
  }
20135
20122
  }), Tx = new ct((n) => {
20136
20123
  if (!Bp.includes(n.peek(-1))) {
20137
20124
  let { next: e } = n;
20138
- if (e == vx && (n.advance(), n.acceptToken(Rc)), as(e)) {
20125
+ if (e == vx && (n.advance(), n.acceptToken(Rc)), os(e)) {
20139
20126
  do
20140
20127
  n.advance();
20141
- while (as(n.next) || Ip(n.next));
20128
+ while (os(n.next) || Ip(n.next));
20142
20129
  n.acceptToken(Rc);
20143
20130
  }
20144
20131
  }
20145
- }), Cx = pn({
20132
+ }), Cx = dn({
20146
20133
  "AtKeyword import charset namespace keyframes media supports": v.definitionKeyword,
20147
20134
  "from to selector": v.keyword,
20148
20135
  NamespaceName: v.namespace,
@@ -21017,9 +21004,9 @@ const Lx = (n) => (e) => {
21017
21004
  }
21018
21005
  });
21019
21006
  function jp() {
21020
- return new mn(Mr, Mr.data.of({ autocomplete: Ux }));
21007
+ return new On(Mr, Mr.data.of({ autocomplete: Ux }));
21021
21008
  }
21022
- const zx = 36, Yc = 1, Wx = 2, Ui = 3, Il = 4, Bx = 5, Nx = 6, Ix = 7, Gx = 8, jx = 9, Fx = 10, Hx = 11, Kx = 12, Jx = 13, e$ = 14, t$ = 15, i$ = 16, n$ = 17, Ec = 18, s$ = 19, Fp = 20, Hp = 21, qc = 22, r$ = 23, l$ = 24;
21009
+ const zx = 36, Yc = 1, Wx = 2, Li = 3, Il = 4, Bx = 5, Nx = 6, Ix = 7, Gx = 8, jx = 9, Fx = 10, Hx = 11, Kx = 12, Jx = 13, e$ = 14, t$ = 15, i$ = 16, n$ = 17, Ec = 18, s$ = 19, Fp = 20, Hp = 21, qc = 22, r$ = 23, l$ = 24;
21023
21010
  function pa(n) {
21024
21011
  return n >= 65 && n <= 90 || n >= 97 && n <= 122 || n >= 48 && n <= 57;
21025
21012
  }
@@ -21156,9 +21143,9 @@ function Jp(n) {
21156
21143
  e.acceptToken(zx);
21157
21144
  } else if (i == 36 && n.doubleDollarQuotedStrings) {
21158
21145
  let s = ma(e, "");
21159
- e.next == 36 && (e.advance(), a$(e, s), e.acceptToken(Ui));
21146
+ e.next == 36 && (e.advance(), a$(e, s), e.acceptToken(Li));
21160
21147
  } else if (i == 39 || i == 34 && n.doubleQuotedStrings)
21161
- xi(e, i, n.backslashEscapes), e.acceptToken(Ui);
21148
+ xi(e, i, n.backslashEscapes), e.acceptToken(Li);
21162
21149
  else if (i == 35 && n.hashComments || i == 47 && e.next == 47 && n.slashComments)
21163
21150
  Lc(e), e.acceptToken(Yc);
21164
21151
  else if (i == 45 && e.next == 45 && (!n.spaceAfterDashes || e.peek(1) == 32))
@@ -21177,13 +21164,13 @@ function Jp(n) {
21177
21164
  }
21178
21165
  e.acceptToken(Wx);
21179
21166
  } else if ((i == 101 || i == 69) && e.next == 39)
21180
- e.advance(), xi(e, 39, !0), e.acceptToken(Ui);
21167
+ e.advance(), xi(e, 39, !0), e.acceptToken(Li);
21181
21168
  else if ((i == 110 || i == 78) && e.next == 39 && n.charSetCasts)
21182
- e.advance(), xi(e, 39, n.backslashEscapes), e.acceptToken(Ui);
21169
+ e.advance(), xi(e, 39, n.backslashEscapes), e.acceptToken(Li);
21183
21170
  else if (i == 95 && n.charSetCasts)
21184
21171
  for (let s = 0; ; s++) {
21185
21172
  if (e.next == 39 && s > 1) {
21186
- e.advance(), xi(e, 39, n.backslashEscapes), e.acceptToken(Ui);
21173
+ e.advance(), xi(e, 39, n.backslashEscapes), e.acceptToken(Li);
21187
21174
  break;
21188
21175
  }
21189
21176
  if (!pa(e.next))
@@ -21192,7 +21179,7 @@ function Jp(n) {
21192
21179
  }
21193
21180
  else if (n.plsqlQuotingMechanism && (i == 113 || i == 81) && e.next == 39 && e.peek(1) > 0 && !vi(e.peek(1), Gl)) {
21194
21181
  let s = e.peek(1);
21195
- e.advance(2), h$(e, s), e.acceptToken(Ui);
21182
+ e.advance(2), h$(e, s), e.acceptToken(Li);
21196
21183
  } else if (i == 40)
21197
21184
  e.acceptToken(Ix);
21198
21185
  else if (i == 41)
@@ -21262,7 +21249,7 @@ function _a(n) {
21262
21249
  e.moveTo(e.from, -1);
21263
21250
  return e.node;
21264
21251
  }
21265
- function hs(n, e) {
21252
+ function as(n, e) {
21266
21253
  let t = n.sliceString(e.from, e.to), i = /^([`'"])(.*)\1$/.exec(t);
21267
21254
  return i ? i[2] : t;
21268
21255
  }
@@ -21273,10 +21260,10 @@ function p$(n, e) {
21273
21260
  if (e.name == "CompositeIdentifier") {
21274
21261
  let t = [];
21275
21262
  for (let i = e.firstChild; i; i = i.nextSibling)
21276
- Dr(i) && t.push(hs(n, i));
21263
+ Dr(i) && t.push(as(n, i));
21277
21264
  return t;
21278
21265
  }
21279
- return [hs(n, e)];
21266
+ return [as(n, e)];
21280
21267
  }
21281
21268
  function Uc(n, e) {
21282
21269
  for (let t = []; ; ) {
@@ -21285,7 +21272,7 @@ function Uc(n, e) {
21285
21272
  let i = _a(e);
21286
21273
  if (!Dr(i))
21287
21274
  return t;
21288
- t.unshift(hs(n, i)), e = _a(i);
21275
+ t.unshift(as(n, i)), e = _a(i);
21289
21276
  }
21290
21277
  }
21291
21278
  function m$(n, e) {
@@ -21311,11 +21298,11 @@ function _$(n, e) {
21311
21298
  if (!r)
21312
21299
  r = o == "from";
21313
21300
  else if (o == "as" && l && Dr(s.nextSibling))
21314
- a = hs(n, s.nextSibling);
21301
+ a = as(n, s.nextSibling);
21315
21302
  else {
21316
21303
  if (o && g$.has(o))
21317
21304
  break;
21318
- l && Dr(s) && (a = hs(n, s));
21305
+ l && Dr(s) && (a = as(n, s));
21319
21306
  }
21320
21307
  a && (i || (i = /* @__PURE__ */ Object.create(null)), i[a] = p$(n, l)), l = /Identifier$/.test(s.name) ? s : null;
21321
21308
  }
@@ -21414,7 +21401,7 @@ let $$ = /* @__PURE__ */ O$.configure({
21414
21401
  return { from: n.from + 2, to: n.to - 2 };
21415
21402
  }
21416
21403
  }),
21417
- /* @__PURE__ */ pn({
21404
+ /* @__PURE__ */ dn({
21418
21405
  Keyword: v.keyword,
21419
21406
  Type: v.typeName,
21420
21407
  Builtin: /* @__PURE__ */ v.standard(v.name),
@@ -21480,7 +21467,7 @@ function T$(n) {
21480
21467
  }
21481
21468
  function C$(n = {}) {
21482
21469
  let e = n.dialect || fh;
21483
- return new mn(e.language, [
21470
+ return new On(e.language, [
21484
21471
  T$(n),
21485
21472
  e.language.data.of({
21486
21473
  autocomplete: w$(e, n.upperCaseKeywords, n.keywordCompletion)
@@ -21688,7 +21675,7 @@ function Oh(n, e, t) {
21688
21675
  }
21689
21676
  });
21690
21677
  }
21691
- const hP = Oh("script", R$, X$), uP = Oh("style", Z$, V$), cP = Oh("textarea", A$, Y$), fP = pn({
21678
+ const hP = Oh("script", R$, X$), uP = Oh("style", Z$, V$), cP = Oh("textarea", A$, Y$), fP = dn({
21692
21679
  "Text RawText": v.content,
21693
21680
  "StartTag StartCloseTag SelfClosingEndTag EndTag": v.angleBracket,
21694
21681
  TagName: v.tagName,
@@ -21882,19 +21869,19 @@ const fm = [
21882
21869
  "MethodDeclaration",
21883
21870
  "ForStatement"
21884
21871
  ]);
21885
- function kn(n) {
21872
+ function Pn(n) {
21886
21873
  return (e, t) => {
21887
21874
  let i = e.node.getChild("VariableDefinition");
21888
21875
  return i && t(i, n), !0;
21889
21876
  };
21890
21877
  }
21891
21878
  const pP = ["FunctionDeclaration"], mP = {
21892
- FunctionDeclaration: /* @__PURE__ */ kn("function"),
21893
- ClassDeclaration: /* @__PURE__ */ kn("class"),
21879
+ FunctionDeclaration: /* @__PURE__ */ Pn("function"),
21880
+ ClassDeclaration: /* @__PURE__ */ Pn("class"),
21894
21881
  ClassExpression: () => !0,
21895
- EnumDeclaration: /* @__PURE__ */ kn("constant"),
21896
- TypeAliasDeclaration: /* @__PURE__ */ kn("type"),
21897
- NamespaceDeclaration: /* @__PURE__ */ kn("namespace"),
21882
+ EnumDeclaration: /* @__PURE__ */ Pn("constant"),
21883
+ TypeAliasDeclaration: /* @__PURE__ */ Pn("type"),
21884
+ NamespaceDeclaration: /* @__PURE__ */ Pn("namespace"),
21898
21885
  VariableDefinition(n, e) {
21899
21886
  n.matchContext(pP) || e(n, "variable");
21900
21887
  },
@@ -22005,16 +21992,16 @@ const Mt = /* @__PURE__ */ ei.define({
22005
21992
  facet: /* @__PURE__ */ Ua({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
22006
21993
  }, gm = /* @__PURE__ */ Mt.configure({ dialect: "ts" }, "typescript"), _m = /* @__PURE__ */ Mt.configure({
22007
21994
  dialect: "jsx",
22008
- props: [/* @__PURE__ */ Os.add((n) => n.isTop ? [mm] : void 0)]
21995
+ props: [/* @__PURE__ */ ds.add((n) => n.isTop ? [mm] : void 0)]
22009
21996
  }), Qm = /* @__PURE__ */ Mt.configure({
22010
21997
  dialect: "jsx ts",
22011
- props: [/* @__PURE__ */ Os.add((n) => n.isTop ? [mm] : void 0)]
21998
+ props: [/* @__PURE__ */ ds.add((n) => n.isTop ? [mm] : void 0)]
22012
21999
  }, "typescript");
22013
22000
  let bm = (n) => ({ label: n, type: "keyword" });
22014
22001
  const ym = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(bm), _P = /* @__PURE__ */ ym.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(bm));
22015
22002
  function QP(n = {}) {
22016
22003
  let e = n.jsx ? n.typescript ? Qm : _m : n.typescript ? gm : Mt, t = n.typescript ? OP.concat(_P) : fm.concat(ym);
22017
- return new mn(e, [
22004
+ return new On(e, [
22018
22005
  Mt.data.of({
22019
22006
  autocomplete: th(pm, ll(t))
22020
22007
  }),
@@ -22066,14 +22053,14 @@ const yP = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22066
22053
  r,
22067
22054
  l.update(o, { userEvent: "input.complete", scrollIntoView: !0 })
22068
22055
  ]), !0);
22069
- }), Tn = ["_blank", "_self", "_top", "_parent"], Hl = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Kl = ["get", "post", "put", "delete"], Jl = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], at = ["true", "false"], ie = {}, vP = {
22056
+ }), wn = ["_blank", "_self", "_top", "_parent"], Hl = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Kl = ["get", "post", "put", "delete"], Jl = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], at = ["true", "false"], ie = {}, vP = {
22070
22057
  a: {
22071
22058
  attrs: {
22072
22059
  href: null,
22073
22060
  ping: null,
22074
22061
  type: null,
22075
22062
  media: null,
22076
- target: Tn,
22063
+ target: wn,
22077
22064
  hreflang: null
22078
22065
  }
22079
22066
  },
@@ -22106,7 +22093,7 @@ const yP = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22106
22093
  }
22107
22094
  },
22108
22095
  b: ie,
22109
- base: { attrs: { href: null, target: Tn } },
22096
+ base: { attrs: { href: null, target: wn } },
22110
22097
  bdi: ie,
22111
22098
  bdo: ie,
22112
22099
  blockquote: { attrs: { cite: null } },
@@ -22123,7 +22110,7 @@ const yP = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22123
22110
  formenctype: Jl,
22124
22111
  formmethod: Kl,
22125
22112
  formnovalidate: ["novalidate"],
22126
- formtarget: Tn,
22113
+ formtarget: wn,
22127
22114
  type: ["submit", "reset", "button"]
22128
22115
  }
22129
22116
  },
@@ -22172,7 +22159,7 @@ const yP = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22172
22159
  enctype: Jl,
22173
22160
  method: Kl,
22174
22161
  novalidate: ["novalidate"],
22175
- target: Tn
22162
+ target: wn
22176
22163
  }
22177
22164
  },
22178
22165
  h1: ie,
@@ -22240,7 +22227,7 @@ const yP = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
22240
22227
  formenctype: Jl,
22241
22228
  formmethod: Kl,
22242
22229
  formnovalidate: ["novalidate"],
22243
- formtarget: Tn,
22230
+ formtarget: wn,
22244
22231
  multiple: ["multiple"],
22245
22232
  readonly: ["readonly"],
22246
22233
  required: ["required"],
@@ -22493,13 +22480,13 @@ class zr {
22493
22480
  }
22494
22481
  }
22495
22482
  zr.default = /* @__PURE__ */ new zr();
22496
- function cn(n, e, t = n.length) {
22483
+ function hn(n, e, t = n.length) {
22497
22484
  if (!e)
22498
22485
  return "";
22499
22486
  let i = e.firstChild, s = i && i.getChild("TagName");
22500
22487
  return s ? n.sliceString(s.from, Math.min(s.to, t)) : "";
22501
22488
  }
22502
- function fn(n, e = !1) {
22489
+ function un(n, e = !1) {
22503
22490
  for (; n; n = n.parent)
22504
22491
  if (n.name == "Element")
22505
22492
  if (e)
@@ -22509,13 +22496,13 @@ function fn(n, e = !1) {
22509
22496
  return null;
22510
22497
  }
22511
22498
  function xm(n, e, t) {
22512
- let i = t.tags[cn(n, fn(e))];
22499
+ let i = t.tags[hn(n, un(e))];
22513
22500
  return (i == null ? void 0 : i.children) || t.allTags;
22514
22501
  }
22515
22502
  function ph(n, e) {
22516
22503
  let t = [];
22517
- for (let i = fn(e); i && !i.type.isTop; i = fn(i.parent)) {
22518
- let s = cn(n, i);
22504
+ for (let i = un(e); i && !i.type.isTop; i = un(i.parent)) {
22505
+ let s = hn(n, i);
22519
22506
  if (s && i.lastChild.name == "CloseTag")
22520
22507
  break;
22521
22508
  s && t.indexOf(s) < 0 && (e.name == "EndTag" || e.from >= i.firstChild.to) && t.push(s);
@@ -22524,7 +22511,7 @@ function ph(n, e) {
22524
22511
  }
22525
22512
  const $m = /^[:\-\.\w\u00b7-\uffff]*$/;
22526
22513
  function nf(n, e, t, i, s) {
22527
- let r = /\s*>/.test(n.sliceDoc(s, s + 5)) ? "" : ">", l = fn(t, !0);
22514
+ let r = /\s*>/.test(n.sliceDoc(s, s + 5)) ? "" : ">", l = un(t, !0);
22528
22515
  return {
22529
22516
  from: i,
22530
22517
  to: s,
@@ -22555,7 +22542,7 @@ function xP(n, e, t, i) {
22555
22542
  return { from: i, to: i, options: s, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
22556
22543
  }
22557
22544
  function $P(n, e, t, i, s) {
22558
- let r = fn(t), l = r ? e.tags[cn(n.doc, r)] : null, o = l && l.attrs ? Object.keys(l.attrs) : [], a = l && l.globalAttrs === !1 ? o : o.length ? o.concat(e.globalAttrNames) : e.globalAttrNames;
22545
+ let r = un(t), l = r ? e.tags[hn(n.doc, r)] : null, o = l && l.attrs ? Object.keys(l.attrs) : [], a = l && l.globalAttrs === !1 ? o : o.length ? o.concat(e.globalAttrNames) : e.globalAttrNames;
22559
22546
  return {
22560
22547
  from: i,
22561
22548
  to: s,
@@ -22569,7 +22556,7 @@ function PP(n, e, t, i, s) {
22569
22556
  if (l) {
22570
22557
  let u = n.sliceDoc(l.from, l.to), h = e.globalAttrs[u];
22571
22558
  if (!h) {
22572
- let c = fn(t), f = c ? e.tags[cn(n.doc, c)] : null;
22559
+ let c = un(t), f = c ? e.tags[hn(n.doc, c)] : null;
22573
22560
  h = (f == null ? void 0 : f.attrs) && f.attrs[u];
22574
22561
  }
22575
22562
  if (h) {
@@ -22685,7 +22672,7 @@ function CP(n = {}) {
22685
22672
  let e = "", t;
22686
22673
  n.matchClosingTags === !1 && (e = "noMatch"), n.selfClosingTags === !0 && (e = (e ? e + " " : "") + "selfClosing"), (n.nestedLanguages && n.nestedLanguages.length || n.nestedAttributes && n.nestedAttributes.length) && (t = cm((n.nestedLanguages || []).concat(Pm), (n.nestedAttributes || []).concat(wm)));
22687
22674
  let i = t ? km.configure({ wrap: t, dialect: e }) : e ? cr.configure({ dialect: e }) : cr;
22688
- return new mn(i, [
22675
+ return new On(i, [
22689
22676
  cr.data.of({ autocomplete: kP(n) }),
22690
22677
  n.autoCloseTags !== !1 ? RP : [],
22691
22678
  QP().support,
@@ -22700,13 +22687,13 @@ const rf = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
22700
22687
  let f = l.doc.sliceString(a.from - 1, a.to) == i, { head: d } = a, p = Pe(l).resolveInner(d, -1), g;
22701
22688
  if (f && i == ">" && p.name == "EndTag") {
22702
22689
  let m = p.parent;
22703
- if (((h = (u = m.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (g = cn(l.doc, m.parent, d)) && !rf.has(g)) {
22690
+ if (((h = (u = m.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (g = hn(l.doc, m.parent, d)) && !rf.has(g)) {
22704
22691
  let O = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), y = `</${g}>`;
22705
22692
  return { range: a, changes: { from: d, to: O, insert: y } };
22706
22693
  }
22707
22694
  } else if (f && i == "/" && p.name == "IncompleteCloseTag") {
22708
22695
  let m = p.parent;
22709
- if (p.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (g = cn(l.doc, m, d)) && !rf.has(g)) {
22696
+ if (p.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (g = hn(l.doc, m, d)) && !rf.has(g)) {
22710
22697
  let O = d + (l.doc.sliceString(d, d + 1) === ">" ? 1 : 0), y = `${g}>`;
22711
22698
  return {
22712
22699
  range: U.cursor(d + y.length, -1),
@@ -22732,7 +22719,7 @@ const rf = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
22732
22719
  }, lf = function(n) {
22733
22720
  return XP[n]();
22734
22721
  };
22735
- var Tm = { exports: {} }, Cn = {}, Bs = { exports: {} }, eo = {}, to = {}, of;
22722
+ var Tm = { exports: {} }, kn = {}, Bs = { exports: {} }, eo = {}, to = {}, of;
22736
22723
  function mh() {
22737
22724
  if (of)
22738
22725
  return to;
@@ -22881,10 +22868,10 @@ function Rm() {
22881
22868
  |` + n.newline.source), n.allLineBreaks = new RegExp(n.lineBreak.source, "g");
22882
22869
  }(no)), no;
22883
22870
  }
22884
- var so = {}, Rn = {}, uf;
22871
+ var so = {}, Tn = {}, uf;
22885
22872
  function gh() {
22886
22873
  if (uf)
22887
- return Rn;
22874
+ return Tn;
22888
22875
  uf = 1;
22889
22876
  function n(i, s) {
22890
22877
  this.raw_options = e(i, s), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", !0), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "angular", "django", "erb", "handlebars", "php", "smarty"], ["auto"]);
@@ -22950,7 +22937,7 @@ You passed in: '` + this.raw_options[i] + "'"
22950
22937
  }
22951
22938
  return s;
22952
22939
  }
22953
- return Rn.Options = n, Rn.normalizeOpts = t, Rn.mergeOpts = e, Rn;
22940
+ return Tn.Options = n, Tn.normalizeOpts = t, Tn.mergeOpts = e, Tn;
22954
22941
  }
22955
22942
  var cf;
22956
22943
  function Xm() {
@@ -22970,7 +22957,7 @@ function Xm() {
22970
22957
  }
22971
22958
  return t.prototype = new n(), so.Options = t, so;
22972
22959
  }
22973
- var zi = {}, ro = {}, ff;
22960
+ var Ui = {}, ro = {}, ff;
22974
22961
  function _h() {
22975
22962
  if (ff)
22976
22963
  return ro;
@@ -23251,7 +23238,7 @@ function Zm() {
23251
23238
  var Qf;
23252
23239
  function Is() {
23253
23240
  if (Qf)
23254
- return zi;
23241
+ return Ui;
23255
23242
  Qf = 1;
23256
23243
  var n = _h().InputScanner, e = Wr().Tokenizer, t = Wr().TOKEN, i = Qh().Directives, s = Rm(), r = al().Pattern, l = Zm().TemplatablePattern;
23257
23244
  function o($, w) {
@@ -23447,7 +23434,7 @@ function Is() {
23447
23434
  R += _.read(), V += R;
23448
23435
  }
23449
23436
  return V;
23450
- }, zi.Tokenizer = P, zi.TOKEN = a, zi.positionable_operators = d.slice(), zi.line_starters = m.slice(), zi;
23437
+ }, Ui.Tokenizer = P, Ui.TOKEN = a, Ui.positionable_operators = d.slice(), Ui.line_starters = m.slice(), Ui;
23451
23438
  }
23452
23439
  var bf;
23453
23440
  function AP() {
@@ -24515,13 +24502,13 @@ function DP() {
24515
24502
  var Cf;
24516
24503
  function LP() {
24517
24504
  if (Cf)
24518
- return Cn;
24505
+ return kn;
24519
24506
  Cf = 1;
24520
24507
  var n = YP(), e = qP(), t = DP();
24521
24508
  function i(s, r, l, o) {
24522
24509
  return l = l || n, o = o || e, t(s, r, l, o);
24523
24510
  }
24524
- return i.defaultOptions = t.defaultOptions, Cn.js = n, Cn.css = e, Cn.html = i, Cn;
24511
+ return i.defaultOptions = t.defaultOptions, kn.js = n, kn.css = e, kn.html = i, kn;
24525
24512
  }
24526
24513
  (function(n) {
24527
24514
  function e(t, i, s) {
@@ -24536,7 +24523,7 @@ function LP() {
24536
24523
  })(n);
24537
24524
  })(Tm);
24538
24525
  var UP = Tm.exports;
24539
- const zP = { class: "code-slot" }, WP = { class: "code-slot" }, BP = { class: "editor-operation-btn" }, ji = /* @__PURE__ */ _t({
24526
+ const zP = { class: "code-slot" }, WP = { class: "code-slot" }, BP = { class: "editor-operation-btn" }, Gi = /* @__PURE__ */ _t({
24540
24527
  __name: "CodeMirror",
24541
24528
  props: {
24542
24529
  modelValue: { default: "" },
@@ -24561,7 +24548,7 @@ const zP = { class: "code-slot" }, WP = { class: "code-slot" }, BP = { class: "e
24561
24548
  let f = {};
24562
24549
  return t.height !== void 0 && !isNaN(t.height) && (f.flex = "1", f.overflow = "auto"), f;
24563
24550
  });
24564
- us(
24551
+ hs(
24565
24552
  () => t.modelValue,
24566
24553
  (f) => {
24567
24554
  if (l && o && f != l.state.doc.toString()) {
@@ -24623,7 +24610,7 @@ const zP = { class: "code-slot" }, WP = { class: "code-slot" }, BP = { class: "e
24623
24610
  l.focus();
24624
24611
  }
24625
24612
  };
24626
- return dn(() => {
24613
+ return cn(() => {
24627
24614
  const f = [
24628
24615
  iv,
24629
24616
  hx,
@@ -24840,7 +24827,7 @@ const NP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
24840
24827
  };
24841
24828
  });
24842
24829
  }
24843
- us(
24830
+ hs(
24844
24831
  () => s.value,
24845
24832
  (A, x) => {
24846
24833
  if (A && A.length && t.value)
@@ -25129,7 +25116,7 @@ const NP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25129
25116
  default: S(() => [
25130
25117
  Q(b(fe), { label: "文本" }, {
25131
25118
  default: S(() => [
25132
- Q(b(Fi), {
25119
+ Q(b(Yn), {
25133
25120
  modelValue: l.value.text,
25134
25121
  "onUpdate:modelValue": x[2] || (x[2] = (k) => l.value.text = k),
25135
25122
  onInput: x[3] || (x[3] = (k) => C(k, "cell", "text"))
@@ -25171,7 +25158,7 @@ const NP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25171
25158
  label: "自定义渲染"
25172
25159
  }, {
25173
25160
  default: S(() => [
25174
- Q(b(Fi), {
25161
+ Q(b(Yn), {
25175
25162
  type: "textarea",
25176
25163
  modelValue: l.value.fun,
25177
25164
  "onUpdate:modelValue": x[6] || (x[6] = (k) => l.value.fun = k)
@@ -25191,7 +25178,7 @@ const NP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25191
25178
  error: T.value
25192
25179
  }, {
25193
25180
  default: S(() => [
25194
- Q(b(Fi), {
25181
+ Q(b(Yn), {
25195
25182
  modelValue: l.value.fun,
25196
25183
  "onUpdate:modelValue": x[7] || (x[7] = (k) => l.value.fun = k),
25197
25184
  onInput: x[8] || (x[8] = (k) => C(k, "cell", "fun"))
@@ -25737,7 +25724,7 @@ const NP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
25737
25724
  default: S(() => [
25738
25725
  Q(b(fe), { label: "自定义渲染函数" }, {
25739
25726
  default: S(() => [
25740
- Q(ji, {
25727
+ Q(Gi, {
25741
25728
  height: 100,
25742
25729
  modelValue: l.value.customRender,
25743
25730
  "onUpdate:modelValue": x[39] || (x[39] = (k) => l.value.customRender = k)
@@ -26846,7 +26833,7 @@ const Sw = function(n, e) {
26846
26833
  "label-position": "top"
26847
26834
  }, {
26848
26835
  default: S(() => [
26849
- Q(ji, {
26836
+ Q(Gi, {
26850
26837
  modelValue: b(l),
26851
26838
  "onUpdate:modelValue": p[26] || (p[26] = (C) => Mm(l) ? l.value = C : l = C),
26852
26839
  autocomplete: {
@@ -26868,7 +26855,7 @@ const Sw = function(n, e) {
26868
26855
  __name: "options",
26869
26856
  setup(n) {
26870
26857
  const e = Ut(), { active: t } = Lt(e), i = he("cell"), s = be(() => t.value && t.value.type === "report");
26871
- return us(
26858
+ return hs(
26872
26859
  () => s.value,
26873
26860
  (r) => {
26874
26861
  r ? i.value = "cell" : i.value = "chart";
@@ -26954,7 +26941,7 @@ const Sw = function(n, e) {
26954
26941
  var R, Y;
26955
26942
  t.value = !0, i.value && ((R = i.value.data) != null && R.pageSizes) ? o.value = (Y = i.value.data) == null ? void 0 : Y.pageSizes.split(",").map((E) => parseInt(E)) : o.value = [10, 20, 50, 100, 200];
26956
26943
  }
26957
- us(
26944
+ hs(
26958
26945
  () => o.value,
26959
26946
  (R) => {
26960
26947
  i.value && i.value.data && (i.value.data.pageSizes = R.join(","));
@@ -27018,7 +27005,7 @@ const Sw = function(n, e) {
27018
27005
  function V() {
27019
27006
  w.value && !o.value.includes(w.value) ? (T.value = !1, o.value.push(w.value), o.value.sort((R, Y) => R - Y), w.value = void 0) : fr.error("请不要输入重复的数字");
27020
27007
  }
27021
- return dn(() => {
27008
+ return cn(() => {
27022
27009
  }), (R, Y) => {
27023
27010
  const E = ue("el-input"), z = ue("el-checkbox"), F = ue("el-checkbox-group"), K = ue("el-tag"), te = ue("el-col"), A = ue("el-switch"), x = ue("el-form-item"), D = ue("el-option"), q = ue("el-select"), W = ue("el-row"), N = ue("el-form"), ee = ue("el-text");
27024
27011
  return L(), j(re, null, [
@@ -27314,7 +27301,7 @@ const Sw = function(n, e) {
27314
27301
  Iw
27315
27302
  ]),
27316
27303
  default: S(() => [
27317
- Q(ji, {
27304
+ Q(Gi, {
27318
27305
  height: 100,
27319
27306
  modelValue: b(i).data.processData,
27320
27307
  "onUpdate:modelValue": Y[5] || (Y[5] = (k) => b(i).data.processData = k)
@@ -27456,7 +27443,7 @@ const Sw = function(n, e) {
27456
27443
  Hw
27457
27444
  ]),
27458
27445
  default: S(() => [
27459
- Q(ji, {
27446
+ Q(Gi, {
27460
27447
  height: 100,
27461
27448
  modelValue: b(i).xAisData,
27462
27449
  "onUpdate:modelValue": Y[7] || (Y[7] = (k) => b(i).xAisData = k)
@@ -27477,7 +27464,7 @@ const Sw = function(n, e) {
27477
27464
  Kw
27478
27465
  ]),
27479
27466
  default: S(() => [
27480
- Q(ji, {
27467
+ Q(Gi, {
27481
27468
  height: 100,
27482
27469
  modelValue: b(i).yAisData,
27483
27470
  "onUpdate:modelValue": Y[8] || (Y[8] = (k) => b(i).yAisData = k)
@@ -27499,7 +27486,7 @@ const Sw = function(n, e) {
27499
27486
  Jw
27500
27487
  ]),
27501
27488
  default: S(() => [
27502
- Q(ji, {
27489
+ Q(Gi, {
27503
27490
  height: 100,
27504
27491
  modelValue: b(i).seriesData,
27505
27492
  "onUpdate:modelValue": Y[9] || (Y[9] = (k) => b(i).seriesData = k)
@@ -27547,7 +27534,7 @@ function ik(n, e, t, i, s) {
27547
27534
  function a(u) {
27548
27535
  r.value && (r.value = !1, s());
27549
27536
  }
27550
- dn(() => {
27537
+ cn(() => {
27551
27538
  var u;
27552
27539
  (u = n.value) == null || u.addEventListener("mousedown", l), document.body.addEventListener("mousemove", o), document.body.addEventListener("mouseup", a);
27553
27540
  }), Br(() => {
@@ -27723,7 +27710,7 @@ const nk = { class: "statement-design-top" }, sk = { class: "statement-name" },
27723
27710
  }), Vf(() => {
27724
27711
  var Y;
27725
27712
  (Y = document.querySelector(".main-container")) == null || Y.classList.remove("statement-design-main");
27726
- }), dn(() => {
27713
+ }), cn(() => {
27727
27714
  var Y, E, z, F, K;
27728
27715
  h(O.params.id), (Y = o.value) == null || Y.addEventListener("dragstart", T), (E = o.value) == null || E.addEventListener("dragend", C), (z = o.value) == null || z.addEventListener("dragover", V), (F = o.value) == null || F.addEventListener("dragleave", R), (K = o.value) == null || K.addEventListener("drop", _);
27729
27716
  }), Br(() => {
@@ -27876,4 +27863,4 @@ const nk = { class: "statement-design-top" }, sk = { class: "statement-name" },
27876
27863
  export {
27877
27864
  Ck as default
27878
27865
  };
27879
- //# sourceMappingURL=StatementDesign-04359c08.mjs.map
27866
+ //# sourceMappingURL=StatementDesign-de21e652.mjs.map