@scalar/api-client-react 0.2.0 → 0.2.2
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/CHANGELOG.md +12 -0
- package/dist/index.cjs +7 -82
- package/dist/index.js +176 -251
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12901,6 +12901,7 @@ const WQ = `/* basic theme */
|
|
|
12901
12901
|
--default-sidebar-search-border-color: var(--default-theme-border-color);
|
|
12902
12902
|
}
|
|
12903
12903
|
/* advanced */
|
|
12904
|
+
.light-mode .dark-mode,
|
|
12904
12905
|
.light-mode {
|
|
12905
12906
|
--default-theme-color-green: #069061;
|
|
12906
12907
|
--default-theme-color-red: #ef0006;
|
|
@@ -12986,7 +12987,7 @@ const WQ = `/* basic theme */
|
|
|
12986
12987
|
/* Document Sidebar */
|
|
12987
12988
|
.light-mode .t-doc__sidebar,
|
|
12988
12989
|
.dark-mode .t-doc__sidebar {
|
|
12989
|
-
--default-sidebar-background-1:
|
|
12990
|
+
--default-sidebar-background-1: var(--default-theme-background-1);
|
|
12990
12991
|
--default-sidebar-color-1: var(--default-theme-color-1);
|
|
12991
12992
|
--default-sidebar-color-2: var(--default-theme-color-2);
|
|
12992
12993
|
--default-sidebar-border-color: var(--default-theme-border-color);
|
|
@@ -13086,27 +13087,6 @@ const WQ = `/* basic theme */
|
|
|
13086
13087
|
.code-languages__active .code-languages-background:before {
|
|
13087
13088
|
background: var(--default-theme-background-1) !important;
|
|
13088
13089
|
}
|
|
13089
|
-
.sidebar-heading-type {
|
|
13090
|
-
color: var(--default-theme-background-1) !important;
|
|
13091
|
-
}
|
|
13092
|
-
.active_page .sidebar-heading-type {
|
|
13093
|
-
color: var(--default-sidebar-color-1) !important;
|
|
13094
|
-
}
|
|
13095
|
-
.sidebar-heading-type:after {
|
|
13096
|
-
content: '';
|
|
13097
|
-
position: absolute;
|
|
13098
|
-
top: 0;
|
|
13099
|
-
left: 0;
|
|
13100
|
-
width: 100%;
|
|
13101
|
-
height: 100%;
|
|
13102
|
-
background: linear-gradient(
|
|
13103
|
-
9deg,
|
|
13104
|
-
var(--default-theme-background-1),
|
|
13105
|
-
transparent
|
|
13106
|
-
);
|
|
13107
|
-
border-radius: 30px;
|
|
13108
|
-
opacity: 0.3;
|
|
13109
|
-
}
|
|
13110
13090
|
.code-languages span {
|
|
13111
13091
|
margin-top: 5px !important;
|
|
13112
13092
|
}
|
|
@@ -13317,21 +13297,6 @@ const WQ = `/* basic theme */
|
|
|
13317
13297
|
.code-languages__active .code-languages-background:before {
|
|
13318
13298
|
background: var(--default-theme-background-1) !important;
|
|
13319
13299
|
}
|
|
13320
|
-
.sidebar-heading-type:after {
|
|
13321
|
-
content: '';
|
|
13322
|
-
position: absolute;
|
|
13323
|
-
top: 0;
|
|
13324
|
-
left: 0;
|
|
13325
|
-
width: 100%;
|
|
13326
|
-
height: 100%;
|
|
13327
|
-
background: linear-gradient(
|
|
13328
|
-
9deg,
|
|
13329
|
-
var(--default-theme-background-1),
|
|
13330
|
-
transparent
|
|
13331
|
-
);
|
|
13332
|
-
border-radius: 30px;
|
|
13333
|
-
opacity: 0.3;
|
|
13334
|
-
}
|
|
13335
13300
|
.code-languages span {
|
|
13336
13301
|
margin-top: 5px !important;
|
|
13337
13302
|
}
|
|
@@ -13458,7 +13423,7 @@ const WQ = `/* basic theme */
|
|
|
13458
13423
|
--default-sidebar-color-2: var(--default-theme-color-2);
|
|
13459
13424
|
--default-sidebar-border-color: var(--default-theme-border-color);
|
|
13460
13425
|
|
|
13461
|
-
--default-sidebar-item-hover-background: var(--default-theme-background-
|
|
13426
|
+
--default-sidebar-item-hover-background: var(--default-theme-background-2);
|
|
13462
13427
|
--default-sidebar-item-hover-color: currentColor;
|
|
13463
13428
|
|
|
13464
13429
|
--default-sidebar-item-active-background: var(
|
|
@@ -13627,25 +13592,6 @@ const WQ = `/* basic theme */
|
|
|
13627
13592
|
.light-mode .dark-mode.scalar-card {
|
|
13628
13593
|
background: #191b29 !important;
|
|
13629
13594
|
}
|
|
13630
|
-
.sidebar-heading-type:before {
|
|
13631
|
-
z-index: 10;
|
|
13632
|
-
position: relative;
|
|
13633
|
-
}
|
|
13634
|
-
.sidebar-heading-type:after {
|
|
13635
|
-
content: '';
|
|
13636
|
-
position: absolute;
|
|
13637
|
-
top: 0;
|
|
13638
|
-
left: 0;
|
|
13639
|
-
width: 100%;
|
|
13640
|
-
height: 100%;
|
|
13641
|
-
background: linear-gradient(
|
|
13642
|
-
9deg,
|
|
13643
|
-
var(--default-theme-background-1),
|
|
13644
|
-
transparent
|
|
13645
|
-
);
|
|
13646
|
-
border-radius: 30px;
|
|
13647
|
-
opacity: 0.3;
|
|
13648
|
-
}
|
|
13649
13595
|
.show-api-client-button:before {
|
|
13650
13596
|
background-color: var(--default-theme-color-accent) !important;
|
|
13651
13597
|
}
|
|
@@ -13713,7 +13659,7 @@ const WQ = `/* basic theme */
|
|
|
13713
13659
|
/* Document Sidebar */
|
|
13714
13660
|
.light-mode .t-doc__sidebar,
|
|
13715
13661
|
.dark-mode .t-doc__sidebar {
|
|
13716
|
-
--default-sidebar-background-1:
|
|
13662
|
+
--default-sidebar-background-1: var(--default-theme-background-1);
|
|
13717
13663
|
--default-sidebar-color-1: var(--default-theme-color-1);
|
|
13718
13664
|
--default-sidebar-color-2: var(--default-theme-color-2);
|
|
13719
13665
|
--default-sidebar-border-color: var(--default-theme-border-color);
|
|
@@ -13802,27 +13748,6 @@ const WQ = `/* basic theme */
|
|
|
13802
13748
|
.code-languages__active .code-languages-background:before {
|
|
13803
13749
|
background: var(--default-theme-background-1) !important;
|
|
13804
13750
|
}
|
|
13805
|
-
.sidebar-heading-type {
|
|
13806
|
-
color: var(--default-theme-background-1) !important;
|
|
13807
|
-
}
|
|
13808
|
-
.active_page .sidebar-heading-type {
|
|
13809
|
-
color: var(--default-sidebar-color-active) !important;
|
|
13810
|
-
}
|
|
13811
|
-
.sidebar-heading-type:after {
|
|
13812
|
-
content: '';
|
|
13813
|
-
position: absolute;
|
|
13814
|
-
top: 0;
|
|
13815
|
-
left: 0;
|
|
13816
|
-
width: 100%;
|
|
13817
|
-
height: 100%;
|
|
13818
|
-
background: linear-gradient(
|
|
13819
|
-
9deg,
|
|
13820
|
-
var(--default-theme-background-1),
|
|
13821
|
-
transparent
|
|
13822
|
-
);
|
|
13823
|
-
border-radius: 30px;
|
|
13824
|
-
opacity: 0.3;
|
|
13825
|
-
}
|
|
13826
13751
|
|
|
13827
13752
|
.code-languages span {
|
|
13828
13753
|
margin-top: 5px !important;
|
|
@@ -14076,7 +14001,7 @@ const WQ = `/* basic theme */
|
|
|
14076
14001
|
--default-sidebar-color-2: var(--default-theme-color-2);
|
|
14077
14002
|
--default-sidebar-border-color: var(--default-theme-border-color);
|
|
14078
14003
|
|
|
14079
|
-
--default-sidebar-item-hover-background: var(--default-theme-background-
|
|
14004
|
+
--default-sidebar-item-hover-background: var(--default-theme-background-2);
|
|
14080
14005
|
--default-sidebar-item-hover-color: currentColor;
|
|
14081
14006
|
|
|
14082
14007
|
--default-sidebar-item-active-background: var(--default-theme-background-3);
|
|
@@ -25827,11 +25752,11 @@ function JA(t, e) {
|
|
|
25827
25752
|
}
|
|
25828
25753
|
return n;
|
|
25829
25754
|
}
|
|
25830
|
-
function
|
|
25831
|
-
let i = new
|
|
25755
|
+
function eR(t, e, n, r = 0, o = t.length) {
|
|
25756
|
+
let i = new tR(r, Array.isArray(e) ? e : [e], n);
|
|
25832
25757
|
i.highlightRange(t.cursor(), r, o, "", i.highlighters), i.flush(o);
|
|
25833
25758
|
}
|
|
25834
|
-
class
|
|
25759
|
+
class tR {
|
|
25835
25760
|
constructor(e, n, r) {
|
|
25836
25761
|
this.at = e, this.highlighters = n, this.span = r, this.class = "";
|
|
25837
25762
|
}
|
|
@@ -25846,7 +25771,7 @@ class t3 {
|
|
|
25846
25771
|
if (a >= r || l <= n)
|
|
25847
25772
|
return;
|
|
25848
25773
|
s.isTop && (i = this.highlighters.filter((f) => !f.scope || f.scope(s)));
|
|
25849
|
-
let c = o, u =
|
|
25774
|
+
let c = o, u = nR(e) || cu.empty, d = JA(i, u.tags);
|
|
25850
25775
|
if (d && (c && (c += " "), c += d, u.mode == 1 && (o += (o ? " " : "") + d)), this.startSpan(Math.max(n, a), c), u.opaque)
|
|
25851
25776
|
return;
|
|
25852
25777
|
let h = e.tree && e.tree.prop(Ae.mounted);
|
|
@@ -25875,7 +25800,7 @@ class t3 {
|
|
|
25875
25800
|
}
|
|
25876
25801
|
}
|
|
25877
25802
|
}
|
|
25878
|
-
function
|
|
25803
|
+
function nR(t) {
|
|
25879
25804
|
let e = t.type.prop(CS);
|
|
25880
25805
|
for (; e && e.context && !t.matchContext(e.context); )
|
|
25881
25806
|
e = e.next;
|
|
@@ -26405,7 +26330,7 @@ function ln(t) {
|
|
|
26405
26330
|
let e = t.field(rr.state, !1);
|
|
26406
26331
|
return e ? e.tree : ct.empty;
|
|
26407
26332
|
}
|
|
26408
|
-
class
|
|
26333
|
+
class rR {
|
|
26409
26334
|
/**
|
|
26410
26335
|
Create an input object for the given document.
|
|
26411
26336
|
*/
|
|
@@ -26441,7 +26366,7 @@ class uu {
|
|
|
26441
26366
|
return new uu(e, n, [], ct.empty, 0, r, [], null);
|
|
26442
26367
|
}
|
|
26443
26368
|
startParse() {
|
|
26444
|
-
return this.parser.startParse(new
|
|
26369
|
+
return this.parser.startParse(new rR(this.state.doc), this.fragments);
|
|
26445
26370
|
}
|
|
26446
26371
|
/**
|
|
26447
26372
|
@internal
|
|
@@ -26629,7 +26554,7 @@ typeof requestIdleCallback < "u" && (NS = (t) => {
|
|
|
26629
26554
|
);
|
|
26630
26555
|
return () => e < 0 ? clearTimeout(n) : cancelIdleCallback(e);
|
|
26631
26556
|
});
|
|
26632
|
-
const Yd = typeof navigator < "u" && (!((Ud = navigator.scheduling) === null || Ud === void 0) && Ud.isInputPending) ? () => navigator.scheduling.isInputPending() : null,
|
|
26557
|
+
const Yd = typeof navigator < "u" && (!((Ud = navigator.scheduling) === null || Ud === void 0) && Ud.isInputPending) ? () => navigator.scheduling.isInputPending() : null, oR = /* @__PURE__ */ Fn.fromClass(class {
|
|
26633
26558
|
constructor(e) {
|
|
26634
26559
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
26635
26560
|
}
|
|
@@ -26676,7 +26601,7 @@ const Yd = typeof navigator < "u" && (!((Ud = navigator.scheduling) === null ||
|
|
|
26676
26601
|
},
|
|
26677
26602
|
enables: (t) => [
|
|
26678
26603
|
rr.state,
|
|
26679
|
-
|
|
26604
|
+
oR,
|
|
26680
26605
|
be.contentAttributes.compute([t], (e) => {
|
|
26681
26606
|
let n = e.facet(t);
|
|
26682
26607
|
return n && n.name ? { "data-language": n.name } : {};
|
|
@@ -26691,7 +26616,7 @@ class Pl {
|
|
|
26691
26616
|
this.language = e, this.support = n, this.extension = [e, n];
|
|
26692
26617
|
}
|
|
26693
26618
|
}
|
|
26694
|
-
const
|
|
26619
|
+
const iR = /* @__PURE__ */ pe.define(), pm = /* @__PURE__ */ pe.define({
|
|
26695
26620
|
combine: (t) => {
|
|
26696
26621
|
if (!t.length)
|
|
26697
26622
|
return " ";
|
|
@@ -26701,11 +26626,11 @@ const i3 = /* @__PURE__ */ pe.define(), pm = /* @__PURE__ */ pe.define({
|
|
|
26701
26626
|
return e;
|
|
26702
26627
|
}
|
|
26703
26628
|
});
|
|
26704
|
-
function
|
|
26629
|
+
function sR(t) {
|
|
26705
26630
|
let e = t.facet(pm);
|
|
26706
26631
|
return e.charCodeAt(0) == 9 ? t.tabSize * e.length : e.length;
|
|
26707
26632
|
}
|
|
26708
|
-
function
|
|
26633
|
+
function aR(t, e) {
|
|
26709
26634
|
let n = "", r = t.tabSize, o = t.facet(pm)[0];
|
|
26710
26635
|
if (o == " ") {
|
|
26711
26636
|
for (; e >= r; )
|
|
@@ -26716,22 +26641,22 @@ function a3(t, e) {
|
|
|
26716
26641
|
n += o;
|
|
26717
26642
|
return n;
|
|
26718
26643
|
}
|
|
26719
|
-
function
|
|
26644
|
+
function lR(t, e) {
|
|
26720
26645
|
t instanceof Ue && (t = new ZS(t));
|
|
26721
|
-
for (let r of t.state.facet(
|
|
26646
|
+
for (let r of t.state.facet(iR)) {
|
|
26722
26647
|
let o = r(t, e);
|
|
26723
26648
|
if (o !== void 0)
|
|
26724
26649
|
return o;
|
|
26725
26650
|
}
|
|
26726
26651
|
let n = ln(t.state);
|
|
26727
|
-
return n.length >= e ?
|
|
26652
|
+
return n.length >= e ? cR(t, n, e) : null;
|
|
26728
26653
|
}
|
|
26729
26654
|
class ZS {
|
|
26730
26655
|
/**
|
|
26731
26656
|
Create an indent context.
|
|
26732
26657
|
*/
|
|
26733
26658
|
constructor(e, n = {}) {
|
|
26734
|
-
this.state = e, this.options = n, this.unit =
|
|
26659
|
+
this.state = e, this.options = n, this.unit = sR(e);
|
|
26735
26660
|
}
|
|
26736
26661
|
/**
|
|
26737
26662
|
Get a description of the line at the given position, taking
|
|
@@ -26791,7 +26716,7 @@ class ZS {
|
|
|
26791
26716
|
}
|
|
26792
26717
|
}
|
|
26793
26718
|
const zs = /* @__PURE__ */ new Ae();
|
|
26794
|
-
function
|
|
26719
|
+
function cR(t, e, n) {
|
|
26795
26720
|
let r = e.resolveStack(n), o = r.node.enterUnfinishedNodesBefore(n);
|
|
26796
26721
|
if (o != r.node) {
|
|
26797
26722
|
let i = [];
|
|
@@ -26804,27 +26729,27 @@ function c3(t, e, n) {
|
|
|
26804
26729
|
}
|
|
26805
26730
|
function DS(t, e, n) {
|
|
26806
26731
|
for (let r = t; r; r = r.next) {
|
|
26807
|
-
let o =
|
|
26732
|
+
let o = dR(r.node);
|
|
26808
26733
|
if (o)
|
|
26809
26734
|
return o(mm.create(e, n, r));
|
|
26810
26735
|
}
|
|
26811
26736
|
return 0;
|
|
26812
26737
|
}
|
|
26813
|
-
function
|
|
26738
|
+
function uR(t) {
|
|
26814
26739
|
return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak;
|
|
26815
26740
|
}
|
|
26816
|
-
function
|
|
26741
|
+
function dR(t) {
|
|
26817
26742
|
let e = t.type.prop(zs);
|
|
26818
26743
|
if (e)
|
|
26819
26744
|
return e;
|
|
26820
26745
|
let n = t.firstChild, r;
|
|
26821
26746
|
if (n && (r = n.type.prop(Ae.closedBy))) {
|
|
26822
26747
|
let o = t.lastChild, i = o && r.indexOf(o.name) > -1;
|
|
26823
|
-
return (s) => VS(s, !0, 1, void 0, i && !
|
|
26748
|
+
return (s) => VS(s, !0, 1, void 0, i && !uR(s) ? o.from : void 0);
|
|
26824
26749
|
}
|
|
26825
|
-
return t.parent == null ?
|
|
26750
|
+
return t.parent == null ? hR : null;
|
|
26826
26751
|
}
|
|
26827
|
-
function
|
|
26752
|
+
function hR() {
|
|
26828
26753
|
return 0;
|
|
26829
26754
|
}
|
|
26830
26755
|
class mm extends ZS {
|
|
@@ -26871,7 +26796,7 @@ class mm extends ZS {
|
|
|
26871
26796
|
let r = e.resolve(n.from);
|
|
26872
26797
|
for (; r.parent && r.parent.from == r.from; )
|
|
26873
26798
|
r = r.parent;
|
|
26874
|
-
if (
|
|
26799
|
+
if (fR(r, e))
|
|
26875
26800
|
break;
|
|
26876
26801
|
n = this.state.doc.lineAt(r.from);
|
|
26877
26802
|
}
|
|
@@ -26885,13 +26810,13 @@ class mm extends ZS {
|
|
|
26885
26810
|
return DS(this.context.next, this.base, this.pos);
|
|
26886
26811
|
}
|
|
26887
26812
|
}
|
|
26888
|
-
function
|
|
26813
|
+
function fR(t, e) {
|
|
26889
26814
|
for (let n = e; n; n = n.parent)
|
|
26890
26815
|
if (t == n)
|
|
26891
26816
|
return !0;
|
|
26892
26817
|
return !1;
|
|
26893
26818
|
}
|
|
26894
|
-
function
|
|
26819
|
+
function pR(t) {
|
|
26895
26820
|
let e = t.node, n = e.childAfter(e.from), r = e.lastChild;
|
|
26896
26821
|
if (!n)
|
|
26897
26822
|
return null;
|
|
@@ -26909,18 +26834,18 @@ function Cf({ closing: t, align: e = !0, units: n = 1 }) {
|
|
|
26909
26834
|
return (r) => VS(r, e, n, t);
|
|
26910
26835
|
}
|
|
26911
26836
|
function VS(t, e, n, r, o) {
|
|
26912
|
-
let i = t.textAfter, s = i.match(/^\s*/)[0].length, a = r && i.slice(s, s + r.length) == r || o == t.pos + s, l = e ?
|
|
26837
|
+
let i = t.textAfter, s = i.match(/^\s*/)[0].length, a = r && i.slice(s, s + r.length) == r || o == t.pos + s, l = e ? pR(t) : null;
|
|
26913
26838
|
return l ? a ? t.column(l.from) : t.column(l.to) : t.baseIndent + (a ? 0 : t.unit * n);
|
|
26914
26839
|
}
|
|
26915
|
-
const
|
|
26840
|
+
const mR = (t) => t.baseIndent;
|
|
26916
26841
|
function gs({ except: t, units: e = 1 } = {}) {
|
|
26917
26842
|
return (n) => {
|
|
26918
26843
|
let r = t && t.test(n.textAfter);
|
|
26919
26844
|
return n.baseIndent + (r ? 0 : e * n.unit);
|
|
26920
26845
|
};
|
|
26921
26846
|
}
|
|
26922
|
-
const
|
|
26923
|
-
function
|
|
26847
|
+
const gR = 200;
|
|
26848
|
+
function OR() {
|
|
26924
26849
|
return Ue.transactionFilter.of((t) => {
|
|
26925
26850
|
if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete"))
|
|
26926
26851
|
return t;
|
|
@@ -26928,7 +26853,7 @@ function O3() {
|
|
|
26928
26853
|
if (!e.length)
|
|
26929
26854
|
return t;
|
|
26930
26855
|
let n = t.newDoc, { head: r } = t.newSelection.main, o = n.lineAt(r);
|
|
26931
|
-
if (r > o.from +
|
|
26856
|
+
if (r > o.from + gR)
|
|
26932
26857
|
return t;
|
|
26933
26858
|
let i = n.sliceString(o.from, r);
|
|
26934
26859
|
if (!e.some((c) => c.test(i)))
|
|
@@ -26939,10 +26864,10 @@ function O3() {
|
|
|
26939
26864
|
if (u.from == a)
|
|
26940
26865
|
continue;
|
|
26941
26866
|
a = u.from;
|
|
26942
|
-
let d =
|
|
26867
|
+
let d = lR(s, u.from);
|
|
26943
26868
|
if (d == null)
|
|
26944
26869
|
continue;
|
|
26945
|
-
let h = /^\s*/.exec(u.text)[0], f =
|
|
26870
|
+
let h = /^\s*/.exec(u.text)[0], f = aR(s, d);
|
|
26946
26871
|
h != f && l.push({ from: u.from, to: u.from + h.length, insert: f });
|
|
26947
26872
|
}
|
|
26948
26873
|
return l.length ? [t, { changes: l, sequential: !0 }] : t;
|
|
@@ -26998,10 +26923,10 @@ function Ld(t) {
|
|
|
26998
26923
|
return e.length ? e : t.facet(MS);
|
|
26999
26924
|
}
|
|
27000
26925
|
function IS(t, e) {
|
|
27001
|
-
let n = [
|
|
26926
|
+
let n = [vR], r;
|
|
27002
26927
|
return t instanceof Tl && (t.module && n.push(be.styleModule.of(t.module)), r = t.themeType), e != null && e.fallback ? n.push(MS.of(t)) : r ? n.push(Af.computeN([be.darkTheme], (o) => o.facet(be.darkTheme) == (r == "dark") ? [t] : [])) : n.push(Af.of(t)), n;
|
|
27003
26928
|
}
|
|
27004
|
-
class
|
|
26929
|
+
class bR {
|
|
27005
26930
|
constructor(e) {
|
|
27006
26931
|
this.markCache = /* @__PURE__ */ Object.create(null), this.tree = ln(e.state), this.decorations = this.buildDeco(e, Ld(e.state)), this.decoratedTo = e.viewport.to;
|
|
27007
26932
|
}
|
|
@@ -27014,15 +26939,15 @@ class b3 {
|
|
|
27014
26939
|
return Fe.none;
|
|
27015
26940
|
let r = new _s();
|
|
27016
26941
|
for (let { from: o, to: i } of e.visibleRanges)
|
|
27017
|
-
|
|
26942
|
+
eR(this.tree, n, (s, a, l) => {
|
|
27018
26943
|
r.add(s, a, this.markCache[l] || (this.markCache[l] = Fe.mark({ class: l })));
|
|
27019
26944
|
}, o, i);
|
|
27020
26945
|
return r.finish();
|
|
27021
26946
|
}
|
|
27022
26947
|
}
|
|
27023
|
-
const
|
|
26948
|
+
const vR = /* @__PURE__ */ Sl.high(/* @__PURE__ */ Fn.fromClass(bR, {
|
|
27024
26949
|
decorations: (t) => t.decorations
|
|
27025
|
-
})),
|
|
26950
|
+
})), wR = /* @__PURE__ */ Tl.define([
|
|
27026
26951
|
{
|
|
27027
26952
|
tag: P.meta,
|
|
27028
26953
|
color: "#404740"
|
|
@@ -27100,7 +27025,7 @@ const v3 = /* @__PURE__ */ Sl.high(/* @__PURE__ */ Fn.fromClass(b3, {
|
|
|
27100
27025
|
tag: P.invalid,
|
|
27101
27026
|
color: "#f00"
|
|
27102
27027
|
}
|
|
27103
|
-
]),
|
|
27028
|
+
]), yR = /* @__PURE__ */ be.baseTheme({
|
|
27104
27029
|
"&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
|
|
27105
27030
|
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
27106
27031
|
}), WS = 1e4, XS = "()[]{}", jS = /* @__PURE__ */ pe.define({
|
|
@@ -27109,15 +27034,15 @@ const v3 = /* @__PURE__ */ Sl.high(/* @__PURE__ */ Fn.fromClass(b3, {
|
|
|
27109
27034
|
afterCursor: !0,
|
|
27110
27035
|
brackets: XS,
|
|
27111
27036
|
maxScanDistance: WS,
|
|
27112
|
-
renderMatch:
|
|
27037
|
+
renderMatch: xR
|
|
27113
27038
|
});
|
|
27114
27039
|
}
|
|
27115
|
-
}),
|
|
27116
|
-
function
|
|
27117
|
-
let e = [], n = t.matched ?
|
|
27040
|
+
}), SR = /* @__PURE__ */ Fe.mark({ class: "cm-matchingBracket" }), kR = /* @__PURE__ */ Fe.mark({ class: "cm-nonmatchingBracket" });
|
|
27041
|
+
function xR(t) {
|
|
27042
|
+
let e = [], n = t.matched ? SR : kR;
|
|
27118
27043
|
return e.push(n.range(t.start.from, t.start.to)), t.end && e.push(n.range(t.end.from, t.end.to)), e;
|
|
27119
27044
|
}
|
|
27120
|
-
const
|
|
27045
|
+
const PR = /* @__PURE__ */ pr.define({
|
|
27121
27046
|
create() {
|
|
27122
27047
|
return Fe.none;
|
|
27123
27048
|
},
|
|
@@ -27134,12 +27059,12 @@ const P3 = /* @__PURE__ */ pr.define({
|
|
|
27134
27059
|
return Fe.set(n, !0);
|
|
27135
27060
|
},
|
|
27136
27061
|
provide: (t) => be.decorations.from(t)
|
|
27137
|
-
}),
|
|
27138
|
-
|
|
27139
|
-
|
|
27062
|
+
}), _R = [
|
|
27063
|
+
PR,
|
|
27064
|
+
yR
|
|
27140
27065
|
];
|
|
27141
|
-
function
|
|
27142
|
-
return [jS.of(t),
|
|
27066
|
+
function TR(t = {}) {
|
|
27067
|
+
return [jS.of(t), _R];
|
|
27143
27068
|
}
|
|
27144
27069
|
const zS = /* @__PURE__ */ new Ae();
|
|
27145
27070
|
function Rf(t, e, n) {
|
|
@@ -27164,12 +27089,12 @@ function uc(t, e, n, r = {}) {
|
|
|
27164
27089
|
if (c && l.from < l.to) {
|
|
27165
27090
|
let u = Nf(l);
|
|
27166
27091
|
if (u && (n > 0 ? e >= u.from && e < u.to : e > u.from && e <= u.to))
|
|
27167
|
-
return
|
|
27092
|
+
return ER(t, e, n, l, u, c, i);
|
|
27168
27093
|
}
|
|
27169
27094
|
}
|
|
27170
|
-
return $
|
|
27095
|
+
return $R(t, e, n, s, a.type, o, i);
|
|
27171
27096
|
}
|
|
27172
|
-
function
|
|
27097
|
+
function ER(t, e, n, r, o, i, s) {
|
|
27173
27098
|
let a = r.parent, l = { from: o.from, to: o.to }, c = 0, u = a == null ? void 0 : a.cursor();
|
|
27174
27099
|
if (u && (n < 0 ? u.childBefore(r.from) : u.childAfter(r.to)))
|
|
27175
27100
|
do
|
|
@@ -27194,7 +27119,7 @@ function E3(t, e, n, r, o, i, s) {
|
|
|
27194
27119
|
while (n < 0 ? u.prevSibling() : u.nextSibling());
|
|
27195
27120
|
return { start: l, matched: !1 };
|
|
27196
27121
|
}
|
|
27197
|
-
function $
|
|
27122
|
+
function $R(t, e, n, r, o, i, s) {
|
|
27198
27123
|
let a = n < 0 ? t.sliceDoc(e - 1, e) : t.sliceDoc(e, e + 1), l = s.indexOf(a);
|
|
27199
27124
|
if (l < 0 || l % 2 == 0 != n > 0)
|
|
27200
27125
|
return null;
|
|
@@ -27218,7 +27143,7 @@ function $3(t, e, n, r, o, i, s) {
|
|
|
27218
27143
|
}
|
|
27219
27144
|
return u.done ? { start: c, matched: !1 } : null;
|
|
27220
27145
|
}
|
|
27221
|
-
const
|
|
27146
|
+
const QR = /* @__PURE__ */ Object.create(null), $b = [hn.none], Qb = [], Cb = /* @__PURE__ */ Object.create(null), CR = /* @__PURE__ */ Object.create(null);
|
|
27222
27147
|
for (let [t, e] of [
|
|
27223
27148
|
["variable", "variableName"],
|
|
27224
27149
|
["variable-2", "variableName.special"],
|
|
@@ -27233,11 +27158,11 @@ for (let [t, e] of [
|
|
|
27233
27158
|
["header", "heading"],
|
|
27234
27159
|
["property", "propertyName"]
|
|
27235
27160
|
])
|
|
27236
|
-
|
|
27161
|
+
CR[t] = /* @__PURE__ */ AR(QR, e);
|
|
27237
27162
|
function Hd(t, e) {
|
|
27238
27163
|
Qb.indexOf(t) > -1 || (Qb.push(t), console.warn(e));
|
|
27239
27164
|
}
|
|
27240
|
-
function
|
|
27165
|
+
function AR(t, e) {
|
|
27241
27166
|
let n = [];
|
|
27242
27167
|
for (let a of e.split(" ")) {
|
|
27243
27168
|
let l = [];
|
|
@@ -27313,7 +27238,7 @@ function Ab(t) {
|
|
|
27313
27238
|
let e = Object.keys(t).join(""), n = /\w/.test(e);
|
|
27314
27239
|
return n && (e = e.replace(/\w/g, "")), `[${n ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`;
|
|
27315
27240
|
}
|
|
27316
|
-
function
|
|
27241
|
+
function RR(t) {
|
|
27317
27242
|
let e = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
|
|
27318
27243
|
for (let { label: o } of t) {
|
|
27319
27244
|
e[o[0]] = !0;
|
|
@@ -27324,13 +27249,13 @@ function R3(t) {
|
|
|
27324
27249
|
return [new RegExp("^" + r), new RegExp(r)];
|
|
27325
27250
|
}
|
|
27326
27251
|
function US(t) {
|
|
27327
|
-
let e = t.map((o) => typeof o == "string" ? { label: o } : o), [n, r] = e.every((o) => /^\w+$/.test(o.label)) ? [/\w*$/, /\w+$/] :
|
|
27252
|
+
let e = t.map((o) => typeof o == "string" ? { label: o } : o), [n, r] = e.every((o) => /^\w+$/.test(o.label)) ? [/\w*$/, /\w+$/] : RR(e);
|
|
27328
27253
|
return (o) => {
|
|
27329
27254
|
let i = o.matchBefore(r);
|
|
27330
27255
|
return i || o.explicit ? { from: i ? i.from : o.pos, options: e, validFor: n } : null;
|
|
27331
27256
|
};
|
|
27332
27257
|
}
|
|
27333
|
-
function
|
|
27258
|
+
function NR(t, e) {
|
|
27334
27259
|
return (n) => {
|
|
27335
27260
|
for (let r = ln(n.state).resolveInner(n.pos, -1); r; r = r.parent) {
|
|
27336
27261
|
if (t.indexOf(r.name) > -1)
|
|
@@ -27355,7 +27280,7 @@ function YS(t, e) {
|
|
|
27355
27280
|
return !o && !i ? t : new RegExp(`${o ? "^" : ""}(?:${r})${i ? "$" : ""}`, (n = t.flags) !== null && n !== void 0 ? n : t.ignoreCase ? "i" : "");
|
|
27356
27281
|
}
|
|
27357
27282
|
const LS = /* @__PURE__ */ Ui.define();
|
|
27358
|
-
function
|
|
27283
|
+
function ZR(t, e, n, r) {
|
|
27359
27284
|
let { main: o } = t.selection, i = n - o.from, s = r - o.from;
|
|
27360
27285
|
return Object.assign(Object.assign({}, t.changeByRange((a) => a != o && n != r && t.sliceDoc(a.from + i, a.from + s) != t.sliceDoc(n, r) ? { range: a } : {
|
|
27361
27286
|
changes: { from: a.from + i, to: r == o.from ? a.to : a.from + s, insert: e },
|
|
@@ -27363,14 +27288,14 @@ function Z3(t, e, n, r) {
|
|
|
27363
27288
|
})), { scrollIntoView: !0, userEvent: "input.complete" });
|
|
27364
27289
|
}
|
|
27365
27290
|
const Nb = /* @__PURE__ */ new WeakMap();
|
|
27366
|
-
function
|
|
27291
|
+
function DR(t) {
|
|
27367
27292
|
if (!Array.isArray(t))
|
|
27368
27293
|
return t;
|
|
27369
27294
|
let e = Nb.get(t);
|
|
27370
27295
|
return e || Nb.set(t, e = US(t)), e;
|
|
27371
27296
|
}
|
|
27372
27297
|
const du = /* @__PURE__ */ tt.define(), rl = /* @__PURE__ */ tt.define();
|
|
27373
|
-
class
|
|
27298
|
+
class VR {
|
|
27374
27299
|
constructor(e) {
|
|
27375
27300
|
this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
|
|
27376
27301
|
for (let n = 0; n < e.length; ) {
|
|
@@ -27451,7 +27376,7 @@ const Yt = /* @__PURE__ */ pe.define({
|
|
|
27451
27376
|
aboveCursor: !1,
|
|
27452
27377
|
icons: !0,
|
|
27453
27378
|
addToOptions: [],
|
|
27454
|
-
positionInfo:
|
|
27379
|
+
positionInfo: MR,
|
|
27455
27380
|
compareCompletions: (e, n) => e.label.localeCompare(n.label),
|
|
27456
27381
|
interactionDelay: 75,
|
|
27457
27382
|
updateSyncTime: 100
|
|
@@ -27468,7 +27393,7 @@ const Yt = /* @__PURE__ */ pe.define({
|
|
|
27468
27393
|
function Zb(t, e) {
|
|
27469
27394
|
return t ? e ? t + " " + e : t : e;
|
|
27470
27395
|
}
|
|
27471
|
-
function
|
|
27396
|
+
function MR(t, e, n, r, o, i) {
|
|
27472
27397
|
let s = t.textDirection == Pt.RTL, a = s, l = !1, c = "top", u, d, h = e.left - o.left, f = o.right - e.right, p = r.right - r.left, m = r.bottom - r.top;
|
|
27473
27398
|
if (a && h < Math.min(p, f) ? a = !1 : !a && f < Math.min(p, h) && (a = !0), p <= (a ? h : f))
|
|
27474
27399
|
u = Math.max(o.top, Math.min(n.top, o.bottom - m)) - e.top, d = Math.min(400, a ? h : f);
|
|
@@ -27487,7 +27412,7 @@ function M3(t, e, n, r, o, i) {
|
|
|
27487
27412
|
class: "cm-completionInfo-" + (l ? s ? "left-narrow" : "right-narrow" : a ? "left" : "right")
|
|
27488
27413
|
};
|
|
27489
27414
|
}
|
|
27490
|
-
function
|
|
27415
|
+
function IR(t) {
|
|
27491
27416
|
let e = t.addToOptions.slice();
|
|
27492
27417
|
return t.icons && e.push({
|
|
27493
27418
|
render(n) {
|
|
@@ -27529,7 +27454,7 @@ function Bd(t, e, n) {
|
|
|
27529
27454
|
let r = Math.floor((t - e) / n);
|
|
27530
27455
|
return { from: t - (r + 1) * n, to: t - r * n };
|
|
27531
27456
|
}
|
|
27532
|
-
class
|
|
27457
|
+
class WR {
|
|
27533
27458
|
constructor(e, n, r) {
|
|
27534
27459
|
this.view = e, this.stateField = n, this.applyCompletion = r, this.info = null, this.infoDestroy = null, this.placeInfoReq = {
|
|
27535
27460
|
read: () => this.measureInfo(),
|
|
@@ -27537,7 +27462,7 @@ class W3 {
|
|
|
27537
27462
|
key: this
|
|
27538
27463
|
}, this.space = null, this.currentClass = "";
|
|
27539
27464
|
let o = e.state.field(n), { options: i, selected: s } = o.open, a = e.state.facet(Yt);
|
|
27540
|
-
this.optionContent =
|
|
27465
|
+
this.optionContent = IR(a), this.optionClass = a.optionClass, this.tooltipClass = a.tooltipClass, this.range = Bd(i.length, s, a.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => {
|
|
27541
27466
|
let { options: c } = e.state.field(n).open;
|
|
27542
27467
|
for (let u = l.target, d; u && u != this.dom; u = u.parentNode)
|
|
27543
27468
|
if (u.nodeName == "LI" && (d = /-(\d+)$/.exec(u.id)) && +d[1] < c.length) {
|
|
@@ -27608,7 +27533,7 @@ class W3 {
|
|
|
27608
27533
|
let n = null;
|
|
27609
27534
|
for (let r = this.list.firstChild, o = this.range.from; r; r = r.nextSibling, o++)
|
|
27610
27535
|
r.nodeName != "LI" || !r.id ? o-- : o == e ? r.hasAttribute("aria-selected") || (r.setAttribute("aria-selected", "true"), n = r) : r.hasAttribute("aria-selected") && r.removeAttribute("aria-selected");
|
|
27611
|
-
return n &&
|
|
27536
|
+
return n && jR(this.list, n), n;
|
|
27612
27537
|
}
|
|
27613
27538
|
measureInfo() {
|
|
27614
27539
|
let e = this.dom.querySelector("[aria-selected]");
|
|
@@ -27658,17 +27583,17 @@ class W3 {
|
|
|
27658
27583
|
this.destroyInfo();
|
|
27659
27584
|
}
|
|
27660
27585
|
}
|
|
27661
|
-
function
|
|
27662
|
-
return (n) => new
|
|
27586
|
+
function XR(t, e) {
|
|
27587
|
+
return (n) => new WR(n, t, e);
|
|
27663
27588
|
}
|
|
27664
|
-
function
|
|
27589
|
+
function jR(t, e) {
|
|
27665
27590
|
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), o = n.height / t.offsetHeight;
|
|
27666
27591
|
r.top < n.top ? t.scrollTop -= (n.top - r.top) / o : r.bottom > n.bottom && (t.scrollTop += (r.bottom - n.bottom) / o);
|
|
27667
27592
|
}
|
|
27668
27593
|
function Db(t) {
|
|
27669
27594
|
return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0);
|
|
27670
27595
|
}
|
|
27671
|
-
function
|
|
27596
|
+
function zR(t, e) {
|
|
27672
27597
|
let n = [], r = null, o = (l) => {
|
|
27673
27598
|
n.push(l);
|
|
27674
27599
|
let { section: c } = l.completion;
|
|
@@ -27685,7 +27610,7 @@ function z3(t, e) {
|
|
|
27685
27610
|
for (let u of l.result.options)
|
|
27686
27611
|
o(new Rb(u, l.source, c ? c(u) : [], 1e9 - n.length));
|
|
27687
27612
|
else {
|
|
27688
|
-
let u = new
|
|
27613
|
+
let u = new VR(e.sliceDoc(l.from, l.to));
|
|
27689
27614
|
for (let d of l.result.options)
|
|
27690
27615
|
if (u.match(d.label)) {
|
|
27691
27616
|
let h = d.displayLabel ? c ? c(d, u.matched) : [] : u.matched;
|
|
@@ -27720,7 +27645,7 @@ class os {
|
|
|
27720
27645
|
return e == this.selected || e >= this.options.length ? this : new os(this.options, Vb(n, e), this.tooltip, this.timestamp, e, this.disabled);
|
|
27721
27646
|
}
|
|
27722
27647
|
static build(e, n, r, o, i) {
|
|
27723
|
-
let s =
|
|
27648
|
+
let s = zR(e, n);
|
|
27724
27649
|
if (!s.length)
|
|
27725
27650
|
return o && e.some(
|
|
27726
27651
|
(l) => l.state == 1
|
|
@@ -27737,7 +27662,7 @@ class os {
|
|
|
27737
27662
|
}
|
|
27738
27663
|
return new os(s, Vb(r, a), {
|
|
27739
27664
|
pos: e.reduce((l, c) => c.hasResult() ? Math.min(l, c.from) : l, 1e8),
|
|
27740
|
-
create:
|
|
27665
|
+
create: HR,
|
|
27741
27666
|
above: i.aboveCursor
|
|
27742
27667
|
}, o ? o.timestamp : Date.now(), a, !1);
|
|
27743
27668
|
}
|
|
@@ -27750,10 +27675,10 @@ class hu {
|
|
|
27750
27675
|
this.active = e, this.id = n, this.open = r;
|
|
27751
27676
|
}
|
|
27752
27677
|
static start() {
|
|
27753
|
-
return new hu(
|
|
27678
|
+
return new hu(YR, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
27754
27679
|
}
|
|
27755
27680
|
update(e) {
|
|
27756
|
-
let { state: n } = e, r = n.facet(Yt), i = (r.override || n.languageDataAt("autocomplete", Xo(n)).map(
|
|
27681
|
+
let { state: n } = e, r = n.facet(Yt), i = (r.override || n.languageDataAt("autocomplete", Xo(n)).map(DR)).map((a) => (this.active.find((c) => c.source == a) || new vn(
|
|
27757
27682
|
a,
|
|
27758
27683
|
this.active.some(
|
|
27759
27684
|
(c) => c.state != 0
|
|
@@ -27763,7 +27688,7 @@ class hu {
|
|
|
27763
27688
|
)).update(e, r));
|
|
27764
27689
|
i.length == this.active.length && i.every((a, l) => a == this.active[l]) && (i = this.active);
|
|
27765
27690
|
let s = this.open;
|
|
27766
|
-
s && e.docChanged && (s = s.map(e.changes)), e.selection || i.some((a) => a.hasResult() && e.changes.touchesRange(a.from, a.to)) || !
|
|
27691
|
+
s && e.docChanged && (s = s.map(e.changes)), e.selection || i.some((a) => a.hasResult() && e.changes.touchesRange(a.from, a.to)) || !qR(i, this.active) ? s = os.build(i, n, this.id, s, r) : s && s.disabled && !i.some(
|
|
27767
27692
|
(a) => a.state == 1
|
|
27768
27693
|
/* State.Pending */
|
|
27769
27694
|
) && (s = null), !s && i.every(
|
|
@@ -27782,10 +27707,10 @@ class hu {
|
|
|
27782
27707
|
return this.open ? this.open.tooltip : null;
|
|
27783
27708
|
}
|
|
27784
27709
|
get attrs() {
|
|
27785
|
-
return this.open ? this.open.attrs :
|
|
27710
|
+
return this.open ? this.open.attrs : UR;
|
|
27786
27711
|
}
|
|
27787
27712
|
}
|
|
27788
|
-
function
|
|
27713
|
+
function qR(t, e) {
|
|
27789
27714
|
if (t == e)
|
|
27790
27715
|
return !0;
|
|
27791
27716
|
for (let n = 0, r = 0; ; ) {
|
|
@@ -27800,7 +27725,7 @@ function q3(t, e) {
|
|
|
27800
27725
|
return !1;
|
|
27801
27726
|
}
|
|
27802
27727
|
}
|
|
27803
|
-
const
|
|
27728
|
+
const UR = {
|
|
27804
27729
|
"aria-autocomplete": "list"
|
|
27805
27730
|
};
|
|
27806
27731
|
function Vb(t, e) {
|
|
@@ -27811,7 +27736,7 @@ function Vb(t, e) {
|
|
|
27811
27736
|
};
|
|
27812
27737
|
return e > -1 && (n["aria-activedescendant"] = t + "-" + e), n;
|
|
27813
27738
|
}
|
|
27814
|
-
const
|
|
27739
|
+
const YR = [];
|
|
27815
27740
|
function Zf(t) {
|
|
27816
27741
|
return t.isUserEvent("input.type") ? "input" : t.isUserEvent("delete.backward") ? "delete" : null;
|
|
27817
27742
|
}
|
|
@@ -27878,7 +27803,7 @@ class Os extends vn {
|
|
|
27878
27803
|
/* State.Inactive */
|
|
27879
27804
|
);
|
|
27880
27805
|
let l = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos), c;
|
|
27881
|
-
return
|
|
27806
|
+
return LR(this.result.validFor, e.state, i, s) ? new Os(this.source, l, this.result, i, s) : this.result.update && (c = this.result.update(this.result, i, s, new qS(e.state, a, l >= 0))) ? new Os(this.source, l, c, c.from, (o = c.to) !== null && o !== void 0 ? o : Xo(e.state)) : new vn(this.source, 1, l);
|
|
27882
27807
|
}
|
|
27883
27808
|
handleChange(e) {
|
|
27884
27809
|
return e.changes.touchesRange(this.from, this.to) ? new vn(
|
|
@@ -27891,7 +27816,7 @@ class Os extends vn {
|
|
|
27891
27816
|
return e.empty ? this : new Os(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1));
|
|
27892
27817
|
}
|
|
27893
27818
|
}
|
|
27894
|
-
function
|
|
27819
|
+
function LR(t, e, n, r) {
|
|
27895
27820
|
if (!t)
|
|
27896
27821
|
return !1;
|
|
27897
27822
|
let o = e.sliceDoc(n, r);
|
|
@@ -27916,9 +27841,9 @@ const HS = /* @__PURE__ */ tt.define({
|
|
|
27916
27841
|
function FS(t, e) {
|
|
27917
27842
|
const n = e.completion.apply || e.completion.label;
|
|
27918
27843
|
let r = t.state.field(Qn).active.find((o) => o.source == e.source);
|
|
27919
|
-
return r instanceof Os ? (typeof n == "string" ? t.dispatch(Object.assign(Object.assign({},
|
|
27844
|
+
return r instanceof Os ? (typeof n == "string" ? t.dispatch(Object.assign(Object.assign({}, ZR(t.state, n, r.from, r.to)), { annotations: LS.of(e.completion) })) : n(t, e.completion, r.from, r.to), !0) : !1;
|
|
27920
27845
|
}
|
|
27921
|
-
const
|
|
27846
|
+
const HR = /* @__PURE__ */ XR(Qn, FS);
|
|
27922
27847
|
function dc(t, e = "option") {
|
|
27923
27848
|
return (n) => {
|
|
27924
27849
|
let r = n.state.field(Qn, !1);
|
|
@@ -27930,22 +27855,22 @@ function dc(t, e = "option") {
|
|
|
27930
27855
|
return a < 0 ? a = e == "page" ? 0 : s - 1 : a >= s && (a = e == "page" ? s - 1 : 0), n.dispatch({ effects: BS.of(a) }), !0;
|
|
27931
27856
|
};
|
|
27932
27857
|
}
|
|
27933
|
-
const
|
|
27858
|
+
const BR = (t) => {
|
|
27934
27859
|
let e = t.state.field(Qn, !1);
|
|
27935
27860
|
return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(Yt).interactionDelay ? !1 : FS(t, e.open.options[e.open.selected]);
|
|
27936
|
-
},
|
|
27861
|
+
}, FR = (t) => t.state.field(Qn, !1) ? (t.dispatch({ effects: du.of(!0) }), !0) : !1, GR = (t) => {
|
|
27937
27862
|
let e = t.state.field(Qn, !1);
|
|
27938
27863
|
return !e || !e.active.some(
|
|
27939
27864
|
(n) => n.state != 0
|
|
27940
27865
|
/* State.Inactive */
|
|
27941
27866
|
) ? !1 : (t.dispatch({ effects: rl.of(null) }), !0);
|
|
27942
27867
|
};
|
|
27943
|
-
class
|
|
27868
|
+
class KR {
|
|
27944
27869
|
constructor(e, n) {
|
|
27945
27870
|
this.active = e, this.context = n, this.time = Date.now(), this.updates = [], this.done = void 0;
|
|
27946
27871
|
}
|
|
27947
27872
|
}
|
|
27948
|
-
const
|
|
27873
|
+
const JR = 50, e3 = 1e3, t3 = /* @__PURE__ */ Fn.fromClass(class {
|
|
27949
27874
|
constructor(t) {
|
|
27950
27875
|
this.view = t, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
|
|
27951
27876
|
for (let e of t.state.field(Qn).active)
|
|
@@ -27958,7 +27883,7 @@ const J3 = 50, eR = 1e3, tR = /* @__PURE__ */ Fn.fromClass(class {
|
|
|
27958
27883
|
let n = t.transactions.some((o) => (o.selection || o.docChanged) && !Zf(o));
|
|
27959
27884
|
for (let o = 0; o < this.running.length; o++) {
|
|
27960
27885
|
let i = this.running[o];
|
|
27961
|
-
if (n || i.updates.length + t.transactions.length >
|
|
27886
|
+
if (n || i.updates.length + t.transactions.length > JR && Date.now() - i.time > e3) {
|
|
27962
27887
|
for (let s of i.context.abortListeners)
|
|
27963
27888
|
try {
|
|
27964
27889
|
s();
|
|
@@ -27982,7 +27907,7 @@ const J3 = 50, eR = 1e3, tR = /* @__PURE__ */ Fn.fromClass(class {
|
|
|
27982
27907
|
n.state == 1 && !this.running.some((r) => r.active.source == n.source) && this.startQuery(n);
|
|
27983
27908
|
}
|
|
27984
27909
|
startQuery(t) {
|
|
27985
|
-
let { state: e } = this.view, n = Xo(e), r = new qS(e, n, t.explicitPos == n), o = new
|
|
27910
|
+
let { state: e } = this.view, n = Xo(e), r = new qS(e, n, t.explicitPos == n), o = new KR(t, r);
|
|
27986
27911
|
this.running.push(o), Promise.resolve(t.source(r)).then((i) => {
|
|
27987
27912
|
o.context.aborted || (o.done = i || null, this.scheduleAccept());
|
|
27988
27913
|
}, (i) => {
|
|
@@ -28166,7 +28091,7 @@ const J3 = 50, eR = 1e3, tR = /* @__PURE__ */ Fn.fromClass(class {
|
|
|
28166
28091
|
"&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" }
|
|
28167
28092
|
}
|
|
28168
28093
|
});
|
|
28169
|
-
class
|
|
28094
|
+
class n3 {
|
|
28170
28095
|
constructor(e, n, r, o) {
|
|
28171
28096
|
this.field = e, this.line = n, this.from = r, this.to = o;
|
|
28172
28097
|
}
|
|
@@ -28213,7 +28138,7 @@ class Om {
|
|
|
28213
28138
|
for (let d of o)
|
|
28214
28139
|
d.field >= c && d.field++;
|
|
28215
28140
|
}
|
|
28216
|
-
o.push(new
|
|
28141
|
+
o.push(new n3(c, r.length, i.index, i.index + l.length)), s = s.slice(0, i.index) + l + s.slice(i.index + i[0].length);
|
|
28217
28142
|
}
|
|
28218
28143
|
for (let a; a = /\\([{}])/.exec(s); ) {
|
|
28219
28144
|
s = s.slice(0, a.index) + a[1] + s.slice(a.index + a[0].length);
|
|
@@ -28225,7 +28150,7 @@ class Om {
|
|
|
28225
28150
|
return new Om(r, o);
|
|
28226
28151
|
}
|
|
28227
28152
|
}
|
|
28228
|
-
let
|
|
28153
|
+
let r3 = /* @__PURE__ */ Fe.widget({ widget: /* @__PURE__ */ new class extends Xs {
|
|
28229
28154
|
toDOM() {
|
|
28230
28155
|
let t = document.createElement("span");
|
|
28231
28156
|
return t.className = "cm-snippetFieldPosition", t;
|
|
@@ -28233,10 +28158,10 @@ let rR = /* @__PURE__ */ Fe.widget({ widget: /* @__PURE__ */ new class extends X
|
|
|
28233
28158
|
ignoreEvent() {
|
|
28234
28159
|
return !1;
|
|
28235
28160
|
}
|
|
28236
|
-
}() }),
|
|
28161
|
+
}() }), o3 = /* @__PURE__ */ Fe.mark({ class: "cm-snippetField" });
|
|
28237
28162
|
class qs {
|
|
28238
28163
|
constructor(e, n) {
|
|
28239
|
-
this.ranges = e, this.active = n, this.deco = Fe.set(e.map((r) => (r.from == r.to ?
|
|
28164
|
+
this.ranges = e, this.active = n, this.deco = Fe.set(e.map((r) => (r.from == r.to ? r3 : o3).range(r.from, r.to)));
|
|
28240
28165
|
}
|
|
28241
28166
|
map(e) {
|
|
28242
28167
|
let n = [];
|
|
@@ -28256,7 +28181,7 @@ const El = /* @__PURE__ */ tt.define({
|
|
|
28256
28181
|
map(t, e) {
|
|
28257
28182
|
return t && t.map(e);
|
|
28258
28183
|
}
|
|
28259
|
-
}),
|
|
28184
|
+
}), i3 = /* @__PURE__ */ tt.define(), ol = /* @__PURE__ */ pr.define({
|
|
28260
28185
|
create() {
|
|
28261
28186
|
return null;
|
|
28262
28187
|
},
|
|
@@ -28264,7 +28189,7 @@ const El = /* @__PURE__ */ tt.define({
|
|
|
28264
28189
|
for (let n of e.effects) {
|
|
28265
28190
|
if (n.is(El))
|
|
28266
28191
|
return n.value;
|
|
28267
|
-
if (n.is(
|
|
28192
|
+
if (n.is(i3) && t)
|
|
28268
28193
|
return new qs(t.ranges, n.value);
|
|
28269
28194
|
}
|
|
28270
28195
|
return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t;
|
|
@@ -28274,7 +28199,7 @@ const El = /* @__PURE__ */ tt.define({
|
|
|
28274
28199
|
function bm(t, e) {
|
|
28275
28200
|
return ne.create(t.filter((n) => n.field == e).map((n) => ne.range(n.from, n.to)));
|
|
28276
28201
|
}
|
|
28277
|
-
function
|
|
28202
|
+
function s3(t) {
|
|
28278
28203
|
let e = Om.parse(t);
|
|
28279
28204
|
return (n, r, o, i) => {
|
|
28280
28205
|
let { text: s, ranges: a } = e.instantiate(n.state, o), l = {
|
|
@@ -28284,7 +28209,7 @@ function sR(t) {
|
|
|
28284
28209
|
};
|
|
28285
28210
|
if (a.length && (l.selection = bm(a, 0)), a.some((c) => c.field > 0)) {
|
|
28286
28211
|
let c = new qs(a, 0), u = l.effects = [El.of(c)];
|
|
28287
|
-
n.state.field(ol, !1) === void 0 && u.push(tt.appendConfig.of([ol,
|
|
28212
|
+
n.state.field(ol, !1) === void 0 && u.push(tt.appendConfig.of([ol, d3, h3, GS]));
|
|
28288
28213
|
}
|
|
28289
28214
|
n.dispatch(n.state.update(l));
|
|
28290
28215
|
};
|
|
@@ -28302,18 +28227,18 @@ function KS(t) {
|
|
|
28302
28227
|
})), !0;
|
|
28303
28228
|
};
|
|
28304
28229
|
}
|
|
28305
|
-
const
|
|
28306
|
-
{ key: "Tab", run:
|
|
28307
|
-
{ key: "Escape", run:
|
|
28230
|
+
const a3 = ({ state: t, dispatch: e }) => t.field(ol, !1) ? (e(t.update({ effects: El.of(null) })), !0) : !1, l3 = /* @__PURE__ */ KS(1), c3 = /* @__PURE__ */ KS(-1), u3 = [
|
|
28231
|
+
{ key: "Tab", run: l3, shift: c3 },
|
|
28232
|
+
{ key: "Escape", run: a3 }
|
|
28308
28233
|
], Mb = /* @__PURE__ */ pe.define({
|
|
28309
28234
|
combine(t) {
|
|
28310
|
-
return t.length ? t[0] :
|
|
28235
|
+
return t.length ? t[0] : u3;
|
|
28311
28236
|
}
|
|
28312
|
-
}),
|
|
28237
|
+
}), d3 = /* @__PURE__ */ Sl.highest(/* @__PURE__ */ el.compute([Mb], (t) => t.facet(Mb)));
|
|
28313
28238
|
function gn(t, e) {
|
|
28314
|
-
return Object.assign(Object.assign({}, e), { apply:
|
|
28239
|
+
return Object.assign(Object.assign({}, e), { apply: s3(t) });
|
|
28315
28240
|
}
|
|
28316
|
-
const
|
|
28241
|
+
const h3 = /* @__PURE__ */ be.domEventHandlers({
|
|
28317
28242
|
mousedown(t, e) {
|
|
28318
28243
|
let n = e.state.field(ol, !1), r;
|
|
28319
28244
|
if (!n || (r = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null)
|
|
@@ -28352,8 +28277,8 @@ const JS = /* @__PURE__ */ pr.define({
|
|
|
28352
28277
|
return t;
|
|
28353
28278
|
}
|
|
28354
28279
|
});
|
|
28355
|
-
function
|
|
28356
|
-
return [
|
|
28280
|
+
function f3() {
|
|
28281
|
+
return [m3, JS];
|
|
28357
28282
|
}
|
|
28358
28283
|
const Fd = "()[]{}<>";
|
|
28359
28284
|
function ek(t) {
|
|
@@ -28365,20 +28290,20 @@ function ek(t) {
|
|
|
28365
28290
|
function tk(t, e) {
|
|
28366
28291
|
return t.languageDataAt("closeBrackets", e)[0] || il;
|
|
28367
28292
|
}
|
|
28368
|
-
const
|
|
28369
|
-
if ((
|
|
28293
|
+
const p3 = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), m3 = /* @__PURE__ */ be.inputHandler.of((t, e, n, r) => {
|
|
28294
|
+
if ((p3 ? t.composing : t.compositionStarted) || t.state.readOnly)
|
|
28370
28295
|
return !1;
|
|
28371
28296
|
let o = t.state.selection.main;
|
|
28372
28297
|
if (r.length > 2 || r.length == 2 && nr(en(r, 0)) == 1 || e != o.from || n != o.to)
|
|
28373
28298
|
return !1;
|
|
28374
|
-
let i =
|
|
28299
|
+
let i = b3(t.state, r);
|
|
28375
28300
|
return i ? (t.dispatch(i), !0) : !1;
|
|
28376
|
-
}),
|
|
28301
|
+
}), g3 = ({ state: t, dispatch: e }) => {
|
|
28377
28302
|
if (t.readOnly)
|
|
28378
28303
|
return !1;
|
|
28379
28304
|
let r = tk(t, t.selection.main.head).brackets || il.brackets, o = null, i = t.changeByRange((s) => {
|
|
28380
28305
|
if (s.empty) {
|
|
28381
|
-
let a =
|
|
28306
|
+
let a = v3(t.doc, s.head);
|
|
28382
28307
|
for (let l of r)
|
|
28383
28308
|
if (l == a && ld(t.doc, s.head) == ek(en(l, 0)))
|
|
28384
28309
|
return {
|
|
@@ -28389,17 +28314,17 @@ const pR = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
28389
28314
|
return { range: o = s };
|
|
28390
28315
|
});
|
|
28391
28316
|
return o || e(t.update(i, { scrollIntoView: !0, userEvent: "delete.backward" })), !o;
|
|
28392
|
-
},
|
|
28393
|
-
{ key: "Backspace", run:
|
|
28317
|
+
}, O3 = [
|
|
28318
|
+
{ key: "Backspace", run: g3 }
|
|
28394
28319
|
];
|
|
28395
|
-
function
|
|
28320
|
+
function b3(t, e) {
|
|
28396
28321
|
let n = tk(t, t.selection.main.head), r = n.brackets || il.brackets;
|
|
28397
28322
|
for (let o of r) {
|
|
28398
28323
|
let i = ek(en(o, 0));
|
|
28399
28324
|
if (e == o)
|
|
28400
|
-
return i == o ?
|
|
28325
|
+
return i == o ? S3(t, o, r.indexOf(o + o + o) > -1, n) : w3(t, o, i, n.before || il.before);
|
|
28401
28326
|
if (e == i && nk(t, t.selection.main.from))
|
|
28402
|
-
return
|
|
28327
|
+
return y3(t, o, i);
|
|
28403
28328
|
}
|
|
28404
28329
|
return null;
|
|
28405
28330
|
}
|
|
@@ -28413,11 +28338,11 @@ function ld(t, e) {
|
|
|
28413
28338
|
let n = t.sliceString(e, e + 2);
|
|
28414
28339
|
return n.slice(0, nr(en(n, 0)));
|
|
28415
28340
|
}
|
|
28416
|
-
function
|
|
28341
|
+
function v3(t, e) {
|
|
28417
28342
|
let n = t.sliceString(e - 2, e);
|
|
28418
28343
|
return nr(en(n, 0)) == n.length ? n : n.slice(1);
|
|
28419
28344
|
}
|
|
28420
|
-
function
|
|
28345
|
+
function w3(t, e, n, r) {
|
|
28421
28346
|
let o = null, i = t.changeByRange((s) => {
|
|
28422
28347
|
if (!s.empty)
|
|
28423
28348
|
return {
|
|
@@ -28437,7 +28362,7 @@ function wR(t, e, n, r) {
|
|
|
28437
28362
|
userEvent: "input.type"
|
|
28438
28363
|
});
|
|
28439
28364
|
}
|
|
28440
|
-
function
|
|
28365
|
+
function y3(t, e, n) {
|
|
28441
28366
|
let r = null, o = t.changeByRange((i) => i.empty && ld(t.doc, i.head) == n ? {
|
|
28442
28367
|
changes: { from: i.head, to: i.head + n.length, insert: n },
|
|
28443
28368
|
range: ne.cursor(i.head + n.length)
|
|
@@ -28447,7 +28372,7 @@ function yR(t, e, n) {
|
|
|
28447
28372
|
userEvent: "input.type"
|
|
28448
28373
|
});
|
|
28449
28374
|
}
|
|
28450
|
-
function
|
|
28375
|
+
function S3(t, e, n, r) {
|
|
28451
28376
|
let o = r.stringPrefixes || il.stringPrefixes, i = null, s = t.changeByRange((a) => {
|
|
28452
28377
|
if (!a.empty)
|
|
28453
28378
|
return {
|
|
@@ -28477,7 +28402,7 @@ function SR(t, e, n, r) {
|
|
|
28477
28402
|
effects: mi.of(l + e.length),
|
|
28478
28403
|
range: ne.cursor(l + e.length)
|
|
28479
28404
|
};
|
|
28480
|
-
if (t.charCategorizer(l)(c) != jn.Word && Wb(t, l, o) > -1 && !
|
|
28405
|
+
if (t.charCategorizer(l)(c) != jn.Word && Wb(t, l, o) > -1 && !k3(t, l, e, o))
|
|
28481
28406
|
return {
|
|
28482
28407
|
changes: { insert: e + e, from: l },
|
|
28483
28408
|
effects: mi.of(l + e.length),
|
|
@@ -28495,7 +28420,7 @@ function Ib(t, e) {
|
|
|
28495
28420
|
let n = ln(t).resolveInner(e + 1);
|
|
28496
28421
|
return n.parent && n.from == e;
|
|
28497
28422
|
}
|
|
28498
|
-
function
|
|
28423
|
+
function k3(t, e, n, r) {
|
|
28499
28424
|
let o = ln(t).resolveInner(e, -1), i = r.reduce((s, a) => Math.max(s, a.length), 0);
|
|
28500
28425
|
for (let s = 0; s < 5; s++) {
|
|
28501
28426
|
let a = t.sliceDoc(o.from, Math.min(o.to, o.from + n.length + i)), l = a.indexOf(n);
|
|
@@ -28526,24 +28451,24 @@ function Wb(t, e, n) {
|
|
|
28526
28451
|
}
|
|
28527
28452
|
return -1;
|
|
28528
28453
|
}
|
|
28529
|
-
function
|
|
28454
|
+
function x3(t = {}) {
|
|
28530
28455
|
return [
|
|
28531
28456
|
Qn,
|
|
28532
28457
|
Yt.of(t),
|
|
28533
|
-
|
|
28534
|
-
|
|
28458
|
+
t3,
|
|
28459
|
+
P3,
|
|
28535
28460
|
GS
|
|
28536
28461
|
];
|
|
28537
28462
|
}
|
|
28538
28463
|
const rk = [
|
|
28539
|
-
{ key: "Ctrl-Space", run:
|
|
28540
|
-
{ key: "Escape", run:
|
|
28464
|
+
{ key: "Ctrl-Space", run: FR },
|
|
28465
|
+
{ key: "Escape", run: GR },
|
|
28541
28466
|
{ key: "ArrowDown", run: /* @__PURE__ */ dc(!0) },
|
|
28542
28467
|
{ key: "ArrowUp", run: /* @__PURE__ */ dc(!1) },
|
|
28543
28468
|
{ key: "PageDown", run: /* @__PURE__ */ dc(!0, "page") },
|
|
28544
28469
|
{ key: "PageUp", run: /* @__PURE__ */ dc(!1, "page") },
|
|
28545
|
-
{ key: "Enter", run:
|
|
28546
|
-
],
|
|
28470
|
+
{ key: "Enter", run: BR }
|
|
28471
|
+
], P3 = /* @__PURE__ */ Sl.highest(/* @__PURE__ */ el.computeN([Yt], (t) => t.facet(Yt).defaultKeymap ? [rk] : []));
|
|
28547
28472
|
class fu {
|
|
28548
28473
|
/**
|
|
28549
28474
|
@internal
|
|
@@ -28711,7 +28636,7 @@ class fu {
|
|
|
28711
28636
|
given token when it applies.
|
|
28712
28637
|
*/
|
|
28713
28638
|
canShift(e) {
|
|
28714
|
-
for (let n = new
|
|
28639
|
+
for (let n = new _3(this); ; ) {
|
|
28715
28640
|
let r = this.p.parser.stateSlot(
|
|
28716
28641
|
n.state,
|
|
28717
28642
|
4
|
|
@@ -28915,7 +28840,7 @@ class Xb {
|
|
|
28915
28840
|
this.tracker = e, this.context = n, this.hash = e.strict ? e.hash(n) : 0;
|
|
28916
28841
|
}
|
|
28917
28842
|
}
|
|
28918
|
-
class
|
|
28843
|
+
class _3 {
|
|
28919
28844
|
constructor(e) {
|
|
28920
28845
|
this.start = e, this.state = e.state, this.stack = e.stack, this.base = this.stack.length;
|
|
28921
28846
|
}
|
|
@@ -28984,7 +28909,7 @@ class Rc {
|
|
|
28984
28909
|
}
|
|
28985
28910
|
}
|
|
28986
28911
|
const jb = new Rc();
|
|
28987
|
-
class
|
|
28912
|
+
class T3 {
|
|
28988
28913
|
/**
|
|
28989
28914
|
@internal
|
|
28990
28915
|
*/
|
|
@@ -29180,7 +29105,7 @@ function ok(t, e, n, r, o, i) {
|
|
|
29180
29105
|
for (let f = s + 3; f < c; f += 2)
|
|
29181
29106
|
if ((t[f + 1] & a) > 0) {
|
|
29182
29107
|
let p = t[f];
|
|
29183
|
-
if (l.allows(p) && (e.token.value == -1 || e.token.value == p ||
|
|
29108
|
+
if (l.allows(p) && (e.token.value == -1 || e.token.value == p || E3(p, e.token.value, o, i))) {
|
|
29184
29109
|
e.acceptToken(p);
|
|
29185
29110
|
break;
|
|
29186
29111
|
}
|
|
@@ -29210,7 +29135,7 @@ function zb(t, e, n) {
|
|
|
29210
29135
|
return r - e;
|
|
29211
29136
|
return -1;
|
|
29212
29137
|
}
|
|
29213
|
-
function
|
|
29138
|
+
function E3(t, e, n, r) {
|
|
29214
29139
|
let o = zb(n, r, e);
|
|
29215
29140
|
return o < 0 || zb(n, r, t) < o;
|
|
29216
29141
|
}
|
|
@@ -29237,7 +29162,7 @@ function qb(t, e, n) {
|
|
|
29237
29162
|
return n < 0 ? 0 : t.length;
|
|
29238
29163
|
}
|
|
29239
29164
|
}
|
|
29240
|
-
class $
|
|
29165
|
+
class $3 {
|
|
29241
29166
|
constructor(e, n) {
|
|
29242
29167
|
this.fragments = e, this.nodeSet = n, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment();
|
|
29243
29168
|
}
|
|
@@ -29287,7 +29212,7 @@ class $R {
|
|
|
29287
29212
|
}
|
|
29288
29213
|
}
|
|
29289
29214
|
}
|
|
29290
|
-
class
|
|
29215
|
+
class Q3 {
|
|
29291
29216
|
constructor(e, n) {
|
|
29292
29217
|
this.stream = n, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((r) => new Rc());
|
|
29293
29218
|
}
|
|
@@ -29358,11 +29283,11 @@ class QR {
|
|
|
29358
29283
|
return o;
|
|
29359
29284
|
}
|
|
29360
29285
|
}
|
|
29361
|
-
class
|
|
29286
|
+
class C3 {
|
|
29362
29287
|
constructor(e, n, r, o) {
|
|
29363
|
-
this.parser = e, this.input = n, this.ranges = o, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new
|
|
29288
|
+
this.parser = e, this.input = n, this.ranges = o, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new T3(n, o), this.tokens = new Q3(e, this.stream), this.topTerm = e.top[1];
|
|
29364
29289
|
let { from: i } = o[0];
|
|
29365
|
-
this.stacks = [fu.start(this, e.top[0], i)], this.fragments = r.length && this.stream.end - i > e.bufferLength * 4 ? new $
|
|
29290
|
+
this.stacks = [fu.start(this, e.top[0], i)], this.fragments = r.length && this.stream.end - i > e.bufferLength * 4 ? new $3(r, e.nodeSet) : null;
|
|
29366
29291
|
}
|
|
29367
29292
|
get parsedPos() {
|
|
29368
29293
|
return this.minStackPos;
|
|
@@ -29399,7 +29324,7 @@ class CR {
|
|
|
29399
29324
|
}
|
|
29400
29325
|
}
|
|
29401
29326
|
if (!r.length) {
|
|
29402
|
-
let s = o &&
|
|
29327
|
+
let s = o && R3(o);
|
|
29403
29328
|
if (s)
|
|
29404
29329
|
return Pn && console.log("Finish with " + this.stackID(s)), this.stackToTree(s);
|
|
29405
29330
|
if (this.parser.strict)
|
|
@@ -29551,7 +29476,7 @@ function Ub(t, e) {
|
|
|
29551
29476
|
}
|
|
29552
29477
|
e.push(t);
|
|
29553
29478
|
}
|
|
29554
|
-
class
|
|
29479
|
+
class A3 {
|
|
29555
29480
|
constructor(e, n, r) {
|
|
29556
29481
|
this.source = e, this.flags = n, this.disabled = r;
|
|
29557
29482
|
}
|
|
@@ -29616,7 +29541,7 @@ class Ko extends $S {
|
|
|
29616
29541
|
this.specializers = this.specializerSpecs.map(Yb), this.states = va(e.states, Uint32Array), this.data = va(e.stateData), this.goto = va(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((a) => typeof a == "number" ? new bs(s, a) : a), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
|
|
29617
29542
|
}
|
|
29618
29543
|
createParse(e, n, r) {
|
|
29619
|
-
let o = new
|
|
29544
|
+
let o = new C3(this, e, n, r);
|
|
29620
29545
|
for (let i of this.wrappers)
|
|
29621
29546
|
o = i(o, e, n, r);
|
|
29622
29547
|
return o;
|
|
@@ -29806,7 +29731,7 @@ class Ko extends $S {
|
|
|
29806
29731
|
if (!r[i])
|
|
29807
29732
|
for (let s = this.dialects[n[i]], a; (a = this.data[s++]) != 65535; )
|
|
29808
29733
|
(o || (o = new Uint8Array(this.maxTerm + 1)))[a] = 1;
|
|
29809
|
-
return new
|
|
29734
|
+
return new A3(e, r, o);
|
|
29810
29735
|
}
|
|
29811
29736
|
/**
|
|
29812
29737
|
Used by the output of the parser generator. Not available to
|
|
@@ -29819,7 +29744,7 @@ class Ko extends $S {
|
|
|
29819
29744
|
function Lr(t, e) {
|
|
29820
29745
|
return t[e] | t[e + 1] << 16;
|
|
29821
29746
|
}
|
|
29822
|
-
function
|
|
29747
|
+
function R3(t) {
|
|
29823
29748
|
let e = null;
|
|
29824
29749
|
for (let n of t) {
|
|
29825
29750
|
let r = n.p.stoppedAt;
|
|
@@ -29838,7 +29763,7 @@ function Yb(t) {
|
|
|
29838
29763
|
}
|
|
29839
29764
|
return t.get;
|
|
29840
29765
|
}
|
|
29841
|
-
const
|
|
29766
|
+
const N3 = 99, Lb = 1, Z3 = 100, D3 = 101, Hb = 2, ik = [
|
|
29842
29767
|
9,
|
|
29843
29768
|
10,
|
|
29844
29769
|
11,
|
|
@@ -29864,41 +29789,41 @@ const NR = 99, Lb = 1, ZR = 100, DR = 101, Hb = 2, ik = [
|
|
|
29864
29789
|
8239,
|
|
29865
29790
|
8287,
|
|
29866
29791
|
12288
|
|
29867
|
-
],
|
|
29792
|
+
], V3 = 58, M3 = 40, sk = 95, I3 = 91, Nc = 45, W3 = 46, X3 = 35, j3 = 37, z3 = 38, q3 = 92, U3 = 10;
|
|
29868
29793
|
function sl(t) {
|
|
29869
29794
|
return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 161;
|
|
29870
29795
|
}
|
|
29871
29796
|
function ak(t) {
|
|
29872
29797
|
return t >= 48 && t <= 57;
|
|
29873
29798
|
}
|
|
29874
|
-
const
|
|
29799
|
+
const Y3 = new fn((t, e) => {
|
|
29875
29800
|
for (let n = !1, r = 0, o = 0; ; o++) {
|
|
29876
29801
|
let { next: i } = t;
|
|
29877
29802
|
if (sl(i) || i == Nc || i == sk || n && ak(i))
|
|
29878
29803
|
!n && (i != Nc || o > 0) && (n = !0), r === o && i == Nc && r++, t.advance();
|
|
29879
|
-
else if (i ==
|
|
29804
|
+
else if (i == q3 && t.peek(1) != U3)
|
|
29880
29805
|
t.advance(), t.next > -1 && t.advance(), n = !0;
|
|
29881
29806
|
else {
|
|
29882
|
-
n && t.acceptToken(i ==
|
|
29807
|
+
n && t.acceptToken(i == M3 ? Z3 : r == 2 && e.canShift(Hb) ? Hb : D3);
|
|
29883
29808
|
break;
|
|
29884
29809
|
}
|
|
29885
29810
|
}
|
|
29886
|
-
}),
|
|
29811
|
+
}), L3 = new fn((t) => {
|
|
29887
29812
|
if (ik.includes(t.peek(-1))) {
|
|
29888
29813
|
let { next: e } = t;
|
|
29889
|
-
(sl(e) || e == sk || e ==
|
|
29814
|
+
(sl(e) || e == sk || e == X3 || e == W3 || e == I3 || e == V3 && sl(t.peek(1)) || e == Nc || e == z3) && t.acceptToken(N3);
|
|
29890
29815
|
}
|
|
29891
|
-
}),
|
|
29816
|
+
}), H3 = new fn((t) => {
|
|
29892
29817
|
if (!ik.includes(t.peek(-1))) {
|
|
29893
29818
|
let { next: e } = t;
|
|
29894
|
-
if (e ==
|
|
29819
|
+
if (e == j3 && (t.advance(), t.acceptToken(Lb)), sl(e)) {
|
|
29895
29820
|
do
|
|
29896
29821
|
t.advance();
|
|
29897
29822
|
while (sl(t.next) || ak(t.next));
|
|
29898
29823
|
t.acceptToken(Lb);
|
|
29899
29824
|
}
|
|
29900
29825
|
}
|
|
29901
|
-
}),
|
|
29826
|
+
}), B3 = js({
|
|
29902
29827
|
"AtKeyword import charset namespace keyframes media supports": P.definitionKeyword,
|
|
29903
29828
|
"from to selector": P.keyword,
|
|
29904
29829
|
NamespaceName: P.namespace,
|
|
@@ -29931,7 +29856,7 @@ const YR = new fn((t, e) => {
|
|
|
29931
29856
|
"( )": P.paren,
|
|
29932
29857
|
"[ ]": P.squareBracket,
|
|
29933
29858
|
"{ }": P.brace
|
|
29934
|
-
}),
|
|
29859
|
+
}), F3 = { __proto__: null, lang: 32, "nth-child": 32, "nth-last-child": 32, "nth-of-type": 32, "nth-last-of-type": 32, dir: 32, "host-context": 32, url: 60, "url-prefix": 60, domain: 60, regexp: 60, selector: 138 }, G3 = { __proto__: null, "@import": 118, "@media": 142, "@charset": 146, "@namespace": 150, "@keyframes": 156, "@supports": 168 }, K3 = { __proto__: null, not: 132, only: 132 }, J3 = Ko.deserialize({
|
|
29935
29860
|
version: 14,
|
|
29936
29861
|
states: ":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_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Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",
|
|
29950
|
-
tokenizers: [
|
|
29875
|
+
tokenizers: [L3, H3, Y3, 1, 2, 3, 4, new mu("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~", 28, 105)],
|
|
29951
29876
|
topRules: { StyleSheet: [0, 4], Styles: [1, 86] },
|
|
29952
|
-
specialized: [{ term: 100, get: (t) =>
|
|
29877
|
+
specialized: [{ term: 100, get: (t) => F3[t] || -1 }, { term: 58, get: (t) => G3[t] || -1 }, { term: 101, get: (t) => K3[t] || -1 }],
|
|
29953
29878
|
tokenPrec: 1200
|
|
29954
29879
|
});
|
|
29955
29880
|
let Jd = null;
|
|
@@ -30734,7 +30659,7 @@ const iN = (t) => (e) => {
|
|
|
30734
30659
|
return a && a.name == ":" && s.name == "PseudoClassSelector" ? { from: r, options: Bb, validFor: po } : a && a.name == ":" && s.name == "Declaration" || s.name == "ArgList" ? { from: r, options: Fb, validFor: po } : s.name == "Block" || s.name == "Styles" ? { from: r, options: eh(), validFor: po } : null;
|
|
30735
30660
|
}, sN = /* @__PURE__ */ iN((t) => t.name == "VariableName"), gu = /* @__PURE__ */ Go.define({
|
|
30736
30661
|
name: "css",
|
|
30737
|
-
parser: /* @__PURE__ */
|
|
30662
|
+
parser: /* @__PURE__ */ J3.configure({
|
|
30738
30663
|
props: [
|
|
30739
30664
|
/* @__PURE__ */ zs.add({
|
|
30740
30665
|
Declaration: /* @__PURE__ */ gs()
|
|
@@ -31390,7 +31315,7 @@ const Ar = /* @__PURE__ */ Go.define({
|
|
|
31390
31315
|
/* @__PURE__ */ zs.add({
|
|
31391
31316
|
IfStatement: /* @__PURE__ */ gs({ except: /^\s*({|else\b)/ }),
|
|
31392
31317
|
TryStatement: /* @__PURE__ */ gs({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
31393
|
-
LabeledStatement:
|
|
31318
|
+
LabeledStatement: mR,
|
|
31394
31319
|
SwitchBody: (t) => {
|
|
31395
31320
|
let e = t.textAfter, n = /^\s*\}/.test(e), r = /^\s*(case|default)\b/.test(e);
|
|
31396
31321
|
return t.baseIndent + (n ? 0 : r ? 1 : 2) * t.unit;
|
|
@@ -31441,7 +31366,7 @@ function w4(t = {}) {
|
|
|
31441
31366
|
let e = t.jsx ? t.typescript ? $k : Ek : t.typescript ? Tk : Ar, n = t.typescript ? m4.concat(v4) : Sk.concat(Ck);
|
|
31442
31367
|
return new Pl(e, [
|
|
31443
31368
|
Ar.data.of({
|
|
31444
|
-
autocomplete:
|
|
31369
|
+
autocomplete: NR(Pk, US(n))
|
|
31445
31370
|
}),
|
|
31446
31371
|
Ar.data.of({
|
|
31447
31372
|
autocomplete: b4
|
|
@@ -32791,7 +32716,7 @@ function b0({
|
|
|
32791
32716
|
}) {
|
|
32792
32717
|
const h = [
|
|
32793
32718
|
bA(),
|
|
32794
|
-
IS(
|
|
32719
|
+
IS(wR, { fallback: !0 }),
|
|
32795
32720
|
be.theme({
|
|
32796
32721
|
".cm-line": {
|
|
32797
32722
|
lineHeight: "20px"
|
|
@@ -32817,13 +32742,13 @@ function b0({
|
|
|
32817
32742
|
...d
|
|
32818
32743
|
];
|
|
32819
32744
|
return r && h.push(r), u || h.push(pZ), s ? h.push(be.editable.of(!1)) : h.push(
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
|
|
32823
|
-
|
|
32745
|
+
OR(),
|
|
32746
|
+
TR(),
|
|
32747
|
+
x3(),
|
|
32748
|
+
f3(),
|
|
32824
32749
|
el.of([
|
|
32825
32750
|
...rk,
|
|
32826
|
-
...
|
|
32751
|
+
...O3,
|
|
32827
32752
|
gZ
|
|
32828
32753
|
])
|
|
32829
32754
|
), o && O0[o] && h.push(O0[o]()), a && h.push(NA()), l && h.push(mZ()), c && h.push(
|