@quickflo/quickforms-quasar 1.19.28 → 1.19.29

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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SchemaUtils as pm, ComponentRegistry as q0, rankWith as Ke, hasConst as B0, hasXRender as Zt, isStringType as L0, isNumberType as R0, isBooleanType as E0, isEnumType as I0, isDateFormat as V0, isTimeFormat as F0, isDateTimeFormat as N0, isRecordType as H0, isJsonType as z0, isObjectType as j0, isArrayType as dh, hasOneOf as Q0, hasAnyOf as W0, hasAllOf as U0 } from "@quickflo/quickforms";
2
2
  import { ComponentRegistry as lD, SchemaUtils as aD, and as uD, hasAllOf as cD, hasAnyOf as hD, hasConditional as dD, hasConst as fD, hasExtension as mD, hasFormat as gD, hasOneOf as pD, isArrayType as vD, isBooleanType as yD, isDateFormat as bD, isDateTimeFormat as xD, isDiscriminatedUnion as kD, isEmailFormat as wD, isEnumType as SD, isIntegerType as CD, isJsonType as MD, isNullType as AD, isNumberType as TD, isObjectType as OD, isRecordType as DD, isStringType as _D, isTimeFormat as PD, isUrlFormat as qD, not as BD, or as LD, rankWith as RD } from "@quickflo/quickforms";
3
- import { computed as x, markRaw as vm, defineComponent as Lt, reactive as ym, h as _, withDirectives as vn, getCurrentInstance as Ue, ref as te, onMounted as Ti, watch as ge, onBeforeUpdate as bm, inject as jo, onBeforeUnmount as ft, nextTick as lt, onDeactivated as Qo, onActivated as cc, Transition as pi, onUnmounted as K0, Teleport as Y0, unref as G0, provide as xm, createElementBlock as se, openBlock as Z, normalizeStyle as mt, createVNode as Q, mergeProps as nt, createSlots as Zi, withCtx as j, createTextVNode as Re, createElementVNode as le, toDisplayString as we, createBlock as Qe, createCommentVNode as ee, toRaw as Un, onBeforeMount as J0, onUpdated as X0, normalizeProps as Z0, guardReactiveProps as $0, shallowReactive as ey, vShow as km, normalizeClass as El, Fragment as Ct, renderList as dn, renderSlot as Tn, withModifiers as el, shallowRef as ca } from "vue";
3
+ import { computed as x, markRaw as vm, defineComponent as Lt, reactive as ym, h as _, withDirectives as vn, getCurrentInstance as Ue, ref as te, onMounted as Ti, watch as ge, onBeforeUpdate as bm, inject as jo, onBeforeUnmount as ft, nextTick as lt, onDeactivated as Qo, onActivated as cc, Transition as pi, onUnmounted as K0, Teleport as Y0, unref as G0, provide as xm, createElementBlock as se, openBlock as Z, normalizeStyle as mt, createVNode as Q, mergeProps as nt, createSlots as Zi, withCtx as j, createTextVNode as Re, createElementVNode as le, toDisplayString as we, createBlock as Qe, createCommentVNode as ee, toRaw as Un, onBeforeMount as J0, onUpdated as X0, normalizeProps as Z0, guardReactiveProps as $0, shallowReactive as ey, vShow as km, normalizeClass as Wo, Fragment as Ct, renderList as dn, renderSlot as Tn, withModifiers as tl, shallowRef as ca } from "vue";
4
4
  import { useFormContext as ty, useFormField as iy, generateFieldId as ny, FieldRenderer as Il, HiddenField as ry } from "@quickflo/quickforms-vue";
5
5
  import { useFormContext as ID, useWatchFormValue as VD, useWatchFormValues as FD } from "@quickflo/quickforms-vue";
6
6
  const nu = {
@@ -231,7 +231,7 @@ const Mm = $e({
231
231
  ]);
232
232
  }
233
233
  });
234
- let fa, ss = 0;
234
+ let fa, ls = 0;
235
235
  const Vt = new Array(256);
236
236
  for (let i = 0; i < 256; i++)
237
237
  Vt[i] = (i + 256).toString(16).substring(1);
@@ -253,9 +253,9 @@ const yy = (() => {
253
253
  return t;
254
254
  };
255
255
  })(), gh = 4096;
256
- function tl() {
257
- (fa === void 0 || ss + 16 > gh) && (ss = 0, fa = yy(gh));
258
- const i = Array.prototype.slice.call(fa, ss, ss += 16);
256
+ function il() {
257
+ (fa === void 0 || ls + 16 > gh) && (ls = 0, fa = yy(gh));
258
+ const i = Array.prototype.slice.call(fa, ls, ls += 16);
259
259
  return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Vt[i[0]] + Vt[i[1]] + Vt[i[2]] + Vt[i[3]] + "-" + Vt[i[4]] + Vt[i[5]] + "-" + Vt[i[6]] + Vt[i[7]] + "-" + Vt[i[8]] + Vt[i[9]] + "-" + Vt[i[10]] + Vt[i[11]] + Vt[i[12]] + Vt[i[13]] + Vt[i[14]] + Vt[i[15]];
260
260
  }
261
261
  const Ir = te(
@@ -370,18 +370,18 @@ function Sy(i) {
370
370
  return i ?? null;
371
371
  }
372
372
  function vh(i, e) {
373
- return i ?? (e === !0 ? `f_${tl()}` : null);
373
+ return i ?? (e === !0 ? `f_${il()}` : null);
374
374
  }
375
375
  function Tm({ getValue: i, required: e = !0 } = {}) {
376
376
  if (Ir.value === !0) {
377
377
  const t = i !== void 0 ? te(Sy(i())) : te(null);
378
378
  return e === !0 && t.value === null && Ti(() => {
379
- t.value = `f_${tl()}`;
379
+ t.value = `f_${il()}`;
380
380
  }), i !== void 0 && ge(i, (n) => {
381
381
  t.value = vh(n, e);
382
382
  }), t;
383
383
  }
384
- return i !== void 0 ? x(() => vh(i(), e)) : te(`f_${tl()}`);
384
+ return i !== void 0 ? x(() => vh(i(), e)) : te(`f_${il()}`);
385
385
  }
386
386
  const yh = /^on[A-Z]/;
387
387
  function Cy() {
@@ -424,7 +424,7 @@ function Ty({ validate: i, resetValidation: e, requiresQForm: t }) {
424
424
  });
425
425
  } else t === !0 && console.error("Parent QForm not found on useFormChild()!");
426
426
  }
427
- const bh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, xh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, kh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ls = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, as = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, ga = {
427
+ const bh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, xh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, kh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, as = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, us = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, ga = {
428
428
  date: (i) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(i),
429
429
  time: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(i),
430
430
  fulltime: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(i),
@@ -439,12 +439,12 @@ const bh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, xh = /^#[0-9a-fA-F]{4}([0-9a-fA
439
439
  hexColor: (i) => bh.test(i),
440
440
  hexaColor: (i) => xh.test(i),
441
441
  hexOrHexaColor: (i) => kh.test(i),
442
- rgbColor: (i) => ls.test(i),
443
- rgbaColor: (i) => as.test(i),
444
- rgbOrRgbaColor: (i) => ls.test(i) || as.test(i),
445
- hexOrRgbColor: (i) => bh.test(i) || ls.test(i),
446
- hexaOrRgbaColor: (i) => xh.test(i) || as.test(i),
447
- anyColor: (i) => kh.test(i) || ls.test(i) || as.test(i)
442
+ rgbColor: (i) => as.test(i),
443
+ rgbaColor: (i) => us.test(i),
444
+ rgbOrRgbaColor: (i) => as.test(i) || us.test(i),
445
+ hexOrRgbColor: (i) => bh.test(i) || as.test(i),
446
+ hexaOrRgbaColor: (i) => xh.test(i) || us.test(i),
447
+ anyColor: (i) => kh.test(i) || as.test(i) || us.test(i)
448
448
  };
449
449
  function Dm(i, e = 250, t) {
450
450
  let n = null;
@@ -1218,7 +1218,7 @@ function Fy(i, e, t, n) {
1218
1218
  onMaskedClick: v
1219
1219
  };
1220
1220
  }
1221
- const Wo = {
1221
+ const Uo = {
1222
1222
  name: String
1223
1223
  };
1224
1224
  function Bm(i) {
@@ -1277,7 +1277,7 @@ const dr = $e({
1277
1277
  props: {
1278
1278
  ...Hl,
1279
1279
  ...Vy,
1280
- ...Wo,
1280
+ ...Uo,
1281
1281
  // override of useFieldProps > modelValue
1282
1282
  modelValue: [String, Number, FileList],
1283
1283
  shadowText: String,
@@ -1471,7 +1471,7 @@ const dr = $e({
1471
1471
  }), Gr(n, "nativeEl", () => h.value), E;
1472
1472
  }
1473
1473
  });
1474
- function il() {
1474
+ function nl() {
1475
1475
  if (window.getSelection !== void 0) {
1476
1476
  const i = window.getSelection();
1477
1477
  i.empty !== void 0 ? i.empty() : i.removeAllRanges !== void 0 && (i.removeAllRanges(), ou.is.mobile !== !0 && i.addRange(document.createRange()));
@@ -1531,7 +1531,7 @@ function vc({
1531
1531
  }, 300);
1532
1532
  },
1533
1533
  mobileCleanup(f) {
1534
- s.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), i.value === !0 && f !== void 0 && il();
1534
+ s.value.classList.remove("non-selectable"), l !== null && (clearTimeout(l), l = null), i.value === !0 && f !== void 0 && nl();
1535
1535
  }
1536
1536
  }), t = function(f = n.contextMenu) {
1537
1537
  if (n.noParentEvent === !0 || s.value === null) return;
@@ -1605,7 +1605,7 @@ function Vm(i, e) {
1605
1605
  changeScrollEvent: r
1606
1606
  };
1607
1607
  }
1608
- function Fs(i) {
1608
+ function Ns(i) {
1609
1609
  if (Object(i.$parent) === i.$parent)
1610
1610
  return i.$parent;
1611
1611
  let { parent: e } = i.$;
@@ -1705,12 +1705,12 @@ function Nm(i, e) {
1705
1705
  do {
1706
1706
  if (i.$options.name === "QMenu") {
1707
1707
  if (i.hide(e), i.$props.separateClosePopup === !0)
1708
- return Fs(i);
1708
+ return Ns(i);
1709
1709
  } else if (i.__qPortal === !0) {
1710
- const t = Fs(i);
1710
+ const t = Ns(i);
1711
1711
  return (t == null ? void 0 : t.$options.name) === "QPopupProxy" ? (i.hide(e), t) : i;
1712
1712
  }
1713
- i = Fs(i);
1713
+ i = Ns(i);
1714
1714
  } while (i != null);
1715
1715
  }
1716
1716
  function Jy(i, e, t) {
@@ -1722,7 +1722,7 @@ function Jy(i, e, t) {
1722
1722
  }
1723
1723
  i.hide(e);
1724
1724
  }
1725
- i = Fs(i);
1725
+ i = Ns(i);
1726
1726
  }
1727
1727
  }
1728
1728
  const Xy = $e({
@@ -1873,10 +1873,10 @@ function tb(i) {
1873
1873
  function ib(i) {
1874
1874
  return i === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : i.scrollLeft;
1875
1875
  }
1876
- let us;
1876
+ let cs;
1877
1877
  function nb() {
1878
- if (us !== void 0)
1879
- return us;
1878
+ if (cs !== void 0)
1879
+ return cs;
1880
1880
  const i = document.createElement("p"), e = document.createElement("div");
1881
1881
  su(i, {
1882
1882
  width: "100%",
@@ -1893,13 +1893,13 @@ function nb() {
1893
1893
  const t = i.offsetWidth;
1894
1894
  e.style.overflow = "scroll";
1895
1895
  let n = i.offsetWidth;
1896
- return t === n && (n = e.clientWidth), e.remove(), us = t - n, us;
1896
+ return t === n && (n = e.clientWidth), e.remove(), cs = t - n, cs;
1897
1897
  }
1898
1898
  function rb(i, e = !0) {
1899
1899
  return !i || i.nodeType !== Node.ELEMENT_NODE ? !1 : e ? i.scrollHeight > i.clientHeight && (i.classList.contains("scroll") || i.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(i)["overflow-y"])) : i.scrollWidth > i.clientWidth && (i.classList.contains("scroll") || i.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(i)["overflow-x"]));
1900
1900
  }
1901
- const { notPassiveCapture: nl } = Dt, ir = [];
1902
- function rl(i) {
1901
+ const { notPassiveCapture: rl } = Dt, ir = [];
1902
+ function ol(i) {
1903
1903
  const e = i.target;
1904
1904
  if (e === void 0 || e.nodeType === 8 || e.classList.contains("no-pointer-events") === !0) return;
1905
1905
  let t = Or.length - 1;
@@ -1923,14 +1923,14 @@ function rl(i) {
1923
1923
  }
1924
1924
  }
1925
1925
  function Qm(i) {
1926
- ir.push(i), ir.length === 1 && (document.addEventListener("mousedown", rl, nl), document.addEventListener("touchstart", rl, nl));
1926
+ ir.push(i), ir.length === 1 && (document.addEventListener("mousedown", ol, rl), document.addEventListener("touchstart", ol, rl));
1927
1927
  }
1928
- function ol(i) {
1928
+ function sl(i) {
1929
1929
  const e = ir.findIndex((t) => t === i);
1930
- e !== -1 && (ir.splice(e, 1), ir.length === 0 && (document.removeEventListener("mousedown", rl, nl), document.removeEventListener("touchstart", rl, nl)));
1930
+ e !== -1 && (ir.splice(e, 1), ir.length === 0 && (document.removeEventListener("mousedown", ol, rl), document.removeEventListener("touchstart", ol, rl)));
1931
1931
  }
1932
1932
  let Th, Oh;
1933
- function sl(i) {
1933
+ function ll(i) {
1934
1934
  const e = i.split(" ");
1935
1935
  return e.length !== 2 ? !1 : ["top", "center", "bottom"].includes(e[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(e[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
1936
1936
  }
@@ -1946,7 +1946,7 @@ const lu = {
1946
1946
  ["left", "middle", "right"].forEach((i) => {
1947
1947
  lu[`${i}#ltr`] = i, lu[`${i}#rtl`] = i;
1948
1948
  });
1949
- function ll(i, e) {
1949
+ function al(i, e) {
1950
1950
  const t = i.split(" ");
1951
1951
  return {
1952
1952
  vertical: t[0],
@@ -2114,12 +2114,12 @@ const li = $e({
2114
2114
  anchor: {
2115
2115
  type: String,
2116
2116
  default: "bottom middle",
2117
- validator: sl
2117
+ validator: ll
2118
2118
  },
2119
2119
  self: {
2120
2120
  type: String,
2121
2121
  default: "top middle",
2122
- validator: sl
2122
+ validator: ll
2123
2123
  },
2124
2124
  offset: {
2125
2125
  type: Array,
@@ -2142,7 +2142,7 @@ const li = $e({
2142
2142
  ],
2143
2143
  setup(i, { slots: e, emit: t, attrs: n }) {
2144
2144
  let r, o;
2145
- const s = Ue(), { proxy: { $q: l } } = s, a = te(null), u = te(!1), c = x(() => ll(i.anchor, l.lang.rtl)), h = x(() => ll(i.self, l.lang.rtl)), d = x(() => i.persistent !== !0), { registerTick: f, removeTick: m } = Dr(), { registerTimeout: g } = Ao(), { transitionProps: p, transitionStyle: w } = xc(i), { localScrollTarget: M, changeScrollEvent: y, unconfigureScrollTarget: v } = Vm(i, be), { anchorEl: k, canShow: T, anchorEvents: B } = vc({ showing: u, configureAnchorEl: $ }), { show: L, hide: W } = Wl({
2145
+ const s = Ue(), { proxy: { $q: l } } = s, a = te(null), u = te(!1), c = x(() => al(i.anchor, l.lang.rtl)), h = x(() => al(i.self, l.lang.rtl)), d = x(() => i.persistent !== !0), { registerTick: f, removeTick: m } = Dr(), { registerTimeout: g } = Ao(), { transitionProps: p, transitionStyle: w } = xc(i), { localScrollTarget: M, changeScrollEvent: y, unconfigureScrollTarget: v } = Vm(i, be), { anchorEl: k, canShow: T, anchorEvents: B } = vc({ showing: u, configureAnchorEl: $ }), { show: L, hide: W } = Wl({
2146
2146
  showing: u,
2147
2147
  canShow: T,
2148
2148
  handleShow: V,
@@ -2167,9 +2167,9 @@ const li = $e({
2167
2167
  )
2168
2168
  );
2169
2169
  ge(A, (z) => {
2170
- (z === !0 ? Qm : ol)(S);
2170
+ (z === !0 ? Qm : sl)(S);
2171
2171
  }), ft(() => {
2172
- ol(S);
2172
+ sl(S);
2173
2173
  });
2174
2174
  }
2175
2175
  function V(S) {
@@ -2203,7 +2203,7 @@ const li = $e({
2203
2203
  }
2204
2204
  function H(S) {
2205
2205
  if (l.platform.is.mobile === !0) {
2206
- il(), document.body.classList.add("non-selectable");
2206
+ nl(), document.body.classList.add("non-selectable");
2207
2207
  const A = k.value, z = ["touchmove", "touchcancel", "touchend", "click"].map((U) => [A, U, "delayHide", "passiveCapture"]);
2208
2208
  cn(B, "tooltipTemp", z);
2209
2209
  }
@@ -2212,7 +2212,7 @@ const li = $e({
2212
2212
  }, i.delay);
2213
2213
  }
2214
2214
  function N(S) {
2215
- l.platform.is.mobile === !0 && (tr(B, "tooltipTemp"), il(), setTimeout(() => {
2215
+ l.platform.is.mobile === !0 && (tr(B, "tooltipTemp"), nl(), setTimeout(() => {
2216
2216
  document.body.classList.remove("non-selectable");
2217
2217
  }, 10)), g(() => {
2218
2218
  W(S);
@@ -2275,7 +2275,7 @@ function ub(i) {
2275
2275
  const e = (t = i == null ? void 0 : i.layout) == null ? void 0 : t.fieldGap;
2276
2276
  return e ? ab[e] ?? e : "16px";
2277
2277
  }
2278
- function Uo(i, e, t) {
2278
+ function Ko(i, e, t) {
2279
2279
  const n = (e == null ? void 0 : e.global) || {}, r = t !== "jsoneditor" ? (e == null ? void 0 : e[t]) || {} : {}, o = i["x-component-props"] || {}, s = i["x-quasar-props"] || {};
2280
2280
  return {
2281
2281
  ...n,
@@ -2297,7 +2297,7 @@ function Kt(i, e, t = {}) {
2297
2297
  i,
2298
2298
  e,
2299
2299
  { label: n }
2300
- ), f = Km(), m = ny(i), g = x(() => Uo(
2300
+ ), f = Km(), m = ny(i), g = x(() => Ko(
2301
2301
  e,
2302
2302
  f == null ? void 0 : f.componentDefaults,
2303
2303
  r
@@ -2650,7 +2650,7 @@ const xb = {
2650
2650
  }, kb = {
2651
2651
  ...tn,
2652
2652
  ...Vl,
2653
- ...Wo,
2653
+ ...Uo,
2654
2654
  modelValue: {
2655
2655
  required: !0,
2656
2656
  default: null
@@ -3379,7 +3379,7 @@ function Zm(i) {
3379
3379
  function $m(i) {
3380
3380
  Pt.is.desktop === !0 && (nr.push(i), nr.length === 1 && Zm("addEventListener"));
3381
3381
  }
3382
- function al(i) {
3382
+ function ul(i) {
3383
3383
  const e = nr.indexOf(i);
3384
3384
  e !== -1 && (nr.splice(e, 1), nr.length === 0 && Zm("removeEventListener"));
3385
3385
  }
@@ -3414,11 +3414,11 @@ const ig = $e({
3414
3414
  square: Boolean,
3415
3415
  anchor: {
3416
3416
  type: String,
3417
- validator: sl
3417
+ validator: ll
3418
3418
  },
3419
3419
  self: {
3420
3420
  type: String,
3421
- validator: sl
3421
+ validator: ll
3422
3422
  },
3423
3423
  offset: {
3424
3424
  type: Array,
@@ -3460,17 +3460,17 @@ const ig = $e({
3460
3460
  (ne.type === "touchstart" || ne.target.classList.contains("q-dialog__backdrop")) && dt(ne), !0;
3461
3461
  }
3462
3462
  }, O = x(
3463
- () => ll(
3463
+ () => al(
3464
3464
  i.anchor || (i.cover === !0 ? "center middle" : "bottom start"),
3465
3465
  c.lang.rtl
3466
3466
  )
3467
- ), F = x(() => i.cover === !0 ? O.value : ll(i.self || "top start", c.lang.rtl)), Y = x(
3467
+ ), F = x(() => i.cover === !0 ? O.value : al(i.self || "top start", c.lang.rtl)), Y = x(
3468
3468
  () => (i.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
3469
3469
  ), H = x(() => i.autoClose === !0 ? { onClick: A } : {}), N = x(
3470
3470
  () => d.value === !0 && i.persistent !== !0
3471
3471
  );
3472
3472
  ge(N, (ne) => {
3473
- ne === !0 ? ($m(U), Qm(V)) : (al(U), ol(V));
3473
+ ne === !0 ? ($m(U), Qm(V)) : (ul(U), sl(V));
3474
3474
  });
3475
3475
  function $() {
3476
3476
  Nl(() => {
@@ -3502,7 +3502,7 @@ const ig = $e({
3502
3502
  }, i.transitionDuration);
3503
3503
  }
3504
3504
  function b(ne) {
3505
- o = void 0, s !== void 0 && (s(), s = void 0), (ne === !0 || d.value === !0) && (au(z), T(), ol(V), al(U)), ne !== !0 && (r = null);
3505
+ o = void 0, s !== void 0 && (s(), s = void 0), (ne === !0 || d.value === !0) && (au(z), T(), sl(V), ul(U)), ne !== !0 && (r = null);
3506
3506
  }
3507
3507
  function S() {
3508
3508
  (B.value !== null || i.scrollTarget !== void 0) && (v.value = jm(B.value, i.scrollTarget), k(v.value, ie));
@@ -3583,7 +3583,7 @@ function zb(i) {
3583
3583
  function Hh(i) {
3584
3584
  i.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
3585
3585
  }
3586
- function cs(i) {
3586
+ function hs(i) {
3587
3587
  xa !== !0 && (xa = !0, requestAnimationFrame(() => {
3588
3588
  xa = !1;
3589
3589
  const { height: e } = i.target, { clientHeight: t, scrollTop: n } = document.scrollingElement;
@@ -3594,9 +3594,9 @@ function zh(i) {
3594
3594
  const e = document.body, t = window.visualViewport !== void 0;
3595
3595
  if (i === "add") {
3596
3596
  const { overflowY: n, overflowX: r } = window.getComputedStyle(e);
3597
- ya = ib(window), ba = tb(window), Vh = e.style.left, Fh = e.style.top, Nh = window.location.href, e.style.left = `-${ya}px`, e.style.top = `-${ba}px`, r !== "hidden" && (r === "scroll" || e.scrollWidth > window.innerWidth) && e.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || e.scrollHeight > window.innerHeight) && e.classList.add("q-body--force-scrollbar-y"), e.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, Pt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", cs, Dt.passiveCapture), window.visualViewport.addEventListener("scroll", cs, Dt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Hh, Dt.passiveCapture));
3597
+ ya = ib(window), ba = tb(window), Vh = e.style.left, Fh = e.style.top, Nh = window.location.href, e.style.left = `-${ya}px`, e.style.top = `-${ba}px`, r !== "hidden" && (r === "scroll" || e.scrollWidth > window.innerWidth) && e.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || e.scrollHeight > window.innerHeight) && e.classList.add("q-body--force-scrollbar-y"), e.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, Pt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", hs, Dt.passiveCapture), window.visualViewport.addEventListener("scroll", hs, Dt.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Hh, Dt.passiveCapture));
3598
3598
  }
3599
- Pt.is.desktop === !0 && Pt.is.mac === !0 && window[`${i}EventListener`]("wheel", Hb, Dt.notPassive), i === "remove" && (Pt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", cs, Dt.passiveCapture), window.visualViewport.removeEventListener("scroll", cs, Dt.passiveCapture)) : window.removeEventListener("scroll", Hh, Dt.passiveCapture)), e.classList.remove("q-body--prevent-scroll"), e.classList.remove("q-body--force-scrollbar-x"), e.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, e.style.left = Vh, e.style.top = Fh, window.location.href === Nh && window.scrollTo(ya, ba), lo = void 0);
3599
+ Pt.is.desktop === !0 && Pt.is.mac === !0 && window[`${i}EventListener`]("wheel", Hb, Dt.notPassive), i === "remove" && (Pt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", hs, Dt.passiveCapture), window.visualViewport.removeEventListener("scroll", hs, Dt.passiveCapture)) : window.removeEventListener("scroll", Hh, Dt.passiveCapture)), e.classList.remove("q-body--prevent-scroll"), e.classList.remove("q-body--force-scrollbar-x"), e.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, e.style.left = Vh, e.style.top = Fh, window.location.href === Nh && window.scrollTo(ya, ba), lo = void 0);
3600
3600
  }
3601
3601
  function jb(i) {
3602
3602
  let e = "add";
@@ -3625,7 +3625,7 @@ function Qb() {
3625
3625
  }
3626
3626
  };
3627
3627
  }
3628
- let hs = 0;
3628
+ let ds = 0;
3629
3629
  const Wb = {
3630
3630
  standard: "fixed-full flex-center",
3631
3631
  top: "fixed-top justify-center",
@@ -3706,7 +3706,7 @@ const Wb = {
3706
3706
  ge(() => i.maximized, (A) => {
3707
3707
  s.value === !0 && $(A);
3708
3708
  }), ge(I, (A) => {
3709
- f(A), A === !0 ? (tg(b), $m(H)) : (au(b), al(H));
3709
+ f(A), A === !0 ? (tg(b), $m(H)) : (au(b), ul(H));
3710
3710
  });
3711
3711
  function V(A) {
3712
3712
  var z;
@@ -3755,10 +3755,10 @@ const Wb = {
3755
3755
  i.seamless !== !0 && (i.persistent === !0 || i.noEscDismiss === !0 ? i.maximized !== !0 && i.noShake !== !0 && Y() : (t("escapeKey"), L()));
3756
3756
  }
3757
3757
  function N(A) {
3758
- a !== null && (clearTimeout(a), a = null), (A === !0 || s.value === !0) && ($(!1), i.seamless !== !0 && (f(!1), au(b), al(H))), A !== !0 && (u = null);
3758
+ a !== null && (clearTimeout(a), a = null), (A === !0 || s.value === !0) && ($(!1), i.seamless !== !0 && (f(!1), au(b), ul(H))), A !== !0 && (u = null);
3759
3759
  }
3760
3760
  function $(A) {
3761
- A === !0 ? c !== !0 && (hs < 1 && document.body.classList.add("q-body--dialog"), hs++, c = !0) : c === !0 && (hs < 2 && document.body.classList.remove("q-body--dialog"), hs--, c = !1);
3761
+ A === !0 ? c !== !0 && (ds < 1 && document.body.classList.add("q-body--dialog"), ds++, c = !0) : c === !0 && (ds < 2 && document.body.classList.remove("q-body--dialog"), ds--, c = !1);
3762
3762
  }
3763
3763
  function be(A) {
3764
3764
  h !== !0 && (L(A), t("click", A));
@@ -4280,12 +4280,12 @@ function wa(i, e) {
4280
4280
  const t = i !== void 0 ? i : e;
4281
4281
  return (n) => n !== null && typeof n == "object" && t in n ? n[t] : n;
4282
4282
  }
4283
- const Ko = $e({
4283
+ const Yo = $e({
4284
4284
  name: "QSelect",
4285
4285
  inheritAttrs: !1,
4286
4286
  props: {
4287
4287
  ...Wh,
4288
- ...Wo,
4288
+ ...Uo,
4289
4289
  ...Hl,
4290
4290
  // override of useFieldProps > modelValue
4291
4291
  modelValue: {
@@ -4667,7 +4667,7 @@ const Ko = $e({
4667
4667
  function xn() {
4668
4668
  return Nn();
4669
4669
  }
4670
- function os() {
4670
+ function ss() {
4671
4671
  return i.hideSelected === !0 ? [] : e["selected-item"] !== void 0 ? Et.value.map((q) => e["selected-item"](q)).slice() : e.selected !== void 0 ? [].concat(e.selected()) : i.useChips === !0 ? Et.value.map((q, de) => _(Xm, {
4672
4672
  key: "option-" + de,
4673
4673
  removable: E.editable.value === !0 && ye.value(q.opt) !== !0,
@@ -4964,7 +4964,7 @@ const Ko = $e({
4964
4964
  }
4965
4965
  },
4966
4966
  getControl: (q) => {
4967
- const de = os(), pe = q === !0 || s.value !== !0 || m !== !0;
4967
+ const de = ss(), pe = q === !0 || s.value !== !0 || m !== !0;
4968
4968
  if (i.useInput === !0)
4969
4969
  de.push($r(q, pe));
4970
4970
  else if (E.editable.value === !0) {
@@ -5044,7 +5044,7 @@ const Ko = $e({
5044
5044
  label: t.label,
5045
5045
  componentType: "select"
5046
5046
  }), d = x(() => {
5047
- const y = Uo(
5047
+ const y = Ko(
5048
5048
  t.schema,
5049
5049
  h == null ? void 0 : h.componentDefaults,
5050
5050
  "select"
@@ -5099,7 +5099,7 @@ const Ko = $e({
5099
5099
  }
5100
5100
  });
5101
5101
  }, get QSelect() {
5102
- return Ko;
5102
+ return Yo;
5103
5103
  }, get QIcon() {
5104
5104
  return We;
5105
5105
  }, get QTooltip() {
@@ -5718,7 +5718,7 @@ function Xh(i, e, t) {
5718
5718
  function m1(i) {
5719
5719
  return g1(i) === 0;
5720
5720
  }
5721
- function Ns(i, e) {
5721
+ function Hs(i, e) {
5722
5722
  return e <= 6 ? 31 : e <= 11 || m1(i) ? 30 : 29;
5723
5723
  }
5724
5724
  function g1(i) {
@@ -5789,7 +5789,7 @@ function st(i, e) {
5789
5789
  function vi(i, e) {
5790
5790
  return i - ~~(i / e) * e;
5791
5791
  }
5792
- const y1 = ["gregorian", "persian"], ul = {
5792
+ const y1 = ["gregorian", "persian"], cl = {
5793
5793
  // should define modelValue in the target component
5794
5794
  mask: {
5795
5795
  type: String
@@ -6127,7 +6127,7 @@ function ao(i, e, t, n, r) {
6127
6127
  if (c.D !== void 0) {
6128
6128
  if (o.day = parseInt(h[c.D], 10), o.year === null || o.month === null || o.day < 1)
6129
6129
  return o;
6130
- const f = n !== "persian" ? new Date(o.year, o.month, 0).getDate() : Ns(o.year, o.month);
6130
+ const f = n !== "persian" ? new Date(o.year, o.month, 0).getDate() : Hs(o.year, o.month);
6131
6131
  if (o.day > f)
6132
6132
  return o;
6133
6133
  }
@@ -6170,7 +6170,7 @@ function ln(i, e, t) {
6170
6170
  }
6171
6171
  return n;
6172
6172
  }
6173
- function ds(i, e, t) {
6173
+ function fs(i, e, t) {
6174
6174
  return (i.getTime() - i.getTimezoneOffset() * cu - (e.getTime() - e.getTimezoneOffset() * cu)) / t;
6175
6175
  }
6176
6176
  function gg(i, e, t = "days") {
@@ -6185,16 +6185,16 @@ function gg(i, e, t = "days") {
6185
6185
  case "days":
6186
6186
  case "day":
6187
6187
  case "date":
6188
- return ds(ln(n, "day"), ln(r, "day"), dg);
6188
+ return fs(ln(n, "day"), ln(r, "day"), dg);
6189
6189
  case "hours":
6190
6190
  case "hour":
6191
- return ds(ln(n, "hour"), ln(r, "hour"), b1);
6191
+ return fs(ln(n, "hour"), ln(r, "hour"), b1);
6192
6192
  case "minutes":
6193
6193
  case "minute":
6194
- return ds(ln(n, "minute"), ln(r, "minute"), cu);
6194
+ return fs(ln(n, "minute"), ln(r, "minute"), cu);
6195
6195
  case "seconds":
6196
6196
  case "second":
6197
- return ds(ln(n, "second"), ln(r, "second"), 1e3);
6197
+ return fs(ln(n, "second"), ln(r, "second"), 1e3);
6198
6198
  }
6199
6199
  }
6200
6200
  function Ma(i) {
@@ -6405,8 +6405,8 @@ function kn(i) {
6405
6405
  const vg = $e({
6406
6406
  name: "QDate",
6407
6407
  props: {
6408
- ...ul,
6409
- ...Wo,
6408
+ ...cl,
6409
+ ...Uo,
6410
6410
  ...tn,
6411
6411
  modelValue: {
6412
6412
  required: !0,
@@ -6417,7 +6417,7 @@ const vg = $e({
6417
6417
  title: String,
6418
6418
  subtitle: String,
6419
6419
  mask: {
6420
- ...ul.mask,
6420
+ ...cl.mask,
6421
6421
  // this mask is forced
6422
6422
  // when using persian calendar
6423
6423
  default: "YYYY/MM/DD"
@@ -6526,7 +6526,7 @@ const vg = $e({
6526
6526
  return R > 0 ? C.slice(R, 7).concat(C.slice(0, R)) : C;
6527
6527
  }), ne = x(() => {
6528
6528
  const C = v.value;
6529
- return i.calendar !== "persian" ? new Date(C.year, C.month, 0).getDate() : Ns(C.year, C.month);
6529
+ return i.calendar !== "persian" ? new Date(C.year, C.month, 0).getDate() : Hs(C.year, C.month);
6530
6530
  }), Fe = x(() => typeof i.eventColor == "function" ? i.eventColor : () => i.eventColor), De = x(() => {
6531
6531
  if (i.navigationMinYearMonth === void 0)
6532
6532
  return null;
@@ -6609,7 +6609,7 @@ const vg = $e({
6609
6609
  const fe = Xh(G, ue, 1);
6610
6610
  C = new Date(fe.gy, fe.gm - 1, fe.gd);
6611
6611
  let _e = ue - 1, ve = G;
6612
- _e === 0 && (_e = 12, ve--), R = Ns(ve, _e);
6612
+ _e === 0 && (_e = 12, ve--), R = Hs(ve, _e);
6613
6613
  }
6614
6614
  return {
6615
6615
  days: C.getDay() - ie.value - 1,
@@ -6830,20 +6830,20 @@ const vg = $e({
6830
6830
  }));
6831
6831
  }
6832
6832
  function Nn(C, R, G) {
6833
- const ue = C !== null && C.length === 1 && i.multiple === !1 ? C[0] : C, { reason: fe, details: _e } = os(R, G);
6833
+ const ue = C !== null && C.length === 1 && i.multiple === !1 ? C[0] : C, { reason: fe, details: _e } = ss(R, G);
6834
6834
  ye(ue), t("update:modelValue", ue, fe, _e);
6835
6835
  }
6836
6836
  function xn(C) {
6837
6837
  const R = H.value[0] !== void 0 && H.value[0].dateHash !== null ? { ...H.value[0] } : { ...v.value };
6838
6838
  lt(() => {
6839
6839
  R.year = v.value.year, R.month = v.value.month;
6840
- const G = i.calendar !== "persian" ? new Date(R.year, R.month, 0).getDate() : Ns(R.year, R.month);
6840
+ const G = i.calendar !== "persian" ? new Date(R.year, R.month, 0).getDate() : Hs(R.year, R.month);
6841
6841
  R.day = Math.min(Math.max(1, R.day), G);
6842
- const ue = rn(R), { details: fe } = os("", R);
6842
+ const ue = rn(R), { details: fe } = ss("", R);
6843
6843
  ye(ue), t("update:modelValue", ue, C, fe);
6844
6844
  });
6845
6845
  }
6846
- function os(C, R) {
6846
+ function ss(C, R) {
6847
6847
  return R.from !== void 0 ? {
6848
6848
  reason: `${C}-range`,
6849
6849
  details: {
@@ -7543,7 +7543,7 @@ const q1 = hc(
7543
7543
  const u = r.event.mouse === !0, c = () => {
7544
7544
  n(o, u);
7545
7545
  let f;
7546
- t.preserveCursor !== !0 && t.preservecursor !== !0 && (f = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), u === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), il(), r.styleCleanup = (m) => {
7546
+ t.preserveCursor !== !0 && t.preservecursor !== !0 && (f = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), u === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), nl(), r.styleCleanup = (m) => {
7547
7547
  if (r.styleCleanup = void 0, f !== void 0 && (document.documentElement.style.cursor = f), document.body.classList.remove("non-selectable"), u === !0) {
7548
7548
  const g = () => {
7549
7549
  document.body.classList.remove("no-pointer-events--children");
@@ -7622,14 +7622,14 @@ const yg = $e({
7622
7622
  name: "QTime",
7623
7623
  props: {
7624
7624
  ...tn,
7625
- ...Wo,
7626
- ...ul,
7625
+ ...Uo,
7626
+ ...cl,
7627
7627
  modelValue: {
7628
7628
  required: !0,
7629
7629
  validator: (i) => typeof i == "string" || i === null
7630
7630
  },
7631
7631
  mask: {
7632
- ...ul.mask,
7632
+ ...cl.mask,
7633
7633
  default: null
7634
7634
  },
7635
7635
  format24h: {
@@ -8692,7 +8692,7 @@ const sd = /* @__PURE__ */ Yt(z1, [["render", U1], ["__scopeId", "data-v-76abc7a
8692
8692
  t("afterHide");
8693
8693
  }
8694
8694
  function D() {
8695
- h === void 0 && (h = tl()), o.value === !0 && (Qn[i.group] = h);
8695
+ h === void 0 && (h = il()), o.value === !0 && (Qn[i.group] = h);
8696
8696
  const H = ge(o, ($) => {
8697
8697
  $ === !0 ? Qn[i.group] = h : Qn[i.group] === h && delete Qn[i.group];
8698
8698
  }), N = ge(
@@ -8903,7 +8903,7 @@ function ax(i, e, t, n, r, o) {
8903
8903
  "div",
8904
8904
  {
8905
8905
  style: mt({ marginBottom: n.fieldGap }),
8906
- class: El(["quickform-object-field", n.sectionStyleClass])
8906
+ class: Wo(["quickform-object-field", n.sectionStyleClass])
8907
8907
  },
8908
8908
  [
8909
8909
  ee(" Flat mode: fields only, no expansion panel (parent handles label + expand/collapse) "),
@@ -9041,7 +9041,7 @@ const ld = /* @__PURE__ */ Yt(J1, [["render", ax], ["__scopeId", "data-v-813eef2
9041
9041
  );
9042
9042
  return () => _(i.tag, { class: t.value }, Bt(e.default));
9043
9043
  }
9044
- }), Hs = new pm(), ux = /* @__PURE__ */ Lt({
9044
+ }), zs = new pm(), ux = /* @__PURE__ */ Lt({
9045
9045
  __name: "QuasarArrayField",
9046
9046
  props: {
9047
9047
  hideLabel: { type: Boolean, required: !1, default: !1 },
@@ -9159,7 +9159,7 @@ const ld = /* @__PURE__ */ Yt(J1, [["render", ax], ["__scopeId", "data-v-813eef2
9159
9159
  return { ...D.value, "x-flat": !0 };
9160
9160
  }), V = () => {
9161
9161
  if (!D.value) return;
9162
- const b = Hs.getDefaultValue(D.value);
9162
+ const b = zs.getDefaultValue(D.value);
9163
9163
  o.value = [...k.value, b];
9164
9164
  }, O = (b) => {
9165
9165
  const S = [...k.value];
@@ -9230,7 +9230,7 @@ function Tx(i, e, t, n, r, o) {
9230
9230
  return Z(), se("div", {
9231
9231
  id: n.fieldId,
9232
9232
  style: mt({ marginBottom: n.fieldGap }),
9233
- class: El(["quickform-array-field", n.sectionStyleClass])
9233
+ class: Wo(["quickform-array-field", n.sectionStyleClass])
9234
9234
  }, [
9235
9235
  ee(" Array header "),
9236
9236
  le("div", hx, [
@@ -9324,7 +9324,7 @@ function Tx(i, e, t, n, r, o) {
9324
9324
  ]),
9325
9325
  le("div", {
9326
9326
  class: "quickform-array-item-actions",
9327
- onClick: e[0] || (e[0] = el(() => {
9327
+ onClick: e[0] || (e[0] = tl(() => {
9328
9328
  }, ["stop"]))
9329
9329
  }, [
9330
9330
  ee(" Slot for additional per-item actions (e.g., template toggle) "),
@@ -10055,7 +10055,7 @@ class bt extends ze {
10055
10055
  decompose(e, t, n, r) {
10056
10056
  let o = e <= 0 && t >= this.length ? this : new bt(fd(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
10057
10057
  if (r & 1) {
10058
- let s = n.pop(), l = zs(o.text, s.text.slice(), 0, o.length);
10058
+ let s = n.pop(), l = js(o.text, s.text.slice(), 0, o.length);
10059
10059
  if (l.length <= 32)
10060
10060
  n.push(new bt(l, s.length + o.length));
10061
10061
  else {
@@ -10069,7 +10069,7 @@ class bt extends ze {
10069
10069
  if (!(n instanceof bt))
10070
10070
  return super.replace(e, t, n);
10071
10071
  [e, t] = Hr(this, e, t);
10072
- let r = zs(this.text, zs(n.text, fd(this.text, 0, e)), t), o = this.length + n.length - (t - e);
10072
+ let r = js(this.text, js(n.text, fd(this.text, 0, e)), t), o = this.length + n.length - (t - e);
10073
10073
  return r.length <= 32 ? new bt(r, o) : ji.from(bt.split(r, []), o);
10074
10074
  }
10075
10075
  sliceString(e, t = this.length, n = `
@@ -10200,7 +10200,7 @@ function Wx(i) {
10200
10200
  e += t.length + 1;
10201
10201
  return e;
10202
10202
  }
10203
- function zs(i, e, t = 0, n = 1e9) {
10203
+ function js(i, e, t = 0, n = 1e9) {
10204
10204
  for (let r = 0, o = 0, s = !0; o < i.length && r <= n; o++) {
10205
10205
  let l = i[o], a = r + l.length;
10206
10206
  a >= t && (a > n && (l = l.slice(0, n - r)), r < t && (l = l.slice(t - r)), s ? (e[e.length - 1] += l, s = !1) : e.push(l)), r = a + 1;
@@ -10208,7 +10208,7 @@ function zs(i, e, t = 0, n = 1e9) {
10208
10208
  return e;
10209
10209
  }
10210
10210
  function fd(i, e, t) {
10211
- return zs(i, [""], e, t);
10211
+ return js(i, [""], e, t);
10212
10212
  }
10213
10213
  class po {
10214
10214
  constructor(e, t = 1) {
@@ -11033,7 +11033,7 @@ class me {
11033
11033
  Returns an extension that adds the given value to this facet.
11034
11034
  */
11035
11035
  of(e) {
11036
- return new js([], this, 0, e);
11036
+ return new Qs([], this, 0, e);
11037
11037
  }
11038
11038
  /**
11039
11039
  Create an extension that computes a value for the facet from a
@@ -11047,7 +11047,7 @@ class me {
11047
11047
  compute(e, t) {
11048
11048
  if (this.isStatic)
11049
11049
  throw new Error("Can't compute a static facet");
11050
- return new js(e, this, 1, t);
11050
+ return new Qs(e, this, 1, t);
11051
11051
  }
11052
11052
  /**
11053
11053
  Create an extension that computes zero or more values for this
@@ -11056,7 +11056,7 @@ class me {
11056
11056
  computeN(e, t) {
11057
11057
  if (this.isStatic)
11058
11058
  throw new Error("Can't compute a static facet");
11059
- return new js(e, this, 2, t);
11059
+ return new Qs(e, this, 2, t);
11060
11060
  }
11061
11061
  from(e, t) {
11062
11062
  return t || (t = (n) => n), this.compute([e], (n) => t(n.field(e)));
@@ -11065,7 +11065,7 @@ class me {
11065
11065
  function Pc(i, e) {
11066
11066
  return i == e || i.length == e.length && i.every((t, n) => t === e[n]);
11067
11067
  }
11068
- class js {
11068
+ class Qs {
11069
11069
  constructor(e, t, n, r) {
11070
11070
  this.dependencies = e, this.facet = t, this.type = n, this.value = r, this.id = _c++;
11071
11071
  }
@@ -11089,7 +11089,7 @@ class js {
11089
11089
  reconfigure: (h, d) => {
11090
11090
  let f, m = d.config.address[o];
11091
11091
  if (m != null) {
11092
- let g = hl(d, m);
11092
+ let g = dl(d, m);
11093
11093
  if (this.dependencies.every((p) => p instanceof me ? d.facet(p) === h.facet(p) : p instanceof Tt ? d.field(p, !1) == h.field(p, !1) : !0) || (l ? md(f = n(h), g, r) : r(f = n(h), g)))
11094
11094
  return h.values[s] = g, 0;
11095
11095
  } else
@@ -11118,7 +11118,7 @@ function Gx(i, e, t) {
11118
11118
  function l(a) {
11119
11119
  let u = [];
11120
11120
  for (let c = 0; c < n.length; c++) {
11121
- let h = hl(a, n[c]);
11121
+ let h = dl(a, n[c]);
11122
11122
  if (r[c] == 2)
11123
11123
  for (let d of h)
11124
11124
  u.push(d);
@@ -11148,7 +11148,7 @@ function Gx(i, e, t) {
11148
11148
  }
11149
11149
  };
11150
11150
  }
11151
- const fs = /* @__PURE__ */ me.define({ static: !0 });
11151
+ const ms = /* @__PURE__ */ me.define({ static: !0 });
11152
11152
  class Tt {
11153
11153
  constructor(e, t, n, r, o) {
11154
11154
  this.id = e, this.createF = t, this.updateF = n, this.compareF = r, this.spec = o, this.provides = void 0;
@@ -11161,7 +11161,7 @@ class Tt {
11161
11161
  return e.provide && (t.provides = e.provide(t)), t;
11162
11162
  }
11163
11163
  create(e) {
11164
- let t = e.facet(fs).find((n) => n.field == this);
11164
+ let t = e.facet(ms).find((n) => n.field == this);
11165
11165
  return ((t == null ? void 0 : t.create) || this.createF)(e);
11166
11166
  }
11167
11167
  /**
@@ -11176,7 +11176,7 @@ class Tt {
11176
11176
  return this.compareF(o, s) ? 0 : (n.values[t] = s, 1);
11177
11177
  },
11178
11178
  reconfigure: (n, r) => {
11179
- let o = n.facet(fs), s = r.facet(fs), l;
11179
+ let o = n.facet(ms), s = r.facet(ms), l;
11180
11180
  return (l = o.find((a) => a.field == this)) && l != s.find((a) => a.field == this) ? (n.values[t] = l.create(n), 1) : r.config.address[this.id] != null ? (n.values[t] = r.field(this), 0) : (n.values[t] = this.create(n), 1);
11181
11181
  }
11182
11182
  };
@@ -11187,7 +11187,7 @@ class Tt {
11187
11187
  non-default starting value for the field.
11188
11188
  */
11189
11189
  init(e) {
11190
- return [this, fs.of({ field: this, create: e })];
11190
+ return [this, ms.of({ field: this, create: e })];
11191
11191
  }
11192
11192
  /**
11193
11193
  State field instances can be used as
@@ -11233,7 +11233,7 @@ class Og {
11233
11233
  this.inner = e, this.prec = t;
11234
11234
  }
11235
11235
  }
11236
- class Yo {
11236
+ class Go {
11237
11237
  /**
11238
11238
  Create an instance of this compartment to add to your [state
11239
11239
  configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
@@ -11246,7 +11246,7 @@ class Yo {
11246
11246
  reconfigures this compartment.
11247
11247
  */
11248
11248
  reconfigure(e) {
11249
- return Yo.reconfigure.of({ compartment: this, extension: e });
11249
+ return Go.reconfigure.of({ compartment: this, extension: e });
11250
11250
  }
11251
11251
  /**
11252
11252
  Get the current content of the compartment in the state, or
@@ -11261,7 +11261,7 @@ class vu {
11261
11261
  this.compartment = e, this.inner = t;
11262
11262
  }
11263
11263
  }
11264
- class cl {
11264
+ class hl {
11265
11265
  constructor(e, t, n, r, o, s) {
11266
11266
  for (this.base = e, this.compartments = t, this.dynamicSlots = n, this.address = r, this.staticValues = o, this.facets = s, this.statusTemplate = []; this.statusTemplate.length < n.length; )
11267
11267
  this.statusTemplate.push(
@@ -11300,7 +11300,7 @@ class cl {
11300
11300
  }
11301
11301
  }
11302
11302
  let h = u.map((d) => d(l));
11303
- return new cl(e, s, h, l, a, o);
11303
+ return new hl(e, s, h, l, a, o);
11304
11304
  }
11305
11305
  }
11306
11306
  function Jx(i, e, t) {
@@ -11325,7 +11325,7 @@ function Jx(i, e, t) {
11325
11325
  o(s.inner, s.prec);
11326
11326
  else if (s instanceof Tt)
11327
11327
  n[l].push(s), s.provides && o(s.provides, l);
11328
- else if (s instanceof js)
11328
+ else if (s instanceof Qs)
11329
11329
  n[l].push(s), s.facet.extensions && o(s.facet.extensions, Yn.default);
11330
11330
  else {
11331
11331
  let u = s.extension;
@@ -11348,7 +11348,7 @@ function vo(i, e) {
11348
11348
  let r = i.computeSlot(i, i.config.dynamicSlots[t]);
11349
11349
  return i.status[t] = 2 | r;
11350
11350
  }
11351
- function hl(i, e) {
11351
+ function dl(i, e) {
11352
11352
  return e & 1 ? i.config.staticValues[e >> 1] : i.values[e >> 1];
11353
11353
  }
11354
11354
  const Dg = /* @__PURE__ */ me.define(), yu = /* @__PURE__ */ me.define({
@@ -11652,7 +11652,7 @@ class Ie {
11652
11652
  throw new RangeError("Field is not present in this state");
11653
11653
  return;
11654
11654
  }
11655
- return vo(this, n), hl(this, n);
11655
+ return vo(this, n), dl(this, n);
11656
11656
  }
11657
11657
  /**
11658
11658
  Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
@@ -11678,9 +11678,9 @@ class Ie {
11678
11678
  applyTransaction(e) {
11679
11679
  let t = this.config, { base: n, compartments: r } = t;
11680
11680
  for (let l of e.effects)
11681
- l.is(Yo.reconfigure) ? (t && (r = /* @__PURE__ */ new Map(), t.compartments.forEach((a, u) => r.set(u, a)), t = null), r.set(l.value.compartment, l.value.extension)) : l.is(Te.reconfigure) ? (t = null, n = l.value) : l.is(Te.appendConfig) && (t = null, n = Pr(n).concat(l.value));
11681
+ l.is(Go.reconfigure) ? (t && (r = /* @__PURE__ */ new Map(), t.compartments.forEach((a, u) => r.set(u, a)), t = null), r.set(l.value.compartment, l.value.extension)) : l.is(Te.reconfigure) ? (t = null, n = l.value) : l.is(Te.appendConfig) && (t = null, n = Pr(n).concat(l.value));
11682
11682
  let o;
11683
- t ? o = e.startState.values.slice() : (t = cl.resolve(n, r, this), o = new Ie(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, u) => u.reconfigure(a, this), null).values);
11683
+ t ? o = e.startState.values.slice() : (t = hl.resolve(n, r, this), o = new Ie(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, u) => u.reconfigure(a, this), null).values);
11684
11684
  let s = e.startState.facet(yu) ? e.newSelection : e.newSelection.asSingle();
11685
11685
  new Ie(t, e.newDoc, s, o, (l, a) => a.update(l, e), e);
11686
11686
  }
@@ -11747,7 +11747,7 @@ class Ie {
11747
11747
  */
11748
11748
  facet(e) {
11749
11749
  let t = this.config.address[e.id];
11750
- return t == null ? e.default : (vo(this, t), hl(this, t));
11750
+ return t == null ? e.default : (vo(this, t), dl(this, t));
11751
11751
  }
11752
11752
  /**
11753
11753
  Convert this state to a JSON-serializable object. When custom
@@ -11796,7 +11796,7 @@ class Ie {
11796
11796
  transactions.
11797
11797
  */
11798
11798
  static create(e = {}) {
11799
- let t = cl.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof ze ? e.doc : ze.of((e.doc || "").split(t.staticFacet(Ie.lineSeparator) || fu)), r = e.selection ? e.selection instanceof X ? e.selection : X.single(e.selection.anchor, e.selection.head) : X.single(0);
11799
+ let t = hl.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof ze ? e.doc : ze.of((e.doc || "").split(t.staticFacet(Ie.lineSeparator) || fu)), r = e.selection ? e.selection instanceof X ? e.selection : X.single(e.selection.anchor, e.selection.head) : X.single(0);
11800
11800
  return Tg(r, n.length), t.staticFacet(yu) || (r = r.asSingle()), new Ie(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
11801
11801
  }
11802
11802
  /**
@@ -11920,7 +11920,7 @@ Ie.languageData = Dg;
11920
11920
  Ie.changeFilter = Pg;
11921
11921
  Ie.transactionFilter = qg;
11922
11922
  Ie.transactionExtender = Bg;
11923
- Yo.reconfigure = /* @__PURE__ */ Te.define();
11923
+ Go.reconfigure = /* @__PURE__ */ Te.define();
11924
11924
  function Li(i, e, t = {}) {
11925
11925
  let n = {};
11926
11926
  for (let r of i)
@@ -12393,13 +12393,13 @@ class no {
12393
12393
  this.cursor.forward(e, t);
12394
12394
  }
12395
12395
  removeActive(e) {
12396
- ms(this.active, e), ms(this.activeTo, e), ms(this.activeRank, e), this.minActive = vd(this.active, this.activeTo);
12396
+ gs(this.active, e), gs(this.activeTo, e), gs(this.activeRank, e), this.minActive = vd(this.active, this.activeTo);
12397
12397
  }
12398
12398
  addActive(e) {
12399
12399
  let t = 0, { value: n, to: r, rank: o } = this.cursor;
12400
12400
  for (; t < this.activeRank.length && (o - this.activeRank[t] || r - this.activeTo[t]) > 0; )
12401
12401
  t++;
12402
- gs(this.active, t, n), gs(this.activeTo, t, r), gs(this.activeRank, t, o), e && gs(e, t, this.cursor.from), this.minActive = vd(this.active, this.activeTo);
12402
+ ps(this.active, t, n), ps(this.activeTo, t, r), ps(this.activeRank, t, o), e && ps(e, t, this.cursor.from), this.minActive = vd(this.active, this.activeTo);
12403
12403
  }
12404
12404
  // After calling this, if `this.point` != null, the next range is a
12405
12405
  // point. Otherwise, it's a regular range, covered by `this.active`.
@@ -12414,7 +12414,7 @@ class no {
12414
12414
  this.to = this.activeTo[r], this.endSide = this.active[r].endSide;
12415
12415
  break;
12416
12416
  }
12417
- this.removeActive(r), n && ms(n, r);
12417
+ this.removeActive(r), n && gs(n, r);
12418
12418
  } else if (this.cursor.value)
12419
12419
  if (this.cursor.from > e) {
12420
12420
  this.to = this.cursor.from, this.endSide = this.cursor.startSide;
@@ -12474,12 +12474,12 @@ function Su(i, e) {
12474
12474
  return !1;
12475
12475
  return !0;
12476
12476
  }
12477
- function ms(i, e) {
12477
+ function gs(i, e) {
12478
12478
  for (let t = e, n = i.length - 1; t < n; t++)
12479
12479
  i[t] = i[t + 1];
12480
12480
  i.pop();
12481
12481
  }
12482
- function gs(i, e, t) {
12482
+ function ps(i, e, t) {
12483
12483
  for (let n = i.length - 1; n >= e; n--)
12484
12484
  i[n + 1] = i[n];
12485
12485
  i[e] = t;
@@ -12750,7 +12750,7 @@ function Po(i) {
12750
12750
  function Pu(i, e) {
12751
12751
  return e ? i == e || i.contains(e.nodeType != 1 ? e.parentNode : e) : !1;
12752
12752
  }
12753
- function Qs(i, e) {
12753
+ function Ws(i, e) {
12754
12754
  if (!e.anchorNode)
12755
12755
  return !1;
12756
12756
  try {
@@ -12770,7 +12770,7 @@ function ar(i) {
12770
12770
  if (i = i.previousSibling, !i)
12771
12771
  return e;
12772
12772
  }
12773
- function dl(i) {
12773
+ function fl(i) {
12774
12774
  return i.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName);
12775
12775
  }
12776
12776
  function Sd(i, e, t, n, r) {
@@ -12795,7 +12795,7 @@ function Sd(i, e, t, n, r) {
12795
12795
  function $i(i) {
12796
12796
  return i.nodeType == 3 ? i.nodeValue.length : i.childNodes.length;
12797
12797
  }
12798
- function Go(i, e) {
12798
+ function Jo(i, e) {
12799
12799
  let t = e ? i.left : i.right;
12800
12800
  return { left: t, right: t, top: i.top, bottom: i.bottom };
12801
12801
  }
@@ -12977,7 +12977,7 @@ function Wg(i, e) {
12977
12977
  if (t.contentEditable == "false")
12978
12978
  return null;
12979
12979
  t = t.childNodes[n - 1], n = $i(t);
12980
- } else if (t.parentNode && !dl(t))
12980
+ } else if (t.parentNode && !fl(t))
12981
12981
  n = ar(t), t = t.parentNode;
12982
12982
  else
12983
12983
  return null;
@@ -12991,7 +12991,7 @@ function Ug(i, e) {
12991
12991
  if (t.contentEditable == "false")
12992
12992
  return null;
12993
12993
  t = t.childNodes[n], n = 0;
12994
- } else if (t.parentNode && !dl(t))
12994
+ } else if (t.parentNode && !fl(t))
12995
12995
  n = ar(t) + 1, t = t.parentNode;
12996
12996
  else
12997
12997
  return null;
@@ -13316,7 +13316,7 @@ function bk(i, e, t) {
13316
13316
  if (!l.length)
13317
13317
  return null;
13318
13318
  let a = l[(s ? s < 0 : t >= 0) ? 0 : l.length - 1];
13319
- return ce.safari && !s && a.width == 0 && (a = Array.prototype.find.call(l, (u) => u.width) || a), s ? Go(a, s < 0) : a || null;
13319
+ return ce.safari && !s && a.width == 0 && (a = Array.prototype.find.call(l, (u) => u.width) || a), s ? Jo(a, s < 0) : a || null;
13320
13320
  }
13321
13321
  class hn extends Je {
13322
13322
  static create(e, t, n) {
@@ -13372,7 +13372,7 @@ class hn extends Je {
13372
13372
  let s = this.side ? this.side < 0 : e > 0;
13373
13373
  for (let l = s ? r.length - 1 : 0; o = r[l], !(e > 0 ? l == 0 : l == r.length - 1 || o.top < o.bottom); l += s ? -1 : 1)
13374
13374
  ;
13375
- return Go(o, !s);
13375
+ return Jo(o, !s);
13376
13376
  }
13377
13377
  get isEditable() {
13378
13378
  return !1;
@@ -13489,7 +13489,7 @@ function qu(i, e) {
13489
13489
  return e;
13490
13490
  }
13491
13491
  const Ad = /* @__PURE__ */ Object.create(null);
13492
- function fl(i, e, t) {
13492
+ function ml(i, e, t) {
13493
13493
  if (i == e)
13494
13494
  return !0;
13495
13495
  i || (i = Ad), e || (e = Ad);
@@ -13626,7 +13626,7 @@ class ke extends lr {
13626
13626
  of lower-precedence decorations.
13627
13627
  */
13628
13628
  static mark(e) {
13629
- return new Jo(e);
13629
+ return new Xo(e);
13630
13630
  }
13631
13631
  /**
13632
13632
  Create a widget decoration, which displays a DOM element at the
@@ -13655,7 +13655,7 @@ class ke extends lr {
13655
13655
  line starting at the given position.
13656
13656
  */
13657
13657
  static line(e) {
13658
- return new Xo(e);
13658
+ return new Zo(e);
13659
13659
  }
13660
13660
  /**
13661
13661
  Build a [`DecorationSet`](https://codemirror.net/6/docs/ref/#view.DecorationSet) from the given
@@ -13673,14 +13673,14 @@ class ke extends lr {
13673
13673
  }
13674
13674
  }
13675
13675
  ke.none = Ve.empty;
13676
- class Jo extends ke {
13676
+ class Xo extends ke {
13677
13677
  constructor(e) {
13678
13678
  let { start: t, end: n } = $g(e);
13679
13679
  super(t ? -1 : 5e8, n ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
13680
13680
  }
13681
13681
  eq(e) {
13682
13682
  var t, n;
13683
- return this == e || e instanceof Jo && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && fl(this.attrs, e.attrs, "class");
13683
+ return this == e || e instanceof Xo && this.tagName == e.tagName && (this.class || ((t = this.attrs) === null || t === void 0 ? void 0 : t.class)) == (e.class || ((n = e.attrs) === null || n === void 0 ? void 0 : n.class)) && ml(this.attrs, e.attrs, "class");
13684
13684
  }
13685
13685
  range(e, t = e) {
13686
13686
  if (e >= t)
@@ -13688,13 +13688,13 @@ class Jo extends ke {
13688
13688
  return super.range(e, t);
13689
13689
  }
13690
13690
  }
13691
- Jo.prototype.point = !1;
13692
- class Xo extends ke {
13691
+ Xo.prototype.point = !1;
13692
+ class Zo extends ke {
13693
13693
  constructor(e) {
13694
13694
  super(-2e8, -2e8, null, e);
13695
13695
  }
13696
13696
  eq(e) {
13697
- return e instanceof Xo && this.spec.class == e.spec.class && fl(this.spec.attributes, e.spec.attributes);
13697
+ return e instanceof Zo && this.spec.class == e.spec.class && ml(this.spec.attributes, e.spec.attributes);
13698
13698
  }
13699
13699
  range(e, t = e) {
13700
13700
  if (t != e)
@@ -13702,8 +13702,8 @@ class Xo extends ke {
13702
13702
  return super.range(e, t);
13703
13703
  }
13704
13704
  }
13705
- Xo.prototype.mapMode = ni.TrackBefore;
13706
- Xo.prototype.point = !0;
13705
+ Zo.prototype.mapMode = ni.TrackBefore;
13706
+ Zo.prototype.point = !0;
13707
13707
  class En extends ke {
13708
13708
  constructor(e, t, n, r, o, s) {
13709
13709
  super(t, n, o, e), this.block = r, this.isReplace = s, this.mapMode = r ? t <= 0 ? ni.TrackBefore : ni.TrackAfter : ni.TrackDel;
@@ -13734,7 +13734,7 @@ function $g(i, e = !1) {
13734
13734
  function Sk(i, e) {
13735
13735
  return i == e || !!(i && e && i.compare(e));
13736
13736
  }
13737
- function Ws(i, e, t, n = 0) {
13737
+ function Us(i, e, t, n = 0) {
13738
13738
  let r = t.length - 1;
13739
13739
  r >= 0 && t[r] + n >= i ? t[r] = Math.max(t[r], e) : t.push(i, e);
13740
13740
  }
@@ -13767,7 +13767,7 @@ class kt extends Je {
13767
13767
  this.dom && (this.markDirty(), e.setDOM(this.dom), e.prevAttrs = this.prevAttrs === void 0 ? this.attrs : this.prevAttrs, this.prevAttrs = void 0, this.dom = null);
13768
13768
  }
13769
13769
  setDeco(e) {
13770
- fl(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
13770
+ ml(this.attrs, e) || (this.dom && (this.prevAttrs = this.attrs, this.markDirty()), this.attrs = e);
13771
13771
  }
13772
13772
  append(e, t) {
13773
13773
  Xg(this, e, t);
@@ -13824,7 +13824,7 @@ class kt extends Je {
13824
13824
  return n;
13825
13825
  }
13826
13826
  become(e) {
13827
- return e instanceof kt && this.children.length == 0 && e.children.length == 0 && fl(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
13827
+ return e instanceof kt && this.children.length == 0 && e.children.length == 0 && ml(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
13828
13828
  }
13829
13829
  covers() {
13830
13830
  return !0;
@@ -13888,7 +13888,7 @@ class fn extends Je {
13888
13888
  }
13889
13889
  coordsAt(e, t) {
13890
13890
  let n = this.widget.coordsAt(this.dom, e, t);
13891
- return n || (this.widget instanceof Lu ? null : Go(this.dom.getBoundingClientRect(), this.length ? e == 0 : t <= 0));
13891
+ return n || (this.widget instanceof Lu ? null : Jo(this.dom.getBoundingClientRect(), this.length ? e == 0 : t <= 0));
13892
13892
  }
13893
13893
  destroy() {
13894
13894
  super.destroy(), this.dom && this.widget.destroy(this.dom);
@@ -13936,7 +13936,7 @@ class bo {
13936
13936
  return this.curLine || (this.content.push(this.curLine = new kt()), this.atCursorPos = !0), this.curLine;
13937
13937
  }
13938
13938
  flushBuffer(e = this.bufferMarks) {
13939
- this.pendingBuffer && (this.curLine.append(ps(new jr(-1), e), e.length), this.pendingBuffer = 0);
13939
+ this.pendingBuffer && (this.curLine.append(vs(new jr(-1), e), e.length), this.pendingBuffer = 0);
13940
13940
  }
13941
13941
  addBlockWidget(e) {
13942
13942
  this.flushBuffer(), this.curLine = null, this.content.push(e);
@@ -13961,7 +13961,7 @@ class bo {
13961
13961
  512
13962
13962
  /* T.Chunk */
13963
13963
  );
13964
- this.flushBuffer(t.slice(t.length - n)), this.getLine().append(ps(new qi(this.text.slice(this.textOff, this.textOff + o)), t), n), this.atCursorPos = !0, this.textOff += o, e -= o, n = r <= o ? 0 : t.length;
13964
+ this.flushBuffer(t.slice(t.length - n)), this.getLine().append(vs(new qi(this.text.slice(this.textOff, this.textOff + o)), t), n), this.atCursorPos = !0, this.textOff += o, e -= o, n = r <= o ? 0 : t.length;
13965
13965
  }
13966
13966
  }
13967
13967
  span(e, t, n, r) {
@@ -13980,7 +13980,7 @@ class bo {
13980
13980
  n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new fn(n.widget || Qr.block, l, n));
13981
13981
  else {
13982
13982
  let a = hn.create(n.widget || Qr.inline, l, l ? 0 : n.startSide), u = this.atCursorPos && !a.isEditable && o <= r.length && (e < t || n.startSide > 0), c = !a.isEditable && (e < t || o > r.length || n.startSide <= 0), h = this.getLine();
13983
- this.pendingBuffer == 2 && !u && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), u && (h.append(ps(new jr(1), r), o), o = r.length + Math.max(0, o - r.length)), h.append(ps(a, r), o), this.atCursorPos = c, this.pendingBuffer = c ? e < t || o > r.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = r.slice());
13983
+ this.pendingBuffer == 2 && !u && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), u && (h.append(vs(new jr(1), r), o), o = r.length + Math.max(0, o - r.length)), h.append(vs(a, r), o), this.atCursorPos = c, this.pendingBuffer = c ? e < t || o > r.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = r.slice());
13984
13984
  }
13985
13985
  else this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(n);
13986
13986
  l && (this.textOff + l <= this.text.length ? this.textOff += l : (this.skip += l - (this.text.length - this.textOff), this.text = "", this.textOff = 0), this.pos = t), this.openStart < 0 && (this.openStart = o);
@@ -13990,7 +13990,7 @@ class bo {
13990
13990
  return s.openEnd = Ve.spans(r, t, n, s), s.openStart < 0 && (s.openStart = s.openEnd), s.finish(s.openEnd), s;
13991
13991
  }
13992
13992
  }
13993
- function ps(i, e) {
13993
+ function vs(i, e) {
13994
13994
  for (let t of e)
13995
13995
  i = new pn(t, [i], i.length);
13996
13996
  return i;
@@ -14314,7 +14314,7 @@ class Br {
14314
14314
  return this.range.to <= e.doc.length ? this : new Br(X.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
14315
14315
  }
14316
14316
  }
14317
- const vs = /* @__PURE__ */ Te.define({ map: (i, e) => i.map(e) }), mp = /* @__PURE__ */ Te.define();
14317
+ const ys = /* @__PURE__ */ Te.define({ map: (i, e) => i.map(e) }), mp = /* @__PURE__ */ Te.define();
14318
14318
  function ri(i, e, t) {
14319
14319
  let n = i.facet(ap);
14320
14320
  n.length ? n[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
@@ -14407,7 +14407,7 @@ class Ba {
14407
14407
  this.spec = this.value = null;
14408
14408
  }
14409
14409
  }
14410
- const gp = /* @__PURE__ */ me.define(), Ic = /* @__PURE__ */ me.define(), qo = /* @__PURE__ */ me.define(), pp = /* @__PURE__ */ me.define(), Zo = /* @__PURE__ */ me.define(), vp = /* @__PURE__ */ me.define();
14410
+ const gp = /* @__PURE__ */ me.define(), Ic = /* @__PURE__ */ me.define(), qo = /* @__PURE__ */ me.define(), pp = /* @__PURE__ */ me.define(), $o = /* @__PURE__ */ me.define(), vp = /* @__PURE__ */ me.define();
14411
14411
  function Td(i, e) {
14412
14412
  let t = i.state.facet(vp);
14413
14413
  if (!t.length)
@@ -14477,7 +14477,7 @@ class Mi {
14477
14477
  }
14478
14478
  }
14479
14479
  }
14480
- class ml {
14480
+ class gl {
14481
14481
  constructor(e, t, n) {
14482
14482
  this.view = e, this.state = t, this.transactions = n, this.flags = 0, this.startState = e.state, this.changes = Mt.empty(this.startState.doc.length);
14483
14483
  for (let o of n)
@@ -14489,7 +14489,7 @@ class ml {
14489
14489
  @internal
14490
14490
  */
14491
14491
  static create(e, t, n) {
14492
- return new ml(e, t, n);
14492
+ return new gl(e, t, n);
14493
14493
  }
14494
14494
  /**
14495
14495
  Tells you whether the [viewport](https://codemirror.net/6/docs/ref/#view.EditorView.viewport) or
@@ -14639,7 +14639,7 @@ class Od extends Je {
14639
14639
  // Sync the DOM selection to this.state.selection
14640
14640
  updateSelection(e = !1, t = !1) {
14641
14641
  (e || !this.view.observer.selectionRange.focusNode) && this.view.observer.readSelectionRange();
14642
- let n = this.view.root.activeElement, r = n == this.dom, o = !r && !(this.view.state.facet(un) || this.dom.tabIndex > -1) && Qs(this.dom, this.view.observer.selectionRange) && !(n && this.dom.contains(n));
14642
+ let n = this.view.root.activeElement, r = n == this.dom, o = !r && !(this.view.state.facet(un) || this.dom.tabIndex > -1) && Ws(this.dom, this.view.observer.selectionRange) && !(n && this.dom.contains(n));
14643
14643
  if (!(r || t || o))
14644
14644
  return;
14645
14645
  let s = this.forceSelection;
@@ -14937,7 +14937,7 @@ function Rk(i, e, t) {
14937
14937
  if (d instanceof kt || h.nodeName == "DIV" && h.parentNode == i.contentDOM)
14938
14938
  return { range: u, text: r, marks: c, line: h };
14939
14939
  if (h != i.contentDOM)
14940
- c.push({ node: h, deco: new Jo({
14940
+ c.push({ node: h, deco: new Xo({
14941
14941
  inclusive: !0,
14942
14942
  attributes: wk(h),
14943
14943
  tagName: h.tagName.toLowerCase()
@@ -14955,13 +14955,13 @@ let Ik = class {
14955
14955
  this.changes = [];
14956
14956
  }
14957
14957
  compareRange(e, t) {
14958
- Ws(e, t, this.changes);
14958
+ Us(e, t, this.changes);
14959
14959
  }
14960
14960
  comparePoint(e, t) {
14961
- Ws(e, t, this.changes);
14961
+ Us(e, t, this.changes);
14962
14962
  }
14963
14963
  boundChange(e) {
14964
- Ws(e, e, this.changes);
14964
+ Us(e, e, this.changes);
14965
14965
  }
14966
14966
  };
14967
14967
  function Vk(i, e, t) {
@@ -15263,7 +15263,7 @@ function wp(i, e) {
15263
15263
  return t ? X.create(t, e.mainIndex) : e;
15264
15264
  }
15265
15265
  function Ra(i, e, t) {
15266
- let n = xo(i.state.facet(Zo).map((r) => r(i)), t.from, e.head > t.from ? -1 : 1);
15266
+ let n = xo(i.state.facet($o).map((r) => r(i)), t.from, e.head > t.from ? -1 : 1);
15267
15267
  return n == t.from ? t : X.cursor(n, n < t.from ? 1 : -1);
15268
15268
  }
15269
15269
  const co = "￿";
@@ -15289,7 +15289,7 @@ class Gk {
15289
15289
  if (s == t)
15290
15290
  break;
15291
15291
  let l = Je.get(r), a = Je.get(s);
15292
- (l && a ? l.breakAfter : (l ? l.breakAfter : dl(r)) || dl(s) && (r.nodeName != "BR" || r.cmIgnore) && this.text.length > o) && !Xk(s, t) && this.lineBreak(), r = s;
15292
+ (l && a ? l.breakAfter : (l ? l.breakAfter : fl(r)) || fl(s) && (r.nodeName != "BR" || r.cmIgnore) && this.text.length > o) && !Xk(s, t) && this.lineBreak(), r = s;
15293
15293
  }
15294
15294
  return this.findPointBefore(n, t), this;
15295
15295
  }
@@ -15402,7 +15402,7 @@ function Sp(i, e) {
15402
15402
  return Fc(i, t, n, o);
15403
15403
  if (n && !n.main.eq(r)) {
15404
15404
  let s = !1, l = "select";
15405
- return i.inputState.lastSelectionTime > Date.now() - 50 && (i.inputState.lastSelectionOrigin == "select" && (s = !0), l = i.inputState.lastSelectionOrigin, l == "select.pointer" && (n = wp(i.state.facet(Zo).map((a) => a(i)), n))), i.dispatch({ selection: n, scrollIntoView: s, userEvent: l }), !0;
15405
+ return i.inputState.lastSelectionTime > Date.now() - 50 && (i.inputState.lastSelectionOrigin == "select" && (s = !0), l = i.inputState.lastSelectionOrigin, l == "select.pointer" && (n = wp(i.state.facet($o).map((a) => a(i)), n))), i.dispatch({ selection: n, scrollIntoView: s, userEvent: l }), !0;
15406
15406
  } else
15407
15407
  return !1;
15408
15408
  }
@@ -15422,7 +15422,7 @@ function Fc(i, e, t, n = -1) {
15422
15422
  function $k(i, e, t) {
15423
15423
  let n, r = i.state, o = r.selection.main, s = -1;
15424
15424
  if (e.from == e.to && e.from < o.from || e.from > o.to) {
15425
- let a = e.from < o.from ? -1 : 1, u = a < 0 ? o.from : o.to, c = xo(r.facet(Zo).map((h) => h(i)), u, a);
15425
+ let a = e.from < o.from ? -1 : 1, u = a < 0 ? o.from : o.to, c = xo(r.facet($o).map((h) => h(i)), u, a);
15426
15426
  e.from == c && (s = c);
15427
15427
  }
15428
15428
  if (s > -1)
@@ -15602,8 +15602,8 @@ const Mp = [
15602
15602
  { key: "Enter", keyCode: 13, inputType: "insertParagraph" },
15603
15603
  { key: "Enter", keyCode: 13, inputType: "insertLineBreak" },
15604
15604
  { key: "Delete", keyCode: 46, inputType: "deleteContentForward" }
15605
- ], rw = "dthko", Ap = [16, 17, 18, 20, 91, 92, 224, 225], ys = 6;
15606
- function bs(i) {
15605
+ ], rw = "dthko", Ap = [16, 17, 18, 20, 91, 92, 224, 225], bs = 6;
15606
+ function xs(i) {
15607
15607
  return Math.max(0, i) * 0.7 + 8;
15608
15608
  }
15609
15609
  function ow(i, e) {
@@ -15611,7 +15611,7 @@ function ow(i, e) {
15611
15611
  }
15612
15612
  class sw {
15613
15613
  constructor(e, t, n, r) {
15614
- this.view = e, this.startEvent = t, this.style = n, this.mustSelect = r, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = mk(e.contentDOM), this.atoms = e.state.facet(Zo).map((s) => s(e));
15614
+ this.view = e, this.startEvent = t, this.style = n, this.mustSelect = r, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = t, this.scrollParents = mk(e.contentDOM), this.atoms = e.state.facet($o).map((s) => s(e));
15615
15615
  let o = e.contentDOM.ownerDocument;
15616
15616
  o.addEventListener("mousemove", this.move = this.move.bind(this)), o.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = t.shiftKey, this.multiple = e.state.facet(Ie.allowMultipleSelections) && lw(e, t), this.dragging = uw(e, t) && Dp(t) == 1 ? null : !1;
15617
15617
  }
@@ -15627,7 +15627,7 @@ class sw {
15627
15627
  let t = 0, n = 0, r = 0, o = 0, s = this.view.win.innerWidth, l = this.view.win.innerHeight;
15628
15628
  this.scrollParents.x && ({ left: r, right: s } = this.scrollParents.x.getBoundingClientRect()), this.scrollParents.y && ({ top: o, bottom: l } = this.scrollParents.y.getBoundingClientRect());
15629
15629
  let a = Vc(this.view);
15630
- e.clientX - a.left <= r + ys ? t = -bs(r - e.clientX) : e.clientX + a.right >= s - ys && (t = bs(e.clientX - s)), e.clientY - a.top <= o + ys ? n = -bs(o - e.clientY) : e.clientY + a.bottom >= l - ys && (n = bs(e.clientY - l)), this.setScrollSpeed(t, n);
15630
+ e.clientX - a.left <= r + bs ? t = -xs(r - e.clientX) : e.clientX + a.right >= s - bs && (t = xs(e.clientX - s)), e.clientY - a.top <= o + bs ? n = -xs(o - e.clientY) : e.clientY + a.bottom >= l - bs && (n = xs(e.clientY - l)), this.setScrollSpeed(t, n);
15631
15631
  }
15632
15632
  up(e) {
15633
15633
  this.dragging == null && this.select(this.lastEvent), this.dragging || e.preventDefault(), this.destroy();
@@ -16075,7 +16075,7 @@ class Wi {
16075
16075
  var ot = /* @__PURE__ */ function(i) {
16076
16076
  return i[i.ByPos = 0] = "ByPos", i[i.ByHeight = 1] = "ByHeight", i[i.ByPosNoHeight = 2] = "ByPosNoHeight", i;
16077
16077
  }(ot || (ot = {}));
16078
- const Us = 1e-3;
16078
+ const Ks = 1e-3;
16079
16079
  class si {
16080
16080
  constructor(e, t, n = 2) {
16081
16081
  this.length = e, this.height = t, this.flags = n;
@@ -16087,7 +16087,7 @@ class si {
16087
16087
  this.flags = (e ? 2 : 0) | this.flags & -3;
16088
16088
  }
16089
16089
  setHeight(e) {
16090
- this.height != e && (Math.abs(this.height - e) > Us && (Wr = !0), this.height = e);
16090
+ this.height != e && (Math.abs(this.height - e) > Ks && (Wr = !0), this.height = e);
16091
16091
  }
16092
16092
  // Base case is to replace a leaf node, which simply builds a tree
16093
16093
  // from the new nodes and returns that (HeightMapBranch and
@@ -16110,7 +16110,7 @@ class si {
16110
16110
  a = r[l - 1].fromA, c = r[l - 1].fromB, l--, a < d.from && (d = o.lineAt(a, ot.ByPosNoHeight, n, 0, 0));
16111
16111
  c += d.from - a, a = d.from;
16112
16112
  let m = Nc.build(n.setDoc(s), e, c, h);
16113
- o = gl(o, o.replace(a, u, m));
16113
+ o = pl(o, o.replace(a, u, m));
16114
16114
  }
16115
16115
  return o.updateHeight(n, 0);
16116
16116
  }
@@ -16146,7 +16146,7 @@ class si {
16146
16146
  return e[t - 1] == null ? (s = 1, t--) : e[t] == null && (s = 1, n++), new kw(si.of(e.slice(0, t)), s, si.of(e.slice(n)));
16147
16147
  }
16148
16148
  }
16149
- function gl(i, e) {
16149
+ function pl(i, e) {
16150
16150
  return i == e ? i : (i.constructor != e.constructor && (Wr = !0), e);
16151
16151
  }
16152
16152
  si.prototype.size = 1;
@@ -16260,13 +16260,13 @@ class Ft extends si {
16260
16260
  let c = e.doc.lineAt(l).length;
16261
16261
  s.length && s.push(null);
16262
16262
  let h = r.heights[r.index++];
16263
- a == -1 ? a = h : Math.abs(h - a) >= Us && (a = -2);
16263
+ a == -1 ? a = h : Math.abs(h - a) >= Ks && (a = -2);
16264
16264
  let d = new mi(c, h);
16265
16265
  d.outdated = !1, s.push(d), l += c + 1;
16266
16266
  }
16267
16267
  l <= o && s.push(null, new Ft(o - l).updateHeight(e, l));
16268
16268
  let u = si.of(s);
16269
- return (a < 0 || Math.abs(u.height - this.height) >= Us || Math.abs(a - this.heightMetrics(e, t).perLine) >= Us) && (Wr = !0), gl(this, u);
16269
+ return (a < 0 || Math.abs(u.height - this.height) >= Ks || Math.abs(a - this.heightMetrics(e, t).perLine) >= Ks) && (Wr = !0), pl(this, u);
16270
16270
  } else (n || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
16271
16271
  return this;
16272
16272
  }
@@ -16331,7 +16331,7 @@ class kw extends si {
16331
16331
  e < n && this.left.decomposeRight(e, t), this.break && e < r && t.push(null), t.push(this.right);
16332
16332
  }
16333
16333
  balanced(e, t) {
16334
- return e.size > 2 * t.size || t.size > 2 * e.size ? si.of(this.break ? [e, null, t] : [e, t]) : (this.left = gl(this.left, e), this.right = gl(this.right, t), this.setHeight(e.height + t.height), this.outdated = e.outdated || t.outdated, this.size = e.size + t.size, this.length = e.length + this.break + t.length, this);
16334
+ return e.size > 2 * t.size || t.size > 2 * e.size ? si.of(this.break ? [e, null, t] : [e, t]) : (this.left = pl(this.left, e), this.right = pl(this.right, t), this.setHeight(e.height + t.height), this.outdated = e.outdated || t.outdated, this.size = e.size + t.size, this.length = e.length + this.break + t.length, this);
16335
16335
  }
16336
16336
  updateHeight(e, t = 0, n = !1, r) {
16337
16337
  let { left: o, right: s } = this, l = t + o.length + this.break, a = null;
@@ -16425,7 +16425,7 @@ class Cw {
16425
16425
  compareRange() {
16426
16426
  }
16427
16427
  comparePoint(e, t, n, r) {
16428
- (e < t || n && n.heightRelevant || r && r.heightRelevant) && Ws(e, t, this.changes, 5);
16428
+ (e < t || n && n.heightRelevant || r && r.heightRelevant) && Us(e, t, this.changes, 5);
16429
16429
  }
16430
16430
  }
16431
16431
  function Mw(i, e) {
@@ -16512,7 +16512,7 @@ class Kd {
16512
16512
  let r = n ? t.head : t.anchor;
16513
16513
  if (!e.some(({ from: o, to: s }) => r >= o && r <= s)) {
16514
16514
  let { from: o, to: s } = this.lineBlockAt(r);
16515
- e.push(new xs(o, s));
16515
+ e.push(new ks(o, s));
16516
16516
  }
16517
16517
  }
16518
16518
  return this.viewports = e.sort((n, r) => n.from - r.from), this.updateScaler();
@@ -16580,19 +16580,19 @@ class Kd {
16580
16580
  return this.scaler.fromDOM(this.pixelViewport.bottom);
16581
16581
  }
16582
16582
  getViewport(e, t) {
16583
- let n = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, o = this.heightOracle, { visibleTop: s, visibleBottom: l } = this, a = new xs(r.lineAt(s - n * 1e3, ot.ByHeight, o, 0, 0).from, r.lineAt(l + (1 - n) * 1e3, ot.ByHeight, o, 0, 0).to);
16583
+ let n = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, o = this.heightOracle, { visibleTop: s, visibleBottom: l } = this, a = new ks(r.lineAt(s - n * 1e3, ot.ByHeight, o, 0, 0).from, r.lineAt(l + (1 - n) * 1e3, ot.ByHeight, o, 0, 0).to);
16584
16584
  if (t) {
16585
16585
  let { head: u } = t.range;
16586
16586
  if (u < a.from || u > a.to) {
16587
16587
  let c = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), h = r.lineAt(u, ot.ByPos, o, 0, 0), d;
16588
- t.y == "center" ? d = (h.top + h.bottom) / 2 - c / 2 : t.y == "start" || t.y == "nearest" && u < a.from ? d = h.top : d = h.bottom - c, a = new xs(r.lineAt(d - 1e3 / 2, ot.ByHeight, o, 0, 0).from, r.lineAt(d + c + 1e3 / 2, ot.ByHeight, o, 0, 0).to);
16588
+ t.y == "center" ? d = (h.top + h.bottom) / 2 - c / 2 : t.y == "start" || t.y == "nearest" && u < a.from ? d = h.top : d = h.bottom - c, a = new ks(r.lineAt(d - 1e3 / 2, ot.ByHeight, o, 0, 0).from, r.lineAt(d + c + 1e3 / 2, ot.ByHeight, o, 0, 0).to);
16589
16589
  }
16590
16590
  }
16591
16591
  return a;
16592
16592
  }
16593
16593
  mapViewport(e, t) {
16594
16594
  let n = t.mapPos(e.from, -1), r = t.mapPos(e.to, 1);
16595
- return new xs(this.heightMap.lineAt(n, ot.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(r, ot.ByPos, this.heightOracle, 0, 0).to);
16595
+ return new ks(this.heightMap.lineAt(n, ot.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(r, ot.ByPos, this.heightOracle, 0, 0).to);
16596
16596
  }
16597
16597
  // Checks if a given viewport covers the visible part of the
16598
16598
  // document and not too much beyond that.
@@ -16659,11 +16659,11 @@ class Kd {
16659
16659
  if (n) {
16660
16660
  let g = r / this.heightOracle.lineLength * this.heightOracle.lineHeight, p, w;
16661
16661
  if (d != null) {
16662
- let M = ws(h, d), y = ((this.visibleBottom - this.visibleTop) / 2 + g) / c.height;
16662
+ let M = Ss(h, d), y = ((this.visibleBottom - this.visibleTop) / 2 + g) / c.height;
16663
16663
  p = M - y, w = M + y;
16664
16664
  } else
16665
16665
  p = (this.visibleTop - c.top - g) / c.height, w = (this.visibleBottom - c.top + g) / c.height;
16666
- f = ks(h, p), m = ks(h, w);
16666
+ f = ws(h, p), m = ws(h, w);
16667
16667
  } else {
16668
16668
  let g = h.total * this.heightOracle.charWidth, p = r * this.heightOracle.charWidth, w = 0;
16669
16669
  if (g > 2e6)
@@ -16671,11 +16671,11 @@ class Kd {
16671
16671
  T.from >= c.from && T.from < c.to && T.size != T.displaySize && T.from * this.heightOracle.charWidth + w < this.pixelViewport.left && (w = T.size - T.displaySize);
16672
16672
  let M = this.pixelViewport.left + w, y = this.pixelViewport.right + w, v, k;
16673
16673
  if (d != null) {
16674
- let T = ws(h, d), B = ((y - M) / 2 + p) / g;
16674
+ let T = Ss(h, d), B = ((y - M) / 2 + p) / g;
16675
16675
  v = T - B, k = T + B;
16676
16676
  } else
16677
16677
  v = (M - p) / g, k = (y + p) / g;
16678
- f = ks(h, v), m = ks(h, k);
16678
+ f = ws(h, v), m = ws(h, k);
16679
16679
  }
16680
16680
  f > c.from && a(c.from, f, c, h), m < c.to && a(m, c.to, c, h);
16681
16681
  };
@@ -16684,7 +16684,7 @@ class Kd {
16684
16684
  return l;
16685
16685
  }
16686
16686
  gapSize(e, t, n, r) {
16687
- let o = ws(r, n) - ws(r, t);
16687
+ let o = Ss(r, n) - Ss(r, t);
16688
16688
  return this.heightOracle.lineWrapping ? e.height * o : r.total * this.heightOracle.charWidth * o;
16689
16689
  }
16690
16690
  updateLineGaps(e) {
@@ -16731,7 +16731,7 @@ class Kd {
16731
16731
  return this.docHeight + this.paddingTop + this.paddingBottom;
16732
16732
  }
16733
16733
  }
16734
- class xs {
16734
+ class ks {
16735
16735
  constructor(e, t) {
16736
16736
  this.from = e, this.to = t;
16737
16737
  }
@@ -16746,7 +16746,7 @@ function Dw(i, e, t) {
16746
16746
  }
16747
16747
  }, 20), r < e && (n.push({ from: r, to: e }), o += e - r), { total: o, ranges: n };
16748
16748
  }
16749
- function ks({ total: i, ranges: e }, t) {
16749
+ function ws({ total: i, ranges: e }, t) {
16750
16750
  if (t <= 0)
16751
16751
  return e[0].from;
16752
16752
  if (t >= 1)
@@ -16759,7 +16759,7 @@ function ks({ total: i, ranges: e }, t) {
16759
16759
  n -= l;
16760
16760
  }
16761
16761
  }
16762
- function ws(i, e) {
16762
+ function Ss(i, e) {
16763
16763
  let t = 0;
16764
16764
  for (let { from: n, to: r } of i.ranges) {
16765
16765
  if (e <= r) {
@@ -16827,7 +16827,7 @@ function ho(i, e) {
16827
16827
  let t = e.toDOM(i.top), n = e.toDOM(i.bottom);
16828
16828
  return new Wi(i.from, i.length, t, n - t, Array.isArray(i._content) ? i._content.map((r) => ho(r, e)) : i._content);
16829
16829
  }
16830
- const Ss = /* @__PURE__ */ me.define({ combine: (i) => i.join(" ") }), zu = /* @__PURE__ */ me.define({ combine: (i) => i.indexOf(!0) > -1 }), ju = /* @__PURE__ */ Ln.newName(), Lp = /* @__PURE__ */ Ln.newName(), Rp = /* @__PURE__ */ Ln.newName(), Ep = { "&light": "." + Lp, "&dark": "." + Rp };
16830
+ const Cs = /* @__PURE__ */ me.define({ combine: (i) => i.join(" ") }), zu = /* @__PURE__ */ me.define({ combine: (i) => i.indexOf(!0) > -1 }), ju = /* @__PURE__ */ Ln.newName(), Lp = /* @__PURE__ */ Ln.newName(), Rp = /* @__PURE__ */ Ln.newName(), Ep = { "&light": "." + Lp, "&dark": "." + Rp };
16831
16831
  function Qu(i, e, t) {
16832
16832
  return new Ln(e, {
16833
16833
  finish(n) {
@@ -17167,7 +17167,7 @@ class Bw {
17167
17167
  if (!this.readSelectionRange() || this.delayedAndroidKey)
17168
17168
  return;
17169
17169
  let { view: n } = this, r = this.selectionRange;
17170
- if (n.state.facet(un) ? n.root.activeElement != this.dom : !Qs(this.dom, r))
17170
+ if (n.state.facet(un) ? n.root.activeElement != this.dom : !Ws(this.dom, r))
17171
17171
  return;
17172
17172
  let o = r.anchorNode && n.docView.nearest(r.anchorNode);
17173
17173
  if (o && o.ignoreEvent(e)) {
@@ -17184,7 +17184,7 @@ class Bw {
17184
17184
  let n = ce.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && Lw(this.view, t) || t;
17185
17185
  if (!n || this.selectionRange.eq(n))
17186
17186
  return !1;
17187
- let r = Qs(this.dom, n);
17187
+ let r = Ws(this.dom, n);
17188
17188
  return r && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && vk(this.dom, n) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(n), r && (this.selectionChanged = !0), !0);
17189
17189
  }
17190
17190
  setSelectionRange(e, t) {
@@ -17283,7 +17283,7 @@ class Bw {
17283
17283
  return { from: t, to: n, typeOver: r };
17284
17284
  }
17285
17285
  readChange() {
17286
- let { from: e, to: t, typeOver: n } = this.processRecords(), r = this.selectionChanged && Qs(this.dom, this.selectionRange);
17286
+ let { from: e, to: t, typeOver: n } = this.processRecords(), r = this.selectionChanged && Ws(this.dom, this.selectionRange);
17287
17287
  if (e < 0 && !r)
17288
17288
  return null;
17289
17289
  e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1;
@@ -17568,7 +17568,7 @@ class he {
17568
17568
  var t;
17569
17569
  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);
17570
17570
  let { dispatch: n } = e;
17571
- this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || pk(e.parent) || document, this.viewState = new Kd(e.state || Ie.create(e)), e.scrollTo && e.scrollTo.is(vs) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(Cr).map((r) => new Ba(r));
17571
+ this.dispatchTransactions = e.dispatchTransactions || n && ((r) => r.forEach((o) => n(o, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || pk(e.parent) || document, this.viewState = new Kd(e.state || Ie.create(e)), e.scrollTo && e.scrollTo.is(ys) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(Cr).map((r) => new Ba(r));
17572
17572
  for (let r of this.plugins)
17573
17573
  r.update(this);
17574
17574
  this.observer = new Bw(this), this.inputState = new iw(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Od(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());
@@ -17603,7 +17603,7 @@ class he {
17603
17603
  let u = this.observer.delayedAndroidKey, c = null;
17604
17604
  if (u ? (this.observer.clearDelayedAndroidKey(), c = this.observer.readChange(), (c && !this.state.doc.eq(o.doc) || !this.state.selection.eq(o.selection)) && (c = null)) : this.observer.clear(), o.facet(Ie.phrases) != this.state.facet(Ie.phrases))
17605
17605
  return this.setState(o);
17606
- r = ml.create(this, o, e), r.flags |= l;
17606
+ r = gl.create(this, o, e), r.flags |= l;
17607
17607
  let h = this.viewState.scrollTarget;
17608
17608
  try {
17609
17609
  this.updateState = 2;
@@ -17613,13 +17613,13 @@ class he {
17613
17613
  h = new Br(f.empty ? f : X.cursor(f.head, f.head > f.anchor ? -1 : 1));
17614
17614
  }
17615
17615
  for (let f of d.effects)
17616
- f.is(vs) && (h = f.value.clip(this.state));
17616
+ f.is(ys) && (h = f.value.clip(this.state));
17617
17617
  }
17618
- this.viewState.update(r, h), this.bidiCache = pl.update(this.bidiCache, r.changes), r.empty || (this.updatePlugins(r), this.inputState.update(r)), t = this.docView.update(r), this.state.facet(uo) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((d) => d.isUserEvent("select.pointer")));
17618
+ this.viewState.update(r, h), this.bidiCache = vl.update(this.bidiCache, r.changes), r.empty || (this.updatePlugins(r), this.inputState.update(r)), t = this.docView.update(r), this.state.facet(uo) != this.styleModules && this.mountStyles(), n = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((d) => d.isUserEvent("select.pointer")));
17619
17619
  } finally {
17620
17620
  this.updateState = 0;
17621
17621
  }
17622
- if (r.startState.facet(Ss) != r.state.facet(Ss) && (this.viewState.mustMeasureContent = !0), (t || n || h || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), t && this.docViewUpdate(), !r.empty)
17622
+ if (r.startState.facet(Cs) != r.state.facet(Cs) && (this.viewState.mustMeasureContent = !0), (t || n || h || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), t && this.docViewUpdate(), !r.empty)
17623
17623
  for (let d of this.state.facet(Vu))
17624
17624
  try {
17625
17625
  d(r);
@@ -17730,7 +17730,7 @@ class he {
17730
17730
  } catch (m) {
17731
17731
  return ri(this.state, m), Xd;
17732
17732
  }
17733
- }), h = ml.create(this, this.state, []), d = !1;
17733
+ }), h = gl.create(this, this.state, []), d = !1;
17734
17734
  h.flags |= a, t ? t.flags |= a : t = h, this.updateState = 2, h.empty || (this.updatePlugins(h), this.inputState.update(h), this.updateAttrs(), d = this.docView.update(h), d && this.docViewUpdate());
17735
17735
  for (let f = 0; f < u.length; f++)
17736
17736
  if (c[f] != Xd)
@@ -17766,7 +17766,7 @@ class he {
17766
17766
  Get the CSS classes for the currently active editor themes.
17767
17767
  */
17768
17768
  get themeClasses() {
17769
- return ju + " " + (this.state.facet(zu) ? Rp : Lp) + " " + this.state.facet(Ss);
17769
+ return ju + " " + (this.state.facet(zu) ? Rp : Lp) + " " + this.state.facet(Cs);
17770
17770
  }
17771
17771
  updateAttrs() {
17772
17772
  let e = Zd(this, gp, {
@@ -18013,7 +18013,7 @@ class he {
18013
18013
  if (!n || n.left == n.right)
18014
18014
  return n;
18015
18015
  let r = this.state.doc.lineAt(e), o = this.bidiSpans(r), s = o[Pn.find(o, e - r.from, -1, t)];
18016
- return Go(n, s.dir == at.LTR == t > 0);
18016
+ return Jo(n, s.dir == at.LTR == t > 0);
18017
18017
  }
18018
18018
  /**
18019
18019
  Return the rectangle around a given character. If `pos` does not
@@ -18086,7 +18086,7 @@ class he {
18086
18086
  return o.order;
18087
18087
  n || (n = Td(this, e));
18088
18088
  let r = _k(e.text, t, n);
18089
- return this.bidiCache.push(new pl(e.from, e.to, t, n, !0, r)), r;
18089
+ return this.bidiCache.push(new vl(e.from, e.to, t, n, !0, r)), r;
18090
18090
  }
18091
18091
  /**
18092
18092
  Check whether the editor has focus.
@@ -18128,7 +18128,7 @@ class he {
18128
18128
  cause it to scroll the given position or range into view.
18129
18129
  */
18130
18130
  static scrollIntoView(e, t = {}) {
18131
- return vs.of(new Br(typeof e == "number" ? X.cursor(e) : e, t.y, t.x, t.yMargin, t.xMargin));
18131
+ return ys.of(new Br(typeof e == "number" ? X.cursor(e) : e, t.y, t.x, t.yMargin, t.xMargin));
18132
18132
  }
18133
18133
  /**
18134
18134
  Return an effect that resets the editor to its current (at the
@@ -18144,7 +18144,7 @@ class he {
18144
18144
  */
18145
18145
  scrollSnapshot() {
18146
18146
  let { scrollTop: e, scrollLeft: t } = this.scrollDOM, n = this.viewState.scrollAnchorAt(e);
18147
- return vs.of(new Br(X.cursor(n.from), "start", "start", n.top - e, t, !0));
18147
+ return ys.of(new Br(X.cursor(n.from), "start", "start", n.top - e, t, !0));
18148
18148
  }
18149
18149
  /**
18150
18150
  Enable or disable tab-focus mode, which disables key bindings
@@ -18205,7 +18205,7 @@ class he {
18205
18205
  `&light` when a light theme is active).
18206
18206
  */
18207
18207
  static theme(e, t) {
18208
- let n = Ln.newName(), r = [Ss.of(n), uo.of(Qu(`.${n}`, e))];
18208
+ let n = Ln.newName(), r = [Cs.of(n), uo.of(Qu(`.${n}`, e))];
18209
18209
  return t && t.dark && r.push(zu.of(!0)), r;
18210
18210
  }
18211
18211
  /**
@@ -18243,7 +18243,7 @@ he.dragMovesSelection = sp;
18243
18243
  he.clickAddsSelectionRange = op;
18244
18244
  he.decorations = qo;
18245
18245
  he.outerDecorations = pp;
18246
- he.atomicRanges = Zo;
18246
+ he.atomicRanges = $o;
18247
18247
  he.bidiIsolatedRanges = vp;
18248
18248
  he.scrollMargins = yp;
18249
18249
  he.darkTheme = zu;
@@ -18253,7 +18253,7 @@ he.editorAttributes = gp;
18253
18253
  he.lineWrapping = /* @__PURE__ */ he.contentAttributes.of({ class: "cm-lineWrapping" });
18254
18254
  he.announce = /* @__PURE__ */ Te.define();
18255
18255
  const Ew = 4096, Xd = {};
18256
- class pl {
18256
+ class vl {
18257
18257
  constructor(e, t, n, r, o, s) {
18258
18258
  this.from = e, this.to = t, this.dir = n, this.isolates = r, this.fresh = o, this.order = s;
18259
18259
  }
@@ -18263,7 +18263,7 @@ class pl {
18263
18263
  let n = [], r = e.length ? e[e.length - 1].dir : at.LTR;
18264
18264
  for (let o = Math.max(0, e.length - 10); o < e.length; o++) {
18265
18265
  let s = e[o];
18266
- s.dir == r && !t.touchesRange(s.from, s.to) && n.push(new pl(t.mapPos(s.from, 1), t.mapPos(s.to, -1), s.dir, s.isolates, !1, s.order));
18266
+ s.dir == r && !t.touchesRange(s.from, s.to) && n.push(new vl(t.mapPos(s.from, 1), t.mapPos(s.to, -1), s.dir, s.isolates, !1, s.order));
18267
18267
  }
18268
18268
  return n;
18269
18269
  }
@@ -18298,16 +18298,16 @@ function Vw(i, e) {
18298
18298
  }
18299
18299
  return r && (n = "Alt-" + n), o && (n = "Ctrl-" + n), l && (n = "Meta-" + n), s && (n = "Shift-" + n), n;
18300
18300
  }
18301
- function Cs(i, e, t) {
18301
+ function Ms(i, e, t) {
18302
18302
  return e.altKey && (i = "Alt-" + i), e.ctrlKey && (i = "Ctrl-" + i), e.metaKey && (i = "Meta-" + i), t !== !1 && e.shiftKey && (i = "Shift-" + i), i;
18303
18303
  }
18304
18304
  const Fw = /* @__PURE__ */ fr.default(/* @__PURE__ */ he.domEventHandlers({
18305
18305
  keydown(i, e) {
18306
18306
  return Vp(Ip(e.state), i, e, "editor");
18307
18307
  }
18308
- })), $o = /* @__PURE__ */ me.define({ enables: Fw }), $d = /* @__PURE__ */ new WeakMap();
18308
+ })), es = /* @__PURE__ */ me.define({ enables: Fw }), $d = /* @__PURE__ */ new WeakMap();
18309
18309
  function Ip(i) {
18310
- let e = i.facet($o), t = $d.get(e);
18310
+ let e = i.facet(es), t = $d.get(e);
18311
18311
  return t || $d.set(e, t = zw(e.reduce((n, r) => n.concat(r), []))), t;
18312
18312
  }
18313
18313
  function Nw(i, e, t) {
@@ -18378,11 +18378,11 @@ function Vp(i, e, t, n) {
18378
18378
  }
18379
18379
  return !1;
18380
18380
  }, f = i[n], m, g;
18381
- return f && (d(f[l + Cs(r, e, !s)]) ? a = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
18381
+ return f && (d(f[l + Ms(r, e, !s)]) ? a = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
18382
18382
  !(ce.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
18383
- !(ce.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = Rn[e.keyCode]) && m != r ? (d(f[l + Cs(m, e, !0)]) || e.shiftKey && (g = _o[e.keyCode]) != r && g != m && d(f[l + Cs(g, e, !1)])) && (a = !0) : s && e.shiftKey && d(f[l + Cs(r, e, !0)]) && (a = !0), !a && d(f._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), Wu = null, a;
18383
+ !(ce.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = Rn[e.keyCode]) && m != r ? (d(f[l + Ms(m, e, !0)]) || e.shiftKey && (g = _o[e.keyCode]) != r && g != m && d(f[l + Ms(g, e, !1)])) && (a = !0) : s && e.shiftKey && d(f[l + Ms(r, e, !0)]) && (a = !0), !a && d(f._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), Wu = null, a;
18384
18384
  }
18385
- class es {
18385
+ class ts {
18386
18386
  /**
18387
18387
  Create a marker with the given class and dimensions. If `width`
18388
18388
  is null, the DOM element will get no width style.
@@ -18416,7 +18416,7 @@ class es {
18416
18416
  if (!r)
18417
18417
  return [];
18418
18418
  let o = Fp(e);
18419
- return [new es(t, r.left - o.left, r.top - o.top, null, r.bottom - r.top)];
18419
+ return [new ts(t, r.left - o.left, r.top - o.top, null, r.bottom - r.top)];
18420
18420
  } else
18421
18421
  return jw(e, t, n);
18422
18422
  }
@@ -18443,7 +18443,7 @@ function jw(i, e, t) {
18443
18443
  return (g || f).to < (p || m).from - (g && p ? 1 : 0) || f.widgetLineBreaks > 1 && k.bottom + i.defaultLineHeight / 2 < T.top ? B.push(w(h, k.bottom, d, T.top)) : k.bottom < T.top && i.elementAtHeight((k.bottom + T.top) / 2).type == oi.Text && (k.bottom = T.top = (k.bottom + T.top) / 2), M(k).concat(B).concat(M(T));
18444
18444
  }
18445
18445
  function w(k, T, B, L) {
18446
- return new es(e, k - a.left, T - a.top, B - k, L - T);
18446
+ return new ts(e, k - a.left, T - a.top, B - k, L - T);
18447
18447
  }
18448
18448
  function M({ top: k, bottom: T, horizontal: B }) {
18449
18449
  let L = [];
@@ -18486,13 +18486,13 @@ class Ww {
18486
18486
  this.view = e, this.layer = t, this.drawn = [], this.scaleX = 1, this.scaleY = 1, this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) }, this.dom = e.scrollDOM.appendChild(document.createElement("div")), this.dom.classList.add("cm-layer"), t.above && this.dom.classList.add("cm-layer-above"), t.class && this.dom.classList.add(t.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), t.mount && t.mount(this.dom, e);
18487
18487
  }
18488
18488
  update(e) {
18489
- e.startState.facet(Ks) != e.state.facet(Ks) && this.setOrder(e.state), (this.layer.update(e, this.dom) || e.geometryChanged) && (this.scale(), e.view.requestMeasure(this.measureReq));
18489
+ e.startState.facet(Ys) != e.state.facet(Ys) && this.setOrder(e.state), (this.layer.update(e, this.dom) || e.geometryChanged) && (this.scale(), e.view.requestMeasure(this.measureReq));
18490
18490
  }
18491
18491
  docViewUpdate(e) {
18492
18492
  this.layer.updateOnDocViewUpdate !== !1 && e.requestMeasure(this.measureReq);
18493
18493
  }
18494
18494
  setOrder(e) {
18495
- let t = 0, n = e.facet(Ks);
18495
+ let t = 0, n = e.facet(Ys);
18496
18496
  for (; t < n.length && n[t] != this.layer; )
18497
18497
  t++;
18498
18498
  this.dom.style.zIndex = String((this.layer.above ? 150 : -1) - t);
@@ -18520,11 +18520,11 @@ class Ww {
18520
18520
  this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
18521
18521
  }
18522
18522
  }
18523
- const Ks = /* @__PURE__ */ me.define();
18523
+ const Ys = /* @__PURE__ */ me.define();
18524
18524
  function Np(i) {
18525
18525
  return [
18526
18526
  gt.define((e) => new Ww(e, i)),
18527
- Ks.of(i)
18527
+ Ys.of(i)
18528
18528
  ];
18529
18529
  }
18530
18530
  const Bo = /* @__PURE__ */ me.define({
@@ -18558,7 +18558,7 @@ const Kw = /* @__PURE__ */ Np({
18558
18558
  let o = r == e.selection.main;
18559
18559
  if (r.empty || t.drawRangeCursor) {
18560
18560
  let s = o ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", l = r.empty ? r : X.cursor(r.head, r.head > r.anchor ? -1 : 1);
18561
- for (let a of es.forRange(i, s, l))
18561
+ for (let a of ts.forRange(i, s, l))
18562
18562
  n.push(a);
18563
18563
  }
18564
18564
  }
@@ -18580,7 +18580,7 @@ function tf(i, e) {
18580
18580
  const Yw = /* @__PURE__ */ Np({
18581
18581
  above: !1,
18582
18582
  markers(i) {
18583
- return i.state.selection.ranges.map((e) => e.empty ? [] : es.forRange(i, "cm-selectionBackground", e)).reduce((e, t) => e.concat(t));
18583
+ return i.state.selection.ranges.map((e) => e.empty ? [] : ts.forRange(i, "cm-selectionBackground", e)).reduce((e, t) => e.concat(t));
18584
18584
  },
18585
18585
  update(i, e) {
18586
18586
  return i.docChanged || i.selectionSet || i.viewportChanged || Hp(i);
@@ -18783,7 +18783,7 @@ function iS() {
18783
18783
  }
18784
18784
  return Va || !1;
18785
18785
  }
18786
- const Ys = /* @__PURE__ */ me.define({
18786
+ const Gs = /* @__PURE__ */ me.define({
18787
18787
  combine(i) {
18788
18788
  let e = Li(i, {
18789
18789
  render: null,
@@ -18794,13 +18794,13 @@ const Ys = /* @__PURE__ */ me.define({
18794
18794
  }
18795
18795
  });
18796
18796
  function nS(i = {}) {
18797
- return [Ys.of(i), rS()];
18797
+ return [Gs.of(i), rS()];
18798
18798
  }
18799
18799
  let rf = null;
18800
18800
  function rS() {
18801
18801
  return rf || (rf = gt.fromClass(class {
18802
18802
  constructor(i) {
18803
- this.view = i, this.decorations = ke.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(i.state.facet(Ys)), this.decorations = this.decorator.createDeco(i);
18803
+ this.view = i, this.decorations = ke.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(i.state.facet(Gs)), this.decorations = this.decorator.createDeco(i);
18804
18804
  }
18805
18805
  makeDecorator(i) {
18806
18806
  return new $w({
@@ -18819,8 +18819,8 @@ function rS() {
18819
18819
  });
18820
18820
  }
18821
18821
  update(i) {
18822
- let e = i.state.facet(Ys);
18823
- i.startState.facet(Ys) != e ? (this.decorator = this.makeDecorator(e), this.decorations = this.decorator.createDeco(i.view)) : this.decorations = this.decorator.updateDeco(i, this.decorations);
18822
+ let e = i.state.facet(Gs);
18823
+ i.startState.facet(Gs) != e ? (this.decorator = this.makeDecorator(e), this.decorations = this.decorator.createDeco(i.view)) : this.decorations = this.decorator.updateDeco(i, this.decorations);
18824
18824
  }
18825
18825
  }, {
18826
18826
  decorations: (i) => i.decorations
@@ -18896,7 +18896,7 @@ class dS extends bn {
18896
18896
  let t = e.firstChild ? zr(e.firstChild) : [];
18897
18897
  if (!t.length)
18898
18898
  return null;
18899
- let n = window.getComputedStyle(e.parentNode), r = Go(t[0], n.direction != "rtl"), o = parseInt(n.lineHeight);
18899
+ let n = window.getComputedStyle(e.parentNode), r = Jo(t[0], n.direction != "rtl"), o = parseInt(n.lineHeight);
18900
18900
  return r.bottom - r.top > o * 1.5 ? { left: r.left, right: r.right, top: r.top, bottom: r.top + o } : r;
18901
18901
  }
18902
18902
  ignoreEvent() {
@@ -19005,7 +19005,7 @@ function xS(i = {}) {
19005
19005
  })
19006
19006
  ];
19007
19007
  }
19008
- const Ms = "-10000px";
19008
+ const As = "-10000px";
19009
19009
  class jp {
19010
19010
  constructor(e, t, n, r) {
19011
19011
  this.facet = t, this.createTooltipView = n, this.removeTooltipView = r, this.input = e.state.facet(t), this.tooltips = this.input.filter((s) => s);
@@ -19104,7 +19104,7 @@ const Fa = /* @__PURE__ */ me.define({
19104
19104
  let r = document.createElement("div");
19105
19105
  r.className = "cm-tooltip-arrow", t.dom.appendChild(r);
19106
19106
  }
19107
- return t.dom.style.position = this.position, t.dom.style.top = Ms, t.dom.style.left = "0px", this.container.insertBefore(t.dom, n), t.mount && t.mount(this.view), this.resizeObserver && this.resizeObserver.observe(t.dom), t;
19107
+ return t.dom.style.position = this.position, t.dom.style.top = As, t.dom.style.left = "0px", this.container.insertBefore(t.dom, n), t.mount && t.mount(this.view), this.resizeObserver && this.resizeObserver.observe(t.dom), t;
19108
19108
  }
19109
19109
  destroy() {
19110
19110
  var i, e, t;
@@ -19160,7 +19160,7 @@ const Fa = /* @__PURE__ */ me.define({
19160
19160
  for (let l = 0; l < this.manager.tooltips.length; l++) {
19161
19161
  let a = this.manager.tooltips[l], u = this.manager.tooltipViews[l], { dom: c } = u, h = i.pos[l], d = i.size[l];
19162
19162
  if (!h || a.clip !== !1 && (h.bottom <= Math.max(t.top, n.top) || h.top >= Math.min(t.bottom, n.bottom) || h.right < Math.max(t.left, n.left) - 0.1 || h.left > Math.min(t.right, n.right) + 0.1)) {
19163
- c.style.top = Ms;
19163
+ c.style.top = As;
19164
19164
  continue;
19165
19165
  }
19166
19166
  let f = a.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, m = f ? 7 : 0, g = d.right - d.left, p = (e = sf.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, w = u.offset || SS, M = this.view.textDirection == at.LTR, y = d.width > n.right - n.left ? M ? n.left : n.right - d.width : M ? Math.max(n.left, Math.min(h.left - (f ? 14 : 0) + w.x, n.right - g)) : Math.min(Math.max(n.left, h.left - g + (f ? 14 : 0) - w.x), n.right - g), v = this.above[l];
@@ -19168,7 +19168,7 @@ const Fa = /* @__PURE__ */ me.define({
19168
19168
  let k = (v ? h.top - n.top : n.bottom - h.bottom) - m;
19169
19169
  if (k < p && u.resize !== !1) {
19170
19170
  if (k < this.view.defaultLineHeight) {
19171
- c.style.top = Ms;
19171
+ c.style.top = As;
19172
19172
  continue;
19173
19173
  }
19174
19174
  sf.set(u, p), c.style.height = (p = k) / o + "px";
@@ -19187,7 +19187,7 @@ const Fa = /* @__PURE__ */ me.define({
19187
19187
  maybeMeasure() {
19188
19188
  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)))
19189
19189
  for (let i of this.manager.tooltipViews)
19190
- i.dom.style.top = Ms;
19190
+ i.dom.style.top = As;
19191
19191
  }
19192
19192
  }, {
19193
19193
  eventObservers: {
@@ -19263,7 +19263,7 @@ const wS = /* @__PURE__ */ he.baseTheme({
19263
19263
  }
19264
19264
  }), SS = { x: 0, y: 0 }, Yl = /* @__PURE__ */ me.define({
19265
19265
  enables: [zc, wS]
19266
- }), vl = /* @__PURE__ */ me.define({
19266
+ }), yl = /* @__PURE__ */ me.define({
19267
19267
  combine: (i) => i.reduce((e, t) => e.concat(t), [])
19268
19268
  });
19269
19269
  class Gl {
@@ -19272,7 +19272,7 @@ class Gl {
19272
19272
  return new Gl(e);
19273
19273
  }
19274
19274
  constructor(e) {
19275
- this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new jp(e, vl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
19275
+ this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new jp(e, yl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
19276
19276
  }
19277
19277
  createHostedView(e, t) {
19278
19278
  let n = e.create(this.view);
@@ -19321,8 +19321,8 @@ class Gl {
19321
19321
  return this.passProp("resize");
19322
19322
  }
19323
19323
  }
19324
- const CS = /* @__PURE__ */ Yl.compute([vl], (i) => {
19325
- let e = i.facet(vl);
19324
+ const CS = /* @__PURE__ */ Yl.compute([yl], (i) => {
19325
+ let e = i.facet(yl);
19326
19326
  return e.length === 0 ? null : {
19327
19327
  pos: Math.min(...e.map((t) => t.pos)),
19328
19328
  end: Math.max(...e.map((t) => {
@@ -19406,14 +19406,14 @@ class MS {
19406
19406
  clearTimeout(this.hoverTimeout), this.view.dom.removeEventListener("mouseleave", this.mouseleave), this.view.dom.removeEventListener("mousemove", this.mousemove);
19407
19407
  }
19408
19408
  }
19409
- const As = 4;
19409
+ const Ts = 4;
19410
19410
  function AS(i, e) {
19411
19411
  let { left: t, right: n, top: r, bottom: o } = i.getBoundingClientRect(), s;
19412
19412
  if (s = i.querySelector(".cm-tooltip-arrow")) {
19413
19413
  let l = s.getBoundingClientRect();
19414
19414
  r = Math.min(l.top, r), o = Math.max(l.bottom, o);
19415
19415
  }
19416
- return e.clientX >= t - As && e.clientX <= n + As && e.clientY >= r - As && e.clientY <= o + As;
19416
+ return e.clientX >= t - Ts && e.clientX <= n + Ts && e.clientY >= r - Ts && e.clientY <= o + Ts;
19417
19417
  }
19418
19418
  function TS(i, e, t, n, r, o) {
19419
19419
  let s = i.scrollDOM.getBoundingClientRect(), l = i.documentTop + i.documentPadding.top + i.contentHeight;
@@ -19443,7 +19443,7 @@ function OS(i, e = {}) {
19443
19443
  s.is(t) && (r = s.value), s.is(DS) && (r = []);
19444
19444
  return r;
19445
19445
  },
19446
- provide: (r) => vl.from(r)
19446
+ provide: (r) => yl.from(r)
19447
19447
  });
19448
19448
  return {
19449
19449
  active: n,
@@ -19484,13 +19484,13 @@ const Wp = /* @__PURE__ */ gt.fromClass(class {
19484
19484
  constructor(i) {
19485
19485
  this.input = i.state.facet(Ro), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(i));
19486
19486
  let e = i.state.facet(af);
19487
- this.top = new Ts(i, !0, e.topContainer), this.bottom = new Ts(i, !1, e.bottomContainer), this.top.sync(this.panels.filter((t) => t.top)), this.bottom.sync(this.panels.filter((t) => !t.top));
19487
+ this.top = new Os(i, !0, e.topContainer), this.bottom = new Os(i, !1, e.bottomContainer), this.top.sync(this.panels.filter((t) => t.top)), this.bottom.sync(this.panels.filter((t) => !t.top));
19488
19488
  for (let t of this.panels)
19489
19489
  t.dom.classList.add("cm-panel"), t.mount && t.mount();
19490
19490
  }
19491
19491
  update(i) {
19492
19492
  let e = i.state.facet(af);
19493
- this.top.container != e.topContainer && (this.top.sync([]), this.top = new Ts(i.view, !0, e.topContainer)), this.bottom.container != e.bottomContainer && (this.bottom.sync([]), this.bottom = new Ts(i.view, !1, e.bottomContainer)), this.top.syncClasses(), this.bottom.syncClasses();
19493
+ this.top.container != e.topContainer && (this.top.sync([]), this.top = new Os(i.view, !0, e.topContainer)), this.bottom.container != e.bottomContainer && (this.bottom.sync([]), this.bottom = new Os(i.view, !1, e.bottomContainer)), this.top.syncClasses(), this.bottom.syncClasses();
19494
19494
  let t = i.state.facet(Ro);
19495
19495
  if (t != this.input) {
19496
19496
  let n = t.filter((a) => a), r = [], o = [], s = [], l = [];
@@ -19514,7 +19514,7 @@ const Wp = /* @__PURE__ */ gt.fromClass(class {
19514
19514
  return t && { top: t.top.scrollMargin(), bottom: t.bottom.scrollMargin() };
19515
19515
  })
19516
19516
  });
19517
- class Ts {
19517
+ class Os {
19518
19518
  constructor(e, t, n) {
19519
19519
  this.view = e, this.top = t, this.container = n, this.dom = void 0, this.classes = "", this.panels = [], this.syncClasses();
19520
19520
  }
@@ -19588,7 +19588,7 @@ en.prototype.toDOM = void 0;
19588
19588
  en.prototype.mapMode = ni.TrackBefore;
19589
19589
  en.prototype.startSide = en.prototype.endSide = -1;
19590
19590
  en.prototype.point = !0;
19591
- const Gs = /* @__PURE__ */ me.define(), _S = /* @__PURE__ */ me.define(), PS = {
19591
+ const Js = /* @__PURE__ */ me.define(), _S = /* @__PURE__ */ me.define(), PS = {
19592
19592
  class: "",
19593
19593
  renderEmptyElements: !1,
19594
19594
  elementStyle: "",
@@ -19636,7 +19636,7 @@ const qS = /* @__PURE__ */ gt.fromClass(class {
19636
19636
  syncGutters(i) {
19637
19637
  let e = this.dom.nextSibling;
19638
19638
  i && (this.dom.remove(), this.domAfter && this.domAfter.remove());
19639
- let t = Ve.iter(this.view.state.facet(Gs), this.view.viewport.from), n = [], r = this.gutters.map((o) => new BS(o, this.view.viewport, -this.view.documentPadding.top));
19639
+ let t = Ve.iter(this.view.state.facet(Js), this.view.viewport.from), n = [], r = this.gutters.map((o) => new BS(o, this.view.viewport, -this.view.documentPadding.top));
19640
19640
  for (let o of this.view.viewportLineBlocks)
19641
19641
  if (n.length && (n = []), Array.isArray(o.type)) {
19642
19642
  let s = !0;
@@ -19661,7 +19661,7 @@ const qS = /* @__PURE__ */ gt.fromClass(class {
19661
19661
  i && (this.view.scrollDOM.insertBefore(this.dom, e), this.domAfter && this.view.scrollDOM.appendChild(this.domAfter));
19662
19662
  }
19663
19663
  updateGutters(i) {
19664
- let e = i.startState.facet(ko), t = i.state.facet(ko), n = i.docChanged || i.heightChanged || i.viewportChanged || !Ve.eq(i.startState.facet(Gs), i.state.facet(Gs), i.view.viewport.from, i.view.viewport.to);
19664
+ let e = i.startState.facet(ko), t = i.state.facet(ko), n = i.docChanged || i.heightChanged || i.viewportChanged || !Ve.eq(i.startState.facet(Js), i.state.facet(Js), i.view.viewport.from, i.view.viewport.to);
19665
19665
  if (e == t)
19666
19666
  for (let r of this.gutters)
19667
19667
  r.update(i) && (n = !0);
@@ -19890,7 +19890,7 @@ const VS = /* @__PURE__ */ new class extends en {
19890
19890
  constructor() {
19891
19891
  super(...arguments), this.elementClass = "cm-activeLineGutter";
19892
19892
  }
19893
- }(), FS = /* @__PURE__ */ Gs.compute(["selection"], (i) => {
19893
+ }(), FS = /* @__PURE__ */ Js.compute(["selection"], (i) => {
19894
19894
  let e = [], t = -1;
19895
19895
  for (let n of i.selection.ranges) {
19896
19896
  let r = i.doc.lineAt(n.head).from;
@@ -19946,7 +19946,7 @@ Be.isolate = new Be({ deserialize: (i) => {
19946
19946
  Be.contextHash = new Be({ perNode: !0 });
19947
19947
  Be.lookAhead = new Be({ perNode: !0 });
19948
19948
  Be.mounted = new Be({ perNode: !0 });
19949
- class yl {
19949
+ class bl {
19950
19950
  constructor(e, t, n) {
19951
19951
  this.tree = e, this.overlay = t, this.parser = n;
19952
19952
  }
@@ -20087,7 +20087,7 @@ class jc {
20087
20087
  return new jc(t);
20088
20088
  }
20089
20089
  }
20090
- const Os = /* @__PURE__ */ new WeakMap(), mf = /* @__PURE__ */ new WeakMap();
20090
+ const Ds = /* @__PURE__ */ new WeakMap(), mf = /* @__PURE__ */ new WeakMap();
20091
20091
  var _t;
20092
20092
  (function(i) {
20093
20093
  i[i.ExcludeBuffers = 1] = "ExcludeBuffers", i[i.IncludeAnonymous = 2] = "IncludeAnonymous", i[i.IgnoreMounts = 4] = "IgnoreMounts", i[i.IgnoreOverlays = 8] = "IgnoreOverlays";
@@ -20107,7 +20107,7 @@ class wt {
20107
20107
  @internal
20108
20108
  */
20109
20109
  toString() {
20110
- let e = yl.get(this);
20110
+ let e = bl.get(this);
20111
20111
  if (e && !e.overlay)
20112
20112
  return e.tree.toString();
20113
20113
  let t = "";
@@ -20131,8 +20131,8 @@ class wt {
20131
20131
  [`moveTo`](#common.TreeCursor.moveTo).
20132
20132
  */
20133
20133
  cursorAt(e, t = 0, n = 0) {
20134
- let r = Os.get(this) || this.topNode, o = new Ju(r);
20135
- return o.moveTo(e, t), Os.set(this, o._tree), o;
20134
+ let r = Ds.get(this) || this.topNode, o = new Ju(r);
20135
+ return o.moveTo(e, t), Ds.set(this, o._tree), o;
20136
20136
  }
20137
20137
  /**
20138
20138
  Get a [syntax node](#common.SyntaxNode) object for the top of the
@@ -20153,8 +20153,8 @@ class wt {
20153
20153
  [`resolveInner`](#common.Tree.resolveInner) instead.
20154
20154
  */
20155
20155
  resolve(e, t = 0) {
20156
- let n = Eo(Os.get(this) || this.topNode, e, t, !1);
20157
- return Os.set(this, n), n;
20156
+ let n = Eo(Ds.get(this) || this.topNode, e, t, !1);
20157
+ return Ds.set(this, n), n;
20158
20158
  }
20159
20159
  /**
20160
20160
  Like [`resolve`](#common.Tree.resolve), but will enter
@@ -20415,7 +20415,7 @@ class Ai extends Zp {
20415
20415
  return new qn(new jS(s, c, e, h), null, d);
20416
20416
  } else if (o & _t.IncludeAnonymous || !c.type.isAnonymous || Wc(c)) {
20417
20417
  let d;
20418
- if (!(o & _t.IgnoreMounts) && (d = yl.get(c)) && !d.overlay)
20418
+ if (!(o & _t.IgnoreMounts) && (d = bl.get(c)) && !d.overlay)
20419
20419
  return new Ai(d.tree, h, e, s);
20420
20420
  let f = new Ai(c, h, e, s);
20421
20421
  return o & _t.IncludeAnonymous || !f.type.isAnonymous ? f : f.nextChild(t < 0 ? c.children.length - 1 : 0, t, n, r);
@@ -20464,7 +20464,7 @@ class Ai extends Zp {
20464
20464
  }
20465
20465
  enter(e, t, n = 0) {
20466
20466
  let r;
20467
- if (!(n & _t.IgnoreOverlays) && (r = yl.get(this._tree)) && r.overlay) {
20467
+ if (!(n & _t.IgnoreOverlays) && (r = bl.get(this._tree)) && r.overlay) {
20468
20468
  let o = e - this.from;
20469
20469
  for (let { from: s, to: l } of r.overlay)
20470
20470
  if ((t > 0 ? s <= o : s < o) && (t < 0 ? l >= o : l > o))
@@ -20671,7 +20671,7 @@ function WS(i, e, t) {
20671
20671
  let s = o.parent;
20672
20672
  (r || (r = [n])).push(s.resolve(e, t)), o = s;
20673
20673
  } else {
20674
- let s = yl.get(o.tree);
20674
+ let s = bl.get(o.tree);
20675
20675
  if (s && s.overlay && s.overlay[0].from <= e && s.overlay[s.overlay.length - 1].to >= e) {
20676
20676
  let l = new Ai(s.tree, s.overlay[0].from + o.from, -1, o);
20677
20677
  (r || (r = [n])).push(Eo(l, e, t, !1));
@@ -21110,7 +21110,7 @@ function US(i) {
21110
21110
  return new wt(a[i.topID], M.reverse(), y.reverse(), v);
21111
21111
  }
21112
21112
  const pf = /* @__PURE__ */ new WeakMap();
21113
- function Js(i, e) {
21113
+ function Xs(i, e) {
21114
21114
  if (!i.isAnonymous || e instanceof In || e.type != i)
21115
21115
  return 1;
21116
21116
  let t = pf.get(e);
@@ -21121,7 +21121,7 @@ function Js(i, e) {
21121
21121
  t = 1;
21122
21122
  break;
21123
21123
  }
21124
- t += Js(i, n);
21124
+ t += Xs(i, n);
21125
21125
  }
21126
21126
  pf.set(e, t);
21127
21127
  }
@@ -21130,16 +21130,16 @@ function Js(i, e) {
21130
21130
  function Uc(i, e, t, n, r, o, s, l, a) {
21131
21131
  let u = 0;
21132
21132
  for (let m = n; m < r; m++)
21133
- u += Js(i, e[m]);
21133
+ u += Xs(i, e[m]);
21134
21134
  let c = Math.ceil(
21135
21135
  u * 1.5 / 8
21136
21136
  /* Balance.BranchFactor */
21137
21137
  ), h = [], d = [];
21138
21138
  function f(m, g, p, w, M) {
21139
21139
  for (let y = p; y < w; ) {
21140
- let v = y, k = g[y], T = Js(i, m[y]);
21140
+ let v = y, k = g[y], T = Xs(i, m[y]);
21141
21141
  for (y++; y < w; y++) {
21142
- let B = Js(i, m[y]);
21142
+ let B = Xs(i, m[y]);
21143
21143
  if (T + B >= c)
21144
21144
  break;
21145
21145
  T += B;
@@ -21310,12 +21310,12 @@ class wi {
21310
21310
  `m1(m3(t1)`, and so on.
21311
21311
  */
21312
21312
  static defineModifier(e) {
21313
- let t = new bl(e);
21314
- return (n) => n.modified.indexOf(t) > -1 ? n : bl.get(n.base || n, n.modified.concat(t).sort((r, o) => r.id - o.id));
21313
+ let t = new xl(e);
21314
+ return (n) => n.modified.indexOf(t) > -1 ? n : xl.get(n.base || n, n.modified.concat(t).sort((r, o) => r.id - o.id));
21315
21315
  }
21316
21316
  }
21317
21317
  let GS = 0;
21318
- class bl {
21318
+ class xl {
21319
21319
  constructor(e) {
21320
21320
  this.name = e, this.instances = [], this.id = GS++;
21321
21321
  }
@@ -21332,7 +21332,7 @@ class bl {
21332
21332
  for (let l of e.set)
21333
21333
  if (!l.modified.length)
21334
21334
  for (let a of s)
21335
- r.push(bl.get(l, a));
21335
+ r.push(xl.get(l, a));
21336
21336
  return o;
21337
21337
  }
21338
21338
  }
@@ -21499,23 +21499,23 @@ function tC(i) {
21499
21499
  e = e.next;
21500
21500
  return e || null;
21501
21501
  }
21502
- const ae = wi.define, Ds = ae(), Sn = ae(), vf = ae(Sn), yf = ae(Sn), Cn = ae(), _s = ae(Cn), ja = ae(Cn), zi = ae(), Wn = ae(zi), Ni = ae(), Hi = ae(), Xu = ae(), ro = ae(Xu), Ps = ae(), K = {
21502
+ const ae = wi.define, _s = ae(), Sn = ae(), vf = ae(Sn), yf = ae(Sn), Cn = ae(), Ps = ae(Cn), ja = ae(Cn), zi = ae(), Wn = ae(zi), Ni = ae(), Hi = ae(), Xu = ae(), ro = ae(Xu), qs = ae(), K = {
21503
21503
  /**
21504
21504
  A comment.
21505
21505
  */
21506
- comment: Ds,
21506
+ comment: _s,
21507
21507
  /**
21508
21508
  A line [comment](#highlight.tags.comment).
21509
21509
  */
21510
- lineComment: ae(Ds),
21510
+ lineComment: ae(_s),
21511
21511
  /**
21512
21512
  A block [comment](#highlight.tags.comment).
21513
21513
  */
21514
- blockComment: ae(Ds),
21514
+ blockComment: ae(_s),
21515
21515
  /**
21516
21516
  A documentation [comment](#highlight.tags.comment).
21517
21517
  */
21518
- docComment: ae(Ds),
21518
+ docComment: ae(_s),
21519
21519
  /**
21520
21520
  Any kind of identifier.
21521
21521
  */
@@ -21563,19 +21563,19 @@ const ae = wi.define, Ds = ae(), Sn = ae(), vf = ae(Sn), yf = ae(Sn), Cn = ae(),
21563
21563
  /**
21564
21564
  A string [literal](#highlight.tags.literal).
21565
21565
  */
21566
- string: _s,
21566
+ string: Ps,
21567
21567
  /**
21568
21568
  A documentation [string](#highlight.tags.string).
21569
21569
  */
21570
- docString: ae(_s),
21570
+ docString: ae(Ps),
21571
21571
  /**
21572
21572
  A character literal (subtag of [string](#highlight.tags.string)).
21573
21573
  */
21574
- character: ae(_s),
21574
+ character: ae(Ps),
21575
21575
  /**
21576
21576
  An attribute value (subtag of [string](#highlight.tags.string)).
21577
21577
  */
21578
- attributeValue: ae(_s),
21578
+ attributeValue: ae(Ps),
21579
21579
  /**
21580
21580
  A number [literal](#highlight.tags.literal).
21581
21581
  */
@@ -21809,22 +21809,22 @@ const ae = wi.define, Ds = ae(), Sn = ae(), vf = ae(Sn), yf = ae(Sn), Cn = ae(),
21809
21809
  /**
21810
21810
  Metadata or meta-instruction.
21811
21811
  */
21812
- meta: Ps,
21812
+ meta: qs,
21813
21813
  /**
21814
21814
  [Metadata](#highlight.tags.meta) that applies to the entire
21815
21815
  document.
21816
21816
  */
21817
- documentMeta: ae(Ps),
21817
+ documentMeta: ae(qs),
21818
21818
  /**
21819
21819
  [Metadata](#highlight.tags.meta) that annotates or adds
21820
21820
  attributes to a given syntactic element.
21821
21821
  */
21822
- annotation: ae(Ps),
21822
+ annotation: ae(qs),
21823
21823
  /**
21824
21824
  Processing instruction or preprocessor directive. Subtag of
21825
21825
  [meta](#highlight.tags.meta).
21826
21826
  */
21827
- processingInstruction: ae(Ps),
21827
+ processingInstruction: ae(qs),
21828
21828
  /**
21829
21829
  [Modifier](#highlight.Tag^defineModifier) that indicates that a
21830
21830
  given element is being defined. Expected to be used with the
@@ -21999,7 +21999,7 @@ function bf(i, e, t) {
21999
21999
  o.type.isTop && (r = o);
22000
22000
  return r;
22001
22001
  }
22002
- class xl extends Pi {
22002
+ class kl extends Pi {
22003
22003
  constructor(e, t, n) {
22004
22004
  super(e, t, [], n), this.parser = t;
22005
22005
  }
@@ -22008,7 +22008,7 @@ class xl extends Pi {
22008
22008
  */
22009
22009
  static define(e) {
22010
22010
  let t = iC(e.languageData);
22011
- return new xl(t, e.parser.configure({
22011
+ return new kl(t, e.parser.configure({
22012
22012
  props: [Ar.add((n) => n.isTop ? t : void 0)]
22013
22013
  }), e.name);
22014
22014
  }
@@ -22017,7 +22017,7 @@ class xl extends Pi {
22017
22017
  version of its parser and optionally a new name.
22018
22018
  */
22019
22019
  configure(e, t) {
22020
- return new xl(this.data, this.parser.configure(e), t || this.name);
22020
+ return new kl(this.data, this.parser.configure(e), t || this.name);
22021
22021
  }
22022
22022
  get allowsNesting() {
22023
22023
  return this.parser.hasWrappers();
@@ -22052,7 +22052,7 @@ class rC {
22052
22052
  }
22053
22053
  }
22054
22054
  let oo = null;
22055
- class kl {
22055
+ class wl {
22056
22056
  constructor(e, t, n = [], r, o, s, l, a) {
22057
22057
  this.parser = e, this.state = t, this.fragments = n, this.tree = r, this.treeLen = o, this.viewport = s, this.skipped = l, this.scheduleOn = a, this.parse = null, this.tempSkipped = [];
22058
22058
  }
@@ -22060,7 +22060,7 @@ class kl {
22060
22060
  @internal
22061
22061
  */
22062
22062
  static create(e, t, n) {
22063
- return new kl(e, t, [], wt.empty, 0, n, [], null);
22063
+ return new wl(e, t, [], wt.empty, 0, n, [], null);
22064
22064
  }
22065
22065
  startParse() {
22066
22066
  return this.parser.startParse(new rC(this.state.doc), this.fragments);
@@ -22126,7 +22126,7 @@ class kl {
22126
22126
  }
22127
22127
  }
22128
22128
  }
22129
- return new kl(this.parser, t, n, r, o, s, l, this.scheduleOn);
22129
+ return new wl(this.parser, t, n, r, o, s, l, this.scheduleOn);
22130
22130
  }
22131
22131
  /**
22132
22132
  @internal
@@ -22217,7 +22217,7 @@ class Ur {
22217
22217
  return t.work(20, n) || t.takeTree(), new Ur(t);
22218
22218
  }
22219
22219
  static init(e) {
22220
- let t = Math.min(3e3, e.doc.length), n = kl.create(e.facet(Vn).parser, e, { from: 0, to: t });
22220
+ let t = Math.min(3e3, e.doc.length), n = wl.create(e.facet(Vn).parser, e, { from: 0, to: t });
22221
22221
  return n.work(20, t) || n.takeTree(), new Ur(n);
22222
22222
  }
22223
22223
  }
@@ -22323,7 +22323,7 @@ const lC = /* @__PURE__ */ me.define(), Jl = /* @__PURE__ */ me.define({
22323
22323
  return e;
22324
22324
  }
22325
22325
  });
22326
- function wl(i) {
22326
+ function Sl(i) {
22327
22327
  let e = i.facet(Jl);
22328
22328
  return e.charCodeAt(0) == 9 ? i.tabSize * e.length : e.length;
22329
22329
  }
@@ -22353,7 +22353,7 @@ class Xl {
22353
22353
  Create an indent context.
22354
22354
  */
22355
22355
  constructor(e, t = {}) {
22356
- this.state = e, this.options = t, this.unit = wl(e);
22356
+ this.state = e, this.options = t, this.unit = Sl(e);
22357
22357
  }
22358
22358
  /**
22359
22359
  Get a description of the line at the given position, taking
@@ -22598,7 +22598,7 @@ function xC(i) {
22598
22598
  let e = i.lastChild;
22599
22599
  return e && e.to == i.to && e.type.isError;
22600
22600
  }
22601
- function Sl(i, e, t) {
22601
+ function Cl(i, e, t) {
22602
22602
  for (let n of i.facet(vC)) {
22603
22603
  let r = n(i, e, t);
22604
22604
  if (r)
@@ -22610,7 +22610,7 @@ function av(i, e) {
22610
22610
  let t = e.mapPos(i.from, 1), n = e.mapPos(i.to, -1);
22611
22611
  return t >= n ? void 0 : { from: t, to: n };
22612
22612
  }
22613
- const Zl = /* @__PURE__ */ Te.define({ map: av }), ts = /* @__PURE__ */ Te.define({ map: av });
22613
+ const Zl = /* @__PURE__ */ Te.define({ map: av }), is = /* @__PURE__ */ Te.define({ map: av });
22614
22614
  function uv(i) {
22615
22615
  let e = [];
22616
22616
  for (let { head: t } of i.state.selection.ranges)
@@ -22627,7 +22627,7 @@ const hr = /* @__PURE__ */ Tt.define({
22627
22627
  if (t.is(Zl) && !kC(i, t.value.from, t.value.to)) {
22628
22628
  let { preparePlaceholder: n } = e.state.facet(dv), r = n ? ke.replace({ widget: new OC(n(e.state, t.value)) }) : Sf;
22629
22629
  i = i.update({ add: [r.range(t.value.from, t.value.to)] });
22630
- } else t.is(ts) && (i = i.update({
22630
+ } else t.is(is) && (i = i.update({
22631
22631
  filter: (n, r) => t.value.from != n || t.value.to != r,
22632
22632
  filterFrom: t.value.from,
22633
22633
  filterTo: t.value.to
@@ -22664,7 +22664,7 @@ function wf(i, e, t = e) {
22664
22664
  filter: (r, o) => r >= t || o <= e
22665
22665
  }) : i;
22666
22666
  }
22667
- function Cl(i, e, t) {
22667
+ function Ml(i, e, t) {
22668
22668
  var n;
22669
22669
  let r = null;
22670
22670
  return (n = i.field(hr, !1)) === null || n === void 0 || n.between(e, t, (o, s) => {
@@ -22682,7 +22682,7 @@ function cv(i, e) {
22682
22682
  }
22683
22683
  const wC = (i) => {
22684
22684
  for (let e of uv(i)) {
22685
- let t = Sl(i.state, e.from, e.to);
22685
+ let t = Cl(i.state, e.from, e.to);
22686
22686
  if (t)
22687
22687
  return i.dispatch({ effects: cv(i.state, [Zl.of(t), hv(i, t)]) }), !0;
22688
22688
  }
@@ -22692,8 +22692,8 @@ const wC = (i) => {
22692
22692
  return !1;
22693
22693
  let e = [];
22694
22694
  for (let t of uv(i)) {
22695
- let n = Cl(i.state, t.from, t.to);
22696
- n && e.push(ts.of(n), hv(i, n, !1));
22695
+ let n = Ml(i.state, t.from, t.to);
22696
+ n && e.push(is.of(n), hv(i, n, !1));
22697
22697
  }
22698
22698
  return e.length && i.dispatch({ effects: e }), e.length > 0;
22699
22699
  };
@@ -22704,7 +22704,7 @@ function hv(i, e, t = !0) {
22704
22704
  const CC = (i) => {
22705
22705
  let { state: e } = i, t = [];
22706
22706
  for (let n = 0; n < e.doc.length; ) {
22707
- let r = i.lineBlockAt(n), o = Sl(e, r.from, r.to);
22707
+ let r = i.lineBlockAt(n), o = Cl(e, r.from, r.to);
22708
22708
  o && t.push(Zl.of(o)), n = (o ? i.lineBlockAt(o.to) : r).to + 1;
22709
22709
  }
22710
22710
  return t.length && i.dispatch({ effects: cv(i.state, t) }), !!t.length;
@@ -22714,7 +22714,7 @@ const CC = (i) => {
22714
22714
  return !1;
22715
22715
  let t = [];
22716
22716
  return e.between(0, i.state.doc.length, (n, r) => {
22717
- t.push(ts.of({ from: n, to: r }));
22717
+ t.push(is.of({ from: n, to: r }));
22718
22718
  }), i.dispatch({ effects: t }), !0;
22719
22719
  }, AC = [
22720
22720
  { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: wC },
@@ -22735,8 +22735,8 @@ function fv(i) {
22735
22735
  }
22736
22736
  function mv(i, e) {
22737
22737
  let { state: t } = i, n = t.facet(dv), r = (s) => {
22738
- let l = i.lineBlockAt(i.posAtDOM(s.target)), a = Cl(i.state, l.from, l.to);
22739
- a && i.dispatch({ effects: ts.of(a) }), s.preventDefault();
22738
+ let l = i.lineBlockAt(i.posAtDOM(s.target)), a = Ml(i.state, l.from, l.to);
22739
+ a && i.dispatch({ effects: is.of(a) }), s.preventDefault();
22740
22740
  };
22741
22741
  if (n.placeholderDOM)
22742
22742
  return n.placeholderDOM(i, r, e);
@@ -22791,7 +22791,7 @@ function _C(i = {}) {
22791
22791
  buildMarkers(s) {
22792
22792
  let l = new gn();
22793
22793
  for (let a of s.viewportLineBlocks) {
22794
- let u = Cl(s.state, a.from, a.to) ? n : Sl(s.state, a.from, a.to) ? t : null;
22794
+ let u = Ml(s.state, a.from, a.to) ? n : Cl(s.state, a.from, a.to) ? t : null;
22795
22795
  u && l.add(a.from, a.from, u);
22796
22796
  }
22797
22797
  return l.finish();
@@ -22813,10 +22813,10 @@ function _C(i = {}) {
22813
22813
  click: (s, l, a) => {
22814
22814
  if (o.click && o.click(s, l, a))
22815
22815
  return !0;
22816
- let u = Cl(s.state, l.from, l.to);
22816
+ let u = Ml(s.state, l.from, l.to);
22817
22817
  if (u)
22818
- return s.dispatch({ effects: ts.of(u) }), !0;
22819
- let c = Sl(s.state, l.from, l.to);
22818
+ return s.dispatch({ effects: is.of(u) }), !0;
22819
+ let c = Cl(s.state, l.from, l.to);
22820
22820
  return c ? (s.dispatch({ effects: Zl.of(c) }), !0) : !1;
22821
22821
  }
22822
22822
  }
@@ -22839,7 +22839,7 @@ const PC = /* @__PURE__ */ he.baseTheme({
22839
22839
  cursor: "pointer"
22840
22840
  }
22841
22841
  });
22842
- class is {
22842
+ class ns {
22843
22843
  constructor(e, t) {
22844
22844
  this.specs = e;
22845
22845
  let n;
@@ -22871,7 +22871,7 @@ class is {
22871
22871
  defined earlier.
22872
22872
  */
22873
22873
  static define(e, t) {
22874
- return new is(e, t || {});
22874
+ return new ns(e, t || {});
22875
22875
  }
22876
22876
  }
22877
22877
  const Zu = /* @__PURE__ */ me.define(), gv = /* @__PURE__ */ me.define({
@@ -22885,7 +22885,7 @@ function Ka(i) {
22885
22885
  }
22886
22886
  function pv(i, e) {
22887
22887
  let t = [BC], n;
22888
- return i instanceof is && (i.module && t.push(he.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(gv.of(i)) : n ? t.push(Zu.computeN([he.darkTheme], (r) => r.facet(he.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Zu.of(i)), t;
22888
+ return i instanceof ns && (i.module && t.push(he.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(gv.of(i)) : n ? t.push(Zu.computeN([he.darkTheme], (r) => r.facet(he.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Zu.of(i)), t;
22889
22889
  }
22890
22890
  class qC {
22891
22891
  constructor(e) {
@@ -22908,7 +22908,7 @@ class qC {
22908
22908
  }
22909
22909
  const BC = /* @__PURE__ */ fr.high(/* @__PURE__ */ gt.fromClass(qC, {
22910
22910
  decorations: (i) => i.decorations
22911
- })), LC = /* @__PURE__ */ is.define([
22911
+ })), LC = /* @__PURE__ */ ns.define([
22912
22912
  {
22913
22913
  tag: K.meta,
22914
22914
  color: "#404740"
@@ -23283,7 +23283,7 @@ const tc = /* @__PURE__ */ yn.define(), tM = /* @__PURE__ */ yn.define(), iM = /
23283
23283
  let t = e.state.facet(kv), n = e.annotation(tc);
23284
23284
  if (n) {
23285
23285
  let a = ci.fromTransaction(e, n.selection), u = n.side, c = u == 0 ? i.undone : i.done;
23286
- return a ? c = Ml(c, c.length, t.minDepth, a) : c = Mv(c, e.startState.selection), new Gi(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
23286
+ return a ? c = Al(c, c.length, t.minDepth, a) : c = Mv(c, e.startState.selection), new Gi(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
23287
23287
  }
23288
23288
  let r = e.annotation(tM);
23289
23289
  if ((r == "full" || r == "before") && (i = i.isolate()), e.annotation(At.addToHistory) === !1)
@@ -23356,7 +23356,7 @@ class ci {
23356
23356
  return new ci(void 0, Si, void 0, void 0, e);
23357
23357
  }
23358
23358
  }
23359
- function Ml(i, e, t, n) {
23359
+ function Al(i, e, t, n) {
23360
23360
  let r = e + 1 > t + 20 ? e - t - 1 : 0, o = i.slice(r, e);
23361
23361
  return o.push(n), o;
23362
23362
  }
@@ -23379,7 +23379,7 @@ const Si = [], aM = 200;
23379
23379
  function Mv(i, e) {
23380
23380
  if (i.length) {
23381
23381
  let t = i[i.length - 1], n = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - aM));
23382
- return n.length && n[n.length - 1].eq(e) ? i : (n.push(e), Ml(i, i.length - 1, 1e9, t.setSelAfter(n)));
23382
+ return n.length && n[n.length - 1].eq(e) ? i : (n.push(e), Al(i, i.length - 1, 1e9, t.setSelAfter(n)));
23383
23383
  } else
23384
23384
  return [ci.selection([e])];
23385
23385
  }
@@ -23419,7 +23419,7 @@ class Gi {
23419
23419
  addChanges(e, t, n, r, o) {
23420
23420
  let s = this.done, l = s[s.length - 1];
23421
23421
  return l && l.changes && !l.changes.empty && e.changes && (!n || hM.test(n)) && (!l.selectionsAfter.length && t - this.prevTime < r.newGroupDelay && r.joinToEvent(o, sM(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
23422
- n == "input.type.compose") ? s = Ml(s, s.length - 1, r.minDepth, new ci(e.changes.compose(l.changes), Cv(Te.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, Si)) : s = Ml(s, s.length, r.minDepth, e), new Gi(s, Si, t, n);
23422
+ n == "input.type.compose") ? s = Al(s, s.length - 1, r.minDepth, new ci(e.changes.compose(l.changes), Cv(Te.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, Si)) : s = Al(s, s.length, r.minDepth, e), new Gi(s, Si, t, n);
23423
23423
  }
23424
23424
  addSelection(e, t, n, r) {
23425
23425
  let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Si;
@@ -23628,16 +23628,16 @@ const FM = (i) => jv(i, !1), NM = (i) => jv(i, !0), HM = ({ state: i, dispatch:
23628
23628
  let t = i.selection, n = null;
23629
23629
  return t.ranges.length > 1 ? n = X.create([t.main]) : t.main.empty || (n = X.create([X.cursor(t.main.head)])), n ? (e(Ri(i, n)), !0) : !1;
23630
23630
  };
23631
- function ns(i, e) {
23631
+ function rs(i, e) {
23632
23632
  if (i.state.readOnly)
23633
23633
  return !1;
23634
23634
  let t = "delete.selection", { state: n } = i, r = n.changeByRange((o) => {
23635
23635
  let { from: s, to: l } = o;
23636
23636
  if (s == l) {
23637
23637
  let a = e(o);
23638
- a < s ? (t = "delete.backward", a = qs(i, a, !1)) : a > s && (t = "delete.forward", a = qs(i, a, !0)), s = Math.min(s, a), l = Math.max(l, a);
23638
+ a < s ? (t = "delete.backward", a = Bs(i, a, !1)) : a > s && (t = "delete.forward", a = Bs(i, a, !0)), s = Math.min(s, a), l = Math.max(l, a);
23639
23639
  } else
23640
- s = qs(i, s, !1), l = qs(i, l, !0);
23640
+ s = Bs(i, s, !1), l = Bs(i, l, !0);
23641
23641
  return s == l ? { range: o } : { changes: { from: s, to: l }, range: X.cursor(s, s < o.head ? -1 : 1) };
23642
23642
  });
23643
23643
  return r.changes.empty ? !1 : (i.dispatch(n.update(r, {
@@ -23646,7 +23646,7 @@ function ns(i, e) {
23646
23646
  effects: t == "delete.selection" ? he.announce.of(n.phrase("Selection deleted")) : void 0
23647
23647
  })), !0);
23648
23648
  }
23649
- function qs(i, e, t) {
23649
+ function Bs(i, e, t) {
23650
23650
  if (i instanceof he)
23651
23651
  for (let n of i.state.facet(he.atomicRanges).map((r) => r(i)))
23652
23652
  n.between(e, e, (r, o) => {
@@ -23654,19 +23654,19 @@ function qs(i, e, t) {
23654
23654
  });
23655
23655
  return e;
23656
23656
  }
23657
- const Qv = (i, e, t) => ns(i, (n) => {
23657
+ const Qv = (i, e, t) => rs(i, (n) => {
23658
23658
  let r = n.from, { state: o } = i, s = o.doc.lineAt(r), l, a;
23659
23659
  if (t && !e && r > s.from && r < s.from + 200 && !/[^ \t]/.test(l = s.text.slice(0, r - s.from))) {
23660
23660
  if (l[l.length - 1] == " ")
23661
23661
  return r - 1;
23662
- let u = Jr(l, o.tabSize), c = u % wl(o) || wl(o);
23662
+ let u = Jr(l, o.tabSize), c = u % Sl(o) || Sl(o);
23663
23663
  for (let h = 0; h < c && l[l.length - 1 - h] == " "; h++)
23664
23664
  r--;
23665
23665
  a = r;
23666
23666
  } else
23667
23667
  a = zt(s.text, r - s.from, e, e) + s.from, a == r && s.number != (e ? o.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(a - s.from, r - s.from)) && (a = zt(s.text, a - s.from, !1, !1) + s.from);
23668
23668
  return a;
23669
- }), rc = (i) => Qv(i, !1, !0), Wv = (i) => Qv(i, !0, !1), Uv = (i, e) => ns(i, (t) => {
23669
+ }), rc = (i) => Qv(i, !1, !0), Wv = (i) => Qv(i, !0, !1), Uv = (i, e) => rs(i, (t) => {
23670
23670
  let n = t.head, { state: r } = i, o = r.doc.lineAt(n), s = r.charCategorizer(n);
23671
23671
  for (let l = null; ; ) {
23672
23672
  if (n == (e ? o.to : o.from)) {
@@ -23679,13 +23679,13 @@ const Qv = (i, e, t) => ns(i, (n) => {
23679
23679
  (u != " " || n != t.head) && (l = c), n = a;
23680
23680
  }
23681
23681
  return n;
23682
- }), Kv = (i) => Uv(i, !1), zM = (i) => Uv(i, !0), jM = (i) => ns(i, (e) => {
23682
+ }), Kv = (i) => Uv(i, !1), zM = (i) => Uv(i, !0), jM = (i) => rs(i, (e) => {
23683
23683
  let t = i.lineBlockAt(e.head).to;
23684
23684
  return e.head < t ? t : Math.min(i.state.doc.length, e.head + 1);
23685
- }), QM = (i) => ns(i, (e) => {
23685
+ }), QM = (i) => rs(i, (e) => {
23686
23686
  let t = i.moveToLineBoundary(e, !1).head;
23687
23687
  return e.head > t ? t : Math.max(0, e.head - 1);
23688
- }), WM = (i) => ns(i, (e) => {
23688
+ }), WM = (i) => rs(i, (e) => {
23689
23689
  let t = i.moveToLineBoundary(e, !0).head;
23690
23690
  return e.head < t ? t : Math.min(i.state.doc.length, e.head + 1);
23691
23691
  }), UM = ({ state: i, dispatch: e }) => {
@@ -23833,7 +23833,7 @@ const tA = ({ state: i, dispatch: e }) => {
23833
23833
  let r = /^\s*/.exec(t.text)[0];
23834
23834
  if (!r)
23835
23835
  return;
23836
- let o = Jr(r, i.tabSize), s = 0, l = Vo(i, Math.max(0, o - wl(i)));
23836
+ let o = Jr(r, i.tabSize), s = 0, l = Vo(i, Math.max(0, o - Sl(i)));
23837
23837
  for (; s < r.length && s < l.length && r.charCodeAt(s) == l.charCodeAt(s); )
23838
23838
  s++;
23839
23839
  n.push({ from: t.from + s, to: t.from + r.length, insert: l.slice(s) });
@@ -23985,7 +23985,7 @@ class e0 {
23985
23985
  return new t0(e, t, n, r, o);
23986
23986
  this.re = new RegExp(t, Zc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.iter = e.iter();
23987
23987
  let s = e.lineAt(r);
23988
- this.curLineStart = s.from, this.matchPos = Al(e, r), this.getLine(this.curLineStart);
23988
+ this.curLineStart = s.from, this.matchPos = Tl(e, r), this.getLine(this.curLineStart);
23989
23989
  }
23990
23990
  getLine(e) {
23991
23991
  this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
@@ -24002,7 +24002,7 @@ class e0 {
24002
24002
  let t = this.matchPos <= this.to && this.re.exec(this.curLine);
24003
24003
  if (t) {
24004
24004
  let n = this.curLineStart + t.index, r = n + t[0].length;
24005
- if (this.matchPos = Al(this.text, r + (n == r ? 1 : 0)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t)))
24005
+ if (this.matchPos = Tl(this.text, r + (n == r ? 1 : 0)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t)))
24006
24006
  return this.value = { from: n, to: r, match: t }, this;
24007
24007
  e = this.matchPos - this.curLineStart;
24008
24008
  } else if (this.curLineStart + this.curLine.length < this.to)
@@ -24034,7 +24034,7 @@ class Lr {
24034
24034
  }
24035
24035
  class t0 {
24036
24036
  constructor(e, t, n, r, o) {
24037
- this.text = e, this.to = o, this.done = !1, this.value = $v, this.matchPos = Al(e, r), this.re = new RegExp(t, Zc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Lr.get(e, r, this.chunkEnd(
24037
+ this.text = e, this.to = o, this.done = !1, this.value = $v, this.matchPos = Tl(e, r), this.re = new RegExp(t, Zc + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Lr.get(e, r, this.chunkEnd(
24038
24038
  r + 5e3
24039
24039
  /* Chunk.Base */
24040
24040
  ));
@@ -24048,7 +24048,7 @@ class t0 {
24048
24048
  if (t && !t[0] && t.index == e && (this.re.lastIndex = e + 1, t = this.re.exec(this.flat.text)), t) {
24049
24049
  let n = this.flat.from + t.index, r = n + t[0].length;
24050
24050
  if ((this.flat.to >= this.to || t.index + t[0].length <= this.flat.text.length - 10) && (!this.test || this.test(n, r, t)))
24051
- return this.value = { from: n, to: r, match: t }, this.matchPos = Al(this.text, r + (n == r ? 1 : 0)), this;
24051
+ return this.value = { from: n, to: r, match: t }, this.matchPos = Tl(this.text, r + (n == r ? 1 : 0)), this;
24052
24052
  }
24053
24053
  if (this.flat.to == this.to)
24054
24054
  return this.done = !0, this;
@@ -24066,7 +24066,7 @@ function lA(i) {
24066
24066
  return !1;
24067
24067
  }
24068
24068
  }
24069
- function Al(i, e) {
24069
+ function Tl(i, e) {
24070
24070
  if (e >= i.length)
24071
24071
  return e;
24072
24072
  let t = i.lineAt(e), n;
@@ -24301,7 +24301,7 @@ function kr(i, e, t, n) {
24301
24301
  return new Kr(e.doc, i.unquoted, t, n, i.caseSensitive ? void 0 : (r) => r.toLowerCase(), i.wholeWord ? kA(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
24302
24302
  }
24303
24303
  function kA(i, e) {
24304
- return (t, n, r, o) => ((o > t || o + r.length < n) && (o = Math.max(0, t - 2), r = i.sliceString(o, Math.min(i.length, n + 2))), (e(Tl(r, t - o)) != ut.Word || e(Ol(r, t - o)) != ut.Word) && (e(Ol(r, n - o)) != ut.Word || e(Tl(r, n - o)) != ut.Word));
24304
+ return (t, n, r, o) => ((o > t || o + r.length < n) && (o = Math.max(0, t - 2), r = i.sliceString(o, Math.min(i.length, n + 2))), (e(Ol(r, t - o)) != ut.Word || e(Dl(r, t - o)) != ut.Word) && (e(Dl(r, n - o)) != ut.Word || e(Ol(r, n - o)) != ut.Word));
24305
24305
  }
24306
24306
  class wA extends n0 {
24307
24307
  constructor(e) {
@@ -24357,14 +24357,14 @@ function wr(i, e, t, n) {
24357
24357
  test: i.wholeWord ? SA(e.charCategorizer(e.selection.main.head)) : void 0
24358
24358
  }, t, n);
24359
24359
  }
24360
- function Tl(i, e) {
24360
+ function Ol(i, e) {
24361
24361
  return i.slice(zt(i, e, !1), e);
24362
24362
  }
24363
- function Ol(i, e) {
24363
+ function Dl(i, e) {
24364
24364
  return i.slice(e, zt(i, e));
24365
24365
  }
24366
24366
  function SA(i) {
24367
- return (e, t, n) => !n[0].length || (i(Tl(n.input, n.index)) != ut.Word || i(Ol(n.input, n.index)) != ut.Word) && (i(Ol(n.input, n.index + n[0].length)) != ut.Word || i(Tl(n.input, n.index + n[0].length)) != ut.Word);
24367
+ return (e, t, n) => !n[0].length || (i(Ol(n.input, n.index)) != ut.Word || i(Dl(n.input, n.index)) != ut.Word) && (i(Dl(n.input, n.index + n[0].length)) != ut.Word || i(Ol(n.input, n.index + n[0].length)) != ut.Word);
24368
24368
  }
24369
24369
  class CA extends n0 {
24370
24370
  nextMatch(e, t, n) {
@@ -24464,13 +24464,13 @@ const MA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch" }), AA = /* @__PURE
24464
24464
  }, {
24465
24465
  decorations: (i) => i.decorations
24466
24466
  });
24467
- function rs(i) {
24467
+ function os(i) {
24468
24468
  return (e) => {
24469
24469
  let t = e.state.field(Bn, !1);
24470
24470
  return t && t.query.spec.valid ? i(e, t) : s0(e);
24471
24471
  };
24472
24472
  }
24473
- const Dl = /* @__PURE__ */ rs((i, { query: e }) => {
24473
+ const _l = /* @__PURE__ */ os((i, { query: e }) => {
24474
24474
  let { to: t } = i.state.selection.main, n = e.nextMatch(i.state, t, t);
24475
24475
  if (!n)
24476
24476
  return !1;
@@ -24480,7 +24480,7 @@ const Dl = /* @__PURE__ */ rs((i, { query: e }) => {
24480
24480
  effects: [th(i, n), o.scrollToMatch(r.main, i)],
24481
24481
  userEvent: "select.search"
24482
24482
  }), o0(i), !0;
24483
- }), _l = /* @__PURE__ */ rs((i, { query: e }) => {
24483
+ }), Pl = /* @__PURE__ */ os((i, { query: e }) => {
24484
24484
  let { state: t } = i, { from: n } = t.selection.main, r = e.prevMatch(t, n, n);
24485
24485
  if (!r)
24486
24486
  return !1;
@@ -24490,7 +24490,7 @@ const Dl = /* @__PURE__ */ rs((i, { query: e }) => {
24490
24490
  effects: [th(i, r), s.scrollToMatch(o.main, i)],
24491
24491
  userEvent: "select.search"
24492
24492
  }), o0(i), !0;
24493
- }), OA = /* @__PURE__ */ rs((i, { query: e }) => {
24493
+ }), OA = /* @__PURE__ */ os((i, { query: e }) => {
24494
24494
  let t = e.matchAll(i.state, 1e3);
24495
24495
  return !t || !t.length ? !1 : (i.dispatch({
24496
24496
  selection: X.create(t.map((n) => X.range(n.from, n.to))),
@@ -24510,7 +24510,7 @@ const Dl = /* @__PURE__ */ rs((i, { query: e }) => {
24510
24510
  selection: X.create(o, s),
24511
24511
  userEvent: "select.search.matches"
24512
24512
  })), !0;
24513
- }, Vf = /* @__PURE__ */ rs((i, { query: e }) => {
24513
+ }, Vf = /* @__PURE__ */ os((i, { query: e }) => {
24514
24514
  let { state: t } = i, { from: n, to: r } = t.selection.main;
24515
24515
  if (t.readOnly)
24516
24516
  return !1;
@@ -24526,7 +24526,7 @@ const Dl = /* @__PURE__ */ rs((i, { query: e }) => {
24526
24526
  effects: c,
24527
24527
  userEvent: "input.replace"
24528
24528
  }), !0;
24529
- }), _A = /* @__PURE__ */ rs((i, { query: e }) => {
24529
+ }), _A = /* @__PURE__ */ os((i, { query: e }) => {
24530
24530
  if (i.state.readOnly)
24531
24531
  return !1;
24532
24532
  let t = e.matchAll(i.state, 1e9).map((r) => {
@@ -24589,8 +24589,8 @@ const s0 = (i) => {
24589
24589
  return t && t.dom.contains(i.root.activeElement) && i.focus(), i.dispatch({ effects: $c.of(!1) }), !0;
24590
24590
  }, PA = [
24591
24591
  { key: "Mod-f", run: s0, scope: "editor search-panel" },
24592
- { key: "F3", run: Dl, shift: _l, scope: "editor search-panel", preventDefault: !0 },
24593
- { key: "Mod-g", run: Dl, shift: _l, scope: "editor search-panel", preventDefault: !0 },
24592
+ { key: "F3", run: _l, shift: Pl, scope: "editor search-panel", preventDefault: !0 },
24593
+ { key: "Mod-g", run: _l, shift: Pl, scope: "editor search-panel", preventDefault: !0 },
24594
24594
  { key: "Escape", run: l0, scope: "editor search-panel" },
24595
24595
  { key: "Mod-Shift-l", run: DA },
24596
24596
  { key: "Mod-Alt-g", run: aA },
@@ -24643,8 +24643,8 @@ class qA {
24643
24643
  }
24644
24644
  this.dom = Xe("div", { onkeydown: (r) => this.keydown(r), class: "cm-search" }, [
24645
24645
  this.searchField,
24646
- n("next", () => Dl(e), [di(e, "next")]),
24647
- n("prev", () => _l(e), [di(e, "previous")]),
24646
+ n("next", () => _l(e), [di(e, "next")]),
24647
+ n("prev", () => Pl(e), [di(e, "previous")]),
24648
24648
  n("select", () => OA(e), [di(e, "all")]),
24649
24649
  Xe("label", null, [this.caseField, di(e, "match case")]),
24650
24650
  Xe("label", null, [this.reField, di(e, "regexp")]),
@@ -24674,7 +24674,7 @@ class qA {
24674
24674
  e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: Fo.of(e) }));
24675
24675
  }
24676
24676
  keydown(e) {
24677
- Nw(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? _l : Dl)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Vf(this.view));
24677
+ Nw(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Pl : _l)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Vf(this.view));
24678
24678
  }
24679
24679
  update(e) {
24680
24680
  for (let t of e.transactions)
@@ -24697,19 +24697,19 @@ class qA {
24697
24697
  function di(i, e) {
24698
24698
  return i.state.phrase(e);
24699
24699
  }
24700
- const Bs = 30, Ls = /[\s\.,:;?!]/;
24700
+ const Ls = 30, Rs = /[\s\.,:;?!]/;
24701
24701
  function th(i, { from: e, to: t }) {
24702
- let n = i.state.doc.lineAt(e), r = i.state.doc.lineAt(t).to, o = Math.max(n.from, e - Bs), s = Math.min(r, t + Bs), l = i.state.sliceDoc(o, s);
24702
+ let n = i.state.doc.lineAt(e), r = i.state.doc.lineAt(t).to, o = Math.max(n.from, e - Ls), s = Math.min(r, t + Ls), l = i.state.sliceDoc(o, s);
24703
24703
  if (o != n.from) {
24704
- for (let a = 0; a < Bs; a++)
24705
- if (!Ls.test(l[a + 1]) && Ls.test(l[a])) {
24704
+ for (let a = 0; a < Ls; a++)
24705
+ if (!Rs.test(l[a + 1]) && Rs.test(l[a])) {
24706
24706
  l = l.slice(a);
24707
24707
  break;
24708
24708
  }
24709
24709
  }
24710
24710
  if (s != r) {
24711
- for (let a = l.length - 1; a > l.length - Bs; a--)
24712
- if (!Ls.test(l[a - 1]) && Ls.test(l[a])) {
24711
+ for (let a = l.length - 1; a > l.length - Ls; a--)
24712
+ if (!Rs.test(l[a - 1]) && Rs.test(l[a])) {
24713
24713
  l = l.slice(0, a);
24714
24714
  break;
24715
24715
  }
@@ -24864,7 +24864,7 @@ function VA(i) {
24864
24864
  let e = Hf.get(i);
24865
24865
  return e || Hf.set(i, e = EA(i)), e;
24866
24866
  }
24867
- const Pl = /* @__PURE__ */ Te.define(), No = /* @__PURE__ */ Te.define();
24867
+ const ql = /* @__PURE__ */ Te.define(), No = /* @__PURE__ */ Te.define();
24868
24868
  class FA {
24869
24869
  constructor(e) {
24870
24870
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
@@ -25259,12 +25259,12 @@ class Tr {
25259
25259
  return new Tr(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
25260
25260
  }
25261
25261
  }
25262
- class ql {
25262
+ class Bl {
25263
25263
  constructor(e, t, n) {
25264
25264
  this.active = e, this.id = t, this.open = n;
25265
25265
  }
25266
25266
  static start() {
25267
- return new ql(JA, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
25267
+ return new Bl(JA, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
25268
25268
  }
25269
25269
  update(e) {
25270
25270
  let { state: t } = e, n = t.facet(qt), o = (n.override || t.languageDataAt("autocomplete", sr(t)).map(VA)).map((a) => (this.active.find((c) => c.source == a) || new Ci(
@@ -25284,7 +25284,7 @@ class ql {
25284
25284
  ) : a));
25285
25285
  for (let a of e.effects)
25286
25286
  a.is(d0) && (s = s && s.setSelected(a.value, this.id));
25287
- return o == this.active && s == this.open ? this : new ql(o, this.id, s);
25287
+ return o == this.active && s == this.open ? this : new Bl(o, this.id, s);
25288
25288
  }
25289
25289
  get tooltip() {
25290
25290
  return this.open ? this.open.tooltip : null;
@@ -25351,7 +25351,7 @@ class Ci {
25351
25351
  /* State.Pending */
25352
25352
  )), r = r.updateFor(e, n);
25353
25353
  for (let o of e.effects)
25354
- if (o.is(Pl))
25354
+ if (o.is(ql))
25355
25355
  r = new Ci(r.source, 1, o.value);
25356
25356
  else if (o.is(No))
25357
25357
  r = new Ci(
@@ -25420,7 +25420,7 @@ const ih = /* @__PURE__ */ Te.define({
25420
25420
  }
25421
25421
  }), d0 = /* @__PURE__ */ Te.define(), ui = /* @__PURE__ */ Tt.define({
25422
25422
  create() {
25423
- return ql.start();
25423
+ return Bl.start();
25424
25424
  },
25425
25425
  update(i, e) {
25426
25426
  return i.update(e);
@@ -25439,7 +25439,7 @@ function nh(i, e) {
25439
25439
  }) : t(i, e.completion, n.from, n.to), !0) : !1;
25440
25440
  }
25441
25441
  const ZA = /* @__PURE__ */ QA(ui, nh);
25442
- function Rs(i, e = "option") {
25442
+ function Es(i, e = "option") {
25443
25443
  return (t) => {
25444
25444
  let n = t.state.field(ui, !1);
25445
25445
  if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < t.state.facet(qt).interactionDelay)
@@ -25453,7 +25453,7 @@ function Rs(i, e = "option") {
25453
25453
  const $A = (i) => {
25454
25454
  let e = i.state.field(ui, !1);
25455
25455
  return i.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < i.state.facet(qt).interactionDelay ? !1 : nh(i, e.open.options[e.open.selected]);
25456
- }, $a = (i) => i.state.field(ui, !1) ? (i.dispatch({ effects: Pl.of(!0) }), !0) : !1, eT = (i) => {
25456
+ }, $a = (i) => i.state.field(ui, !1) ? (i.dispatch({ effects: ql.of(!0) }), !0) : !1, eT = (i) => {
25457
25457
  let e = i.state.field(ui, !1);
25458
25458
  return !e || !e.active.some(
25459
25459
  (t) => t.state != 0
@@ -25492,7 +25492,7 @@ const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25492
25492
  } else
25493
25493
  s.updates.push(...i.transactions);
25494
25494
  }
25495
- this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), i.transactions.some((o) => o.effects.some((s) => s.is(Pl))) && (this.pendingStart = !0);
25495
+ this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), i.transactions.some((o) => o.effects.some((s) => s.is(ql))) && (this.pendingStart = !0);
25496
25496
  let r = this.pendingStart ? 50 : t.activateOnTypingDelay;
25497
25497
  if (this.debounceUpdate = e.active.some((o) => o.isPending && !this.running.some((s) => s.active.source == o.source)) ? setTimeout(() => this.startUpdate(), r) : -1, this.composing != 0)
25498
25498
  for (let o of i.transactions)
@@ -25564,7 +25564,7 @@ const iT = 50, nT = 1e3, rT = /* @__PURE__ */ gt.fromClass(class {
25564
25564
  this.composing = 1;
25565
25565
  },
25566
25566
  compositionend() {
25567
- this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: Pl.of(!1) }), 20), this.composing = 0;
25567
+ this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: ql.of(!1) }), 20), this.composing = 0;
25568
25568
  }
25569
25569
  }
25570
25570
  }), oT = typeof navigator == "object" && /* @__PURE__ */ /Win/.test(navigator.platform), sT = /* @__PURE__ */ fr.highest(/* @__PURE__ */ he.domEventHandlers({
@@ -25914,12 +25914,12 @@ const v0 = [
25914
25914
  { mac: "Alt-`", run: $a },
25915
25915
  { mac: "Alt-i", run: $a },
25916
25916
  { key: "Escape", run: eT },
25917
- { key: "ArrowDown", run: /* @__PURE__ */ Rs(!0) },
25918
- { key: "ArrowUp", run: /* @__PURE__ */ Rs(!1) },
25919
- { key: "PageDown", run: /* @__PURE__ */ Rs(!0, "page") },
25920
- { key: "PageUp", run: /* @__PURE__ */ Rs(!1, "page") },
25917
+ { key: "ArrowDown", run: /* @__PURE__ */ Es(!0) },
25918
+ { key: "ArrowUp", run: /* @__PURE__ */ Es(!1) },
25919
+ { key: "PageDown", run: /* @__PURE__ */ Es(!0, "page") },
25920
+ { key: "PageUp", run: /* @__PURE__ */ Es(!1, "page") },
25921
25921
  { key: "Enter", run: $A }
25922
- ], xT = /* @__PURE__ */ fr.highest(/* @__PURE__ */ $o.computeN([qt], (i) => i.facet(qt).defaultKeymap ? [v0] : []));
25922
+ ], xT = /* @__PURE__ */ fr.highest(/* @__PURE__ */ es.computeN([qt], (i) => i.facet(qt).defaultKeymap ? [v0] : []));
25923
25923
  class Kf {
25924
25924
  constructor(e, t, n) {
25925
25925
  this.from = e, this.to = t, this.diagnostic = n;
@@ -26319,11 +26319,11 @@ class zo {
26319
26319
  return new zo(e);
26320
26320
  }
26321
26321
  }
26322
- function Xs(i, e = 'viewBox="0 0 40 40"') {
26322
+ function Zs(i, e = 'viewBox="0 0 40 40"') {
26323
26323
  return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(i)}</svg>')`;
26324
26324
  }
26325
- function Es(i) {
26326
- return Xs(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${i}" fill="none" stroke-width=".7"/>`, 'width="6" height="3"');
26325
+ function Is(i) {
26326
+ return Zs(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${i}" fill="none" stroke-width=".7"/>`, 'width="6" height="3"');
26327
26327
  }
26328
26328
  const PT = /* @__PURE__ */ he.baseTheme({
26329
26329
  ".cm-diagnostic": {
@@ -26355,10 +26355,10 @@ const PT = /* @__PURE__ */ he.baseTheme({
26355
26355
  backgroundRepeat: "repeat-x",
26356
26356
  paddingBottom: "0.7px"
26357
26357
  },
26358
- ".cm-lintRange-error": { backgroundImage: /* @__PURE__ */ Es("#d11") },
26359
- ".cm-lintRange-warning": { backgroundImage: /* @__PURE__ */ Es("orange") },
26360
- ".cm-lintRange-info": { backgroundImage: /* @__PURE__ */ Es("#999") },
26361
- ".cm-lintRange-hint": { backgroundImage: /* @__PURE__ */ Es("#66d") },
26358
+ ".cm-lintRange-error": { backgroundImage: /* @__PURE__ */ Is("#d11") },
26359
+ ".cm-lintRange-warning": { backgroundImage: /* @__PURE__ */ Is("orange") },
26360
+ ".cm-lintRange-info": { backgroundImage: /* @__PURE__ */ Is("#999") },
26361
+ ".cm-lintRange-hint": { backgroundImage: /* @__PURE__ */ Is("#66d") },
26362
26362
  ".cm-lintRange-active": { backgroundColor: "#ffdd9980" },
26363
26363
  ".cm-tooltip-lint": {
26364
26364
  padding: 0,
@@ -26526,13 +26526,13 @@ const ET = /* @__PURE__ */ Up({
26526
26526
  height: "1em"
26527
26527
  },
26528
26528
  ".cm-lint-marker-info": {
26529
- content: /* @__PURE__ */ Xs('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')
26529
+ content: /* @__PURE__ */ Zs('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')
26530
26530
  },
26531
26531
  ".cm-lint-marker-warning": {
26532
- content: /* @__PURE__ */ Xs('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')
26532
+ content: /* @__PURE__ */ Zs('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')
26533
26533
  },
26534
26534
  ".cm-lint-marker-error": {
26535
- content: /* @__PURE__ */ Xs('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')
26535
+ content: /* @__PURE__ */ Zs('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')
26536
26536
  }
26537
26537
  }), T0 = [
26538
26538
  yi,
@@ -26574,7 +26574,7 @@ const FT = [
26574
26574
  xS(),
26575
26575
  uS(),
26576
26576
  dA(),
26577
- $o.of([
26577
+ es.of([
26578
26578
  ...dT,
26579
26579
  ...oA,
26580
26580
  ...PA,
@@ -26604,7 +26604,7 @@ var NT = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize
26604
26604
  e(s), s.docChanged && t(s.state.doc.toString(), s), s.focusChanged && (s.view.hasFocus ? n(s) : r(s));
26605
26605
  })]) });
26606
26606
  }, Sr = function(i) {
26607
- var e = new Yo();
26607
+ var e = new Go();
26608
26608
  return { compartment: e, run: function(t) {
26609
26609
  e.get(i.state) ? i.dispatch({ effects: e.reconfigure(t) }) : i.dispatch({ effects: Te.appendConfig.of(e.of(t)) });
26610
26610
  } };
@@ -26614,7 +26614,7 @@ var NT = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize
26614
26614
  var s = n.get(i.state);
26615
26615
  r(o ?? s !== e ? e : []);
26616
26616
  };
26617
- }, Is = { type: Boolean, default: void 0 }, jT = { autofocus: Is, disabled: Is, indentWithTab: Is, tabSize: Number, placeholder: String, style: Object, autoDestroy: Is, phrases: Object, root: Object, extensions: Array, selection: Object }, QT = { modelValue: { type: String, default: "" } }, WT = Object.assign(Object.assign({}, jT), QT);
26617
+ }, Vs = { type: Boolean, default: void 0 }, jT = { autofocus: Vs, disabled: Vs, indentWithTab: Vs, tabSize: Number, placeholder: String, style: Object, autoDestroy: Vs, phrases: Object, root: Object, extensions: Array, selection: Object }, QT = { modelValue: { type: String, default: "" } }, WT = Object.assign(Object.assign({}, jT), QT);
26618
26618
  (function(i) {
26619
26619
  i.Change = "change", i.Update = "update", i.Focus = "focus", i.Blur = "blur", i.Ready = "ready", i.ModelUpdate = "update:modelValue";
26620
26620
  })(ti || (ti = {}));
@@ -26656,7 +26656,7 @@ var UT = Object.assign(Object.assign({}, Jn), O0), KT = Lt({ name: "VueCodemirro
26656
26656
  var a = function(u) {
26657
26657
  var c = function() {
26658
26658
  return u.state.doc.toString();
26659
- }, h = Sr(u).run, d = Xf(u, [he.editable.of(!1), Ie.readOnly.of(!0)]), f = Xf(u, $o.of([sA])), m = Sr(u).run, g = Sr(u).run, p = Sr(u).run, w = Sr(u).run;
26659
+ }, h = Sr(u).run, d = Xf(u, [he.editable.of(!1), Ie.readOnly.of(!0)]), f = Xf(u, es.of([sA])), m = Sr(u).run, g = Sr(u).run, p = Sr(u).run, w = Sr(u).run;
26660
26660
  return { focus: function() {
26661
26661
  return u.focus();
26662
26662
  }, getDoc: c, setDoc: function(M) {
@@ -26712,7 +26712,7 @@ var UT = Object.assign(Object.assign({}, Jn), O0), KT = Lt({ name: "VueCodemirro
26712
26712
  return _("div", { class: "v-codemirror", style: { display: "contents" }, ref: t });
26713
26713
  };
26714
26714
  } }), YT = KT;
26715
- class Bl {
26715
+ class Ll {
26716
26716
  /**
26717
26717
  @internal
26718
26718
  */
@@ -26731,7 +26731,7 @@ class Bl {
26731
26731
  */
26732
26732
  static start(e, t, n = 0) {
26733
26733
  let r = e.parser.context;
26734
- return new Bl(e, [], t, n, n, 0, [], 0, r ? new Zf(r, r.start) : null, 0, null);
26734
+ return new Ll(e, [], t, n, n, 0, [], 0, r ? new Zf(r, r.start) : null, 0, null);
26735
26735
  }
26736
26736
  /**
26737
26737
  The stack's current [context](#lr.ContextTracker) value, if
@@ -26872,7 +26872,7 @@ class Bl {
26872
26872
  let n = e.buffer.slice(t), r = e.bufferBase + t;
26873
26873
  for (; e && r == e.bufferBase; )
26874
26874
  e = e.parent;
26875
- return new Bl(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, n, r, this.curContext, this.lookAhead, e);
26875
+ return new Ll(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, n, r, this.curContext, this.lookAhead, e);
26876
26876
  }
26877
26877
  // Try to recover from an error by 'deleting' (ignoring) one token.
26878
26878
  /**
@@ -27103,12 +27103,12 @@ class GT {
27103
27103
  this.state = r;
27104
27104
  }
27105
27105
  }
27106
- class Ll {
27106
+ class Rl {
27107
27107
  constructor(e, t, n) {
27108
27108
  this.stack = e, this.pos = t, this.index = n, this.buffer = e.buffer, this.index == 0 && this.maybeNext();
27109
27109
  }
27110
27110
  static create(e, t = e.bufferBase + e.buffer.length) {
27111
- return new Ll(e, t, t - e.bufferBase);
27111
+ return new Rl(e, t, t - e.bufferBase);
27112
27112
  }
27113
27113
  maybeNext() {
27114
27114
  let e = this.stack.parent;
@@ -27130,10 +27130,10 @@ class Ll {
27130
27130
  this.index -= 4, this.pos -= 4, this.index == 0 && this.maybeNext();
27131
27131
  }
27132
27132
  fork() {
27133
- return new Ll(this.stack, this.pos, this.index);
27133
+ return new Rl(this.stack, this.pos, this.index);
27134
27134
  }
27135
27135
  }
27136
- function Vs(i, e = Uint16Array) {
27136
+ function Fs(i, e = Uint16Array) {
27137
27137
  if (typeof i != "string")
27138
27138
  return i;
27139
27139
  let t = null;
@@ -27155,12 +27155,12 @@ function Vs(i, e = Uint16Array) {
27155
27155
  }
27156
27156
  return t;
27157
27157
  }
27158
- class Zs {
27158
+ class $s {
27159
27159
  constructor() {
27160
27160
  this.start = -1, this.value = -1, this.end = -1, this.extended = -1, this.lookAhead = 0, this.mask = 0, this.context = 0;
27161
27161
  }
27162
27162
  }
27163
- const $f = new Zs();
27163
+ const $f = new $s();
27164
27164
  class JT {
27165
27165
  /**
27166
27166
  @internal
@@ -27434,7 +27434,7 @@ class $T {
27434
27434
  }
27435
27435
  class eO {
27436
27436
  constructor(e, t) {
27437
- this.stream = t, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((n) => new Zs());
27437
+ this.stream = t, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((n) => new $s());
27438
27438
  }
27439
27439
  getActions(e) {
27440
27440
  let t = 0, n = null, { parser: r } = e.p, { tokenizers: o } = r, s = r.stateSlot(
@@ -27454,12 +27454,12 @@ class eO {
27454
27454
  }
27455
27455
  for (; this.actions.length > t; )
27456
27456
  this.actions.pop();
27457
- return a && e.setLookAhead(a), !n && e.pos == this.stream.end && (n = new Zs(), n.value = e.p.parser.eofTerm, n.start = n.end = e.pos, t = this.addActions(e, n.value, n.end, t)), this.mainToken = n, this.actions;
27457
+ return a && e.setLookAhead(a), !n && e.pos == this.stream.end && (n = new $s(), n.value = e.p.parser.eofTerm, n.start = n.end = e.pos, t = this.addActions(e, n.value, n.end, t)), this.mainToken = n, this.actions;
27458
27458
  }
27459
27459
  getMainToken(e) {
27460
27460
  if (this.mainToken)
27461
27461
  return this.mainToken;
27462
- let t = new Zs(), { pos: n, p: r } = e;
27462
+ let t = new $s(), { pos: n, p: r } = e;
27463
27463
  return t.start = n, t.end = Math.min(n + 1, r.stream.end), t.value = n == r.stream.end ? r.parser.eofTerm : 0, t;
27464
27464
  }
27465
27465
  updateCachedToken(e, t, n) {
@@ -27507,7 +27507,7 @@ class tO {
27507
27507
  constructor(e, t, n, r) {
27508
27508
  this.parser = e, this.input = t, this.ranges = r, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new JT(t, r), this.tokens = new eO(e, this.stream), this.topTerm = e.top[1];
27509
27509
  let { from: o } = r[0];
27510
- this.stacks = [Bl.start(this, e.top[0], o)], this.fragments = n.length && this.stream.end - o > e.bufferLength * 4 ? new $T(n, e.nodeSet) : null;
27510
+ this.stacks = [Ll.start(this, e.top[0], o)], this.fragments = n.length && this.stream.end - o > e.bufferLength * 4 ? new $T(n, e.nodeSet) : null;
27511
27511
  }
27512
27512
  get parsedPos() {
27513
27513
  return this.minStackPos;
@@ -27670,7 +27670,7 @@ class tO {
27670
27670
  // Convert the stack's buffer to a syntax tree.
27671
27671
  stackToTree(e) {
27672
27672
  return e.close(), wt.build({
27673
- buffer: Ll.create(e),
27673
+ buffer: Rl.create(e),
27674
27674
  nodeSet: this.parser.nodeSet,
27675
27675
  topID: this.topTerm,
27676
27676
  maxBufferLength: this.parser.bufferLength,
@@ -27703,7 +27703,7 @@ class iO {
27703
27703
  return !this.disabled || this.disabled[e] == 0;
27704
27704
  }
27705
27705
  }
27706
- class Rl extends ev {
27706
+ class El extends ev {
27707
27707
  /**
27708
27708
  @internal
27709
27709
  */
@@ -27744,11 +27744,11 @@ class Rl extends ev {
27744
27744
  error: a == 0,
27745
27745
  skipped: e.skippedNodes && e.skippedNodes.indexOf(a) > -1
27746
27746
  }))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = Jp;
27747
- let s = Vs(e.tokenData);
27747
+ let s = Fs(e.tokenData);
27748
27748
  this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
27749
27749
  for (let l = 0; l < this.specializerSpecs.length; l++)
27750
27750
  this.specialized[l] = this.specializerSpecs[l].term;
27751
- this.specializers = this.specializerSpecs.map(nm), this.states = Vs(e.states, Uint32Array), this.data = Vs(e.stateData), this.goto = Vs(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((l) => typeof l == "number" ? new Er(s, l) : l), 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]];
27751
+ this.specializers = this.specializerSpecs.map(nm), this.states = Fs(e.states, Uint32Array), this.data = Fs(e.stateData), this.goto = Fs(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((l) => typeof l == "number" ? new Er(s, l) : l), 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]];
27752
27752
  }
27753
27753
  createParse(e, t, n) {
27754
27754
  let r = new tO(this, e, t, n);
@@ -27872,7 +27872,7 @@ class Rl extends ev {
27872
27872
  kept from the original parser.
27873
27873
  */
27874
27874
  configure(e) {
27875
- let t = Object.assign(Object.create(Rl.prototype), this);
27875
+ let t = Object.assign(Object.create(El.prototype), this);
27876
27876
  if (e.props && (t.nodeSet = this.nodeSet.extend(...e.props)), e.top) {
27877
27877
  let n = this.topRules[e.top];
27878
27878
  if (!n)
@@ -27948,7 +27948,7 @@ class Rl extends ev {
27948
27948
  user code. @hide
27949
27949
  */
27950
27950
  static deserialize(e) {
27951
- return new Rl(e);
27951
+ return new El(e);
27952
27952
  }
27953
27953
  }
27954
27954
  function an(i, e) {
@@ -27982,7 +27982,7 @@ const rO = tv({
27982
27982
  ", :": K.separator,
27983
27983
  "[ ]": K.squareBracket,
27984
27984
  "{ }": K.brace
27985
- }), oO = Rl.deserialize({
27985
+ }), oO = El.deserialize({
27986
27986
  version: 14,
27987
27987
  states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
27988
27988
  stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
@@ -28021,7 +28021,7 @@ function lO(i, e) {
28021
28021
  let t;
28022
28022
  return (t = i.message.match(/at position (\d+)/)) ? Math.min(+t[1], e.length) : (t = i.message.match(/at line (\d+) column (\d+)/)) ? Math.min(e.line(+t[1]).from + +t[2] - 1, e.length) : 0;
28023
28023
  }
28024
- const aO = /* @__PURE__ */ xl.define({
28024
+ const aO = /* @__PURE__ */ kl.define({
28025
28025
  name: "json",
28026
28026
  parser: /* @__PURE__ */ oO.configure({
28027
28027
  props: [
@@ -28042,9 +28042,9 @@ const aO = /* @__PURE__ */ xl.define({
28042
28042
  function uO() {
28043
28043
  return new sC(aO);
28044
28044
  }
28045
- const cO = "#e5c07b", rm = "#e06c75", hO = "#56b6c2", dO = "#ffffff", $s = "#abb2bf", ac = "#7d8799", fO = "#61afef", mO = "#98c379", om = "#d19a66", gO = "#c678dd", pO = "#21252b", sm = "#2c313a", lm = "#282c34", iu = "#353a42", vO = "#3E4451", am = "#528bff", yO = /* @__PURE__ */ he.theme({
28045
+ const cO = "#e5c07b", rm = "#e06c75", hO = "#56b6c2", dO = "#ffffff", el = "#abb2bf", ac = "#7d8799", fO = "#61afef", mO = "#98c379", om = "#d19a66", gO = "#c678dd", pO = "#21252b", sm = "#2c313a", lm = "#282c34", iu = "#353a42", vO = "#3E4451", am = "#528bff", yO = /* @__PURE__ */ he.theme({
28046
28046
  "&": {
28047
- color: $s,
28047
+ color: el,
28048
28048
  backgroundColor: lm
28049
28049
  },
28050
28050
  ".cm-content": {
@@ -28052,7 +28052,7 @@ const cO = "#e5c07b", rm = "#e06c75", hO = "#56b6c2", dO = "#ffffff", $s = "#abb
28052
28052
  },
28053
28053
  ".cm-cursor, .cm-dropCursor": { borderLeftColor: am },
28054
28054
  "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: vO },
28055
- ".cm-panels": { backgroundColor: pO, color: $s },
28055
+ ".cm-panels": { backgroundColor: pO, color: el },
28056
28056
  ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
28057
28057
  ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
28058
28058
  ".cm-searchMatch": {
@@ -28095,10 +28095,10 @@ const cO = "#e5c07b", rm = "#e06c75", hO = "#56b6c2", dO = "#ffffff", $s = "#abb
28095
28095
  ".cm-tooltip-autocomplete": {
28096
28096
  "& > ul > li[aria-selected]": {
28097
28097
  backgroundColor: sm,
28098
- color: $s
28098
+ color: el
28099
28099
  }
28100
28100
  }
28101
- }, { dark: !0 }), bO = /* @__PURE__ */ is.define([
28101
+ }, { dark: !0 }), bO = /* @__PURE__ */ ns.define([
28102
28102
  {
28103
28103
  tag: K.keyword,
28104
28104
  color: gO
@@ -28117,7 +28117,7 @@ const cO = "#e5c07b", rm = "#e06c75", hO = "#56b6c2", dO = "#ffffff", $s = "#abb
28117
28117
  },
28118
28118
  {
28119
28119
  tag: [/* @__PURE__ */ K.definition(K.name), K.separator],
28120
- color: $s
28120
+ color: el
28121
28121
  },
28122
28122
  {
28123
28123
  tag: [K.typeName, K.className, K.number, K.changed, K.annotation, K.modifier, K.self, K.namespace],
@@ -28275,7 +28275,7 @@ const cO = "#e5c07b", rm = "#e06c75", hO = "#56b6c2", dO = "#ffffff", $s = "#abb
28275
28275
  const O = [
28276
28276
  uO(),
28277
28277
  // Add keyboard shortcut for formatting
28278
- $o.of([
28278
+ es.of([
28279
28279
  {
28280
28280
  key: L.value,
28281
28281
  run: y
@@ -28388,7 +28388,7 @@ function _O(i, e, t, n, r, o) {
28388
28388
  le(
28389
28389
  "div",
28390
28390
  {
28391
- class: El(["quickform-json-editor-container", { "quickform-json-editor-dark": n.useDarkTheme }])
28391
+ class: Wo(["quickform-json-editor-container", { "quickform-json-editor-dark": n.useDarkTheme }])
28392
28392
  },
28393
28393
  [
28394
28394
  (Z(), Qe(n.Codemirror, {
@@ -28452,7 +28452,7 @@ const um = /* @__PURE__ */ Yt(kO, [["render", _O], ["__file", "/Users/zachsherbo
28452
28452
  });
28453
28453
  Array.isArray(n.value) || r([], !1);
28454
28454
  const f = x(() => {
28455
- const v = Uo(
28455
+ const v = Ko(
28456
28456
  t.schema,
28457
28457
  d == null ? void 0 : d.componentDefaults,
28458
28458
  "select"
@@ -28509,7 +28509,7 @@ const um = /* @__PURE__ */ Yt(kO, [["render", _O], ["__file", "/Users/zachsherbo
28509
28509
  }
28510
28510
  });
28511
28511
  }, get QSelect() {
28512
- return Ko;
28512
+ return Yo;
28513
28513
  }, get QIcon() {
28514
28514
  return We;
28515
28515
  }, get QTooltip() {
@@ -28553,6 +28553,84 @@ function LO(i, e, t, n, r, o) {
28553
28553
  "emit-value": "",
28554
28554
  "map-options": ""
28555
28555
  }, n.quasarProps, { onFilter: n.filterFn }), Zi({
28556
+ option: j(({ itemProps: s, opt: l }) => [
28557
+ Q(
28558
+ n.QItem,
28559
+ nt(s, { class: "q-hoverable" }),
28560
+ {
28561
+ default: j(() => [
28562
+ Q(
28563
+ n.QItemSection,
28564
+ { side: "" },
28565
+ {
28566
+ default: j(() => [
28567
+ Q(n.QCheckbox, {
28568
+ "model-value": Array.isArray(n.value) && n.value.includes(l.value),
28569
+ dense: "",
28570
+ onClick: e[0] || (e[0] = tl(() => {
28571
+ }, ["stop", "prevent"]))
28572
+ }, null, 8, ["model-value"])
28573
+ ]),
28574
+ _: 2
28575
+ /* DYNAMIC */
28576
+ },
28577
+ 1024
28578
+ /* DYNAMIC_SLOTS */
28579
+ ),
28580
+ Q(
28581
+ n.QItemSection,
28582
+ null,
28583
+ {
28584
+ default: j(() => [
28585
+ Q(n.QItemLabel, {
28586
+ class: Wo({ "text-weight-bold text-primary": n.hasDescriptions })
28587
+ }, {
28588
+ default: j(() => [
28589
+ Re(
28590
+ we(l.label),
28591
+ 1
28592
+ /* TEXT */
28593
+ )
28594
+ ]),
28595
+ _: 2
28596
+ /* DYNAMIC */
28597
+ }, 1032, ["class"]),
28598
+ l.description ? (Z(), Qe(
28599
+ n.QItemLabel,
28600
+ {
28601
+ key: 0,
28602
+ caption: "",
28603
+ class: "text-grey-7"
28604
+ },
28605
+ {
28606
+ default: j(() => [
28607
+ Re(
28608
+ we(l.description),
28609
+ 1
28610
+ /* TEXT */
28611
+ )
28612
+ ]),
28613
+ _: 2
28614
+ /* DYNAMIC */
28615
+ },
28616
+ 1024
28617
+ /* DYNAMIC_SLOTS */
28618
+ )) : ee("v-if", !0)
28619
+ ]),
28620
+ _: 2
28621
+ /* DYNAMIC */
28622
+ },
28623
+ 1024
28624
+ /* DYNAMIC_SLOTS */
28625
+ )
28626
+ ]),
28627
+ _: 2
28628
+ /* DYNAMIC */
28629
+ },
28630
+ 1040
28631
+ /* FULL_PROPS, DYNAMIC_SLOTS */
28632
+ )
28633
+ ]),
28556
28634
  _: 2
28557
28635
  /* DYNAMIC */
28558
28636
  }, [
@@ -28621,92 +28699,6 @@ function LO(i, e, t, n, r, o) {
28621
28699
  })
28622
28700
  ]),
28623
28701
  key: "2"
28624
- } : void 0,
28625
- n.hasDescriptions ? {
28626
- name: "option",
28627
- fn: j(({ itemProps: s, opt: l }) => [
28628
- Q(
28629
- n.QItem,
28630
- nt(s, { class: "q-hoverable" }),
28631
- {
28632
- default: j(() => [
28633
- Q(
28634
- n.QItemSection,
28635
- { side: "" },
28636
- {
28637
- default: j(() => [
28638
- Q(n.QCheckbox, {
28639
- "model-value": Array.isArray(n.value) && n.value.includes(l.value),
28640
- dense: "",
28641
- onClick: e[0] || (e[0] = el(() => {
28642
- }, ["stop", "prevent"]))
28643
- }, null, 8, ["model-value"])
28644
- ]),
28645
- _: 2
28646
- /* DYNAMIC */
28647
- },
28648
- 1024
28649
- /* DYNAMIC_SLOTS */
28650
- ),
28651
- Q(
28652
- n.QItemSection,
28653
- null,
28654
- {
28655
- default: j(() => [
28656
- Q(
28657
- n.QItemLabel,
28658
- { class: "text-weight-bold text-primary" },
28659
- {
28660
- default: j(() => [
28661
- Re(
28662
- we(l.label),
28663
- 1
28664
- /* TEXT */
28665
- )
28666
- ]),
28667
- _: 2
28668
- /* DYNAMIC */
28669
- },
28670
- 1024
28671
- /* DYNAMIC_SLOTS */
28672
- ),
28673
- l.description ? (Z(), Qe(
28674
- n.QItemLabel,
28675
- {
28676
- key: 0,
28677
- caption: "",
28678
- class: "text-grey-7"
28679
- },
28680
- {
28681
- default: j(() => [
28682
- Re(
28683
- we(l.description),
28684
- 1
28685
- /* TEXT */
28686
- )
28687
- ]),
28688
- _: 2
28689
- /* DYNAMIC */
28690
- },
28691
- 1024
28692
- /* DYNAMIC_SLOTS */
28693
- )) : ee("v-if", !0)
28694
- ]),
28695
- _: 2
28696
- /* DYNAMIC */
28697
- },
28698
- 1024
28699
- /* DYNAMIC_SLOTS */
28700
- )
28701
- ]),
28702
- _: 2
28703
- /* DYNAMIC */
28704
- },
28705
- 1040
28706
- /* FULL_PROPS, DYNAMIC_SLOTS */
28707
- )
28708
- ]),
28709
- key: "3"
28710
28702
  } : void 0
28711
28703
  ]), 1040, ["id", "modelValue", "label", "hint", "options", "error", "error-message", "disable", "readonly", "required", "use-input"])
28712
28704
  ],
@@ -29219,7 +29211,7 @@ const WO = $e({
29219
29211
  label: t.label,
29220
29212
  componentType: "card"
29221
29213
  }), d = x(() => t.schema["x-flat"] === !0), f = x(() => {
29222
- const b = Uo(
29214
+ const b = Ko(
29223
29215
  t.schema,
29224
29216
  h == null ? void 0 : h.componentDefaults,
29225
29217
  "select"
@@ -29249,7 +29241,7 @@ const WO = $e({
29249
29241
  return A;
29250
29242
  }
29251
29243
  }
29252
- const S = m.value.findIndex((A) => Hs.validate(A, b).valid);
29244
+ const S = m.value.findIndex((A) => zs.validate(A, b).valid);
29253
29245
  return S !== -1 ? S : 0;
29254
29246
  };
29255
29247
  Ti(() => {
@@ -29257,7 +29249,7 @@ const WO = $e({
29257
29249
  g.value = b;
29258
29250
  const S = m.value[b];
29259
29251
  if (S && S.properties) {
29260
- const A = n.value && typeof n.value == "object" ? n.value : {}, z = Hs.getDefaultValue(S) || {}, U = w(S), ie = { ...z, ...A, ...U }, Me = Object.keys(ie).some((Fe) => !(Fe in A)), ne = Object.entries(U).some(
29252
+ const A = n.value && typeof n.value == "object" ? n.value : {}, z = zs.getDefaultValue(S) || {}, U = w(S), ie = { ...z, ...A, ...U }, Me = Object.keys(ie).some((Fe) => !(Fe in A)), ne = Object.entries(U).some(
29261
29253
  ([Fe, De]) => A[Fe] !== De
29262
29254
  );
29263
29255
  (Me || ne) && r && r(ie, !1);
@@ -29387,7 +29379,7 @@ const WO = $e({
29387
29379
  }, $ = (b) => {
29388
29380
  const S = m.value[b];
29389
29381
  if (S && S.properties) {
29390
- const A = n.value && typeof n.value == "object" ? n.value : {}, z = Hs.getDefaultValue(S) || {}, U = w(S), ie = { ...z, ...A, ...U };
29382
+ const A = n.value && typeof n.value == "object" ? n.value : {}, z = zs.getDefaultValue(S) || {}, U = w(S), ie = { ...z, ...A, ...U };
29391
29383
  r && r(ie, !1);
29392
29384
  }
29393
29385
  };
@@ -29401,7 +29393,7 @@ const WO = $e({
29401
29393
  }, get QCardSection() {
29402
29394
  return bg;
29403
29395
  }, get QSelect() {
29404
- return Ko;
29396
+ return Yo;
29405
29397
  }, get QTabs() {
29406
29398
  return NO;
29407
29399
  }, get QTab() {
@@ -29446,7 +29438,7 @@ function r2(i, e, t, n, r, o) {
29446
29438
  Q(n.QCard, {
29447
29439
  flat: "",
29448
29440
  bordered: !n.isFlat,
29449
- class: El({ "quickform-oneof-flat": n.isFlat })
29441
+ class: Wo({ "quickform-oneof-flat": n.isFlat })
29450
29442
  }, {
29451
29443
  default: j(() => [
29452
29444
  Q(n.QCardSection, null, {
@@ -29532,7 +29524,7 @@ function r2(i, e, t, n, r, o) {
29532
29524
  target: "_blank",
29533
29525
  rel: "noopener noreferrer",
29534
29526
  style: { "margin-left": "0.5rem", display: "inline-flex", "align-items": "center", color: "var(--q-primary, #1976d2)", "text-decoration": "none", "vertical-align": "middle" },
29535
- onClick: e[1] || (e[1] = el(() => {
29527
+ onClick: e[1] || (e[1] = tl(() => {
29536
29528
  }, ["stop"]))
29537
29529
  }, [
29538
29530
  Q(n.QIcon, {
@@ -29635,7 +29627,7 @@ function r2(i, e, t, n, r, o) {
29635
29627
  target: "_blank",
29636
29628
  rel: "noopener noreferrer",
29637
29629
  style: { "margin-left": "0.5rem", display: "inline-flex", "align-items": "center", color: "var(--q-primary, #1976d2)", "text-decoration": "none", "vertical-align": "middle" },
29638
- onClick: e[3] || (e[3] = el(() => {
29630
+ onClick: e[3] || (e[3] = tl(() => {
29639
29631
  }, ["stop"]))
29640
29632
  }, [
29641
29633
  Q(n.QIcon, {
@@ -30265,7 +30257,7 @@ const m2 = /* @__PURE__ */ Lt({
30265
30257
  const b = { props: t, value: n, setValue: r, label: o, hint: s, tooltip: l, errorMessage: a, required: u, fieldId: c, fieldGap: h, formContext: d, quickformsDefaults: f, useTemplateSyntax: m, conditionRoot: g, isAdvancedMode: p, jsonText: w, jsonParseError: M, isInternalUpdate: y, syncToValue: v, addCondition: k, addGroup: T, removeCondition: B, updateConditionLeft: L, updateConditionOperator: W, updateConditionRight: I, updateGroupLogic: D, toggleAdvancedMode: P, handleJsonChange: V, operatorDisplayMode: O, leftPlaceholder: F, rightPlaceholder: Y, allowedOperators: H, operatorOptions: N, filteredOperatorOptions: $, filterOperators: be, handleOperatorInput: E, get QBtn() {
30266
30258
  return Nt;
30267
30259
  }, get QSelect() {
30268
- return Ko;
30260
+ return Yo;
30269
30261
  }, get QInput() {
30270
30262
  return dr;
30271
30263
  }, get QIcon() {
@@ -31057,7 +31049,7 @@ const W2 = /* @__PURE__ */ Yt(m2, [["render", Q2], ["__scopeId", "data-v-722c2e2
31057
31049
  });
31058
31050
  Array.isArray(n.value) || r([], !1);
31059
31051
  const m = x(() => {
31060
- const D = Uo(
31052
+ const D = Ko(
31061
31053
  t.schema,
31062
31054
  f == null ? void 0 : f.componentDefaults,
31063
31055
  "select"
@@ -31144,7 +31136,7 @@ const W2 = /* @__PURE__ */ Yt(m2, [["render", Q2], ["__scopeId", "data-v-722c2e2
31144
31136
  r(P.filter((V) => V !== D));
31145
31137
  }
31146
31138
  const I = { props: t, value: n, setValue: r, label: o, hint: s, tooltip: l, tooltipPlacement: a, errorMessage: u, required: c, fieldId: h, fieldGap: d, formContext: f, quasarProps: m, quickformsFeatures: g, itemsSchema: p, isEmailFormat: w, EMAIL_REGEX: M, validateItem: y, getChipProps: v, placeholder: k, parseInput: T, handleNewValue: B, filterFn: L, removeValue: W, get QSelect() {
31147
- return Ko;
31139
+ return Yo;
31148
31140
  }, get QChip() {
31149
31141
  return Xm;
31150
31142
  }, get QIcon() {
@@ -31464,7 +31456,7 @@ export {
31464
31456
  _D as isStringType,
31465
31457
  PD as isTimeFormat,
31466
31458
  qD as isUrlFormat,
31467
- Uo as mergeQuasarProps,
31459
+ Ko as mergeQuasarProps,
31468
31460
  cb as mergeQuickFormsQuasarFeatures,
31469
31461
  BD as not,
31470
31462
  LD as or,