@quickflo/quickforms-quasar 1.16.14 → 1.16.16

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,17 +1,17 @@
1
1
  import { SchemaUtils as mm, ComponentRegistry as T0, rankWith as We, hasConst as D0, hasXRender as Jt, isStringType as q0, isNumberType as P0, isBooleanType as _0, isEnumType as B0, isDateFormat as R0, isTimeFormat as E0, isDateTimeFormat as L0, isRecordType as I0, isJsonType as V0, isObjectType as F0, isArrayType as ch, hasOneOf as N0, hasAnyOf as H0, hasAllOf as z0 } from "@quickflo/quickforms";
2
2
  import { ComponentRegistry as C2, SchemaUtils as M2, and as A2, hasAllOf as O2, hasAnyOf as T2, hasConditional as D2, hasConst as q2, hasExtension as P2, hasFormat as _2, hasOneOf as B2, isArrayType as R2, isBooleanType as E2, isDateFormat as L2, isDateTimeFormat as I2, isDiscriminatedUnion as V2, isEmailFormat as F2, isEnumType as N2, isIntegerType as H2, isJsonType as z2, isNullType as j2, isNumberType as W2, isObjectType as Q2, isRecordType as U2, isStringType as K2, isTimeFormat as Y2, isUrlFormat as G2, not as J2, or as X2, rankWith as $2 } from "@quickflo/quickforms";
3
- import { computed as b, markRaw as gm, defineComponent as Pt, reactive as pm, h as A, withDirectives as Rn, getCurrentInstance as je, ref as J, onMounted as Si, watch as ve, onBeforeUpdate as vm, inject as No, onBeforeUnmount as ht, nextTick as rt, onDeactivated as Ho, onActivated as ac, Transition as fi, provide as ym, createElementBlock as ae, openBlock as te, normalizeStyle as vt, createVNode as ee, mergeProps as ot, createSlots as Ki, withCtx as ge, createTextVNode as He, createElementVNode as ke, toDisplayString as Me, toRaw as zn, createCommentVNode as se, unref as j0, onUnmounted as W0, Teleport as Q0, onBeforeMount as U0, onUpdated as K0, shallowReactive as Y0, vShow as G0, normalizeClass as uc, Fragment as Ht, renderList as On, createBlock as Oi, shallowRef as ua, renderSlot as is } from "vue";
4
- import { useFormContext as J0, useFormField as X0, generateFieldId as $0, FieldRenderer as El, HiddenField as Z0 } from "@quickflo/quickforms-vue";
5
- const iu = {
3
+ import { computed as b, markRaw as gm, defineComponent as Pt, reactive as pm, h as A, withDirectives as Rn, getCurrentInstance as je, ref as J, onMounted as Si, watch as ve, onBeforeUpdate as vm, inject as No, onBeforeUnmount as ht, nextTick as rt, onDeactivated as Ho, onActivated as ac, Transition as fi, provide as ym, createElementBlock as ae, openBlock as te, normalizeStyle as vt, createVNode as ee, mergeProps as ot, createSlots as Ki, withCtx as ge, createTextVNode as He, createElementVNode as ke, toDisplayString as Me, toRaw as zn, createCommentVNode as se, unref as j0, onUnmounted as W0, Teleport as Q0, onBeforeMount as U0, onUpdated as K0, shallowReactive as Y0, vShow as G0, normalizeClass as uc, Fragment as Ht, renderList as On, createBlock as Oi, shallowRef as aa, renderSlot as is } from "vue";
4
+ import { useFormContext as J0, useFormField as X0, generateFieldId as $0, FieldRenderer as Rl, HiddenField as Z0 } from "@quickflo/quickforms-vue";
5
+ const tu = {
6
6
  xs: 18,
7
7
  sm: 24,
8
8
  md: 32,
9
9
  lg: 38,
10
10
  xl: 46
11
- }, Ll = {
11
+ }, El = {
12
12
  size: String
13
13
  };
14
- function Il(i, e = iu) {
14
+ function Ll(i, e = tu) {
15
15
  return b(() => i.size !== void 0 ? { fontSize: i.size in e ? `${e[i.size]}px` : i.size } : null);
16
16
  }
17
17
  function Qr(i, e, t, n) {
@@ -62,19 +62,19 @@ function ny(i, e, t, n, r, o) {
62
62
  const s = A(i, e, t);
63
63
  return r === !0 ? Rn(s, o()) : s;
64
64
  }
65
- const hh = "0 0 24 24", ca = (i) => i, ha = (i) => `ionicons ${i}`, bm = {
65
+ const hh = "0 0 24 24", ua = (i) => i, ca = (i) => `ionicons ${i}`, bm = {
66
66
  "mdi-": (i) => `mdi ${i}`,
67
- "icon-": ca,
67
+ "icon-": ua,
68
68
  // fontawesome equiv
69
69
  "bt-": (i) => `bt ${i}`,
70
70
  "eva-": (i) => `eva ${i}`,
71
- "ion-md": ha,
72
- "ion-ios": ha,
73
- "ion-logo": ha,
74
- "iconfont ": ca,
71
+ "ion-md": ca,
72
+ "ion-ios": ca,
73
+ "ion-logo": ca,
74
+ "iconfont ": ua,
75
75
  "ti-": (i) => `themify-icon ${i}`,
76
76
  "bi-": (i) => `bootstrap-icons ${i}`,
77
- "i-": ca
77
+ "i-": ua
78
78
  // UnoCSS pure icons
79
79
  }, xm = {
80
80
  o_: "-outlined",
@@ -87,7 +87,7 @@ const hh = "0 0 24 24", ca = (i) => i, ha = (i) => `ionicons ${i}`, bm = {
87
87
  }, ry = new RegExp("^(" + Object.keys(bm).join("|") + ")"), oy = new RegExp("^(" + Object.keys(xm).join("|") + ")"), fh = new RegExp("^(" + Object.keys(km).join("|") + ")"), sy = /^[Mm]\s?[-+]?\.?\d/, ly = /^img:/, ay = /^svguse:/, uy = /^ion-/, cy = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, kt = Je({
88
88
  name: "QIcon",
89
89
  props: {
90
- ...Ll,
90
+ ...El,
91
91
  tag: {
92
92
  type: String,
93
93
  default: "i"
@@ -98,7 +98,7 @@ const hh = "0 0 24 24", ca = (i) => i, ha = (i) => `ionicons ${i}`, bm = {
98
98
  right: Boolean
99
99
  },
100
100
  setup(i, { slots: e }) {
101
- const { proxy: { $q: t } } = je(), n = Il(i), r = b(
101
+ const { proxy: { $q: t } } = je(), n = Ll(i), r = b(
102
102
  () => "q-icon" + (i.left === !0 ? " on-left" : "") + (i.right === !0 ? " on-right" : "") + (i.color !== void 0 ? ` text-${i.color}` : "")
103
103
  ), o = b(() => {
104
104
  let s, l = i.name;
@@ -194,7 +194,7 @@ const hh = "0 0 24 24", ca = (i) => i, ha = (i) => `ionicons ${i}`, bm = {
194
194
  };
195
195
  function fy(i) {
196
196
  return {
197
- cSize: b(() => i.size in iu ? `${iu[i.size]}px` : i.size),
197
+ cSize: b(() => i.size in tu ? `${tu[i.size]}px` : i.size),
198
198
  classes: b(
199
199
  () => "q-spinner" + (i.color ? ` text-${i.color}` : "")
200
200
  )
@@ -230,7 +230,7 @@ const wm = Je({
230
230
  ]);
231
231
  }
232
232
  });
233
- let fa, ns = 0;
233
+ let ha, ns = 0;
234
234
  const Et = new Array(256);
235
235
  for (let i = 0; i < 256; i++)
236
236
  Et[i] = (i + 256).toString(16).substring(1);
@@ -253,14 +253,14 @@ const dy = (() => {
253
253
  };
254
254
  })(), dh = 4096;
255
255
  function $s() {
256
- (fa === void 0 || ns + 16 > dh) && (ns = 0, fa = dy(dh));
257
- const i = Array.prototype.slice.call(fa, ns, ns += 16);
256
+ (ha === void 0 || ns + 16 > dh) && (ns = 0, ha = dy(dh));
257
+ const i = Array.prototype.slice.call(ha, ns, ns += 16);
258
258
  return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Et[i[0]] + Et[i[1]] + Et[i[2]] + Et[i[3]] + "-" + Et[i[4]] + Et[i[5]] + "-" + Et[i[6]] + Et[i[7]] + "-" + Et[i[8]] + Et[i[9]] + "-" + Et[i[10]] + Et[i[11]] + Et[i[12]] + Et[i[13]] + Et[i[14]] + Et[i[15]];
259
259
  }
260
260
  const Br = J(
261
261
  !1
262
262
  );
263
- let nu;
263
+ let iu;
264
264
  function my(i, e) {
265
265
  const t = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(i) || /(opr)[\/]([\w.]+)/.exec(i) || /(vivaldi)[\/]([\w.]+)/.exec(i) || /(chrome|crios)[\/]([\w.]+)/.exec(i) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i) || /(firefox|fxios)[\/]([\w.]+)/.exec(i) || /(webkit)[\/]([\w.]+)/.exec(i) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(i) || [];
266
266
  return {
@@ -315,7 +315,7 @@ function py(i) {
315
315
  else if (document.location.href.indexOf("-extension://") !== -1)
316
316
  r.bex = !0;
317
317
  else {
318
- if (window.Capacitor !== void 0 ? (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova"), Br.value === !0 && (nu = { is: { ...r } }), Sm === !0 && r.mac === !0 && (r.desktop === !0 && r.safari === !0 || r.nativeMobile === !0 && r.android !== !0 && r.ios !== !0 && r.ipad !== !0)) {
318
+ if (window.Capacitor !== void 0 ? (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova"), Br.value === !0 && (iu = { is: { ...r } }), Sm === !0 && r.mac === !0 && (r.desktop === !0 && r.safari === !0 || r.nativeMobile === !0 && r.android !== !0 && r.ios !== !0 && r.ipad !== !0)) {
319
319
  delete r.mac, delete r.desktop;
320
320
  const s = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
321
321
  Object.assign(r, {
@@ -344,7 +344,7 @@ const mh = navigator.userAgent || navigator.vendor || window.opera, vy = {
344
344
  within: {
345
345
  iframe: window.self !== window.top
346
346
  }
347
- }, ru = {
347
+ }, nu = {
348
348
  install(i) {
349
349
  const { $q: e } = i;
350
350
  Br.value === !0 ? (i.onSSRHydrated.push(() => {
@@ -363,7 +363,7 @@ const mh = navigator.userAgent || navigator.vendor || window.opera, vy = {
363
363
  } catch {
364
364
  }
365
365
  return i = !1, !1;
366
- }), Object.assign(ru, Tt), Br.value === !0 && (Object.assign(ru, nu, vy), nu = null);
366
+ }), Object.assign(nu, Tt), Br.value === !0 && (Object.assign(nu, iu, vy), iu = null);
367
367
  }
368
368
  function yy(i) {
369
369
  return i ?? null;
@@ -408,7 +408,7 @@ function Xi(i, e) {
408
408
  return b(() => i.dark === null ? e.dark.isActive : i.dark);
409
409
  }
410
410
  const xy = "_q_", ky = "_q_fo_", Mm = "_q_tabs_";
411
- function da() {
411
+ function fa() {
412
412
  }
413
413
  function wy({ validate: i, resetValidation: e, requiresQForm: t }) {
414
414
  const n = No(ky, !1);
@@ -423,7 +423,7 @@ function wy({ validate: i, resetValidation: e, requiresQForm: t }) {
423
423
  });
424
424
  } else t === !0 && console.error("Parent QForm not found on useFormChild()!");
425
425
  }
426
- const vh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, yh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, bh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, rs = /^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])\)$/, os = /^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)\)$/, ma = {
426
+ const vh = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, yh = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, bh = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, rs = /^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])\)$/, os = /^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)\)$/, da = {
427
427
  date: (i) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(i),
428
428
  time: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(i),
429
429
  fulltime: (i) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(i),
@@ -509,7 +509,7 @@ function My(i, e) {
509
509
  for (let E = 0; E < t.rules.length; E++) {
510
510
  const T = t.rules[E];
511
511
  let H;
512
- if (typeof T == "function" ? H = T(v, ma) : typeof T == "string" && ma[T] !== void 0 && (H = ma[T](v)), H === !1 || typeof H == "string")
512
+ if (typeof T == "function" ? H = T(v, da) : typeof T == "string" && da[T] !== void 0 && (H = da[T](v)), H === !1 || typeof H == "string")
513
513
  return x(!0, H), !1;
514
514
  H !== !0 && H !== void 0 && C.push(H);
515
515
  }
@@ -588,7 +588,7 @@ function Zt(i) {
588
588
  function ct(i) {
589
589
  i.cancelable !== !1 && i.preventDefault(), i.stopPropagation();
590
590
  }
591
- function ga(i, e) {
591
+ function ma(i, e) {
592
592
  if (i === void 0 || e === !0 && i.__dragPrevented === !0)
593
593
  return;
594
594
  const t = e === !0 ? (n) => {
@@ -620,7 +620,7 @@ function Ty(i) {
620
620
  function xh(i) {
621
621
  Om(i), ko.length === 0 && Kn.length !== 0 && (Kn[Kn.length - 1](), Kn = []);
622
622
  }
623
- function Vl(i) {
623
+ function Il(i) {
624
624
  ko.length === 0 ? i() : Kn.push(i);
625
625
  }
626
626
  function Dy(i) {
@@ -660,7 +660,7 @@ const qy = {
660
660
  readonly: Boolean,
661
661
  autofocus: Boolean,
662
662
  for: String
663
- }, Fl = {
663
+ }, Vl = {
664
664
  ...qy,
665
665
  maxlength: [Number, String]
666
666
  }, fc = ["update:modelValue", "clear", "focus", "blur"];
@@ -758,7 +758,7 @@ function mc(i) {
758
758
  z && (q === null || q.id !== i.targetUid.value) && (z.hasAttribute("tabindex") === !0 || (z = z.querySelector("[tabindex]")), z !== q && (z == null || z.focus({ preventScroll: !0 })));
759
759
  }
760
760
  function T() {
761
- Vl(E);
761
+ Il(E);
762
762
  }
763
763
  function H() {
764
764
  Dy(E);
@@ -926,11 +926,11 @@ function mc(i) {
926
926
  ]);
927
927
  };
928
928
  }
929
- function Nl(i) {
929
+ function Fl(i) {
930
930
  return i !== Object(i) || i.isComposing === !0 || i.qKeyEvent === !0;
931
931
  }
932
932
  function an(i, e) {
933
- return Nl(i) === !0 ? !1 : [].concat(e).includes(i.keyCode);
933
+ return Fl(i) === !0 ? !1 : [].concat(e).includes(i.keyCode);
934
934
  }
935
935
  const kh = {
936
936
  date: "####/##/##",
@@ -1156,7 +1156,7 @@ function Ry(i, e, t, n) {
1156
1156
  e("click", B), u = void 0;
1157
1157
  }
1158
1158
  function C(B) {
1159
- if (e("keydown", B), Nl(B) === !0 || B.altKey === !0) return;
1159
+ if (e("keydown", B), Fl(B) === !0 || B.altKey === !0) return;
1160
1160
  const D = n.value, R = D.selectionStart, O = D.selectionEnd;
1161
1161
  if (B.shiftKey || (u = void 0), B.keyCode === 37 || B.keyCode === 39) {
1162
1162
  B.shiftKey && u === void 0 && (u = D.selectionDirection === "forward" ? R : O);
@@ -1274,7 +1274,7 @@ const ar = Je({
1274
1274
  name: "QInput",
1275
1275
  inheritAttrs: !1,
1276
1276
  props: {
1277
- ...Fl,
1277
+ ...Vl,
1278
1278
  ...By,
1279
1279
  ...zo,
1280
1280
  // override of useFieldProps > modelValue
@@ -1358,7 +1358,7 @@ const ar = Je({
1358
1358
  i.autogrow === !0 && rt(M);
1359
1359
  });
1360
1360
  function D() {
1361
- Vl(() => {
1361
+ Il(() => {
1362
1362
  const w = document.activeElement;
1363
1363
  h.value !== null && h.value !== w && (w === null || w.id !== E.targetUid.value) && h.value.focus({ preventScroll: !0 });
1364
1364
  });
@@ -1489,7 +1489,7 @@ function Hy(i) {
1489
1489
  const e = (t = i == null ? void 0 : i.layout) == null ? void 0 : t.fieldGap;
1490
1490
  return e ? Ny[e] ?? e : "16px";
1491
1491
  }
1492
- function Hl(i, e, t) {
1492
+ function Nl(i, e, t) {
1493
1493
  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"] || {};
1494
1494
  return {
1495
1495
  ...n,
@@ -1511,7 +1511,7 @@ function Qt(i, e, t = {}) {
1511
1511
  i,
1512
1512
  e,
1513
1513
  { label: n }
1514
- ), f = Rm(), d = $0(i), m = b(() => Hl(
1514
+ ), f = Rm(), d = $0(i), m = b(() => Nl(
1515
1515
  e,
1516
1516
  f == null ? void 0 : f.componentDefaults,
1517
1517
  r
@@ -1762,7 +1762,7 @@ const Yy = {
1762
1762
  xl: 60
1763
1763
  }, Gy = {
1764
1764
  ...Ji,
1765
- ...Ll,
1765
+ ...El,
1766
1766
  ...zo,
1767
1767
  modelValue: {
1768
1768
  required: !0,
@@ -1789,7 +1789,7 @@ const Yy = {
1789
1789
  tabindex: [String, Number]
1790
1790
  }, Jy = ["update:modelValue"];
1791
1791
  function Xy(i, e) {
1792
- const { props: t, slots: n, emit: r, proxy: o } = je(), { $q: s } = o, l = Xi(t, s), a = J(null), { refocusTargetEl: u, refocusTarget: c } = Ky(t, a), h = Il(t, Yy), f = b(
1792
+ const { props: t, slots: n, emit: r, proxy: o } = je(), { $q: s } = o, l = Xi(t, s), a = J(null), { refocusTargetEl: u, refocusTarget: c } = Ky(t, a), h = Ll(t, Yy), f = b(
1793
1793
  () => t.val !== void 0 && Array.isArray(t.modelValue)
1794
1794
  ), d = b(() => {
1795
1795
  const R = zn(t.val);
@@ -2008,7 +2008,7 @@ const Ah = /* @__PURE__ */ Ut(eb, [["render", rb], ["__file", "/Users/zachsherbo
2008
2008
  name: "QField",
2009
2009
  inheritAttrs: !1,
2010
2010
  props: {
2011
- ...Fl,
2011
+ ...Vl,
2012
2012
  tag: {
2013
2013
  type: String,
2014
2014
  default: "label"
@@ -2021,7 +2021,7 @@ const Ah = /* @__PURE__ */ Ut(eb, [["render", rb], ["__file", "/Users/zachsherbo
2021
2021
  );
2022
2022
  }
2023
2023
  });
2024
- function ou(i, e) {
2024
+ function ru(i, e) {
2025
2025
  const t = i.style;
2026
2026
  for (const n in e)
2027
2027
  t[n] = e[n];
@@ -2061,7 +2061,7 @@ function Oh(i, e, t, n) {
2061
2061
  let o = t.modifiers.center;
2062
2062
  o = o === !0 || n === !0;
2063
2063
  const s = document.createElement("span"), l = document.createElement("span"), a = Rr(i), { left: u, top: c, width: h, height: f } = e.getBoundingClientRect(), d = Math.sqrt(h * h + f * f), m = d / 2, p = `${(h - d) / 2}px`, g = o ? p : `${a.left - u - m}px`, v = `${(f - d) / 2}px`, k = o ? v : `${a.top - c - m}px`;
2064
- l.className = "q-ripple__inner", ou(l, {
2064
+ l.className = "q-ripple__inner", ru(l, {
2065
2065
  height: `${d}px`,
2066
2066
  width: `${d}px`,
2067
2067
  transform: `translate3d(${g},${k},0) scale3d(.2,.2,1)`,
@@ -2137,7 +2137,7 @@ const pc = cc(
2137
2137
  name: "QChip",
2138
2138
  props: {
2139
2139
  ...Ji,
2140
- ...Ll,
2140
+ ...El,
2141
2141
  dense: Boolean,
2142
2142
  icon: String,
2143
2143
  iconRight: String,
@@ -2168,7 +2168,7 @@ const pc = cc(
2168
2168
  },
2169
2169
  emits: ["update:modelValue", "update:selected", "remove", "click"],
2170
2170
  setup(i, { slots: e, emit: t }) {
2171
- const { proxy: { $q: n } } = je(), r = Xi(i, n), o = Il(i, ab), s = b(() => i.selected === !0 || i.icon !== void 0), l = b(() => i.selected === !0 ? i.iconSelected || n.iconSet.chip.selected : i.icon), a = b(() => i.iconRemove || n.iconSet.chip.remove), u = b(
2171
+ const { proxy: { $q: n } } = je(), r = Xi(i, n), o = Ll(i, ab), s = b(() => i.selected === !0 || i.icon !== void 0), l = b(() => i.selected === !0 ? i.iconSelected || n.iconSet.chip.selected : i.icon), a = b(() => i.iconRemove || n.iconSet.chip.remove), u = b(
2172
2172
  () => i.disable === !1 && (i.clickable === !0 || i.selected !== null)
2173
2173
  ), c = b(() => {
2174
2174
  const g = i.outline === !0 && i.color || i.textColor;
@@ -2497,7 +2497,7 @@ const Zs = Je({
2497
2497
  function el() {
2498
2498
  if (window.getSelection !== void 0) {
2499
2499
  const i = window.getSelection();
2500
- i.empty !== void 0 ? i.empty() : i.removeAllRanges !== void 0 && (i.removeAllRanges(), ru.is.mobile !== !0 && i.addRange(document.createRange()));
2500
+ i.empty !== void 0 ? i.empty() : i.removeAllRanges !== void 0 && (i.removeAllRanges(), nu.is.mobile !== !0 && i.addRange(document.createRange()));
2501
2501
  } else document.selection !== void 0 && document.selection.empty();
2502
2502
  }
2503
2503
  const Nm = {
@@ -2628,19 +2628,19 @@ function zm(i, e) {
2628
2628
  changeScrollEvent: r
2629
2629
  };
2630
2630
  }
2631
- const zl = {
2631
+ const Hl = {
2632
2632
  modelValue: {
2633
2633
  type: Boolean,
2634
2634
  default: null
2635
2635
  },
2636
2636
  "onUpdate:modelValue": [Function, Array]
2637
- }, jl = [
2637
+ }, zl = [
2638
2638
  "beforeShow",
2639
2639
  "show",
2640
2640
  "beforeHide",
2641
2641
  "hide"
2642
2642
  ];
2643
- function Wl({
2643
+ function jl({
2644
2644
  showing: i,
2645
2645
  canShow: e,
2646
2646
  // optional
@@ -2859,10 +2859,10 @@ function Sb() {
2859
2859
  if (ss !== void 0)
2860
2860
  return ss;
2861
2861
  const i = document.createElement("p"), e = document.createElement("div");
2862
- ou(i, {
2862
+ ru(i, {
2863
2863
  width: "100%",
2864
2864
  height: "200px"
2865
- }), ou(e, {
2865
+ }), ru(e, {
2866
2866
  position: "absolute",
2867
2867
  top: "0px",
2868
2868
  left: "0px",
@@ -2907,7 +2907,7 @@ function Ym(i) {
2907
2907
  function Gm(i) {
2908
2908
  Tt.is.desktop === !0 && (Zn.push(i), Zn.length === 1 && document.body.addEventListener("focusin", Ym));
2909
2909
  }
2910
- function su(i) {
2910
+ function ou(i) {
2911
2911
  const e = Zn.indexOf(i);
2912
2912
  e !== -1 && (Zn.splice(e, 1), Zn.length === 0 && document.body.removeEventListener("focusin", Ym));
2913
2913
  }
@@ -2950,20 +2950,20 @@ function ol(i) {
2950
2950
  function Xm(i) {
2951
2951
  return i ? !(i.length !== 2 || typeof i[0] != "number" || typeof i[1] != "number") : !0;
2952
2952
  }
2953
- const lu = {
2953
+ const su = {
2954
2954
  "start#ltr": "left",
2955
2955
  "start#rtl": "right",
2956
2956
  "end#ltr": "right",
2957
2957
  "end#rtl": "left"
2958
2958
  };
2959
2959
  ["left", "middle", "right"].forEach((i) => {
2960
- lu[`${i}#ltr`] = i, lu[`${i}#rtl`] = i;
2960
+ su[`${i}#ltr`] = i, su[`${i}#rtl`] = i;
2961
2961
  });
2962
2962
  function sl(i, e) {
2963
2963
  const t = i.split(" ");
2964
2964
  return {
2965
2965
  vertical: t[0],
2966
- horizontal: lu[`${t[1]}#${e === !0 ? "rtl" : "ltr"}`]
2966
+ horizontal: su[`${t[1]}#${e === !0 ? "rtl" : "ltr"}`]
2967
2967
  };
2968
2968
  }
2969
2969
  function Tb(i, e) {
@@ -3048,10 +3048,10 @@ function wc(i, e = 0) {
3048
3048
  const x = qb(v, k);
3049
3049
  let C = Eh(m, x, o, s);
3050
3050
  if (l === void 0 || n === void 0)
3051
- pa(C, m, x, o, s);
3051
+ ga(C, m, x, o, s);
3052
3052
  else {
3053
3053
  const { top: E, left: T } = C;
3054
- pa(C, m, x, o, s);
3054
+ ga(C, m, x, o, s);
3055
3055
  let H = !1;
3056
3056
  if (C.top !== E) {
3057
3057
  H = !0;
@@ -3063,14 +3063,14 @@ function wc(i, e = 0) {
3063
3063
  const V = 2 * n[0];
3064
3064
  m.middle = m.left -= V, m.right -= V + 2;
3065
3065
  }
3066
- H === !0 && (C = Eh(m, x, o, s), pa(C, m, x, o, s));
3066
+ H === !0 && (C = Eh(m, x, o, s), ga(C, m, x, o, s));
3067
3067
  }
3068
3068
  y = {
3069
3069
  top: C.top + "px",
3070
3070
  left: C.left + "px"
3071
3071
  }, C.maxHeight !== void 0 && (y.maxHeight = C.maxHeight + "px", m.height > C.maxHeight && (y.minHeight = y.maxHeight)), C.maxWidth !== void 0 && (y.maxWidth = C.maxWidth + "px", m.width > C.maxWidth && (y.minWidth = y.maxWidth)), Object.assign(t.style, y), t.scrollTop !== d && (t.scrollTop = d), t.scrollLeft !== f && (t.scrollLeft = f);
3072
3072
  }
3073
- function pa(i, e, t, n, r) {
3073
+ function ga(i, e, t, n, r) {
3074
3074
  const o = t.bottom, s = t.right, l = Sb(), a = window.innerHeight - l, u = document.body.clientWidth;
3075
3075
  if (i.top < 0 || i.top + o > a)
3076
3076
  if (r.vertical === "center")
@@ -3106,7 +3106,7 @@ const $m = Je({
3106
3106
  inheritAttrs: !1,
3107
3107
  props: {
3108
3108
  ...Hm,
3109
- ...zl,
3109
+ ...Hl,
3110
3110
  ...Ji,
3111
3111
  ...co,
3112
3112
  persistent: Boolean,
@@ -3143,7 +3143,7 @@ const $m = Je({
3143
3143
  }
3144
3144
  },
3145
3145
  emits: [
3146
- ...jl,
3146
+ ...zl,
3147
3147
  "click",
3148
3148
  "escapeKey"
3149
3149
  ],
@@ -3151,7 +3151,7 @@ const $m = Je({
3151
3151
  let r = null, o, s, l;
3152
3152
  const a = je(), { proxy: u } = a, { $q: c } = u, h = J(null), f = J(!1), d = b(
3153
3153
  () => i.persistent !== !0 && i.noRouteDismiss !== !0
3154
- ), m = Xi(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: v } = So(), { transitionProps: k, transitionStyle: y } = kc(i), { localScrollTarget: x, changeScrollEvent: C, unconfigureScrollTarget: E } = zm(i, N), { anchorEl: T, canShow: H } = bc({ showing: f }), { hide: V } = Wl({
3154
+ ), m = Xi(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: v } = So(), { transitionProps: k, transitionStyle: y } = kc(i), { localScrollTarget: x, changeScrollEvent: C, unconfigureScrollTarget: E } = zm(i, N), { anchorEl: T, canShow: H } = bc({ showing: f }), { hide: V } = jl({
3155
3155
  showing: f,
3156
3156
  canShow: H,
3157
3157
  handleShow: ne,
@@ -3180,7 +3180,7 @@ const $m = Je({
3180
3180
  Z === !0 ? (Km(re), Jm(O)) : (tl(re), rl(O));
3181
3181
  });
3182
3182
  function z() {
3183
- Vl(() => {
3183
+ Il(() => {
3184
3184
  let Z = h.value;
3185
3185
  Z && Z.contains(document.activeElement) !== !0 && (Z = Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || Z.querySelector("[autofocus], [data-autofocus]") || Z, Z.focus({ preventScroll: !0 }));
3186
3186
  });
@@ -3209,7 +3209,7 @@ const $m = Je({
3209
3209
  }, i.transitionDuration);
3210
3210
  }
3211
3211
  function w(Z) {
3212
- o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (su(G), E(), rl(O), tl(re)), Z !== !0 && (r = null);
3212
+ o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (ou(G), E(), rl(O), tl(re)), Z !== !0 && (r = null);
3213
3213
  }
3214
3214
  function N() {
3215
3215
  (T.value !== null || i.scrollTarget !== void 0) && (x.value = Qm(T.value, i.scrollTarget), C(x.value, le));
@@ -3272,7 +3272,7 @@ function Pb(i, e, t) {
3272
3272
  }
3273
3273
  };
3274
3274
  }
3275
- let Jr = 0, va, ya, no, ba = !1, Lh, Ih, Vh, Fn = null;
3275
+ let Jr = 0, pa, va, no, ya = !1, Lh, Ih, Vh, Fn = null;
3276
3276
  function _b(i) {
3277
3277
  Bb(i) && ct(i);
3278
3278
  }
@@ -3291,8 +3291,8 @@ function Fh(i) {
3291
3291
  i.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
3292
3292
  }
3293
3293
  function ls(i) {
3294
- ba !== !0 && (ba = !0, requestAnimationFrame(() => {
3295
- ba = !1;
3294
+ ya !== !0 && (ya = !0, requestAnimationFrame(() => {
3295
+ ya = !1;
3296
3296
  const { height: e } = i.target, { clientHeight: t, scrollTop: n } = document.scrollingElement;
3297
3297
  (no === void 0 || e !== window.innerHeight) && (no = t - e, document.scrollingElement.scrollTop = n), n > no && (document.scrollingElement.scrollTop -= Math.ceil((n - no) / 8));
3298
3298
  }));
@@ -3301,9 +3301,9 @@ function Nh(i) {
3301
3301
  const e = document.body, t = window.visualViewport !== void 0;
3302
3302
  if (i === "add") {
3303
3303
  const { overflowY: n, overflowX: r } = window.getComputedStyle(e);
3304
- va = wb(window), ya = kb(window), Lh = e.style.left, Ih = e.style.top, Vh = window.location.href, e.style.left = `-${va}px`, e.style.top = `-${ya}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, Tt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", ls, At.passiveCapture), window.visualViewport.addEventListener("scroll", ls, At.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Fh, At.passiveCapture));
3304
+ pa = wb(window), va = kb(window), Lh = e.style.left, Ih = e.style.top, Vh = window.location.href, e.style.left = `-${pa}px`, e.style.top = `-${va}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, Tt.is.ios === !0 && (t === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", ls, At.passiveCapture), window.visualViewport.addEventListener("scroll", ls, At.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Fh, At.passiveCapture));
3305
3305
  }
3306
- Tt.is.desktop === !0 && Tt.is.mac === !0 && window[`${i}EventListener`]("wheel", _b, At.notPassive), i === "remove" && (Tt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", ls, At.passiveCapture), window.visualViewport.removeEventListener("scroll", ls, At.passiveCapture)) : window.removeEventListener("scroll", Fh, At.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 = Lh, e.style.top = Ih, window.location.href === Vh && window.scrollTo(va, ya), no = void 0);
3306
+ Tt.is.desktop === !0 && Tt.is.mac === !0 && window[`${i}EventListener`]("wheel", _b, At.notPassive), i === "remove" && (Tt.is.ios === !0 && (t === !0 ? (window.visualViewport.removeEventListener("resize", ls, At.passiveCapture), window.visualViewport.removeEventListener("scroll", ls, At.passiveCapture)) : window.removeEventListener("scroll", Fh, At.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 = Lh, e.style.top = Ih, window.location.href === Vh && window.scrollTo(pa, va), no = void 0);
3307
3307
  }
3308
3308
  function Rb(i) {
3309
3309
  let e = "add";
@@ -3349,7 +3349,7 @@ const Lb = {
3349
3349
  name: "QDialog",
3350
3350
  inheritAttrs: !1,
3351
3351
  props: {
3352
- ...zl,
3352
+ ...Hl,
3353
3353
  ...co,
3354
3354
  transitionShow: String,
3355
3355
  // override useTransitionProps
@@ -3377,7 +3377,7 @@ const Lb = {
3377
3377
  }
3378
3378
  },
3379
3379
  emits: [
3380
- ...jl,
3380
+ ...zl,
3381
3381
  "shake",
3382
3382
  "click",
3383
3383
  "escapeKey"
@@ -3396,7 +3396,7 @@ const Lb = {
3396
3396
  o,
3397
3397
  N,
3398
3398
  "dialog"
3399
- ), { hide: H } = Wl({
3399
+ ), { hide: H } = jl({
3400
3400
  showing: s,
3401
3401
  hideOnRouteChange: f,
3402
3402
  handleShow: O,
@@ -3413,7 +3413,7 @@ const Lb = {
3413
3413
  ve(() => i.maximized, (U) => {
3414
3414
  s.value === !0 && z(U);
3415
3415
  }), ve(B, (U) => {
3416
- d(U), U === !0 ? (Gm(w), Km(M)) : (su(w), tl(M));
3416
+ d(U), U === !0 ? (Gm(w), Km(M)) : (ou(w), tl(M));
3417
3417
  });
3418
3418
  function O(U) {
3419
3419
  var G;
@@ -3437,7 +3437,7 @@ const Lb = {
3437
3437
  }, i.transitionDuration);
3438
3438
  }
3439
3439
  function F(U) {
3440
- Vl(() => {
3440
+ Il(() => {
3441
3441
  let G = o.value;
3442
3442
  if (G !== null) {
3443
3443
  if (U !== void 0) {
@@ -3462,7 +3462,7 @@ const Lb = {
3462
3462
  i.seamless !== !0 && (i.persistent === !0 || i.noEscDismiss === !0 ? i.maximized !== !0 && i.noShake !== !0 && Y() : (t("escapeKey"), H()));
3463
3463
  }
3464
3464
  function q(U) {
3465
- a !== null && (clearTimeout(a), a = null), (U === !0 || s.value === !0) && (z(!1), i.seamless !== !0 && (d(!1), su(w), tl(M))), U !== !0 && (u = null);
3465
+ a !== null && (clearTimeout(a), a = null), (U === !0 || s.value === !0) && (z(!1), i.seamless !== !0 && (d(!1), ou(w), tl(M))), U !== !0 && (u = null);
3466
3466
  }
3467
3467
  function z(U) {
3468
3468
  U === !0 ? c !== !0 && (as < 1 && document.body.classList.add("q-body--dialog"), as++, c = !0) : c === !0 && (as < 2 && document.body.classList.remove("q-body--dialog"), as--, c = !1);
@@ -3554,7 +3554,7 @@ const Ai = 1e3, Ib = [
3554
3554
  function Ar(i, e) {
3555
3555
  return i + e;
3556
3556
  }
3557
- function xa(i, e, t, n, r, o, s, l) {
3557
+ function ba(i, e, t, n, r, o, s, l) {
3558
3558
  const a = i === window ? document.scrollingElement || document.documentElement : i, u = r === !0 ? "offsetWidth" : "offsetHeight", c = {
3559
3559
  scrollStart: 0,
3560
3560
  scrollViewSize: -s - l,
@@ -3641,7 +3641,7 @@ function Nb({
3641
3641
  function B(I, w) {
3642
3642
  const N = e();
3643
3643
  if (N == null || N.nodeType === 8) return;
3644
- const U = xa(
3644
+ const U = ba(
3645
3645
  N,
3646
3646
  t(),
3647
3647
  v.value,
@@ -3662,7 +3662,7 @@ function Nb({
3662
3662
  function D() {
3663
3663
  const I = e();
3664
3664
  if (I == null || I.nodeType === 8) return;
3665
- const w = xa(
3665
+ const w = ba(
3666
3666
  I,
3667
3667
  t(),
3668
3668
  v.value,
@@ -3782,7 +3782,7 @@ function Nb({
3782
3782
  function Y(I) {
3783
3783
  if (I === void 0 && typeof window < "u") {
3784
3784
  const le = e();
3785
- le != null && le.nodeType !== 8 && (I = xa(
3785
+ le != null && le.nodeType !== 8 && (I = ba(
3786
3786
  le,
3787
3787
  t(),
3788
3788
  v.value,
@@ -3981,8 +3981,8 @@ function Fe(i, e = 2, t = "0") {
3981
3981
  const n = "" + i;
3982
3982
  return n.length >= e ? n : new Array(e - n.length + 1).join(t) + n;
3983
3983
  }
3984
- const Qh = (i) => ["add", "add-unique", "toggle"].includes(i), zb = ".*+?^${}()|[]\\", jb = Object.keys(Fl);
3985
- function ka(i, e) {
3984
+ const Qh = (i) => ["add", "add-unique", "toggle"].includes(i), zb = ".*+?^${}()|[]\\", jb = Object.keys(Vl);
3985
+ function xa(i, e) {
3986
3986
  if (typeof i == "function") return i;
3987
3987
  const t = i !== void 0 ? i : e;
3988
3988
  return (n) => n !== null && typeof n == "object" && t in n ? n[t] : n;
@@ -3993,7 +3993,7 @@ const jo = Je({
3993
3993
  props: {
3994
3994
  ...jh,
3995
3995
  ...zo,
3996
- ...Fl,
3996
+ ...Vl,
3997
3997
  // override of useFieldProps > modelValue
3998
3998
  modelValue: {
3999
3999
  required: !0
@@ -4170,7 +4170,7 @@ const jo = Je({
4170
4170
  });
4171
4171
  }), gi = b(() => i.dropdownIcon !== void 0 ? i.dropdownIcon : r.iconSet.arrow.dropdown), Ri = b(
4172
4172
  () => i.optionsCover === !1 && i.outlined !== !0 && i.standout !== !0 && i.borderless !== !0 && i.rounded !== !0
4173
- ), Gt = b(() => i.optionsSelectedClass !== void 0 ? i.optionsSelectedClass : i.color !== void 0 ? `text-${i.color}` : ""), at = b(() => ka(i.optionValue, "value")), X = b(() => ka(i.optionLabel, "label")), ye = b(() => ka(i.optionDisable, "disable")), we = b(() => w.value.map(at.value)), Ue = b(() => {
4173
+ ), Gt = b(() => i.optionsSelectedClass !== void 0 ? i.optionsSelectedClass : i.color !== void 0 ? `text-${i.color}` : ""), at = b(() => xa(i.optionValue, "value")), X = b(() => xa(i.optionLabel, "label")), ye = b(() => xa(i.optionDisable, "disable")), we = b(() => w.value.map(at.value)), Ue = b(() => {
4174
4174
  const _ = {
4175
4175
  onInput: cr,
4176
4176
  // Safari < 10.2 & UIWebView doesn't fire compositionend when
@@ -4190,7 +4190,7 @@ const jo = Je({
4190
4190
  });
4191
4191
  ve(w, (_) => {
4192
4192
  d = _, i.useInput === !0 && i.fillInput === !0 && i.multiple !== !0 && I.innerLoading.value !== !0 && (s.value !== !0 && o.value !== !0 || G.value !== !0) && (p !== !0 && pi(), (s.value === !0 || o.value === !0) && Ei(""));
4193
- }, { immediate: !0 }), ve(() => i.fillInput, pi), ve(o, aa), ve(R, O0);
4193
+ }, { immediate: !0 }), ve(() => i.fillInput, pi), ve(o, la), ve(R, O0);
4194
4194
  function ze(_) {
4195
4195
  return i.emitValue === !0 ? at.value(_) : _;
4196
4196
  }
@@ -4306,7 +4306,7 @@ const jo = Je({
4306
4306
  t("keypress", _);
4307
4307
  }
4308
4308
  function Rt(_) {
4309
- if (t("keydown", _), Nl(_) === !0) return;
4309
+ if (t("keydown", _), Fl(_) === !0) return;
4310
4310
  const he = a.value.length !== 0 && (i.newValueMode !== void 0 || i.onNewValue !== void 0), me = _.shiftKey !== !0 && i.disableTabSelection !== !0 && i.multiple !== !0 && (l.value !== -1 || he === !0);
4311
4311
  if (_.keyCode === 27) {
4312
4312
  Zt(_);
@@ -4456,7 +4456,7 @@ const jo = Je({
4456
4456
  _,
4457
4457
  ($e, mt) => {
4458
4458
  (he === !0 || I.focused.value === !0) && g === _e && (clearTimeout(g), typeof $e == "function" && $e(), c.value = !1, rt(() => {
4459
- I.innerLoading.value = !1, I.editable.value === !0 && (he === !0 ? o.value === !0 && Ve() : o.value === !0 ? aa(!0) : o.value = !0), typeof mt == "function" && rt(() => {
4459
+ I.innerLoading.value = !1, I.editable.value === !0 && (he === !0 ? o.value === !0 && Ve() : o.value === !0 ? la(!0) : o.value = !0), typeof mt == "function" && rt(() => {
4460
4460
  mt(n);
4461
4461
  }), typeof me == "function" && rt(() => {
4462
4462
  me(n);
@@ -4468,7 +4468,7 @@ const jo = Je({
4468
4468
  }
4469
4469
  );
4470
4470
  }
4471
- function oa() {
4471
+ function ra() {
4472
4472
  return A($m, {
4473
4473
  ref: T,
4474
4474
  class: le.value,
@@ -4492,14 +4492,14 @@ const jo = Je({
4492
4492
  ...Yt.value,
4493
4493
  onScrollPassive: q,
4494
4494
  onBeforeShow: lh,
4495
- onBeforeHide: sa,
4496
- onShow: la
4495
+ onBeforeHide: oa,
4496
+ onShow: sa
4497
4497
  }, $i);
4498
4498
  }
4499
- function sa(_) {
4499
+ function oa(_) {
4500
4500
  ah(_), pe();
4501
4501
  }
4502
- function la() {
4502
+ function sa() {
4503
4503
  ne();
4504
4504
  }
4505
4505
  function S(_) {
@@ -4588,7 +4588,7 @@ const jo = Je({
4588
4588
  !0
4589
4589
  );
4590
4590
  }
4591
- function aa(_) {
4591
+ function la(_) {
4592
4592
  let he = -1;
4593
4593
  if (_ === !0) {
4594
4594
  if (w.value.length !== 0) {
@@ -4601,7 +4601,7 @@ const jo = Je({
4601
4601
  }
4602
4602
  function O0(_, he) {
4603
4603
  o.value === !0 && I.innerLoading.value === !1 && (Y(-1, !0), rt(() => {
4604
- o.value === !0 && I.innerLoading.value === !1 && (_ > he ? Y() : aa(!0));
4604
+ o.value === !0 && I.innerLoading.value === !1 && (_ > he ? Y() : la(!0));
4605
4605
  }));
4606
4606
  }
4607
4607
  function sh() {
@@ -4649,7 +4649,7 @@ const jo = Je({
4649
4649
  ),
4650
4650
  getControlChild: () => {
4651
4651
  if (I.editable.value !== !1 && (s.value === !0 || Be.value !== !0 || e["no-option"] !== void 0))
4652
- return m === !0 ? W() : oa();
4652
+ return m === !0 ? W() : ra();
4653
4653
  I.hasPopupOpen === !0 && (I.hasPopupOpen = !1);
4654
4654
  },
4655
4655
  controlEvents: {
@@ -4749,7 +4749,7 @@ const jo = Je({
4749
4749
  label: t.label,
4750
4750
  componentType: "select"
4751
4751
  }), c = b(() => {
4752
- const g = Hl(
4752
+ const g = Nl(
4753
4753
  t.schema,
4754
4754
  u == null ? void 0 : u.componentDefaults,
4755
4755
  "select"
@@ -4896,7 +4896,7 @@ function Xb(i, e) {
4896
4896
  return i.flat === !0 ? "flat" : i.outline === !0 ? "outline" : i.push === !0 ? "push" : i.unelevated === !0 ? "unelevated" : e;
4897
4897
  }
4898
4898
  const $b = {
4899
- ...Ll,
4899
+ ...El,
4900
4900
  ...Vm,
4901
4901
  type: {
4902
4902
  type: String,
@@ -4942,7 +4942,7 @@ const $b = {
4942
4942
  round: Boolean
4943
4943
  };
4944
4944
  function e1(i) {
4945
- const e = Il(i, Kb), t = ng(i), { hasRouterLink: n, hasLink: r, linkTag: o, linkAttrs: s, navigateOnClick: l } = Fm({
4945
+ const e = Ll(i, Kb), t = ng(i), { hasRouterLink: n, hasLink: r, linkTag: o, linkAttrs: s, navigateOnClick: l } = Fm({
4946
4946
  fallbackTag: "button"
4947
4947
  }), a = b(() => {
4948
4948
  const g = i.fab === !1 && i.fabMini === !1 ? e.value : {};
@@ -5428,7 +5428,7 @@ function lg(i, e) {
5428
5428
  getCurrentDate: s
5429
5429
  };
5430
5430
  }
5431
- const au = {
5431
+ const lu = {
5432
5432
  isoName: "en-US",
5433
5433
  nativeName: "English (US)",
5434
5434
  label: {
@@ -5542,7 +5542,7 @@ const gn = ey({
5542
5542
  // props: object
5543
5543
  // __langConfig: object
5544
5544
  getLocale: Jh,
5545
- set(i = au, e) {
5545
+ set(i = lu, e) {
5546
5546
  const t = {
5547
5547
  ...i,
5548
5548
  rtl: i.rtl === !0,
@@ -5564,13 +5564,13 @@ const gn = ey({
5564
5564
  ownKeys(n) {
5565
5565
  return Reflect.ownKeys(n).filter((r) => r !== "set" && r !== "getLocale");
5566
5566
  }
5567
- }), this.set(e || au));
5567
+ }), this.set(e || lu));
5568
5568
  }
5569
- }), ag = 864e5, a1 = 36e5, uu = 6e4, ug = "YYYY-MM-DDTHH:mm:ss.SSSZ", u1 = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, c1 = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, wa = {};
5569
+ }), ag = 864e5, a1 = 36e5, au = 6e4, ug = "YYYY-MM-DDTHH:mm:ss.SSSZ", u1 = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, c1 = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, ka = {};
5570
5570
  function h1(i, e) {
5571
5571
  const t = "(" + e.days.join("|") + ")", n = i + t;
5572
- if (wa[n] !== void 0)
5573
- return wa[n];
5572
+ if (ka[n] !== void 0)
5573
+ return ka[n];
5574
5574
  const r = "(" + e.daysShort.join("|") + ")", o = "(" + e.months.join("|") + ")", s = "(" + e.monthsShort.join("|") + ")", l = {};
5575
5575
  let a = 0;
5576
5576
  const u = i.replace(c1, (h) => {
@@ -5658,10 +5658,10 @@ function h1(i, e) {
5658
5658
  return a--, h[0] === "[" && (h = h.substring(1, h.length - 1)), h.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5659
5659
  }
5660
5660
  }), c = { map: l, regex: new RegExp("^" + u) };
5661
- return wa[n] = c, c;
5661
+ return ka[n] = c, c;
5662
5662
  }
5663
5663
  function cg(i, e) {
5664
- return i !== void 0 ? i : e !== void 0 ? e.date : au.date;
5664
+ return i !== void 0 ? i : e !== void 0 ? e.date : lu.date;
5665
5665
  }
5666
5666
  function Xh(i, e = "") {
5667
5667
  const t = i > 0 ? "-" : "+", n = Math.abs(i), r = Math.floor(n / 60), o = n % 60;
@@ -5715,7 +5715,7 @@ function ro(i, e, t, n, r) {
5715
5715
  }
5716
5716
  return o.dateHash = Fe(o.year, 4) + "/" + Fe(o.month) + "/" + Fe(o.day), o.timeHash = Fe(o.hour) + ":" + Fe(o.minute) + ":" + Fe(o.second) + f, o;
5717
5717
  }
5718
- function Sa(i) {
5718
+ function wa(i) {
5719
5719
  const e = new Date(i.getFullYear(), i.getMonth(), i.getDate());
5720
5720
  e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
5721
5721
  const t = new Date(e.getFullYear(), 0, 4);
@@ -5751,7 +5751,7 @@ function tn(i, e, t) {
5751
5751
  return n;
5752
5752
  }
5753
5753
  function us(i, e, t) {
5754
- return (i.getTime() - i.getTimezoneOffset() * uu - (e.getTime() - e.getTimezoneOffset() * uu)) / t;
5754
+ return (i.getTime() - i.getTimezoneOffset() * au - (e.getTime() - e.getTimezoneOffset() * au)) / t;
5755
5755
  }
5756
5756
  function hg(i, e, t = "days") {
5757
5757
  const n = new Date(i), r = new Date(e);
@@ -5771,13 +5771,13 @@ function hg(i, e, t = "days") {
5771
5771
  return us(tn(n, "hour"), tn(r, "hour"), a1);
5772
5772
  case "minutes":
5773
5773
  case "minute":
5774
- return us(tn(n, "minute"), tn(r, "minute"), uu);
5774
+ return us(tn(n, "minute"), tn(r, "minute"), au);
5775
5775
  case "seconds":
5776
5776
  case "second":
5777
5777
  return us(tn(n, "second"), tn(r, "second"), 1e3);
5778
5778
  }
5779
5779
  }
5780
- function Ca(i) {
5780
+ function Sa(i) {
5781
5781
  return hg(i, tn(i, "year"), "days") + 1;
5782
5782
  }
5783
5783
  function gr(i) {
@@ -5845,15 +5845,15 @@ const $h = {
5845
5845
  },
5846
5846
  // Day of year: 1, 2, ..., 366
5847
5847
  DDD(i) {
5848
- return Ca(i);
5848
+ return Sa(i);
5849
5849
  },
5850
5850
  // Day of year: 1st, 2nd, ..., 366th
5851
5851
  DDDo(i) {
5852
- return gr(Ca(i));
5852
+ return gr(Sa(i));
5853
5853
  },
5854
5854
  // Day of year: 001, 002, ..., 366
5855
5855
  DDDD(i) {
5856
- return Fe(Ca(i), 3);
5856
+ return Fe(Sa(i), 3);
5857
5857
  },
5858
5858
  // Day of week: 0, 1, ..., 6
5859
5859
  d(i) {
@@ -5881,15 +5881,15 @@ const $h = {
5881
5881
  },
5882
5882
  // Week of Year: 1 2 ... 52 53
5883
5883
  w(i) {
5884
- return Sa(i);
5884
+ return wa(i);
5885
5885
  },
5886
5886
  // Week of Year: 1st 2nd ... 52nd 53rd
5887
5887
  wo(i) {
5888
- return gr(Sa(i));
5888
+ return gr(wa(i));
5889
5889
  },
5890
5890
  // Week of Year: 01 02 ... 52 53
5891
5891
  ww(i) {
5892
- return Fe(Sa(i));
5892
+ return Fe(wa(i));
5893
5893
  },
5894
5894
  // Hour: 0, 1, ... 23
5895
5895
  H(i) {
@@ -5978,7 +5978,7 @@ function fg(i, e, t, n, r) {
5978
5978
  (l, a) => l in $h ? $h[l](o, s, n, r) : a === void 0 ? l : a.split("\\]").join("]")
5979
5979
  );
5980
5980
  }
5981
- const Zi = 20, f1 = ["Calendar", "Years", "Months"], Zh = (i) => f1.includes(i), Ma = (i) => /^-?[\d]+\/[0-1]\d$/.test(i), pr = " — ";
5981
+ const Zi = 20, f1 = ["Calendar", "Years", "Months"], Zh = (i) => f1.includes(i), Ca = (i) => /^-?[\d]+\/[0-1]\d$/.test(i), pr = " — ";
5982
5982
  function mn(i) {
5983
5983
  return i.year + "/" + Fe(i.month);
5984
5984
  }
@@ -6004,7 +6004,7 @@ const dg = Je({
6004
6004
  },
6005
6005
  defaultYearMonth: {
6006
6006
  type: String,
6007
- validator: Ma
6007
+ validator: Ca
6008
6008
  },
6009
6009
  yearsInMonthView: Boolean,
6010
6010
  events: [Array, Function],
@@ -6013,11 +6013,11 @@ const dg = Je({
6013
6013
  options: [Array, Function],
6014
6014
  navigationMinYearMonth: {
6015
6015
  type: String,
6016
- validator: Ma
6016
+ validator: Ca
6017
6017
  },
6018
6018
  navigationMaxYearMonth: {
6019
6019
  type: String,
6020
- validator: Ma
6020
+ validator: Ca
6021
6021
  },
6022
6022
  noUnset: Boolean,
6023
6023
  firstDayOfWeek: [String, Number],
@@ -6583,7 +6583,7 @@ const dg = Je({
6583
6583
  ])
6584
6584
  ];
6585
6585
  }
6586
- const oa = {
6586
+ const ra = {
6587
6587
  Calendar: () => [
6588
6588
  A("div", {
6589
6589
  key: "calendar-view",
@@ -6633,10 +6633,10 @@ const dg = Je({
6633
6633
  tabindex: l.value,
6634
6634
  ...s("day#" + S.i, {
6635
6635
  onClick: () => {
6636
- sa(S.i);
6636
+ oa(S.i);
6637
6637
  },
6638
6638
  onMouseover: () => {
6639
- la(S.i);
6639
+ sa(S.i);
6640
6640
  }
6641
6641
  })
6642
6642
  },
@@ -6751,7 +6751,7 @@ const dg = Je({
6751
6751
  ]);
6752
6752
  }
6753
6753
  };
6754
- function sa(S) {
6754
+ function oa(S) {
6755
6755
  const L = { ...x.value, day: S };
6756
6756
  if (i.range === !1) {
6757
6757
  De(L, dt.value);
@@ -6782,7 +6782,7 @@ const dg = Je({
6782
6782
  });
6783
6783
  }
6784
6784
  }
6785
- function la(S) {
6785
+ function sa(S) {
6786
6786
  if (D.value !== null) {
6787
6787
  const L = { ...x.value, day: S };
6788
6788
  Object.assign(D.value, {
@@ -6804,7 +6804,7 @@ const dg = Je({
6804
6804
  }, [
6805
6805
  A(fi, {
6806
6806
  name: "q-transition--fade"
6807
- }, oa[C.value])
6807
+ }, ra[C.value])
6808
6808
  ])
6809
6809
  ], L = qt(e.default);
6810
6810
  return L !== void 0 && S.push(
@@ -6969,7 +6969,7 @@ const v1 = ["INPUT", "TEXTAREA"];
6969
6969
  function nf(i, e) {
6970
6970
  return e.event === void 0 && i.target !== void 0 && i.target.draggable !== !0 && typeof e.handler == "function" && v1.includes(i.target.nodeName.toUpperCase()) === !1 && (i.qClonedBy === void 0 || i.qClonedBy.indexOf(e.uid) === -1);
6971
6971
  }
6972
- function Aa(i, e, t) {
6972
+ function Ma(i, e, t) {
6973
6973
  const n = Rr(i);
6974
6974
  let r, o = n.left - e.event.x, s = n.top - e.event.y, l = Math.abs(o), a = Math.abs(s);
6975
6975
  const u = e.direction;
@@ -7038,7 +7038,7 @@ const b1 = cc(
7038
7038
  }
7039
7039
  },
7040
7040
  start(o, s) {
7041
- if (Tt.is.firefox === !0 && ga(i, !0), r.lastEvt = o, s === !0 || t.stop === !0) {
7041
+ if (Tt.is.firefox === !0 && ma(i, !0), r.lastEvt = o, s === !0 || t.stop === !0) {
7042
7042
  if (r.direction.all !== !0 && (s !== !0 || r.modifiers.mouseAllDir !== !0 && r.modifiers.mousealldir !== !0)) {
7043
7043
  const u = o.type.indexOf("mouse") !== -1 ? new MouseEvent(o.type, o) : new TouchEvent(o.type, o);
7044
7044
  o.defaultPrevented === !0 && Zt(u), o.cancelBubble === !0 && hi(u), Object.assign(u, {
@@ -7087,7 +7087,7 @@ const b1 = cc(
7087
7087
  };
7088
7088
  if (r.event.detected === !0) {
7089
7089
  r.event.isFirst !== !0 && n(o, r.event.mouse);
7090
- const { payload: d, synthetic: m } = Aa(o, r, !1);
7090
+ const { payload: d, synthetic: m } = Ma(o, r, !1);
7091
7091
  d !== void 0 && (r.handler(d) === !1 ? r.end(o) : (r.styleCleanup === void 0 && r.event.isFirst === !0 && c(), r.event.lastX = d.position.left, r.event.lastY = d.position.top, r.event.lastDir = m === !0 ? void 0 : d.direction, r.event.isFirst = !1));
7092
7092
  return;
7093
7093
  }
@@ -7101,11 +7101,11 @@ const b1 = cc(
7101
7101
  end(o, s) {
7102
7102
  var l;
7103
7103
  if (r.event !== void 0) {
7104
- if (Xn(r, "temp"), Tt.is.firefox === !0 && ga(i, !1), s === !0)
7104
+ if (Xn(r, "temp"), Tt.is.firefox === !0 && ma(i, !1), s === !0)
7105
7105
  (l = r.styleCleanup) == null || l.call(r), r.event.detected !== !0 && r.initialEvent !== void 0 && r.initialEvent.target.dispatchEvent(r.initialEvent.event);
7106
7106
  else if (r.event.detected === !0) {
7107
- r.event.isFirst === !0 && r.handler(Aa(o === void 0 ? r.lastEvt : o, r).payload);
7108
- const { payload: a } = Aa(o === void 0 ? r.lastEvt : o, r, !0), u = () => {
7107
+ r.event.isFirst === !0 && r.handler(Ma(o === void 0 ? r.lastEvt : o, r).payload);
7108
+ const { payload: a } = Ma(o === void 0 ? r.lastEvt : o, r, !0), u = () => {
7109
7109
  r.handler(a);
7110
7110
  };
7111
7111
  r.styleCleanup !== void 0 ? r.styleCleanup(u) : u();
@@ -7133,7 +7133,7 @@ const b1 = cc(
7133
7133
  beforeUnmount(i) {
7134
7134
  var t;
7135
7135
  const e = i.__qtouchpan;
7136
- e !== void 0 && (e.event !== void 0 && e.end(), Xn(e, "main"), Xn(e, "temp"), Tt.is.firefox === !0 && ga(i, !1), (t = e.styleCleanup) == null || t.call(e), delete i.__qtouchpan);
7136
+ e !== void 0 && (e.event !== void 0 && e.end(), Xn(e, "main"), Xn(e, "temp"), Tt.is.firefox === !0 && ma(i, !1), (t = e.styleCleanup) == null || t.call(e), delete i.__qtouchpan);
7137
7137
  }
7138
7138
  }
7139
7139
  );
@@ -7763,13 +7763,13 @@ const rf = /* @__PURE__ */ Ut(w1, [["render", C1], ["__file", "/Users/zachsherbo
7763
7763
  true: "inset",
7764
7764
  item: "item-inset",
7765
7765
  "item-thumbnail": "item-thumbnail-inset"
7766
- }, Oa = {
7766
+ }, Aa = {
7767
7767
  xs: 2,
7768
7768
  sm: 4,
7769
7769
  md: 8,
7770
7770
  lg: 16,
7771
7771
  xl: 24
7772
- }, cu = Je({
7772
+ }, uu = Je({
7773
7773
  name: "QSeparator",
7774
7774
  props: {
7775
7775
  ...Ji,
@@ -7785,7 +7785,7 @@ const rf = /* @__PURE__ */ Ut(w1, [["render", C1], ["__file", "/Users/zachsherbo
7785
7785
  ), l = b(() => {
7786
7786
  const a = {};
7787
7787
  if (i.size !== void 0 && (a[i.vertical === !0 ? "width" : "height"] = i.size), i.spaced !== !1) {
7788
- const u = i.spaced === !0 ? `${Oa.md}px` : i.spaced in Oa ? `${Oa[i.spaced]}px` : i.spaced, c = i.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
7788
+ const u = i.spaced === !0 ? `${Aa.md}px` : i.spaced in Aa ? `${Aa[i.spaced]}px` : i.spaced, c = i.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
7789
7789
  a[`margin${c[0]}`] = a[`margin${c[1]}`] = u;
7790
7790
  }
7791
7791
  return a;
@@ -7856,7 +7856,7 @@ const rf = /* @__PURE__ */ Ut(w1, [["render", C1], ["__file", "/Users/zachsherbo
7856
7856
  }, get QCardActions() {
7857
7857
  return M1;
7858
7858
  }, get QSeparator() {
7859
- return cu;
7859
+ return uu;
7860
7860
  } };
7861
7861
  return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
7862
7862
  }
@@ -8038,7 +8038,7 @@ const of = /* @__PURE__ */ Ut(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
8038
8038
  name: "QExpansionItem",
8039
8039
  props: {
8040
8040
  ...yc,
8041
- ...zl,
8041
+ ...Hl,
8042
8042
  ...Ji,
8043
8043
  icon: String,
8044
8044
  label: String,
@@ -8065,7 +8065,7 @@ const of = /* @__PURE__ */ Ut(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
8065
8065
  headerClass: [Array, String, Object]
8066
8066
  },
8067
8067
  emits: [
8068
- ...jl,
8068
+ ...zl,
8069
8069
  "click",
8070
8070
  "afterShow",
8071
8071
  "afterHide"
@@ -8073,7 +8073,7 @@ const of = /* @__PURE__ */ Ut(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
8073
8073
  setup(i, { slots: e, emit: t }) {
8074
8074
  const { proxy: { $q: n } } = je(), r = Xi(i, n), o = J(
8075
8075
  i.modelValue !== null ? i.modelValue : i.defaultOpened
8076
- ), s = J(null), l = Cm(), { show: a, hide: u, toggle: c } = Wl({ showing: o });
8076
+ ), s = J(null), l = Cm(), { show: a, hide: u, toggle: c } = jl({ showing: o });
8077
8077
  let h, f;
8078
8078
  const d = b(
8079
8079
  () => `q-expansion-item q-item-type q-expansion-item--${o.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${i.popup === !0 ? "popup" : "standard"}`
@@ -8220,11 +8220,11 @@ const of = /* @__PURE__ */ Ut(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
8220
8220
  }, F)
8221
8221
  ];
8222
8222
  return i.expandSeparator === !0 && M.push(
8223
- A(cu, {
8223
+ A(uu, {
8224
8224
  class: "q-expansion-item__border q-expansion-item__border--top absolute-top",
8225
8225
  dark: r.value
8226
8226
  }),
8227
- A(cu, {
8227
+ A(uu, {
8228
8228
  class: "q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",
8229
8229
  dark: r.value
8230
8230
  })
@@ -8288,7 +8288,7 @@ const of = /* @__PURE__ */ Ut(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
8288
8288
  })) : []), g = { props: t, label: n, hint: r, errorMessage: o, required: s, fieldId: l, fieldGap: a, formContext: u, defaultOpened: c, showOptionalIndicator: h, sectionStyle: f, sectionStyleClass: d, quasarProps: m, properties: p, get QExpansionItem() {
8289
8289
  return _1;
8290
8290
  }, get FieldRenderer() {
8291
- return El;
8291
+ return Rl;
8292
8292
  } };
8293
8293
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
8294
8294
  }
@@ -8366,7 +8366,7 @@ const sf = /* @__PURE__ */ Ut(B1, [["render", F1], ["__scopeId", "data-v-813eef2
8366
8366
  inheritAttrs: !1,
8367
8367
  props: {
8368
8368
  ...Nm,
8369
- ...zl,
8369
+ ...Hl,
8370
8370
  ...co,
8371
8371
  maxHeight: {
8372
8372
  type: String,
@@ -8411,11 +8411,11 @@ const sf = /* @__PURE__ */ Ut(B1, [["render", F1], ["__scopeId", "data-v-813eef2
8411
8411
  persistent: Boolean
8412
8412
  },
8413
8413
  emits: [
8414
- ...jl
8414
+ ...zl
8415
8415
  ],
8416
8416
  setup(i, { slots: e, emit: t, attrs: n }) {
8417
8417
  let r, o;
8418
- const s = je(), { proxy: { $q: l } } = s, a = J(null), u = J(!1), c = b(() => sl(i.anchor, l.lang.rtl)), h = b(() => sl(i.self, l.lang.rtl)), f = b(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = So(), { transitionProps: g, transitionStyle: v } = kc(i), { localScrollTarget: k, changeScrollEvent: y, unconfigureScrollTarget: x } = zm(i, ne), { anchorEl: C, canShow: E, anchorEvents: T } = bc({ showing: u, configureAnchorEl: z }), { show: H, hide: V } = Wl({
8418
+ const s = je(), { proxy: { $q: l } } = s, a = J(null), u = J(!1), c = b(() => sl(i.anchor, l.lang.rtl)), h = b(() => sl(i.self, l.lang.rtl)), f = b(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = So(), { transitionProps: g, transitionStyle: v } = kc(i), { localScrollTarget: k, changeScrollEvent: y, unconfigureScrollTarget: x } = zm(i, ne), { anchorEl: C, canShow: E, anchorEvents: T } = bc({ showing: u, configureAnchorEl: z }), { show: H, hide: V } = jl({
8419
8419
  showing: u,
8420
8420
  canShow: E,
8421
8421
  handleShow: O,
@@ -8647,7 +8647,7 @@ const sf = /* @__PURE__ */ Ut(B1, [["render", F1], ["__scopeId", "data-v-813eef2
8647
8647
  }, get QBtn() {
8648
8648
  return It;
8649
8649
  }, get FieldRenderer() {
8650
- return El;
8650
+ return Rl;
8651
8651
  } };
8652
8652
  return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
8653
8653
  }
@@ -9195,17 +9195,17 @@ const af = /* @__PURE__ */ Ut(ix, [["render", fx], ["__file", "/Users/zachsherbo
9195
9195
  function dx() {
9196
9196
  return No(xy);
9197
9197
  }
9198
- let hu = [], pg = [];
9198
+ let cu = [], pg = [];
9199
9199
  (() => {
9200
9200
  let i = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
9201
9201
  for (let e = 0, t = 0; e < i.length; e++)
9202
- (e % 2 ? pg : hu).push(t = t + i[e]);
9202
+ (e % 2 ? pg : cu).push(t = t + i[e]);
9203
9203
  })();
9204
9204
  function mx(i) {
9205
9205
  if (i < 768) return !1;
9206
- for (let e = 0, t = hu.length; ; ) {
9206
+ for (let e = 0, t = cu.length; ; ) {
9207
9207
  let n = e + t >> 1;
9208
- if (i < hu[n]) t = n;
9208
+ if (i < cu[n]) t = n;
9209
9209
  else if (i >= pg[n]) e = n + 1;
9210
9210
  else return !0;
9211
9211
  if (e == t) return !1;
@@ -9221,14 +9221,14 @@ function gx(i, e, t = !0, n = !0) {
9221
9221
  function vg(i, e, t) {
9222
9222
  if (e == i.length) return e;
9223
9223
  e && yg(i.charCodeAt(e)) && bg(i.charCodeAt(e - 1)) && e--;
9224
- let n = Ta(i, e);
9224
+ let n = Oa(i, e);
9225
9225
  for (e += hf(n); e < i.length; ) {
9226
- let r = Ta(i, e);
9226
+ let r = Oa(i, e);
9227
9227
  if (n == cf || r == cf || t && mx(r))
9228
9228
  e += hf(r), n = r;
9229
9229
  else if (uf(r)) {
9230
9230
  let o = 0, s = e - 2;
9231
- for (; s >= 0 && uf(Ta(i, s)); )
9231
+ for (; s >= 0 && uf(Oa(i, s)); )
9232
9232
  o++, s -= 2;
9233
9233
  if (o % 2 == 0) break;
9234
9234
  e += 2;
@@ -9245,7 +9245,7 @@ function px(i, e, t) {
9245
9245
  }
9246
9246
  return 0;
9247
9247
  }
9248
- function Ta(i, e) {
9248
+ function Oa(i, e) {
9249
9249
  let t = i.charCodeAt(e);
9250
9250
  if (!bg(t) || e + 1 == i.length) return t;
9251
9251
  let n = i.charCodeAt(e + 1);
@@ -9678,7 +9678,7 @@ function Tc(i) {
9678
9678
  function Hi(i) {
9679
9679
  return i < 65536 ? 1 : 2;
9680
9680
  }
9681
- const fu = /\r\n?|\n/;
9681
+ const hu = /\r\n?|\n/;
9682
9682
  var ei = /* @__PURE__ */ function(i) {
9683
9683
  return i[i.Simple = 0] = "Simple", i[i.TrackDel = 1] = "TrackDel", i[i.TrackBefore = 2] = "TrackBefore", i[i.TrackAfter = 3] = "TrackAfter", i;
9684
9684
  }(ei || (ei = {}));
@@ -9744,7 +9744,7 @@ class Ui {
9744
9744
  reported separately.
9745
9745
  */
9746
9746
  iterChangedRanges(e, t = !1) {
9747
- du(this, e, t);
9747
+ fu(this, e, t);
9748
9748
  }
9749
9749
  /**
9750
9750
  Get a description of the inverted form of these changes.
@@ -9772,7 +9772,7 @@ class Ui {
9772
9772
  in `this` happened before the ones in `other`.
9773
9773
  */
9774
9774
  mapDesc(e, t = !1) {
9775
- return e.empty ? this : mu(this, e, t);
9775
+ return e.empty ? this : du(this, e, t);
9776
9776
  }
9777
9777
  mapPos(e, t = -1, n = ei.Simple) {
9778
9778
  let r = 0, o = 0;
@@ -9853,10 +9853,10 @@ class St extends Ui {
9853
9853
  apply(e) {
9854
9854
  if (this.length != e.length)
9855
9855
  throw new RangeError("Applying change set to a document with the wrong length");
9856
- return du(this, (t, n, r, o, s) => e = e.replace(r, r + (n - t), s), !1), e;
9856
+ return fu(this, (t, n, r, o, s) => e = e.replace(r, r + (n - t), s), !1), e;
9857
9857
  }
9858
9858
  mapDesc(e, t = !1) {
9859
- return mu(this, e, t, !0);
9859
+ return du(this, e, t, !0);
9860
9860
  }
9861
9861
  /**
9862
9862
  Given the document as it existed _before_ the changes, return a
@@ -9902,7 +9902,7 @@ class St extends Ui {
9902
9902
  and can be used for collaborative editing.
9903
9903
  */
9904
9904
  map(e, t = !1) {
9905
- return e.empty ? this : mu(this, e, t, !0);
9905
+ return e.empty ? this : du(this, e, t, !0);
9906
9906
  }
9907
9907
  /**
9908
9908
  Iterate over the changed ranges in the document, calling `f` for
@@ -9914,7 +9914,7 @@ class St extends Ui {
9914
9914
  separately.
9915
9915
  */
9916
9916
  iterChanges(e, t = !1) {
9917
- du(this, e, t);
9917
+ fu(this, e, t);
9918
9918
  }
9919
9919
  /**
9920
9920
  Get a [change description](https://codemirror.net/6/docs/ref/#state.ChangeDesc) for this change
@@ -9987,7 +9987,7 @@ class St extends Ui {
9987
9987
  let { from: h, to: f = h, insert: d } = c;
9988
9988
  if (h > f || h < 0 || f > t)
9989
9989
  throw new RangeError(`Invalid change range ${h} to ${f} (in doc of length ${t})`);
9990
- let m = d ? typeof d == "string" ? Ne.of(d.split(n || fu)) : d : Ne.empty, p = m.length;
9990
+ let m = d ? typeof d == "string" ? Ne.of(d.split(n || hu)) : d : Ne.empty, p = m.length;
9991
9991
  if (h == f && p == 0)
9992
9992
  return;
9993
9993
  h < s && a(), h > s && zt(r, h - s, -1), zt(r, f - h, p), Sn(o, r, m), s = f;
@@ -10052,7 +10052,7 @@ function Sn(i, e, t) {
10052
10052
  i.push(t);
10053
10053
  }
10054
10054
  }
10055
- function du(i, e, t) {
10055
+ function fu(i, e, t) {
10056
10056
  let n = i.inserted;
10057
10057
  for (let r = 0, o = 0, s = 0; s < i.sections.length; ) {
10058
10058
  let l = i.sections[s++], a = i.sections[s++];
@@ -10066,7 +10066,7 @@ function du(i, e, t) {
10066
10066
  }
10067
10067
  }
10068
10068
  }
10069
- function mu(i, e, t, n = !1) {
10069
+ function du(i, e, t, n = !1) {
10070
10070
  let r = [], o = n ? [] : null, s = new Mo(i), l = new Mo(e);
10071
10071
  for (let a = -1; ; ) {
10072
10072
  if (s.done && l.len || l.done && s.len)
@@ -10440,7 +10440,7 @@ class Hs {
10440
10440
  return h.values[s] = n(h), 1;
10441
10441
  },
10442
10442
  update(h, f) {
10443
- if (a && f.docChanged || u && (f.docChanged || f.selection) || gu(h, c)) {
10443
+ if (a && f.docChanged || u && (f.docChanged || f.selection) || mu(h, c)) {
10444
10444
  let d = n(h);
10445
10445
  if (l ? !df(d, h.values[s], r) : !r(d, h.values[s]))
10446
10446
  return h.values[s] = d, 1;
@@ -10468,7 +10468,7 @@ function df(i, e, t) {
10468
10468
  return !1;
10469
10469
  return !0;
10470
10470
  }
10471
- function gu(i, e) {
10471
+ function mu(i, e) {
10472
10472
  let t = !1;
10473
10473
  for (let n of e)
10474
10474
  mo(i, n) & 1 && (t = !0);
@@ -10495,13 +10495,13 @@ function kx(i, e, t) {
10495
10495
  return a.values[s] = l(a), 1;
10496
10496
  },
10497
10497
  update(a, u) {
10498
- if (!gu(a, o))
10498
+ if (!mu(a, o))
10499
10499
  return 0;
10500
10500
  let c = l(a);
10501
10501
  return e.compare(c, a.values[s]) ? 0 : (a.values[s] = c, 1);
10502
10502
  },
10503
10503
  reconfigure(a, u) {
10504
- let c = gu(a, n), h = u.config.facets[e.id], f = u.facet(e);
10504
+ let c = mu(a, n), h = u.config.facets[e.id], f = u.facet(e);
10505
10505
  if (h && !c && qc(t, h))
10506
10506
  return a.values[s] = f, 0;
10507
10507
  let d = l(a);
@@ -10600,7 +10600,7 @@ class Wo {
10600
10600
  configuration](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions).
10601
10601
  */
10602
10602
  of(e) {
10603
- return new pu(this, e);
10603
+ return new gu(this, e);
10604
10604
  }
10605
10605
  /**
10606
10606
  Create an [effect](https://codemirror.net/6/docs/ref/#state.TransactionSpec.effects) that
@@ -10617,7 +10617,7 @@ class Wo {
10617
10617
  return e.config.compartments.get(this);
10618
10618
  }
10619
10619
  }
10620
- class pu {
10620
+ class gu {
10621
10621
  constructor(e, t) {
10622
10622
  this.compartment = e, this.inner = t;
10623
10623
  }
@@ -10672,12 +10672,12 @@ function wx(i, e, t) {
10672
10672
  if (a <= l)
10673
10673
  return;
10674
10674
  let u = n[a].indexOf(s);
10675
- u > -1 && n[a].splice(u, 1), s instanceof pu && t.delete(s.compartment);
10675
+ u > -1 && n[a].splice(u, 1), s instanceof gu && t.delete(s.compartment);
10676
10676
  }
10677
10677
  if (r.set(s, l), Array.isArray(s))
10678
10678
  for (let u of s)
10679
10679
  o(u, l);
10680
- else if (s instanceof pu) {
10680
+ else if (s instanceof gu) {
10681
10681
  if (t.has(s.compartment))
10682
10682
  throw new RangeError("Duplicate use of compartment in extensions");
10683
10683
  let u = e.get(s.compartment) || s.inner;
@@ -10712,7 +10712,7 @@ function mo(i, e) {
10712
10712
  function ul(i, e) {
10713
10713
  return e & 1 ? i.config.staticValues[e >> 1] : i.values[e >> 1];
10714
10714
  }
10715
- const Mg = /* @__PURE__ */ de.define(), vu = /* @__PURE__ */ de.define({
10715
+ const Mg = /* @__PURE__ */ de.define(), pu = /* @__PURE__ */ de.define({
10716
10716
  combine: (i) => i.some((e) => e),
10717
10717
  static: !0
10718
10718
  }), Ag = /* @__PURE__ */ de.define({
@@ -10908,7 +10908,7 @@ function Pg(i, e, t) {
10908
10908
  scrollIntoView: i.scrollIntoView || e.scrollIntoView
10909
10909
  };
10910
10910
  }
10911
- function yu(i, e, t) {
10911
+ function vu(i, e, t) {
10912
10912
  let n = e.selection, r = Or(e.annotations);
10913
10913
  return e.userEvent && (r = r.concat(Ct.userEvent.of(e.userEvent))), {
10914
10914
  changes: e.changes instanceof St ? e.changes : St.of(e.changes || [], t, i.facet(Ag)),
@@ -10919,12 +10919,12 @@ function yu(i, e, t) {
10919
10919
  };
10920
10920
  }
10921
10921
  function _g(i, e, t) {
10922
- let n = yu(i, e.length ? e[0] : {}, i.doc.length);
10922
+ let n = vu(i, e.length ? e[0] : {}, i.doc.length);
10923
10923
  e.length && e[0].filter === !1 && (t = !1);
10924
10924
  for (let o = 1; o < e.length; o++) {
10925
10925
  e[o].filter === !1 && (t = !1);
10926
10926
  let s = !!e[o].sequential;
10927
- n = Pg(n, yu(i, e[o], s ? n.changes.newLength : i.doc.length), s);
10927
+ n = Pg(n, vu(i, e[o], s ? n.changes.newLength : i.doc.length), s);
10928
10928
  }
10929
10929
  let r = Ct.create(i, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView);
10930
10930
  return Ox(t ? Ax(r) : r);
@@ -10960,7 +10960,7 @@ function Ox(i) {
10960
10960
  let e = i.startState, t = e.facet(Dg), n = i;
10961
10961
  for (let r = t.length - 1; r >= 0; r--) {
10962
10962
  let o = t[r](i);
10963
- o && Object.keys(o).length && (n = Pg(n, yu(e, o, i.changes.newLength), !0));
10963
+ o && Object.keys(o).length && (n = Pg(n, vu(e, o, i.changes.newLength), !0));
10964
10964
  }
10965
10965
  return n == i ? i : Ct.create(e, i.changes, i.selection, n.effects, n.annotations, n.scrollIntoView);
10966
10966
  }
@@ -10972,14 +10972,14 @@ var lt = /* @__PURE__ */ function(i) {
10972
10972
  return i[i.Word = 0] = "Word", i[i.Space = 1] = "Space", i[i.Other = 2] = "Other", i;
10973
10973
  }(lt || (lt = {}));
10974
10974
  const Dx = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
10975
- let bu;
10975
+ let yu;
10976
10976
  try {
10977
- bu = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
10977
+ yu = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
10978
10978
  } catch {
10979
10979
  }
10980
10980
  function qx(i) {
10981
- if (bu)
10982
- return bu.test(i);
10981
+ if (yu)
10982
+ return yu.test(i);
10983
10983
  for (let e = 0; e < i.length; e++) {
10984
10984
  let t = i[e];
10985
10985
  if (/\w/.test(t) || t > "€" && (t.toUpperCase() != t.toLowerCase() || Dx.test(t)))
@@ -11042,7 +11042,7 @@ class Ee {
11042
11042
  l.is(Wo.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(Ae.reconfigure) ? (t = null, n = l.value) : l.is(Ae.appendConfig) && (t = null, n = Or(n).concat(l.value));
11043
11043
  let o;
11044
11044
  t ? o = e.startState.values.slice() : (t = al.resolve(n, r, this), o = new Ee(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, u) => u.reconfigure(a, this), null).values);
11045
- let s = e.startState.facet(vu) ? e.newSelection : e.newSelection.asSingle();
11045
+ let s = e.startState.facet(pu) ? e.newSelection : e.newSelection.asSingle();
11046
11046
  new Ee(t, e.newDoc, s, o, (l, a) => a.update(l, e), e);
11047
11047
  }
11048
11048
  /**
@@ -11095,7 +11095,7 @@ class Ee {
11095
11095
  [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
11096
11096
  */
11097
11097
  toText(e) {
11098
- return Ne.of(e.split(this.facet(Ee.lineSeparator) || fu));
11098
+ return Ne.of(e.split(this.facet(Ee.lineSeparator) || hu));
11099
11099
  }
11100
11100
  /**
11101
11101
  Return the given range of the document as a string.
@@ -11157,8 +11157,8 @@ class Ee {
11157
11157
  transactions.
11158
11158
  */
11159
11159
  static create(e = {}) {
11160
- let t = al.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Ne ? e.doc : Ne.of((e.doc || "").split(t.staticFacet(Ee.lineSeparator) || fu)), r = e.selection ? e.selection instanceof K ? e.selection : K.single(e.selection.anchor, e.selection.head) : K.single(0);
11161
- return Sg(r, n.length), t.staticFacet(vu) || (r = r.asSingle()), new Ee(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
11160
+ let t = al.resolve(e.extensions || [], /* @__PURE__ */ new Map()), n = e.doc instanceof Ne ? e.doc : Ne.of((e.doc || "").split(t.staticFacet(Ee.lineSeparator) || hu)), r = e.selection ? e.selection instanceof K ? e.selection : K.single(e.selection.anchor, e.selection.head) : K.single(0);
11161
+ return Sg(r, n.length), t.staticFacet(pu) || (r = r.asSingle()), new Ee(t, n, r, t.dynamicSlots.map(() => null), (o, s) => s.create(o), null);
11162
11162
  }
11163
11163
  /**
11164
11164
  The size (in columns) of a tab in the document, determined by
@@ -11265,7 +11265,7 @@ class Ee {
11265
11265
  return s == l ? null : K.range(s + n, l + n);
11266
11266
  }
11267
11267
  }
11268
- Ee.allowMultipleSelections = vu;
11268
+ Ee.allowMultipleSelections = pu;
11269
11269
  Ee.tabSize = /* @__PURE__ */ de.define({
11270
11270
  combine: (i) => i.length ? i[0] : 4
11271
11271
  });
@@ -11313,13 +11313,13 @@ class nr {
11313
11313
  Create a [range](https://codemirror.net/6/docs/ref/#state.Range) with this value.
11314
11314
  */
11315
11315
  range(e, t = e) {
11316
- return xu.create(e, t, this);
11316
+ return bu.create(e, t, this);
11317
11317
  }
11318
11318
  }
11319
11319
  nr.prototype.startSide = nr.prototype.endSide = 0;
11320
11320
  nr.prototype.point = !1;
11321
11321
  nr.prototype.mapMode = ei.TrackDel;
11322
- let xu = class Bg {
11322
+ let bu = class Bg {
11323
11323
  constructor(e, t, n) {
11324
11324
  this.from = e, this.to = t, this.value = n;
11325
11325
  }
@@ -11330,7 +11330,7 @@ let xu = class Bg {
11330
11330
  return new Bg(e, t, n);
11331
11331
  }
11332
11332
  };
11333
- function ku(i, e) {
11333
+ function xu(i, e) {
11334
11334
  return i.from - e.from || i.value.startSide - e.value.startSide;
11335
11335
  }
11336
11336
  class Pc {
@@ -11420,14 +11420,14 @@ class Le {
11420
11420
  let { add: t = [], sort: n = !1, filterFrom: r = 0, filterTo: o = this.length } = e, s = e.filter;
11421
11421
  if (t.length == 0 && !s)
11422
11422
  return this;
11423
- if (n && (t = t.slice().sort(ku)), this.isEmpty)
11423
+ if (n && (t = t.slice().sort(xu)), this.isEmpty)
11424
11424
  return t.length ? Le.of(t) : this;
11425
11425
  let l = new Rg(this, null, -1).goto(0), a = 0, u = [], c = new un();
11426
11426
  for (; l.value || a < t.length; )
11427
11427
  if (a < t.length && (l.from - t[a].from || l.startSide - t[a].value.startSide) >= 0) {
11428
11428
  let h = t[a++];
11429
11429
  c.addInner(h.from, h.to, h.value) || u.push(h);
11430
- } else l.rangeIndex == 1 && l.chunkIndex < this.chunk.length && (a == t.length || this.chunkEnd(l.chunkIndex) < t[a].from) && (!s || r > this.chunkEnd(l.chunkIndex) || o < this.chunkPos[l.chunkIndex]) && c.addChunk(this.chunkPos[l.chunkIndex], this.chunk[l.chunkIndex]) ? l.nextChunk() : ((!s || r > l.to || o < l.from || s(l.from, l.to, l.value)) && (c.addInner(l.from, l.to, l.value) || u.push(xu.create(l.from, l.to, l.value))), l.next());
11430
+ } else l.rangeIndex == 1 && l.chunkIndex < this.chunk.length && (a == t.length || this.chunkEnd(l.chunkIndex) < t[a].from) && (!s || r > this.chunkEnd(l.chunkIndex) || o < this.chunkPos[l.chunkIndex]) && c.addChunk(this.chunkPos[l.chunkIndex], this.chunk[l.chunkIndex]) ? l.nextChunk() : ((!s || r > l.to || o < l.from || s(l.from, l.to, l.value)) && (c.addInner(l.from, l.to, l.value) || u.push(bu.create(l.from, l.to, l.value))), l.next());
11431
11431
  return c.finishInner(this.nextLayer.isEmpty && !u.length ? Le.empty : this.nextLayer.update({ add: u, filter: s, filterFrom: r, filterTo: o }));
11432
11432
  }
11433
11433
  /**
@@ -11506,7 +11506,7 @@ class Le {
11506
11506
  return !0;
11507
11507
  let l = mf(o, s), a = new Zr(o, l, 0).goto(n), u = new Zr(s, l, 0).goto(n);
11508
11508
  for (; ; ) {
11509
- if (a.to != u.to || !wu(a.active, u.active) || a.point && (!u.point || !a.point.eq(u.point)))
11509
+ if (a.to != u.to || !ku(a.active, u.active) || a.point && (!u.point || !a.point.eq(u.point)))
11510
11510
  return !1;
11511
11511
  if (a.to > r)
11512
11512
  return !0;
@@ -11542,7 +11542,7 @@ class Le {
11542
11542
  */
11543
11543
  static of(e, t = !1) {
11544
11544
  let n = new un();
11545
- for (let r of e instanceof xu ? [e] : t ? _x(e) : e)
11545
+ for (let r of e instanceof bu ? [e] : t ? _x(e) : e)
11546
11546
  n.add(r.from, r.to, r.value);
11547
11547
  return n.finish();
11548
11548
  }
@@ -11564,8 +11564,8 @@ function _x(i) {
11564
11564
  if (i.length > 1)
11565
11565
  for (let e = i[0], t = 1; t < i.length; t++) {
11566
11566
  let n = i[t];
11567
- if (ku(e, n) > 0)
11568
- return i.slice().sort(ku);
11567
+ if (xu(e, n) > 0)
11568
+ return i.slice().sort(xu);
11569
11569
  e = n;
11570
11570
  }
11571
11571
  return i;
@@ -11711,14 +11711,14 @@ class Ao {
11711
11711
  for (let n of this.heap)
11712
11712
  n.goto(e, t);
11713
11713
  for (let n = this.heap.length >> 1; n >= 0; n--)
11714
- Da(this.heap, n);
11714
+ Ta(this.heap, n);
11715
11715
  return this.next(), this;
11716
11716
  }
11717
11717
  forward(e, t) {
11718
11718
  for (let n of this.heap)
11719
11719
  n.forward(e, t);
11720
11720
  for (let n = this.heap.length >> 1; n >= 0; n--)
11721
- Da(this.heap, n);
11721
+ Ta(this.heap, n);
11722
11722
  (this.to - e || this.value.endSide - t) < 0 && this.next();
11723
11723
  }
11724
11724
  next() {
@@ -11726,11 +11726,11 @@ class Ao {
11726
11726
  this.from = this.to = 1e9, this.value = null, this.rank = -1;
11727
11727
  else {
11728
11728
  let e = this.heap[0];
11729
- this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), Da(this.heap, 0);
11729
+ this.from = e.from, this.to = e.to, this.value = e.value, this.rank = e.rank, e.value && e.next(), Ta(this.heap, 0);
11730
11730
  }
11731
11731
  }
11732
11732
  }
11733
- function Da(i, e) {
11733
+ function Ta(i, e) {
11734
11734
  for (let t = i[e]; ; ) {
11735
11735
  let n = (e << 1) + 1;
11736
11736
  if (n >= i.length)
@@ -11822,12 +11822,12 @@ function gf(i, e, t, n, r, o) {
11822
11822
  let s = n + r, l = n, a = n - e;
11823
11823
  for (; ; ) {
11824
11824
  let u = i.to + a - t.to, c = u || i.endSide - t.endSide, h = c < 0 ? i.to + a : t.to, f = Math.min(h, s);
11825
- if (i.point || t.point ? i.point && t.point && (i.point == t.point || i.point.eq(t.point)) && wu(i.activeForPoint(i.to), t.activeForPoint(t.to)) || o.comparePoint(l, f, i.point, t.point) : f > l && !wu(i.active, t.active) && o.compareRange(l, f, i.active, t.active), h > s)
11825
+ if (i.point || t.point ? i.point && t.point && (i.point == t.point || i.point.eq(t.point)) && ku(i.activeForPoint(i.to), t.activeForPoint(t.to)) || o.comparePoint(l, f, i.point, t.point) : f > l && !ku(i.active, t.active) && o.compareRange(l, f, i.active, t.active), h > s)
11826
11826
  break;
11827
11827
  (u || i.openEnd != t.openEnd) && o.boundChange && o.boundChange(h), l = h, c <= 0 && i.next(), c >= 0 && t.next();
11828
11828
  }
11829
11829
  }
11830
- function wu(i, e) {
11830
+ function ku(i, e) {
11831
11831
  if (i.length != e.length)
11832
11832
  return !1;
11833
11833
  for (let t = 0; t < i.length; t++)
@@ -11857,7 +11857,7 @@ function Ur(i, e, t = i.length) {
11857
11857
  i.charCodeAt(r) == 9 ? (n += e - n % e, r++) : (n++, r = Ft(i, r));
11858
11858
  return n;
11859
11859
  }
11860
- function Su(i, e, t, n) {
11860
+ function wu(i, e, t, n) {
11861
11861
  for (let r = 0, o = 0; ; ) {
11862
11862
  if (o >= e)
11863
11863
  return r;
@@ -11867,7 +11867,7 @@ function Su(i, e, t, n) {
11867
11867
  }
11868
11868
  return n === !0 ? -1 : i.length;
11869
11869
  }
11870
- const Cu = "ͼ", vf = typeof Symbol > "u" ? "__" + Cu : Symbol.for(Cu), Mu = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), yf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
11870
+ const Su = "ͼ", vf = typeof Symbol > "u" ? "__" + Su : Symbol.for(Su), Cu = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), yf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
11871
11871
  class Dn {
11872
11872
  // :: (Object<Style>, ?{finish: ?(string) → string})
11873
11873
  // Create a style module from the given spec.
@@ -11910,7 +11910,7 @@ class Dn {
11910
11910
  // Generate a new unique CSS class name.
11911
11911
  static newName() {
11912
11912
  let e = yf[vf] || 1;
11913
- return yf[vf] = e + 1, Cu + e.toString(36);
11913
+ return yf[vf] = e + 1, Su + e.toString(36);
11914
11914
  }
11915
11915
  // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
11916
11916
  //
@@ -11929,7 +11929,7 @@ class Dn {
11929
11929
  // If a Content Security Policy nonce is provided, it is added to
11930
11930
  // the `<style>` tag generated by the library.
11931
11931
  static mount(e, t, n) {
11932
- let r = e[Mu], o = n && n.nonce;
11932
+ let r = e[Cu], o = n && n.nonce;
11933
11933
  r ? o && r.setNonce(o) : r = new Bx(e, o), r.mount(Array.isArray(t) ? t : [t], e);
11934
11934
  }
11935
11935
  }
@@ -11939,11 +11939,11 @@ class Bx {
11939
11939
  let n = e.ownerDocument || e, r = n.defaultView;
11940
11940
  if (!e.head && e.adoptedStyleSheets && r.CSSStyleSheet) {
11941
11941
  let o = bf.get(n);
11942
- if (o) return e[Mu] = o;
11942
+ if (o) return e[Cu] = o;
11943
11943
  this.sheet = new r.CSSStyleSheet(), bf.set(n, this);
11944
11944
  } else
11945
11945
  this.styleTag = n.createElement("style"), t && this.styleTag.setAttribute("nonce", t);
11946
- this.modules = [], e[Mu] = this;
11946
+ this.modules = [], e[Cu] = this;
11947
11947
  }
11948
11948
  mount(e, t) {
11949
11949
  let n = this.sheet, r = 0, o = 0;
@@ -12056,7 +12056,7 @@ for (var Vt = 0; Vt < 10; Vt++) qn[48 + Vt] = qn[96 + Vt] = String(Vt);
12056
12056
  for (var Vt = 1; Vt <= 24; Vt++) qn[Vt + 111] = "F" + Vt;
12057
12057
  for (var Vt = 65; Vt <= 90; Vt++)
12058
12058
  qn[Vt] = String.fromCharCode(Vt + 32), Oo[Vt] = String.fromCharCode(Vt);
12059
- for (var qa in qn) Oo.hasOwnProperty(qa) || (Oo[qa] = qn[qa]);
12059
+ for (var Da in qn) Oo.hasOwnProperty(Da) || (Oo[Da] = qn[Da]);
12060
12060
  function Lx(i) {
12061
12061
  var e = Rx && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || Ex && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified", t = !e && i.key || (i.shiftKey ? Oo : qn)[i.keyCode] || i.key || "Unidentified";
12062
12062
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
@@ -12085,37 +12085,37 @@ function Eg(i, e) {
12085
12085
  else
12086
12086
  throw new RangeError("Unsupported child node: " + e);
12087
12087
  }
12088
- let Xt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Au = typeof document < "u" ? document : { documentElement: { style: {} } };
12089
- const Ou = /* @__PURE__ */ /Edge\/(\d+)/.exec(Xt.userAgent), Lg = /* @__PURE__ */ /MSIE \d/.test(Xt.userAgent), Tu = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xt.userAgent), Ql = !!(Lg || Tu || Ou), xf = !Ql && /* @__PURE__ */ /gecko\/(\d+)/i.test(Xt.userAgent), Pa = !Ql && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Xt.userAgent), Ix = "webkitFontSmoothing" in Au.documentElement.style, Du = !Ql && /* @__PURE__ */ /Apple Computer/.test(Xt.vendor), kf = Du && (/* @__PURE__ */ /Mobile\/\w+/.test(Xt.userAgent) || Xt.maxTouchPoints > 2);
12088
+ let Xt = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Mu = typeof document < "u" ? document : { documentElement: { style: {} } };
12089
+ const Au = /* @__PURE__ */ /Edge\/(\d+)/.exec(Xt.userAgent), Lg = /* @__PURE__ */ /MSIE \d/.test(Xt.userAgent), Ou = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xt.userAgent), Wl = !!(Lg || Ou || Au), xf = !Wl && /* @__PURE__ */ /gecko\/(\d+)/i.test(Xt.userAgent), qa = !Wl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(Xt.userAgent), Ix = "webkitFontSmoothing" in Mu.documentElement.style, Tu = !Wl && /* @__PURE__ */ /Apple Computer/.test(Xt.vendor), kf = Tu && (/* @__PURE__ */ /Mobile\/\w+/.test(Xt.userAgent) || Xt.maxTouchPoints > 2);
12090
12090
  var ue = {
12091
12091
  mac: kf || /* @__PURE__ */ /Mac/.test(Xt.platform),
12092
12092
  windows: /* @__PURE__ */ /Win/.test(Xt.platform),
12093
12093
  linux: /* @__PURE__ */ /Linux|X11/.test(Xt.platform),
12094
- ie: Ql,
12095
- ie_version: Lg ? Au.documentMode || 6 : Tu ? +Tu[1] : Ou ? +Ou[1] : 0,
12094
+ ie: Wl,
12095
+ ie_version: Lg ? Mu.documentMode || 6 : Ou ? +Ou[1] : Au ? +Au[1] : 0,
12096
12096
  gecko: xf,
12097
12097
  gecko_version: xf ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(Xt.userAgent) || [0, 0])[1] : 0,
12098
- chrome: !!Pa,
12099
- chrome_version: Pa ? +Pa[1] : 0,
12098
+ chrome: !!qa,
12099
+ chrome_version: qa ? +qa[1] : 0,
12100
12100
  ios: kf,
12101
12101
  android: /* @__PURE__ */ /Android\b/.test(Xt.userAgent),
12102
12102
  webkit_version: Ix ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(Xt.userAgent) || [0, 0])[1] : 0,
12103
- safari: Du,
12104
- safari_version: Du ? +(/* @__PURE__ */ /\bVersion\/(\d+(\.\d+)?)/.exec(Xt.userAgent) || [0, 0])[1] : 0,
12105
- tabSize: Au.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
12103
+ safari: Tu,
12104
+ safari_version: Tu ? +(/* @__PURE__ */ /\bVersion\/(\d+(\.\d+)?)/.exec(Xt.userAgent) || [0, 0])[1] : 0,
12105
+ tabSize: Mu.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
12106
12106
  };
12107
12107
  function To(i) {
12108
12108
  let e;
12109
12109
  return i.nodeType == 11 ? e = i.getSelection ? i : i.ownerDocument : e = i, e.getSelection();
12110
12110
  }
12111
- function qu(i, e) {
12111
+ function Du(i, e) {
12112
12112
  return e ? i == e || i.contains(e.nodeType != 1 ? e.parentNode : e) : !1;
12113
12113
  }
12114
12114
  function zs(i, e) {
12115
12115
  if (!e.anchorNode)
12116
12116
  return !1;
12117
12117
  try {
12118
- return qu(i, e.anchorNode);
12118
+ return Du(i, e.anchorNode);
12119
12119
  } catch {
12120
12120
  return !1;
12121
12121
  }
@@ -12844,7 +12844,7 @@ function Kx(i, e) {
12844
12844
  let t = i.coordsAt(0, 1), n = e.coordsAt(0, 1);
12845
12845
  return t && n && n.top < t.bottom;
12846
12846
  }
12847
- function Pu(i, e) {
12847
+ function qu(i, e) {
12848
12848
  for (let t in i)
12849
12849
  t == "class" && e.class ? e.class += " " + i.class : t == "style" && e.style ? e.style += ";" + i.style : e[t] = i[t];
12850
12850
  return e;
@@ -12862,7 +12862,7 @@ function hl(i, e, t) {
12862
12862
  return !1;
12863
12863
  return !0;
12864
12864
  }
12865
- function _u(i, e, t) {
12865
+ function Pu(i, e, t) {
12866
12866
  let n = !1;
12867
12867
  if (e)
12868
12868
  for (let r in e)
@@ -13136,7 +13136,7 @@ class bt extends Ke {
13136
13136
  // Only called when building a line view in ContentBuilder
13137
13137
  addLineDeco(e) {
13138
13138
  let t = e.spec.attributes, n = e.spec.class;
13139
- t && (this.attrs = Pu(t, this.attrs || {})), n && (this.attrs = Pu({ class: n }, this.attrs || {}));
13139
+ t && (this.attrs = qu(t, this.attrs || {})), n && (this.attrs = qu({ class: n }, this.attrs || {}));
13140
13140
  }
13141
13141
  domAtPos(e) {
13142
13142
  return Ug(this, e);
@@ -13146,7 +13146,7 @@ class bt extends Ke {
13146
13146
  }
13147
13147
  sync(e, t) {
13148
13148
  var n;
13149
- this.dom ? this.flags & 4 && (Fg(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (_u(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
13149
+ this.dom ? this.flags & 4 && (Fg(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (Pu(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
13150
13150
  let r = this.dom.lastChild;
13151
13151
  for (; r && Ke.get(r) instanceof cn; )
13152
13152
  r = r.lastChild;
@@ -13249,7 +13249,7 @@ class ln extends Ke {
13249
13249
  }
13250
13250
  coordsAt(e, t) {
13251
13251
  let n = this.widget.coordsAt(this.dom, e, t);
13252
- return n || (this.widget instanceof Bu ? null : Qo(this.dom.getBoundingClientRect(), this.length ? e == 0 : t <= 0));
13252
+ return n || (this.widget instanceof _u ? null : Qo(this.dom.getBoundingClientRect(), this.length ? e == 0 : t <= 0));
13253
13253
  }
13254
13254
  destroy() {
13255
13255
  super.destroy(), this.dom && this.widget.destroy(this.dom);
@@ -13259,7 +13259,7 @@ class ln extends Ke {
13259
13259
  return t == n ? !1 : e < 0 ? t < 0 : n > 0;
13260
13260
  }
13261
13261
  }
13262
- class Bu extends fn {
13262
+ class _u extends fn {
13263
13263
  constructor(e) {
13264
13264
  super(), this.height = e;
13265
13265
  }
@@ -13385,10 +13385,10 @@ function Jg(i) {
13385
13385
  e.push(1 << +i[t]);
13386
13386
  return e;
13387
13387
  }
13388
- const Jx = /* @__PURE__ */ Jg("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Xx = /* @__PURE__ */ Jg("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Ru = /* @__PURE__ */ Object.create(null), Li = [];
13388
+ const Jx = /* @__PURE__ */ Jg("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Xx = /* @__PURE__ */ Jg("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Bu = /* @__PURE__ */ Object.create(null), Li = [];
13389
13389
  for (let i of ["()", "[]", "{}"]) {
13390
13390
  let e = /* @__PURE__ */ i.charCodeAt(0), t = /* @__PURE__ */ i.charCodeAt(1);
13391
- Ru[e] = t, Ru[t] = -e;
13391
+ Bu[e] = t, Bu[t] = -e;
13392
13392
  }
13393
13393
  function Xg(i) {
13394
13394
  return i <= 247 ? Jx[i] : 1424 <= i && i <= 1524 ? 2 : 1536 <= i && i <= 1785 ? Xx[i - 1536] : 1774 <= i && i <= 2220 ? 4 : 8192 <= i && i <= 8204 ? 256 : 64336 <= i && i <= 65023 ? 4 : 1;
@@ -13477,7 +13477,7 @@ function ek(i, e, t, n, r) {
13477
13477
  for (let s = 0, l = 0, a = 0; s <= n.length; s++) {
13478
13478
  let u = s ? n[s - 1].to : e, c = s < n.length ? n[s].from : t;
13479
13479
  for (let h = u, f, d, m; h < c; h++)
13480
- if (d = Ru[f = i.charCodeAt(h)])
13480
+ if (d = Bu[f = i.charCodeAt(h)])
13481
13481
  if (d < 0) {
13482
13482
  for (let p = l - 3; p >= 0; p -= 3)
13483
13483
  if (Li[p + 1] == -d) {
@@ -13533,7 +13533,7 @@ function tk(i, e, t, n) {
13533
13533
  }
13534
13534
  }
13535
13535
  }
13536
- function Eu(i, e, t, n, r, o, s) {
13536
+ function Ru(i, e, t, n, r, o, s) {
13537
13537
  let l = n % 2 ? 2 : 1;
13538
13538
  if (n % 2 == r % 2)
13539
13539
  for (let a = e, u = 0; a < t; ) {
@@ -13565,7 +13565,7 @@ function Eu(i, e, t, n, r, o, s) {
13565
13565
  else {
13566
13566
  p.from > a && s.push(new Cn(a, p.from, d));
13567
13567
  let g = p.direction == sr != !(d % 2);
13568
- Lu(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.to;
13568
+ Eu(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.to;
13569
13569
  }
13570
13570
  m = p.to;
13571
13571
  } else {
@@ -13573,7 +13573,7 @@ function Eu(i, e, t, n, r, o, s) {
13573
13573
  break;
13574
13574
  m++;
13575
13575
  }
13576
- f ? Eu(i, a, m, n + 1, r, f, s) : a < m && s.push(new Cn(a, m, d)), a = m;
13576
+ f ? Ru(i, a, m, n + 1, r, f, s) : a < m && s.push(new Cn(a, m, d)), a = m;
13577
13577
  }
13578
13578
  else
13579
13579
  for (let a = t, u = o.length; a > e; ) {
@@ -13605,7 +13605,7 @@ function Eu(i, e, t, n, r, o, s) {
13605
13605
  else {
13606
13606
  p.to < a && s.push(new Cn(p.to, a, d));
13607
13607
  let g = p.direction == sr != !(d % 2);
13608
- Lu(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.from;
13608
+ Eu(i, g ? n + 1 : n, r, p.inner, p.from, p.to, s), a = p.from;
13609
13609
  }
13610
13610
  m = p.from;
13611
13611
  } else {
@@ -13613,12 +13613,12 @@ function Eu(i, e, t, n, r, o, s) {
13613
13613
  break;
13614
13614
  m--;
13615
13615
  }
13616
- f ? Eu(i, m, a, n + 1, r, f, s) : m < a && s.push(new Cn(m, a, d)), a = m;
13616
+ f ? Ru(i, m, a, n + 1, r, f, s) : m < a && s.push(new Cn(m, a, d)), a = m;
13617
13617
  }
13618
13618
  }
13619
- function Lu(i, e, t, n, r, o, s) {
13619
+ function Eu(i, e, t, n, r, o, s) {
13620
13620
  let l = e % 2 ? 2 : 1;
13621
- Zx(i, r, o, n, l), ek(i, r, o, n, l), tk(r, o, n, l), Eu(i, r, o, e, t, n, s);
13621
+ Zx(i, r, o, n, l), ek(i, r, o, n, l), tk(r, o, n, l), Ru(i, r, o, e, t, n, s);
13622
13622
  }
13623
13623
  function ik(i, e, t) {
13624
13624
  if (!i)
@@ -13629,7 +13629,7 @@ function ik(i, e, t) {
13629
13629
  for (; i.length > Ge.length; )
13630
13630
  Ge[Ge.length] = 256;
13631
13631
  let n = [], r = e == sr ? 0 : 1;
13632
- return Lu(i, r, r, t, 0, i.length, n), n;
13632
+ return Eu(i, r, r, t, 0, i.length, n), n;
13633
13633
  }
13634
13634
  function Zg(i) {
13635
13635
  return [new Cn(0, i, 0)];
@@ -13659,7 +13659,7 @@ function rk(i, e, t) {
13659
13659
  }
13660
13660
  return sr;
13661
13661
  }
13662
- const tp = /* @__PURE__ */ de.define(), ip = /* @__PURE__ */ de.define(), np = /* @__PURE__ */ de.define(), rp = /* @__PURE__ */ de.define(), Iu = /* @__PURE__ */ de.define(), op = /* @__PURE__ */ de.define(), sp = /* @__PURE__ */ de.define(), Rc = /* @__PURE__ */ de.define(), Ec = /* @__PURE__ */ de.define(), lp = /* @__PURE__ */ de.define({
13662
+ const tp = /* @__PURE__ */ de.define(), ip = /* @__PURE__ */ de.define(), np = /* @__PURE__ */ de.define(), rp = /* @__PURE__ */ de.define(), Lu = /* @__PURE__ */ de.define(), op = /* @__PURE__ */ de.define(), sp = /* @__PURE__ */ de.define(), Rc = /* @__PURE__ */ de.define(), Ec = /* @__PURE__ */ de.define(), lp = /* @__PURE__ */ de.define({
13663
13663
  combine: (i) => i.some((e) => e)
13664
13664
  }), ap = /* @__PURE__ */ de.define({
13665
13665
  combine: (i) => i.some((e) => e)
@@ -13724,7 +13724,7 @@ class ft {
13724
13724
  return ft.define((n, r) => new e(n, r), t);
13725
13725
  }
13726
13726
  }
13727
- class _a {
13727
+ class Pa {
13728
13728
  constructor(e) {
13729
13729
  this.spec = e, this.mustUpdate = null, this.value = null;
13730
13730
  }
@@ -13948,7 +13948,7 @@ class Of extends Ke {
13948
13948
  let o = [];
13949
13949
  if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)
13950
13950
  for (let s of this.children)
13951
- s instanceof ln && s.widget instanceof Bu && o.push(s.dom);
13951
+ s instanceof ln && s.widget instanceof _u && o.push(s.dom);
13952
13952
  r.updateGaps(o);
13953
13953
  }
13954
13954
  updateChildren(e, t, n) {
@@ -14196,7 +14196,7 @@ class Of extends Ke {
14196
14196
  if (s > n) {
14197
14197
  let l = (t.lineBlockAt(s).bottom - t.lineBlockAt(n).top) / this.view.scaleY;
14198
14198
  e.push(xe.replace({
14199
- widget: new Bu(l),
14199
+ widget: new _u(l),
14200
14200
  block: !0,
14201
14201
  inclusive: !0,
14202
14202
  isBlockGap: !0
@@ -14369,7 +14369,7 @@ function mk(i, e) {
14369
14369
  function gk(i, e) {
14370
14370
  return e.top > i ? e.top - i : Math.max(0, i - e.bottom);
14371
14371
  }
14372
- function Ba(i, e) {
14372
+ function _a(i, e) {
14373
14373
  return i.top < e.bottom - 1 && i.bottom > e.top + 1;
14374
14374
  }
14375
14375
  function Tf(i, e) {
@@ -14378,17 +14378,17 @@ function Tf(i, e) {
14378
14378
  function Df(i, e) {
14379
14379
  return e > i.bottom ? { top: i.top, left: i.left, right: i.right, bottom: e } : i;
14380
14380
  }
14381
- function Vu(i, e, t) {
14381
+ function Iu(i, e, t) {
14382
14382
  let n, r, o, s, l = !1, a, u, c, h;
14383
14383
  for (let m = i.firstChild; m; m = m.nextSibling) {
14384
14384
  let p = Ir(m);
14385
14385
  for (let g = 0; g < p.length; g++) {
14386
14386
  let v = p[g];
14387
- r && Ba(r, v) && (v = Tf(Df(v, r.bottom), r.top));
14387
+ r && _a(r, v) && (v = Tf(Df(v, r.bottom), r.top));
14388
14388
  let k = mk(e, v), y = gk(t, v);
14389
14389
  if (k == 0 && y == 0)
14390
- return m.nodeType == 3 ? qf(m, e, t) : Vu(m, e, t);
14391
- (!n || s > y || s == y && o > k) && (n = m, r = v, o = k, s = y, l = k ? e < v.left ? g > 0 : g < p.length - 1 : !0), k == 0 ? t > v.bottom && (!c || c.bottom < v.bottom) ? (a = m, c = v) : t < v.top && (!h || h.top > v.top) && (u = m, h = v) : c && Ba(c, v) ? c = Df(c, v.bottom) : h && Ba(h, v) && (h = Tf(h, v.top));
14390
+ return m.nodeType == 3 ? qf(m, e, t) : Iu(m, e, t);
14391
+ (!n || s > y || s == y && o > k) && (n = m, r = v, o = k, s = y, l = k ? e < v.left ? g > 0 : g < p.length - 1 : !0), k == 0 ? t > v.bottom && (!c || c.bottom < v.bottom) ? (a = m, c = v) : t < v.top && (!h || h.top > v.top) && (u = m, h = v) : c && _a(c, v) ? c = Df(c, v.bottom) : h && _a(h, v) && (h = Tf(h, v.top));
14392
14392
  }
14393
14393
  }
14394
14394
  if (c && c.bottom >= t ? (n = a, r = c) : h && h.top <= t && (n = u, r = h), !n)
@@ -14397,7 +14397,7 @@ function Vu(i, e, t) {
14397
14397
  if (n.nodeType == 3)
14398
14398
  return qf(n, f, t);
14399
14399
  if (l && n.contentEditable != "false")
14400
- return Vu(n, f, t);
14400
+ return Iu(n, f, t);
14401
14401
  let d = Array.prototype.indexOf.call(i.childNodes, n) + (e >= (r.left + r.right) / 2 ? 1 : 0);
14402
14402
  return { node: i, offset: d };
14403
14403
  }
@@ -14461,7 +14461,7 @@ function pp(i, e, t, n = -1) {
14461
14461
  let x = bt.find(i.docView, d);
14462
14462
  if (!x)
14463
14463
  return f > a.top + a.height / 2 ? a.to : a.from;
14464
- ({ node: v, offset: k } = Vu(x.dom, c, h));
14464
+ ({ node: v, offset: k } = Iu(x.dom, c, h));
14465
14465
  }
14466
14466
  let y = i.docView.nearest(v);
14467
14467
  if (!y)
@@ -14479,7 +14479,7 @@ function Pf(i, e, t, n, r) {
14479
14479
  o += a * i.viewState.heightOracle.lineLength;
14480
14480
  }
14481
14481
  let s = i.state.sliceDoc(t.from, t.to);
14482
- return t.from + Su(s, o, i.state.tabSize);
14482
+ return t.from + wu(s, o, i.state.tabSize);
14483
14483
  }
14484
14484
  function vp(i, e, t) {
14485
14485
  let n, r = i;
@@ -14517,7 +14517,7 @@ function vk(i, e, t) {
14517
14517
  let n = i.nodeType == 1 ? i.getBoundingClientRect() : or(i, 0, Math.max(i.nodeValue.length, 1)).getBoundingClientRect();
14518
14518
  return t - n.left > 5;
14519
14519
  }
14520
- function Fu(i, e, t) {
14520
+ function Vu(i, e, t) {
14521
14521
  let n = i.lineBlockAt(e);
14522
14522
  if (Array.isArray(n.type)) {
14523
14523
  let r;
@@ -14535,7 +14535,7 @@ function Fu(i, e, t) {
14535
14535
  return n;
14536
14536
  }
14537
14537
  function yk(i, e, t, n) {
14538
- let r = Fu(i, e.head, e.assoc || -1), o = !n || r.type != ii.Text || !(i.lineWrapping || r.widgetLineBreaks) ? null : i.coordsAtPos(e.assoc < 0 && e.head > r.from ? e.head - 1 : e.head);
14538
+ let r = Vu(i, e.head, e.assoc || -1), o = !n || r.type != ii.Text || !(i.lineWrapping || r.widgetLineBreaks) ? null : i.coordsAtPos(e.assoc < 0 && e.head > r.from ? e.head - 1 : e.head);
14539
14539
  if (o) {
14540
14540
  let s = i.dom.getBoundingClientRect(), l = i.textDirectionAt(r.from), a = i.posAtCoords({
14541
14541
  x: t == (l == st.LTR) ? s.right - 1 : s.left + 1,
@@ -14623,7 +14623,7 @@ function yp(i, e) {
14623
14623
  }
14624
14624
  return t ? K.create(t, e.mainIndex) : e;
14625
14625
  }
14626
- function Ra(i, e, t) {
14626
+ function Ba(i, e, t) {
14627
14627
  let n = vo(i.state.facet(Yo).map((r) => r(i)), t.from, e.head > t.from ? -1 : 1);
14628
14628
  return n == t.from ? t : K.cursor(n, n < t.from ? 1 : -1);
14629
14629
  }
@@ -14727,7 +14727,7 @@ class Ck {
14727
14727
  let l = o || s ? [] : Ak(e), a = new kk(l, e.state);
14728
14728
  a.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = a.text, this.newSel = Ok(l, this.bounds.from);
14729
14729
  } else {
14730
- let l = e.observer.selectionRange, a = o && o.node == l.focusNode && o.offset == l.focusOffset || !qu(e.contentDOM, l.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(l.focusNode, l.focusOffset), u = s && s.node == l.anchorNode && s.offset == l.anchorOffset || !qu(e.contentDOM, l.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(l.anchorNode, l.anchorOffset), c = e.viewport;
14730
+ let l = e.observer.selectionRange, a = o && o.node == l.focusNode && o.offset == l.focusOffset || !Du(e.contentDOM, l.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(l.focusNode, l.focusOffset), u = s && s.node == l.anchorNode && s.offset == l.anchorOffset || !Du(e.contentDOM, l.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(l.anchorNode, l.anchorOffset), c = e.viewport;
14731
14731
  if ((ue.ios || ue.chrome) && e.state.selection.main.empty && a != u && (c.from > 0 || c.to < e.state.doc.length)) {
14732
14732
  let h = Math.min(a, u), f = Math.max(a, u), d = c.from - h, m = c.to - f;
14733
14733
  (d == 0 || d == 1 || h == 0) && (m == 0 || m == -1 || f == e.state.doc.length) && (a = 0, u = e.state.doc.length);
@@ -15059,15 +15059,15 @@ function Ik(i) {
15059
15059
  i.focus(), t.remove(), Cp(i, t.value);
15060
15060
  }, 50);
15061
15061
  }
15062
- function Ul(i, e, t) {
15062
+ function Ql(i, e, t) {
15063
15063
  for (let n of i.facet(e))
15064
15064
  t = n(t, i);
15065
15065
  return t;
15066
15066
  }
15067
15067
  function Cp(i, e) {
15068
- e = Ul(i.state, Rc, e);
15068
+ e = Ql(i.state, Rc, e);
15069
15069
  let { state: t } = i, n, r = 1, o = t.toText(e), s = o.lines == t.selection.ranges.length;
15070
- if (Nu != null && t.selection.ranges.every((a) => a.empty) && Nu == o.toString()) {
15070
+ if (Fu != null && t.selection.ranges.every((a) => a.empty) && Fu == o.toString()) {
15071
15071
  let a = -1;
15072
15072
  n = t.changeByRange((u) => {
15073
15073
  let c = t.doc.lineAt(u.from);
@@ -15195,11 +15195,11 @@ qi.dragstart = (i, e) => {
15195
15195
  }
15196
15196
  }
15197
15197
  let { inputState: n } = i;
15198
- return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = t, e.dataTransfer && (e.dataTransfer.setData("Text", Ul(i.state, Ec, i.state.sliceDoc(t.from, t.to))), e.dataTransfer.effectAllowed = "copyMove"), !1;
15198
+ return n.mouseSelection && (n.mouseSelection.dragging = !0), n.draggedContent = t, e.dataTransfer && (e.dataTransfer.setData("Text", Ql(i.state, Ec, i.state.sliceDoc(t.from, t.to))), e.dataTransfer.effectAllowed = "copyMove"), !1;
15199
15199
  };
15200
15200
  qi.dragend = (i) => (i.inputState.draggedContent = null, !1);
15201
15201
  function Hf(i, e, t, n) {
15202
- if (t = Ul(i.state, Rc, t), !t)
15202
+ if (t = Ql(i.state, Rc, t), !t)
15203
15203
  return;
15204
15204
  let r = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: o } = i.inputState, s = n && o && Rk(i, e) ? { from: o.from, to: o.to } : null, l = { from: r, insert: t }, a = i.state.changes(s ? [s, l] : l);
15205
15205
  i.focus(), i.dispatch({
@@ -15260,14 +15260,14 @@ function jk(i) {
15260
15260
  }
15261
15261
  n = !0;
15262
15262
  }
15263
- return { text: Ul(i, Ec, e.join(i.lineBreak)), ranges: t, linewise: n };
15263
+ return { text: Ql(i, Ec, e.join(i.lineBreak)), ranges: t, linewise: n };
15264
15264
  }
15265
- let Nu = null;
15265
+ let Fu = null;
15266
15266
  qi.copy = qi.cut = (i, e) => {
15267
15267
  let { text: t, ranges: n, linewise: r } = jk(i.state);
15268
15268
  if (!t && !r)
15269
15269
  return !1;
15270
- Nu = r ? t : null, e.type == "cut" && !i.state.readOnly && i.dispatch({
15270
+ Fu = r ? t : null, e.type == "cut" && !i.state.readOnly && i.dispatch({
15271
15271
  changes: n,
15272
15272
  scrollIntoView: !0,
15273
15273
  userEvent: "delete.cut"
@@ -15823,7 +15823,7 @@ function Zk(i, e) {
15823
15823
  bottom: t.bottom - (t.top + e)
15824
15824
  };
15825
15825
  }
15826
- class Ea {
15826
+ class Ra {
15827
15827
  constructor(e, t, n, r) {
15828
15828
  this.from = e, this.to = t, this.size = n, this.displaySize = r;
15829
15829
  }
@@ -15976,7 +15976,7 @@ class Uf {
15976
15976
  return e;
15977
15977
  let n = [];
15978
15978
  for (let r of e)
15979
- t.touchesRange(r.from, r.to) || n.push(new Ea(t.mapPos(r.from), t.mapPos(r.to), r.size, r.displaySize));
15979
+ t.touchesRange(r.from, r.to) || n.push(new Ra(t.mapPos(r.from), t.mapPos(r.to), r.size, r.displaySize));
15980
15980
  return n;
15981
15981
  }
15982
15982
  // Computes positions in the viewport where the start or end of a
@@ -16007,7 +16007,7 @@ class Uf {
16007
16007
  y > c && (h = y);
16008
16008
  }
16009
16009
  let v = this.gapSize(f, c, h, d), k = n || v < 2e6 ? v : 2e6;
16010
- g = new Ea(c, h, v, k);
16010
+ g = new Ra(c, h, v, k);
16011
16011
  }
16012
16012
  l.push(g);
16013
16013
  }, u = (c) => {
@@ -16049,7 +16049,7 @@ class Uf {
16049
16049
  return this.heightOracle.lineWrapping ? e.height * o : r.total * this.heightOracle.charWidth * o;
16050
16050
  }
16051
16051
  updateLineGaps(e) {
16052
- Ea.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = xe.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
16052
+ Ra.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = xe.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
16053
16053
  }
16054
16054
  computeVisibleRanges(e) {
16055
16055
  let t = this.stateDeco;
@@ -16188,8 +16188,8 @@ function lo(i, e) {
16188
16188
  let t = e.toDOM(i.top), n = e.toDOM(i.bottom);
16189
16189
  return new zi(i.from, i.length, t, n - t, Array.isArray(i._content) ? i._content.map((r) => lo(r, e)) : i._content);
16190
16190
  }
16191
- const xs = /* @__PURE__ */ de.define({ combine: (i) => i.join(" ") }), Hu = /* @__PURE__ */ de.define({ combine: (i) => i.indexOf(!0) > -1 }), zu = /* @__PURE__ */ Dn.newName(), qp = /* @__PURE__ */ Dn.newName(), Pp = /* @__PURE__ */ Dn.newName(), _p = { "&light": "." + qp, "&dark": "." + Pp };
16192
- function ju(i, e, t) {
16191
+ const xs = /* @__PURE__ */ de.define({ combine: (i) => i.join(" ") }), Nu = /* @__PURE__ */ de.define({ combine: (i) => i.indexOf(!0) > -1 }), Hu = /* @__PURE__ */ Dn.newName(), qp = /* @__PURE__ */ Dn.newName(), Pp = /* @__PURE__ */ Dn.newName(), _p = { "&light": "." + qp, "&dark": "." + Pp };
16192
+ function zu(i, e, t) {
16193
16193
  return new Dn(e, {
16194
16194
  finish(n) {
16195
16195
  return /&/.test(n) ? n.replace(/&\w*/, (r) => {
@@ -16202,7 +16202,7 @@ function ju(i, e, t) {
16202
16202
  }
16203
16203
  });
16204
16204
  }
16205
- const nw = /* @__PURE__ */ ju("." + zu, {
16205
+ const nw = /* @__PURE__ */ zu("." + Hu, {
16206
16206
  "&": {
16207
16207
  position: "relative !important",
16208
16208
  boxSizing: "border-box",
@@ -16476,7 +16476,7 @@ const nw = /* @__PURE__ */ ju("." + zu, {
16476
16476
  subtree: !0,
16477
16477
  attributes: !0,
16478
16478
  characterDataOldValue: !0
16479
- }, La = ue.ie && ue.ie_version <= 11;
16479
+ }, Ea = ue.ie && ue.ie_version <= 11;
16480
16480
  class ow {
16481
16481
  constructor(e) {
16482
16482
  this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new Hx(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((t) => {
@@ -16484,7 +16484,7 @@ class ow {
16484
16484
  this.queue.push(n);
16485
16485
  (ue.ie && ue.ie_version <= 11 || ue.ios && e.composing) && t.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush();
16486
16486
  }), window.EditContext && ue.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
16487
- !(ue.chrome && ue.chrome_version < 126) && (this.editContext = new lw(e), e.state.facet(rn) && (e.contentDOM.editContext = this.editContext.editContext)), La && (this.onCharData = (t) => {
16487
+ !(ue.chrome && ue.chrome_version < 126) && (this.editContext = new lw(e), e.state.facet(rn) && (e.contentDOM.editContext = this.editContext.editContext)), Ea && (this.onCharData = (t) => {
16488
16488
  this.queue.push({
16489
16489
  target: t.target,
16490
16490
  type: "characterData",
@@ -16581,10 +16581,10 @@ class ow {
16581
16581
  }
16582
16582
  }
16583
16583
  start() {
16584
- this.active || (this.observer.observe(this.dom, rw), La && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0);
16584
+ this.active || (this.observer.observe(this.dom, rw), Ea && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0);
16585
16585
  }
16586
16586
  stop() {
16587
- this.active && (this.active = !1, this.observer.disconnect(), La && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData));
16587
+ this.active && (this.active = !1, this.observer.disconnect(), Ea && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData));
16588
16588
  }
16589
16589
  // Throw away any pending changes
16590
16590
  clear() {
@@ -16929,7 +16929,7 @@ class ce {
16929
16929
  var t;
16930
16930
  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);
16931
16931
  let { dispatch: n } = e;
16932
- 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 || zx(e.parent) || document, this.viewState = new Uf(e.state || Ee.create(e)), e.scrollTo && e.scrollTo.is(ms) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(xr).map((r) => new _a(r));
16932
+ 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 || zx(e.parent) || document, this.viewState = new Uf(e.state || Ee.create(e)), e.scrollTo && e.scrollTo.is(ms) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(xr).map((r) => new Pa(r));
16933
16933
  for (let r of this.plugins)
16934
16934
  r.update(this);
16935
16935
  this.observer = new ow(this), this.inputState = new Tk(this), this.inputState.ensureHandlers(this.plugins), this.docView = new Of(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());
@@ -16981,7 +16981,7 @@ class ce {
16981
16981
  this.updateState = 0;
16982
16982
  }
16983
16983
  if (r.startState.facet(xs) != r.state.facet(xs) && (this.viewState.mustMeasureContent = !0), (t || n || h || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent) && this.requestMeasure(), t && this.docViewUpdate(), !r.empty)
16984
- for (let f of this.state.facet(Iu))
16984
+ for (let f of this.state.facet(Lu))
16985
16985
  try {
16986
16986
  f(r);
16987
16987
  } catch (d) {
@@ -17010,7 +17010,7 @@ class ce {
17010
17010
  try {
17011
17011
  for (let n of this.plugins)
17012
17012
  n.destroy(this);
17013
- this.viewState = new Uf(e), this.plugins = e.facet(xr).map((n) => new _a(n)), this.pluginMap.clear();
17013
+ this.viewState = new Uf(e), this.plugins = e.facet(xr).map((n) => new Pa(n)), this.pluginMap.clear();
17014
17014
  for (let n of this.plugins)
17015
17015
  n.update(this);
17016
17016
  this.docView.destroy(), this.docView = new Of(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
@@ -17026,7 +17026,7 @@ class ce {
17026
17026
  for (let o of n) {
17027
17027
  let s = t.indexOf(o);
17028
17028
  if (s < 0)
17029
- r.push(new _a(o));
17029
+ r.push(new Pa(o));
17030
17030
  else {
17031
17031
  let l = this.plugins[s];
17032
17032
  l.mustUpdate = e, r.push(l);
@@ -17120,14 +17120,14 @@ class ce {
17120
17120
  this.updateState = 0, this.measureScheduled = -1;
17121
17121
  }
17122
17122
  if (t && !t.empty)
17123
- for (let l of this.state.facet(Iu))
17123
+ for (let l of this.state.facet(Lu))
17124
17124
  l(t);
17125
17125
  }
17126
17126
  /**
17127
17127
  Get the CSS classes for the currently active editor themes.
17128
17128
  */
17129
17129
  get themeClasses() {
17130
- return zu + " " + (this.state.facet(Hu) ? Pp : qp) + " " + this.state.facet(xs);
17130
+ return Hu + " " + (this.state.facet(Nu) ? Pp : qp) + " " + this.state.facet(xs);
17131
17131
  }
17132
17132
  updateAttrs() {
17133
17133
  let e = Xf(this, hp, {
@@ -17146,7 +17146,7 @@ class ce {
17146
17146
  };
17147
17147
  this.state.readOnly && (t["aria-readonly"] = "true"), Xf(this, Lc, t);
17148
17148
  let n = this.observer.ignore(() => {
17149
- let r = _u(this.contentDOM, this.contentAttrs, t), o = _u(this.dom, this.editorAttrs, e);
17149
+ let r = Pu(this.contentDOM, this.contentAttrs, t), o = Pu(this.dom, this.editorAttrs, e);
17150
17150
  return r || o;
17151
17151
  });
17152
17152
  return this.editorAttrs = e, this.contentAttrs = t, n;
@@ -17291,7 +17291,7 @@ class ce {
17291
17291
  whether it should also be moved over.
17292
17292
  */
17293
17293
  moveByChar(e, t, n) {
17294
- return Ra(this, e, _f(this, e, t, n));
17294
+ return Ba(this, e, _f(this, e, t, n));
17295
17295
  }
17296
17296
  /**
17297
17297
  Move a cursor position across the next group of either
@@ -17299,7 +17299,7 @@ class ce {
17299
17299
  non-whitespace characters.
17300
17300
  */
17301
17301
  moveByGroup(e, t) {
17302
- return Ra(this, e, _f(this, e, t, (n) => bk(this, e.head, n)));
17302
+ return Ba(this, e, _f(this, e, t, (n) => bk(this, e.head, n)));
17303
17303
  }
17304
17304
  /**
17305
17305
  Get the cursor position visually at the start or end of a line.
@@ -17335,7 +17335,7 @@ class ce {
17335
17335
  used.
17336
17336
  */
17337
17337
  moveVertically(e, t, n) {
17338
- return Ra(this, e, xk(this, e, t, n));
17338
+ return Ba(this, e, xk(this, e, t, n));
17339
17339
  }
17340
17340
  /**
17341
17341
  Find the DOM parent node and offset (child offset if `node` is
@@ -17566,8 +17566,8 @@ class ce {
17566
17566
  `&light` when a light theme is active).
17567
17567
  */
17568
17568
  static theme(e, t) {
17569
- let n = Dn.newName(), r = [xs.of(n), oo.of(ju(`.${n}`, e))];
17570
- return t && t.dark && r.push(Hu.of(!0)), r;
17569
+ let n = Dn.newName(), r = [xs.of(n), oo.of(zu(`.${n}`, e))];
17570
+ return t && t.dark && r.push(Nu.of(!0)), r;
17571
17571
  }
17572
17572
  /**
17573
17573
  Create an extension that adds styles to the base theme. Like
@@ -17577,7 +17577,7 @@ class ce {
17577
17577
  target editors with a dark or light theme.
17578
17578
  */
17579
17579
  static baseTheme(e) {
17580
- return ur.lowest(oo.of(ju("." + zu, e, _p)));
17580
+ return ur.lowest(oo.of(zu("." + Hu, e, _p)));
17581
17581
  }
17582
17582
  /**
17583
17583
  Retrieve an editor view instance from the view's DOM
@@ -17597,7 +17597,7 @@ ce.scrollHandler = up;
17597
17597
  ce.focusChangeEffect = sp;
17598
17598
  ce.perLineTextDirection = lp;
17599
17599
  ce.exceptionSink = rp;
17600
- ce.updateListener = Iu;
17600
+ ce.updateListener = Lu;
17601
17601
  ce.editable = rn;
17602
17602
  ce.mouseSelectionStyle = np;
17603
17603
  ce.dragMovesSelection = ip;
@@ -17607,7 +17607,7 @@ ce.outerDecorations = fp;
17607
17607
  ce.atomicRanges = Yo;
17608
17608
  ce.bidiIsolatedRanges = dp;
17609
17609
  ce.scrollMargins = mp;
17610
- ce.darkTheme = Hu;
17610
+ ce.darkTheme = Nu;
17611
17611
  ce.cspNonce = /* @__PURE__ */ de.define({ combine: (i) => i.length ? i[0] : "" });
17612
17612
  ce.contentAttributes = Lc;
17613
17613
  ce.editorAttributes = hp;
@@ -17632,7 +17632,7 @@ class ml {
17632
17632
  function Xf(i, e, t) {
17633
17633
  for (let n = i.state.facet(e), r = n.length - 1; r >= 0; r--) {
17634
17634
  let o = n[r], s = typeof o == "function" ? o(i) : o;
17635
- s && Pu(s, t);
17635
+ s && qu(s, t);
17636
17636
  }
17637
17637
  return t;
17638
17638
  }
@@ -17716,7 +17716,7 @@ function mw(i, e = uw) {
17716
17716
  c._any || (c._any = { preventDefault: !1, stopPropagation: !1, run: [] });
17717
17717
  let { any: h } = s;
17718
17718
  for (let f in c)
17719
- c[f].run.push((d) => h(d, Wu));
17719
+ c[f].run.push((d) => h(d, ju));
17720
17720
  }
17721
17721
  let a = s[e] || s.key;
17722
17722
  if (a)
@@ -17725,9 +17725,9 @@ function mw(i, e = uw) {
17725
17725
  }
17726
17726
  return t;
17727
17727
  }
17728
- let Wu = null;
17728
+ let ju = null;
17729
17729
  function Rp(i, e, t, n) {
17730
- Wu = e;
17730
+ ju = e;
17731
17731
  let r = Lx(e), o = ri(r, 0), s = Hi(o) == r.length && r != " ", l = "", a = !1, u = !1, c = !1;
17732
17732
  bn && bn.view == t && bn.scope == n && (l = bn.prefix + " ", wp.indexOf(e.keyCode) < 0 && (u = !0, bn = null));
17733
17733
  let h = /* @__PURE__ */ new Set(), f = (g) => {
@@ -17741,7 +17741,7 @@ function Rp(i, e, t, n) {
17741
17741
  }, d = i[n], m, p;
17742
17742
  return d && (f(d[l + ks(r, e, !s)]) ? a = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
17743
17743
  !(ue.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
17744
- !(ue.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = qn[e.keyCode]) && m != r ? (f(d[l + ks(m, e, !0)]) || e.shiftKey && (p = Oo[e.keyCode]) != r && p != m && f(d[l + ks(p, e, !1)])) && (a = !0) : s && e.shiftKey && f(d[l + ks(r, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), Wu = null, a;
17744
+ !(ue.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = qn[e.keyCode]) && m != r ? (f(d[l + ks(m, e, !0)]) || e.shiftKey && (p = Oo[e.keyCode]) != r && p != m && f(d[l + ks(p, e, !1)])) && (a = !0) : s && e.shiftKey && f(d[l + ks(r, e, !0)]) && (a = !0), !a && f(d._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), ju = null, a;
17745
17745
  }
17746
17746
  class Jo {
17747
17747
  /**
@@ -17796,7 +17796,7 @@ function Zf(i, e, t, n) {
17796
17796
  function gw(i, e, t) {
17797
17797
  if (t.to <= i.viewport.from || t.from >= i.viewport.to)
17798
17798
  return [];
17799
- let n = Math.max(t.from, i.viewport.from), r = Math.min(t.to, i.viewport.to), o = i.textDirection == st.LTR, s = i.contentDOM, l = s.getBoundingClientRect(), a = Ep(i), u = s.querySelector(".cm-line"), c = u && window.getComputedStyle(u), h = l.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), f = l.right - (c ? parseInt(c.paddingRight) : 0), d = Fu(i, n, 1), m = Fu(i, r, -1), p = d.type == ii.Text ? d : null, g = m.type == ii.Text ? m : null;
17799
+ let n = Math.max(t.from, i.viewport.from), r = Math.min(t.to, i.viewport.to), o = i.textDirection == st.LTR, s = i.contentDOM, l = s.getBoundingClientRect(), a = Ep(i), u = s.querySelector(".cm-line"), c = u && window.getComputedStyle(u), h = l.left + (c ? parseInt(c.paddingLeft) + Math.min(0, parseInt(c.textIndent)) : 0), f = l.right - (c ? parseInt(c.paddingRight) : 0), d = Vu(i, n, 1), m = Vu(i, r, -1), p = d.type == ii.Text ? d : null, g = m.type == ii.Text ? m : null;
17800
17800
  if (p && (i.lineWrapping || d.widgetLineBreaks) && (p = Zf(i, n, 1, p)), g && (i.lineWrapping || m.widgetLineBreaks) && (g = Zf(i, r, -1, g)), p && g && p.from == g.from && p.to == g.to)
17801
17801
  return k(y(t.from, t.to, p));
17802
17802
  {
@@ -18111,8 +18111,8 @@ class Mw {
18111
18111
  return t;
18112
18112
  }
18113
18113
  }
18114
- const Qu = /x/.unicode != null ? "gu" : "g", Aw = /* @__PURE__ */ new RegExp(`[\0-\b
18115
- --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`, Qu), Ow = {
18114
+ const Wu = /x/.unicode != null ? "gu" : "g", Aw = /* @__PURE__ */ new RegExp(`[\0-\b
18115
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`, Wu), Ow = {
18116
18116
  0: "null",
18117
18117
  7: "bell",
18118
18118
  8: "backspace",
@@ -18135,14 +18135,14 @@ const Qu = /x/.unicode != null ? "gu" : "g", Aw = /* @__PURE__ */ new RegExp(`[\
18135
18135
  65279: "zero width no-break space",
18136
18136
  65532: "object replacement"
18137
18137
  };
18138
- let Ia = null;
18138
+ let La = null;
18139
18139
  function Tw() {
18140
18140
  var i;
18141
- if (Ia == null && typeof document < "u" && document.body) {
18141
+ if (La == null && typeof document < "u" && document.body) {
18142
18142
  let e = document.body.style;
18143
- Ia = ((i = e.tabSize) !== null && i !== void 0 ? i : e.MozTabSize) != null;
18143
+ La = ((i = e.tabSize) !== null && i !== void 0 ? i : e.MozTabSize) != null;
18144
18144
  }
18145
- return Ia || !1;
18145
+ return La || !1;
18146
18146
  }
18147
18147
  const Us = /* @__PURE__ */ de.define({
18148
18148
  combine(i) {
@@ -18151,7 +18151,7 @@ const Us = /* @__PURE__ */ de.define({
18151
18151
  specialChars: Aw,
18152
18152
  addSpecialChars: null
18153
18153
  });
18154
- return (e.replaceTabs = !Tw()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, Qu)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, Qu)), e;
18154
+ return (e.replaceTabs = !Tw()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, Wu)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, Wu)), e;
18155
18155
  }
18156
18156
  });
18157
18157
  function Dw(i = {}) {
@@ -18278,10 +18278,10 @@ function Fw(i) {
18278
18278
  ce.contentAttributes.of({ "aria-placeholder": i })
18279
18279
  ] : e;
18280
18280
  }
18281
- const Uu = 2e3;
18281
+ const Qu = 2e3;
18282
18282
  function Nw(i, e, t) {
18283
18283
  let n = Math.min(e.line, t.line), r = Math.max(e.line, t.line), o = [];
18284
- if (e.off > Uu || t.off > Uu || e.col < 0 || t.col < 0) {
18284
+ if (e.off > Qu || t.off > Qu || e.col < 0 || t.col < 0) {
18285
18285
  let s = Math.min(e.off, t.off), l = Math.max(e.off, t.off);
18286
18286
  for (let a = n; a <= r; a++) {
18287
18287
  let u = i.doc.line(a);
@@ -18290,11 +18290,11 @@ function Nw(i, e, t) {
18290
18290
  } else {
18291
18291
  let s = Math.min(e.col, t.col), l = Math.max(e.col, t.col);
18292
18292
  for (let a = n; a <= r; a++) {
18293
- let u = i.doc.line(a), c = Su(u.text, s, i.tabSize, !0);
18293
+ let u = i.doc.line(a), c = wu(u.text, s, i.tabSize, !0);
18294
18294
  if (c < 0)
18295
18295
  o.push(K.cursor(u.to));
18296
18296
  else {
18297
- let h = Su(u.text, l, i.tabSize);
18297
+ let h = wu(u.text, l, i.tabSize);
18298
18298
  o.push(K.range(u.from + c, u.from + h));
18299
18299
  }
18300
18300
  }
@@ -18306,7 +18306,7 @@ function Hw(i, e) {
18306
18306
  return t ? Math.round(Math.abs((t.left - e) / i.defaultCharacterWidth)) : -1;
18307
18307
  }
18308
18308
  function nd(i, e) {
18309
- let t = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = i.state.doc.lineAt(t), r = t - n.from, o = r > Uu ? -1 : r == n.length ? Hw(i, e.clientX) : Ur(n.text, i.state.tabSize, t - n.from);
18309
+ let t = i.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = i.state.doc.lineAt(t), r = t - n.from, o = r > Qu ? -1 : r == n.length ? Hw(i, e.clientX) : Ur(n.text, i.state.tabSize, t - n.from);
18310
18310
  return { line: n.number, col: o, off: r };
18311
18311
  }
18312
18312
  function zw(i, e) {
@@ -18406,7 +18406,7 @@ function Kw(i) {
18406
18406
  let e = i.dom.ownerDocument.documentElement;
18407
18407
  return { top: 0, left: 0, bottom: e.clientHeight, right: e.clientWidth };
18408
18408
  }
18409
- const Va = /* @__PURE__ */ de.define({
18409
+ const Ia = /* @__PURE__ */ de.define({
18410
18410
  combine: (i) => {
18411
18411
  var e, t, n;
18412
18412
  return {
@@ -18418,8 +18418,8 @@ const Va = /* @__PURE__ */ de.define({
18418
18418
  }), rd = /* @__PURE__ */ new WeakMap(), Hc = /* @__PURE__ */ ft.fromClass(class {
18419
18419
  constructor(i) {
18420
18420
  this.view = i, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
18421
- let e = i.state.facet(Va);
18422
- this.position = e.position, this.parent = e.parent, this.classes = i.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null, this.manager = new Fp(i, Kl, (t, n) => this.createTooltip(t, n), (t) => {
18421
+ let e = i.state.facet(Ia);
18422
+ this.position = e.position, this.parent = e.parent, this.classes = i.themeClasses, this.createContainer(), this.measureReq = { read: this.readMeasure.bind(this), write: this.writeMeasure.bind(this), key: this }, this.resizeObserver = typeof ResizeObserver == "function" ? new ResizeObserver(() => this.measureSoon()) : null, this.manager = new Fp(i, Ul, (t, n) => this.createTooltip(t, n), (t) => {
18423
18423
  this.resizeObserver && this.resizeObserver.unobserve(t.dom), t.dom.remove();
18424
18424
  }), this.above = this.manager.tooltips.map((t) => !!t.above), this.intersectionObserver = typeof IntersectionObserver == "function" ? new IntersectionObserver((t) => {
18425
18425
  Date.now() > this.lastTransaction - 50 && t.length > 0 && t[t.length - 1].intersectionRatio < 1 && this.measureSoon();
@@ -18444,7 +18444,7 @@ const Va = /* @__PURE__ */ de.define({
18444
18444
  i.transactions.length && (this.lastTransaction = Date.now());
18445
18445
  let e = this.manager.update(i, this.above);
18446
18446
  e && this.observeIntersection();
18447
- let t = e || i.geometryChanged, n = i.state.facet(Va);
18447
+ let t = e || i.geometryChanged, n = i.state.facet(Ia);
18448
18448
  if (n.position != this.position && !this.madeAbsolute) {
18449
18449
  this.position = n.position;
18450
18450
  for (let r of this.manager.tooltipViews)
@@ -18504,7 +18504,7 @@ const Va = /* @__PURE__ */ de.define({
18504
18504
  return l.getCoords ? l.getCoords(o.pos) : this.view.coordsAtPos(o.pos);
18505
18505
  }),
18506
18506
  size: this.manager.tooltipViews.map(({ dom: o }) => o.getBoundingClientRect()),
18507
- space: this.view.state.facet(Va).tooltipSpace(this.view),
18507
+ space: this.view.state.facet(Ia).tooltipSpace(this.view),
18508
18508
  scaleX: i,
18509
18509
  scaleY: e,
18510
18510
  makeAbsolute: t
@@ -18622,15 +18622,15 @@ const Yw = /* @__PURE__ */ ce.baseTheme({
18622
18622
  borderBottomColor: "transparent"
18623
18623
  }
18624
18624
  }
18625
- }), Gw = { x: 0, y: 0 }, Kl = /* @__PURE__ */ de.define({
18625
+ }), Gw = { x: 0, y: 0 }, Ul = /* @__PURE__ */ de.define({
18626
18626
  enables: [Hc, Yw]
18627
18627
  }), gl = /* @__PURE__ */ de.define({
18628
18628
  combine: (i) => i.reduce((e, t) => e.concat(t), [])
18629
18629
  });
18630
- class Yl {
18630
+ class Kl {
18631
18631
  // Needs to be static so that host tooltip instances always match
18632
18632
  static create(e) {
18633
- return new Yl(e);
18633
+ return new Kl(e);
18634
18634
  }
18635
18635
  constructor(e) {
18636
18636
  this.view = e, this.mounted = !1, this.dom = document.createElement("div"), this.dom.classList.add("cm-tooltip-hover"), this.manager = new Fp(e, gl, (t, n) => this.createHostedView(t, n), (t) => t.dom.remove());
@@ -18682,7 +18682,7 @@ class Yl {
18682
18682
  return this.passProp("resize");
18683
18683
  }
18684
18684
  }
18685
- const Jw = /* @__PURE__ */ Kl.compute([gl], (i) => {
18685
+ const Jw = /* @__PURE__ */ Ul.compute([gl], (i) => {
18686
18686
  let e = i.facet(gl);
18687
18687
  return e.length === 0 ? null : {
18688
18688
  pos: Math.min(...e.map((t) => t.pos)),
@@ -18690,7 +18690,7 @@ const Jw = /* @__PURE__ */ Kl.compute([gl], (i) => {
18690
18690
  var n;
18691
18691
  return (n = t.end) !== null && n !== void 0 ? n : t.pos;
18692
18692
  })),
18693
- create: Yl.create,
18693
+ create: Kl.create,
18694
18694
  above: e[0].above,
18695
18695
  arrow: e.some((t) => t.arrow)
18696
18696
  };
@@ -18737,7 +18737,7 @@ class Xw {
18737
18737
  } else s && !(Array.isArray(s) && !s.length) && e.dispatch({ effects: this.setHover.of(Array.isArray(s) ? s : [s]) });
18738
18738
  }
18739
18739
  get tooltip() {
18740
- let e = this.view.plugin(Hc), t = e ? e.manager.tooltips.findIndex((n) => n.create == Yl.create) : -1;
18740
+ let e = this.view.plugin(Hc), t = e ? e.manager.tooltips.findIndex((n) => n.create == Kl.create) : -1;
18741
18741
  return t > -1 ? e.manager.tooltipViews[t] : null;
18742
18742
  }
18743
18743
  mousemove(e) {
@@ -19003,7 +19003,7 @@ const rS = /* @__PURE__ */ ft.fromClass(class {
19003
19003
  let s = !0;
19004
19004
  for (let l of o.type)
19005
19005
  if (l.type == ii.Text && s) {
19006
- Ku(t, n, l.from);
19006
+ Uu(t, n, l.from);
19007
19007
  for (let a of r)
19008
19008
  a.line(this.view, l, n);
19009
19009
  s = !1;
@@ -19011,7 +19011,7 @@ const rS = /* @__PURE__ */ ft.fromClass(class {
19011
19011
  for (let a of r)
19012
19012
  a.widget(this.view, l);
19013
19013
  } else if (o.type == ii.Text) {
19014
- Ku(t, n, o.from);
19014
+ Uu(t, n, o.from);
19015
19015
  for (let s of r)
19016
19016
  s.line(this.view, o, n);
19017
19017
  } else if (o.widget)
@@ -19058,7 +19058,7 @@ const rS = /* @__PURE__ */ ft.fromClass(class {
19058
19058
  function ud(i) {
19059
19059
  return Array.isArray(i) ? i : [i];
19060
19060
  }
19061
- function Ku(i, e, t) {
19061
+ function Uu(i, e, t) {
19062
19062
  for (; i.value && i.from <= t; )
19063
19063
  i.from == t && e.push(i.value), i.next();
19064
19064
  }
@@ -19077,7 +19077,7 @@ class oS {
19077
19077
  }
19078
19078
  line(e, t, n) {
19079
19079
  let r = [];
19080
- Ku(this.cursor, r, t.from), n.length && (r = r.concat(n));
19080
+ Uu(this.cursor, r, t.from), n.length && (r = r.concat(n));
19081
19081
  let o = this.gutter.config.lineMarker(e, t, r);
19082
19082
  o && r.unshift(o);
19083
19083
  let s = this.gutter;
@@ -19192,7 +19192,7 @@ const lS = /* @__PURE__ */ de.define(), aS = /* @__PURE__ */ de.define(), kr = /
19192
19192
  });
19193
19193
  }
19194
19194
  });
19195
- class Fa extends Gi {
19195
+ class Va extends Gi {
19196
19196
  constructor(e) {
19197
19197
  super(), this.number = e;
19198
19198
  }
@@ -19203,7 +19203,7 @@ class Fa extends Gi {
19203
19203
  return document.createTextNode(this.number);
19204
19204
  }
19205
19205
  }
19206
- function Na(i, e) {
19206
+ function Fa(i, e) {
19207
19207
  return i.state.facet(kr).formatNumber(e, i.state);
19208
19208
  }
19209
19209
  const uS = /* @__PURE__ */ yo.compute([kr], (i) => ({
@@ -19213,7 +19213,7 @@ const uS = /* @__PURE__ */ yo.compute([kr], (i) => ({
19213
19213
  return e.state.facet(lS);
19214
19214
  },
19215
19215
  lineMarker(e, t, n) {
19216
- return n.some((r) => r.toDOM) ? null : new Fa(Na(e, e.state.doc.lineAt(t.from).number));
19216
+ return n.some((r) => r.toDOM) ? null : new Va(Fa(e, e.state.doc.lineAt(t.from).number));
19217
19217
  },
19218
19218
  widgetMarker: (e, t, n) => {
19219
19219
  for (let r of e.state.facet(aS)) {
@@ -19225,11 +19225,11 @@ const uS = /* @__PURE__ */ yo.compute([kr], (i) => ({
19225
19225
  },
19226
19226
  lineMarkerChange: (e) => e.startState.facet(kr) != e.state.facet(kr),
19227
19227
  initialSpacer(e) {
19228
- return new Fa(Na(e, hd(e.state.doc.lines)));
19228
+ return new Va(Fa(e, hd(e.state.doc.lines)));
19229
19229
  },
19230
19230
  updateSpacer(e, t) {
19231
- let n = Na(t.view, hd(t.view.state.doc.lines));
19232
- return n == e.number ? e : new Fa(n);
19231
+ let n = Fa(t.view, hd(t.view.state.doc.lines));
19232
+ return n == e.number ? e : new Va(n);
19233
19233
  },
19234
19234
  domEventHandlers: i.facet(kr).domEventHandlers,
19235
19235
  side: "before"
@@ -19264,7 +19264,7 @@ function fS() {
19264
19264
  }
19265
19265
  const Up = 1024;
19266
19266
  let dS = 0;
19267
- class Ha {
19267
+ class Na {
19268
19268
  constructor(e, t) {
19269
19269
  this.from = e, this.to = t;
19270
19270
  }
@@ -19484,7 +19484,7 @@ class xt {
19484
19484
  nodes the cursor visits.
19485
19485
  */
19486
19486
  cursor(e = 0) {
19487
- return new Gu(this.topNode, e);
19487
+ return new Yu(this.topNode, e);
19488
19488
  }
19489
19489
  /**
19490
19490
  Get a [tree cursor](#common.TreeCursor) pointing into this tree
@@ -19492,7 +19492,7 @@ class xt {
19492
19492
  [`moveTo`](#common.TreeCursor.moveTo).
19493
19493
  */
19494
19494
  cursorAt(e, t = 0, n = 0) {
19495
- let r = Ms.get(this) || this.topNode, o = new Gu(r);
19495
+ let r = Ms.get(this) || this.topNode, o = new Yu(r);
19496
19496
  return o.moveTo(e, t), Ms.set(this, o._tree), o;
19497
19497
  }
19498
19498
  /**
@@ -19715,7 +19715,7 @@ function Bo(i, e, t, n) {
19715
19715
  }
19716
19716
  class Yp {
19717
19717
  cursor(e = 0) {
19718
- return new Gu(this, e);
19718
+ return new Yu(this, e);
19719
19719
  }
19720
19720
  getChild(e, t = null, n = null) {
19721
19721
  let r = dd(this, e, t, n);
@@ -19731,7 +19731,7 @@ class Yp {
19731
19731
  return Bo(this, e, t, !0);
19732
19732
  }
19733
19733
  matchContext(e) {
19734
- return Yu(this.parent, e);
19734
+ return Ku(this.parent, e);
19735
19735
  }
19736
19736
  enterUnfinishedNodesBefore(e) {
19737
19737
  let t = this.childBefore(e), n = this;
@@ -19889,7 +19889,7 @@ function dd(i, e, t, n) {
19889
19889
  return n == null ? o : [];
19890
19890
  }
19891
19891
  }
19892
- function Yu(i, e, t = e.length - 1) {
19892
+ function Ku(i, e, t = e.length - 1) {
19893
19893
  for (let n = i; t >= 0; n = n.parent) {
19894
19894
  if (!n)
19895
19895
  return !1;
@@ -20040,7 +20040,7 @@ function vS(i, e, t) {
20040
20040
  }
20041
20041
  return r ? Gp(r) : n;
20042
20042
  }
20043
- class Gu {
20043
+ class Yu {
20044
20044
  /**
20045
20045
  Shorthand for `.type.name`.
20046
20046
  */
@@ -20323,11 +20323,11 @@ class Gu {
20323
20323
  */
20324
20324
  matchContext(e) {
20325
20325
  if (!this.buffer)
20326
- return Yu(this.node.parent, e);
20326
+ return Ku(this.node.parent, e);
20327
20327
  let { buffer: t } = this.buffer, { types: n } = t.set;
20328
20328
  for (let r = e.length - 1, o = this.stack.length - 1; r >= 0; o--) {
20329
20329
  if (o < 0)
20330
- return Yu(this._tree, e, r);
20330
+ return Ku(this._tree, e, r);
20331
20331
  let s = n[t.buffer[this.stack[o]]];
20332
20332
  if (!s.isAnonymous) {
20333
20333
  if (e[r] && e[r] != s.name)
@@ -20602,7 +20602,7 @@ class Jp {
20602
20602
  case will start at `ranges[0].from`.
20603
20603
  */
20604
20604
  startParse(e, t, n) {
20605
- return typeof e == "string" && (e = new bS(e)), n = n ? n.length ? n.map((r) => new Ha(r.from, r.to)) : [new Ha(0, 0)] : [new Ha(0, e.length)], this.createParse(e, t || [], n);
20605
+ return typeof e == "string" && (e = new bS(e)), n = n ? n.length ? n.map((r) => new Na(r.from, r.to)) : [new Na(0, 0)] : [new Na(0, e.length)], this.createParse(e, t || [], n);
20606
20606
  }
20607
20607
  /**
20608
20608
  Run a full parse, returning the resulting tree.
@@ -20860,7 +20860,7 @@ function OS(i) {
20860
20860
  e = e.next;
20861
20861
  return e || null;
20862
20862
  }
20863
- const ie = yi.define, As = ie(), pn = ie(), gd = ie(pn), pd = ie(pn), vn = ie(), Os = ie(vn), za = ie(vn), Fi = ie(), Hn = ie(Fi), Ii = ie(), Vi = ie(), Ju = ie(), eo = ie(Ju), Ts = ie(), j = {
20863
+ const ie = yi.define, As = ie(), pn = ie(), gd = ie(pn), pd = ie(pn), vn = ie(), Os = ie(vn), Ha = ie(vn), Fi = ie(), Hn = ie(Fi), Ii = ie(), Vi = ie(), Gu = ie(), eo = ie(Gu), Ts = ie(), j = {
20864
20864
  /**
20865
20865
  A comment.
20866
20866
  */
@@ -20940,15 +20940,15 @@ const ie = yi.define, As = ie(), pn = ie(), gd = ie(pn), pd = ie(pn), vn = ie(),
20940
20940
  /**
20941
20941
  A number [literal](#highlight.tags.literal).
20942
20942
  */
20943
- number: za,
20943
+ number: Ha,
20944
20944
  /**
20945
20945
  An integer [number](#highlight.tags.number) literal.
20946
20946
  */
20947
- integer: ie(za),
20947
+ integer: ie(Ha),
20948
20948
  /**
20949
20949
  A floating-point [number](#highlight.tags.number) literal.
20950
20950
  */
20951
- float: ie(za),
20951
+ float: ie(Ha),
20952
20952
  /**
20953
20953
  A boolean [literal](#highlight.tags.literal).
20954
20954
  */
@@ -21055,12 +21055,12 @@ const ie = yi.define, As = ie(), pn = ie(), gd = ie(pn), pd = ie(pn), vn = ie(),
21055
21055
  /**
21056
21056
  Program or markup punctuation.
21057
21057
  */
21058
- punctuation: Ju,
21058
+ punctuation: Gu,
21059
21059
  /**
21060
21060
  [Punctuation](#highlight.tags.punctuation) that separates
21061
21061
  things.
21062
21062
  */
21063
- separator: ie(Ju),
21063
+ separator: ie(Gu),
21064
21064
  /**
21065
21065
  Bracket-style [punctuation](#highlight.tags.punctuation).
21066
21066
  */
@@ -21262,7 +21262,7 @@ Zp([
21262
21262
  { tag: j.invalid, class: "tok-invalid" },
21263
21263
  { tag: j.punctuation, class: "tok-punctuation" }
21264
21264
  ]);
21265
- var ja;
21265
+ var za;
21266
21266
  const wr = /* @__PURE__ */ new Pe();
21267
21267
  function TS(i) {
21268
21268
  return de.define({
@@ -21612,7 +21612,7 @@ typeof requestIdleCallback < "u" && (ev = (i) => {
21612
21612
  );
21613
21613
  return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
21614
21614
  });
21615
- const Wa = typeof navigator < "u" && (!((ja = navigator.scheduling) === null || ja === void 0) && ja.isInputPending) ? () => navigator.scheduling.isInputPending() : null, PS = /* @__PURE__ */ ft.fromClass(class {
21615
+ const ja = typeof navigator < "u" && (!((za = navigator.scheduling) === null || za === void 0) && za.isInputPending) ? () => navigator.scheduling.isInputPending() : null, PS = /* @__PURE__ */ ft.fromClass(class {
21616
21616
  constructor(e) {
21617
21617
  this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
21618
21618
  }
@@ -21637,7 +21637,7 @@ const Wa = typeof navigator < "u" && (!((ja = navigator.scheduling) === null ||
21637
21637
  /* Work.MaxParseAhead */
21638
21638
  ))
21639
21639
  return;
21640
- let s = Date.now() + Math.min(this.chunkBudget, 100, e && !Wa ? Math.max(25, e.timeRemaining() - 5) : 1e9), l = o.context.treeLen < r && n.doc.length > r + 1e3, a = o.context.work(() => Wa && Wa() || Date.now() > s, r + (l ? 0 : 1e5));
21640
+ let s = Date.now() + Math.min(this.chunkBudget, 100, e && !ja ? Math.max(25, e.timeRemaining() - 5) : 1e9), l = o.context.treeLen < r && n.doc.length > r + 1e3, a = o.context.work(() => ja && ja() || Date.now() > s, r + (l ? 0 : 1e5));
21641
21641
  this.chunkBudget -= Date.now() - t, (a || this.chunkBudget <= 0) && (o.context.takeTree(), this.view.dispatch({ effects: Ti.setState.of(new Hr(o.context)) })), this.chunkBudget > 0 && !(a && !l) && this.scheduleWork(), this.checkAsyncSchedule(o.context);
21642
21642
  }
21643
21643
  checkAsyncSchedule(e) {
@@ -21674,7 +21674,7 @@ class _S {
21674
21674
  this.language = e, this.support = t, this.extension = [e, t];
21675
21675
  }
21676
21676
  }
21677
- const BS = /* @__PURE__ */ de.define(), Gl = /* @__PURE__ */ de.define({
21677
+ const BS = /* @__PURE__ */ de.define(), Yl = /* @__PURE__ */ de.define({
21678
21678
  combine: (i) => {
21679
21679
  if (!i.length)
21680
21680
  return " ";
@@ -21685,11 +21685,11 @@ const BS = /* @__PURE__ */ de.define(), Gl = /* @__PURE__ */ de.define({
21685
21685
  }
21686
21686
  });
21687
21687
  function xl(i) {
21688
- let e = i.facet(Gl);
21688
+ let e = i.facet(Yl);
21689
21689
  return e.charCodeAt(0) == 9 ? i.tabSize * e.length : e.length;
21690
21690
  }
21691
21691
  function Eo(i, e) {
21692
- let t = "", n = i.tabSize, r = i.facet(Gl)[0];
21692
+ let t = "", n = i.tabSize, r = i.facet(Yl)[0];
21693
21693
  if (r == " ") {
21694
21694
  for (; e >= n; )
21695
21695
  t += " ", e -= n;
@@ -21700,7 +21700,7 @@ function Eo(i, e) {
21700
21700
  return t;
21701
21701
  }
21702
21702
  function Uc(i, e) {
21703
- i instanceof Ee && (i = new Jl(i));
21703
+ i instanceof Ee && (i = new Gl(i));
21704
21704
  for (let n of i.state.facet(BS)) {
21705
21705
  let r = n(i, e);
21706
21706
  if (r !== void 0)
@@ -21709,7 +21709,7 @@ function Uc(i, e) {
21709
21709
  let t = Wt(i.state);
21710
21710
  return t.length >= e ? RS(i, t, e) : null;
21711
21711
  }
21712
- class Jl {
21712
+ class Gl {
21713
21713
  /**
21714
21714
  Create an indent context.
21715
21715
  */
@@ -21810,7 +21810,7 @@ function LS(i) {
21810
21810
  function IS() {
21811
21811
  return 0;
21812
21812
  }
21813
- class Kc extends Jl {
21813
+ class Kc extends Gl {
21814
21814
  constructor(e, t, n) {
21815
21815
  super(e.state, e.options), this.base = e, this.pos = t, this.context = n;
21816
21816
  }
@@ -21971,7 +21971,7 @@ function rv(i, e) {
21971
21971
  let t = e.mapPos(i.from, 1), n = e.mapPos(i.to, -1);
21972
21972
  return t >= n ? void 0 : { from: t, to: n };
21973
21973
  }
21974
- const Xl = /* @__PURE__ */ Ae.define({ map: rv }), Xo = /* @__PURE__ */ Ae.define({ map: rv });
21974
+ const Jl = /* @__PURE__ */ Ae.define({ map: rv }), Xo = /* @__PURE__ */ Ae.define({ map: rv });
21975
21975
  function ov(i) {
21976
21976
  let e = [];
21977
21977
  for (let { head: t } of i.state.selection.ranges)
@@ -21985,7 +21985,7 @@ const lr = /* @__PURE__ */ Mt.define({
21985
21985
  update(i, e) {
21986
21986
  e.isUserEvent("delete") && e.changes.iterChangedRanges((t, n) => i = xd(i, t, n)), i = i.map(e.changes);
21987
21987
  for (let t of e.effects)
21988
- if (t.is(Xl) && !KS(i, t.value.from, t.value.to)) {
21988
+ if (t.is(Jl) && !KS(i, t.value.from, t.value.to)) {
21989
21989
  let { preparePlaceholder: n } = e.state.facet(av), r = n ? xe.replace({ widget: new eC(n(e.state, t.value)) }) : kd;
21990
21990
  i = i.update({ add: [r.range(t.value.from, t.value.to)] });
21991
21991
  } else t.is(Xo) && (i = i.update({
@@ -22045,7 +22045,7 @@ const YS = (i) => {
22045
22045
  for (let e of ov(i)) {
22046
22046
  let t = kl(i.state, e.from, e.to);
22047
22047
  if (t)
22048
- return i.dispatch({ effects: sv(i.state, [Xl.of(t), lv(i, t)]) }), !0;
22048
+ return i.dispatch({ effects: sv(i.state, [Jl.of(t), lv(i, t)]) }), !0;
22049
22049
  }
22050
22050
  return !1;
22051
22051
  }, GS = (i) => {
@@ -22066,7 +22066,7 @@ const JS = (i) => {
22066
22066
  let { state: e } = i, t = [];
22067
22067
  for (let n = 0; n < e.doc.length; ) {
22068
22068
  let r = i.lineBlockAt(n), o = kl(e, r.from, r.to);
22069
- o && t.push(Xl.of(o)), n = (o ? i.lineBlockAt(o.to) : r).to + 1;
22069
+ o && t.push(Jl.of(o)), n = (o ? i.lineBlockAt(o.to) : r).to + 1;
22070
22070
  }
22071
22071
  return t.length && i.dispatch({ effects: sv(i.state, t) }), !!t.length;
22072
22072
  }, XS = (i) => {
@@ -22127,7 +22127,7 @@ const tC = {
22127
22127
  domEventHandlers: {},
22128
22128
  foldingChanged: () => !1
22129
22129
  };
22130
- class Qa extends Gi {
22130
+ class Wa extends Gi {
22131
22131
  constructor(e, t) {
22132
22132
  super(), this.config = e, this.open = t;
22133
22133
  }
@@ -22142,7 +22142,7 @@ class Qa extends Gi {
22142
22142
  }
22143
22143
  }
22144
22144
  function iC(i = {}) {
22145
- let e = { ...tC, ...i }, t = new Qa(e, !0), n = new Qa(e, !1), r = ft.fromClass(class {
22145
+ let e = { ...tC, ...i }, t = new Wa(e, !0), n = new Wa(e, !1), r = ft.fromClass(class {
22146
22146
  constructor(s) {
22147
22147
  this.from = s.viewport.from, this.markers = this.buildMarkers(s);
22148
22148
  }
@@ -22167,7 +22167,7 @@ function iC(i = {}) {
22167
22167
  return ((l = s.plugin(r)) === null || l === void 0 ? void 0 : l.markers) || Le.empty;
22168
22168
  },
22169
22169
  initialSpacer() {
22170
- return new Qa(e, !1);
22170
+ return new Wa(e, !1);
22171
22171
  },
22172
22172
  domEventHandlers: {
22173
22173
  ...o,
@@ -22178,7 +22178,7 @@ function iC(i = {}) {
22178
22178
  if (u)
22179
22179
  return s.dispatch({ effects: Xo.of(u) }), !0;
22180
22180
  let c = kl(s.state, l.from, l.to);
22181
- return c ? (s.dispatch({ effects: Xl.of(c) }), !0) : !1;
22181
+ return c ? (s.dispatch({ effects: Jl.of(c) }), !0) : !1;
22182
22182
  }
22183
22183
  }
22184
22184
  }),
@@ -22235,25 +22235,25 @@ class $o {
22235
22235
  return new $o(e, t || {});
22236
22236
  }
22237
22237
  }
22238
- const Xu = /* @__PURE__ */ de.define(), hv = /* @__PURE__ */ de.define({
22238
+ const Ju = /* @__PURE__ */ de.define(), hv = /* @__PURE__ */ de.define({
22239
22239
  combine(i) {
22240
22240
  return i.length ? [i[0]] : null;
22241
22241
  }
22242
22242
  });
22243
- function Ua(i) {
22244
- let e = i.facet(Xu);
22243
+ function Qa(i) {
22244
+ let e = i.facet(Ju);
22245
22245
  return e.length ? e : i.facet(hv);
22246
22246
  }
22247
22247
  function fv(i, e) {
22248
22248
  let t = [oC], n;
22249
- return i instanceof $o && (i.module && t.push(ce.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(hv.of(i)) : n ? t.push(Xu.computeN([ce.darkTheme], (r) => r.facet(ce.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Xu.of(i)), t;
22249
+ return i instanceof $o && (i.module && t.push(ce.styleModule.of(i.module)), n = i.themeType), e != null && e.fallback ? t.push(hv.of(i)) : n ? t.push(Ju.computeN([ce.darkTheme], (r) => r.facet(ce.darkTheme) == (n == "dark") ? [i] : [])) : t.push(Ju.of(i)), t;
22250
22250
  }
22251
22251
  class rC {
22252
22252
  constructor(e) {
22253
- this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Wt(e.state), this.decorations = this.buildDeco(e, Ua(e.state)), this.decoratedTo = e.viewport.to;
22253
+ this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Wt(e.state), this.decorations = this.buildDeco(e, Qa(e.state)), this.decoratedTo = e.viewport.to;
22254
22254
  }
22255
22255
  update(e) {
22256
- let t = Wt(e.state), n = Ua(e.state), r = n != Ua(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
22256
+ let t = Wt(e.state), n = Qa(e.state), r = n != Qa(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
22257
22257
  t.length < o.to && !r && t.type == this.tree.type && s >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = s) : (t != this.tree || e.viewportChanged || r) && (this.tree = t, this.decorations = this.buildDeco(e.view, n), this.decoratedTo = o.to);
22258
22258
  }
22259
22259
  buildDeco(e, t) {
@@ -22389,7 +22389,7 @@ function dC(i = {}) {
22389
22389
  return [gv.of(i), fC];
22390
22390
  }
22391
22391
  const mC = /* @__PURE__ */ new Pe();
22392
- function $u(i, e, t) {
22392
+ function Xu(i, e, t) {
22393
22393
  let n = i.prop(e < 0 ? Pe.openedBy : Pe.closedBy);
22394
22394
  if (n)
22395
22395
  return n;
@@ -22400,16 +22400,16 @@ function $u(i, e, t) {
22400
22400
  }
22401
22401
  return null;
22402
22402
  }
22403
- function Zu(i) {
22403
+ function $u(i) {
22404
22404
  let e = i.type.prop(mC);
22405
22405
  return e ? e(i.node) : i;
22406
22406
  }
22407
22407
  function ji(i, e, t, n = {}) {
22408
22408
  let r = n.maxScanDistance || dv, o = n.brackets || mv, s = Wt(i), l = s.resolveInner(e, t);
22409
22409
  for (let a = l; a; a = a.parent) {
22410
- let u = $u(a.type, t, o);
22410
+ let u = Xu(a.type, t, o);
22411
22411
  if (u && a.from < a.to) {
22412
- let c = Zu(a);
22412
+ let c = $u(a);
22413
22413
  if (c && (t > 0 ? e >= c.from && e < c.to : e > c.from && e <= c.to))
22414
22414
  return gC(i, e, t, a, c, u, o);
22415
22415
  }
@@ -22422,13 +22422,13 @@ function gC(i, e, t, n, r, o, s) {
22422
22422
  do
22423
22423
  if (t < 0 ? c.to <= n.from : c.from >= n.to) {
22424
22424
  if (u == 0 && o.indexOf(c.type.name) > -1 && c.from < c.to) {
22425
- let h = Zu(c);
22425
+ let h = $u(c);
22426
22426
  return { start: a, end: h ? { from: h.from, to: h.to } : void 0, matched: !0 };
22427
- } else if ($u(c.type, t, s))
22427
+ } else if (Xu(c.type, t, s))
22428
22428
  u++;
22429
- else if ($u(c.type, -t, s)) {
22429
+ else if (Xu(c.type, -t, s)) {
22430
22430
  if (u == 0) {
22431
- let h = Zu(c);
22431
+ let h = $u(c);
22432
22432
  return {
22433
22433
  start: a,
22434
22434
  end: h && h.from < h.to ? { from: h.from, to: h.to } : void 0,
@@ -22481,7 +22481,7 @@ for (let [i, e] of [
22481
22481
  ["property", "propertyName"]
22482
22482
  ])
22483
22483
  yC[i] = /* @__PURE__ */ bC(vC, e);
22484
- function Ka(i, e) {
22484
+ function Ua(i, e) {
22485
22485
  Sd.indexOf(i) > -1 || (Sd.push(i), console.warn(e));
22486
22486
  }
22487
22487
  function bC(i, e) {
@@ -22490,7 +22490,7 @@ function bC(i, e) {
22490
22490
  let a = [];
22491
22491
  for (let u of l.split(".")) {
22492
22492
  let c = i[u] || j[u];
22493
- c ? typeof c == "function" ? a.length ? a = a.map(c) : Ka(u, `Modifier ${u} used at start of tag`) : a.length ? Ka(u, `Tag ${u} used as modifier`) : a = Array.isArray(c) ? c : [c] : Ka(u, `Unknown highlighting tag ${u}`);
22493
+ c ? typeof c == "function" ? a.length ? a = a.map(c) : Ua(u, `Modifier ${u} used at start of tag`) : a.length ? Ua(u, `Tag ${u} used as modifier`) : a = Array.isArray(c) ? c : [c] : Ua(u, `Unknown highlighting tag ${u}`);
22494
22494
  }
22495
22495
  for (let u of a)
22496
22496
  t.push(u);
@@ -22624,7 +22624,7 @@ function AC(i, e, t = e.selection.ranges) {
22624
22624
  }
22625
22625
  return null;
22626
22626
  }
22627
- const ec = /* @__PURE__ */ hn.define(), OC = /* @__PURE__ */ hn.define(), TC = /* @__PURE__ */ de.define(), vv = /* @__PURE__ */ de.define({
22627
+ const Zu = /* @__PURE__ */ hn.define(), OC = /* @__PURE__ */ hn.define(), TC = /* @__PURE__ */ de.define(), vv = /* @__PURE__ */ de.define({
22628
22628
  combine(i) {
22629
22629
  return Pi(i, {
22630
22630
  minDepth: 100,
@@ -22641,7 +22641,7 @@ const ec = /* @__PURE__ */ hn.define(), OC = /* @__PURE__ */ hn.define(), TC = /
22641
22641
  return Wi.empty;
22642
22642
  },
22643
22643
  update(i, e) {
22644
- let t = e.state.facet(vv), n = e.annotation(ec);
22644
+ let t = e.state.facet(vv), n = e.annotation(Zu);
22645
22645
  if (n) {
22646
22646
  let a = si.fromTransaction(e, n.selection), u = n.side, c = u == 0 ? i.undone : i.done;
22647
22647
  return a ? c = Sl(c, c.length, t.minDepth, a) : c = kv(c, e.startState.selection), new Wi(u == 0 ? n.rest : c, u == 0 ? c : n.rest);
@@ -22665,13 +22665,13 @@ function DC(i = {}) {
22665
22665
  vv.of(i),
22666
22666
  ce.domEventHandlers({
22667
22667
  beforeinput(e, t) {
22668
- let n = e.inputType == "historyUndo" ? bv : e.inputType == "historyRedo" ? tc : null;
22668
+ let n = e.inputType == "historyUndo" ? bv : e.inputType == "historyRedo" ? ec : null;
22669
22669
  return n ? (e.preventDefault(), n(t)) : !1;
22670
22670
  }
22671
22671
  })
22672
22672
  ];
22673
22673
  }
22674
- function $l(i, e) {
22674
+ function Xl(i, e) {
22675
22675
  return function({ state: t, dispatch: n }) {
22676
22676
  if (!e && t.readOnly)
22677
22677
  return !1;
@@ -22682,7 +22682,7 @@ function $l(i, e) {
22682
22682
  return o ? (n(o), !0) : !1;
22683
22683
  };
22684
22684
  }
22685
- const bv = /* @__PURE__ */ $l(0, !1), tc = /* @__PURE__ */ $l(1, !1), qC = /* @__PURE__ */ $l(0, !0), PC = /* @__PURE__ */ $l(1, !0);
22685
+ const bv = /* @__PURE__ */ Xl(0, !1), ec = /* @__PURE__ */ Xl(1, !1), qC = /* @__PURE__ */ Xl(0, !0), PC = /* @__PURE__ */ Xl(1, !0);
22686
22686
  class si {
22687
22687
  constructor(e, t, n, r, o) {
22688
22688
  this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = o;
@@ -22748,7 +22748,7 @@ function EC(i) {
22748
22748
  let e = i[i.length - 1], t = i.slice();
22749
22749
  return t[i.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), t;
22750
22750
  }
22751
- function Ya(i, e) {
22751
+ function Ka(i, e) {
22752
22752
  if (!i.length)
22753
22753
  return i;
22754
22754
  let t = i.length, n = bi;
@@ -22787,7 +22787,7 @@ class Wi {
22787
22787
  return o.length > 0 && t - this.prevTime < r && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && BC(o[o.length - 1], e) ? this : new Wi(kv(this.done, e), this.undone, t, n);
22788
22788
  }
22789
22789
  addMapping(e) {
22790
- return new Wi(Ya(this.done, e), Ya(this.undone, e), this.prevTime, this.prevUserEvent);
22790
+ return new Wi(Ka(this.done, e), Ka(this.undone, e), this.prevTime, this.prevUserEvent);
22791
22791
  }
22792
22792
  pop(e, t, n) {
22793
22793
  let r = e == 0 ? this.done : this.undone;
@@ -22797,17 +22797,17 @@ class Wi {
22797
22797
  if (n && o.selectionsAfter.length)
22798
22798
  return t.update({
22799
22799
  selection: o.selectionsAfter[o.selectionsAfter.length - 1],
22800
- annotations: ec.of({ side: e, rest: EC(r), selection: s }),
22800
+ annotations: Zu.of({ side: e, rest: EC(r), selection: s }),
22801
22801
  userEvent: e == 0 ? "select.undo" : "select.redo",
22802
22802
  scrollIntoView: !0
22803
22803
  });
22804
22804
  if (o.changes) {
22805
22805
  let l = r.length == 1 ? bi : r.slice(0, r.length - 1);
22806
- return o.mapped && (l = Ya(l, o.mapped)), t.update({
22806
+ return o.mapped && (l = Ka(l, o.mapped)), t.update({
22807
22807
  changes: o.changes,
22808
22808
  selection: o.startSelection,
22809
22809
  effects: o.effects,
22810
- annotations: ec.of({ side: e, rest: l, selection: s }),
22810
+ annotations: Zu.of({ side: e, rest: l, selection: s }),
22811
22811
  filter: !1,
22812
22812
  userEvent: e == 0 ? "undo" : "redo",
22813
22813
  scrollIntoView: !0
@@ -22819,8 +22819,8 @@ class Wi {
22819
22819
  Wi.empty = /* @__PURE__ */ new Wi(bi, bi);
22820
22820
  const VC = [
22821
22821
  { key: "Mod-z", run: bv, preventDefault: !0 },
22822
- { key: "Mod-y", mac: "Mod-Shift-z", run: tc, preventDefault: !0 },
22823
- { linux: "Ctrl-Shift-z", run: tc, preventDefault: !0 },
22822
+ { key: "Mod-y", mac: "Mod-Shift-z", run: ec, preventDefault: !0 },
22823
+ { linux: "Ctrl-Shift-z", run: ec, preventDefault: !0 },
22824
22824
  { key: "Mod-u", run: qC, preventDefault: !0 },
22825
22825
  { key: "Alt-u", mac: "Mod-Shift-u", run: PC, preventDefault: !0 }
22826
22826
  ];
@@ -22834,18 +22834,18 @@ function Bi({ state: i, dispatch: e }, t) {
22834
22834
  let n = Kr(i.selection, t);
22835
22835
  return n.eq(i.selection, !0) ? !1 : (e(_i(i, n)), !0);
22836
22836
  }
22837
- function Zl(i, e) {
22837
+ function $l(i, e) {
22838
22838
  return K.cursor(e ? i.to : i.from);
22839
22839
  }
22840
22840
  function wv(i, e) {
22841
- return Bi(i, (t) => t.empty ? i.moveByChar(t, e) : Zl(t, e));
22841
+ return Bi(i, (t) => t.empty ? i.moveByChar(t, e) : $l(t, e));
22842
22842
  }
22843
22843
  function Kt(i) {
22844
22844
  return i.textDirectionAt(i.state.selection.main.head) == st.LTR;
22845
22845
  }
22846
22846
  const Sv = (i) => wv(i, !Kt(i)), Cv = (i) => wv(i, Kt(i));
22847
22847
  function Mv(i, e) {
22848
- return Bi(i, (t) => t.empty ? i.moveByGroup(t, e) : Zl(t, e));
22848
+ return Bi(i, (t) => t.empty ? i.moveByGroup(t, e) : $l(t, e));
22849
22849
  }
22850
22850
  const FC = (i) => Mv(i, !Kt(i)), NC = (i) => Mv(i, Kt(i));
22851
22851
  function HC(i, e, t) {
@@ -22854,7 +22854,7 @@ function HC(i, e, t) {
22854
22854
  let n = e.to - e.from;
22855
22855
  return n && (n > 2 || /[^\s,.;:]/.test(i.sliceDoc(e.from, e.to))) || e.firstChild;
22856
22856
  }
22857
- function ea(i, e, t) {
22857
+ function Zl(i, e, t) {
22858
22858
  let n = Wt(i).resolveInner(e.head), r = t ? Pe.closedBy : Pe.openedBy;
22859
22859
  for (let a = e.head; ; ) {
22860
22860
  let u = t ? n.childAfter(a) : n.childBefore(a);
@@ -22865,11 +22865,11 @@ function ea(i, e, t) {
22865
22865
  let o = n.type.prop(r), s, l;
22866
22866
  return o && (s = t ? ji(i, n.from, 1) : ji(i, n.to, -1)) && s.matched ? l = t ? s.end.to : s.end.from : l = t ? n.to : n.from, K.cursor(l, t ? -1 : 1);
22867
22867
  }
22868
- const zC = (i) => Bi(i, (e) => ea(i.state, e, !Kt(i))), jC = (i) => Bi(i, (e) => ea(i.state, e, Kt(i)));
22868
+ const zC = (i) => Bi(i, (e) => Zl(i.state, e, !Kt(i))), jC = (i) => Bi(i, (e) => Zl(i.state, e, Kt(i)));
22869
22869
  function Av(i, e) {
22870
22870
  return Bi(i, (t) => {
22871
22871
  if (!t.empty)
22872
- return Zl(t, e);
22872
+ return $l(t, e);
22873
22873
  let n = i.moveVertically(t, e);
22874
22874
  return n.head != t.head ? n : i.moveToLineBoundary(t, e);
22875
22875
  });
@@ -22893,7 +22893,7 @@ function Dv(i) {
22893
22893
  };
22894
22894
  }
22895
22895
  function qv(i, e) {
22896
- let t = Dv(i), { state: n } = i, r = Kr(n.selection, (s) => s.empty ? i.moveVertically(s, e, t.height) : Zl(s, e));
22896
+ let t = Dv(i), { state: n } = i, r = Kr(n.selection, (s) => s.empty ? i.moveVertically(s, e, t.height) : $l(s, e));
22897
22897
  if (r.eq(n.selection))
22898
22898
  return !1;
22899
22899
  let o;
@@ -22903,7 +22903,7 @@ function qv(i, e) {
22903
22903
  }
22904
22904
  return i.dispatch(_i(n, r), { effects: o }), !0;
22905
22905
  }
22906
- const Md = (i) => qv(i, !1), ic = (i) => qv(i, !0);
22906
+ const Md = (i) => qv(i, !1), tc = (i) => qv(i, !0);
22907
22907
  function En(i, e, t) {
22908
22908
  let n = i.lineBlockAt(e.head), r = i.moveToLineBoundary(e, t);
22909
22909
  if (r.head == e.head && r.head != (t ? n.to : n.from) && (r = i.moveToLineBoundary(e, t, !1)), !t && r.head == n.from && n.length) {
@@ -22939,7 +22939,7 @@ const _v = (i) => Pv(i, !Kt(i)), Bv = (i) => Pv(i, Kt(i));
22939
22939
  function Rv(i, e) {
22940
22940
  return Mi(i, (t) => i.moveByGroup(t, e));
22941
22941
  }
22942
- const $C = (i) => Rv(i, !Kt(i)), ZC = (i) => Rv(i, Kt(i)), eM = (i) => Mi(i, (e) => ea(i.state, e, !Kt(i))), tM = (i) => Mi(i, (e) => ea(i.state, e, Kt(i)));
22942
+ const $C = (i) => Rv(i, !Kt(i)), ZC = (i) => Rv(i, Kt(i)), eM = (i) => Mi(i, (e) => Zl(i.state, e, !Kt(i))), tM = (i) => Mi(i, (e) => Zl(i.state, e, Kt(i)));
22943
22943
  function Ev(i, e) {
22944
22944
  return Mi(i, (t) => i.moveVertically(t, e));
22945
22945
  }
@@ -22948,7 +22948,7 @@ function Vv(i, e) {
22948
22948
  return Mi(i, (t) => i.moveVertically(t, e, Dv(i).height));
22949
22949
  }
22950
22950
  const Ad = (i) => Vv(i, !1), Od = (i) => Vv(i, !0), iM = (i) => Mi(i, (e) => En(i, e, !0)), nM = (i) => Mi(i, (e) => En(i, e, !1)), rM = (i) => Mi(i, (e) => En(i, e, !Kt(i))), oM = (i) => Mi(i, (e) => En(i, e, Kt(i))), sM = (i) => Mi(i, (e) => K.cursor(i.lineBlockAt(e.head).from)), lM = (i) => Mi(i, (e) => K.cursor(i.lineBlockAt(e.head).to)), Td = ({ state: i, dispatch: e }) => (e(_i(i, { anchor: 0 })), !0), Dd = ({ state: i, dispatch: e }) => (e(_i(i, { anchor: i.doc.length })), !0), qd = ({ state: i, dispatch: e }) => (e(_i(i, { anchor: i.selection.main.anchor, head: 0 })), !0), Pd = ({ state: i, dispatch: e }) => (e(_i(i, { anchor: i.selection.main.anchor, head: i.doc.length })), !0), aM = ({ state: i, dispatch: e }) => (e(i.update({ selection: { anchor: 0, head: i.doc.length }, userEvent: "select" })), !0), uM = ({ state: i, dispatch: e }) => {
22951
- let t = ta(i).map(({ from: n, to: r }) => K.range(n, Math.min(r + 1, i.doc.length)));
22951
+ let t = ea(i).map(({ from: n, to: r }) => K.range(n, Math.min(r + 1, i.doc.length)));
22952
22952
  return e(i.update({ selection: K.create(t), userEvent: "select" })), !0;
22953
22953
  }, cM = ({ state: i, dispatch: e }) => {
22954
22954
  let t = Kr(i.selection, (n) => {
@@ -23027,7 +23027,7 @@ const Nv = (i, e, t) => Zo(i, (n) => {
23027
23027
  } else
23028
23028
  a = Ft(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 = Ft(s.text, a - s.from, !1, !1) + s.from);
23029
23029
  return a;
23030
- }), nc = (i) => Nv(i, !1, !0), Hv = (i) => Nv(i, !0, !1), zv = (i, e) => Zo(i, (t) => {
23030
+ }), ic = (i) => Nv(i, !1, !0), Hv = (i) => Nv(i, !0, !1), zv = (i, e) => Zo(i, (t) => {
23031
23031
  let n = t.head, { state: r } = i, o = r.doc.lineAt(n), s = r.charCategorizer(n);
23032
23032
  for (let l = null; ; ) {
23033
23033
  if (n == (e ? o.to : o.from)) {
@@ -23071,7 +23071,7 @@ const Nv = (i, e, t) => Zo(i, (n) => {
23071
23071
  });
23072
23072
  return t.changes.empty ? !1 : (e(i.update(t, { scrollIntoView: !0, userEvent: "move.character" })), !0);
23073
23073
  };
23074
- function ta(i) {
23074
+ function ea(i) {
23075
23075
  let e = [], t = -1;
23076
23076
  for (let n of i.selection.ranges) {
23077
23077
  let r = i.doc.lineAt(n.from), o = i.doc.lineAt(n.to);
@@ -23088,7 +23088,7 @@ function Wv(i, e, t) {
23088
23088
  if (i.readOnly)
23089
23089
  return !1;
23090
23090
  let n = [], r = [];
23091
- for (let o of ta(i)) {
23091
+ for (let o of ea(i)) {
23092
23092
  if (t ? o.to == i.doc.length : o.from == 0)
23093
23093
  continue;
23094
23094
  let s = i.doc.lineAt(t ? o.to + 1 : o.from - 1), l = s.length + 1;
@@ -23114,14 +23114,14 @@ function Qv(i, e, t) {
23114
23114
  if (i.readOnly)
23115
23115
  return !1;
23116
23116
  let n = [];
23117
- for (let r of ta(i))
23117
+ for (let r of ea(i))
23118
23118
  t ? n.push({ from: r.from, insert: i.doc.slice(r.from, r.to) + i.lineBreak }) : n.push({ from: r.to, insert: i.lineBreak + i.doc.slice(r.from, r.to) });
23119
23119
  return e(i.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0;
23120
23120
  }
23121
23121
  const wM = ({ state: i, dispatch: e }) => Qv(i, e, !1), SM = ({ state: i, dispatch: e }) => Qv(i, e, !0), CM = (i) => {
23122
23122
  if (i.state.readOnly)
23123
23123
  return !1;
23124
- let { state: e } = i, t = e.changes(ta(e).map(({ from: r, to: o }) => (r > 0 ? r-- : o < e.doc.length && o++, { from: r, to: o }))), n = Kr(e.selection, (r) => {
23124
+ let { state: e } = i, t = e.changes(ea(e).map(({ from: r, to: o }) => (r > 0 ? r-- : o < e.doc.length && o++, { from: r, to: o }))), n = Kr(e.selection, (r) => {
23125
23125
  let o;
23126
23126
  if (i.lineWrapping) {
23127
23127
  let s = i.lineBlockAt(r.head), l = i.coordsAtPos(r.head, r.assoc || 1);
@@ -23145,7 +23145,7 @@ function Uv(i) {
23145
23145
  let n = e.changeByRange((r) => {
23146
23146
  let { from: o, to: s } = r, l = e.doc.lineAt(o), a = !i && o == s && MM(e, o);
23147
23147
  i && (o = s = (s <= l.to ? l : e.doc.lineAt(s)).to);
23148
- let u = new Jl(e, { simulateBreak: o, simulateDoubleBreak: !!a }), c = Uc(u, o);
23148
+ let u = new Gl(e, { simulateBreak: o, simulateDoubleBreak: !!a }), c = Uc(u, o);
23149
23149
  for (c == null && (c = Ur(/^\s*/.exec(e.doc.lineAt(o).text)[0], e.tabSize)); s < l.to && /\s/.test(l.text[s - l.from]); )
23150
23150
  s++;
23151
23151
  a ? { from: o, to: s } = a : o > l.from && o < l.from + 100 && !/\S/.test(l.text.slice(0, o)) && (o = l.from);
@@ -23176,7 +23176,7 @@ function Jc(i, e) {
23176
23176
  const OM = ({ state: i, dispatch: e }) => {
23177
23177
  if (i.readOnly)
23178
23178
  return !1;
23179
- let t = /* @__PURE__ */ Object.create(null), n = new Jl(i, { overrideIndentation: (o) => {
23179
+ let t = /* @__PURE__ */ Object.create(null), n = new Gl(i, { overrideIndentation: (o) => {
23180
23180
  let s = t[o];
23181
23181
  return s ?? -1;
23182
23182
  } }), r = Jc(i, (o, s, l) => {
@@ -23189,7 +23189,7 @@ const OM = ({ state: i, dispatch: e }) => {
23189
23189
  });
23190
23190
  return r.changes.empty || e(i.update(r, { userEvent: "indent" })), !0;
23191
23191
  }, Kv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Jc(i, (t, n) => {
23192
- n.push({ from: t.from, insert: i.facet(Gl) });
23192
+ n.push({ from: t.from, insert: i.facet(Yl) });
23193
23193
  }), { userEvent: "input.indent" })), !0), Yv = ({ state: i, dispatch: e }) => i.readOnly ? !1 : (e(i.update(Jc(i, (t, n) => {
23194
23194
  let r = /^\s*/.exec(t.text)[0];
23195
23195
  if (!r)
@@ -23206,12 +23206,12 @@ const OM = ({ state: i, dispatch: e }) => {
23206
23206
  { key: "Ctrl-a", run: YC, shift: sM },
23207
23207
  { key: "Ctrl-e", run: GC, shift: lM },
23208
23208
  { key: "Ctrl-d", run: Hv },
23209
- { key: "Ctrl-h", run: nc },
23209
+ { key: "Ctrl-h", run: ic },
23210
23210
  { key: "Ctrl-k", run: gM },
23211
23211
  { key: "Ctrl-Alt-h", run: jv },
23212
23212
  { key: "Ctrl-o", run: yM },
23213
23213
  { key: "Ctrl-t", run: bM },
23214
- { key: "Ctrl-v", run: ic }
23214
+ { key: "Ctrl-v", run: tc }
23215
23215
  ], qM = /* @__PURE__ */ [
23216
23216
  { key: "ArrowLeft", run: Sv, shift: _v, preventDefault: !0 },
23217
23217
  { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: FC, shift: $C, preventDefault: !0 },
@@ -23224,16 +23224,16 @@ const OM = ({ state: i, dispatch: e }) => {
23224
23224
  { mac: "Ctrl-ArrowUp", run: Md, shift: Ad },
23225
23225
  { key: "ArrowDown", run: Tv, shift: Iv, preventDefault: !0 },
23226
23226
  { mac: "Cmd-ArrowDown", run: Dd, shift: Pd },
23227
- { mac: "Ctrl-ArrowDown", run: ic, shift: Od },
23227
+ { mac: "Ctrl-ArrowDown", run: tc, shift: Od },
23228
23228
  { key: "PageUp", run: Md, shift: Ad },
23229
- { key: "PageDown", run: ic, shift: Od },
23229
+ { key: "PageDown", run: tc, shift: Od },
23230
23230
  { key: "Home", run: QC, shift: nM, preventDefault: !0 },
23231
23231
  { key: "Mod-Home", run: Td, shift: qd },
23232
23232
  { key: "End", run: WC, shift: iM, preventDefault: !0 },
23233
23233
  { key: "Mod-End", run: Dd, shift: Pd },
23234
23234
  { key: "Enter", run: _d, shift: _d },
23235
23235
  { key: "Mod-a", run: aM },
23236
- { key: "Backspace", run: nc, shift: nc, preventDefault: !0 },
23236
+ { key: "Backspace", run: ic, shift: ic, preventDefault: !0 },
23237
23237
  { key: "Delete", run: Hv, preventDefault: !0 },
23238
23238
  { key: "Mod-Backspace", mac: "Alt-Backspace", run: jv, preventDefault: !0 },
23239
23239
  { key: "Mod-Delete", mac: "Alt-Delete", run: mM, preventDefault: !0 },
@@ -23373,7 +23373,7 @@ class Jv {
23373
23373
  }
23374
23374
  }
23375
23375
  }
23376
- const Ga = /* @__PURE__ */ new WeakMap();
23376
+ const Ya = /* @__PURE__ */ new WeakMap();
23377
23377
  class qr {
23378
23378
  constructor(e, t) {
23379
23379
  this.from = e, this.text = t;
@@ -23382,15 +23382,15 @@ class qr {
23382
23382
  return this.from + this.text.length;
23383
23383
  }
23384
23384
  static get(e, t, n) {
23385
- let r = Ga.get(e);
23385
+ let r = Ya.get(e);
23386
23386
  if (!r || r.from >= n || r.to <= t) {
23387
23387
  let l = new qr(t, e.sliceString(t, n));
23388
- return Ga.set(e, l), l;
23388
+ return Ya.set(e, l), l;
23389
23389
  }
23390
23390
  if (r.from == t && r.to == n)
23391
23391
  return r;
23392
23392
  let { text: o, from: s } = r;
23393
- return s > t && (o = e.sliceString(t, s) + o, s = t), r.to < n && (o += e.sliceString(r.to, n)), Ga.set(e, new qr(s, o)), new qr(t, o.slice(t - s, n - s));
23393
+ return s > t && (o = e.sliceString(t, s) + o, s = t), r.to < n && (o += e.sliceString(r.to, n)), Ya.set(e, new qr(s, o)), new qr(t, o.slice(t - s, n - s));
23394
23394
  }
23395
23395
  }
23396
23396
  class Xv {
@@ -23435,7 +23435,7 @@ function Cl(i, e) {
23435
23435
  e++;
23436
23436
  return e;
23437
23437
  }
23438
- function rc(i) {
23438
+ function nc(i) {
23439
23439
  let e = String(i.state.doc.lineAt(i.state.selection.main.head).number), t = Ye("input", { class: "cm-textfield", name: "line", value: e }), n = Ye("form", {
23440
23440
  class: "cm-gotoLine",
23441
23441
  onkeydown: (o) => {
@@ -23478,12 +23478,12 @@ const bo = /* @__PURE__ */ Ae.define(), Rd = /* @__PURE__ */ Mt.define({
23478
23478
  t.is(bo) && (i = t.value);
23479
23479
  return i;
23480
23480
  },
23481
- provide: (i) => _o.from(i, (e) => e ? rc : null)
23481
+ provide: (i) => _o.from(i, (e) => e ? nc : null)
23482
23482
  }), RM = (i) => {
23483
- let e = Po(i, rc);
23483
+ let e = Po(i, nc);
23484
23484
  if (!e) {
23485
23485
  let t = [bo.of(!0)];
23486
- i.state.field(Rd, !1) == null && t.push(Ae.appendConfig.of([Rd, EM])), i.dispatch({ effects: t }), e = Po(i, rc);
23486
+ i.state.field(Rd, !1) == null && t.push(Ae.appendConfig.of([Rd, EM])), i.dispatch({ effects: t }), e = Po(i, nc);
23487
23487
  }
23488
23488
  return e && e.dom.querySelector("input").select(), !0;
23489
23489
  }, EM = /* @__PURE__ */ ce.baseTheme({
@@ -23785,16 +23785,16 @@ class JM extends Zv {
23785
23785
  }
23786
23786
  const Lo = /* @__PURE__ */ Ae.define(), $c = /* @__PURE__ */ Ae.define(), Tn = /* @__PURE__ */ Mt.define({
23787
23787
  create(i) {
23788
- return new Ja(oc(i).create(), null);
23788
+ return new Ga(rc(i).create(), null);
23789
23789
  },
23790
23790
  update(i, e) {
23791
23791
  for (let t of e.effects)
23792
- t.is(Lo) ? i = new Ja(t.value.create(), i.panel) : t.is($c) && (i = new Ja(i.query, t.value ? Zc : null));
23792
+ t.is(Lo) ? i = new Ga(t.value.create(), i.panel) : t.is($c) && (i = new Ga(i.query, t.value ? Zc : null));
23793
23793
  return i;
23794
23794
  },
23795
23795
  provide: (i) => _o.from(i, (e) => e.panel)
23796
23796
  });
23797
- class Ja {
23797
+ class Ga {
23798
23798
  constructor(e, t) {
23799
23799
  this.query = e, this.panel = t;
23800
23800
  }
@@ -23906,7 +23906,7 @@ const Ol = /* @__PURE__ */ es((i, { query: e }) => {
23906
23906
  function Zc(i) {
23907
23907
  return i.state.facet(Yr).createPanel(i);
23908
23908
  }
23909
- function oc(i, e) {
23909
+ function rc(i, e) {
23910
23910
  var t, n, r, o, s;
23911
23911
  let l = i.selection.main, a = l.empty || l.to > l.from + 100 ? "" : i.sliceDoc(l.from, l.to);
23912
23912
  if (e && !a)
@@ -23933,13 +23933,13 @@ const i0 = (i) => {
23933
23933
  if (e && e.panel) {
23934
23934
  let t = e0(i);
23935
23935
  if (t && t != i.root.activeElement) {
23936
- let n = oc(i.state, e.query.spec);
23936
+ let n = rc(i.state, e.query.spec);
23937
23937
  n.valid && i.dispatch({ effects: Lo.of(n) }), t.focus(), t.select();
23938
23938
  }
23939
23939
  } else
23940
23940
  i.dispatch({ effects: [
23941
23941
  $c.of(!0),
23942
- e ? Lo.of(oc(i.state, e.query.spec)) : Ae.appendConfig.of(sA)
23942
+ e ? Lo.of(rc(i.state, e.query.spec)) : Ae.appendConfig.of(sA)
23943
23943
  ] });
23944
23944
  return !0;
23945
23945
  }, n0 = (i) => {
@@ -24388,7 +24388,7 @@ function mA(i) {
24388
24388
  position: 80
24389
24389
  }), e.sort((t, n) => t.position - n.position).map((t) => t.render);
24390
24390
  }
24391
- function Xa(i, e, t) {
24391
+ function Ja(i, e, t) {
24392
24392
  if (i <= t)
24393
24393
  return { from: 0, to: i };
24394
24394
  if (e < 0 && (e = 0), e <= i >> 1) {
@@ -24406,7 +24406,7 @@ class gA {
24406
24406
  key: this
24407
24407
  }, this.space = null, this.currentClass = "";
24408
24408
  let r = e.state.field(t), { options: o, selected: s } = r.open, l = e.state.facet(Dt);
24409
- this.optionContent = mA(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = Xa(o.length, s, l.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => {
24409
+ this.optionContent = mA(l), this.optionClass = l.optionClass, this.tooltipClass = l.tooltipClass, this.range = Ja(o.length, s, l.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (a) => {
24410
24410
  let { options: u } = e.state.field(t).open;
24411
24411
  for (let c = a.target, h; c && c != this.dom; c = c.parentNode)
24412
24412
  if (c.nodeName == "LI" && (h = /-(\d+)$/.exec(c.id)) && +h[1] < u.length) {
@@ -24431,7 +24431,7 @@ class gA {
24431
24431
  let n = e.state.field(this.stateField), r = e.startState.field(this.stateField);
24432
24432
  if (this.updateTooltipClass(e.state), n != r) {
24433
24433
  let { options: o, selected: s, disabled: l } = n.open;
24434
- (!r.open || r.open.options != o) && (this.range = Xa(o.length, s, e.state.facet(Dt).maxRenderedOptions), this.showOptions(o, n.id)), this.updateSel(), l != ((t = r.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!l);
24434
+ (!r.open || r.open.options != o) && (this.range = Ja(o.length, s, e.state.facet(Dt).maxRenderedOptions), this.showOptions(o, n.id)), this.updateSel(), l != ((t = r.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!l);
24435
24435
  }
24436
24436
  }
24437
24437
  updateTooltipClass(e) {
@@ -24449,7 +24449,7 @@ class gA {
24449
24449
  }
24450
24450
  updateSel() {
24451
24451
  let e = this.view.state.field(this.stateField), t = e.open;
24452
- (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Xa(t.options.length, t.selected, this.view.state.facet(Dt).maxRenderedOptions), this.showOptions(t.options, e.id));
24452
+ (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Ja(t.options.length, t.selected, this.view.state.facet(Dt).maxRenderedOptions), this.showOptions(t.options, e.id));
24453
24453
  let n = this.updateSelectedOption(t.selected);
24454
24454
  if (n) {
24455
24455
  this.destroyInfo();
@@ -24787,7 +24787,7 @@ const th = /* @__PURE__ */ Ae.define({
24787
24787
  return i.update(e);
24788
24788
  },
24789
24789
  provide: (i) => [
24790
- Kl.from(i, (e) => e.tooltip),
24790
+ Ul.from(i, (e) => e.tooltip),
24791
24791
  ce.contentAttributes.from(i, (e) => e.attrs)
24792
24792
  ]
24793
24793
  });
@@ -24814,7 +24814,7 @@ function _s(i, e = "option") {
24814
24814
  const MA = (i) => {
24815
24815
  let e = i.state.field(oi, !1);
24816
24816
  return i.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < i.state.facet(Dt).interactionDelay ? !1 : ih(i, e.open.options[e.open.selected]);
24817
- }, $a = (i) => i.state.field(oi, !1) ? (i.dispatch({ effects: Dl.of(!0) }), !0) : !1, AA = (i) => {
24817
+ }, Xa = (i) => i.state.field(oi, !1) ? (i.dispatch({ effects: Dl.of(!0) }), !0) : !1, AA = (i) => {
24818
24818
  let e = i.state.field(oi, !1);
24819
24819
  return !e || !e.active.some(
24820
24820
  (t) => t.state != 0
@@ -25089,11 +25089,11 @@ const u0 = /* @__PURE__ */ Mt.define({
25089
25089
  function RA() {
25090
25090
  return [LA, u0];
25091
25091
  }
25092
- const Za = "()[]{}<>«»»«[]{}";
25092
+ const $a = "()[]{}<>«»»«[]{}";
25093
25093
  function c0(i) {
25094
- for (let e = 0; e < Za.length; e += 2)
25095
- if (Za.charCodeAt(e) == i)
25096
- return Za.charAt(e + 1);
25094
+ for (let e = 0; e < $a.length; e += 2)
25095
+ if ($a.charCodeAt(e) == i)
25096
+ return $a.charAt(e + 1);
25097
25097
  return Tc(i < 128 ? i : i + 1);
25098
25098
  }
25099
25099
  function h0(i, e) {
@@ -25114,7 +25114,7 @@ const EA = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
25114
25114
  if (s.empty) {
25115
25115
  let l = NA(i.doc, s.head);
25116
25116
  for (let a of n)
25117
- if (a == l && ia(i.doc, s.head) == c0(ri(a, 0)))
25117
+ if (a == l && ta(i.doc, s.head) == c0(ri(a, 0)))
25118
25118
  return {
25119
25119
  changes: { from: s.head - a.length, to: s.head + a.length },
25120
25120
  range: K.cursor(s.head - a.length)
@@ -25143,7 +25143,7 @@ function f0(i, e) {
25143
25143
  n == e && (t = !0);
25144
25144
  }), t;
25145
25145
  }
25146
- function ia(i, e) {
25146
+ function ta(i, e) {
25147
25147
  let t = i.sliceString(e, e + 2);
25148
25148
  return t.slice(0, Hi(ri(t, 0)));
25149
25149
  }
@@ -25159,7 +25159,7 @@ function HA(i, e, t, n) {
25159
25159
  effects: Jn.of(s.to + e.length),
25160
25160
  range: K.range(s.anchor + e.length, s.head + e.length)
25161
25161
  };
25162
- let l = ia(i.doc, s.head);
25162
+ let l = ta(i.doc, s.head);
25163
25163
  return !l || /\s/.test(l) || n.indexOf(l) > -1 ? {
25164
25164
  changes: { insert: e + t, from: s.head },
25165
25165
  effects: Jn.of(s.head + e.length),
@@ -25172,7 +25172,7 @@ function HA(i, e, t, n) {
25172
25172
  });
25173
25173
  }
25174
25174
  function zA(i, e, t) {
25175
- let n = null, r = i.changeByRange((o) => o.empty && ia(i.doc, o.head) == t ? {
25175
+ let n = null, r = i.changeByRange((o) => o.empty && ta(i.doc, o.head) == t ? {
25176
25176
  changes: { from: o.head, to: o.head + t.length, insert: t },
25177
25177
  range: K.cursor(o.head + t.length)
25178
25178
  } : n = { range: o });
@@ -25189,7 +25189,7 @@ function jA(i, e, t, n) {
25189
25189
  effects: Jn.of(l.to + e.length),
25190
25190
  range: K.range(l.anchor + e.length, l.head + e.length)
25191
25191
  };
25192
- let a = l.head, u = ia(i.doc, a), c;
25192
+ let a = l.head, u = ta(i.doc, a), c;
25193
25193
  if (u == e) {
25194
25194
  if (jd(i, a))
25195
25195
  return {
@@ -25271,9 +25271,9 @@ function QA(i = {}) {
25271
25271
  ];
25272
25272
  }
25273
25273
  const d0 = [
25274
- { key: "Ctrl-Space", run: $a },
25275
- { mac: "Alt-`", run: $a },
25276
- { mac: "Alt-i", run: $a },
25274
+ { key: "Ctrl-Space", run: Xa },
25275
+ { mac: "Alt-`", run: Xa },
25276
+ { mac: "Alt-i", run: Xa },
25277
25277
  { key: "Escape", run: AA },
25278
25278
  { key: "ArrowDown", run: /* @__PURE__ */ _s(!0) },
25279
25279
  { key: "ArrowUp", run: /* @__PURE__ */ _s(!1) },
@@ -25371,17 +25371,17 @@ function m0(i, e) {
25371
25371
  if (r != null)
25372
25372
  return r;
25373
25373
  let o = i.startState.doc.lineAt(e.pos);
25374
- return !!(i.effects.some((s) => s.is(na)) || i.changes.touchesRange(o.from, Math.max(o.to, n)));
25374
+ return !!(i.effects.some((s) => s.is(ia)) || i.changes.touchesRange(o.from, Math.max(o.to, n)));
25375
25375
  }
25376
25376
  function g0(i, e) {
25377
25377
  return i.field(mi, !1) ? e : e.concat(Ae.appendConfig.of(S0));
25378
25378
  }
25379
25379
  function KA(i, e) {
25380
25380
  return {
25381
- effects: g0(i, [na.of(e)])
25381
+ effects: g0(i, [ia.of(e)])
25382
25382
  };
25383
25383
  }
25384
- const na = /* @__PURE__ */ Ae.define(), rh = /* @__PURE__ */ Ae.define(), p0 = /* @__PURE__ */ Ae.define(), mi = /* @__PURE__ */ Mt.define({
25384
+ const ia = /* @__PURE__ */ Ae.define(), rh = /* @__PURE__ */ Ae.define(), p0 = /* @__PURE__ */ Ae.define(), mi = /* @__PURE__ */ Mt.define({
25385
25385
  create() {
25386
25386
  return new Qn(xe.none, null, null);
25387
25387
  },
@@ -25395,7 +25395,7 @@ const na = /* @__PURE__ */ Ae.define(), rh = /* @__PURE__ */ Ae.define(), p0 = /
25395
25395
  !t.size && r && e.state.facet(Qi).autoPanel && (r = null), i = new Qn(t, r, n);
25396
25396
  }
25397
25397
  for (let t of e.effects)
25398
- if (t.is(na)) {
25398
+ if (t.is(ia)) {
25399
25399
  let n = e.state.facet(Qi).autoPanel ? t.value.length ? Fo.open : null : i.panel;
25400
25400
  i = Qn.init(t.value, n, e.state);
25401
25401
  } else t.is(rh) ? i = new Qn(i.diagnostics, t.value ? Fo.open : null, i.selected) : t.is(p0) && (i = new Qn(i.diagnostics, i.panel, t.value));
@@ -25795,7 +25795,7 @@ class k0 extends Gi {
25795
25795
  toDOM(e) {
25796
25796
  let t = document.createElement("div");
25797
25797
  t.className = "cm-lint-marker cm-lint-marker-" + this.severity;
25798
- let n = this.diagnostics, r = e.state.facet(ra).tooltipFilter;
25798
+ let n = this.diagnostics, r = e.state.facet(na).tooltipFilter;
25799
25799
  return r && (n = r(n, e.state)), n.length && (t.onmouseover = () => sO(e, t, n)), t;
25800
25800
  }
25801
25801
  }
@@ -25826,7 +25826,7 @@ function sO(i, e, t) {
25826
25826
  }
25827
25827
  }) }), e.onmouseout = e.onmousemove = null, oO(i, e);
25828
25828
  }
25829
- let { hoverTime: r } = i.state.facet(ra), o = setTimeout(n, r);
25829
+ let { hoverTime: r } = i.state.facet(na), o = setTimeout(n, r);
25830
25830
  e.onmouseout = () => {
25831
25831
  clearTimeout(o), e.onmouseout = e.onmousemove = null;
25832
25832
  }, e.onmousemove = () => {
@@ -25846,22 +25846,22 @@ function lO(i, e) {
25846
25846
  }
25847
25847
  const aO = /* @__PURE__ */ zp({
25848
25848
  class: "cm-gutter-lint",
25849
- markers: (i) => i.state.field(sc),
25849
+ markers: (i) => i.state.field(oc),
25850
25850
  widgetMarker: (i, e, t) => {
25851
25851
  let n = [];
25852
- return i.state.field(sc).between(t.from, t.to, (r, o, s) => {
25852
+ return i.state.field(oc).between(t.from, t.to, (r, o, s) => {
25853
25853
  r > t.from && r < t.to && n.push(...s.diagnostics);
25854
25854
  }), n.length ? new k0(n) : null;
25855
25855
  }
25856
- }), sc = /* @__PURE__ */ Mt.define({
25856
+ }), oc = /* @__PURE__ */ Mt.define({
25857
25857
  create() {
25858
25858
  return Le.empty;
25859
25859
  },
25860
25860
  update(i, e) {
25861
25861
  i = i.map(e.changes);
25862
- let t = e.state.facet(ra).markerFilter;
25862
+ let t = e.state.facet(na).markerFilter;
25863
25863
  for (let n of e.effects)
25864
- if (n.is(na)) {
25864
+ if (n.is(ia)) {
25865
25865
  let r = n.value;
25866
25866
  t && (r = t(r || [], e.state)), i = lO(e.state.doc, r.slice(0));
25867
25867
  }
@@ -25874,7 +25874,7 @@ const aO = /* @__PURE__ */ zp({
25874
25874
  update(i, e) {
25875
25875
  return i && e.docChanged && (i = m0(e, i) ? null : { ...i, pos: e.changes.mapPos(i.pos) }), e.effects.reduce((t, n) => n.is(oh) ? n.value : t, i);
25876
25876
  },
25877
- provide: (i) => Kl.from(i)
25877
+ provide: (i) => Ul.from(i)
25878
25878
  }), uO = /* @__PURE__ */ ce.baseTheme({
25879
25879
  ".cm-gutter-lint": {
25880
25880
  width: "1.4em",
@@ -25905,7 +25905,7 @@ const aO = /* @__PURE__ */ zp({
25905
25905
  }),
25906
25906
  /* @__PURE__ */ eS(GA, { hideOn: m0 }),
25907
25907
  nO
25908
- ], ra = /* @__PURE__ */ de.define({
25908
+ ], na = /* @__PURE__ */ de.define({
25909
25909
  combine(i) {
25910
25910
  return Pi(i, {
25911
25911
  hoverTime: 300,
@@ -25915,7 +25915,7 @@ const aO = /* @__PURE__ */ zp({
25915
25915
  }
25916
25916
  });
25917
25917
  function cO(i = {}) {
25918
- return [ra.of(i), sc, aO, uO, w0];
25918
+ return [na.of(i), oc, aO, uO, w0];
25919
25919
  }
25920
25920
  const hO = [
25921
25921
  Qp(),
@@ -25994,7 +25994,7 @@ Un[$t.Change] = function(i, e) {
25994
25994
  var C0 = {};
25995
25995
  C0[$t.ModelUpdate] = Un[$t.Change];
25996
25996
  var yO = Object.assign(Object.assign({}, Un), C0), bO = Pt({ name: "VueCodemirror", props: Object.assign({}, vO), emits: Object.assign({}, yO), setup: function(i, e) {
25997
- var t = ua(), n = ua(), r = ua(), o = Object.assign(Object.assign({}, fO), No(dO, {})), s = b(function() {
25997
+ var t = aa(), n = aa(), r = aa(), o = Object.assign(Object.assign({}, fO), No(dO, {})), s = b(function() {
25998
25998
  var l = {};
25999
25999
  return Object.keys(zn(i)).forEach(function(a) {
26000
26000
  var u;
@@ -26023,7 +26023,7 @@ var yO = Object.assign(Object.assign({}, Un), C0), bO = Pt({ name: "VueCodemirro
26023
26023
  }, getDoc: c, setDoc: function(k) {
26024
26024
  k !== c() && u.dispatch({ changes: { from: 0, to: u.state.doc.length, insert: k } });
26025
26025
  }, reExtensions: h, toggleDisabled: f, toggleIndentWithTab: d, setTabSize: function(k) {
26026
- m([Ee.tabSize.of(k), Gl.of(" ".repeat(k))]);
26026
+ m([Ee.tabSize.of(k), Yl.of(" ".repeat(k))]);
26027
26027
  }, setPhrases: function(k) {
26028
26028
  p([Ee.phrases.of(k)]);
26029
26029
  }, setPlaceholder: function(k) {
@@ -26721,7 +26721,7 @@ function CO(i, e, t, n) {
26721
26721
  return r < 0 || $d(t, n, i) < r;
26722
26722
  }
26723
26723
  const ui = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
26724
- let eu = null;
26724
+ let Za = null;
26725
26725
  function Zd(i, e, t) {
26726
26726
  let n = i.cursor(Ot.IncludeAnonymous);
26727
26727
  for (n.moveTo(e); ; )
@@ -27042,8 +27042,8 @@ class OO {
27042
27042
  });
27043
27043
  }
27044
27044
  stackID(e) {
27045
- let t = (eu || (eu = /* @__PURE__ */ new WeakMap())).get(e);
27046
- return t || eu.set(e, t = String.fromCodePoint(this.nextStackID++)), t + e;
27045
+ let t = (Za || (Za = /* @__PURE__ */ new WeakMap())).get(e);
27046
+ return t || Za.set(e, t = String.fromCodePoint(this.nextStackID++)), t + e;
27047
27047
  }
27048
27048
  }
27049
27049
  function em(i, e) {
@@ -27403,7 +27403,7 @@ const RO = /* @__PURE__ */ yl.define({
27403
27403
  function EO() {
27404
27404
  return new _S(RO);
27405
27405
  }
27406
- const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb2bf", lc = "#7d8799", FO = "#61afef", NO = "#98c379", nm = "#d19a66", HO = "#c678dd", zO = "#21252b", rm = "#2c313a", om = "#282c34", tu = "#353a42", jO = "#3E4451", sm = "#528bff", WO = /* @__PURE__ */ ce.theme({
27406
+ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb2bf", sc = "#7d8799", FO = "#61afef", NO = "#98c379", nm = "#d19a66", HO = "#c678dd", zO = "#21252b", rm = "#2c313a", om = "#282c34", eu = "#353a42", jO = "#3E4451", sm = "#528bff", WO = /* @__PURE__ */ ce.theme({
27407
27407
  "&": {
27408
27408
  color: Xs,
27409
27409
  backgroundColor: om
@@ -27430,7 +27430,7 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
27430
27430
  },
27431
27431
  ".cm-gutters": {
27432
27432
  backgroundColor: om,
27433
- color: lc,
27433
+ color: sc,
27434
27434
  border: "none"
27435
27435
  },
27436
27436
  ".cm-activeLineGutter": {
@@ -27443,15 +27443,15 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
27443
27443
  },
27444
27444
  ".cm-tooltip": {
27445
27445
  border: "none",
27446
- backgroundColor: tu
27446
+ backgroundColor: eu
27447
27447
  },
27448
27448
  ".cm-tooltip .cm-tooltip-arrow:before": {
27449
27449
  borderTopColor: "transparent",
27450
27450
  borderBottomColor: "transparent"
27451
27451
  },
27452
27452
  ".cm-tooltip .cm-tooltip-arrow:after": {
27453
- borderTopColor: tu,
27454
- borderBottomColor: tu
27453
+ borderTopColor: eu,
27454
+ borderBottomColor: eu
27455
27455
  },
27456
27456
  ".cm-tooltip-autocomplete": {
27457
27457
  "& > ul > li[aria-selected]": {
@@ -27490,7 +27490,7 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
27490
27490
  },
27491
27491
  {
27492
27492
  tag: [j.meta, j.comment],
27493
- color: lc
27493
+ color: sc
27494
27494
  },
27495
27495
  {
27496
27496
  tag: j.strong,
@@ -27506,7 +27506,7 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", Xs = "#abb
27506
27506
  },
27507
27507
  {
27508
27508
  tag: j.link,
27509
- color: lc,
27509
+ color: sc,
27510
27510
  textDecoration: "underline"
27511
27511
  },
27512
27512
  {
@@ -27791,7 +27791,7 @@ const lm = /* @__PURE__ */ Ut(KO, [["render", tT], ["__file", "/Users/zachsherbo
27791
27791
  });
27792
27792
  Array.isArray(n.value) || r([], !1);
27793
27793
  const h = b(() => {
27794
- const v = Hl(
27794
+ const v = Nl(
27795
27795
  t.schema,
27796
27796
  c == null ? void 0 : c.componentDefaults,
27797
27797
  "select"
@@ -28290,9 +28290,9 @@ const hT = ["click", "keydown"], fT = {
28290
28290
  }
28291
28291
  };
28292
28292
  function dT(i, e, t, n) {
28293
- const r = No(Mm, da);
28294
- if (r === da)
28295
- return console.error("QTab/QRouteTab component needs to be child of QTabs"), da;
28293
+ const r = No(Mm, fa);
28294
+ if (r === fa)
28295
+ return console.error("QTab/QRouteTab component needs to be child of QTabs"), fa;
28296
28296
  const { proxy: o } = je(), s = J(null), l = J(null), a = J(null), u = b(() => i.disable === !0 || i.ripple === !1 ? !1 : Object.assign(
28297
28297
  { keyCodes: [13, 32], early: !0 },
28298
28298
  i.ripple === !0 ? {} : i.ripple
@@ -28309,7 +28309,7 @@ function dT(i, e, t, n) {
28309
28309
  }
28310
28310
  }
28311
28311
  function p(y) {
28312
- an(y, [13, 32]) ? m(y, !0) : Nl(y) !== !0 && y.keyCode >= 35 && y.keyCode <= 40 && y.altKey !== !0 && y.metaKey !== !0 && r.onKbdNavigate(y.keyCode, o.$el) === !0 && ct(y), t("keydown", y);
28312
+ an(y, [13, 32]) ? m(y, !0) : Fl(y) !== !0 && y.keyCode >= 35 && y.keyCode <= 40 && y.altKey !== !0 && y.metaKey !== !0 && r.onKbdNavigate(y.keyCode, o.$el) === !0 && ct(y), t("keydown", y);
28313
28313
  }
28314
28314
  function g() {
28315
28315
  const y = r.tabProps.value.narrowIndicator, x = [], C = A("div", {
@@ -28546,7 +28546,7 @@ const mT = Je({
28546
28546
  }, get QTab() {
28547
28547
  return mT;
28548
28548
  }, get FieldRenderer() {
28549
- return El;
28549
+ return Rl;
28550
28550
  } };
28551
28551
  return Object.defineProperty(Y, "__isScriptSetup", { enumerable: !1, value: !0 }), Y;
28552
28552
  }
@@ -28782,7 +28782,7 @@ const um = /* @__PURE__ */ Ut(gT, [["render", CT], ["__file", "/Users/zachsherbo
28782
28782
  const a = { ...t.schema };
28783
28783
  return delete a.allOf, o.mergeSchemas(a, ...t.schema.allOf);
28784
28784
  }), l = { props: t, label: n, fieldGap: r, schemaUtils: o, mergedSchema: s, get FieldRenderer() {
28785
- return El;
28785
+ return Rl;
28786
28786
  } };
28787
28787
  return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
28788
28788
  }
@@ -28832,13 +28832,13 @@ function Wr() {
28832
28832
  return `cond-${++DT}-${Date.now()}`;
28833
28833
  }
28834
28834
  function cm(i, e = {}) {
28835
- return i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? Rl(i.conditions[0], e) : {
28836
- [i.logic]: i.conditions.map((t) => Rl(t, e))
28835
+ return i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? lc(i.conditions[0], e) : {
28836
+ [i.logic]: i.conditions.map((t) => lc(t, e))
28837
28837
  };
28838
28838
  }
28839
- function Rl(i, e) {
28840
- return i.type === "group" ? i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? Rl(i.conditions[0], e) : {
28841
- [i.logic]: i.conditions.map((t) => Rl(t, e))
28839
+ function lc(i, e) {
28840
+ return i.type === "group" ? i.conditions.length === 0 ? !0 : {
28841
+ [i.logic]: i.conditions.map((t) => lc(t, e))
28842
28842
  } : qT(i, e);
28843
28843
  }
28844
28844
  function qT(i, e) {
@@ -28956,9 +28956,22 @@ function _T(i, e) {
28956
28956
  if (t.length === 0)
28957
28957
  return An();
28958
28958
  const n = t[0], r = i[n];
28959
+ if (n === "!" && typeof r == "object" && r !== null && "in" in r) {
28960
+ const l = r.in;
28961
+ if (Array.isArray(l) && l.length >= 2) {
28962
+ const a = Ls(l[0], e.useTemplateSyntax), u = Ls(l[1], e.useTemplateSyntax);
28963
+ return {
28964
+ id: Wr(),
28965
+ type: "condition",
28966
+ left: a,
28967
+ operator: "!in",
28968
+ right: u
28969
+ };
28970
+ }
28971
+ }
28959
28972
  if (!Array.isArray(r))
28960
28973
  return An();
28961
- const o = {
28974
+ const s = {
28962
28975
  "==": "==",
28963
28976
  "===": "==",
28964
28977
  "!=": "!=",
@@ -28969,21 +28982,7 @@ function _T(i, e) {
28969
28982
  "<=": "<=",
28970
28983
  in: "in",
28971
28984
  matches: "matches"
28972
- };
28973
- if (n === "!" && typeof r[0] == "object" && r[0] !== null && "in" in r[0]) {
28974
- const l = r[0].in;
28975
- if (Array.isArray(l) && l.length >= 2) {
28976
- const a = Ls(l[0], e.useTemplateSyntax), u = Ls(l[1], e.useTemplateSyntax);
28977
- return console.log("[JSONLogic] Parsing negated in:", { inArgs: l, left: a, right: u, useTemplateSyntax: e.useTemplateSyntax }), {
28978
- id: Wr(),
28979
- type: "condition",
28980
- left: a,
28981
- operator: "!in",
28982
- right: u
28983
- };
28984
- }
28985
- }
28986
- const s = o[n];
28985
+ }[n];
28987
28986
  return s ? {
28988
28987
  id: Wr(),
28989
28988
  type: "condition",
@@ -29068,17 +29067,9 @@ const RT = /* @__PURE__ */ Pt({
29068
29067
  k.value = !1;
29069
29068
  return;
29070
29069
  }
29071
- if (w && typeof w == "object") {
29072
- const N = fm(w, {
29073
- useTemplateSyntax: d.value
29074
- });
29075
- console.log("[QuasarJsonLogicBuilder] Loaded condition:", {
29076
- input: w,
29077
- parsed: N,
29078
- useTemplateSyntax: d.value
29079
- }), m.value = N, g.value = JSON.stringify(w, null, 2);
29080
- } else
29081
- m.value = dm(), g.value = "{}";
29070
+ w && typeof w == "object" ? (m.value = fm(w, {
29071
+ useTemplateSyntax: d.value
29072
+ }), g.value = JSON.stringify(w, null, 2)) : (m.value = dm(), g.value = "{}");
29082
29073
  },
29083
29074
  { immediate: !0 }
29084
29075
  );
@@ -29988,7 +29979,7 @@ const c2 = /* @__PURE__ */ Ut(RT, [["render", u2], ["__scopeId", "data-v-722c2e2
29988
29979
  });
29989
29980
  Array.isArray(n.value) || r([], !1);
29990
29981
  const f = b(() => {
29991
- const V = Hl(
29982
+ const V = Nl(
29992
29983
  t.schema,
29993
29984
  h == null ? void 0 : h.componentDefaults,
29994
29985
  "select"
@@ -30343,7 +30334,7 @@ export {
30343
30334
  K2 as isStringType,
30344
30335
  Y2 as isTimeFormat,
30345
30336
  G2 as isUrlFormat,
30346
- Hl as mergeQuasarProps,
30337
+ Nl as mergeQuasarProps,
30347
30338
  zy as mergeQuickFormsQuasarFeatures,
30348
30339
  J2 as not,
30349
30340
  X2 as or,