@tempots/beatui 0.38.0 → 0.40.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/{2019-DxwU2aOm.cjs → 2019-nWH_nAwT.cjs} +1 -1
- package/dist/{2019-CGWicU9n.js → 2019-sCKLAY8c.js} +2 -2
- package/dist/{2020-BRNvbMGL.js → 2020-B4xCW_nu.js} +2 -2
- package/dist/{2020-DHep9dU6.cjs → 2020-D7RWX09D.cjs} +1 -1
- package/dist/{ar-CqAHPRKu.cjs → ar-D_4BfIJO.cjs} +1 -1
- package/dist/{ar-avevuYiW.js → ar-i2uHmy8P.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +54 -49
- package/dist/beatui.css +463 -59
- package/dist/beatui.tailwind.css +463 -59
- package/dist/{de--4OtRESW.cjs → de-C0PZz9sE.cjs} +1 -1
- package/dist/{de-Cz7ah611.js → de-CeLwmVZz.js} +1 -1
- package/dist/{es-CE1wRgxl.cjs → es-C8qT1ins.cjs} +1 -1
- package/dist/{es-CiNQQzF1.js → es-DxOgARww.js} +1 -1
- package/dist/{fa-Gkt0b9XN.js → fa-B9pEff8A.js} +1 -1
- package/dist/{fa-DjuJZNLK.cjs → fa-BFV9MxMX.cjs} +1 -1
- package/dist/{fr-DotyzMGL.cjs → fr-BBx5IJ7G.cjs} +1 -1
- package/dist/{fr-xM9p9Q6G.js → fr-Caeevx56.js} +1 -1
- package/dist/{he-BQ6ygVEQ.cjs → he-CMOvd4Dr.cjs} +1 -1
- package/dist/{he-CoO6PsiS.js → he-DeN-WW3u.js} +1 -1
- package/dist/{hi-DA3-4Cdo.js → hi-Dey2HxiD.js} +1 -1
- package/dist/{hi-BCfJ0mRh.cjs → hi-IOU_PzvH.cjs} +1 -1
- package/dist/{index-CesoPnvj.cjs → index-B-SyWyCc.cjs} +1 -1
- package/dist/{index-DJJ67-RV.js → index-B-pudlMv.js} +58 -58
- package/dist/{index-Dtqe3URb.cjs → index-B0ff5lT-.cjs} +4 -4
- package/dist/{index-i9pAnFtS.js → index-BTZqW3-b.js} +1245 -1232
- package/dist/{index-C5-BM51Y.cjs → index-C2VAPX2b.cjs} +1 -1
- package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
- package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
- package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
- package/dist/{index-CCu0qfNP.cjs → index-D8fg48Fv.cjs} +1 -1
- package/dist/{index-C_nSdynJ.js → index-DJqo6Guq.js} +1 -1
- package/dist/{index-CZQHL_pf.cjs → index-Dtka01mK.cjs} +12 -12
- package/dist/{index-C2rz3G1d.js → index-HqWBd-jW.js} +680 -677
- package/dist/{index-D41aREgo.js → index-IQ3lRaL0.js} +1 -1
- package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +3349 -3064
- package/dist/{it-EdPuWBJR.js → it-DghnQdZa.js} +1 -1
- package/dist/{it-pv2Gm3jb.cjs → it-uQF0jkDT.cjs} +1 -1
- package/dist/{ja-CuRaPMgh.cjs → ja-BJD6uPbl.cjs} +1 -1
- package/dist/{ja-BSRCR430.js → ja-Kb7rxmFg.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-Dm4oD1fh.js → ko-53o5WJ-v.js} +1 -1
- package/dist/{ko-C7YP1PL4.cjs → ko-B7bLdRnp.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/modal-BRUgTJG9.cjs +1 -0
- package/dist/modal-_2B8vIo0.js +658 -0
- package/dist/{nl-ClCD6lP-.cjs → nl-CJE0fC8g.cjs} +1 -1
- package/dist/{nl-B0l1kdfd.js → nl-DvUVT7xd.js} +1 -1
- package/dist/{notice-BuYqG6zM.js → notice-C4n5jXi6.js} +408 -391
- package/dist/notice-CncwkUTy.cjs +2 -0
- package/dist/{pl-DVKneBSY.js → pl-C3oYeTwf.js} +1 -1
- package/dist/{pl-fyCkqVrr.cjs → pl-DUaY5slY.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-BHExG3lf.cjs → pt-BAqNKCuy.cjs} +1 -1
- package/dist/{pt-Bw0sTDOX.js → pt-BJGeScun.js} +1 -1
- package/dist/{ru-B26VQ4f9.js → ru-2irv1YXp.js} +1 -1
- package/dist/{ru-PuEOLDw1.cjs → ru-CAlgJm3K.cjs} +1 -1
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +1 -1
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +1 -1
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{toolbar-kwkvH3nX.cjs → toolbar-B7HrL0vD.cjs} +1 -1
- package/dist/{toolbar-ClJbaKID.js → toolbar-CVDXVnje.js} +1 -1
- package/dist/{tr-DQMivdvy.js → tr-CkHLE5u7.js} +1 -1
- package/dist/{tr-CI97fTpD.cjs → tr-DMiXAhok.cjs} +1 -1
- package/dist/{translations-iam7PITs.js → translations-DEEflRUY.js} +96 -112
- package/dist/{translations-ZB5oDFId.cjs → translations-DRNj0YIi.cjs} +1 -1
- package/dist/translations-Dw1oO6Dh.cjs +1 -0
- package/dist/{translations-1yD6Rm5l.js → translations-Q5C5LyIi.js} +1 -1
- package/dist/types/components/beatui.d.ts +4 -1
- package/dist/types/components/button/button.d.ts +4 -3
- package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
- package/dist/types/components/misc/index.d.ts +4 -0
- package/dist/types/components/misc/notification-provider.d.ts +47 -0
- package/dist/types/components/misc/notification.d.ts +17 -0
- package/dist/types/components/misc/opengraph.d.ts +111 -0
- package/dist/types/components/navigation/link/button-link.d.ts +2 -0
- package/dist/types/components/overlay/lightbox.d.ts +1 -1
- package/dist/types/components/overlay/modal.d.ts +2 -2
- package/dist/types/components/overlay/ribbon.d.ts +2 -2
- package/dist/types/utils/use-animated-toggle.d.ts +43 -9
- package/dist/{ur-B3CiO8KH.cjs → ur-BjiNs3SL.cjs} +1 -1
- package/dist/{ur-o3rog5MJ.js → ur-bxBR_9Z-.js} +1 -1
- package/dist/{utils-B_QSuN66.js → utils-BCbc19N0.js} +202 -193
- package/dist/utils-BJZipnfW.cjs +1 -0
- package/dist/{vi-FibsLfdk.cjs → vi-CByOZvV2.cjs} +1 -1
- package/dist/{vi-C7cb2K_B.js → vi-CKknZqol.js} +1 -1
- package/dist/{zh-BtSj_Euh.cjs → zh-C0QOebEA.cjs} +1 -1
- package/dist/{zh-NGrfqAHM.js → zh-CmUgcP9o.js} +1 -1
- package/package.json +4 -3
- package/dist/modal--1g8Y5LH.js +0 -601
- package/dist/modal-mA_AFUCI.cjs +0 -1
- package/dist/notice-DCuZEAQO.cjs +0 -2
- package/dist/translations-DQxg-W9w.cjs +0 -1
- package/dist/utils-BD6NGV1v.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computedOf as Lt, html as Pt,
|
|
2
|
-
import { L as
|
|
1
|
+
import { computedOf as Lt, html as Pt, OnDispose as Bt, Task as Ot, attr as Mn, MapSignal as Mt, Async as Nt } from "@tempots/dom";
|
|
2
|
+
import { L as Dt } from "./link-portal-Cr2l9f3k.js";
|
|
3
3
|
const Nn = document.createElement("i");
|
|
4
4
|
function Yn(n) {
|
|
5
5
|
const r = "&" + n + ";";
|
|
@@ -24,14 +24,14 @@ function W(n, r) {
|
|
|
24
24
|
return n.length > 0 ? (nn(n, n.length, 0, r), n) : r;
|
|
25
25
|
}
|
|
26
26
|
const In = {}.hasOwnProperty;
|
|
27
|
-
function
|
|
27
|
+
function qt(n) {
|
|
28
28
|
const r = {};
|
|
29
29
|
let t = -1;
|
|
30
30
|
for (; ++t < n.length; )
|
|
31
|
-
|
|
31
|
+
Rt(r, n[t]);
|
|
32
32
|
return r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Rt(n, r) {
|
|
35
35
|
let t;
|
|
36
36
|
for (t in r) {
|
|
37
37
|
const u = (In.call(n, t) ? n[t] : void 0) || (n[t] = {}), i = r[t];
|
|
@@ -40,7 +40,7 @@ function qt(n, r) {
|
|
|
40
40
|
for (l in i) {
|
|
41
41
|
In.call(u, l) || (u[l] = []);
|
|
42
42
|
const a = i[l];
|
|
43
|
-
|
|
43
|
+
Ht(
|
|
44
44
|
// @ts-expect-error Looks like a list.
|
|
45
45
|
u[l],
|
|
46
46
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -48,21 +48,21 @@ function qt(n, r) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ht(n, r) {
|
|
52
52
|
let t = -1;
|
|
53
53
|
const e = [];
|
|
54
54
|
for (; ++t < r.length; )
|
|
55
55
|
(r[t].add === "after" ? n : e).push(r[t]);
|
|
56
56
|
nn(n, 0, 0, e);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Vt(n) {
|
|
59
59
|
const r = {};
|
|
60
60
|
let t = -1;
|
|
61
61
|
for (; ++t < n.length; )
|
|
62
|
-
|
|
62
|
+
Qt(r, n[t]);
|
|
63
63
|
return r;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Qt(n, r) {
|
|
66
66
|
let t;
|
|
67
67
|
for (t in r) {
|
|
68
68
|
const u = (In.call(n, t) ? n[t] : void 0) || (n[t] = {}), i = r[t];
|
|
@@ -72,7 +72,7 @@ function Vt(n, r) {
|
|
|
72
72
|
u[l] = i[l];
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Wt(n, r) {
|
|
76
76
|
const t = Number.parseInt(n, r);
|
|
77
77
|
return (
|
|
78
78
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -85,11 +85,11 @@ function Qt(n, r) {
|
|
|
85
85
|
t > 1114111 ? "�" : String.fromCodePoint(t)
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
|
-
const
|
|
88
|
+
const Ut = { '"': "quot", "&": "amp", "<": "lt", ">": "gt" };
|
|
89
89
|
function Zn(n) {
|
|
90
90
|
return n.replace(/["&<>]/g, r);
|
|
91
91
|
function r(t) {
|
|
92
|
-
return "&" +
|
|
92
|
+
return "&" + Ut[
|
|
93
93
|
/** @type {keyof typeof characterReferences} */
|
|
94
94
|
t
|
|
95
95
|
] + ";";
|
|
@@ -98,7 +98,7 @@ function Zn(n) {
|
|
|
98
98
|
function mn(n) {
|
|
99
99
|
return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
100
100
|
}
|
|
101
|
-
const v = ln(/[A-Za-z]/), $ = ln(/[\dA-Za-z]/),
|
|
101
|
+
const v = ln(/[A-Za-z]/), $ = ln(/[\dA-Za-z]/), jt = ln(/[#-'*+\--9=?A-Z^-~]/);
|
|
102
102
|
function wn(n) {
|
|
103
103
|
return (
|
|
104
104
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -106,7 +106,7 @@ function wn(n) {
|
|
|
106
106
|
n !== null && (n < 32 || n === 127)
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
const Cn = ln(/\d/),
|
|
109
|
+
const Cn = ln(/\d/), $t = ln(/[\dA-Fa-f]/), Yt = ln(/[!-/:-@[-`{-~]/);
|
|
110
110
|
function E(n) {
|
|
111
111
|
return n !== null && n < -2;
|
|
112
112
|
}
|
|
@@ -116,7 +116,7 @@ function j(n) {
|
|
|
116
116
|
function _(n) {
|
|
117
117
|
return n === -2 || n === -1 || n === 32;
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const Zt = ln(new RegExp("\\p{P}|\\p{S}", "u")), Gt = ln(/\s/);
|
|
120
120
|
function ln(n) {
|
|
121
121
|
return r;
|
|
122
122
|
function r(t) {
|
|
@@ -124,7 +124,7 @@ function ln(n) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function gn(n, r) {
|
|
127
|
-
const t = Zn(
|
|
127
|
+
const t = Zn(Jt(n || ""));
|
|
128
128
|
if (!r)
|
|
129
129
|
return t;
|
|
130
130
|
const e = t.indexOf(":"), u = t.indexOf("?"), i = t.indexOf("#"), l = t.indexOf("/");
|
|
@@ -135,7 +135,7 @@ function gn(n, r) {
|
|
|
135
135
|
r.test(t.slice(0, e)) ? t : ""
|
|
136
136
|
);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Jt(n) {
|
|
139
139
|
const r = [];
|
|
140
140
|
let t = -1, e = 0, u = 0;
|
|
141
141
|
for (; ++t < n.length; ) {
|
|
@@ -154,13 +154,13 @@ function Gt(n) {
|
|
|
154
154
|
}
|
|
155
155
|
return r.join("") + n.slice(e);
|
|
156
156
|
}
|
|
157
|
-
const Dn = {}.hasOwnProperty, qn = /^(https?|ircs?|mailto|xmpp)$/i,
|
|
158
|
-
function
|
|
157
|
+
const Dn = {}.hasOwnProperty, qn = /^(https?|ircs?|mailto|xmpp)$/i, Kt = /^https?$/i;
|
|
158
|
+
function Xt(n) {
|
|
159
159
|
const r = n || {};
|
|
160
160
|
let t = !0;
|
|
161
161
|
const e = {}, u = [[]], i = [], l = [], m = (
|
|
162
162
|
/** @type {NormalizedHtmlExtension} */
|
|
163
|
-
|
|
163
|
+
Vt([{
|
|
164
164
|
enter: {
|
|
165
165
|
blockQuote: A,
|
|
166
166
|
codeFenced: tn,
|
|
@@ -422,7 +422,7 @@ function Kt(n) {
|
|
|
422
422
|
t = void 0;
|
|
423
423
|
break;
|
|
424
424
|
}
|
|
425
|
-
w.image ? (I('<img src="' + gn(J.destination, r.allowDangerousProtocol ? void 0 :
|
|
425
|
+
w.image ? (I('<img src="' + gn(J.destination, r.allowDangerousProtocol ? void 0 : Kt) + '" alt="'), d(w.label), I('"')) : I('<a href="' + gn(J.destination, r.allowDangerousProtocol ? void 0 : qn) + '"'), I(J.title ? ' title="' + J.title + '"' : ""), w.image ? I(" />") : (I(">"), d(w.label), I("</a>")), i.pop();
|
|
426
426
|
}
|
|
427
427
|
function ut() {
|
|
428
428
|
F(), i.push({});
|
|
@@ -521,7 +521,7 @@ function Kt(n) {
|
|
|
521
521
|
b("characterReferenceType", k.type);
|
|
522
522
|
}
|
|
523
523
|
function Ft(k) {
|
|
524
|
-
const w = this.sliceSerialize(k), Q = y("characterReferenceType") ?
|
|
524
|
+
const w = this.sliceSerialize(k), Q = y("characterReferenceType") ? Wt(w, y("characterReferenceType") === "characterReferenceMarkerNumeric" ? 10 : 16) : Yn(w);
|
|
525
525
|
d(x(
|
|
526
526
|
/** @type {string} */
|
|
527
527
|
Q
|
|
@@ -547,10 +547,10 @@ function B(n, r, t, e) {
|
|
|
547
547
|
return _(m) && i++ < u ? (n.consume(m), a) : (n.exit(t), r(m));
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
const
|
|
551
|
-
tokenize:
|
|
550
|
+
const vt = {
|
|
551
|
+
tokenize: ne
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function ne(n) {
|
|
554
554
|
const r = n.attempt(this.parser.constructs.contentInitial, e, u);
|
|
555
555
|
let t;
|
|
556
556
|
return r;
|
|
@@ -579,12 +579,12 @@ function vt(n) {
|
|
|
579
579
|
return E(a) ? (n.consume(a), n.exit("chunkText"), i) : (n.consume(a), l);
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
const
|
|
583
|
-
tokenize: te
|
|
584
|
-
}, Rn = {
|
|
582
|
+
const te = {
|
|
585
583
|
tokenize: ee
|
|
584
|
+
}, Rn = {
|
|
585
|
+
tokenize: re
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function ee(n) {
|
|
588
588
|
const r = this, t = [];
|
|
589
589
|
let e = 0, u, i, l;
|
|
590
590
|
return a;
|
|
@@ -696,13 +696,13 @@ function te(n) {
|
|
|
696
696
|
u.write([null]), i = void 0, u = void 0, r.containerState._closeFlow = void 0;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function re(n, r, t) {
|
|
700
700
|
return B(n, n.attempt(this.parser.constructs.document, r, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
701
701
|
}
|
|
702
702
|
function Hn(n) {
|
|
703
|
-
if (n === null || j(n) ||
|
|
703
|
+
if (n === null || j(n) || Gt(n))
|
|
704
704
|
return 1;
|
|
705
|
-
if (
|
|
705
|
+
if (Zt(n))
|
|
706
706
|
return 2;
|
|
707
707
|
}
|
|
708
708
|
function yn(n, r, t) {
|
|
@@ -716,10 +716,10 @@ function yn(n, r, t) {
|
|
|
716
716
|
}
|
|
717
717
|
const zn = {
|
|
718
718
|
name: "attention",
|
|
719
|
-
resolveAll:
|
|
720
|
-
tokenize:
|
|
719
|
+
resolveAll: ie,
|
|
720
|
+
tokenize: ue
|
|
721
721
|
};
|
|
722
|
-
function
|
|
722
|
+
function ie(n, r) {
|
|
723
723
|
let t = -1, e, u, i, l, a, m, h, p;
|
|
724
724
|
for (; ++t < n.length; )
|
|
725
725
|
if (n[t][0] === "enter" && n[t][1].type === "attentionSequence" && n[t][1]._close) {
|
|
@@ -774,7 +774,7 @@ function re(n, r) {
|
|
|
774
774
|
n[t][1].type === "attentionSequence" && (n[t][1].type = "data");
|
|
775
775
|
return n;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function ue(n, r) {
|
|
778
778
|
const t = this.parser.constructs.attentionMarkers.null, e = this.previous, u = Hn(e);
|
|
779
779
|
let i;
|
|
780
780
|
return l;
|
|
@@ -791,11 +791,11 @@ function ie(n, r) {
|
|
|
791
791
|
function Vn(n, r) {
|
|
792
792
|
n.column += r, n.offset += r, n._bufferIndex += r;
|
|
793
793
|
}
|
|
794
|
-
const
|
|
794
|
+
const le = {
|
|
795
795
|
name: "autolink",
|
|
796
|
-
tokenize:
|
|
796
|
+
tokenize: ae
|
|
797
797
|
};
|
|
798
|
-
function
|
|
798
|
+
function ae(n, r, t) {
|
|
799
799
|
let e = 0;
|
|
800
800
|
return u;
|
|
801
801
|
function u(c) {
|
|
@@ -814,7 +814,7 @@ function le(n, r, t) {
|
|
|
814
814
|
return c === 62 ? (n.exit("autolinkProtocol"), n.enter("autolinkMarker"), n.consume(c), n.exit("autolinkMarker"), n.exit("autolink"), r) : c === null || c === 32 || c === 60 || wn(c) ? t(c) : (n.consume(c), m);
|
|
815
815
|
}
|
|
816
816
|
function h(c) {
|
|
817
|
-
return c === 64 ? (n.consume(c), p) :
|
|
817
|
+
return c === 64 ? (n.consume(c), p) : jt(c) ? (n.consume(c), h) : t(c);
|
|
818
818
|
}
|
|
819
819
|
function p(c) {
|
|
820
820
|
return $(c) ? f(c) : t(c);
|
|
@@ -832,9 +832,9 @@ function le(n, r, t) {
|
|
|
832
832
|
}
|
|
833
833
|
const kn = {
|
|
834
834
|
partial: !0,
|
|
835
|
-
tokenize:
|
|
835
|
+
tokenize: oe
|
|
836
836
|
};
|
|
837
|
-
function
|
|
837
|
+
function oe(n, r, t) {
|
|
838
838
|
return e;
|
|
839
839
|
function e(i) {
|
|
840
840
|
return _(i) ? B(n, u, "linePrefix")(i) : u(i);
|
|
@@ -845,13 +845,13 @@ function ae(n, r, t) {
|
|
|
845
845
|
}
|
|
846
846
|
const Gn = {
|
|
847
847
|
continuation: {
|
|
848
|
-
tokenize:
|
|
848
|
+
tokenize: ce
|
|
849
849
|
},
|
|
850
|
-
exit:
|
|
850
|
+
exit: he,
|
|
851
851
|
name: "blockQuote",
|
|
852
|
-
tokenize:
|
|
852
|
+
tokenize: se
|
|
853
853
|
};
|
|
854
|
-
function
|
|
854
|
+
function se(n, r, t) {
|
|
855
855
|
const e = this;
|
|
856
856
|
return u;
|
|
857
857
|
function u(l) {
|
|
@@ -867,7 +867,7 @@ function oe(n, r, t) {
|
|
|
867
867
|
return _(l) ? (n.enter("blockQuotePrefixWhitespace"), n.consume(l), n.exit("blockQuotePrefixWhitespace"), n.exit("blockQuotePrefix"), r) : (n.exit("blockQuotePrefix"), r(l));
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function ce(n, r, t) {
|
|
871
871
|
const e = this;
|
|
872
872
|
return u;
|
|
873
873
|
function u(l) {
|
|
@@ -877,27 +877,27 @@ function se(n, r, t) {
|
|
|
877
877
|
return n.attempt(Gn, r, t)(l);
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function he(n) {
|
|
881
881
|
n.exit("blockQuote");
|
|
882
882
|
}
|
|
883
883
|
const Jn = {
|
|
884
884
|
name: "characterEscape",
|
|
885
|
-
tokenize:
|
|
885
|
+
tokenize: fe
|
|
886
886
|
};
|
|
887
|
-
function
|
|
887
|
+
function fe(n, r, t) {
|
|
888
888
|
return e;
|
|
889
889
|
function e(i) {
|
|
890
890
|
return n.enter("characterEscape"), n.enter("escapeMarker"), n.consume(i), n.exit("escapeMarker"), u;
|
|
891
891
|
}
|
|
892
892
|
function u(i) {
|
|
893
|
-
return
|
|
893
|
+
return Yt(i) ? (n.enter("characterEscapeValue"), n.consume(i), n.exit("characterEscapeValue"), n.exit("characterEscape"), r) : t(i);
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
896
|
const Kn = {
|
|
897
897
|
name: "characterReference",
|
|
898
|
-
tokenize:
|
|
898
|
+
tokenize: pe
|
|
899
899
|
};
|
|
900
|
-
function
|
|
900
|
+
function pe(n, r, t) {
|
|
901
901
|
const e = this;
|
|
902
902
|
let u = 0, i, l;
|
|
903
903
|
return a;
|
|
@@ -908,7 +908,7 @@ function fe(n, r, t) {
|
|
|
908
908
|
return f === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(f), n.exit("characterReferenceMarkerNumeric"), h) : (n.enter("characterReferenceValue"), i = 31, l = $, p(f));
|
|
909
909
|
}
|
|
910
910
|
function h(f) {
|
|
911
|
-
return f === 88 || f === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(f), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, l =
|
|
911
|
+
return f === 88 || f === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(f), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, l = $t, p) : (n.enter("characterReferenceValue"), i = 7, l = Cn, p(f));
|
|
912
912
|
}
|
|
913
913
|
function p(f) {
|
|
914
914
|
if (f === 59 && u) {
|
|
@@ -920,13 +920,13 @@ function fe(n, r, t) {
|
|
|
920
920
|
}
|
|
921
921
|
const Qn = {
|
|
922
922
|
partial: !0,
|
|
923
|
-
tokenize:
|
|
923
|
+
tokenize: ge
|
|
924
924
|
}, Wn = {
|
|
925
925
|
concrete: !0,
|
|
926
926
|
name: "codeFenced",
|
|
927
|
-
tokenize:
|
|
927
|
+
tokenize: me
|
|
928
928
|
};
|
|
929
|
-
function
|
|
929
|
+
function me(n, r, t) {
|
|
930
930
|
const e = this, u = {
|
|
931
931
|
partial: !0,
|
|
932
932
|
tokenize: T
|
|
@@ -997,7 +997,7 @@ function pe(n, r, t) {
|
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function ge(n, r, t) {
|
|
1001
1001
|
const e = this;
|
|
1002
1002
|
return u;
|
|
1003
1003
|
function u(l) {
|
|
@@ -1009,12 +1009,12 @@ function me(n, r, t) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
const bn = {
|
|
1011
1011
|
name: "codeIndented",
|
|
1012
|
-
tokenize: xe
|
|
1013
|
-
}, ge = {
|
|
1014
|
-
partial: !0,
|
|
1015
1012
|
tokenize: ke
|
|
1013
|
+
}, xe = {
|
|
1014
|
+
partial: !0,
|
|
1015
|
+
tokenize: Se
|
|
1016
1016
|
};
|
|
1017
|
-
function
|
|
1017
|
+
function ke(n, r, t) {
|
|
1018
1018
|
const e = this;
|
|
1019
1019
|
return u;
|
|
1020
1020
|
function u(h) {
|
|
@@ -1025,7 +1025,7 @@ function xe(n, r, t) {
|
|
|
1025
1025
|
return p && p[1].type === "linePrefix" && p[2].sliceSerialize(p[1], !0).length >= 4 ? l(h) : t(h);
|
|
1026
1026
|
}
|
|
1027
1027
|
function l(h) {
|
|
1028
|
-
return h === null ? m(h) : E(h) ? n.attempt(
|
|
1028
|
+
return h === null ? m(h) : E(h) ? n.attempt(xe, l, m)(h) : (n.enter("codeFlowValue"), a(h));
|
|
1029
1029
|
}
|
|
1030
1030
|
function a(h) {
|
|
1031
1031
|
return h === null || E(h) ? (n.exit("codeFlowValue"), l(h)) : (n.consume(h), a);
|
|
@@ -1034,7 +1034,7 @@ function xe(n, r, t) {
|
|
|
1034
1034
|
return n.exit("codeIndented"), r(h);
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function Se(n, r, t) {
|
|
1038
1038
|
const e = this;
|
|
1039
1039
|
return u;
|
|
1040
1040
|
function u(l) {
|
|
@@ -1045,13 +1045,13 @@ function ke(n, r, t) {
|
|
|
1045
1045
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? r(l) : E(l) ? u(l) : t(l);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
const
|
|
1048
|
+
const be = {
|
|
1049
1049
|
name: "codeText",
|
|
1050
|
-
previous:
|
|
1051
|
-
resolve:
|
|
1052
|
-
tokenize:
|
|
1050
|
+
previous: Ie,
|
|
1051
|
+
resolve: de,
|
|
1052
|
+
tokenize: we
|
|
1053
1053
|
};
|
|
1054
|
-
function
|
|
1054
|
+
function de(n) {
|
|
1055
1055
|
let r = n.length - 4, t = 3, e, u;
|
|
1056
1056
|
if ((n[t][1].type === "lineEnding" || n[t][1].type === "space") && (n[r][1].type === "lineEnding" || n[r][1].type === "space")) {
|
|
1057
1057
|
for (e = t; ++e < r; )
|
|
@@ -1064,10 +1064,10 @@ function be(n) {
|
|
|
1064
1064
|
u === void 0 ? e !== r && n[e][1].type !== "lineEnding" && (u = e) : (e === r || n[e][1].type === "lineEnding") && (n[u][1].type = "codeTextData", e !== u + 2 && (n[u][1].end = n[e - 1][1].end, n.splice(u + 2, e - u - 2), r -= e - u - 2, e = u + 2), u = void 0);
|
|
1065
1065
|
return n;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function Ie(n) {
|
|
1068
1068
|
return n !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function we(n, r, t) {
|
|
1071
1071
|
let e = 0, u, i;
|
|
1072
1072
|
return l;
|
|
1073
1073
|
function l(f) {
|
|
@@ -1086,7 +1086,7 @@ function Ie(n, r, t) {
|
|
|
1086
1086
|
return f === 96 ? (n.consume(f), u++, p) : u === e ? (n.exit("codeTextSequence"), n.exit("codeText"), r(f)) : (i.type = "codeTextData", h(f));
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
|
-
class
|
|
1089
|
+
class Ce {
|
|
1090
1090
|
/**
|
|
1091
1091
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
1092
1092
|
* Initial items (optional).
|
|
@@ -1261,7 +1261,7 @@ function fn(n, r) {
|
|
|
1261
1261
|
function Xn(n) {
|
|
1262
1262
|
const r = {};
|
|
1263
1263
|
let t = -1, e, u, i, l, a, m, h;
|
|
1264
|
-
const p = new
|
|
1264
|
+
const p = new Ce(n);
|
|
1265
1265
|
for (; ++t < p.length; ) {
|
|
1266
1266
|
for (; t in r; )
|
|
1267
1267
|
t = r[t];
|
|
@@ -1269,7 +1269,7 @@ function Xn(n) {
|
|
|
1269
1269
|
for (; ++i < m.length && m[i][1].type !== "content"; )
|
|
1270
1270
|
m[i][1].type === "chunkText" && (m[i][1]._isInFirstContentOfListItem = !0, i++);
|
|
1271
1271
|
if (e[0] === "enter")
|
|
1272
|
-
e[1].contentType && (Object.assign(r,
|
|
1272
|
+
e[1].contentType && (Object.assign(r, ze(p, t)), t = r[t], h = !0);
|
|
1273
1273
|
else if (e[1]._container) {
|
|
1274
1274
|
for (i = t, u = void 0; i--; )
|
|
1275
1275
|
if (l = p.get(i), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
|
|
@@ -1282,7 +1282,7 @@ function Xn(n) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
return nn(n, 0, Number.POSITIVE_INFINITY, p.slice(0)), !h;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function ze(n, r) {
|
|
1286
1286
|
const t = n.get(r)[1], e = n.get(r)[2];
|
|
1287
1287
|
let u = r - 1;
|
|
1288
1288
|
const i = [];
|
|
@@ -1307,17 +1307,17 @@ function Ce(n, r) {
|
|
|
1307
1307
|
h[b + m[g][0]] = b + m[g][1], b += m[g][1] - m[g][0] - 1;
|
|
1308
1308
|
return h;
|
|
1309
1309
|
}
|
|
1310
|
-
const
|
|
1311
|
-
resolve:
|
|
1312
|
-
tokenize: Te
|
|
1313
|
-
}, ye = {
|
|
1314
|
-
partial: !0,
|
|
1310
|
+
const ye = {
|
|
1311
|
+
resolve: Te,
|
|
1315
1312
|
tokenize: Fe
|
|
1313
|
+
}, Ee = {
|
|
1314
|
+
partial: !0,
|
|
1315
|
+
tokenize: Ae
|
|
1316
1316
|
};
|
|
1317
|
-
function
|
|
1317
|
+
function Te(n) {
|
|
1318
1318
|
return Xn(n), n;
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function Fe(n, r) {
|
|
1321
1321
|
let t;
|
|
1322
1322
|
return e;
|
|
1323
1323
|
function e(a) {
|
|
@@ -1326,7 +1326,7 @@ function Te(n, r) {
|
|
|
1326
1326
|
}), u(a);
|
|
1327
1327
|
}
|
|
1328
1328
|
function u(a) {
|
|
1329
|
-
return a === null ? i(a) : E(a) ? n.check(
|
|
1329
|
+
return a === null ? i(a) : E(a) ? n.check(Ee, l, i)(a) : (n.consume(a), u);
|
|
1330
1330
|
}
|
|
1331
1331
|
function i(a) {
|
|
1332
1332
|
return n.exit("chunkContent"), n.exit("content"), r(a);
|
|
@@ -1338,7 +1338,7 @@ function Te(n, r) {
|
|
|
1338
1338
|
}), t = t.next, u;
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function Ae(n, r, t) {
|
|
1342
1342
|
const e = this;
|
|
1343
1343
|
return u;
|
|
1344
1344
|
function u(l) {
|
|
@@ -1430,14 +1430,14 @@ function pn(n, r) {
|
|
|
1430
1430
|
return E(u) ? (n.enter("lineEnding"), n.consume(u), n.exit("lineEnding"), t = !0, e) : _(u) ? B(n, e, t ? "linePrefix" : "lineSuffix")(u) : r(u);
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
const
|
|
1433
|
+
const _e = {
|
|
1434
1434
|
name: "definition",
|
|
1435
|
-
tokenize: Le
|
|
1436
|
-
}, _e = {
|
|
1437
|
-
partial: !0,
|
|
1438
1435
|
tokenize: Pe
|
|
1436
|
+
}, Le = {
|
|
1437
|
+
partial: !0,
|
|
1438
|
+
tokenize: Be
|
|
1439
1439
|
};
|
|
1440
|
-
function
|
|
1440
|
+
function Pe(n, r, t) {
|
|
1441
1441
|
const e = this;
|
|
1442
1442
|
let u;
|
|
1443
1443
|
return i;
|
|
@@ -1476,7 +1476,7 @@ function Le(n, r, t) {
|
|
|
1476
1476
|
)(c);
|
|
1477
1477
|
}
|
|
1478
1478
|
function p(c) {
|
|
1479
|
-
return n.attempt(
|
|
1479
|
+
return n.attempt(Le, f, f)(c);
|
|
1480
1480
|
}
|
|
1481
1481
|
function f(c) {
|
|
1482
1482
|
return _(c) ? B(n, g, "whitespace")(c) : g(c);
|
|
@@ -1485,7 +1485,7 @@ function Le(n, r, t) {
|
|
|
1485
1485
|
return c === null || E(c) ? (n.exit("definition"), e.parser.defined.push(u), r(c)) : t(c);
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function Be(n, r, t) {
|
|
1489
1489
|
return e;
|
|
1490
1490
|
function e(a) {
|
|
1491
1491
|
return j(a) ? pn(n, u)(a) : t(a);
|
|
@@ -1500,11 +1500,11 @@ function Pe(n, r, t) {
|
|
|
1500
1500
|
return a === null || E(a) ? r(a) : t(a);
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
const
|
|
1503
|
+
const Oe = {
|
|
1504
1504
|
name: "hardBreakEscape",
|
|
1505
|
-
tokenize:
|
|
1505
|
+
tokenize: Me
|
|
1506
1506
|
};
|
|
1507
|
-
function
|
|
1507
|
+
function Me(n, r, t) {
|
|
1508
1508
|
return e;
|
|
1509
1509
|
function e(i) {
|
|
1510
1510
|
return n.enter("hardBreakEscape"), n.consume(i), u;
|
|
@@ -1513,12 +1513,12 @@ function Oe(n, r, t) {
|
|
|
1513
1513
|
return E(i) ? (n.exit("hardBreakEscape"), r(i)) : t(i);
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1516
|
+
const Ne = {
|
|
1517
1517
|
name: "headingAtx",
|
|
1518
|
-
resolve:
|
|
1519
|
-
tokenize:
|
|
1518
|
+
resolve: De,
|
|
1519
|
+
tokenize: qe
|
|
1520
1520
|
};
|
|
1521
|
-
function
|
|
1521
|
+
function De(n, r) {
|
|
1522
1522
|
let t = n.length - 2, e = 3, u, i;
|
|
1523
1523
|
return n[e][1].type === "whitespace" && (e += 2), t - 2 > e && n[t][1].type === "whitespace" && (t -= 2), n[t][1].type === "atxHeadingSequence" && (e === t - 1 || t - 4 > e && n[t - 2][1].type === "whitespace") && (t -= e + 1 === t ? 2 : 4), t > e && (u = {
|
|
1524
1524
|
type: "atxHeadingText",
|
|
@@ -1531,7 +1531,7 @@ function Ne(n, r) {
|
|
|
1531
1531
|
contentType: "text"
|
|
1532
1532
|
}, nn(n, e, t - e + 1, [["enter", u, r], ["enter", i, r], ["exit", i, r], ["exit", u, r]])), n;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function qe(n, r, t) {
|
|
1535
1535
|
let e = 0;
|
|
1536
1536
|
return u;
|
|
1537
1537
|
function u(p) {
|
|
@@ -1553,7 +1553,7 @@ function De(n, r, t) {
|
|
|
1553
1553
|
return p === null || p === 35 || j(p) ? (n.exit("atxHeadingText"), a(p)) : (n.consume(p), h);
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
|
-
const
|
|
1556
|
+
const Re = [
|
|
1557
1557
|
"address",
|
|
1558
1558
|
"article",
|
|
1559
1559
|
"aside",
|
|
@@ -1616,25 +1616,25 @@ const qe = [
|
|
|
1616
1616
|
"tr",
|
|
1617
1617
|
"track",
|
|
1618
1618
|
"ul"
|
|
1619
|
-
], Un = ["pre", "script", "style", "textarea"],
|
|
1619
|
+
], Un = ["pre", "script", "style", "textarea"], He = {
|
|
1620
1620
|
concrete: !0,
|
|
1621
1621
|
name: "htmlFlow",
|
|
1622
|
-
resolveTo:
|
|
1623
|
-
tokenize:
|
|
1624
|
-
}, He = {
|
|
1625
|
-
partial: !0,
|
|
1626
|
-
tokenize: je
|
|
1622
|
+
resolveTo: We,
|
|
1623
|
+
tokenize: Ue
|
|
1627
1624
|
}, Ve = {
|
|
1628
1625
|
partial: !0,
|
|
1629
|
-
tokenize:
|
|
1626
|
+
tokenize: $e
|
|
1627
|
+
}, Qe = {
|
|
1628
|
+
partial: !0,
|
|
1629
|
+
tokenize: je
|
|
1630
1630
|
};
|
|
1631
|
-
function
|
|
1631
|
+
function We(n) {
|
|
1632
1632
|
let r = n.length;
|
|
1633
1633
|
for (; r-- && !(n[r][0] === "enter" && n[r][1].type === "htmlFlow"); )
|
|
1634
1634
|
;
|
|
1635
1635
|
return r > 1 && n[r - 2][1].type === "linePrefix" && (n[r][1].start = n[r - 2][1].start, n[r + 1][1].start = n[r - 2][1].start, n.splice(r - 2, 2)), n;
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1637
|
+
function Ue(n, r, t) {
|
|
1638
1638
|
const e = this;
|
|
1639
1639
|
let u, i, l, a, m;
|
|
1640
1640
|
return h;
|
|
@@ -1663,7 +1663,7 @@ function We(n, r, t) {
|
|
|
1663
1663
|
function F(s) {
|
|
1664
1664
|
if (s === null || s === 47 || s === 62 || j(s)) {
|
|
1665
1665
|
const G = s === 47, an = l.toLowerCase();
|
|
1666
|
-
return !G && !i && Un.includes(an) ? (u = 1, e.interrupt ? r(s) : C(s)) :
|
|
1666
|
+
return !G && !i && Un.includes(an) ? (u = 1, e.interrupt ? r(s) : C(s)) : Re.includes(l.toLowerCase()) ? (u = 6, G ? (n.consume(s), S) : e.interrupt ? r(s) : C(s)) : (u = 7, e.interrupt && !e.parser.lazy[e.now().line] ? t(s) : i ? I(s) : d(s));
|
|
1667
1667
|
}
|
|
1668
1668
|
return s === 45 || $(s) ? (n.consume(s), l += String.fromCharCode(s), F) : t(s);
|
|
1669
1669
|
}
|
|
@@ -1701,10 +1701,10 @@ function We(n, r, t) {
|
|
|
1701
1701
|
return s === null || E(s) ? C(s) : _(s) ? (n.consume(s), z) : t(s);
|
|
1702
1702
|
}
|
|
1703
1703
|
function C(s) {
|
|
1704
|
-
return s === 45 && u === 2 ? (n.consume(s), V) : s === 60 && u === 1 ? (n.consume(s), R) : s === 62 && u === 4 ? (n.consume(s), Z) : s === 63 && u === 3 ? (n.consume(s), o) : s === 93 && u === 5 ? (n.consume(s), tn) : E(s) && (u === 6 || u === 7) ? (n.exit("htmlFlowData"), n.check(
|
|
1704
|
+
return s === 45 && u === 2 ? (n.consume(s), V) : s === 60 && u === 1 ? (n.consume(s), R) : s === 62 && u === 4 ? (n.consume(s), Z) : s === 63 && u === 3 ? (n.consume(s), o) : s === 93 && u === 5 ? (n.consume(s), tn) : E(s) && (u === 6 || u === 7) ? (n.exit("htmlFlowData"), n.check(Ve, en, O)(s)) : s === null || E(s) ? (n.exit("htmlFlowData"), O(s)) : (n.consume(s), C);
|
|
1705
1705
|
}
|
|
1706
1706
|
function O(s) {
|
|
1707
|
-
return n.check(
|
|
1707
|
+
return n.check(Qe, M, en)(s);
|
|
1708
1708
|
}
|
|
1709
1709
|
function M(s) {
|
|
1710
1710
|
return n.enter("lineEnding"), n.consume(s), n.exit("lineEnding"), A;
|
|
@@ -1738,7 +1738,7 @@ function We(n, r, t) {
|
|
|
1738
1738
|
return n.exit("htmlFlow"), r(s);
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function je(n, r, t) {
|
|
1742
1742
|
const e = this;
|
|
1743
1743
|
return u;
|
|
1744
1744
|
function u(l) {
|
|
@@ -1748,17 +1748,17 @@ function Ue(n, r, t) {
|
|
|
1748
1748
|
return e.parser.lazy[e.now().line] ? t(l) : r(l);
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function $e(n, r, t) {
|
|
1752
1752
|
return e;
|
|
1753
1753
|
function e(u) {
|
|
1754
1754
|
return n.enter("lineEnding"), n.consume(u), n.exit("lineEnding"), n.attempt(kn, r, t);
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
|
-
const
|
|
1757
|
+
const Ye = {
|
|
1758
1758
|
name: "htmlText",
|
|
1759
|
-
tokenize:
|
|
1759
|
+
tokenize: Ze
|
|
1760
1760
|
};
|
|
1761
|
-
function
|
|
1761
|
+
function Ze(n, r, t) {
|
|
1762
1762
|
const e = this;
|
|
1763
1763
|
let u, i, l;
|
|
1764
1764
|
return a;
|
|
@@ -1853,17 +1853,17 @@ function Ye(n, r, t) {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
const En = {
|
|
1855
1855
|
name: "labelEnd",
|
|
1856
|
-
resolveAll:
|
|
1857
|
-
resolveTo:
|
|
1858
|
-
tokenize: ve
|
|
1859
|
-
}, Ze = {
|
|
1856
|
+
resolveAll: Xe,
|
|
1857
|
+
resolveTo: ve,
|
|
1860
1858
|
tokenize: nr
|
|
1861
1859
|
}, Ge = {
|
|
1862
1860
|
tokenize: tr
|
|
1863
1861
|
}, Je = {
|
|
1864
1862
|
tokenize: er
|
|
1863
|
+
}, Ke = {
|
|
1864
|
+
tokenize: rr
|
|
1865
1865
|
};
|
|
1866
|
-
function
|
|
1866
|
+
function Xe(n) {
|
|
1867
1867
|
let r = -1;
|
|
1868
1868
|
const t = [];
|
|
1869
1869
|
for (; ++r < n.length; ) {
|
|
@@ -1875,7 +1875,7 @@ function Ke(n) {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
return n.length !== t.length && nn(n, 0, n.length, t), n;
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function ve(n, r) {
|
|
1879
1879
|
let t = n.length, e = 0, u, i, l, a;
|
|
1880
1880
|
for (; t--; )
|
|
1881
1881
|
if (u = n[t][1], i) {
|
|
@@ -1915,7 +1915,7 @@ function Xe(n, r) {
|
|
|
1915
1915
|
};
|
|
1916
1916
|
return a = [["enter", m, r], ["enter", h, r]], a = W(a, n.slice(i + 1, i + e + 3)), a = W(a, [["enter", p, r]]), a = W(a, yn(r.parser.constructs.insideSpan.null, n.slice(i + e + 4, l - 3), r)), a = W(a, [["exit", p, r], n[l - 2], n[l - 1], ["exit", h, r]]), a = W(a, n.slice(l + 1)), a = W(a, [["exit", m, r]]), nn(n, i, n.length, a), n;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function nr(n, r, t) {
|
|
1919
1919
|
const e = this;
|
|
1920
1920
|
let u = e.events.length, i, l;
|
|
1921
1921
|
for (; u--; )
|
|
@@ -1931,10 +1931,10 @@ function ve(n, r, t) {
|
|
|
1931
1931
|
}))), n.enter("labelEnd"), n.enter("labelMarker"), n.consume(g), n.exit("labelMarker"), n.exit("labelEnd"), m) : t(g);
|
|
1932
1932
|
}
|
|
1933
1933
|
function m(g) {
|
|
1934
|
-
return g === 40 ? n.attempt(
|
|
1934
|
+
return g === 40 ? n.attempt(Ge, p, l ? p : f)(g) : g === 91 ? n.attempt(Je, p, l ? h : f)(g) : l ? p(g) : f(g);
|
|
1935
1935
|
}
|
|
1936
1936
|
function h(g) {
|
|
1937
|
-
return n.attempt(
|
|
1937
|
+
return n.attempt(Ke, p, f)(g);
|
|
1938
1938
|
}
|
|
1939
1939
|
function p(g) {
|
|
1940
1940
|
return r(g);
|
|
@@ -1943,7 +1943,7 @@ function ve(n, r, t) {
|
|
|
1943
1943
|
return i._balanced = !0, t(g);
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function tr(n, r, t) {
|
|
1947
1947
|
return e;
|
|
1948
1948
|
function e(f) {
|
|
1949
1949
|
return n.enter("resource"), n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), u;
|
|
@@ -1970,7 +1970,7 @@ function nr(n, r, t) {
|
|
|
1970
1970
|
return f === 41 ? (n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), n.exit("resource"), r) : t(f);
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function er(n, r, t) {
|
|
1974
1974
|
const e = this;
|
|
1975
1975
|
return u;
|
|
1976
1976
|
function u(a) {
|
|
@@ -1983,7 +1983,7 @@ function tr(n, r, t) {
|
|
|
1983
1983
|
return t(a);
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function rr(n, r, t) {
|
|
1987
1987
|
return e;
|
|
1988
1988
|
function e(i) {
|
|
1989
1989
|
return n.enter("reference"), n.enter("referenceMarker"), n.consume(i), n.exit("referenceMarker"), u;
|
|
@@ -1992,12 +1992,12 @@ function er(n, r, t) {
|
|
|
1992
1992
|
return i === 93 ? (n.enter("referenceMarker"), n.consume(i), n.exit("referenceMarker"), n.exit("reference"), r) : t(i);
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
|
-
const
|
|
1995
|
+
const ir = {
|
|
1996
1996
|
name: "labelStartImage",
|
|
1997
1997
|
resolveAll: En.resolveAll,
|
|
1998
|
-
tokenize:
|
|
1998
|
+
tokenize: ur
|
|
1999
1999
|
};
|
|
2000
|
-
function
|
|
2000
|
+
function ur(n, r, t) {
|
|
2001
2001
|
const e = this;
|
|
2002
2002
|
return u;
|
|
2003
2003
|
function u(a) {
|
|
@@ -2010,12 +2010,12 @@ function ir(n, r, t) {
|
|
|
2010
2010
|
return a === 94 && "_hiddenFootnoteSupport" in e.parser.constructs ? t(a) : r(a);
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
|
-
const
|
|
2013
|
+
const lr = {
|
|
2014
2014
|
name: "labelStartLink",
|
|
2015
2015
|
resolveAll: En.resolveAll,
|
|
2016
|
-
tokenize:
|
|
2016
|
+
tokenize: ar
|
|
2017
2017
|
};
|
|
2018
|
-
function
|
|
2018
|
+
function ar(n, r, t) {
|
|
2019
2019
|
const e = this;
|
|
2020
2020
|
return u;
|
|
2021
2021
|
function u(l) {
|
|
@@ -2027,9 +2027,9 @@ function lr(n, r, t) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
const dn = {
|
|
2029
2029
|
name: "lineEnding",
|
|
2030
|
-
tokenize:
|
|
2030
|
+
tokenize: or
|
|
2031
2031
|
};
|
|
2032
|
-
function
|
|
2032
|
+
function or(n, r) {
|
|
2033
2033
|
return t;
|
|
2034
2034
|
function t(e) {
|
|
2035
2035
|
return n.enter("lineEnding"), n.consume(e), n.exit("lineEnding"), B(n, r, "linePrefix");
|
|
@@ -2037,9 +2037,9 @@ function ar(n, r) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
const xn = {
|
|
2039
2039
|
name: "thematicBreak",
|
|
2040
|
-
tokenize:
|
|
2040
|
+
tokenize: sr
|
|
2041
2041
|
};
|
|
2042
|
-
function
|
|
2042
|
+
function sr(n, r, t) {
|
|
2043
2043
|
let e = 0, u;
|
|
2044
2044
|
return i;
|
|
2045
2045
|
function i(h) {
|
|
@@ -2057,19 +2057,19 @@ function or(n, r, t) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
const U = {
|
|
2059
2059
|
continuation: {
|
|
2060
|
-
tokenize:
|
|
2060
|
+
tokenize: pr
|
|
2061
2061
|
},
|
|
2062
|
-
exit:
|
|
2062
|
+
exit: gr,
|
|
2063
2063
|
name: "list",
|
|
2064
|
-
tokenize:
|
|
2065
|
-
}, sr = {
|
|
2066
|
-
partial: !0,
|
|
2067
|
-
tokenize: gr
|
|
2064
|
+
tokenize: fr
|
|
2068
2065
|
}, cr = {
|
|
2069
2066
|
partial: !0,
|
|
2070
|
-
tokenize:
|
|
2067
|
+
tokenize: xr
|
|
2068
|
+
}, hr = {
|
|
2069
|
+
partial: !0,
|
|
2070
|
+
tokenize: mr
|
|
2071
2071
|
};
|
|
2072
|
-
function
|
|
2072
|
+
function fr(n, r, t) {
|
|
2073
2073
|
const e = this, u = e.events[e.events.length - 1];
|
|
2074
2074
|
let i = u && u[1].type === "linePrefix" ? u[2].sliceSerialize(u[1], !0).length : 0, l = 0;
|
|
2075
2075
|
return a;
|
|
@@ -2093,7 +2093,7 @@ function hr(n, r, t) {
|
|
|
2093
2093
|
kn,
|
|
2094
2094
|
// Can’t be empty when interrupting.
|
|
2095
2095
|
e.interrupt ? t : p,
|
|
2096
|
-
n.attempt(
|
|
2096
|
+
n.attempt(cr, g, f)
|
|
2097
2097
|
);
|
|
2098
2098
|
}
|
|
2099
2099
|
function p(c) {
|
|
@@ -2106,20 +2106,20 @@ function hr(n, r, t) {
|
|
|
2106
2106
|
return e.containerState.size = i + e.sliceSerialize(n.exit("listItemPrefix"), !0).length, r(c);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function pr(n, r, t) {
|
|
2110
2110
|
const e = this;
|
|
2111
2111
|
return e.containerState._closeFlow = void 0, n.check(kn, u, i);
|
|
2112
2112
|
function u(a) {
|
|
2113
2113
|
return e.containerState.furtherBlankLines = e.containerState.furtherBlankLines || e.containerState.initialBlankLine, B(n, r, "listItemIndent", e.containerState.size + 1)(a);
|
|
2114
2114
|
}
|
|
2115
2115
|
function i(a) {
|
|
2116
|
-
return e.containerState.furtherBlankLines || !_(a) ? (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, l(a)) : (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, n.attempt(
|
|
2116
|
+
return e.containerState.furtherBlankLines || !_(a) ? (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, l(a)) : (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, n.attempt(hr, r, l)(a));
|
|
2117
2117
|
}
|
|
2118
2118
|
function l(a) {
|
|
2119
2119
|
return e.containerState._closeFlow = !0, e.interrupt = void 0, B(n, n.attempt(U, r, t), "linePrefix", e.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function mr(n, r, t) {
|
|
2123
2123
|
const e = this;
|
|
2124
2124
|
return B(n, u, "listItemIndent", e.containerState.size + 1);
|
|
2125
2125
|
function u(i) {
|
|
@@ -2127,10 +2127,10 @@ function pr(n, r, t) {
|
|
|
2127
2127
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === e.containerState.size ? r(i) : t(i);
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
|
-
function
|
|
2130
|
+
function gr(n) {
|
|
2131
2131
|
n.exit(this.containerState.type);
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function xr(n, r, t) {
|
|
2134
2134
|
const e = this;
|
|
2135
2135
|
return B(n, u, "listItemPrefixWhitespace", e.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
2136
2136
|
function u(i) {
|
|
@@ -2140,10 +2140,10 @@ function gr(n, r, t) {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
const jn = {
|
|
2142
2142
|
name: "setextUnderline",
|
|
2143
|
-
resolveTo:
|
|
2144
|
-
tokenize:
|
|
2143
|
+
resolveTo: kr,
|
|
2144
|
+
tokenize: Sr
|
|
2145
2145
|
};
|
|
2146
|
-
function
|
|
2146
|
+
function kr(n, r) {
|
|
2147
2147
|
let t = n.length, e, u, i;
|
|
2148
2148
|
for (; t--; )
|
|
2149
2149
|
if (n[t][0] === "enter") {
|
|
@@ -2167,7 +2167,7 @@ function xr(n, r) {
|
|
|
2167
2167
|
...n[i][1].end
|
|
2168
2168
|
}) : n[e][1] = l, n.push(["exit", l, r]), n;
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function Sr(n, r, t) {
|
|
2171
2171
|
const e = this;
|
|
2172
2172
|
let u;
|
|
2173
2173
|
return i;
|
|
@@ -2190,16 +2190,16 @@ function kr(n, r, t) {
|
|
|
2190
2190
|
return h === null || E(h) ? (n.exit("setextHeadingLine"), r(h)) : t(h);
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
|
-
const
|
|
2194
|
-
tokenize:
|
|
2193
|
+
const br = {
|
|
2194
|
+
tokenize: dr
|
|
2195
2195
|
};
|
|
2196
|
-
function
|
|
2196
|
+
function dr(n) {
|
|
2197
2197
|
const r = this, t = n.attempt(
|
|
2198
2198
|
// Try to parse a blank line.
|
|
2199
2199
|
kn,
|
|
2200
2200
|
e,
|
|
2201
2201
|
// Try to parse initial flow (essentially, only code).
|
|
2202
|
-
n.attempt(this.parser.constructs.flowInitial, u, B(n, n.attempt(this.parser.constructs.flow, u, n.attempt(
|
|
2202
|
+
n.attempt(this.parser.constructs.flowInitial, u, B(n, n.attempt(this.parser.constructs.flow, u, n.attempt(ye, u)), "linePrefix"))
|
|
2203
2203
|
);
|
|
2204
2204
|
return t;
|
|
2205
2205
|
function e(i) {
|
|
@@ -2217,12 +2217,12 @@ function br(n) {
|
|
|
2217
2217
|
return n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), r.currentConstruct = void 0, t;
|
|
2218
2218
|
}
|
|
2219
2219
|
}
|
|
2220
|
-
const
|
|
2220
|
+
const Ir = {
|
|
2221
2221
|
resolveAll: rt()
|
|
2222
|
-
},
|
|
2222
|
+
}, wr = et("string"), Cr = et("text");
|
|
2223
2223
|
function et(n) {
|
|
2224
2224
|
return {
|
|
2225
|
-
resolveAll: rt(n === "text" ?
|
|
2225
|
+
resolveAll: rt(n === "text" ? zr : void 0),
|
|
2226
2226
|
tokenize: r
|
|
2227
2227
|
};
|
|
2228
2228
|
function r(t) {
|
|
@@ -2265,7 +2265,7 @@ function rt(n) {
|
|
|
2265
2265
|
return n ? n(t, e) : t;
|
|
2266
2266
|
}
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function zr(n, r) {
|
|
2269
2269
|
let t = 0;
|
|
2270
2270
|
for (; ++t <= n.length; )
|
|
2271
2271
|
if ((t === n.length || n[t][1].type === "lineEnding") && n[t - 1][1].type === "data") {
|
|
@@ -2307,7 +2307,7 @@ function Cr(n, r) {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
return n;
|
|
2309
2309
|
}
|
|
2310
|
-
const
|
|
2310
|
+
const yr = {
|
|
2311
2311
|
42: U,
|
|
2312
2312
|
43: U,
|
|
2313
2313
|
45: U,
|
|
@@ -2322,56 +2322,56 @@ const zr = {
|
|
|
2322
2322
|
56: U,
|
|
2323
2323
|
57: U,
|
|
2324
2324
|
62: Gn
|
|
2325
|
-
}, yr = {
|
|
2326
|
-
91: Ae
|
|
2327
2325
|
}, Er = {
|
|
2326
|
+
91: _e
|
|
2327
|
+
}, Tr = {
|
|
2328
2328
|
[-2]: bn,
|
|
2329
2329
|
[-1]: bn,
|
|
2330
2330
|
32: bn
|
|
2331
|
-
},
|
|
2332
|
-
35:
|
|
2331
|
+
}, Fr = {
|
|
2332
|
+
35: Ne,
|
|
2333
2333
|
42: xn,
|
|
2334
2334
|
45: [jn, xn],
|
|
2335
|
-
60:
|
|
2335
|
+
60: He,
|
|
2336
2336
|
61: jn,
|
|
2337
2337
|
95: xn,
|
|
2338
2338
|
96: Wn,
|
|
2339
2339
|
126: Wn
|
|
2340
|
-
},
|
|
2340
|
+
}, Ar = {
|
|
2341
2341
|
38: Kn,
|
|
2342
2342
|
92: Jn
|
|
2343
|
-
},
|
|
2343
|
+
}, _r = {
|
|
2344
2344
|
[-5]: dn,
|
|
2345
2345
|
[-4]: dn,
|
|
2346
2346
|
[-3]: dn,
|
|
2347
|
-
33:
|
|
2347
|
+
33: ir,
|
|
2348
2348
|
38: Kn,
|
|
2349
2349
|
42: zn,
|
|
2350
|
-
60: [
|
|
2351
|
-
91:
|
|
2352
|
-
92: [
|
|
2350
|
+
60: [le, Ye],
|
|
2351
|
+
91: lr,
|
|
2352
|
+
92: [Oe, Jn],
|
|
2353
2353
|
93: En,
|
|
2354
2354
|
95: zn,
|
|
2355
|
-
96:
|
|
2356
|
-
}, _r = {
|
|
2357
|
-
null: [zn, dr]
|
|
2355
|
+
96: be
|
|
2358
2356
|
}, Lr = {
|
|
2359
|
-
null: [
|
|
2357
|
+
null: [zn, Ir]
|
|
2360
2358
|
}, Pr = {
|
|
2359
|
+
null: [42, 95]
|
|
2360
|
+
}, Br = {
|
|
2361
2361
|
null: []
|
|
2362
|
-
},
|
|
2362
|
+
}, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2363
2363
|
__proto__: null,
|
|
2364
|
-
attentionMarkers:
|
|
2365
|
-
contentInitial:
|
|
2366
|
-
disable:
|
|
2367
|
-
document:
|
|
2368
|
-
flow:
|
|
2369
|
-
flowInitial:
|
|
2370
|
-
insideSpan:
|
|
2371
|
-
string:
|
|
2372
|
-
text:
|
|
2364
|
+
attentionMarkers: Pr,
|
|
2365
|
+
contentInitial: Er,
|
|
2366
|
+
disable: Br,
|
|
2367
|
+
document: yr,
|
|
2368
|
+
flow: Fr,
|
|
2369
|
+
flowInitial: Tr,
|
|
2370
|
+
insideSpan: Lr,
|
|
2371
|
+
string: Ar,
|
|
2372
|
+
text: _r
|
|
2373
2373
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2374
|
-
function
|
|
2374
|
+
function Mr(n, r, t) {
|
|
2375
2375
|
let e = {
|
|
2376
2376
|
_bufferIndex: -1,
|
|
2377
2377
|
_index: 0,
|
|
@@ -2408,10 +2408,10 @@ function Or(n, r, t) {
|
|
|
2408
2408
|
return l = W(l, z), F(), l[l.length - 1] !== null ? [] : (N(r, 0), h.events = yn(i, h.events, h), h.events);
|
|
2409
2409
|
}
|
|
2410
2410
|
function g(z, C) {
|
|
2411
|
-
return
|
|
2411
|
+
return Dr(c(z), C);
|
|
2412
2412
|
}
|
|
2413
2413
|
function c(z) {
|
|
2414
|
-
return
|
|
2414
|
+
return Nr(l, z);
|
|
2415
2415
|
}
|
|
2416
2416
|
function b() {
|
|
2417
2417
|
const {
|
|
@@ -2534,7 +2534,7 @@ function Or(n, r, t) {
|
|
|
2534
2534
|
e.line in u && e.column < 2 && (e.column = u[e.line], e.offset += u[e.line] - 1);
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function Nr(n, r) {
|
|
2538
2538
|
const t = r.start._index, e = r.start._bufferIndex, u = r.end._index, i = r.end._bufferIndex;
|
|
2539
2539
|
let l;
|
|
2540
2540
|
if (t === u)
|
|
@@ -2548,7 +2548,7 @@ function Mr(n, r) {
|
|
|
2548
2548
|
}
|
|
2549
2549
|
return l;
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2551
|
+
function Dr(n, r) {
|
|
2552
2552
|
let t = -1;
|
|
2553
2553
|
const e = [];
|
|
2554
2554
|
let u;
|
|
@@ -2588,35 +2588,35 @@ function Nr(n, r) {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
return e.join("");
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function qr(n) {
|
|
2592
2592
|
const e = {
|
|
2593
2593
|
constructs: (
|
|
2594
2594
|
/** @type {FullNormalizedExtension} */
|
|
2595
|
-
|
|
2595
|
+
qt([Or, ...(n || {}).extensions || []])
|
|
2596
2596
|
),
|
|
2597
|
-
content: u(
|
|
2597
|
+
content: u(vt),
|
|
2598
2598
|
defined: [],
|
|
2599
|
-
document: u(
|
|
2600
|
-
flow: u(
|
|
2599
|
+
document: u(te),
|
|
2600
|
+
flow: u(br),
|
|
2601
2601
|
lazy: {},
|
|
2602
|
-
string: u(
|
|
2603
|
-
text: u(
|
|
2602
|
+
string: u(wr),
|
|
2603
|
+
text: u(Cr)
|
|
2604
2604
|
};
|
|
2605
2605
|
return e;
|
|
2606
2606
|
function u(i) {
|
|
2607
2607
|
return l;
|
|
2608
2608
|
function l(a) {
|
|
2609
|
-
return
|
|
2609
|
+
return Mr(e, i, a);
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
2613
|
-
function
|
|
2613
|
+
function Rr(n) {
|
|
2614
2614
|
for (; !Xn(n); )
|
|
2615
2615
|
;
|
|
2616
2616
|
return n;
|
|
2617
2617
|
}
|
|
2618
2618
|
const $n = /[\0\t\n\r]/g;
|
|
2619
|
-
function
|
|
2619
|
+
function Hr() {
|
|
2620
2620
|
let n = 1, r = "", t = !0, e;
|
|
2621
2621
|
return u;
|
|
2622
2622
|
function u(i, l, a) {
|
|
@@ -2651,45 +2651,46 @@ function Rr() {
|
|
|
2651
2651
|
return a && (e && m.push(-5), r && m.push(r), m.push(null)), m;
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2655
|
-
return typeof r != "string" && (t = r, r = void 0),
|
|
2654
|
+
function Vr(n, r, t) {
|
|
2655
|
+
return typeof r != "string" && (t = r, r = void 0), Xt(t)(Rr(qr(t).document().write(Hr()(n, r, !0))));
|
|
2656
2656
|
}
|
|
2657
|
-
async function
|
|
2657
|
+
async function Qr(n = {}) {
|
|
2658
2658
|
const r = [], t = [];
|
|
2659
2659
|
if (n.gfm === !0) {
|
|
2660
|
-
const e = await import("./index-
|
|
2660
|
+
const e = await import("./index-CAeOFdez.js");
|
|
2661
2661
|
r.push(e.gfm({})), t.push(e.gfmHtml({}));
|
|
2662
2662
|
}
|
|
2663
2663
|
return { extensions: r, htmlExtensions: t };
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function jr(n, ...r) {
|
|
2666
2666
|
const { content: t, allowHtml: e = !1 } = n, u = Lt(
|
|
2667
2667
|
t,
|
|
2668
2668
|
e,
|
|
2669
2669
|
n.features
|
|
2670
2670
|
)(async (i = "", l = !1, a = {}) => {
|
|
2671
|
-
const { extensions: m, htmlExtensions: h } = await
|
|
2672
|
-
return
|
|
2671
|
+
const { extensions: m, htmlExtensions: h } = await Qr(a);
|
|
2672
|
+
return Vr(i, { allowDangerousHtml: l, extensions: m, htmlExtensions: h });
|
|
2673
2673
|
});
|
|
2674
2674
|
return Pt.div(
|
|
2675
|
+
Bt(u),
|
|
2675
2676
|
// Ensure styles are present declaratively via head portal
|
|
2676
|
-
(n.cssInjection ?? "none") === "none" ? null :
|
|
2677
|
+
(n.cssInjection ?? "none") === "none" ? null : Ot(
|
|
2677
2678
|
() => import("./styles-url-COuz9fVH.js"),
|
|
2678
|
-
({ default: i }) =>
|
|
2679
|
+
({ default: i }) => Dt({ id: "beatui-markdown-css", href: i })
|
|
2679
2680
|
),
|
|
2680
2681
|
Mn.class("bc-markdown"),
|
|
2681
|
-
|
|
2682
|
+
Mt(
|
|
2682
2683
|
u,
|
|
2683
|
-
(i) =>
|
|
2684
|
+
(i) => Nt(i, (l) => Mn.innerHTML(l))
|
|
2684
2685
|
),
|
|
2685
2686
|
...r
|
|
2686
2687
|
);
|
|
2687
2688
|
}
|
|
2688
2689
|
export {
|
|
2689
|
-
|
|
2690
|
+
jr as M,
|
|
2690
2691
|
$ as a,
|
|
2691
2692
|
v as b,
|
|
2692
|
-
|
|
2693
|
+
Zt as c,
|
|
2693
2694
|
wn as d,
|
|
2694
2695
|
kn as e,
|
|
2695
2696
|
B as f,
|
|
@@ -2697,11 +2698,11 @@ export {
|
|
|
2697
2698
|
Hn as h,
|
|
2698
2699
|
E as i,
|
|
2699
2700
|
_ as j,
|
|
2700
|
-
|
|
2701
|
-
|
|
2701
|
+
qt as k,
|
|
2702
|
+
Vt as l,
|
|
2702
2703
|
j as m,
|
|
2703
2704
|
mn as n,
|
|
2704
2705
|
yn as r,
|
|
2705
2706
|
gn as s,
|
|
2706
|
-
|
|
2707
|
+
Gt as u
|
|
2707
2708
|
};
|