@zydon/common-csr 1.1.9 → 1.1.11
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/components/Filters/ListingRules/index.d.ts +1 -1
- package/dist/components/Filters/ListingRules/index.d.ts.map +1 -1
- package/dist/components/Filters/ListingRules/props.d.ts +0 -1
- package/dist/components/Filters/ListingRules/props.d.ts.map +1 -1
- package/dist/index.js +119 -122
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Oi, { forwardRef as Ol, useRef as og, useState as wt, useEffect as
|
|
1
|
+
import Oi, { forwardRef as Ol, useRef as og, useState as wt, useEffect as Vt, memo as $T, useImperativeHandle as LN } from "react";
|
|
2
2
|
import { ListItemButton as Al, ListItemIcon as Nl, Popover as wl, ListItemText as Il, Tooltip as xl, Link as Vr, Stack as tt, Box as Tr, ListSubheader as UT, Collapse as GT, List as sg, styled as Xt, alpha as In, FormHelperText as HT, Accordion as kN, AccordionSummary as PN, Typography as mn, AccordionDetails as BN, Button as vi, ListItem as Mm, FormControlLabel as Lm, Checkbox as km, ToggleButton as qT, ToggleButtonGroup as YT, IconButton as ag, TextField as WT } from "@mui/material";
|
|
3
3
|
import { useLocation as Dl, matchPath as Wh, Link as lg } from "react-router-dom";
|
|
4
4
|
import { Icon as cn, Label as FN, Scrollbar as VT, SearchInput as cg, EmptyView as $N, useDatagrid as UN, DataGrid as zT, Field as KT, usePopover as QT, AutocompleteField as Vo, ExpandableGroup as GN, ActionButton as HN, useToggle as qN } from "@zydon/common";
|
|
@@ -268,29 +268,29 @@ function XN() {
|
|
|
268
268
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
269
269
|
try {
|
|
270
270
|
Reflect.construct(Ve, []);
|
|
271
|
-
} catch (
|
|
272
|
-
$e =
|
|
271
|
+
} catch (Ht) {
|
|
272
|
+
$e = Ht;
|
|
273
273
|
}
|
|
274
274
|
Reflect.construct(X, [], Ve);
|
|
275
275
|
} else {
|
|
276
276
|
try {
|
|
277
277
|
Ve.call();
|
|
278
|
-
} catch (
|
|
279
|
-
$e =
|
|
278
|
+
} catch (Ht) {
|
|
279
|
+
$e = Ht;
|
|
280
280
|
}
|
|
281
281
|
X.call(Ve.prototype);
|
|
282
282
|
}
|
|
283
283
|
} else {
|
|
284
284
|
try {
|
|
285
285
|
throw Error();
|
|
286
|
-
} catch (
|
|
287
|
-
$e =
|
|
286
|
+
} catch (Ht) {
|
|
287
|
+
$e = Ht;
|
|
288
288
|
}
|
|
289
289
|
X();
|
|
290
290
|
}
|
|
291
|
-
} catch (
|
|
292
|
-
if (
|
|
293
|
-
for (var Ye =
|
|
291
|
+
} catch (Ht) {
|
|
292
|
+
if (Ht && $e && typeof Ht.stack == "string") {
|
|
293
|
+
for (var Ye = Ht.stack.split(`
|
|
294
294
|
`), Ft = $e.stack.split(`
|
|
295
295
|
`), Et = Ye.length - 1, ct = Ft.length - 1; Et >= 1 && ct >= 0 && Ye[Et] !== Ft[ct]; )
|
|
296
296
|
ct--;
|
|
@@ -637,11 +637,11 @@ Check the top-level render call using <` + Re + ">.");
|
|
|
637
637
|
Dr(sn, X);
|
|
638
638
|
}
|
|
639
639
|
if (De.call(_e, "key")) {
|
|
640
|
-
var Zn = N(X),
|
|
640
|
+
var Zn = N(X), Ht = Object.keys(_e).filter(function(Us) {
|
|
641
641
|
return Us !== "key";
|
|
642
|
-
}), xi =
|
|
642
|
+
}), xi = Ht.length > 0 ? "{key: someKey, " + Ht.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
643
643
|
if (!No[Zn + xi]) {
|
|
644
|
-
var ri =
|
|
644
|
+
var ri = Ht.length > 0 ? "{" + Ht.join(": ..., ") + ": ...}" : "{}";
|
|
645
645
|
v(`A props object containing a "key" prop is being spread into JSX:
|
|
646
646
|
let props = %s;
|
|
647
647
|
<%s {...props} />
|
|
@@ -1425,7 +1425,7 @@ var fw = /* @__PURE__ */ function() {
|
|
|
1425
1425
|
}, r;
|
|
1426
1426
|
}(), en = "-ms-", Ha = "-moz-", Je = "-webkit-", hg = "comm", pg = "rule", gg = "decl", hw = "@import", tC = "@keyframes", pw = "@layer", gw = Math.abs, Ll = String.fromCharCode, mw = Object.assign;
|
|
1427
1427
|
function _w(r, e) {
|
|
1428
|
-
return
|
|
1428
|
+
return Wt(r, 0) ^ 45 ? (((e << 2 ^ Wt(r, 0)) << 2 ^ Wt(r, 1)) << 2 ^ Wt(r, 2)) << 2 ^ Wt(r, 3) : 0;
|
|
1429
1429
|
}
|
|
1430
1430
|
function nC(r) {
|
|
1431
1431
|
return r.trim();
|
|
@@ -1439,7 +1439,7 @@ function et(r, e, t) {
|
|
|
1439
1439
|
function Kh(r, e) {
|
|
1440
1440
|
return r.indexOf(e);
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function Wt(r, e) {
|
|
1443
1443
|
return r.charCodeAt(e) | 0;
|
|
1444
1444
|
}
|
|
1445
1445
|
function is(r, e, t) {
|
|
@@ -1468,13 +1468,13 @@ function Sw() {
|
|
|
1468
1468
|
return Mt;
|
|
1469
1469
|
}
|
|
1470
1470
|
function bw() {
|
|
1471
|
-
return Mt = Sn > 0 ?
|
|
1471
|
+
return Mt = Sn > 0 ? Wt(go, --Sn) : 0, ro--, Mt === 10 && (ro = 1, kl--), Mt;
|
|
1472
1472
|
}
|
|
1473
1473
|
function wn() {
|
|
1474
|
-
return Mt = Sn < rC ?
|
|
1474
|
+
return Mt = Sn < rC ? Wt(go, Sn++) : 0, ro++, Mt === 10 && (ro = 1, kl++), Mt;
|
|
1475
1475
|
}
|
|
1476
1476
|
function ur() {
|
|
1477
|
-
return
|
|
1477
|
+
return Wt(go, Sn);
|
|
1478
1478
|
}
|
|
1479
1479
|
function Oa() {
|
|
1480
1480
|
return Sn;
|
|
@@ -1569,7 +1569,7 @@ function Na(r, e, t, n, i, o, s, l, a) {
|
|
|
1569
1569
|
for (var f = 0, c = 0, u = s, d = 0, h = 0, p = 0, g = 1, m = 1, _ = 1, v = 0, C = "", b = i, E = o, S = n, T = C; m; )
|
|
1570
1570
|
switch (p = v, v = wn()) {
|
|
1571
1571
|
case 40:
|
|
1572
|
-
if (p != 108 &&
|
|
1572
|
+
if (p != 108 && Wt(T, u - 1) == 58) {
|
|
1573
1573
|
Kh(T += et(Aa(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
|
|
1574
1574
|
break;
|
|
1575
1575
|
}
|
|
@@ -1616,7 +1616,7 @@ function Na(r, e, t, n, i, o, s, l, a) {
|
|
|
1616
1616
|
if (c === 0)
|
|
1617
1617
|
Na(T, e, S, S, b, o, u, l, E);
|
|
1618
1618
|
else
|
|
1619
|
-
switch (d === 99 &&
|
|
1619
|
+
switch (d === 99 && Wt(T, 3) === 110 ? 100 : d) {
|
|
1620
1620
|
case 100:
|
|
1621
1621
|
case 108:
|
|
1622
1622
|
case 109:
|
|
@@ -1866,29 +1866,29 @@ function aC(r, e) {
|
|
|
1866
1866
|
case 5021:
|
|
1867
1867
|
case 4765:
|
|
1868
1868
|
if (ir(r) - 1 - e > 6)
|
|
1869
|
-
switch (
|
|
1869
|
+
switch (Wt(r, e + 1)) {
|
|
1870
1870
|
case 109:
|
|
1871
|
-
if (
|
|
1871
|
+
if (Wt(r, e + 4) !== 45)
|
|
1872
1872
|
break;
|
|
1873
1873
|
case 102:
|
|
1874
|
-
return et(r, /(.+:)(.+)-([^]+)/, "$1" + Je + "$2-$3$1" + Ha + (
|
|
1874
|
+
return et(r, /(.+:)(.+)-([^]+)/, "$1" + Je + "$2-$3$1" + Ha + (Wt(r, e + 3) == 108 ? "$3" : "$2-$3")) + r;
|
|
1875
1875
|
case 115:
|
|
1876
1876
|
return ~Kh(r, "stretch") ? aC(et(r, "stretch", "fill-available"), e) + r : r;
|
|
1877
1877
|
}
|
|
1878
1878
|
break;
|
|
1879
1879
|
case 4949:
|
|
1880
|
-
if (
|
|
1880
|
+
if (Wt(r, e + 1) !== 115)
|
|
1881
1881
|
break;
|
|
1882
1882
|
case 6444:
|
|
1883
|
-
switch (
|
|
1883
|
+
switch (Wt(r, ir(r) - 3 - (~Kh(r, "!important") && 10))) {
|
|
1884
1884
|
case 107:
|
|
1885
1885
|
return et(r, ":", ":" + Je) + r;
|
|
1886
1886
|
case 101:
|
|
1887
|
-
return et(r, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Je + (
|
|
1887
|
+
return et(r, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Je + (Wt(r, 14) === 45 ? "inline-" : "") + "box$3$1" + Je + "$2$3$1" + en + "$2box$3") + r;
|
|
1888
1888
|
}
|
|
1889
1889
|
break;
|
|
1890
1890
|
case 5936:
|
|
1891
|
-
switch (
|
|
1891
|
+
switch (Wt(r, e + 11)) {
|
|
1892
1892
|
case 114:
|
|
1893
1893
|
return Je + r + en + et(r, /[svh]\w+-[tblr]{2}/, "tb") + r;
|
|
1894
1894
|
case 108:
|
|
@@ -4357,9 +4357,9 @@ const Cx = ({ data: r, depth: e }) => /* @__PURE__ */ K.jsx(K.Fragment, { childr
|
|
|
4357
4357
|
t.title + t.path
|
|
4358
4358
|
)) }), DC = ({ data: r, depth: e, hasChild: t }) => {
|
|
4359
4359
|
const n = og(null), { pathname: i } = Dl(), { active: o, isExternalLink: s } = dg(r.path), [l, a] = wt(!1);
|
|
4360
|
-
|
|
4360
|
+
Vt(() => {
|
|
4361
4361
|
l && c();
|
|
4362
|
-
}, [i]),
|
|
4362
|
+
}, [i]), Vt(() => {
|
|
4363
4363
|
const u = Array.from(
|
|
4364
4364
|
document.querySelectorAll(".MuiAppBar-root")
|
|
4365
4365
|
), d = () => {
|
|
@@ -4582,7 +4582,7 @@ const Cx = ({ data: r, depth: e }) => /* @__PURE__ */ K.jsx(K.Fragment, { childr
|
|
|
4582
4582
|
t.title + t.path
|
|
4583
4583
|
)) }), MC = ({ data: r, depth: e, hasChild: t }) => {
|
|
4584
4584
|
const { pathname: n } = Dl(), { active: i, isExternalLink: o } = dg(r.path), [s, l] = wt(i);
|
|
4585
|
-
|
|
4585
|
+
Vt(() => {
|
|
4586
4586
|
i || f();
|
|
4587
4587
|
}, [n]);
|
|
4588
4588
|
const a = () => {
|
|
@@ -4742,9 +4742,9 @@ const kx = ({ data: r, depth: e }) => /* @__PURE__ */ K.jsx(K.Fragment, { childr
|
|
|
4742
4742
|
t.title + t.path
|
|
4743
4743
|
)) }), kC = ({ data: r, depth: e, hasChild: t }) => {
|
|
4744
4744
|
const n = og(null), { pathname: i } = Dl(), { active: o, isExternalLink: s } = dg(r.path), [l, a] = wt(!1);
|
|
4745
|
-
|
|
4745
|
+
Vt(() => {
|
|
4746
4746
|
l && c();
|
|
4747
|
-
}, [i]),
|
|
4747
|
+
}, [i]), Vt(() => {
|
|
4748
4748
|
const u = Array.from(
|
|
4749
4749
|
document.querySelectorAll(".MuiAppBar-root")
|
|
4750
4750
|
), d = () => {
|
|
@@ -4966,7 +4966,7 @@ const kx = ({ data: r, depth: e }) => /* @__PURE__ */ K.jsx(K.Fragment, { childr
|
|
|
4966
4966
|
pathname: i
|
|
4967
4967
|
}) => {
|
|
4968
4968
|
const o = !!Wh({ path: r.path, end: !1 }, i), s = i.includes("http"), [l, a] = wt(o);
|
|
4969
|
-
|
|
4969
|
+
Vt(() => {
|
|
4970
4970
|
o || c();
|
|
4971
4971
|
}, [i]);
|
|
4972
4972
|
const f = () => {
|
|
@@ -62111,7 +62111,7 @@ const X2 = /* @__PURE__ */ ug(j2), Z2 = Xt(Tr)(({ theme: r }) => ({
|
|
|
62111
62111
|
const { setValue: e, getValues: t } = hr(), [n, i] = wt(-1), [o, s] = wt(""), l = Object.fromEntries(
|
|
62112
62112
|
r.map((m, _) => [_, []])
|
|
62113
62113
|
), [a, f] = wt(l);
|
|
62114
|
-
|
|
62114
|
+
Vt(() => () => {
|
|
62115
62115
|
e("config", {});
|
|
62116
62116
|
}, []);
|
|
62117
62117
|
const c = (m, _) => {
|
|
@@ -62248,7 +62248,7 @@ const X2 = /* @__PURE__ */ ug(j2), Z2 = Xt(Tr)(({ theme: r }) => ({
|
|
|
62248
62248
|
handlePaginationChange: o
|
|
62249
62249
|
}) => {
|
|
62250
62250
|
const { setValue: s } = hr(), { apiRef: l, page: a, perPage: f } = UN();
|
|
62251
|
-
|
|
62251
|
+
Vt(() => () => {
|
|
62252
62252
|
s("config", {});
|
|
62253
62253
|
}, []);
|
|
62254
62254
|
const [c, u] = wt(
|
|
@@ -62309,20 +62309,17 @@ const X2 = /* @__PURE__ */ ug(j2), Z2 = Xt(Tr)(({ theme: r }) => ({
|
|
|
62309
62309
|
})), aG = rn(YT)(() => ({
|
|
62310
62310
|
display: "flex",
|
|
62311
62311
|
justifyContent: "space-between"
|
|
62312
|
-
})), l4 = ({ rules: r, setRuleType: e
|
|
62313
|
-
const [
|
|
62314
|
-
|
|
62315
|
-
if (r && r.length > 0 && (
|
|
62312
|
+
})), l4 = ({ rules: r, setRuleType: e }) => {
|
|
62313
|
+
const [t, n] = wt(), { setValue: i, watch: o } = hr();
|
|
62314
|
+
o("name"), Vt(() => {
|
|
62315
|
+
if (r && r.length > 0 && (n(r[0].value), e))
|
|
62316
62316
|
return e(r[0].value);
|
|
62317
|
-
}, []),
|
|
62318
|
-
|
|
62319
|
-
return t(l);
|
|
62320
|
-
}, [l]), Ut(() => () => {
|
|
62321
|
-
o("config", {});
|
|
62317
|
+
}, []), Vt(() => () => {
|
|
62318
|
+
i("config", {});
|
|
62322
62319
|
}, []);
|
|
62323
|
-
const
|
|
62324
|
-
if (
|
|
62325
|
-
return e(
|
|
62320
|
+
const s = (l, a) => {
|
|
62321
|
+
if (a !== null && (n(a), e))
|
|
62322
|
+
return e(a);
|
|
62326
62323
|
};
|
|
62327
62324
|
return /* @__PURE__ */ K.jsxs(tt, { gap: 2, children: [
|
|
62328
62325
|
/* @__PURE__ */ K.jsx(
|
|
@@ -62341,24 +62338,24 @@ const X2 = /* @__PURE__ */ ug(j2), Z2 = Xt(Tr)(({ theme: r }) => ({
|
|
|
62341
62338
|
aG,
|
|
62342
62339
|
{
|
|
62343
62340
|
color: "primary",
|
|
62344
|
-
value:
|
|
62341
|
+
value: t,
|
|
62345
62342
|
size: "small",
|
|
62346
62343
|
exclusive: !0,
|
|
62347
|
-
onChange:
|
|
62348
|
-
children: r.map((
|
|
62344
|
+
onChange: s,
|
|
62345
|
+
children: r.map((l, a) => /* @__PURE__ */ K.jsx(
|
|
62349
62346
|
sG,
|
|
62350
62347
|
{
|
|
62351
|
-
value:
|
|
62348
|
+
value: l.value,
|
|
62352
62349
|
size: "small",
|
|
62353
62350
|
color: "primary",
|
|
62354
|
-
children: /* @__PURE__ */ K.jsx(mn, { variant: "body2", children:
|
|
62351
|
+
children: /* @__PURE__ */ K.jsx(mn, { variant: "body2", children: l.toggleTitle })
|
|
62355
62352
|
},
|
|
62356
|
-
|
|
62353
|
+
a
|
|
62357
62354
|
))
|
|
62358
62355
|
}
|
|
62359
62356
|
),
|
|
62360
62357
|
r && r.map(
|
|
62361
|
-
(
|
|
62358
|
+
(l, a) => l.value === t ? /* @__PURE__ */ K.jsx("div", { children: l.component }, a) : null
|
|
62362
62359
|
)
|
|
62363
62360
|
] });
|
|
62364
62361
|
};
|
|
@@ -77179,14 +77176,14 @@ Xa.exports;
|
|
|
77179
77176
|
function Zn(z) {
|
|
77180
77177
|
return Mi(this, z).get(z);
|
|
77181
77178
|
}
|
|
77182
|
-
function
|
|
77179
|
+
function Ht(z) {
|
|
77183
77180
|
return Mi(this, z).has(z);
|
|
77184
77181
|
}
|
|
77185
77182
|
function xi(z, ne) {
|
|
77186
77183
|
var he = Mi(this, z), Ae = he.size;
|
|
77187
77184
|
return he.set(z, ne), this.size += he.size == Ae ? 0 : 1, this;
|
|
77188
77185
|
}
|
|
77189
|
-
ct.prototype.clear = sn, ct.prototype.delete = vr, ct.prototype.get = Zn, ct.prototype.has =
|
|
77186
|
+
ct.prototype.clear = sn, ct.prototype.delete = vr, ct.prototype.get = Zn, ct.prototype.has = Ht, ct.prototype.set = xi;
|
|
77190
77187
|
function ri(z) {
|
|
77191
77188
|
var ne = -1, he = z == null ? 0 : z.length;
|
|
77192
77189
|
for (this.__data__ = new ct(); ++ne < he; )
|
|
@@ -77228,13 +77225,13 @@ Xa.exports;
|
|
|
77228
77225
|
}
|
|
77229
77226
|
Er.prototype.clear = mm, Er.prototype.delete = _m, Er.prototype.get = vm, Er.prototype.has = Em, Er.prototype.set = Sm;
|
|
77230
77227
|
function bm(z, ne) {
|
|
77231
|
-
var he = ii(z), Ae = !he && Ws(z), gt = !he && !Ae && zs(z), He = !he && !Ae && !gt && xm(z), Rt = he || Ae || gt || He, $t = Rt ? le(z.length, String) : [],
|
|
77228
|
+
var he = ii(z), Ae = !he && Ws(z), gt = !he && !Ae && zs(z), He = !he && !Ae && !gt && xm(z), Rt = he || Ae || gt || He, $t = Rt ? le(z.length, String) : [], qt = $t.length;
|
|
77232
77229
|
for (var Ct in z)
|
|
77233
77230
|
J.call(z, Ct) && !(Rt && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
77234
77231
|
(Ct == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
77235
77232
|
gt && (Ct == "offset" || Ct == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
77236
77233
|
He && (Ct == "buffer" || Ct == "byteLength" || Ct == "byteOffset") || // Skip index properties.
|
|
77237
|
-
Hs(Ct,
|
|
77234
|
+
Hs(Ct, qt))) && $t.push(Ct);
|
|
77238
77235
|
return $t;
|
|
77239
77236
|
}
|
|
77240
77237
|
function xo(z, ne) {
|
|
@@ -77257,16 +77254,16 @@ Xa.exports;
|
|
|
77257
77254
|
return z === ne ? !0 : z == null || ne == null || !Do(z) && !Do(ne) ? z !== z && ne !== ne : Tm(z, ne, he, Ae, vc, gt);
|
|
77258
77255
|
}
|
|
77259
77256
|
function Tm(z, ne, he, Ae, gt, He) {
|
|
77260
|
-
var Rt = ii(z), $t = ii(ne),
|
|
77261
|
-
|
|
77262
|
-
var yn =
|
|
77257
|
+
var Rt = ii(z), $t = ii(ne), qt = Rt ? a : Yn(z), Ct = $t ? a : Yn(ne);
|
|
77258
|
+
qt = qt == l ? v : qt, Ct = Ct == l ? v : Ct;
|
|
77259
|
+
var yn = qt == v, Wn = Ct == v, Jt = qt == Ct;
|
|
77263
77260
|
if (Jt && zs(z)) {
|
|
77264
77261
|
if (!zs(ne))
|
|
77265
77262
|
return !1;
|
|
77266
77263
|
Rt = !0, yn = !1;
|
|
77267
77264
|
}
|
|
77268
77265
|
if (Jt && !yn)
|
|
77269
|
-
return He || (He = new Er()), Rt || xm(z) ? Ec(z, ne, he, Ae, gt, He) : Sc(z, ne,
|
|
77266
|
+
return He || (He = new Er()), Rt || xm(z) ? Ec(z, ne, he, Ae, gt, He) : Sc(z, ne, qt, he, Ae, gt, He);
|
|
77270
77267
|
if (!(he & i)) {
|
|
77271
77268
|
var Dn = yn && J.call(z, "__wrapped__"), Mn = Wn && J.call(ne, "__wrapped__");
|
|
77272
77269
|
if (Dn || Mn) {
|
|
@@ -77294,8 +77291,8 @@ Xa.exports;
|
|
|
77294
77291
|
return ne;
|
|
77295
77292
|
}
|
|
77296
77293
|
function Ec(z, ne, he, Ae, gt, He) {
|
|
77297
|
-
var Rt = he & i, $t = z.length,
|
|
77298
|
-
if ($t !=
|
|
77294
|
+
var Rt = he & i, $t = z.length, qt = ne.length;
|
|
77295
|
+
if ($t != qt && !(Rt && qt > $t))
|
|
77299
77296
|
return !1;
|
|
77300
77297
|
var Ct = He.get(z);
|
|
77301
77298
|
if (Ct && He.get(ne))
|
|
@@ -77346,8 +77343,8 @@ Xa.exports;
|
|
|
77346
77343
|
case g:
|
|
77347
77344
|
var $t = ue;
|
|
77348
77345
|
case S:
|
|
77349
|
-
var
|
|
77350
|
-
if ($t || ($t = Ie), z.size != ne.size && !
|
|
77346
|
+
var qt = Ae & i;
|
|
77347
|
+
if ($t || ($t = Ie), z.size != ne.size && !qt)
|
|
77351
77348
|
return !1;
|
|
77352
77349
|
var Ct = Rt.get(z);
|
|
77353
77350
|
if (Ct)
|
|
@@ -77362,10 +77359,10 @@ Xa.exports;
|
|
|
77362
77359
|
return !1;
|
|
77363
77360
|
}
|
|
77364
77361
|
function bc(z, ne, he, Ae, gt, He) {
|
|
77365
|
-
var Rt = he & i, $t = Gs(z),
|
|
77366
|
-
if (
|
|
77362
|
+
var Rt = he & i, $t = Gs(z), qt = $t.length, Ct = Gs(ne), yn = Ct.length;
|
|
77363
|
+
if (qt != yn && !Rt)
|
|
77367
77364
|
return !1;
|
|
77368
|
-
for (var Wn =
|
|
77365
|
+
for (var Wn = qt; Wn--; ) {
|
|
77369
77366
|
var Jt = $t[Wn];
|
|
77370
77367
|
if (!(Rt ? Jt in ne : J.call(ne, Jt)))
|
|
77371
77368
|
return !1;
|
|
@@ -77375,7 +77372,7 @@ Xa.exports;
|
|
|
77375
77372
|
return Dn == ne;
|
|
77376
77373
|
var Mn = !0;
|
|
77377
77374
|
He.set(z, ne), He.set(ne, z);
|
|
77378
|
-
for (var Lr = Rt; ++Wn <
|
|
77375
|
+
for (var Lr = Rt; ++Wn < qt; ) {
|
|
77379
77376
|
Jt = $t[Wn];
|
|
77380
77377
|
var Sr = z[Jt], oi = ne[Jt];
|
|
77381
77378
|
if (Ae)
|
|
@@ -79767,7 +79764,7 @@ const CR = Xt(tt)(({ theme: r }) => ({
|
|
|
79767
79764
|
loadingPreview: f
|
|
79768
79765
|
}) => {
|
|
79769
79766
|
const [c, u] = wt(s || ""), [d, h] = qN(), [p, g] = wt(o || "simple"), { watch: m, setValue: _ } = hr(), v = QT(), C = m("operator"), b = m("groups");
|
|
79770
|
-
|
|
79767
|
+
Vt(() => () => {
|
|
79771
79768
|
_("config", {});
|
|
79772
79769
|
}, []);
|
|
79773
79770
|
const E = (y, w) => {
|
|
@@ -80035,10 +80032,10 @@ class Bg {
|
|
|
80035
80032
|
}
|
|
80036
80033
|
}
|
|
80037
80034
|
const ra = /* @__PURE__ */ new WeakMap(), Pb = /* @__PURE__ */ new WeakMap();
|
|
80038
|
-
var
|
|
80035
|
+
var Ut;
|
|
80039
80036
|
(function(r) {
|
|
80040
80037
|
r[r.ExcludeBuffers = 1] = "ExcludeBuffers", r[r.IncludeAnonymous = 2] = "IncludeAnonymous", r[r.IgnoreMounts = 4] = "IgnoreMounts", r[r.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
80041
|
-
})(
|
|
80038
|
+
})(Ut || (Ut = {}));
|
|
80042
80039
|
class Lt {
|
|
80043
80040
|
/**
|
|
80044
80041
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
@@ -80132,8 +80129,8 @@ class Lt {
|
|
|
80132
80129
|
not have its children iterated over (or `leave` called).
|
|
80133
80130
|
*/
|
|
80134
80131
|
iterate(e) {
|
|
80135
|
-
let { enter: t, leave: n, from: i = 0, to: o = this.length } = e, s = e.mode || 0, l = (s &
|
|
80136
|
-
for (let a = this.cursor(s |
|
|
80132
|
+
let { enter: t, leave: n, from: i = 0, to: o = this.length } = e, s = e.mode || 0, l = (s & Ut.IncludeAnonymous) > 0;
|
|
80133
|
+
for (let a = this.cursor(s | Ut.IncludeAnonymous); ; ) {
|
|
80137
80134
|
let f = !1;
|
|
80138
80135
|
if (a.from <= o && a.to >= i && (!l && a.type.isAnonymous || t(a) !== !1)) {
|
|
80139
80136
|
if (a.firstChild())
|
|
@@ -80288,7 +80285,7 @@ function us(r, e, t, n) {
|
|
|
80288
80285
|
return r;
|
|
80289
80286
|
r = s;
|
|
80290
80287
|
}
|
|
80291
|
-
let o = n ? 0 :
|
|
80288
|
+
let o = n ? 0 : Ut.IgnoreOverlays;
|
|
80292
80289
|
if (n)
|
|
80293
80290
|
for (let s = r, l = s.parent; l; s = l, l = s.parent)
|
|
80294
80291
|
s instanceof Fn && s.index < 0 && ((i = l.enter(e, t, o)) === null || i === void 0 ? void 0 : i.from) != s.from && (r = l);
|
|
@@ -80355,21 +80352,21 @@ class Fn extends NR {
|
|
|
80355
80352
|
let c = l[e], u = a[e] + s.from;
|
|
80356
80353
|
if (AR(i, n, u, u + c.length)) {
|
|
80357
80354
|
if (c instanceof Kr) {
|
|
80358
|
-
if (o &
|
|
80355
|
+
if (o & Ut.ExcludeBuffers)
|
|
80359
80356
|
continue;
|
|
80360
80357
|
let d = c.findChild(0, c.buffer.length, t, n - u, i);
|
|
80361
80358
|
if (d > -1)
|
|
80362
80359
|
return new Ur(new zH(s, c, e, u), null, d);
|
|
80363
|
-
} else if (o &
|
|
80360
|
+
} else if (o & Ut.IncludeAnonymous || !c.type.isAnonymous || $g(c)) {
|
|
80364
80361
|
let d;
|
|
80365
|
-
if (!(o &
|
|
80362
|
+
if (!(o & Ut.IgnoreMounts) && (d = Za.get(c)) && !d.overlay)
|
|
80366
80363
|
return new Fn(d.tree, u, e, s);
|
|
80367
80364
|
let h = new Fn(c, u, e, s);
|
|
80368
|
-
return o &
|
|
80365
|
+
return o & Ut.IncludeAnonymous || !h.type.isAnonymous ? h : h.nextChild(t < 0 ? c.children.length - 1 : 0, t, n, i);
|
|
80369
80366
|
}
|
|
80370
80367
|
}
|
|
80371
80368
|
}
|
|
80372
|
-
if (o &
|
|
80369
|
+
if (o & Ut.IncludeAnonymous || !s.type.isAnonymous || (s.index >= 0 ? e = s.index + t : e = t < 0 ? -1 : s._parent._tree.children.length, s = s._parent, !s))
|
|
80373
80370
|
return null;
|
|
80374
80371
|
}
|
|
80375
80372
|
}
|
|
@@ -80411,7 +80408,7 @@ class Fn extends NR {
|
|
|
80411
80408
|
}
|
|
80412
80409
|
enter(e, t, n = 0) {
|
|
80413
80410
|
let i;
|
|
80414
|
-
if (!(n &
|
|
80411
|
+
if (!(n & Ut.IgnoreOverlays) && (i = Za.get(this._tree)) && i.overlay) {
|
|
80415
80412
|
let o = e - this.from;
|
|
80416
80413
|
for (let { from: s, to: l } of i.overlay)
|
|
80417
80414
|
if ((t > 0 ? s <= o : s < o) && (t < 0 ? l >= o : l > o))
|
|
@@ -80542,7 +80539,7 @@ class Ur extends NR {
|
|
|
80542
80539
|
);
|
|
80543
80540
|
}
|
|
80544
80541
|
enter(e, t, n = 0) {
|
|
80545
|
-
if (n &
|
|
80542
|
+
if (n & Ut.ExcludeBuffers)
|
|
80546
80543
|
return null;
|
|
80547
80544
|
let { buffer: i } = this.context, o = i.findChild(this.index + 4, i.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
80548
80545
|
return o < 0 ? null : new Ur(this.context, this, o);
|
|
@@ -80728,17 +80725,17 @@ class ap {
|
|
|
80728
80725
|
set to false.
|
|
80729
80726
|
*/
|
|
80730
80727
|
enter(e, t, n = this.mode) {
|
|
80731
|
-
return this.buffer ? n &
|
|
80728
|
+
return this.buffer ? n & Ut.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
|
|
80732
80729
|
}
|
|
80733
80730
|
/**
|
|
80734
80731
|
Move to the node's parent node, if this isn't the top node.
|
|
80735
80732
|
*/
|
|
80736
80733
|
parent() {
|
|
80737
80734
|
if (!this.buffer)
|
|
80738
|
-
return this.yieldNode(this.mode &
|
|
80735
|
+
return this.yieldNode(this.mode & Ut.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
80739
80736
|
if (this.stack.length)
|
|
80740
80737
|
return this.yieldBuf(this.stack.pop());
|
|
80741
|
-
let e = this.mode &
|
|
80738
|
+
let e = this.mode & Ut.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
80742
80739
|
return this.buffer = null, this.yieldNode(e);
|
|
80743
80740
|
}
|
|
80744
80741
|
/**
|
|
@@ -80795,7 +80792,7 @@ class ap {
|
|
|
80795
80792
|
if (t > -1)
|
|
80796
80793
|
for (let o = t + e, s = e < 0 ? -1 : n._tree.children.length; o != s; o += e) {
|
|
80797
80794
|
let l = n._tree.children[o];
|
|
80798
|
-
if (this.mode &
|
|
80795
|
+
if (this.mode & Ut.IncludeAnonymous || l instanceof Kr || !l.type.isAnonymous || $g(l))
|
|
80799
80796
|
return !1;
|
|
80800
80797
|
}
|
|
80801
80798
|
return !0;
|
|
@@ -87210,7 +87207,7 @@ class Rn extends UO {
|
|
|
87210
87207
|
}
|
|
87211
87208
|
replace(e, t, n) {
|
|
87212
87209
|
let i = n[0];
|
|
87213
|
-
return n.length == 1 && (i instanceof Rn || i instanceof
|
|
87210
|
+
return n.length == 1 && (i instanceof Rn || i instanceof Yt && i.flags & 4) && Math.abs(this.length - i.length) < 10 ? (i instanceof Yt ? i = new Rn(i.length, this.height) : i.height = this.height, this.outdated || (i.outdated = !1), i) : un.of(n);
|
|
87214
87211
|
}
|
|
87215
87212
|
updateHeight(e, t = 0, n = !1, i) {
|
|
87216
87213
|
return i && i.from <= t && i.more ? this.setHeight(e, i.heights[i.index++]) : (n || this.outdated) && this.setHeight(e, Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight), this.outdated = !1, this;
|
|
@@ -87219,7 +87216,7 @@ class Rn extends UO {
|
|
|
87219
87216
|
return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
|
|
87220
87217
|
}
|
|
87221
87218
|
}
|
|
87222
|
-
class
|
|
87219
|
+
class Yt extends un {
|
|
87223
87220
|
constructor(e) {
|
|
87224
87221
|
super(e, 0);
|
|
87225
87222
|
}
|
|
@@ -87269,25 +87266,25 @@ class Wt extends un {
|
|
|
87269
87266
|
let i = this.length - t;
|
|
87270
87267
|
if (i > 0) {
|
|
87271
87268
|
let o = n[n.length - 1];
|
|
87272
|
-
o instanceof
|
|
87269
|
+
o instanceof Yt ? n[n.length - 1] = new Yt(o.length + i) : n.push(null, new Yt(i - 1));
|
|
87273
87270
|
}
|
|
87274
87271
|
if (e > 0) {
|
|
87275
87272
|
let o = n[0];
|
|
87276
|
-
o instanceof
|
|
87273
|
+
o instanceof Yt ? n[0] = new Yt(e + o.length) : n.unshift(new Yt(e - 1), null);
|
|
87277
87274
|
}
|
|
87278
87275
|
return un.of(n);
|
|
87279
87276
|
}
|
|
87280
87277
|
decomposeLeft(e, t) {
|
|
87281
|
-
t.push(new
|
|
87278
|
+
t.push(new Yt(e - 1), null);
|
|
87282
87279
|
}
|
|
87283
87280
|
decomposeRight(e, t) {
|
|
87284
|
-
t.push(null, new
|
|
87281
|
+
t.push(null, new Yt(this.length - e - 1));
|
|
87285
87282
|
}
|
|
87286
87283
|
updateHeight(e, t = 0, n = !1, i) {
|
|
87287
87284
|
let o = t + this.length;
|
|
87288
87285
|
if (i && i.from <= t + this.length && i.more) {
|
|
87289
87286
|
let s = [], l = Math.max(t, i.from), a = -1;
|
|
87290
|
-
for (i.from > t && s.push(new
|
|
87287
|
+
for (i.from > t && s.push(new Yt(i.from - t - 1).updateHeight(e, t)); l <= o && i.more; ) {
|
|
87291
87288
|
let c = e.doc.lineAt(l).length;
|
|
87292
87289
|
s.length && s.push(null);
|
|
87293
87290
|
let u = i.heights[i.index++];
|
|
@@ -87295,7 +87292,7 @@ class Wt extends un {
|
|
|
87295
87292
|
let d = new Rn(c, u);
|
|
87296
87293
|
d.outdated = !1, s.push(d), l += c + 1;
|
|
87297
87294
|
}
|
|
87298
|
-
l <= o && s.push(null, new
|
|
87295
|
+
l <= o && s.push(null, new Yt(o - l).updateHeight(e, l));
|
|
87299
87296
|
let f = un.of(s);
|
|
87300
87297
|
return (a < 0 || Math.abs(f.height - this.height) >= Pa || Math.abs(a - this.heightMetrics(e, t).perLine) >= Pa) && (e.heightChanged = !0), f;
|
|
87301
87298
|
} else
|
|
@@ -87375,7 +87372,7 @@ class SY extends un {
|
|
|
87375
87372
|
}
|
|
87376
87373
|
function by(r, e) {
|
|
87377
87374
|
let t, n;
|
|
87378
|
-
r[e] == null && (t = r[e - 1]) instanceof
|
|
87375
|
+
r[e] == null && (t = r[e - 1]) instanceof Yt && (n = r[e + 1]) instanceof Yt && r.splice(e - 1, 3, new Yt(t.length + 1 + n.length));
|
|
87379
87376
|
}
|
|
87380
87377
|
const bY = 5;
|
|
87381
87378
|
class jg {
|
|
@@ -87409,7 +87406,7 @@ class jg {
|
|
|
87409
87406
|
this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new Rn(this.pos - e, -1)), this.writtenTo = this.pos;
|
|
87410
87407
|
}
|
|
87411
87408
|
blankContent(e, t) {
|
|
87412
|
-
let n = new
|
|
87409
|
+
let n = new Yt(t - e);
|
|
87413
87410
|
return this.oracle.doc.lineAt(e).to == t && (n.flags |= 4), n;
|
|
87414
87411
|
}
|
|
87415
87412
|
ensureLine() {
|
|
@@ -91555,7 +91552,7 @@ class zn {
|
|
|
91555
91552
|
*/
|
|
91556
91553
|
constructor(e, t, n = [], i = "") {
|
|
91557
91554
|
this.data = e, this.name = i, ze.prototype.hasOwnProperty("tree") || Object.defineProperty(ze.prototype, "tree", { get() {
|
|
91558
|
-
return
|
|
91555
|
+
return Gt(this);
|
|
91559
91556
|
} }), this.parser = t, this.extension = [
|
|
91560
91557
|
Jr.of(this),
|
|
91561
91558
|
ze.languageData.of((o, s, l) => {
|
|
@@ -91617,7 +91614,7 @@ class zn {
|
|
|
91617
91614
|
f instanceof Lt && i(f, o.positions[a] + s);
|
|
91618
91615
|
}
|
|
91619
91616
|
};
|
|
91620
|
-
return i(
|
|
91617
|
+
return i(Gt(e), 0), n;
|
|
91621
91618
|
}
|
|
91622
91619
|
/**
|
|
91623
91620
|
Indicates whether this language allows nested languages. The
|
|
@@ -91629,9 +91626,9 @@ class zn {
|
|
|
91629
91626
|
}
|
|
91630
91627
|
zn.setState = /* @__PURE__ */ qe.define();
|
|
91631
91628
|
function Yy(r, e, t) {
|
|
91632
|
-
let n = r.facet(Jr), i =
|
|
91629
|
+
let n = r.facet(Jr), i = Gt(r).topNode;
|
|
91633
91630
|
if (!n || n.allowsNesting)
|
|
91634
|
-
for (let o = i; o; o = o.enter(e, t,
|
|
91631
|
+
for (let o = i; o; o = o.enter(e, t, Ut.ExcludeBuffers))
|
|
91635
91632
|
o.type.isTop && (i = o);
|
|
91636
91633
|
return i;
|
|
91637
91634
|
}
|
|
@@ -91659,7 +91656,7 @@ class ll extends zn {
|
|
|
91659
91656
|
return this.parser.hasWrappers();
|
|
91660
91657
|
}
|
|
91661
91658
|
}
|
|
91662
|
-
function
|
|
91659
|
+
function Gt(r) {
|
|
91663
91660
|
let e = r.field(zn.state, !1);
|
|
91664
91661
|
return e ? e.tree : Lt.empty;
|
|
91665
91662
|
}
|
|
@@ -91981,7 +91978,7 @@ function em(r, e) {
|
|
|
91981
91978
|
if (i !== void 0)
|
|
91982
91979
|
return i;
|
|
91983
91980
|
}
|
|
91984
|
-
let t =
|
|
91981
|
+
let t = Gt(r.state);
|
|
91985
91982
|
return t.length >= e ? oV(r, t, e) : null;
|
|
91986
91983
|
}
|
|
91987
91984
|
class uc {
|
|
@@ -92204,7 +92201,7 @@ function pV() {
|
|
|
92204
92201
|
}
|
|
92205
92202
|
const gV = /* @__PURE__ */ we.define(), cA = /* @__PURE__ */ new We();
|
|
92206
92203
|
function mV(r, e, t) {
|
|
92207
|
-
let n =
|
|
92204
|
+
let n = Gt(r);
|
|
92208
92205
|
if (n.length < t)
|
|
92209
92206
|
return null;
|
|
92210
92207
|
let i = n.resolveStack(t, 1), o = null;
|
|
@@ -92415,7 +92412,7 @@ function AV(r = {}) {
|
|
|
92415
92412
|
this.from = s.viewport.from, this.markers = this.buildMarkers(s);
|
|
92416
92413
|
}
|
|
92417
92414
|
update(s) {
|
|
92418
|
-
(s.docChanged || s.viewportChanged || s.startState.facet(Jr) != s.state.facet(Jr) || s.startState.field(Ri, !1) != s.state.field(Ri, !1) ||
|
|
92415
|
+
(s.docChanged || s.viewportChanged || s.startState.facet(Jr) != s.state.facet(Jr) || s.startState.field(Ri, !1) != s.state.field(Ri, !1) || Gt(s.startState) != Gt(s.state) || e.foldingChanged(s)) && (this.markers = this.buildMarkers(s.view));
|
|
92419
92416
|
}
|
|
92420
92417
|
buildMarkers(s) {
|
|
92421
92418
|
let l = new Qr();
|
|
@@ -92515,10 +92512,10 @@ function vA(r, e) {
|
|
|
92515
92512
|
}
|
|
92516
92513
|
class wV {
|
|
92517
92514
|
constructor(e) {
|
|
92518
|
-
this.markCache = /* @__PURE__ */ Object.create(null), this.tree =
|
|
92515
|
+
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Gt(e.state), this.decorations = this.buildDeco(e, Lh(e.state)), this.decoratedTo = e.viewport.to;
|
|
92519
92516
|
}
|
|
92520
92517
|
update(e) {
|
|
92521
|
-
let t =
|
|
92518
|
+
let t = Gt(e.state), n = Lh(e.state), i = n != Lh(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
|
|
92522
92519
|
t.length < o.to && !i && t.type == this.tree.type && s >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = s) : (t != this.tree || e.viewportChanged || i) && (this.tree = t, this.decorations = this.buildDeco(e.view, n), this.decoratedTo = o.to);
|
|
92523
92520
|
}
|
|
92524
92521
|
buildDeco(e, t) {
|
|
@@ -92670,7 +92667,7 @@ function Vp(r) {
|
|
|
92670
92667
|
return e ? e(r.node) : r;
|
|
92671
92668
|
}
|
|
92672
92669
|
function lr(r, e, t, n = {}) {
|
|
92673
|
-
let i = n.maxScanDistance || EA, o = n.brackets || SA, s =
|
|
92670
|
+
let i = n.maxScanDistance || EA, o = n.brackets || SA, s = Gt(r), l = s.resolveInner(e, t);
|
|
92674
92671
|
for (let a = l; a; a = a.parent) {
|
|
92675
92672
|
let f = Wp(a.type, t, o);
|
|
92676
92673
|
if (f && a.from < a.to) {
|
|
@@ -93429,7 +93426,7 @@ function QV(r, e, t, n) {
|
|
|
93429
93426
|
const Tn = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
93430
93427
|
let Ph = null;
|
|
93431
93428
|
function Jy(r, e, t) {
|
|
93432
|
-
let n = r.cursor(
|
|
93429
|
+
let n = r.cursor(Ut.IncludeAnonymous);
|
|
93433
93430
|
for (n.moveTo(e); ; )
|
|
93434
93431
|
if (!(t < 0 ? n.childBefore(e) : n.childAfter(e)))
|
|
93435
93432
|
for (; ; ) {
|
|
@@ -94055,7 +94052,7 @@ class yA {
|
|
|
94055
94052
|
token before `this.pos`.
|
|
94056
94053
|
*/
|
|
94057
94054
|
tokenBefore(e) {
|
|
94058
|
-
let t =
|
|
94055
|
+
let t = Gt(this.state).resolveInner(this.pos, -1);
|
|
94059
94056
|
for (; t && e.indexOf(t.name) < 0; )
|
|
94060
94057
|
t = t.parent;
|
|
94061
94058
|
return t ? {
|
|
@@ -94112,7 +94109,7 @@ function TA(r) {
|
|
|
94112
94109
|
}
|
|
94113
94110
|
function nz(r, e) {
|
|
94114
94111
|
return (t) => {
|
|
94115
|
-
for (let n =
|
|
94112
|
+
for (let n = Gt(t.state).resolveInner(t.pos, -1); n; n = n.parent) {
|
|
94116
94113
|
if (r.indexOf(n.name) > -1)
|
|
94117
94114
|
return null;
|
|
94118
94115
|
if (n.type.isTop)
|
|
@@ -95145,11 +95142,11 @@ function Bz(r, e, t, n) {
|
|
|
95145
95142
|
});
|
|
95146
95143
|
}
|
|
95147
95144
|
function lT(r, e) {
|
|
95148
|
-
let t =
|
|
95145
|
+
let t = Gt(r).resolveInner(e + 1);
|
|
95149
95146
|
return t.parent && t.from == e;
|
|
95150
95147
|
}
|
|
95151
95148
|
function Fz(r, e, t, n) {
|
|
95152
|
-
let i =
|
|
95149
|
+
let i = Gt(r).resolveInner(e, -1), o = n.reduce((s, l) => Math.max(s, l.length), 0);
|
|
95153
95150
|
for (let s = 0; s < 5; s++) {
|
|
95154
95151
|
let l = r.sliceDoc(i.from, Math.min(i.to, i.from + t.length + o)), a = l.indexOf(t);
|
|
95155
95152
|
if (!a || a > -1 && n.indexOf(l.slice(0, a)) > -1) {
|
|
@@ -95466,7 +95463,7 @@ function mT(r, e) {
|
|
|
95466
95463
|
}
|
|
95467
95464
|
}
|
|
95468
95465
|
function p3(r, e) {
|
|
95469
|
-
let t =
|
|
95466
|
+
let t = Gt(r).resolveInner(e, -1), n = m3(r.doc, t);
|
|
95470
95467
|
return t.name == "Identifier" || t.name == "QuotedIdentifier" || t.name == "Keyword" ? {
|
|
95471
95468
|
from: t.from,
|
|
95472
95469
|
quoted: t.name == "QuotedIdentifier" ? r.doc.sliceString(t.from, t.from + 1) : null,
|
|
@@ -96007,7 +96004,7 @@ function Q3(r, e, t) {
|
|
|
96007
96004
|
return n && (n > 2 || /[^\s,.;:]/.test(r.sliceDoc(e.from, e.to))) || e.firstChild;
|
|
96008
96005
|
}
|
|
96009
96006
|
function gc(r, e, t) {
|
|
96010
|
-
let n =
|
|
96007
|
+
let n = Gt(r).resolveInner(e.head), i = t ? We.closedBy : We.openedBy;
|
|
96011
96008
|
for (let a = e.head; ; ) {
|
|
96012
96009
|
let f = t ? n.childAfter(a) : n.childBefore(a);
|
|
96013
96010
|
if (!f)
|
|
@@ -96105,7 +96102,7 @@ const ST = (r) => sN(r, !1), bT = (r) => sN(r, !0), uK = (r) => qn(r, (e) => ti(
|
|
|
96105
96102
|
}, vK = ({ state: r, dispatch: e }) => {
|
|
96106
96103
|
let t = Oo(r.selection, (n) => {
|
|
96107
96104
|
var i;
|
|
96108
|
-
let o =
|
|
96105
|
+
let o = Gt(r).resolveStack(n.from, 1);
|
|
96109
96106
|
for (let s = o; s; s = s.next) {
|
|
96110
96107
|
let { node: l } = s;
|
|
96111
96108
|
if ((l.from < n.from && l.to >= n.to || l.to > n.to && l.from <= n.from) && (!((i = l.parent) === null || i === void 0) && i.parent))
|
|
@@ -96263,7 +96260,7 @@ const NK = ({ state: r, dispatch: e }) => fN(r, e, !1), wK = ({ state: r, dispat
|
|
|
96263
96260
|
function xK(r, e) {
|
|
96264
96261
|
if (/\(\)|\[\]|\{\}/.test(r.sliceDoc(e - 1, e + 1)))
|
|
96265
96262
|
return { from: e, to: e };
|
|
96266
|
-
let t =
|
|
96263
|
+
let t = Gt(r).resolveInner(e), n = t.childBefore(e), i = t.childAfter(e), o;
|
|
96267
96264
|
return n && i && n.to <= e && i.from >= e && (o = n.type.prop(We.closedBy)) && o.indexOf(i.name) > -1 && r.doc.lineAt(n.to).from == r.doc.lineAt(i.from).from && !/\S/.test(r.sliceDoc(n.to, i.from)) ? { from: n.to, to: i.from } : null;
|
|
96268
96265
|
}
|
|
96269
96266
|
const DK = /* @__PURE__ */ hN(!1), MK = /* @__PURE__ */ hN(!0);
|
|
@@ -97851,7 +97848,7 @@ function H5(r) {
|
|
|
97851
97848
|
indentWithTab: C,
|
|
97852
97849
|
basicSetup: b
|
|
97853
97850
|
}), D = [R, N, ...x];
|
|
97854
|
-
return s && typeof s == "function" && D.push(Oe.updateListener.of(s)), D = D.concat(l),
|
|
97851
|
+
return s && typeof s == "function" && D.push(Oe.updateListener.of(s)), D = D.concat(l), Vt(() => {
|
|
97855
97852
|
if (T && !O) {
|
|
97856
97853
|
var M = {
|
|
97857
97854
|
doc: e,
|
|
@@ -97870,15 +97867,15 @@ function H5(r) {
|
|
|
97870
97867
|
return () => {
|
|
97871
97868
|
w && (A(void 0), I(void 0));
|
|
97872
97869
|
};
|
|
97873
|
-
}, [T, O]),
|
|
97870
|
+
}, [T, O]), Vt(() => y(r.container), [r.container]), Vt(() => () => {
|
|
97874
97871
|
w && (w.destroy(), I(void 0));
|
|
97875
|
-
}, [w]),
|
|
97872
|
+
}, [w]), Vt(() => {
|
|
97876
97873
|
a && w && w.focus();
|
|
97877
|
-
}, [a, w]),
|
|
97874
|
+
}, [a, w]), Vt(() => {
|
|
97878
97875
|
w && w.dispatch({
|
|
97879
97876
|
effects: qe.reconfigure.of(D)
|
|
97880
97877
|
});
|
|
97881
|
-
}, [f, l, c, u, d, h, p, g, m, _, v, C, b, n, s]),
|
|
97878
|
+
}, [f, l, c, u, d, h, p, g, m, _, v, C, b, n, s]), Vt(() => {
|
|
97882
97879
|
if (e !== void 0) {
|
|
97883
97880
|
var M = w ? w.state.doc.toString() : "";
|
|
97884
97881
|
w && e !== M && w.dispatch({
|