@pi-outpost/embed 0.41.0 → 0.43.0
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/CodeEditor-84sk1WGW.cjs +9 -0
- package/dist/{CodeEditor-CxKTvrhG.js → CodeEditor-CNBsvq8Z.js} +1081 -698
- package/dist/{dist-BDenKBYL.cjs → dist-B9TXDASo.cjs} +1 -1
- package/dist/{dist-AeGgfThs.cjs → dist-BF9tfVH8.cjs} +1 -1
- package/dist/{dist-BWEDf1a-.js → dist-BIMxMB--.js} +49 -49
- package/dist/{dist-C6eKaA9j.cjs → dist-BLS46S7g.cjs} +2 -2
- package/dist/{dist-CGZbBQje.js → dist-BWAsFrsx.js} +69 -69
- package/dist/{dist-DaJf_JYz.js → dist-BZ1m84Kh.js} +56 -56
- package/dist/{dist-CYUF5YPj.js → dist-Bg1-NGne.js} +13 -13
- package/dist/{dist-gn9y7Yb8.js → dist-BjQ1Exnz.js} +26 -26
- package/dist/{dist-DEZD35IP.cjs → dist-BlUoR-U1.cjs} +1 -1
- package/dist/{dist-DNg4hNu7.js → dist-BnXHuZGz.js} +93 -93
- package/dist/{dist-Kg2QsUg8.js → dist-C2UMsquH.js} +74 -74
- package/dist/{dist-D_oMTxAl.cjs → dist-CELe3Rxj.cjs} +2 -2
- package/dist/{dist-CmF-TINl.cjs → dist-CEPd6ecF.cjs} +1 -1
- package/dist/{dist-Cz8GulTe.cjs → dist-CGPxOMk5.cjs} +2 -2
- package/dist/{dist-CCIM600Y.cjs → dist-CPxwFKs7.cjs} +3 -3
- package/dist/{dist-CIBKGNWD.js → dist-Ca51SM3i.js} +141 -141
- package/dist/{dist-BWVp6Da-.js → dist-CcTOENSK.js} +21 -21
- package/dist/{dist-M4fo1U45.cjs → dist-CkDnvyBs.cjs} +1 -1
- package/dist/{dist-BTD5L343.js → dist-CpOA8cNn.js} +121 -121
- package/dist/{dist-CQNYwGEy.cjs → dist-CpsCEkIr.cjs} +1 -1
- package/dist/{dist-LM11INLG.js → dist-CwPu13CG.js} +38 -38
- package/dist/{dist-lPCEVnGX.js → dist-DCT8mdeU.js} +47 -47
- package/dist/{dist-rfjaCa2V.cjs → dist-DJYmQsI-.cjs} +1 -1
- package/dist/{dist-DszFZlYh.js → dist-DeLxY4Ia.js} +32 -32
- package/dist/{dist-2ynRxsSC.cjs → dist-Lxxq5IH0.cjs} +1 -1
- package/dist/{dist-hv72z6I6.js → dist-SqwJhRs0.js} +65 -65
- package/dist/{dist-D6LkseRA.cjs → dist-W-WjEDJm.cjs} +1 -1
- package/dist/{dist-CFf_g4kk.cjs → dist-c-DRw6Dh.cjs} +1 -1
- package/dist/{dist-ChWDi62w.js → dist-iZeihidk.js} +296 -296
- package/dist/{dist-BJHB0x8Y.js → dist-qeX2QqDc.js} +1 -1
- package/dist/{dist-Dpu_aN4m.cjs → dist-sM-IE5EO.cjs} +1 -1
- package/dist/{dist-CT7H4C9g.cjs → dist-vBlUeRrZ.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +30 -26
- package/dist/pi-outpost-embed.js +4329 -3700
- package/package.json +1 -1
- package/dist/CodeEditor-B699PZlx.cjs +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as e,
|
|
1
|
+
import { Ct as e, Dt as t, Ot as n, St as r, Tt as i, wt as a, xt as o } from "./dist-qeX2QqDc.js";
|
|
2
2
|
//#region ../node_modules/@lezer/lr/dist/index.js
|
|
3
3
|
var s = class e {
|
|
4
4
|
constructor(e, t, n, r, i, a, o, s, c, l = 0, u) {
|
|
@@ -436,11 +436,11 @@ function b(e, t, n, r) {
|
|
|
436
436
|
}
|
|
437
437
|
var x = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG), S = null;
|
|
438
438
|
function C(e, t, n) {
|
|
439
|
-
let
|
|
440
|
-
for (
|
|
441
|
-
if ((n < 0 ?
|
|
442
|
-
if (n < 0 ?
|
|
443
|
-
if (!
|
|
439
|
+
let i = e.cursor(r.IncludeAnonymous);
|
|
440
|
+
for (i.moveTo(t);;) if (!(n < 0 ? i.childBefore(t) : i.childAfter(t))) for (;;) {
|
|
441
|
+
if ((n < 0 ? i.to < t : i.from > t) && !i.type.isError) return n < 0 ? Math.max(0, Math.min(i.to - 1, t - 25)) : Math.min(e.length, Math.max(i.from + 1, t + 25));
|
|
442
|
+
if (n < 0 ? i.prevSibling() : i.nextSibling()) break;
|
|
443
|
+
if (!i.parent()) return n < 0 ? 0 : e.length;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
var w = class {
|
|
@@ -454,30 +454,30 @@ var w = class {
|
|
|
454
454
|
this.trees.push(e.tree), this.start.push(-e.offset), this.index.push(0), this.nextStart = this.safeFrom;
|
|
455
455
|
} else this.nextStart = 1e9;
|
|
456
456
|
}
|
|
457
|
-
nodeAt(
|
|
458
|
-
if (
|
|
459
|
-
for (; this.fragment && this.safeTo <=
|
|
457
|
+
nodeAt(t) {
|
|
458
|
+
if (t < this.nextStart) return null;
|
|
459
|
+
for (; this.fragment && this.safeTo <= t;) this.nextFragment();
|
|
460
460
|
if (!this.fragment) return null;
|
|
461
461
|
for (;;) {
|
|
462
|
-
let
|
|
463
|
-
if (
|
|
464
|
-
let
|
|
465
|
-
if (
|
|
462
|
+
let r = this.trees.length - 1;
|
|
463
|
+
if (r < 0) return this.nextFragment(), null;
|
|
464
|
+
let i = this.trees[r], a = this.index[r];
|
|
465
|
+
if (a == i.children.length) {
|
|
466
466
|
this.trees.pop(), this.start.pop(), this.index.pop();
|
|
467
467
|
continue;
|
|
468
468
|
}
|
|
469
|
-
let o =
|
|
470
|
-
if (s >
|
|
471
|
-
if (o instanceof
|
|
472
|
-
let
|
|
473
|
-
if (s ==
|
|
474
|
-
let
|
|
475
|
-
if (s >= this.safeFrom &&
|
|
476
|
-
if (
|
|
477
|
-
} else if (s ==
|
|
469
|
+
let o = i.children[a], s = this.start[r] + i.positions[a];
|
|
470
|
+
if (s > t) return this.nextStart = s, null;
|
|
471
|
+
if (o instanceof n) {
|
|
472
|
+
let n = s > this.lastRepeatPos && o.type.id >= this.minRepeat;
|
|
473
|
+
if (s == t || n) {
|
|
474
|
+
let r = s + o.length, i;
|
|
475
|
+
if (s >= this.safeFrom && r <= this.safeTo && (!(i = o.prop(e.lookAhead)) || r + i < this.fragment.to)) {
|
|
476
|
+
if (n && (this.lastRepeat = o, this.lastRepeatPos = s), s == t) return o;
|
|
477
|
+
} else if (s == t) return null;
|
|
478
478
|
}
|
|
479
|
-
this.index[
|
|
480
|
-
} else this.index[
|
|
479
|
+
this.index[r]++, s + o.length >= Math.max(this.safeFrom, t) && (this.trees.push(o), this.start.push(s), this.index.push(0));
|
|
480
|
+
} else this.index[r]++, this.nextStart = s + o.length;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
}, T = class {
|
|
@@ -600,15 +600,15 @@ var w = class {
|
|
|
600
600
|
if (this.stoppedAt != null && this.stoppedAt < e) throw RangeError("Can't move stoppedAt forward");
|
|
601
601
|
this.stoppedAt = e;
|
|
602
602
|
}
|
|
603
|
-
tryReuse(
|
|
604
|
-
if (!
|
|
605
|
-
let o =
|
|
606
|
-
for (;
|
|
607
|
-
let c = this.parser.nodeSet.types[
|
|
608
|
-
if (c > -1 &&
|
|
609
|
-
if (
|
|
610
|
-
let l =
|
|
611
|
-
if (l instanceof
|
|
603
|
+
tryReuse(t, r, i, a) {
|
|
604
|
+
if (!i) return null;
|
|
605
|
+
let o = t.curContext && t.curContext.tracker.strict, s = o ? t.curContext.hash : 0;
|
|
606
|
+
for (; i;) {
|
|
607
|
+
let c = this.parser.nodeSet.types[i.type.id] == i.type ? this.parser.getGoto(t.state, i.type.id) : -1;
|
|
608
|
+
if (c > -1 && i.length && (!o || (i.prop(e.contextHash) || 0) == s)) return t.useNode(i, c, r), i;
|
|
609
|
+
if (i.children.length == 0 || i.positions[0] > 0) break;
|
|
610
|
+
let l = i.children[0];
|
|
611
|
+
if (l instanceof n && (!a || l.type.id >= this.parser.minRepeatTerm)) i = l;
|
|
612
612
|
else break;
|
|
613
613
|
}
|
|
614
614
|
return null;
|
|
@@ -651,7 +651,7 @@ var w = class {
|
|
|
651
651
|
return r;
|
|
652
652
|
}
|
|
653
653
|
stackToTree(e) {
|
|
654
|
-
return e.close(),
|
|
654
|
+
return e.close(), n.build({
|
|
655
655
|
buffer: u.create(e),
|
|
656
656
|
nodeSet: this.parser.nodeSet,
|
|
657
657
|
topID: this.topTerm,
|
|
@@ -688,37 +688,37 @@ var O = class {
|
|
|
688
688
|
constructor(e) {
|
|
689
689
|
this.start = e.start, this.shift = e.shift || k, this.reduce = e.reduce || k, this.reuse = e.reuse || k, this.hash = e.hash || (() => 0), this.strict = e.strict !== !1;
|
|
690
690
|
}
|
|
691
|
-
}, j = class
|
|
691
|
+
}, j = class n extends t {
|
|
692
692
|
constructor(t) {
|
|
693
693
|
if (super(), this.wrappers = [], t.version != 14) throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);
|
|
694
|
-
let
|
|
695
|
-
this.minRepeatTerm =
|
|
696
|
-
for (let e = 0; e < t.repeatNodeCount; e++)
|
|
697
|
-
let
|
|
698
|
-
for (let e = 0; e <
|
|
694
|
+
let n = t.nodeNames.split(" ");
|
|
695
|
+
this.minRepeatTerm = n.length;
|
|
696
|
+
for (let e = 0; e < t.repeatNodeCount; e++) n.push("");
|
|
697
|
+
let r = Object.keys(t.topRules).map((e) => t.topRules[e][1]), s = [];
|
|
698
|
+
for (let e = 0; e < n.length; e++) s.push([]);
|
|
699
699
|
function c(e, t, n) {
|
|
700
700
|
s[e].push([t, t.deserialize(String(n))]);
|
|
701
701
|
}
|
|
702
|
-
if (t.nodeProps) for (let
|
|
703
|
-
let t =
|
|
704
|
-
typeof t == "string" && (t =
|
|
705
|
-
for (let
|
|
706
|
-
let r = e
|
|
707
|
-
if (r >= 0) c(r, t, e
|
|
702
|
+
if (t.nodeProps) for (let n of t.nodeProps) {
|
|
703
|
+
let t = n[0];
|
|
704
|
+
typeof t == "string" && (t = e[t]);
|
|
705
|
+
for (let e = 1; e < n.length;) {
|
|
706
|
+
let r = n[e++];
|
|
707
|
+
if (r >= 0) c(r, t, n[e++]);
|
|
708
708
|
else {
|
|
709
|
-
let i = e
|
|
710
|
-
for (let a = -r; a > 0; a--) c(e
|
|
711
|
-
|
|
709
|
+
let i = n[e + -r];
|
|
710
|
+
for (let a = -r; a > 0; a--) c(n[e++], t, i);
|
|
711
|
+
e++;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
this.nodeSet = new n
|
|
716
|
-
name:
|
|
717
|
-
id:
|
|
718
|
-
props: s[
|
|
719
|
-
top:
|
|
720
|
-
error:
|
|
721
|
-
skipped: t.skippedNodes && t.skippedNodes.indexOf(
|
|
715
|
+
this.nodeSet = new a(n.map((e, n) => i.define({
|
|
716
|
+
name: n >= this.minRepeatTerm ? void 0 : e,
|
|
717
|
+
id: n,
|
|
718
|
+
props: s[n],
|
|
719
|
+
top: r.indexOf(n) > -1,
|
|
720
|
+
error: n == 0,
|
|
721
|
+
skipped: t.skippedNodes && t.skippedNodes.indexOf(n) > -1
|
|
722
722
|
}))), t.propSources && (this.nodeSet = this.nodeSet.extend(...t.propSources)), this.strict = !1, this.bufferLength = o;
|
|
723
723
|
let l = d(t.tokenData);
|
|
724
724
|
this.context = t.context, this.specializerSpecs = t.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
|
|
@@ -787,21 +787,21 @@ var O = class {
|
|
|
787
787
|
return t;
|
|
788
788
|
}
|
|
789
789
|
configure(e) {
|
|
790
|
-
let
|
|
791
|
-
if (e.props && (
|
|
792
|
-
let
|
|
793
|
-
if (!
|
|
794
|
-
|
|
790
|
+
let t = Object.assign(Object.create(n.prototype), this);
|
|
791
|
+
if (e.props && (t.nodeSet = this.nodeSet.extend(...e.props)), e.top) {
|
|
792
|
+
let n = this.topRules[e.top];
|
|
793
|
+
if (!n) throw RangeError(`Invalid top rule name ${e.top}`);
|
|
794
|
+
t.top = n;
|
|
795
795
|
}
|
|
796
|
-
return e.tokenizers && (
|
|
796
|
+
return e.tokenizers && (t.tokenizers = this.tokenizers.map((t) => {
|
|
797
797
|
let n = e.tokenizers.find((e) => e.from == t);
|
|
798
798
|
return n ? n.to : t;
|
|
799
|
-
})), e.specializers && (
|
|
800
|
-
let i = e.specializers.find((e) => e.from ==
|
|
801
|
-
if (!i) return
|
|
802
|
-
let a = Object.assign(Object.assign({},
|
|
803
|
-
return
|
|
804
|
-
})), e.contextTracker && (
|
|
799
|
+
})), e.specializers && (t.specializers = this.specializers.slice(), t.specializerSpecs = this.specializerSpecs.map((n, r) => {
|
|
800
|
+
let i = e.specializers.find((e) => e.from == n.external);
|
|
801
|
+
if (!i) return n;
|
|
802
|
+
let a = Object.assign(Object.assign({}, n), { external: i.to });
|
|
803
|
+
return t.specializers[r] = P(a), a;
|
|
804
|
+
})), e.contextTracker && (t.context = e.contextTracker), e.dialect && (t.dialect = this.parseDialect(e.dialect)), e.strict != null && (t.strict = e.strict), e.wrap && (t.wrappers = t.wrappers.concat(e.wrap)), e.bufferLength != null && (t.bufferLength = e.bufferLength), t;
|
|
805
805
|
}
|
|
806
806
|
hasWrappers() {
|
|
807
807
|
return this.wrappers.length > 0;
|
|
@@ -830,7 +830,7 @@ var O = class {
|
|
|
830
830
|
return new O(e, n, r);
|
|
831
831
|
}
|
|
832
832
|
static deserialize(e) {
|
|
833
|
-
return new
|
|
833
|
+
return new n(e);
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
836
|
function M(e, t) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as u, r as te, t as ne } from "./dist-
|
|
3
|
-
import { n as d, t as re } from "./dist-
|
|
4
|
-
import { a as ie, i as ae, n as oe, o as se, r as f } from "./dist-
|
|
1
|
+
import { M as e, _ as t, a as n, bt as r, et as i, k as a, kt as o, l as s, n as c, x as l, yt as ee } from "./dist-qeX2QqDc.js";
|
|
2
|
+
import { n as u, r as te, t as ne } from "./dist-BWAsFrsx.js";
|
|
3
|
+
import { n as d, t as re } from "./dist-CpOA8cNn.js";
|
|
4
|
+
import { a as ie, i as ae, n as oe, o as se, r as f } from "./dist-Ca51SM3i.js";
|
|
5
5
|
//#region ../node_modules/@lezer/html/dist/index.js
|
|
6
6
|
var ce = 55, le = 1, ue = 56, de = 2, fe = 57, pe = 3, p = 4, me = 5, m = 6, he = 7, ge = 8, h = 9, g = 10, _e = 11, ve = 12, ye = 13, _ = 58, be = 14, xe = 15, v = 59, y = 21, Se = 23, b = 24, Ce = 25, x = 27, S = 28, we = 29, Te = 32, Ee = 35, De = 37, Oe = 38, ke = 0, Ae = 1, je = {
|
|
7
7
|
area: !0,
|
|
@@ -209,18 +209,18 @@ function M(e, t, n) {
|
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
var Ue = M("script", ce, le), We = M("style", ue, de), Ge = M("textarea", fe, pe), Ke =
|
|
213
|
-
"Text RawText IncompleteTag IncompleteCloseTag":
|
|
214
|
-
"StartTag StartCloseTag SelfClosingEndTag EndTag":
|
|
215
|
-
TagName:
|
|
216
|
-
"MismatchedCloseTag/TagName": [
|
|
217
|
-
AttributeName:
|
|
218
|
-
"AttributeValue UnquotedAttributeValue":
|
|
219
|
-
Is:
|
|
220
|
-
"EntityReference CharacterReference":
|
|
221
|
-
Comment:
|
|
222
|
-
ProcessingInst:
|
|
223
|
-
DoctypeDecl:
|
|
212
|
+
var Ue = M("script", ce, le), We = M("style", ue, de), Ge = M("textarea", fe, pe), Ke = ee({
|
|
213
|
+
"Text RawText IncompleteTag IncompleteCloseTag": r.content,
|
|
214
|
+
"StartTag StartCloseTag SelfClosingEndTag EndTag": r.angleBracket,
|
|
215
|
+
TagName: r.tagName,
|
|
216
|
+
"MismatchedCloseTag/TagName": [r.tagName, r.invalid],
|
|
217
|
+
AttributeName: r.attributeName,
|
|
218
|
+
"AttributeValue UnquotedAttributeValue": r.attributeValue,
|
|
219
|
+
Is: r.definitionOperator,
|
|
220
|
+
"EntityReference CharacterReference": r.character,
|
|
221
|
+
Comment: r.blockComment,
|
|
222
|
+
ProcessingInst: r.processingInstruction,
|
|
223
|
+
DoctypeDecl: r.documentMeta
|
|
224
224
|
}), qe = te.deserialize({
|
|
225
225
|
version: 14,
|
|
226
226
|
states: ",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",
|
|
@@ -355,20 +355,20 @@ function F(e, t, n) {
|
|
|
355
355
|
};
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
358
|
-
function I(
|
|
359
|
-
let
|
|
360
|
-
for (let
|
|
361
|
-
let s =
|
|
362
|
-
for (let e of
|
|
363
|
-
return
|
|
364
|
-
let
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
if (
|
|
368
|
-
if (
|
|
369
|
-
let n = e.node, r = n.firstChild, i = r && P(r, t),
|
|
358
|
+
function I(e = [], t = []) {
|
|
359
|
+
let n = [], r = [], i = [], a = [];
|
|
360
|
+
for (let t of e) (t.tag == "script" ? n : t.tag == "style" ? r : t.tag == "textarea" ? i : a).push(t);
|
|
361
|
+
let s = t.length ? Object.create(null) : null;
|
|
362
|
+
for (let e of t) (s[e.name] || (s[e.name] = [])).push(e);
|
|
363
|
+
return o((e, t) => {
|
|
364
|
+
let o = e.type.id;
|
|
365
|
+
if (o == we) return F(e, t, n);
|
|
366
|
+
if (o == Te) return F(e, t, r);
|
|
367
|
+
if (o == Ee) return F(e, t, i);
|
|
368
|
+
if (o == y && a.length) {
|
|
369
|
+
let n = e.node, r = n.firstChild, i = r && P(r, t), o;
|
|
370
370
|
if (i) {
|
|
371
|
-
for (let e of
|
|
371
|
+
for (let e of a) if (e.tag == i && (!e.attrs || e.attrs(o ||= N(r, t)))) {
|
|
372
372
|
let t = n.lastChild, i = t.type.id == Oe ? t.from : n.to;
|
|
373
373
|
if (i > r.to) return {
|
|
374
374
|
parser: e.parser,
|
|
@@ -380,7 +380,7 @@ function I(t = [], n = []) {
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
if (s &&
|
|
383
|
+
if (s && o == b) {
|
|
384
384
|
let n = e.node, r;
|
|
385
385
|
if (r = n.firstChild) {
|
|
386
386
|
let e = s[t.read(r.from, r.to)];
|
|
@@ -1180,13 +1180,13 @@ function Qe(e, t, n, r, i) {
|
|
|
1180
1180
|
};
|
|
1181
1181
|
}
|
|
1182
1182
|
function Q(e, t) {
|
|
1183
|
-
let { state: n, pos: r } = t, i =
|
|
1184
|
-
for (let e = r, t;
|
|
1183
|
+
let { state: n, pos: r } = t, i = a(n).resolveInner(r, -1), o = i.resolve(r);
|
|
1184
|
+
for (let e = r, t; o == i && (t = i.childBefore(e));) {
|
|
1185
1185
|
let n = t.lastChild;
|
|
1186
1186
|
if (!n || !n.type.isError || n.from < n.to) break;
|
|
1187
|
-
|
|
1187
|
+
o = i = t, e = n.from;
|
|
1188
1188
|
}
|
|
1189
|
-
return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? Ye(n, i, i.from, r) : Z(n, e, i, i.from, r) : i.name == "StartTag" || i.name == "IncompleteTag" ? Z(n, e, i, r, r) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? Ye(n, i, r, r) : i.name == "OpenTag" || i.name == "SelfClosingTag" || i.name == "AttributeName" ? Ze(n, e, i, i.name == "AttributeName" ? i.from : r, r) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? Qe(n, e, i, i.name == "Is" ? r : i.from, r) : t.explicit && (
|
|
1189
|
+
return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? Ye(n, i, i.from, r) : Z(n, e, i, i.from, r) : i.name == "StartTag" || i.name == "IncompleteTag" ? Z(n, e, i, r, r) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? Ye(n, i, r, r) : i.name == "OpenTag" || i.name == "SelfClosingTag" || i.name == "AttributeName" ? Ze(n, e, i, i.name == "AttributeName" ? i.from : r, r) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? Qe(n, e, i, i.name == "Is" ? r : i.from, r) : t.explicit && (o.name == "Element" || o.name == "Text" || o.name == "Document") ? Xe(n, e, i, r) : null;
|
|
1190
1190
|
}
|
|
1191
1191
|
function $e(e) {
|
|
1192
1192
|
return Q(G.default, e);
|
|
@@ -1241,7 +1241,7 @@ var tt = /*@__PURE__*/ f.parser.configure({ top: "SingleExpression" }), nt = [
|
|
|
1241
1241
|
}))), it = /*@__PURE__*/ c.define({
|
|
1242
1242
|
name: "html",
|
|
1243
1243
|
parser: /*@__PURE__*/ qe.configure({ props: [
|
|
1244
|
-
/*@__PURE__*/
|
|
1244
|
+
/*@__PURE__*/ l.add({
|
|
1245
1245
|
Element(e) {
|
|
1246
1246
|
let t = /^(\s*)(<\/)?/.exec(e.textAfter);
|
|
1247
1247
|
return e.node.to <= e.pos + t[0].length ? e.continue() : e.lineIndent(e.node.from) + (t[2] ? 0 : e.unit);
|
|
@@ -1260,7 +1260,7 @@ var tt = /*@__PURE__*/ f.parser.configure({ top: "SingleExpression" }), nt = [
|
|
|
1260
1260
|
return t && !((n = t.lastChild) && (n.name == "CloseTag" || n.name == "SelfClosingTag")) ? e.lineIndent(t.from) + e.unit : null;
|
|
1261
1261
|
}
|
|
1262
1262
|
}),
|
|
1263
|
-
/*@__PURE__*/
|
|
1263
|
+
/*@__PURE__*/ t.add({ Element(e) {
|
|
1264
1264
|
let t = e.firstChild, n = e.lastChild;
|
|
1265
1265
|
return !t || t.name != "OpenTag" ? null : {
|
|
1266
1266
|
from: t.to,
|
|
@@ -1279,13 +1279,13 @@ var tt = /*@__PURE__*/ f.parser.configure({ top: "SingleExpression" }), nt = [
|
|
|
1279
1279
|
}
|
|
1280
1280
|
}), $ = /*@__PURE__*/ it.configure({ wrap: /*@__PURE__*/ I(nt, rt) });
|
|
1281
1281
|
function at(e = {}) {
|
|
1282
|
-
let t = "",
|
|
1283
|
-
e.matchClosingTags === !1 && (t = "noMatch"), e.selfClosingTags === !0 && (t = (t ? t + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (
|
|
1284
|
-
let
|
|
1285
|
-
wrap:
|
|
1282
|
+
let t = "", r;
|
|
1283
|
+
e.matchClosingTags === !1 && (t = "noMatch"), e.selfClosingTags === !0 && (t = (t ? t + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (r = I((e.nestedLanguages || []).concat(nt), (e.nestedAttributes || []).concat(rt)));
|
|
1284
|
+
let i = r ? it.configure({
|
|
1285
|
+
wrap: r,
|
|
1286
1286
|
dialect: t
|
|
1287
1287
|
}) : t ? $.configure({ dialect: t }) : $;
|
|
1288
|
-
return new
|
|
1288
|
+
return new n(i, [
|
|
1289
1289
|
$.data.of({ autocomplete: et(e) }),
|
|
1290
1290
|
e.autoCloseTags === !1 ? [] : ct,
|
|
1291
1291
|
oe().support,
|
|
@@ -1301,28 +1301,28 @@ function st(e, t, n) {
|
|
|
1301
1301
|
t = r;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
var ct = /*@__PURE__*/
|
|
1305
|
-
if (e.composing || e.state.readOnly || t !=
|
|
1306
|
-
let s =
|
|
1307
|
-
let t = c.doc.sliceString(e.from - 1, e.to) ==
|
|
1308
|
-
if (t &&
|
|
1309
|
-
let t =
|
|
1310
|
-
if ((s = K(c.doc, t.parent,
|
|
1304
|
+
var ct = /*@__PURE__*/ e.inputHandler.of((e, t, n, r, o) => {
|
|
1305
|
+
if (e.composing || e.state.readOnly || t != n || r != ">" && r != "/" || !$.isActiveAt(e.state, t, -1)) return !1;
|
|
1306
|
+
let s = o(), { state: c } = s, l = c.changeByRange((e) => {
|
|
1307
|
+
let t = c.doc.sliceString(e.from - 1, e.to) == r, { head: n } = e, o = a(c).resolveInner(n, -1), s;
|
|
1308
|
+
if (t && r == ">" && o.name == "EndTag") {
|
|
1309
|
+
let t = o.parent;
|
|
1310
|
+
if ((s = K(c.doc, t.parent, n)) && !ot.has(s) && !st(c.doc, t.parent, s)) return {
|
|
1311
1311
|
range: e,
|
|
1312
1312
|
changes: {
|
|
1313
|
-
from:
|
|
1314
|
-
to:
|
|
1313
|
+
from: n,
|
|
1314
|
+
to: n + +(c.doc.sliceString(n, n + 1) === ">"),
|
|
1315
1315
|
insert: `</${s}>`
|
|
1316
1316
|
}
|
|
1317
1317
|
};
|
|
1318
|
-
} else if (t &&
|
|
1319
|
-
let e =
|
|
1320
|
-
if (
|
|
1321
|
-
let e =
|
|
1318
|
+
} else if (t && r == "/" && o.name == "IncompleteCloseTag") {
|
|
1319
|
+
let e = o.parent;
|
|
1320
|
+
if (o.from == n - 2 && e.lastChild?.name != "CloseTag" && (s = K(c.doc, e, n)) && !ot.has(s)) {
|
|
1321
|
+
let e = n + +(c.doc.sliceString(n, n + 1) === ">"), t = `${s}>`;
|
|
1322
1322
|
return {
|
|
1323
|
-
range:
|
|
1323
|
+
range: i.cursor(n + t.length, -1),
|
|
1324
1324
|
changes: {
|
|
1325
|
-
from:
|
|
1325
|
+
from: n,
|
|
1326
1326
|
to: e,
|
|
1327
1327
|
insert: t
|
|
1328
1328
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as e,
|
|
2
|
-
import { r as c } from "./dist-
|
|
1
|
+
import { _ as e, a as t, bt as n, h as r, n as i, u as a, x as o, yt as s } from "./dist-qeX2QqDc.js";
|
|
2
|
+
import { r as c } from "./dist-BWAsFrsx.js";
|
|
3
3
|
//#region ../node_modules/@lezer/json/dist/index.js
|
|
4
|
-
var l =
|
|
5
|
-
String:
|
|
6
|
-
Number:
|
|
7
|
-
"True False":
|
|
8
|
-
PropertyName:
|
|
9
|
-
Null:
|
|
10
|
-
", :":
|
|
11
|
-
"[ ]":
|
|
12
|
-
"{ }":
|
|
4
|
+
var l = s({
|
|
5
|
+
String: n.string,
|
|
6
|
+
Number: n.number,
|
|
7
|
+
"True False": n.bool,
|
|
8
|
+
PropertyName: n.propertyName,
|
|
9
|
+
Null: n.null,
|
|
10
|
+
", :": n.separator,
|
|
11
|
+
"[ ]": n.squareBracket,
|
|
12
|
+
"{ }": n.brace
|
|
13
13
|
}), u = c.deserialize({
|
|
14
14
|
version: 14,
|
|
15
15
|
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
|
|
@@ -49,7 +49,7 @@ var l = t({
|
|
|
49
49
|
tokenPrec: 0
|
|
50
50
|
}), d = /*@__PURE__*/ i.define({
|
|
51
51
|
name: "json",
|
|
52
|
-
parser: /*@__PURE__*/ u.configure({ props: [/*@__PURE__*/
|
|
52
|
+
parser: /*@__PURE__*/ u.configure({ props: [/*@__PURE__*/ o.add({
|
|
53
53
|
Object: /*@__PURE__*/ a({ except: /^\s*\}/ }),
|
|
54
54
|
Array: /*@__PURE__*/ a({ except: /^\s*\]/ })
|
|
55
55
|
}), /*@__PURE__*/ e.add({ "Object Array": r })] }),
|
|
@@ -63,7 +63,7 @@ var l = t({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
function f() {
|
|
66
|
-
return new
|
|
66
|
+
return new t(d);
|
|
67
67
|
}
|
|
68
68
|
//#endregion
|
|
69
69
|
export { f as json };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as e,
|
|
2
|
-
import { n as c, r as l } from "./dist-
|
|
3
|
-
import { i as u, r as d } from "./CodeEditor-
|
|
1
|
+
import { _ as e, a as t, bt as n, k as r, n as i, u as a, x as o, yt as s } from "./dist-qeX2QqDc.js";
|
|
2
|
+
import { n as c, r as l } from "./dist-BWAsFrsx.js";
|
|
3
|
+
import { i as u, r as d } from "./CodeEditor-CNBsvq8Z.js";
|
|
4
4
|
//#region ../node_modules/@codemirror/lang-sql/dist/index.js
|
|
5
5
|
var f = 36, p = 1, ee = 2, m = 3, h = 4, g = 5, _ = 6, v = 7, te = 8, ne = 9, re = 10, ie = 11, ae = 12, oe = 13, se = 14, y = 15, b = 16, x = 17, S = 18, C = 19, w = 20, T = 21, E = 22, D = 23, ce = 24;
|
|
6
6
|
function O(e) {
|
|
@@ -369,7 +369,7 @@ function be(e, t, n) {
|
|
|
369
369
|
], d(r));
|
|
370
370
|
}
|
|
371
371
|
var Q = /*@__PURE__*/ W.configure({ props: [
|
|
372
|
-
/*@__PURE__*/
|
|
372
|
+
/*@__PURE__*/ o.add({ Statement: /*@__PURE__*/ a() }),
|
|
373
373
|
/*@__PURE__*/ e.add({
|
|
374
374
|
Statement(e, t) {
|
|
375
375
|
return {
|
|
@@ -384,26 +384,26 @@ var Q = /*@__PURE__*/ W.configure({ props: [
|
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
}),
|
|
387
|
-
/*@__PURE__*/
|
|
388
|
-
Keyword:
|
|
389
|
-
Type:
|
|
390
|
-
Builtin: /*@__PURE__*/
|
|
391
|
-
Bits:
|
|
392
|
-
Bytes:
|
|
393
|
-
Bool:
|
|
394
|
-
Null:
|
|
395
|
-
Number:
|
|
396
|
-
String:
|
|
397
|
-
Identifier:
|
|
398
|
-
QuotedIdentifier: /*@__PURE__*/
|
|
399
|
-
SpecialVar: /*@__PURE__*/
|
|
400
|
-
LineComment:
|
|
401
|
-
BlockComment:
|
|
402
|
-
Operator:
|
|
403
|
-
"Semi Punctuation":
|
|
404
|
-
"( )":
|
|
405
|
-
"{ }":
|
|
406
|
-
"[ ]":
|
|
387
|
+
/*@__PURE__*/ s({
|
|
388
|
+
Keyword: n.keyword,
|
|
389
|
+
Type: n.typeName,
|
|
390
|
+
Builtin: /*@__PURE__*/ n.standard(n.name),
|
|
391
|
+
Bits: n.number,
|
|
392
|
+
Bytes: n.string,
|
|
393
|
+
Bool: n.bool,
|
|
394
|
+
Null: n.null,
|
|
395
|
+
Number: n.number,
|
|
396
|
+
String: n.string,
|
|
397
|
+
Identifier: n.name,
|
|
398
|
+
QuotedIdentifier: /*@__PURE__*/ n.special(n.string),
|
|
399
|
+
SpecialVar: /*@__PURE__*/ n.special(n.name),
|
|
400
|
+
LineComment: n.lineComment,
|
|
401
|
+
BlockComment: n.blockComment,
|
|
402
|
+
Operator: n.operator,
|
|
403
|
+
"Semi Punctuation": n.punctuation,
|
|
404
|
+
"( )": n.paren,
|
|
405
|
+
"{ }": n.brace,
|
|
406
|
+
"[ ]": n.squareBracket
|
|
407
407
|
})
|
|
408
408
|
] }), xe = class e {
|
|
409
409
|
constructor(e, t, n) {
|
|
@@ -460,8 +460,8 @@ function Te(e) {
|
|
|
460
460
|
return e.schema ? (e.dialect || $).language.data.of({ autocomplete: we(e) }) : [];
|
|
461
461
|
}
|
|
462
462
|
function Ee(e = {}) {
|
|
463
|
-
let
|
|
464
|
-
return new n
|
|
463
|
+
let n = e.dialect || $;
|
|
464
|
+
return new t(n.language, [Te(e), n.language.data.of({ autocomplete: Ce(n, e.upperCaseKeywords, e.keywordCompletion) })]);
|
|
465
465
|
}
|
|
466
466
|
var $ = /*@__PURE__*/ xe.define({});
|
|
467
467
|
//#endregion
|