@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/icons.d.ts +7 -7
- package/dist/ui.d.ts +7 -7
- package/dist/ui.js +872 -867
- package/dist/ui.js.map +1 -1
- package/dist/yoopta.d.ts +7 -7
- package/package.json +1 -1
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
|
|
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
|
|
12
|
-
import { jsx as p, jsxs as
|
|
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
|
|
1226
|
-
return n & M.IncludeAnonymous || !
|
|
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(
|
|
1798
|
-
let { id: V, start: w, end:
|
|
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),
|
|
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],
|
|
1813
|
-
if (
|
|
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 =
|
|
1817
|
-
|
|
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 =
|
|
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 && (
|
|
1824
|
-
if (je >= 0 && at > 0 && at < zO.length &&
|
|
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
|
-
|
|
1826
|
+
j = Ra($e, zO, JO, 0, zO.length, 0, R - w, nn, nn);
|
|
1827
1827
|
} else
|
|
1828
|
-
|
|
1828
|
+
j = S($e, zO, JO, R - w, B - R, bO);
|
|
1829
1829
|
}
|
|
1830
|
-
y.push(
|
|
1830
|
+
y.push(j), U.push(si);
|
|
1831
1831
|
}
|
|
1832
|
-
function d(
|
|
1833
|
-
let
|
|
1834
|
-
for (; s.pos >
|
|
1835
|
-
let { id: w, start:
|
|
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 &&
|
|
1839
|
+
if (V > -1 && R < V)
|
|
1840
1840
|
break;
|
|
1841
|
-
V < 0 && (V = W - r),
|
|
1841
|
+
V < 0 && (V = W - r), G.push(w, R, W), m++, s.next();
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
|
-
if (
|
|
1845
|
-
let w = new Uint16Array(
|
|
1846
|
-
for (let W =
|
|
1847
|
-
w[B++] =
|
|
1848
|
-
y.push(new We(w,
|
|
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(
|
|
1852
|
-
return (y,
|
|
1853
|
-
let
|
|
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 ==
|
|
1855
|
+
if (!V && w.type == g && w.length == G)
|
|
1856
1856
|
return w;
|
|
1857
|
-
(
|
|
1857
|
+
(R = w.prop(F.lookAhead)) && (m = U[V] + w.length + R);
|
|
1858
1858
|
}
|
|
1859
|
-
return S(
|
|
1859
|
+
return S(g, y, U, G, m, b);
|
|
1860
1860
|
};
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function P(g, b, y, U, G, m, V, w, R) {
|
|
1863
1863
|
let W = [], B = [];
|
|
1864
|
-
for (;
|
|
1865
|
-
W.push(
|
|
1866
|
-
|
|
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(
|
|
1869
|
-
if (
|
|
1870
|
-
let w = [F.contextHash,
|
|
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 (
|
|
1874
|
-
let w = [F.lookAhead,
|
|
1873
|
+
if (G > 25) {
|
|
1874
|
+
let w = [F.lookAhead, G];
|
|
1875
1875
|
V = V ? [w].concat(V) : [w];
|
|
1876
1876
|
}
|
|
1877
|
-
return new lO(
|
|
1877
|
+
return new lO(g, b, y, U, V);
|
|
1878
1878
|
}
|
|
1879
|
-
function x(
|
|
1880
|
-
let y = s.fork(),
|
|
1881
|
-
O: for (let
|
|
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 ==
|
|
1884
|
-
w.size =
|
|
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 <
|
|
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
|
-
|
|
1900
|
+
G = $e, U += W, m += bO;
|
|
1901
1901
|
}
|
|
1902
|
-
return (
|
|
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
|
|
1905
|
-
let { id:
|
|
1906
|
-
if (s.next(), V >= 0 &&
|
|
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
|
|
1910
|
-
for (; s.pos >
|
|
1911
|
-
y =
|
|
1909
|
+
let R = s.pos - (V - 4);
|
|
1910
|
+
for (; s.pos > R; )
|
|
1911
|
+
y = f(g, b, y);
|
|
1912
1912
|
}
|
|
1913
|
-
|
|
1914
|
-
} else V == -3 ? Q =
|
|
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
|
|
1917
|
+
let Y = [], T = [];
|
|
1918
1918
|
for (; s.pos > 0; )
|
|
1919
|
-
c(O.start || 0, O.bufferStart || 0,
|
|
1920
|
-
let X = (e = O.length) !== null && e !== void 0 ? e :
|
|
1921
|
-
return new lO(o[O.topID],
|
|
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
|
|
1944
|
-
Q += mi(O, e[
|
|
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(
|
|
1950
|
-
for (let
|
|
1951
|
-
let X =
|
|
1952
|
-
for (
|
|
1953
|
-
let y = mi(O,
|
|
1954
|
-
if (
|
|
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
|
-
|
|
1956
|
+
b += y;
|
|
1957
1957
|
}
|
|
1958
|
-
if (
|
|
1959
|
-
if (
|
|
1960
|
-
let y =
|
|
1961
|
-
h(y.children, y.positions, 0, y.children.length, S[X] +
|
|
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(
|
|
1964
|
+
c.push(P[X]);
|
|
1965
1965
|
} else {
|
|
1966
|
-
let y = S[
|
|
1967
|
-
c.push(Ra(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(
|
|
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,
|
|
2030
|
-
d = h >=
|
|
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,
|
|
2212
|
-
let x = t[S],
|
|
2213
|
-
mn(a, $, x,
|
|
2214
|
-
let
|
|
2215
|
-
o.push(
|
|
2216
|
-
let
|
|
2217
|
-
return
|
|
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
|
|
2329
|
-
if (S > h && t.push(new Gt(h, S, r.tree, -a, n.from >= h || n.openStart, n.to <= S || n.openEnd)),
|
|
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),
|
|
2519
|
-
if (
|
|
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),
|
|
2551
|
-
for (let x = 0,
|
|
2552
|
-
let
|
|
2553
|
-
if (X <
|
|
2554
|
-
for (; e.from <
|
|
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 (!
|
|
2556
|
+
if (!Y || T > i)
|
|
2557
2557
|
break;
|
|
2558
|
-
|
|
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,
|
|
3077
|
-
function
|
|
3078
|
-
var w =
|
|
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
|
|
3081
|
-
if (
|
|
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(
|
|
3084
|
+
return V.tokenize = y(w), V.tokenize(m, V);
|
|
3085
3085
|
if (S.test(w)) {
|
|
3086
|
-
if (
|
|
3087
|
-
|
|
3086
|
+
if (m.backUp(1), m.match(x)) return "number";
|
|
3087
|
+
m.next();
|
|
3088
3088
|
}
|
|
3089
|
-
if (
|
|
3089
|
+
if (P.test(w))
|
|
3090
3090
|
return X = w, null;
|
|
3091
3091
|
if (w == "/") {
|
|
3092
|
-
if (
|
|
3093
|
-
return V.tokenize =
|
|
3094
|
-
if (
|
|
3095
|
-
return
|
|
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 (
|
|
3098
|
-
for (; !
|
|
3097
|
+
if (f.test(w)) {
|
|
3098
|
+
for (; !m.match(/^\/[\/*]/, !1) && m.eat(f); )
|
|
3099
3099
|
;
|
|
3100
3100
|
return "operator";
|
|
3101
3101
|
}
|
|
3102
|
-
if (
|
|
3103
|
-
|
|
3104
|
-
var W =
|
|
3105
|
-
return Se(i, W) ? (Se(a, W) && (X = "newstatement"), Se(s, W) && (
|
|
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(
|
|
3107
|
+
function y(m) {
|
|
3108
3108
|
return function(V, w) {
|
|
3109
|
-
for (var
|
|
3110
|
-
if (W ==
|
|
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
|
-
|
|
3114
|
+
R = !R && W == "\\";
|
|
3115
3115
|
}
|
|
3116
|
-
return (B || !(
|
|
3116
|
+
return (B || !(R || $)) && (w.tokenize = null), "string";
|
|
3117
3117
|
};
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3120
|
-
for (var w = !1,
|
|
3121
|
-
if (
|
|
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 =
|
|
3125
|
+
w = R == "*";
|
|
3126
3126
|
}
|
|
3127
3127
|
return "comment";
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3130
|
-
O.typeFirstDefinitions &&
|
|
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(
|
|
3134
|
+
startState: function(m) {
|
|
3135
3135
|
return {
|
|
3136
3136
|
tokenize: null,
|
|
3137
|
-
context: new ka(-
|
|
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(
|
|
3143
|
+
token: function(m, V) {
|
|
3144
3144
|
var w = V.context;
|
|
3145
|
-
if (
|
|
3146
|
-
return
|
|
3147
|
-
X =
|
|
3148
|
-
var
|
|
3149
|
-
if (
|
|
3150
|
-
if (w.align == null && (w.align = !0), X == ";" || X == ":" || X == "," &&
|
|
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,
|
|
3153
|
-
else if (X == "[") di(V,
|
|
3154
|
-
else if (X == "(") di(V,
|
|
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,
|
|
3159
|
-
if (
|
|
3160
|
-
var W = Q.token(
|
|
3161
|
-
W !== void 0 && (
|
|
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
|
|
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(
|
|
3166
|
-
if (
|
|
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
|
|
3169
|
-
if (
|
|
3170
|
-
for (;
|
|
3171
|
-
|
|
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(
|
|
3173
|
+
var bO = Q.indent(m, R, V, w.unit);
|
|
3174
3174
|
if (typeof bO == "number") return bO;
|
|
3175
3175
|
}
|
|
3176
|
-
var $e =
|
|
3176
|
+
var $e = R.prev && R.prev.info == "switch";
|
|
3177
3177
|
if (O.allmanIndentation && /[{(]/.test(W)) {
|
|
3178
|
-
for (;
|
|
3179
|
-
return
|
|
3178
|
+
for (; R.type != "top" && R.type != "}"; ) R = R.prev;
|
|
3179
|
+
return R.indented;
|
|
3180
3180
|
}
|
|
3181
|
-
return
|
|
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
|
|
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 =
|
|
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:
|
|
3256
|
+
keywords: q(Jt),
|
|
3257
3257
|
types: Oi,
|
|
3258
|
-
blockKeywords:
|
|
3259
|
-
defKeywords:
|
|
3258
|
+
blockKeywords: q(ei),
|
|
3259
|
+
defKeywords: q(Ji),
|
|
3260
3260
|
typeFirstDefinitions: !0,
|
|
3261
|
-
atoms:
|
|
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:
|
|
3270
|
+
keywords: q(Jt + " " + Po),
|
|
3271
3271
|
types: Oi,
|
|
3272
|
-
blockKeywords:
|
|
3273
|
-
defKeywords:
|
|
3272
|
+
blockKeywords: q(ei + " class try catch"),
|
|
3273
|
+
defKeywords: q(Ji + " class namespace"),
|
|
3274
3274
|
typeFirstDefinitions: !0,
|
|
3275
|
-
atoms:
|
|
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:
|
|
3306
|
-
types:
|
|
3307
|
-
blockKeywords:
|
|
3308
|
-
defKeywords:
|
|
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:
|
|
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:
|
|
3323
|
-
types:
|
|
3324
|
-
blockKeywords:
|
|
3325
|
-
defKeywords:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
3369
|
-
defKeywords:
|
|
3370
|
-
atoms:
|
|
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:
|
|
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:
|
|
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:
|
|
3426
|
-
defKeywords:
|
|
3427
|
-
atoms:
|
|
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:
|
|
3458
|
-
types:
|
|
3459
|
-
blockKeywords:
|
|
3460
|
-
builtin:
|
|
3461
|
-
atoms:
|
|
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:
|
|
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:
|
|
3470
|
-
atoms:
|
|
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:
|
|
3475
|
+
keywords: q(Jt + " " + fo),
|
|
3476
3476
|
types: Xo,
|
|
3477
|
-
builtin:
|
|
3478
|
-
blockKeywords:
|
|
3479
|
-
defKeywords:
|
|
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:
|
|
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:
|
|
3491
|
+
keywords: q(Jt + " " + fo + " " + Po),
|
|
3492
3492
|
types: Xo,
|
|
3493
|
-
builtin:
|
|
3494
|
-
blockKeywords:
|
|
3495
|
-
defKeywords:
|
|
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:
|
|
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:
|
|
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:
|
|
3529
|
-
defKeywords:
|
|
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:
|
|
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:
|
|
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:
|
|
3559
|
-
defKeywords:
|
|
3560
|
-
builtin:
|
|
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:
|
|
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:
|
|
3630
|
-
blockKeywords:
|
|
3631
|
-
builtin:
|
|
3632
|
-
atoms:
|
|
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
|
|
4306
|
-
if (o.allows(
|
|
4307
|
-
e.acceptToken(
|
|
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,
|
|
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[
|
|
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,
|
|
4612
|
-
if (
|
|
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}${
|
|
4615
|
+
)}`} for ${n.getName(c)} @ ${r}${P == e ? "" : ", split"})`), h)
|
|
4616
4616
|
return !0;
|
|
4617
|
-
|
|
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$(), [
|
|
7388
|
-
if ($ &&
|
|
7389
|
-
const V =
|
|
7390
|
-
d?.(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
|
-
}),
|
|
7392
|
+
}), b = OO(
|
|
7393
7393
|
() => ({
|
|
7394
7394
|
extensions: [
|
|
7395
|
-
lt.updateListener.of(
|
|
7396
|
-
|
|
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
|
|
7404
|
-
|
|
7403
|
+
const m = f.current;
|
|
7404
|
+
m && m.dispatch({
|
|
7405
7405
|
effects: [
|
|
7406
|
-
|
|
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
|
-
}),
|
|
7415
|
-
|
|
7416
|
-
}),
|
|
7417
|
-
if (!
|
|
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
|
|
7419
|
+
return f.current;
|
|
7420
7420
|
});
|
|
7421
7421
|
return K(() => {
|
|
7422
7422
|
if (!x.current) return;
|
|
7423
|
-
const
|
|
7423
|
+
const m = new lt({
|
|
7424
7424
|
parent: x.current,
|
|
7425
7425
|
scrollTo: lt.scrollIntoView(0),
|
|
7426
|
-
state: vt.create(
|
|
7426
|
+
state: vt.create(b)
|
|
7427
7427
|
});
|
|
7428
|
-
return
|
|
7429
|
-
|
|
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
|
|
7435
|
-
t !== void 0 &&
|
|
7434
|
+
const m = f.current;
|
|
7435
|
+
t !== void 0 && m && cc(m, t);
|
|
7436
7436
|
}, [t]), K(() => {
|
|
7437
|
-
r &&
|
|
7437
|
+
r && U(r);
|
|
7438
7438
|
}, [r]), K(() => {
|
|
7439
|
-
const
|
|
7440
|
-
|
|
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]),
|
|
7443
|
+
}, [a, s]), OO(
|
|
7444
7444
|
() => ({
|
|
7445
7445
|
ref: x,
|
|
7446
|
-
mounted:
|
|
7447
|
-
getEditor:
|
|
7448
|
-
restoreState:
|
|
7446
|
+
mounted: P,
|
|
7447
|
+
getEditor: G,
|
|
7448
|
+
restoreState: U
|
|
7449
7449
|
}),
|
|
7450
|
-
[
|
|
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 =
|
|
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
|
|
7580
|
-
for (let
|
|
7581
|
-
d.add(
|
|
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
|
|
7584
|
-
const x = (
|
|
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(
|
|
7593
|
+
color: `var(--mantine-color-slate-${d.has(X) ? 5 : 6})`
|
|
7590
7594
|
},
|
|
7591
|
-
children:
|
|
7595
|
+
children: X + 1
|
|
7592
7596
|
}
|
|
7593
|
-
),
|
|
7594
|
-
const
|
|
7595
|
-
if (
|
|
7596
|
-
const
|
|
7597
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
7624
|
+
Y,
|
|
7621
7625
|
{
|
|
7622
7626
|
lineIndex: S
|
|
7623
7627
|
},
|
|
7624
7628
|
`ln-${S}`
|
|
7625
7629
|
),
|
|
7626
|
-
...
|
|
7630
|
+
...g,
|
|
7627
7631
|
/* @__PURE__ */ p("br", {}, `br-${S}`)
|
|
7628
|
-
]),
|
|
7632
|
+
]), P = [], S++;
|
|
7629
7633
|
} else
|
|
7630
|
-
|
|
7634
|
+
X ? h.push([
|
|
7631
7635
|
/* @__PURE__ */ p(
|
|
7632
|
-
|
|
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
|
-
|
|
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
|
-
(
|
|
7667
|
-
|
|
7670
|
+
(X, g) => {
|
|
7671
|
+
P.push(
|
|
7668
7672
|
/* @__PURE__ */ p(
|
|
7669
7673
|
"span",
|
|
7670
7674
|
{
|
|
7671
|
-
style: { color:
|
|
7672
|
-
children:
|
|
7675
|
+
style: { color: g },
|
|
7676
|
+
children: X
|
|
7673
7677
|
},
|
|
7674
|
-
`span-${S}-${
|
|
7678
|
+
`span-${S}-${P.length}`
|
|
7675
7679
|
)
|
|
7676
7680
|
);
|
|
7677
7681
|
},
|
|
7678
7682
|
() => {
|
|
7679
|
-
|
|
7683
|
+
T();
|
|
7680
7684
|
}
|
|
7681
|
-
),
|
|
7682
|
-
`).forEach((
|
|
7683
|
-
|
|
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
|
|
7686
|
-
Q.push(...
|
|
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 } =
|
|
7744
|
-
const h = OV(e), { processedCode:
|
|
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:
|
|
7752
|
+
code: P,
|
|
7749
7753
|
regions: S,
|
|
7750
7754
|
test: h.test
|
|
7751
7755
|
};
|
|
7752
7756
|
}, [e]);
|
|
7753
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
7809
|
+
/* @__PURE__ */ p(a$, { value: c, children: ({ copy: h, copied: P }) => /* @__PURE__ */ p(
|
|
7806
7810
|
Le,
|
|
7807
7811
|
{
|
|
7808
|
-
label:
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
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 =
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
8531
|
+
const a = OO(
|
|
8528
8532
|
() => bV(t, i, r),
|
|
8529
8533
|
[t, i, r]
|
|
8530
|
-
), s =
|
|
8534
|
+
), s = OO(() => e ? { ...a, ...e } : a, [e, a]), o = N(
|
|
8531
8535
|
($, c, d, h) => {
|
|
8532
|
-
const
|
|
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
|
|
8538
|
-
(
|
|
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__ */
|
|
8541
|
-
|
|
8544
|
+
return /* @__PURE__ */ v(
|
|
8545
|
+
Y,
|
|
8542
8546
|
{
|
|
8543
8547
|
node: $,
|
|
8544
8548
|
children: [
|
|
8545
|
-
X && /* @__PURE__ */ p(H.Thead, { children:
|
|
8549
|
+
X && /* @__PURE__ */ p(H.Thead, { children: b }),
|
|
8546
8550
|
/* @__PURE__ */ p(H.Tbody, { children: y })
|
|
8547
8551
|
]
|
|
8548
8552
|
},
|
|
8549
|
-
|
|
8553
|
+
P
|
|
8550
8554
|
);
|
|
8551
8555
|
}
|
|
8552
8556
|
if (RV($)) {
|
|
8553
|
-
const
|
|
8557
|
+
const Y = S();
|
|
8554
8558
|
return /* @__PURE__ */ p(
|
|
8555
|
-
|
|
8559
|
+
Y,
|
|
8556
8560
|
{
|
|
8557
8561
|
node: $,
|
|
8558
|
-
children: $.children.map((
|
|
8562
|
+
children: $.children.map((T, X) => o(T, X, $, x))
|
|
8559
8563
|
},
|
|
8560
|
-
|
|
8564
|
+
P
|
|
8561
8565
|
);
|
|
8562
8566
|
}
|
|
8563
|
-
const
|
|
8567
|
+
const f = S();
|
|
8564
8568
|
return /* @__PURE__ */ p(
|
|
8565
|
-
|
|
8569
|
+
f,
|
|
8566
8570
|
{
|
|
8567
8571
|
node: $
|
|
8568
8572
|
},
|
|
8569
|
-
|
|
8573
|
+
P
|
|
8570
8574
|
);
|
|
8571
8575
|
},
|
|
8572
8576
|
[s]
|
|
8573
|
-
), Q =
|
|
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
|
|
9156
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9227
|
+
z.isAwaitUsing = function(O) {
|
|
9224
9228
|
return this.isUsingKeyword(!0, O);
|
|
9225
9229
|
};
|
|
9226
|
-
|
|
9230
|
+
z.isUsing = function(O) {
|
|
9227
9231
|
return this.isUsingKeyword(!1, O);
|
|
9228
9232
|
};
|
|
9229
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9304
|
+
z.parseDebuggerStatement = function(O) {
|
|
9301
9305
|
return this.next(), this.semicolon(), this.finishNode(O, "DebuggerStatement");
|
|
9302
9306
|
};
|
|
9303
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9331
|
+
z.parseFunctionStatement = function(O, e, t) {
|
|
9328
9332
|
return this.next(), this.parseFunction(O, qt | (t ? 0 : ca), !1, e);
|
|
9329
9333
|
};
|
|
9330
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9374
|
+
z.parseEmptyStatement = function(O) {
|
|
9371
9375
|
return this.next(), this.finishNode(O, "EmptyStatement");
|
|
9372
9376
|
};
|
|
9373
|
-
|
|
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
|
-
|
|
9391
|
+
z.parseExpressionStatement = function(O, e) {
|
|
9388
9392
|
return O.expression = e, this.semicolon(), this.finishNode(O, "ExpressionStatement");
|
|
9389
9393
|
};
|
|
9390
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9489
|
+
z.parseClassSuper = function(O) {
|
|
9486
9490
|
O.superClass = this.eat(u._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
9487
9491
|
};
|
|
9488
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9536
|
+
z.parseExportDeclaration = function(O) {
|
|
9533
9537
|
return this.parseStatement(null);
|
|
9534
9538
|
};
|
|
9535
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
9899
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10045
|
+
C.shouldParseAsyncArrow = function() {
|
|
10042
10046
|
return !this.canInsertSemicolon() && this.eat(u.arrow);
|
|
10043
10047
|
};
|
|
10044
|
-
|
|
10048
|
+
C.parseSubscriptAsyncArrow = function(O, e, t, i) {
|
|
10045
10049
|
return this.parseArrowExpression(this.startNodeAt(O, e), t, !0, i);
|
|
10046
10050
|
};
|
|
10047
|
-
|
|
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,
|
|
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 =
|
|
10060
|
-
this.checkExpressionErrors(c, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = h || this.awaitPos, 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
|
|
10066
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10124
|
+
C.parseExprAtomDefault = function() {
|
|
10121
10125
|
this.unexpected();
|
|
10122
10126
|
};
|
|
10123
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10160
|
+
C.shouldParseArrow = function(O) {
|
|
10157
10161
|
return !this.canInsertSemicolon();
|
|
10158
10162
|
};
|
|
10159
|
-
|
|
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,
|
|
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
|
-
|
|
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),
|
|
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
|
|
10184
|
-
return
|
|
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
|
-
|
|
10192
|
+
C.parseParenItem = function(O) {
|
|
10189
10193
|
return O;
|
|
10190
10194
|
};
|
|
10191
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10590
|
+
k.regexp_alternative = function(O) {
|
|
10587
10591
|
for (; O.pos < O.source.length && this.regexp_eatTerm(O); )
|
|
10588
10592
|
;
|
|
10589
10593
|
};
|
|
10590
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10775
|
+
k.regexp_eatInvalidBracedQuantifier = function(O) {
|
|
10772
10776
|
return this.regexp_eatBracedQuantifier(O, !0) && O.raise("Nothing to repeat"), !1;
|
|
10773
10777
|
};
|
|
10774
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11034
|
+
k.regexp_eatLoneUnicodePropertyNameOrValue = function(O) {
|
|
11031
11035
|
return this.regexp_eatUnicodePropertyValue(O);
|
|
11032
11036
|
};
|
|
11033
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
12076
|
-
if (
|
|
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
|
|
12125
|
-
O.currentIndex = i + 1,
|
|
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 = [],
|
|
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(
|
|
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
|
|
12404
|
+
const P = {
|
|
12401
12405
|
type: "jsxComponent",
|
|
12402
12406
|
name: t,
|
|
12403
12407
|
attributes: a,
|
|
12404
12408
|
children: []
|
|
12405
12409
|
};
|
|
12406
|
-
return cO(
|
|
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,
|
|
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(
|
|
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
|
|
12468
|
+
const P = {
|
|
12465
12469
|
type: "emphasis",
|
|
12466
12470
|
children: oO(c)
|
|
12467
12471
|
};
|
|
12468
|
-
return cO(
|
|
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
|
|
12741
|
-
c =
|
|
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
|
|
12947
|
+
const P = t.join(`
|
|
12944
12948
|
`);
|
|
12945
|
-
if (Ot(
|
|
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
|
|
12963
|
+
const P = {
|
|
12960
12964
|
type: "paragraph",
|
|
12961
12965
|
children: [h]
|
|
12962
12966
|
};
|
|
12963
|
-
O.currentContainer.push(
|
|
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
|
|
13094
|
-
if (!
|
|
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
|
|
13107
|
+
const P = s.length - s.trimStart().length;
|
|
13104
13108
|
for (; h < O.lines.length; ) {
|
|
13105
|
-
const
|
|
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:
|
|
13115
|
-
c.push(
|
|
13118
|
+
const { content: g, checked: b } = d0(X);
|
|
13119
|
+
c.push(g), d = b;
|
|
13116
13120
|
}
|
|
13117
13121
|
h++;
|
|
13118
|
-
} else if (
|
|
13119
|
-
c.push(
|
|
13122
|
+
} else if (T.length - T.trimStart().length > P)
|
|
13123
|
+
c.push(T), h++;
|
|
13120
13124
|
else
|
|
13121
13125
|
break;
|
|
13122
13126
|
}
|
|
13123
|
-
const
|
|
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 (
|
|
13134
|
-
xt(
|
|
13135
|
-
const
|
|
13137
|
+
for (f.currentContainer = f.root; f.currentIndex < f.lines.length; )
|
|
13138
|
+
xt(f);
|
|
13139
|
+
const Y = {
|
|
13136
13140
|
type: "listItem",
|
|
13137
|
-
children:
|
|
13141
|
+
children: f.root
|
|
13138
13142
|
};
|
|
13139
|
-
d !== void 0 && (
|
|
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
|
|
13417
|
-
const
|
|
13418
|
-
|
|
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:
|
|
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
|
-
(
|
|
13427
|
-
|
|
13430
|
+
(T) => {
|
|
13431
|
+
T.stopPropagation(), T.key === "Enter" && P(), T.key === "Escape" && S();
|
|
13428
13432
|
},
|
|
13429
|
-
[
|
|
13430
|
-
),
|
|
13431
|
-
return /* @__PURE__ */
|
|
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
|
-
!!
|
|
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:
|
|
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: (
|
|
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: (
|
|
13488
|
-
|
|
13491
|
+
onMouseEnter: (T) => {
|
|
13492
|
+
T.currentTarget.style.opacity = "1";
|
|
13489
13493
|
},
|
|
13490
|
-
onMouseLeave: (
|
|
13491
|
-
s || (
|
|
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: (
|
|
13502
|
-
onBlur:
|
|
13505
|
+
onChange: (T) => $(T.currentTarget.value),
|
|
13506
|
+
onBlur: P,
|
|
13503
13507
|
onKeyDown: x,
|
|
13504
|
-
onMouseDown: (
|
|
13505
|
-
onClick: (
|
|
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__ */
|
|
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: (
|
|
13557
|
-
onBlur:
|
|
13560
|
+
onChange: (T) => $(T.currentTarget.value),
|
|
13561
|
+
onBlur: P,
|
|
13558
13562
|
onKeyDown: x,
|
|
13559
|
-
onMouseDown: (
|
|
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
|
|
13631
|
-
return
|
|
13632
|
-
X.removeEventListener("timeupdate",
|
|
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
|
|
13637
|
-
if (!
|
|
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 =
|
|
13643
|
+
const y = b.getBoundingClientRect();
|
|
13640
13644
|
if (!y.width) return null;
|
|
13641
|
-
const
|
|
13642
|
-
return Math.min(
|
|
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
|
|
13645
|
-
if (
|
|
13646
|
-
const
|
|
13647
|
-
|
|
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
|
|
13652
|
-
if (
|
|
13653
|
-
const
|
|
13654
|
-
|
|
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
|
|
13657
|
-
if (
|
|
13658
|
-
const
|
|
13659
|
-
|
|
13660
|
-
}),
|
|
13661
|
-
const
|
|
13662
|
-
|
|
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
|
-
}),
|
|
13668
|
-
const
|
|
13669
|
-
return `${
|
|
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__ */
|
|
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:
|
|
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
|
-
|
|
13696
|
+
Y !== null && /* @__PURE__ */ p(
|
|
13693
13697
|
rO,
|
|
13694
13698
|
{
|
|
13695
13699
|
className: KO.progressTooltip,
|
|
13696
|
-
style: { left: `${
|
|
13697
|
-
children:
|
|
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: `${
|
|
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,
|
|
13728
|
-
onPlay:
|
|
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:
|
|
13731
|
-
onTimeUpdate:
|
|
13734
|
+
onVolumeChange: g,
|
|
13735
|
+
onTimeUpdate: b,
|
|
13732
13736
|
onLoadedMetadata: y,
|
|
13733
|
-
onCanPlay:
|
|
13734
|
-
onDurationChange:
|
|
13735
|
-
onEnded:
|
|
13737
|
+
onCanPlay: U,
|
|
13738
|
+
onDurationChange: G,
|
|
13739
|
+
onEnded: m,
|
|
13736
13740
|
onError: V,
|
|
13737
13741
|
...w
|
|
13738
|
-
} = o ?? {},
|
|
13739
|
-
const
|
|
13740
|
-
|
|
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,
|
|
13747
|
+
$.current && ($.current.muted = n, P(n));
|
|
13744
13748
|
}, [n]), K(() => {
|
|
13745
|
-
const
|
|
13746
|
-
if (!
|
|
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 (!
|
|
13756
|
+
if (!j.paused)
|
|
13753
13757
|
return;
|
|
13754
13758
|
W();
|
|
13755
13759
|
} else
|
|
13756
|
-
|
|
13760
|
+
j.pause();
|
|
13757
13761
|
},
|
|
13758
13762
|
{ threshold: 0.35 }
|
|
13759
13763
|
);
|
|
13760
|
-
return fO.observe(
|
|
13764
|
+
return fO.observe(j), () => {
|
|
13761
13765
|
fO.disconnect();
|
|
13762
13766
|
};
|
|
13763
13767
|
}, [i]);
|
|
13764
13768
|
const B = () => {
|
|
13765
|
-
const
|
|
13766
|
-
|
|
13769
|
+
const j = $.current;
|
|
13770
|
+
j && (j.paused ? W() : j.pause());
|
|
13767
13771
|
}, bO = () => {
|
|
13768
|
-
const
|
|
13769
|
-
if (!
|
|
13770
|
-
const fO = !
|
|
13771
|
-
|
|
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
|
|
13774
|
-
|
|
13777
|
+
const j = $.current;
|
|
13778
|
+
j && (j.currentTime = 0, j.paused ? d(!1) : (await j.play(), d(!0)));
|
|
13775
13779
|
};
|
|
13776
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
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: (
|
|
13811
|
-
d(!0),
|
|
13814
|
+
onPlay: (j) => {
|
|
13815
|
+
d(!0), Y(!0), x(!1), T?.(j);
|
|
13812
13816
|
},
|
|
13813
|
-
onPause: (
|
|
13814
|
-
d(!1), X?.(
|
|
13817
|
+
onPause: (j) => {
|
|
13818
|
+
d(!1), X?.(j);
|
|
13815
13819
|
},
|
|
13816
|
-
onVolumeChange: (
|
|
13817
|
-
|
|
13820
|
+
onVolumeChange: (j) => {
|
|
13821
|
+
P(j.currentTarget?.muted ?? !1), g?.(j);
|
|
13818
13822
|
},
|
|
13819
|
-
onTimeUpdate: (
|
|
13820
|
-
|
|
13823
|
+
onTimeUpdate: (j) => {
|
|
13824
|
+
b?.(j);
|
|
13821
13825
|
},
|
|
13822
|
-
onLoadedMetadata: (
|
|
13823
|
-
x(!1), y?.(
|
|
13826
|
+
onLoadedMetadata: (j) => {
|
|
13827
|
+
x(!1), y?.(j);
|
|
13824
13828
|
},
|
|
13825
|
-
onCanPlay: (
|
|
13826
|
-
x(!1),
|
|
13829
|
+
onCanPlay: (j) => {
|
|
13830
|
+
x(!1), U?.(j);
|
|
13827
13831
|
},
|
|
13828
|
-
onDurationChange: (
|
|
13829
|
-
|
|
13832
|
+
onDurationChange: (j) => {
|
|
13833
|
+
G?.(j);
|
|
13830
13834
|
},
|
|
13831
|
-
onEnded: (
|
|
13832
|
-
d(!1),
|
|
13835
|
+
onEnded: (j) => {
|
|
13836
|
+
d(!1), m?.(j);
|
|
13833
13837
|
},
|
|
13834
|
-
onError: (
|
|
13835
|
-
x(!0), d(!1), V?.(
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
14006
|
-
|
|
14009
|
+
const f = Q.trim();
|
|
14010
|
+
f && AO.updateElement(r, {
|
|
14007
14011
|
blockId: t,
|
|
14008
14012
|
type: "cdn-video",
|
|
14009
|
-
props: { code:
|
|
14013
|
+
props: { code: f, format: c }
|
|
14010
14014
|
});
|
|
14011
|
-
}, [r, t, Q, c]),
|
|
14012
|
-
(
|
|
14013
|
-
|
|
14015
|
+
}, [r, t, Q, c]), P = N(
|
|
14016
|
+
(f) => {
|
|
14017
|
+
f.stopPropagation(), f.key === "Enter" && h();
|
|
14014
14018
|
},
|
|
14015
14019
|
[h]
|
|
14016
|
-
), S =
|
|
14020
|
+
), S = OO(
|
|
14017
14021
|
() => Br(a.code, a.format) ?? "",
|
|
14018
14022
|
[a.code, a.format]
|
|
14019
14023
|
);
|
|
14020
|
-
return /* @__PURE__ */
|
|
14024
|
+
return /* @__PURE__ */ v(
|
|
14021
14025
|
"div",
|
|
14022
14026
|
{
|
|
14023
14027
|
...O,
|
|
14024
14028
|
contentEditable: !1,
|
|
14025
14029
|
children: [
|
|
14026
|
-
!!S ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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: (
|
|
14094
|
-
onKeyDown:
|
|
14095
|
-
onMouseDown: (
|
|
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: (
|
|
14107
|
-
|
|
14110
|
+
onChange: (f) => {
|
|
14111
|
+
f && d(f);
|
|
14108
14112
|
},
|
|
14109
14113
|
allowDeselect: !1,
|
|
14110
14114
|
comboboxProps: { withinPortal: !0 },
|
|
14111
|
-
onMouseDown: (
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
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,
|
|
14836
|
-
const y = Q.map((
|
|
14837
|
-
y[X][
|
|
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((
|
|
14845
|
+
const X = [...Q.map((g) => [...g]), new Array(o).fill("")];
|
|
14842
14846
|
$(X), c(X);
|
|
14843
|
-
}, [Q, o, c]),
|
|
14847
|
+
}, [Q, o, c]), P = N(
|
|
14844
14848
|
(X) => {
|
|
14845
14849
|
if (Q.length <= 1) return;
|
|
14846
|
-
const
|
|
14847
|
-
$(
|
|
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((
|
|
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
|
|
14857
|
-
$(
|
|
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,
|
|
14863
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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((
|
|
14879
|
-
/* @__PURE__ */ p(H.Tbody, { children:
|
|
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
|
|
14889
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
14905
|
-
|
|
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 ${
|
|
14914
|
-
onChange: (
|
|
14915
|
-
onMouseDown: (
|
|
14916
|
-
onKeyDown: (
|
|
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
|
-
) },
|
|
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:
|
|
14939
|
-
const
|
|
14940
|
-
return /* @__PURE__ */
|
|
14941
|
-
X.map((y,
|
|
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: (
|
|
14951
|
-
onMouseDown: (
|
|
14952
|
-
onKeyDown: (
|
|
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
|
-
) },
|
|
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: () =>
|
|
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
|
-
] },
|
|
14977
|
+
] }, b);
|
|
14974
14978
|
}) })
|
|
14975
14979
|
]
|
|
14976
14980
|
}
|
|
14977
14981
|
),
|
|
14978
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
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
|
|
15166
|
-
(
|
|
15170
|
+
const P = N(
|
|
15171
|
+
(T) => {
|
|
15167
15172
|
AO.updateElement(r, {
|
|
15168
15173
|
blockId: t,
|
|
15169
15174
|
type: "surreal-codeblock",
|
|
15170
|
-
props:
|
|
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
|
-
(
|
|
15181
|
-
|
|
15180
|
+
(T) => {
|
|
15181
|
+
Q(T), P({ code: T });
|
|
15182
15182
|
},
|
|
15183
|
-
[
|
|
15184
|
-
), x = N(
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
|
-
|
|
15188
|
-
|
|
15189
|
-
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
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__ */
|
|
15216
|
+
) : /* @__PURE__ */ v(
|
|
15212
15217
|
"div",
|
|
15213
15218
|
{
|
|
15214
15219
|
...O,
|
|
15215
15220
|
contentEditable: !1,
|
|
15216
15221
|
children: [
|
|
15217
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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: (
|
|
15234
|
-
onKeyDown: (
|
|
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: (
|
|
15245
|
-
const
|
|
15246
|
-
c(
|
|
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: (
|
|
15266
|
-
|
|
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: (
|
|
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__ */
|
|
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:
|
|
15323
|
-
onKeyDown:
|
|
15324
|
-
onBlur:
|
|
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 ?
|
|
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
|
|
15503
|
-
|
|
15507
|
+
const f = Q.trim();
|
|
15508
|
+
f !== a.url && AO.updateElement(r, {
|
|
15504
15509
|
blockId: t,
|
|
15505
15510
|
type: "video-embed",
|
|
15506
|
-
props: { url:
|
|
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]),
|
|
15511
|
-
(
|
|
15512
|
-
|
|
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 =
|
|
15516
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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: (
|
|
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: (
|
|
15577
|
-
|
|
15581
|
+
onMouseEnter: (f) => {
|
|
15582
|
+
f.currentTarget.style.opacity = "1", s || (f.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.42)");
|
|
15578
15583
|
},
|
|
15579
|
-
onMouseLeave: (
|
|
15580
|
-
s || (
|
|
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: (
|
|
15595
|
+
onChange: (f) => $(f.currentTarget.value),
|
|
15591
15596
|
onBlur: d,
|
|
15592
|
-
onKeyDown:
|
|
15593
|
-
onMouseDown: (
|
|
15594
|
-
onClick: (
|
|
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__ */
|
|
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: (
|
|
15647
|
+
onChange: (f) => $(f.currentTarget.value),
|
|
15643
15648
|
onBlur: d,
|
|
15644
|
-
onKeyDown:
|
|
15645
|
-
onMouseDown: (
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
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__ */
|
|
15988
|
-
r && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
16124
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
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__ */
|
|
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,
|
|
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(
|
|
16382
|
+
Q(x), n(f), s(""), f.skippable && $ ? f?.onConfirm?.(x) : i(!0);
|
|
16378
16383
|
}), h = tO(() => {
|
|
16379
16384
|
i(!1), r?.onDismiss?.();
|
|
16380
|
-
}),
|
|
16385
|
+
}), P = tO(() => {
|
|
16381
16386
|
i(!1), r?.onConfirm?.(o);
|
|
16382
16387
|
}), S = r?.verification ? q5(a, r.verification) : !0;
|
|
16383
|
-
return /* @__PURE__ */
|
|
16388
|
+
return /* @__PURE__ */ v(nl.Provider, { value: OO(() => ({ setConfirmation: d }), []), children: [
|
|
16384
16389
|
e,
|
|
16385
|
-
/* @__PURE__ */
|
|
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) &&
|
|
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__ */
|
|
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__ */
|
|
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 &&
|
|
16426
|
+
x.key === "Enter" && S && P();
|
|
16422
16427
|
}
|
|
16423
16428
|
}
|
|
16424
16429
|
)
|
|
16425
16430
|
] }),
|
|
16426
|
-
/* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
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 =
|
|
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
|
-
},
|
|
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 =
|
|
16570
|
+
const e = PO(O.child), t = Z * 2;
|
|
16566
16571
|
return O.skip ? {
|
|
16567
|
-
width: e.width +
|
|
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 +
|
|
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)) +
|
|
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,
|
|
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) +
|
|
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) +
|
|
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 ${
|
|
16601
|
+
return `a ${Z} ${Z} 0 0 ${r} ${O} ${e}`;
|
|
16597
16602
|
}
|
|
16598
|
-
const UO =
|
|
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 ${
|
|
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__ */
|
|
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 +
|
|
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 +
|
|
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 -
|
|
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 +
|
|
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 -
|
|
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)) +
|
|
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 +
|
|
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(
|
|
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(
|
|
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
|
|
16767
|
-
s.push(QO(
|
|
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 ${
|
|
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 +
|
|
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 ??
|
|
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(
|
|
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(-
|
|
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 +
|
|
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(
|
|
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(-
|
|
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),
|
|
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((
|
|
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((
|
|
16903
|
-
value:
|
|
16904
|
-
label: f
|
|
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((
|
|
16924
|
+
children: /* @__PURE__ */ p(o$, { ...s, children: O.map((f) => /* @__PURE__ */ p(
|
|
16920
16925
|
Q$,
|
|
16921
16926
|
{
|
|
16922
|
-
value:
|
|
16927
|
+
value: f.value,
|
|
16923
16928
|
...o,
|
|
16924
|
-
...
|
|
16925
|
-
children:
|
|
16929
|
+
...f.tabProps,
|
|
16930
|
+
children: f.label
|
|
16926
16931
|
},
|
|
16927
|
-
|
|
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 =
|
|
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 =
|
|
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__ */
|
|
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:
|
|
17027
|
-
sm:
|
|
17028
|
-
md:
|
|
17029
|
-
lg:
|
|
17030
|
-
xl:
|
|
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:
|
|
17035
|
-
h2: { fontSize:
|
|
17036
|
-
h3: { fontSize:
|
|
17037
|
-
h4: { fontSize:
|
|
17038
|
-
h5: { fontSize:
|
|
17039
|
-
h6: { fontSize:
|
|
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:
|
|
17044
|
-
sm:
|
|
17045
|
-
md:
|
|
17046
|
-
lg:
|
|
17047
|
-
xl:
|
|
17048
|
-
"2xl":
|
|
17049
|
-
"3xl":
|
|
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:
|
|
17053
|
-
sm:
|
|
17054
|
-
md:
|
|
17055
|
-
lg:
|
|
17056
|
-
xl:
|
|
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: [
|