@surrealdb/ui 1.0.101 → 1.0.102

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/ui.js CHANGED
@@ -6,10 +6,10 @@ import { getIndentUnit as Qn, indentOnInput as vl, bracketMatching as kl, indent
6
6
  import { highlightSelectionMatches as Al, searchKeymap as Dl } from "@codemirror/search";
7
7
  import { Facet as Il, combineConfig as Fl, RangeSetBuilder as Nl, EditorSelection as cn, EditorState as vt, Compartment as un } from "@codemirror/state";
8
8
  import { ViewPlugin as Ll, EditorView as lt, Decoration as Bl, highlightSpecialChars as Ml, drawSelection as Kl, dropCursor as Hl, rectangularSelection as Jl, crosshairCursor as O$, keymap as Ks, highlightActiveLineGutter as e$, lineNumbers as t$ } from "@codemirror/view";
9
- import { useMantineColorScheme as i$, useComputedColorScheme as r$, Box as rO, useMantineTheme as Hs, getThemeColor as Js, getSize as Oo, Paper as tt, Text as Me, CopyButton as a$, Tooltip as Le, ActionIcon as Te, Alert as ga, Group as xe, Title as eo, Stack as Ht, Button as HO, Image as Ut, Divider as Ki, Table as H, Blockquote as Ta, Checkbox as ma, List as pn, Anchor as xa, Skeleton as Va, TextInput as wO, Flex as n$, Select as ae, Switch as me, Textarea as Gr, Menu as pO, Popover as lr, ThemeIcon as s$, Modal as to, Badge as wa, Tabs as st, TabsList as o$, TabsTab as Q$, Code as l$, createTheme as $$, Indicator as c$, Notification as u$, Pagination as p$, Kbd as d$, NavLink as h$, SegmentedControl as P$, PinInput as f$, PasswordInput as S$, TagsInput as X$, Radio as g$, MultiSelect as T$, Overlay as m$, CloseButton as x$, Loader as V$, HoverCard as w$, MenuDropdown as y$, PopoverDropdown as b$, ScrollArea as _$, Autocomplete as R$, NumberInput as Z$, InputBase as v$, rem as OO, defaultVariantColorsResolver as dn } from "@mantine/core";
9
+ import { useMantineColorScheme as i$, useComputedColorScheme as r$, Box as rO, useMantineTheme as Hs, getThemeColor as Js, getSize as Oo, Paper as tt, Text as Me, CopyButton as a$, Tooltip as Le, ActionIcon as Te, Alert as ga, Group as xe, Title as eo, Stack as Ht, Button as HO, Image as Ut, Divider as Ki, Table as H, Blockquote as Ta, Checkbox as ma, List as pn, Anchor as xa, Skeleton as Va, TextInput as wO, Flex as n$, Select as ae, Switch as me, Textarea as Gr, Menu as pO, Popover as lr, ThemeIcon as s$, Modal as to, Badge as wa, Tabs as st, TabsList as o$, TabsTab as Q$, Code as l$, createTheme as $$, Indicator as c$, Notification as u$, Pagination as p$, Kbd as d$, NavLink as h$, SegmentedControl as P$, PinInput as f$, PasswordInput as S$, TagsInput as X$, Radio as g$, MultiSelect as T$, Overlay as m$, CloseButton as x$, Loader as V$, HoverCard as w$, MenuDropdown as y$, PopoverDropdown as b$, ScrollArea as _$, Autocomplete as R$, NumberInput as Z$, InputBase as v$, rem as eO, defaultVariantColorsResolver as dn } from "@mantine/core";
10
10
  import "@codemirror/lint";
11
- import { useRef as mO, useCallback as N, useState as E, useMemo as eO, useEffect as K, memo as Hi, createRef as k$, createElement as io, createContext as ro, useContext as ao } from "react";
12
- import { jsx as p, jsxs as k, Fragment as Ke } from "react/jsx-runtime";
11
+ import { useRef as mO, useCallback as N, useState as E, useMemo as OO, useEffect as K, memo as Hi, createRef as k$, createElement as io, createContext as ro, useContext as ao } from "react";
12
+ import { jsx as p, jsxs as v, Fragment as Ke } from "react/jsx-runtime";
13
13
  import no, { YooptaPlugin as it, useYooptaEditor as uO, useYooptaReadOnly as ft, Elements as AO, Blocks as RO, createYooptaMark as z$, Marks as Oe, createYooptaEditor as q$ } from "@yoopta/editor";
14
14
  import $r from "@yoopta/headings";
15
15
  import jr, { useNumberListCount as Y$ } from "@yoopta/lists";
@@ -1222,8 +1222,8 @@ class xO extends $o {
1222
1222
  let h;
1223
1223
  if (!(n & M.IgnoreMounts) && (h = $t.get(c)) && !h.overlay)
1224
1224
  return new xO(h.tree, d, e, s);
1225
- let f = new xO(c, d, e, s);
1226
- return n & M.IncludeAnonymous || !f.type.isAnonymous ? f : f.nextChild(t < 0 ? c.children.length - 1 : 0, t, i, r, n);
1225
+ let P = new xO(c, d, e, s);
1226
+ return n & M.IncludeAnonymous || !P.type.isAnonymous ? P : P.nextChild(t < 0 ? c.children.length - 1 : 0, t, i, r, n);
1227
1227
  }
1228
1228
  }
1229
1229
  }
@@ -1794,12 +1794,12 @@ function _a(O) {
1794
1794
  function fc(O) {
1795
1795
  var e;
1796
1796
  let { buffer: t, nodeSet: i, maxBufferLength: r = Qo, reused: n = [], minRepeatType: a = i.types.length } = O, s = Array.isArray(t) ? new ba(t, t.length) : t, o = i.types, Q = 0, $ = 0;
1797
- function c(T, R, y, j, C, g) {
1798
- let { id: V, start: w, end: Z, size: W } = s, B = $, bO = Q;
1797
+ function c(g, b, y, U, G, m) {
1798
+ let { id: V, start: w, end: R, size: W } = s, B = $, bO = Q;
1799
1799
  if (W < 0)
1800
1800
  if (s.next(), W == -1) {
1801
1801
  let kO = n[V];
1802
- y.push(kO), j.push(w - T);
1802
+ y.push(kO), U.push(w - g);
1803
1803
  return;
1804
1804
  } else if (W == -3) {
1805
1805
  Q = V;
@@ -1809,83 +1809,83 @@ function fc(O) {
1809
1809
  return;
1810
1810
  } else
1811
1811
  throw new RangeError(`Unrecognized record size: ${W}`);
1812
- let $e = o[V], G, fO, si = w - T;
1813
- if (Z - w <= r && (fO = x(s.pos - R, C))) {
1812
+ let $e = o[V], j, fO, si = w - g;
1813
+ if (R - w <= r && (fO = x(s.pos - b, G))) {
1814
1814
  let kO = new Uint16Array(fO.size - fO.skip), zO = s.pos - fO.size, JO = kO.length;
1815
1815
  for (; s.pos > zO; )
1816
- JO = P(fO.start, kO, JO);
1817
- G = new We(kO, Z - fO.start, i), si = fO.start - T;
1816
+ JO = f(fO.start, kO, JO);
1817
+ j = new We(kO, R - fO.start, i), si = fO.start - g;
1818
1818
  } else {
1819
1819
  let kO = s.pos - W;
1820
1820
  s.next();
1821
- let zO = [], JO = [], je = V >= a ? V : -1, at = 0, oi = Z;
1821
+ let zO = [], JO = [], je = V >= a ? V : -1, at = 0, oi = R;
1822
1822
  for (; s.pos > kO; )
1823
- je >= 0 && s.id == je && s.size >= 0 ? (s.end <= oi - r && (f(zO, JO, w, at, s.end, oi, je, B, bO), at = zO.length, oi = s.end), s.next()) : g > 2500 ? d(w, kO, zO, JO) : c(w, kO, zO, JO, je, g + 1);
1824
- if (je >= 0 && at > 0 && at < zO.length && f(zO, JO, w, at, w, oi, je, B, bO), zO.reverse(), JO.reverse(), je > -1 && at > 0) {
1823
+ je >= 0 && s.id == je && s.size >= 0 ? (s.end <= oi - r && (P(zO, JO, w, at, s.end, oi, je, B, bO), at = zO.length, oi = s.end), s.next()) : m > 2500 ? d(w, kO, zO, JO) : c(w, kO, zO, JO, je, m + 1);
1824
+ if (je >= 0 && at > 0 && at < zO.length && P(zO, JO, w, at, w, oi, je, B, bO), zO.reverse(), JO.reverse(), je > -1 && at > 0) {
1825
1825
  let nn = h($e, bO);
1826
- G = Ra($e, zO, JO, 0, zO.length, 0, Z - w, nn, nn);
1826
+ j = Ra($e, zO, JO, 0, zO.length, 0, R - w, nn, nn);
1827
1827
  } else
1828
- G = S($e, zO, JO, Z - w, B - Z, bO);
1828
+ j = S($e, zO, JO, R - w, B - R, bO);
1829
1829
  }
1830
- y.push(G), j.push(si);
1830
+ y.push(j), U.push(si);
1831
1831
  }
1832
- function d(T, R, y, j) {
1833
- let C = [], g = 0, V = -1;
1834
- for (; s.pos > R; ) {
1835
- let { id: w, start: Z, end: W, size: B } = s;
1832
+ function d(g, b, y, U) {
1833
+ let G = [], m = 0, V = -1;
1834
+ for (; s.pos > b; ) {
1835
+ let { id: w, start: R, end: W, size: B } = s;
1836
1836
  if (B > 4)
1837
1837
  s.next();
1838
1838
  else {
1839
- if (V > -1 && Z < V)
1839
+ if (V > -1 && R < V)
1840
1840
  break;
1841
- V < 0 && (V = W - r), C.push(w, Z, W), g++, s.next();
1841
+ V < 0 && (V = W - r), G.push(w, R, W), m++, s.next();
1842
1842
  }
1843
1843
  }
1844
- if (g) {
1845
- let w = new Uint16Array(g * 4), Z = C[C.length - 2];
1846
- for (let W = C.length - 3, B = 0; W >= 0; W -= 3)
1847
- w[B++] = C[W], w[B++] = C[W + 1] - Z, w[B++] = C[W + 2] - Z, w[B++] = B;
1848
- y.push(new We(w, C[2] - Z, i)), j.push(Z - T);
1844
+ if (m) {
1845
+ let w = new Uint16Array(m * 4), R = G[G.length - 2];
1846
+ for (let W = G.length - 3, B = 0; W >= 0; W -= 3)
1847
+ w[B++] = G[W], w[B++] = G[W + 1] - R, w[B++] = G[W + 2] - R, w[B++] = B;
1848
+ y.push(new We(w, G[2] - R, i)), U.push(R - g);
1849
1849
  }
1850
1850
  }
1851
- function h(T, R) {
1852
- return (y, j, C) => {
1853
- let g = 0, V = y.length - 1, w, Z;
1851
+ function h(g, b) {
1852
+ return (y, U, G) => {
1853
+ let m = 0, V = y.length - 1, w, R;
1854
1854
  if (V >= 0 && (w = y[V]) instanceof lO) {
1855
- if (!V && w.type == T && w.length == C)
1855
+ if (!V && w.type == g && w.length == G)
1856
1856
  return w;
1857
- (Z = w.prop(F.lookAhead)) && (g = j[V] + w.length + Z);
1857
+ (R = w.prop(F.lookAhead)) && (m = U[V] + w.length + R);
1858
1858
  }
1859
- return S(T, y, j, C, g, R);
1859
+ return S(g, y, U, G, m, b);
1860
1860
  };
1861
1861
  }
1862
- function f(T, R, y, j, C, g, V, w, Z) {
1862
+ function P(g, b, y, U, G, m, V, w, R) {
1863
1863
  let W = [], B = [];
1864
- for (; T.length > j; )
1865
- W.push(T.pop()), B.push(R.pop() + y - C);
1866
- T.push(S(i.types[V], W, B, g - C, w - g, Z)), R.push(C - y);
1864
+ for (; g.length > U; )
1865
+ W.push(g.pop()), B.push(b.pop() + y - G);
1866
+ g.push(S(i.types[V], W, B, m - G, w - m, R)), b.push(G - y);
1867
1867
  }
1868
- function S(T, R, y, j, C, g, V) {
1869
- if (g) {
1870
- let w = [F.contextHash, g];
1868
+ function S(g, b, y, U, G, m, V) {
1869
+ if (m) {
1870
+ let w = [F.contextHash, m];
1871
1871
  V = V ? [w].concat(V) : [w];
1872
1872
  }
1873
- if (C > 25) {
1874
- let w = [F.lookAhead, C];
1873
+ if (G > 25) {
1874
+ let w = [F.lookAhead, G];
1875
1875
  V = V ? [w].concat(V) : [w];
1876
1876
  }
1877
- return new lO(T, R, y, j, V);
1877
+ return new lO(g, b, y, U, V);
1878
1878
  }
1879
- function x(T, R) {
1880
- let y = s.fork(), j = 0, C = 0, g = 0, V = y.end - r, w = { size: 0, start: 0, skip: 0 };
1881
- O: for (let Z = y.pos - T; y.pos > Z; ) {
1879
+ function x(g, b) {
1880
+ let y = s.fork(), U = 0, G = 0, m = 0, V = y.end - r, w = { size: 0, start: 0, skip: 0 };
1881
+ O: for (let R = y.pos - g; y.pos > R; ) {
1882
1882
  let W = y.size;
1883
- if (y.id == R && W >= 0) {
1884
- w.size = j, w.start = C, w.skip = g, g += 4, j += 4, y.next();
1883
+ if (y.id == b && W >= 0) {
1884
+ w.size = U, w.start = G, w.skip = m, m += 4, U += 4, y.next();
1885
1885
  continue;
1886
1886
  }
1887
1887
  let B = y.pos - W;
1888
- if (W < 0 || B < Z || y.start < V)
1888
+ if (W < 0 || B < R || y.start < V)
1889
1889
  break;
1890
1890
  let bO = y.id >= a ? 4 : 0, $e = y.start;
1891
1891
  for (y.next(); y.pos > B; ) {
@@ -1897,28 +1897,28 @@ function fc(O) {
1897
1897
  else y.id >= a && (bO += 4);
1898
1898
  y.next();
1899
1899
  }
1900
- C = $e, j += W, g += bO;
1900
+ G = $e, U += W, m += bO;
1901
1901
  }
1902
- return (R < 0 || j == T) && (w.size = j, w.start = C, w.skip = g), w.size > 4 ? w : void 0;
1902
+ return (b < 0 || U == g) && (w.size = U, w.start = G, w.skip = m), w.size > 4 ? w : void 0;
1903
1903
  }
1904
- function P(T, R, y) {
1905
- let { id: j, start: C, end: g, size: V } = s;
1906
- if (s.next(), V >= 0 && j < a) {
1904
+ function f(g, b, y) {
1905
+ let { id: U, start: G, end: m, size: V } = s;
1906
+ if (s.next(), V >= 0 && U < a) {
1907
1907
  let w = y;
1908
1908
  if (V > 4) {
1909
- let Z = s.pos - (V - 4);
1910
- for (; s.pos > Z; )
1911
- y = P(T, R, y);
1909
+ let R = s.pos - (V - 4);
1910
+ for (; s.pos > R; )
1911
+ y = f(g, b, y);
1912
1912
  }
1913
- R[--y] = w, R[--y] = g - T, R[--y] = C - T, R[--y] = j;
1914
- } else V == -3 ? Q = j : V == -4 && ($ = j);
1913
+ b[--y] = w, b[--y] = m - g, b[--y] = G - g, b[--y] = U;
1914
+ } else V == -3 ? Q = U : V == -4 && ($ = U);
1915
1915
  return y;
1916
1916
  }
1917
- let b = [], m = [];
1917
+ let Y = [], T = [];
1918
1918
  for (; s.pos > 0; )
1919
- c(O.start || 0, O.bufferStart || 0, b, m, -1, 0);
1920
- let X = (e = O.length) !== null && e !== void 0 ? e : b.length ? m[0] + b[0].length : 0;
1921
- return new lO(o[O.topID], b.reverse(), m.reverse(), X);
1919
+ c(O.start || 0, O.bufferStart || 0, Y, T, -1, 0);
1920
+ let X = (e = O.length) !== null && e !== void 0 ? e : Y.length ? T[0] + Y[0].length : 0;
1921
+ return new lO(o[O.topID], Y.reverse(), T.reverse(), X);
1922
1922
  }
1923
1923
  const Xn = /* @__PURE__ */ new WeakMap();
1924
1924
  function mi(O, e) {
@@ -1940,33 +1940,33 @@ function mi(O, e) {
1940
1940
  }
1941
1941
  function Ra(O, e, t, i, r, n, a, s, o) {
1942
1942
  let Q = 0;
1943
- for (let f = i; f < r; f++)
1944
- Q += mi(O, e[f]);
1943
+ for (let P = i; P < r; P++)
1944
+ Q += mi(O, e[P]);
1945
1945
  let $ = Math.ceil(
1946
1946
  Q * 1.5 / 8
1947
1947
  /* Balance.BranchFactor */
1948
1948
  ), c = [], d = [];
1949
- function h(f, S, x, P, b) {
1950
- for (let m = x; m < P; ) {
1951
- let X = m, T = S[m], R = mi(O, f[m]);
1952
- for (m++; m < P; m++) {
1953
- let y = mi(O, f[m]);
1954
- if (R + y >= $)
1949
+ function h(P, S, x, f, Y) {
1950
+ for (let T = x; T < f; ) {
1951
+ let X = T, g = S[T], b = mi(O, P[T]);
1952
+ for (T++; T < f; T++) {
1953
+ let y = mi(O, P[T]);
1954
+ if (b + y >= $)
1955
1955
  break;
1956
- R += y;
1956
+ b += y;
1957
1957
  }
1958
- if (m == X + 1) {
1959
- if (R > $) {
1960
- let y = f[X];
1961
- h(y.children, y.positions, 0, y.children.length, S[X] + b);
1958
+ if (T == X + 1) {
1959
+ if (b > $) {
1960
+ let y = P[X];
1961
+ h(y.children, y.positions, 0, y.children.length, S[X] + Y);
1962
1962
  continue;
1963
1963
  }
1964
- c.push(f[X]);
1964
+ c.push(P[X]);
1965
1965
  } else {
1966
- let y = S[m - 1] + f[m - 1].length - T;
1967
- c.push(Ra(O, f, S, X, m, T, y, null, o));
1966
+ let y = S[T - 1] + P[T - 1].length - g;
1967
+ c.push(Ra(O, P, S, X, T, g, y, null, o));
1968
1968
  }
1969
- d.push(T + b - n);
1969
+ d.push(g + Y - n);
1970
1970
  }
1971
1971
  }
1972
1972
  return h(e, t, i, r, 0), (s || o)(c, d, a);
@@ -2026,8 +2026,8 @@ class Gt {
2026
2026
  for (; a && a.from < c; ) {
2027
2027
  let d = a;
2028
2028
  if (o >= d.from || c <= d.to || Q) {
2029
- let h = Math.max(d.from, o) - Q, f = Math.min(d.to, c) - Q;
2030
- d = h >= f ? null : new Gt(h, f, d.tree, d.offset + Q, s > 0, !!$);
2029
+ let h = Math.max(d.from, o) - Q, P = Math.min(d.to, c) - Q;
2030
+ d = h >= P ? null : new Gt(h, P, d.tree, d.offset + Q, s > 0, !!$);
2031
2031
  }
2032
2032
  if (d && r.push(d), a.to > c)
2033
2033
  break;
@@ -2208,13 +2208,13 @@ function Vc(O) {
2208
2208
  t.push(O.index), O.parent();
2209
2209
  while (!O.tree);
2210
2210
  let r = O.tree, n = r.children.indexOf(i), a = r.children[n], s = a.buffer, o = [n];
2211
- function Q($, c, d, h, f, S) {
2212
- let x = t[S], P = [], b = [];
2213
- mn(a, $, x, P, b, h);
2214
- let m = s[x + 1], X = s[x + 2];
2215
- o.push(P.length);
2216
- let T = S ? Q(x + 4, s[x + 3], a.set.types[s[x]], m, X - m, S - 1) : e.toTree();
2217
- return P.push(T), b.push(m - h), mn(a, s[x + 3], c, P, b, h), new lO(d, P, b, f);
2211
+ function Q($, c, d, h, P, S) {
2212
+ let x = t[S], f = [], Y = [];
2213
+ mn(a, $, x, f, Y, h);
2214
+ let T = s[x + 1], X = s[x + 2];
2215
+ o.push(f.length);
2216
+ let g = S ? Q(x + 4, s[x + 3], a.set.types[s[x]], T, X - T, S - 1) : e.toTree();
2217
+ return f.push(g), Y.push(T - h), mn(a, s[x + 3], c, f, Y, h), new lO(d, f, Y, P);
2218
2218
  }
2219
2219
  r.children[n] = Q(0, s.length, jO.none, 0, a.length, t.length - 1);
2220
2220
  for (let $ of o) {
@@ -2325,8 +2325,8 @@ function wn(O, e) {
2325
2325
  if (r.overlay) {
2326
2326
  let $ = r.overlay.map((d) => new GO(d.from + i, d.to + i)), c = yc(e, $, o, Q);
2327
2327
  for (let d = 0, h = o; ; d++) {
2328
- let f = d == c.length, S = f ? Q : c[d].from;
2329
- if (S > h && t.push(new Gt(h, S, r.tree, -a, n.from >= h || n.openStart, n.to <= S || n.openEnd)), f)
2328
+ let P = d == c.length, S = P ? Q : c[d].from;
2329
+ if (S > h && t.push(new Gt(h, S, r.tree, -a, n.from >= h || n.openStart, n.to <= S || n.openEnd)), P)
2330
2330
  break;
2331
2331
  h = c[d].to;
2332
2332
  }
@@ -2515,8 +2515,8 @@ function zc(O, e, t, i, r, n = 0, a = O.length) {
2515
2515
  if (!(Q <= s)) {
2516
2516
  for (let c = O.slice(s, Q), d = 0; ; ) {
2517
2517
  let h = c.indexOf(`
2518
- `, d), f = h < 0 ? c.length : h;
2519
- if (f > d && i(c.slice(d, f), $), h < 0)
2518
+ `, d), P = h < 0 ? c.length : h;
2519
+ if (P > d && i(c.slice(d, P), $), h < 0)
2520
2520
  break;
2521
2521
  r(), d = h + 1;
2522
2522
  }
@@ -2547,15 +2547,15 @@ class qc {
2547
2547
  return;
2548
2548
  let d = e.tree && e.tree.prop(F.mounted);
2549
2549
  if (d && d.overlay) {
2550
- let h = e.node.enter(d.overlay[0].from + s, 1), f = this.highlighters.filter((x) => !x.scope || x.scope(d.tree.type)), S = e.firstChild();
2551
- for (let x = 0, P = s; ; x++) {
2552
- let b = x < d.overlay.length ? d.overlay[x] : null, m = b ? b.from + s : o, X = Math.max(t, P), T = Math.min(i, m);
2553
- if (X < T && S)
2554
- for (; e.from < T && (this.highlightRange(e, X, T, r, n), this.startSpan(Math.min(T, e.to), Q), !(e.to >= m || !e.nextSibling())); )
2550
+ let h = e.node.enter(d.overlay[0].from + s, 1), P = this.highlighters.filter((x) => !x.scope || x.scope(d.tree.type)), S = e.firstChild();
2551
+ for (let x = 0, f = s; ; x++) {
2552
+ let Y = x < d.overlay.length ? d.overlay[x] : null, T = Y ? Y.from + s : o, X = Math.max(t, f), g = Math.min(i, T);
2553
+ if (X < g && S)
2554
+ for (; e.from < g && (this.highlightRange(e, X, g, r, n), this.startSpan(Math.min(g, e.to), Q), !(e.to >= T || !e.nextSibling())); )
2555
2555
  ;
2556
- if (!b || m > i)
2556
+ if (!Y || T > i)
2557
2557
  break;
2558
- P = b.to + s, P > t && (this.highlightRange(h.cursor(), Math.max(t, b.from + s), Math.min(i, P), "", f), this.startSpan(Math.min(i, P), Q));
2558
+ f = Y.to + s, f > t && (this.highlightRange(h.cursor(), Math.max(t, Y.from + s), Math.min(i, f), "", P), this.startSpan(Math.min(i, f), Q));
2559
2559
  }
2560
2560
  S && e.parent();
2561
2561
  } else if (e.firstChild()) {
@@ -3073,112 +3073,112 @@ function pr(O) {
3073
3073
  }
3074
3074
  }
3075
3075
  function vO(O) {
3076
- var e = O.statementIndentUnit, t = O.dontAlignCalls, i = O.keywords || {}, r = O.types || {}, n = O.builtin || {}, a = O.blockKeywords || {}, s = O.defKeywords || {}, o = O.atoms || {}, Q = O.hooks || {}, $ = O.multiLineStrings, c = O.indentStatements !== !1, d = O.indentSwitch !== !1, h = O.namespaceSeparator, f = O.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, S = O.numberStart || /[\d\.]/, x = O.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, P = O.isOperatorChar || /[+\-*&%=<>!?|\/]/, b = O.isIdentifierChar || /[\w\$_\xa1-\uffff]/, m = O.isReservedIdentifier || !1, X, T;
3077
- function R(g, V) {
3078
- var w = g.next();
3076
+ var e = O.statementIndentUnit, t = O.dontAlignCalls, i = O.keywords || {}, r = O.types || {}, n = O.builtin || {}, a = O.blockKeywords || {}, s = O.defKeywords || {}, o = O.atoms || {}, Q = O.hooks || {}, $ = O.multiLineStrings, c = O.indentStatements !== !1, d = O.indentSwitch !== !1, h = O.namespaceSeparator, P = O.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, S = O.numberStart || /[\d\.]/, x = O.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, f = O.isOperatorChar || /[+\-*&%=<>!?|\/]/, Y = O.isIdentifierChar || /[\w\$_\xa1-\uffff]/, T = O.isReservedIdentifier || !1, X, g;
3077
+ function b(m, V) {
3078
+ var w = m.next();
3079
3079
  if (Q[w]) {
3080
- var Z = Q[w](g, V);
3081
- if (Z !== !1) return Z;
3080
+ var R = Q[w](m, V);
3081
+ if (R !== !1) return R;
3082
3082
  }
3083
3083
  if (w == '"' || w == "'")
3084
- return V.tokenize = y(w), V.tokenize(g, V);
3084
+ return V.tokenize = y(w), V.tokenize(m, V);
3085
3085
  if (S.test(w)) {
3086
- if (g.backUp(1), g.match(x)) return "number";
3087
- g.next();
3086
+ if (m.backUp(1), m.match(x)) return "number";
3087
+ m.next();
3088
3088
  }
3089
- if (f.test(w))
3089
+ if (P.test(w))
3090
3090
  return X = w, null;
3091
3091
  if (w == "/") {
3092
- if (g.eat("*"))
3093
- return V.tokenize = j, j(g, V);
3094
- if (g.eat("/"))
3095
- return g.skipToEnd(), "comment";
3092
+ if (m.eat("*"))
3093
+ return V.tokenize = U, U(m, V);
3094
+ if (m.eat("/"))
3095
+ return m.skipToEnd(), "comment";
3096
3096
  }
3097
- if (P.test(w)) {
3098
- for (; !g.match(/^\/[\/*]/, !1) && g.eat(P); )
3097
+ if (f.test(w)) {
3098
+ for (; !m.match(/^\/[\/*]/, !1) && m.eat(f); )
3099
3099
  ;
3100
3100
  return "operator";
3101
3101
  }
3102
- if (g.eatWhile(b), h) for (; g.match(h); )
3103
- g.eatWhile(b);
3104
- var W = g.current();
3105
- return Se(i, W) ? (Se(a, W) && (X = "newstatement"), Se(s, W) && (T = !0), "keyword") : Se(r, W) ? "type" : Se(n, W) || m && m(W) ? (Se(a, W) && (X = "newstatement"), "builtin") : Se(o, W) ? "atom" : "variable";
3102
+ if (m.eatWhile(Y), h) for (; m.match(h); )
3103
+ m.eatWhile(Y);
3104
+ var W = m.current();
3105
+ return Se(i, W) ? (Se(a, W) && (X = "newstatement"), Se(s, W) && (g = !0), "keyword") : Se(r, W) ? "type" : Se(n, W) || T && T(W) ? (Se(a, W) && (X = "newstatement"), "builtin") : Se(o, W) ? "atom" : "variable";
3106
3106
  }
3107
- function y(g) {
3107
+ function y(m) {
3108
3108
  return function(V, w) {
3109
- for (var Z = !1, W, B = !1; (W = V.next()) != null; ) {
3110
- if (W == g && !Z) {
3109
+ for (var R = !1, W, B = !1; (W = V.next()) != null; ) {
3110
+ if (W == m && !R) {
3111
3111
  B = !0;
3112
3112
  break;
3113
3113
  }
3114
- Z = !Z && W == "\\";
3114
+ R = !R && W == "\\";
3115
3115
  }
3116
- return (B || !(Z || $)) && (w.tokenize = null), "string";
3116
+ return (B || !(R || $)) && (w.tokenize = null), "string";
3117
3117
  };
3118
3118
  }
3119
- function j(g, V) {
3120
- for (var w = !1, Z; Z = g.next(); ) {
3121
- if (Z == "/" && w) {
3119
+ function U(m, V) {
3120
+ for (var w = !1, R; R = m.next(); ) {
3121
+ if (R == "/" && w) {
3122
3122
  V.tokenize = null;
3123
3123
  break;
3124
3124
  }
3125
- w = Z == "*";
3125
+ w = R == "*";
3126
3126
  }
3127
3127
  return "comment";
3128
3128
  }
3129
- function C(g, V) {
3130
- O.typeFirstDefinitions && g.eol() && pr(V.context) && (V.typeAtEndOfLine = _n(g, V, g.pos));
3129
+ function G(m, V) {
3130
+ O.typeFirstDefinitions && m.eol() && pr(V.context) && (V.typeAtEndOfLine = _n(m, V, m.pos));
3131
3131
  }
3132
3132
  return {
3133
3133
  name: O.name,
3134
- startState: function(g) {
3134
+ startState: function(m) {
3135
3135
  return {
3136
3136
  tokenize: null,
3137
- context: new ka(-g, 0, "top", null, !1),
3137
+ context: new ka(-m, 0, "top", null, !1),
3138
3138
  indented: 0,
3139
3139
  startOfLine: !0,
3140
3140
  prevToken: null
3141
3141
  };
3142
3142
  },
3143
- token: function(g, V) {
3143
+ token: function(m, V) {
3144
3144
  var w = V.context;
3145
- if (g.sol() && (w.align == null && (w.align = !1), V.indented = g.indentation(), V.startOfLine = !0), g.eatSpace())
3146
- return C(g, V), null;
3147
- X = T = null;
3148
- var Z = (V.tokenize || R)(g, V);
3149
- if (Z == "comment" || Z == "meta") return Z;
3150
- if (w.align == null && (w.align = !0), X == ";" || X == ":" || X == "," && g.match(/^\s*(?:\/\/.*)?$/, !1))
3145
+ if (m.sol() && (w.align == null && (w.align = !1), V.indented = m.indentation(), V.startOfLine = !0), m.eatSpace())
3146
+ return G(m, V), null;
3147
+ X = g = null;
3148
+ var R = (V.tokenize || b)(m, V);
3149
+ if (R == "comment" || R == "meta") return R;
3150
+ if (w.align == null && (w.align = !0), X == ";" || X == ":" || X == "," && m.match(/^\s*(?:\/\/.*)?$/, !1))
3151
3151
  for (; V.context.type == "statement"; ) wt(V);
3152
- else if (X == "{") di(V, g.column(), "}");
3153
- else if (X == "[") di(V, g.column(), "]");
3154
- else if (X == "(") di(V, g.column(), ")");
3152
+ else if (X == "{") di(V, m.column(), "}");
3153
+ else if (X == "[") di(V, m.column(), "]");
3154
+ else if (X == "(") di(V, m.column(), ")");
3155
3155
  else if (X == "}") {
3156
3156
  for (; w.type == "statement"; ) w = wt(V);
3157
3157
  for (w.type == "}" && (w = wt(V)); w.type == "statement"; ) w = wt(V);
3158
- } else X == w.type ? wt(V) : c && ((w.type == "}" || w.type == "top") && X != ";" || w.type == "statement" && X == "newstatement") && di(V, g.column(), "statement", g.current());
3159
- if (Z == "variable" && (V.prevToken == "def" || O.typeFirstDefinitions && _n(g, V, g.start) && pr(V.context) && g.match(/^\s*\(/, !1)) && (Z = "def"), Q.token) {
3160
- var W = Q.token(g, V, Z);
3161
- W !== void 0 && (Z = W);
3158
+ } else X == w.type ? wt(V) : c && ((w.type == "}" || w.type == "top") && X != ";" || w.type == "statement" && X == "newstatement") && di(V, m.column(), "statement", m.current());
3159
+ if (R == "variable" && (V.prevToken == "def" || O.typeFirstDefinitions && _n(m, V, m.start) && pr(V.context) && m.match(/^\s*\(/, !1)) && (R = "def"), Q.token) {
3160
+ var W = Q.token(m, V, R);
3161
+ W !== void 0 && (R = W);
3162
3162
  }
3163
- return Z == "def" && O.styleDefs === !1 && (Z = "variable"), V.startOfLine = !1, V.prevToken = T ? "def" : Z || X, C(g, V), Z;
3163
+ return R == "def" && O.styleDefs === !1 && (R = "variable"), V.startOfLine = !1, V.prevToken = g ? "def" : R || X, G(m, V), R;
3164
3164
  },
3165
- indent: function(g, V, w) {
3166
- if (g.tokenize != R && g.tokenize != null || g.typeAtEndOfLine && pr(g.context))
3165
+ indent: function(m, V, w) {
3166
+ if (m.tokenize != b && m.tokenize != null || m.typeAtEndOfLine && pr(m.context))
3167
3167
  return null;
3168
- var Z = g.context, W = V && V.charAt(0), B = W == Z.type;
3169
- if (Z.type == "statement" && W == "}" && (Z = Z.prev), O.dontIndentStatements)
3170
- for (; Z.type == "statement" && O.dontIndentStatements.test(Z.info); )
3171
- Z = Z.prev;
3168
+ var R = m.context, W = V && V.charAt(0), B = W == R.type;
3169
+ if (R.type == "statement" && W == "}" && (R = R.prev), O.dontIndentStatements)
3170
+ for (; R.type == "statement" && O.dontIndentStatements.test(R.info); )
3171
+ R = R.prev;
3172
3172
  if (Q.indent) {
3173
- var bO = Q.indent(g, Z, V, w.unit);
3173
+ var bO = Q.indent(m, R, V, w.unit);
3174
3174
  if (typeof bO == "number") return bO;
3175
3175
  }
3176
- var $e = Z.prev && Z.prev.info == "switch";
3176
+ var $e = R.prev && R.prev.info == "switch";
3177
3177
  if (O.allmanIndentation && /[{(]/.test(W)) {
3178
- for (; Z.type != "top" && Z.type != "}"; ) Z = Z.prev;
3179
- return Z.indented;
3178
+ for (; R.type != "top" && R.type != "}"; ) R = R.prev;
3179
+ return R.indented;
3180
3180
  }
3181
- return Z.type == "statement" ? Z.indented + (W == "{" ? 0 : e || w.unit) : Z.align && (!t || Z.type != ")") ? Z.column + (B ? 0 : 1) : Z.type == ")" && !B ? Z.indented + (e || w.unit) : Z.indented + (B ? 0 : w.unit) + (!B && $e && !/^(?:case|default)\b/.test(V) ? w.unit : 0);
3181
+ return R.type == "statement" ? R.indented + (W == "{" ? 0 : e || w.unit) : R.align && (!t || R.type != ")") ? R.column + (B ? 0 : 1) : R.type == ")" && !B ? R.indented + (e || w.unit) : R.indented + (B ? 0 : w.unit) + (!B && $e && !/^(?:case|default)\b/.test(V) ? w.unit : 0);
3182
3182
  },
3183
3183
  languageData: {
3184
3184
  indentOnInput: d ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/,
@@ -3188,14 +3188,14 @@ function vO(O) {
3188
3188
  }
3189
3189
  };
3190
3190
  }
3191
- function Y(O) {
3191
+ function q(O) {
3192
3192
  for (var e = {}, t = O.split(" "), i = 0; i < t.length; ++i) e[t[i]] = !0;
3193
3193
  return e;
3194
3194
  }
3195
3195
  function Se(O, e) {
3196
3196
  return typeof O == "function" ? O(e) : O.propertyIsEnumerable(e);
3197
3197
  }
3198
- var Jt = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran", Po = "alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq", fo = "bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available", So = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT", jc = Y("int long char short double float unsigned signed void bool"), Ec = Y("SEL instancetype id Class Protocol BOOL");
3198
+ var Jt = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran", Po = "alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq", fo = "bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available", So = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT", jc = q("int long char short double float unsigned signed void bool"), Ec = q("SEL instancetype id Class Protocol BOOL");
3199
3199
  function Oi(O) {
3200
3200
  return Se(jc, O) || /.+_t$/.test(O);
3201
3201
  }
@@ -3253,12 +3253,12 @@ function Zn(O, e) {
3253
3253
  }
3254
3254
  vO({
3255
3255
  name: "c",
3256
- keywords: Y(Jt),
3256
+ keywords: q(Jt),
3257
3257
  types: Oi,
3258
- blockKeywords: Y(ei),
3259
- defKeywords: Y(Ji),
3258
+ blockKeywords: q(ei),
3259
+ defKeywords: q(Ji),
3260
3260
  typeFirstDefinitions: !0,
3261
- atoms: Y("NULL true false"),
3261
+ atoms: q("NULL true false"),
3262
3262
  isReservedIdentifier: er,
3263
3263
  hooks: {
3264
3264
  "#": Ce,
@@ -3267,12 +3267,12 @@ vO({
3267
3267
  });
3268
3268
  vO({
3269
3269
  name: "cpp",
3270
- keywords: Y(Jt + " " + Po),
3270
+ keywords: q(Jt + " " + Po),
3271
3271
  types: Oi,
3272
- blockKeywords: Y(ei + " class try catch"),
3273
- defKeywords: Y(Ji + " class namespace"),
3272
+ blockKeywords: q(ei + " class try catch"),
3273
+ defKeywords: q(Ji + " class namespace"),
3274
3274
  typeFirstDefinitions: !0,
3275
- atoms: Y("true false NULL nullptr"),
3275
+ atoms: q("true false NULL nullptr"),
3276
3276
  dontIndentStatements: /^template$/,
3277
3277
  isIdentifierChar: /[\w\$_~\xa1-\uffff]/,
3278
3278
  isReservedIdentifier: er,
@@ -3302,12 +3302,12 @@ vO({
3302
3302
  });
3303
3303
  const Ac = vO({
3304
3304
  name: "java",
3305
- keywords: Y("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),
3306
- types: Y("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),
3307
- blockKeywords: Y("catch class do else finally for if switch try while"),
3308
- defKeywords: Y("class interface enum @interface"),
3305
+ keywords: q("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),
3306
+ types: q("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),
3307
+ blockKeywords: q("catch class do else finally for if switch try while"),
3308
+ defKeywords: q("class interface enum @interface"),
3309
3309
  typeFirstDefinitions: !0,
3310
- atoms: Y("true false null"),
3310
+ atoms: q("true false null"),
3311
3311
  number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
3312
3312
  hooks: {
3313
3313
  "@": function(O) {
@@ -3319,12 +3319,12 @@ const Ac = vO({
3319
3319
  }
3320
3320
  }), Dc = vO({
3321
3321
  name: "csharp",
3322
- keywords: Y("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
3323
- types: Y("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),
3324
- blockKeywords: Y("catch class do else finally for foreach if struct switch try while"),
3325
- defKeywords: Y("class interface namespace record struct var"),
3322
+ keywords: q("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
3323
+ types: q("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),
3324
+ blockKeywords: q("catch class do else finally for foreach if struct switch try while"),
3325
+ defKeywords: q("class interface namespace record struct var"),
3326
3326
  typeFirstDefinitions: !0,
3327
- atoms: Y("true false null"),
3327
+ atoms: q("true false null"),
3328
3328
  hooks: {
3329
3329
  "@": function(O, e) {
3330
3330
  return O.eat('"') ? (e.tokenize = Rn, Rn(O, e)) : (O.eatWhile(/[\w\$_]/), "meta");
@@ -3357,17 +3357,17 @@ function Et(O) {
3357
3357
  }
3358
3358
  vO({
3359
3359
  name: "scala",
3360
- keywords: Y(
3360
+ keywords: q(
3361
3361
  /* scala */
3362
3362
  "abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"
3363
3363
  ),
3364
- types: Y(
3364
+ types: q(
3365
3365
  "AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
3366
3366
  ),
3367
3367
  multiLineStrings: !0,
3368
- blockKeywords: Y("catch class enum do else finally for forSome if match switch try while"),
3369
- defKeywords: Y("class enum def object package trait type val var"),
3370
- atoms: Y("true false null"),
3368
+ blockKeywords: q("catch class enum do else finally for forSome if match switch try while"),
3369
+ defKeywords: q("class enum def object package trait type val var"),
3370
+ atoms: q("true false null"),
3371
3371
  indentStatements: !1,
3372
3372
  indentSwitch: !1,
3373
3373
  isOperatorChar: /[+\-*&%=<>!?|\/#:@]/,
@@ -3411,20 +3411,20 @@ function Ic(O) {
3411
3411
  }
3412
3412
  vO({
3413
3413
  name: "kotlin",
3414
- keywords: Y(
3414
+ keywords: q(
3415
3415
  /*keywords*/
3416
3416
  "package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"
3417
3417
  ),
3418
- types: Y(
3418
+ types: q(
3419
3419
  /* package java.lang */
3420
3420
  "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"
3421
3421
  ),
3422
3422
  indentStatements: !1,
3423
3423
  multiLineStrings: !0,
3424
3424
  number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(ul?|l|f)?/i,
3425
- blockKeywords: Y("catch class do else finally for if where try while enum"),
3426
- defKeywords: Y("class val var object interface fun"),
3427
- atoms: Y("true false null this"),
3425
+ blockKeywords: q("catch class do else finally for if where try while enum"),
3426
+ defKeywords: q("class val var object interface fun"),
3427
+ atoms: q("true false null this"),
3428
3428
  hooks: {
3429
3429
  "@": function(O) {
3430
3430
  return O.eatWhile(/[\w\$_]/), "meta";
@@ -3454,32 +3454,32 @@ vO({
3454
3454
  });
3455
3455
  vO({
3456
3456
  name: "shader",
3457
- keywords: Y("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),
3458
- types: Y("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),
3459
- blockKeywords: Y("for while do if else struct"),
3460
- builtin: Y("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),
3461
- atoms: Y("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
3457
+ keywords: q("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),
3458
+ types: q("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),
3459
+ blockKeywords: q("for while do if else struct"),
3460
+ builtin: q("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),
3461
+ atoms: q("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
3462
3462
  indentSwitch: !1,
3463
3463
  hooks: { "#": Ce }
3464
3464
  });
3465
3465
  vO({
3466
3466
  name: "nesc",
3467
- keywords: Y(Jt + " as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),
3467
+ keywords: q(Jt + " as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),
3468
3468
  types: Oi,
3469
- blockKeywords: Y(ei),
3470
- atoms: Y("null true false"),
3469
+ blockKeywords: q(ei),
3470
+ atoms: q("null true false"),
3471
3471
  hooks: { "#": Ce }
3472
3472
  });
3473
3473
  vO({
3474
3474
  name: "objectivec",
3475
- keywords: Y(Jt + " " + fo),
3475
+ keywords: q(Jt + " " + fo),
3476
3476
  types: Xo,
3477
- builtin: Y(So),
3478
- blockKeywords: Y(ei + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
3479
- defKeywords: Y(Ji + " @interface @implementation @protocol @class"),
3477
+ builtin: q(So),
3478
+ blockKeywords: q(ei + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
3479
+ defKeywords: q(Ji + " @interface @implementation @protocol @class"),
3480
3480
  dontIndentStatements: /^@.*$/,
3481
3481
  typeFirstDefinitions: !0,
3482
- atoms: Y("YES NO NULL Nil nil true false nullptr"),
3482
+ atoms: q("YES NO NULL Nil nil true false nullptr"),
3483
3483
  isReservedIdentifier: er,
3484
3484
  hooks: {
3485
3485
  "#": Ce,
@@ -3488,14 +3488,14 @@ vO({
3488
3488
  });
3489
3489
  vO({
3490
3490
  name: "objectivecpp",
3491
- keywords: Y(Jt + " " + fo + " " + Po),
3491
+ keywords: q(Jt + " " + fo + " " + Po),
3492
3492
  types: Xo,
3493
- builtin: Y(So),
3494
- blockKeywords: Y(ei + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
3495
- defKeywords: Y(Ji + " @interface @implementation @protocol @class class namespace"),
3493
+ builtin: q(So),
3494
+ blockKeywords: q(ei + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
3495
+ defKeywords: q(Ji + " @interface @implementation @protocol @class class namespace"),
3496
3496
  dontIndentStatements: /^@.*$|^template$/,
3497
3497
  typeFirstDefinitions: !0,
3498
- atoms: Y("YES NO NULL Nil nil true false nullptr"),
3498
+ atoms: q("YES NO NULL Nil nil true false nullptr"),
3499
3499
  isReservedIdentifier: er,
3500
3500
  hooks: {
3501
3501
  "#": Ce,
@@ -3523,12 +3523,12 @@ vO({
3523
3523
  });
3524
3524
  vO({
3525
3525
  name: "squirrel",
3526
- keywords: Y("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),
3526
+ keywords: q("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),
3527
3527
  types: Oi,
3528
- blockKeywords: Y("case catch class else for foreach if switch try while"),
3529
- defKeywords: Y("function local class"),
3528
+ blockKeywords: q("case catch class else for foreach if switch try while"),
3529
+ defKeywords: q("function local class"),
3530
3530
  typeFirstDefinitions: !0,
3531
- atoms: Y("true false null"),
3531
+ atoms: q("true false null"),
3532
3532
  hooks: { "#": Ce }
3533
3533
  });
3534
3534
  var xi = null;
@@ -3550,21 +3550,21 @@ function mo(O) {
3550
3550
  }
3551
3551
  vO({
3552
3552
  name: "ceylon",
3553
- keywords: Y("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),
3553
+ keywords: q("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),
3554
3554
  types: function(O) {
3555
3555
  var e = O.charAt(0);
3556
3556
  return e === e.toUpperCase() && e !== e.toLowerCase();
3557
3557
  },
3558
- blockKeywords: Y("case catch class dynamic else finally for function if interface module new object switch try while"),
3559
- defKeywords: Y("class dynamic function interface module object package value"),
3560
- builtin: Y("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),
3558
+ blockKeywords: q("case catch class dynamic else finally for function if interface module new object switch try while"),
3559
+ defKeywords: q("class dynamic function interface module object package value"),
3560
+ builtin: q("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),
3561
3561
  isPunctuationChar: /[\[\]{}\(\),;\:\.`]/,
3562
3562
  isOperatorChar: /[+\-*&%=<>!?|^~:\/]/,
3563
3563
  numberStart: /[\d#$]/,
3564
3564
  number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,
3565
3565
  multiLineStrings: !0,
3566
3566
  typeFirstDefinitions: !0,
3567
- atoms: Y("true false null larger smaller equal empty finished"),
3567
+ atoms: q("true false null larger smaller equal empty finished"),
3568
3568
  indentSwitch: !1,
3569
3569
  styleDefs: !1,
3570
3570
  hooks: {
@@ -3626,10 +3626,10 @@ function Bc(O, e) {
3626
3626
  }
3627
3627
  vO({
3628
3628
  name: "dart",
3629
- keywords: Y("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),
3630
- blockKeywords: Y("try catch finally do else for if switch while"),
3631
- builtin: Y("void bool num int double dynamic var String Null Never"),
3632
- atoms: Y("true false null"),
3629
+ keywords: q("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),
3630
+ blockKeywords: q("try catch finally do else for if switch while"),
3631
+ builtin: q("void bool num int double dynamic var String Null Never"),
3632
+ atoms: q("true false null"),
3633
3633
  // clike numbers without the suffixes, and with '_' separators.
3634
3634
  number: /^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,
3635
3635
  hooks: {
@@ -4302,9 +4302,9 @@ function Vo(O, e, t, i, r, n) {
4302
4302
  let Q = O[a + 1];
4303
4303
  for (let h = a + 3; h < Q; h += 2)
4304
4304
  if ((O[h + 1] & s) > 0) {
4305
- let f = O[h];
4306
- if (o.allows(f) && (e.token.value == -1 || e.token.value == f || Hc(f, e.token.value, r, n))) {
4307
- e.acceptToken(f);
4305
+ let P = O[h];
4306
+ if (o.allows(P) && (e.token.value == -1 || e.token.value == P || Hc(P, e.token.value, r, n))) {
4307
+ e.acceptToken(P);
4308
4308
  break;
4309
4309
  }
4310
4310
  }
@@ -4314,13 +4314,13 @@ function Vo(O, e, t, i, r, n) {
4314
4314
  continue O;
4315
4315
  }
4316
4316
  for (; c < d; ) {
4317
- let h = c + d >> 1, f = Q + h + (h << 1), S = O[f], x = O[f + 1] || 65536;
4317
+ let h = c + d >> 1, P = Q + h + (h << 1), S = O[P], x = O[P + 1] || 65536;
4318
4318
  if ($ < S)
4319
4319
  d = h;
4320
4320
  else if ($ >= x)
4321
4321
  c = h + 1;
4322
4322
  else {
4323
- a = O[f + 2], e.advance();
4323
+ a = O[P + 2], e.advance();
4324
4324
  continue O;
4325
4325
  }
4326
4326
  }
@@ -4608,13 +4608,13 @@ class eu {
4608
4608
  ;
4609
4609
  let o = this.tokens.getActions(e);
4610
4610
  for (let Q = 0; Q < o.length; ) {
4611
- let $ = o[Q++], c = o[Q++], d = o[Q++], h = Q == o.length || !i, f = h ? e : e.split(), S = this.tokens.mainToken;
4612
- if (f.apply($, c, S ? S.start : f.pos, d), _O && console.log(a + this.stackID(f) + ` (via ${($ & 65536) == 0 ? "shift" : `reduce of ${n.getName(
4611
+ let $ = o[Q++], c = o[Q++], d = o[Q++], h = Q == o.length || !i, P = h ? e : e.split(), S = this.tokens.mainToken;
4612
+ if (P.apply($, c, S ? S.start : P.pos, d), _O && console.log(a + this.stackID(P) + ` (via ${($ & 65536) == 0 ? "shift" : `reduce of ${n.getName(
4613
4613
  $ & 65535
4614
4614
  /* Action.ValueMask */
4615
- )}`} for ${n.getName(c)} @ ${r}${f == e ? "" : ", split"})`), h)
4615
+ )}`} for ${n.getName(c)} @ ${r}${P == e ? "" : ", split"})`), h)
4616
4616
  return !0;
4617
- f.pos > r ? t.push(f) : i.push(f);
4617
+ P.pos > r ? t.push(P) : i.push(P);
4618
4618
  }
4619
4619
  return !1;
4620
4620
  }
@@ -7384,26 +7384,26 @@ function Yy(O = {}) {
7384
7384
  onChangeDocument: $,
7385
7385
  onChangeSelection: c,
7386
7386
  onChangeState: d
7387
- } = O, { colorScheme: h } = i$(), [f, S] = E(!1), x = mO(null), P = mO(null), b = mO(null), m = mO(new un()), X = mO(new un()), T = tO((g) => {
7388
- if ($ && g.docChanged && $?.(g.state.doc.toString()), c && g.selectionSet && c?.(g.state.selection), d && (g.docChanged || g.selectionSet)) {
7389
- const V = g.state.toJSON(e);
7390
- d?.(V), b.current = V;
7387
+ } = O, { colorScheme: h } = i$(), [P, S] = E(!1), x = mO(null), f = mO(null), Y = mO(null), T = mO(new un()), X = mO(new un()), g = tO((m) => {
7388
+ if ($ && m.docChanged && $?.(m.state.doc.toString()), c && m.selectionSet && c?.(m.state.selection), d && (m.docChanged || m.selectionSet)) {
7389
+ const V = m.state.toJSON(e);
7390
+ d?.(V), Y.current = V;
7391
7391
  }
7392
- }), R = eO(
7392
+ }), b = OO(
7393
7393
  () => ({
7394
7394
  extensions: [
7395
- lt.updateListener.of(T),
7396
- m.current.of([]),
7395
+ lt.updateListener.of(g),
7396
+ T.current.of([]),
7397
7397
  X.current.of(a ?? []),
7398
7398
  Kx()
7399
7399
  ]
7400
7400
  }),
7401
7401
  []
7402
7402
  ), y = tO(() => {
7403
- const g = P.current;
7404
- g && g.dispatch({
7403
+ const m = f.current;
7404
+ m && m.dispatch({
7405
7405
  effects: [
7406
- m.current.reconfigure([
7406
+ T.current.reconfigure([
7407
7407
  vt.readOnly.of(n),
7408
7408
  Uc(i, h),
7409
7409
  Ls({ newGroupDelay: 250 }),
@@ -7411,43 +7411,43 @@ function Yy(O = {}) {
7411
7411
  ])
7412
7412
  ]
7413
7413
  });
7414
- }), j = tO((g) => {
7415
- P.current && (Lx(b.current, g) || (P.current.setState(vt.fromJSON(g, R, e)), b.current = g, y()));
7416
- }), C = tO(() => {
7417
- if (!P.current)
7414
+ }), U = tO((m) => {
7415
+ f.current && (Lx(Y.current, m) || (f.current.setState(vt.fromJSON(m, b, e)), Y.current = m, y()));
7416
+ }), G = tO(() => {
7417
+ if (!f.current)
7418
7418
  throw new Error("Editor not initialized");
7419
- return P.current;
7419
+ return f.current;
7420
7420
  });
7421
7421
  return K(() => {
7422
7422
  if (!x.current) return;
7423
- const g = new lt({
7423
+ const m = new lt({
7424
7424
  parent: x.current,
7425
7425
  scrollTo: lt.scrollIntoView(0),
7426
- state: vt.create(R)
7426
+ state: vt.create(b)
7427
7427
  });
7428
- return P.current = g, S(!0), Q?.(g), () => {
7429
- g.destroy(), P.current = null, b.current = null, S(!1);
7428
+ return f.current = m, S(!0), Q?.(m), () => {
7429
+ m.destroy(), f.current = null, Y.current = null, S(!1);
7430
7430
  };
7431
7431
  }, []), K(() => {
7432
7432
  y();
7433
7433
  }, [n, h, o]), K(() => {
7434
- const g = P.current;
7435
- t !== void 0 && g && cc(g, t);
7434
+ const m = f.current;
7435
+ t !== void 0 && m && cc(m, t);
7436
7436
  }, [t]), K(() => {
7437
- r && j(r);
7437
+ r && U(r);
7438
7438
  }, [r]), K(() => {
7439
- const g = P.current;
7440
- g && (s && [a].push(...Dx(s)), g.dispatch({
7439
+ const m = f.current;
7440
+ m && (s && [a].push(...Dx(s)), m.dispatch({
7441
7441
  effects: [X.current.reconfigure(a ?? [])]
7442
7442
  }));
7443
- }, [a, s]), eO(
7443
+ }, [a, s]), OO(
7444
7444
  () => ({
7445
7445
  ref: x,
7446
- mounted: f,
7447
- getEditor: C,
7448
- restoreState: j
7446
+ mounted: P,
7447
+ getEditor: G,
7448
+ restoreState: U
7449
7449
  }),
7450
- [f]
7450
+ [P]
7451
7451
  );
7452
7452
  }
7453
7453
  function Wy(O) {
@@ -7574,29 +7574,33 @@ const No = Hi(
7574
7574
  withLineNumbers: r = !1,
7575
7575
  ...n
7576
7576
  }) => {
7577
- const a = r$(), s = eO(() => fs(e)?.parse(O) ?? null, [e, O]), o = eO(() => {
7577
+ const a = r$(), s = OO(() => fs(e)?.parse(O) ?? null, [e, O]), o = OO(() => {
7578
7578
  const Q = [], $ = fs(e), c = a, d = /* @__PURE__ */ new Set();
7579
- for (const b of i)
7580
- for (let m = b.start; m <= b.end; m++)
7581
- d.add(m);
7579
+ for (const X of i)
7580
+ for (let g = X.start; g <= X.end; g++)
7581
+ d.add(g);
7582
7582
  const h = [];
7583
- let f = [], S = 0;
7584
- const x = ({ lineIndex: b }) => r && /* @__PURE__ */ p(
7583
+ let P = [], S = 0;
7584
+ const x = O.split(`
7585
+ `).length, f = String(x).length, Y = ({ lineIndex: X }) => r && /* @__PURE__ */ p(
7585
7586
  "span",
7586
7587
  {
7587
7588
  style: {
7589
+ display: "inline-block",
7590
+ width: `${f}ch`,
7591
+ textAlign: "right",
7588
7592
  marginRight: "var(--mantine-spacing-xl)",
7589
- color: `var(--mantine-color-slate-${d.has(b) ? 5 : 6})`
7593
+ color: `var(--mantine-color-slate-${d.has(X) ? 5 : 6})`
7590
7594
  },
7591
- children: b + 1
7595
+ children: X + 1
7592
7596
  }
7593
- ), P = () => {
7594
- const b = d.has(S);
7595
- if (f.length > 0) {
7596
- const m = [...f];
7597
- b ? h.push([
7597
+ ), T = () => {
7598
+ const X = d.has(S);
7599
+ if (P.length > 0) {
7600
+ const g = [...P];
7601
+ X ? h.push([
7598
7602
  /* @__PURE__ */ p(
7599
- x,
7603
+ Y,
7600
7604
  {
7601
7605
  lineIndex: S
7602
7606
  },
@@ -7610,26 +7614,26 @@ const No = Hi(
7610
7614
  width: "100%",
7611
7615
  backgroundColor: "var(--surreal-glass-subtle)"
7612
7616
  },
7613
- children: m
7617
+ children: g
7614
7618
  },
7615
7619
  `highlight-${S}`
7616
7620
  ),
7617
7621
  /* @__PURE__ */ p("br", {}, `br-${S}`)
7618
7622
  ]) : h.push([
7619
7623
  /* @__PURE__ */ p(
7620
- x,
7624
+ Y,
7621
7625
  {
7622
7626
  lineIndex: S
7623
7627
  },
7624
7628
  `ln-${S}`
7625
7629
  ),
7626
- ...m,
7630
+ ...g,
7627
7631
  /* @__PURE__ */ p("br", {}, `br-${S}`)
7628
- ]), f = [], S++;
7632
+ ]), P = [], S++;
7629
7633
  } else
7630
- b ? h.push([
7634
+ X ? h.push([
7631
7635
  /* @__PURE__ */ p(
7632
- x,
7636
+ Y,
7633
7637
  {
7634
7638
  lineIndex: S
7635
7639
  },
@@ -7650,7 +7654,7 @@ const No = Hi(
7650
7654
  /* @__PURE__ */ p("br", {}, `br-${S}`)
7651
7655
  ]) : h.push([
7652
7656
  /* @__PURE__ */ p(
7653
- x,
7657
+ Y,
7654
7658
  {
7655
7659
  lineIndex: S
7656
7660
  },
@@ -7663,27 +7667,27 @@ const No = Hi(
7663
7667
  O,
7664
7668
  s,
7665
7669
  Jx(c),
7666
- (b, m) => {
7667
- f.push(
7670
+ (X, g) => {
7671
+ P.push(
7668
7672
  /* @__PURE__ */ p(
7669
7673
  "span",
7670
7674
  {
7671
- style: { color: m },
7672
- children: b
7675
+ style: { color: g },
7676
+ children: X
7673
7677
  },
7674
- `span-${S}-${f.length}`
7678
+ `span-${S}-${P.length}`
7675
7679
  )
7676
7680
  );
7677
7681
  },
7678
7682
  () => {
7679
- P();
7683
+ T();
7680
7684
  }
7681
- ), f.length > 0 && P()) : O.split(`
7682
- `).forEach((m, X) => {
7683
- f = [/* @__PURE__ */ p("span", { children: m }, `text-${X}`)], P();
7685
+ ), P.length > 0 && T()) : O.split(`
7686
+ `).forEach((g, b) => {
7687
+ P = [/* @__PURE__ */ p("span", { children: g }, `text-${b}`)], T();
7684
7688
  });
7685
- for (const b of h)
7686
- Q.push(...b);
7689
+ for (const X of h)
7690
+ Q.push(...X);
7687
7691
  return Q;
7688
7692
  }, [e, O, s, i, r, a]);
7689
7693
  return /* @__PURE__ */ p(
@@ -7740,17 +7744,17 @@ const No = Hi(
7740
7744
  copyCodeProps: s,
7741
7745
  ...o
7742
7746
  }) => {
7743
- const [Q, $] = E(!1), { code: c, regions: d } = eO(() => {
7744
- const h = OV(e), { processedCode: f, regions: S } = eV(
7747
+ const [Q, $] = E(!1), { code: c, regions: d } = OO(() => {
7748
+ const h = OV(e), { processedCode: P, regions: S } = eV(
7745
7749
  h.code
7746
7750
  );
7747
7751
  return {
7748
- code: f,
7752
+ code: P,
7749
7753
  regions: S,
7750
7754
  test: h.test
7751
7755
  };
7752
7756
  }, [e]);
7753
- return /* @__PURE__ */ k(
7757
+ return /* @__PURE__ */ v(
7754
7758
  tt,
7755
7759
  {
7756
7760
  radius: "md",
@@ -7786,7 +7790,7 @@ const No = Hi(
7786
7790
  )
7787
7791
  }
7788
7792
  ),
7789
- /* @__PURE__ */ k(
7793
+ /* @__PURE__ */ v(
7790
7794
  rO,
7791
7795
  {
7792
7796
  pos: "relative",
@@ -7802,10 +7806,10 @@ const No = Hi(
7802
7806
  withLineNumbers: r
7803
7807
  }
7804
7808
  ),
7805
- /* @__PURE__ */ p(a$, { value: c, children: ({ copy: h, copied: f }) => /* @__PURE__ */ p(
7809
+ /* @__PURE__ */ p(a$, { value: c, children: ({ copy: h, copied: P }) => /* @__PURE__ */ p(
7806
7810
  Le,
7807
7811
  {
7808
- label: f ? "Copied!" : "Copy code",
7812
+ label: P ? "Copied!" : "Copy code",
7809
7813
  position: "top",
7810
7814
  children: /* @__PURE__ */ p(
7811
7815
  Te,
@@ -7823,7 +7827,7 @@ const No = Hi(
7823
7827
  nO,
7824
7828
  {
7825
7829
  size: "sm",
7826
- path: f ? ol : Fs
7830
+ path: P ? ol : Fs
7827
7831
  }
7828
7832
  )
7829
7833
  }
@@ -7853,7 +7857,7 @@ const No = Hi(
7853
7857
  children: O
7854
7858
  }
7855
7859
  );
7856
- oa.Summary = ({ children: O, className: e, ...t }) => /* @__PURE__ */ k(
7860
+ oa.Summary = ({ children: O, className: e, ...t }) => /* @__PURE__ */ v(
7857
7861
  rO,
7858
7862
  {
7859
7863
  component: "summary",
@@ -7885,7 +7889,7 @@ const sV = ["note", "tip", "important", "warning", "caution"], Lo = ({ kind: O,
7885
7889
  important: Qt,
7886
7890
  warning: Qt,
7887
7891
  caution: Qt
7888
- }, o = () => /* @__PURE__ */ k(xe, { gap: "xs", children: [
7892
+ }, o = () => /* @__PURE__ */ v(xe, { gap: "xs", children: [
7889
7893
  /* @__PURE__ */ p(
7890
7894
  nO,
7891
7895
  {
@@ -7911,7 +7915,7 @@ const sV = ["note", "tip", "important", "warning", "caution"], Lo = ({ kind: O,
7911
7915
  };
7912
7916
  function $V({ size: O, color: e, className: t, title: i, ...r }) {
7913
7917
  const n = Hs();
7914
- return /* @__PURE__ */ k(
7918
+ return /* @__PURE__ */ v(
7915
7919
  rO,
7916
7920
  {
7917
7921
  component: "svg",
@@ -7941,7 +7945,7 @@ function $V({ size: O, color: e, className: t, title: i, ...r }) {
7941
7945
  );
7942
7946
  }
7943
7947
  function cV({ config: O, frameRef: e, ...t }) {
7944
- const i = eO(() => {
7948
+ const i = OO(() => {
7945
7949
  const { url: r, ...n } = O ?? {}, a = new URL(r ?? "https://app.surrealdb.com/mini"), s = new URLSearchParams(a.search), o = {
7946
7950
  appearance: "compact",
7947
7951
  theme: "auto",
@@ -8053,7 +8057,7 @@ function PV({
8053
8057
  lang: r,
8054
8058
  withBorder: e,
8055
8059
  ...n
8056
- }, $ = n, c = eO(() => ({
8060
+ }, $ = n, c = OO(() => ({
8057
8061
  ...fV(O),
8058
8062
  query: t,
8059
8063
  appearance: "plain",
@@ -8067,7 +8071,7 @@ function PV({
8067
8071
  h.origin === "https://app.surrealdb.com" && h.source === o.current?.contentWindow && h.data?.action === "ready" && s("loaded");
8068
8072
  }
8069
8073
  return window.addEventListener("message", d), () => window.removeEventListener("message", d);
8070
- }, []), /* @__PURE__ */ k(
8074
+ }, []), /* @__PURE__ */ v(
8071
8075
  Ht,
8072
8076
  {
8073
8077
  align: "baseline",
@@ -8080,7 +8084,7 @@ function PV({
8080
8084
  ...Q,
8081
8085
  w: "100%"
8082
8086
  }
8083
- ) : /* @__PURE__ */ k(
8087
+ ) : /* @__PURE__ */ v(
8084
8088
  rO,
8085
8089
  {
8086
8090
  pos: "relative",
@@ -8089,7 +8093,7 @@ function PV({
8089
8093
  w: "100%",
8090
8094
  className: ne(br.container, $.className),
8091
8095
  children: [
8092
- /* @__PURE__ */ k(
8096
+ /* @__PURE__ */ v(
8093
8097
  tt,
8094
8098
  {
8095
8099
  pos: "absolute",
@@ -8164,7 +8168,7 @@ const SV = "_light_eq7fy_1", XV = "_dark_eq7fy_8", Ts = {
8164
8168
  ...r
8165
8169
  }) => {
8166
8170
  const n = e ?? O;
8167
- return /* @__PURE__ */ k(Ke, { children: [
8171
+ return /* @__PURE__ */ v(Ke, { children: [
8168
8172
  /* @__PURE__ */ p(
8169
8173
  Ut,
8170
8174
  {
@@ -8203,7 +8207,7 @@ function xV(O) {
8203
8207
  );
8204
8208
  }
8205
8209
  function VV(O, e, t) {
8206
- return /* @__PURE__ */ k(
8210
+ return /* @__PURE__ */ v(
8207
8211
  eo,
8208
8212
  {
8209
8213
  order: O,
@@ -8524,53 +8528,53 @@ function ZV({
8524
8528
  scope: r,
8525
8529
  ...n
8526
8530
  }) {
8527
- const a = eO(
8531
+ const a = OO(
8528
8532
  () => bV(t, i, r),
8529
8533
  [t, i, r]
8530
- ), s = eO(() => e ? { ...a, ...e } : a, [e, a]), o = N(
8534
+ ), s = OO(() => e ? { ...a, ...e } : a, [e, a]), o = N(
8531
8535
  ($, c, d, h) => {
8532
- const f = `${$.type}-${c}`, S = () => s[$.type];
8536
+ const P = `${$.type}-${c}`, S = () => s[$.type];
8533
8537
  if ($.type === "text")
8534
8538
  return $.value;
8535
8539
  let x = h;
8536
8540
  if ($.type === "table" && (x = { table: $ }), _V($)) {
8537
- const b = S(), m = $, X = m.children[0], T = m.children.slice(1), R = X ? o(X, 0, $, x) : null, y = T.map(
8538
- (j, C) => o(j, C + 1, $, x)
8541
+ const Y = S(), T = $, X = T.children[0], g = T.children.slice(1), b = X ? o(X, 0, $, x) : null, y = g.map(
8542
+ (U, G) => o(U, G + 1, $, x)
8539
8543
  );
8540
- return /* @__PURE__ */ k(
8541
- b,
8544
+ return /* @__PURE__ */ v(
8545
+ Y,
8542
8546
  {
8543
8547
  node: $,
8544
8548
  children: [
8545
- X && /* @__PURE__ */ p(H.Thead, { children: R }),
8549
+ X && /* @__PURE__ */ p(H.Thead, { children: b }),
8546
8550
  /* @__PURE__ */ p(H.Tbody, { children: y })
8547
8551
  ]
8548
8552
  },
8549
- f
8553
+ P
8550
8554
  );
8551
8555
  }
8552
8556
  if (RV($)) {
8553
- const b = S();
8557
+ const Y = S();
8554
8558
  return /* @__PURE__ */ p(
8555
- b,
8559
+ Y,
8556
8560
  {
8557
8561
  node: $,
8558
- children: $.children.map((m, X) => o(m, X, $, x))
8562
+ children: $.children.map((T, X) => o(T, X, $, x))
8559
8563
  },
8560
- f
8564
+ P
8561
8565
  );
8562
8566
  }
8563
- const P = S();
8567
+ const f = S();
8564
8568
  return /* @__PURE__ */ p(
8565
- P,
8569
+ f,
8566
8570
  {
8567
8571
  node: $
8568
8572
  },
8569
- f
8573
+ P
8570
8574
  );
8571
8575
  },
8572
8576
  [s]
8573
- ), Q = eO(() => O.children.map(($, c) => o($, c, O, void 0)), [O, o]);
8577
+ ), Q = OO(() => O.children.map(($, c) => o($, c, O, void 0)), [O, o]);
8574
8578
  return /* @__PURE__ */ p(
8575
8579
  Ht,
8576
8580
  {
@@ -9152,8 +9156,8 @@ SO.checkYieldAwaitInDefaultParams = function() {
9152
9156
  SO.isSimpleAssignTarget = function(O) {
9153
9157
  return O.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(O.expression) : O.type === "Identifier" || O.type === "MemberExpression";
9154
9158
  };
9155
- var q = sO.prototype;
9156
- q.parseTopLevel = function(O) {
9159
+ var z = sO.prototype;
9160
+ z.parseTopLevel = function(O) {
9157
9161
  var e = /* @__PURE__ */ Object.create(null);
9158
9162
  for (O.body || (O.body = []); this.type !== u.eof; ) {
9159
9163
  var t = this.parseStatement(null, !0, e);
@@ -9167,7 +9171,7 @@ q.parseTopLevel = function(O) {
9167
9171
  return this.adaptDirectivePrologue(O.body), this.next(), O.sourceType = this.options.sourceType, this.finishNode(O, "Program");
9168
9172
  };
9169
9173
  var en = { kind: "loop" }, Qw = { kind: "switch" };
9170
- q.isLet = function(O) {
9174
+ z.isLet = function(O) {
9171
9175
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
9172
9176
  return !1;
9173
9177
  hO.lastIndex = this.pos;
@@ -9189,14 +9193,14 @@ q.isLet = function(O) {
9189
9193
  }
9190
9194
  return !1;
9191
9195
  };
9192
- q.isAsyncFunction = function() {
9196
+ z.isAsyncFunction = function() {
9193
9197
  if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
9194
9198
  return !1;
9195
9199
  hO.lastIndex = this.pos;
9196
9200
  var O = hO.exec(this.input), e = this.pos + O[0].length, t;
9197
9201
  return !yO.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !(Ue(t = this.input.charCodeAt(e + 8)) || t > 55295 && t < 56320));
9198
9202
  };
9199
- q.isUsingKeyword = function(O, e) {
9203
+ z.isUsingKeyword = function(O, e) {
9200
9204
  if (this.options.ecmaVersion < 17 || !this.isContextual(O ? "await" : "using"))
9201
9205
  return !1;
9202
9206
  hO.lastIndex = this.pos;
@@ -9220,13 +9224,13 @@ q.isUsingKeyword = function(O, e) {
9220
9224
  var Q = this.input.charCodeAt(i);
9221
9225
  return se(Q, !0) || Q === 92;
9222
9226
  };
9223
- q.isAwaitUsing = function(O) {
9227
+ z.isAwaitUsing = function(O) {
9224
9228
  return this.isUsingKeyword(!0, O);
9225
9229
  };
9226
- q.isUsing = function(O) {
9230
+ z.isUsing = function(O) {
9227
9231
  return this.isUsingKeyword(!1, O);
9228
9232
  };
9229
- q.parseStatement = function(O, e, t) {
9233
+ z.parseStatement = function(O, e, t) {
9230
9234
  var i = this.type, r = this.startNode(), n;
9231
9235
  switch (this.isLet(O) && (i = u._var, n = "let"), i) {
9232
9236
  case u._break:
@@ -9287,7 +9291,7 @@ q.parseStatement = function(O, e, t) {
9287
9291
  return i === u.name && c.type === "Identifier" && this.eat(u.colon) ? this.parseLabeledStatement(r, $, c, O) : this.parseExpressionStatement(r, c);
9288
9292
  }
9289
9293
  };
9290
- q.parseBreakContinueStatement = function(O, e) {
9294
+ z.parseBreakContinueStatement = function(O, e) {
9291
9295
  var t = e === "break";
9292
9296
  this.next(), this.eat(u.semi) || this.insertSemicolon() ? O.label = null : this.type !== u.name ? this.unexpected() : (O.label = this.parseIdent(), this.semicolon());
9293
9297
  for (var i = 0; i < this.labels.length; ++i) {
@@ -9297,13 +9301,13 @@ q.parseBreakContinueStatement = function(O, e) {
9297
9301
  }
9298
9302
  return i === this.labels.length && this.raise(O.start, "Unsyntactic " + e), this.finishNode(O, t ? "BreakStatement" : "ContinueStatement");
9299
9303
  };
9300
- q.parseDebuggerStatement = function(O) {
9304
+ z.parseDebuggerStatement = function(O) {
9301
9305
  return this.next(), this.semicolon(), this.finishNode(O, "DebuggerStatement");
9302
9306
  };
9303
- q.parseDoStatement = function(O) {
9307
+ z.parseDoStatement = function(O) {
9304
9308
  return this.next(), this.labels.push(en), O.body = this.parseStatement("do"), this.labels.pop(), this.expect(u._while), O.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(u.semi) : this.semicolon(), this.finishNode(O, "DoWhileStatement");
9305
9309
  };
9306
- q.parseForStatement = function(O) {
9310
+ z.parseForStatement = function(O) {
9307
9311
  this.next();
9308
9312
  var e = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
9309
9313
  if (this.labels.push(en), this.enterScope(0), this.expect(u.parenL), this.type === u.semi)
@@ -9321,19 +9325,19 @@ q.parseForStatement = function(O) {
9321
9325
  var Q = this.containsEsc, $ = new sr(), c = this.start, d = e > -1 ? this.parseExprSubscripts($, "await") : this.parseExpression(!0, $);
9322
9326
  return this.type === u._in || (a = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (e > -1 ? (this.type === u._in && this.unexpected(e), O.await = !0) : a && this.options.ecmaVersion >= 8 && (d.start === c && !Q && d.type === "Identifier" && d.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (O.await = !1)), n && a && this.raise(d.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(d, !1, $), this.checkLValPattern(d), this.parseForIn(O, d)) : (this.checkExpressionErrors($, !0), e > -1 && this.unexpected(e), this.parseFor(O, d));
9323
9327
  };
9324
- q.parseForAfterInit = function(O, e, t) {
9328
+ z.parseForAfterInit = function(O, e, t) {
9325
9329
  return (this.type === u._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && e.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === u._in ? t > -1 && this.unexpected(t) : O.await = t > -1), this.parseForIn(O, e)) : (t > -1 && this.unexpected(t), this.parseFor(O, e));
9326
9330
  };
9327
- q.parseFunctionStatement = function(O, e, t) {
9331
+ z.parseFunctionStatement = function(O, e, t) {
9328
9332
  return this.next(), this.parseFunction(O, qt | (t ? 0 : ca), !1, e);
9329
9333
  };
9330
- q.parseIfStatement = function(O) {
9334
+ z.parseIfStatement = function(O) {
9331
9335
  return this.next(), O.test = this.parseParenExpression(), O.consequent = this.parseStatement("if"), O.alternate = this.eat(u._else) ? this.parseStatement("if") : null, this.finishNode(O, "IfStatement");
9332
9336
  };
9333
- q.parseReturnStatement = function(O) {
9337
+ z.parseReturnStatement = function(O) {
9334
9338
  return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(u.semi) || this.insertSemicolon() ? O.argument = null : (O.argument = this.parseExpression(), this.semicolon()), this.finishNode(O, "ReturnStatement");
9335
9339
  };
9336
- q.parseSwitchStatement = function(O) {
9340
+ z.parseSwitchStatement = function(O) {
9337
9341
  this.next(), O.discriminant = this.parseParenExpression(), O.cases = [], this.expect(u.braceL), this.labels.push(Qw), this.enterScope(0);
9338
9342
  for (var e, t = !1; this.type !== u.braceR; )
9339
9343
  if (this.type === u._case || this.type === u._default) {
@@ -9343,34 +9347,34 @@ q.parseSwitchStatement = function(O) {
9343
9347
  e || this.unexpected(), e.consequent.push(this.parseStatement(null));
9344
9348
  return this.exitScope(), e && this.finishNode(e, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(O, "SwitchStatement");
9345
9349
  };
9346
- q.parseThrowStatement = function(O) {
9350
+ z.parseThrowStatement = function(O) {
9347
9351
  return this.next(), yO.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), O.argument = this.parseExpression(), this.semicolon(), this.finishNode(O, "ThrowStatement");
9348
9352
  };
9349
9353
  var lw = [];
9350
- q.parseCatchClauseParam = function() {
9354
+ z.parseCatchClauseParam = function() {
9351
9355
  var O = this.parseBindingAtom(), e = O.type === "Identifier";
9352
9356
  return this.enterScope(e ? cQ : 0), this.checkLValPattern(O, e ? dQ : Re), this.expect(u.parenR), O;
9353
9357
  };
9354
- q.parseTryStatement = function(O) {
9358
+ z.parseTryStatement = function(O) {
9355
9359
  if (this.next(), O.block = this.parseBlock(), O.handler = null, this.type === u._catch) {
9356
9360
  var e = this.startNode();
9357
9361
  this.next(), this.eat(u.parenL) ? e.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), e.param = null, this.enterScope(0)), e.body = this.parseBlock(!1), this.exitScope(), O.handler = this.finishNode(e, "CatchClause");
9358
9362
  }
9359
9363
  return O.finalizer = this.eat(u._finally) ? this.parseBlock() : null, !O.handler && !O.finalizer && this.raise(O.start, "Missing catch or finally clause"), this.finishNode(O, "TryStatement");
9360
9364
  };
9361
- q.parseVarStatement = function(O, e, t) {
9365
+ z.parseVarStatement = function(O, e, t) {
9362
9366
  return this.next(), this.parseVar(O, !1, e, t), this.semicolon(), this.finishNode(O, "VariableDeclaration");
9363
9367
  };
9364
- q.parseWhileStatement = function(O) {
9368
+ z.parseWhileStatement = function(O) {
9365
9369
  return this.next(), O.test = this.parseParenExpression(), this.labels.push(en), O.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(O, "WhileStatement");
9366
9370
  };
9367
- q.parseWithStatement = function(O) {
9371
+ z.parseWithStatement = function(O) {
9368
9372
  return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), O.object = this.parseParenExpression(), O.body = this.parseStatement("with"), this.finishNode(O, "WithStatement");
9369
9373
  };
9370
- q.parseEmptyStatement = function(O) {
9374
+ z.parseEmptyStatement = function(O) {
9371
9375
  return this.next(), this.finishNode(O, "EmptyStatement");
9372
9376
  };
9373
- q.parseLabeledStatement = function(O, e, t, i) {
9377
+ z.parseLabeledStatement = function(O, e, t, i) {
9374
9378
  for (var r = 0, n = this.labels; r < n.length; r += 1) {
9375
9379
  var a = n[r];
9376
9380
  a.name === e && this.raise(t.start, "Label '" + e + "' is already declared");
@@ -9384,27 +9388,27 @@ q.parseLabeledStatement = function(O, e, t, i) {
9384
9388
  }
9385
9389
  return this.labels.push({ name: e, kind: s, statementStart: this.start }), O.body = this.parseStatement(i ? i.indexOf("label") === -1 ? i + "label" : i : "label"), this.labels.pop(), O.label = t, this.finishNode(O, "LabeledStatement");
9386
9390
  };
9387
- q.parseExpressionStatement = function(O, e) {
9391
+ z.parseExpressionStatement = function(O, e) {
9388
9392
  return O.expression = e, this.semicolon(), this.finishNode(O, "ExpressionStatement");
9389
9393
  };
9390
- q.parseBlock = function(O, e, t) {
9394
+ z.parseBlock = function(O, e, t) {
9391
9395
  for (O === void 0 && (O = !0), e === void 0 && (e = this.startNode()), e.body = [], this.expect(u.braceL), O && this.enterScope(0); this.type !== u.braceR; ) {
9392
9396
  var i = this.parseStatement(null);
9393
9397
  e.body.push(i);
9394
9398
  }
9395
9399
  return t && (this.strict = !1), this.next(), O && this.exitScope(), this.finishNode(e, "BlockStatement");
9396
9400
  };
9397
- q.parseFor = function(O, e) {
9401
+ z.parseFor = function(O, e) {
9398
9402
  return O.init = e, this.expect(u.semi), O.test = this.type === u.semi ? null : this.parseExpression(), this.expect(u.semi), O.update = this.type === u.parenR ? null : this.parseExpression(), this.expect(u.parenR), O.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(O, "ForStatement");
9399
9403
  };
9400
- q.parseForIn = function(O, e) {
9404
+ z.parseForIn = function(O, e) {
9401
9405
  var t = this.type === u._in;
9402
9406
  return this.next(), e.type === "VariableDeclaration" && e.declarations[0].init != null && (!t || this.options.ecmaVersion < 8 || this.strict || e.kind !== "var" || e.declarations[0].id.type !== "Identifier") && this.raise(
9403
9407
  e.start,
9404
9408
  (t ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"
9405
9409
  ), O.left = e, O.right = t ? this.parseExpression() : this.parseMaybeAssign(), this.expect(u.parenR), O.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(O, t ? "ForInStatement" : "ForOfStatement");
9406
9410
  };
9407
- q.parseVar = function(O, e, t, i) {
9411
+ z.parseVar = function(O, e, t, i) {
9408
9412
  for (O.declarations = [], O.kind = t; ; ) {
9409
9413
  var r = this.startNode();
9410
9414
  if (this.parseVarId(r, t), this.eat(u.eq) ? r.init = this.parseMaybeAssign(e) : !i && t === "const" && !(this.type === u._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !i && (t === "using" || t === "await using") && this.options.ecmaVersion >= 17 && this.type !== u._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + t + " declaration") : !i && r.id.type !== "Identifier" && !(e && (this.type === u._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : r.init = null, O.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(u.comma))
@@ -9412,19 +9416,19 @@ q.parseVar = function(O, e, t, i) {
9412
9416
  }
9413
9417
  return O;
9414
9418
  };
9415
- q.parseVarId = function(O, e) {
9419
+ z.parseVarId = function(O, e) {
9416
9420
  O.id = e === "using" || e === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(O.id, e === "var" ? On : Re, !1);
9417
9421
  };
9418
9422
  var qt = 1, ca = 2, PQ = 4;
9419
- q.parseFunction = function(O, e, t, i, r) {
9423
+ z.parseFunction = function(O, e, t, i, r) {
9420
9424
  this.initFunction(O), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === u.star && e & ca && this.unexpected(), O.generator = this.eat(u.star)), this.options.ecmaVersion >= 8 && (O.async = !!i), e & qt && (O.id = e & PQ && this.type !== u.name ? null : this.parseIdent(), O.id && !(e & ca) && this.checkLValSimple(O.id, this.strict || O.generator || O.async ? this.treatFunctionsAsVar ? On : Re : pQ));
9421
9425
  var n = this.yieldPos, a = this.awaitPos, s = this.awaitIdentPos;
9422
9426
  return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ja(O.async, O.generator)), e & qt || (O.id = this.type === u.name ? this.parseIdent() : null), this.parseFunctionParams(O), this.parseFunctionBody(O, t, !1, r), this.yieldPos = n, this.awaitPos = a, this.awaitIdentPos = s, this.finishNode(O, e & qt ? "FunctionDeclaration" : "FunctionExpression");
9423
9427
  };
9424
- q.parseFunctionParams = function(O) {
9428
+ z.parseFunctionParams = function(O) {
9425
9429
  this.expect(u.parenL), O.params = this.parseBindingList(u.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
9426
9430
  };
9427
- q.parseClass = function(O, e) {
9431
+ z.parseClass = function(O, e) {
9428
9432
  this.next();
9429
9433
  var t = this.strict;
9430
9434
  this.strict = !0, this.parseClassId(O, e), this.parseClassSuper(O);
@@ -9435,7 +9439,7 @@ q.parseClass = function(O, e) {
9435
9439
  }
9436
9440
  return this.strict = t, this.next(), O.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(O, e ? "ClassDeclaration" : "ClassExpression");
9437
9441
  };
9438
- q.parseClassElement = function(O) {
9442
+ z.parseClassElement = function(O) {
9439
9443
  if (this.eat(u.semi))
9440
9444
  return null;
9441
9445
  var e = this.options.ecmaVersion, t = this.startNode(), i = "", r = !1, n = !1, a = "method", s = !1;
@@ -9455,22 +9459,22 @@ q.parseClassElement = function(O) {
9455
9459
  this.parseClassField(t);
9456
9460
  return t;
9457
9461
  };
9458
- q.isClassElementNameStart = function() {
9462
+ z.isClassElementNameStart = function() {
9459
9463
  return this.type === u.name || this.type === u.privateId || this.type === u.num || this.type === u.string || this.type === u.bracketL || this.type.keyword;
9460
9464
  };
9461
- q.parseClassElementName = function(O) {
9465
+ z.parseClassElementName = function(O) {
9462
9466
  this.type === u.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), O.computed = !1, O.key = this.parsePrivateIdent()) : this.parsePropertyName(O);
9463
9467
  };
9464
- q.parseClassMethod = function(O, e, t, i) {
9468
+ z.parseClassMethod = function(O, e, t, i) {
9465
9469
  var r = O.key;
9466
9470
  O.kind === "constructor" ? (e && this.raise(r.start, "Constructor can't be a generator"), t && this.raise(r.start, "Constructor can't be an async method")) : O.static && Ai(O, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
9467
9471
  var n = O.value = this.parseMethod(e, t, i);
9468
9472
  return O.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), O.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), O.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(O, "MethodDefinition");
9469
9473
  };
9470
- q.parseClassField = function(O) {
9474
+ z.parseClassField = function(O) {
9471
9475
  return Ai(O, "constructor") ? this.raise(O.key.start, "Classes can't have a field named 'constructor'") : O.static && Ai(O, "prototype") && this.raise(O.key.start, "Classes can't have a static field named 'prototype'"), this.eat(u.eq) ? (this.enterScope(ri | ar), O.value = this.parseMaybeAssign(), this.exitScope()) : O.value = null, this.semicolon(), this.finishNode(O, "PropertyDefinition");
9472
9476
  };
9473
- q.parseClassStaticBlock = function(O) {
9477
+ z.parseClassStaticBlock = function(O) {
9474
9478
  O.body = [];
9475
9479
  var e = this.labels;
9476
9480
  for (this.labels = [], this.enterScope(rt | ar); this.type !== u.braceR; ) {
@@ -9479,17 +9483,17 @@ q.parseClassStaticBlock = function(O) {
9479
9483
  }
9480
9484
  return this.next(), this.exitScope(), this.labels = e, this.finishNode(O, "StaticBlock");
9481
9485
  };
9482
- q.parseClassId = function(O, e) {
9486
+ z.parseClassId = function(O, e) {
9483
9487
  this.type === u.name ? (O.id = this.parseIdent(), e && this.checkLValSimple(O.id, Re, !1)) : (e === !0 && this.unexpected(), O.id = null);
9484
9488
  };
9485
- q.parseClassSuper = function(O) {
9489
+ z.parseClassSuper = function(O) {
9486
9490
  O.superClass = this.eat(u._extends) ? this.parseExprSubscripts(null, !1) : null;
9487
9491
  };
9488
- q.enterClassBody = function() {
9492
+ z.enterClassBody = function() {
9489
9493
  var O = { declared: /* @__PURE__ */ Object.create(null), used: [] };
9490
9494
  return this.privateNameStack.push(O), O.declared;
9491
9495
  };
9492
- q.exitClassBody = function() {
9496
+ z.exitClassBody = function() {
9493
9497
  var O = this.privateNameStack.pop(), e = O.declared, t = O.used;
9494
9498
  if (this.options.checkPrivateFields)
9495
9499
  for (var i = this.privateNameStack.length, r = i === 0 ? null : this.privateNameStack[i - 1], n = 0; n < t.length; ++n) {
@@ -9505,10 +9509,10 @@ function Ai(O, e) {
9505
9509
  var t = O.computed, i = O.key;
9506
9510
  return !t && (i.type === "Identifier" && i.name === e || i.type === "Literal" && i.value === e);
9507
9511
  }
9508
- q.parseExportAllDeclaration = function(O, e) {
9512
+ z.parseExportAllDeclaration = function(O, e) {
9509
9513
  return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (O.exported = this.parseModuleExportName(), this.checkExport(e, O.exported, this.lastTokStart)) : O.exported = null), this.expectContextual("from"), this.type !== u.string && this.unexpected(), O.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (O.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(O, "ExportAllDeclaration");
9510
9514
  };
9511
- q.parseExport = function(O, e) {
9515
+ z.parseExport = function(O, e) {
9512
9516
  if (this.next(), this.eat(u.star))
9513
9517
  return this.parseExportAllDeclaration(O, e);
9514
9518
  if (this.eat(u._default))
@@ -9529,10 +9533,10 @@ q.parseExport = function(O, e) {
9529
9533
  }
9530
9534
  return this.finishNode(O, "ExportNamedDeclaration");
9531
9535
  };
9532
- q.parseExportDeclaration = function(O) {
9536
+ z.parseExportDeclaration = function(O) {
9533
9537
  return this.parseStatement(null);
9534
9538
  };
9535
- q.parseExportDefaultDeclaration = function() {
9539
+ z.parseExportDefaultDeclaration = function() {
9536
9540
  var O;
9537
9541
  if (this.type === u._function || (O = this.isAsyncFunction())) {
9538
9542
  var e = this.startNode();
@@ -9545,10 +9549,10 @@ q.parseExportDefaultDeclaration = function() {
9545
9549
  return this.semicolon(), i;
9546
9550
  }
9547
9551
  };
9548
- q.checkExport = function(O, e, t) {
9552
+ z.checkExport = function(O, e, t) {
9549
9553
  O && (typeof e != "string" && (e = e.type === "Identifier" ? e.name : e.value), Xt(O, e) && this.raiseRecoverable(t, "Duplicate export '" + e + "'"), O[e] = !0);
9550
9554
  };
9551
- q.checkPatternExport = function(O, e) {
9555
+ z.checkPatternExport = function(O, e) {
9552
9556
  var t = e.type;
9553
9557
  if (t === "Identifier")
9554
9558
  this.checkExport(O, e, e.start);
@@ -9564,17 +9568,17 @@ q.checkPatternExport = function(O, e) {
9564
9568
  }
9565
9569
  else t === "Property" ? this.checkPatternExport(O, e.value) : t === "AssignmentPattern" ? this.checkPatternExport(O, e.left) : t === "RestElement" && this.checkPatternExport(O, e.argument);
9566
9570
  };
9567
- q.checkVariableExport = function(O, e) {
9571
+ z.checkVariableExport = function(O, e) {
9568
9572
  if (O)
9569
9573
  for (var t = 0, i = e; t < i.length; t += 1) {
9570
9574
  var r = i[t];
9571
9575
  this.checkPatternExport(O, r.id);
9572
9576
  }
9573
9577
  };
9574
- q.shouldParseExportStatement = function() {
9578
+ z.shouldParseExportStatement = function() {
9575
9579
  return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
9576
9580
  };
9577
- q.parseExportSpecifier = function(O) {
9581
+ z.parseExportSpecifier = function(O) {
9578
9582
  var e = this.startNode();
9579
9583
  return e.local = this.parseModuleExportName(), e.exported = this.eatContextual("as") ? this.parseModuleExportName() : e.local, this.checkExport(
9580
9584
  O,
@@ -9582,7 +9586,7 @@ q.parseExportSpecifier = function(O) {
9582
9586
  e.exported.start
9583
9587
  ), this.finishNode(e, "ExportSpecifier");
9584
9588
  };
9585
- q.parseExportSpecifiers = function(O) {
9589
+ z.parseExportSpecifiers = function(O) {
9586
9590
  var e = [], t = !0;
9587
9591
  for (this.expect(u.braceL); !this.eat(u.braceR); ) {
9588
9592
  if (t)
@@ -9593,22 +9597,22 @@ q.parseExportSpecifiers = function(O) {
9593
9597
  }
9594
9598
  return e;
9595
9599
  };
9596
- q.parseImport = function(O) {
9600
+ z.parseImport = function(O) {
9597
9601
  return this.next(), this.type === u.string ? (O.specifiers = lw, O.source = this.parseExprAtom()) : (O.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), O.source = this.type === u.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (O.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(O, "ImportDeclaration");
9598
9602
  };
9599
- q.parseImportSpecifier = function() {
9603
+ z.parseImportSpecifier = function() {
9600
9604
  var O = this.startNode();
9601
9605
  return O.imported = this.parseModuleExportName(), this.eatContextual("as") ? O.local = this.parseIdent() : (this.checkUnreserved(O.imported), O.local = O.imported), this.checkLValSimple(O.local, Re), this.finishNode(O, "ImportSpecifier");
9602
9606
  };
9603
- q.parseImportDefaultSpecifier = function() {
9607
+ z.parseImportDefaultSpecifier = function() {
9604
9608
  var O = this.startNode();
9605
9609
  return O.local = this.parseIdent(), this.checkLValSimple(O.local, Re), this.finishNode(O, "ImportDefaultSpecifier");
9606
9610
  };
9607
- q.parseImportNamespaceSpecifier = function() {
9611
+ z.parseImportNamespaceSpecifier = function() {
9608
9612
  var O = this.startNode();
9609
9613
  return this.next(), this.expectContextual("as"), O.local = this.parseIdent(), this.checkLValSimple(O.local, Re), this.finishNode(O, "ImportNamespaceSpecifier");
9610
9614
  };
9611
- q.parseImportSpecifiers = function() {
9615
+ z.parseImportSpecifiers = function() {
9612
9616
  var O = [], e = !0;
9613
9617
  if (this.type === u.name && (O.push(this.parseImportDefaultSpecifier()), !this.eat(u.comma)))
9614
9618
  return O;
@@ -9623,7 +9627,7 @@ q.parseImportSpecifiers = function() {
9623
9627
  }
9624
9628
  return O;
9625
9629
  };
9626
- q.parseWithClause = function() {
9630
+ z.parseWithClause = function() {
9627
9631
  var O = [];
9628
9632
  if (!this.eat(u._with))
9629
9633
  return O;
@@ -9638,22 +9642,22 @@ q.parseWithClause = function() {
9638
9642
  }
9639
9643
  return O;
9640
9644
  };
9641
- q.parseImportAttribute = function() {
9645
+ z.parseImportAttribute = function() {
9642
9646
  var O = this.startNode();
9643
9647
  return O.key = this.type === u.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(u.colon), this.type !== u.string && this.unexpected(), O.value = this.parseExprAtom(), this.finishNode(O, "ImportAttribute");
9644
9648
  };
9645
- q.parseModuleExportName = function() {
9649
+ z.parseModuleExportName = function() {
9646
9650
  if (this.options.ecmaVersion >= 13 && this.type === u.string) {
9647
9651
  var O = this.parseLiteral(this.value);
9648
9652
  return aw.test(O.value) && this.raise(O.start, "An export name cannot include a lone surrogate."), O;
9649
9653
  }
9650
9654
  return this.parseIdent(!0);
9651
9655
  };
9652
- q.adaptDirectivePrologue = function(O) {
9656
+ z.adaptDirectivePrologue = function(O) {
9653
9657
  for (var e = 0; e < O.length && this.isDirectiveCandidate(O[e]); ++e)
9654
9658
  O[e].directive = O[e].expression.raw.slice(1, -1);
9655
9659
  };
9656
- q.isDirectiveCandidate = function(O) {
9660
+ z.isDirectiveCandidate = function(O) {
9657
9661
  return this.options.ecmaVersion >= 5 && O.type === "ExpressionStatement" && O.expression.type === "Literal" && typeof O.expression.value == "string" && // Reject parenthesized strings.
9658
9662
  (this.input[O.start] === '"' || this.input[O.start] === "'");
9659
9663
  };
@@ -9895,8 +9899,8 @@ u.name.updateContext = function(O) {
9895
9899
  var e = !1;
9896
9900
  this.options.ecmaVersion >= 6 && O !== u.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (e = !0), this.exprAllowed = e;
9897
9901
  };
9898
- var U = sO.prototype;
9899
- U.checkPropClash = function(O, e, t) {
9902
+ var C = sO.prototype;
9903
+ C.checkPropClash = function(O, e, t) {
9900
9904
  if (!(this.options.ecmaVersion >= 9 && O.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (O.computed || O.method || O.shorthand))) {
9901
9905
  var i = O.key, r;
9902
9906
  switch (i.type) {
@@ -9928,7 +9932,7 @@ U.checkPropClash = function(O, e, t) {
9928
9932
  a[n] = !0;
9929
9933
  }
9930
9934
  };
9931
- U.parseExpression = function(O, e) {
9935
+ C.parseExpression = function(O, e) {
9932
9936
  var t = this.start, i = this.startLoc, r = this.parseMaybeAssign(O, e);
9933
9937
  if (this.type === u.comma) {
9934
9938
  var n = this.startNodeAt(t, i);
@@ -9938,7 +9942,7 @@ U.parseExpression = function(O, e) {
9938
9942
  }
9939
9943
  return r;
9940
9944
  };
9941
- U.parseMaybeAssign = function(O, e, t) {
9945
+ C.parseMaybeAssign = function(O, e, t) {
9942
9946
  if (this.isContextual("yield")) {
9943
9947
  if (this.inGenerator)
9944
9948
  return this.parseYield(O);
@@ -9956,7 +9960,7 @@ U.parseMaybeAssign = function(O, e, t) {
9956
9960
  i && this.checkExpressionErrors(e, !0);
9957
9961
  return r > -1 && (e.parenthesizedAssign = r), n > -1 && (e.trailingComma = n), Q;
9958
9962
  };
9959
- U.parseMaybeConditional = function(O, e) {
9963
+ C.parseMaybeConditional = function(O, e) {
9960
9964
  var t = this.start, i = this.startLoc, r = this.parseExprOps(O, e);
9961
9965
  if (this.checkExpressionErrors(e))
9962
9966
  return r;
@@ -9966,11 +9970,11 @@ U.parseMaybeConditional = function(O, e) {
9966
9970
  }
9967
9971
  return r;
9968
9972
  };
9969
- U.parseExprOps = function(O, e) {
9973
+ C.parseExprOps = function(O, e) {
9970
9974
  var t = this.start, i = this.startLoc, r = this.parseMaybeUnary(e, !1, !1, O);
9971
9975
  return this.checkExpressionErrors(e) || r.start === t && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, t, i, -1, O);
9972
9976
  };
9973
- U.parseExprOp = function(O, e, t, i, r) {
9977
+ C.parseExprOp = function(O, e, t, i, r) {
9974
9978
  var n = this.type.binop;
9975
9979
  if (n != null && (!r || this.type !== u._in) && n > i) {
9976
9980
  var a = this.type === u.logicalOR || this.type === u.logicalAND, s = this.type === u.coalesce;
@@ -9982,12 +9986,12 @@ U.parseExprOp = function(O, e, t, i, r) {
9982
9986
  }
9983
9987
  return O;
9984
9988
  };
9985
- U.buildBinary = function(O, e, t, i, r, n) {
9989
+ C.buildBinary = function(O, e, t, i, r, n) {
9986
9990
  i.type === "PrivateIdentifier" && this.raise(i.start, "Private identifier can only be left side of binary expression");
9987
9991
  var a = this.startNodeAt(O, e);
9988
9992
  return a.left = t, a.operator = r, a.right = i, this.finishNode(a, n ? "LogicalExpression" : "BinaryExpression");
9989
9993
  };
9990
- U.parseMaybeUnary = function(O, e, t, i) {
9994
+ C.parseMaybeUnary = function(O, e, t, i) {
9991
9995
  var r = this.start, n = this.startLoc, a;
9992
9996
  if (this.isContextual("await") && this.canAwait)
9993
9997
  a = this.parseAwait(i), e = !0;
@@ -10018,14 +10022,14 @@ function fQ(O) {
10018
10022
  function ua(O) {
10019
10023
  return O.type === "MemberExpression" && O.property.type === "PrivateIdentifier" || O.type === "ChainExpression" && ua(O.expression) || O.type === "ParenthesizedExpression" && ua(O.expression);
10020
10024
  }
10021
- U.parseExprSubscripts = function(O, e) {
10025
+ C.parseExprSubscripts = function(O, e) {
10022
10026
  var t = this.start, i = this.startLoc, r = this.parseExprAtom(O, e);
10023
10027
  if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
10024
10028
  return r;
10025
10029
  var n = this.parseSubscripts(r, t, i, !1, e);
10026
10030
  return O && n.type === "MemberExpression" && (O.parenthesizedAssign >= n.start && (O.parenthesizedAssign = -1), O.parenthesizedBind >= n.start && (O.parenthesizedBind = -1), O.trailingComma >= n.start && (O.trailingComma = -1)), n;
10027
10031
  };
10028
- U.parseSubscripts = function(O, e, t, i, r) {
10032
+ C.parseSubscripts = function(O, e, t, i, r) {
10029
10033
  for (var n = this.options.ecmaVersion >= 8 && O.type === "Identifier" && O.name === "async" && this.lastTokEnd === O.end && !this.canInsertSemicolon() && O.end - O.start === 5 && this.potentialArrowAt === O.start, a = !1; ; ) {
10030
10034
  var s = this.parseSubscript(O, e, t, i, n, a, r);
10031
10035
  if (s.optional && (a = !0), s === O || s.type === "ArrowFunctionExpression") {
@@ -10038,13 +10042,13 @@ U.parseSubscripts = function(O, e, t, i, r) {
10038
10042
  O = s;
10039
10043
  }
10040
10044
  };
10041
- U.shouldParseAsyncArrow = function() {
10045
+ C.shouldParseAsyncArrow = function() {
10042
10046
  return !this.canInsertSemicolon() && this.eat(u.arrow);
10043
10047
  };
10044
- U.parseSubscriptAsyncArrow = function(O, e, t, i) {
10048
+ C.parseSubscriptAsyncArrow = function(O, e, t, i) {
10045
10049
  return this.parseArrowExpression(this.startNodeAt(O, e), t, !0, i);
10046
10050
  };
10047
- U.parseSubscript = function(O, e, t, i, r, n, a) {
10051
+ C.parseSubscript = function(O, e, t, i, r, n, a) {
10048
10052
  var s = this.options.ecmaVersion >= 11, o = s && this.eat(u.questionDot);
10049
10053
  i && o && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
10050
10054
  var Q = this.eat(u.bracketL);
@@ -10052,22 +10056,22 @@ U.parseSubscript = function(O, e, t, i, r, n, a) {
10052
10056
  var $ = this.startNodeAt(e, t);
10053
10057
  $.object = O, Q ? ($.property = this.parseExpression(), this.expect(u.bracketR)) : this.type === u.privateId && O.type !== "Super" ? $.property = this.parsePrivateIdent() : $.property = this.parseIdent(this.options.allowReserved !== "never"), $.computed = !!Q, s && ($.optional = o), O = this.finishNode($, "MemberExpression");
10054
10058
  } else if (!i && this.eat(u.parenL)) {
10055
- var c = new sr(), d = this.yieldPos, h = this.awaitPos, f = this.awaitIdentPos;
10059
+ var c = new sr(), d = this.yieldPos, h = this.awaitPos, P = this.awaitIdentPos;
10056
10060
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
10057
10061
  var S = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1, c);
10058
10062
  if (r && !o && this.shouldParseAsyncArrow())
10059
- return this.checkPatternErrors(c, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = d, this.awaitPos = h, this.awaitIdentPos = f, this.parseSubscriptAsyncArrow(e, t, S, a);
10060
- this.checkExpressionErrors(c, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = h || this.awaitPos, this.awaitIdentPos = f || this.awaitIdentPos;
10063
+ return this.checkPatternErrors(c, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = d, this.awaitPos = h, this.awaitIdentPos = P, this.parseSubscriptAsyncArrow(e, t, S, a);
10064
+ this.checkExpressionErrors(c, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = h || this.awaitPos, this.awaitIdentPos = P || this.awaitIdentPos;
10061
10065
  var x = this.startNodeAt(e, t);
10062
10066
  x.callee = O, x.arguments = S, s && (x.optional = o), O = this.finishNode(x, "CallExpression");
10063
10067
  } else if (this.type === u.backQuote) {
10064
10068
  (o || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
10065
- var P = this.startNodeAt(e, t);
10066
- P.tag = O, P.quasi = this.parseTemplate({ isTagged: !0 }), O = this.finishNode(P, "TaggedTemplateExpression");
10069
+ var f = this.startNodeAt(e, t);
10070
+ f.tag = O, f.quasi = this.parseTemplate({ isTagged: !0 }), O = this.finishNode(f, "TaggedTemplateExpression");
10067
10071
  }
10068
10072
  return O;
10069
10073
  };
10070
- U.parseExprAtom = function(O, e, t) {
10074
+ C.parseExprAtom = function(O, e, t) {
10071
10075
  this.type === u.slash && this.readRegexp();
10072
10076
  var i, r = this.potentialArrowAt === this.start;
10073
10077
  switch (this.type) {
@@ -10117,10 +10121,10 @@ U.parseExprAtom = function(O, e, t) {
10117
10121
  return this.parseExprAtomDefault();
10118
10122
  }
10119
10123
  };
10120
- U.parseExprAtomDefault = function() {
10124
+ C.parseExprAtomDefault = function() {
10121
10125
  this.unexpected();
10122
10126
  };
10123
- U.parseExprImport = function(O) {
10127
+ C.parseExprImport = function(O) {
10124
10128
  var e = this.startNode();
10125
10129
  if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === u.parenL && !O)
10126
10130
  return this.parseDynamicImport(e);
@@ -10130,7 +10134,7 @@ U.parseExprImport = function(O) {
10130
10134
  } else
10131
10135
  this.unexpected();
10132
10136
  };
10133
- U.parseDynamicImport = function(O) {
10137
+ C.parseDynamicImport = function(O) {
10134
10138
  if (this.next(), O.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16)
10135
10139
  this.eat(u.parenR) ? O.options = null : (this.expect(u.comma), this.afterTrailingComma(u.parenR) ? O.options = null : (O.options = this.parseMaybeAssign(), this.eat(u.parenR) || (this.expect(u.comma), this.afterTrailingComma(u.parenR) || this.unexpected())));
10136
10140
  else if (!this.eat(u.parenR)) {
@@ -10139,34 +10143,34 @@ U.parseDynamicImport = function(O) {
10139
10143
  }
10140
10144
  return this.finishNode(O, "ImportExpression");
10141
10145
  };
10142
- U.parseImportMeta = function(O) {
10146
+ C.parseImportMeta = function(O) {
10143
10147
  this.next();
10144
10148
  var e = this.containsEsc;
10145
10149
  return O.property = this.parseIdent(!0), O.property.name !== "meta" && this.raiseRecoverable(O.property.start, "The only valid meta property for import is 'import.meta'"), e && this.raiseRecoverable(O.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(O.start, "Cannot use 'import.meta' outside a module"), this.finishNode(O, "MetaProperty");
10146
10150
  };
10147
- U.parseLiteral = function(O) {
10151
+ C.parseLiteral = function(O) {
10148
10152
  var e = this.startNode();
10149
10153
  return e.value = O, e.raw = this.input.slice(this.start, this.end), e.raw.charCodeAt(e.raw.length - 1) === 110 && (e.bigint = e.value != null ? e.value.toString() : e.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(e, "Literal");
10150
10154
  };
10151
- U.parseParenExpression = function() {
10155
+ C.parseParenExpression = function() {
10152
10156
  this.expect(u.parenL);
10153
10157
  var O = this.parseExpression();
10154
10158
  return this.expect(u.parenR), O;
10155
10159
  };
10156
- U.shouldParseArrow = function(O) {
10160
+ C.shouldParseArrow = function(O) {
10157
10161
  return !this.canInsertSemicolon();
10158
10162
  };
10159
- U.parseParenAndDistinguishExpression = function(O, e) {
10163
+ C.parseParenAndDistinguishExpression = function(O, e) {
10160
10164
  var t = this.start, i = this.startLoc, r, n = this.options.ecmaVersion >= 8;
10161
10165
  if (this.options.ecmaVersion >= 6) {
10162
10166
  this.next();
10163
- var a = this.start, s = this.startLoc, o = [], Q = !0, $ = !1, c = new sr(), d = this.yieldPos, h = this.awaitPos, f;
10167
+ var a = this.start, s = this.startLoc, o = [], Q = !0, $ = !1, c = new sr(), d = this.yieldPos, h = this.awaitPos, P;
10164
10168
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== u.parenR; )
10165
10169
  if (Q ? Q = !1 : this.expect(u.comma), n && this.afterTrailingComma(u.parenR, !0)) {
10166
10170
  $ = !0;
10167
10171
  break;
10168
10172
  } else if (this.type === u.ellipsis) {
10169
- f = this.start, o.push(this.parseParenItem(this.parseRestBinding())), this.type === u.comma && this.raiseRecoverable(
10173
+ P = this.start, o.push(this.parseParenItem(this.parseRestBinding())), this.type === u.comma && this.raiseRecoverable(
10170
10174
  this.start,
10171
10175
  "Comma is not permitted after the rest element"
10172
10176
  );
@@ -10176,23 +10180,23 @@ U.parseParenAndDistinguishExpression = function(O, e) {
10176
10180
  var S = this.lastTokEnd, x = this.lastTokEndLoc;
10177
10181
  if (this.expect(u.parenR), O && this.shouldParseArrow(o) && this.eat(u.arrow))
10178
10182
  return this.checkPatternErrors(c, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d, this.awaitPos = h, this.parseParenArrowList(t, i, o, e);
10179
- (!o.length || $) && this.unexpected(this.lastTokStart), f && this.unexpected(f), this.checkExpressionErrors(c, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = h || this.awaitPos, o.length > 1 ? (r = this.startNodeAt(a, s), r.expressions = o, this.finishNodeAt(r, "SequenceExpression", S, x)) : r = o[0];
10183
+ (!o.length || $) && this.unexpected(this.lastTokStart), P && this.unexpected(P), this.checkExpressionErrors(c, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = h || this.awaitPos, o.length > 1 ? (r = this.startNodeAt(a, s), r.expressions = o, this.finishNodeAt(r, "SequenceExpression", S, x)) : r = o[0];
10180
10184
  } else
10181
10185
  r = this.parseParenExpression();
10182
10186
  if (this.options.preserveParens) {
10183
- var P = this.startNodeAt(t, i);
10184
- return P.expression = r, this.finishNode(P, "ParenthesizedExpression");
10187
+ var f = this.startNodeAt(t, i);
10188
+ return f.expression = r, this.finishNode(f, "ParenthesizedExpression");
10185
10189
  } else
10186
10190
  return r;
10187
10191
  };
10188
- U.parseParenItem = function(O) {
10192
+ C.parseParenItem = function(O) {
10189
10193
  return O;
10190
10194
  };
10191
- U.parseParenArrowList = function(O, e, t, i) {
10195
+ C.parseParenArrowList = function(O, e, t, i) {
10192
10196
  return this.parseArrowExpression(this.startNodeAt(O, e), t, !1, i);
10193
10197
  };
10194
10198
  var cw = [];
10195
- U.parseNew = function() {
10199
+ C.parseNew = function() {
10196
10200
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
10197
10201
  var O = this.startNode();
10198
10202
  if (this.next(), this.options.ecmaVersion >= 6 && this.type === u.dot) {
@@ -10204,7 +10208,7 @@ U.parseNew = function() {
10204
10208
  var i = this.start, r = this.startLoc;
10205
10209
  return O.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), i, r, !0, !1), this.eat(u.parenL) ? O.arguments = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1) : O.arguments = cw, this.finishNode(O, "NewExpression");
10206
10210
  };
10207
- U.parseTemplateElement = function(O) {
10211
+ C.parseTemplateElement = function(O) {
10208
10212
  var e = O.isTagged, t = this.startNode();
10209
10213
  return this.type === u.invalidTemplate ? (e || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), t.value = {
10210
10214
  raw: this.value.replace(/\r\n?/g, `
@@ -10216,7 +10220,7 @@ U.parseTemplateElement = function(O) {
10216
10220
  cooked: this.value
10217
10221
  }, this.next(), t.tail = this.type === u.backQuote, this.finishNode(t, "TemplateElement");
10218
10222
  };
10219
- U.parseTemplate = function(O) {
10223
+ C.parseTemplate = function(O) {
10220
10224
  O === void 0 && (O = {});
10221
10225
  var e = O.isTagged;
10222
10226
  e === void 0 && (e = !1);
@@ -10227,10 +10231,10 @@ U.parseTemplate = function(O) {
10227
10231
  this.type === u.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(u.dollarBraceL), t.expressions.push(this.parseExpression()), this.expect(u.braceR), t.quasis.push(i = this.parseTemplateElement({ isTagged: e }));
10228
10232
  return this.next(), this.finishNode(t, "TemplateLiteral");
10229
10233
  };
10230
- U.isAsyncProp = function(O) {
10234
+ C.isAsyncProp = function(O) {
10231
10235
  return !O.computed && O.key.type === "Identifier" && O.key.name === "async" && (this.type === u.name || this.type === u.num || this.type === u.string || this.type === u.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === u.star) && !yO.test(this.input.slice(this.lastTokEnd, this.start));
10232
10236
  };
10233
- U.parseObj = function(O, e) {
10237
+ C.parseObj = function(O, e) {
10234
10238
  var t = this.startNode(), i = !0, r = {};
10235
10239
  for (t.properties = [], this.next(); !this.eat(u.braceR); ) {
10236
10240
  if (i)
@@ -10242,7 +10246,7 @@ U.parseObj = function(O, e) {
10242
10246
  }
10243
10247
  return this.finishNode(t, O ? "ObjectPattern" : "ObjectExpression");
10244
10248
  };
10245
- U.parseProperty = function(O, e) {
10249
+ C.parseProperty = function(O, e) {
10246
10250
  var t = this.startNode(), i, r, n, a;
10247
10251
  if (this.options.ecmaVersion >= 9 && this.eat(u.ellipsis))
10248
10252
  return O ? (t.argument = this.parseIdent(!1), this.type === u.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(t, "RestElement")) : (t.argument = this.parseMaybeAssign(!1, e), this.type === u.comma && e && e.trailingComma < 0 && (e.trailingComma = this.start), this.finishNode(t, "SpreadElement"));
@@ -10250,7 +10254,7 @@ U.parseProperty = function(O, e) {
10250
10254
  var s = this.containsEsc;
10251
10255
  return this.parsePropertyName(t), !O && !s && this.options.ecmaVersion >= 8 && !i && this.isAsyncProp(t) ? (r = !0, i = this.options.ecmaVersion >= 9 && this.eat(u.star), this.parsePropertyName(t)) : r = !1, this.parsePropertyValue(t, O, i, r, n, a, e, s), this.finishNode(t, "Property");
10252
10256
  };
10253
- U.parseGetterSetter = function(O) {
10257
+ C.parseGetterSetter = function(O) {
10254
10258
  var e = O.key.name;
10255
10259
  this.parsePropertyName(O), O.value = this.parseMethod(!1), O.kind = e;
10256
10260
  var t = O.kind === "get" ? 0 : 1;
@@ -10260,10 +10264,10 @@ U.parseGetterSetter = function(O) {
10260
10264
  } else
10261
10265
  O.kind === "set" && O.value.params[0].type === "RestElement" && this.raiseRecoverable(O.value.params[0].start, "Setter cannot use rest params");
10262
10266
  };
10263
- U.parsePropertyValue = function(O, e, t, i, r, n, a, s) {
10267
+ C.parsePropertyValue = function(O, e, t, i, r, n, a, s) {
10264
10268
  (t || i) && this.type === u.colon && this.unexpected(), this.eat(u.colon) ? (O.value = e ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, a), O.kind = "init") : this.options.ecmaVersion >= 6 && this.type === u.parenL ? (e && this.unexpected(), O.method = !0, O.value = this.parseMethod(t, i), O.kind = "init") : !e && !s && this.options.ecmaVersion >= 5 && !O.computed && O.key.type === "Identifier" && (O.key.name === "get" || O.key.name === "set") && this.type !== u.comma && this.type !== u.braceR && this.type !== u.eq ? ((t || i) && this.unexpected(), this.parseGetterSetter(O)) : this.options.ecmaVersion >= 6 && !O.computed && O.key.type === "Identifier" ? ((t || i) && this.unexpected(), this.checkUnreserved(O.key), O.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), e ? O.value = this.parseMaybeDefault(r, n, this.copyNode(O.key)) : this.type === u.eq && a ? (a.shorthandAssign < 0 && (a.shorthandAssign = this.start), O.value = this.parseMaybeDefault(r, n, this.copyNode(O.key))) : O.value = this.copyNode(O.key), O.kind = "init", O.shorthand = !0) : this.unexpected();
10265
10269
  };
10266
- U.parsePropertyName = function(O) {
10270
+ C.parsePropertyName = function(O) {
10267
10271
  if (this.options.ecmaVersion >= 6) {
10268
10272
  if (this.eat(u.bracketL))
10269
10273
  return O.computed = !0, O.key = this.parseMaybeAssign(), this.expect(u.bracketR), O.key;
@@ -10271,18 +10275,18 @@ U.parsePropertyName = function(O) {
10271
10275
  }
10272
10276
  return O.key = this.type === u.num || this.type === u.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
10273
10277
  };
10274
- U.initFunction = function(O) {
10278
+ C.initFunction = function(O) {
10275
10279
  O.id = null, this.options.ecmaVersion >= 6 && (O.generator = O.expression = !1), this.options.ecmaVersion >= 8 && (O.async = !1);
10276
10280
  };
10277
- U.parseMethod = function(O, e, t) {
10281
+ C.parseMethod = function(O, e, t) {
10278
10282
  var i = this.startNode(), r = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
10279
10283
  return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = O), this.options.ecmaVersion >= 8 && (i.async = !!e), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ja(e, i.generator) | ar | (t ? uQ : 0)), this.expect(u.parenL), i.params = this.parseBindingList(u.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(i, !1, !0, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(i, "FunctionExpression");
10280
10284
  };
10281
- U.parseArrowExpression = function(O, e, t, i) {
10285
+ C.parseArrowExpression = function(O, e, t, i) {
10282
10286
  var r = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
10283
10287
  return this.enterScope(Ja(t, !1) | Ha), this.initFunction(O), this.options.ecmaVersion >= 8 && (O.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, O.params = this.toAssignableList(e, !0), this.parseFunctionBody(O, !0, !1, i), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(O, "ArrowFunctionExpression");
10284
10288
  };
10285
- U.parseFunctionBody = function(O, e, t, i) {
10289
+ C.parseFunctionBody = function(O, e, t, i) {
10286
10290
  var r = e && this.type !== u.braceL, n = this.strict, a = !1;
10287
10291
  if (r)
10288
10292
  O.body = this.parseMaybeAssign(i), O.expression = !0, this.checkParams(O, !1);
@@ -10294,7 +10298,7 @@ U.parseFunctionBody = function(O, e, t, i) {
10294
10298
  }
10295
10299
  this.exitScope();
10296
10300
  };
10297
- U.isSimpleParamList = function(O) {
10301
+ C.isSimpleParamList = function(O) {
10298
10302
  for (var e = 0, t = O; e < t.length; e += 1) {
10299
10303
  var i = t[e];
10300
10304
  if (i.type !== "Identifier")
@@ -10302,13 +10306,13 @@ U.isSimpleParamList = function(O) {
10302
10306
  }
10303
10307
  return !0;
10304
10308
  };
10305
- U.checkParams = function(O, e) {
10309
+ C.checkParams = function(O, e) {
10306
10310
  for (var t = /* @__PURE__ */ Object.create(null), i = 0, r = O.params; i < r.length; i += 1) {
10307
10311
  var n = r[i];
10308
10312
  this.checkLValInnerPattern(n, On, e ? null : t);
10309
10313
  }
10310
10314
  };
10311
- U.parseExprList = function(O, e, t, i) {
10315
+ C.parseExprList = function(O, e, t, i) {
10312
10316
  for (var r = [], n = !0; !this.eat(O); ) {
10313
10317
  if (n)
10314
10318
  n = !1;
@@ -10319,31 +10323,31 @@ U.parseExprList = function(O, e, t, i) {
10319
10323
  }
10320
10324
  return r;
10321
10325
  };
10322
- U.checkUnreserved = function(O) {
10326
+ C.checkUnreserved = function(O) {
10323
10327
  var e = O.start, t = O.end, i = O.name;
10324
10328
  if (this.inGenerator && i === "yield" && this.raiseRecoverable(e, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && i === "await" && this.raiseRecoverable(e, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & nr) && i === "arguments" && this.raiseRecoverable(e, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (i === "arguments" || i === "await") && this.raise(e, "Cannot use " + i + " in class static initialization block"), this.keywords.test(i) && this.raise(e, "Unexpected keyword '" + i + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(e, t).indexOf("\\") !== -1)) {
10325
10329
  var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
10326
10330
  r.test(i) && (!this.inAsync && i === "await" && this.raiseRecoverable(e, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(e, "The keyword '" + i + "' is reserved"));
10327
10331
  }
10328
10332
  };
10329
- U.parseIdent = function(O) {
10333
+ C.parseIdent = function(O) {
10330
10334
  var e = this.parseIdentNode();
10331
10335
  return this.next(!!O), this.finishNode(e, "Identifier"), O || (this.checkUnreserved(e), e.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = e.start)), e;
10332
10336
  };
10333
- U.parseIdentNode = function() {
10337
+ C.parseIdentNode = function() {
10334
10338
  var O = this.startNode();
10335
10339
  return this.type === u.name ? O.name = this.value : this.type.keyword ? (O.name = this.type.keyword, (O.name === "class" || O.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = u.name) : this.unexpected(), O;
10336
10340
  };
10337
- U.parsePrivateIdent = function() {
10341
+ C.parsePrivateIdent = function() {
10338
10342
  var O = this.startNode();
10339
10343
  return this.type === u.privateId ? O.name = this.value : this.unexpected(), this.next(), this.finishNode(O, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(O.start, "Private field '#" + O.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(O)), O;
10340
10344
  };
10341
- U.parseYield = function(O) {
10345
+ C.parseYield = function(O) {
10342
10346
  this.yieldPos || (this.yieldPos = this.start);
10343
10347
  var e = this.startNode();
10344
10348
  return this.next(), this.type === u.semi || this.canInsertSemicolon() || this.type !== u.star && !this.type.startsExpr ? (e.delegate = !1, e.argument = null) : (e.delegate = this.eat(u.star), e.argument = this.parseMaybeAssign(O)), this.finishNode(e, "YieldExpression");
10345
10349
  };
10346
- U.parseAwait = function(O) {
10350
+ C.parseAwait = function(O) {
10347
10351
  this.awaitPos || (this.awaitPos = this.start);
10348
10352
  var e = this.startNode();
10349
10353
  return this.next(), e.argument = this.parseMaybeUnary(null, !0, !1, O), this.finishNode(e, "AwaitExpression");
@@ -10476,7 +10480,7 @@ for (var vr = 0, Zs = [9, 10, 11, 12, 13, 14]; vr < Zs.length; vr += 1) {
10476
10480
  var Tw = Zs[vr];
10477
10481
  gw(Tw);
10478
10482
  }
10479
- var z = sO.prototype, Ii = function(e, t) {
10483
+ var k = sO.prototype, Ii = function(e, t) {
10480
10484
  this.parent = e, this.base = t || this;
10481
10485
  };
10482
10486
  Ii.prototype.separatedFrom = function(e) {
@@ -10540,7 +10544,7 @@ le.prototype.eatChars = function(e, t) {
10540
10544
  }
10541
10545
  return this.pos = i, !0;
10542
10546
  };
10543
- z.validateRegExpFlags = function(O) {
10547
+ k.validateRegExpFlags = function(O) {
10544
10548
  for (var e = O.validFlags, t = O.flags, i = !1, r = !1, n = 0; n < t.length; n++) {
10545
10549
  var a = t.charAt(n);
10546
10550
  e.indexOf(a) === -1 && this.raise(O.start, "Invalid regular expression flag"), t.indexOf(a, n + 1) > -1 && this.raise(O.start, "Duplicate regular expression flag"), a === "u" && (i = !0), a === "v" && (r = !0);
@@ -10552,10 +10556,10 @@ function mw(O) {
10552
10556
  return !0;
10553
10557
  return !1;
10554
10558
  }
10555
- z.validateRegExpPattern = function(O) {
10559
+ k.validateRegExpPattern = function(O) {
10556
10560
  this.regexp_pattern(O), !O.switchN && this.options.ecmaVersion >= 9 && mw(O.groupNames) && (O.switchN = !0, this.regexp_pattern(O));
10557
10561
  };
10558
- z.regexp_pattern = function(O) {
10562
+ k.regexp_pattern = function(O) {
10559
10563
  O.pos = 0, O.lastIntValue = 0, O.lastStringValue = "", O.lastAssertionIsQuantifiable = !1, O.numCapturingParens = 0, O.maxBackReference = 0, O.groupNames = /* @__PURE__ */ Object.create(null), O.backReferenceNames.length = 0, O.branchID = null, this.regexp_disjunction(O), O.pos !== O.source.length && (O.eat(
10560
10564
  41
10561
10565
  /* ) */
@@ -10571,7 +10575,7 @@ z.regexp_pattern = function(O) {
10571
10575
  O.groupNames[i] || O.raise("Invalid named capture referenced");
10572
10576
  }
10573
10577
  };
10574
- z.regexp_disjunction = function(O) {
10578
+ k.regexp_disjunction = function(O) {
10575
10579
  var e = this.options.ecmaVersion >= 16;
10576
10580
  for (e && (O.branchID = new Ii(O.branchID, null)), this.regexp_alternative(O); O.eat(
10577
10581
  124
@@ -10583,14 +10587,14 @@ z.regexp_disjunction = function(O) {
10583
10587
  /* { */
10584
10588
  ) && O.raise("Lone quantifier brackets");
10585
10589
  };
10586
- z.regexp_alternative = function(O) {
10590
+ k.regexp_alternative = function(O) {
10587
10591
  for (; O.pos < O.source.length && this.regexp_eatTerm(O); )
10588
10592
  ;
10589
10593
  };
10590
- z.regexp_eatTerm = function(O) {
10594
+ k.regexp_eatTerm = function(O) {
10591
10595
  return this.regexp_eatAssertion(O) ? (O.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(O) && O.switchU && O.raise("Invalid quantifier"), !0) : (O.switchU ? this.regexp_eatAtom(O) : this.regexp_eatExtendedAtom(O)) ? (this.regexp_eatQuantifier(O), !0) : !1;
10592
10596
  };
10593
- z.regexp_eatAssertion = function(O) {
10597
+ k.regexp_eatAssertion = function(O) {
10594
10598
  var e = O.pos;
10595
10599
  if (O.lastAssertionIsQuantifiable = !1, O.eat(
10596
10600
  94
@@ -10639,13 +10643,13 @@ z.regexp_eatAssertion = function(O) {
10639
10643
  }
10640
10644
  return O.pos = e, !1;
10641
10645
  };
10642
- z.regexp_eatQuantifier = function(O, e) {
10646
+ k.regexp_eatQuantifier = function(O, e) {
10643
10647
  return e === void 0 && (e = !1), this.regexp_eatQuantifierPrefix(O, e) ? (O.eat(
10644
10648
  63
10645
10649
  /* ? */
10646
10650
  ), !0) : !1;
10647
10651
  };
10648
- z.regexp_eatQuantifierPrefix = function(O, e) {
10652
+ k.regexp_eatQuantifierPrefix = function(O, e) {
10649
10653
  return O.eat(
10650
10654
  42
10651
10655
  /* * */
@@ -10657,7 +10661,7 @@ z.regexp_eatQuantifierPrefix = function(O, e) {
10657
10661
  /* ? */
10658
10662
  ) || this.regexp_eatBracedQuantifier(O, e);
10659
10663
  };
10660
- z.regexp_eatBracedQuantifier = function(O, e) {
10664
+ k.regexp_eatBracedQuantifier = function(O, e) {
10661
10665
  var t = O.pos;
10662
10666
  if (O.eat(
10663
10667
  123
@@ -10676,13 +10680,13 @@ z.regexp_eatBracedQuantifier = function(O, e) {
10676
10680
  }
10677
10681
  return !1;
10678
10682
  };
10679
- z.regexp_eatAtom = function(O) {
10683
+ k.regexp_eatAtom = function(O) {
10680
10684
  return this.regexp_eatPatternCharacters(O) || O.eat(
10681
10685
  46
10682
10686
  /* . */
10683
10687
  ) || this.regexp_eatReverseSolidusAtomEscape(O) || this.regexp_eatCharacterClass(O) || this.regexp_eatUncapturingGroup(O) || this.regexp_eatCapturingGroup(O);
10684
10688
  };
10685
- z.regexp_eatReverseSolidusAtomEscape = function(O) {
10689
+ k.regexp_eatReverseSolidusAtomEscape = function(O) {
10686
10690
  var e = O.pos;
10687
10691
  if (O.eat(
10688
10692
  92
@@ -10694,7 +10698,7 @@ z.regexp_eatReverseSolidusAtomEscape = function(O) {
10694
10698
  }
10695
10699
  return !1;
10696
10700
  };
10697
- z.regexp_eatUncapturingGroup = function(O) {
10701
+ k.regexp_eatUncapturingGroup = function(O) {
10698
10702
  var e = O.pos;
10699
10703
  if (O.eat(
10700
10704
  40
@@ -10740,7 +10744,7 @@ z.regexp_eatUncapturingGroup = function(O) {
10740
10744
  }
10741
10745
  return !1;
10742
10746
  };
10743
- z.regexp_eatCapturingGroup = function(O) {
10747
+ k.regexp_eatCapturingGroup = function(O) {
10744
10748
  if (O.eat(
10745
10749
  40
10746
10750
  /* ( */
@@ -10754,7 +10758,7 @@ z.regexp_eatCapturingGroup = function(O) {
10754
10758
  }
10755
10759
  return !1;
10756
10760
  };
10757
- z.regexp_eatModifiers = function(O) {
10761
+ k.regexp_eatModifiers = function(O) {
10758
10762
  for (var e = "", t = 0; (t = O.current()) !== -1 && xw(t); )
10759
10763
  e += ye(t), O.advance();
10760
10764
  return e;
@@ -10762,32 +10766,32 @@ z.regexp_eatModifiers = function(O) {
10762
10766
  function xw(O) {
10763
10767
  return O === 105 || O === 109 || O === 115;
10764
10768
  }
10765
- z.regexp_eatExtendedAtom = function(O) {
10769
+ k.regexp_eatExtendedAtom = function(O) {
10766
10770
  return O.eat(
10767
10771
  46
10768
10772
  /* . */
10769
10773
  ) || this.regexp_eatReverseSolidusAtomEscape(O) || this.regexp_eatCharacterClass(O) || this.regexp_eatUncapturingGroup(O) || this.regexp_eatCapturingGroup(O) || this.regexp_eatInvalidBracedQuantifier(O) || this.regexp_eatExtendedPatternCharacter(O);
10770
10774
  };
10771
- z.regexp_eatInvalidBracedQuantifier = function(O) {
10775
+ k.regexp_eatInvalidBracedQuantifier = function(O) {
10772
10776
  return this.regexp_eatBracedQuantifier(O, !0) && O.raise("Nothing to repeat"), !1;
10773
10777
  };
10774
- z.regexp_eatSyntaxCharacter = function(O) {
10778
+ k.regexp_eatSyntaxCharacter = function(O) {
10775
10779
  var e = O.current();
10776
10780
  return ZQ(e) ? (O.lastIntValue = e, O.advance(), !0) : !1;
10777
10781
  };
10778
10782
  function ZQ(O) {
10779
10783
  return O === 36 || O >= 40 && O <= 43 || O === 46 || O === 63 || O >= 91 && O <= 94 || O >= 123 && O <= 125;
10780
10784
  }
10781
- z.regexp_eatPatternCharacters = function(O) {
10785
+ k.regexp_eatPatternCharacters = function(O) {
10782
10786
  for (var e = O.pos, t = 0; (t = O.current()) !== -1 && !ZQ(t); )
10783
10787
  O.advance();
10784
10788
  return O.pos !== e;
10785
10789
  };
10786
- z.regexp_eatExtendedPatternCharacter = function(O) {
10790
+ k.regexp_eatExtendedPatternCharacter = function(O) {
10787
10791
  var e = O.current();
10788
10792
  return e !== -1 && e !== 36 && !(e >= 40 && e <= 43) && e !== 46 && e !== 63 && e !== 91 && e !== 94 && e !== 124 ? (O.advance(), !0) : !1;
10789
10793
  };
10790
- z.regexp_groupSpecifier = function(O) {
10794
+ k.regexp_groupSpecifier = function(O) {
10791
10795
  if (O.eat(
10792
10796
  63
10793
10797
  /* ? */
@@ -10805,7 +10809,7 @@ z.regexp_groupSpecifier = function(O) {
10805
10809
  e ? (t || (O.groupNames[O.lastStringValue] = [])).push(O.branchID) : O.groupNames[O.lastStringValue] = !0;
10806
10810
  }
10807
10811
  };
10808
- z.regexp_eatGroupName = function(O) {
10812
+ k.regexp_eatGroupName = function(O) {
10809
10813
  if (O.lastStringValue = "", O.eat(
10810
10814
  60
10811
10815
  /* < */
@@ -10819,7 +10823,7 @@ z.regexp_eatGroupName = function(O) {
10819
10823
  }
10820
10824
  return !1;
10821
10825
  };
10822
- z.regexp_eatRegExpIdentifierName = function(O) {
10826
+ k.regexp_eatRegExpIdentifierName = function(O) {
10823
10827
  if (O.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(O)) {
10824
10828
  for (O.lastStringValue += ye(O.lastIntValue); this.regexp_eatRegExpIdentifierPart(O); )
10825
10829
  O.lastStringValue += ye(O.lastIntValue);
@@ -10827,24 +10831,24 @@ z.regexp_eatRegExpIdentifierName = function(O) {
10827
10831
  }
10828
10832
  return !1;
10829
10833
  };
10830
- z.regexp_eatRegExpIdentifierStart = function(O) {
10834
+ k.regexp_eatRegExpIdentifierStart = function(O) {
10831
10835
  var e = O.pos, t = this.options.ecmaVersion >= 11, i = O.current(t);
10832
10836
  return O.advance(t), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(O, t) && (i = O.lastIntValue), Vw(i) ? (O.lastIntValue = i, !0) : (O.pos = e, !1);
10833
10837
  };
10834
10838
  function Vw(O) {
10835
10839
  return se(O, !0) || O === 36 || O === 95;
10836
10840
  }
10837
- z.regexp_eatRegExpIdentifierPart = function(O) {
10841
+ k.regexp_eatRegExpIdentifierPart = function(O) {
10838
10842
  var e = O.pos, t = this.options.ecmaVersion >= 11, i = O.current(t);
10839
10843
  return O.advance(t), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(O, t) && (i = O.lastIntValue), ww(i) ? (O.lastIntValue = i, !0) : (O.pos = e, !1);
10840
10844
  };
10841
10845
  function ww(O) {
10842
10846
  return Ue(O, !0) || O === 36 || O === 95 || O === 8204 || O === 8205;
10843
10847
  }
10844
- z.regexp_eatAtomEscape = function(O) {
10848
+ k.regexp_eatAtomEscape = function(O) {
10845
10849
  return this.regexp_eatBackReference(O) || this.regexp_eatCharacterClassEscape(O) || this.regexp_eatCharacterEscape(O) || O.switchN && this.regexp_eatKGroupName(O) ? !0 : (O.switchU && (O.current() === 99 && O.raise("Invalid unicode escape"), O.raise("Invalid escape")), !1);
10846
10850
  };
10847
- z.regexp_eatBackReference = function(O) {
10851
+ k.regexp_eatBackReference = function(O) {
10848
10852
  var e = O.pos;
10849
10853
  if (this.regexp_eatDecimalEscape(O)) {
10850
10854
  var t = O.lastIntValue;
@@ -10856,7 +10860,7 @@ z.regexp_eatBackReference = function(O) {
10856
10860
  }
10857
10861
  return !1;
10858
10862
  };
10859
- z.regexp_eatKGroupName = function(O) {
10863
+ k.regexp_eatKGroupName = function(O) {
10860
10864
  if (O.eat(
10861
10865
  107
10862
10866
  /* k */
@@ -10867,10 +10871,10 @@ z.regexp_eatKGroupName = function(O) {
10867
10871
  }
10868
10872
  return !1;
10869
10873
  };
10870
- z.regexp_eatCharacterEscape = function(O) {
10874
+ k.regexp_eatCharacterEscape = function(O) {
10871
10875
  return this.regexp_eatControlEscape(O) || this.regexp_eatCControlLetter(O) || this.regexp_eatZero(O) || this.regexp_eatHexEscapeSequence(O) || this.regexp_eatRegExpUnicodeEscapeSequence(O, !1) || !O.switchU && this.regexp_eatLegacyOctalEscapeSequence(O) || this.regexp_eatIdentityEscape(O);
10872
10876
  };
10873
- z.regexp_eatCControlLetter = function(O) {
10877
+ k.regexp_eatCControlLetter = function(O) {
10874
10878
  var e = O.pos;
10875
10879
  if (O.eat(
10876
10880
  99
@@ -10882,21 +10886,21 @@ z.regexp_eatCControlLetter = function(O) {
10882
10886
  }
10883
10887
  return !1;
10884
10888
  };
10885
- z.regexp_eatZero = function(O) {
10889
+ k.regexp_eatZero = function(O) {
10886
10890
  return O.current() === 48 && !Qr(O.lookahead()) ? (O.lastIntValue = 0, O.advance(), !0) : !1;
10887
10891
  };
10888
- z.regexp_eatControlEscape = function(O) {
10892
+ k.regexp_eatControlEscape = function(O) {
10889
10893
  var e = O.current();
10890
10894
  return e === 116 ? (O.lastIntValue = 9, O.advance(), !0) : e === 110 ? (O.lastIntValue = 10, O.advance(), !0) : e === 118 ? (O.lastIntValue = 11, O.advance(), !0) : e === 102 ? (O.lastIntValue = 12, O.advance(), !0) : e === 114 ? (O.lastIntValue = 13, O.advance(), !0) : !1;
10891
10895
  };
10892
- z.regexp_eatControlLetter = function(O) {
10896
+ k.regexp_eatControlLetter = function(O) {
10893
10897
  var e = O.current();
10894
10898
  return vQ(e) ? (O.lastIntValue = e % 32, O.advance(), !0) : !1;
10895
10899
  };
10896
10900
  function vQ(O) {
10897
10901
  return O >= 65 && O <= 90 || O >= 97 && O <= 122;
10898
10902
  }
10899
- z.regexp_eatRegExpUnicodeEscapeSequence = function(O, e) {
10903
+ k.regexp_eatRegExpUnicodeEscapeSequence = function(O, e) {
10900
10904
  e === void 0 && (e = !1);
10901
10905
  var t = O.pos, i = e || O.switchU;
10902
10906
  if (O.eat(
@@ -10937,7 +10941,7 @@ z.regexp_eatRegExpUnicodeEscapeSequence = function(O, e) {
10937
10941
  function yw(O) {
10938
10942
  return O >= 0 && O <= 1114111;
10939
10943
  }
10940
- z.regexp_eatIdentityEscape = function(O) {
10944
+ k.regexp_eatIdentityEscape = function(O) {
10941
10945
  if (O.switchU)
10942
10946
  return this.regexp_eatSyntaxCharacter(O) ? !0 : O.eat(
10943
10947
  47
@@ -10946,7 +10950,7 @@ z.regexp_eatIdentityEscape = function(O) {
10946
10950
  var e = O.current();
10947
10951
  return e !== 99 && (!O.switchN || e !== 107) ? (O.lastIntValue = e, O.advance(), !0) : !1;
10948
10952
  };
10949
- z.regexp_eatDecimalEscape = function(O) {
10953
+ k.regexp_eatDecimalEscape = function(O) {
10950
10954
  O.lastIntValue = 0;
10951
10955
  var e = O.current();
10952
10956
  if (e >= 49 && e <= 57) {
@@ -10958,7 +10962,7 @@ z.regexp_eatDecimalEscape = function(O) {
10958
10962
  return !1;
10959
10963
  };
10960
10964
  var kQ = 0, be = 1, CO = 2;
10961
- z.regexp_eatCharacterClassEscape = function(O) {
10965
+ k.regexp_eatCharacterClassEscape = function(O) {
10962
10966
  var e = O.current();
10963
10967
  if (bw(e))
10964
10968
  return O.lastIntValue = -1, O.advance(), be;
@@ -10981,7 +10985,7 @@ z.regexp_eatCharacterClassEscape = function(O) {
10981
10985
  function bw(O) {
10982
10986
  return O === 100 || O === 68 || O === 115 || O === 83 || O === 119 || O === 87;
10983
10987
  }
10984
- z.regexp_eatUnicodePropertyValueExpression = function(O) {
10988
+ k.regexp_eatUnicodePropertyValueExpression = function(O) {
10985
10989
  var e = O.pos;
10986
10990
  if (this.regexp_eatUnicodePropertyName(O) && O.eat(
10987
10991
  61
@@ -10999,17 +11003,17 @@ z.regexp_eatUnicodePropertyValueExpression = function(O) {
10999
11003
  }
11000
11004
  return kQ;
11001
11005
  };
11002
- z.regexp_validateUnicodePropertyNameAndValue = function(O, e, t) {
11006
+ k.regexp_validateUnicodePropertyNameAndValue = function(O, e, t) {
11003
11007
  Xt(O.unicodeProperties.nonBinary, e) || O.raise("Invalid property name"), O.unicodeProperties.nonBinary[e].test(t) || O.raise("Invalid property value");
11004
11008
  };
11005
- z.regexp_validateUnicodePropertyNameOrValue = function(O, e) {
11009
+ k.regexp_validateUnicodePropertyNameOrValue = function(O, e) {
11006
11010
  if (O.unicodeProperties.binary.test(e))
11007
11011
  return be;
11008
11012
  if (O.switchV && O.unicodeProperties.binaryOfStrings.test(e))
11009
11013
  return CO;
11010
11014
  O.raise("Invalid property name");
11011
11015
  };
11012
- z.regexp_eatUnicodePropertyName = function(O) {
11016
+ k.regexp_eatUnicodePropertyName = function(O) {
11013
11017
  var e = 0;
11014
11018
  for (O.lastStringValue = ""; zQ(e = O.current()); )
11015
11019
  O.lastStringValue += ye(e), O.advance();
@@ -11018,7 +11022,7 @@ z.regexp_eatUnicodePropertyName = function(O) {
11018
11022
  function zQ(O) {
11019
11023
  return vQ(O) || O === 95;
11020
11024
  }
11021
- z.regexp_eatUnicodePropertyValue = function(O) {
11025
+ k.regexp_eatUnicodePropertyValue = function(O) {
11022
11026
  var e = 0;
11023
11027
  for (O.lastStringValue = ""; _w(e = O.current()); )
11024
11028
  O.lastStringValue += ye(e), O.advance();
@@ -11027,10 +11031,10 @@ z.regexp_eatUnicodePropertyValue = function(O) {
11027
11031
  function _w(O) {
11028
11032
  return zQ(O) || Qr(O);
11029
11033
  }
11030
- z.regexp_eatLoneUnicodePropertyNameOrValue = function(O) {
11034
+ k.regexp_eatLoneUnicodePropertyNameOrValue = function(O) {
11031
11035
  return this.regexp_eatUnicodePropertyValue(O);
11032
11036
  };
11033
- z.regexp_eatCharacterClass = function(O) {
11037
+ k.regexp_eatCharacterClass = function(O) {
11034
11038
  if (O.eat(
11035
11039
  91
11036
11040
  /* [ */
@@ -11046,10 +11050,10 @@ z.regexp_eatCharacterClass = function(O) {
11046
11050
  }
11047
11051
  return !1;
11048
11052
  };
11049
- z.regexp_classContents = function(O) {
11053
+ k.regexp_classContents = function(O) {
11050
11054
  return O.current() === 93 ? be : O.switchV ? this.regexp_classSetExpression(O) : (this.regexp_nonEmptyClassRanges(O), be);
11051
11055
  };
11052
- z.regexp_nonEmptyClassRanges = function(O) {
11056
+ k.regexp_nonEmptyClassRanges = function(O) {
11053
11057
  for (; this.regexp_eatClassAtom(O); ) {
11054
11058
  var e = O.lastIntValue;
11055
11059
  if (O.eat(
@@ -11061,7 +11065,7 @@ z.regexp_nonEmptyClassRanges = function(O) {
11061
11065
  }
11062
11066
  }
11063
11067
  };
11064
- z.regexp_eatClassAtom = function(O) {
11068
+ k.regexp_eatClassAtom = function(O) {
11065
11069
  var e = O.pos;
11066
11070
  if (O.eat(
11067
11071
  92
@@ -11078,7 +11082,7 @@ z.regexp_eatClassAtom = function(O) {
11078
11082
  var i = O.current();
11079
11083
  return i !== 93 ? (O.lastIntValue = i, O.advance(), !0) : !1;
11080
11084
  };
11081
- z.regexp_eatClassEscape = function(O) {
11085
+ k.regexp_eatClassEscape = function(O) {
11082
11086
  var e = O.pos;
11083
11087
  if (O.eat(
11084
11088
  98
@@ -11100,7 +11104,7 @@ z.regexp_eatClassEscape = function(O) {
11100
11104
  }
11101
11105
  return this.regexp_eatCharacterClassEscape(O) || this.regexp_eatCharacterEscape(O);
11102
11106
  };
11103
- z.regexp_classSetExpression = function(O) {
11107
+ k.regexp_classSetExpression = function(O) {
11104
11108
  var e = be, t;
11105
11109
  if (!this.regexp_eatClassSetRange(O)) if (t = this.regexp_eatClassSetOperand(O)) {
11106
11110
  t === CO && (e = CO);
@@ -11132,7 +11136,7 @@ z.regexp_classSetExpression = function(O) {
11132
11136
  t === CO && (e = CO);
11133
11137
  }
11134
11138
  };
11135
- z.regexp_eatClassSetRange = function(O) {
11139
+ k.regexp_eatClassSetRange = function(O) {
11136
11140
  var e = O.pos;
11137
11141
  if (this.regexp_eatClassSetCharacter(O)) {
11138
11142
  var t = O.lastIntValue;
@@ -11147,10 +11151,10 @@ z.regexp_eatClassSetRange = function(O) {
11147
11151
  }
11148
11152
  return !1;
11149
11153
  };
11150
- z.regexp_eatClassSetOperand = function(O) {
11154
+ k.regexp_eatClassSetOperand = function(O) {
11151
11155
  return this.regexp_eatClassSetCharacter(O) ? be : this.regexp_eatClassStringDisjunction(O) || this.regexp_eatNestedClass(O);
11152
11156
  };
11153
- z.regexp_eatNestedClass = function(O) {
11157
+ k.regexp_eatNestedClass = function(O) {
11154
11158
  var e = O.pos;
11155
11159
  if (O.eat(
11156
11160
  91
@@ -11178,7 +11182,7 @@ z.regexp_eatNestedClass = function(O) {
11178
11182
  }
11179
11183
  return null;
11180
11184
  };
11181
- z.regexp_eatClassStringDisjunction = function(O) {
11185
+ k.regexp_eatClassStringDisjunction = function(O) {
11182
11186
  var e = O.pos;
11183
11187
  if (O.eatChars(
11184
11188
  [92, 113]
@@ -11200,7 +11204,7 @@ z.regexp_eatClassStringDisjunction = function(O) {
11200
11204
  }
11201
11205
  return null;
11202
11206
  };
11203
- z.regexp_classStringDisjunctionContents = function(O) {
11207
+ k.regexp_classStringDisjunctionContents = function(O) {
11204
11208
  for (var e = this.regexp_classString(O); O.eat(
11205
11209
  124
11206
11210
  /* | */
@@ -11208,12 +11212,12 @@ z.regexp_classStringDisjunctionContents = function(O) {
11208
11212
  this.regexp_classString(O) === CO && (e = CO);
11209
11213
  return e;
11210
11214
  };
11211
- z.regexp_classString = function(O) {
11215
+ k.regexp_classString = function(O) {
11212
11216
  for (var e = 0; this.regexp_eatClassSetCharacter(O); )
11213
11217
  e++;
11214
11218
  return e === 1 ? be : CO;
11215
11219
  };
11216
- z.regexp_eatClassSetCharacter = function(O) {
11220
+ k.regexp_eatClassSetCharacter = function(O) {
11217
11221
  var e = O.pos;
11218
11222
  if (O.eat(
11219
11223
  92
@@ -11232,18 +11236,18 @@ function Rw(O) {
11232
11236
  function Zw(O) {
11233
11237
  return O === 40 || O === 41 || O === 45 || O === 47 || O >= 91 && O <= 93 || O >= 123 && O <= 125;
11234
11238
  }
11235
- z.regexp_eatClassSetReservedPunctuator = function(O) {
11239
+ k.regexp_eatClassSetReservedPunctuator = function(O) {
11236
11240
  var e = O.current();
11237
11241
  return vw(e) ? (O.lastIntValue = e, O.advance(), !0) : !1;
11238
11242
  };
11239
11243
  function vw(O) {
11240
11244
  return O === 33 || O === 35 || O === 37 || O === 38 || O === 44 || O === 45 || O >= 58 && O <= 62 || O === 64 || O === 96 || O === 126;
11241
11245
  }
11242
- z.regexp_eatClassControlLetter = function(O) {
11246
+ k.regexp_eatClassControlLetter = function(O) {
11243
11247
  var e = O.current();
11244
11248
  return Qr(e) || e === 95 ? (O.lastIntValue = e % 32, O.advance(), !0) : !1;
11245
11249
  };
11246
- z.regexp_eatHexEscapeSequence = function(O) {
11250
+ k.regexp_eatHexEscapeSequence = function(O) {
11247
11251
  var e = O.pos;
11248
11252
  if (O.eat(
11249
11253
  120
@@ -11255,7 +11259,7 @@ z.regexp_eatHexEscapeSequence = function(O) {
11255
11259
  }
11256
11260
  return !1;
11257
11261
  };
11258
- z.regexp_eatDecimalDigits = function(O) {
11262
+ k.regexp_eatDecimalDigits = function(O) {
11259
11263
  var e = O.pos, t = 0;
11260
11264
  for (O.lastIntValue = 0; Qr(t = O.current()); )
11261
11265
  O.lastIntValue = 10 * O.lastIntValue + (t - 48), O.advance();
@@ -11264,7 +11268,7 @@ z.regexp_eatDecimalDigits = function(O) {
11264
11268
  function Qr(O) {
11265
11269
  return O >= 48 && O <= 57;
11266
11270
  }
11267
- z.regexp_eatHexDigits = function(O) {
11271
+ k.regexp_eatHexDigits = function(O) {
11268
11272
  var e = O.pos, t = 0;
11269
11273
  for (O.lastIntValue = 0; qQ(t = O.current()); )
11270
11274
  O.lastIntValue = 16 * O.lastIntValue + YQ(t), O.advance();
@@ -11276,7 +11280,7 @@ function qQ(O) {
11276
11280
  function YQ(O) {
11277
11281
  return O >= 65 && O <= 70 ? 10 + (O - 65) : O >= 97 && O <= 102 ? 10 + (O - 97) : O - 48;
11278
11282
  }
11279
- z.regexp_eatLegacyOctalEscapeSequence = function(O) {
11283
+ k.regexp_eatLegacyOctalEscapeSequence = function(O) {
11280
11284
  if (this.regexp_eatOctalDigit(O)) {
11281
11285
  var e = O.lastIntValue;
11282
11286
  if (this.regexp_eatOctalDigit(O)) {
@@ -11288,14 +11292,14 @@ z.regexp_eatLegacyOctalEscapeSequence = function(O) {
11288
11292
  }
11289
11293
  return !1;
11290
11294
  };
11291
- z.regexp_eatOctalDigit = function(O) {
11295
+ k.regexp_eatOctalDigit = function(O) {
11292
11296
  var e = O.current();
11293
11297
  return WQ(e) ? (O.lastIntValue = e - 48, O.advance(), !0) : (O.lastIntValue = 0, !1);
11294
11298
  };
11295
11299
  function WQ(O) {
11296
11300
  return O >= 48 && O <= 55;
11297
11301
  }
11298
- z.regexp_eatFixedHexDigits = function(O, e) {
11302
+ k.regexp_eatFixedHexDigits = function(O, e) {
11299
11303
  var t = O.pos;
11300
11304
  O.lastIntValue = 0;
11301
11305
  for (var i = 0; i < e; ++i) {
@@ -12072,8 +12076,8 @@ function Aw(O, e) {
12072
12076
  O[i];
12073
12077
  const h = d;
12074
12078
  for (i++; i < t; ) {
12075
- const f = O.charCodeAt(i);
12076
- if (f === h || f === re) break;
12079
+ const P = O.charCodeAt(i);
12080
+ if (P === h || P === re) break;
12077
12081
  Q.push(O[i]), i++;
12078
12082
  }
12079
12083
  i < t && O.charCodeAt(i) === h && i++;
@@ -12121,21 +12125,21 @@ function Dw(O, e, t, i) {
12121
12125
  if (a !== -1) {
12122
12126
  const S = t.slice(a + 1), x = S.indexOf(c);
12123
12127
  if (x !== -1) {
12124
- const P = S.slice(0, x);
12125
- O.currentIndex = i + 1, P.trim() && ($.children = vs([P], O)), $.position = { start: Q, end: i + 1 }, O.currentContainer.push($);
12128
+ const f = S.slice(0, x);
12129
+ O.currentIndex = i + 1, f.trim() && ($.children = vs([f], O)), $.position = { start: Q, end: i + 1 }, O.currentContainer.push($);
12126
12130
  return;
12127
12131
  }
12128
12132
  }
12129
12133
  O.currentIndex = i + 1;
12130
12134
  let d = 1;
12131
- const h = [], f = `<${e}`;
12135
+ const h = [], P = `<${e}`;
12132
12136
  if (a !== -1) {
12133
12137
  const S = t.slice(a + 1);
12134
12138
  S.trim() && h.push(S);
12135
12139
  }
12136
12140
  for (; O.currentIndex < O.lines.length && d > 0; ) {
12137
12141
  const S = O.lines[O.currentIndex], x = S.trim();
12138
- if (x.includes(f) && !x.includes(`</${e}`)) {
12142
+ if (x.includes(P) && !x.includes(`</${e}`)) {
12139
12143
  d++, h.push(S), O.currentIndex++;
12140
12144
  continue;
12141
12145
  }
@@ -12397,13 +12401,13 @@ function Mw(O, e) {
12397
12401
  if (n === -1) return null;
12398
12402
  const a = mt(r);
12399
12403
  if (n > 0 && O[n - 1] === "/") {
12400
- const f = {
12404
+ const P = {
12401
12405
  type: "jsxComponent",
12402
12406
  name: t,
12403
12407
  attributes: a,
12404
12408
  children: []
12405
12409
  };
12406
- return cO(f, a), { node: f, endIndex: n + 1 };
12410
+ return cO(P, a), { node: P, endIndex: n + 1 };
12407
12411
  }
12408
12412
  const o = `</${t}>`, Q = n + 1, $ = O.indexOf(o, Q);
12409
12413
  if ($ === -1) return null;
@@ -12425,13 +12429,13 @@ function Hw(O, e) {
12425
12429
  if ($ === -1) return null;
12426
12430
  const c = O.slice(Q, $), d = $ + o.length, h = r;
12427
12431
  if (h === "a") {
12428
- const S = typeof s.href == "string" ? s.href : "", x = typeof s.title == "string" ? s.title : void 0, P = {
12432
+ const S = typeof s.href == "string" ? s.href : "", x = typeof s.title == "string" ? s.title : void 0, f = {
12429
12433
  type: "link",
12430
12434
  url: S,
12431
12435
  title: x,
12432
12436
  children: oO(c)
12433
12437
  };
12434
- return cO(P, s), { node: P, endIndex: d };
12438
+ return cO(f, s), { node: f, endIndex: d };
12435
12439
  }
12436
12440
  if (h === "code") {
12437
12441
  const S = {
@@ -12461,11 +12465,11 @@ function Hw(O, e) {
12461
12465
  };
12462
12466
  return cO(S, s), { node: S, endIndex: d };
12463
12467
  }
12464
- const f = {
12468
+ const P = {
12465
12469
  type: "emphasis",
12466
12470
  children: oO(c)
12467
12471
  };
12468
- return cO(f, s), { node: f, endIndex: d };
12472
+ return cO(P, s), { node: P, endIndex: d };
12469
12473
  }
12470
12474
  function Jw(O, e) {
12471
12475
  const { tagName: t, endIndex: i } = et(O, e);
@@ -12737,8 +12741,8 @@ function zr(O, e) {
12737
12741
  }
12738
12742
  if (d !== -1 && d < h) {
12739
12743
  $++;
12740
- const f = O.indexOf(">", d);
12741
- c = f === -1 ? O.length : f + 1;
12744
+ const P = O.indexOf(">", d);
12745
+ c = P === -1 ? O.length : P + 1;
12742
12746
  } else
12743
12747
  $--, $ === 0 && t.push({
12744
12748
  attrs: Q,
@@ -12940,9 +12944,9 @@ function $0(O) {
12940
12944
  i++;
12941
12945
  const h = O.lines[i];
12942
12946
  t.push(h);
12943
- const f = t.join(`
12947
+ const P = t.join(`
12944
12948
  `);
12945
- if (Ot(f, r) !== -1)
12949
+ if (Ot(P, r) !== -1)
12946
12950
  break;
12947
12951
  }
12948
12952
  const n = t.join(`
@@ -12956,11 +12960,11 @@ function $0(O) {
12956
12960
  if (o === "br") {
12957
12961
  const h = { type: "break" };
12958
12962
  cO(h, d);
12959
- const f = {
12963
+ const P = {
12960
12964
  type: "paragraph",
12961
12965
  children: [h]
12962
12966
  };
12963
- O.currentContainer.push(f);
12967
+ O.currentContainer.push(P);
12964
12968
  } else if (o === "img") {
12965
12969
  const h = jQ(d);
12966
12970
  O.currentContainer.push(h);
@@ -13090,8 +13094,8 @@ function Ys(O) {
13090
13094
  const s = O.lines[O.currentIndex], o = s.trim();
13091
13095
  if (o === "") {
13092
13096
  if (O.currentIndex++, O.currentIndex >= O.lines.length) break;
13093
- const m = O.lines[O.currentIndex].trim();
13094
- if (!m.startsWith("-") && !m.startsWith("*") && !m.startsWith("+") && !ji(m))
13097
+ const T = O.lines[O.currentIndex].trim();
13098
+ if (!T.startsWith("-") && !T.startsWith("*") && !T.startsWith("+") && !ji(T))
13095
13099
  break;
13096
13100
  continue;
13097
13101
  }
@@ -13100,9 +13104,9 @@ function Ys(O) {
13100
13104
  break;
13101
13105
  const c = [];
13102
13106
  let d, h = O.currentIndex;
13103
- const f = s.length - s.trimStart().length;
13107
+ const P = s.length - s.trimStart().length;
13104
13108
  for (; h < O.lines.length; ) {
13105
- const m = O.lines[h], X = m.trim();
13109
+ const T = O.lines[h], X = T.trim();
13106
13110
  if (X === "") {
13107
13111
  h++;
13108
13112
  continue;
@@ -13111,16 +13115,16 @@ function Ys(O) {
13111
13115
  if ($)
13112
13116
  c.push(h0(X));
13113
13117
  else {
13114
- const { content: T, checked: R } = d0(X);
13115
- c.push(T), d = R;
13118
+ const { content: g, checked: b } = d0(X);
13119
+ c.push(g), d = b;
13116
13120
  }
13117
13121
  h++;
13118
- } else if (m.length - m.trimStart().length > f)
13119
- c.push(m), h++;
13122
+ } else if (T.length - T.trimStart().length > P)
13123
+ c.push(T), h++;
13120
13124
  else
13121
13125
  break;
13122
13126
  }
13123
- const P = {
13127
+ const f = {
13124
13128
  lines: c.join(`
13125
13129
  `).split(`
13126
13130
  `),
@@ -13130,13 +13134,13 @@ function Ys(O) {
13130
13134
  currentContainer: [],
13131
13135
  slugger: O.slugger
13132
13136
  };
13133
- for (P.currentContainer = P.root; P.currentIndex < P.lines.length; )
13134
- xt(P);
13135
- const b = {
13137
+ for (f.currentContainer = f.root; f.currentIndex < f.lines.length; )
13138
+ xt(f);
13139
+ const Y = {
13136
13140
  type: "listItem",
13137
- children: P.root
13141
+ children: f.root
13138
13142
  };
13139
- d !== void 0 && (b.checked = d, t === "unordered" && (t = "checklist")), e.push(b), O.currentIndex = h;
13143
+ d !== void 0 && (Y.checked = d, t === "unordered" && (t = "checklist")), e.push(Y), O.currentIndex = h;
13140
13144
  }
13141
13145
  const a = {
13142
13146
  type: "list",
@@ -13413,28 +13417,28 @@ const Li = {
13413
13417
  }, [a.code]), K(() => {
13414
13418
  s && h.current?.focus();
13415
13419
  }, [s]);
13416
- const f = N(() => {
13417
- const m = Q.trim();
13418
- m !== a.code && AO.updateElement(r, {
13420
+ const P = N(() => {
13421
+ const T = Q.trim();
13422
+ T !== a.code && AO.updateElement(r, {
13419
13423
  blockId: t,
13420
13424
  type: "cdn-image",
13421
- props: { code: m }
13425
+ props: { code: T }
13422
13426
  }), o(!1);
13423
13427
  }, [r, t, Q, a.code]), S = N(() => {
13424
13428
  $(a.code), o(!1);
13425
13429
  }, [a.code]), x = N(
13426
- (m) => {
13427
- m.stopPropagation(), m.key === "Enter" && f(), m.key === "Escape" && S();
13430
+ (T) => {
13431
+ T.stopPropagation(), T.key === "Enter" && P(), T.key === "Escape" && S();
13428
13432
  },
13429
- [f, S]
13430
- ), P = eO(() => a.code ? Lr(a.code) : "", [a.code]);
13431
- return /* @__PURE__ */ k(
13433
+ [P, S]
13434
+ ), f = OO(() => a.code ? Lr(a.code) : "", [a.code]);
13435
+ return /* @__PURE__ */ v(
13432
13436
  "div",
13433
13437
  {
13434
13438
  ...O,
13435
13439
  contentEditable: !1,
13436
13440
  children: [
13437
- !!P ? /* @__PURE__ */ k(
13441
+ !!f ? /* @__PURE__ */ v(
13438
13442
  "div",
13439
13443
  {
13440
13444
  style: {
@@ -13453,7 +13457,7 @@ const Li = {
13453
13457
  /* @__PURE__ */ p(
13454
13458
  Ut,
13455
13459
  {
13456
- src: P,
13460
+ src: f,
13457
13461
  alt: a.alt || void 0,
13458
13462
  radius: "md",
13459
13463
  fit: "contain",
@@ -13466,7 +13470,7 @@ const Li = {
13466
13470
  {
13467
13471
  type: "button",
13468
13472
  onClick: () => o(!0),
13469
- onMouseDown: (m) => m.stopPropagation(),
13473
+ onMouseDown: (T) => T.stopPropagation(),
13470
13474
  style: {
13471
13475
  position: "absolute",
13472
13476
  inset: 0,
@@ -13484,11 +13488,11 @@ const Li = {
13484
13488
  padding: "var(--mantine-spacing-md)",
13485
13489
  width: "100%"
13486
13490
  },
13487
- onMouseEnter: (m) => {
13488
- m.currentTarget.style.opacity = "1";
13491
+ onMouseEnter: (T) => {
13492
+ T.currentTarget.style.opacity = "1";
13489
13493
  },
13490
- onMouseLeave: (m) => {
13491
- s || (m.currentTarget.style.opacity = "0");
13494
+ onMouseLeave: (T) => {
13495
+ s || (T.currentTarget.style.opacity = "0");
13492
13496
  },
13493
13497
  children: s ? /* @__PURE__ */ p(
13494
13498
  wO,
@@ -13498,11 +13502,11 @@ const Li = {
13498
13502
  label: "Enter a new CDN code",
13499
13503
  placeholder: "CDN image code…",
13500
13504
  value: Q,
13501
- onChange: (m) => $(m.currentTarget.value),
13502
- onBlur: f,
13505
+ onChange: (T) => $(T.currentTarget.value),
13506
+ onBlur: P,
13503
13507
  onKeyDown: x,
13504
- onMouseDown: (m) => m.stopPropagation(),
13505
- onClick: (m) => m.stopPropagation(),
13508
+ onMouseDown: (T) => T.stopPropagation(),
13509
+ onClick: (T) => T.stopPropagation(),
13506
13510
  classNames: {
13507
13511
  input: "cdn-image-overlay-input",
13508
13512
  label: "cdn-image-overlay-label"
@@ -13524,7 +13528,7 @@ const Li = {
13524
13528
  ]
13525
13529
  }
13526
13530
  ) : !n && // center prompt
13527
- /* @__PURE__ */ k(
13531
+ /* @__PURE__ */ v(
13528
13532
  tt,
13529
13533
  {
13530
13534
  p: "lg",
@@ -13553,10 +13557,10 @@ const Li = {
13553
13557
  variant: "surreal",
13554
13558
  placeholder: "e.g. d65ks6dhk7ec73f2k0dg",
13555
13559
  value: Q,
13556
- onChange: (m) => $(m.currentTarget.value),
13557
- onBlur: f,
13560
+ onChange: (T) => $(T.currentTarget.value),
13561
+ onBlur: P,
13558
13562
  onKeyDown: x,
13559
- onMouseDown: (m) => m.stopPropagation()
13563
+ onMouseDown: (T) => T.stopPropagation()
13560
13564
  }
13561
13565
  )
13562
13566
  ]
@@ -13627,48 +13631,48 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13627
13631
  K(() => {
13628
13632
  const X = O.current;
13629
13633
  if (!X) return;
13630
- const T = () => n(X.currentTime || 0), R = () => i(X.duration || 0);
13631
- return T(), R(), X.addEventListener("timeupdate", T), X.addEventListener("loadedmetadata", R), X.addEventListener("durationchange", R), () => {
13632
- X.removeEventListener("timeupdate", T), X.removeEventListener("loadedmetadata", R), X.removeEventListener("durationchange", R);
13634
+ const g = () => n(X.currentTime || 0), b = () => i(X.duration || 0);
13635
+ return g(), b(), X.addEventListener("timeupdate", g), X.addEventListener("loadedmetadata", b), X.addEventListener("durationchange", b), () => {
13636
+ X.removeEventListener("timeupdate", g), X.removeEventListener("loadedmetadata", b), X.removeEventListener("durationchange", b);
13633
13637
  };
13634
13638
  }, [O]);
13635
13639
  const $ = tO((X) => {
13636
- const T = O.current, R = e.current;
13637
- if (!T || !R || !Number.isFinite(T.duration) || T.duration <= 0)
13640
+ const g = O.current, b = e.current;
13641
+ if (!g || !b || !Number.isFinite(g.duration) || g.duration <= 0)
13638
13642
  return null;
13639
- const y = R.getBoundingClientRect();
13643
+ const y = b.getBoundingClientRect();
13640
13644
  if (!y.width) return null;
13641
- const j = (X - y.left) / y.width;
13642
- return Math.min(T.duration, Math.max(0, j * T.duration));
13645
+ const U = (X - y.left) / y.width;
13646
+ return Math.min(g.duration, Math.max(0, U * g.duration));
13643
13647
  }), c = tO((X) => {
13644
- const T = $(X.clientX);
13645
- if (T === null) return;
13646
- const R = O.current;
13647
- R && (R.currentTime = T, n(T));
13648
+ const g = $(X.clientX);
13649
+ if (g === null) return;
13650
+ const b = O.current;
13651
+ b && (b.currentTime = g, n(g));
13648
13652
  }), d = tO((X) => {
13649
13653
  if (X.button !== 0) return;
13650
13654
  X.currentTarget.setPointerCapture(X.pointerId), s(!0);
13651
- const T = $(X.clientX);
13652
- if (T === null) return;
13653
- const R = O.current;
13654
- R && (R.currentTime = T, n(T), Q(T));
13655
+ const g = $(X.clientX);
13656
+ if (g === null) return;
13657
+ const b = O.current;
13658
+ b && (b.currentTime = g, n(g), Q(g));
13655
13659
  }), h = tO((X) => {
13656
- const T = $(X.clientX);
13657
- if (T === null || (Q(T), !a)) return;
13658
- const R = O.current;
13659
- R && (R.currentTime = T, n(T));
13660
- }), f = tO((X) => {
13661
- const T = $(X.clientX);
13662
- T !== null && Q(T);
13660
+ const g = $(X.clientX);
13661
+ if (g === null || (Q(g), !a)) return;
13662
+ const b = O.current;
13663
+ b && (b.currentTime = g, n(g));
13664
+ }), P = tO((X) => {
13665
+ const g = $(X.clientX);
13666
+ g !== null && Q(g);
13663
13667
  }), S = tO((X) => {
13664
13668
  X.currentTarget.hasPointerCapture(X.pointerId) && X.currentTarget.releasePointerCapture(X.pointerId), s(!1);
13665
13669
  }), x = tO(() => {
13666
13670
  a || Q(null);
13667
- }), P = eO(() => !t || t <= 0 ? 0 : Math.min(100, Math.max(0, r / t * 100)), [r, t]), b = eO(() => o === null || !t || t <= 0 ? null : Math.min(100, Math.max(0, o / t * 100)), [t, o]), m = tO((X) => {
13668
- const T = Math.max(0, Math.floor(X)), R = Math.floor(T / 60), y = T % 60;
13669
- return `${R}:${y.toString().padStart(2, "0")}`;
13671
+ }), f = OO(() => !t || t <= 0 ? 0 : Math.min(100, Math.max(0, r / t * 100)), [r, t]), Y = OO(() => o === null || !t || t <= 0 ? null : Math.min(100, Math.max(0, o / t * 100)), [t, o]), T = tO((X) => {
13672
+ const g = Math.max(0, Math.floor(X)), b = Math.floor(g / 60), y = g % 60;
13673
+ return `${b}:${y.toString().padStart(2, "0")}`;
13670
13674
  });
13671
- return /* @__PURE__ */ k(
13675
+ return /* @__PURE__ */ v(
13672
13676
  rO,
13673
13677
  {
13674
13678
  component: "button",
@@ -13677,7 +13681,7 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13677
13681
  ref: e,
13678
13682
  onClick: c,
13679
13683
  onPointerDown: d,
13680
- onPointerEnter: f,
13684
+ onPointerEnter: P,
13681
13685
  onPointerMove: h,
13682
13686
  onPointerUp: S,
13683
13687
  onPointerCancel: S,
@@ -13689,19 +13693,19 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13689
13693
  "aria-valuenow": r,
13690
13694
  "aria-valuetext": t ? `${Math.round(r)} seconds of ${Math.round(t)} seconds` : "Video progress",
13691
13695
  children: [
13692
- b !== null && /* @__PURE__ */ p(
13696
+ Y !== null && /* @__PURE__ */ p(
13693
13697
  rO,
13694
13698
  {
13695
13699
  className: KO.progressTooltip,
13696
- style: { left: `${b}%` },
13697
- children: m(o ?? 0)
13700
+ style: { left: `${Y}%` },
13701
+ children: T(o ?? 0)
13698
13702
  }
13699
13703
  ),
13700
13704
  /* @__PURE__ */ p(
13701
13705
  rO,
13702
13706
  {
13703
13707
  className: KO.progressFill,
13704
- style: { width: `${P}%` }
13708
+ style: { width: `${f}%` }
13705
13709
  }
13706
13710
  )
13707
13711
  ]
@@ -13724,56 +13728,56 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13724
13728
  videoProps: o,
13725
13729
  ...Q
13726
13730
  }) => {
13727
- const $ = mO(null), [c, d] = E(!1), [h, f] = E(n), [S, x] = E(!1), [P, b] = E(!1), {
13728
- onPlay: m,
13731
+ const $ = mO(null), [c, d] = E(!1), [h, P] = E(n), [S, x] = E(!1), [f, Y] = E(!1), {
13732
+ onPlay: T,
13729
13733
  onPause: X,
13730
- onVolumeChange: T,
13731
- onTimeUpdate: R,
13734
+ onVolumeChange: g,
13735
+ onTimeUpdate: b,
13732
13736
  onLoadedMetadata: y,
13733
- onCanPlay: j,
13734
- onDurationChange: C,
13735
- onEnded: g,
13737
+ onCanPlay: U,
13738
+ onDurationChange: G,
13739
+ onEnded: m,
13736
13740
  onError: V,
13737
13741
  ...w
13738
- } = o ?? {}, Z = !!e && (S || !P), W = tO(() => {
13739
- const G = $.current;
13740
- G && G.play().catch((fO) => console.error("Failed to start video playback:", fO));
13742
+ } = o ?? {}, R = !!e && (S || !f), W = tO(() => {
13743
+ const j = $.current;
13744
+ j && j.play().catch((fO) => console.error("Failed to start video playback:", fO));
13741
13745
  });
13742
13746
  K(() => {
13743
- $.current && ($.current.muted = n, f(n));
13747
+ $.current && ($.current.muted = n, P(n));
13744
13748
  }, [n]), K(() => {
13745
- const G = $.current;
13746
- if (!G || !i) return;
13749
+ const j = $.current;
13750
+ if (!j || !i) return;
13747
13751
  const fO = new IntersectionObserver(
13748
13752
  (si) => {
13749
13753
  const kO = si[0];
13750
13754
  if (kO)
13751
13755
  if (kO.isIntersecting) {
13752
- if (!G.paused)
13756
+ if (!j.paused)
13753
13757
  return;
13754
13758
  W();
13755
13759
  } else
13756
- G.pause();
13760
+ j.pause();
13757
13761
  },
13758
13762
  { threshold: 0.35 }
13759
13763
  );
13760
- return fO.observe(G), () => {
13764
+ return fO.observe(j), () => {
13761
13765
  fO.disconnect();
13762
13766
  };
13763
13767
  }, [i]);
13764
13768
  const B = () => {
13765
- const G = $.current;
13766
- G && (G.paused ? W() : G.pause());
13769
+ const j = $.current;
13770
+ j && (j.paused ? W() : j.pause());
13767
13771
  }, bO = () => {
13768
- const G = $.current;
13769
- if (!G) return;
13770
- const fO = !G.muted;
13771
- G.muted = fO, f(fO);
13772
+ const j = $.current;
13773
+ if (!j) return;
13774
+ const fO = !j.muted;
13775
+ j.muted = fO, P(fO);
13772
13776
  }, $e = async () => {
13773
- const G = $.current;
13774
- G && (G.currentTime = 0, G.paused ? d(!1) : (await G.play(), d(!0)));
13777
+ const j = $.current;
13778
+ j && (j.currentTime = 0, j.paused ? d(!1) : (await j.play(), d(!0)));
13775
13779
  };
13776
- return /* @__PURE__ */ k(
13780
+ return /* @__PURE__ */ v(
13777
13781
  rO,
13778
13782
  {
13779
13783
  className: ne(KO.videoPlayer, s),
@@ -13784,7 +13788,7 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13784
13788
  ...Q,
13785
13789
  style: { overflow: "hidden", ...Q.style },
13786
13790
  children: [
13787
- Z && /* @__PURE__ */ p(
13791
+ R && /* @__PURE__ */ p(
13788
13792
  rO,
13789
13793
  {
13790
13794
  component: "img",
@@ -13807,38 +13811,38 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13807
13811
  loop: r,
13808
13812
  muted: h,
13809
13813
  playsInline: !0,
13810
- onPlay: (G) => {
13811
- d(!0), b(!0), x(!1), m?.(G);
13814
+ onPlay: (j) => {
13815
+ d(!0), Y(!0), x(!1), T?.(j);
13812
13816
  },
13813
- onPause: (G) => {
13814
- d(!1), X?.(G);
13817
+ onPause: (j) => {
13818
+ d(!1), X?.(j);
13815
13819
  },
13816
- onVolumeChange: (G) => {
13817
- f(G.currentTarget?.muted ?? !1), T?.(G);
13820
+ onVolumeChange: (j) => {
13821
+ P(j.currentTarget?.muted ?? !1), g?.(j);
13818
13822
  },
13819
- onTimeUpdate: (G) => {
13820
- R?.(G);
13823
+ onTimeUpdate: (j) => {
13824
+ b?.(j);
13821
13825
  },
13822
- onLoadedMetadata: (G) => {
13823
- x(!1), y?.(G);
13826
+ onLoadedMetadata: (j) => {
13827
+ x(!1), y?.(j);
13824
13828
  },
13825
- onCanPlay: (G) => {
13826
- x(!1), j?.(G);
13829
+ onCanPlay: (j) => {
13830
+ x(!1), U?.(j);
13827
13831
  },
13828
- onDurationChange: (G) => {
13829
- C?.(G);
13832
+ onDurationChange: (j) => {
13833
+ G?.(j);
13830
13834
  },
13831
- onEnded: (G) => {
13832
- d(!1), g?.(G);
13835
+ onEnded: (j) => {
13836
+ d(!1), m?.(j);
13833
13837
  },
13834
- onError: (G) => {
13835
- x(!0), d(!1), V?.(G);
13838
+ onError: (j) => {
13839
+ x(!0), d(!1), V?.(j);
13836
13840
  },
13837
13841
  ...w
13838
13842
  }
13839
13843
  ),
13840
13844
  /* @__PURE__ */ p(C0, { videoRef: $ }),
13841
- /* @__PURE__ */ k(
13845
+ /* @__PURE__ */ v(
13842
13846
  n$,
13843
13847
  {
13844
13848
  className: ne(
@@ -13905,7 +13909,7 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13905
13909
  const c = n.trim();
13906
13910
  (c !== r.code || s !== r.format) && Q({ code: c, format: s });
13907
13911
  }, [n, s, r.code, r.format, Q]);
13908
- return /* @__PURE__ */ k(
13912
+ return /* @__PURE__ */ v(
13909
13913
  "fieldset",
13910
13914
  {
13911
13915
  onKeyDown: (c) => c.stopPropagation(),
@@ -13919,7 +13923,7 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
13919
13923
  margin: 0
13920
13924
  },
13921
13925
  children: [
13922
- /* @__PURE__ */ k(
13926
+ /* @__PURE__ */ v(
13923
13927
  "div",
13924
13928
  {
13925
13929
  style: {
@@ -14002,28 +14006,28 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
14002
14006
  $(a.code), d(a.format), o(!1);
14003
14007
  }, [a.code, a.format]);
14004
14008
  const h = N(() => {
14005
- const P = Q.trim();
14006
- P && AO.updateElement(r, {
14009
+ const f = Q.trim();
14010
+ f && AO.updateElement(r, {
14007
14011
  blockId: t,
14008
14012
  type: "cdn-video",
14009
- props: { code: P, format: c }
14013
+ props: { code: f, format: c }
14010
14014
  });
14011
- }, [r, t, Q, c]), f = N(
14012
- (P) => {
14013
- P.stopPropagation(), P.key === "Enter" && h();
14015
+ }, [r, t, Q, c]), P = N(
14016
+ (f) => {
14017
+ f.stopPropagation(), f.key === "Enter" && h();
14014
14018
  },
14015
14019
  [h]
14016
- ), S = eO(
14020
+ ), S = OO(
14017
14021
  () => Br(a.code, a.format) ?? "",
14018
14022
  [a.code, a.format]
14019
14023
  );
14020
- return /* @__PURE__ */ k(
14024
+ return /* @__PURE__ */ v(
14021
14025
  "div",
14022
14026
  {
14023
14027
  ...O,
14024
14028
  contentEditable: !1,
14025
14029
  children: [
14026
- !!S ? /* @__PURE__ */ k("div", { style: { position: "relative" }, children: [
14030
+ !!S ? /* @__PURE__ */ v("div", { style: { position: "relative" }, children: [
14027
14031
  !s && /* @__PURE__ */ p(
14028
14032
  Va,
14029
14033
  {
@@ -14050,7 +14054,7 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
14050
14054
  }
14051
14055
  }
14052
14056
  )
14053
- ] }) : !n && /* @__PURE__ */ k(
14057
+ ] }) : !n && /* @__PURE__ */ v(
14054
14058
  tt,
14055
14059
  {
14056
14060
  p: "lg",
@@ -14073,7 +14077,7 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
14073
14077
  children: "Enter a BrandSafe video code"
14074
14078
  }
14075
14079
  ),
14076
- /* @__PURE__ */ k(
14080
+ /* @__PURE__ */ v(
14077
14081
  "div",
14078
14082
  {
14079
14083
  style: {
@@ -14090,9 +14094,9 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
14090
14094
  variant: "surreal",
14091
14095
  placeholder: "e.g. cvte9k130bls73e028d0",
14092
14096
  value: Q,
14093
- onChange: (P) => $(P.currentTarget.value),
14094
- onKeyDown: f,
14095
- onMouseDown: (P) => P.stopPropagation(),
14097
+ onChange: (f) => $(f.currentTarget.value),
14098
+ onKeyDown: P,
14099
+ onMouseDown: (f) => f.stopPropagation(),
14096
14100
  style: { flex: 1 }
14097
14101
  }
14098
14102
  ),
@@ -14103,12 +14107,12 @@ const b0 = "_controls_ycnxv_1", _0 = "_thumbnail_ycnxv_14", R0 = "_videoPlayer_y
14103
14107
  variant: "surreal",
14104
14108
  data: LQ,
14105
14109
  value: c,
14106
- onChange: (P) => {
14107
- P && d(P);
14110
+ onChange: (f) => {
14111
+ f && d(f);
14108
14112
  },
14109
14113
  allowDeselect: !1,
14110
14114
  comboboxProps: { withinPortal: !0 },
14111
- onMouseDown: (P) => P.stopPropagation(),
14115
+ onMouseDown: (f) => f.stopPropagation(),
14112
14116
  style: { width: 80 }
14113
14117
  }
14114
14118
  )
@@ -14277,7 +14281,7 @@ const Ne = {
14277
14281
  },
14278
14282
  [e, O]
14279
14283
  );
14280
- return /* @__PURE__ */ k(
14284
+ return /* @__PURE__ */ v(
14281
14285
  Ht,
14282
14286
  {
14283
14287
  gap: "xs",
@@ -14374,7 +14378,7 @@ const Ne = {
14374
14378
  );
14375
14379
  }, L0 = ({ attributes: O, element: e, children: t }) => {
14376
14380
  const i = e.props ?? Ne;
14377
- return /* @__PURE__ */ k(
14381
+ return /* @__PURE__ */ v(
14378
14382
  "div",
14379
14383
  {
14380
14384
  ...O,
@@ -14518,7 +14522,7 @@ const J0 = ({ blockId: O }) => {
14518
14522
  type: "callout",
14519
14523
  props: { title: c || void 0 }
14520
14524
  });
14521
- }, Q = /* @__PURE__ */ k(
14525
+ }, Q = /* @__PURE__ */ v(
14522
14526
  xe,
14523
14527
  {
14524
14528
  gap: "xs",
@@ -14603,7 +14607,7 @@ const Ol = jr.TodoList.extend({
14603
14607
  "todo-list": {
14604
14608
  render: (O) => {
14605
14609
  const e = uO(), { checkable: t } = JQ(), i = !!O.element.props?.checked;
14606
- return /* @__PURE__ */ k(
14610
+ return /* @__PURE__ */ v(
14607
14611
  "div",
14608
14612
  {
14609
14613
  ...O.attributes,
@@ -14688,7 +14692,7 @@ const e5 = {
14688
14692
  divider: {
14689
14693
  render: (O) => {
14690
14694
  const t = O.element.props?.theme ?? "solid", i = e5[t];
14691
- return /* @__PURE__ */ k(
14695
+ return /* @__PURE__ */ v(
14692
14696
  "div",
14693
14697
  {
14694
14698
  contentEditable: !1,
@@ -14761,7 +14765,7 @@ const Mi = {
14761
14765
  },
14762
14766
  [e, O]
14763
14767
  );
14764
- return /* @__PURE__ */ k(
14768
+ return /* @__PURE__ */ v(
14765
14769
  Ht,
14766
14770
  {
14767
14771
  p: "sm",
@@ -14818,7 +14822,7 @@ const Mi = {
14818
14822
  blockId: t,
14819
14823
  children: i
14820
14824
  }) => {
14821
- const r = uO(), n = ft(), a = e.props ?? Mi, s = a.rows, o = eO(() => Math.max(...s.map((X) => X.length), 1), [s]), [Q, $] = E(s);
14825
+ const r = uO(), n = ft(), a = e.props ?? Mi, s = a.rows, o = OO(() => Math.max(...s.map((X) => X.length), 1), [s]), [Q, $] = E(s);
14822
14826
  K(() => {
14823
14827
  $(s);
14824
14828
  }, [s]);
@@ -14832,41 +14836,41 @@ const Mi = {
14832
14836
  },
14833
14837
  [r, t]
14834
14838
  ), d = N(
14835
- (X, T, R) => {
14836
- const y = Q.map((j) => [...j]);
14837
- y[X][T] = R, $(y), c(y);
14839
+ (X, g, b) => {
14840
+ const y = Q.map((U) => [...U]);
14841
+ y[X][g] = b, $(y), c(y);
14838
14842
  },
14839
14843
  [Q, c]
14840
14844
  ), h = N(() => {
14841
- const X = [...Q.map((T) => [...T]), new Array(o).fill("")];
14845
+ const X = [...Q.map((g) => [...g]), new Array(o).fill("")];
14842
14846
  $(X), c(X);
14843
- }, [Q, o, c]), f = N(
14847
+ }, [Q, o, c]), P = N(
14844
14848
  (X) => {
14845
14849
  if (Q.length <= 1) return;
14846
- const T = Q.filter((R, y) => y !== X);
14847
- $(T), c(T);
14850
+ const g = Q.filter((b, y) => y !== X);
14851
+ $(g), c(g);
14848
14852
  },
14849
14853
  [Q, c]
14850
14854
  ), S = N(() => {
14851
- const X = Q.map((T) => [...T, ""]);
14855
+ const X = Q.map((g) => [...g, ""]);
14852
14856
  $(X), c(X);
14853
14857
  }, [Q, c]), x = N(
14854
14858
  (X) => {
14855
14859
  if (o <= 1) return;
14856
- const T = Q.map((R) => R.filter((y, j) => j !== X));
14857
- $(T), c(T);
14860
+ const g = Q.map((b) => b.filter((y, U) => U !== X));
14861
+ $(g), c(g);
14858
14862
  },
14859
14863
  [Q, o, c]
14860
14864
  );
14861
14865
  if (n) {
14862
- const X = a.withHeaderRow ? Q[0] : void 0, T = a.withHeaderRow ? Q.slice(1) : Q;
14863
- return /* @__PURE__ */ k(
14866
+ const X = a.withHeaderRow ? Q[0] : void 0, g = a.withHeaderRow ? Q.slice(1) : Q;
14867
+ return /* @__PURE__ */ v(
14864
14868
  "div",
14865
14869
  {
14866
14870
  ...O,
14867
14871
  contentEditable: !1,
14868
14872
  children: [
14869
- /* @__PURE__ */ k(
14873
+ /* @__PURE__ */ v(
14870
14874
  H,
14871
14875
  {
14872
14876
  striped: a.striped,
@@ -14875,8 +14879,8 @@ const Mi = {
14875
14879
  withColumnBorders: !0,
14876
14880
  children: [
14877
14881
  a.caption && /* @__PURE__ */ p(H.Caption, { children: a.caption }),
14878
- X && /* @__PURE__ */ p(H.Thead, { children: /* @__PURE__ */ p(H.Tr, { children: X.map((R, y) => /* @__PURE__ */ p(H.Th, { children: R }, y)) }) }),
14879
- /* @__PURE__ */ p(H.Tbody, { children: T.map((R, y) => /* @__PURE__ */ p(H.Tr, { children: R.map((j, C) => /* @__PURE__ */ p(H.Td, { children: j }, C)) }, y)) })
14882
+ X && /* @__PURE__ */ p(H.Thead, { children: /* @__PURE__ */ p(H.Tr, { children: X.map((b, y) => /* @__PURE__ */ p(H.Th, { children: b }, y)) }) }),
14883
+ /* @__PURE__ */ p(H.Tbody, { children: g.map((b, y) => /* @__PURE__ */ p(H.Tr, { children: b.map((U, G) => /* @__PURE__ */ p(H.Td, { children: U }, G)) }, y)) })
14880
14884
  ]
14881
14885
  }
14882
14886
  ),
@@ -14885,14 +14889,14 @@ const Mi = {
14885
14889
  }
14886
14890
  );
14887
14891
  }
14888
- const P = a.withHeaderRow ? Q[0] : void 0, b = a.withHeaderRow ? 1 : 0, m = Q.slice(b);
14889
- return /* @__PURE__ */ k(
14892
+ const f = a.withHeaderRow ? Q[0] : void 0, Y = a.withHeaderRow ? 1 : 0, T = Q.slice(Y);
14893
+ return /* @__PURE__ */ v(
14890
14894
  "div",
14891
14895
  {
14892
14896
  ...O,
14893
14897
  contentEditable: !1,
14894
14898
  children: [
14895
- /* @__PURE__ */ k(
14899
+ /* @__PURE__ */ v(
14896
14900
  H,
14897
14901
  {
14898
14902
  striped: a.striped,
@@ -14901,8 +14905,8 @@ const Mi = {
14901
14905
  withColumnBorders: !0,
14902
14906
  children: [
14903
14907
  a.caption && /* @__PURE__ */ p(H.Caption, { children: a.caption }),
14904
- P && /* @__PURE__ */ p(H.Thead, { children: /* @__PURE__ */ k(H.Tr, { children: [
14905
- P.map((X, T) => /* @__PURE__ */ p(H.Th, { children: /* @__PURE__ */ p(
14908
+ f && /* @__PURE__ */ p(H.Thead, { children: /* @__PURE__ */ v(H.Tr, { children: [
14909
+ f.map((X, g) => /* @__PURE__ */ p(H.Th, { children: /* @__PURE__ */ p(
14906
14910
  Gr,
14907
14911
  {
14908
14912
  size: "xs",
@@ -14910,13 +14914,13 @@ const Mi = {
14910
14914
  autosize: !0,
14911
14915
  minRows: 1,
14912
14916
  value: X,
14913
- placeholder: `Header ${T + 1}`,
14914
- onChange: (R) => d(0, T, R.currentTarget.value),
14915
- onMouseDown: (R) => R.stopPropagation(),
14916
- onKeyDown: (R) => R.stopPropagation(),
14917
+ placeholder: `Header ${g + 1}`,
14918
+ onChange: (b) => d(0, g, b.currentTarget.value),
14919
+ onMouseDown: (b) => b.stopPropagation(),
14920
+ onKeyDown: (b) => b.stopPropagation(),
14917
14921
  styles: { input: { fontWeight: 700, resize: "none" } }
14918
14922
  }
14919
- ) }, T)),
14923
+ ) }, g)),
14920
14924
  /* @__PURE__ */ p(H.Th, { style: { width: 32 }, children: /* @__PURE__ */ p(Le, { label: "Remove last column", children: /* @__PURE__ */ p(
14921
14925
  Te,
14922
14926
  {
@@ -14935,10 +14939,10 @@ const Mi = {
14935
14939
  }
14936
14940
  ) }) })
14937
14941
  ] }) }),
14938
- /* @__PURE__ */ p(H.Tbody, { children: m.map((X, T) => {
14939
- const R = T + b;
14940
- return /* @__PURE__ */ k(H.Tr, { children: [
14941
- X.map((y, j) => /* @__PURE__ */ p(H.Td, { children: /* @__PURE__ */ p(
14942
+ /* @__PURE__ */ p(H.Tbody, { children: T.map((X, g) => {
14943
+ const b = g + Y;
14944
+ return /* @__PURE__ */ v(H.Tr, { children: [
14945
+ X.map((y, U) => /* @__PURE__ */ p(H.Td, { children: /* @__PURE__ */ p(
14942
14946
  Gr,
14943
14947
  {
14944
14948
  size: "xs",
@@ -14947,19 +14951,19 @@ const Mi = {
14947
14951
  minRows: 1,
14948
14952
  value: y,
14949
14953
  placeholder: "…",
14950
- onChange: (C) => d(R, j, C.currentTarget.value),
14951
- onMouseDown: (C) => C.stopPropagation(),
14952
- onKeyDown: (C) => C.stopPropagation(),
14954
+ onChange: (G) => d(b, U, G.currentTarget.value),
14955
+ onMouseDown: (G) => G.stopPropagation(),
14956
+ onKeyDown: (G) => G.stopPropagation(),
14953
14957
  styles: { input: { resize: "none" } }
14954
14958
  }
14955
- ) }, j)),
14959
+ ) }, U)),
14956
14960
  /* @__PURE__ */ p(H.Td, { style: { width: 32 }, children: /* @__PURE__ */ p(Le, { label: "Remove row", children: /* @__PURE__ */ p(
14957
14961
  Te,
14958
14962
  {
14959
14963
  size: "xs",
14960
14964
  variant: "subtle",
14961
14965
  color: "red",
14962
- onClick: () => f(R),
14966
+ onClick: () => P(b),
14963
14967
  disabled: Q.length <= 1,
14964
14968
  children: /* @__PURE__ */ p(
14965
14969
  nO,
@@ -14970,18 +14974,18 @@ const Mi = {
14970
14974
  )
14971
14975
  }
14972
14976
  ) }) })
14973
- ] }, R);
14977
+ ] }, b);
14974
14978
  }) })
14975
14979
  ]
14976
14980
  }
14977
14981
  ),
14978
- /* @__PURE__ */ k(
14982
+ /* @__PURE__ */ v(
14979
14983
  xe,
14980
14984
  {
14981
14985
  gap: "xs",
14982
14986
  mt: 4,
14983
14987
  children: [
14984
- /* @__PURE__ */ p(Le, { label: "Add row", children: /* @__PURE__ */ k(
14988
+ /* @__PURE__ */ p(Le, { label: "Add row", children: /* @__PURE__ */ v(
14985
14989
  HO,
14986
14990
  {
14987
14991
  size: "xs",
@@ -14999,7 +15003,7 @@ const Mi = {
14999
15003
  ]
15000
15004
  }
15001
15005
  ) }),
15002
- /* @__PURE__ */ p(Le, { label: "Add column", children: /* @__PURE__ */ k(
15006
+ /* @__PURE__ */ p(Le, { label: "Add column", children: /* @__PURE__ */ v(
15003
15007
  HO,
15004
15008
  {
15005
15009
  size: "xs",
@@ -15156,41 +15160,42 @@ const js = {
15156
15160
  blockId: t,
15157
15161
  children: i
15158
15162
  }) => {
15159
- const r = uO(), n = ft(), a = e.props ?? da, s = mO(null), [o, Q] = E(a.code), [$, c] = E(a.title), d = eO(a5, []);
15163
+ const r = uO(), n = ft(), a = e.props ?? da, s = mO(null), [o, Q] = E(a.code), [$, c] = E(a.title), d = OO(a5, []), h = OO(() => String(o.split(`
15164
+ `).length).length, [o]);
15160
15165
  K(() => {
15161
15166
  Q(a.code);
15162
15167
  }, [a.code]), K(() => {
15163
15168
  c(a.title);
15164
15169
  }, [a.title]);
15165
- const h = N(
15166
- (b) => {
15170
+ const P = N(
15171
+ (T) => {
15167
15172
  AO.updateElement(r, {
15168
15173
  blockId: t,
15169
15174
  type: "surreal-codeblock",
15170
- props: b
15175
+ props: T
15171
15176
  });
15172
15177
  },
15173
15178
  [r, t]
15174
- ), f = N(
15175
- (b) => {
15176
- Q(b), h({ code: b });
15177
- },
15178
- [h]
15179
15179
  ), S = N(
15180
- (b) => {
15181
- f(b.currentTarget.value);
15180
+ (T) => {
15181
+ Q(T), P({ code: T });
15182
15182
  },
15183
- [f]
15184
- ), x = N((b) => {
15185
- if (b.stopPropagation(), b.key === "Tab") {
15186
- b.preventDefault();
15187
- const m = b.currentTarget, X = m.selectionStart, T = m.selectionEnd, R = m.value, y = `${R.substring(0, X)} ${R.substring(T)}`;
15188
- m.value = y, m.selectionStart = m.selectionEnd = X + 1, Q(y);
15189
- }
15190
- }, []), P = N(() => {
15191
- f(o);
15192
- }, [f, o]);
15193
- return n ? /* @__PURE__ */ k(
15183
+ [P]
15184
+ ), x = N(
15185
+ (T) => {
15186
+ S(T.currentTarget.value);
15187
+ },
15188
+ [S]
15189
+ ), f = N((T) => {
15190
+ if (T.stopPropagation(), T.key === "Tab") {
15191
+ T.preventDefault();
15192
+ const X = T.currentTarget, g = X.selectionStart, b = X.selectionEnd, y = X.value, U = `${y.substring(0, g)} ${y.substring(b)}`;
15193
+ X.value = U, X.selectionStart = X.selectionEnd = g + 1, Q(U);
15194
+ }
15195
+ }, []), Y = N(() => {
15196
+ S(o);
15197
+ }, [S, o]);
15198
+ return n ? /* @__PURE__ */ v(
15194
15199
  "div",
15195
15200
  {
15196
15201
  ...O,
@@ -15208,13 +15213,13 @@ const js = {
15208
15213
  i
15209
15214
  ]
15210
15215
  }
15211
- ) : /* @__PURE__ */ k(
15216
+ ) : /* @__PURE__ */ v(
15212
15217
  "div",
15213
15218
  {
15214
15219
  ...O,
15215
15220
  contentEditable: !1,
15216
15221
  children: [
15217
- /* @__PURE__ */ k(
15222
+ /* @__PURE__ */ v(
15218
15223
  tt,
15219
15224
  {
15220
15225
  radius: "md",
@@ -15223,15 +15228,15 @@ const js = {
15223
15228
  withBorder: !0,
15224
15229
  style: { overflow: "hidden" },
15225
15230
  children: [
15226
- /* @__PURE__ */ k(
15231
+ /* @__PURE__ */ v(
15227
15232
  xe,
15228
15233
  {
15229
15234
  px: "md",
15230
15235
  py: "xs",
15231
15236
  gap: "xs",
15232
15237
  wrap: "nowrap",
15233
- onMouseDown: (b) => b.stopPropagation(),
15234
- onKeyDown: (b) => b.stopPropagation(),
15238
+ onMouseDown: (T) => T.stopPropagation(),
15239
+ onKeyDown: (T) => T.stopPropagation(),
15235
15240
  style: { background: "var(--surreal-glass-subtle)" },
15236
15241
  children: [
15237
15242
  /* @__PURE__ */ p(
@@ -15241,9 +15246,9 @@ const js = {
15241
15246
  variant: "unstyled",
15242
15247
  placeholder: "Untitled",
15243
15248
  value: $,
15244
- onChange: (b) => {
15245
- const m = b.currentTarget.value;
15246
- c(m), h({ title: m });
15249
+ onChange: (T) => {
15250
+ const X = T.currentTarget.value;
15251
+ c(X), P({ title: X });
15247
15252
  },
15248
15253
  styles: {
15249
15254
  input: {
@@ -15262,8 +15267,8 @@ const js = {
15262
15267
  variant: "surreal",
15263
15268
  data: d,
15264
15269
  value: a.language,
15265
- onChange: (b) => {
15266
- b && h({ language: b });
15270
+ onChange: (T) => {
15271
+ T && P({ language: T });
15267
15272
  },
15268
15273
  comboboxProps: { withinPortal: !0 },
15269
15274
  allowDeselect: !1,
@@ -15284,7 +15289,7 @@ const js = {
15284
15289
  {
15285
15290
  size: "xs",
15286
15291
  checked: a.withLineNumbers,
15287
- onChange: (b) => h({ withLineNumbers: b.currentTarget.checked })
15292
+ onChange: (T) => P({ withLineNumbers: T.currentTarget.checked })
15288
15293
  }
15289
15294
  )
15290
15295
  }
@@ -15292,7 +15297,7 @@ const js = {
15292
15297
  ]
15293
15298
  }
15294
15299
  ),
15295
- /* @__PURE__ */ k(
15300
+ /* @__PURE__ */ v(
15296
15301
  rO,
15297
15302
  {
15298
15303
  p: "md",
@@ -15319,9 +15324,9 @@ const js = {
15319
15324
  {
15320
15325
  ref: s,
15321
15326
  value: o,
15322
- onChange: S,
15323
- onKeyDown: x,
15324
- onBlur: P,
15327
+ onChange: x,
15328
+ onKeyDown: f,
15329
+ onBlur: Y,
15325
15330
  placeholder: "Enter code...",
15326
15331
  spellCheck: !1,
15327
15332
  autoComplete: "off",
@@ -15335,7 +15340,7 @@ const js = {
15335
15340
  width: "100%",
15336
15341
  height: "100%",
15337
15342
  padding: "var(--mantine-spacing-md)",
15338
- paddingLeft: a.withLineNumbers ? "calc(var(--mantine-spacing-md) + 1ch + var(--mantine-spacing-xl))" : "var(--mantine-spacing-md)",
15343
+ paddingLeft: a.withLineNumbers ? `calc(var(--mantine-spacing-md) + ${h}ch + var(--mantine-spacing-xl))` : "var(--mantine-spacing-md)",
15339
15344
  border: "none",
15340
15345
  outline: "none",
15341
15346
  background: "transparent",
@@ -15499,27 +15504,27 @@ const $5 = ({
15499
15504
  s && c.current?.focus();
15500
15505
  }, [s]);
15501
15506
  const d = N(() => {
15502
- const P = Q.trim();
15503
- P !== a.url && AO.updateElement(r, {
15507
+ const f = Q.trim();
15508
+ f !== a.url && AO.updateElement(r, {
15504
15509
  blockId: t,
15505
15510
  type: "video-embed",
15506
- props: { url: P }
15511
+ props: { url: f }
15507
15512
  }), o(!1);
15508
15513
  }, [r, t, Q, a.url]), h = N(() => {
15509
15514
  $(a.url), o(!1);
15510
- }, [a.url]), f = N(
15511
- (P) => {
15512
- P.stopPropagation(), P.key === "Enter" && d(), P.key === "Escape" && h();
15515
+ }, [a.url]), P = N(
15516
+ (f) => {
15517
+ f.stopPropagation(), f.key === "Enter" && d(), f.key === "Escape" && h();
15513
15518
  },
15514
15519
  [d, h]
15515
- ), S = eO(() => fa(a.url), [a.url]);
15516
- return /* @__PURE__ */ k(
15520
+ ), S = OO(() => fa(a.url), [a.url]);
15521
+ return /* @__PURE__ */ v(
15517
15522
  "div",
15518
15523
  {
15519
15524
  ...O,
15520
15525
  contentEditable: !1,
15521
15526
  children: [
15522
- !!S ? /* @__PURE__ */ k("div", { style: { position: "relative" }, children: [
15527
+ !!S ? /* @__PURE__ */ v("div", { style: { position: "relative" }, children: [
15523
15528
  /* @__PURE__ */ p(
15524
15529
  "div",
15525
15530
  {
@@ -15554,7 +15559,7 @@ const $5 = ({
15554
15559
  {
15555
15560
  type: "button",
15556
15561
  onClick: () => o(!0),
15557
- onMouseDown: (P) => P.stopPropagation(),
15562
+ onMouseDown: (f) => f.stopPropagation(),
15558
15563
  style: {
15559
15564
  position: "absolute",
15560
15565
  inset: 0,
@@ -15573,11 +15578,11 @@ const $5 = ({
15573
15578
  width: "100%",
15574
15579
  borderRadius: "var(--mantine-radius-md)"
15575
15580
  },
15576
- onMouseEnter: (P) => {
15577
- P.currentTarget.style.opacity = "1", s || (P.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.42)");
15581
+ onMouseEnter: (f) => {
15582
+ f.currentTarget.style.opacity = "1", s || (f.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.42)");
15578
15583
  },
15579
- onMouseLeave: (P) => {
15580
- s || (P.currentTarget.style.opacity = "0", P.currentTarget.style.backgroundColor = "transparent");
15584
+ onMouseLeave: (f) => {
15585
+ s || (f.currentTarget.style.opacity = "0", f.currentTarget.style.backgroundColor = "transparent");
15581
15586
  },
15582
15587
  children: s ? /* @__PURE__ */ p(
15583
15588
  wO,
@@ -15587,11 +15592,11 @@ const $5 = ({
15587
15592
  label: "Video URL",
15588
15593
  placeholder: "https://youtube.com/watch?v=...",
15589
15594
  value: Q,
15590
- onChange: (P) => $(P.currentTarget.value),
15595
+ onChange: (f) => $(f.currentTarget.value),
15591
15596
  onBlur: d,
15592
- onKeyDown: f,
15593
- onMouseDown: (P) => P.stopPropagation(),
15594
- onClick: (P) => P.stopPropagation(),
15597
+ onKeyDown: P,
15598
+ onMouseDown: (f) => f.stopPropagation(),
15599
+ onClick: (f) => f.stopPropagation(),
15595
15600
  classNames: {
15596
15601
  input: "cdn-image-overlay-input",
15597
15602
  label: "cdn-image-overlay-label"
@@ -15610,7 +15615,7 @@ const $5 = ({
15610
15615
  )
15611
15616
  }
15612
15617
  )
15613
- ] }) : !n && /* @__PURE__ */ k(
15618
+ ] }) : !n && /* @__PURE__ */ v(
15614
15619
  tt,
15615
15620
  {
15616
15621
  p: "lg",
@@ -15639,10 +15644,10 @@ const $5 = ({
15639
15644
  variant: "surreal",
15640
15645
  placeholder: "https://youtube.com/watch?v=...",
15641
15646
  value: Q,
15642
- onChange: (P) => $(P.currentTarget.value),
15647
+ onChange: (f) => $(f.currentTarget.value),
15643
15648
  onBlur: d,
15644
- onKeyDown: f,
15645
- onMouseDown: (P) => P.stopPropagation(),
15649
+ onKeyDown: P,
15650
+ onMouseDown: (f) => f.stopPropagation(),
15646
15651
  style: { width: 360 }
15647
15652
  }
15648
15653
  )
@@ -15732,7 +15737,7 @@ function Wr(O) {
15732
15737
  if (!n)
15733
15738
  return /* @__PURE__ */ p(O, { ...i, children: r });
15734
15739
  const a = il(t), s = OQ(a);
15735
- return /* @__PURE__ */ k(
15740
+ return /* @__PURE__ */ v(
15736
15741
  O,
15737
15742
  {
15738
15743
  ...i,
@@ -15865,7 +15870,7 @@ const X5 = ({
15865
15870
  }, $ = (c) => {
15866
15871
  c.stopPropagation(), c.key === "Enter" && o(), c.key === "Escape" && s();
15867
15872
  };
15868
- return /* @__PURE__ */ k(
15873
+ return /* @__PURE__ */ v(
15869
15874
  lr,
15870
15875
  {
15871
15876
  opened: O,
@@ -15883,7 +15888,7 @@ const X5 = ({
15883
15888
  children: n ? "Unlink" : "Link"
15884
15889
  }
15885
15890
  ) }),
15886
- /* @__PURE__ */ p(lr.Dropdown, { p: "xs", children: /* @__PURE__ */ k(
15891
+ /* @__PURE__ */ p(lr.Dropdown, { p: "xs", children: /* @__PURE__ */ v(
15887
15892
  xe,
15888
15893
  {
15889
15894
  gap: "xs",
@@ -15919,7 +15924,7 @@ const X5 = ({
15919
15924
  );
15920
15925
  }, g5 = () => {
15921
15926
  const O = uO(), [e, t] = E(!1);
15922
- return /* @__PURE__ */ p(ue, { frozen: e, children: /* @__PURE__ */ p(ue.Content, { children: /* @__PURE__ */ k(ue.Group, { children: [
15927
+ return /* @__PURE__ */ p(ue, { frozen: e, children: /* @__PURE__ */ p(ue.Content, { children: /* @__PURE__ */ v(ue.Group, { children: [
15923
15928
  O.formats.bold && /* @__PURE__ */ p(
15924
15929
  ue.Button,
15925
15930
  {
@@ -15973,7 +15978,7 @@ const X5 = ({
15973
15978
  )
15974
15979
  ] }) }) });
15975
15980
  }, T5 = ({ blockId: O }) => {
15976
- const e = uO(), t = O ? RO.getBlock(e, { id: O }) : null, i = t ? x0(t.type) : void 0, r = t ? !Sa.has(t.type) : !1, n = eO(
15981
+ const e = uO(), t = O ? RO.getBlock(e, { id: O }) : null, i = t ? x0(t.type) : void 0, r = t ? !Sa.has(t.type) : !1, n = OO(
15977
15982
  () => Object.values(e.plugins).filter((a) => {
15978
15983
  if (Sa.has(a.type)) return !1;
15979
15984
  const s = a.options;
@@ -15984,8 +15989,8 @@ const X5 = ({
15984
15989
  })),
15985
15990
  [e.plugins, t?.type]
15986
15991
  );
15987
- return /* @__PURE__ */ k(pO.Dropdown, { children: [
15988
- r && /* @__PURE__ */ k(pO.Sub, { position: "right-start", children: [
15992
+ return /* @__PURE__ */ v(pO.Dropdown, { children: [
15993
+ r && /* @__PURE__ */ v(pO.Sub, { position: "right-start", children: [
15989
15994
  /* @__PURE__ */ p(pO.Sub.Target, { children: /* @__PURE__ */ p(pO.Sub.Item, { children: "Turn into" }) }),
15990
15995
  /* @__PURE__ */ p(pO.Sub.Dropdown, { children: n.map((a) => /* @__PURE__ */ p(
15991
15996
  pO.Item,
@@ -15998,7 +16003,7 @@ const X5 = ({
15998
16003
  a.type
15999
16004
  )) })
16000
16005
  ] }),
16001
- i && O && /* @__PURE__ */ k(pO.Sub, { position: "right-start", children: [
16006
+ i && O && /* @__PURE__ */ v(pO.Sub, { position: "right-start", children: [
16002
16007
  /* @__PURE__ */ p(pO.Sub.Target, { children: /* @__PURE__ */ p(pO.Sub.Item, { children: "Options" }) }),
16003
16008
  /* @__PURE__ */ p(pO.Sub.Dropdown, { children: /* @__PURE__ */ p(i, { blockId: O }) })
16004
16009
  ] }),
@@ -16009,7 +16014,7 @@ const X5 = ({
16009
16014
  onClick: () => {
16010
16015
  O && RO.duplicateBlock(e, { blockId: O });
16011
16016
  },
16012
- children: /* @__PURE__ */ k(
16017
+ children: /* @__PURE__ */ v(
16013
16018
  xe,
16014
16019
  {
16015
16020
  gap: "xs",
@@ -16035,7 +16040,7 @@ const X5 = ({
16035
16040
  onClick: () => {
16036
16041
  O && RO.deleteBlock(e, { blockId: O });
16037
16042
  },
16038
- children: /* @__PURE__ */ k(
16043
+ children: /* @__PURE__ */ v(
16039
16044
  xe,
16040
16045
  {
16041
16046
  gap: "xs",
@@ -16066,7 +16071,7 @@ const X5 = ({
16066
16071
  {
16067
16072
  frozen: e,
16068
16073
  className: an.floatingActions,
16069
- children: ({ blockId: r }) => /* @__PURE__ */ k(Ke, { children: [
16074
+ children: ({ blockId: r }) => /* @__PURE__ */ v(Ke, { children: [
16070
16075
  /* @__PURE__ */ p(cr.Button, { onClick: () => i(r), children: /* @__PURE__ */ p(
16071
16076
  nO,
16072
16077
  {
@@ -16074,7 +16079,7 @@ const X5 = ({
16074
16079
  path: Cr
16075
16080
  }
16076
16081
  ) }),
16077
- /* @__PURE__ */ k(
16082
+ /* @__PURE__ */ v(
16078
16083
  pO,
16079
16084
  {
16080
16085
  opened: e,
@@ -16120,8 +16125,8 @@ const X5 = ({
16120
16125
  const e = [], t = [], i = [];
16121
16126
  for (const r of O)
16122
16127
  f5.has(r.id) ? i.push(r) : Sa.has(r.id) ? t.push(r) : e.push(r);
16123
- return /* @__PURE__ */ k(IO.Content, { children: [
16124
- /* @__PURE__ */ k(IO.List, { children: [
16128
+ return /* @__PURE__ */ v(IO.Content, { children: [
16129
+ /* @__PURE__ */ v(IO.List, { children: [
16125
16130
  /* @__PURE__ */ p(IO.Empty, { children: "No blocks found" }),
16126
16131
  e.length > 0 && /* @__PURE__ */ p(IO.Group, { children: e.map((r) => /* @__PURE__ */ p(
16127
16132
  IO.Item,
@@ -16177,7 +16182,7 @@ const X5 = ({
16177
16182
  ),
16178
16183
  []
16179
16184
  );
16180
- return /* @__PURE__ */ p(HQ, { value: V5, children: /* @__PURE__ */ p(D$, { editor: O, children: /* @__PURE__ */ k(
16185
+ return /* @__PURE__ */ p(HQ, { value: V5, children: /* @__PURE__ */ p(D$, { editor: O, children: /* @__PURE__ */ v(
16181
16186
  no,
16182
16187
  {
16183
16188
  editor: O,
@@ -16188,7 +16193,7 @@ const X5 = ({
16188
16193
  onChange: n,
16189
16194
  renderBlock: s,
16190
16195
  children: [
16191
- !i && /* @__PURE__ */ k(Ke, { children: [
16196
+ !i && /* @__PURE__ */ v(Ke, { children: [
16192
16197
  /* @__PURE__ */ p(g5, {}),
16193
16198
  /* @__PURE__ */ p(m5, {}),
16194
16199
  /* @__PURE__ */ p(x5, {})
@@ -16206,7 +16211,7 @@ const X5 = ({
16206
16211
  blockOptions: i = w5,
16207
16212
  className: r
16208
16213
  }) => {
16209
- const n = eO(() => {
16214
+ const n = OO(() => {
16210
16215
  const a = q$({ plugins: t, marks: e, value: O });
16211
16216
  return a.readOnly = !0, a;
16212
16217
  }, [O, e, t]);
@@ -16250,7 +16255,7 @@ const y5 = "_root_1ph8i_1", b5 = {
16250
16255
  }
16251
16256
  ), _5 = "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z";
16252
16257
  function Iy({ children: O, ...e }) {
16253
- return /* @__PURE__ */ k(
16258
+ return /* @__PURE__ */ v(
16254
16259
  xe,
16255
16260
  {
16256
16261
  gap: "xs",
@@ -16371,18 +16376,18 @@ function Ly({
16371
16376
  enterConfirms: O,
16372
16377
  children: e
16373
16378
  }) {
16374
- const [t, i] = E(!1), [r, n] = E(), [a, s] = M$(""), [o, Q] = E(), $ = Y5("Shift"), c = mO(null), d = tO((x, P) => {
16379
+ const [t, i] = E(!1), [r, n] = E(), [a, s] = M$(""), [o, Q] = E(), $ = Y5("Shift"), c = mO(null), d = tO((x, f) => {
16375
16380
  if (t)
16376
16381
  throw new Error("Confirmation already in progress");
16377
- Q(x), n(P), s(""), P.skippable && $ ? P?.onConfirm?.(x) : i(!0);
16382
+ Q(x), n(f), s(""), f.skippable && $ ? f?.onConfirm?.(x) : i(!0);
16378
16383
  }), h = tO(() => {
16379
16384
  i(!1), r?.onDismiss?.();
16380
- }), f = tO(() => {
16385
+ }), P = tO(() => {
16381
16386
  i(!1), r?.onConfirm?.(o);
16382
16387
  }), S = r?.verification ? q5(a, r.verification) : !0;
16383
- return /* @__PURE__ */ k(nl.Provider, { value: eO(() => ({ setConfirmation: d }), []), children: [
16388
+ return /* @__PURE__ */ v(nl.Provider, { value: OO(() => ({ setConfirmation: d }), []), children: [
16384
16389
  e,
16385
- /* @__PURE__ */ k(
16390
+ /* @__PURE__ */ v(
16386
16391
  to,
16387
16392
  {
16388
16393
  opened: t,
@@ -16399,11 +16404,11 @@ function Ly({
16399
16404
  }
16400
16405
  ),
16401
16406
  onKeyDown: (x) => {
16402
- O && x.key === "Enter" && (!r?.verification || S) && f();
16407
+ O && x.key === "Enter" && (!r?.verification || S) && P();
16403
16408
  },
16404
16409
  children: [
16405
16410
  /* @__PURE__ */ p(Me, { fz: "lg", children: Ti(r?.message, o) }),
16406
- r?.verification && /* @__PURE__ */ k(Ke, { children: [
16411
+ r?.verification && /* @__PURE__ */ v(Ke, { children: [
16407
16412
  /* @__PURE__ */ p(Ki, { my: "lg" }),
16408
16413
  /* @__PURE__ */ p(
16409
16414
  wO,
@@ -16411,19 +16416,19 @@ function Ly({
16411
16416
  value: a,
16412
16417
  onChange: s,
16413
16418
  placeholder: r.verification,
16414
- label: r?.verifyText ?? /* @__PURE__ */ k(Ke, { children: [
16419
+ label: r?.verifyText ?? /* @__PURE__ */ v(Ke, { children: [
16415
16420
  'Please type "',
16416
16421
  r.verification,
16417
16422
  '" to confirm'
16418
16423
  ] }),
16419
16424
  autoFocus: !0,
16420
16425
  onKeyDown: (x) => {
16421
- x.key === "Enter" && S && f();
16426
+ x.key === "Enter" && S && P();
16422
16427
  }
16423
16428
  }
16424
16429
  )
16425
16430
  ] }),
16426
- /* @__PURE__ */ k(xe, { mt: "xl", children: [
16431
+ /* @__PURE__ */ v(xe, { mt: "xl", children: [
16427
16432
  /* @__PURE__ */ p(
16428
16433
  HO,
16429
16434
  {
@@ -16441,7 +16446,7 @@ function Ly({
16441
16446
  ref: c,
16442
16447
  color: "red",
16443
16448
  variant: "filled",
16444
- onClick: f,
16449
+ onClick: P,
16445
16450
  disabled: !S,
16446
16451
  ...r?.confirmProps,
16447
16452
  children: Ti(r?.confirmText ?? C5, o)
@@ -16453,7 +16458,7 @@ function Ly({
16453
16458
  )
16454
16459
  ] });
16455
16460
  }
16456
- const By = () => /* @__PURE__ */ k(Ke, { children: [
16461
+ const By = () => /* @__PURE__ */ v(Ke, { children: [
16457
16462
  /* @__PURE__ */ p(
16458
16463
  "link",
16459
16464
  {
@@ -16512,7 +16517,7 @@ function Hy({
16512
16517
  components: i,
16513
16518
  scope: r
16514
16519
  }) {
16515
- const n = eO(() => T0(O), [O]);
16520
+ const n = OO(() => T0(O), [O]);
16516
16521
  return /* @__PURE__ */ p(
16517
16522
  ZV,
16518
16523
  {
@@ -16529,7 +16534,7 @@ const A5 = "_root_wixeq_1", D5 = "_terminal_wixeq_19", I5 = "_nonTerminal_wixeq_
16529
16534
  terminal: D5,
16530
16535
  nonTerminal: I5,
16531
16536
  comment: F5
16532
- }, v = 10, N5 = 8.4, Xa = 24, L5 = 10, EO = 10;
16537
+ }, Z = 10, N5 = 8.4, Xa = 24, L5 = 10, EO = 10;
16533
16538
  function Wt(O) {
16534
16539
  return O.length * N5 + L5 * 2;
16535
16540
  }
@@ -16562,46 +16567,46 @@ function PO(O) {
16562
16567
  }
16563
16568
  }
16564
16569
  function B5(O) {
16565
- const e = PO(O.child), t = v * 2;
16570
+ const e = PO(O.child), t = Z * 2;
16566
16571
  return O.skip ? {
16567
- width: e.width + v * 4,
16572
+ width: e.width + Z * 4,
16568
16573
  up: e.up,
16569
16574
  down: Math.max(e.down, t)
16570
16575
  } : {
16571
- width: e.width + v * 4,
16576
+ width: e.width + Z * 4,
16572
16577
  up: Math.max(e.up, t),
16573
16578
  down: e.down
16574
16579
  };
16575
16580
  }
16576
16581
  function M5(O) {
16577
- const e = O.children.map(PO), t = O.default ?? 0, r = Math.max(...e.map((s) => s.width)) + v * 4;
16582
+ const e = O.children.map(PO), t = O.default ?? 0, r = Math.max(...e.map((s) => s.width)) + Z * 4;
16578
16583
  let n = e[t].up;
16579
16584
  for (let s = t - 1; s >= 0; s--)
16580
16585
  n += EO + e[s].up + e[s].down;
16581
16586
  let a = e[t].down;
16582
16587
  for (let s = t + 1; s < e.length; s++)
16583
16588
  a += EO + e[s].up + e[s].down;
16584
- return { width: r, up: Math.max(n, v), down: Math.max(a, v) };
16589
+ return { width: r, up: Math.max(n, Z), down: Math.max(a, Z) };
16585
16590
  }
16586
16591
  function K5(O) {
16587
- const e = PO(O.child), t = O.repeat ? PO(O.repeat) : { width: 0, up: 0, down: 0 }, i = Math.max(e.width, t.width) + v * 4, r = e.up, n = Math.max(e.down + EO + t.up + t.down, v * 2);
16592
+ const e = PO(O.child), t = O.repeat ? PO(O.repeat) : { width: 0, up: 0, down: 0 }, i = Math.max(e.width, t.width) + Z * 4, r = e.up, n = Math.max(e.down + EO + t.up + t.down, Z * 2);
16588
16593
  return { width: i, up: r, down: n };
16589
16594
  }
16590
16595
  function H5(O) {
16591
- const e = PO(O.child), t = O.repeat ? PO(O.repeat) : { width: 0, up: 0, down: 0 }, i = Math.max(e.width, t.width) + v * 4, r = v * 2, n = Math.max(e.up, r), a = Math.max(e.down + EO + t.up + t.down, v * 2);
16596
+ const e = PO(O.child), t = O.repeat ? PO(O.repeat) : { width: 0, up: 0, down: 0 }, i = Math.max(e.width, t.width) + Z * 4, r = Z * 2, n = Math.max(e.up, r), a = Math.max(e.down + EO + t.up + t.down, Z * 2);
16592
16597
  return { width: i, up: n, down: a };
16593
16598
  }
16594
16599
  function ht(O, e) {
16595
16600
  const t = O > 0 ? 1 : -1, i = e > 0 ? 1 : -1, r = t + i !== 0 ? 1 : 0;
16596
- return `a ${v} ${v} 0 0 ${r} ${O} ${e}`;
16601
+ return `a ${Z} ${Z} 0 0 ${r} ${O} ${e}`;
16597
16602
  }
16598
- const UO = v * 2;
16603
+ const UO = Z * 2;
16599
16604
  function ot(O, e) {
16600
16605
  return `c ${O} 0 0 ${e} ${O} ${e}`;
16601
16606
  }
16602
16607
  function Pt(O, e) {
16603
16608
  const t = O > 0 ? 1 : -1, i = e > 0 ? 1 : -1, r = t + i !== 0 ? 0 : 1;
16604
- return `a ${v} ${v} 0 0 ${r} ${O} ${e}`;
16609
+ return `a ${Z} ${Z} 0 0 ${r} ${O} ${e}`;
16605
16610
  }
16606
16611
  let sl = 0;
16607
16612
  function iO() {
@@ -16623,7 +16628,7 @@ function QO(O, e, t, i) {
16623
16628
  );
16624
16629
  }
16625
16630
  function Is(O, e, t, i, r, n) {
16626
- return /* @__PURE__ */ k(
16631
+ return /* @__PURE__ */ v(
16627
16632
  "g",
16628
16633
  {
16629
16634
  className: n,
@@ -16694,10 +16699,10 @@ function Oy(O, e, t) {
16694
16699
  return /* @__PURE__ */ p("g", { children: i }, iO());
16695
16700
  }
16696
16701
  function ey(O, e, t) {
16697
- const i = PO(O.child), r = i.width + v * 4, n = [], a = e + v * 2;
16702
+ const i = PO(O.child), r = i.width + Z * 4, n = [], a = e + Z * 2;
16698
16703
  if (O.skip) {
16699
16704
  n.push(QO(e, t, e + r, t));
16700
- const s = t + v * 2;
16705
+ const s = t + Z * 2;
16701
16706
  n.push(
16702
16707
  /* @__PURE__ */ p(
16703
16708
  "path",
@@ -16717,7 +16722,7 @@ function ey(O, e, t) {
16717
16722
  );
16718
16723
  } else {
16719
16724
  n.push(_e(O.child, a, t)), n.push(QO(e, t, a, t)), n.push(QO(a + i.width, t, e + r, t));
16720
- const s = t - v * 2;
16725
+ const s = t - Z * 2;
16721
16726
  n.push(
16722
16727
  /* @__PURE__ */ p(
16723
16728
  "path",
@@ -16726,11 +16731,11 @@ function ey(O, e, t) {
16726
16731
  },
16727
16732
  iO()
16728
16733
  )
16729
- ), n.push(QO(e + v * 2, s, e + r - v * 2, s)), n.push(
16734
+ ), n.push(QO(e + Z * 2, s, e + r - Z * 2, s)), n.push(
16730
16735
  /* @__PURE__ */ p(
16731
16736
  "path",
16732
16737
  {
16733
- d: `M ${e + r - v * 2} ${s} ${ot(UO, UO)}`
16738
+ d: `M ${e + r - Z * 2} ${s} ${ot(UO, UO)}`
16734
16739
  },
16735
16740
  iO()
16736
16741
  )
@@ -16739,7 +16744,7 @@ function ey(O, e, t) {
16739
16744
  return /* @__PURE__ */ p("g", { children: n }, iO());
16740
16745
  }
16741
16746
  function ty(O, e, t) {
16742
- const i = O.children.map(PO), r = O.default ?? 0, a = Math.max(...i.map(($) => $.width)) + v * 4, s = [];
16747
+ const i = O.children.map(PO), r = O.default ?? 0, a = Math.max(...i.map(($) => $.width)) + Z * 4, s = [];
16743
16748
  let o = t;
16744
16749
  const Q = new Array(O.children.length);
16745
16750
  Q[r] = t;
@@ -16749,26 +16754,26 @@ function ty(O, e, t) {
16749
16754
  for (let $ = r + 1; $ < O.children.length; $++)
16750
16755
  o += i[$ - 1].down + EO + i[$].up, Q[$] = o;
16751
16756
  for (let $ = 0; $ < O.children.length; $++) {
16752
- const c = Q[$], d = i[$], h = e + v * 2, f = h + d.width, S = e + a;
16757
+ const c = Q[$], d = i[$], h = e + Z * 2, P = h + d.width, S = e + a;
16753
16758
  if (s.push(_e(O.children[$], h, c)), $ === r)
16754
- s.push(QO(e, t, h, c)), s.push(QO(f, c, S, t));
16759
+ s.push(QO(e, t, h, c)), s.push(QO(P, c, S, t));
16755
16760
  else {
16756
16761
  const x = c - t;
16757
16762
  s.push(
16758
16763
  /* @__PURE__ */ p(
16759
16764
  "path",
16760
16765
  {
16761
- d: `M ${e} ${t} ${ht(v, x > 0 ? v : -v)} L ${e + v} ${c - (x > 0 ? v : -v)} ${Pt(v, x > 0 ? v : -v)}`
16766
+ d: `M ${e} ${t} ${ht(Z, x > 0 ? Z : -Z)} L ${e + Z} ${c - (x > 0 ? Z : -Z)} ${Pt(Z, x > 0 ? Z : -Z)}`
16762
16767
  },
16763
16768
  iO()
16764
16769
  )
16765
16770
  );
16766
- const P = S - v * 2;
16767
- s.push(QO(f, c, P, c)), s.push(
16771
+ const f = S - Z * 2;
16772
+ s.push(QO(P, c, f, c)), s.push(
16768
16773
  /* @__PURE__ */ p(
16769
16774
  "path",
16770
16775
  {
16771
- d: `M ${P} ${c} ${ht(v, x > 0 ? -v : v)} L ${S - v} ${t + (x > 0 ? v : -v)} ${Pt(v, x > 0 ? -v : v)}`
16776
+ d: `M ${f} ${c} ${ht(Z, x > 0 ? -Z : Z)} L ${S - Z} ${t + (x > 0 ? Z : -Z)} ${Pt(Z, x > 0 ? -Z : Z)}`
16772
16777
  },
16773
16778
  iO()
16774
16779
  )
@@ -16778,14 +16783,14 @@ function ty(O, e, t) {
16778
16783
  return /* @__PURE__ */ p("g", { children: s }, iO());
16779
16784
  }
16780
16785
  function iy(O, e, t) {
16781
- const i = PO(O.child), r = O.repeat ? PO(O.repeat) : null, n = Math.max(i.width, r?.width ?? 0), a = n + v * 4, s = [], o = e + v * 2, Q = o + (n - i.width) / 2;
16786
+ const i = PO(O.child), r = O.repeat ? PO(O.repeat) : null, n = Math.max(i.width, r?.width ?? 0), a = n + Z * 4, s = [], o = e + Z * 2, Q = o + (n - i.width) / 2;
16782
16787
  s.push(QO(e, t, Q, t)), s.push(_e(O.child, Q, t)), s.push(QO(Q + i.width, t, e + a, t));
16783
- const $ = t + i.down + EO + (r?.up ?? v);
16788
+ const $ = t + i.down + EO + (r?.up ?? Z);
16784
16789
  if (s.push(
16785
16790
  /* @__PURE__ */ p(
16786
16791
  "path",
16787
16792
  {
16788
- d: `M ${o + n} ${t} ${ht(v, v)} v ${$ - t - v * 2} ${Pt(-v, v)}`
16793
+ d: `M ${o + n} ${t} ${ht(Z, Z)} v ${$ - t - Z * 2} ${Pt(-Z, Z)}`
16789
16794
  },
16790
16795
  iO()
16791
16796
  )
@@ -16798,14 +16803,14 @@ function iy(O, e, t) {
16798
16803
  /* @__PURE__ */ p(
16799
16804
  "path",
16800
16805
  {
16801
- d: `M ${o} ${$} ${ht(-v, -v)} v ${-($ - t - v * 2)} ${Pt(v, -v)}`
16806
+ d: `M ${o} ${$} ${ht(-Z, -Z)} v ${-($ - t - Z * 2)} ${Pt(Z, -Z)}`
16802
16807
  },
16803
16808
  iO()
16804
16809
  )
16805
16810
  ), /* @__PURE__ */ p("g", { children: s }, iO());
16806
16811
  }
16807
16812
  function ry(O, e, t) {
16808
- const i = PO(O.child), r = O.repeat ? PO(O.repeat) : null, n = Math.max(i.width, r?.width ?? 0), a = n + v * 4, s = [], o = e + v * 2, Q = o + (n - i.width) / 2, $ = t - v * 2;
16813
+ const i = PO(O.child), r = O.repeat ? PO(O.repeat) : null, n = Math.max(i.width, r?.width ?? 0), a = n + Z * 4, s = [], o = e + Z * 2, Q = o + (n - i.width) / 2, $ = t - Z * 2;
16809
16814
  if (s.push(
16810
16815
  /* @__PURE__ */ p(
16811
16816
  "path",
@@ -16828,7 +16833,7 @@ function ry(O, e, t) {
16828
16833
  /* @__PURE__ */ p(
16829
16834
  "path",
16830
16835
  {
16831
- d: `M ${o + n} ${t} ${ht(v, v)} v ${c - t - v * 2} ${Pt(-v, v)}`
16836
+ d: `M ${o + n} ${t} ${ht(Z, Z)} v ${c - t - Z * 2} ${Pt(-Z, Z)}`
16832
16837
  },
16833
16838
  iO()
16834
16839
  )
@@ -16838,7 +16843,7 @@ function ry(O, e, t) {
16838
16843
  /* @__PURE__ */ p(
16839
16844
  "path",
16840
16845
  {
16841
- d: `M ${o} ${c} ${ht(-v, -v)} v ${-(c - t - v * 2)} ${Pt(v, -v)}`
16846
+ d: `M ${o} ${c} ${ht(-Z, -Z)} v ${-(c - t - Z * 2)} ${Pt(Z, -Z)}`
16842
16847
  },
16843
16848
  iO()
16844
16849
  )
@@ -16884,7 +16889,7 @@ function Ob({
16884
16889
  selectProps: Q,
16885
16890
  ...$
16886
16891
  }) {
16887
- const c = typeof r == "number" ? `${r}px` : r, d = a ?? (n === "above" ? `(min-width: ${c})` : `(max-width: ${c})`), h = K$(d), f = (P) => typeof P.selectLabel == "string" ? P.selectLabel : typeof P.label == "string" || typeof P.label == "number" ? String(P.label) : P.value, [S, x] = H$({
16892
+ const c = typeof r == "number" ? `${r}px` : r, d = a ?? (n === "above" ? `(min-width: ${c})` : `(max-width: ${c})`), h = K$(d), P = (f) => typeof f.selectLabel == "string" ? f.selectLabel : typeof f.label == "string" || typeof f.label == "number" ? String(f.label) : f.value, [S, x] = H$({
16888
16893
  value: e,
16889
16894
  defaultValue: t,
16890
16895
  finalValue: O[0]?.value ?? null,
@@ -16895,13 +16900,13 @@ function Ob({
16895
16900
  S !== null && x(null);
16896
16901
  return;
16897
16902
  }
16898
- O.some((P) => P.value === S) || x(O[0].value);
16903
+ O.some((f) => f.value === S) || x(O[0].value);
16899
16904
  }, [O, S, x]), h ? /* @__PURE__ */ p(
16900
16905
  ae,
16901
16906
  {
16902
- data: O.map((P) => ({
16903
- value: P.value,
16904
- label: f(P)
16907
+ data: O.map((f) => ({
16908
+ value: f.value,
16909
+ label: P(f)
16905
16910
  })),
16906
16911
  value: S,
16907
16912
  onChange: x,
@@ -16916,15 +16921,15 @@ function Ob({
16916
16921
  value: S,
16917
16922
  onChange: x,
16918
16923
  ...$,
16919
- children: /* @__PURE__ */ p(o$, { ...s, children: O.map((P) => /* @__PURE__ */ p(
16924
+ children: /* @__PURE__ */ p(o$, { ...s, children: O.map((f) => /* @__PURE__ */ p(
16920
16925
  Q$,
16921
16926
  {
16922
- value: P.value,
16927
+ value: f.value,
16923
16928
  ...o,
16924
- ...P.tabProps,
16925
- children: P.label
16929
+ ...f.tabProps,
16930
+ children: f.label
16926
16931
  },
16927
- P.value
16932
+ f.value
16928
16933
  )) })
16929
16934
  }
16930
16935
  );
@@ -16967,7 +16972,7 @@ function tb({ items: O, syncKey: e, ...t }) {
16967
16972
  };
16968
16973
  return window.addEventListener("storage", Q), () => window.removeEventListener("storage", Q);
16969
16974
  }, [e, O]);
16970
- const s = eO(
16975
+ const s = OO(
16971
16976
  () => O.map((Q) => /* @__PURE__ */ p(
16972
16977
  st.Tab,
16973
16978
  {
@@ -16978,7 +16983,7 @@ function tb({ items: O, syncKey: e, ...t }) {
16978
16983
  Q.label
16979
16984
  )),
16980
16985
  [O]
16981
- ), o = eO(
16986
+ ), o = OO(
16982
16987
  () => O.map((Q) => /* @__PURE__ */ p(
16983
16988
  st.Panel,
16984
16989
  {
@@ -16991,7 +16996,7 @@ function tb({ items: O, syncKey: e, ...t }) {
16991
16996
  )),
16992
16997
  [O]
16993
16998
  );
16994
- return /* @__PURE__ */ k(
16999
+ return /* @__PURE__ */ v(
16995
17000
  st,
16996
17001
  {
16997
17002
  value: r,
@@ -17023,37 +17028,37 @@ const rb = $$({
17023
17028
  primaryShade: 6,
17024
17029
  defaultRadius: "xs",
17025
17030
  fontSizes: {
17026
- xs: OO(12),
17027
- sm: OO(13),
17028
- md: OO(14),
17029
- lg: OO(16),
17030
- xl: OO(18)
17031
+ xs: eO(12),
17032
+ sm: eO(13),
17033
+ md: eO(14),
17034
+ lg: eO(16),
17035
+ xl: eO(18)
17031
17036
  },
17032
17037
  headings: {
17033
17038
  sizes: {
17034
- h1: { fontSize: OO(32), fontWeight: "700" },
17035
- h2: { fontSize: OO(26), fontWeight: "600" },
17036
- h3: { fontSize: OO(22), fontWeight: "500" },
17037
- h4: { fontSize: OO(18), fontWeight: "500" },
17038
- h5: { fontSize: OO(16), fontWeight: "500" },
17039
- h6: { fontSize: OO(14), fontWeight: "800" }
17039
+ h1: { fontSize: eO(32), fontWeight: "700" },
17040
+ h2: { fontSize: eO(26), fontWeight: "600" },
17041
+ h3: { fontSize: eO(22), fontWeight: "500" },
17042
+ h4: { fontSize: eO(18), fontWeight: "500" },
17043
+ h5: { fontSize: eO(16), fontWeight: "500" },
17044
+ h6: { fontSize: eO(14), fontWeight: "800" }
17040
17045
  }
17041
17046
  },
17042
17047
  spacing: {
17043
- xs: OO(4),
17044
- sm: OO(8),
17045
- md: OO(12),
17046
- lg: OO(16),
17047
- xl: OO(24),
17048
- "2xl": OO(32),
17049
- "3xl": OO(52)
17048
+ xs: eO(4),
17049
+ sm: eO(8),
17050
+ md: eO(12),
17051
+ lg: eO(16),
17052
+ xl: eO(24),
17053
+ "2xl": eO(32),
17054
+ "3xl": eO(52)
17050
17055
  },
17051
17056
  radius: {
17052
- xs: OO(4),
17053
- sm: OO(8),
17054
- md: OO(12),
17055
- lg: OO(20),
17056
- xl: OO(30)
17057
+ xs: eO(4),
17058
+ sm: eO(8),
17059
+ md: eO(12),
17060
+ lg: eO(20),
17061
+ xl: eO(30)
17057
17062
  },
17058
17063
  colors: {
17059
17064
  obsidian: [