@zydon/common-csr 1.1.8 → 1.1.9
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 +1 -0
- package/dist/components/Filters/ListingRules/props.d.ts.map +1 -1
- package/dist/index.js +122 -119
- 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 Ut, 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 (qt) {
|
|
272
|
+
$e = qt;
|
|
273
273
|
}
|
|
274
274
|
Reflect.construct(X, [], Ve);
|
|
275
275
|
} else {
|
|
276
276
|
try {
|
|
277
277
|
Ve.call();
|
|
278
|
-
} catch (
|
|
279
|
-
$e =
|
|
278
|
+
} catch (qt) {
|
|
279
|
+
$e = qt;
|
|
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 (qt) {
|
|
287
|
+
$e = qt;
|
|
288
288
|
}
|
|
289
289
|
X();
|
|
290
290
|
}
|
|
291
|
-
} catch (
|
|
292
|
-
if (
|
|
293
|
-
for (var Ye =
|
|
291
|
+
} catch (qt) {
|
|
292
|
+
if (qt && $e && typeof qt.stack == "string") {
|
|
293
|
+
for (var Ye = qt.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), qt = Object.keys(_e).filter(function(Us) {
|
|
641
641
|
return Us !== "key";
|
|
642
|
-
}), xi =
|
|
642
|
+
}), xi = qt.length > 0 ? "{key: someKey, " + qt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
643
643
|
if (!No[Zn + xi]) {
|
|
644
|
-
var ri =
|
|
644
|
+
var ri = qt.length > 0 ? "{" + qt.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 Vt(r, 0) ^ 45 ? (((e << 2 ^ Vt(r, 0)) << 2 ^ Vt(r, 1)) << 2 ^ Vt(r, 2)) << 2 ^ Vt(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 Vt(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 ? Vt(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 ? Vt(go, Sn++) : 0, ro++, Mt === 10 && (ro = 1, kl++), Mt;
|
|
1475
1475
|
}
|
|
1476
1476
|
function ur() {
|
|
1477
|
-
return
|
|
1477
|
+
return Vt(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 && Vt(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 && Vt(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 (Vt(r, e + 1)) {
|
|
1870
1870
|
case 109:
|
|
1871
|
-
if (
|
|
1871
|
+
if (Vt(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 + (Vt(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 (Vt(r, e + 1) !== 115)
|
|
1881
1881
|
break;
|
|
1882
1882
|
case 6444:
|
|
1883
|
-
switch (
|
|
1883
|
+
switch (Vt(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 + (Vt(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 (Vt(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
|
+
Ut(() => {
|
|
4361
4361
|
l && c();
|
|
4362
|
-
}, [i]),
|
|
4362
|
+
}, [i]), Ut(() => {
|
|
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
|
+
Ut(() => {
|
|
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
|
+
Ut(() => {
|
|
4746
4746
|
l && c();
|
|
4747
|
-
}, [i]),
|
|
4747
|
+
}, [i]), Ut(() => {
|
|
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
|
+
Ut(() => {
|
|
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
|
+
Ut(() => () => {
|
|
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
|
+
Ut(() => () => {
|
|
62252
62252
|
s("config", {});
|
|
62253
62253
|
}, []);
|
|
62254
62254
|
const [c, u] = wt(
|
|
@@ -62309,17 +62309,20 @@ 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, setRuleName: t }) => {
|
|
62313
|
+
const [n, i] = wt(), { setValue: o, watch: s } = hr(), l = s("name");
|
|
62314
|
+
Ut(() => {
|
|
62315
|
+
if (r && r.length > 0 && (i(r[0].value), e))
|
|
62316
62316
|
return e(r[0].value);
|
|
62317
|
-
}, []),
|
|
62318
|
-
|
|
62317
|
+
}, []), Ut(() => {
|
|
62318
|
+
if (t)
|
|
62319
|
+
return t(l);
|
|
62320
|
+
}, [l]), Ut(() => () => {
|
|
62321
|
+
o("config", {});
|
|
62319
62322
|
}, []);
|
|
62320
|
-
const
|
|
62321
|
-
if (
|
|
62322
|
-
return e(
|
|
62323
|
+
const a = (f, c) => {
|
|
62324
|
+
if (c !== null && (i(c), e))
|
|
62325
|
+
return e(c);
|
|
62323
62326
|
};
|
|
62324
62327
|
return /* @__PURE__ */ K.jsxs(tt, { gap: 2, children: [
|
|
62325
62328
|
/* @__PURE__ */ K.jsx(
|
|
@@ -62338,24 +62341,24 @@ const X2 = /* @__PURE__ */ ug(j2), Z2 = Xt(Tr)(({ theme: r }) => ({
|
|
|
62338
62341
|
aG,
|
|
62339
62342
|
{
|
|
62340
62343
|
color: "primary",
|
|
62341
|
-
value:
|
|
62344
|
+
value: n,
|
|
62342
62345
|
size: "small",
|
|
62343
62346
|
exclusive: !0,
|
|
62344
|
-
onChange:
|
|
62345
|
-
children: r.map((
|
|
62347
|
+
onChange: a,
|
|
62348
|
+
children: r.map((f, c) => /* @__PURE__ */ K.jsx(
|
|
62346
62349
|
sG,
|
|
62347
62350
|
{
|
|
62348
|
-
value:
|
|
62351
|
+
value: f.value,
|
|
62349
62352
|
size: "small",
|
|
62350
62353
|
color: "primary",
|
|
62351
|
-
children: /* @__PURE__ */ K.jsx(mn, { variant: "body2", children:
|
|
62354
|
+
children: /* @__PURE__ */ K.jsx(mn, { variant: "body2", children: f.toggleTitle })
|
|
62352
62355
|
},
|
|
62353
|
-
|
|
62356
|
+
c
|
|
62354
62357
|
))
|
|
62355
62358
|
}
|
|
62356
62359
|
),
|
|
62357
62360
|
r && r.map(
|
|
62358
|
-
(
|
|
62361
|
+
(f, c) => f.value === n ? /* @__PURE__ */ K.jsx("div", { children: f.component }, c) : null
|
|
62359
62362
|
)
|
|
62360
62363
|
] });
|
|
62361
62364
|
};
|
|
@@ -77176,14 +77179,14 @@ Xa.exports;
|
|
|
77176
77179
|
function Zn(z) {
|
|
77177
77180
|
return Mi(this, z).get(z);
|
|
77178
77181
|
}
|
|
77179
|
-
function
|
|
77182
|
+
function qt(z) {
|
|
77180
77183
|
return Mi(this, z).has(z);
|
|
77181
77184
|
}
|
|
77182
77185
|
function xi(z, ne) {
|
|
77183
77186
|
var he = Mi(this, z), Ae = he.size;
|
|
77184
77187
|
return he.set(z, ne), this.size += he.size == Ae ? 0 : 1, this;
|
|
77185
77188
|
}
|
|
77186
|
-
ct.prototype.clear = sn, ct.prototype.delete = vr, ct.prototype.get = Zn, ct.prototype.has =
|
|
77189
|
+
ct.prototype.clear = sn, ct.prototype.delete = vr, ct.prototype.get = Zn, ct.prototype.has = qt, ct.prototype.set = xi;
|
|
77187
77190
|
function ri(z) {
|
|
77188
77191
|
var ne = -1, he = z == null ? 0 : z.length;
|
|
77189
77192
|
for (this.__data__ = new ct(); ++ne < he; )
|
|
@@ -77225,13 +77228,13 @@ Xa.exports;
|
|
|
77225
77228
|
}
|
|
77226
77229
|
Er.prototype.clear = mm, Er.prototype.delete = _m, Er.prototype.get = vm, Er.prototype.has = Em, Er.prototype.set = Sm;
|
|
77227
77230
|
function bm(z, ne) {
|
|
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) : [],
|
|
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) : [], Yt = $t.length;
|
|
77229
77232
|
for (var Ct in z)
|
|
77230
77233
|
J.call(z, Ct) && !(Rt && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
77231
77234
|
(Ct == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
77232
77235
|
gt && (Ct == "offset" || Ct == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
77233
77236
|
He && (Ct == "buffer" || Ct == "byteLength" || Ct == "byteOffset") || // Skip index properties.
|
|
77234
|
-
Hs(Ct,
|
|
77237
|
+
Hs(Ct, Yt))) && $t.push(Ct);
|
|
77235
77238
|
return $t;
|
|
77236
77239
|
}
|
|
77237
77240
|
function xo(z, ne) {
|
|
@@ -77254,16 +77257,16 @@ Xa.exports;
|
|
|
77254
77257
|
return z === ne ? !0 : z == null || ne == null || !Do(z) && !Do(ne) ? z !== z && ne !== ne : Tm(z, ne, he, Ae, vc, gt);
|
|
77255
77258
|
}
|
|
77256
77259
|
function Tm(z, ne, he, Ae, gt, He) {
|
|
77257
|
-
var Rt = ii(z), $t = ii(ne),
|
|
77258
|
-
|
|
77259
|
-
var yn =
|
|
77260
|
+
var Rt = ii(z), $t = ii(ne), Yt = Rt ? a : Yn(z), Ct = $t ? a : Yn(ne);
|
|
77261
|
+
Yt = Yt == l ? v : Yt, Ct = Ct == l ? v : Ct;
|
|
77262
|
+
var yn = Yt == v, Wn = Ct == v, Jt = Yt == Ct;
|
|
77260
77263
|
if (Jt && zs(z)) {
|
|
77261
77264
|
if (!zs(ne))
|
|
77262
77265
|
return !1;
|
|
77263
77266
|
Rt = !0, yn = !1;
|
|
77264
77267
|
}
|
|
77265
77268
|
if (Jt && !yn)
|
|
77266
|
-
return He || (He = new Er()), Rt || xm(z) ? Ec(z, ne, he, Ae, gt, He) : Sc(z, ne,
|
|
77269
|
+
return He || (He = new Er()), Rt || xm(z) ? Ec(z, ne, he, Ae, gt, He) : Sc(z, ne, Yt, he, Ae, gt, He);
|
|
77267
77270
|
if (!(he & i)) {
|
|
77268
77271
|
var Dn = yn && J.call(z, "__wrapped__"), Mn = Wn && J.call(ne, "__wrapped__");
|
|
77269
77272
|
if (Dn || Mn) {
|
|
@@ -77291,8 +77294,8 @@ Xa.exports;
|
|
|
77291
77294
|
return ne;
|
|
77292
77295
|
}
|
|
77293
77296
|
function Ec(z, ne, he, Ae, gt, He) {
|
|
77294
|
-
var Rt = he & i, $t = z.length,
|
|
77295
|
-
if ($t !=
|
|
77297
|
+
var Rt = he & i, $t = z.length, Yt = ne.length;
|
|
77298
|
+
if ($t != Yt && !(Rt && Yt > $t))
|
|
77296
77299
|
return !1;
|
|
77297
77300
|
var Ct = He.get(z);
|
|
77298
77301
|
if (Ct && He.get(ne))
|
|
@@ -77343,8 +77346,8 @@ Xa.exports;
|
|
|
77343
77346
|
case g:
|
|
77344
77347
|
var $t = ue;
|
|
77345
77348
|
case S:
|
|
77346
|
-
var
|
|
77347
|
-
if ($t || ($t = Ie), z.size != ne.size && !
|
|
77349
|
+
var Yt = Ae & i;
|
|
77350
|
+
if ($t || ($t = Ie), z.size != ne.size && !Yt)
|
|
77348
77351
|
return !1;
|
|
77349
77352
|
var Ct = Rt.get(z);
|
|
77350
77353
|
if (Ct)
|
|
@@ -77359,10 +77362,10 @@ Xa.exports;
|
|
|
77359
77362
|
return !1;
|
|
77360
77363
|
}
|
|
77361
77364
|
function bc(z, ne, he, Ae, gt, He) {
|
|
77362
|
-
var Rt = he & i, $t = Gs(z),
|
|
77363
|
-
if (
|
|
77365
|
+
var Rt = he & i, $t = Gs(z), Yt = $t.length, Ct = Gs(ne), yn = Ct.length;
|
|
77366
|
+
if (Yt != yn && !Rt)
|
|
77364
77367
|
return !1;
|
|
77365
|
-
for (var Wn =
|
|
77368
|
+
for (var Wn = Yt; Wn--; ) {
|
|
77366
77369
|
var Jt = $t[Wn];
|
|
77367
77370
|
if (!(Rt ? Jt in ne : J.call(ne, Jt)))
|
|
77368
77371
|
return !1;
|
|
@@ -77372,7 +77375,7 @@ Xa.exports;
|
|
|
77372
77375
|
return Dn == ne;
|
|
77373
77376
|
var Mn = !0;
|
|
77374
77377
|
He.set(z, ne), He.set(ne, z);
|
|
77375
|
-
for (var Lr = Rt; ++Wn <
|
|
77378
|
+
for (var Lr = Rt; ++Wn < Yt; ) {
|
|
77376
77379
|
Jt = $t[Wn];
|
|
77377
77380
|
var Sr = z[Jt], oi = ne[Jt];
|
|
77378
77381
|
if (Ae)
|
|
@@ -79764,7 +79767,7 @@ const CR = Xt(tt)(({ theme: r }) => ({
|
|
|
79764
79767
|
loadingPreview: f
|
|
79765
79768
|
}) => {
|
|
79766
79769
|
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");
|
|
79767
|
-
|
|
79770
|
+
Ut(() => () => {
|
|
79768
79771
|
_("config", {});
|
|
79769
79772
|
}, []);
|
|
79770
79773
|
const E = (y, w) => {
|
|
@@ -80032,10 +80035,10 @@ class Bg {
|
|
|
80032
80035
|
}
|
|
80033
80036
|
}
|
|
80034
80037
|
const ra = /* @__PURE__ */ new WeakMap(), Pb = /* @__PURE__ */ new WeakMap();
|
|
80035
|
-
var
|
|
80038
|
+
var Gt;
|
|
80036
80039
|
(function(r) {
|
|
80037
80040
|
r[r.ExcludeBuffers = 1] = "ExcludeBuffers", r[r.IncludeAnonymous = 2] = "IncludeAnonymous", r[r.IgnoreMounts = 4] = "IgnoreMounts", r[r.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
80038
|
-
})(
|
|
80041
|
+
})(Gt || (Gt = {}));
|
|
80039
80042
|
class Lt {
|
|
80040
80043
|
/**
|
|
80041
80044
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
@@ -80129,8 +80132,8 @@ class Lt {
|
|
|
80129
80132
|
not have its children iterated over (or `leave` called).
|
|
80130
80133
|
*/
|
|
80131
80134
|
iterate(e) {
|
|
80132
|
-
let { enter: t, leave: n, from: i = 0, to: o = this.length } = e, s = e.mode || 0, l = (s &
|
|
80133
|
-
for (let a = this.cursor(s |
|
|
80135
|
+
let { enter: t, leave: n, from: i = 0, to: o = this.length } = e, s = e.mode || 0, l = (s & Gt.IncludeAnonymous) > 0;
|
|
80136
|
+
for (let a = this.cursor(s | Gt.IncludeAnonymous); ; ) {
|
|
80134
80137
|
let f = !1;
|
|
80135
80138
|
if (a.from <= o && a.to >= i && (!l && a.type.isAnonymous || t(a) !== !1)) {
|
|
80136
80139
|
if (a.firstChild())
|
|
@@ -80285,7 +80288,7 @@ function us(r, e, t, n) {
|
|
|
80285
80288
|
return r;
|
|
80286
80289
|
r = s;
|
|
80287
80290
|
}
|
|
80288
|
-
let o = n ? 0 :
|
|
80291
|
+
let o = n ? 0 : Gt.IgnoreOverlays;
|
|
80289
80292
|
if (n)
|
|
80290
80293
|
for (let s = r, l = s.parent; l; s = l, l = s.parent)
|
|
80291
80294
|
s instanceof Fn && s.index < 0 && ((i = l.enter(e, t, o)) === null || i === void 0 ? void 0 : i.from) != s.from && (r = l);
|
|
@@ -80352,21 +80355,21 @@ class Fn extends NR {
|
|
|
80352
80355
|
let c = l[e], u = a[e] + s.from;
|
|
80353
80356
|
if (AR(i, n, u, u + c.length)) {
|
|
80354
80357
|
if (c instanceof Kr) {
|
|
80355
|
-
if (o &
|
|
80358
|
+
if (o & Gt.ExcludeBuffers)
|
|
80356
80359
|
continue;
|
|
80357
80360
|
let d = c.findChild(0, c.buffer.length, t, n - u, i);
|
|
80358
80361
|
if (d > -1)
|
|
80359
80362
|
return new Ur(new zH(s, c, e, u), null, d);
|
|
80360
|
-
} else if (o &
|
|
80363
|
+
} else if (o & Gt.IncludeAnonymous || !c.type.isAnonymous || $g(c)) {
|
|
80361
80364
|
let d;
|
|
80362
|
-
if (!(o &
|
|
80365
|
+
if (!(o & Gt.IgnoreMounts) && (d = Za.get(c)) && !d.overlay)
|
|
80363
80366
|
return new Fn(d.tree, u, e, s);
|
|
80364
80367
|
let h = new Fn(c, u, e, s);
|
|
80365
|
-
return o &
|
|
80368
|
+
return o & Gt.IncludeAnonymous || !h.type.isAnonymous ? h : h.nextChild(t < 0 ? c.children.length - 1 : 0, t, n, i);
|
|
80366
80369
|
}
|
|
80367
80370
|
}
|
|
80368
80371
|
}
|
|
80369
|
-
if (o &
|
|
80372
|
+
if (o & Gt.IncludeAnonymous || !s.type.isAnonymous || (s.index >= 0 ? e = s.index + t : e = t < 0 ? -1 : s._parent._tree.children.length, s = s._parent, !s))
|
|
80370
80373
|
return null;
|
|
80371
80374
|
}
|
|
80372
80375
|
}
|
|
@@ -80408,7 +80411,7 @@ class Fn extends NR {
|
|
|
80408
80411
|
}
|
|
80409
80412
|
enter(e, t, n = 0) {
|
|
80410
80413
|
let i;
|
|
80411
|
-
if (!(n &
|
|
80414
|
+
if (!(n & Gt.IgnoreOverlays) && (i = Za.get(this._tree)) && i.overlay) {
|
|
80412
80415
|
let o = e - this.from;
|
|
80413
80416
|
for (let { from: s, to: l } of i.overlay)
|
|
80414
80417
|
if ((t > 0 ? s <= o : s < o) && (t < 0 ? l >= o : l > o))
|
|
@@ -80539,7 +80542,7 @@ class Ur extends NR {
|
|
|
80539
80542
|
);
|
|
80540
80543
|
}
|
|
80541
80544
|
enter(e, t, n = 0) {
|
|
80542
|
-
if (n &
|
|
80545
|
+
if (n & Gt.ExcludeBuffers)
|
|
80543
80546
|
return null;
|
|
80544
80547
|
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);
|
|
80545
80548
|
return o < 0 ? null : new Ur(this.context, this, o);
|
|
@@ -80725,17 +80728,17 @@ class ap {
|
|
|
80725
80728
|
set to false.
|
|
80726
80729
|
*/
|
|
80727
80730
|
enter(e, t, n = this.mode) {
|
|
80728
|
-
return this.buffer ? n &
|
|
80731
|
+
return this.buffer ? n & Gt.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
|
|
80729
80732
|
}
|
|
80730
80733
|
/**
|
|
80731
80734
|
Move to the node's parent node, if this isn't the top node.
|
|
80732
80735
|
*/
|
|
80733
80736
|
parent() {
|
|
80734
80737
|
if (!this.buffer)
|
|
80735
|
-
return this.yieldNode(this.mode &
|
|
80738
|
+
return this.yieldNode(this.mode & Gt.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
80736
80739
|
if (this.stack.length)
|
|
80737
80740
|
return this.yieldBuf(this.stack.pop());
|
|
80738
|
-
let e = this.mode &
|
|
80741
|
+
let e = this.mode & Gt.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
80739
80742
|
return this.buffer = null, this.yieldNode(e);
|
|
80740
80743
|
}
|
|
80741
80744
|
/**
|
|
@@ -80792,7 +80795,7 @@ class ap {
|
|
|
80792
80795
|
if (t > -1)
|
|
80793
80796
|
for (let o = t + e, s = e < 0 ? -1 : n._tree.children.length; o != s; o += e) {
|
|
80794
80797
|
let l = n._tree.children[o];
|
|
80795
|
-
if (this.mode &
|
|
80798
|
+
if (this.mode & Gt.IncludeAnonymous || l instanceof Kr || !l.type.isAnonymous || $g(l))
|
|
80796
80799
|
return !1;
|
|
80797
80800
|
}
|
|
80798
80801
|
return !0;
|
|
@@ -87207,7 +87210,7 @@ class Rn extends UO {
|
|
|
87207
87210
|
}
|
|
87208
87211
|
replace(e, t, n) {
|
|
87209
87212
|
let i = n[0];
|
|
87210
|
-
return n.length == 1 && (i instanceof Rn || i instanceof
|
|
87213
|
+
return n.length == 1 && (i instanceof Rn || i instanceof Wt && i.flags & 4) && Math.abs(this.length - i.length) < 10 ? (i instanceof Wt ? i = new Rn(i.length, this.height) : i.height = this.height, this.outdated || (i.outdated = !1), i) : un.of(n);
|
|
87211
87214
|
}
|
|
87212
87215
|
updateHeight(e, t = 0, n = !1, i) {
|
|
87213
87216
|
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;
|
|
@@ -87216,7 +87219,7 @@ class Rn extends UO {
|
|
|
87216
87219
|
return `line(${this.length}${this.collapsed ? -this.collapsed : ""}${this.widgetHeight ? ":" + this.widgetHeight : ""})`;
|
|
87217
87220
|
}
|
|
87218
87221
|
}
|
|
87219
|
-
class
|
|
87222
|
+
class Wt extends un {
|
|
87220
87223
|
constructor(e) {
|
|
87221
87224
|
super(e, 0);
|
|
87222
87225
|
}
|
|
@@ -87266,25 +87269,25 @@ class Yt extends un {
|
|
|
87266
87269
|
let i = this.length - t;
|
|
87267
87270
|
if (i > 0) {
|
|
87268
87271
|
let o = n[n.length - 1];
|
|
87269
|
-
o instanceof
|
|
87272
|
+
o instanceof Wt ? n[n.length - 1] = new Wt(o.length + i) : n.push(null, new Wt(i - 1));
|
|
87270
87273
|
}
|
|
87271
87274
|
if (e > 0) {
|
|
87272
87275
|
let o = n[0];
|
|
87273
|
-
o instanceof
|
|
87276
|
+
o instanceof Wt ? n[0] = new Wt(e + o.length) : n.unshift(new Wt(e - 1), null);
|
|
87274
87277
|
}
|
|
87275
87278
|
return un.of(n);
|
|
87276
87279
|
}
|
|
87277
87280
|
decomposeLeft(e, t) {
|
|
87278
|
-
t.push(new
|
|
87281
|
+
t.push(new Wt(e - 1), null);
|
|
87279
87282
|
}
|
|
87280
87283
|
decomposeRight(e, t) {
|
|
87281
|
-
t.push(null, new
|
|
87284
|
+
t.push(null, new Wt(this.length - e - 1));
|
|
87282
87285
|
}
|
|
87283
87286
|
updateHeight(e, t = 0, n = !1, i) {
|
|
87284
87287
|
let o = t + this.length;
|
|
87285
87288
|
if (i && i.from <= t + this.length && i.more) {
|
|
87286
87289
|
let s = [], l = Math.max(t, i.from), a = -1;
|
|
87287
|
-
for (i.from > t && s.push(new
|
|
87290
|
+
for (i.from > t && s.push(new Wt(i.from - t - 1).updateHeight(e, t)); l <= o && i.more; ) {
|
|
87288
87291
|
let c = e.doc.lineAt(l).length;
|
|
87289
87292
|
s.length && s.push(null);
|
|
87290
87293
|
let u = i.heights[i.index++];
|
|
@@ -87292,7 +87295,7 @@ class Yt extends un {
|
|
|
87292
87295
|
let d = new Rn(c, u);
|
|
87293
87296
|
d.outdated = !1, s.push(d), l += c + 1;
|
|
87294
87297
|
}
|
|
87295
|
-
l <= o && s.push(null, new
|
|
87298
|
+
l <= o && s.push(null, new Wt(o - l).updateHeight(e, l));
|
|
87296
87299
|
let f = un.of(s);
|
|
87297
87300
|
return (a < 0 || Math.abs(f.height - this.height) >= Pa || Math.abs(a - this.heightMetrics(e, t).perLine) >= Pa) && (e.heightChanged = !0), f;
|
|
87298
87301
|
} else
|
|
@@ -87372,7 +87375,7 @@ class SY extends un {
|
|
|
87372
87375
|
}
|
|
87373
87376
|
function by(r, e) {
|
|
87374
87377
|
let t, n;
|
|
87375
|
-
r[e] == null && (t = r[e - 1]) instanceof
|
|
87378
|
+
r[e] == null && (t = r[e - 1]) instanceof Wt && (n = r[e + 1]) instanceof Wt && r.splice(e - 1, 3, new Wt(t.length + 1 + n.length));
|
|
87376
87379
|
}
|
|
87377
87380
|
const bY = 5;
|
|
87378
87381
|
class jg {
|
|
@@ -87406,7 +87409,7 @@ class jg {
|
|
|
87406
87409
|
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;
|
|
87407
87410
|
}
|
|
87408
87411
|
blankContent(e, t) {
|
|
87409
|
-
let n = new
|
|
87412
|
+
let n = new Wt(t - e);
|
|
87410
87413
|
return this.oracle.doc.lineAt(e).to == t && (n.flags |= 4), n;
|
|
87411
87414
|
}
|
|
87412
87415
|
ensureLine() {
|
|
@@ -91552,7 +91555,7 @@ class zn {
|
|
|
91552
91555
|
*/
|
|
91553
91556
|
constructor(e, t, n = [], i = "") {
|
|
91554
91557
|
this.data = e, this.name = i, ze.prototype.hasOwnProperty("tree") || Object.defineProperty(ze.prototype, "tree", { get() {
|
|
91555
|
-
return
|
|
91558
|
+
return Ht(this);
|
|
91556
91559
|
} }), this.parser = t, this.extension = [
|
|
91557
91560
|
Jr.of(this),
|
|
91558
91561
|
ze.languageData.of((o, s, l) => {
|
|
@@ -91614,7 +91617,7 @@ class zn {
|
|
|
91614
91617
|
f instanceof Lt && i(f, o.positions[a] + s);
|
|
91615
91618
|
}
|
|
91616
91619
|
};
|
|
91617
|
-
return i(
|
|
91620
|
+
return i(Ht(e), 0), n;
|
|
91618
91621
|
}
|
|
91619
91622
|
/**
|
|
91620
91623
|
Indicates whether this language allows nested languages. The
|
|
@@ -91626,9 +91629,9 @@ class zn {
|
|
|
91626
91629
|
}
|
|
91627
91630
|
zn.setState = /* @__PURE__ */ qe.define();
|
|
91628
91631
|
function Yy(r, e, t) {
|
|
91629
|
-
let n = r.facet(Jr), i =
|
|
91632
|
+
let n = r.facet(Jr), i = Ht(r).topNode;
|
|
91630
91633
|
if (!n || n.allowsNesting)
|
|
91631
|
-
for (let o = i; o; o = o.enter(e, t,
|
|
91634
|
+
for (let o = i; o; o = o.enter(e, t, Gt.ExcludeBuffers))
|
|
91632
91635
|
o.type.isTop && (i = o);
|
|
91633
91636
|
return i;
|
|
91634
91637
|
}
|
|
@@ -91656,7 +91659,7 @@ class ll extends zn {
|
|
|
91656
91659
|
return this.parser.hasWrappers();
|
|
91657
91660
|
}
|
|
91658
91661
|
}
|
|
91659
|
-
function
|
|
91662
|
+
function Ht(r) {
|
|
91660
91663
|
let e = r.field(zn.state, !1);
|
|
91661
91664
|
return e ? e.tree : Lt.empty;
|
|
91662
91665
|
}
|
|
@@ -91978,7 +91981,7 @@ function em(r, e) {
|
|
|
91978
91981
|
if (i !== void 0)
|
|
91979
91982
|
return i;
|
|
91980
91983
|
}
|
|
91981
|
-
let t =
|
|
91984
|
+
let t = Ht(r.state);
|
|
91982
91985
|
return t.length >= e ? oV(r, t, e) : null;
|
|
91983
91986
|
}
|
|
91984
91987
|
class uc {
|
|
@@ -92201,7 +92204,7 @@ function pV() {
|
|
|
92201
92204
|
}
|
|
92202
92205
|
const gV = /* @__PURE__ */ we.define(), cA = /* @__PURE__ */ new We();
|
|
92203
92206
|
function mV(r, e, t) {
|
|
92204
|
-
let n =
|
|
92207
|
+
let n = Ht(r);
|
|
92205
92208
|
if (n.length < t)
|
|
92206
92209
|
return null;
|
|
92207
92210
|
let i = n.resolveStack(t, 1), o = null;
|
|
@@ -92412,7 +92415,7 @@ function AV(r = {}) {
|
|
|
92412
92415
|
this.from = s.viewport.from, this.markers = this.buildMarkers(s);
|
|
92413
92416
|
}
|
|
92414
92417
|
update(s) {
|
|
92415
|
-
(s.docChanged || s.viewportChanged || s.startState.facet(Jr) != s.state.facet(Jr) || s.startState.field(Ri, !1) != s.state.field(Ri, !1) ||
|
|
92418
|
+
(s.docChanged || s.viewportChanged || s.startState.facet(Jr) != s.state.facet(Jr) || s.startState.field(Ri, !1) != s.state.field(Ri, !1) || Ht(s.startState) != Ht(s.state) || e.foldingChanged(s)) && (this.markers = this.buildMarkers(s.view));
|
|
92416
92419
|
}
|
|
92417
92420
|
buildMarkers(s) {
|
|
92418
92421
|
let l = new Qr();
|
|
@@ -92512,10 +92515,10 @@ function vA(r, e) {
|
|
|
92512
92515
|
}
|
|
92513
92516
|
class wV {
|
|
92514
92517
|
constructor(e) {
|
|
92515
|
-
this.markCache = /* @__PURE__ */ Object.create(null), this.tree =
|
|
92518
|
+
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Ht(e.state), this.decorations = this.buildDeco(e, Lh(e.state)), this.decoratedTo = e.viewport.to;
|
|
92516
92519
|
}
|
|
92517
92520
|
update(e) {
|
|
92518
|
-
let t =
|
|
92521
|
+
let t = Ht(e.state), n = Lh(e.state), i = n != Lh(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
|
|
92519
92522
|
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);
|
|
92520
92523
|
}
|
|
92521
92524
|
buildDeco(e, t) {
|
|
@@ -92667,7 +92670,7 @@ function Vp(r) {
|
|
|
92667
92670
|
return e ? e(r.node) : r;
|
|
92668
92671
|
}
|
|
92669
92672
|
function lr(r, e, t, n = {}) {
|
|
92670
|
-
let i = n.maxScanDistance || EA, o = n.brackets || SA, s =
|
|
92673
|
+
let i = n.maxScanDistance || EA, o = n.brackets || SA, s = Ht(r), l = s.resolveInner(e, t);
|
|
92671
92674
|
for (let a = l; a; a = a.parent) {
|
|
92672
92675
|
let f = Wp(a.type, t, o);
|
|
92673
92676
|
if (f && a.from < a.to) {
|
|
@@ -93426,7 +93429,7 @@ function QV(r, e, t, n) {
|
|
|
93426
93429
|
const Tn = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
93427
93430
|
let Ph = null;
|
|
93428
93431
|
function Jy(r, e, t) {
|
|
93429
|
-
let n = r.cursor(
|
|
93432
|
+
let n = r.cursor(Gt.IncludeAnonymous);
|
|
93430
93433
|
for (n.moveTo(e); ; )
|
|
93431
93434
|
if (!(t < 0 ? n.childBefore(e) : n.childAfter(e)))
|
|
93432
93435
|
for (; ; ) {
|
|
@@ -94052,7 +94055,7 @@ class yA {
|
|
|
94052
94055
|
token before `this.pos`.
|
|
94053
94056
|
*/
|
|
94054
94057
|
tokenBefore(e) {
|
|
94055
|
-
let t =
|
|
94058
|
+
let t = Ht(this.state).resolveInner(this.pos, -1);
|
|
94056
94059
|
for (; t && e.indexOf(t.name) < 0; )
|
|
94057
94060
|
t = t.parent;
|
|
94058
94061
|
return t ? {
|
|
@@ -94109,7 +94112,7 @@ function TA(r) {
|
|
|
94109
94112
|
}
|
|
94110
94113
|
function nz(r, e) {
|
|
94111
94114
|
return (t) => {
|
|
94112
|
-
for (let n =
|
|
94115
|
+
for (let n = Ht(t.state).resolveInner(t.pos, -1); n; n = n.parent) {
|
|
94113
94116
|
if (r.indexOf(n.name) > -1)
|
|
94114
94117
|
return null;
|
|
94115
94118
|
if (n.type.isTop)
|
|
@@ -95142,11 +95145,11 @@ function Bz(r, e, t, n) {
|
|
|
95142
95145
|
});
|
|
95143
95146
|
}
|
|
95144
95147
|
function lT(r, e) {
|
|
95145
|
-
let t =
|
|
95148
|
+
let t = Ht(r).resolveInner(e + 1);
|
|
95146
95149
|
return t.parent && t.from == e;
|
|
95147
95150
|
}
|
|
95148
95151
|
function Fz(r, e, t, n) {
|
|
95149
|
-
let i =
|
|
95152
|
+
let i = Ht(r).resolveInner(e, -1), o = n.reduce((s, l) => Math.max(s, l.length), 0);
|
|
95150
95153
|
for (let s = 0; s < 5; s++) {
|
|
95151
95154
|
let l = r.sliceDoc(i.from, Math.min(i.to, i.from + t.length + o)), a = l.indexOf(t);
|
|
95152
95155
|
if (!a || a > -1 && n.indexOf(l.slice(0, a)) > -1) {
|
|
@@ -95463,7 +95466,7 @@ function mT(r, e) {
|
|
|
95463
95466
|
}
|
|
95464
95467
|
}
|
|
95465
95468
|
function p3(r, e) {
|
|
95466
|
-
let t =
|
|
95469
|
+
let t = Ht(r).resolveInner(e, -1), n = m3(r.doc, t);
|
|
95467
95470
|
return t.name == "Identifier" || t.name == "QuotedIdentifier" || t.name == "Keyword" ? {
|
|
95468
95471
|
from: t.from,
|
|
95469
95472
|
quoted: t.name == "QuotedIdentifier" ? r.doc.sliceString(t.from, t.from + 1) : null,
|
|
@@ -96004,7 +96007,7 @@ function Q3(r, e, t) {
|
|
|
96004
96007
|
return n && (n > 2 || /[^\s,.;:]/.test(r.sliceDoc(e.from, e.to))) || e.firstChild;
|
|
96005
96008
|
}
|
|
96006
96009
|
function gc(r, e, t) {
|
|
96007
|
-
let n =
|
|
96010
|
+
let n = Ht(r).resolveInner(e.head), i = t ? We.closedBy : We.openedBy;
|
|
96008
96011
|
for (let a = e.head; ; ) {
|
|
96009
96012
|
let f = t ? n.childAfter(a) : n.childBefore(a);
|
|
96010
96013
|
if (!f)
|
|
@@ -96102,7 +96105,7 @@ const ST = (r) => sN(r, !1), bT = (r) => sN(r, !0), uK = (r) => qn(r, (e) => ti(
|
|
|
96102
96105
|
}, vK = ({ state: r, dispatch: e }) => {
|
|
96103
96106
|
let t = Oo(r.selection, (n) => {
|
|
96104
96107
|
var i;
|
|
96105
|
-
let o =
|
|
96108
|
+
let o = Ht(r).resolveStack(n.from, 1);
|
|
96106
96109
|
for (let s = o; s; s = s.next) {
|
|
96107
96110
|
let { node: l } = s;
|
|
96108
96111
|
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))
|
|
@@ -96260,7 +96263,7 @@ const NK = ({ state: r, dispatch: e }) => fN(r, e, !1), wK = ({ state: r, dispat
|
|
|
96260
96263
|
function xK(r, e) {
|
|
96261
96264
|
if (/\(\)|\[\]|\{\}/.test(r.sliceDoc(e - 1, e + 1)))
|
|
96262
96265
|
return { from: e, to: e };
|
|
96263
|
-
let t =
|
|
96266
|
+
let t = Ht(r).resolveInner(e), n = t.childBefore(e), i = t.childAfter(e), o;
|
|
96264
96267
|
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;
|
|
96265
96268
|
}
|
|
96266
96269
|
const DK = /* @__PURE__ */ hN(!1), MK = /* @__PURE__ */ hN(!0);
|
|
@@ -97848,7 +97851,7 @@ function H5(r) {
|
|
|
97848
97851
|
indentWithTab: C,
|
|
97849
97852
|
basicSetup: b
|
|
97850
97853
|
}), D = [R, N, ...x];
|
|
97851
|
-
return s && typeof s == "function" && D.push(Oe.updateListener.of(s)), D = D.concat(l),
|
|
97854
|
+
return s && typeof s == "function" && D.push(Oe.updateListener.of(s)), D = D.concat(l), Ut(() => {
|
|
97852
97855
|
if (T && !O) {
|
|
97853
97856
|
var M = {
|
|
97854
97857
|
doc: e,
|
|
@@ -97867,15 +97870,15 @@ function H5(r) {
|
|
|
97867
97870
|
return () => {
|
|
97868
97871
|
w && (A(void 0), I(void 0));
|
|
97869
97872
|
};
|
|
97870
|
-
}, [T, O]),
|
|
97873
|
+
}, [T, O]), Ut(() => y(r.container), [r.container]), Ut(() => () => {
|
|
97871
97874
|
w && (w.destroy(), I(void 0));
|
|
97872
|
-
}, [w]),
|
|
97875
|
+
}, [w]), Ut(() => {
|
|
97873
97876
|
a && w && w.focus();
|
|
97874
|
-
}, [a, w]),
|
|
97877
|
+
}, [a, w]), Ut(() => {
|
|
97875
97878
|
w && w.dispatch({
|
|
97876
97879
|
effects: qe.reconfigure.of(D)
|
|
97877
97880
|
});
|
|
97878
|
-
}, [f, l, c, u, d, h, p, g, m, _, v, C, b, n, s]),
|
|
97881
|
+
}, [f, l, c, u, d, h, p, g, m, _, v, C, b, n, s]), Ut(() => {
|
|
97879
97882
|
if (e !== void 0) {
|
|
97880
97883
|
var M = w ? w.state.doc.toString() : "";
|
|
97881
97884
|
w && e !== M && w.dispatch({
|