juneau 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AiMessageBubble/AiMessageBubble.d.ts.map +1 -1
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +881 -881
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useState as Me, useRef as
|
|
1
|
+
import { useState as Me, useRef as Ue, useEffect as St, useCallback as de, useMemo as Ir, useContext as sn, createContext as Tr } from "react";
|
|
2
2
|
import { jsx as b, jsxs as Y, Fragment as un } from "react/jsx-runtime";
|
|
3
|
-
function
|
|
3
|
+
function Ki(e) {
|
|
4
4
|
return e.map((n) => n.role !== "assistant" || n.parts.some((t) => t.type === "text") ? n : { ...n, parts: [{ type: "text", text: "" }] });
|
|
5
5
|
}
|
|
6
6
|
const K = (e) => new Promise((n) => setTimeout(n, e));
|
|
7
|
-
function
|
|
7
|
+
function Zi(e) {
|
|
8
8
|
return e.parts.filter((n) => n.type === "text").map((n) => n.text).join("");
|
|
9
9
|
}
|
|
10
10
|
async function Nn(e, n, t) {
|
|
@@ -14,16 +14,16 @@ async function Nn(e, n, t) {
|
|
|
14
14
|
function zr(e) {
|
|
15
15
|
return e.type === "proposal";
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const el = 1;
|
|
18
18
|
function Xh(e) {
|
|
19
19
|
return e.map((n) => ({
|
|
20
20
|
...n,
|
|
21
|
-
v:
|
|
21
|
+
v: el,
|
|
22
22
|
createdAt: n.createdAt.toISOString(),
|
|
23
|
-
parts: n.parts.filter((t) => !(t.type === "activity" && t.status === "running")).map(
|
|
23
|
+
parts: n.parts.filter((t) => !(t.type === "activity" && t.status === "running")).map(tl)
|
|
24
24
|
}));
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function tl(e) {
|
|
27
27
|
return zr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
|
|
28
28
|
}
|
|
29
29
|
function Gh(e) {
|
|
@@ -32,7 +32,7 @@ function Gh(e) {
|
|
|
32
32
|
createdAt: new Date(t.createdAt)
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function nl(e, n) {
|
|
36
36
|
if (n <= 0 || e.length <= n) return e;
|
|
37
37
|
let t = e.length - n;
|
|
38
38
|
for (; t < e.length && e[t].role === "assistant"; )
|
|
@@ -44,11 +44,11 @@ function Jh(e, n) {
|
|
|
44
44
|
}
|
|
45
45
|
const Rn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(), Kh = {
|
|
46
46
|
async *sendMessage(e) {
|
|
47
|
-
const n = [...e.messages].reverse().find((r) => r.role === "user"), t = n ?
|
|
48
|
-
t.includes("activity") || t.includes("progress") || t.includes("document") || t.includes("dokument") ? yield*
|
|
47
|
+
const n = [...e.messages].reverse().find((r) => r.role === "user"), t = n ? Zi(n).toLowerCase() : "";
|
|
48
|
+
t.includes("activity") || t.includes("progress") || t.includes("document") || t.includes("dokument") ? yield* rl() : t.includes("table") || t.includes("data") || t.includes("list") || t.includes("show") ? yield* il() : t.includes("proposal") || t.includes("suggest") || t.includes("recommend") ? yield* ll() : t.includes("entity") || t.includes("card") || t.includes("detail") || t.includes("find") ? yield* ol() : t.includes("help") || t.includes("what can") || t.includes("how do") ? yield* al() : t.includes("error") || t.includes("fail") || t.includes("break") ? yield* sl() : yield* ul(t);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
async function*
|
|
51
|
+
async function* rl() {
|
|
52
52
|
yield {
|
|
53
53
|
type: "part",
|
|
54
54
|
part: {
|
|
@@ -88,7 +88,7 @@ async function* nl() {
|
|
|
88
88
|
}, await K(300), yield* ee(`
|
|
89
89
|
Found document **INV-2024-0894** from **DataSys a.s.** for **CZK 390 000**.`, 25), yield { type: "done" };
|
|
90
90
|
}
|
|
91
|
-
async function*
|
|
91
|
+
async function* il() {
|
|
92
92
|
yield* ee(`Here is a summary of the data you requested:
|
|
93
93
|
|
|
94
94
|
`, 30), await K(400), yield {
|
|
@@ -107,7 +107,7 @@ async function* rl() {
|
|
|
107
107
|
}, await K(300), yield* ee(`
|
|
108
108
|
Total across all entries: **7,900** — Type A accounts for the largest share at 53%.`, 25), yield { type: "done" };
|
|
109
109
|
}
|
|
110
|
-
async function*
|
|
110
|
+
async function* ll() {
|
|
111
111
|
yield* ee(`Based on the current data, I have a suggestion for you:
|
|
112
112
|
|
|
113
113
|
`, 30), await K(500), yield {
|
|
@@ -125,7 +125,7 @@ async function* il() {
|
|
|
125
125
|
}
|
|
126
126
|
}, yield { type: "done" };
|
|
127
127
|
}
|
|
128
|
-
async function*
|
|
128
|
+
async function* ol() {
|
|
129
129
|
yield* ee(`I found these records matching your request:
|
|
130
130
|
|
|
131
131
|
`, 30), await K(400), yield {
|
|
@@ -179,7 +179,7 @@ Here is the detail of the first one:
|
|
|
179
179
|
}
|
|
180
180
|
}, yield { type: "done" };
|
|
181
181
|
}
|
|
182
|
-
async function*
|
|
182
|
+
async function* al() {
|
|
183
183
|
yield* ee(`I'm a general-purpose AI assistant. Here's what I can help with:
|
|
184
184
|
|
|
185
185
|
`, 30), await K(200), yield* ee(`- **Summarise data** — ask me to show, list, or summarise information
|
|
@@ -188,10 +188,10 @@ async function* ol() {
|
|
|
188
188
|
`, 22), await K(200), yield* ee(`
|
|
189
189
|
Try asking: *"Show me the data"* or *"Can you suggest something?"*`, 25), yield { type: "done" };
|
|
190
190
|
}
|
|
191
|
-
async function*
|
|
191
|
+
async function* sl() {
|
|
192
192
|
yield* ee("Attempting to process your request…", 30), await K(800), yield { type: "error", message: "Simulated error: the upstream service returned an unexpected response." };
|
|
193
193
|
}
|
|
194
|
-
async function*
|
|
194
|
+
async function* ul(e) {
|
|
195
195
|
yield* ee(`Got it — you asked about *"${e || "your request"}"*.
|
|
196
196
|
|
|
197
197
|
`, 30), await K(400), yield* ee(`I'm a **mock adapter** used for development. I respond to a few trigger words:
|
|
@@ -247,7 +247,7 @@ function Zh(e, n = {}) {
|
|
|
247
247
|
getHeaders: i,
|
|
248
248
|
getBody: o,
|
|
249
249
|
getMessages: l,
|
|
250
|
-
parseEvent: a =
|
|
250
|
+
parseEvent: a = fl,
|
|
251
251
|
credentials: s
|
|
252
252
|
} = n;
|
|
253
253
|
return {
|
|
@@ -271,11 +271,11 @@ function Zh(e, n = {}) {
|
|
|
271
271
|
yield { type: "error", message: "Response body is empty — server may not support streaming." };
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
|
-
yield*
|
|
274
|
+
yield* cl(g.body, a);
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
async function*
|
|
278
|
+
async function* cl(e, n) {
|
|
279
279
|
const t = e.getReader(), r = new TextDecoder();
|
|
280
280
|
let i = "";
|
|
281
281
|
try {
|
|
@@ -305,7 +305,7 @@ async function* ul(e, n) {
|
|
|
305
305
|
}
|
|
306
306
|
yield { type: "done" };
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const fl = (e) => {
|
|
309
309
|
if (!e || e === "[DONE]") return [];
|
|
310
310
|
const n = Pr(e);
|
|
311
311
|
if (n.length > 0) return n;
|
|
@@ -325,7 +325,7 @@ function ed(e, n = {}) {
|
|
|
325
325
|
headers: r = {},
|
|
326
326
|
getHeaders: i,
|
|
327
327
|
getBody: o,
|
|
328
|
-
parseChunk: l =
|
|
328
|
+
parseChunk: l = hl,
|
|
329
329
|
credentials: a
|
|
330
330
|
} = n;
|
|
331
331
|
return {
|
|
@@ -349,11 +349,11 @@ function ed(e, n = {}) {
|
|
|
349
349
|
yield { type: "error", message: "Response body is empty — server may not support streaming." };
|
|
350
350
|
return;
|
|
351
351
|
}
|
|
352
|
-
yield*
|
|
352
|
+
yield* pl(c.body, l);
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
async function*
|
|
356
|
+
async function* pl(e, n) {
|
|
357
357
|
const t = e.getReader(), r = new TextDecoder();
|
|
358
358
|
let i = "";
|
|
359
359
|
try {
|
|
@@ -382,13 +382,13 @@ async function* fl(e, n) {
|
|
|
382
382
|
}
|
|
383
383
|
yield { type: "done" };
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const hl = (e) => {
|
|
386
386
|
const n = Pr(e);
|
|
387
387
|
return n.length > 0 ? n : e ? [{ type: "text", text: e }] : [];
|
|
388
388
|
};
|
|
389
|
-
let
|
|
390
|
-
const dt = () => `msg-${++
|
|
391
|
-
function
|
|
389
|
+
let dl = 0;
|
|
390
|
+
const dt = () => `msg-${++dl}-${Date.now()}`, Mn = Ki;
|
|
391
|
+
function ml({
|
|
392
392
|
adapter: e,
|
|
393
393
|
context: n,
|
|
394
394
|
onProposalConfirm: t,
|
|
@@ -397,7 +397,7 @@ function dl({
|
|
|
397
397
|
historyLimit: o,
|
|
398
398
|
onMessagesChange: l
|
|
399
399
|
}) {
|
|
400
|
-
const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y =
|
|
400
|
+
const [a, s] = Me(i ?? []), [u, f] = Me(""), [c, h] = Me(!1), [p, g] = Me(!1), [C, S] = Me(null), y = Ue(null), A = Ue(!1), _ = Ue(l);
|
|
401
401
|
St(() => {
|
|
402
402
|
_.current = l;
|
|
403
403
|
}), St(() => {
|
|
@@ -450,7 +450,7 @@ function dl({
|
|
|
450
450
|
const se = new AbortController();
|
|
451
451
|
y.current = se;
|
|
452
452
|
try {
|
|
453
|
-
const te =
|
|
453
|
+
const te = nl(
|
|
454
454
|
[...R, B],
|
|
455
455
|
o ?? Number.POSITIVE_INFINITY
|
|
456
456
|
), m = e.sendMessage({ messages: Mn(te), context: n });
|
|
@@ -540,7 +540,7 @@ function dl({
|
|
|
540
540
|
(W) => zr(W) && W.proposal.id === v ? { ...W, proposal: { ...W.proposal, resolved: R } } : W
|
|
541
541
|
)
|
|
542
542
|
})));
|
|
543
|
-
}, []),
|
|
543
|
+
}, []), U = de((v, R) => {
|
|
544
544
|
z(v, "confirmed"), t?.(v, R);
|
|
545
545
|
}, [t, z]), P = de((v) => {
|
|
546
546
|
z(v, "cancelled"), r?.(v);
|
|
@@ -557,7 +557,7 @@ function dl({
|
|
|
557
557
|
isConnecting: p,
|
|
558
558
|
error: C,
|
|
559
559
|
reset: T,
|
|
560
|
-
confirmProposal:
|
|
560
|
+
confirmProposal: U,
|
|
561
561
|
cancelProposal: P
|
|
562
562
|
}), [
|
|
563
563
|
a,
|
|
@@ -570,7 +570,7 @@ function dl({
|
|
|
570
570
|
p,
|
|
571
571
|
C,
|
|
572
572
|
T,
|
|
573
|
-
|
|
573
|
+
U,
|
|
574
574
|
P
|
|
575
575
|
]);
|
|
576
576
|
}
|
|
@@ -605,25 +605,25 @@ const Lr = {
|
|
|
605
605
|
function Te() {
|
|
606
606
|
return sn(Dr);
|
|
607
607
|
}
|
|
608
|
-
const
|
|
609
|
-
root:
|
|
608
|
+
const gl = "_root_1etc2_1", yl = {
|
|
609
|
+
root: gl
|
|
610
610
|
};
|
|
611
611
|
function td({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
|
|
612
612
|
const l = {
|
|
613
613
|
...Lr,
|
|
614
614
|
...r ? { sidebarTitle: r } : {},
|
|
615
615
|
...t
|
|
616
|
-
}, a = n ?
|
|
616
|
+
}, a = n ? kl(n) : void 0;
|
|
617
617
|
return /* @__PURE__ */ b(Dr.Provider, { value: l, children: /* @__PURE__ */ b(
|
|
618
618
|
"div",
|
|
619
619
|
{
|
|
620
|
-
className: [
|
|
620
|
+
className: [yl.root, i].filter(Boolean).join(" "),
|
|
621
621
|
style: { ...a, ...o },
|
|
622
622
|
children: e
|
|
623
623
|
}
|
|
624
624
|
) });
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function kl(e) {
|
|
627
627
|
const n = {
|
|
628
628
|
"--juneau-color-primary": e.colorPrimary,
|
|
629
629
|
"--juneau-color-primary-dark": e.colorPrimaryDark,
|
|
@@ -654,7 +654,7 @@ function yl(e) {
|
|
|
654
654
|
);
|
|
655
655
|
}
|
|
656
656
|
const cn = Tr(null);
|
|
657
|
-
function
|
|
657
|
+
function xl() {
|
|
658
658
|
const e = sn(cn);
|
|
659
659
|
if (!e)
|
|
660
660
|
throw new Error(
|
|
@@ -677,7 +677,7 @@ function rd({
|
|
|
677
677
|
}) {
|
|
678
678
|
const [s, u] = Me(n), f = de((p) => {
|
|
679
679
|
u(typeof p == "function" ? (g) => p(g) : p);
|
|
680
|
-
}, []), c =
|
|
680
|
+
}, []), c = ml({
|
|
681
681
|
adapter: e,
|
|
682
682
|
context: s,
|
|
683
683
|
onProposalConfirm: t,
|
|
@@ -735,7 +735,7 @@ function Nr({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
735
735
|
}
|
|
736
736
|
);
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function bl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
739
739
|
return /* @__PURE__ */ b(
|
|
740
740
|
"svg",
|
|
741
741
|
{
|
|
@@ -751,7 +751,7 @@ function xl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
751
751
|
}
|
|
752
752
|
);
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function wl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
755
755
|
return /* @__PURE__ */ b(
|
|
756
756
|
"svg",
|
|
757
757
|
{
|
|
@@ -767,7 +767,7 @@ function bl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
767
767
|
}
|
|
768
768
|
);
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function Cl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
771
771
|
return /* @__PURE__ */ b(
|
|
772
772
|
"svg",
|
|
773
773
|
{
|
|
@@ -783,7 +783,7 @@ function wl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
783
783
|
}
|
|
784
784
|
);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function Sl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
787
787
|
return /* @__PURE__ */ b(
|
|
788
788
|
"svg",
|
|
789
789
|
{
|
|
@@ -799,7 +799,7 @@ function Cl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
799
799
|
}
|
|
800
800
|
);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function vl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
803
803
|
return /* @__PURE__ */ b(
|
|
804
804
|
"svg",
|
|
805
805
|
{
|
|
@@ -815,7 +815,7 @@ function Sl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
815
815
|
}
|
|
816
816
|
);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function _l({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
819
819
|
return /* @__PURE__ */ b(
|
|
820
820
|
"svg",
|
|
821
821
|
{
|
|
@@ -831,7 +831,7 @@ function vl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
831
831
|
}
|
|
832
832
|
);
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function El({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
835
835
|
return /* @__PURE__ */ b(
|
|
836
836
|
"svg",
|
|
837
837
|
{
|
|
@@ -847,7 +847,7 @@ function _l({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
847
847
|
}
|
|
848
848
|
);
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
851
851
|
return /* @__PURE__ */ b(
|
|
852
852
|
"svg",
|
|
853
853
|
{
|
|
@@ -863,7 +863,7 @@ function El({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
863
863
|
}
|
|
864
864
|
);
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
867
867
|
return /* @__PURE__ */ b(
|
|
868
868
|
"svg",
|
|
869
869
|
{
|
|
@@ -879,22 +879,22 @@ function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Tl(e, n) {
|
|
883
883
|
const t = {};
|
|
884
884
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
885
885
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
|
886
886
|
).trim();
|
|
887
887
|
}
|
|
888
|
-
const
|
|
888
|
+
const zl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ll = {};
|
|
889
889
|
function Fn(e, n) {
|
|
890
|
-
return (
|
|
890
|
+
return (Ll.jsx ? Pl : zl).test(e);
|
|
891
891
|
}
|
|
892
|
-
const
|
|
893
|
-
function
|
|
892
|
+
const Dl = /[ \t\n\f\r]/g;
|
|
893
|
+
function Nl(e) {
|
|
894
894
|
return typeof e == "object" ? e.type === "text" ? On(e.value) : !1 : On(e);
|
|
895
895
|
}
|
|
896
896
|
function On(e) {
|
|
897
|
-
return e.replace(
|
|
897
|
+
return e.replace(Dl, "") === "";
|
|
898
898
|
}
|
|
899
899
|
class ct {
|
|
900
900
|
/**
|
|
@@ -948,10 +948,10 @@ ce.prototype.overloadedBoolean = !1;
|
|
|
948
948
|
ce.prototype.property = "";
|
|
949
949
|
ce.prototype.spaceSeparated = !1;
|
|
950
950
|
ce.prototype.space = void 0;
|
|
951
|
-
let
|
|
951
|
+
let Rl = 0;
|
|
952
952
|
const M = Be(), Z = Be(), Jt = Be(), E = Be(), G = Be(), Fe = Be(), pe = Be();
|
|
953
953
|
function Be() {
|
|
954
|
-
return 2 ** ++
|
|
954
|
+
return 2 ** ++Rl;
|
|
955
955
|
}
|
|
956
956
|
const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
957
957
|
__proto__: null,
|
|
@@ -1068,7 +1068,7 @@ function Fr(e, n) {
|
|
|
1068
1068
|
function Or(e, n) {
|
|
1069
1069
|
return Fr(e, n.toLowerCase());
|
|
1070
1070
|
}
|
|
1071
|
-
const
|
|
1071
|
+
const Ml = Ye({
|
|
1072
1072
|
attributes: {
|
|
1073
1073
|
acceptcharset: "accept-charset",
|
|
1074
1074
|
classname: "class",
|
|
@@ -1439,7 +1439,7 @@ const Rl = Ye({
|
|
|
1439
1439
|
},
|
|
1440
1440
|
space: "html",
|
|
1441
1441
|
transform: Or
|
|
1442
|
-
}),
|
|
1442
|
+
}), Fl = Ye({
|
|
1443
1443
|
attributes: {
|
|
1444
1444
|
accentHeight: "accent-height",
|
|
1445
1445
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -2025,7 +2025,7 @@ const Rl = Ye({
|
|
|
2025
2025
|
transform(e, n) {
|
|
2026
2026
|
return "xml:" + n.slice(3).toLowerCase();
|
|
2027
2027
|
}
|
|
2028
|
-
}),
|
|
2028
|
+
}), Ol = {
|
|
2029
2029
|
classId: "classID",
|
|
2030
2030
|
dataType: "datatype",
|
|
2031
2031
|
itemId: "itemID",
|
|
@@ -2043,20 +2043,20 @@ const Rl = Ye({
|
|
|
2043
2043
|
xLinkTitle: "xlinkTitle",
|
|
2044
2044
|
xLinkType: "xlinkType",
|
|
2045
2045
|
xmlnsXLink: "xmlnsXlink"
|
|
2046
|
-
},
|
|
2047
|
-
function
|
|
2046
|
+
}, Bl = /[A-Z]/g, jn = /-[a-z]/g, jl = /^data[-\w.:]+$/i;
|
|
2047
|
+
function $l(e, n) {
|
|
2048
2048
|
const t = Gt(n);
|
|
2049
2049
|
let r = n, i = ce;
|
|
2050
2050
|
if (t in e.normal)
|
|
2051
2051
|
return e.property[e.normal[t]];
|
|
2052
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
2052
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && jl.test(n)) {
|
|
2053
2053
|
if (n.charAt(4) === "-") {
|
|
2054
|
-
const o = n.slice(5).replace(jn,
|
|
2054
|
+
const o = n.slice(5).replace(jn, Vl);
|
|
2055
2055
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
2056
2056
|
} else {
|
|
2057
2057
|
const o = n.slice(4);
|
|
2058
2058
|
if (!jn.test(o)) {
|
|
2059
|
-
let l = o.replace(
|
|
2059
|
+
let l = o.replace(Bl, Hl);
|
|
2060
2060
|
l.charAt(0) !== "-" && (l = "-" + l), n = "data" + l;
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
@@ -2064,13 +2064,13 @@ function jl(e, n) {
|
|
|
2064
2064
|
}
|
|
2065
2065
|
return new i(r, n);
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function Hl(e) {
|
|
2068
2068
|
return "-" + e.toLowerCase();
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function Vl(e) {
|
|
2071
2071
|
return e.charAt(1).toUpperCase();
|
|
2072
2072
|
}
|
|
2073
|
-
const
|
|
2073
|
+
const ql = Rr([Mr, Ml, Br, jr, $r], "html"), pn = Rr([Mr, Fl, Br, jr, $r], "svg");
|
|
2074
2074
|
function Ul(e) {
|
|
2075
2075
|
return e.join(" ").trim();
|
|
2076
2076
|
}
|
|
@@ -2078,7 +2078,7 @@ function Hr(e) {
|
|
|
2078
2078
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2079
2079
|
}
|
|
2080
2080
|
var Ve = {}, Nt, $n;
|
|
2081
|
-
function
|
|
2081
|
+
function Wl() {
|
|
2082
2082
|
if ($n) return Nt;
|
|
2083
2083
|
$n = 1;
|
|
2084
2084
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
|
@@ -2153,14 +2153,14 @@ function ql() {
|
|
|
2153
2153
|
return $(l), B;
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function U() {
|
|
2157
2157
|
var P = [];
|
|
2158
2158
|
k(P);
|
|
2159
2159
|
for (var v; v = z(); )
|
|
2160
2160
|
v !== !1 && (P.push(v), k(P));
|
|
2161
2161
|
return P;
|
|
2162
2162
|
}
|
|
2163
|
-
return H(),
|
|
2163
|
+
return H(), U();
|
|
2164
2164
|
}
|
|
2165
2165
|
function C(S) {
|
|
2166
2166
|
return S ? S.replace(a, c) : c;
|
|
@@ -2168,14 +2168,14 @@ function ql() {
|
|
|
2168
2168
|
return Nt = g, Nt;
|
|
2169
2169
|
}
|
|
2170
2170
|
var Hn;
|
|
2171
|
-
function
|
|
2171
|
+
function Yl() {
|
|
2172
2172
|
if (Hn) return Ve;
|
|
2173
2173
|
Hn = 1;
|
|
2174
2174
|
var e = Ve && Ve.__importDefault || function(r) {
|
|
2175
2175
|
return r && r.__esModule ? r : { default: r };
|
|
2176
2176
|
};
|
|
2177
2177
|
Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.default = t;
|
|
2178
|
-
const n = e(
|
|
2178
|
+
const n = e(Wl());
|
|
2179
2179
|
function t(r, i) {
|
|
2180
2180
|
let o = null;
|
|
2181
2181
|
if (!r || typeof r != "string")
|
|
@@ -2191,7 +2191,7 @@ function Wl() {
|
|
|
2191
2191
|
return Ve;
|
|
2192
2192
|
}
|
|
2193
2193
|
var Ke = {}, Vn;
|
|
2194
|
-
function
|
|
2194
|
+
function Ql() {
|
|
2195
2195
|
if (Vn) return Ke;
|
|
2196
2196
|
Vn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.camelCase = void 0;
|
|
2197
2197
|
var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, o = function(u) {
|
|
@@ -2205,13 +2205,13 @@ function Yl() {
|
|
|
2205
2205
|
};
|
|
2206
2206
|
return Ke.camelCase = s, Ke;
|
|
2207
2207
|
}
|
|
2208
|
-
var Ze,
|
|
2209
|
-
function
|
|
2210
|
-
if (
|
|
2211
|
-
|
|
2208
|
+
var Ze, qn;
|
|
2209
|
+
function Xl() {
|
|
2210
|
+
if (qn) return Ze;
|
|
2211
|
+
qn = 1;
|
|
2212
2212
|
var e = Ze && Ze.__importDefault || function(i) {
|
|
2213
2213
|
return i && i.__esModule ? i : { default: i };
|
|
2214
|
-
}, n = e(
|
|
2214
|
+
}, n = e(Yl()), t = Ql();
|
|
2215
2215
|
function r(i, o) {
|
|
2216
2216
|
var l = {};
|
|
2217
2217
|
return !i || typeof i != "string" || (0, n.default)(i, function(a, s) {
|
|
@@ -2220,9 +2220,9 @@ function Ql() {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
return r.default = r, Ze = r, Ze;
|
|
2222
2222
|
}
|
|
2223
|
-
var
|
|
2224
|
-
const
|
|
2225
|
-
function
|
|
2223
|
+
var Gl = Xl();
|
|
2224
|
+
const Jl = /* @__PURE__ */ Hr(Gl), Vr = qr("end"), hn = qr("start");
|
|
2225
|
+
function qr(e) {
|
|
2226
2226
|
return n;
|
|
2227
2227
|
function n(t) {
|
|
2228
2228
|
const r = t && t.position && t.position[e] || {};
|
|
@@ -2234,18 +2234,18 @@ function Ur(e) {
|
|
|
2234
2234
|
};
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2237
|
+
function Kl(e) {
|
|
2238
2238
|
const n = hn(e), t = Vr(e);
|
|
2239
2239
|
if (n && t)
|
|
2240
2240
|
return { start: n, end: t };
|
|
2241
2241
|
}
|
|
2242
2242
|
function lt(e) {
|
|
2243
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
2243
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Un(e.position) : "start" in e || "end" in e ? Un(e) : "line" in e || "column" in e ? Zt(e) : "";
|
|
2244
2244
|
}
|
|
2245
2245
|
function Zt(e) {
|
|
2246
2246
|
return Wn(e && e.line) + ":" + Wn(e && e.column);
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function Un(e) {
|
|
2249
2249
|
return Zt(e && e.start) + "-" + Zt(e && e.end);
|
|
2250
2250
|
}
|
|
2251
2251
|
function Wn(e) {
|
|
@@ -2338,8 +2338,8 @@ le.prototype.fatal = void 0;
|
|
|
2338
2338
|
le.prototype.place = void 0;
|
|
2339
2339
|
le.prototype.ruleId = void 0;
|
|
2340
2340
|
le.prototype.source = void 0;
|
|
2341
|
-
const dn = {}.hasOwnProperty,
|
|
2342
|
-
function
|
|
2341
|
+
const dn = {}.hasOwnProperty, Zl = /* @__PURE__ */ new Map(), eo = /[A-Z]/g, to = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), no = /* @__PURE__ */ new Set(["td", "th"]), Ur = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
2342
|
+
function ro(e, n) {
|
|
2343
2343
|
if (!n || n.Fragment === void 0)
|
|
2344
2344
|
throw new TypeError("Expected `Fragment` in options");
|
|
2345
2345
|
const t = n.filePath || void 0;
|
|
@@ -2349,13 +2349,13 @@ function no(e, n) {
|
|
|
2349
2349
|
throw new TypeError(
|
|
2350
2350
|
"Expected `jsxDEV` in options when `development: true`"
|
|
2351
2351
|
);
|
|
2352
|
-
r =
|
|
2352
|
+
r = fo(t, n.jsxDEV);
|
|
2353
2353
|
} else {
|
|
2354
2354
|
if (typeof n.jsx != "function")
|
|
2355
2355
|
throw new TypeError("Expected `jsx` in production options");
|
|
2356
2356
|
if (typeof n.jsxs != "function")
|
|
2357
2357
|
throw new TypeError("Expected `jsxs` in production options");
|
|
2358
|
-
r =
|
|
2358
|
+
r = co(t, n.jsx, n.jsxs);
|
|
2359
2359
|
}
|
|
2360
2360
|
const i = {
|
|
2361
2361
|
Fragment: n.Fragment,
|
|
@@ -2368,7 +2368,7 @@ function no(e, n) {
|
|
|
2368
2368
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
|
2369
2369
|
passKeys: n.passKeys !== !1,
|
|
2370
2370
|
passNode: n.passNode || !1,
|
|
2371
|
-
schema: n.space === "svg" ? pn :
|
|
2371
|
+
schema: n.space === "svg" ? pn : ql,
|
|
2372
2372
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
2373
2373
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
2374
2374
|
}, o = Wr(i, e, void 0);
|
|
@@ -2381,29 +2381,29 @@ function no(e, n) {
|
|
|
2381
2381
|
}
|
|
2382
2382
|
function Wr(e, n, t) {
|
|
2383
2383
|
if (n.type === "element")
|
|
2384
|
-
return
|
|
2384
|
+
return io(e, n, t);
|
|
2385
2385
|
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
|
2386
|
-
return
|
|
2386
|
+
return lo(e, n);
|
|
2387
2387
|
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
|
|
2388
|
-
return
|
|
2388
|
+
return ao(e, n, t);
|
|
2389
2389
|
if (n.type === "mdxjsEsm")
|
|
2390
|
-
return
|
|
2390
|
+
return oo(e, n);
|
|
2391
2391
|
if (n.type === "root")
|
|
2392
|
-
return
|
|
2392
|
+
return so(e, n, t);
|
|
2393
2393
|
if (n.type === "text")
|
|
2394
|
-
return
|
|
2394
|
+
return uo(e, n);
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function io(e, n, t) {
|
|
2397
2397
|
const r = e.schema;
|
|
2398
2398
|
let i = r;
|
|
2399
2399
|
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
|
|
2400
|
-
const o = Qr(e, n.tagName, !1), l =
|
|
2400
|
+
const o = Qr(e, n.tagName, !1), l = po(e, n);
|
|
2401
2401
|
let a = gn(e, n);
|
|
2402
|
-
return
|
|
2403
|
-
return typeof s == "string" ? !
|
|
2402
|
+
return to.has(n.tagName) && (a = a.filter(function(s) {
|
|
2403
|
+
return typeof s == "string" ? !Nl(s) : !0;
|
|
2404
2404
|
})), Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2406
|
+
function lo(e, n) {
|
|
2407
2407
|
if (n.data && n.data.estree && e.evaluater) {
|
|
2408
2408
|
const r = n.data.estree.body[0];
|
|
2409
2409
|
return r.type, /** @type {Child | undefined} */
|
|
@@ -2411,7 +2411,7 @@ function io(e, n) {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
st(e, n.position);
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function oo(e, n) {
|
|
2415
2415
|
if (n.data && n.data.estree && e.evaluater)
|
|
2416
2416
|
return (
|
|
2417
2417
|
/** @type {Child | undefined} */
|
|
@@ -2419,18 +2419,18 @@ function lo(e, n) {
|
|
|
2419
2419
|
);
|
|
2420
2420
|
st(e, n.position);
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function ao(e, n, t) {
|
|
2423
2423
|
const r = e.schema;
|
|
2424
2424
|
let i = r;
|
|
2425
2425
|
n.name === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
|
|
2426
|
-
const o = n.name === null ? e.Fragment : Qr(e, n.name, !0), l =
|
|
2426
|
+
const o = n.name === null ? e.Fragment : Qr(e, n.name, !0), l = ho(e, n), a = gn(e, n);
|
|
2427
2427
|
return Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2429
|
+
function so(e, n, t) {
|
|
2430
2430
|
const r = {};
|
|
2431
2431
|
return mn(r, gn(e, n)), e.create(n, e.Fragment, r, t);
|
|
2432
2432
|
}
|
|
2433
|
-
function
|
|
2433
|
+
function uo(e, n) {
|
|
2434
2434
|
return n.value;
|
|
2435
2435
|
}
|
|
2436
2436
|
function Yr(e, n, t, r) {
|
|
@@ -2442,14 +2442,14 @@ function mn(e, n) {
|
|
|
2442
2442
|
t && (e.children = t);
|
|
2443
2443
|
}
|
|
2444
2444
|
}
|
|
2445
|
-
function
|
|
2445
|
+
function co(e, n, t) {
|
|
2446
2446
|
return r;
|
|
2447
2447
|
function r(i, o, l, a) {
|
|
2448
2448
|
const u = Array.isArray(l.children) ? t : n;
|
|
2449
2449
|
return a ? u(o, l, a) : u(o, l);
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2452
|
+
function fo(e, n) {
|
|
2453
2453
|
return t;
|
|
2454
2454
|
function t(r, i, o, l) {
|
|
2455
2455
|
const a = Array.isArray(o.children), s = hn(r);
|
|
@@ -2467,15 +2467,15 @@ function co(e, n) {
|
|
|
2467
2467
|
);
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function po(e, n) {
|
|
2471
2471
|
const t = {};
|
|
2472
2472
|
let r, i;
|
|
2473
2473
|
for (i in n.properties)
|
|
2474
2474
|
if (i !== "children" && dn.call(n.properties, i)) {
|
|
2475
|
-
const o =
|
|
2475
|
+
const o = mo(e, i, n.properties[i]);
|
|
2476
2476
|
if (o) {
|
|
2477
2477
|
const [l, a] = o;
|
|
2478
|
-
e.tableCellAlignToStyle && l === "align" && typeof a == "string" &&
|
|
2478
|
+
e.tableCellAlignToStyle && l === "align" && typeof a == "string" && no.has(n.tagName) ? r = a : t[l] = a;
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
2481
|
if (r) {
|
|
@@ -2487,7 +2487,7 @@ function fo(e, n) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
return t;
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function ho(e, n) {
|
|
2491
2491
|
const t = {};
|
|
2492
2492
|
for (const r of n.attributes)
|
|
2493
2493
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -2522,7 +2522,7 @@ function po(e, n) {
|
|
|
2522
2522
|
function gn(e, n) {
|
|
2523
2523
|
const t = [];
|
|
2524
2524
|
let r = -1;
|
|
2525
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
2525
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Zl;
|
|
2526
2526
|
for (; ++r < n.children.length; ) {
|
|
2527
2527
|
const o = n.children[r];
|
|
2528
2528
|
let l;
|
|
@@ -2538,22 +2538,22 @@ function gn(e, n) {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
return t;
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2542
|
-
const r =
|
|
2541
|
+
function mo(e, n, t) {
|
|
2542
|
+
const r = $l(e.schema, n);
|
|
2543
2543
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
2544
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
|
2545
|
-
let i = typeof t == "object" ? t :
|
|
2546
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
2544
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? Tl(t) : Ul(t)), r.property === "style") {
|
|
2545
|
+
let i = typeof t == "object" ? t : go(e, String(t));
|
|
2546
|
+
return e.stylePropertyNameCase === "css" && (i = yo(i)), ["style", i];
|
|
2547
2547
|
}
|
|
2548
2548
|
return [
|
|
2549
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
2549
|
+
e.elementAttributeNameCase === "react" && r.space ? Ol[r.property] || r.property : r.attribute,
|
|
2550
2550
|
t
|
|
2551
2551
|
];
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function go(e, n) {
|
|
2555
2555
|
try {
|
|
2556
|
-
return
|
|
2556
|
+
return Jl(n, { reactCompat: !0 });
|
|
2557
2557
|
} catch (t) {
|
|
2558
2558
|
if (e.ignoreInvalidStyle)
|
|
2559
2559
|
return {};
|
|
@@ -2566,7 +2566,7 @@ function mo(e, n) {
|
|
|
2566
2566
|
ruleId: "style",
|
|
2567
2567
|
source: "hast-util-to-jsx-runtime"
|
|
2568
2568
|
});
|
|
2569
|
-
throw i.file = e.filePath || void 0, i.url =
|
|
2569
|
+
throw i.file = e.filePath || void 0, i.url = Ur + "#cannot-parse-style-attribute", i;
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
2572
|
function Qr(e, n, t) {
|
|
@@ -2610,20 +2610,20 @@ function st(e, n) {
|
|
|
2610
2610
|
source: "hast-util-to-jsx-runtime"
|
|
2611
2611
|
}
|
|
2612
2612
|
);
|
|
2613
|
-
throw t.file = e.filePath || void 0, t.url =
|
|
2613
|
+
throw t.file = e.filePath || void 0, t.url = Ur + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
2614
2614
|
}
|
|
2615
|
-
function
|
|
2615
|
+
function yo(e) {
|
|
2616
2616
|
const n = {};
|
|
2617
2617
|
let t;
|
|
2618
2618
|
for (t in e)
|
|
2619
|
-
dn.call(e, t) && (n[
|
|
2619
|
+
dn.call(e, t) && (n[ko(t)] = e[t]);
|
|
2620
2620
|
return n;
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2623
|
-
let n = e.replace(
|
|
2622
|
+
function ko(e) {
|
|
2623
|
+
let n = e.replace(eo, xo);
|
|
2624
2624
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function xo(e) {
|
|
2627
2627
|
return "-" + e.toLowerCase();
|
|
2628
2628
|
}
|
|
2629
2629
|
const Rt = {
|
|
@@ -2648,13 +2648,13 @@ const Rt = {
|
|
|
2648
2648
|
"track",
|
|
2649
2649
|
"video"
|
|
2650
2650
|
]
|
|
2651
|
-
},
|
|
2651
|
+
}, bo = {};
|
|
2652
2652
|
function yn(e, n) {
|
|
2653
|
-
const t =
|
|
2653
|
+
const t = bo, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
2654
2654
|
return Xr(e, r, i);
|
|
2655
2655
|
}
|
|
2656
2656
|
function Xr(e, n, t) {
|
|
2657
|
-
if (
|
|
2657
|
+
if (wo(e)) {
|
|
2658
2658
|
if ("value" in e)
|
|
2659
2659
|
return e.type === "html" && !t ? "" : e.value;
|
|
2660
2660
|
if (n && "alt" in e && e.alt)
|
|
@@ -2671,7 +2671,7 @@ function Yn(e, n, t) {
|
|
|
2671
2671
|
r[i] = Xr(e[i], n, t);
|
|
2672
2672
|
return r.join("");
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function wo(e) {
|
|
2675
2675
|
return !!(e && typeof e == "object");
|
|
2676
2676
|
}
|
|
2677
2677
|
const Qn = document.createElement("i");
|
|
@@ -2698,10 +2698,10 @@ function Gr(e) {
|
|
|
2698
2698
|
const n = {};
|
|
2699
2699
|
let t = -1;
|
|
2700
2700
|
for (; ++t < e.length; )
|
|
2701
|
-
|
|
2701
|
+
Co(n, e[t]);
|
|
2702
2702
|
return n;
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function Co(e, n) {
|
|
2705
2705
|
let t;
|
|
2706
2706
|
for (t in n) {
|
|
2707
2707
|
const i = (Xn.call(e, t) ? e[t] : void 0) || (e[t] = {}), o = n[t];
|
|
@@ -2710,7 +2710,7 @@ function wo(e, n) {
|
|
|
2710
2710
|
for (l in o) {
|
|
2711
2711
|
Xn.call(i, l) || (i[l] = []);
|
|
2712
2712
|
const a = o[l];
|
|
2713
|
-
|
|
2713
|
+
So(
|
|
2714
2714
|
// @ts-expect-error Looks like a list.
|
|
2715
2715
|
i[l],
|
|
2716
2716
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -2718,7 +2718,7 @@ function wo(e, n) {
|
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function So(e, n) {
|
|
2722
2722
|
let t = -1;
|
|
2723
2723
|
const r = [];
|
|
2724
2724
|
for (; ++t < n.length; )
|
|
@@ -2741,7 +2741,7 @@ function Jr(e, n) {
|
|
|
2741
2741
|
function ke(e) {
|
|
2742
2742
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2743
2743
|
}
|
|
2744
|
-
const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/),
|
|
2744
|
+
const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/), vo = ze(/[#-'*+\--9=?A-Z^-~]/);
|
|
2745
2745
|
function vt(e) {
|
|
2746
2746
|
return (
|
|
2747
2747
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2749,7 +2749,7 @@ function vt(e) {
|
|
|
2749
2749
|
e !== null && (e < 32 || e === 127)
|
|
2750
2750
|
);
|
|
2751
2751
|
}
|
|
2752
|
-
const en = ze(/\d/),
|
|
2752
|
+
const en = ze(/\d/), _o = ze(/[\dA-Fa-f]/), Eo = ze(/[!-/:-@[-`{-~]/);
|
|
2753
2753
|
function D(e) {
|
|
2754
2754
|
return e !== null && e < -2;
|
|
2755
2755
|
}
|
|
@@ -2785,7 +2785,7 @@ function Qe(e) {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
return n.join("") + e.slice(r);
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function q(e, n, t, r) {
|
|
2789
2789
|
const i = r ? r - 1 : Number.POSITIVE_INFINITY;
|
|
2790
2790
|
let o = 0;
|
|
2791
2791
|
return l;
|
|
@@ -2796,10 +2796,10 @@ function U(e, n, t, r) {
|
|
|
2796
2796
|
return j(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
|
-
const
|
|
2800
|
-
tokenize:
|
|
2799
|
+
const Ao = {
|
|
2800
|
+
tokenize: Io
|
|
2801
2801
|
};
|
|
2802
|
-
function
|
|
2802
|
+
function Io(e) {
|
|
2803
2803
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
2804
2804
|
let t;
|
|
2805
2805
|
return n;
|
|
@@ -2808,7 +2808,7 @@ function Ao(e) {
|
|
|
2808
2808
|
e.consume(a);
|
|
2809
2809
|
return;
|
|
2810
2810
|
}
|
|
2811
|
-
return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"),
|
|
2811
|
+
return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), q(e, n, "linePrefix");
|
|
2812
2812
|
}
|
|
2813
2813
|
function i(a) {
|
|
2814
2814
|
return e.enter("paragraph"), o(a);
|
|
@@ -2828,12 +2828,12 @@ function Ao(e) {
|
|
|
2828
2828
|
return D(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
|
2829
2829
|
}
|
|
2830
2830
|
}
|
|
2831
|
-
const
|
|
2832
|
-
tokenize: To
|
|
2833
|
-
}, Gn = {
|
|
2831
|
+
const To = {
|
|
2834
2832
|
tokenize: zo
|
|
2833
|
+
}, Gn = {
|
|
2834
|
+
tokenize: Po
|
|
2835
2835
|
};
|
|
2836
|
-
function
|
|
2836
|
+
function zo(e) {
|
|
2837
2837
|
const n = this, t = [];
|
|
2838
2838
|
let r = 0, i, o, l;
|
|
2839
2839
|
return a;
|
|
@@ -2945,8 +2945,8 @@ function To(e) {
|
|
|
2945
2945
|
i.write([null]), o = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2949
|
-
return
|
|
2948
|
+
function Po(e, n, t) {
|
|
2949
|
+
return q(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2950
2950
|
}
|
|
2951
2951
|
function We(e) {
|
|
2952
2952
|
if (e === null || J(e) || Oe(e))
|
|
@@ -2965,10 +2965,10 @@ function Tt(e, n, t) {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
const tn = {
|
|
2967
2967
|
name: "attention",
|
|
2968
|
-
resolveAll:
|
|
2969
|
-
tokenize:
|
|
2968
|
+
resolveAll: Lo,
|
|
2969
|
+
tokenize: Do
|
|
2970
2970
|
};
|
|
2971
|
-
function
|
|
2971
|
+
function Lo(e, n) {
|
|
2972
2972
|
let t = -1, r, i, o, l, a, s, u, f;
|
|
2973
2973
|
for (; ++t < e.length; )
|
|
2974
2974
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
|
@@ -3023,7 +3023,7 @@ function Po(e, n) {
|
|
|
3023
3023
|
e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
|
|
3024
3024
|
return e;
|
|
3025
3025
|
}
|
|
3026
|
-
function
|
|
3026
|
+
function Do(e, n) {
|
|
3027
3027
|
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = We(r);
|
|
3028
3028
|
let o;
|
|
3029
3029
|
return l;
|
|
@@ -3040,11 +3040,11 @@ function Lo(e, n) {
|
|
|
3040
3040
|
function Jn(e, n) {
|
|
3041
3041
|
e.column += n, e.offset += n, e._bufferIndex += n;
|
|
3042
3042
|
}
|
|
3043
|
-
const
|
|
3043
|
+
const No = {
|
|
3044
3044
|
name: "autolink",
|
|
3045
|
-
tokenize:
|
|
3045
|
+
tokenize: Ro
|
|
3046
3046
|
};
|
|
3047
|
-
function
|
|
3047
|
+
function Ro(e, n, t) {
|
|
3048
3048
|
let r = 0;
|
|
3049
3049
|
return i;
|
|
3050
3050
|
function i(p) {
|
|
@@ -3063,7 +3063,7 @@ function No(e, n, t) {
|
|
|
3063
3063
|
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || vt(p) ? t(p) : (e.consume(p), s);
|
|
3064
3064
|
}
|
|
3065
3065
|
function u(p) {
|
|
3066
|
-
return p === 64 ? (e.consume(p), f) :
|
|
3066
|
+
return p === 64 ? (e.consume(p), f) : vo(p) ? (e.consume(p), u) : t(p);
|
|
3067
3067
|
}
|
|
3068
3068
|
function f(p) {
|
|
3069
3069
|
return ie(p) ? c(p) : t(p);
|
|
@@ -3081,12 +3081,12 @@ function No(e, n, t) {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
const ft = {
|
|
3083
3083
|
partial: !0,
|
|
3084
|
-
tokenize:
|
|
3084
|
+
tokenize: Mo
|
|
3085
3085
|
};
|
|
3086
|
-
function
|
|
3086
|
+
function Mo(e, n, t) {
|
|
3087
3087
|
return r;
|
|
3088
3088
|
function r(o) {
|
|
3089
|
-
return j(o) ?
|
|
3089
|
+
return j(o) ? q(e, i, "linePrefix")(o) : i(o);
|
|
3090
3090
|
}
|
|
3091
3091
|
function i(o) {
|
|
3092
3092
|
return o === null || D(o) ? n(o) : t(o);
|
|
@@ -3094,13 +3094,13 @@ function Ro(e, n, t) {
|
|
|
3094
3094
|
}
|
|
3095
3095
|
const Kr = {
|
|
3096
3096
|
continuation: {
|
|
3097
|
-
tokenize:
|
|
3097
|
+
tokenize: Oo
|
|
3098
3098
|
},
|
|
3099
|
-
exit:
|
|
3099
|
+
exit: Bo,
|
|
3100
3100
|
name: "blockQuote",
|
|
3101
|
-
tokenize:
|
|
3101
|
+
tokenize: Fo
|
|
3102
3102
|
};
|
|
3103
|
-
function
|
|
3103
|
+
function Fo(e, n, t) {
|
|
3104
3104
|
const r = this;
|
|
3105
3105
|
return i;
|
|
3106
3106
|
function i(l) {
|
|
@@ -3116,37 +3116,37 @@ function Mo(e, n, t) {
|
|
|
3116
3116
|
return j(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
|
|
3117
3117
|
}
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3119
|
+
function Oo(e, n, t) {
|
|
3120
3120
|
const r = this;
|
|
3121
3121
|
return i;
|
|
3122
3122
|
function i(l) {
|
|
3123
|
-
return j(l) ?
|
|
3123
|
+
return j(l) ? q(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
|
|
3124
3124
|
}
|
|
3125
3125
|
function o(l) {
|
|
3126
3126
|
return e.attempt(Kr, n, t)(l);
|
|
3127
3127
|
}
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function Bo(e) {
|
|
3130
3130
|
e.exit("blockQuote");
|
|
3131
3131
|
}
|
|
3132
3132
|
const Zr = {
|
|
3133
3133
|
name: "characterEscape",
|
|
3134
|
-
tokenize:
|
|
3134
|
+
tokenize: jo
|
|
3135
3135
|
};
|
|
3136
|
-
function
|
|
3136
|
+
function jo(e, n, t) {
|
|
3137
3137
|
return r;
|
|
3138
3138
|
function r(o) {
|
|
3139
3139
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
3140
3140
|
}
|
|
3141
3141
|
function i(o) {
|
|
3142
|
-
return
|
|
3142
|
+
return Eo(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(o);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
3145
|
const ei = {
|
|
3146
3146
|
name: "characterReference",
|
|
3147
|
-
tokenize:
|
|
3147
|
+
tokenize: $o
|
|
3148
3148
|
};
|
|
3149
|
-
function
|
|
3149
|
+
function $o(e, n, t) {
|
|
3150
3150
|
const r = this;
|
|
3151
3151
|
let i = 0, o, l;
|
|
3152
3152
|
return a;
|
|
@@ -3157,7 +3157,7 @@ function jo(e, n, t) {
|
|
|
3157
3157
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l = ie, f(c));
|
|
3158
3158
|
}
|
|
3159
3159
|
function u(c) {
|
|
3160
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
3160
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = _o, f) : (e.enter("characterReferenceValue"), o = 7, l = en, f(c));
|
|
3161
3161
|
}
|
|
3162
3162
|
function f(c) {
|
|
3163
3163
|
if (c === 59 && i) {
|
|
@@ -3169,13 +3169,13 @@ function jo(e, n, t) {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
const Kn = {
|
|
3171
3171
|
partial: !0,
|
|
3172
|
-
tokenize:
|
|
3172
|
+
tokenize: Vo
|
|
3173
3173
|
}, Zn = {
|
|
3174
3174
|
concrete: !0,
|
|
3175
3175
|
name: "codeFenced",
|
|
3176
|
-
tokenize:
|
|
3176
|
+
tokenize: Ho
|
|
3177
3177
|
};
|
|
3178
|
-
function
|
|
3178
|
+
function Ho(e, n, t) {
|
|
3179
3179
|
const r = this, i = {
|
|
3180
3180
|
partial: !0,
|
|
3181
3181
|
tokenize: N
|
|
@@ -3190,7 +3190,7 @@ function $o(e, n, t) {
|
|
|
3190
3190
|
return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(x);
|
|
3191
3191
|
}
|
|
3192
3192
|
function f(x) {
|
|
3193
|
-
return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), j(x) ?
|
|
3193
|
+
return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), j(x) ? q(e, c, "whitespace")(x) : c(x));
|
|
3194
3194
|
}
|
|
3195
3195
|
function c(x) {
|
|
3196
3196
|
return x === null || D(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(Kn, C, L)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
@@ -3198,7 +3198,7 @@ function $o(e, n, t) {
|
|
|
3198
3198
|
}), h(x));
|
|
3199
3199
|
}
|
|
3200
3200
|
function h(x) {
|
|
3201
|
-
return x === null || D(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) : j(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"),
|
|
3201
|
+
return x === null || D(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) : j(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(x)) : x === 96 && x === a ? t(x) : (e.consume(x), h);
|
|
3202
3202
|
}
|
|
3203
3203
|
function p(x) {
|
|
3204
3204
|
return x === null || D(x) ? c(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -3215,7 +3215,7 @@ function $o(e, n, t) {
|
|
|
3215
3215
|
return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), y;
|
|
3216
3216
|
}
|
|
3217
3217
|
function y(x) {
|
|
3218
|
-
return o > 0 && j(x) ?
|
|
3218
|
+
return o > 0 && j(x) ? q(e, A, "linePrefix", o + 1)(x) : A(x);
|
|
3219
3219
|
}
|
|
3220
3220
|
function A(x) {
|
|
3221
3221
|
return x === null || D(x) ? e.check(Kn, C, L)(x) : (e.enter("codeFlowValue"), _(x));
|
|
@@ -3233,20 +3233,20 @@ function $o(e, n, t) {
|
|
|
3233
3233
|
return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), T;
|
|
3234
3234
|
}
|
|
3235
3235
|
function T(v) {
|
|
3236
|
-
return x.enter("codeFencedFence"), j(v) ?
|
|
3236
|
+
return x.enter("codeFencedFence"), j(v) ? q(x, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
|
|
3237
3237
|
}
|
|
3238
3238
|
function z(v) {
|
|
3239
|
-
return v === a ? (x.enter("codeFencedFenceSequence"),
|
|
3239
|
+
return v === a ? (x.enter("codeFencedFenceSequence"), U(v)) : $(v);
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3242
|
-
return v === a ? (H++, x.consume(v),
|
|
3241
|
+
function U(v) {
|
|
3242
|
+
return v === a ? (H++, x.consume(v), U) : H >= l ? (x.exit("codeFencedFenceSequence"), j(v) ? q(x, P, "whitespace")(v) : P(v)) : $(v);
|
|
3243
3243
|
}
|
|
3244
3244
|
function P(v) {
|
|
3245
3245
|
return v === null || D(v) ? (x.exit("codeFencedFence"), O(v)) : $(v);
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Vo(e, n, t) {
|
|
3250
3250
|
const r = this;
|
|
3251
3251
|
return i;
|
|
3252
3252
|
function i(l) {
|
|
@@ -3259,22 +3259,22 @@ function Ho(e, n, t) {
|
|
|
3259
3259
|
const Mt = {
|
|
3260
3260
|
name: "codeIndented",
|
|
3261
3261
|
tokenize: Uo
|
|
3262
|
-
},
|
|
3262
|
+
}, qo = {
|
|
3263
3263
|
partial: !0,
|
|
3264
|
-
tokenize:
|
|
3264
|
+
tokenize: Wo
|
|
3265
3265
|
};
|
|
3266
3266
|
function Uo(e, n, t) {
|
|
3267
3267
|
const r = this;
|
|
3268
3268
|
return i;
|
|
3269
3269
|
function i(u) {
|
|
3270
|
-
return e.enter("codeIndented"),
|
|
3270
|
+
return e.enter("codeIndented"), q(e, o, "linePrefix", 5)(u);
|
|
3271
3271
|
}
|
|
3272
3272
|
function o(u) {
|
|
3273
3273
|
const f = r.events[r.events.length - 1];
|
|
3274
3274
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(u) : t(u);
|
|
3275
3275
|
}
|
|
3276
3276
|
function l(u) {
|
|
3277
|
-
return u === null ? s(u) : D(u) ? e.attempt(
|
|
3277
|
+
return u === null ? s(u) : D(u) ? e.attempt(qo, l, s)(u) : (e.enter("codeFlowValue"), a(u));
|
|
3278
3278
|
}
|
|
3279
3279
|
function a(u) {
|
|
3280
3280
|
return u === null || D(u) ? (e.exit("codeFlowValue"), l(u)) : (e.consume(u), a);
|
|
@@ -3283,24 +3283,24 @@ function Uo(e, n, t) {
|
|
|
3283
3283
|
return e.exit("codeIndented"), n(u);
|
|
3284
3284
|
}
|
|
3285
3285
|
}
|
|
3286
|
-
function
|
|
3286
|
+
function Wo(e, n, t) {
|
|
3287
3287
|
const r = this;
|
|
3288
3288
|
return i;
|
|
3289
3289
|
function i(l) {
|
|
3290
|
-
return r.parser.lazy[r.now().line] ? t(l) : D(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) :
|
|
3290
|
+
return r.parser.lazy[r.now().line] ? t(l) : D(l) ? (e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), i) : q(e, o, "linePrefix", 5)(l);
|
|
3291
3291
|
}
|
|
3292
3292
|
function o(l) {
|
|
3293
3293
|
const a = r.events[r.events.length - 1];
|
|
3294
3294
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(l) : D(l) ? i(l) : t(l);
|
|
3295
3295
|
}
|
|
3296
3296
|
}
|
|
3297
|
-
const
|
|
3297
|
+
const Yo = {
|
|
3298
3298
|
name: "codeText",
|
|
3299
|
-
previous:
|
|
3300
|
-
resolve:
|
|
3301
|
-
tokenize:
|
|
3299
|
+
previous: Xo,
|
|
3300
|
+
resolve: Qo,
|
|
3301
|
+
tokenize: Go
|
|
3302
3302
|
};
|
|
3303
|
-
function
|
|
3303
|
+
function Qo(e) {
|
|
3304
3304
|
let n = e.length - 4, t = 3, r, i;
|
|
3305
3305
|
if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
|
|
3306
3306
|
for (r = t; ++r < n; )
|
|
@@ -3313,10 +3313,10 @@ function Yo(e) {
|
|
|
3313
3313
|
i === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (i = r) : (r === n || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
|
|
3314
3314
|
return e;
|
|
3315
3315
|
}
|
|
3316
|
-
function
|
|
3316
|
+
function Xo(e) {
|
|
3317
3317
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
3318
3318
|
}
|
|
3319
|
-
function
|
|
3319
|
+
function Go(e, n, t) {
|
|
3320
3320
|
let r = 0, i, o;
|
|
3321
3321
|
return l;
|
|
3322
3322
|
function l(c) {
|
|
@@ -3335,7 +3335,7 @@ function Xo(e, n, t) {
|
|
|
3335
3335
|
return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(c)) : (o.type = "codeTextData", u(c));
|
|
3336
3336
|
}
|
|
3337
3337
|
}
|
|
3338
|
-
class
|
|
3338
|
+
class Jo {
|
|
3339
3339
|
/**
|
|
3340
3340
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
3341
3341
|
* Initial items (optional).
|
|
@@ -3510,7 +3510,7 @@ function et(e, n) {
|
|
|
3510
3510
|
function ti(e) {
|
|
3511
3511
|
const n = {};
|
|
3512
3512
|
let t = -1, r, i, o, l, a, s, u;
|
|
3513
|
-
const f = new
|
|
3513
|
+
const f = new Jo(e);
|
|
3514
3514
|
for (; ++t < f.length; ) {
|
|
3515
3515
|
for (; t in n; )
|
|
3516
3516
|
t = n[t];
|
|
@@ -3518,7 +3518,7 @@ function ti(e) {
|
|
|
3518
3518
|
for (; ++o < s.length && s[o][1].type !== "content"; )
|
|
3519
3519
|
s[o][1].type === "chunkText" && (s[o][1]._isInFirstContentOfListItem = !0, o++);
|
|
3520
3520
|
if (r[0] === "enter")
|
|
3521
|
-
r[1].contentType && (Object.assign(n,
|
|
3521
|
+
r[1].contentType && (Object.assign(n, Ko(f, t)), t = n[t], u = !0);
|
|
3522
3522
|
else if (r[1]._container) {
|
|
3523
3523
|
for (o = t, i = void 0; o--; )
|
|
3524
3524
|
if (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
|
|
@@ -3531,7 +3531,7 @@ function ti(e) {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
return he(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !u;
|
|
3533
3533
|
}
|
|
3534
|
-
function
|
|
3534
|
+
function Ko(e, n) {
|
|
3535
3535
|
const t = e.get(n)[1], r = e.get(n)[2];
|
|
3536
3536
|
let i = n - 1;
|
|
3537
3537
|
const o = [];
|
|
@@ -3556,17 +3556,17 @@ function Jo(e, n) {
|
|
|
3556
3556
|
u[g + s[h][0]] = g + s[h][1], g += s[h][1] - s[h][0] - 1;
|
|
3557
3557
|
return u;
|
|
3558
3558
|
}
|
|
3559
|
-
const
|
|
3560
|
-
resolve:
|
|
3561
|
-
tokenize: ta
|
|
3562
|
-
}, Zo = {
|
|
3563
|
-
partial: !0,
|
|
3559
|
+
const Zo = {
|
|
3560
|
+
resolve: ta,
|
|
3564
3561
|
tokenize: na
|
|
3562
|
+
}, ea = {
|
|
3563
|
+
partial: !0,
|
|
3564
|
+
tokenize: ra
|
|
3565
3565
|
};
|
|
3566
|
-
function
|
|
3566
|
+
function ta(e) {
|
|
3567
3567
|
return ti(e), e;
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3569
|
+
function na(e, n) {
|
|
3570
3570
|
let t;
|
|
3571
3571
|
return r;
|
|
3572
3572
|
function r(a) {
|
|
@@ -3575,7 +3575,7 @@ function ta(e, n) {
|
|
|
3575
3575
|
}), i(a);
|
|
3576
3576
|
}
|
|
3577
3577
|
function i(a) {
|
|
3578
|
-
return a === null ? o(a) : D(a) ? e.check(
|
|
3578
|
+
return a === null ? o(a) : D(a) ? e.check(ea, l, o)(a) : (e.consume(a), i);
|
|
3579
3579
|
}
|
|
3580
3580
|
function o(a) {
|
|
3581
3581
|
return e.exit("chunkContent"), e.exit("content"), n(a);
|
|
@@ -3587,11 +3587,11 @@ function ta(e, n) {
|
|
|
3587
3587
|
}), t = t.next, i;
|
|
3588
3588
|
}
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3590
|
+
function ra(e, n, t) {
|
|
3591
3591
|
const r = this;
|
|
3592
3592
|
return i;
|
|
3593
3593
|
function i(l) {
|
|
3594
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"),
|
|
3594
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), q(e, o, "linePrefix");
|
|
3595
3595
|
}
|
|
3596
3596
|
function o(l) {
|
|
3597
3597
|
if (l === null || D(l))
|
|
@@ -3661,7 +3661,7 @@ function ii(e, n, t, r, i, o) {
|
|
|
3661
3661
|
return h === l ? (e.enter(i), e.consume(h), e.exit(i), e.exit(r), n) : (e.enter(o), u(h));
|
|
3662
3662
|
}
|
|
3663
3663
|
function u(h) {
|
|
3664
|
-
return h === l ? (e.exit(o), s(l)) : h === null ? t(h) : D(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"),
|
|
3664
|
+
return h === l ? (e.exit(o), s(l)) : h === null ? t(h) : D(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), q(e, u, "linePrefix")) : (e.enter("chunkString", {
|
|
3665
3665
|
contentType: "string"
|
|
3666
3666
|
}), f(h));
|
|
3667
3667
|
}
|
|
@@ -3676,17 +3676,17 @@ function ot(e, n) {
|
|
|
3676
3676
|
let t;
|
|
3677
3677
|
return r;
|
|
3678
3678
|
function r(i) {
|
|
3679
|
-
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : j(i) ?
|
|
3679
|
+
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : j(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
|
3680
3680
|
}
|
|
3681
3681
|
}
|
|
3682
|
-
const
|
|
3682
|
+
const ia = {
|
|
3683
3683
|
name: "definition",
|
|
3684
|
-
tokenize: la
|
|
3685
|
-
}, ia = {
|
|
3686
|
-
partial: !0,
|
|
3687
3684
|
tokenize: oa
|
|
3685
|
+
}, la = {
|
|
3686
|
+
partial: !0,
|
|
3687
|
+
tokenize: aa
|
|
3688
3688
|
};
|
|
3689
|
-
function
|
|
3689
|
+
function oa(e, n, t) {
|
|
3690
3690
|
const r = this;
|
|
3691
3691
|
let i;
|
|
3692
3692
|
return o;
|
|
@@ -3725,16 +3725,16 @@ function la(e, n, t) {
|
|
|
3725
3725
|
)(p);
|
|
3726
3726
|
}
|
|
3727
3727
|
function f(p) {
|
|
3728
|
-
return e.attempt(
|
|
3728
|
+
return e.attempt(la, c, c)(p);
|
|
3729
3729
|
}
|
|
3730
3730
|
function c(p) {
|
|
3731
|
-
return j(p) ?
|
|
3731
|
+
return j(p) ? q(e, h, "whitespace")(p) : h(p);
|
|
3732
3732
|
}
|
|
3733
3733
|
function h(p) {
|
|
3734
3734
|
return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
|
|
3735
3735
|
}
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function aa(e, n, t) {
|
|
3738
3738
|
return r;
|
|
3739
3739
|
function r(a) {
|
|
3740
3740
|
return J(a) ? ot(e, i)(a) : t(a);
|
|
@@ -3743,17 +3743,17 @@ function oa(e, n, t) {
|
|
|
3743
3743
|
return ii(e, o, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
3744
3744
|
}
|
|
3745
3745
|
function o(a) {
|
|
3746
|
-
return j(a) ?
|
|
3746
|
+
return j(a) ? q(e, l, "whitespace")(a) : l(a);
|
|
3747
3747
|
}
|
|
3748
3748
|
function l(a) {
|
|
3749
3749
|
return a === null || D(a) ? n(a) : t(a);
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
3752
|
-
const
|
|
3752
|
+
const sa = {
|
|
3753
3753
|
name: "hardBreakEscape",
|
|
3754
|
-
tokenize:
|
|
3754
|
+
tokenize: ua
|
|
3755
3755
|
};
|
|
3756
|
-
function
|
|
3756
|
+
function ua(e, n, t) {
|
|
3757
3757
|
return r;
|
|
3758
3758
|
function r(o) {
|
|
3759
3759
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
|
@@ -3762,12 +3762,12 @@ function sa(e, n, t) {
|
|
|
3762
3762
|
return D(o) ? (e.exit("hardBreakEscape"), n(o)) : t(o);
|
|
3763
3763
|
}
|
|
3764
3764
|
}
|
|
3765
|
-
const
|
|
3765
|
+
const ca = {
|
|
3766
3766
|
name: "headingAtx",
|
|
3767
|
-
resolve:
|
|
3768
|
-
tokenize:
|
|
3767
|
+
resolve: fa,
|
|
3768
|
+
tokenize: pa
|
|
3769
3769
|
};
|
|
3770
|
-
function
|
|
3770
|
+
function fa(e, n) {
|
|
3771
3771
|
let t = e.length - 2, r = 3, i, o;
|
|
3772
3772
|
return e[r][1].type === "whitespace" && (r += 2), t - 2 > r && e[t][1].type === "whitespace" && (t -= 2), e[t][1].type === "atxHeadingSequence" && (r === t - 1 || t - 4 > r && e[t - 2][1].type === "whitespace") && (t -= r + 1 === t ? 2 : 4), t > r && (i = {
|
|
3773
3773
|
type: "atxHeadingText",
|
|
@@ -3780,7 +3780,7 @@ function ca(e, n) {
|
|
|
3780
3780
|
contentType: "text"
|
|
3781
3781
|
}, he(e, r, t - r + 1, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["exit", i, n]])), e;
|
|
3782
3782
|
}
|
|
3783
|
-
function
|
|
3783
|
+
function pa(e, n, t) {
|
|
3784
3784
|
let r = 0;
|
|
3785
3785
|
return i;
|
|
3786
3786
|
function i(f) {
|
|
@@ -3793,7 +3793,7 @@ function fa(e, n, t) {
|
|
|
3793
3793
|
return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || J(f) ? (e.exit("atxHeadingSequence"), a(f)) : t(f);
|
|
3794
3794
|
}
|
|
3795
3795
|
function a(f) {
|
|
3796
|
-
return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : j(f) ?
|
|
3796
|
+
return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || D(f) ? (e.exit("atxHeading"), n(f)) : j(f) ? q(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
|
|
3797
3797
|
}
|
|
3798
3798
|
function s(f) {
|
|
3799
3799
|
return f === 35 ? (e.consume(f), s) : (e.exit("atxHeadingSequence"), a(f));
|
|
@@ -3802,7 +3802,7 @@ function fa(e, n, t) {
|
|
|
3802
3802
|
return f === null || f === 35 || J(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), u);
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
const
|
|
3805
|
+
const ha = [
|
|
3806
3806
|
"address",
|
|
3807
3807
|
"article",
|
|
3808
3808
|
"aside",
|
|
@@ -3865,25 +3865,25 @@ const pa = [
|
|
|
3865
3865
|
"tr",
|
|
3866
3866
|
"track",
|
|
3867
3867
|
"ul"
|
|
3868
|
-
], er = ["pre", "script", "style", "textarea"],
|
|
3868
|
+
], er = ["pre", "script", "style", "textarea"], da = {
|
|
3869
3869
|
concrete: !0,
|
|
3870
3870
|
name: "htmlFlow",
|
|
3871
|
-
resolveTo:
|
|
3872
|
-
tokenize:
|
|
3873
|
-
}, da = {
|
|
3874
|
-
partial: !0,
|
|
3875
|
-
tokenize: xa
|
|
3871
|
+
resolveTo: ya,
|
|
3872
|
+
tokenize: ka
|
|
3876
3873
|
}, ma = {
|
|
3877
3874
|
partial: !0,
|
|
3878
|
-
tokenize:
|
|
3875
|
+
tokenize: ba
|
|
3876
|
+
}, ga = {
|
|
3877
|
+
partial: !0,
|
|
3878
|
+
tokenize: xa
|
|
3879
3879
|
};
|
|
3880
|
-
function
|
|
3880
|
+
function ya(e) {
|
|
3881
3881
|
let n = e.length;
|
|
3882
3882
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
|
|
3883
3883
|
;
|
|
3884
3884
|
return n > 1 && e[n - 2][1].type === "linePrefix" && (e[n][1].start = e[n - 2][1].start, e[n + 1][1].start = e[n - 2][1].start, e.splice(n - 2, 2)), e;
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3886
|
+
function ka(e, n, t) {
|
|
3887
3887
|
const r = this;
|
|
3888
3888
|
let i, o, l, a, s;
|
|
3889
3889
|
return u;
|
|
@@ -3912,7 +3912,7 @@ function ya(e, n, t) {
|
|
|
3912
3912
|
function S(m) {
|
|
3913
3913
|
if (m === null || m === 47 || m === 62 || J(m)) {
|
|
3914
3914
|
const ne = m === 47, Pe = l.toLowerCase();
|
|
3915
|
-
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) :
|
|
3915
|
+
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : ha.includes(l.toLowerCase()) ? (i = 6, ne ? (e.consume(m), y) : r.interrupt ? n(m) : z(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : o ? A(m) : _(m));
|
|
3916
3916
|
}
|
|
3917
3917
|
return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
|
|
3918
3918
|
}
|
|
@@ -3950,16 +3950,16 @@ function ya(e, n, t) {
|
|
|
3950
3950
|
return m === null || D(m) ? z(m) : j(m) ? (e.consume(m), T) : t(m);
|
|
3951
3951
|
}
|
|
3952
3952
|
function z(m) {
|
|
3953
|
-
return m === 45 && i === 2 ? (e.consume(m), R) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
3953
|
+
return m === 45 && i === 2 ? (e.consume(m), R) : m === 60 && i === 1 ? (e.consume(m), B) : m === 62 && i === 4 ? (e.consume(m), se) : m === 63 && i === 3 ? (e.consume(m), d) : m === 93 && i === 5 ? (e.consume(m), W) : D(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ma, te, U)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), U(m)) : (e.consume(m), z);
|
|
3954
3954
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return e.check(
|
|
3955
|
+
function U(m) {
|
|
3956
|
+
return e.check(ga, P, te)(m);
|
|
3957
3957
|
}
|
|
3958
3958
|
function P(m) {
|
|
3959
3959
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
|
|
3960
3960
|
}
|
|
3961
3961
|
function v(m) {
|
|
3962
|
-
return m === null || D(m) ?
|
|
3962
|
+
return m === null || D(m) ? U(m) : (e.enter("htmlFlowData"), z(m));
|
|
3963
3963
|
}
|
|
3964
3964
|
function R(m) {
|
|
3965
3965
|
return m === 45 ? (e.consume(m), d) : z(m);
|
|
@@ -3987,7 +3987,7 @@ function ya(e, n, t) {
|
|
|
3987
3987
|
return e.exit("htmlFlow"), n(m);
|
|
3988
3988
|
}
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3990
|
+
function xa(e, n, t) {
|
|
3991
3991
|
const r = this;
|
|
3992
3992
|
return i;
|
|
3993
3993
|
function i(l) {
|
|
@@ -3997,17 +3997,17 @@ function ka(e, n, t) {
|
|
|
3997
3997
|
return r.parser.lazy[r.now().line] ? t(l) : n(l);
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
|
-
function
|
|
4000
|
+
function ba(e, n, t) {
|
|
4001
4001
|
return r;
|
|
4002
4002
|
function r(i) {
|
|
4003
4003
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(ft, n, t);
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
|
-
const
|
|
4006
|
+
const wa = {
|
|
4007
4007
|
name: "htmlText",
|
|
4008
|
-
tokenize:
|
|
4008
|
+
tokenize: Ca
|
|
4009
4009
|
};
|
|
4010
|
-
function
|
|
4010
|
+
function Ca(e, n, t) {
|
|
4011
4011
|
const r = this;
|
|
4012
4012
|
let i, o, l;
|
|
4013
4013
|
return a;
|
|
@@ -4076,10 +4076,10 @@ function wa(e, n, t) {
|
|
|
4076
4076
|
return d === 61 ? (e.consume(d), z) : D(d) ? (l = T, B(d)) : j(d) ? (e.consume(d), T) : H(d);
|
|
4077
4077
|
}
|
|
4078
4078
|
function z(d) {
|
|
4079
|
-
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d,
|
|
4079
|
+
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), i = d, U) : D(d) ? (l = z, B(d)) : j(d) ? (e.consume(d), z) : (e.consume(d), P);
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4082
|
-
return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l =
|
|
4081
|
+
function U(d) {
|
|
4082
|
+
return d === i ? (e.consume(d), i = void 0, v) : d === null ? t(d) : D(d) ? (l = U, B(d)) : (e.consume(d), U);
|
|
4083
4083
|
}
|
|
4084
4084
|
function P(d) {
|
|
4085
4085
|
return d === null || d === 34 || d === 39 || d === 60 || d === 61 || d === 96 ? t(d) : d === 47 || d === 62 || J(d) ? H(d) : (e.consume(d), P);
|
|
@@ -4094,7 +4094,7 @@ function wa(e, n, t) {
|
|
|
4094
4094
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Q;
|
|
4095
4095
|
}
|
|
4096
4096
|
function Q(d) {
|
|
4097
|
-
return j(d) ?
|
|
4097
|
+
return j(d) ? q(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d) : W(d);
|
|
4098
4098
|
}
|
|
4099
4099
|
function W(d) {
|
|
4100
4100
|
return e.enter("htmlTextData"), l(d);
|
|
@@ -4102,17 +4102,17 @@ function wa(e, n, t) {
|
|
|
4102
4102
|
}
|
|
4103
4103
|
const xn = {
|
|
4104
4104
|
name: "labelEnd",
|
|
4105
|
-
resolveAll:
|
|
4106
|
-
resolveTo:
|
|
4107
|
-
tokenize: Aa
|
|
4108
|
-
}, Ca = {
|
|
4105
|
+
resolveAll: Ea,
|
|
4106
|
+
resolveTo: Aa,
|
|
4109
4107
|
tokenize: Ia
|
|
4110
4108
|
}, Sa = {
|
|
4111
4109
|
tokenize: Ta
|
|
4112
4110
|
}, va = {
|
|
4113
4111
|
tokenize: za
|
|
4112
|
+
}, _a = {
|
|
4113
|
+
tokenize: Pa
|
|
4114
4114
|
};
|
|
4115
|
-
function
|
|
4115
|
+
function Ea(e) {
|
|
4116
4116
|
let n = -1;
|
|
4117
4117
|
const t = [];
|
|
4118
4118
|
for (; ++n < e.length; ) {
|
|
@@ -4124,7 +4124,7 @@ function _a(e) {
|
|
|
4124
4124
|
}
|
|
4125
4125
|
return e.length !== t.length && he(e, 0, e.length, t), e;
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4127
|
+
function Aa(e, n) {
|
|
4128
4128
|
let t = e.length, r = 0, i, o, l, a;
|
|
4129
4129
|
for (; t--; )
|
|
4130
4130
|
if (i = e[t][1], o) {
|
|
@@ -4164,7 +4164,7 @@ function Ea(e, n) {
|
|
|
4164
4164
|
};
|
|
4165
4165
|
return a = [["enter", s, n], ["enter", u, n]], a = me(a, e.slice(o + 1, o + r + 3)), a = me(a, [["enter", f, n]]), a = me(a, Tt(n.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), n)), a = me(a, [["exit", f, n], e[l - 2], e[l - 1], ["exit", u, n]]), a = me(a, e.slice(l + 1)), a = me(a, [["exit", s, n]]), he(e, o, e.length, a), e;
|
|
4166
4166
|
}
|
|
4167
|
-
function
|
|
4167
|
+
function Ia(e, n, t) {
|
|
4168
4168
|
const r = this;
|
|
4169
4169
|
let i = r.events.length, o, l;
|
|
4170
4170
|
for (; i--; )
|
|
@@ -4180,10 +4180,10 @@ function Aa(e, n, t) {
|
|
|
4180
4180
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), s) : t(h);
|
|
4181
4181
|
}
|
|
4182
4182
|
function s(h) {
|
|
4183
|
-
return h === 40 ? e.attempt(
|
|
4183
|
+
return h === 40 ? e.attempt(Sa, f, l ? f : c)(h) : h === 91 ? e.attempt(va, f, l ? u : c)(h) : l ? f(h) : c(h);
|
|
4184
4184
|
}
|
|
4185
4185
|
function u(h) {
|
|
4186
|
-
return e.attempt(
|
|
4186
|
+
return e.attempt(_a, f, c)(h);
|
|
4187
4187
|
}
|
|
4188
4188
|
function f(h) {
|
|
4189
4189
|
return n(h);
|
|
@@ -4192,7 +4192,7 @@ function Aa(e, n, t) {
|
|
|
4192
4192
|
return o._balanced = !0, t(h);
|
|
4193
4193
|
}
|
|
4194
4194
|
}
|
|
4195
|
-
function
|
|
4195
|
+
function Ta(e, n, t) {
|
|
4196
4196
|
return r;
|
|
4197
4197
|
function r(c) {
|
|
4198
4198
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
|
@@ -4219,7 +4219,7 @@ function Ia(e, n, t) {
|
|
|
4219
4219
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), n) : t(c);
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
|
-
function
|
|
4222
|
+
function za(e, n, t) {
|
|
4223
4223
|
const r = this;
|
|
4224
4224
|
return i;
|
|
4225
4225
|
function i(a) {
|
|
@@ -4232,7 +4232,7 @@ function Ta(e, n, t) {
|
|
|
4232
4232
|
return t(a);
|
|
4233
4233
|
}
|
|
4234
4234
|
}
|
|
4235
|
-
function
|
|
4235
|
+
function Pa(e, n, t) {
|
|
4236
4236
|
return r;
|
|
4237
4237
|
function r(o) {
|
|
4238
4238
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
|
@@ -4241,12 +4241,12 @@ function za(e, n, t) {
|
|
|
4241
4241
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), n) : t(o);
|
|
4242
4242
|
}
|
|
4243
4243
|
}
|
|
4244
|
-
const
|
|
4244
|
+
const La = {
|
|
4245
4245
|
name: "labelStartImage",
|
|
4246
4246
|
resolveAll: xn.resolveAll,
|
|
4247
|
-
tokenize:
|
|
4247
|
+
tokenize: Da
|
|
4248
4248
|
};
|
|
4249
|
-
function
|
|
4249
|
+
function Da(e, n, t) {
|
|
4250
4250
|
const r = this;
|
|
4251
4251
|
return i;
|
|
4252
4252
|
function i(a) {
|
|
@@ -4259,12 +4259,12 @@ function La(e, n, t) {
|
|
|
4259
4259
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
|
|
4260
4260
|
}
|
|
4261
4261
|
}
|
|
4262
|
-
const
|
|
4262
|
+
const Na = {
|
|
4263
4263
|
name: "labelStartLink",
|
|
4264
4264
|
resolveAll: xn.resolveAll,
|
|
4265
|
-
tokenize:
|
|
4265
|
+
tokenize: Ra
|
|
4266
4266
|
};
|
|
4267
|
-
function
|
|
4267
|
+
function Ra(e, n, t) {
|
|
4268
4268
|
const r = this;
|
|
4269
4269
|
return i;
|
|
4270
4270
|
function i(l) {
|
|
@@ -4276,19 +4276,19 @@ function Na(e, n, t) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
const Ft = {
|
|
4278
4278
|
name: "lineEnding",
|
|
4279
|
-
tokenize:
|
|
4279
|
+
tokenize: Ma
|
|
4280
4280
|
};
|
|
4281
|
-
function
|
|
4281
|
+
function Ma(e, n) {
|
|
4282
4282
|
return t;
|
|
4283
4283
|
function t(r) {
|
|
4284
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
|
4284
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), q(e, n, "linePrefix");
|
|
4285
4285
|
}
|
|
4286
4286
|
}
|
|
4287
4287
|
const Ct = {
|
|
4288
4288
|
name: "thematicBreak",
|
|
4289
|
-
tokenize:
|
|
4289
|
+
tokenize: Fa
|
|
4290
4290
|
};
|
|
4291
|
-
function
|
|
4291
|
+
function Fa(e, n, t) {
|
|
4292
4292
|
let r = 0, i;
|
|
4293
4293
|
return o;
|
|
4294
4294
|
function o(u) {
|
|
@@ -4301,24 +4301,24 @@ function Ma(e, n, t) {
|
|
|
4301
4301
|
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || D(u)) ? (e.exit("thematicBreak"), n(u)) : t(u);
|
|
4302
4302
|
}
|
|
4303
4303
|
function s(u) {
|
|
4304
|
-
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), j(u) ?
|
|
4304
|
+
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), j(u) ? q(e, a, "whitespace")(u) : a(u));
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
4307
|
const ue = {
|
|
4308
4308
|
continuation: {
|
|
4309
|
-
tokenize:
|
|
4309
|
+
tokenize: $a
|
|
4310
4310
|
},
|
|
4311
|
-
exit:
|
|
4311
|
+
exit: Va,
|
|
4312
4312
|
name: "list",
|
|
4313
|
-
tokenize:
|
|
4314
|
-
}, Fa = {
|
|
4315
|
-
partial: !0,
|
|
4316
|
-
tokenize: Va
|
|
4313
|
+
tokenize: ja
|
|
4317
4314
|
}, Oa = {
|
|
4318
4315
|
partial: !0,
|
|
4319
|
-
tokenize:
|
|
4316
|
+
tokenize: qa
|
|
4317
|
+
}, Ba = {
|
|
4318
|
+
partial: !0,
|
|
4319
|
+
tokenize: Ha
|
|
4320
4320
|
};
|
|
4321
|
-
function
|
|
4321
|
+
function ja(e, n, t) {
|
|
4322
4322
|
const r = this, i = r.events[r.events.length - 1];
|
|
4323
4323
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
|
4324
4324
|
return a;
|
|
@@ -4342,7 +4342,7 @@ function Ba(e, n, t) {
|
|
|
4342
4342
|
ft,
|
|
4343
4343
|
// Can’t be empty when interrupting.
|
|
4344
4344
|
r.interrupt ? t : f,
|
|
4345
|
-
e.attempt(
|
|
4345
|
+
e.attempt(Oa, h, c)
|
|
4346
4346
|
);
|
|
4347
4347
|
}
|
|
4348
4348
|
function f(p) {
|
|
@@ -4355,33 +4355,33 @@ function Ba(e, n, t) {
|
|
|
4355
4355
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
|
|
4356
4356
|
}
|
|
4357
4357
|
}
|
|
4358
|
-
function
|
|
4358
|
+
function $a(e, n, t) {
|
|
4359
4359
|
const r = this;
|
|
4360
4360
|
return r.containerState._closeFlow = void 0, e.check(ft, i, o);
|
|
4361
4361
|
function i(a) {
|
|
4362
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
|
4362
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
|
4363
4363
|
}
|
|
4364
4364
|
function o(a) {
|
|
4365
|
-
return r.containerState.furtherBlankLines || !j(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
|
4365
|
+
return r.containerState.furtherBlankLines || !j(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Ba, n, l)(a));
|
|
4366
4366
|
}
|
|
4367
4367
|
function l(a) {
|
|
4368
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
|
4368
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, q(e, e.attempt(ue, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
4369
4369
|
}
|
|
4370
4370
|
}
|
|
4371
|
-
function
|
|
4371
|
+
function Ha(e, n, t) {
|
|
4372
4372
|
const r = this;
|
|
4373
|
-
return
|
|
4373
|
+
return q(e, i, "listItemIndent", r.containerState.size + 1);
|
|
4374
4374
|
function i(o) {
|
|
4375
4375
|
const l = r.events[r.events.length - 1];
|
|
4376
4376
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? n(o) : t(o);
|
|
4377
4377
|
}
|
|
4378
4378
|
}
|
|
4379
|
-
function
|
|
4379
|
+
function Va(e) {
|
|
4380
4380
|
e.exit(this.containerState.type);
|
|
4381
4381
|
}
|
|
4382
|
-
function
|
|
4382
|
+
function qa(e, n, t) {
|
|
4383
4383
|
const r = this;
|
|
4384
|
-
return
|
|
4384
|
+
return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4385
4385
|
function i(o) {
|
|
4386
4386
|
const l = r.events[r.events.length - 1];
|
|
4387
4387
|
return !j(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
|
|
@@ -4390,7 +4390,7 @@ function Va(e, n, t) {
|
|
|
4390
4390
|
const tr = {
|
|
4391
4391
|
name: "setextUnderline",
|
|
4392
4392
|
resolveTo: Ua,
|
|
4393
|
-
tokenize:
|
|
4393
|
+
tokenize: Wa
|
|
4394
4394
|
};
|
|
4395
4395
|
function Ua(e, n) {
|
|
4396
4396
|
let t = e.length, r, i, o;
|
|
@@ -4416,7 +4416,7 @@ function Ua(e, n) {
|
|
|
4416
4416
|
...e[o][1].end
|
|
4417
4417
|
}) : e[r][1] = l, e.push(["exit", l, n]), e;
|
|
4418
4418
|
}
|
|
4419
|
-
function
|
|
4419
|
+
function Wa(e, n, t) {
|
|
4420
4420
|
const r = this;
|
|
4421
4421
|
let i;
|
|
4422
4422
|
return o;
|
|
@@ -4433,22 +4433,22 @@ function qa(e, n, t) {
|
|
|
4433
4433
|
return e.enter("setextHeadingLineSequence"), a(u);
|
|
4434
4434
|
}
|
|
4435
4435
|
function a(u) {
|
|
4436
|
-
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), j(u) ?
|
|
4436
|
+
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), j(u) ? q(e, s, "lineSuffix")(u) : s(u));
|
|
4437
4437
|
}
|
|
4438
4438
|
function s(u) {
|
|
4439
4439
|
return u === null || D(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
|
-
const
|
|
4443
|
-
tokenize:
|
|
4442
|
+
const Ya = {
|
|
4443
|
+
tokenize: Qa
|
|
4444
4444
|
};
|
|
4445
|
-
function
|
|
4445
|
+
function Qa(e) {
|
|
4446
4446
|
const n = this, t = e.attempt(
|
|
4447
4447
|
// Try to parse a blank line.
|
|
4448
4448
|
ft,
|
|
4449
4449
|
r,
|
|
4450
4450
|
// Try to parse initial flow (essentially, only code).
|
|
4451
|
-
e.attempt(this.parser.constructs.flowInitial, i,
|
|
4451
|
+
e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Zo, i)), "linePrefix"))
|
|
4452
4452
|
);
|
|
4453
4453
|
return t;
|
|
4454
4454
|
function r(o) {
|
|
@@ -4466,12 +4466,12 @@ function Ya(e) {
|
|
|
4466
4466
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
|
-
const
|
|
4469
|
+
const Xa = {
|
|
4470
4470
|
resolveAll: oi()
|
|
4471
|
-
},
|
|
4471
|
+
}, Ga = li("string"), Ja = li("text");
|
|
4472
4472
|
function li(e) {
|
|
4473
4473
|
return {
|
|
4474
|
-
resolveAll: oi(e === "text" ?
|
|
4474
|
+
resolveAll: oi(e === "text" ? Ka : void 0),
|
|
4475
4475
|
tokenize: n
|
|
4476
4476
|
};
|
|
4477
4477
|
function n(t) {
|
|
@@ -4514,7 +4514,7 @@ function oi(e) {
|
|
|
4514
4514
|
return e ? e(t, r) : t;
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
4517
|
-
function
|
|
4517
|
+
function Ka(e, n) {
|
|
4518
4518
|
let t = 0;
|
|
4519
4519
|
for (; ++t <= e.length; )
|
|
4520
4520
|
if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
|
@@ -4556,7 +4556,7 @@ function Ja(e, n) {
|
|
|
4556
4556
|
}
|
|
4557
4557
|
return e;
|
|
4558
4558
|
}
|
|
4559
|
-
const
|
|
4559
|
+
const Za = {
|
|
4560
4560
|
42: ue,
|
|
4561
4561
|
43: ue,
|
|
4562
4562
|
45: ue,
|
|
@@ -4571,56 +4571,56 @@ const Ka = {
|
|
|
4571
4571
|
56: ue,
|
|
4572
4572
|
57: ue,
|
|
4573
4573
|
62: Kr
|
|
4574
|
-
}, Za = {
|
|
4575
|
-
91: ra
|
|
4576
4574
|
}, es = {
|
|
4575
|
+
91: ia
|
|
4576
|
+
}, ts = {
|
|
4577
4577
|
[-2]: Mt,
|
|
4578
4578
|
[-1]: Mt,
|
|
4579
4579
|
32: Mt
|
|
4580
|
-
},
|
|
4581
|
-
35:
|
|
4580
|
+
}, ns = {
|
|
4581
|
+
35: ca,
|
|
4582
4582
|
42: Ct,
|
|
4583
4583
|
45: [tr, Ct],
|
|
4584
|
-
60:
|
|
4584
|
+
60: da,
|
|
4585
4585
|
61: tr,
|
|
4586
4586
|
95: Ct,
|
|
4587
4587
|
96: Zn,
|
|
4588
4588
|
126: Zn
|
|
4589
|
-
},
|
|
4589
|
+
}, rs = {
|
|
4590
4590
|
38: ei,
|
|
4591
4591
|
92: Zr
|
|
4592
|
-
},
|
|
4592
|
+
}, is = {
|
|
4593
4593
|
[-5]: Ft,
|
|
4594
4594
|
[-4]: Ft,
|
|
4595
4595
|
[-3]: Ft,
|
|
4596
|
-
33:
|
|
4596
|
+
33: La,
|
|
4597
4597
|
38: ei,
|
|
4598
4598
|
42: tn,
|
|
4599
|
-
60: [
|
|
4600
|
-
91:
|
|
4601
|
-
92: [
|
|
4599
|
+
60: [No, wa],
|
|
4600
|
+
91: Na,
|
|
4601
|
+
92: [sa, Zr],
|
|
4602
4602
|
93: xn,
|
|
4603
4603
|
95: tn,
|
|
4604
|
-
96:
|
|
4605
|
-
}, is = {
|
|
4606
|
-
null: [tn, Qa]
|
|
4604
|
+
96: Yo
|
|
4607
4605
|
}, ls = {
|
|
4608
|
-
null: [
|
|
4606
|
+
null: [tn, Xa]
|
|
4609
4607
|
}, os = {
|
|
4608
|
+
null: [42, 95]
|
|
4609
|
+
}, as = {
|
|
4610
4610
|
null: []
|
|
4611
|
-
},
|
|
4611
|
+
}, ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4612
4612
|
__proto__: null,
|
|
4613
|
-
attentionMarkers:
|
|
4614
|
-
contentInitial:
|
|
4615
|
-
disable:
|
|
4616
|
-
document:
|
|
4617
|
-
flow:
|
|
4618
|
-
flowInitial:
|
|
4619
|
-
insideSpan:
|
|
4620
|
-
string:
|
|
4621
|
-
text:
|
|
4613
|
+
attentionMarkers: os,
|
|
4614
|
+
contentInitial: es,
|
|
4615
|
+
disable: as,
|
|
4616
|
+
document: Za,
|
|
4617
|
+
flow: ns,
|
|
4618
|
+
flowInitial: ts,
|
|
4619
|
+
insideSpan: ls,
|
|
4620
|
+
string: rs,
|
|
4621
|
+
text: is
|
|
4622
4622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4623
|
-
function
|
|
4623
|
+
function us(e, n, t) {
|
|
4624
4624
|
let r = {
|
|
4625
4625
|
_bufferIndex: -1,
|
|
4626
4626
|
_index: 0,
|
|
@@ -4657,23 +4657,23 @@ function ss(e, n, t) {
|
|
|
4657
4657
|
return l = me(l, T), S(), l[l.length - 1] !== null ? [] : ($(n, 0), u.events = Tt(o, u.events, u), u.events);
|
|
4658
4658
|
}
|
|
4659
4659
|
function h(T, z) {
|
|
4660
|
-
return
|
|
4660
|
+
return fs(p(T), z);
|
|
4661
4661
|
}
|
|
4662
4662
|
function p(T) {
|
|
4663
|
-
return
|
|
4663
|
+
return cs(l, T);
|
|
4664
4664
|
}
|
|
4665
4665
|
function g() {
|
|
4666
4666
|
const {
|
|
4667
4667
|
_bufferIndex: T,
|
|
4668
4668
|
_index: z,
|
|
4669
|
-
line:
|
|
4669
|
+
line: U,
|
|
4670
4670
|
column: P,
|
|
4671
4671
|
offset: v
|
|
4672
4672
|
} = r;
|
|
4673
4673
|
return {
|
|
4674
4674
|
_bufferIndex: T,
|
|
4675
4675
|
_index: z,
|
|
4676
|
-
line:
|
|
4676
|
+
line: U,
|
|
4677
4677
|
column: P,
|
|
4678
4678
|
offset: v
|
|
4679
4679
|
};
|
|
@@ -4702,8 +4702,8 @@ function ss(e, n, t) {
|
|
|
4702
4702
|
l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
|
|
4703
4703
|
}
|
|
4704
4704
|
function _(T, z) {
|
|
4705
|
-
const
|
|
4706
|
-
return
|
|
4705
|
+
const U = z || {};
|
|
4706
|
+
return U.type = T, U.start = g(), u.events.push(["enter", U, u]), a.push(U), U;
|
|
4707
4707
|
}
|
|
4708
4708
|
function L(T) {
|
|
4709
4709
|
const z = a.pop();
|
|
@@ -4716,8 +4716,8 @@ function ss(e, n, t) {
|
|
|
4716
4716
|
z.restore();
|
|
4717
4717
|
}
|
|
4718
4718
|
function O(T, z) {
|
|
4719
|
-
return
|
|
4720
|
-
function
|
|
4719
|
+
return U;
|
|
4720
|
+
function U(P, v, R) {
|
|
4721
4721
|
let B, Q, W, d;
|
|
4722
4722
|
return Array.isArray(P) ? (
|
|
4723
4723
|
/* c8 ignore next 1 */
|
|
@@ -4770,20 +4770,20 @@ function ss(e, n, t) {
|
|
|
4770
4770
|
T.resolveAll && !o.includes(T) && o.push(T), T.resolve && he(u.events, z, u.events.length - z, T.resolve(u.events.slice(z), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
|
|
4771
4771
|
}
|
|
4772
4772
|
function H() {
|
|
4773
|
-
const T = g(), z = u.previous,
|
|
4773
|
+
const T = g(), z = u.previous, U = u.currentConstruct, P = u.events.length, v = Array.from(a);
|
|
4774
4774
|
return {
|
|
4775
4775
|
from: P,
|
|
4776
4776
|
restore: R
|
|
4777
4777
|
};
|
|
4778
4778
|
function R() {
|
|
4779
|
-
r = T, u.previous = z, u.currentConstruct =
|
|
4779
|
+
r = T, u.previous = z, u.currentConstruct = U, u.events.length = P, a = v, k();
|
|
4780
4780
|
}
|
|
4781
4781
|
}
|
|
4782
4782
|
function k() {
|
|
4783
4783
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
4784
4784
|
}
|
|
4785
4785
|
}
|
|
4786
|
-
function
|
|
4786
|
+
function cs(e, n) {
|
|
4787
4787
|
const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, o = n.end._bufferIndex;
|
|
4788
4788
|
let l;
|
|
4789
4789
|
if (t === i)
|
|
@@ -4797,7 +4797,7 @@ function us(e, n) {
|
|
|
4797
4797
|
}
|
|
4798
4798
|
return l;
|
|
4799
4799
|
}
|
|
4800
|
-
function
|
|
4800
|
+
function fs(e, n) {
|
|
4801
4801
|
let t = -1;
|
|
4802
4802
|
const r = [];
|
|
4803
4803
|
let i;
|
|
@@ -4837,35 +4837,35 @@ function cs(e, n) {
|
|
|
4837
4837
|
}
|
|
4838
4838
|
return r.join("");
|
|
4839
4839
|
}
|
|
4840
|
-
function
|
|
4840
|
+
function ps(e) {
|
|
4841
4841
|
const r = {
|
|
4842
4842
|
constructs: (
|
|
4843
4843
|
/** @type {FullNormalizedExtension} */
|
|
4844
|
-
Gr([
|
|
4844
|
+
Gr([ss, ...(e || {}).extensions || []])
|
|
4845
4845
|
),
|
|
4846
|
-
content: i(
|
|
4846
|
+
content: i(Ao),
|
|
4847
4847
|
defined: [],
|
|
4848
|
-
document: i(
|
|
4849
|
-
flow: i(
|
|
4848
|
+
document: i(To),
|
|
4849
|
+
flow: i(Ya),
|
|
4850
4850
|
lazy: {},
|
|
4851
|
-
string: i(
|
|
4852
|
-
text: i(
|
|
4851
|
+
string: i(Ga),
|
|
4852
|
+
text: i(Ja)
|
|
4853
4853
|
};
|
|
4854
4854
|
return r;
|
|
4855
4855
|
function i(o) {
|
|
4856
4856
|
return l;
|
|
4857
4857
|
function l(a) {
|
|
4858
|
-
return
|
|
4858
|
+
return us(r, o, a);
|
|
4859
4859
|
}
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
|
-
function
|
|
4862
|
+
function hs(e) {
|
|
4863
4863
|
for (; !ti(e); )
|
|
4864
4864
|
;
|
|
4865
4865
|
return e;
|
|
4866
4866
|
}
|
|
4867
4867
|
const nr = /[\0\t\n\r]/g;
|
|
4868
|
-
function
|
|
4868
|
+
function ds() {
|
|
4869
4869
|
let e = 1, n = "", t = !0, r;
|
|
4870
4870
|
return i;
|
|
4871
4871
|
function i(o, l, a) {
|
|
@@ -4900,11 +4900,11 @@ function hs() {
|
|
|
4900
4900
|
return a && (r && s.push(-5), n && s.push(n), s.push(null)), s;
|
|
4901
4901
|
}
|
|
4902
4902
|
}
|
|
4903
|
-
const
|
|
4904
|
-
function
|
|
4905
|
-
return e.replace(
|
|
4903
|
+
const ms = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4904
|
+
function gs(e) {
|
|
4905
|
+
return e.replace(ms, ys);
|
|
4906
4906
|
}
|
|
4907
|
-
function
|
|
4907
|
+
function ys(e, n, t) {
|
|
4908
4908
|
if (n)
|
|
4909
4909
|
return n;
|
|
4910
4910
|
if (t.charCodeAt(0) === 35) {
|
|
@@ -4914,10 +4914,10 @@ function gs(e, n, t) {
|
|
|
4914
4914
|
return kn(t) || e;
|
|
4915
4915
|
}
|
|
4916
4916
|
const ai = {}.hasOwnProperty;
|
|
4917
|
-
function
|
|
4918
|
-
return n && typeof n == "object" && (t = n, n = void 0),
|
|
4917
|
+
function ks(e, n, t) {
|
|
4918
|
+
return n && typeof n == "object" && (t = n, n = void 0), xs(t)(hs(ps(t).document().write(ds()(e, n, !0))));
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function xs(e) {
|
|
4921
4921
|
const n = {
|
|
4922
4922
|
transforms: [],
|
|
4923
4923
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -4933,11 +4933,11 @@ function ks(e) {
|
|
|
4933
4933
|
codeFencedFenceInfo: l,
|
|
4934
4934
|
codeFencedFenceMeta: l,
|
|
4935
4935
|
codeIndented: o(ht, l),
|
|
4936
|
-
codeText: o(
|
|
4936
|
+
codeText: o(Vi, l),
|
|
4937
4937
|
codeTextData: H,
|
|
4938
4938
|
data: H,
|
|
4939
4939
|
codeFlowValue: H,
|
|
4940
|
-
definition: o(
|
|
4940
|
+
definition: o(qi),
|
|
4941
4941
|
definitionDestinationString: l,
|
|
4942
4942
|
definitionLabelString: l,
|
|
4943
4943
|
definitionTitleString: l,
|
|
@@ -4948,21 +4948,21 @@ function ks(e) {
|
|
|
4948
4948
|
htmlFlowData: H,
|
|
4949
4949
|
htmlText: o(Pn, l),
|
|
4950
4950
|
htmlTextData: H,
|
|
4951
|
-
image: o(
|
|
4951
|
+
image: o(Wi),
|
|
4952
4952
|
label: l,
|
|
4953
4953
|
link: o(Ln),
|
|
4954
|
-
listItem: o(
|
|
4954
|
+
listItem: o(Yi),
|
|
4955
4955
|
listItemValue: h,
|
|
4956
4956
|
listOrdered: o(Dn, c),
|
|
4957
4957
|
listUnordered: o(Dn),
|
|
4958
|
-
paragraph: o(
|
|
4958
|
+
paragraph: o(Qi),
|
|
4959
4959
|
reference: m,
|
|
4960
4960
|
referenceString: l,
|
|
4961
4961
|
resourceDestinationString: l,
|
|
4962
4962
|
resourceTitleString: l,
|
|
4963
4963
|
setextHeading: o(Tn),
|
|
4964
|
-
strong: o(
|
|
4965
|
-
thematicBreak: o(
|
|
4964
|
+
strong: o(Xi),
|
|
4965
|
+
thematicBreak: o(Ji)
|
|
4966
4966
|
},
|
|
4967
4967
|
exit: {
|
|
4968
4968
|
atxHeading: s(),
|
|
@@ -4992,7 +4992,7 @@ function ks(e) {
|
|
|
4992
4992
|
emphasis: s(),
|
|
4993
4993
|
hardBreakEscape: s(z),
|
|
4994
4994
|
hardBreakTrailing: s(z),
|
|
4995
|
-
htmlFlow: s(
|
|
4995
|
+
htmlFlow: s(U),
|
|
4996
4996
|
htmlFlowData: k,
|
|
4997
4997
|
htmlText: s(P),
|
|
4998
4998
|
htmlTextData: k,
|
|
@@ -5216,7 +5216,7 @@ function ks(e) {
|
|
|
5216
5216
|
function H(w) {
|
|
5217
5217
|
const F = this.stack[this.stack.length - 1].children;
|
|
5218
5218
|
let V = F[F.length - 1];
|
|
5219
|
-
(!V || V.type !== "text") && (V =
|
|
5219
|
+
(!V || V.type !== "text") && (V = Gi(), V.position = {
|
|
5220
5220
|
start: Ie(w.start),
|
|
5221
5221
|
// @ts-expect-error: we’ll add `end` later.
|
|
5222
5222
|
end: void 0
|
|
@@ -5238,7 +5238,7 @@ function ks(e) {
|
|
|
5238
5238
|
function z() {
|
|
5239
5239
|
this.data.atHardBreak = !0;
|
|
5240
5240
|
}
|
|
5241
|
-
function
|
|
5241
|
+
function U() {
|
|
5242
5242
|
const w = this.resume(), I = this.stack[this.stack.length - 1];
|
|
5243
5243
|
I.value = w;
|
|
5244
5244
|
}
|
|
@@ -5270,7 +5270,7 @@ function ks(e) {
|
|
|
5270
5270
|
}
|
|
5271
5271
|
function Q(w) {
|
|
5272
5272
|
const I = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
|
|
5273
|
-
F.label =
|
|
5273
|
+
F.label = gs(I), F.identifier = ke(I).toLowerCase();
|
|
5274
5274
|
}
|
|
5275
5275
|
function W() {
|
|
5276
5276
|
const w = this.stack[this.stack.length - 1], I = this.resume(), F = this.stack[this.stack.length - 1];
|
|
@@ -5336,13 +5336,13 @@ function ks(e) {
|
|
|
5336
5336
|
value: ""
|
|
5337
5337
|
};
|
|
5338
5338
|
}
|
|
5339
|
-
function
|
|
5339
|
+
function Vi() {
|
|
5340
5340
|
return {
|
|
5341
5341
|
type: "inlineCode",
|
|
5342
5342
|
value: ""
|
|
5343
5343
|
};
|
|
5344
5344
|
}
|
|
5345
|
-
function
|
|
5345
|
+
function qi() {
|
|
5346
5346
|
return {
|
|
5347
5347
|
type: "definition",
|
|
5348
5348
|
identifier: "",
|
|
@@ -5376,7 +5376,7 @@ function ks(e) {
|
|
|
5376
5376
|
value: ""
|
|
5377
5377
|
};
|
|
5378
5378
|
}
|
|
5379
|
-
function
|
|
5379
|
+
function Wi() {
|
|
5380
5380
|
return {
|
|
5381
5381
|
type: "image",
|
|
5382
5382
|
title: null,
|
|
@@ -5401,7 +5401,7 @@ function ks(e) {
|
|
|
5401
5401
|
children: []
|
|
5402
5402
|
};
|
|
5403
5403
|
}
|
|
5404
|
-
function
|
|
5404
|
+
function Yi(w) {
|
|
5405
5405
|
return {
|
|
5406
5406
|
type: "listItem",
|
|
5407
5407
|
spread: w._spread,
|
|
@@ -5409,25 +5409,25 @@ function ks(e) {
|
|
|
5409
5409
|
children: []
|
|
5410
5410
|
};
|
|
5411
5411
|
}
|
|
5412
|
-
function
|
|
5412
|
+
function Qi() {
|
|
5413
5413
|
return {
|
|
5414
5414
|
type: "paragraph",
|
|
5415
5415
|
children: []
|
|
5416
5416
|
};
|
|
5417
5417
|
}
|
|
5418
|
-
function
|
|
5418
|
+
function Xi() {
|
|
5419
5419
|
return {
|
|
5420
5420
|
type: "strong",
|
|
5421
5421
|
children: []
|
|
5422
5422
|
};
|
|
5423
5423
|
}
|
|
5424
|
-
function
|
|
5424
|
+
function Gi() {
|
|
5425
5425
|
return {
|
|
5426
5426
|
type: "text",
|
|
5427
5427
|
value: ""
|
|
5428
5428
|
};
|
|
5429
5429
|
}
|
|
5430
|
-
function
|
|
5430
|
+
function Ji() {
|
|
5431
5431
|
return {
|
|
5432
5432
|
type: "thematicBreak"
|
|
5433
5433
|
};
|
|
@@ -5444,10 +5444,10 @@ function si(e, n) {
|
|
|
5444
5444
|
let t = -1;
|
|
5445
5445
|
for (; ++t < n.length; ) {
|
|
5446
5446
|
const r = n[t];
|
|
5447
|
-
Array.isArray(r) ? si(e, r) :
|
|
5447
|
+
Array.isArray(r) ? si(e, r) : bs(e, r);
|
|
5448
5448
|
}
|
|
5449
5449
|
}
|
|
5450
|
-
function
|
|
5450
|
+
function bs(e, n) {
|
|
5451
5451
|
let t;
|
|
5452
5452
|
for (t in n)
|
|
5453
5453
|
if (ai.call(n, t))
|
|
@@ -5482,11 +5482,11 @@ function rr(e, n) {
|
|
|
5482
5482
|
end: n.end
|
|
5483
5483
|
}) + ") is still open");
|
|
5484
5484
|
}
|
|
5485
|
-
function
|
|
5485
|
+
function ws(e) {
|
|
5486
5486
|
const n = this;
|
|
5487
5487
|
n.parser = t;
|
|
5488
5488
|
function t(r) {
|
|
5489
|
-
return
|
|
5489
|
+
return ks(r, {
|
|
5490
5490
|
...n.data("settings"),
|
|
5491
5491
|
...e,
|
|
5492
5492
|
// Note: these options are not in the readme.
|
|
@@ -5497,7 +5497,7 @@ function bs(e) {
|
|
|
5497
5497
|
});
|
|
5498
5498
|
}
|
|
5499
5499
|
}
|
|
5500
|
-
function
|
|
5500
|
+
function Cs(e, n) {
|
|
5501
5501
|
const t = {
|
|
5502
5502
|
type: "element",
|
|
5503
5503
|
tagName: "blockquote",
|
|
@@ -5506,12 +5506,12 @@ function ws(e, n) {
|
|
|
5506
5506
|
};
|
|
5507
5507
|
return e.patch(n, t), e.applyData(n, t);
|
|
5508
5508
|
}
|
|
5509
|
-
function
|
|
5509
|
+
function Ss(e, n) {
|
|
5510
5510
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
5511
5511
|
return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
|
|
5512
5512
|
` }];
|
|
5513
5513
|
}
|
|
5514
|
-
function
|
|
5514
|
+
function vs(e, n) {
|
|
5515
5515
|
const t = n.value ? n.value + `
|
|
5516
5516
|
` : "", r = {}, i = n.lang ? n.lang.split(/\s+/) : [];
|
|
5517
5517
|
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
@@ -5523,7 +5523,7 @@ function Ss(e, n) {
|
|
|
5523
5523
|
};
|
|
5524
5524
|
return n.meta && (o.data = { meta: n.meta }), e.patch(n, o), o = e.applyData(n, o), o = { type: "element", tagName: "pre", properties: {}, children: [o] }, e.patch(n, o), o;
|
|
5525
5525
|
}
|
|
5526
|
-
function
|
|
5526
|
+
function _s(e, n) {
|
|
5527
5527
|
const t = {
|
|
5528
5528
|
type: "element",
|
|
5529
5529
|
tagName: "del",
|
|
@@ -5532,7 +5532,7 @@ function vs(e, n) {
|
|
|
5532
5532
|
};
|
|
5533
5533
|
return e.patch(n, t), e.applyData(n, t);
|
|
5534
5534
|
}
|
|
5535
|
-
function
|
|
5535
|
+
function Es(e, n) {
|
|
5536
5536
|
const t = {
|
|
5537
5537
|
type: "element",
|
|
5538
5538
|
tagName: "em",
|
|
@@ -5541,7 +5541,7 @@ function _s(e, n) {
|
|
|
5541
5541
|
};
|
|
5542
5542
|
return e.patch(n, t), e.applyData(n, t);
|
|
5543
5543
|
}
|
|
5544
|
-
function
|
|
5544
|
+
function As(e, n) {
|
|
5545
5545
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Qe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
5546
5546
|
let l, a = e.footnoteCounts.get(r);
|
|
5547
5547
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -5565,7 +5565,7 @@ function Es(e, n) {
|
|
|
5565
5565
|
};
|
|
5566
5566
|
return e.patch(n, u), e.applyData(n, u);
|
|
5567
5567
|
}
|
|
5568
|
-
function
|
|
5568
|
+
function Is(e, n) {
|
|
5569
5569
|
const t = {
|
|
5570
5570
|
type: "element",
|
|
5571
5571
|
tagName: "h" + n.depth,
|
|
@@ -5574,7 +5574,7 @@ function As(e, n) {
|
|
|
5574
5574
|
};
|
|
5575
5575
|
return e.patch(n, t), e.applyData(n, t);
|
|
5576
5576
|
}
|
|
5577
|
-
function
|
|
5577
|
+
function Ts(e, n) {
|
|
5578
5578
|
if (e.options.allowDangerousHtml) {
|
|
5579
5579
|
const t = { type: "raw", value: n.value };
|
|
5580
5580
|
return e.patch(n, t), e.applyData(n, t);
|
|
@@ -5590,7 +5590,7 @@ function ui(e, n) {
|
|
|
5590
5590
|
const l = i[i.length - 1];
|
|
5591
5591
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
|
5592
5592
|
}
|
|
5593
|
-
function
|
|
5593
|
+
function zs(e, n) {
|
|
5594
5594
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5595
5595
|
if (!r)
|
|
5596
5596
|
return ui(e, n);
|
|
@@ -5599,13 +5599,13 @@ function Ts(e, n) {
|
|
|
5599
5599
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
5600
5600
|
return e.patch(n, o), e.applyData(n, o);
|
|
5601
5601
|
}
|
|
5602
|
-
function
|
|
5602
|
+
function Ps(e, n) {
|
|
5603
5603
|
const t = { src: Qe(n.url) };
|
|
5604
5604
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5605
5605
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5606
5606
|
return e.patch(n, r), e.applyData(n, r);
|
|
5607
5607
|
}
|
|
5608
|
-
function
|
|
5608
|
+
function Ls(e, n) {
|
|
5609
5609
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
|
5610
5610
|
e.patch(n, t);
|
|
5611
5611
|
const r = {
|
|
@@ -5616,7 +5616,7 @@ function Ps(e, n) {
|
|
|
5616
5616
|
};
|
|
5617
5617
|
return e.patch(n, r), e.applyData(n, r);
|
|
5618
5618
|
}
|
|
5619
|
-
function
|
|
5619
|
+
function Ds(e, n) {
|
|
5620
5620
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5621
5621
|
if (!r)
|
|
5622
5622
|
return ui(e, n);
|
|
@@ -5630,7 +5630,7 @@ function Ls(e, n) {
|
|
|
5630
5630
|
};
|
|
5631
5631
|
return e.patch(n, o), e.applyData(n, o);
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function Ns(e, n) {
|
|
5634
5634
|
const t = { href: Qe(n.url) };
|
|
5635
5635
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5636
5636
|
const r = {
|
|
@@ -5641,8 +5641,8 @@ function Ds(e, n) {
|
|
|
5641
5641
|
};
|
|
5642
5642
|
return e.patch(n, r), e.applyData(n, r);
|
|
5643
5643
|
}
|
|
5644
|
-
function
|
|
5645
|
-
const r = e.all(n), i = t ?
|
|
5644
|
+
function Rs(e, n, t) {
|
|
5645
|
+
const r = e.all(n), i = t ? Ms(t) : ci(n), o = {}, l = [];
|
|
5646
5646
|
if (typeof n.checked == "boolean") {
|
|
5647
5647
|
const f = r[0];
|
|
5648
5648
|
let c;
|
|
@@ -5665,7 +5665,7 @@ function Ns(e, n, t) {
|
|
|
5665
5665
|
const u = { type: "element", tagName: "li", properties: o, children: l };
|
|
5666
5666
|
return e.patch(n, u), e.applyData(n, u);
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5668
|
+
function Ms(e) {
|
|
5669
5669
|
let n = !1;
|
|
5670
5670
|
if (e.type === "list") {
|
|
5671
5671
|
n = e.spread || !1;
|
|
@@ -5680,7 +5680,7 @@ function ci(e) {
|
|
|
5680
5680
|
const n = e.spread;
|
|
5681
5681
|
return n ?? e.children.length > 1;
|
|
5682
5682
|
}
|
|
5683
|
-
function
|
|
5683
|
+
function Fs(e, n) {
|
|
5684
5684
|
const t = {}, r = e.all(n);
|
|
5685
5685
|
let i = -1;
|
|
5686
5686
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
|
@@ -5698,7 +5698,7 @@ function Ms(e, n) {
|
|
|
5698
5698
|
};
|
|
5699
5699
|
return e.patch(n, o), e.applyData(n, o);
|
|
5700
5700
|
}
|
|
5701
|
-
function
|
|
5701
|
+
function Os(e, n) {
|
|
5702
5702
|
const t = {
|
|
5703
5703
|
type: "element",
|
|
5704
5704
|
tagName: "p",
|
|
@@ -5707,11 +5707,11 @@ function Fs(e, n) {
|
|
|
5707
5707
|
};
|
|
5708
5708
|
return e.patch(n, t), e.applyData(n, t);
|
|
5709
5709
|
}
|
|
5710
|
-
function
|
|
5710
|
+
function Bs(e, n) {
|
|
5711
5711
|
const t = { type: "root", children: e.wrap(e.all(n)) };
|
|
5712
5712
|
return e.patch(n, t), e.applyData(n, t);
|
|
5713
5713
|
}
|
|
5714
|
-
function
|
|
5714
|
+
function js(e, n) {
|
|
5715
5715
|
const t = {
|
|
5716
5716
|
type: "element",
|
|
5717
5717
|
tagName: "strong",
|
|
@@ -5720,7 +5720,7 @@ function Bs(e, n) {
|
|
|
5720
5720
|
};
|
|
5721
5721
|
return e.patch(n, t), e.applyData(n, t);
|
|
5722
5722
|
}
|
|
5723
|
-
function
|
|
5723
|
+
function $s(e, n) {
|
|
5724
5724
|
const t = e.all(n), r = t.shift(), i = [];
|
|
5725
5725
|
if (r) {
|
|
5726
5726
|
const l = {
|
|
@@ -5748,7 +5748,7 @@ function js(e, n) {
|
|
|
5748
5748
|
};
|
|
5749
5749
|
return e.patch(n, o), e.applyData(n, o);
|
|
5750
5750
|
}
|
|
5751
|
-
function
|
|
5751
|
+
function Hs(e, n, t) {
|
|
5752
5752
|
const r = t ? t.children : void 0, o = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", l = t && t.type === "table" ? t.align : void 0, a = l ? l.length : n.children.length;
|
|
5753
5753
|
let s = -1;
|
|
5754
5754
|
const u = [];
|
|
@@ -5766,7 +5766,7 @@ function $s(e, n, t) {
|
|
|
5766
5766
|
};
|
|
5767
5767
|
return e.patch(n, f), e.applyData(n, f);
|
|
5768
5768
|
}
|
|
5769
|
-
function
|
|
5769
|
+
function Vs(e, n) {
|
|
5770
5770
|
const t = {
|
|
5771
5771
|
type: "element",
|
|
5772
5772
|
tagName: "td",
|
|
@@ -5777,7 +5777,7 @@ function Hs(e, n) {
|
|
|
5777
5777
|
return e.patch(n, t), e.applyData(n, t);
|
|
5778
5778
|
}
|
|
5779
5779
|
const ir = 9, lr = 32;
|
|
5780
|
-
function
|
|
5780
|
+
function qs(e) {
|
|
5781
5781
|
const n = String(e), t = /\r?\n|\r/g;
|
|
5782
5782
|
let r = t.exec(n), i = 0;
|
|
5783
5783
|
const o = [];
|
|
@@ -5803,10 +5803,10 @@ function or(e, n, t) {
|
|
|
5803
5803
|
return i > r ? e.slice(r, i) : "";
|
|
5804
5804
|
}
|
|
5805
5805
|
function Us(e, n) {
|
|
5806
|
-
const t = { type: "text", value:
|
|
5806
|
+
const t = { type: "text", value: qs(String(n.value)) };
|
|
5807
5807
|
return e.patch(n, t), e.applyData(n, t);
|
|
5808
5808
|
}
|
|
5809
|
-
function
|
|
5809
|
+
function Ws(e, n) {
|
|
5810
5810
|
const t = {
|
|
5811
5811
|
type: "element",
|
|
5812
5812
|
tagName: "hr",
|
|
@@ -5815,31 +5815,31 @@ function qs(e, n) {
|
|
|
5815
5815
|
};
|
|
5816
5816
|
return e.patch(n, t), e.applyData(n, t);
|
|
5817
5817
|
}
|
|
5818
|
-
const
|
|
5819
|
-
blockquote:
|
|
5820
|
-
break:
|
|
5821
|
-
code:
|
|
5822
|
-
delete:
|
|
5823
|
-
emphasis:
|
|
5824
|
-
footnoteReference:
|
|
5825
|
-
heading:
|
|
5826
|
-
html:
|
|
5827
|
-
imageReference:
|
|
5828
|
-
image:
|
|
5829
|
-
inlineCode:
|
|
5830
|
-
linkReference:
|
|
5831
|
-
link:
|
|
5832
|
-
listItem:
|
|
5833
|
-
list:
|
|
5834
|
-
paragraph:
|
|
5818
|
+
const Ys = {
|
|
5819
|
+
blockquote: Cs,
|
|
5820
|
+
break: Ss,
|
|
5821
|
+
code: vs,
|
|
5822
|
+
delete: _s,
|
|
5823
|
+
emphasis: Es,
|
|
5824
|
+
footnoteReference: As,
|
|
5825
|
+
heading: Is,
|
|
5826
|
+
html: Ts,
|
|
5827
|
+
imageReference: zs,
|
|
5828
|
+
image: Ps,
|
|
5829
|
+
inlineCode: Ls,
|
|
5830
|
+
linkReference: Ds,
|
|
5831
|
+
link: Ns,
|
|
5832
|
+
listItem: Rs,
|
|
5833
|
+
list: Fs,
|
|
5834
|
+
paragraph: Os,
|
|
5835
5835
|
// @ts-expect-error: root is different, but hard to type.
|
|
5836
|
-
root:
|
|
5837
|
-
strong:
|
|
5838
|
-
table:
|
|
5839
|
-
tableCell:
|
|
5840
|
-
tableRow:
|
|
5836
|
+
root: Bs,
|
|
5837
|
+
strong: js,
|
|
5838
|
+
table: $s,
|
|
5839
|
+
tableCell: Vs,
|
|
5840
|
+
tableRow: Hs,
|
|
5841
5841
|
text: Us,
|
|
5842
|
-
thematicBreak:
|
|
5842
|
+
thematicBreak: Ws,
|
|
5843
5843
|
toml: mt,
|
|
5844
5844
|
yaml: mt,
|
|
5845
5845
|
definition: mt,
|
|
@@ -5858,7 +5858,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5858
5858
|
throw new TypeError("unable to deserialize " + e);
|
|
5859
5859
|
}
|
|
5860
5860
|
return new di[e](n);
|
|
5861
|
-
},
|
|
5861
|
+
}, Qs = (e, n) => {
|
|
5862
5862
|
const t = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
5863
5863
|
if (e.has(i))
|
|
5864
5864
|
return e.get(i);
|
|
@@ -5918,11 +5918,11 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5918
5918
|
return t(ar(o, l), i);
|
|
5919
5919
|
};
|
|
5920
5920
|
return r;
|
|
5921
|
-
}, sr = (e) =>
|
|
5921
|
+
}, sr = (e) => Qs(/* @__PURE__ */ new Map(), e)(0), Re = "", { toString: Xs } = {}, { keys: Gs } = Object, tt = (e) => {
|
|
5922
5922
|
const n = typeof e;
|
|
5923
5923
|
if (n !== "object" || !e)
|
|
5924
5924
|
return [zt, n];
|
|
5925
|
-
const t =
|
|
5925
|
+
const t = Xs.call(e).slice(8, -1);
|
|
5926
5926
|
switch (t) {
|
|
5927
5927
|
case "Array":
|
|
5928
5928
|
return [at, Re];
|
|
@@ -5940,7 +5940,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5940
5940
|
return [at, t];
|
|
5941
5941
|
}
|
|
5942
5942
|
return t.includes("Array") ? [at, t] : e instanceof Error ? [pi, e.name || "Error"] : [_t, t];
|
|
5943
|
-
}, gt = ([e, n]) => e === zt && (n === "function" || n === "symbol"),
|
|
5943
|
+
}, gt = ([e, n]) => e === zt && (n === "function" || n === "symbol"), Js = (e, n, t, r) => {
|
|
5944
5944
|
const i = (l, a) => {
|
|
5945
5945
|
const s = r.push(l) - 1;
|
|
5946
5946
|
return t.set(a, s), s;
|
|
@@ -5989,7 +5989,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5989
5989
|
if (n && "toJSON" in l)
|
|
5990
5990
|
return o(l.toJSON());
|
|
5991
5991
|
const f = [], c = i([a, f], l);
|
|
5992
|
-
for (const h of
|
|
5992
|
+
for (const h of Gs(l))
|
|
5993
5993
|
(e || !gt(tt(l[h]))) && f.push([o(h), o(l[h])]);
|
|
5994
5994
|
return c;
|
|
5995
5995
|
}
|
|
@@ -6018,12 +6018,12 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
6018
6018
|
return o;
|
|
6019
6019
|
}, ur = (e, { json: n, lossy: t } = {}) => {
|
|
6020
6020
|
const r = [];
|
|
6021
|
-
return
|
|
6021
|
+
return Js(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
|
6022
6022
|
}, Et = typeof structuredClone == "function" ? (
|
|
6023
6023
|
/* c8 ignore start */
|
|
6024
6024
|
(e, n) => n && ("json" in n || "lossy" in n) ? sr(ur(e, n)) : structuredClone(e)
|
|
6025
6025
|
) : (e, n) => sr(ur(e, n));
|
|
6026
|
-
function
|
|
6026
|
+
function Ks(e, n) {
|
|
6027
6027
|
const t = [{ type: "text", value: "↩" }];
|
|
6028
6028
|
return n > 1 && t.push({
|
|
6029
6029
|
type: "element",
|
|
@@ -6032,11 +6032,11 @@ function Js(e, n) {
|
|
|
6032
6032
|
children: [{ type: "text", value: String(n) }]
|
|
6033
6033
|
}), t;
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6035
|
+
function Zs(e, n) {
|
|
6036
6036
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
|
6037
6037
|
}
|
|
6038
|
-
function
|
|
6039
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
|
6038
|
+
function eu(e) {
|
|
6039
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Ks, r = e.options.footnoteBackLabel || Zs, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
|
|
6040
6040
|
className: ["sr-only"]
|
|
6041
6041
|
}, a = [];
|
|
6042
6042
|
let s = -1;
|
|
@@ -6123,24 +6123,24 @@ const Pt = (
|
|
|
6123
6123
|
*/
|
|
6124
6124
|
(function(e) {
|
|
6125
6125
|
if (e == null)
|
|
6126
|
-
return
|
|
6126
|
+
return iu;
|
|
6127
6127
|
if (typeof e == "function")
|
|
6128
6128
|
return Lt(e);
|
|
6129
6129
|
if (typeof e == "object")
|
|
6130
|
-
return Array.isArray(e) ?
|
|
6130
|
+
return Array.isArray(e) ? tu(e) : (
|
|
6131
6131
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
6132
6132
|
// narrows to `Array`.
|
|
6133
|
-
|
|
6133
|
+
nu(
|
|
6134
6134
|
/** @type {Props} */
|
|
6135
6135
|
e
|
|
6136
6136
|
)
|
|
6137
6137
|
);
|
|
6138
6138
|
if (typeof e == "string")
|
|
6139
|
-
return
|
|
6139
|
+
return ru(e);
|
|
6140
6140
|
throw new Error("Expected function, string, or object as test");
|
|
6141
6141
|
})
|
|
6142
6142
|
);
|
|
6143
|
-
function
|
|
6143
|
+
function tu(e) {
|
|
6144
6144
|
const n = [];
|
|
6145
6145
|
let t = -1;
|
|
6146
6146
|
for (; ++t < e.length; )
|
|
@@ -6153,7 +6153,7 @@ function eu(e) {
|
|
|
6153
6153
|
return !1;
|
|
6154
6154
|
}
|
|
6155
6155
|
}
|
|
6156
|
-
function
|
|
6156
|
+
function nu(e) {
|
|
6157
6157
|
const n = (
|
|
6158
6158
|
/** @type {Record<string, unknown>} */
|
|
6159
6159
|
e
|
|
@@ -6171,7 +6171,7 @@ function tu(e) {
|
|
|
6171
6171
|
return !0;
|
|
6172
6172
|
}
|
|
6173
6173
|
}
|
|
6174
|
-
function
|
|
6174
|
+
function ru(e) {
|
|
6175
6175
|
return Lt(n);
|
|
6176
6176
|
function n(t) {
|
|
6177
6177
|
return t && t.type === e;
|
|
@@ -6180,7 +6180,7 @@ function nu(e) {
|
|
|
6180
6180
|
function Lt(e) {
|
|
6181
6181
|
return n;
|
|
6182
6182
|
function n(t, r, i) {
|
|
6183
|
-
return !!(
|
|
6183
|
+
return !!(lu(t) && e.call(
|
|
6184
6184
|
this,
|
|
6185
6185
|
t,
|
|
6186
6186
|
typeof r == "number" ? r : void 0,
|
|
@@ -6188,13 +6188,13 @@ function Lt(e) {
|
|
|
6188
6188
|
));
|
|
6189
6189
|
}
|
|
6190
6190
|
}
|
|
6191
|
-
function
|
|
6191
|
+
function iu() {
|
|
6192
6192
|
return !0;
|
|
6193
6193
|
}
|
|
6194
|
-
function
|
|
6194
|
+
function lu(e) {
|
|
6195
6195
|
return e !== null && typeof e == "object" && "type" in e;
|
|
6196
6196
|
}
|
|
6197
|
-
const mi = [],
|
|
6197
|
+
const mi = [], ou = !0, nn = !1, au = "skip";
|
|
6198
6198
|
function gi(e, n, t, r) {
|
|
6199
6199
|
let i;
|
|
6200
6200
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
|
@@ -6220,14 +6220,14 @@ function gi(e, n, t, r) {
|
|
|
6220
6220
|
return h;
|
|
6221
6221
|
function h() {
|
|
6222
6222
|
let p = mi, g, C, S;
|
|
6223
|
-
if ((!n || o(s, u, f[f.length - 1] || void 0)) && (p =
|
|
6223
|
+
if ((!n || o(s, u, f[f.length - 1] || void 0)) && (p = su(t(s, f)), p[0] === nn))
|
|
6224
6224
|
return p;
|
|
6225
6225
|
if ("children" in s && s.children) {
|
|
6226
6226
|
const y = (
|
|
6227
6227
|
/** @type {UnistParent} */
|
|
6228
6228
|
s
|
|
6229
6229
|
);
|
|
6230
|
-
if (y.children && p[0] !==
|
|
6230
|
+
if (y.children && p[0] !== au)
|
|
6231
6231
|
for (C = (r ? y.children.length : -1) + l, S = f.concat(y); C > -1 && C < y.children.length; ) {
|
|
6232
6232
|
const A = y.children[C];
|
|
6233
6233
|
if (g = a(A, C, S)(), g[0] === nn)
|
|
@@ -6239,8 +6239,8 @@ function gi(e, n, t, r) {
|
|
|
6239
6239
|
}
|
|
6240
6240
|
}
|
|
6241
6241
|
}
|
|
6242
|
-
function
|
|
6243
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
6242
|
+
function su(e) {
|
|
6243
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [ou, e] : e == null ? mi : [e];
|
|
6244
6244
|
}
|
|
6245
6245
|
function vn(e, n, t, r) {
|
|
6246
6246
|
let i, o, l;
|
|
@@ -6250,11 +6250,11 @@ function vn(e, n, t, r) {
|
|
|
6250
6250
|
return l(s, c, f);
|
|
6251
6251
|
}
|
|
6252
6252
|
}
|
|
6253
|
-
const rn = {}.hasOwnProperty,
|
|
6254
|
-
function
|
|
6255
|
-
const t = n ||
|
|
6253
|
+
const rn = {}.hasOwnProperty, uu = {};
|
|
6254
|
+
function cu(e, n) {
|
|
6255
|
+
const t = n || uu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...Ys, ...t.handlers }, a = {
|
|
6256
6256
|
all: u,
|
|
6257
|
-
applyData:
|
|
6257
|
+
applyData: pu,
|
|
6258
6258
|
definitionById: r,
|
|
6259
6259
|
footnoteById: i,
|
|
6260
6260
|
footnoteCounts: o,
|
|
@@ -6262,8 +6262,8 @@ function uu(e, n) {
|
|
|
6262
6262
|
handlers: l,
|
|
6263
6263
|
one: s,
|
|
6264
6264
|
options: t,
|
|
6265
|
-
patch:
|
|
6266
|
-
wrap:
|
|
6265
|
+
patch: fu,
|
|
6266
|
+
wrap: du
|
|
6267
6267
|
};
|
|
6268
6268
|
return vn(e, function(f) {
|
|
6269
6269
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
@@ -6282,7 +6282,7 @@ function uu(e, n) {
|
|
|
6282
6282
|
}
|
|
6283
6283
|
return Et(f);
|
|
6284
6284
|
}
|
|
6285
|
-
return (a.options.unknownHandler ||
|
|
6285
|
+
return (a.options.unknownHandler || hu)(a, f, c);
|
|
6286
6286
|
}
|
|
6287
6287
|
function u(f) {
|
|
6288
6288
|
const c = [];
|
|
@@ -6303,10 +6303,10 @@ function uu(e, n) {
|
|
|
6303
6303
|
return c;
|
|
6304
6304
|
}
|
|
6305
6305
|
}
|
|
6306
|
-
function cu(e, n) {
|
|
6307
|
-
e.position && (n.position = Jl(e));
|
|
6308
|
-
}
|
|
6309
6306
|
function fu(e, n) {
|
|
6307
|
+
e.position && (n.position = Kl(e));
|
|
6308
|
+
}
|
|
6309
|
+
function pu(e, n) {
|
|
6310
6310
|
let t = n;
|
|
6311
6311
|
if (e && e.data) {
|
|
6312
6312
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -6321,7 +6321,7 @@ function fu(e, n) {
|
|
|
6321
6321
|
}
|
|
6322
6322
|
return t;
|
|
6323
6323
|
}
|
|
6324
|
-
function
|
|
6324
|
+
function hu(e, n) {
|
|
6325
6325
|
const t = n.data || {}, r = "value" in n && !(rn.call(t, "hProperties") || rn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
|
|
6326
6326
|
type: "element",
|
|
6327
6327
|
tagName: "div",
|
|
@@ -6330,7 +6330,7 @@ function pu(e, n) {
|
|
|
6330
6330
|
};
|
|
6331
6331
|
return e.patch(n, r), e.applyData(n, r);
|
|
6332
6332
|
}
|
|
6333
|
-
function
|
|
6333
|
+
function du(e, n) {
|
|
6334
6334
|
const t = [];
|
|
6335
6335
|
let r = -1;
|
|
6336
6336
|
for (n && t.push({ type: "text", value: `
|
|
@@ -6347,11 +6347,11 @@ function cr(e) {
|
|
|
6347
6347
|
return e.slice(n);
|
|
6348
6348
|
}
|
|
6349
6349
|
function fr(e, n) {
|
|
6350
|
-
const t =
|
|
6350
|
+
const t = cu(e, n), r = t.one(e, void 0), i = eu(t), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
6351
6351
|
return i && o.children.push({ type: "text", value: `
|
|
6352
6352
|
` }, i), o;
|
|
6353
6353
|
}
|
|
6354
|
-
function
|
|
6354
|
+
function mu(e, n) {
|
|
6355
6355
|
return e && "run" in e ? async function(t, r) {
|
|
6356
6356
|
const i = (
|
|
6357
6357
|
/** @type {HastRoot} */
|
|
@@ -6370,7 +6370,7 @@ function pr(e) {
|
|
|
6370
6370
|
throw e;
|
|
6371
6371
|
}
|
|
6372
6372
|
var Ot, hr;
|
|
6373
|
-
function
|
|
6373
|
+
function gu() {
|
|
6374
6374
|
if (hr) return Ot;
|
|
6375
6375
|
hr = 1;
|
|
6376
6376
|
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
@@ -6409,15 +6409,15 @@ function mu() {
|
|
|
6409
6409
|
return C;
|
|
6410
6410
|
}, Ot;
|
|
6411
6411
|
}
|
|
6412
|
-
var
|
|
6413
|
-
const Bt = /* @__PURE__ */ Hr(
|
|
6412
|
+
var yu = gu();
|
|
6413
|
+
const Bt = /* @__PURE__ */ Hr(yu);
|
|
6414
6414
|
function ln(e) {
|
|
6415
6415
|
if (typeof e != "object" || e === null)
|
|
6416
6416
|
return !1;
|
|
6417
6417
|
const n = Object.getPrototypeOf(e);
|
|
6418
6418
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
6419
6419
|
}
|
|
6420
|
-
function
|
|
6420
|
+
function ku() {
|
|
6421
6421
|
const e = [], n = { run: t, use: r };
|
|
6422
6422
|
return n;
|
|
6423
6423
|
function t(...i) {
|
|
@@ -6435,7 +6435,7 @@ function yu() {
|
|
|
6435
6435
|
}
|
|
6436
6436
|
for (; ++c < i.length; )
|
|
6437
6437
|
(u[c] === null || u[c] === void 0) && (u[c] = i[c]);
|
|
6438
|
-
i = u, f ?
|
|
6438
|
+
i = u, f ? xu(f, a)(...u) : l(null, ...u);
|
|
6439
6439
|
}
|
|
6440
6440
|
}
|
|
6441
6441
|
function r(i) {
|
|
@@ -6446,7 +6446,7 @@ function yu() {
|
|
|
6446
6446
|
return e.push(i), n;
|
|
6447
6447
|
}
|
|
6448
6448
|
}
|
|
6449
|
-
function
|
|
6449
|
+
function xu(e, n) {
|
|
6450
6450
|
let t;
|
|
6451
6451
|
return r;
|
|
6452
6452
|
function r(...l) {
|
|
@@ -6473,8 +6473,8 @@ function ku(e, n) {
|
|
|
6473
6473
|
i(null, l);
|
|
6474
6474
|
}
|
|
6475
6475
|
}
|
|
6476
|
-
const be = { basename:
|
|
6477
|
-
function
|
|
6476
|
+
const be = { basename: bu, dirname: wu, extname: Cu, join: Su, sep: "/" };
|
|
6477
|
+
function bu(e, n) {
|
|
6478
6478
|
if (n !== void 0 && typeof n != "string")
|
|
6479
6479
|
throw new TypeError('"ext" argument must be a string');
|
|
6480
6480
|
pt(e);
|
|
@@ -6502,7 +6502,7 @@ function xu(e, n) {
|
|
|
6502
6502
|
l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
|
|
6503
6503
|
return t === r ? r = l : r < 0 && (r = e.length), e.slice(t, r);
|
|
6504
6504
|
}
|
|
6505
|
-
function
|
|
6505
|
+
function wu(e) {
|
|
6506
6506
|
if (pt(e), e.length === 0)
|
|
6507
6507
|
return ".";
|
|
6508
6508
|
let n = -1, t = e.length, r;
|
|
@@ -6515,7 +6515,7 @@ function bu(e) {
|
|
|
6515
6515
|
} else r || (r = !0);
|
|
6516
6516
|
return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
|
|
6517
6517
|
}
|
|
6518
|
-
function
|
|
6518
|
+
function Cu(e) {
|
|
6519
6519
|
pt(e);
|
|
6520
6520
|
let n = e.length, t = -1, r = 0, i = -1, o = 0, l;
|
|
6521
6521
|
for (; n--; ) {
|
|
@@ -6533,19 +6533,19 @@ function wu(e) {
|
|
|
6533
6533
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
6534
6534
|
o === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
|
|
6535
6535
|
}
|
|
6536
|
-
function
|
|
6536
|
+
function Su(...e) {
|
|
6537
6537
|
let n = -1, t;
|
|
6538
6538
|
for (; ++n < e.length; )
|
|
6539
6539
|
pt(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
|
|
6540
|
-
return t === void 0 ? "." :
|
|
6540
|
+
return t === void 0 ? "." : vu(t);
|
|
6541
6541
|
}
|
|
6542
|
-
function
|
|
6542
|
+
function vu(e) {
|
|
6543
6543
|
pt(e);
|
|
6544
6544
|
const n = e.codePointAt(0) === 47;
|
|
6545
|
-
let t =
|
|
6545
|
+
let t = _u(e, !n);
|
|
6546
6546
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
|
6547
6547
|
}
|
|
6548
|
-
function
|
|
6548
|
+
function _u(e, n) {
|
|
6549
6549
|
let t = "", r = 0, i = -1, o = 0, l = -1, a, s;
|
|
6550
6550
|
for (; ++l <= e.length; ) {
|
|
6551
6551
|
if (l < e.length)
|
|
@@ -6582,15 +6582,15 @@ function pt(e) {
|
|
|
6582
6582
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
6583
6583
|
);
|
|
6584
6584
|
}
|
|
6585
|
-
const
|
|
6586
|
-
function
|
|
6585
|
+
const Eu = { cwd: Au };
|
|
6586
|
+
function Au() {
|
|
6587
6587
|
return "/";
|
|
6588
6588
|
}
|
|
6589
6589
|
function on(e) {
|
|
6590
6590
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
6591
6591
|
e.auth === void 0);
|
|
6592
6592
|
}
|
|
6593
|
-
function
|
|
6593
|
+
function Iu(e) {
|
|
6594
6594
|
if (typeof e == "string")
|
|
6595
6595
|
e = new URL(e);
|
|
6596
6596
|
else if (!on(e)) {
|
|
@@ -6603,9 +6603,9 @@ function Au(e) {
|
|
|
6603
6603
|
const n = new TypeError("The URL must be of scheme file");
|
|
6604
6604
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
|
6605
6605
|
}
|
|
6606
|
-
return
|
|
6606
|
+
return Tu(e);
|
|
6607
6607
|
}
|
|
6608
|
-
function
|
|
6608
|
+
function Tu(e) {
|
|
6609
6609
|
if (e.hostname !== "") {
|
|
6610
6610
|
const r = new TypeError(
|
|
6611
6611
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -6662,7 +6662,7 @@ class yi {
|
|
|
6662
6662
|
*/
|
|
6663
6663
|
constructor(n) {
|
|
6664
6664
|
let t;
|
|
6665
|
-
n ? on(n) ? t = { path: n } : typeof n == "string" ||
|
|
6665
|
+
n ? on(n) ? t = { path: n } : typeof n == "string" || zu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Eu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
6666
6666
|
let r = -1;
|
|
6667
6667
|
for (; ++r < jt.length; ) {
|
|
6668
6668
|
const o = jt[r];
|
|
@@ -6770,7 +6770,7 @@ class yi {
|
|
|
6770
6770
|
* Nothing.
|
|
6771
6771
|
*/
|
|
6772
6772
|
set path(n) {
|
|
6773
|
-
on(n) && (n =
|
|
6773
|
+
on(n) && (n = Iu(n)), Ht(n, "path"), this.path !== n && this.history.push(n);
|
|
6774
6774
|
}
|
|
6775
6775
|
/**
|
|
6776
6776
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -7021,10 +7021,10 @@ function dr(e, n) {
|
|
|
7021
7021
|
if (!e)
|
|
7022
7022
|
throw new Error("Setting `" + n + "` requires `path` to be set too");
|
|
7023
7023
|
}
|
|
7024
|
-
function
|
|
7024
|
+
function zu(e) {
|
|
7025
7025
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
7026
7026
|
}
|
|
7027
|
-
const
|
|
7027
|
+
const Pu = (
|
|
7028
7028
|
/**
|
|
7029
7029
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
7030
7030
|
*/
|
|
@@ -7045,13 +7045,13 @@ const zu = (
|
|
|
7045
7045
|
};
|
|
7046
7046
|
return Object.setPrototypeOf(o, r), o;
|
|
7047
7047
|
})
|
|
7048
|
-
),
|
|
7049
|
-
class _n extends
|
|
7048
|
+
), Lu = {}.hasOwnProperty;
|
|
7049
|
+
class _n extends Pu {
|
|
7050
7050
|
/**
|
|
7051
7051
|
* Create a processor.
|
|
7052
7052
|
*/
|
|
7053
7053
|
constructor() {
|
|
7054
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
7054
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = ku();
|
|
7055
7055
|
}
|
|
7056
7056
|
/**
|
|
7057
7057
|
* Copy a processor.
|
|
@@ -7136,7 +7136,7 @@ class _n extends zu {
|
|
|
7136
7136
|
* the entire dataset when getting without key.
|
|
7137
7137
|
*/
|
|
7138
7138
|
data(n, t) {
|
|
7139
|
-
return typeof n == "string" ? arguments.length === 2 ? (
|
|
7139
|
+
return typeof n == "string" ? arguments.length === 2 ? (Ut("data", this.frozen), this.namespace[n] = t, this) : Lu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (Ut("data", this.frozen), this.namespace = n, this) : this.namespace;
|
|
7140
7140
|
}
|
|
7141
7141
|
/**
|
|
7142
7142
|
* Freeze a processor.
|
|
@@ -7236,7 +7236,7 @@ class _n extends zu {
|
|
|
7236
7236
|
*/
|
|
7237
7237
|
process(n, t) {
|
|
7238
7238
|
const r = this;
|
|
7239
|
-
return this.freeze(), Vt("process", this.parser || this.Parser),
|
|
7239
|
+
return this.freeze(), Vt("process", this.parser || this.Parser), qt("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
|
|
7240
7240
|
function i(o, l) {
|
|
7241
7241
|
const a = yt(n), s = (
|
|
7242
7242
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -7251,7 +7251,7 @@ class _n extends zu {
|
|
|
7251
7251
|
/** @type {unknown} */
|
|
7252
7252
|
c
|
|
7253
7253
|
), g = r.stringify(p, h);
|
|
7254
|
-
|
|
7254
|
+
Ru(g) ? h.value = g : h.result = g, u(
|
|
7255
7255
|
f,
|
|
7256
7256
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
7257
7257
|
h
|
|
@@ -7295,7 +7295,7 @@ class _n extends zu {
|
|
|
7295
7295
|
*/
|
|
7296
7296
|
processSync(n) {
|
|
7297
7297
|
let t = !1, r;
|
|
7298
|
-
return this.freeze(), Vt("processSync", this.parser || this.Parser),
|
|
7298
|
+
return this.freeze(), Vt("processSync", this.parser || this.Parser), qt("processSync", this.compiler || this.Compiler), this.process(n, i), gr("processSync", "process", t), r;
|
|
7299
7299
|
function i(o, l) {
|
|
7300
7300
|
t = !0, pr(o), r = l;
|
|
7301
7301
|
}
|
|
@@ -7410,7 +7410,7 @@ class _n extends zu {
|
|
|
7410
7410
|
stringify(n, t) {
|
|
7411
7411
|
this.freeze();
|
|
7412
7412
|
const r = yt(t), i = this.compiler || this.Compiler;
|
|
7413
|
-
return
|
|
7413
|
+
return qt("stringify", i), mr(n), i(n, r);
|
|
7414
7414
|
}
|
|
7415
7415
|
/**
|
|
7416
7416
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -7471,7 +7471,7 @@ class _n extends zu {
|
|
|
7471
7471
|
*/
|
|
7472
7472
|
use(n, ...t) {
|
|
7473
7473
|
const r = this.attachers, i = this.namespace;
|
|
7474
|
-
if (
|
|
7474
|
+
if (Ut("use", this.frozen), n != null) if (typeof n == "function")
|
|
7475
7475
|
s(n, t);
|
|
7476
7476
|
else if (typeof n == "object")
|
|
7477
7477
|
Array.isArray(n) ? a(n) : l(n);
|
|
@@ -7527,16 +7527,16 @@ class _n extends zu {
|
|
|
7527
7527
|
}
|
|
7528
7528
|
}
|
|
7529
7529
|
}
|
|
7530
|
-
const
|
|
7530
|
+
const Du = new _n().freeze();
|
|
7531
7531
|
function Vt(e, n) {
|
|
7532
7532
|
if (typeof n != "function")
|
|
7533
7533
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
7534
7534
|
}
|
|
7535
|
-
function
|
|
7535
|
+
function qt(e, n) {
|
|
7536
7536
|
if (typeof n != "function")
|
|
7537
7537
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
7538
7538
|
}
|
|
7539
|
-
function
|
|
7539
|
+
function Ut(e, n) {
|
|
7540
7540
|
if (n)
|
|
7541
7541
|
throw new Error(
|
|
7542
7542
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
@@ -7553,18 +7553,18 @@ function gr(e, n, t) {
|
|
|
7553
7553
|
);
|
|
7554
7554
|
}
|
|
7555
7555
|
function yt(e) {
|
|
7556
|
-
return
|
|
7557
|
-
}
|
|
7558
|
-
function Du(e) {
|
|
7559
|
-
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
7556
|
+
return Nu(e) ? e : new yi(e);
|
|
7560
7557
|
}
|
|
7561
7558
|
function Nu(e) {
|
|
7562
|
-
return typeof e == "
|
|
7559
|
+
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
7563
7560
|
}
|
|
7564
7561
|
function Ru(e) {
|
|
7562
|
+
return typeof e == "string" || Mu(e);
|
|
7563
|
+
}
|
|
7564
|
+
function Mu(e) {
|
|
7565
7565
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
7566
7566
|
}
|
|
7567
|
-
const
|
|
7567
|
+
const Fu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", yr = [], kr = { allowDangerousHtml: !0 }, Ou = /^(https?|ircs?|mailto|xmpp)$/i, Bu = [
|
|
7568
7568
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
7569
7569
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
7570
7570
|
{
|
|
@@ -7598,23 +7598,23 @@ const Mu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
7598
7598
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
7599
7599
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
7600
7600
|
];
|
|
7601
|
-
function Bu(e) {
|
|
7602
|
-
const n = ju(e), t = $u(e);
|
|
7603
|
-
return Hu(n.runSync(n.parse(t), t), e);
|
|
7604
|
-
}
|
|
7605
7601
|
function ju(e) {
|
|
7606
|
-
const n = e
|
|
7607
|
-
return
|
|
7602
|
+
const n = $u(e), t = Hu(e);
|
|
7603
|
+
return Vu(n.runSync(n.parse(t), t), e);
|
|
7608
7604
|
}
|
|
7609
7605
|
function $u(e) {
|
|
7606
|
+
const n = e.rehypePlugins || yr, t = e.remarkPlugins || yr, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...kr } : kr;
|
|
7607
|
+
return Du().use(ws).use(t).use(mu, r).use(n);
|
|
7608
|
+
}
|
|
7609
|
+
function Hu(e) {
|
|
7610
7610
|
const n = e.children || "", t = new yi();
|
|
7611
7611
|
return typeof n == "string" && (t.value = n), t;
|
|
7612
7612
|
}
|
|
7613
|
-
function
|
|
7614
|
-
const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform ||
|
|
7615
|
-
for (const f of
|
|
7616
|
-
Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") +
|
|
7617
|
-
return vn(e, u),
|
|
7613
|
+
function Vu(e, n) {
|
|
7614
|
+
const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform || qu;
|
|
7615
|
+
for (const f of Bu)
|
|
7616
|
+
Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + Fu + f.id, void 0);
|
|
7617
|
+
return vn(e, u), ro(e, {
|
|
7618
7618
|
Fragment: un,
|
|
7619
7619
|
components: i,
|
|
7620
7620
|
ignoreInvalidStyle: !0,
|
|
@@ -7641,13 +7641,13 @@ function Hu(e, n) {
|
|
|
7641
7641
|
}
|
|
7642
7642
|
}
|
|
7643
7643
|
}
|
|
7644
|
-
function
|
|
7644
|
+
function qu(e) {
|
|
7645
7645
|
const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
7646
7646
|
return (
|
|
7647
7647
|
// If there is no protocol, it’s relative.
|
|
7648
7648
|
n === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
7649
7649
|
i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r || // It is a protocol, it should be allowed.
|
|
7650
|
-
|
|
7650
|
+
Ou.test(e.slice(0, n)) ? e : ""
|
|
7651
7651
|
);
|
|
7652
7652
|
}
|
|
7653
7653
|
function xr(e, n) {
|
|
@@ -7664,8 +7664,8 @@ function Uu(e) {
|
|
|
7664
7664
|
throw new TypeError("Expected a string");
|
|
7665
7665
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
7666
7666
|
}
|
|
7667
|
-
function
|
|
7668
|
-
const i = Pt((t || {}).ignore || []), o =
|
|
7667
|
+
function Wu(e, n, t) {
|
|
7668
|
+
const i = Pt((t || {}).ignore || []), o = Yu(n);
|
|
7669
7669
|
let l = -1;
|
|
7670
7670
|
for (; ++l < o.length; )
|
|
7671
7671
|
gi(e, "text", a);
|
|
@@ -7708,7 +7708,7 @@ function qu(e, n, t) {
|
|
|
7708
7708
|
return y ? (g < u.value.length && A.push({ type: "text", value: u.value.slice(g) }), c.children.splice(S, 1, ...A)) : A = [u], S + A.length;
|
|
7709
7709
|
}
|
|
7710
7710
|
}
|
|
7711
|
-
function
|
|
7711
|
+
function Yu(e) {
|
|
7712
7712
|
const n = [];
|
|
7713
7713
|
if (!Array.isArray(e))
|
|
7714
7714
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -7716,37 +7716,37 @@ function Wu(e) {
|
|
|
7716
7716
|
let r = -1;
|
|
7717
7717
|
for (; ++r < t.length; ) {
|
|
7718
7718
|
const i = t[r];
|
|
7719
|
-
n.push([
|
|
7719
|
+
n.push([Qu(i[0]), Xu(i[1])]);
|
|
7720
7720
|
}
|
|
7721
7721
|
return n;
|
|
7722
7722
|
}
|
|
7723
|
-
function
|
|
7723
|
+
function Qu(e) {
|
|
7724
7724
|
return typeof e == "string" ? new RegExp(Uu(e), "g") : e;
|
|
7725
7725
|
}
|
|
7726
|
-
function
|
|
7726
|
+
function Xu(e) {
|
|
7727
7727
|
return typeof e == "function" ? e : function() {
|
|
7728
7728
|
return e;
|
|
7729
7729
|
};
|
|
7730
7730
|
}
|
|
7731
7731
|
const Wt = "phrasing", Yt = ["autolink", "link", "image", "label"];
|
|
7732
|
-
function
|
|
7732
|
+
function Gu() {
|
|
7733
7733
|
return {
|
|
7734
|
-
transforms: [
|
|
7734
|
+
transforms: [rc],
|
|
7735
7735
|
enter: {
|
|
7736
|
-
literalAutolink:
|
|
7736
|
+
literalAutolink: Ku,
|
|
7737
7737
|
literalAutolinkEmail: Qt,
|
|
7738
7738
|
literalAutolinkHttp: Qt,
|
|
7739
7739
|
literalAutolinkWww: Qt
|
|
7740
7740
|
},
|
|
7741
7741
|
exit: {
|
|
7742
|
-
literalAutolink:
|
|
7743
|
-
literalAutolinkEmail:
|
|
7744
|
-
literalAutolinkHttp:
|
|
7745
|
-
literalAutolinkWww:
|
|
7742
|
+
literalAutolink: nc,
|
|
7743
|
+
literalAutolinkEmail: tc,
|
|
7744
|
+
literalAutolinkHttp: Zu,
|
|
7745
|
+
literalAutolinkWww: ec
|
|
7746
7746
|
}
|
|
7747
7747
|
};
|
|
7748
7748
|
}
|
|
7749
|
-
function
|
|
7749
|
+
function Ju() {
|
|
7750
7750
|
return {
|
|
7751
7751
|
unsafe: [
|
|
7752
7752
|
{
|
|
@@ -7773,41 +7773,41 @@ function Gu() {
|
|
|
7773
7773
|
]
|
|
7774
7774
|
};
|
|
7775
7775
|
}
|
|
7776
|
-
function
|
|
7776
|
+
function Ku(e) {
|
|
7777
7777
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
7778
7778
|
}
|
|
7779
7779
|
function Qt(e) {
|
|
7780
7780
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
7781
7781
|
}
|
|
7782
|
-
function
|
|
7782
|
+
function Zu(e) {
|
|
7783
7783
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
7784
7784
|
}
|
|
7785
|
-
function
|
|
7785
|
+
function ec(e) {
|
|
7786
7786
|
this.config.exit.data.call(this, e);
|
|
7787
7787
|
const n = this.stack[this.stack.length - 1];
|
|
7788
7788
|
n.type, n.url = "http://" + this.sliceSerialize(e);
|
|
7789
7789
|
}
|
|
7790
|
-
function
|
|
7790
|
+
function tc(e) {
|
|
7791
7791
|
this.config.exit.autolinkEmail.call(this, e);
|
|
7792
7792
|
}
|
|
7793
|
-
function
|
|
7793
|
+
function nc(e) {
|
|
7794
7794
|
this.exit(e);
|
|
7795
7795
|
}
|
|
7796
|
-
function
|
|
7797
|
-
|
|
7796
|
+
function rc(e) {
|
|
7797
|
+
Wu(
|
|
7798
7798
|
e,
|
|
7799
7799
|
[
|
|
7800
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
7801
|
-
[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,
|
|
7800
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, ic],
|
|
7801
|
+
[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, lc]
|
|
7802
7802
|
],
|
|
7803
7803
|
{ ignore: ["link", "linkReference"] }
|
|
7804
7804
|
);
|
|
7805
7805
|
}
|
|
7806
|
-
function
|
|
7806
|
+
function ic(e, n, t, r, i) {
|
|
7807
7807
|
let o = "";
|
|
7808
|
-
if (!ki(i) || (/^w/i.test(n) && (t = n + t, n = "", o = "http://"), !
|
|
7808
|
+
if (!ki(i) || (/^w/i.test(n) && (t = n + t, n = "", o = "http://"), !oc(t)))
|
|
7809
7809
|
return !1;
|
|
7810
|
-
const l =
|
|
7810
|
+
const l = ac(t + r);
|
|
7811
7811
|
if (!l[0]) return !1;
|
|
7812
7812
|
const a = {
|
|
7813
7813
|
type: "link",
|
|
@@ -7817,7 +7817,7 @@ function rc(e, n, t, r, i) {
|
|
|
7817
7817
|
};
|
|
7818
7818
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
7819
7819
|
}
|
|
7820
|
-
function
|
|
7820
|
+
function lc(e, n, t, r) {
|
|
7821
7821
|
return (
|
|
7822
7822
|
// Not an expected previous character.
|
|
7823
7823
|
!ki(r, !0) || // Label ends in not allowed character.
|
|
@@ -7829,11 +7829,11 @@ function ic(e, n, t, r) {
|
|
|
7829
7829
|
}
|
|
7830
7830
|
);
|
|
7831
7831
|
}
|
|
7832
|
-
function
|
|
7832
|
+
function oc(e) {
|
|
7833
7833
|
const n = e.split(".");
|
|
7834
7834
|
return !(n.length < 2 || n[n.length - 1] && (/_/.test(n[n.length - 1]) || !/[a-zA-Z\d]/.test(n[n.length - 1])) || n[n.length - 2] && (/_/.test(n[n.length - 2]) || !/[a-zA-Z\d]/.test(n[n.length - 2])));
|
|
7835
7835
|
}
|
|
7836
|
-
function
|
|
7836
|
+
function ac(e) {
|
|
7837
7837
|
const n = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
7838
7838
|
if (!n)
|
|
7839
7839
|
return [e, void 0];
|
|
@@ -7850,41 +7850,41 @@ function ki(e, n) {
|
|
|
7850
7850
|
return (e.index === 0 || Oe(t) || It(t)) && // If it’s an email, the previous character should not be a slash.
|
|
7851
7851
|
(!n || t !== 47);
|
|
7852
7852
|
}
|
|
7853
|
-
xi.peek =
|
|
7854
|
-
function
|
|
7853
|
+
xi.peek = gc;
|
|
7854
|
+
function sc() {
|
|
7855
7855
|
this.buffer();
|
|
7856
7856
|
}
|
|
7857
|
-
function
|
|
7857
|
+
function uc(e) {
|
|
7858
7858
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
7859
7859
|
}
|
|
7860
|
-
function
|
|
7860
|
+
function cc() {
|
|
7861
7861
|
this.buffer();
|
|
7862
7862
|
}
|
|
7863
|
-
function
|
|
7863
|
+
function fc(e) {
|
|
7864
7864
|
this.enter(
|
|
7865
7865
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
7866
7866
|
e
|
|
7867
7867
|
);
|
|
7868
7868
|
}
|
|
7869
|
-
function
|
|
7869
|
+
function pc(e) {
|
|
7870
7870
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7871
7871
|
t.type, t.identifier = ke(
|
|
7872
7872
|
this.sliceSerialize(e)
|
|
7873
7873
|
).toLowerCase(), t.label = n;
|
|
7874
7874
|
}
|
|
7875
|
-
function
|
|
7875
|
+
function hc(e) {
|
|
7876
7876
|
this.exit(e);
|
|
7877
7877
|
}
|
|
7878
|
-
function
|
|
7878
|
+
function dc(e) {
|
|
7879
7879
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7880
7880
|
t.type, t.identifier = ke(
|
|
7881
7881
|
this.sliceSerialize(e)
|
|
7882
7882
|
).toLowerCase(), t.label = n;
|
|
7883
7883
|
}
|
|
7884
|
-
function
|
|
7884
|
+
function mc(e) {
|
|
7885
7885
|
this.exit(e);
|
|
7886
7886
|
}
|
|
7887
|
-
function
|
|
7887
|
+
function gc() {
|
|
7888
7888
|
return "[";
|
|
7889
7889
|
}
|
|
7890
7890
|
function xi(e, n, t, r) {
|
|
@@ -7895,23 +7895,23 @@ function xi(e, n, t, r) {
|
|
|
7895
7895
|
t.safe(t.associationId(e), { after: "]", before: o })
|
|
7896
7896
|
), a(), l(), o += i.move("]"), o;
|
|
7897
7897
|
}
|
|
7898
|
-
function
|
|
7898
|
+
function yc() {
|
|
7899
7899
|
return {
|
|
7900
7900
|
enter: {
|
|
7901
|
-
gfmFootnoteCallString:
|
|
7902
|
-
gfmFootnoteCall:
|
|
7903
|
-
gfmFootnoteDefinitionLabelString:
|
|
7904
|
-
gfmFootnoteDefinition:
|
|
7901
|
+
gfmFootnoteCallString: sc,
|
|
7902
|
+
gfmFootnoteCall: uc,
|
|
7903
|
+
gfmFootnoteDefinitionLabelString: cc,
|
|
7904
|
+
gfmFootnoteDefinition: fc
|
|
7905
7905
|
},
|
|
7906
7906
|
exit: {
|
|
7907
|
-
gfmFootnoteCallString:
|
|
7908
|
-
gfmFootnoteCall:
|
|
7909
|
-
gfmFootnoteDefinitionLabelString:
|
|
7910
|
-
gfmFootnoteDefinition:
|
|
7907
|
+
gfmFootnoteCallString: pc,
|
|
7908
|
+
gfmFootnoteCall: hc,
|
|
7909
|
+
gfmFootnoteDefinitionLabelString: dc,
|
|
7910
|
+
gfmFootnoteDefinition: mc
|
|
7911
7911
|
}
|
|
7912
7912
|
};
|
|
7913
7913
|
}
|
|
7914
|
-
function
|
|
7914
|
+
function kc(e) {
|
|
7915
7915
|
let n = !1;
|
|
7916
7916
|
return e && e.firstLineBlank && (n = !0), {
|
|
7917
7917
|
handlers: { footnoteDefinition: t, footnoteReference: xi },
|
|
@@ -7928,18 +7928,18 @@ function yc(e) {
|
|
|
7928
7928
|
(n ? `
|
|
7929
7929
|
` : " ") + o.indentLines(
|
|
7930
7930
|
o.containerFlow(r, a.current()),
|
|
7931
|
-
n ? bi :
|
|
7931
|
+
n ? bi : xc
|
|
7932
7932
|
)
|
|
7933
7933
|
)), u(), s;
|
|
7934
7934
|
}
|
|
7935
7935
|
}
|
|
7936
|
-
function
|
|
7936
|
+
function xc(e, n, t) {
|
|
7937
7937
|
return n === 0 ? e : bi(e, n, t);
|
|
7938
7938
|
}
|
|
7939
7939
|
function bi(e, n, t) {
|
|
7940
7940
|
return (t ? "" : " ") + e;
|
|
7941
7941
|
}
|
|
7942
|
-
const
|
|
7942
|
+
const bc = [
|
|
7943
7943
|
"autolink",
|
|
7944
7944
|
"destinationLiteral",
|
|
7945
7945
|
"destinationRaw",
|
|
@@ -7947,30 +7947,30 @@ const xc = [
|
|
|
7947
7947
|
"titleQuote",
|
|
7948
7948
|
"titleApostrophe"
|
|
7949
7949
|
];
|
|
7950
|
-
wi.peek =
|
|
7951
|
-
function
|
|
7950
|
+
wi.peek = _c;
|
|
7951
|
+
function wc() {
|
|
7952
7952
|
return {
|
|
7953
7953
|
canContainEols: ["delete"],
|
|
7954
|
-
enter: { strikethrough:
|
|
7955
|
-
exit: { strikethrough:
|
|
7954
|
+
enter: { strikethrough: Sc },
|
|
7955
|
+
exit: { strikethrough: vc }
|
|
7956
7956
|
};
|
|
7957
7957
|
}
|
|
7958
|
-
function
|
|
7958
|
+
function Cc() {
|
|
7959
7959
|
return {
|
|
7960
7960
|
unsafe: [
|
|
7961
7961
|
{
|
|
7962
7962
|
character: "~",
|
|
7963
7963
|
inConstruct: "phrasing",
|
|
7964
|
-
notInConstruct:
|
|
7964
|
+
notInConstruct: bc
|
|
7965
7965
|
}
|
|
7966
7966
|
],
|
|
7967
7967
|
handlers: { delete: wi }
|
|
7968
7968
|
};
|
|
7969
7969
|
}
|
|
7970
|
-
function
|
|
7970
|
+
function Sc(e) {
|
|
7971
7971
|
this.enter({ type: "delete", children: [] }, e);
|
|
7972
7972
|
}
|
|
7973
|
-
function
|
|
7973
|
+
function vc(e) {
|
|
7974
7974
|
this.exit(e);
|
|
7975
7975
|
}
|
|
7976
7976
|
function wi(e, n, t, r) {
|
|
@@ -7982,20 +7982,20 @@ function wi(e, n, t, r) {
|
|
|
7982
7982
|
after: "~"
|
|
7983
7983
|
}), l += i.move("~~"), o(), l;
|
|
7984
7984
|
}
|
|
7985
|
-
function
|
|
7985
|
+
function _c() {
|
|
7986
7986
|
return "~";
|
|
7987
7987
|
}
|
|
7988
|
-
function
|
|
7988
|
+
function Ec(e) {
|
|
7989
7989
|
return e.length;
|
|
7990
7990
|
}
|
|
7991
|
-
function
|
|
7992
|
-
const t = n || {}, r = (t.align || []).concat(), i = t.stringLength ||
|
|
7991
|
+
function Ac(e, n) {
|
|
7992
|
+
const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || Ec, o = [], l = [], a = [], s = [];
|
|
7993
7993
|
let u = 0, f = -1;
|
|
7994
7994
|
for (; ++f < e.length; ) {
|
|
7995
7995
|
const C = [], S = [];
|
|
7996
7996
|
let y = -1;
|
|
7997
7997
|
for (e[f].length > u && (u = e[f].length); ++y < e[f].length; ) {
|
|
7998
|
-
const A =
|
|
7998
|
+
const A = Ic(e[f][y]);
|
|
7999
7999
|
if (t.alignDelimiters !== !1) {
|
|
8000
8000
|
const _ = i(A);
|
|
8001
8001
|
S[y] = _, (s[y] === void 0 || _ > s[y]) && (s[y] = _);
|
|
@@ -8050,26 +8050,26 @@ function Ec(e, n) {
|
|
|
8050
8050
|
return g.join(`
|
|
8051
8051
|
`);
|
|
8052
8052
|
}
|
|
8053
|
-
function
|
|
8053
|
+
function Ic(e) {
|
|
8054
8054
|
return e == null ? "" : String(e);
|
|
8055
8055
|
}
|
|
8056
8056
|
function br(e) {
|
|
8057
8057
|
const n = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
8058
8058
|
return n === 67 || n === 99 ? 99 : n === 76 || n === 108 ? 108 : n === 82 || n === 114 ? 114 : 0;
|
|
8059
8059
|
}
|
|
8060
|
-
function
|
|
8060
|
+
function Tc(e, n, t, r) {
|
|
8061
8061
|
const i = t.enter("blockquote"), o = t.createTracker(r);
|
|
8062
8062
|
o.move("> "), o.shift(2);
|
|
8063
8063
|
const l = t.indentLines(
|
|
8064
8064
|
t.containerFlow(e, o.current()),
|
|
8065
|
-
|
|
8065
|
+
zc
|
|
8066
8066
|
);
|
|
8067
8067
|
return i(), l;
|
|
8068
8068
|
}
|
|
8069
|
-
function
|
|
8069
|
+
function zc(e, n, t) {
|
|
8070
8070
|
return ">" + (t ? "" : " ") + e;
|
|
8071
8071
|
}
|
|
8072
|
-
function
|
|
8072
|
+
function Pc(e, n) {
|
|
8073
8073
|
return wr(e, n.inConstruct, !0) && !wr(e, n.notInConstruct, !1);
|
|
8074
8074
|
}
|
|
8075
8075
|
function wr(e, n, t) {
|
|
@@ -8085,12 +8085,12 @@ function Cr(e, n, t, r) {
|
|
|
8085
8085
|
let i = -1;
|
|
8086
8086
|
for (; ++i < t.unsafe.length; )
|
|
8087
8087
|
if (t.unsafe[i].character === `
|
|
8088
|
-
` &&
|
|
8088
|
+
` && Pc(t.stack, t.unsafe[i]))
|
|
8089
8089
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
8090
8090
|
return `\\
|
|
8091
8091
|
`;
|
|
8092
8092
|
}
|
|
8093
|
-
function
|
|
8093
|
+
function Lc(e, n) {
|
|
8094
8094
|
const t = String(e);
|
|
8095
8095
|
let r = t.indexOf(n), i = r, o = 0, l = 0;
|
|
8096
8096
|
if (typeof n != "string")
|
|
@@ -8099,13 +8099,13 @@ function Pc(e, n) {
|
|
|
8099
8099
|
r === i ? ++o > l && (l = o) : o = 1, i = r + n.length, r = t.indexOf(n, i);
|
|
8100
8100
|
return l;
|
|
8101
8101
|
}
|
|
8102
|
-
function
|
|
8102
|
+
function Dc(e, n) {
|
|
8103
8103
|
return !!(n.options.fences === !1 && e.value && // If there’s no info…
|
|
8104
8104
|
!e.lang && // And there’s a non-whitespace character…
|
|
8105
8105
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
8106
8106
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
8107
8107
|
}
|
|
8108
|
-
function
|
|
8108
|
+
function Nc(e) {
|
|
8109
8109
|
const n = e.options.fence || "`";
|
|
8110
8110
|
if (n !== "`" && n !== "~")
|
|
8111
8111
|
throw new Error(
|
|
@@ -8113,13 +8113,13 @@ function Dc(e) {
|
|
|
8113
8113
|
);
|
|
8114
8114
|
return n;
|
|
8115
8115
|
}
|
|
8116
|
-
function
|
|
8117
|
-
const i =
|
|
8118
|
-
if (
|
|
8119
|
-
const c = t.enter("codeIndented"), h = t.indentLines(o,
|
|
8116
|
+
function Rc(e, n, t, r) {
|
|
8117
|
+
const i = Nc(t), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
8118
|
+
if (Dc(e, t)) {
|
|
8119
|
+
const c = t.enter("codeIndented"), h = t.indentLines(o, Mc);
|
|
8120
8120
|
return c(), h;
|
|
8121
8121
|
}
|
|
8122
|
-
const a = t.createTracker(r), s = i.repeat(Math.max(
|
|
8122
|
+
const a = t.createTracker(r), s = i.repeat(Math.max(Lc(o, i) + 1, 3)), u = t.enter("codeFenced");
|
|
8123
8123
|
let f = a.move(s);
|
|
8124
8124
|
if (e.lang) {
|
|
8125
8125
|
const c = t.enter(`codeFencedLang${l}`);
|
|
@@ -8148,7 +8148,7 @@ function Nc(e, n, t, r) {
|
|
|
8148
8148
|
`), o && (f += a.move(o + `
|
|
8149
8149
|
`)), f += a.move(s), u(), f;
|
|
8150
8150
|
}
|
|
8151
|
-
function
|
|
8151
|
+
function Mc(e, n, t) {
|
|
8152
8152
|
return (t ? "" : " ") + e;
|
|
8153
8153
|
}
|
|
8154
8154
|
function En(e) {
|
|
@@ -8159,7 +8159,7 @@ function En(e) {
|
|
|
8159
8159
|
);
|
|
8160
8160
|
return n;
|
|
8161
8161
|
}
|
|
8162
|
-
function
|
|
8162
|
+
function Fc(e, n, t, r) {
|
|
8163
8163
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.enter("definition");
|
|
8164
8164
|
let a = t.enter("label");
|
|
8165
8165
|
const s = t.createTracker(r);
|
|
@@ -8189,7 +8189,7 @@ function Mc(e, n, t, r) {
|
|
|
8189
8189
|
})
|
|
8190
8190
|
), u += s.move(i), a()), l(), u;
|
|
8191
8191
|
}
|
|
8192
|
-
function
|
|
8192
|
+
function Oc(e) {
|
|
8193
8193
|
const n = e.options.emphasis || "*";
|
|
8194
8194
|
if (n !== "*" && n !== "_")
|
|
8195
8195
|
throw new Error(
|
|
@@ -8233,9 +8233,9 @@ function At(e, n, t) {
|
|
|
8233
8233
|
{ inside: !1, outside: !1 }
|
|
8234
8234
|
);
|
|
8235
8235
|
}
|
|
8236
|
-
Ci.peek =
|
|
8236
|
+
Ci.peek = Bc;
|
|
8237
8237
|
function Ci(e, n, t, r) {
|
|
8238
|
-
const i =
|
|
8238
|
+
const i = Oc(t), o = t.enter("emphasis"), l = t.createTracker(r), a = l.move(i);
|
|
8239
8239
|
let s = l.move(
|
|
8240
8240
|
t.containerPhrasing(e, {
|
|
8241
8241
|
after: i,
|
|
@@ -8257,19 +8257,19 @@ function Ci(e, n, t, r) {
|
|
|
8257
8257
|
before: f.outside
|
|
8258
8258
|
}, a + s + p;
|
|
8259
8259
|
}
|
|
8260
|
-
function
|
|
8260
|
+
function Bc(e, n, t) {
|
|
8261
8261
|
return t.options.emphasis || "*";
|
|
8262
8262
|
}
|
|
8263
|
-
function
|
|
8263
|
+
function jc(e, n) {
|
|
8264
8264
|
let t = !1;
|
|
8265
8265
|
return vn(e, function(r) {
|
|
8266
8266
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
8267
8267
|
return t = !0, nn;
|
|
8268
8268
|
}), !!((!e.depth || e.depth < 3) && yn(e) && (n.options.setext || t));
|
|
8269
8269
|
}
|
|
8270
|
-
function
|
|
8270
|
+
function $c(e, n, t, r) {
|
|
8271
8271
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = t.createTracker(r);
|
|
8272
|
-
if (
|
|
8272
|
+
if (jc(e, t)) {
|
|
8273
8273
|
const f = t.enter("headingSetext"), c = t.enter("phrasing"), h = t.containerPhrasing(e, {
|
|
8274
8274
|
...o.current(),
|
|
8275
8275
|
before: `
|
|
@@ -8296,14 +8296,14 @@ function jc(e, n, t, r) {
|
|
|
8296
8296
|
});
|
|
8297
8297
|
return /^[\t ]/.test(u) && (u = ut(u.charCodeAt(0)) + u.slice(1)), u = u ? l + " " + u : l, t.options.closeAtx && (u += " " + l), s(), a(), u;
|
|
8298
8298
|
}
|
|
8299
|
-
Si.peek =
|
|
8299
|
+
Si.peek = Hc;
|
|
8300
8300
|
function Si(e) {
|
|
8301
8301
|
return e.value || "";
|
|
8302
8302
|
}
|
|
8303
|
-
function
|
|
8303
|
+
function Hc() {
|
|
8304
8304
|
return "<";
|
|
8305
8305
|
}
|
|
8306
|
-
vi.peek =
|
|
8306
|
+
vi.peek = Vc;
|
|
8307
8307
|
function vi(e, n, t, r) {
|
|
8308
8308
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.enter("image");
|
|
8309
8309
|
let a = t.enter("label");
|
|
@@ -8329,10 +8329,10 @@ function vi(e, n, t, r) {
|
|
|
8329
8329
|
})
|
|
8330
8330
|
), u += s.move(i), a()), u += s.move(")"), l(), u;
|
|
8331
8331
|
}
|
|
8332
|
-
function
|
|
8332
|
+
function Vc() {
|
|
8333
8333
|
return "!";
|
|
8334
8334
|
}
|
|
8335
|
-
_i.peek =
|
|
8335
|
+
_i.peek = qc;
|
|
8336
8336
|
function _i(e, n, t, r) {
|
|
8337
8337
|
const i = e.referenceType, o = t.enter("imageReference");
|
|
8338
8338
|
let l = t.enter("label");
|
|
@@ -8353,7 +8353,7 @@ function _i(e, n, t, r) {
|
|
|
8353
8353
|
});
|
|
8354
8354
|
return l(), t.stack = f, o(), i === "full" || !u || u !== c ? s += a.move(c + "]") : i === "shortcut" ? s = s.slice(0, -1) : s += a.move("]"), s;
|
|
8355
8355
|
}
|
|
8356
|
-
function
|
|
8356
|
+
function qc() {
|
|
8357
8357
|
return "!";
|
|
8358
8358
|
}
|
|
8359
8359
|
Ei.peek = Uc;
|
|
@@ -8386,7 +8386,7 @@ function Ai(e, n) {
|
|
|
8386
8386
|
// references don’t work), space, or angle brackets…
|
|
8387
8387
|
!/[\0- <>\u007F]/.test(e.url));
|
|
8388
8388
|
}
|
|
8389
|
-
Ii.peek =
|
|
8389
|
+
Ii.peek = Wc;
|
|
8390
8390
|
function Ii(e, n, t, r) {
|
|
8391
8391
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.createTracker(r);
|
|
8392
8392
|
let a, s;
|
|
@@ -8428,10 +8428,10 @@ function Ii(e, n, t, r) {
|
|
|
8428
8428
|
})
|
|
8429
8429
|
), u += l.move(i), s()), u += l.move(")"), a(), u;
|
|
8430
8430
|
}
|
|
8431
|
-
function
|
|
8431
|
+
function Wc(e, n, t) {
|
|
8432
8432
|
return Ai(e, t) ? "<" : "[";
|
|
8433
8433
|
}
|
|
8434
|
-
Ti.peek =
|
|
8434
|
+
Ti.peek = Yc;
|
|
8435
8435
|
function Ti(e, n, t, r) {
|
|
8436
8436
|
const i = e.referenceType, o = t.enter("linkReference");
|
|
8437
8437
|
let l = t.enter("label");
|
|
@@ -8452,7 +8452,7 @@ function Ti(e, n, t, r) {
|
|
|
8452
8452
|
});
|
|
8453
8453
|
return l(), t.stack = f, o(), i === "full" || !u || u !== c ? s += a.move(c + "]") : i === "shortcut" ? s = s.slice(0, -1) : s += a.move("]"), s;
|
|
8454
8454
|
}
|
|
8455
|
-
function
|
|
8455
|
+
function Yc() {
|
|
8456
8456
|
return "[";
|
|
8457
8457
|
}
|
|
8458
8458
|
function An(e) {
|
|
@@ -8463,7 +8463,7 @@ function An(e) {
|
|
|
8463
8463
|
);
|
|
8464
8464
|
return n;
|
|
8465
8465
|
}
|
|
8466
|
-
function
|
|
8466
|
+
function Qc(e) {
|
|
8467
8467
|
const n = An(e), t = e.options.bulletOther;
|
|
8468
8468
|
if (!t)
|
|
8469
8469
|
return n === "*" ? "-" : "*";
|
|
@@ -8477,7 +8477,7 @@ function Yc(e) {
|
|
|
8477
8477
|
);
|
|
8478
8478
|
return t;
|
|
8479
8479
|
}
|
|
8480
|
-
function
|
|
8480
|
+
function Xc(e) {
|
|
8481
8481
|
const n = e.options.bulletOrdered || ".";
|
|
8482
8482
|
if (n !== "." && n !== ")")
|
|
8483
8483
|
throw new Error(
|
|
@@ -8493,10 +8493,10 @@ function zi(e) {
|
|
|
8493
8493
|
);
|
|
8494
8494
|
return n;
|
|
8495
8495
|
}
|
|
8496
|
-
function
|
|
8496
|
+
function Gc(e, n, t, r) {
|
|
8497
8497
|
const i = t.enter("list"), o = t.bulletCurrent;
|
|
8498
|
-
let l = e.ordered ?
|
|
8499
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
8498
|
+
let l = e.ordered ? Xc(t) : An(t);
|
|
8499
|
+
const a = e.ordered ? l === "." ? ")" : "." : Qc(t);
|
|
8500
8500
|
let s = n && t.bulletLastUsed ? l === t.bulletLastUsed : !1;
|
|
8501
8501
|
if (!e.ordered) {
|
|
8502
8502
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -8521,7 +8521,7 @@ function Xc(e, n, t, r) {
|
|
|
8521
8521
|
const u = t.containerFlow(e, r);
|
|
8522
8522
|
return t.bulletLastUsed = l, t.bulletCurrent = o, i(), u;
|
|
8523
8523
|
}
|
|
8524
|
-
function
|
|
8524
|
+
function Jc(e) {
|
|
8525
8525
|
const n = e.options.listItemIndent || "one";
|
|
8526
8526
|
if (n !== "tab" && n !== "one" && n !== "mixed")
|
|
8527
8527
|
throw new Error(
|
|
@@ -8529,8 +8529,8 @@ function Gc(e) {
|
|
|
8529
8529
|
);
|
|
8530
8530
|
return n;
|
|
8531
8531
|
}
|
|
8532
|
-
function
|
|
8533
|
-
const i =
|
|
8532
|
+
function Kc(e, n, t, r) {
|
|
8533
|
+
const i = Jc(t);
|
|
8534
8534
|
let o = t.bulletCurrent || An(t);
|
|
8535
8535
|
n && n.type === "list" && n.ordered && (o = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (t.options.incrementListMarker === !1 ? 0 : n.children.indexOf(e)) + o);
|
|
8536
8536
|
let l = o.length + 1;
|
|
@@ -8546,11 +8546,11 @@ function Jc(e, n, t, r) {
|
|
|
8546
8546
|
return h ? (p ? "" : " ".repeat(l)) + c : (p ? o : o + " ".repeat(l - o.length)) + c;
|
|
8547
8547
|
}
|
|
8548
8548
|
}
|
|
8549
|
-
function
|
|
8549
|
+
function Zc(e, n, t, r) {
|
|
8550
8550
|
const i = t.enter("paragraph"), o = t.enter("phrasing"), l = t.containerPhrasing(e, r);
|
|
8551
8551
|
return o(), i(), l;
|
|
8552
8552
|
}
|
|
8553
|
-
const
|
|
8553
|
+
const ef = (
|
|
8554
8554
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
8555
8555
|
Pt([
|
|
8556
8556
|
"break",
|
|
@@ -8576,12 +8576,12 @@ const Zc = (
|
|
|
8576
8576
|
"textDirective"
|
|
8577
8577
|
])
|
|
8578
8578
|
);
|
|
8579
|
-
function
|
|
8579
|
+
function tf(e, n, t, r) {
|
|
8580
8580
|
return (e.children.some(function(l) {
|
|
8581
|
-
return
|
|
8581
|
+
return ef(l);
|
|
8582
8582
|
}) ? t.containerPhrasing : t.containerFlow).call(t, e, r);
|
|
8583
8583
|
}
|
|
8584
|
-
function
|
|
8584
|
+
function nf(e) {
|
|
8585
8585
|
const n = e.options.strong || "*";
|
|
8586
8586
|
if (n !== "*" && n !== "_")
|
|
8587
8587
|
throw new Error(
|
|
@@ -8589,9 +8589,9 @@ function tf(e) {
|
|
|
8589
8589
|
);
|
|
8590
8590
|
return n;
|
|
8591
8591
|
}
|
|
8592
|
-
Pi.peek =
|
|
8592
|
+
Pi.peek = rf;
|
|
8593
8593
|
function Pi(e, n, t, r) {
|
|
8594
|
-
const i =
|
|
8594
|
+
const i = nf(t), o = t.enter("strong"), l = t.createTracker(r), a = l.move(i + i);
|
|
8595
8595
|
let s = l.move(
|
|
8596
8596
|
t.containerPhrasing(e, {
|
|
8597
8597
|
after: i,
|
|
@@ -8613,13 +8613,13 @@ function Pi(e, n, t, r) {
|
|
|
8613
8613
|
before: f.outside
|
|
8614
8614
|
}, a + s + p;
|
|
8615
8615
|
}
|
|
8616
|
-
function
|
|
8616
|
+
function rf(e, n, t) {
|
|
8617
8617
|
return t.options.strong || "*";
|
|
8618
8618
|
}
|
|
8619
|
-
function
|
|
8619
|
+
function lf(e, n, t, r) {
|
|
8620
8620
|
return t.safe(e.value, r);
|
|
8621
8621
|
}
|
|
8622
|
-
function
|
|
8622
|
+
function of(e) {
|
|
8623
8623
|
const n = e.options.ruleRepetition || 3;
|
|
8624
8624
|
if (n < 3)
|
|
8625
8625
|
throw new Error(
|
|
@@ -8627,50 +8627,50 @@ function lf(e) {
|
|
|
8627
8627
|
);
|
|
8628
8628
|
return n;
|
|
8629
8629
|
}
|
|
8630
|
-
function
|
|
8631
|
-
const r = (zi(t) + (t.options.ruleSpaces ? " " : "")).repeat(
|
|
8630
|
+
function af(e, n, t) {
|
|
8631
|
+
const r = (zi(t) + (t.options.ruleSpaces ? " " : "")).repeat(of(t));
|
|
8632
8632
|
return t.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
8633
8633
|
}
|
|
8634
8634
|
const Li = {
|
|
8635
|
-
blockquote:
|
|
8635
|
+
blockquote: Tc,
|
|
8636
8636
|
break: Cr,
|
|
8637
|
-
code:
|
|
8638
|
-
definition:
|
|
8637
|
+
code: Rc,
|
|
8638
|
+
definition: Fc,
|
|
8639
8639
|
emphasis: Ci,
|
|
8640
8640
|
hardBreak: Cr,
|
|
8641
|
-
heading:
|
|
8641
|
+
heading: $c,
|
|
8642
8642
|
html: Si,
|
|
8643
8643
|
image: vi,
|
|
8644
8644
|
imageReference: _i,
|
|
8645
8645
|
inlineCode: Ei,
|
|
8646
8646
|
link: Ii,
|
|
8647
8647
|
linkReference: Ti,
|
|
8648
|
-
list:
|
|
8649
|
-
listItem:
|
|
8650
|
-
paragraph:
|
|
8651
|
-
root:
|
|
8648
|
+
list: Gc,
|
|
8649
|
+
listItem: Kc,
|
|
8650
|
+
paragraph: Zc,
|
|
8651
|
+
root: tf,
|
|
8652
8652
|
strong: Pi,
|
|
8653
|
-
text:
|
|
8654
|
-
thematicBreak:
|
|
8653
|
+
text: lf,
|
|
8654
|
+
thematicBreak: af
|
|
8655
8655
|
};
|
|
8656
|
-
function
|
|
8656
|
+
function sf() {
|
|
8657
8657
|
return {
|
|
8658
8658
|
enter: {
|
|
8659
|
-
table:
|
|
8659
|
+
table: uf,
|
|
8660
8660
|
tableData: Sr,
|
|
8661
8661
|
tableHeader: Sr,
|
|
8662
|
-
tableRow:
|
|
8662
|
+
tableRow: ff
|
|
8663
8663
|
},
|
|
8664
8664
|
exit: {
|
|
8665
|
-
codeText:
|
|
8666
|
-
table:
|
|
8665
|
+
codeText: pf,
|
|
8666
|
+
table: cf,
|
|
8667
8667
|
tableData: Xt,
|
|
8668
8668
|
tableHeader: Xt,
|
|
8669
8669
|
tableRow: Xt
|
|
8670
8670
|
}
|
|
8671
8671
|
};
|
|
8672
8672
|
}
|
|
8673
|
-
function
|
|
8673
|
+
function uf(e) {
|
|
8674
8674
|
const n = e._align;
|
|
8675
8675
|
this.enter(
|
|
8676
8676
|
{
|
|
@@ -8683,10 +8683,10 @@ function sf(e) {
|
|
|
8683
8683
|
e
|
|
8684
8684
|
), this.data.inTable = !0;
|
|
8685
8685
|
}
|
|
8686
|
-
function
|
|
8686
|
+
function cf(e) {
|
|
8687
8687
|
this.exit(e), this.data.inTable = void 0;
|
|
8688
8688
|
}
|
|
8689
|
-
function
|
|
8689
|
+
function ff(e) {
|
|
8690
8690
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
8691
8691
|
}
|
|
8692
8692
|
function Xt(e) {
|
|
@@ -8695,16 +8695,16 @@ function Xt(e) {
|
|
|
8695
8695
|
function Sr(e) {
|
|
8696
8696
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
8697
8697
|
}
|
|
8698
|
-
function
|
|
8698
|
+
function pf(e) {
|
|
8699
8699
|
let n = this.resume();
|
|
8700
|
-
this.data.inTable && (n = n.replace(/\\([\\|])/g,
|
|
8700
|
+
this.data.inTable && (n = n.replace(/\\([\\|])/g, hf));
|
|
8701
8701
|
const t = this.stack[this.stack.length - 1];
|
|
8702
8702
|
t.type, t.value = n, this.exit(e);
|
|
8703
8703
|
}
|
|
8704
|
-
function
|
|
8704
|
+
function hf(e, n) {
|
|
8705
8705
|
return n === "|" ? n : e;
|
|
8706
8706
|
}
|
|
8707
|
-
function
|
|
8707
|
+
function df(e) {
|
|
8708
8708
|
const n = e || {}, t = n.tableCellPadding, r = n.tablePipeAlign, i = n.stringLength, o = t ? " " : "|";
|
|
8709
8709
|
return {
|
|
8710
8710
|
unsafe: [
|
|
@@ -8750,7 +8750,7 @@ function hf(e) {
|
|
|
8750
8750
|
return A(), y(), _;
|
|
8751
8751
|
}
|
|
8752
8752
|
function u(p, g) {
|
|
8753
|
-
return
|
|
8753
|
+
return Ac(p, {
|
|
8754
8754
|
align: g,
|
|
8755
8755
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
8756
8756
|
alignDelimiters: r,
|
|
@@ -8781,26 +8781,26 @@ function hf(e) {
|
|
|
8781
8781
|
return C.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
|
|
8782
8782
|
}
|
|
8783
8783
|
}
|
|
8784
|
-
function
|
|
8784
|
+
function mf() {
|
|
8785
8785
|
return {
|
|
8786
8786
|
exit: {
|
|
8787
8787
|
taskListCheckValueChecked: vr,
|
|
8788
8788
|
taskListCheckValueUnchecked: vr,
|
|
8789
|
-
paragraph:
|
|
8789
|
+
paragraph: yf
|
|
8790
8790
|
}
|
|
8791
8791
|
};
|
|
8792
8792
|
}
|
|
8793
|
-
function
|
|
8793
|
+
function gf() {
|
|
8794
8794
|
return {
|
|
8795
8795
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
8796
|
-
handlers: { listItem:
|
|
8796
|
+
handlers: { listItem: kf }
|
|
8797
8797
|
};
|
|
8798
8798
|
}
|
|
8799
8799
|
function vr(e) {
|
|
8800
8800
|
const n = this.stack[this.stack.length - 2];
|
|
8801
8801
|
n.type, n.checked = e.type === "taskListCheckValueChecked";
|
|
8802
8802
|
}
|
|
8803
|
-
function
|
|
8803
|
+
function yf(e) {
|
|
8804
8804
|
const n = this.stack[this.stack.length - 2];
|
|
8805
8805
|
if (n && n.type === "listItem" && typeof n.checked == "boolean") {
|
|
8806
8806
|
const t = this.stack[this.stack.length - 1];
|
|
@@ -8821,7 +8821,7 @@ function gf(e) {
|
|
|
8821
8821
|
}
|
|
8822
8822
|
this.exit(e);
|
|
8823
8823
|
}
|
|
8824
|
-
function
|
|
8824
|
+
function kf(e, n, t, r) {
|
|
8825
8825
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = t.createTracker(r);
|
|
8826
8826
|
o && a.move(l);
|
|
8827
8827
|
let s = Li.listItem(e, n, t, {
|
|
@@ -8833,55 +8833,55 @@ function yf(e, n, t, r) {
|
|
|
8833
8833
|
return f + l;
|
|
8834
8834
|
}
|
|
8835
8835
|
}
|
|
8836
|
-
function
|
|
8836
|
+
function xf() {
|
|
8837
8837
|
return [
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8838
|
+
Gu(),
|
|
8839
|
+
yc(),
|
|
8840
|
+
wc(),
|
|
8841
|
+
sf(),
|
|
8842
|
+
mf()
|
|
8843
8843
|
];
|
|
8844
8844
|
}
|
|
8845
|
-
function
|
|
8845
|
+
function bf(e) {
|
|
8846
8846
|
return {
|
|
8847
8847
|
extensions: [
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8848
|
+
Ju(),
|
|
8849
|
+
kc(e),
|
|
8850
|
+
Cc(),
|
|
8851
|
+
df(e),
|
|
8852
|
+
gf()
|
|
8853
8853
|
]
|
|
8854
8854
|
};
|
|
8855
8855
|
}
|
|
8856
|
-
const
|
|
8857
|
-
tokenize: Ef,
|
|
8858
|
-
partial: !0
|
|
8859
|
-
}, Di = {
|
|
8856
|
+
const wf = {
|
|
8860
8857
|
tokenize: Af,
|
|
8861
8858
|
partial: !0
|
|
8862
|
-
},
|
|
8859
|
+
}, Di = {
|
|
8863
8860
|
tokenize: If,
|
|
8864
8861
|
partial: !0
|
|
8865
|
-
},
|
|
8862
|
+
}, Ni = {
|
|
8866
8863
|
tokenize: Tf,
|
|
8867
8864
|
partial: !0
|
|
8868
|
-
},
|
|
8865
|
+
}, Ri = {
|
|
8869
8866
|
tokenize: zf,
|
|
8870
8867
|
partial: !0
|
|
8868
|
+
}, Cf = {
|
|
8869
|
+
tokenize: Pf,
|
|
8870
|
+
partial: !0
|
|
8871
8871
|
}, Mi = {
|
|
8872
8872
|
name: "wwwAutolink",
|
|
8873
|
-
tokenize:
|
|
8873
|
+
tokenize: _f,
|
|
8874
8874
|
previous: Oi
|
|
8875
8875
|
}, Fi = {
|
|
8876
8876
|
name: "protocolAutolink",
|
|
8877
|
-
tokenize:
|
|
8877
|
+
tokenize: Ef,
|
|
8878
8878
|
previous: Bi
|
|
8879
8879
|
}, Ee = {
|
|
8880
8880
|
name: "emailAutolink",
|
|
8881
|
-
tokenize:
|
|
8881
|
+
tokenize: vf,
|
|
8882
8882
|
previous: ji
|
|
8883
8883
|
}, we = {};
|
|
8884
|
-
function
|
|
8884
|
+
function Sf() {
|
|
8885
8885
|
return {
|
|
8886
8886
|
text: we
|
|
8887
8887
|
};
|
|
@@ -8897,7 +8897,7 @@ we[72] = [Ee, Fi];
|
|
|
8897
8897
|
we[104] = [Ee, Fi];
|
|
8898
8898
|
we[87] = [Ee, Mi];
|
|
8899
8899
|
we[119] = [Ee, Mi];
|
|
8900
|
-
function
|
|
8900
|
+
function vf(e, n, t) {
|
|
8901
8901
|
const r = this;
|
|
8902
8902
|
let i, o;
|
|
8903
8903
|
return l;
|
|
@@ -8908,7 +8908,7 @@ function Sf(e, n, t) {
|
|
|
8908
8908
|
return an(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), s) : t(c);
|
|
8909
8909
|
}
|
|
8910
8910
|
function s(c) {
|
|
8911
|
-
return c === 46 ? e.check(
|
|
8911
|
+
return c === 46 ? e.check(Cf, f, u)(c) : c === 45 || c === 95 || ie(c) ? (o = !0, e.consume(c), s) : f(c);
|
|
8912
8912
|
}
|
|
8913
8913
|
function u(c) {
|
|
8914
8914
|
return e.consume(c), i = !0, s;
|
|
@@ -8917,17 +8917,17 @@ function Sf(e, n, t) {
|
|
|
8917
8917
|
return o && i && ae(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), n(c)) : t(c);
|
|
8918
8918
|
}
|
|
8919
8919
|
}
|
|
8920
|
-
function
|
|
8920
|
+
function _f(e, n, t) {
|
|
8921
8921
|
const r = this;
|
|
8922
8922
|
return i;
|
|
8923
8923
|
function i(l) {
|
|
8924
|
-
return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || In(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
|
|
8924
|
+
return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || In(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(wf, e.attempt(Di, e.attempt(Ni, o), t), t)(l));
|
|
8925
8925
|
}
|
|
8926
8926
|
function o(l) {
|
|
8927
8927
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), n(l);
|
|
8928
8928
|
}
|
|
8929
8929
|
}
|
|
8930
|
-
function
|
|
8930
|
+
function Ef(e, n, t) {
|
|
8931
8931
|
const r = this;
|
|
8932
8932
|
let i = "", o = !1;
|
|
8933
8933
|
return l;
|
|
@@ -8954,7 +8954,7 @@ function _f(e, n, t) {
|
|
|
8954
8954
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), n(c);
|
|
8955
8955
|
}
|
|
8956
8956
|
}
|
|
8957
|
-
function
|
|
8957
|
+
function Af(e, n, t) {
|
|
8958
8958
|
let r = 0;
|
|
8959
8959
|
return i;
|
|
8960
8960
|
function i(l) {
|
|
@@ -8964,7 +8964,7 @@ function Ef(e, n, t) {
|
|
|
8964
8964
|
return l === null ? t(l) : n(l);
|
|
8965
8965
|
}
|
|
8966
8966
|
}
|
|
8967
|
-
function
|
|
8967
|
+
function If(e, n, t) {
|
|
8968
8968
|
let r, i, o;
|
|
8969
8969
|
return l;
|
|
8970
8970
|
function l(u) {
|
|
@@ -8977,7 +8977,7 @@ function Af(e, n, t) {
|
|
|
8977
8977
|
return i || r || !o ? t(u) : n(u);
|
|
8978
8978
|
}
|
|
8979
8979
|
}
|
|
8980
|
-
function
|
|
8980
|
+
function Tf(e, n) {
|
|
8981
8981
|
let t = 0, r = 0;
|
|
8982
8982
|
return i;
|
|
8983
8983
|
function i(l) {
|
|
@@ -8987,7 +8987,7 @@ function If(e, n) {
|
|
|
8987
8987
|
return l === 41 && r++, e.consume(l), i;
|
|
8988
8988
|
}
|
|
8989
8989
|
}
|
|
8990
|
-
function
|
|
8990
|
+
function zf(e, n, t) {
|
|
8991
8991
|
return r;
|
|
8992
8992
|
function r(a) {
|
|
8993
8993
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
|
|
@@ -9006,7 +9006,7 @@ function Tf(e, n, t) {
|
|
|
9006
9006
|
return a === 59 ? (e.consume(a), r) : ae(a) ? (e.consume(a), l) : t(a);
|
|
9007
9007
|
}
|
|
9008
9008
|
}
|
|
9009
|
-
function
|
|
9009
|
+
function Pf(e, n, t) {
|
|
9010
9010
|
return r;
|
|
9011
9011
|
function r(o) {
|
|
9012
9012
|
return e.consume(o), i;
|
|
@@ -9042,37 +9042,37 @@ function In(e) {
|
|
|
9042
9042
|
}
|
|
9043
9043
|
return e.length > 0 && !t && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), t;
|
|
9044
9044
|
}
|
|
9045
|
-
const
|
|
9046
|
-
tokenize:
|
|
9045
|
+
const Lf = {
|
|
9046
|
+
tokenize: jf,
|
|
9047
9047
|
partial: !0
|
|
9048
9048
|
};
|
|
9049
|
-
function
|
|
9049
|
+
function Df() {
|
|
9050
9050
|
return {
|
|
9051
9051
|
document: {
|
|
9052
9052
|
91: {
|
|
9053
9053
|
name: "gfmFootnoteDefinition",
|
|
9054
|
-
tokenize:
|
|
9054
|
+
tokenize: Ff,
|
|
9055
9055
|
continuation: {
|
|
9056
|
-
tokenize:
|
|
9056
|
+
tokenize: Of
|
|
9057
9057
|
},
|
|
9058
|
-
exit:
|
|
9058
|
+
exit: Bf
|
|
9059
9059
|
}
|
|
9060
9060
|
},
|
|
9061
9061
|
text: {
|
|
9062
9062
|
91: {
|
|
9063
9063
|
name: "gfmFootnoteCall",
|
|
9064
|
-
tokenize:
|
|
9064
|
+
tokenize: Mf
|
|
9065
9065
|
},
|
|
9066
9066
|
93: {
|
|
9067
9067
|
name: "gfmPotentialFootnoteCall",
|
|
9068
9068
|
add: "after",
|
|
9069
|
-
tokenize:
|
|
9070
|
-
resolveTo:
|
|
9069
|
+
tokenize: Nf,
|
|
9070
|
+
resolveTo: Rf
|
|
9071
9071
|
}
|
|
9072
9072
|
}
|
|
9073
9073
|
};
|
|
9074
9074
|
}
|
|
9075
|
-
function
|
|
9075
|
+
function Nf(e, n, t) {
|
|
9076
9076
|
const r = this;
|
|
9077
9077
|
let i = r.events.length;
|
|
9078
9078
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -9097,7 +9097,7 @@ function Df(e, n, t) {
|
|
|
9097
9097
|
return u.codePointAt(0) !== 94 || !o.includes(u.slice(1)) ? t(s) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(s), e.exit("gfmFootnoteCallLabelMarker"), n(s));
|
|
9098
9098
|
}
|
|
9099
9099
|
}
|
|
9100
|
-
function
|
|
9100
|
+
function Rf(e, n) {
|
|
9101
9101
|
let t = e.length;
|
|
9102
9102
|
for (; t--; )
|
|
9103
9103
|
if (e[t][1].type === "labelImage" && e[t][0] === "enter") {
|
|
@@ -9147,7 +9147,7 @@ function Nf(e, n) {
|
|
|
9147
9147
|
];
|
|
9148
9148
|
return e.splice(t, e.length - t + 1, ...a), e;
|
|
9149
9149
|
}
|
|
9150
|
-
function
|
|
9150
|
+
function Mf(e, n, t) {
|
|
9151
9151
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
9152
9152
|
let o = 0, l;
|
|
9153
9153
|
return a;
|
|
@@ -9177,7 +9177,7 @@ function Rf(e, n, t) {
|
|
|
9177
9177
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, u) : u(c);
|
|
9178
9178
|
}
|
|
9179
9179
|
}
|
|
9180
|
-
function
|
|
9180
|
+
function Ff(e, n, t) {
|
|
9181
9181
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
9182
9182
|
let o, l = 0, a;
|
|
9183
9183
|
return s;
|
|
@@ -9207,27 +9207,27 @@ function Mf(e, n, t) {
|
|
|
9207
9207
|
return g === 91 || g === 92 || g === 93 ? (e.consume(g), l++, f) : f(g);
|
|
9208
9208
|
}
|
|
9209
9209
|
function h(g) {
|
|
9210
|
-
return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o),
|
|
9210
|
+
return g === 58 ? (e.enter("definitionMarker"), e.consume(g), e.exit("definitionMarker"), i.includes(o) || i.push(o), q(e, p, "gfmFootnoteDefinitionWhitespace")) : t(g);
|
|
9211
9211
|
}
|
|
9212
9212
|
function p(g) {
|
|
9213
9213
|
return n(g);
|
|
9214
9214
|
}
|
|
9215
9215
|
}
|
|
9216
|
-
function
|
|
9217
|
-
return e.check(ft, n, e.attempt(
|
|
9216
|
+
function Of(e, n, t) {
|
|
9217
|
+
return e.check(ft, n, e.attempt(Lf, n, t));
|
|
9218
9218
|
}
|
|
9219
|
-
function
|
|
9219
|
+
function Bf(e) {
|
|
9220
9220
|
e.exit("gfmFootnoteDefinition");
|
|
9221
9221
|
}
|
|
9222
|
-
function
|
|
9222
|
+
function jf(e, n, t) {
|
|
9223
9223
|
const r = this;
|
|
9224
|
-
return
|
|
9224
|
+
return q(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
9225
9225
|
function i(o) {
|
|
9226
9226
|
const l = r.events[r.events.length - 1];
|
|
9227
9227
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? n(o) : t(o);
|
|
9228
9228
|
}
|
|
9229
9229
|
}
|
|
9230
|
-
function
|
|
9230
|
+
function $f(e) {
|
|
9231
9231
|
let t = (e || {}).singleTilde;
|
|
9232
9232
|
const r = {
|
|
9233
9233
|
name: "strikethrough",
|
|
@@ -9288,7 +9288,7 @@ function jf(e) {
|
|
|
9288
9288
|
}
|
|
9289
9289
|
}
|
|
9290
9290
|
}
|
|
9291
|
-
class
|
|
9291
|
+
class Hf {
|
|
9292
9292
|
/**
|
|
9293
9293
|
* Create a new edit map.
|
|
9294
9294
|
*/
|
|
@@ -9304,7 +9304,7 @@ class $f {
|
|
|
9304
9304
|
* @returns {undefined}
|
|
9305
9305
|
*/
|
|
9306
9306
|
add(n, t, r) {
|
|
9307
|
-
|
|
9307
|
+
Vf(this, n, t, r);
|
|
9308
9308
|
}
|
|
9309
9309
|
// To do: add this when moving to `micromark`.
|
|
9310
9310
|
// /**
|
|
@@ -9343,7 +9343,7 @@ class $f {
|
|
|
9343
9343
|
this.map.length = 0;
|
|
9344
9344
|
}
|
|
9345
9345
|
}
|
|
9346
|
-
function
|
|
9346
|
+
function Vf(e, n, t, r) {
|
|
9347
9347
|
let i = 0;
|
|
9348
9348
|
if (!(t === 0 && r.length === 0)) {
|
|
9349
9349
|
for (; i < e.map.length; ) {
|
|
@@ -9356,7 +9356,7 @@ function Hf(e, n, t, r) {
|
|
|
9356
9356
|
e.map.push([n, t, r]);
|
|
9357
9357
|
}
|
|
9358
9358
|
}
|
|
9359
|
-
function
|
|
9359
|
+
function qf(e, n) {
|
|
9360
9360
|
let t = !1;
|
|
9361
9361
|
const r = [];
|
|
9362
9362
|
for (; n < e.length; ) {
|
|
@@ -9381,13 +9381,13 @@ function Uf() {
|
|
|
9381
9381
|
flow: {
|
|
9382
9382
|
null: {
|
|
9383
9383
|
name: "table",
|
|
9384
|
-
tokenize:
|
|
9385
|
-
resolveAll:
|
|
9384
|
+
tokenize: Wf,
|
|
9385
|
+
resolveAll: Yf
|
|
9386
9386
|
}
|
|
9387
9387
|
}
|
|
9388
9388
|
};
|
|
9389
9389
|
}
|
|
9390
|
-
function
|
|
9390
|
+
function Wf(e, n, t) {
|
|
9391
9391
|
const r = this;
|
|
9392
9392
|
let i = 0, o = 0, l;
|
|
9393
9393
|
return a;
|
|
@@ -9399,8 +9399,8 @@ function qf(e, n, t) {
|
|
|
9399
9399
|
P === "linePrefix") T--;
|
|
9400
9400
|
else break;
|
|
9401
9401
|
}
|
|
9402
|
-
const z = T > -1 ? r.events[T][1].type : null,
|
|
9403
|
-
return
|
|
9402
|
+
const z = T > -1 ? r.events[T][1].type : null, U = z === "tableHead" || z === "tableRow" ? x : s;
|
|
9403
|
+
return U === x && r.parser.lazy[r.now().line] ? t(k) : U(k);
|
|
9404
9404
|
}
|
|
9405
9405
|
function s(k) {
|
|
9406
9406
|
return e.enter("tableHead"), e.enter("tableRow"), u(k);
|
|
@@ -9409,7 +9409,7 @@ function qf(e, n, t) {
|
|
|
9409
9409
|
return k === 124 || (l = !0, o += 1), f(k);
|
|
9410
9410
|
}
|
|
9411
9411
|
function f(k) {
|
|
9412
|
-
return k === null ? t(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), p) : t(k) : j(k) ?
|
|
9412
|
+
return k === null ? t(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), p) : t(k) : j(k) ? q(e, f, "whitespace")(k) : (o += 1, l && (l = !1, i += 1), k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(k)));
|
|
9413
9413
|
}
|
|
9414
9414
|
function c(k) {
|
|
9415
9415
|
return k === null || k === 124 || J(k) ? (e.exit("data"), f(k)) : (e.consume(k), k === 92 ? h : c);
|
|
@@ -9418,13 +9418,13 @@ function qf(e, n, t) {
|
|
|
9418
9418
|
return k === 92 || k === 124 ? (e.consume(k), c) : c(k);
|
|
9419
9419
|
}
|
|
9420
9420
|
function p(k) {
|
|
9421
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1, j(k) ?
|
|
9421
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(k) : (e.enter("tableDelimiterRow"), l = !1, j(k) ? q(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : g(k));
|
|
9422
9422
|
}
|
|
9423
9423
|
function g(k) {
|
|
9424
9424
|
return k === 45 || k === 58 ? S(k) : k === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), C) : N(k);
|
|
9425
9425
|
}
|
|
9426
9426
|
function C(k) {
|
|
9427
|
-
return j(k) ?
|
|
9427
|
+
return j(k) ? q(e, S, "whitespace")(k) : S(k);
|
|
9428
9428
|
}
|
|
9429
9429
|
function S(k) {
|
|
9430
9430
|
return k === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), y) : k === 45 ? (o += 1, y(k)) : k === null || D(k) ? L(k) : N(k);
|
|
@@ -9436,7 +9436,7 @@ function qf(e, n, t) {
|
|
|
9436
9436
|
return k === 45 ? (e.consume(k), A) : k === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), _) : (e.exit("tableDelimiterFiller"), _(k));
|
|
9437
9437
|
}
|
|
9438
9438
|
function _(k) {
|
|
9439
|
-
return j(k) ?
|
|
9439
|
+
return j(k) ? q(e, L, "whitespace")(k) : L(k);
|
|
9440
9440
|
}
|
|
9441
9441
|
function L(k) {
|
|
9442
9442
|
return k === 124 ? g(k) : k === null || D(k) ? !l || i !== o ? N(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(k)) : N(k);
|
|
@@ -9448,7 +9448,7 @@ function qf(e, n, t) {
|
|
|
9448
9448
|
return e.enter("tableRow"), O(k);
|
|
9449
9449
|
}
|
|
9450
9450
|
function O(k) {
|
|
9451
|
-
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) : j(k) ?
|
|
9451
|
+
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), O) : k === null || D(k) ? (e.exit("tableRow"), n(k)) : j(k) ? q(e, O, "whitespace")(k) : (e.enter("data"), $(k));
|
|
9452
9452
|
}
|
|
9453
9453
|
function $(k) {
|
|
9454
9454
|
return k === null || k === 124 || J(k) ? (e.exit("data"), O(k)) : (e.consume(k), k === 92 ? H : $);
|
|
@@ -9457,9 +9457,9 @@ function qf(e, n, t) {
|
|
|
9457
9457
|
return k === 92 || k === 124 ? (e.consume(k), $) : $(k);
|
|
9458
9458
|
}
|
|
9459
9459
|
}
|
|
9460
|
-
function
|
|
9460
|
+
function Yf(e, n) {
|
|
9461
9461
|
let t = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, s = 0, u, f, c;
|
|
9462
|
-
const h = new
|
|
9462
|
+
const h = new Hf();
|
|
9463
9463
|
for (; ++t < e.length; ) {
|
|
9464
9464
|
const p = e[t], g = p[1];
|
|
9465
9465
|
p[0] === "enter" ? g.type === "tableHead" ? (a = !1, s !== 0 && (_r(h, n, s, u, f), f = void 0, s = 0), u = {
|
|
@@ -9476,21 +9476,21 @@ function Wf(e, n) {
|
|
|
9476
9476
|
}
|
|
9477
9477
|
for (s !== 0 && _r(h, n, s, u, f), h.consume(n.events), t = -1; ++t < n.events.length; ) {
|
|
9478
9478
|
const p = n.events[t];
|
|
9479
|
-
p[0] === "enter" && p[1].type === "table" && (p[1]._align =
|
|
9479
|
+
p[0] === "enter" && p[1].type === "table" && (p[1]._align = qf(n.events, t));
|
|
9480
9480
|
}
|
|
9481
9481
|
return e;
|
|
9482
9482
|
}
|
|
9483
9483
|
function kt(e, n, t, r, i, o) {
|
|
9484
9484
|
const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
9485
|
-
t[0] !== 0 && (o.end = Object.assign({},
|
|
9486
|
-
const s =
|
|
9485
|
+
t[0] !== 0 && (o.end = Object.assign({}, qe(n.events, t[0])), e.add(t[0], 0, [["exit", o, n]]));
|
|
9486
|
+
const s = qe(n.events, t[1]);
|
|
9487
9487
|
if (o = {
|
|
9488
9488
|
type: l,
|
|
9489
9489
|
start: Object.assign({}, s),
|
|
9490
9490
|
// Note: correct end is set later.
|
|
9491
9491
|
end: Object.assign({}, s)
|
|
9492
9492
|
}, e.add(t[1], 0, [["enter", o, n]]), t[2] !== 0) {
|
|
9493
|
-
const u =
|
|
9493
|
+
const u = qe(n.events, t[2]), f = qe(n.events, t[3]), c = {
|
|
9494
9494
|
type: a,
|
|
9495
9495
|
start: Object.assign({}, u),
|
|
9496
9496
|
end: Object.assign({}, f)
|
|
@@ -9504,28 +9504,28 @@ function kt(e, n, t, r, i, o) {
|
|
|
9504
9504
|
}
|
|
9505
9505
|
e.add(t[3] + 1, 0, [["exit", c, n]]);
|
|
9506
9506
|
}
|
|
9507
|
-
return i !== void 0 && (o.end = Object.assign({},
|
|
9507
|
+
return i !== void 0 && (o.end = Object.assign({}, qe(n.events, i)), e.add(i, 0, [["exit", o, n]]), o = void 0), o;
|
|
9508
9508
|
}
|
|
9509
9509
|
function _r(e, n, t, r, i) {
|
|
9510
|
-
const o = [], l =
|
|
9510
|
+
const o = [], l = qe(n.events, t);
|
|
9511
9511
|
i && (i.end = Object.assign({}, l), o.push(["exit", i, n])), r.end = Object.assign({}, l), o.push(["exit", r, n]), e.add(t + 1, 0, o);
|
|
9512
9512
|
}
|
|
9513
|
-
function
|
|
9513
|
+
function qe(e, n) {
|
|
9514
9514
|
const t = e[n], r = t[0] === "enter" ? "start" : "end";
|
|
9515
9515
|
return t[1][r];
|
|
9516
9516
|
}
|
|
9517
|
-
const
|
|
9517
|
+
const Qf = {
|
|
9518
9518
|
name: "tasklistCheck",
|
|
9519
|
-
tokenize:
|
|
9519
|
+
tokenize: Gf
|
|
9520
9520
|
};
|
|
9521
|
-
function
|
|
9521
|
+
function Xf() {
|
|
9522
9522
|
return {
|
|
9523
9523
|
text: {
|
|
9524
|
-
91:
|
|
9524
|
+
91: Qf
|
|
9525
9525
|
}
|
|
9526
9526
|
};
|
|
9527
9527
|
}
|
|
9528
|
-
function
|
|
9528
|
+
function Gf(e, n, t) {
|
|
9529
9529
|
const r = this;
|
|
9530
9530
|
return i;
|
|
9531
9531
|
function i(s) {
|
|
@@ -9544,59 +9544,59 @@ function Xf(e, n, t) {
|
|
|
9544
9544
|
}
|
|
9545
9545
|
function a(s) {
|
|
9546
9546
|
return D(s) ? n(s) : j(s) ? e.check({
|
|
9547
|
-
tokenize:
|
|
9547
|
+
tokenize: Jf
|
|
9548
9548
|
}, n, t)(s) : t(s);
|
|
9549
9549
|
}
|
|
9550
9550
|
}
|
|
9551
|
-
function
|
|
9552
|
-
return
|
|
9551
|
+
function Jf(e, n, t) {
|
|
9552
|
+
return q(e, r, "whitespace");
|
|
9553
9553
|
function r(i) {
|
|
9554
9554
|
return i === null ? t(i) : n(i);
|
|
9555
9555
|
}
|
|
9556
9556
|
}
|
|
9557
|
-
function
|
|
9557
|
+
function Kf(e) {
|
|
9558
9558
|
return Gr([
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9559
|
+
Sf(),
|
|
9560
|
+
Df(),
|
|
9561
|
+
$f(e),
|
|
9562
9562
|
Uf(),
|
|
9563
|
-
|
|
9563
|
+
Xf()
|
|
9564
9564
|
]);
|
|
9565
9565
|
}
|
|
9566
|
-
const
|
|
9567
|
-
function
|
|
9566
|
+
const Zf = {};
|
|
9567
|
+
function ep(e) {
|
|
9568
9568
|
const n = (
|
|
9569
9569
|
/** @type {Processor<Root>} */
|
|
9570
9570
|
this
|
|
9571
|
-
), t = e ||
|
|
9572
|
-
i.push(
|
|
9573
|
-
}
|
|
9574
|
-
const
|
|
9575
|
-
wrapper:
|
|
9576
|
-
table:
|
|
9577
|
-
th:
|
|
9578
|
-
tr:
|
|
9579
|
-
td:
|
|
9571
|
+
), t = e || Zf, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
9572
|
+
i.push(Kf(t)), o.push(xf()), l.push(bf(t));
|
|
9573
|
+
}
|
|
9574
|
+
const tp = "_wrapper_izvjy_1", np = "_table_izvjy_15", rp = "_th_izvjy_27", ip = "_tr_izvjy_47", lp = "_td_izvjy_63", nt = {
|
|
9575
|
+
wrapper: tp,
|
|
9576
|
+
table: np,
|
|
9577
|
+
th: rp,
|
|
9578
|
+
tr: ip,
|
|
9579
|
+
td: lp
|
|
9580
9580
|
};
|
|
9581
|
-
function
|
|
9581
|
+
function op({ part: e }) {
|
|
9582
9582
|
return /* @__PURE__ */ b("div", { className: nt.wrapper, children: /* @__PURE__ */ Y("table", { className: nt.table, children: [
|
|
9583
9583
|
/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ b("tr", { children: e.columns.map((n) => /* @__PURE__ */ b("th", { className: nt.th, children: n }, n)) }) }),
|
|
9584
9584
|
/* @__PURE__ */ b("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ b("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ b("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
|
|
9585
9585
|
] }) });
|
|
9586
9586
|
}
|
|
9587
|
-
const
|
|
9588
|
-
card:
|
|
9589
|
-
header:
|
|
9590
|
-
icon:
|
|
9591
|
-
title:
|
|
9592
|
-
description:
|
|
9593
|
-
cardResolved:
|
|
9594
|
-
resolvedBadge:
|
|
9595
|
-
actions:
|
|
9596
|
-
confirm:
|
|
9597
|
-
cancel:
|
|
9587
|
+
const ap = "_card_1gzm6_1", sp = "_header_1gzm6_17", up = "_icon_1gzm6_31", cp = "_title_1gzm6_45", fp = "_description_1gzm6_57", pp = "_cardResolved_1gzm6_71", hp = "_resolvedBadge_1gzm6_79", dp = "_actions_1gzm6_101", mp = "_confirm_1gzm6_111", gp = "_cancel_1gzm6_143", ye = {
|
|
9588
|
+
card: ap,
|
|
9589
|
+
header: sp,
|
|
9590
|
+
icon: up,
|
|
9591
|
+
title: cp,
|
|
9592
|
+
description: fp,
|
|
9593
|
+
cardResolved: pp,
|
|
9594
|
+
resolvedBadge: hp,
|
|
9595
|
+
actions: dp,
|
|
9596
|
+
confirm: mp,
|
|
9597
|
+
cancel: gp
|
|
9598
9598
|
};
|
|
9599
|
-
function
|
|
9599
|
+
function yp({ part: e, onConfirm: n, onCancel: t }) {
|
|
9600
9600
|
const r = Te(), { proposal: i } = e, o = i.resolved === "confirmed" ? r.proposalConfirmed : i.resolved === "cancelled" ? r.proposalCancelled : i.resolved === "expired" ? r.proposalExpired : null;
|
|
9601
9601
|
return /* @__PURE__ */ Y("div", { className: i.resolved ? `${ye.card} ${ye.cardResolved}` : ye.card, children: [
|
|
9602
9602
|
/* @__PURE__ */ Y("div", { className: ye.header, children: [
|
|
@@ -9624,14 +9624,14 @@ function gp({ part: e, onConfirm: n, onCancel: t }) {
|
|
|
9624
9624
|
] })
|
|
9625
9625
|
] });
|
|
9626
9626
|
}
|
|
9627
|
-
const
|
|
9628
|
-
activity:
|
|
9629
|
-
indicator:
|
|
9630
|
-
content:
|
|
9631
|
-
title:
|
|
9632
|
-
description:
|
|
9627
|
+
const kp = "_activity_1661l_1", xp = "_indicator_1661l_25", bp = "_content_1661l_71", wp = "_title_1661l_79", Cp = "_description_1661l_89", rt = {
|
|
9628
|
+
activity: kp,
|
|
9629
|
+
indicator: xp,
|
|
9630
|
+
content: bp,
|
|
9631
|
+
title: wp,
|
|
9632
|
+
description: Cp
|
|
9633
9633
|
};
|
|
9634
|
-
function
|
|
9634
|
+
function Sp({ part: e }) {
|
|
9635
9635
|
return /* @__PURE__ */ Y("div", { className: rt.activity, "data-status": e.status, children: [
|
|
9636
9636
|
/* @__PURE__ */ b("span", { className: rt.indicator, "aria-hidden": "true" }),
|
|
9637
9637
|
/* @__PURE__ */ Y("div", { className: rt.content, children: [
|
|
@@ -9640,22 +9640,22 @@ function Cp({ part: e }) {
|
|
|
9640
9640
|
] })
|
|
9641
9641
|
] });
|
|
9642
9642
|
}
|
|
9643
|
-
const
|
|
9644
|
-
card:
|
|
9645
|
-
cardClickable:
|
|
9646
|
-
header:
|
|
9647
|
-
title:
|
|
9648
|
-
subtitle:
|
|
9649
|
-
fields:
|
|
9650
|
-
fieldRow:
|
|
9651
|
-
fieldLabel:
|
|
9652
|
-
fieldValue:
|
|
9653
|
-
badge:
|
|
9654
|
-
badgeSuccess:
|
|
9655
|
-
badgeWarning:
|
|
9656
|
-
badgeDanger:
|
|
9657
|
-
badgeNeutral:
|
|
9658
|
-
},
|
|
9643
|
+
const vp = "_card_jwkcu_1", _p = "_cardClickable_jwkcu_14", Ep = "_header_jwkcu_24", Ap = "_title_jwkcu_30", Ip = "_subtitle_jwkcu_36", Tp = "_fields_jwkcu_41", zp = "_fieldRow_jwkcu_48", Pp = "_fieldLabel_jwkcu_55", Lp = "_fieldValue_jwkcu_61", Dp = "_badge_jwkcu_68", Np = "_badgeSuccess_jwkcu_76", Rp = "_badgeWarning_jwkcu_81", Mp = "_badgeDanger_jwkcu_86", Fp = "_badgeNeutral_jwkcu_91", oe = {
|
|
9644
|
+
card: vp,
|
|
9645
|
+
cardClickable: _p,
|
|
9646
|
+
header: Ep,
|
|
9647
|
+
title: Ap,
|
|
9648
|
+
subtitle: Ip,
|
|
9649
|
+
fields: Tp,
|
|
9650
|
+
fieldRow: zp,
|
|
9651
|
+
fieldLabel: Pp,
|
|
9652
|
+
fieldValue: Lp,
|
|
9653
|
+
badge: Dp,
|
|
9654
|
+
badgeSuccess: Np,
|
|
9655
|
+
badgeWarning: Rp,
|
|
9656
|
+
badgeDanger: Mp,
|
|
9657
|
+
badgeNeutral: Fp
|
|
9658
|
+
}, Op = {
|
|
9659
9659
|
success: oe.badgeSuccess,
|
|
9660
9660
|
warning: oe.badgeWarning,
|
|
9661
9661
|
danger: oe.badgeDanger,
|
|
@@ -9669,7 +9669,7 @@ function $i({ part: e, onEntityClick: n }) {
|
|
|
9669
9669
|
] }),
|
|
9670
9670
|
t.fields && t.fields.length > 0 && /* @__PURE__ */ b("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */ Y("div", { className: oe.fieldRow, children: [
|
|
9671
9671
|
/* @__PURE__ */ b("dt", { className: oe.fieldLabel, children: l.label }),
|
|
9672
|
-
/* @__PURE__ */ b("dd", { className: oe.fieldValue, children: l.badge ? /* @__PURE__ */ b("span", { className: `${oe.badge} ${
|
|
9672
|
+
/* @__PURE__ */ b("dd", { className: oe.fieldValue, children: l.badge ? /* @__PURE__ */ b("span", { className: `${oe.badge} ${Op[l.badge]}`, children: l.value }) : l.value })
|
|
9673
9673
|
] }, a)) })
|
|
9674
9674
|
] });
|
|
9675
9675
|
return i ? /* @__PURE__ */ b(
|
|
@@ -9682,11 +9682,11 @@ function $i({ part: e, onEntityClick: n }) {
|
|
|
9682
9682
|
}
|
|
9683
9683
|
) : /* @__PURE__ */ b("div", { className: oe.card, children: o });
|
|
9684
9684
|
}
|
|
9685
|
-
const
|
|
9686
|
-
list:
|
|
9687
|
-
listTitle:
|
|
9685
|
+
const Bp = "_list_a2maw_1", jp = "_listTitle_a2maw_11", Er = {
|
|
9686
|
+
list: Bp,
|
|
9687
|
+
listTitle: jp
|
|
9688
9688
|
};
|
|
9689
|
-
function
|
|
9689
|
+
function $p({ part: e, onEntityClick: n }) {
|
|
9690
9690
|
return /* @__PURE__ */ Y("div", { className: Er.list, children: [
|
|
9691
9691
|
e.title && /* @__PURE__ */ b("span", { className: Er.listTitle, children: e.title }),
|
|
9692
9692
|
e.entities.map((t, r) => /* @__PURE__ */ b(
|
|
@@ -9699,13 +9699,13 @@ function jp({ part: e, onEntityClick: n }) {
|
|
|
9699
9699
|
))
|
|
9700
9700
|
] });
|
|
9701
9701
|
}
|
|
9702
|
-
const
|
|
9703
|
-
markdown:
|
|
9704
|
-
unknownPart:
|
|
9705
|
-
errorText:
|
|
9702
|
+
const Hp = "_markdown_sznoh_1", Vp = "_unknownPart_sznoh_167", qp = "_errorText_sznoh_195", Up = "_errorIcon_sznoh_211", xt = {
|
|
9703
|
+
markdown: Hp,
|
|
9704
|
+
unknownPart: Vp,
|
|
9705
|
+
errorText: qp,
|
|
9706
9706
|
errorIcon: Up
|
|
9707
9707
|
};
|
|
9708
|
-
function
|
|
9708
|
+
function Wp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, renderPart: i }) {
|
|
9709
9709
|
if (i) {
|
|
9710
9710
|
const o = i(e);
|
|
9711
9711
|
if (o != null)
|
|
@@ -9713,14 +9713,14 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
|
|
|
9713
9713
|
}
|
|
9714
9714
|
switch (e.type) {
|
|
9715
9715
|
case "text":
|
|
9716
|
-
return /* @__PURE__ */ b("div", { className: xt.markdown, children: /* @__PURE__ */ b(
|
|
9716
|
+
return /* @__PURE__ */ b("div", { className: xt.markdown, children: /* @__PURE__ */ b(ju, { remarkPlugins: [ep], children: e.text }) });
|
|
9717
9717
|
case "table":
|
|
9718
|
-
return /* @__PURE__ */ b(
|
|
9718
|
+
return /* @__PURE__ */ b(op, { part: e });
|
|
9719
9719
|
case "activity":
|
|
9720
|
-
return /* @__PURE__ */ b(
|
|
9720
|
+
return /* @__PURE__ */ b(Sp, { part: e });
|
|
9721
9721
|
case "proposal":
|
|
9722
9722
|
return /* @__PURE__ */ b(
|
|
9723
|
-
|
|
9723
|
+
yp,
|
|
9724
9724
|
{
|
|
9725
9725
|
part: e,
|
|
9726
9726
|
onConfirm: n,
|
|
@@ -9730,10 +9730,10 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
|
|
|
9730
9730
|
case "entity":
|
|
9731
9731
|
return /* @__PURE__ */ b($i, { part: e, onEntityClick: r });
|
|
9732
9732
|
case "entity-list":
|
|
9733
|
-
return /* @__PURE__ */ b(
|
|
9733
|
+
return /* @__PURE__ */ b($p, { part: e, onEntityClick: r });
|
|
9734
9734
|
case "error":
|
|
9735
9735
|
return /* @__PURE__ */ Y("span", { className: xt.errorText, children: [
|
|
9736
|
-
/* @__PURE__ */ b(
|
|
9736
|
+
/* @__PURE__ */ b(Il, { className: xt.errorIcon }),
|
|
9737
9737
|
e.message
|
|
9738
9738
|
] });
|
|
9739
9739
|
default:
|
|
@@ -9747,33 +9747,33 @@ function qp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
|
|
|
9747
9747
|
] }) : null;
|
|
9748
9748
|
}
|
|
9749
9749
|
}
|
|
9750
|
-
const
|
|
9751
|
-
wrapper:
|
|
9752
|
-
user:
|
|
9753
|
-
assistant:
|
|
9754
|
-
avatar:
|
|
9755
|
-
content:
|
|
9756
|
-
bubble:
|
|
9757
|
-
|
|
9758
|
-
empty:
|
|
9759
|
-
},
|
|
9760
|
-
function
|
|
9761
|
-
return !
|
|
9750
|
+
const Yp = "_wrapper_1q20p_1", Qp = "_user_1q20p_8", Xp = "_assistant_1q20p_12", Gp = "_avatar_1q20p_16", Jp = "_content_1q20p_43", Kp = "_bubble_1q20p_51", Zp = "_card_1q20p_70", eh = "_empty_1q20p_92", xe = {
|
|
9751
|
+
wrapper: Yp,
|
|
9752
|
+
user: Qp,
|
|
9753
|
+
assistant: Xp,
|
|
9754
|
+
avatar: Gp,
|
|
9755
|
+
content: Jp,
|
|
9756
|
+
bubble: Kp,
|
|
9757
|
+
card: Zp,
|
|
9758
|
+
empty: eh
|
|
9759
|
+
}, th = /* @__PURE__ */ new Set(["text", "error", "activity"]);
|
|
9760
|
+
function Hi(e) {
|
|
9761
|
+
return !th.has(e.type);
|
|
9762
9762
|
}
|
|
9763
9763
|
function nh(e) {
|
|
9764
9764
|
const n = [];
|
|
9765
9765
|
return e.forEach((t, r) => {
|
|
9766
|
-
const i =
|
|
9767
|
-
if (o && !i && !o.
|
|
9766
|
+
const i = Hi(t), o = n[n.length - 1];
|
|
9767
|
+
if (o && !i && !o.card) {
|
|
9768
9768
|
o.parts.push({ part: t, index: r });
|
|
9769
9769
|
return;
|
|
9770
9770
|
}
|
|
9771
|
-
n.push({
|
|
9771
|
+
n.push({ card: i, parts: [{ part: t, index: r }] });
|
|
9772
9772
|
}), n;
|
|
9773
9773
|
}
|
|
9774
9774
|
function rh({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, assistantIcon: i, renderPart: o }) {
|
|
9775
|
-
const l = Te(), a = e.role === "user", s =
|
|
9776
|
-
|
|
9775
|
+
const l = Te(), a = e.role === "user", s = (f, c) => /* @__PURE__ */ b(
|
|
9776
|
+
Wp,
|
|
9777
9777
|
{
|
|
9778
9778
|
part: f,
|
|
9779
9779
|
onProposalConfirm: n,
|
|
@@ -9782,20 +9782,20 @@ function rh({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
|
|
|
9782
9782
|
renderPart: o
|
|
9783
9783
|
},
|
|
9784
9784
|
c
|
|
9785
|
-
);
|
|
9785
|
+
), u = e.parts.some(Hi);
|
|
9786
9786
|
return /* @__PURE__ */ Y("div", { className: `${xe.wrapper} ${a ? xe.user : xe.assistant}`, children: [
|
|
9787
9787
|
!a && /* @__PURE__ */ b("div", { className: xe.avatar, "aria-hidden": "true", children: i ?? /* @__PURE__ */ b(Nr, {}) }),
|
|
9788
|
-
/* @__PURE__ */
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
)),
|
|
9798
|
-
e.parts.length === 0 && /* @__PURE__ */ b("
|
|
9788
|
+
u ? /* @__PURE__ */ b("div", { className: xe.content, children: nh(e.parts).map((f, c) => /* @__PURE__ */ b(
|
|
9789
|
+
"div",
|
|
9790
|
+
{
|
|
9791
|
+
className: f.card ? xe.card : xe.bubble,
|
|
9792
|
+
"data-juneau-segment": f.card ? "card" : "bubble",
|
|
9793
|
+
children: f.parts.map(({ part: h, index: p }) => s(h, p))
|
|
9794
|
+
},
|
|
9795
|
+
c
|
|
9796
|
+
)) }) : /* @__PURE__ */ Y("div", { className: xe.bubble, "data-juneau-segment": "bubble", children: [
|
|
9797
|
+
e.parts.map((f, c) => s(f, c)),
|
|
9798
|
+
e.parts.length === 0 && /* @__PURE__ */ b("span", { className: xe.empty })
|
|
9799
9799
|
] }),
|
|
9800
9800
|
a && /* @__PURE__ */ b("div", { className: xe.avatar, children: l.userLabel })
|
|
9801
9801
|
] });
|
|
@@ -9828,7 +9828,7 @@ const sh = "_list_ixto8_1", uh = "_empty_ixto8_21", ch = "_hint_ixto8_47", fh =
|
|
|
9828
9828
|
typing: fh
|
|
9829
9829
|
};
|
|
9830
9830
|
function ph({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, onEntityClick: o, assistantIcon: l, renderPart: a }) {
|
|
9831
|
-
const s = Te(), u =
|
|
9831
|
+
const s = Te(), u = Ue(null);
|
|
9832
9832
|
return St(() => {
|
|
9833
9833
|
u.current?.scrollIntoView({ behavior: "smooth" });
|
|
9834
9834
|
}, [e, n]), /* @__PURE__ */ Y("div", { className: bt.list, children: [
|
|
@@ -9864,16 +9864,16 @@ const hh = "_wrapper_ehrkb_1", dh = "_textarea_ehrkb_21", mh = "_toolbar_ehrkb_6
|
|
|
9864
9864
|
stopIcon: wh
|
|
9865
9865
|
};
|
|
9866
9866
|
function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
|
|
9867
|
-
const s = Te(), u =
|
|
9867
|
+
const s = Te(), u = Ue(null), f = Ue(!1);
|
|
9868
9868
|
St(() => {
|
|
9869
9869
|
f.current && !i && u.current?.focus(), f.current = i;
|
|
9870
9870
|
}, [i]);
|
|
9871
9871
|
const c = [
|
|
9872
|
-
{ icon: /* @__PURE__ */ b(
|
|
9873
|
-
{ icon: /* @__PURE__ */ b(
|
|
9874
|
-
{ icon: /* @__PURE__ */ b(
|
|
9875
|
-
{ icon: /* @__PURE__ */ b(
|
|
9876
|
-
{ icon: /* @__PURE__ */ b(
|
|
9872
|
+
{ icon: /* @__PURE__ */ b(wl, {}), label: s.actionAddFile },
|
|
9873
|
+
{ icon: /* @__PURE__ */ b(Cl, {}), label: s.actionQuickActions },
|
|
9874
|
+
{ icon: /* @__PURE__ */ b(Sl, {}), label: s.actionNew },
|
|
9875
|
+
{ icon: /* @__PURE__ */ b(vl, {}), label: s.actionHistory },
|
|
9876
|
+
{ icon: /* @__PURE__ */ b(_l, {}), label: s.actionRules }
|
|
9877
9877
|
], h = l ?? c, p = (g) => {
|
|
9878
9878
|
g.key === "Enter" && !g.shiftKey && (g.preventDefault(), i || t());
|
|
9879
9879
|
};
|
|
@@ -9928,7 +9928,7 @@ function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9928
9928
|
"aria-label": s.sendMessage,
|
|
9929
9929
|
type: "button",
|
|
9930
9930
|
children: [
|
|
9931
|
-
i ? /* @__PURE__ */ b("svg", { className: ve.spinnerIcon, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ b("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeDasharray: "32", strokeDashoffset: "12" }) }) : a ?? /* @__PURE__ */ b(
|
|
9931
|
+
i ? /* @__PURE__ */ b("svg", { className: ve.spinnerIcon, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ b("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeDasharray: "32", strokeDashoffset: "12" }) }) : a ?? /* @__PURE__ */ b(bl, {}),
|
|
9932
9932
|
/* @__PURE__ */ b("span", { children: s.sendMessage })
|
|
9933
9933
|
]
|
|
9934
9934
|
}
|
|
@@ -10043,7 +10043,7 @@ function Fh({ title: e, onMinimize: n, isMinimized: t, icon: r, onReset: i }) {
|
|
|
10043
10043
|
onClick: n,
|
|
10044
10044
|
title: t ? o.expandSidebar : o.minimizeSidebar,
|
|
10045
10045
|
"aria-label": t ? o.expandSidebar : o.minimizeSidebar,
|
|
10046
|
-
children: t ? /* @__PURE__ */ b(
|
|
10046
|
+
children: t ? /* @__PURE__ */ b(Al, {}) : /* @__PURE__ */ b(El, {})
|
|
10047
10047
|
}
|
|
10048
10048
|
)
|
|
10049
10049
|
] })
|
|
@@ -10077,7 +10077,7 @@ function ld({
|
|
|
10077
10077
|
reset: L,
|
|
10078
10078
|
confirmProposal: N,
|
|
10079
10079
|
cancelProposal: x
|
|
10080
|
-
} =
|
|
10080
|
+
} = xl(), O = a ? () => {
|
|
10081
10081
|
L(), a();
|
|
10082
10082
|
} : void 0;
|
|
10083
10083
|
return /* @__PURE__ */ Y(
|
|
@@ -10120,13 +10120,13 @@ function ld({
|
|
|
10120
10120
|
}
|
|
10121
10121
|
);
|
|
10122
10122
|
}
|
|
10123
|
-
const jh = "_list_j7fvh_1", $h = "_item_j7fvh_19", Hh = "_chat_j7fvh_31", Vh = "_chatActive_j7fvh_71",
|
|
10123
|
+
const jh = "_list_j7fvh_1", $h = "_item_j7fvh_19", Hh = "_chat_j7fvh_31", Vh = "_chatActive_j7fvh_71", qh = "_title_j7fvh_79", Uh = "_date_j7fvh_99", Wh = "_empty_j7fvh_163", _e = {
|
|
10124
10124
|
list: jh,
|
|
10125
10125
|
item: $h,
|
|
10126
10126
|
chat: Hh,
|
|
10127
10127
|
chatActive: Vh,
|
|
10128
|
-
title:
|
|
10129
|
-
date:
|
|
10128
|
+
title: qh,
|
|
10129
|
+
date: Uh,
|
|
10130
10130
|
delete: "_delete_j7fvh_111",
|
|
10131
10131
|
empty: Wh
|
|
10132
10132
|
};
|
|
@@ -10156,21 +10156,21 @@ function od({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
|
|
|
10156
10156
|
] }, o.id)) });
|
|
10157
10157
|
}
|
|
10158
10158
|
export {
|
|
10159
|
-
|
|
10159
|
+
Sp as AiActivityPart,
|
|
10160
10160
|
zh as AiChat,
|
|
10161
10161
|
cn as AiChatContext,
|
|
10162
10162
|
od as AiChatHistoryList,
|
|
10163
10163
|
rd as AiChatProvider,
|
|
10164
10164
|
$i as AiEntityCard,
|
|
10165
|
-
|
|
10165
|
+
$p as AiEntityListPart,
|
|
10166
10166
|
Ah as AiError,
|
|
10167
10167
|
Ch as AiInput,
|
|
10168
10168
|
rh as AiMessageBubble,
|
|
10169
10169
|
ph as AiMessageList,
|
|
10170
|
-
|
|
10171
|
-
|
|
10170
|
+
Wp as AiMessagePartRenderer,
|
|
10171
|
+
yp as AiProposalCard,
|
|
10172
10172
|
ld as AiSidebar,
|
|
10173
|
-
|
|
10173
|
+
op as AiTablePart,
|
|
10174
10174
|
ah as AiTypingIndicator,
|
|
10175
10175
|
td as JuneauProvider,
|
|
10176
10176
|
Nn as consumeStream,
|
|
@@ -10178,18 +10178,18 @@ export {
|
|
|
10178
10178
|
Zh as createSseAdapter,
|
|
10179
10179
|
K as delay,
|
|
10180
10180
|
Gh as deserializeMessages,
|
|
10181
|
-
|
|
10181
|
+
Zi as getMessageText,
|
|
10182
10182
|
zr as isProposalPart,
|
|
10183
10183
|
id as juneauCs,
|
|
10184
10184
|
Lr as juneauEn,
|
|
10185
10185
|
Kh as mockAdapter,
|
|
10186
10186
|
Pr as parseJuneauWire,
|
|
10187
10187
|
Xh as serializeForStorage,
|
|
10188
|
-
|
|
10188
|
+
Ki as serializeMessages,
|
|
10189
10189
|
Jh as trimChats,
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10190
|
+
nl as trimHistory,
|
|
10191
|
+
ml as useAiChat,
|
|
10192
|
+
xl as useAiChatContext,
|
|
10193
10193
|
nd as useAiChatContextSafe
|
|
10194
10194
|
};
|
|
10195
10195
|
//# sourceMappingURL=index.js.map
|