juneau 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AiChatHeader/AiChatHeader.d.ts.map +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +996 -978
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as Re, useRef as Ue, useEffect as St, useCallback as de, useMemo as Ar, useContext as sn, createContext as Tr } from "react";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as x, jsxs as Y, Fragment as un } from "react/jsx-runtime";
|
|
3
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
|
}
|
|
@@ -15,7 +15,7 @@ function zr(e) {
|
|
|
15
15
|
return e.type === "proposal";
|
|
16
16
|
}
|
|
17
17
|
const el = 1;
|
|
18
|
-
function
|
|
18
|
+
function Gh(e) {
|
|
19
19
|
return e.map((n) => ({
|
|
20
20
|
...n,
|
|
21
21
|
v: el,
|
|
@@ -26,7 +26,7 @@ function Xh(e) {
|
|
|
26
26
|
function tl(e) {
|
|
27
27
|
return zr(e) && !e.proposal.resolved ? { ...e, proposal: { ...e.proposal, resolved: "expired" } } : e;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Jh(e) {
|
|
30
30
|
return e.map(({ v: n, ...t }) => ({
|
|
31
31
|
...t,
|
|
32
32
|
createdAt: new Date(t.createdAt)
|
|
@@ -39,10 +39,10 @@ function nl(e, n) {
|
|
|
39
39
|
t++;
|
|
40
40
|
return e.slice(t);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Kh(e, n) {
|
|
43
43
|
return n <= 0 || e.length <= n ? [...e].sort(Mn) : [...e].sort(Mn).slice(0, n);
|
|
44
44
|
}
|
|
45
|
-
const Mn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(),
|
|
45
|
+
const Mn = (e, n) => n.updatedAt.getTime() - e.updatedAt.getTime(), Zh = {
|
|
46
46
|
async *sendMessage(e) {
|
|
47
47
|
const n = [...e.messages].reverse().find((r) => r.role === "user"), t = n ? Zi(n).toLowerCase() : "";
|
|
48
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);
|
|
@@ -240,7 +240,7 @@ function Pr(e) {
|
|
|
240
240
|
return [];
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ed(e, n = {}) {
|
|
244
244
|
const {
|
|
245
245
|
method: t = "POST",
|
|
246
246
|
headers: r = {},
|
|
@@ -319,7 +319,7 @@ const fl = (e) => {
|
|
|
319
319
|
return [];
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
|
-
function
|
|
322
|
+
function td(e, n = {}) {
|
|
323
323
|
const {
|
|
324
324
|
method: t = "POST",
|
|
325
325
|
headers: r = {},
|
|
@@ -426,7 +426,7 @@ function ml({
|
|
|
426
426
|
const Q = [...j.parts], W = Q[Q.length - 1];
|
|
427
427
|
return W?.type === "text" ? Q[Q.length - 1] = { type: "text", text: W.text + v } : Q.push({ type: "text", text: v }), [...M.slice(0, -1), { ...j, parts: Q }];
|
|
428
428
|
});
|
|
429
|
-
}, []),
|
|
429
|
+
}, []), b = de(async (v, M) => {
|
|
430
430
|
S(null);
|
|
431
431
|
const j = {
|
|
432
432
|
id: dt(),
|
|
@@ -481,10 +481,10 @@ function ml({
|
|
|
481
481
|
}
|
|
482
482
|
}, [e, n, o, N, L]), O = de(async () => {
|
|
483
483
|
const v = u.trim();
|
|
484
|
-
!v || c || (f(""), await
|
|
485
|
-
}, [u, c, a,
|
|
486
|
-
!v.trim() || c || await
|
|
487
|
-
}, [c, a,
|
|
484
|
+
!v || c || (f(""), await b(v, a));
|
|
485
|
+
}, [u, c, a, b]), H = de(async (v) => {
|
|
486
|
+
!v.trim() || c || await b(v, a);
|
|
487
|
+
}, [c, a, b]), B = de(async (v) => {
|
|
488
488
|
if (c) return;
|
|
489
489
|
S(null), h(!0), g(!0);
|
|
490
490
|
const M = {
|
|
@@ -608,13 +608,13 @@ function Te() {
|
|
|
608
608
|
const gl = "_root_1etc2_1", yl = {
|
|
609
609
|
root: gl
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function nd({ 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
616
|
}, a = n ? kl(n) : void 0;
|
|
617
|
-
return /* @__PURE__ */
|
|
617
|
+
return /* @__PURE__ */ x(Dr.Provider, { value: l, children: /* @__PURE__ */ x(
|
|
618
618
|
"div",
|
|
619
619
|
{
|
|
620
620
|
className: [yl.root, i].filter(Boolean).join(" "),
|
|
@@ -681,10 +681,10 @@ function xl() {
|
|
|
681
681
|
);
|
|
682
682
|
return e;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function rd() {
|
|
685
685
|
return sn(cn);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function id({
|
|
688
688
|
adapter: e,
|
|
689
689
|
context: n,
|
|
690
690
|
onProposalConfirm: t,
|
|
@@ -708,9 +708,9 @@ function rd({
|
|
|
708
708
|
() => ({ ...c, setContext: f }),
|
|
709
709
|
[c, f]
|
|
710
710
|
);
|
|
711
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ x(cn.Provider, { value: h, children: a });
|
|
712
712
|
}
|
|
713
|
-
const
|
|
713
|
+
const ld = {
|
|
714
714
|
sidebarTitle: "AI Asistent",
|
|
715
715
|
clearConversation: "Vymazat konverzaci",
|
|
716
716
|
resetConversation: "Resetovat konverzaci",
|
|
@@ -739,7 +739,7 @@ const id = {
|
|
|
739
739
|
historyDeleteChat: "Smazat konverzaci"
|
|
740
740
|
};
|
|
741
741
|
function Nr({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
742
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ x(
|
|
743
743
|
"svg",
|
|
744
744
|
{
|
|
745
745
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -750,12 +750,12 @@ function Nr({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
750
750
|
className: e,
|
|
751
751
|
style: n,
|
|
752
752
|
"aria-hidden": t,
|
|
753
|
-
children: /* @__PURE__ */
|
|
753
|
+
children: /* @__PURE__ */ x("path", { d: "M456 0c-48.6 0-88 39.4-88 88l0 29.2L12.5 390.6c-14 10.8-16.6 30.9-5.9 44.9s30.9 16.6 44.9 5.9L126.1 384l133.1 0 46.6 113.1c5 12.3 19.1 18.1 31.3 13.1s18.1-19.1 13.1-31.3L311.1 384l40.9 0c1.1 0 2.1 0 3.2 0l46.6 113.2c5 12.3 19.1 18.1 31.3 13.1s18.1-19.1 13.1-31.3l-42-102C484.9 354.1 544 280 544 192l0-64 0-8 80.5-20.1c8.6-2.1 13.8-10.8 11.6-19.4C629 52 603.4 32 574 32l-50.1 0C507.7 12.5 483.3 0 456 0zm0 64a24 24 0 1 1 0 48 24 24 0 1 1 0-48z" })
|
|
754
754
|
}
|
|
755
755
|
);
|
|
756
756
|
}
|
|
757
757
|
function bl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
758
|
-
return /* @__PURE__ */
|
|
758
|
+
return /* @__PURE__ */ x(
|
|
759
759
|
"svg",
|
|
760
760
|
{
|
|
761
761
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -766,12 +766,12 @@ function bl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
766
766
|
className: e,
|
|
767
767
|
style: n,
|
|
768
768
|
"aria-hidden": t,
|
|
769
|
-
children: /* @__PURE__ */
|
|
769
|
+
children: /* @__PURE__ */ x("path", { d: "M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s6.2-22.8 16.4-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z" })
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
772
|
}
|
|
773
773
|
function wl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
774
|
-
return /* @__PURE__ */
|
|
774
|
+
return /* @__PURE__ */ x(
|
|
775
775
|
"svg",
|
|
776
776
|
{
|
|
777
777
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -782,12 +782,12 @@ function wl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
782
782
|
className: e,
|
|
783
783
|
style: n,
|
|
784
784
|
"aria-hidden": t,
|
|
785
|
-
children: /* @__PURE__ */
|
|
785
|
+
children: /* @__PURE__ */ x("path", { d: "M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z" })
|
|
786
786
|
}
|
|
787
787
|
);
|
|
788
788
|
}
|
|
789
789
|
function Cl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
790
|
-
return /* @__PURE__ */
|
|
790
|
+
return /* @__PURE__ */ x(
|
|
791
791
|
"svg",
|
|
792
792
|
{
|
|
793
793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -798,12 +798,12 @@ function Cl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
798
798
|
className: e,
|
|
799
799
|
style: n,
|
|
800
800
|
"aria-hidden": t,
|
|
801
|
-
children: /* @__PURE__ */
|
|
801
|
+
children: /* @__PURE__ */ x("path", { d: "M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z" })
|
|
802
802
|
}
|
|
803
803
|
);
|
|
804
804
|
}
|
|
805
805
|
function Sl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
806
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ x(
|
|
807
807
|
"svg",
|
|
808
808
|
{
|
|
809
809
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -814,12 +814,12 @@ function Sl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
814
814
|
className: e,
|
|
815
815
|
style: n,
|
|
816
816
|
"aria-hidden": t,
|
|
817
|
-
children: /* @__PURE__ */
|
|
817
|
+
children: /* @__PURE__ */ x("path", { d: "M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z" })
|
|
818
818
|
}
|
|
819
819
|
);
|
|
820
820
|
}
|
|
821
821
|
function vl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
822
|
-
return /* @__PURE__ */
|
|
822
|
+
return /* @__PURE__ */ x(
|
|
823
823
|
"svg",
|
|
824
824
|
{
|
|
825
825
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -830,12 +830,12 @@ function vl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
830
830
|
className: e,
|
|
831
831
|
style: n,
|
|
832
832
|
"aria-hidden": t,
|
|
833
|
-
children: /* @__PURE__ */
|
|
833
|
+
children: /* @__PURE__ */ x("path", { d: "M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-31.8-31.8C143.9 83.5 196.2 64 252.6 64C370.8 64 464 157.8 464 276c0 77.5-40.8 145.4-102 182.9c-15.1 9.2-19.9 29-10.7 44.1s29 19.9 44.1 10.7C471 467.5 528 378.4 528 276C528 124.1 404.5 0 252.6 0C186 0 125.3 26.4 80 70.2L75 75zM256 152c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z" })
|
|
834
834
|
}
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
837
|
function _l({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
838
|
-
return /* @__PURE__ */
|
|
838
|
+
return /* @__PURE__ */ x(
|
|
839
839
|
"svg",
|
|
840
840
|
{
|
|
841
841
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -846,12 +846,12 @@ function _l({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
846
846
|
className: e,
|
|
847
847
|
style: n,
|
|
848
848
|
"aria-hidden": t,
|
|
849
|
-
children: /* @__PURE__ */
|
|
849
|
+
children: /* @__PURE__ */ x("path", { d: "M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 192 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-26.6 0c-25.8 50.9-72.7 88.5-129.4 99.8L384 416l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-72.2C135.3 332.5 88.4 294.9 62.6 244L48 244c-26.5 0-48-21.5-48-48L0 80zM128 240c0 70.7 57.3 128 128 128s128-57.3 128-128l0-128L128 112l0 128zM512 176l0-64-64 0 0 64-48 0 0 16c0 8.8-.7 17.4-2 25.8c3.3 .1 6.6 .2 9.9 .2l56 0c26.5 0 48-21.5 48-48l0-64zM48 176c0 26.5 21.5 48 48 48l56 0c3.4 0 6.7-.1 9.9-.2c-1.3-8.4-2-17-2-25.8l0-16-48 0 0-64-64 0 0 58z" })
|
|
850
850
|
}
|
|
851
851
|
);
|
|
852
852
|
}
|
|
853
853
|
function El({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
854
|
-
return /* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ x(
|
|
855
855
|
"svg",
|
|
856
856
|
{
|
|
857
857
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -862,12 +862,12 @@ function El({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
862
862
|
className: e,
|
|
863
863
|
style: n,
|
|
864
864
|
"aria-hidden": t,
|
|
865
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ x("path", { d: "M32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416z" })
|
|
866
866
|
}
|
|
867
867
|
);
|
|
868
868
|
}
|
|
869
869
|
function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
870
|
-
return /* @__PURE__ */
|
|
870
|
+
return /* @__PURE__ */ x(
|
|
871
871
|
"svg",
|
|
872
872
|
{
|
|
873
873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -878,12 +878,28 @@ function Il({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
878
878
|
className: e,
|
|
879
879
|
style: n,
|
|
880
880
|
"aria-hidden": t,
|
|
881
|
-
children: /* @__PURE__ */
|
|
881
|
+
children: /* @__PURE__ */ x("path", { d: "M432 64L208 64c-8.8 0-16 7.2-16 16l0 16-64 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-64 16 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192zm64 32c0 17.7 14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 192c-17.7 0-32 14.3-32 32z" })
|
|
882
882
|
}
|
|
883
883
|
);
|
|
884
884
|
}
|
|
885
885
|
function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
886
|
-
return /* @__PURE__ */
|
|
886
|
+
return /* @__PURE__ */ x(
|
|
887
|
+
"svg",
|
|
888
|
+
{
|
|
889
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
890
|
+
viewBox: "0 0 512 512",
|
|
891
|
+
width: "1em",
|
|
892
|
+
height: "1em",
|
|
893
|
+
fill: "currentColor",
|
|
894
|
+
className: e,
|
|
895
|
+
style: n,
|
|
896
|
+
"aria-hidden": t,
|
|
897
|
+
children: /* @__PURE__ */ x("path", { d: "M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z" })
|
|
898
|
+
}
|
|
899
|
+
);
|
|
900
|
+
}
|
|
901
|
+
function Tl({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
902
|
+
return /* @__PURE__ */ x(
|
|
887
903
|
"svg",
|
|
888
904
|
{
|
|
889
905
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -894,26 +910,26 @@ function Al({ className: e, style: n, "aria-hidden": t = !0 }) {
|
|
|
894
910
|
className: e,
|
|
895
911
|
style: n,
|
|
896
912
|
"aria-hidden": t,
|
|
897
|
-
children: /* @__PURE__ */
|
|
913
|
+
children: /* @__PURE__ */ x("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })
|
|
898
914
|
}
|
|
899
915
|
);
|
|
900
916
|
}
|
|
901
|
-
function
|
|
917
|
+
function zl(e, n) {
|
|
902
918
|
const t = {};
|
|
903
919
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
904
920
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
|
905
921
|
).trim();
|
|
906
922
|
}
|
|
907
|
-
const
|
|
923
|
+
const Pl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ll = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Dl = {};
|
|
908
924
|
function Fn(e, n) {
|
|
909
|
-
return (
|
|
925
|
+
return (Dl.jsx ? Ll : Pl).test(e);
|
|
910
926
|
}
|
|
911
|
-
const
|
|
912
|
-
function
|
|
927
|
+
const Nl = /[ \t\n\f\r]/g;
|
|
928
|
+
function Ml(e) {
|
|
913
929
|
return typeof e == "object" ? e.type === "text" ? On(e.value) : !1 : On(e);
|
|
914
930
|
}
|
|
915
931
|
function On(e) {
|
|
916
|
-
return e.replace(
|
|
932
|
+
return e.replace(Nl, "") === "";
|
|
917
933
|
}
|
|
918
934
|
class ct {
|
|
919
935
|
/**
|
|
@@ -967,10 +983,10 @@ ce.prototype.overloadedBoolean = !1;
|
|
|
967
983
|
ce.prototype.property = "";
|
|
968
984
|
ce.prototype.spaceSeparated = !1;
|
|
969
985
|
ce.prototype.space = void 0;
|
|
970
|
-
let
|
|
986
|
+
let Rl = 0;
|
|
971
987
|
const R = je(), Z = je(), Jt = je(), E = je(), G = je(), Fe = je(), pe = je();
|
|
972
988
|
function je() {
|
|
973
|
-
return 2 ** ++
|
|
989
|
+
return 2 ** ++Rl;
|
|
974
990
|
}
|
|
975
991
|
const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
976
992
|
__proto__: null,
|
|
@@ -1087,7 +1103,7 @@ function Fr(e, n) {
|
|
|
1087
1103
|
function Or(e, n) {
|
|
1088
1104
|
return Fr(e, n.toLowerCase());
|
|
1089
1105
|
}
|
|
1090
|
-
const
|
|
1106
|
+
const Fl = Ye({
|
|
1091
1107
|
attributes: {
|
|
1092
1108
|
acceptcharset: "accept-charset",
|
|
1093
1109
|
classname: "class",
|
|
@@ -1458,7 +1474,7 @@ const Rl = Ye({
|
|
|
1458
1474
|
},
|
|
1459
1475
|
space: "html",
|
|
1460
1476
|
transform: Or
|
|
1461
|
-
}),
|
|
1477
|
+
}), Ol = Ye({
|
|
1462
1478
|
attributes: {
|
|
1463
1479
|
accentHeight: "accent-height",
|
|
1464
1480
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -2044,7 +2060,7 @@ const Rl = Ye({
|
|
|
2044
2060
|
transform(e, n) {
|
|
2045
2061
|
return "xml:" + n.slice(3).toLowerCase();
|
|
2046
2062
|
}
|
|
2047
|
-
}),
|
|
2063
|
+
}), jl = {
|
|
2048
2064
|
classId: "classID",
|
|
2049
2065
|
dataType: "datatype",
|
|
2050
2066
|
itemId: "itemID",
|
|
@@ -2062,20 +2078,20 @@ const Rl = Ye({
|
|
|
2062
2078
|
xLinkTitle: "xlinkTitle",
|
|
2063
2079
|
xLinkType: "xlinkType",
|
|
2064
2080
|
xmlnsXLink: "xmlnsXlink"
|
|
2065
|
-
},
|
|
2066
|
-
function
|
|
2081
|
+
}, Bl = /[A-Z]/g, Bn = /-[a-z]/g, $l = /^data[-\w.:]+$/i;
|
|
2082
|
+
function Hl(e, n) {
|
|
2067
2083
|
const t = Gt(n);
|
|
2068
2084
|
let r = n, i = ce;
|
|
2069
2085
|
if (t in e.normal)
|
|
2070
2086
|
return e.property[e.normal[t]];
|
|
2071
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
2087
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && $l.test(n)) {
|
|
2072
2088
|
if (n.charAt(4) === "-") {
|
|
2073
|
-
const o = n.slice(5).replace(Bn,
|
|
2089
|
+
const o = n.slice(5).replace(Bn, ql);
|
|
2074
2090
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
2075
2091
|
} else {
|
|
2076
2092
|
const o = n.slice(4);
|
|
2077
2093
|
if (!Bn.test(o)) {
|
|
2078
|
-
let l = o.replace(
|
|
2094
|
+
let l = o.replace(Bl, Vl);
|
|
2079
2095
|
l.charAt(0) !== "-" && (l = "-" + l), n = "data" + l;
|
|
2080
2096
|
}
|
|
2081
2097
|
}
|
|
@@ -2083,21 +2099,21 @@ function $l(e, n) {
|
|
|
2083
2099
|
}
|
|
2084
2100
|
return new i(r, n);
|
|
2085
2101
|
}
|
|
2086
|
-
function
|
|
2102
|
+
function Vl(e) {
|
|
2087
2103
|
return "-" + e.toLowerCase();
|
|
2088
2104
|
}
|
|
2089
|
-
function
|
|
2105
|
+
function ql(e) {
|
|
2090
2106
|
return e.charAt(1).toUpperCase();
|
|
2091
2107
|
}
|
|
2092
|
-
const
|
|
2093
|
-
function
|
|
2108
|
+
const Ul = Mr([Rr, Fl, jr, Br, $r], "html"), pn = Mr([Rr, Ol, jr, Br, $r], "svg");
|
|
2109
|
+
function Wl(e) {
|
|
2094
2110
|
return e.join(" ").trim();
|
|
2095
2111
|
}
|
|
2096
2112
|
function Hr(e) {
|
|
2097
2113
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2098
2114
|
}
|
|
2099
2115
|
var Ve = {}, Nt, $n;
|
|
2100
|
-
function
|
|
2116
|
+
function Yl() {
|
|
2101
2117
|
if ($n) return Nt;
|
|
2102
2118
|
$n = 1;
|
|
2103
2119
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
|
@@ -2117,13 +2133,13 @@ function Wl() {
|
|
|
2117
2133
|
function N() {
|
|
2118
2134
|
var P = { line: I, column: _ };
|
|
2119
2135
|
return function(v) {
|
|
2120
|
-
return v.position = new
|
|
2136
|
+
return v.position = new b(P), B(), v;
|
|
2121
2137
|
};
|
|
2122
2138
|
}
|
|
2123
|
-
function
|
|
2139
|
+
function b(P) {
|
|
2124
2140
|
this.start = P, this.end = { line: I, column: _ }, this.source = y.source;
|
|
2125
2141
|
}
|
|
2126
|
-
|
|
2142
|
+
b.prototype.content = S;
|
|
2127
2143
|
function O(P) {
|
|
2128
2144
|
var v = new Error(
|
|
2129
2145
|
y.source + ":" + I + ":" + _ + ": " + P
|
|
@@ -2187,14 +2203,14 @@ function Wl() {
|
|
|
2187
2203
|
return Nt = g, Nt;
|
|
2188
2204
|
}
|
|
2189
2205
|
var Hn;
|
|
2190
|
-
function
|
|
2206
|
+
function Ql() {
|
|
2191
2207
|
if (Hn) return Ve;
|
|
2192
2208
|
Hn = 1;
|
|
2193
2209
|
var e = Ve && Ve.__importDefault || function(r) {
|
|
2194
2210
|
return r && r.__esModule ? r : { default: r };
|
|
2195
2211
|
};
|
|
2196
2212
|
Object.defineProperty(Ve, "__esModule", { value: !0 }), Ve.default = t;
|
|
2197
|
-
const n = e(
|
|
2213
|
+
const n = e(Yl());
|
|
2198
2214
|
function t(r, i) {
|
|
2199
2215
|
let o = null;
|
|
2200
2216
|
if (!r || typeof r != "string")
|
|
@@ -2210,7 +2226,7 @@ function Yl() {
|
|
|
2210
2226
|
return Ve;
|
|
2211
2227
|
}
|
|
2212
2228
|
var Ke = {}, Vn;
|
|
2213
|
-
function
|
|
2229
|
+
function Xl() {
|
|
2214
2230
|
if (Vn) return Ke;
|
|
2215
2231
|
Vn = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.camelCase = void 0;
|
|
2216
2232
|
var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, o = function(u) {
|
|
@@ -2225,12 +2241,12 @@ function Ql() {
|
|
|
2225
2241
|
return Ke.camelCase = s, Ke;
|
|
2226
2242
|
}
|
|
2227
2243
|
var Ze, qn;
|
|
2228
|
-
function
|
|
2244
|
+
function Gl() {
|
|
2229
2245
|
if (qn) return Ze;
|
|
2230
2246
|
qn = 1;
|
|
2231
2247
|
var e = Ze && Ze.__importDefault || function(i) {
|
|
2232
2248
|
return i && i.__esModule ? i : { default: i };
|
|
2233
|
-
}, n = e(
|
|
2249
|
+
}, n = e(Ql()), t = Xl();
|
|
2234
2250
|
function r(i, o) {
|
|
2235
2251
|
var l = {};
|
|
2236
2252
|
return !i || typeof i != "string" || (0, n.default)(i, function(a, s) {
|
|
@@ -2239,8 +2255,8 @@ function Xl() {
|
|
|
2239
2255
|
}
|
|
2240
2256
|
return r.default = r, Ze = r, Ze;
|
|
2241
2257
|
}
|
|
2242
|
-
var
|
|
2243
|
-
const
|
|
2258
|
+
var Jl = Gl();
|
|
2259
|
+
const Kl = /* @__PURE__ */ Hr(Jl), Vr = qr("end"), hn = qr("start");
|
|
2244
2260
|
function qr(e) {
|
|
2245
2261
|
return n;
|
|
2246
2262
|
function n(t) {
|
|
@@ -2253,7 +2269,7 @@ function qr(e) {
|
|
|
2253
2269
|
};
|
|
2254
2270
|
}
|
|
2255
2271
|
}
|
|
2256
|
-
function
|
|
2272
|
+
function Zl(e) {
|
|
2257
2273
|
const n = hn(e), t = Vr(e);
|
|
2258
2274
|
if (n && t)
|
|
2259
2275
|
return { start: n, end: t };
|
|
@@ -2357,8 +2373,8 @@ le.prototype.fatal = void 0;
|
|
|
2357
2373
|
le.prototype.place = void 0;
|
|
2358
2374
|
le.prototype.ruleId = void 0;
|
|
2359
2375
|
le.prototype.source = void 0;
|
|
2360
|
-
const dn = {}.hasOwnProperty,
|
|
2361
|
-
function
|
|
2376
|
+
const dn = {}.hasOwnProperty, eo = /* @__PURE__ */ new Map(), to = /[A-Z]/g, no = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), ro = /* @__PURE__ */ new Set(["td", "th"]), Ur = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
2377
|
+
function io(e, n) {
|
|
2362
2378
|
if (!n || n.Fragment === void 0)
|
|
2363
2379
|
throw new TypeError("Expected `Fragment` in options");
|
|
2364
2380
|
const t = n.filePath || void 0;
|
|
@@ -2368,13 +2384,13 @@ function ro(e, n) {
|
|
|
2368
2384
|
throw new TypeError(
|
|
2369
2385
|
"Expected `jsxDEV` in options when `development: true`"
|
|
2370
2386
|
);
|
|
2371
|
-
r =
|
|
2387
|
+
r = po(t, n.jsxDEV);
|
|
2372
2388
|
} else {
|
|
2373
2389
|
if (typeof n.jsx != "function")
|
|
2374
2390
|
throw new TypeError("Expected `jsx` in production options");
|
|
2375
2391
|
if (typeof n.jsxs != "function")
|
|
2376
2392
|
throw new TypeError("Expected `jsxs` in production options");
|
|
2377
|
-
r =
|
|
2393
|
+
r = fo(t, n.jsx, n.jsxs);
|
|
2378
2394
|
}
|
|
2379
2395
|
const i = {
|
|
2380
2396
|
Fragment: n.Fragment,
|
|
@@ -2387,7 +2403,7 @@ function ro(e, n) {
|
|
|
2387
2403
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
|
2388
2404
|
passKeys: n.passKeys !== !1,
|
|
2389
2405
|
passNode: n.passNode || !1,
|
|
2390
|
-
schema: n.space === "svg" ? pn :
|
|
2406
|
+
schema: n.space === "svg" ? pn : Ul,
|
|
2391
2407
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
2392
2408
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
2393
2409
|
}, o = Wr(i, e, void 0);
|
|
@@ -2400,29 +2416,29 @@ function ro(e, n) {
|
|
|
2400
2416
|
}
|
|
2401
2417
|
function Wr(e, n, t) {
|
|
2402
2418
|
if (n.type === "element")
|
|
2403
|
-
return
|
|
2419
|
+
return lo(e, n, t);
|
|
2404
2420
|
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
|
2405
|
-
return
|
|
2421
|
+
return oo(e, n);
|
|
2406
2422
|
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
|
|
2407
|
-
return
|
|
2423
|
+
return so(e, n, t);
|
|
2408
2424
|
if (n.type === "mdxjsEsm")
|
|
2409
|
-
return
|
|
2425
|
+
return ao(e, n);
|
|
2410
2426
|
if (n.type === "root")
|
|
2411
|
-
return
|
|
2427
|
+
return uo(e, n, t);
|
|
2412
2428
|
if (n.type === "text")
|
|
2413
|
-
return
|
|
2429
|
+
return co(e, n);
|
|
2414
2430
|
}
|
|
2415
|
-
function
|
|
2431
|
+
function lo(e, n, t) {
|
|
2416
2432
|
const r = e.schema;
|
|
2417
2433
|
let i = r;
|
|
2418
2434
|
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
|
|
2419
|
-
const o = Qr(e, n.tagName, !1), l =
|
|
2435
|
+
const o = Qr(e, n.tagName, !1), l = ho(e, n);
|
|
2420
2436
|
let a = gn(e, n);
|
|
2421
|
-
return
|
|
2422
|
-
return typeof s == "string" ? !
|
|
2437
|
+
return no.has(n.tagName) && (a = a.filter(function(s) {
|
|
2438
|
+
return typeof s == "string" ? !Ml(s) : !0;
|
|
2423
2439
|
})), Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
|
|
2424
2440
|
}
|
|
2425
|
-
function
|
|
2441
|
+
function oo(e, n) {
|
|
2426
2442
|
if (n.data && n.data.estree && e.evaluater) {
|
|
2427
2443
|
const r = n.data.estree.body[0];
|
|
2428
2444
|
return r.type, /** @type {Child | undefined} */
|
|
@@ -2430,7 +2446,7 @@ function lo(e, n) {
|
|
|
2430
2446
|
}
|
|
2431
2447
|
st(e, n.position);
|
|
2432
2448
|
}
|
|
2433
|
-
function
|
|
2449
|
+
function ao(e, n) {
|
|
2434
2450
|
if (n.data && n.data.estree && e.evaluater)
|
|
2435
2451
|
return (
|
|
2436
2452
|
/** @type {Child | undefined} */
|
|
@@ -2438,18 +2454,18 @@ function oo(e, n) {
|
|
|
2438
2454
|
);
|
|
2439
2455
|
st(e, n.position);
|
|
2440
2456
|
}
|
|
2441
|
-
function
|
|
2457
|
+
function so(e, n, t) {
|
|
2442
2458
|
const r = e.schema;
|
|
2443
2459
|
let i = r;
|
|
2444
2460
|
n.name === "svg" && r.space === "html" && (i = pn, e.schema = i), e.ancestors.push(n);
|
|
2445
|
-
const o = n.name === null ? e.Fragment : Qr(e, n.name, !0), l =
|
|
2461
|
+
const o = n.name === null ? e.Fragment : Qr(e, n.name, !0), l = mo(e, n), a = gn(e, n);
|
|
2446
2462
|
return Yr(e, l, o, n), mn(l, a), e.ancestors.pop(), e.schema = r, e.create(n, o, l, t);
|
|
2447
2463
|
}
|
|
2448
|
-
function
|
|
2464
|
+
function uo(e, n, t) {
|
|
2449
2465
|
const r = {};
|
|
2450
2466
|
return mn(r, gn(e, n)), e.create(n, e.Fragment, r, t);
|
|
2451
2467
|
}
|
|
2452
|
-
function
|
|
2468
|
+
function co(e, n) {
|
|
2453
2469
|
return n.value;
|
|
2454
2470
|
}
|
|
2455
2471
|
function Yr(e, n, t, r) {
|
|
@@ -2461,14 +2477,14 @@ function mn(e, n) {
|
|
|
2461
2477
|
t && (e.children = t);
|
|
2462
2478
|
}
|
|
2463
2479
|
}
|
|
2464
|
-
function
|
|
2480
|
+
function fo(e, n, t) {
|
|
2465
2481
|
return r;
|
|
2466
2482
|
function r(i, o, l, a) {
|
|
2467
2483
|
const u = Array.isArray(l.children) ? t : n;
|
|
2468
2484
|
return a ? u(o, l, a) : u(o, l);
|
|
2469
2485
|
}
|
|
2470
2486
|
}
|
|
2471
|
-
function
|
|
2487
|
+
function po(e, n) {
|
|
2472
2488
|
return t;
|
|
2473
2489
|
function t(r, i, o, l) {
|
|
2474
2490
|
const a = Array.isArray(o.children), s = hn(r);
|
|
@@ -2486,15 +2502,15 @@ function fo(e, n) {
|
|
|
2486
2502
|
);
|
|
2487
2503
|
}
|
|
2488
2504
|
}
|
|
2489
|
-
function
|
|
2505
|
+
function ho(e, n) {
|
|
2490
2506
|
const t = {};
|
|
2491
2507
|
let r, i;
|
|
2492
2508
|
for (i in n.properties)
|
|
2493
2509
|
if (i !== "children" && dn.call(n.properties, i)) {
|
|
2494
|
-
const o =
|
|
2510
|
+
const o = go(e, i, n.properties[i]);
|
|
2495
2511
|
if (o) {
|
|
2496
2512
|
const [l, a] = o;
|
|
2497
|
-
e.tableCellAlignToStyle && l === "align" && typeof a == "string" &&
|
|
2513
|
+
e.tableCellAlignToStyle && l === "align" && typeof a == "string" && ro.has(n.tagName) ? r = a : t[l] = a;
|
|
2498
2514
|
}
|
|
2499
2515
|
}
|
|
2500
2516
|
if (r) {
|
|
@@ -2506,7 +2522,7 @@ function po(e, n) {
|
|
|
2506
2522
|
}
|
|
2507
2523
|
return t;
|
|
2508
2524
|
}
|
|
2509
|
-
function
|
|
2525
|
+
function mo(e, n) {
|
|
2510
2526
|
const t = {};
|
|
2511
2527
|
for (const r of n.attributes)
|
|
2512
2528
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -2541,7 +2557,7 @@ function ho(e, n) {
|
|
|
2541
2557
|
function gn(e, n) {
|
|
2542
2558
|
const t = [];
|
|
2543
2559
|
let r = -1;
|
|
2544
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
2560
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : eo;
|
|
2545
2561
|
for (; ++r < n.children.length; ) {
|
|
2546
2562
|
const o = n.children[r];
|
|
2547
2563
|
let l;
|
|
@@ -2557,22 +2573,22 @@ function gn(e, n) {
|
|
|
2557
2573
|
}
|
|
2558
2574
|
return t;
|
|
2559
2575
|
}
|
|
2560
|
-
function
|
|
2561
|
-
const r =
|
|
2576
|
+
function go(e, n, t) {
|
|
2577
|
+
const r = Hl(e.schema, n);
|
|
2562
2578
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
2563
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
|
2564
|
-
let i = typeof t == "object" ? t :
|
|
2565
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
2579
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? zl(t) : Wl(t)), r.property === "style") {
|
|
2580
|
+
let i = typeof t == "object" ? t : yo(e, String(t));
|
|
2581
|
+
return e.stylePropertyNameCase === "css" && (i = ko(i)), ["style", i];
|
|
2566
2582
|
}
|
|
2567
2583
|
return [
|
|
2568
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
2584
|
+
e.elementAttributeNameCase === "react" && r.space ? jl[r.property] || r.property : r.attribute,
|
|
2569
2585
|
t
|
|
2570
2586
|
];
|
|
2571
2587
|
}
|
|
2572
2588
|
}
|
|
2573
|
-
function
|
|
2589
|
+
function yo(e, n) {
|
|
2574
2590
|
try {
|
|
2575
|
-
return
|
|
2591
|
+
return Kl(n, { reactCompat: !0 });
|
|
2576
2592
|
} catch (t) {
|
|
2577
2593
|
if (e.ignoreInvalidStyle)
|
|
2578
2594
|
return {};
|
|
@@ -2631,18 +2647,18 @@ function st(e, n) {
|
|
|
2631
2647
|
);
|
|
2632
2648
|
throw t.file = e.filePath || void 0, t.url = Ur + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
2633
2649
|
}
|
|
2634
|
-
function
|
|
2650
|
+
function ko(e) {
|
|
2635
2651
|
const n = {};
|
|
2636
2652
|
let t;
|
|
2637
2653
|
for (t in e)
|
|
2638
|
-
dn.call(e, t) && (n[
|
|
2654
|
+
dn.call(e, t) && (n[xo(t)] = e[t]);
|
|
2639
2655
|
return n;
|
|
2640
2656
|
}
|
|
2641
|
-
function
|
|
2642
|
-
let n = e.replace(
|
|
2657
|
+
function xo(e) {
|
|
2658
|
+
let n = e.replace(to, bo);
|
|
2643
2659
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
2644
2660
|
}
|
|
2645
|
-
function
|
|
2661
|
+
function bo(e) {
|
|
2646
2662
|
return "-" + e.toLowerCase();
|
|
2647
2663
|
}
|
|
2648
2664
|
const Mt = {
|
|
@@ -2667,13 +2683,13 @@ const Mt = {
|
|
|
2667
2683
|
"track",
|
|
2668
2684
|
"video"
|
|
2669
2685
|
]
|
|
2670
|
-
},
|
|
2686
|
+
}, wo = {};
|
|
2671
2687
|
function yn(e, n) {
|
|
2672
|
-
const t =
|
|
2688
|
+
const t = wo, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
2673
2689
|
return Xr(e, r, i);
|
|
2674
2690
|
}
|
|
2675
2691
|
function Xr(e, n, t) {
|
|
2676
|
-
if (
|
|
2692
|
+
if (Co(e)) {
|
|
2677
2693
|
if ("value" in e)
|
|
2678
2694
|
return e.type === "html" && !t ? "" : e.value;
|
|
2679
2695
|
if (n && "alt" in e && e.alt)
|
|
@@ -2690,7 +2706,7 @@ function Yn(e, n, t) {
|
|
|
2690
2706
|
r[i] = Xr(e[i], n, t);
|
|
2691
2707
|
return r.join("");
|
|
2692
2708
|
}
|
|
2693
|
-
function
|
|
2709
|
+
function Co(e) {
|
|
2694
2710
|
return !!(e && typeof e == "object");
|
|
2695
2711
|
}
|
|
2696
2712
|
const Qn = document.createElement("i");
|
|
@@ -2717,10 +2733,10 @@ function Gr(e) {
|
|
|
2717
2733
|
const n = {};
|
|
2718
2734
|
let t = -1;
|
|
2719
2735
|
for (; ++t < e.length; )
|
|
2720
|
-
|
|
2736
|
+
So(n, e[t]);
|
|
2721
2737
|
return n;
|
|
2722
2738
|
}
|
|
2723
|
-
function
|
|
2739
|
+
function So(e, n) {
|
|
2724
2740
|
let t;
|
|
2725
2741
|
for (t in n) {
|
|
2726
2742
|
const i = (Xn.call(e, t) ? e[t] : void 0) || (e[t] = {}), o = n[t];
|
|
@@ -2729,7 +2745,7 @@ function Co(e, n) {
|
|
|
2729
2745
|
for (l in o) {
|
|
2730
2746
|
Xn.call(i, l) || (i[l] = []);
|
|
2731
2747
|
const a = o[l];
|
|
2732
|
-
|
|
2748
|
+
vo(
|
|
2733
2749
|
// @ts-expect-error Looks like a list.
|
|
2734
2750
|
i[l],
|
|
2735
2751
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -2737,7 +2753,7 @@ function Co(e, n) {
|
|
|
2737
2753
|
}
|
|
2738
2754
|
}
|
|
2739
2755
|
}
|
|
2740
|
-
function
|
|
2756
|
+
function vo(e, n) {
|
|
2741
2757
|
let t = -1;
|
|
2742
2758
|
const r = [];
|
|
2743
2759
|
for (; ++t < n.length; )
|
|
@@ -2760,7 +2776,7 @@ function Jr(e, n) {
|
|
|
2760
2776
|
function ke(e) {
|
|
2761
2777
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2762
2778
|
}
|
|
2763
|
-
const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/),
|
|
2779
|
+
const ae = ze(/[A-Za-z]/), ie = ze(/[\dA-Za-z]/), _o = ze(/[#-'*+\--9=?A-Z^-~]/);
|
|
2764
2780
|
function vt(e) {
|
|
2765
2781
|
return (
|
|
2766
2782
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2768,7 +2784,7 @@ function vt(e) {
|
|
|
2768
2784
|
e !== null && (e < 32 || e === 127)
|
|
2769
2785
|
);
|
|
2770
2786
|
}
|
|
2771
|
-
const en = ze(/\d/),
|
|
2787
|
+
const en = ze(/\d/), Eo = ze(/[\dA-Fa-f]/), Io = ze(/[!-/:-@[-`{-~]/);
|
|
2772
2788
|
function D(e) {
|
|
2773
2789
|
return e !== null && e < -2;
|
|
2774
2790
|
}
|
|
@@ -2815,10 +2831,10 @@ function q(e, n, t, r) {
|
|
|
2815
2831
|
return $(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
|
|
2816
2832
|
}
|
|
2817
2833
|
}
|
|
2818
|
-
const
|
|
2819
|
-
tokenize:
|
|
2834
|
+
const Ao = {
|
|
2835
|
+
tokenize: To
|
|
2820
2836
|
};
|
|
2821
|
-
function
|
|
2837
|
+
function To(e) {
|
|
2822
2838
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
2823
2839
|
let t;
|
|
2824
2840
|
return n;
|
|
@@ -2847,12 +2863,12 @@ function Ao(e) {
|
|
|
2847
2863
|
return D(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
|
2848
2864
|
}
|
|
2849
2865
|
}
|
|
2850
|
-
const
|
|
2851
|
-
tokenize: zo
|
|
2852
|
-
}, Gn = {
|
|
2866
|
+
const zo = {
|
|
2853
2867
|
tokenize: Po
|
|
2868
|
+
}, Gn = {
|
|
2869
|
+
tokenize: Lo
|
|
2854
2870
|
};
|
|
2855
|
-
function
|
|
2871
|
+
function Po(e) {
|
|
2856
2872
|
const n = this, t = [];
|
|
2857
2873
|
let r = 0, i, o, l;
|
|
2858
2874
|
return a;
|
|
@@ -2867,17 +2883,17 @@ function zo(e) {
|
|
|
2867
2883
|
if (r++, n.containerState._closeFlow) {
|
|
2868
2884
|
n.containerState._closeFlow = void 0, i && I();
|
|
2869
2885
|
const L = n.events.length;
|
|
2870
|
-
let N = L,
|
|
2886
|
+
let N = L, b;
|
|
2871
2887
|
for (; N--; )
|
|
2872
2888
|
if (n.events[N][0] === "exit" && n.events[N][1].type === "chunkFlow") {
|
|
2873
|
-
|
|
2889
|
+
b = n.events[N][1].end;
|
|
2874
2890
|
break;
|
|
2875
2891
|
}
|
|
2876
2892
|
y(r);
|
|
2877
2893
|
let O = L;
|
|
2878
2894
|
for (; O < n.events.length; )
|
|
2879
2895
|
n.events[O][1].end = {
|
|
2880
|
-
...
|
|
2896
|
+
...b
|
|
2881
2897
|
}, O++;
|
|
2882
2898
|
return he(n.events, N + 1, 0, n.events.slice(L)), n.events.length = O, u(_);
|
|
2883
2899
|
}
|
|
@@ -2926,13 +2942,13 @@ function zo(e) {
|
|
|
2926
2942
|
function S(_, L) {
|
|
2927
2943
|
const N = n.sliceStream(_);
|
|
2928
2944
|
if (L && N.push(null), _.previous = o, o && (o.next = _), o = _, i.defineSkip(_.start), i.write(N), n.parser.lazy[_.start.line]) {
|
|
2929
|
-
let
|
|
2930
|
-
for (;
|
|
2945
|
+
let b = i.events.length;
|
|
2946
|
+
for (; b--; )
|
|
2931
2947
|
if (
|
|
2932
2948
|
// The token starts before the line ending…
|
|
2933
|
-
i.events[
|
|
2934
|
-
(!i.events[
|
|
2935
|
-
i.events[
|
|
2949
|
+
i.events[b][1].start.offset < l && // …and either is not ended yet…
|
|
2950
|
+
(!i.events[b][1].end || // …or ends after it.
|
|
2951
|
+
i.events[b][1].end.offset > l)
|
|
2936
2952
|
)
|
|
2937
2953
|
return;
|
|
2938
2954
|
const O = n.events.length;
|
|
@@ -2945,11 +2961,11 @@ function zo(e) {
|
|
|
2945
2961
|
}
|
|
2946
2962
|
B = !0;
|
|
2947
2963
|
}
|
|
2948
|
-
for (y(r),
|
|
2949
|
-
n.events[
|
|
2964
|
+
for (y(r), b = O; b < n.events.length; )
|
|
2965
|
+
n.events[b][1].end = {
|
|
2950
2966
|
...k
|
|
2951
|
-
},
|
|
2952
|
-
he(n.events, H + 1, 0, n.events.slice(O)), n.events.length =
|
|
2967
|
+
}, b++;
|
|
2968
|
+
he(n.events, H + 1, 0, n.events.slice(O)), n.events.length = b;
|
|
2953
2969
|
}
|
|
2954
2970
|
}
|
|
2955
2971
|
function y(_) {
|
|
@@ -2964,7 +2980,7 @@ function zo(e) {
|
|
|
2964
2980
|
i.write([null]), o = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
2965
2981
|
}
|
|
2966
2982
|
}
|
|
2967
|
-
function
|
|
2983
|
+
function Lo(e, n, t) {
|
|
2968
2984
|
return q(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2969
2985
|
}
|
|
2970
2986
|
function We(e) {
|
|
@@ -2984,10 +3000,10 @@ function Tt(e, n, t) {
|
|
|
2984
3000
|
}
|
|
2985
3001
|
const tn = {
|
|
2986
3002
|
name: "attention",
|
|
2987
|
-
resolveAll:
|
|
2988
|
-
tokenize:
|
|
3003
|
+
resolveAll: Do,
|
|
3004
|
+
tokenize: No
|
|
2989
3005
|
};
|
|
2990
|
-
function
|
|
3006
|
+
function Do(e, n) {
|
|
2991
3007
|
let t = -1, r, i, o, l, a, s, u, f;
|
|
2992
3008
|
for (; ++t < e.length; )
|
|
2993
3009
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
|
@@ -3042,7 +3058,7 @@ function Lo(e, n) {
|
|
|
3042
3058
|
e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
|
|
3043
3059
|
return e;
|
|
3044
3060
|
}
|
|
3045
|
-
function
|
|
3061
|
+
function No(e, n) {
|
|
3046
3062
|
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = We(r);
|
|
3047
3063
|
let o;
|
|
3048
3064
|
return l;
|
|
@@ -3059,11 +3075,11 @@ function Do(e, n) {
|
|
|
3059
3075
|
function Jn(e, n) {
|
|
3060
3076
|
e.column += n, e.offset += n, e._bufferIndex += n;
|
|
3061
3077
|
}
|
|
3062
|
-
const
|
|
3078
|
+
const Mo = {
|
|
3063
3079
|
name: "autolink",
|
|
3064
|
-
tokenize:
|
|
3080
|
+
tokenize: Ro
|
|
3065
3081
|
};
|
|
3066
|
-
function
|
|
3082
|
+
function Ro(e, n, t) {
|
|
3067
3083
|
let r = 0;
|
|
3068
3084
|
return i;
|
|
3069
3085
|
function i(p) {
|
|
@@ -3082,7 +3098,7 @@ function Mo(e, n, t) {
|
|
|
3082
3098
|
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);
|
|
3083
3099
|
}
|
|
3084
3100
|
function u(p) {
|
|
3085
|
-
return p === 64 ? (e.consume(p), f) :
|
|
3101
|
+
return p === 64 ? (e.consume(p), f) : _o(p) ? (e.consume(p), u) : t(p);
|
|
3086
3102
|
}
|
|
3087
3103
|
function f(p) {
|
|
3088
3104
|
return ie(p) ? c(p) : t(p);
|
|
@@ -3100,9 +3116,9 @@ function Mo(e, n, t) {
|
|
|
3100
3116
|
}
|
|
3101
3117
|
const ft = {
|
|
3102
3118
|
partial: !0,
|
|
3103
|
-
tokenize:
|
|
3119
|
+
tokenize: Fo
|
|
3104
3120
|
};
|
|
3105
|
-
function
|
|
3121
|
+
function Fo(e, n, t) {
|
|
3106
3122
|
return r;
|
|
3107
3123
|
function r(o) {
|
|
3108
3124
|
return $(o) ? q(e, i, "linePrefix")(o) : i(o);
|
|
@@ -3113,13 +3129,13 @@ function Ro(e, n, t) {
|
|
|
3113
3129
|
}
|
|
3114
3130
|
const Kr = {
|
|
3115
3131
|
continuation: {
|
|
3116
|
-
tokenize:
|
|
3132
|
+
tokenize: jo
|
|
3117
3133
|
},
|
|
3118
|
-
exit:
|
|
3134
|
+
exit: Bo,
|
|
3119
3135
|
name: "blockQuote",
|
|
3120
|
-
tokenize:
|
|
3136
|
+
tokenize: Oo
|
|
3121
3137
|
};
|
|
3122
|
-
function
|
|
3138
|
+
function Oo(e, n, t) {
|
|
3123
3139
|
const r = this;
|
|
3124
3140
|
return i;
|
|
3125
3141
|
function i(l) {
|
|
@@ -3135,7 +3151,7 @@ function Fo(e, n, t) {
|
|
|
3135
3151
|
return $(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
|
|
3136
3152
|
}
|
|
3137
3153
|
}
|
|
3138
|
-
function
|
|
3154
|
+
function jo(e, n, t) {
|
|
3139
3155
|
const r = this;
|
|
3140
3156
|
return i;
|
|
3141
3157
|
function i(l) {
|
|
@@ -3145,27 +3161,27 @@ function Oo(e, n, t) {
|
|
|
3145
3161
|
return e.attempt(Kr, n, t)(l);
|
|
3146
3162
|
}
|
|
3147
3163
|
}
|
|
3148
|
-
function
|
|
3164
|
+
function Bo(e) {
|
|
3149
3165
|
e.exit("blockQuote");
|
|
3150
3166
|
}
|
|
3151
3167
|
const Zr = {
|
|
3152
3168
|
name: "characterEscape",
|
|
3153
|
-
tokenize:
|
|
3169
|
+
tokenize: $o
|
|
3154
3170
|
};
|
|
3155
|
-
function
|
|
3171
|
+
function $o(e, n, t) {
|
|
3156
3172
|
return r;
|
|
3157
3173
|
function r(o) {
|
|
3158
3174
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
3159
3175
|
}
|
|
3160
3176
|
function i(o) {
|
|
3161
|
-
return
|
|
3177
|
+
return Io(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(o);
|
|
3162
3178
|
}
|
|
3163
3179
|
}
|
|
3164
3180
|
const ei = {
|
|
3165
3181
|
name: "characterReference",
|
|
3166
|
-
tokenize:
|
|
3182
|
+
tokenize: Ho
|
|
3167
3183
|
};
|
|
3168
|
-
function
|
|
3184
|
+
function Ho(e, n, t) {
|
|
3169
3185
|
const r = this;
|
|
3170
3186
|
let i = 0, o, l;
|
|
3171
3187
|
return a;
|
|
@@ -3176,7 +3192,7 @@ function $o(e, n, t) {
|
|
|
3176
3192
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l = ie, f(c));
|
|
3177
3193
|
}
|
|
3178
3194
|
function u(c) {
|
|
3179
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
3195
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Eo, f) : (e.enter("characterReferenceValue"), o = 7, l = en, f(c));
|
|
3180
3196
|
}
|
|
3181
3197
|
function f(c) {
|
|
3182
3198
|
if (c === 59 && i) {
|
|
@@ -3188,84 +3204,84 @@ function $o(e, n, t) {
|
|
|
3188
3204
|
}
|
|
3189
3205
|
const Kn = {
|
|
3190
3206
|
partial: !0,
|
|
3191
|
-
tokenize:
|
|
3207
|
+
tokenize: qo
|
|
3192
3208
|
}, Zn = {
|
|
3193
3209
|
concrete: !0,
|
|
3194
3210
|
name: "codeFenced",
|
|
3195
|
-
tokenize:
|
|
3211
|
+
tokenize: Vo
|
|
3196
3212
|
};
|
|
3197
|
-
function
|
|
3213
|
+
function Vo(e, n, t) {
|
|
3198
3214
|
const r = this, i = {
|
|
3199
3215
|
partial: !0,
|
|
3200
3216
|
tokenize: N
|
|
3201
3217
|
};
|
|
3202
3218
|
let o = 0, l = 0, a;
|
|
3203
3219
|
return s;
|
|
3204
|
-
function s(
|
|
3205
|
-
return u(
|
|
3220
|
+
function s(b) {
|
|
3221
|
+
return u(b);
|
|
3206
3222
|
}
|
|
3207
|
-
function u(
|
|
3223
|
+
function u(b) {
|
|
3208
3224
|
const O = r.events[r.events.length - 1];
|
|
3209
|
-
return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a =
|
|
3225
|
+
return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = b, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(b);
|
|
3210
3226
|
}
|
|
3211
|
-
function f(
|
|
3212
|
-
return
|
|
3227
|
+
function f(b) {
|
|
3228
|
+
return b === a ? (l++, e.consume(b), f) : l < 3 ? t(b) : (e.exit("codeFencedFenceSequence"), $(b) ? q(e, c, "whitespace")(b) : c(b));
|
|
3213
3229
|
}
|
|
3214
|
-
function c(
|
|
3215
|
-
return
|
|
3230
|
+
function c(b) {
|
|
3231
|
+
return b === null || D(b) ? (e.exit("codeFencedFence"), r.interrupt ? n(b) : e.check(Kn, C, L)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
3216
3232
|
contentType: "string"
|
|
3217
|
-
}), h(
|
|
3233
|
+
}), h(b));
|
|
3218
3234
|
}
|
|
3219
|
-
function h(
|
|
3220
|
-
return
|
|
3235
|
+
function h(b) {
|
|
3236
|
+
return b === null || D(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(b)) : $(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(b)) : b === 96 && b === a ? t(b) : (e.consume(b), h);
|
|
3221
3237
|
}
|
|
3222
|
-
function p(
|
|
3223
|
-
return
|
|
3238
|
+
function p(b) {
|
|
3239
|
+
return b === null || D(b) ? c(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
3224
3240
|
contentType: "string"
|
|
3225
|
-
}), g(
|
|
3241
|
+
}), g(b));
|
|
3226
3242
|
}
|
|
3227
|
-
function g(
|
|
3228
|
-
return
|
|
3243
|
+
function g(b) {
|
|
3244
|
+
return b === null || D(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(b)) : b === 96 && b === a ? t(b) : (e.consume(b), g);
|
|
3229
3245
|
}
|
|
3230
|
-
function C(
|
|
3231
|
-
return e.attempt(i, L, S)(
|
|
3246
|
+
function C(b) {
|
|
3247
|
+
return e.attempt(i, L, S)(b);
|
|
3232
3248
|
}
|
|
3233
|
-
function S(
|
|
3234
|
-
return e.enter("lineEnding"), e.consume(
|
|
3249
|
+
function S(b) {
|
|
3250
|
+
return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), y;
|
|
3235
3251
|
}
|
|
3236
|
-
function y(
|
|
3237
|
-
return o > 0 && $(
|
|
3252
|
+
function y(b) {
|
|
3253
|
+
return o > 0 && $(b) ? q(e, I, "linePrefix", o + 1)(b) : I(b);
|
|
3238
3254
|
}
|
|
3239
|
-
function I(
|
|
3240
|
-
return
|
|
3255
|
+
function I(b) {
|
|
3256
|
+
return b === null || D(b) ? e.check(Kn, C, L)(b) : (e.enter("codeFlowValue"), _(b));
|
|
3241
3257
|
}
|
|
3242
|
-
function _(
|
|
3243
|
-
return
|
|
3258
|
+
function _(b) {
|
|
3259
|
+
return b === null || D(b) ? (e.exit("codeFlowValue"), I(b)) : (e.consume(b), _);
|
|
3244
3260
|
}
|
|
3245
|
-
function L(
|
|
3246
|
-
return e.exit("codeFenced"), n(
|
|
3261
|
+
function L(b) {
|
|
3262
|
+
return e.exit("codeFenced"), n(b);
|
|
3247
3263
|
}
|
|
3248
|
-
function N(
|
|
3264
|
+
function N(b, O, H) {
|
|
3249
3265
|
let B = 0;
|
|
3250
3266
|
return k;
|
|
3251
3267
|
function k(v) {
|
|
3252
|
-
return
|
|
3268
|
+
return b.enter("lineEnding"), b.consume(v), b.exit("lineEnding"), T;
|
|
3253
3269
|
}
|
|
3254
3270
|
function T(v) {
|
|
3255
|
-
return
|
|
3271
|
+
return b.enter("codeFencedFence"), $(v) ? q(b, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : z(v);
|
|
3256
3272
|
}
|
|
3257
3273
|
function z(v) {
|
|
3258
|
-
return v === a ? (
|
|
3274
|
+
return v === a ? (b.enter("codeFencedFenceSequence"), U(v)) : H(v);
|
|
3259
3275
|
}
|
|
3260
3276
|
function U(v) {
|
|
3261
|
-
return v === a ? (B++,
|
|
3277
|
+
return v === a ? (B++, b.consume(v), U) : B >= l ? (b.exit("codeFencedFenceSequence"), $(v) ? q(b, P, "whitespace")(v) : P(v)) : H(v);
|
|
3262
3278
|
}
|
|
3263
3279
|
function P(v) {
|
|
3264
|
-
return v === null || D(v) ? (
|
|
3280
|
+
return v === null || D(v) ? (b.exit("codeFencedFence"), O(v)) : H(v);
|
|
3265
3281
|
}
|
|
3266
3282
|
}
|
|
3267
3283
|
}
|
|
3268
|
-
function
|
|
3284
|
+
function qo(e, n, t) {
|
|
3269
3285
|
const r = this;
|
|
3270
3286
|
return i;
|
|
3271
3287
|
function i(l) {
|
|
@@ -3277,12 +3293,12 @@ function Vo(e, n, t) {
|
|
|
3277
3293
|
}
|
|
3278
3294
|
const Rt = {
|
|
3279
3295
|
name: "codeIndented",
|
|
3280
|
-
tokenize: Uo
|
|
3281
|
-
}, qo = {
|
|
3282
|
-
partial: !0,
|
|
3283
3296
|
tokenize: Wo
|
|
3297
|
+
}, Uo = {
|
|
3298
|
+
partial: !0,
|
|
3299
|
+
tokenize: Yo
|
|
3284
3300
|
};
|
|
3285
|
-
function
|
|
3301
|
+
function Wo(e, n, t) {
|
|
3286
3302
|
const r = this;
|
|
3287
3303
|
return i;
|
|
3288
3304
|
function i(u) {
|
|
@@ -3293,7 +3309,7 @@ function Uo(e, n, t) {
|
|
|
3293
3309
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(u) : t(u);
|
|
3294
3310
|
}
|
|
3295
3311
|
function l(u) {
|
|
3296
|
-
return u === null ? s(u) : D(u) ? e.attempt(
|
|
3312
|
+
return u === null ? s(u) : D(u) ? e.attempt(Uo, l, s)(u) : (e.enter("codeFlowValue"), a(u));
|
|
3297
3313
|
}
|
|
3298
3314
|
function a(u) {
|
|
3299
3315
|
return u === null || D(u) ? (e.exit("codeFlowValue"), l(u)) : (e.consume(u), a);
|
|
@@ -3302,7 +3318,7 @@ function Uo(e, n, t) {
|
|
|
3302
3318
|
return e.exit("codeIndented"), n(u);
|
|
3303
3319
|
}
|
|
3304
3320
|
}
|
|
3305
|
-
function
|
|
3321
|
+
function Yo(e, n, t) {
|
|
3306
3322
|
const r = this;
|
|
3307
3323
|
return i;
|
|
3308
3324
|
function i(l) {
|
|
@@ -3313,13 +3329,13 @@ function Wo(e, n, t) {
|
|
|
3313
3329
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(l) : D(l) ? i(l) : t(l);
|
|
3314
3330
|
}
|
|
3315
3331
|
}
|
|
3316
|
-
const
|
|
3332
|
+
const Qo = {
|
|
3317
3333
|
name: "codeText",
|
|
3318
|
-
previous:
|
|
3319
|
-
resolve:
|
|
3320
|
-
tokenize:
|
|
3334
|
+
previous: Go,
|
|
3335
|
+
resolve: Xo,
|
|
3336
|
+
tokenize: Jo
|
|
3321
3337
|
};
|
|
3322
|
-
function
|
|
3338
|
+
function Xo(e) {
|
|
3323
3339
|
let n = e.length - 4, t = 3, r, i;
|
|
3324
3340
|
if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
|
|
3325
3341
|
for (r = t; ++r < n; )
|
|
@@ -3332,10 +3348,10 @@ function Qo(e) {
|
|
|
3332
3348
|
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);
|
|
3333
3349
|
return e;
|
|
3334
3350
|
}
|
|
3335
|
-
function
|
|
3351
|
+
function Go(e) {
|
|
3336
3352
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
3337
3353
|
}
|
|
3338
|
-
function
|
|
3354
|
+
function Jo(e, n, t) {
|
|
3339
3355
|
let r = 0, i, o;
|
|
3340
3356
|
return l;
|
|
3341
3357
|
function l(c) {
|
|
@@ -3354,7 +3370,7 @@ function Go(e, n, t) {
|
|
|
3354
3370
|
return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(c)) : (o.type = "codeTextData", u(c));
|
|
3355
3371
|
}
|
|
3356
3372
|
}
|
|
3357
|
-
class
|
|
3373
|
+
class Ko {
|
|
3358
3374
|
/**
|
|
3359
3375
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
3360
3376
|
* Initial items (optional).
|
|
@@ -3529,7 +3545,7 @@ function et(e, n) {
|
|
|
3529
3545
|
function ti(e) {
|
|
3530
3546
|
const n = {};
|
|
3531
3547
|
let t = -1, r, i, o, l, a, s, u;
|
|
3532
|
-
const f = new
|
|
3548
|
+
const f = new Ko(e);
|
|
3533
3549
|
for (; ++t < f.length; ) {
|
|
3534
3550
|
for (; t in n; )
|
|
3535
3551
|
t = n[t];
|
|
@@ -3537,7 +3553,7 @@ function ti(e) {
|
|
|
3537
3553
|
for (; ++o < s.length && s[o][1].type !== "content"; )
|
|
3538
3554
|
s[o][1].type === "chunkText" && (s[o][1]._isInFirstContentOfListItem = !0, o++);
|
|
3539
3555
|
if (r[0] === "enter")
|
|
3540
|
-
r[1].contentType && (Object.assign(n,
|
|
3556
|
+
r[1].contentType && (Object.assign(n, Zo(f, t)), t = n[t], u = !0);
|
|
3541
3557
|
else if (r[1]._container) {
|
|
3542
3558
|
for (o = t, i = void 0; o--; )
|
|
3543
3559
|
if (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
|
|
@@ -3550,7 +3566,7 @@ function ti(e) {
|
|
|
3550
3566
|
}
|
|
3551
3567
|
return he(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !u;
|
|
3552
3568
|
}
|
|
3553
|
-
function
|
|
3569
|
+
function Zo(e, n) {
|
|
3554
3570
|
const t = e.get(n)[1], r = e.get(n)[2];
|
|
3555
3571
|
let i = n - 1;
|
|
3556
3572
|
const o = [];
|
|
@@ -3575,17 +3591,17 @@ function Ko(e, n) {
|
|
|
3575
3591
|
u[g + s[h][0]] = g + s[h][1], g += s[h][1] - s[h][0] - 1;
|
|
3576
3592
|
return u;
|
|
3577
3593
|
}
|
|
3578
|
-
const
|
|
3579
|
-
resolve:
|
|
3580
|
-
tokenize: na
|
|
3581
|
-
}, ea = {
|
|
3582
|
-
partial: !0,
|
|
3594
|
+
const ea = {
|
|
3595
|
+
resolve: na,
|
|
3583
3596
|
tokenize: ra
|
|
3597
|
+
}, ta = {
|
|
3598
|
+
partial: !0,
|
|
3599
|
+
tokenize: ia
|
|
3584
3600
|
};
|
|
3585
|
-
function
|
|
3601
|
+
function na(e) {
|
|
3586
3602
|
return ti(e), e;
|
|
3587
3603
|
}
|
|
3588
|
-
function
|
|
3604
|
+
function ra(e, n) {
|
|
3589
3605
|
let t;
|
|
3590
3606
|
return r;
|
|
3591
3607
|
function r(a) {
|
|
@@ -3594,7 +3610,7 @@ function na(e, n) {
|
|
|
3594
3610
|
}), i(a);
|
|
3595
3611
|
}
|
|
3596
3612
|
function i(a) {
|
|
3597
|
-
return a === null ? o(a) : D(a) ? e.check(
|
|
3613
|
+
return a === null ? o(a) : D(a) ? e.check(ta, l, o)(a) : (e.consume(a), i);
|
|
3598
3614
|
}
|
|
3599
3615
|
function o(a) {
|
|
3600
3616
|
return e.exit("chunkContent"), e.exit("content"), n(a);
|
|
@@ -3606,7 +3622,7 @@ function na(e, n) {
|
|
|
3606
3622
|
}), t = t.next, i;
|
|
3607
3623
|
}
|
|
3608
3624
|
}
|
|
3609
|
-
function
|
|
3625
|
+
function ia(e, n, t) {
|
|
3610
3626
|
const r = this;
|
|
3611
3627
|
return i;
|
|
3612
3628
|
function i(l) {
|
|
@@ -3698,14 +3714,14 @@ function ot(e, n) {
|
|
|
3698
3714
|
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : $(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
|
3699
3715
|
}
|
|
3700
3716
|
}
|
|
3701
|
-
const
|
|
3717
|
+
const la = {
|
|
3702
3718
|
name: "definition",
|
|
3703
|
-
tokenize: oa
|
|
3704
|
-
}, la = {
|
|
3705
|
-
partial: !0,
|
|
3706
3719
|
tokenize: aa
|
|
3720
|
+
}, oa = {
|
|
3721
|
+
partial: !0,
|
|
3722
|
+
tokenize: sa
|
|
3707
3723
|
};
|
|
3708
|
-
function
|
|
3724
|
+
function aa(e, n, t) {
|
|
3709
3725
|
const r = this;
|
|
3710
3726
|
let i;
|
|
3711
3727
|
return o;
|
|
@@ -3744,7 +3760,7 @@ function oa(e, n, t) {
|
|
|
3744
3760
|
)(p);
|
|
3745
3761
|
}
|
|
3746
3762
|
function f(p) {
|
|
3747
|
-
return e.attempt(
|
|
3763
|
+
return e.attempt(oa, c, c)(p);
|
|
3748
3764
|
}
|
|
3749
3765
|
function c(p) {
|
|
3750
3766
|
return $(p) ? q(e, h, "whitespace")(p) : h(p);
|
|
@@ -3753,7 +3769,7 @@ function oa(e, n, t) {
|
|
|
3753
3769
|
return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
|
|
3754
3770
|
}
|
|
3755
3771
|
}
|
|
3756
|
-
function
|
|
3772
|
+
function sa(e, n, t) {
|
|
3757
3773
|
return r;
|
|
3758
3774
|
function r(a) {
|
|
3759
3775
|
return J(a) ? ot(e, i)(a) : t(a);
|
|
@@ -3768,11 +3784,11 @@ function aa(e, n, t) {
|
|
|
3768
3784
|
return a === null || D(a) ? n(a) : t(a);
|
|
3769
3785
|
}
|
|
3770
3786
|
}
|
|
3771
|
-
const
|
|
3787
|
+
const ua = {
|
|
3772
3788
|
name: "hardBreakEscape",
|
|
3773
|
-
tokenize:
|
|
3789
|
+
tokenize: ca
|
|
3774
3790
|
};
|
|
3775
|
-
function
|
|
3791
|
+
function ca(e, n, t) {
|
|
3776
3792
|
return r;
|
|
3777
3793
|
function r(o) {
|
|
3778
3794
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
|
@@ -3781,12 +3797,12 @@ function ua(e, n, t) {
|
|
|
3781
3797
|
return D(o) ? (e.exit("hardBreakEscape"), n(o)) : t(o);
|
|
3782
3798
|
}
|
|
3783
3799
|
}
|
|
3784
|
-
const
|
|
3800
|
+
const fa = {
|
|
3785
3801
|
name: "headingAtx",
|
|
3786
|
-
resolve:
|
|
3787
|
-
tokenize:
|
|
3802
|
+
resolve: pa,
|
|
3803
|
+
tokenize: ha
|
|
3788
3804
|
};
|
|
3789
|
-
function
|
|
3805
|
+
function pa(e, n) {
|
|
3790
3806
|
let t = e.length - 2, r = 3, i, o;
|
|
3791
3807
|
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 = {
|
|
3792
3808
|
type: "atxHeadingText",
|
|
@@ -3799,7 +3815,7 @@ function fa(e, n) {
|
|
|
3799
3815
|
contentType: "text"
|
|
3800
3816
|
}, he(e, r, t - r + 1, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["exit", i, n]])), e;
|
|
3801
3817
|
}
|
|
3802
|
-
function
|
|
3818
|
+
function ha(e, n, t) {
|
|
3803
3819
|
let r = 0;
|
|
3804
3820
|
return i;
|
|
3805
3821
|
function i(f) {
|
|
@@ -3821,7 +3837,7 @@ function pa(e, n, t) {
|
|
|
3821
3837
|
return f === null || f === 35 || J(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), u);
|
|
3822
3838
|
}
|
|
3823
3839
|
}
|
|
3824
|
-
const
|
|
3840
|
+
const da = [
|
|
3825
3841
|
"address",
|
|
3826
3842
|
"article",
|
|
3827
3843
|
"aside",
|
|
@@ -3884,25 +3900,25 @@ const ha = [
|
|
|
3884
3900
|
"tr",
|
|
3885
3901
|
"track",
|
|
3886
3902
|
"ul"
|
|
3887
|
-
], er = ["pre", "script", "style", "textarea"],
|
|
3903
|
+
], er = ["pre", "script", "style", "textarea"], ma = {
|
|
3888
3904
|
concrete: !0,
|
|
3889
3905
|
name: "htmlFlow",
|
|
3890
|
-
resolveTo:
|
|
3891
|
-
tokenize:
|
|
3892
|
-
}, ma = {
|
|
3893
|
-
partial: !0,
|
|
3894
|
-
tokenize: ba
|
|
3906
|
+
resolveTo: ka,
|
|
3907
|
+
tokenize: xa
|
|
3895
3908
|
}, ga = {
|
|
3896
3909
|
partial: !0,
|
|
3897
|
-
tokenize:
|
|
3910
|
+
tokenize: wa
|
|
3911
|
+
}, ya = {
|
|
3912
|
+
partial: !0,
|
|
3913
|
+
tokenize: ba
|
|
3898
3914
|
};
|
|
3899
|
-
function
|
|
3915
|
+
function ka(e) {
|
|
3900
3916
|
let n = e.length;
|
|
3901
3917
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
|
|
3902
3918
|
;
|
|
3903
3919
|
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;
|
|
3904
3920
|
}
|
|
3905
|
-
function
|
|
3921
|
+
function xa(e, n, t) {
|
|
3906
3922
|
const r = this;
|
|
3907
3923
|
let i, o, l, a, s;
|
|
3908
3924
|
return u;
|
|
@@ -3931,7 +3947,7 @@ function ka(e, n, t) {
|
|
|
3931
3947
|
function S(m) {
|
|
3932
3948
|
if (m === null || m === 47 || m === 62 || J(m)) {
|
|
3933
3949
|
const ne = m === 47, Pe = l.toLowerCase();
|
|
3934
|
-
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) :
|
|
3950
|
+
return !ne && !o && er.includes(Pe) ? (i = 1, r.interrupt ? n(m) : z(m)) : da.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 ? I(m) : _(m));
|
|
3935
3951
|
}
|
|
3936
3952
|
return m === 45 || ie(m) ? (e.consume(m), l += String.fromCharCode(m), S) : t(m);
|
|
3937
3953
|
}
|
|
@@ -3948,10 +3964,10 @@ function ka(e, n, t) {
|
|
|
3948
3964
|
return m === 45 || m === 46 || m === 58 || m === 95 || ie(m) ? (e.consume(m), L) : N(m);
|
|
3949
3965
|
}
|
|
3950
3966
|
function N(m) {
|
|
3951
|
-
return m === 61 ? (e.consume(m),
|
|
3967
|
+
return m === 61 ? (e.consume(m), b) : $(m) ? (e.consume(m), N) : _(m);
|
|
3952
3968
|
}
|
|
3953
|
-
function
|
|
3954
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, O) : $(m) ? (e.consume(m),
|
|
3969
|
+
function b(m) {
|
|
3970
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, O) : $(m) ? (e.consume(m), b) : H(m);
|
|
3955
3971
|
}
|
|
3956
3972
|
function O(m) {
|
|
3957
3973
|
return m === s ? (e.consume(m), s = null, B) : m === null || D(m) ? t(m) : (e.consume(m), O);
|
|
@@ -3969,10 +3985,10 @@ function ka(e, n, t) {
|
|
|
3969
3985
|
return m === null || D(m) ? z(m) : $(m) ? (e.consume(m), T) : t(m);
|
|
3970
3986
|
}
|
|
3971
3987
|
function z(m) {
|
|
3972
|
-
return m === 45 && i === 2 ? (e.consume(m), M) : m === 60 && i === 1 ? (e.consume(m), j) : 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(
|
|
3988
|
+
return m === 45 && i === 2 ? (e.consume(m), M) : m === 60 && i === 1 ? (e.consume(m), j) : 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(ga, te, U)(m)) : m === null || D(m) ? (e.exit("htmlFlowData"), U(m)) : (e.consume(m), z);
|
|
3973
3989
|
}
|
|
3974
3990
|
function U(m) {
|
|
3975
|
-
return e.check(
|
|
3991
|
+
return e.check(ya, P, te)(m);
|
|
3976
3992
|
}
|
|
3977
3993
|
function P(m) {
|
|
3978
3994
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
|
|
@@ -4006,7 +4022,7 @@ function ka(e, n, t) {
|
|
|
4006
4022
|
return e.exit("htmlFlow"), n(m);
|
|
4007
4023
|
}
|
|
4008
4024
|
}
|
|
4009
|
-
function
|
|
4025
|
+
function ba(e, n, t) {
|
|
4010
4026
|
const r = this;
|
|
4011
4027
|
return i;
|
|
4012
4028
|
function i(l) {
|
|
@@ -4016,17 +4032,17 @@ function xa(e, n, t) {
|
|
|
4016
4032
|
return r.parser.lazy[r.now().line] ? t(l) : n(l);
|
|
4017
4033
|
}
|
|
4018
4034
|
}
|
|
4019
|
-
function
|
|
4035
|
+
function wa(e, n, t) {
|
|
4020
4036
|
return r;
|
|
4021
4037
|
function r(i) {
|
|
4022
4038
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(ft, n, t);
|
|
4023
4039
|
}
|
|
4024
4040
|
}
|
|
4025
|
-
const
|
|
4041
|
+
const Ca = {
|
|
4026
4042
|
name: "htmlText",
|
|
4027
|
-
tokenize:
|
|
4043
|
+
tokenize: Sa
|
|
4028
4044
|
};
|
|
4029
|
-
function
|
|
4045
|
+
function Sa(e, n, t) {
|
|
4030
4046
|
const r = this;
|
|
4031
4047
|
let i, o, l;
|
|
4032
4048
|
return a;
|
|
@@ -4074,10 +4090,10 @@ function Ca(e, n, t) {
|
|
|
4074
4090
|
return d === 62 ? M(d) : _(d);
|
|
4075
4091
|
}
|
|
4076
4092
|
function N(d) {
|
|
4077
|
-
return ae(d) ? (e.consume(d),
|
|
4093
|
+
return ae(d) ? (e.consume(d), b) : t(d);
|
|
4078
4094
|
}
|
|
4079
|
-
function
|
|
4080
|
-
return d === 45 || ie(d) ? (e.consume(d),
|
|
4095
|
+
function b(d) {
|
|
4096
|
+
return d === 45 || ie(d) ? (e.consume(d), b) : O(d);
|
|
4081
4097
|
}
|
|
4082
4098
|
function O(d) {
|
|
4083
4099
|
return D(d) ? (l = O, j(d)) : $(d) ? (e.consume(d), O) : M(d);
|
|
@@ -4121,17 +4137,17 @@ function Ca(e, n, t) {
|
|
|
4121
4137
|
}
|
|
4122
4138
|
const xn = {
|
|
4123
4139
|
name: "labelEnd",
|
|
4124
|
-
resolveAll:
|
|
4125
|
-
resolveTo:
|
|
4126
|
-
tokenize: Aa
|
|
4127
|
-
}, Sa = {
|
|
4140
|
+
resolveAll: Ia,
|
|
4141
|
+
resolveTo: Aa,
|
|
4128
4142
|
tokenize: Ta
|
|
4129
4143
|
}, va = {
|
|
4130
4144
|
tokenize: za
|
|
4131
4145
|
}, _a = {
|
|
4132
4146
|
tokenize: Pa
|
|
4147
|
+
}, Ea = {
|
|
4148
|
+
tokenize: La
|
|
4133
4149
|
};
|
|
4134
|
-
function
|
|
4150
|
+
function Ia(e) {
|
|
4135
4151
|
let n = -1;
|
|
4136
4152
|
const t = [];
|
|
4137
4153
|
for (; ++n < e.length; ) {
|
|
@@ -4143,7 +4159,7 @@ function Ea(e) {
|
|
|
4143
4159
|
}
|
|
4144
4160
|
return e.length !== t.length && he(e, 0, e.length, t), e;
|
|
4145
4161
|
}
|
|
4146
|
-
function
|
|
4162
|
+
function Aa(e, n) {
|
|
4147
4163
|
let t = e.length, r = 0, i, o, l, a;
|
|
4148
4164
|
for (; t--; )
|
|
4149
4165
|
if (i = e[t][1], o) {
|
|
@@ -4183,7 +4199,7 @@ function Ia(e, n) {
|
|
|
4183
4199
|
};
|
|
4184
4200
|
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;
|
|
4185
4201
|
}
|
|
4186
|
-
function
|
|
4202
|
+
function Ta(e, n, t) {
|
|
4187
4203
|
const r = this;
|
|
4188
4204
|
let i = r.events.length, o, l;
|
|
4189
4205
|
for (; i--; )
|
|
@@ -4199,10 +4215,10 @@ function Aa(e, n, t) {
|
|
|
4199
4215
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), s) : t(h);
|
|
4200
4216
|
}
|
|
4201
4217
|
function s(h) {
|
|
4202
|
-
return h === 40 ? e.attempt(
|
|
4218
|
+
return h === 40 ? e.attempt(va, f, l ? f : c)(h) : h === 91 ? e.attempt(_a, f, l ? u : c)(h) : l ? f(h) : c(h);
|
|
4203
4219
|
}
|
|
4204
4220
|
function u(h) {
|
|
4205
|
-
return e.attempt(
|
|
4221
|
+
return e.attempt(Ea, f, c)(h);
|
|
4206
4222
|
}
|
|
4207
4223
|
function f(h) {
|
|
4208
4224
|
return n(h);
|
|
@@ -4211,7 +4227,7 @@ function Aa(e, n, t) {
|
|
|
4211
4227
|
return o._balanced = !0, t(h);
|
|
4212
4228
|
}
|
|
4213
4229
|
}
|
|
4214
|
-
function
|
|
4230
|
+
function za(e, n, t) {
|
|
4215
4231
|
return r;
|
|
4216
4232
|
function r(c) {
|
|
4217
4233
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
|
@@ -4238,7 +4254,7 @@ function Ta(e, n, t) {
|
|
|
4238
4254
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), n) : t(c);
|
|
4239
4255
|
}
|
|
4240
4256
|
}
|
|
4241
|
-
function
|
|
4257
|
+
function Pa(e, n, t) {
|
|
4242
4258
|
const r = this;
|
|
4243
4259
|
return i;
|
|
4244
4260
|
function i(a) {
|
|
@@ -4251,7 +4267,7 @@ function za(e, n, t) {
|
|
|
4251
4267
|
return t(a);
|
|
4252
4268
|
}
|
|
4253
4269
|
}
|
|
4254
|
-
function
|
|
4270
|
+
function La(e, n, t) {
|
|
4255
4271
|
return r;
|
|
4256
4272
|
function r(o) {
|
|
4257
4273
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
|
@@ -4260,12 +4276,12 @@ function Pa(e, n, t) {
|
|
|
4260
4276
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), n) : t(o);
|
|
4261
4277
|
}
|
|
4262
4278
|
}
|
|
4263
|
-
const
|
|
4279
|
+
const Da = {
|
|
4264
4280
|
name: "labelStartImage",
|
|
4265
4281
|
resolveAll: xn.resolveAll,
|
|
4266
|
-
tokenize:
|
|
4282
|
+
tokenize: Na
|
|
4267
4283
|
};
|
|
4268
|
-
function
|
|
4284
|
+
function Na(e, n, t) {
|
|
4269
4285
|
const r = this;
|
|
4270
4286
|
return i;
|
|
4271
4287
|
function i(a) {
|
|
@@ -4278,12 +4294,12 @@ function Da(e, n, t) {
|
|
|
4278
4294
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
|
|
4279
4295
|
}
|
|
4280
4296
|
}
|
|
4281
|
-
const
|
|
4297
|
+
const Ma = {
|
|
4282
4298
|
name: "labelStartLink",
|
|
4283
4299
|
resolveAll: xn.resolveAll,
|
|
4284
|
-
tokenize:
|
|
4300
|
+
tokenize: Ra
|
|
4285
4301
|
};
|
|
4286
|
-
function
|
|
4302
|
+
function Ra(e, n, t) {
|
|
4287
4303
|
const r = this;
|
|
4288
4304
|
return i;
|
|
4289
4305
|
function i(l) {
|
|
@@ -4295,9 +4311,9 @@ function Ma(e, n, t) {
|
|
|
4295
4311
|
}
|
|
4296
4312
|
const Ft = {
|
|
4297
4313
|
name: "lineEnding",
|
|
4298
|
-
tokenize:
|
|
4314
|
+
tokenize: Fa
|
|
4299
4315
|
};
|
|
4300
|
-
function
|
|
4316
|
+
function Fa(e, n) {
|
|
4301
4317
|
return t;
|
|
4302
4318
|
function t(r) {
|
|
4303
4319
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), q(e, n, "linePrefix");
|
|
@@ -4305,9 +4321,9 @@ function Ra(e, n) {
|
|
|
4305
4321
|
}
|
|
4306
4322
|
const Ct = {
|
|
4307
4323
|
name: "thematicBreak",
|
|
4308
|
-
tokenize:
|
|
4324
|
+
tokenize: Oa
|
|
4309
4325
|
};
|
|
4310
|
-
function
|
|
4326
|
+
function Oa(e, n, t) {
|
|
4311
4327
|
let r = 0, i;
|
|
4312
4328
|
return o;
|
|
4313
4329
|
function o(u) {
|
|
@@ -4325,19 +4341,19 @@ function Fa(e, n, t) {
|
|
|
4325
4341
|
}
|
|
4326
4342
|
const ue = {
|
|
4327
4343
|
continuation: {
|
|
4328
|
-
tokenize:
|
|
4344
|
+
tokenize: Ha
|
|
4329
4345
|
},
|
|
4330
|
-
exit:
|
|
4346
|
+
exit: qa,
|
|
4331
4347
|
name: "list",
|
|
4332
|
-
tokenize:
|
|
4333
|
-
}, Oa = {
|
|
4334
|
-
partial: !0,
|
|
4335
|
-
tokenize: qa
|
|
4348
|
+
tokenize: $a
|
|
4336
4349
|
}, ja = {
|
|
4337
4350
|
partial: !0,
|
|
4338
|
-
tokenize:
|
|
4351
|
+
tokenize: Ua
|
|
4352
|
+
}, Ba = {
|
|
4353
|
+
partial: !0,
|
|
4354
|
+
tokenize: Va
|
|
4339
4355
|
};
|
|
4340
|
-
function
|
|
4356
|
+
function $a(e, n, t) {
|
|
4341
4357
|
const r = this, i = r.events[r.events.length - 1];
|
|
4342
4358
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
|
4343
4359
|
return a;
|
|
@@ -4361,7 +4377,7 @@ function Ba(e, n, t) {
|
|
|
4361
4377
|
ft,
|
|
4362
4378
|
// Can’t be empty when interrupting.
|
|
4363
4379
|
r.interrupt ? t : f,
|
|
4364
|
-
e.attempt(
|
|
4380
|
+
e.attempt(ja, h, c)
|
|
4365
4381
|
);
|
|
4366
4382
|
}
|
|
4367
4383
|
function f(p) {
|
|
@@ -4374,20 +4390,20 @@ function Ba(e, n, t) {
|
|
|
4374
4390
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
|
|
4375
4391
|
}
|
|
4376
4392
|
}
|
|
4377
|
-
function
|
|
4393
|
+
function Ha(e, n, t) {
|
|
4378
4394
|
const r = this;
|
|
4379
4395
|
return r.containerState._closeFlow = void 0, e.check(ft, i, o);
|
|
4380
4396
|
function i(a) {
|
|
4381
4397
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
|
4382
4398
|
}
|
|
4383
4399
|
function o(a) {
|
|
4384
|
-
return r.containerState.furtherBlankLines || !$(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(
|
|
4400
|
+
return r.containerState.furtherBlankLines || !$(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));
|
|
4385
4401
|
}
|
|
4386
4402
|
function l(a) {
|
|
4387
4403
|
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);
|
|
4388
4404
|
}
|
|
4389
4405
|
}
|
|
4390
|
-
function
|
|
4406
|
+
function Va(e, n, t) {
|
|
4391
4407
|
const r = this;
|
|
4392
4408
|
return q(e, i, "listItemIndent", r.containerState.size + 1);
|
|
4393
4409
|
function i(o) {
|
|
@@ -4395,10 +4411,10 @@ function Ha(e, n, t) {
|
|
|
4395
4411
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? n(o) : t(o);
|
|
4396
4412
|
}
|
|
4397
4413
|
}
|
|
4398
|
-
function
|
|
4414
|
+
function qa(e) {
|
|
4399
4415
|
e.exit(this.containerState.type);
|
|
4400
4416
|
}
|
|
4401
|
-
function
|
|
4417
|
+
function Ua(e, n, t) {
|
|
4402
4418
|
const r = this;
|
|
4403
4419
|
return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4404
4420
|
function i(o) {
|
|
@@ -4408,10 +4424,10 @@ function qa(e, n, t) {
|
|
|
4408
4424
|
}
|
|
4409
4425
|
const tr = {
|
|
4410
4426
|
name: "setextUnderline",
|
|
4411
|
-
resolveTo:
|
|
4412
|
-
tokenize:
|
|
4427
|
+
resolveTo: Wa,
|
|
4428
|
+
tokenize: Ya
|
|
4413
4429
|
};
|
|
4414
|
-
function
|
|
4430
|
+
function Wa(e, n) {
|
|
4415
4431
|
let t = e.length, r, i, o;
|
|
4416
4432
|
for (; t--; )
|
|
4417
4433
|
if (e[t][0] === "enter") {
|
|
@@ -4435,7 +4451,7 @@ function Ua(e, n) {
|
|
|
4435
4451
|
...e[o][1].end
|
|
4436
4452
|
}) : e[r][1] = l, e.push(["exit", l, n]), e;
|
|
4437
4453
|
}
|
|
4438
|
-
function
|
|
4454
|
+
function Ya(e, n, t) {
|
|
4439
4455
|
const r = this;
|
|
4440
4456
|
let i;
|
|
4441
4457
|
return o;
|
|
@@ -4458,16 +4474,16 @@ function Wa(e, n, t) {
|
|
|
4458
4474
|
return u === null || D(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
|
|
4459
4475
|
}
|
|
4460
4476
|
}
|
|
4461
|
-
const
|
|
4462
|
-
tokenize:
|
|
4477
|
+
const Qa = {
|
|
4478
|
+
tokenize: Xa
|
|
4463
4479
|
};
|
|
4464
|
-
function
|
|
4480
|
+
function Xa(e) {
|
|
4465
4481
|
const n = this, t = e.attempt(
|
|
4466
4482
|
// Try to parse a blank line.
|
|
4467
4483
|
ft,
|
|
4468
4484
|
r,
|
|
4469
4485
|
// Try to parse initial flow (essentially, only code).
|
|
4470
|
-
e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
|
4486
|
+
e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(ea, i)), "linePrefix"))
|
|
4471
4487
|
);
|
|
4472
4488
|
return t;
|
|
4473
4489
|
function r(o) {
|
|
@@ -4485,12 +4501,12 @@ function Qa(e) {
|
|
|
4485
4501
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
|
4486
4502
|
}
|
|
4487
4503
|
}
|
|
4488
|
-
const
|
|
4504
|
+
const Ga = {
|
|
4489
4505
|
resolveAll: oi()
|
|
4490
|
-
},
|
|
4506
|
+
}, Ja = li("string"), Ka = li("text");
|
|
4491
4507
|
function li(e) {
|
|
4492
4508
|
return {
|
|
4493
|
-
resolveAll: oi(e === "text" ?
|
|
4509
|
+
resolveAll: oi(e === "text" ? Za : void 0),
|
|
4494
4510
|
tokenize: n
|
|
4495
4511
|
};
|
|
4496
4512
|
function n(t) {
|
|
@@ -4533,7 +4549,7 @@ function oi(e) {
|
|
|
4533
4549
|
return e ? e(t, r) : t;
|
|
4534
4550
|
}
|
|
4535
4551
|
}
|
|
4536
|
-
function
|
|
4552
|
+
function Za(e, n) {
|
|
4537
4553
|
let t = 0;
|
|
4538
4554
|
for (; ++t <= e.length; )
|
|
4539
4555
|
if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
|
@@ -4575,7 +4591,7 @@ function Ka(e, n) {
|
|
|
4575
4591
|
}
|
|
4576
4592
|
return e;
|
|
4577
4593
|
}
|
|
4578
|
-
const
|
|
4594
|
+
const es = {
|
|
4579
4595
|
42: ue,
|
|
4580
4596
|
43: ue,
|
|
4581
4597
|
45: ue,
|
|
@@ -4590,56 +4606,56 @@ const Za = {
|
|
|
4590
4606
|
56: ue,
|
|
4591
4607
|
57: ue,
|
|
4592
4608
|
62: Kr
|
|
4593
|
-
}, es = {
|
|
4594
|
-
91: ia
|
|
4595
4609
|
}, ts = {
|
|
4610
|
+
91: la
|
|
4611
|
+
}, ns = {
|
|
4596
4612
|
[-2]: Rt,
|
|
4597
4613
|
[-1]: Rt,
|
|
4598
4614
|
32: Rt
|
|
4599
|
-
},
|
|
4600
|
-
35:
|
|
4615
|
+
}, rs = {
|
|
4616
|
+
35: fa,
|
|
4601
4617
|
42: Ct,
|
|
4602
4618
|
45: [tr, Ct],
|
|
4603
|
-
60:
|
|
4619
|
+
60: ma,
|
|
4604
4620
|
61: tr,
|
|
4605
4621
|
95: Ct,
|
|
4606
4622
|
96: Zn,
|
|
4607
4623
|
126: Zn
|
|
4608
|
-
},
|
|
4624
|
+
}, is = {
|
|
4609
4625
|
38: ei,
|
|
4610
4626
|
92: Zr
|
|
4611
|
-
},
|
|
4627
|
+
}, ls = {
|
|
4612
4628
|
[-5]: Ft,
|
|
4613
4629
|
[-4]: Ft,
|
|
4614
4630
|
[-3]: Ft,
|
|
4615
|
-
33:
|
|
4631
|
+
33: Da,
|
|
4616
4632
|
38: ei,
|
|
4617
4633
|
42: tn,
|
|
4618
|
-
60: [
|
|
4619
|
-
91:
|
|
4620
|
-
92: [
|
|
4634
|
+
60: [Mo, Ca],
|
|
4635
|
+
91: Ma,
|
|
4636
|
+
92: [ua, Zr],
|
|
4621
4637
|
93: xn,
|
|
4622
4638
|
95: tn,
|
|
4623
|
-
96:
|
|
4624
|
-
}, ls = {
|
|
4625
|
-
null: [tn, Xa]
|
|
4639
|
+
96: Qo
|
|
4626
4640
|
}, os = {
|
|
4627
|
-
null: [
|
|
4641
|
+
null: [tn, Ga]
|
|
4628
4642
|
}, as = {
|
|
4643
|
+
null: [42, 95]
|
|
4644
|
+
}, ss = {
|
|
4629
4645
|
null: []
|
|
4630
|
-
},
|
|
4646
|
+
}, us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4631
4647
|
__proto__: null,
|
|
4632
|
-
attentionMarkers:
|
|
4633
|
-
contentInitial:
|
|
4634
|
-
disable:
|
|
4635
|
-
document:
|
|
4636
|
-
flow:
|
|
4637
|
-
flowInitial:
|
|
4638
|
-
insideSpan:
|
|
4639
|
-
string:
|
|
4640
|
-
text:
|
|
4648
|
+
attentionMarkers: as,
|
|
4649
|
+
contentInitial: ts,
|
|
4650
|
+
disable: ss,
|
|
4651
|
+
document: es,
|
|
4652
|
+
flow: rs,
|
|
4653
|
+
flowInitial: ns,
|
|
4654
|
+
insideSpan: os,
|
|
4655
|
+
string: is,
|
|
4656
|
+
text: ls
|
|
4641
4657
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4642
|
-
function
|
|
4658
|
+
function cs(e, n, t) {
|
|
4643
4659
|
let r = {
|
|
4644
4660
|
_bufferIndex: -1,
|
|
4645
4661
|
_index: 0,
|
|
@@ -4651,11 +4667,11 @@ function us(e, n, t) {
|
|
|
4651
4667
|
let l = [], a = [];
|
|
4652
4668
|
const s = {
|
|
4653
4669
|
attempt: O(N),
|
|
4654
|
-
check: O(
|
|
4670
|
+
check: O(b),
|
|
4655
4671
|
consume: I,
|
|
4656
4672
|
enter: _,
|
|
4657
4673
|
exit: L,
|
|
4658
|
-
interrupt: O(
|
|
4674
|
+
interrupt: O(b, {
|
|
4659
4675
|
interrupt: !0
|
|
4660
4676
|
})
|
|
4661
4677
|
}, u = {
|
|
@@ -4676,10 +4692,10 @@ function us(e, n, t) {
|
|
|
4676
4692
|
return l = me(l, T), S(), l[l.length - 1] !== null ? [] : (H(n, 0), u.events = Tt(o, u.events, u), u.events);
|
|
4677
4693
|
}
|
|
4678
4694
|
function h(T, z) {
|
|
4679
|
-
return
|
|
4695
|
+
return ps(p(T), z);
|
|
4680
4696
|
}
|
|
4681
4697
|
function p(T) {
|
|
4682
|
-
return
|
|
4698
|
+
return fs(l, T);
|
|
4683
4699
|
}
|
|
4684
4700
|
function g() {
|
|
4685
4701
|
const {
|
|
@@ -4731,7 +4747,7 @@ function us(e, n, t) {
|
|
|
4731
4747
|
function N(T, z) {
|
|
4732
4748
|
H(T, z.from);
|
|
4733
4749
|
}
|
|
4734
|
-
function
|
|
4750
|
+
function b(T, z) {
|
|
4735
4751
|
z.restore();
|
|
4736
4752
|
}
|
|
4737
4753
|
function O(T, z) {
|
|
@@ -4802,7 +4818,7 @@ function us(e, n, t) {
|
|
|
4802
4818
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
4803
4819
|
}
|
|
4804
4820
|
}
|
|
4805
|
-
function
|
|
4821
|
+
function fs(e, n) {
|
|
4806
4822
|
const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, o = n.end._bufferIndex;
|
|
4807
4823
|
let l;
|
|
4808
4824
|
if (t === i)
|
|
@@ -4816,7 +4832,7 @@ function cs(e, n) {
|
|
|
4816
4832
|
}
|
|
4817
4833
|
return l;
|
|
4818
4834
|
}
|
|
4819
|
-
function
|
|
4835
|
+
function ps(e, n) {
|
|
4820
4836
|
let t = -1;
|
|
4821
4837
|
const r = [];
|
|
4822
4838
|
let i;
|
|
@@ -4856,35 +4872,35 @@ function fs(e, n) {
|
|
|
4856
4872
|
}
|
|
4857
4873
|
return r.join("");
|
|
4858
4874
|
}
|
|
4859
|
-
function
|
|
4875
|
+
function hs(e) {
|
|
4860
4876
|
const r = {
|
|
4861
4877
|
constructs: (
|
|
4862
4878
|
/** @type {FullNormalizedExtension} */
|
|
4863
|
-
Gr([
|
|
4879
|
+
Gr([us, ...(e || {}).extensions || []])
|
|
4864
4880
|
),
|
|
4865
|
-
content: i(
|
|
4881
|
+
content: i(Ao),
|
|
4866
4882
|
defined: [],
|
|
4867
|
-
document: i(
|
|
4868
|
-
flow: i(
|
|
4883
|
+
document: i(zo),
|
|
4884
|
+
flow: i(Qa),
|
|
4869
4885
|
lazy: {},
|
|
4870
|
-
string: i(
|
|
4871
|
-
text: i(
|
|
4886
|
+
string: i(Ja),
|
|
4887
|
+
text: i(Ka)
|
|
4872
4888
|
};
|
|
4873
4889
|
return r;
|
|
4874
4890
|
function i(o) {
|
|
4875
4891
|
return l;
|
|
4876
4892
|
function l(a) {
|
|
4877
|
-
return
|
|
4893
|
+
return cs(r, o, a);
|
|
4878
4894
|
}
|
|
4879
4895
|
}
|
|
4880
4896
|
}
|
|
4881
|
-
function
|
|
4897
|
+
function ds(e) {
|
|
4882
4898
|
for (; !ti(e); )
|
|
4883
4899
|
;
|
|
4884
4900
|
return e;
|
|
4885
4901
|
}
|
|
4886
4902
|
const nr = /[\0\t\n\r]/g;
|
|
4887
|
-
function
|
|
4903
|
+
function ms() {
|
|
4888
4904
|
let e = 1, n = "", t = !0, r;
|
|
4889
4905
|
return i;
|
|
4890
4906
|
function i(o, l, a) {
|
|
@@ -4919,11 +4935,11 @@ function ds() {
|
|
|
4919
4935
|
return a && (r && s.push(-5), n && s.push(n), s.push(null)), s;
|
|
4920
4936
|
}
|
|
4921
4937
|
}
|
|
4922
|
-
const
|
|
4923
|
-
function
|
|
4924
|
-
return e.replace(
|
|
4938
|
+
const gs = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4939
|
+
function ys(e) {
|
|
4940
|
+
return e.replace(gs, ks);
|
|
4925
4941
|
}
|
|
4926
|
-
function
|
|
4942
|
+
function ks(e, n, t) {
|
|
4927
4943
|
if (n)
|
|
4928
4944
|
return n;
|
|
4929
4945
|
if (t.charCodeAt(0) === 35) {
|
|
@@ -4933,10 +4949,10 @@ function ys(e, n, t) {
|
|
|
4933
4949
|
return kn(t) || e;
|
|
4934
4950
|
}
|
|
4935
4951
|
const ai = {}.hasOwnProperty;
|
|
4936
|
-
function
|
|
4937
|
-
return n && typeof n == "object" && (t = n, n = void 0),
|
|
4952
|
+
function xs(e, n, t) {
|
|
4953
|
+
return n && typeof n == "object" && (t = n, n = void 0), bs(t)(ds(hs(t).document().write(ms()(e, n, !0))));
|
|
4938
4954
|
}
|
|
4939
|
-
function
|
|
4955
|
+
function bs(e) {
|
|
4940
4956
|
const n = {
|
|
4941
4957
|
transforms: [],
|
|
4942
4958
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -5030,7 +5046,7 @@ function xs(e) {
|
|
|
5030
5046
|
resource: te,
|
|
5031
5047
|
setextHeading: s(H),
|
|
5032
5048
|
setextHeadingLineSequence: O,
|
|
5033
|
-
setextHeadingText:
|
|
5049
|
+
setextHeadingText: b,
|
|
5034
5050
|
strong: s(),
|
|
5035
5051
|
thematicBreak: s()
|
|
5036
5052
|
}
|
|
@@ -5222,7 +5238,7 @@ function xs(e) {
|
|
|
5222
5238
|
A.depth = F;
|
|
5223
5239
|
}
|
|
5224
5240
|
}
|
|
5225
|
-
function
|
|
5241
|
+
function b() {
|
|
5226
5242
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
5227
5243
|
}
|
|
5228
5244
|
function O(w) {
|
|
@@ -5289,7 +5305,7 @@ function xs(e) {
|
|
|
5289
5305
|
}
|
|
5290
5306
|
function Q(w) {
|
|
5291
5307
|
const A = this.sliceSerialize(w), F = this.stack[this.stack.length - 2];
|
|
5292
|
-
F.label =
|
|
5308
|
+
F.label = ys(A), F.identifier = ke(A).toLowerCase();
|
|
5293
5309
|
}
|
|
5294
5310
|
function W() {
|
|
5295
5311
|
const w = this.stack[this.stack.length - 1], A = this.resume(), F = this.stack[this.stack.length - 1];
|
|
@@ -5463,10 +5479,10 @@ function si(e, n) {
|
|
|
5463
5479
|
let t = -1;
|
|
5464
5480
|
for (; ++t < n.length; ) {
|
|
5465
5481
|
const r = n[t];
|
|
5466
|
-
Array.isArray(r) ? si(e, r) :
|
|
5482
|
+
Array.isArray(r) ? si(e, r) : ws(e, r);
|
|
5467
5483
|
}
|
|
5468
5484
|
}
|
|
5469
|
-
function
|
|
5485
|
+
function ws(e, n) {
|
|
5470
5486
|
let t;
|
|
5471
5487
|
for (t in n)
|
|
5472
5488
|
if (ai.call(n, t))
|
|
@@ -5501,11 +5517,11 @@ function rr(e, n) {
|
|
|
5501
5517
|
end: n.end
|
|
5502
5518
|
}) + ") is still open");
|
|
5503
5519
|
}
|
|
5504
|
-
function
|
|
5520
|
+
function Cs(e) {
|
|
5505
5521
|
const n = this;
|
|
5506
5522
|
n.parser = t;
|
|
5507
5523
|
function t(r) {
|
|
5508
|
-
return
|
|
5524
|
+
return xs(r, {
|
|
5509
5525
|
...n.data("settings"),
|
|
5510
5526
|
...e,
|
|
5511
5527
|
// Note: these options are not in the readme.
|
|
@@ -5516,7 +5532,7 @@ function ws(e) {
|
|
|
5516
5532
|
});
|
|
5517
5533
|
}
|
|
5518
5534
|
}
|
|
5519
|
-
function
|
|
5535
|
+
function Ss(e, n) {
|
|
5520
5536
|
const t = {
|
|
5521
5537
|
type: "element",
|
|
5522
5538
|
tagName: "blockquote",
|
|
@@ -5525,12 +5541,12 @@ function Cs(e, n) {
|
|
|
5525
5541
|
};
|
|
5526
5542
|
return e.patch(n, t), e.applyData(n, t);
|
|
5527
5543
|
}
|
|
5528
|
-
function
|
|
5544
|
+
function vs(e, n) {
|
|
5529
5545
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
5530
5546
|
return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
|
|
5531
5547
|
` }];
|
|
5532
5548
|
}
|
|
5533
|
-
function
|
|
5549
|
+
function _s(e, n) {
|
|
5534
5550
|
const t = n.value ? n.value + `
|
|
5535
5551
|
` : "", r = {}, i = n.lang ? n.lang.split(/\s+/) : [];
|
|
5536
5552
|
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
@@ -5542,7 +5558,7 @@ function vs(e, n) {
|
|
|
5542
5558
|
};
|
|
5543
5559
|
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;
|
|
5544
5560
|
}
|
|
5545
|
-
function
|
|
5561
|
+
function Es(e, n) {
|
|
5546
5562
|
const t = {
|
|
5547
5563
|
type: "element",
|
|
5548
5564
|
tagName: "del",
|
|
@@ -5551,7 +5567,7 @@ function _s(e, n) {
|
|
|
5551
5567
|
};
|
|
5552
5568
|
return e.patch(n, t), e.applyData(n, t);
|
|
5553
5569
|
}
|
|
5554
|
-
function
|
|
5570
|
+
function Is(e, n) {
|
|
5555
5571
|
const t = {
|
|
5556
5572
|
type: "element",
|
|
5557
5573
|
tagName: "em",
|
|
@@ -5560,7 +5576,7 @@ function Es(e, n) {
|
|
|
5560
5576
|
};
|
|
5561
5577
|
return e.patch(n, t), e.applyData(n, t);
|
|
5562
5578
|
}
|
|
5563
|
-
function
|
|
5579
|
+
function As(e, n) {
|
|
5564
5580
|
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);
|
|
5565
5581
|
let l, a = e.footnoteCounts.get(r);
|
|
5566
5582
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -5584,7 +5600,7 @@ function Is(e, n) {
|
|
|
5584
5600
|
};
|
|
5585
5601
|
return e.patch(n, u), e.applyData(n, u);
|
|
5586
5602
|
}
|
|
5587
|
-
function
|
|
5603
|
+
function Ts(e, n) {
|
|
5588
5604
|
const t = {
|
|
5589
5605
|
type: "element",
|
|
5590
5606
|
tagName: "h" + n.depth,
|
|
@@ -5593,7 +5609,7 @@ function As(e, n) {
|
|
|
5593
5609
|
};
|
|
5594
5610
|
return e.patch(n, t), e.applyData(n, t);
|
|
5595
5611
|
}
|
|
5596
|
-
function
|
|
5612
|
+
function zs(e, n) {
|
|
5597
5613
|
if (e.options.allowDangerousHtml) {
|
|
5598
5614
|
const t = { type: "raw", value: n.value };
|
|
5599
5615
|
return e.patch(n, t), e.applyData(n, t);
|
|
@@ -5609,7 +5625,7 @@ function ui(e, n) {
|
|
|
5609
5625
|
const l = i[i.length - 1];
|
|
5610
5626
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
|
5611
5627
|
}
|
|
5612
|
-
function
|
|
5628
|
+
function Ps(e, n) {
|
|
5613
5629
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5614
5630
|
if (!r)
|
|
5615
5631
|
return ui(e, n);
|
|
@@ -5618,13 +5634,13 @@ function zs(e, n) {
|
|
|
5618
5634
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
5619
5635
|
return e.patch(n, o), e.applyData(n, o);
|
|
5620
5636
|
}
|
|
5621
|
-
function
|
|
5637
|
+
function Ls(e, n) {
|
|
5622
5638
|
const t = { src: Qe(n.url) };
|
|
5623
5639
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5624
5640
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5625
5641
|
return e.patch(n, r), e.applyData(n, r);
|
|
5626
5642
|
}
|
|
5627
|
-
function
|
|
5643
|
+
function Ds(e, n) {
|
|
5628
5644
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
|
5629
5645
|
e.patch(n, t);
|
|
5630
5646
|
const r = {
|
|
@@ -5635,7 +5651,7 @@ function Ls(e, n) {
|
|
|
5635
5651
|
};
|
|
5636
5652
|
return e.patch(n, r), e.applyData(n, r);
|
|
5637
5653
|
}
|
|
5638
|
-
function
|
|
5654
|
+
function Ns(e, n) {
|
|
5639
5655
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5640
5656
|
if (!r)
|
|
5641
5657
|
return ui(e, n);
|
|
@@ -5649,7 +5665,7 @@ function Ds(e, n) {
|
|
|
5649
5665
|
};
|
|
5650
5666
|
return e.patch(n, o), e.applyData(n, o);
|
|
5651
5667
|
}
|
|
5652
|
-
function
|
|
5668
|
+
function Ms(e, n) {
|
|
5653
5669
|
const t = { href: Qe(n.url) };
|
|
5654
5670
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5655
5671
|
const r = {
|
|
@@ -5660,8 +5676,8 @@ function Ns(e, n) {
|
|
|
5660
5676
|
};
|
|
5661
5677
|
return e.patch(n, r), e.applyData(n, r);
|
|
5662
5678
|
}
|
|
5663
|
-
function
|
|
5664
|
-
const r = e.all(n), i = t ?
|
|
5679
|
+
function Rs(e, n, t) {
|
|
5680
|
+
const r = e.all(n), i = t ? Fs(t) : ci(n), o = {}, l = [];
|
|
5665
5681
|
if (typeof n.checked == "boolean") {
|
|
5666
5682
|
const f = r[0];
|
|
5667
5683
|
let c;
|
|
@@ -5684,7 +5700,7 @@ function Ms(e, n, t) {
|
|
|
5684
5700
|
const u = { type: "element", tagName: "li", properties: o, children: l };
|
|
5685
5701
|
return e.patch(n, u), e.applyData(n, u);
|
|
5686
5702
|
}
|
|
5687
|
-
function
|
|
5703
|
+
function Fs(e) {
|
|
5688
5704
|
let n = !1;
|
|
5689
5705
|
if (e.type === "list") {
|
|
5690
5706
|
n = e.spread || !1;
|
|
@@ -5699,7 +5715,7 @@ function ci(e) {
|
|
|
5699
5715
|
const n = e.spread;
|
|
5700
5716
|
return n ?? e.children.length > 1;
|
|
5701
5717
|
}
|
|
5702
|
-
function
|
|
5718
|
+
function Os(e, n) {
|
|
5703
5719
|
const t = {}, r = e.all(n);
|
|
5704
5720
|
let i = -1;
|
|
5705
5721
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
|
@@ -5717,7 +5733,7 @@ function Fs(e, n) {
|
|
|
5717
5733
|
};
|
|
5718
5734
|
return e.patch(n, o), e.applyData(n, o);
|
|
5719
5735
|
}
|
|
5720
|
-
function
|
|
5736
|
+
function js(e, n) {
|
|
5721
5737
|
const t = {
|
|
5722
5738
|
type: "element",
|
|
5723
5739
|
tagName: "p",
|
|
@@ -5726,11 +5742,11 @@ function Os(e, n) {
|
|
|
5726
5742
|
};
|
|
5727
5743
|
return e.patch(n, t), e.applyData(n, t);
|
|
5728
5744
|
}
|
|
5729
|
-
function
|
|
5745
|
+
function Bs(e, n) {
|
|
5730
5746
|
const t = { type: "root", children: e.wrap(e.all(n)) };
|
|
5731
5747
|
return e.patch(n, t), e.applyData(n, t);
|
|
5732
5748
|
}
|
|
5733
|
-
function
|
|
5749
|
+
function $s(e, n) {
|
|
5734
5750
|
const t = {
|
|
5735
5751
|
type: "element",
|
|
5736
5752
|
tagName: "strong",
|
|
@@ -5739,7 +5755,7 @@ function Bs(e, n) {
|
|
|
5739
5755
|
};
|
|
5740
5756
|
return e.patch(n, t), e.applyData(n, t);
|
|
5741
5757
|
}
|
|
5742
|
-
function
|
|
5758
|
+
function Hs(e, n) {
|
|
5743
5759
|
const t = e.all(n), r = t.shift(), i = [];
|
|
5744
5760
|
if (r) {
|
|
5745
5761
|
const l = {
|
|
@@ -5767,7 +5783,7 @@ function $s(e, n) {
|
|
|
5767
5783
|
};
|
|
5768
5784
|
return e.patch(n, o), e.applyData(n, o);
|
|
5769
5785
|
}
|
|
5770
|
-
function
|
|
5786
|
+
function Vs(e, n, t) {
|
|
5771
5787
|
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;
|
|
5772
5788
|
let s = -1;
|
|
5773
5789
|
const u = [];
|
|
@@ -5785,7 +5801,7 @@ function Hs(e, n, t) {
|
|
|
5785
5801
|
};
|
|
5786
5802
|
return e.patch(n, f), e.applyData(n, f);
|
|
5787
5803
|
}
|
|
5788
|
-
function
|
|
5804
|
+
function qs(e, n) {
|
|
5789
5805
|
const t = {
|
|
5790
5806
|
type: "element",
|
|
5791
5807
|
tagName: "td",
|
|
@@ -5796,7 +5812,7 @@ function Vs(e, n) {
|
|
|
5796
5812
|
return e.patch(n, t), e.applyData(n, t);
|
|
5797
5813
|
}
|
|
5798
5814
|
const ir = 9, lr = 32;
|
|
5799
|
-
function
|
|
5815
|
+
function Us(e) {
|
|
5800
5816
|
const n = String(e), t = /\r?\n|\r/g;
|
|
5801
5817
|
let r = t.exec(n), i = 0;
|
|
5802
5818
|
const o = [];
|
|
@@ -5821,11 +5837,11 @@ function or(e, n, t) {
|
|
|
5821
5837
|
}
|
|
5822
5838
|
return i > r ? e.slice(r, i) : "";
|
|
5823
5839
|
}
|
|
5824
|
-
function
|
|
5825
|
-
const t = { type: "text", value:
|
|
5840
|
+
function Ws(e, n) {
|
|
5841
|
+
const t = { type: "text", value: Us(String(n.value)) };
|
|
5826
5842
|
return e.patch(n, t), e.applyData(n, t);
|
|
5827
5843
|
}
|
|
5828
|
-
function
|
|
5844
|
+
function Ys(e, n) {
|
|
5829
5845
|
const t = {
|
|
5830
5846
|
type: "element",
|
|
5831
5847
|
tagName: "hr",
|
|
@@ -5834,31 +5850,31 @@ function Ws(e, n) {
|
|
|
5834
5850
|
};
|
|
5835
5851
|
return e.patch(n, t), e.applyData(n, t);
|
|
5836
5852
|
}
|
|
5837
|
-
const
|
|
5838
|
-
blockquote:
|
|
5839
|
-
break:
|
|
5840
|
-
code:
|
|
5841
|
-
delete:
|
|
5842
|
-
emphasis:
|
|
5843
|
-
footnoteReference:
|
|
5844
|
-
heading:
|
|
5845
|
-
html:
|
|
5846
|
-
imageReference:
|
|
5847
|
-
image:
|
|
5848
|
-
inlineCode:
|
|
5849
|
-
linkReference:
|
|
5850
|
-
link:
|
|
5851
|
-
listItem:
|
|
5852
|
-
list:
|
|
5853
|
-
paragraph:
|
|
5853
|
+
const Qs = {
|
|
5854
|
+
blockquote: Ss,
|
|
5855
|
+
break: vs,
|
|
5856
|
+
code: _s,
|
|
5857
|
+
delete: Es,
|
|
5858
|
+
emphasis: Is,
|
|
5859
|
+
footnoteReference: As,
|
|
5860
|
+
heading: Ts,
|
|
5861
|
+
html: zs,
|
|
5862
|
+
imageReference: Ps,
|
|
5863
|
+
image: Ls,
|
|
5864
|
+
inlineCode: Ds,
|
|
5865
|
+
linkReference: Ns,
|
|
5866
|
+
link: Ms,
|
|
5867
|
+
listItem: Rs,
|
|
5868
|
+
list: Os,
|
|
5869
|
+
paragraph: js,
|
|
5854
5870
|
// @ts-expect-error: root is different, but hard to type.
|
|
5855
|
-
root:
|
|
5856
|
-
strong:
|
|
5857
|
-
table:
|
|
5858
|
-
tableCell:
|
|
5859
|
-
tableRow:
|
|
5860
|
-
text:
|
|
5861
|
-
thematicBreak:
|
|
5871
|
+
root: Bs,
|
|
5872
|
+
strong: $s,
|
|
5873
|
+
table: Hs,
|
|
5874
|
+
tableCell: qs,
|
|
5875
|
+
tableRow: Vs,
|
|
5876
|
+
text: Ws,
|
|
5877
|
+
thematicBreak: Ys,
|
|
5862
5878
|
toml: mt,
|
|
5863
5879
|
yaml: mt,
|
|
5864
5880
|
definition: mt,
|
|
@@ -5877,7 +5893,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5877
5893
|
throw new TypeError("unable to deserialize " + e);
|
|
5878
5894
|
}
|
|
5879
5895
|
return new di[e](n);
|
|
5880
|
-
},
|
|
5896
|
+
}, Xs = (e, n) => {
|
|
5881
5897
|
const t = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
5882
5898
|
if (e.has(i))
|
|
5883
5899
|
return e.get(i);
|
|
@@ -5937,11 +5953,11 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5937
5953
|
return t(ar(o, l), i);
|
|
5938
5954
|
};
|
|
5939
5955
|
return r;
|
|
5940
|
-
}, sr = (e) =>
|
|
5956
|
+
}, sr = (e) => Xs(/* @__PURE__ */ new Map(), e)(0), Me = "", { toString: Gs } = {}, { keys: Js } = Object, tt = (e) => {
|
|
5941
5957
|
const n = typeof e;
|
|
5942
5958
|
if (n !== "object" || !e)
|
|
5943
5959
|
return [zt, n];
|
|
5944
|
-
const t =
|
|
5960
|
+
const t = Gs.call(e).slice(8, -1);
|
|
5945
5961
|
switch (t) {
|
|
5946
5962
|
case "Array":
|
|
5947
5963
|
return [at, Me];
|
|
@@ -5959,7 +5975,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
5959
5975
|
return [at, t];
|
|
5960
5976
|
}
|
|
5961
5977
|
return t.includes("Array") ? [at, t] : e instanceof Error ? [pi, e.name || "Error"] : [_t, t];
|
|
5962
|
-
}, gt = ([e, n]) => e === zt && (n === "function" || n === "symbol"),
|
|
5978
|
+
}, gt = ([e, n]) => e === zt && (n === "function" || n === "symbol"), Ks = (e, n, t, r) => {
|
|
5963
5979
|
const i = (l, a) => {
|
|
5964
5980
|
const s = r.push(l) - 1;
|
|
5965
5981
|
return t.set(a, s), s;
|
|
@@ -6008,7 +6024,7 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
6008
6024
|
if (n && "toJSON" in l)
|
|
6009
6025
|
return o(l.toJSON());
|
|
6010
6026
|
const f = [], c = i([a, f], l);
|
|
6011
|
-
for (const h of
|
|
6027
|
+
for (const h of Js(l))
|
|
6012
6028
|
(e || !gt(tt(l[h]))) && f.push([o(h), o(l[h])]);
|
|
6013
6029
|
return c;
|
|
6014
6030
|
}
|
|
@@ -6037,12 +6053,12 @@ const fi = -1, zt = 0, at = 1, _t = 2, bn = 3, wn = 4, Cn = 5, Sn = 6, pi = 7, h
|
|
|
6037
6053
|
return o;
|
|
6038
6054
|
}, ur = (e, { json: n, lossy: t } = {}) => {
|
|
6039
6055
|
const r = [];
|
|
6040
|
-
return
|
|
6056
|
+
return Ks(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
|
6041
6057
|
}, Et = typeof structuredClone == "function" ? (
|
|
6042
6058
|
/* c8 ignore start */
|
|
6043
6059
|
(e, n) => n && ("json" in n || "lossy" in n) ? sr(ur(e, n)) : structuredClone(e)
|
|
6044
6060
|
) : (e, n) => sr(ur(e, n));
|
|
6045
|
-
function
|
|
6061
|
+
function Zs(e, n) {
|
|
6046
6062
|
const t = [{ type: "text", value: "↩" }];
|
|
6047
6063
|
return n > 1 && t.push({
|
|
6048
6064
|
type: "element",
|
|
@@ -6051,11 +6067,11 @@ function Ks(e, n) {
|
|
|
6051
6067
|
children: [{ type: "text", value: String(n) }]
|
|
6052
6068
|
}), t;
|
|
6053
6069
|
}
|
|
6054
|
-
function
|
|
6070
|
+
function eu(e, n) {
|
|
6055
6071
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
|
6056
6072
|
}
|
|
6057
|
-
function
|
|
6058
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
|
6073
|
+
function tu(e) {
|
|
6074
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Zs, r = e.options.footnoteBackLabel || eu, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
|
|
6059
6075
|
className: ["sr-only"]
|
|
6060
6076
|
}, a = [];
|
|
6061
6077
|
let s = -1;
|
|
@@ -6142,24 +6158,24 @@ const Pt = (
|
|
|
6142
6158
|
*/
|
|
6143
6159
|
(function(e) {
|
|
6144
6160
|
if (e == null)
|
|
6145
|
-
return
|
|
6161
|
+
return lu;
|
|
6146
6162
|
if (typeof e == "function")
|
|
6147
6163
|
return Lt(e);
|
|
6148
6164
|
if (typeof e == "object")
|
|
6149
|
-
return Array.isArray(e) ?
|
|
6165
|
+
return Array.isArray(e) ? nu(e) : (
|
|
6150
6166
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
6151
6167
|
// narrows to `Array`.
|
|
6152
|
-
|
|
6168
|
+
ru(
|
|
6153
6169
|
/** @type {Props} */
|
|
6154
6170
|
e
|
|
6155
6171
|
)
|
|
6156
6172
|
);
|
|
6157
6173
|
if (typeof e == "string")
|
|
6158
|
-
return
|
|
6174
|
+
return iu(e);
|
|
6159
6175
|
throw new Error("Expected function, string, or object as test");
|
|
6160
6176
|
})
|
|
6161
6177
|
);
|
|
6162
|
-
function
|
|
6178
|
+
function nu(e) {
|
|
6163
6179
|
const n = [];
|
|
6164
6180
|
let t = -1;
|
|
6165
6181
|
for (; ++t < e.length; )
|
|
@@ -6172,7 +6188,7 @@ function tu(e) {
|
|
|
6172
6188
|
return !1;
|
|
6173
6189
|
}
|
|
6174
6190
|
}
|
|
6175
|
-
function
|
|
6191
|
+
function ru(e) {
|
|
6176
6192
|
const n = (
|
|
6177
6193
|
/** @type {Record<string, unknown>} */
|
|
6178
6194
|
e
|
|
@@ -6190,7 +6206,7 @@ function nu(e) {
|
|
|
6190
6206
|
return !0;
|
|
6191
6207
|
}
|
|
6192
6208
|
}
|
|
6193
|
-
function
|
|
6209
|
+
function iu(e) {
|
|
6194
6210
|
return Lt(n);
|
|
6195
6211
|
function n(t) {
|
|
6196
6212
|
return t && t.type === e;
|
|
@@ -6199,7 +6215,7 @@ function ru(e) {
|
|
|
6199
6215
|
function Lt(e) {
|
|
6200
6216
|
return n;
|
|
6201
6217
|
function n(t, r, i) {
|
|
6202
|
-
return !!(
|
|
6218
|
+
return !!(ou(t) && e.call(
|
|
6203
6219
|
this,
|
|
6204
6220
|
t,
|
|
6205
6221
|
typeof r == "number" ? r : void 0,
|
|
@@ -6207,13 +6223,13 @@ function Lt(e) {
|
|
|
6207
6223
|
));
|
|
6208
6224
|
}
|
|
6209
6225
|
}
|
|
6210
|
-
function
|
|
6226
|
+
function lu() {
|
|
6211
6227
|
return !0;
|
|
6212
6228
|
}
|
|
6213
|
-
function
|
|
6229
|
+
function ou(e) {
|
|
6214
6230
|
return e !== null && typeof e == "object" && "type" in e;
|
|
6215
6231
|
}
|
|
6216
|
-
const mi = [],
|
|
6232
|
+
const mi = [], au = !0, nn = !1, su = "skip";
|
|
6217
6233
|
function gi(e, n, t, r) {
|
|
6218
6234
|
let i;
|
|
6219
6235
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
|
@@ -6239,14 +6255,14 @@ function gi(e, n, t, r) {
|
|
|
6239
6255
|
return h;
|
|
6240
6256
|
function h() {
|
|
6241
6257
|
let p = mi, g, C, S;
|
|
6242
|
-
if ((!n || o(s, u, f[f.length - 1] || void 0)) && (p =
|
|
6258
|
+
if ((!n || o(s, u, f[f.length - 1] || void 0)) && (p = uu(t(s, f)), p[0] === nn))
|
|
6243
6259
|
return p;
|
|
6244
6260
|
if ("children" in s && s.children) {
|
|
6245
6261
|
const y = (
|
|
6246
6262
|
/** @type {UnistParent} */
|
|
6247
6263
|
s
|
|
6248
6264
|
);
|
|
6249
|
-
if (y.children && p[0] !==
|
|
6265
|
+
if (y.children && p[0] !== su)
|
|
6250
6266
|
for (C = (r ? y.children.length : -1) + l, S = f.concat(y); C > -1 && C < y.children.length; ) {
|
|
6251
6267
|
const I = y.children[C];
|
|
6252
6268
|
if (g = a(I, C, S)(), g[0] === nn)
|
|
@@ -6258,8 +6274,8 @@ function gi(e, n, t, r) {
|
|
|
6258
6274
|
}
|
|
6259
6275
|
}
|
|
6260
6276
|
}
|
|
6261
|
-
function
|
|
6262
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
6277
|
+
function uu(e) {
|
|
6278
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [au, e] : e == null ? mi : [e];
|
|
6263
6279
|
}
|
|
6264
6280
|
function vn(e, n, t, r) {
|
|
6265
6281
|
let i, o, l;
|
|
@@ -6269,11 +6285,11 @@ function vn(e, n, t, r) {
|
|
|
6269
6285
|
return l(s, c, f);
|
|
6270
6286
|
}
|
|
6271
6287
|
}
|
|
6272
|
-
const rn = {}.hasOwnProperty,
|
|
6273
|
-
function
|
|
6274
|
-
const t = n ||
|
|
6288
|
+
const rn = {}.hasOwnProperty, cu = {};
|
|
6289
|
+
function fu(e, n) {
|
|
6290
|
+
const t = n || cu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...Qs, ...t.handlers }, a = {
|
|
6275
6291
|
all: u,
|
|
6276
|
-
applyData:
|
|
6292
|
+
applyData: hu,
|
|
6277
6293
|
definitionById: r,
|
|
6278
6294
|
footnoteById: i,
|
|
6279
6295
|
footnoteCounts: o,
|
|
@@ -6281,8 +6297,8 @@ function cu(e, n) {
|
|
|
6281
6297
|
handlers: l,
|
|
6282
6298
|
one: s,
|
|
6283
6299
|
options: t,
|
|
6284
|
-
patch:
|
|
6285
|
-
wrap:
|
|
6300
|
+
patch: pu,
|
|
6301
|
+
wrap: mu
|
|
6286
6302
|
};
|
|
6287
6303
|
return vn(e, function(f) {
|
|
6288
6304
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
@@ -6301,7 +6317,7 @@ function cu(e, n) {
|
|
|
6301
6317
|
}
|
|
6302
6318
|
return Et(f);
|
|
6303
6319
|
}
|
|
6304
|
-
return (a.options.unknownHandler ||
|
|
6320
|
+
return (a.options.unknownHandler || du)(a, f, c);
|
|
6305
6321
|
}
|
|
6306
6322
|
function u(f) {
|
|
6307
6323
|
const c = [];
|
|
@@ -6322,10 +6338,10 @@ function cu(e, n) {
|
|
|
6322
6338
|
return c;
|
|
6323
6339
|
}
|
|
6324
6340
|
}
|
|
6325
|
-
function fu(e, n) {
|
|
6326
|
-
e.position && (n.position = Kl(e));
|
|
6327
|
-
}
|
|
6328
6341
|
function pu(e, n) {
|
|
6342
|
+
e.position && (n.position = Zl(e));
|
|
6343
|
+
}
|
|
6344
|
+
function hu(e, n) {
|
|
6329
6345
|
let t = n;
|
|
6330
6346
|
if (e && e.data) {
|
|
6331
6347
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -6340,7 +6356,7 @@ function pu(e, n) {
|
|
|
6340
6356
|
}
|
|
6341
6357
|
return t;
|
|
6342
6358
|
}
|
|
6343
|
-
function
|
|
6359
|
+
function du(e, n) {
|
|
6344
6360
|
const t = n.data || {}, r = "value" in n && !(rn.call(t, "hProperties") || rn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
|
|
6345
6361
|
type: "element",
|
|
6346
6362
|
tagName: "div",
|
|
@@ -6349,7 +6365,7 @@ function hu(e, n) {
|
|
|
6349
6365
|
};
|
|
6350
6366
|
return e.patch(n, r), e.applyData(n, r);
|
|
6351
6367
|
}
|
|
6352
|
-
function
|
|
6368
|
+
function mu(e, n) {
|
|
6353
6369
|
const t = [];
|
|
6354
6370
|
let r = -1;
|
|
6355
6371
|
for (n && t.push({ type: "text", value: `
|
|
@@ -6366,11 +6382,11 @@ function cr(e) {
|
|
|
6366
6382
|
return e.slice(n);
|
|
6367
6383
|
}
|
|
6368
6384
|
function fr(e, n) {
|
|
6369
|
-
const t =
|
|
6385
|
+
const t = fu(e, n), r = t.one(e, void 0), i = tu(t), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
6370
6386
|
return i && o.children.push({ type: "text", value: `
|
|
6371
6387
|
` }, i), o;
|
|
6372
6388
|
}
|
|
6373
|
-
function
|
|
6389
|
+
function gu(e, n) {
|
|
6374
6390
|
return e && "run" in e ? async function(t, r) {
|
|
6375
6391
|
const i = (
|
|
6376
6392
|
/** @type {HastRoot} */
|
|
@@ -6389,7 +6405,7 @@ function pr(e) {
|
|
|
6389
6405
|
throw e;
|
|
6390
6406
|
}
|
|
6391
6407
|
var Ot, hr;
|
|
6392
|
-
function
|
|
6408
|
+
function yu() {
|
|
6393
6409
|
if (hr) return Ot;
|
|
6394
6410
|
hr = 1;
|
|
6395
6411
|
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
@@ -6428,15 +6444,15 @@ function gu() {
|
|
|
6428
6444
|
return C;
|
|
6429
6445
|
}, Ot;
|
|
6430
6446
|
}
|
|
6431
|
-
var
|
|
6432
|
-
const jt = /* @__PURE__ */ Hr(
|
|
6447
|
+
var ku = yu();
|
|
6448
|
+
const jt = /* @__PURE__ */ Hr(ku);
|
|
6433
6449
|
function ln(e) {
|
|
6434
6450
|
if (typeof e != "object" || e === null)
|
|
6435
6451
|
return !1;
|
|
6436
6452
|
const n = Object.getPrototypeOf(e);
|
|
6437
6453
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
6438
6454
|
}
|
|
6439
|
-
function
|
|
6455
|
+
function xu() {
|
|
6440
6456
|
const e = [], n = { run: t, use: r };
|
|
6441
6457
|
return n;
|
|
6442
6458
|
function t(...i) {
|
|
@@ -6454,7 +6470,7 @@ function ku() {
|
|
|
6454
6470
|
}
|
|
6455
6471
|
for (; ++c < i.length; )
|
|
6456
6472
|
(u[c] === null || u[c] === void 0) && (u[c] = i[c]);
|
|
6457
|
-
i = u, f ?
|
|
6473
|
+
i = u, f ? bu(f, a)(...u) : l(null, ...u);
|
|
6458
6474
|
}
|
|
6459
6475
|
}
|
|
6460
6476
|
function r(i) {
|
|
@@ -6465,7 +6481,7 @@ function ku() {
|
|
|
6465
6481
|
return e.push(i), n;
|
|
6466
6482
|
}
|
|
6467
6483
|
}
|
|
6468
|
-
function
|
|
6484
|
+
function bu(e, n) {
|
|
6469
6485
|
let t;
|
|
6470
6486
|
return r;
|
|
6471
6487
|
function r(...l) {
|
|
@@ -6492,8 +6508,8 @@ function xu(e, n) {
|
|
|
6492
6508
|
i(null, l);
|
|
6493
6509
|
}
|
|
6494
6510
|
}
|
|
6495
|
-
const be = { basename:
|
|
6496
|
-
function
|
|
6511
|
+
const be = { basename: wu, dirname: Cu, extname: Su, join: vu, sep: "/" };
|
|
6512
|
+
function wu(e, n) {
|
|
6497
6513
|
if (n !== void 0 && typeof n != "string")
|
|
6498
6514
|
throw new TypeError('"ext" argument must be a string');
|
|
6499
6515
|
pt(e);
|
|
@@ -6521,7 +6537,7 @@ function bu(e, n) {
|
|
|
6521
6537
|
l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
|
|
6522
6538
|
return t === r ? r = l : r < 0 && (r = e.length), e.slice(t, r);
|
|
6523
6539
|
}
|
|
6524
|
-
function
|
|
6540
|
+
function Cu(e) {
|
|
6525
6541
|
if (pt(e), e.length === 0)
|
|
6526
6542
|
return ".";
|
|
6527
6543
|
let n = -1, t = e.length, r;
|
|
@@ -6534,7 +6550,7 @@ function wu(e) {
|
|
|
6534
6550
|
} else r || (r = !0);
|
|
6535
6551
|
return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
|
|
6536
6552
|
}
|
|
6537
|
-
function
|
|
6553
|
+
function Su(e) {
|
|
6538
6554
|
pt(e);
|
|
6539
6555
|
let n = e.length, t = -1, r = 0, i = -1, o = 0, l;
|
|
6540
6556
|
for (; n--; ) {
|
|
@@ -6552,19 +6568,19 @@ function Cu(e) {
|
|
|
6552
6568
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
6553
6569
|
o === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
|
|
6554
6570
|
}
|
|
6555
|
-
function
|
|
6571
|
+
function vu(...e) {
|
|
6556
6572
|
let n = -1, t;
|
|
6557
6573
|
for (; ++n < e.length; )
|
|
6558
6574
|
pt(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
|
|
6559
|
-
return t === void 0 ? "." :
|
|
6575
|
+
return t === void 0 ? "." : _u(t);
|
|
6560
6576
|
}
|
|
6561
|
-
function
|
|
6577
|
+
function _u(e) {
|
|
6562
6578
|
pt(e);
|
|
6563
6579
|
const n = e.codePointAt(0) === 47;
|
|
6564
|
-
let t =
|
|
6580
|
+
let t = Eu(e, !n);
|
|
6565
6581
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
|
6566
6582
|
}
|
|
6567
|
-
function
|
|
6583
|
+
function Eu(e, n) {
|
|
6568
6584
|
let t = "", r = 0, i = -1, o = 0, l = -1, a, s;
|
|
6569
6585
|
for (; ++l <= e.length; ) {
|
|
6570
6586
|
if (l < e.length)
|
|
@@ -6601,15 +6617,15 @@ function pt(e) {
|
|
|
6601
6617
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
6602
6618
|
);
|
|
6603
6619
|
}
|
|
6604
|
-
const
|
|
6605
|
-
function
|
|
6620
|
+
const Iu = { cwd: Au };
|
|
6621
|
+
function Au() {
|
|
6606
6622
|
return "/";
|
|
6607
6623
|
}
|
|
6608
6624
|
function on(e) {
|
|
6609
6625
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
6610
6626
|
e.auth === void 0);
|
|
6611
6627
|
}
|
|
6612
|
-
function
|
|
6628
|
+
function Tu(e) {
|
|
6613
6629
|
if (typeof e == "string")
|
|
6614
6630
|
e = new URL(e);
|
|
6615
6631
|
else if (!on(e)) {
|
|
@@ -6622,9 +6638,9 @@ function Au(e) {
|
|
|
6622
6638
|
const n = new TypeError("The URL must be of scheme file");
|
|
6623
6639
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
|
6624
6640
|
}
|
|
6625
|
-
return
|
|
6641
|
+
return zu(e);
|
|
6626
6642
|
}
|
|
6627
|
-
function
|
|
6643
|
+
function zu(e) {
|
|
6628
6644
|
if (e.hostname !== "") {
|
|
6629
6645
|
const r = new TypeError(
|
|
6630
6646
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -6681,7 +6697,7 @@ class yi {
|
|
|
6681
6697
|
*/
|
|
6682
6698
|
constructor(n) {
|
|
6683
6699
|
let t;
|
|
6684
|
-
n ? on(n) ? t = { path: n } : typeof n == "string" ||
|
|
6700
|
+
n ? on(n) ? t = { path: n } : typeof n == "string" || Pu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Iu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
6685
6701
|
let r = -1;
|
|
6686
6702
|
for (; ++r < Bt.length; ) {
|
|
6687
6703
|
const o = Bt[r];
|
|
@@ -6789,7 +6805,7 @@ class yi {
|
|
|
6789
6805
|
* Nothing.
|
|
6790
6806
|
*/
|
|
6791
6807
|
set path(n) {
|
|
6792
|
-
on(n) && (n =
|
|
6808
|
+
on(n) && (n = Tu(n)), Ht(n, "path"), this.path !== n && this.history.push(n);
|
|
6793
6809
|
}
|
|
6794
6810
|
/**
|
|
6795
6811
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -7040,10 +7056,10 @@ function dr(e, n) {
|
|
|
7040
7056
|
if (!e)
|
|
7041
7057
|
throw new Error("Setting `" + n + "` requires `path` to be set too");
|
|
7042
7058
|
}
|
|
7043
|
-
function
|
|
7059
|
+
function Pu(e) {
|
|
7044
7060
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
7045
7061
|
}
|
|
7046
|
-
const
|
|
7062
|
+
const Lu = (
|
|
7047
7063
|
/**
|
|
7048
7064
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
7049
7065
|
*/
|
|
@@ -7064,13 +7080,13 @@ const Pu = (
|
|
|
7064
7080
|
};
|
|
7065
7081
|
return Object.setPrototypeOf(o, r), o;
|
|
7066
7082
|
})
|
|
7067
|
-
),
|
|
7068
|
-
class _n extends
|
|
7083
|
+
), Du = {}.hasOwnProperty;
|
|
7084
|
+
class _n extends Lu {
|
|
7069
7085
|
/**
|
|
7070
7086
|
* Create a processor.
|
|
7071
7087
|
*/
|
|
7072
7088
|
constructor() {
|
|
7073
|
-
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 =
|
|
7089
|
+
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 = xu();
|
|
7074
7090
|
}
|
|
7075
7091
|
/**
|
|
7076
7092
|
* Copy a processor.
|
|
@@ -7155,7 +7171,7 @@ class _n extends Pu {
|
|
|
7155
7171
|
* the entire dataset when getting without key.
|
|
7156
7172
|
*/
|
|
7157
7173
|
data(n, t) {
|
|
7158
|
-
return typeof n == "string" ? arguments.length === 2 ? (Ut("data", this.frozen), this.namespace[n] = t, this) :
|
|
7174
|
+
return typeof n == "string" ? arguments.length === 2 ? (Ut("data", this.frozen), this.namespace[n] = t, this) : Du.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (Ut("data", this.frozen), this.namespace = n, this) : this.namespace;
|
|
7159
7175
|
}
|
|
7160
7176
|
/**
|
|
7161
7177
|
* Freeze a processor.
|
|
@@ -7270,7 +7286,7 @@ class _n extends Pu {
|
|
|
7270
7286
|
/** @type {unknown} */
|
|
7271
7287
|
c
|
|
7272
7288
|
), g = r.stringify(p, h);
|
|
7273
|
-
|
|
7289
|
+
Ru(g) ? h.value = g : h.result = g, u(
|
|
7274
7290
|
f,
|
|
7275
7291
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
7276
7292
|
h
|
|
@@ -7546,7 +7562,7 @@ class _n extends Pu {
|
|
|
7546
7562
|
}
|
|
7547
7563
|
}
|
|
7548
7564
|
}
|
|
7549
|
-
const
|
|
7565
|
+
const Nu = new _n().freeze();
|
|
7550
7566
|
function Vt(e, n) {
|
|
7551
7567
|
if (typeof n != "function")
|
|
7552
7568
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -7572,18 +7588,18 @@ function gr(e, n, t) {
|
|
|
7572
7588
|
);
|
|
7573
7589
|
}
|
|
7574
7590
|
function yt(e) {
|
|
7575
|
-
return
|
|
7576
|
-
}
|
|
7577
|
-
function Nu(e) {
|
|
7578
|
-
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
7591
|
+
return Mu(e) ? e : new yi(e);
|
|
7579
7592
|
}
|
|
7580
7593
|
function Mu(e) {
|
|
7581
|
-
return typeof e == "
|
|
7594
|
+
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
7582
7595
|
}
|
|
7583
7596
|
function Ru(e) {
|
|
7597
|
+
return typeof e == "string" || Fu(e);
|
|
7598
|
+
}
|
|
7599
|
+
function Fu(e) {
|
|
7584
7600
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
7585
7601
|
}
|
|
7586
|
-
const
|
|
7602
|
+
const Ou = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", yr = [], kr = { allowDangerousHtml: !0 }, ju = /^(https?|ircs?|mailto|xmpp)$/i, Bu = [
|
|
7587
7603
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
7588
7604
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
7589
7605
|
{
|
|
@@ -7617,27 +7633,27 @@ const Fu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
7617
7633
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
7618
7634
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
7619
7635
|
];
|
|
7620
|
-
function Bu(e) {
|
|
7621
|
-
const n = $u(e), t = Hu(e);
|
|
7622
|
-
return Vu(n.runSync(n.parse(t), t), e);
|
|
7623
|
-
}
|
|
7624
7636
|
function $u(e) {
|
|
7625
|
-
const n = e
|
|
7626
|
-
return
|
|
7637
|
+
const n = Hu(e), t = Vu(e);
|
|
7638
|
+
return qu(n.runSync(n.parse(t), t), e);
|
|
7627
7639
|
}
|
|
7628
7640
|
function Hu(e) {
|
|
7641
|
+
const n = e.rehypePlugins || yr, t = e.remarkPlugins || yr, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...kr } : kr;
|
|
7642
|
+
return Nu().use(Cs).use(t).use(gu, r).use(n);
|
|
7643
|
+
}
|
|
7644
|
+
function Vu(e) {
|
|
7629
7645
|
const n = e.children || "", t = new yi();
|
|
7630
7646
|
return typeof n == "string" && (t.value = n), t;
|
|
7631
7647
|
}
|
|
7632
|
-
function
|
|
7633
|
-
const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform ||
|
|
7634
|
-
for (const f of
|
|
7635
|
-
Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") +
|
|
7636
|
-
return vn(e, u),
|
|
7648
|
+
function qu(e, n) {
|
|
7649
|
+
const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform || Uu;
|
|
7650
|
+
for (const f of Bu)
|
|
7651
|
+
Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + Ou + f.id, void 0);
|
|
7652
|
+
return vn(e, u), io(e, {
|
|
7637
7653
|
Fragment: un,
|
|
7638
7654
|
components: i,
|
|
7639
7655
|
ignoreInvalidStyle: !0,
|
|
7640
|
-
jsx:
|
|
7656
|
+
jsx: x,
|
|
7641
7657
|
jsxs: Y,
|
|
7642
7658
|
passKeys: !0,
|
|
7643
7659
|
passNode: !0
|
|
@@ -7660,13 +7676,13 @@ function Vu(e, n) {
|
|
|
7660
7676
|
}
|
|
7661
7677
|
}
|
|
7662
7678
|
}
|
|
7663
|
-
function
|
|
7679
|
+
function Uu(e) {
|
|
7664
7680
|
const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
7665
7681
|
return (
|
|
7666
7682
|
// If there is no protocol, it’s relative.
|
|
7667
7683
|
n === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
7668
7684
|
i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r || // It is a protocol, it should be allowed.
|
|
7669
|
-
|
|
7685
|
+
ju.test(e.slice(0, n)) ? e : ""
|
|
7670
7686
|
);
|
|
7671
7687
|
}
|
|
7672
7688
|
function xr(e, n) {
|
|
@@ -7678,13 +7694,13 @@ function xr(e, n) {
|
|
|
7678
7694
|
r++, i = t.indexOf(n, i + n.length);
|
|
7679
7695
|
return r;
|
|
7680
7696
|
}
|
|
7681
|
-
function
|
|
7697
|
+
function Wu(e) {
|
|
7682
7698
|
if (typeof e != "string")
|
|
7683
7699
|
throw new TypeError("Expected a string");
|
|
7684
7700
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
7685
7701
|
}
|
|
7686
|
-
function
|
|
7687
|
-
const i = Pt((t || {}).ignore || []), o =
|
|
7702
|
+
function Yu(e, n, t) {
|
|
7703
|
+
const i = Pt((t || {}).ignore || []), o = Qu(n);
|
|
7688
7704
|
let l = -1;
|
|
7689
7705
|
for (; ++l < o.length; )
|
|
7690
7706
|
gi(e, "text", a);
|
|
@@ -7716,18 +7732,18 @@ function Wu(e, n, t) {
|
|
|
7716
7732
|
input: _.input,
|
|
7717
7733
|
stack: [...f, u]
|
|
7718
7734
|
};
|
|
7719
|
-
let
|
|
7720
|
-
if (typeof
|
|
7735
|
+
let b = p(..._, N);
|
|
7736
|
+
if (typeof b == "string" && (b = b.length > 0 ? { type: "text", value: b } : void 0), b === !1 ? h.lastIndex = L + 1 : (g !== L && I.push({
|
|
7721
7737
|
type: "text",
|
|
7722
7738
|
value: u.value.slice(g, L)
|
|
7723
|
-
}), Array.isArray(
|
|
7739
|
+
}), Array.isArray(b) ? I.push(...b) : b && I.push(b), g = L + _[0].length, y = !0), !h.global)
|
|
7724
7740
|
break;
|
|
7725
7741
|
_ = h.exec(u.value);
|
|
7726
7742
|
}
|
|
7727
7743
|
return y ? (g < u.value.length && I.push({ type: "text", value: u.value.slice(g) }), c.children.splice(S, 1, ...I)) : I = [u], S + I.length;
|
|
7728
7744
|
}
|
|
7729
7745
|
}
|
|
7730
|
-
function
|
|
7746
|
+
function Qu(e) {
|
|
7731
7747
|
const n = [];
|
|
7732
7748
|
if (!Array.isArray(e))
|
|
7733
7749
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -7735,37 +7751,37 @@ function Yu(e) {
|
|
|
7735
7751
|
let r = -1;
|
|
7736
7752
|
for (; ++r < t.length; ) {
|
|
7737
7753
|
const i = t[r];
|
|
7738
|
-
n.push([
|
|
7754
|
+
n.push([Xu(i[0]), Gu(i[1])]);
|
|
7739
7755
|
}
|
|
7740
7756
|
return n;
|
|
7741
7757
|
}
|
|
7742
|
-
function Qu(e) {
|
|
7743
|
-
return typeof e == "string" ? new RegExp(Uu(e), "g") : e;
|
|
7744
|
-
}
|
|
7745
7758
|
function Xu(e) {
|
|
7759
|
+
return typeof e == "string" ? new RegExp(Wu(e), "g") : e;
|
|
7760
|
+
}
|
|
7761
|
+
function Gu(e) {
|
|
7746
7762
|
return typeof e == "function" ? e : function() {
|
|
7747
7763
|
return e;
|
|
7748
7764
|
};
|
|
7749
7765
|
}
|
|
7750
7766
|
const Wt = "phrasing", Yt = ["autolink", "link", "image", "label"];
|
|
7751
|
-
function
|
|
7767
|
+
function Ju() {
|
|
7752
7768
|
return {
|
|
7753
|
-
transforms: [
|
|
7769
|
+
transforms: [ic],
|
|
7754
7770
|
enter: {
|
|
7755
|
-
literalAutolink:
|
|
7771
|
+
literalAutolink: Zu,
|
|
7756
7772
|
literalAutolinkEmail: Qt,
|
|
7757
7773
|
literalAutolinkHttp: Qt,
|
|
7758
7774
|
literalAutolinkWww: Qt
|
|
7759
7775
|
},
|
|
7760
7776
|
exit: {
|
|
7761
|
-
literalAutolink:
|
|
7762
|
-
literalAutolinkEmail:
|
|
7763
|
-
literalAutolinkHttp:
|
|
7764
|
-
literalAutolinkWww:
|
|
7777
|
+
literalAutolink: rc,
|
|
7778
|
+
literalAutolinkEmail: nc,
|
|
7779
|
+
literalAutolinkHttp: ec,
|
|
7780
|
+
literalAutolinkWww: tc
|
|
7765
7781
|
}
|
|
7766
7782
|
};
|
|
7767
7783
|
}
|
|
7768
|
-
function
|
|
7784
|
+
function Ku() {
|
|
7769
7785
|
return {
|
|
7770
7786
|
unsafe: [
|
|
7771
7787
|
{
|
|
@@ -7792,41 +7808,41 @@ function Ju() {
|
|
|
7792
7808
|
]
|
|
7793
7809
|
};
|
|
7794
7810
|
}
|
|
7795
|
-
function
|
|
7811
|
+
function Zu(e) {
|
|
7796
7812
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
7797
7813
|
}
|
|
7798
7814
|
function Qt(e) {
|
|
7799
7815
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
7800
7816
|
}
|
|
7801
|
-
function
|
|
7817
|
+
function ec(e) {
|
|
7802
7818
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
7803
7819
|
}
|
|
7804
|
-
function
|
|
7820
|
+
function tc(e) {
|
|
7805
7821
|
this.config.exit.data.call(this, e);
|
|
7806
7822
|
const n = this.stack[this.stack.length - 1];
|
|
7807
7823
|
n.type, n.url = "http://" + this.sliceSerialize(e);
|
|
7808
7824
|
}
|
|
7809
|
-
function
|
|
7825
|
+
function nc(e) {
|
|
7810
7826
|
this.config.exit.autolinkEmail.call(this, e);
|
|
7811
7827
|
}
|
|
7812
|
-
function
|
|
7828
|
+
function rc(e) {
|
|
7813
7829
|
this.exit(e);
|
|
7814
7830
|
}
|
|
7815
|
-
function
|
|
7816
|
-
|
|
7831
|
+
function ic(e) {
|
|
7832
|
+
Yu(
|
|
7817
7833
|
e,
|
|
7818
7834
|
[
|
|
7819
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
7820
|
-
[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,
|
|
7835
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, lc],
|
|
7836
|
+
[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, oc]
|
|
7821
7837
|
],
|
|
7822
7838
|
{ ignore: ["link", "linkReference"] }
|
|
7823
7839
|
);
|
|
7824
7840
|
}
|
|
7825
|
-
function
|
|
7841
|
+
function lc(e, n, t, r, i) {
|
|
7826
7842
|
let o = "";
|
|
7827
|
-
if (!ki(i) || (/^w/i.test(n) && (t = n + t, n = "", o = "http://"), !
|
|
7843
|
+
if (!ki(i) || (/^w/i.test(n) && (t = n + t, n = "", o = "http://"), !ac(t)))
|
|
7828
7844
|
return !1;
|
|
7829
|
-
const l =
|
|
7845
|
+
const l = sc(t + r);
|
|
7830
7846
|
if (!l[0]) return !1;
|
|
7831
7847
|
const a = {
|
|
7832
7848
|
type: "link",
|
|
@@ -7836,7 +7852,7 @@ function ic(e, n, t, r, i) {
|
|
|
7836
7852
|
};
|
|
7837
7853
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
7838
7854
|
}
|
|
7839
|
-
function
|
|
7855
|
+
function oc(e, n, t, r) {
|
|
7840
7856
|
return (
|
|
7841
7857
|
// Not an expected previous character.
|
|
7842
7858
|
!ki(r, !0) || // Label ends in not allowed character.
|
|
@@ -7848,11 +7864,11 @@ function lc(e, n, t, r) {
|
|
|
7848
7864
|
}
|
|
7849
7865
|
);
|
|
7850
7866
|
}
|
|
7851
|
-
function
|
|
7867
|
+
function ac(e) {
|
|
7852
7868
|
const n = e.split(".");
|
|
7853
7869
|
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])));
|
|
7854
7870
|
}
|
|
7855
|
-
function
|
|
7871
|
+
function sc(e) {
|
|
7856
7872
|
const n = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
7857
7873
|
if (!n)
|
|
7858
7874
|
return [e, void 0];
|
|
@@ -7869,41 +7885,41 @@ function ki(e, n) {
|
|
|
7869
7885
|
return (e.index === 0 || Oe(t) || At(t)) && // If it’s an email, the previous character should not be a slash.
|
|
7870
7886
|
(!n || t !== 47);
|
|
7871
7887
|
}
|
|
7872
|
-
xi.peek =
|
|
7873
|
-
function
|
|
7888
|
+
xi.peek = yc;
|
|
7889
|
+
function uc() {
|
|
7874
7890
|
this.buffer();
|
|
7875
7891
|
}
|
|
7876
|
-
function
|
|
7892
|
+
function cc(e) {
|
|
7877
7893
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
7878
7894
|
}
|
|
7879
|
-
function
|
|
7895
|
+
function fc() {
|
|
7880
7896
|
this.buffer();
|
|
7881
7897
|
}
|
|
7882
|
-
function
|
|
7898
|
+
function pc(e) {
|
|
7883
7899
|
this.enter(
|
|
7884
7900
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
7885
7901
|
e
|
|
7886
7902
|
);
|
|
7887
7903
|
}
|
|
7888
|
-
function
|
|
7904
|
+
function hc(e) {
|
|
7889
7905
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7890
7906
|
t.type, t.identifier = ke(
|
|
7891
7907
|
this.sliceSerialize(e)
|
|
7892
7908
|
).toLowerCase(), t.label = n;
|
|
7893
7909
|
}
|
|
7894
|
-
function
|
|
7910
|
+
function dc(e) {
|
|
7895
7911
|
this.exit(e);
|
|
7896
7912
|
}
|
|
7897
|
-
function
|
|
7913
|
+
function mc(e) {
|
|
7898
7914
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
7899
7915
|
t.type, t.identifier = ke(
|
|
7900
7916
|
this.sliceSerialize(e)
|
|
7901
7917
|
).toLowerCase(), t.label = n;
|
|
7902
7918
|
}
|
|
7903
|
-
function
|
|
7919
|
+
function gc(e) {
|
|
7904
7920
|
this.exit(e);
|
|
7905
7921
|
}
|
|
7906
|
-
function
|
|
7922
|
+
function yc() {
|
|
7907
7923
|
return "[";
|
|
7908
7924
|
}
|
|
7909
7925
|
function xi(e, n, t, r) {
|
|
@@ -7914,23 +7930,23 @@ function xi(e, n, t, r) {
|
|
|
7914
7930
|
t.safe(t.associationId(e), { after: "]", before: o })
|
|
7915
7931
|
), a(), l(), o += i.move("]"), o;
|
|
7916
7932
|
}
|
|
7917
|
-
function
|
|
7933
|
+
function kc() {
|
|
7918
7934
|
return {
|
|
7919
7935
|
enter: {
|
|
7920
|
-
gfmFootnoteCallString:
|
|
7921
|
-
gfmFootnoteCall:
|
|
7922
|
-
gfmFootnoteDefinitionLabelString:
|
|
7923
|
-
gfmFootnoteDefinition:
|
|
7936
|
+
gfmFootnoteCallString: uc,
|
|
7937
|
+
gfmFootnoteCall: cc,
|
|
7938
|
+
gfmFootnoteDefinitionLabelString: fc,
|
|
7939
|
+
gfmFootnoteDefinition: pc
|
|
7924
7940
|
},
|
|
7925
7941
|
exit: {
|
|
7926
|
-
gfmFootnoteCallString:
|
|
7927
|
-
gfmFootnoteCall:
|
|
7928
|
-
gfmFootnoteDefinitionLabelString:
|
|
7929
|
-
gfmFootnoteDefinition:
|
|
7942
|
+
gfmFootnoteCallString: hc,
|
|
7943
|
+
gfmFootnoteCall: dc,
|
|
7944
|
+
gfmFootnoteDefinitionLabelString: mc,
|
|
7945
|
+
gfmFootnoteDefinition: gc
|
|
7930
7946
|
}
|
|
7931
7947
|
};
|
|
7932
7948
|
}
|
|
7933
|
-
function
|
|
7949
|
+
function xc(e) {
|
|
7934
7950
|
let n = !1;
|
|
7935
7951
|
return e && e.firstLineBlank && (n = !0), {
|
|
7936
7952
|
handlers: { footnoteDefinition: t, footnoteReference: xi },
|
|
@@ -7947,18 +7963,18 @@ function kc(e) {
|
|
|
7947
7963
|
(n ? `
|
|
7948
7964
|
` : " ") + o.indentLines(
|
|
7949
7965
|
o.containerFlow(r, a.current()),
|
|
7950
|
-
n ? bi :
|
|
7966
|
+
n ? bi : bc
|
|
7951
7967
|
)
|
|
7952
7968
|
)), u(), s;
|
|
7953
7969
|
}
|
|
7954
7970
|
}
|
|
7955
|
-
function
|
|
7971
|
+
function bc(e, n, t) {
|
|
7956
7972
|
return n === 0 ? e : bi(e, n, t);
|
|
7957
7973
|
}
|
|
7958
7974
|
function bi(e, n, t) {
|
|
7959
7975
|
return (t ? "" : " ") + e;
|
|
7960
7976
|
}
|
|
7961
|
-
const
|
|
7977
|
+
const wc = [
|
|
7962
7978
|
"autolink",
|
|
7963
7979
|
"destinationLiteral",
|
|
7964
7980
|
"destinationRaw",
|
|
@@ -7966,30 +7982,30 @@ const bc = [
|
|
|
7966
7982
|
"titleQuote",
|
|
7967
7983
|
"titleApostrophe"
|
|
7968
7984
|
];
|
|
7969
|
-
wi.peek =
|
|
7970
|
-
function
|
|
7985
|
+
wi.peek = Ec;
|
|
7986
|
+
function Cc() {
|
|
7971
7987
|
return {
|
|
7972
7988
|
canContainEols: ["delete"],
|
|
7973
|
-
enter: { strikethrough:
|
|
7974
|
-
exit: { strikethrough:
|
|
7989
|
+
enter: { strikethrough: vc },
|
|
7990
|
+
exit: { strikethrough: _c }
|
|
7975
7991
|
};
|
|
7976
7992
|
}
|
|
7977
|
-
function
|
|
7993
|
+
function Sc() {
|
|
7978
7994
|
return {
|
|
7979
7995
|
unsafe: [
|
|
7980
7996
|
{
|
|
7981
7997
|
character: "~",
|
|
7982
7998
|
inConstruct: "phrasing",
|
|
7983
|
-
notInConstruct:
|
|
7999
|
+
notInConstruct: wc
|
|
7984
8000
|
}
|
|
7985
8001
|
],
|
|
7986
8002
|
handlers: { delete: wi }
|
|
7987
8003
|
};
|
|
7988
8004
|
}
|
|
7989
|
-
function
|
|
8005
|
+
function vc(e) {
|
|
7990
8006
|
this.enter({ type: "delete", children: [] }, e);
|
|
7991
8007
|
}
|
|
7992
|
-
function
|
|
8008
|
+
function _c(e) {
|
|
7993
8009
|
this.exit(e);
|
|
7994
8010
|
}
|
|
7995
8011
|
function wi(e, n, t, r) {
|
|
@@ -8001,20 +8017,20 @@ function wi(e, n, t, r) {
|
|
|
8001
8017
|
after: "~"
|
|
8002
8018
|
}), l += i.move("~~"), o(), l;
|
|
8003
8019
|
}
|
|
8004
|
-
function
|
|
8020
|
+
function Ec() {
|
|
8005
8021
|
return "~";
|
|
8006
8022
|
}
|
|
8007
|
-
function
|
|
8023
|
+
function Ic(e) {
|
|
8008
8024
|
return e.length;
|
|
8009
8025
|
}
|
|
8010
|
-
function
|
|
8011
|
-
const t = n || {}, r = (t.align || []).concat(), i = t.stringLength ||
|
|
8026
|
+
function Ac(e, n) {
|
|
8027
|
+
const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || Ic, o = [], l = [], a = [], s = [];
|
|
8012
8028
|
let u = 0, f = -1;
|
|
8013
8029
|
for (; ++f < e.length; ) {
|
|
8014
8030
|
const C = [], S = [];
|
|
8015
8031
|
let y = -1;
|
|
8016
8032
|
for (e[f].length > u && (u = e[f].length); ++y < e[f].length; ) {
|
|
8017
|
-
const I =
|
|
8033
|
+
const I = Tc(e[f][y]);
|
|
8018
8034
|
if (t.alignDelimiters !== !1) {
|
|
8019
8035
|
const _ = i(I);
|
|
8020
8036
|
S[y] = _, (s[y] === void 0 || _ > s[y]) && (s[y] = _);
|
|
@@ -8055,8 +8071,8 @@ function Ic(e, n) {
|
|
|
8055
8071
|
const I = C[c] || "";
|
|
8056
8072
|
let _ = "", L = "";
|
|
8057
8073
|
if (t.alignDelimiters !== !1) {
|
|
8058
|
-
const N = s[c] - (S[c] || 0),
|
|
8059
|
-
|
|
8074
|
+
const N = s[c] - (S[c] || 0), b = o[c];
|
|
8075
|
+
b === 114 ? _ = " ".repeat(N) : b === 99 ? N % 2 ? (_ = " ".repeat(N / 2 + 0.5), L = " ".repeat(N / 2 - 0.5)) : (_ = " ".repeat(N / 2), L = _) : L = " ".repeat(N);
|
|
8060
8076
|
}
|
|
8061
8077
|
t.delimiterStart !== !1 && !c && y.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
8062
8078
|
// empty: there will be a closing space.
|
|
@@ -8069,26 +8085,26 @@ function Ic(e, n) {
|
|
|
8069
8085
|
return g.join(`
|
|
8070
8086
|
`);
|
|
8071
8087
|
}
|
|
8072
|
-
function
|
|
8088
|
+
function Tc(e) {
|
|
8073
8089
|
return e == null ? "" : String(e);
|
|
8074
8090
|
}
|
|
8075
8091
|
function br(e) {
|
|
8076
8092
|
const n = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
8077
8093
|
return n === 67 || n === 99 ? 99 : n === 76 || n === 108 ? 108 : n === 82 || n === 114 ? 114 : 0;
|
|
8078
8094
|
}
|
|
8079
|
-
function
|
|
8095
|
+
function zc(e, n, t, r) {
|
|
8080
8096
|
const i = t.enter("blockquote"), o = t.createTracker(r);
|
|
8081
8097
|
o.move("> "), o.shift(2);
|
|
8082
8098
|
const l = t.indentLines(
|
|
8083
8099
|
t.containerFlow(e, o.current()),
|
|
8084
|
-
|
|
8100
|
+
Pc
|
|
8085
8101
|
);
|
|
8086
8102
|
return i(), l;
|
|
8087
8103
|
}
|
|
8088
|
-
function
|
|
8104
|
+
function Pc(e, n, t) {
|
|
8089
8105
|
return ">" + (t ? "" : " ") + e;
|
|
8090
8106
|
}
|
|
8091
|
-
function
|
|
8107
|
+
function Lc(e, n) {
|
|
8092
8108
|
return wr(e, n.inConstruct, !0) && !wr(e, n.notInConstruct, !1);
|
|
8093
8109
|
}
|
|
8094
8110
|
function wr(e, n, t) {
|
|
@@ -8104,12 +8120,12 @@ function Cr(e, n, t, r) {
|
|
|
8104
8120
|
let i = -1;
|
|
8105
8121
|
for (; ++i < t.unsafe.length; )
|
|
8106
8122
|
if (t.unsafe[i].character === `
|
|
8107
|
-
` &&
|
|
8123
|
+
` && Lc(t.stack, t.unsafe[i]))
|
|
8108
8124
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
8109
8125
|
return `\\
|
|
8110
8126
|
`;
|
|
8111
8127
|
}
|
|
8112
|
-
function
|
|
8128
|
+
function Dc(e, n) {
|
|
8113
8129
|
const t = String(e);
|
|
8114
8130
|
let r = t.indexOf(n), i = r, o = 0, l = 0;
|
|
8115
8131
|
if (typeof n != "string")
|
|
@@ -8118,13 +8134,13 @@ function Lc(e, n) {
|
|
|
8118
8134
|
r === i ? ++o > l && (l = o) : o = 1, i = r + n.length, r = t.indexOf(n, i);
|
|
8119
8135
|
return l;
|
|
8120
8136
|
}
|
|
8121
|
-
function
|
|
8137
|
+
function Nc(e, n) {
|
|
8122
8138
|
return !!(n.options.fences === !1 && e.value && // If there’s no info…
|
|
8123
8139
|
!e.lang && // And there’s a non-whitespace character…
|
|
8124
8140
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
8125
8141
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
8126
8142
|
}
|
|
8127
|
-
function
|
|
8143
|
+
function Mc(e) {
|
|
8128
8144
|
const n = e.options.fence || "`";
|
|
8129
8145
|
if (n !== "`" && n !== "~")
|
|
8130
8146
|
throw new Error(
|
|
@@ -8132,13 +8148,13 @@ function Nc(e) {
|
|
|
8132
8148
|
);
|
|
8133
8149
|
return n;
|
|
8134
8150
|
}
|
|
8135
|
-
function
|
|
8136
|
-
const i =
|
|
8137
|
-
if (
|
|
8138
|
-
const c = t.enter("codeIndented"), h = t.indentLines(o,
|
|
8151
|
+
function Rc(e, n, t, r) {
|
|
8152
|
+
const i = Mc(t), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
8153
|
+
if (Nc(e, t)) {
|
|
8154
|
+
const c = t.enter("codeIndented"), h = t.indentLines(o, Fc);
|
|
8139
8155
|
return c(), h;
|
|
8140
8156
|
}
|
|
8141
|
-
const a = t.createTracker(r), s = i.repeat(Math.max(
|
|
8157
|
+
const a = t.createTracker(r), s = i.repeat(Math.max(Dc(o, i) + 1, 3)), u = t.enter("codeFenced");
|
|
8142
8158
|
let f = a.move(s);
|
|
8143
8159
|
if (e.lang) {
|
|
8144
8160
|
const c = t.enter(`codeFencedLang${l}`);
|
|
@@ -8167,7 +8183,7 @@ function Mc(e, n, t, r) {
|
|
|
8167
8183
|
`), o && (f += a.move(o + `
|
|
8168
8184
|
`)), f += a.move(s), u(), f;
|
|
8169
8185
|
}
|
|
8170
|
-
function
|
|
8186
|
+
function Fc(e, n, t) {
|
|
8171
8187
|
return (t ? "" : " ") + e;
|
|
8172
8188
|
}
|
|
8173
8189
|
function En(e) {
|
|
@@ -8178,7 +8194,7 @@ function En(e) {
|
|
|
8178
8194
|
);
|
|
8179
8195
|
return n;
|
|
8180
8196
|
}
|
|
8181
|
-
function
|
|
8197
|
+
function Oc(e, n, t, r) {
|
|
8182
8198
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.enter("definition");
|
|
8183
8199
|
let a = t.enter("label");
|
|
8184
8200
|
const s = t.createTracker(r);
|
|
@@ -8208,7 +8224,7 @@ function Fc(e, n, t, r) {
|
|
|
8208
8224
|
})
|
|
8209
8225
|
), u += s.move(i), a()), l(), u;
|
|
8210
8226
|
}
|
|
8211
|
-
function
|
|
8227
|
+
function jc(e) {
|
|
8212
8228
|
const n = e.options.emphasis || "*";
|
|
8213
8229
|
if (n !== "*" && n !== "_")
|
|
8214
8230
|
throw new Error(
|
|
@@ -8252,9 +8268,9 @@ function It(e, n, t) {
|
|
|
8252
8268
|
{ inside: !1, outside: !1 }
|
|
8253
8269
|
);
|
|
8254
8270
|
}
|
|
8255
|
-
Ci.peek =
|
|
8271
|
+
Ci.peek = Bc;
|
|
8256
8272
|
function Ci(e, n, t, r) {
|
|
8257
|
-
const i =
|
|
8273
|
+
const i = jc(t), o = t.enter("emphasis"), l = t.createTracker(r), a = l.move(i);
|
|
8258
8274
|
let s = l.move(
|
|
8259
8275
|
t.containerPhrasing(e, {
|
|
8260
8276
|
after: i,
|
|
@@ -8276,19 +8292,19 @@ function Ci(e, n, t, r) {
|
|
|
8276
8292
|
before: f.outside
|
|
8277
8293
|
}, a + s + p;
|
|
8278
8294
|
}
|
|
8279
|
-
function
|
|
8295
|
+
function Bc(e, n, t) {
|
|
8280
8296
|
return t.options.emphasis || "*";
|
|
8281
8297
|
}
|
|
8282
|
-
function
|
|
8298
|
+
function $c(e, n) {
|
|
8283
8299
|
let t = !1;
|
|
8284
8300
|
return vn(e, function(r) {
|
|
8285
8301
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
8286
8302
|
return t = !0, nn;
|
|
8287
8303
|
}), !!((!e.depth || e.depth < 3) && yn(e) && (n.options.setext || t));
|
|
8288
8304
|
}
|
|
8289
|
-
function
|
|
8305
|
+
function Hc(e, n, t, r) {
|
|
8290
8306
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = t.createTracker(r);
|
|
8291
|
-
if (
|
|
8307
|
+
if ($c(e, t)) {
|
|
8292
8308
|
const f = t.enter("headingSetext"), c = t.enter("phrasing"), h = t.containerPhrasing(e, {
|
|
8293
8309
|
...o.current(),
|
|
8294
8310
|
before: `
|
|
@@ -8315,14 +8331,14 @@ function $c(e, n, t, r) {
|
|
|
8315
8331
|
});
|
|
8316
8332
|
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;
|
|
8317
8333
|
}
|
|
8318
|
-
Si.peek =
|
|
8334
|
+
Si.peek = Vc;
|
|
8319
8335
|
function Si(e) {
|
|
8320
8336
|
return e.value || "";
|
|
8321
8337
|
}
|
|
8322
|
-
function
|
|
8338
|
+
function Vc() {
|
|
8323
8339
|
return "<";
|
|
8324
8340
|
}
|
|
8325
|
-
vi.peek =
|
|
8341
|
+
vi.peek = qc;
|
|
8326
8342
|
function vi(e, n, t, r) {
|
|
8327
8343
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.enter("image");
|
|
8328
8344
|
let a = t.enter("label");
|
|
@@ -8348,10 +8364,10 @@ function vi(e, n, t, r) {
|
|
|
8348
8364
|
})
|
|
8349
8365
|
), u += s.move(i), a()), u += s.move(")"), l(), u;
|
|
8350
8366
|
}
|
|
8351
|
-
function
|
|
8367
|
+
function qc() {
|
|
8352
8368
|
return "!";
|
|
8353
8369
|
}
|
|
8354
|
-
_i.peek =
|
|
8370
|
+
_i.peek = Uc;
|
|
8355
8371
|
function _i(e, n, t, r) {
|
|
8356
8372
|
const i = e.referenceType, o = t.enter("imageReference");
|
|
8357
8373
|
let l = t.enter("label");
|
|
@@ -8372,10 +8388,10 @@ function _i(e, n, t, r) {
|
|
|
8372
8388
|
});
|
|
8373
8389
|
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;
|
|
8374
8390
|
}
|
|
8375
|
-
function
|
|
8391
|
+
function Uc() {
|
|
8376
8392
|
return "!";
|
|
8377
8393
|
}
|
|
8378
|
-
Ei.peek =
|
|
8394
|
+
Ei.peek = Wc;
|
|
8379
8395
|
function Ei(e, n, t) {
|
|
8380
8396
|
let r = e.value || "", i = "`", o = -1;
|
|
8381
8397
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -8391,7 +8407,7 @@ function Ei(e, n, t) {
|
|
|
8391
8407
|
}
|
|
8392
8408
|
return i + r + i;
|
|
8393
8409
|
}
|
|
8394
|
-
function
|
|
8410
|
+
function Wc() {
|
|
8395
8411
|
return "`";
|
|
8396
8412
|
}
|
|
8397
8413
|
function Ii(e, n) {
|
|
@@ -8405,7 +8421,7 @@ function Ii(e, n) {
|
|
|
8405
8421
|
// references don’t work), space, or angle brackets…
|
|
8406
8422
|
!/[\0- <>\u007F]/.test(e.url));
|
|
8407
8423
|
}
|
|
8408
|
-
Ai.peek =
|
|
8424
|
+
Ai.peek = Yc;
|
|
8409
8425
|
function Ai(e, n, t, r) {
|
|
8410
8426
|
const i = En(t), o = i === '"' ? "Quote" : "Apostrophe", l = t.createTracker(r);
|
|
8411
8427
|
let a, s;
|
|
@@ -8447,10 +8463,10 @@ function Ai(e, n, t, r) {
|
|
|
8447
8463
|
})
|
|
8448
8464
|
), u += l.move(i), s()), u += l.move(")"), a(), u;
|
|
8449
8465
|
}
|
|
8450
|
-
function
|
|
8466
|
+
function Yc(e, n, t) {
|
|
8451
8467
|
return Ii(e, t) ? "<" : "[";
|
|
8452
8468
|
}
|
|
8453
|
-
Ti.peek =
|
|
8469
|
+
Ti.peek = Qc;
|
|
8454
8470
|
function Ti(e, n, t, r) {
|
|
8455
8471
|
const i = e.referenceType, o = t.enter("linkReference");
|
|
8456
8472
|
let l = t.enter("label");
|
|
@@ -8471,7 +8487,7 @@ function Ti(e, n, t, r) {
|
|
|
8471
8487
|
});
|
|
8472
8488
|
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;
|
|
8473
8489
|
}
|
|
8474
|
-
function
|
|
8490
|
+
function Qc() {
|
|
8475
8491
|
return "[";
|
|
8476
8492
|
}
|
|
8477
8493
|
function In(e) {
|
|
@@ -8482,7 +8498,7 @@ function In(e) {
|
|
|
8482
8498
|
);
|
|
8483
8499
|
return n;
|
|
8484
8500
|
}
|
|
8485
|
-
function
|
|
8501
|
+
function Xc(e) {
|
|
8486
8502
|
const n = In(e), t = e.options.bulletOther;
|
|
8487
8503
|
if (!t)
|
|
8488
8504
|
return n === "*" ? "-" : "*";
|
|
@@ -8496,7 +8512,7 @@ function Qc(e) {
|
|
|
8496
8512
|
);
|
|
8497
8513
|
return t;
|
|
8498
8514
|
}
|
|
8499
|
-
function
|
|
8515
|
+
function Gc(e) {
|
|
8500
8516
|
const n = e.options.bulletOrdered || ".";
|
|
8501
8517
|
if (n !== "." && n !== ")")
|
|
8502
8518
|
throw new Error(
|
|
@@ -8512,10 +8528,10 @@ function zi(e) {
|
|
|
8512
8528
|
);
|
|
8513
8529
|
return n;
|
|
8514
8530
|
}
|
|
8515
|
-
function
|
|
8531
|
+
function Jc(e, n, t, r) {
|
|
8516
8532
|
const i = t.enter("list"), o = t.bulletCurrent;
|
|
8517
|
-
let l = e.ordered ?
|
|
8518
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
8533
|
+
let l = e.ordered ? Gc(t) : In(t);
|
|
8534
|
+
const a = e.ordered ? l === "." ? ")" : "." : Xc(t);
|
|
8519
8535
|
let s = n && t.bulletLastUsed ? l === t.bulletLastUsed : !1;
|
|
8520
8536
|
if (!e.ordered) {
|
|
8521
8537
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -8540,7 +8556,7 @@ function Gc(e, n, t, r) {
|
|
|
8540
8556
|
const u = t.containerFlow(e, r);
|
|
8541
8557
|
return t.bulletLastUsed = l, t.bulletCurrent = o, i(), u;
|
|
8542
8558
|
}
|
|
8543
|
-
function
|
|
8559
|
+
function Kc(e) {
|
|
8544
8560
|
const n = e.options.listItemIndent || "one";
|
|
8545
8561
|
if (n !== "tab" && n !== "one" && n !== "mixed")
|
|
8546
8562
|
throw new Error(
|
|
@@ -8548,8 +8564,8 @@ function Jc(e) {
|
|
|
8548
8564
|
);
|
|
8549
8565
|
return n;
|
|
8550
8566
|
}
|
|
8551
|
-
function
|
|
8552
|
-
const i =
|
|
8567
|
+
function Zc(e, n, t, r) {
|
|
8568
|
+
const i = Kc(t);
|
|
8553
8569
|
let o = t.bulletCurrent || In(t);
|
|
8554
8570
|
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);
|
|
8555
8571
|
let l = o.length + 1;
|
|
@@ -8565,11 +8581,11 @@ function Kc(e, n, t, r) {
|
|
|
8565
8581
|
return h ? (p ? "" : " ".repeat(l)) + c : (p ? o : o + " ".repeat(l - o.length)) + c;
|
|
8566
8582
|
}
|
|
8567
8583
|
}
|
|
8568
|
-
function
|
|
8584
|
+
function ef(e, n, t, r) {
|
|
8569
8585
|
const i = t.enter("paragraph"), o = t.enter("phrasing"), l = t.containerPhrasing(e, r);
|
|
8570
8586
|
return o(), i(), l;
|
|
8571
8587
|
}
|
|
8572
|
-
const
|
|
8588
|
+
const tf = (
|
|
8573
8589
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
8574
8590
|
Pt([
|
|
8575
8591
|
"break",
|
|
@@ -8595,12 +8611,12 @@ const ef = (
|
|
|
8595
8611
|
"textDirective"
|
|
8596
8612
|
])
|
|
8597
8613
|
);
|
|
8598
|
-
function
|
|
8614
|
+
function nf(e, n, t, r) {
|
|
8599
8615
|
return (e.children.some(function(l) {
|
|
8600
|
-
return
|
|
8616
|
+
return tf(l);
|
|
8601
8617
|
}) ? t.containerPhrasing : t.containerFlow).call(t, e, r);
|
|
8602
8618
|
}
|
|
8603
|
-
function
|
|
8619
|
+
function rf(e) {
|
|
8604
8620
|
const n = e.options.strong || "*";
|
|
8605
8621
|
if (n !== "*" && n !== "_")
|
|
8606
8622
|
throw new Error(
|
|
@@ -8608,9 +8624,9 @@ function nf(e) {
|
|
|
8608
8624
|
);
|
|
8609
8625
|
return n;
|
|
8610
8626
|
}
|
|
8611
|
-
Pi.peek =
|
|
8627
|
+
Pi.peek = lf;
|
|
8612
8628
|
function Pi(e, n, t, r) {
|
|
8613
|
-
const i =
|
|
8629
|
+
const i = rf(t), o = t.enter("strong"), l = t.createTracker(r), a = l.move(i + i);
|
|
8614
8630
|
let s = l.move(
|
|
8615
8631
|
t.containerPhrasing(e, {
|
|
8616
8632
|
after: i,
|
|
@@ -8632,13 +8648,13 @@ function Pi(e, n, t, r) {
|
|
|
8632
8648
|
before: f.outside
|
|
8633
8649
|
}, a + s + p;
|
|
8634
8650
|
}
|
|
8635
|
-
function
|
|
8651
|
+
function lf(e, n, t) {
|
|
8636
8652
|
return t.options.strong || "*";
|
|
8637
8653
|
}
|
|
8638
|
-
function
|
|
8654
|
+
function of(e, n, t, r) {
|
|
8639
8655
|
return t.safe(e.value, r);
|
|
8640
8656
|
}
|
|
8641
|
-
function
|
|
8657
|
+
function af(e) {
|
|
8642
8658
|
const n = e.options.ruleRepetition || 3;
|
|
8643
8659
|
if (n < 3)
|
|
8644
8660
|
throw new Error(
|
|
@@ -8646,50 +8662,50 @@ function of(e) {
|
|
|
8646
8662
|
);
|
|
8647
8663
|
return n;
|
|
8648
8664
|
}
|
|
8649
|
-
function
|
|
8650
|
-
const r = (zi(t) + (t.options.ruleSpaces ? " " : "")).repeat(
|
|
8665
|
+
function sf(e, n, t) {
|
|
8666
|
+
const r = (zi(t) + (t.options.ruleSpaces ? " " : "")).repeat(af(t));
|
|
8651
8667
|
return t.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
8652
8668
|
}
|
|
8653
8669
|
const Li = {
|
|
8654
|
-
blockquote:
|
|
8670
|
+
blockquote: zc,
|
|
8655
8671
|
break: Cr,
|
|
8656
|
-
code:
|
|
8657
|
-
definition:
|
|
8672
|
+
code: Rc,
|
|
8673
|
+
definition: Oc,
|
|
8658
8674
|
emphasis: Ci,
|
|
8659
8675
|
hardBreak: Cr,
|
|
8660
|
-
heading:
|
|
8676
|
+
heading: Hc,
|
|
8661
8677
|
html: Si,
|
|
8662
8678
|
image: vi,
|
|
8663
8679
|
imageReference: _i,
|
|
8664
8680
|
inlineCode: Ei,
|
|
8665
8681
|
link: Ai,
|
|
8666
8682
|
linkReference: Ti,
|
|
8667
|
-
list:
|
|
8668
|
-
listItem:
|
|
8669
|
-
paragraph:
|
|
8670
|
-
root:
|
|
8683
|
+
list: Jc,
|
|
8684
|
+
listItem: Zc,
|
|
8685
|
+
paragraph: ef,
|
|
8686
|
+
root: nf,
|
|
8671
8687
|
strong: Pi,
|
|
8672
|
-
text:
|
|
8673
|
-
thematicBreak:
|
|
8688
|
+
text: of,
|
|
8689
|
+
thematicBreak: sf
|
|
8674
8690
|
};
|
|
8675
|
-
function
|
|
8691
|
+
function uf() {
|
|
8676
8692
|
return {
|
|
8677
8693
|
enter: {
|
|
8678
|
-
table:
|
|
8694
|
+
table: cf,
|
|
8679
8695
|
tableData: Sr,
|
|
8680
8696
|
tableHeader: Sr,
|
|
8681
|
-
tableRow:
|
|
8697
|
+
tableRow: pf
|
|
8682
8698
|
},
|
|
8683
8699
|
exit: {
|
|
8684
|
-
codeText:
|
|
8685
|
-
table:
|
|
8700
|
+
codeText: hf,
|
|
8701
|
+
table: ff,
|
|
8686
8702
|
tableData: Xt,
|
|
8687
8703
|
tableHeader: Xt,
|
|
8688
8704
|
tableRow: Xt
|
|
8689
8705
|
}
|
|
8690
8706
|
};
|
|
8691
8707
|
}
|
|
8692
|
-
function
|
|
8708
|
+
function cf(e) {
|
|
8693
8709
|
const n = e._align;
|
|
8694
8710
|
this.enter(
|
|
8695
8711
|
{
|
|
@@ -8702,10 +8718,10 @@ function uf(e) {
|
|
|
8702
8718
|
e
|
|
8703
8719
|
), this.data.inTable = !0;
|
|
8704
8720
|
}
|
|
8705
|
-
function
|
|
8721
|
+
function ff(e) {
|
|
8706
8722
|
this.exit(e), this.data.inTable = void 0;
|
|
8707
8723
|
}
|
|
8708
|
-
function
|
|
8724
|
+
function pf(e) {
|
|
8709
8725
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
8710
8726
|
}
|
|
8711
8727
|
function Xt(e) {
|
|
@@ -8714,16 +8730,16 @@ function Xt(e) {
|
|
|
8714
8730
|
function Sr(e) {
|
|
8715
8731
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
8716
8732
|
}
|
|
8717
|
-
function
|
|
8733
|
+
function hf(e) {
|
|
8718
8734
|
let n = this.resume();
|
|
8719
|
-
this.data.inTable && (n = n.replace(/\\([\\|])/g,
|
|
8735
|
+
this.data.inTable && (n = n.replace(/\\([\\|])/g, df));
|
|
8720
8736
|
const t = this.stack[this.stack.length - 1];
|
|
8721
8737
|
t.type, t.value = n, this.exit(e);
|
|
8722
8738
|
}
|
|
8723
|
-
function
|
|
8739
|
+
function df(e, n) {
|
|
8724
8740
|
return n === "|" ? n : e;
|
|
8725
8741
|
}
|
|
8726
|
-
function
|
|
8742
|
+
function mf(e) {
|
|
8727
8743
|
const n = e || {}, t = n.tableCellPadding, r = n.tablePipeAlign, i = n.stringLength, o = t ? " " : "|";
|
|
8728
8744
|
return {
|
|
8729
8745
|
unsafe: [
|
|
@@ -8769,7 +8785,7 @@ function df(e) {
|
|
|
8769
8785
|
return I(), y(), _;
|
|
8770
8786
|
}
|
|
8771
8787
|
function u(p, g) {
|
|
8772
|
-
return
|
|
8788
|
+
return Ac(p, {
|
|
8773
8789
|
align: g,
|
|
8774
8790
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
8775
8791
|
alignDelimiters: r,
|
|
@@ -8800,26 +8816,26 @@ function df(e) {
|
|
|
8800
8816
|
return C.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
|
|
8801
8817
|
}
|
|
8802
8818
|
}
|
|
8803
|
-
function
|
|
8819
|
+
function gf() {
|
|
8804
8820
|
return {
|
|
8805
8821
|
exit: {
|
|
8806
8822
|
taskListCheckValueChecked: vr,
|
|
8807
8823
|
taskListCheckValueUnchecked: vr,
|
|
8808
|
-
paragraph:
|
|
8824
|
+
paragraph: kf
|
|
8809
8825
|
}
|
|
8810
8826
|
};
|
|
8811
8827
|
}
|
|
8812
|
-
function
|
|
8828
|
+
function yf() {
|
|
8813
8829
|
return {
|
|
8814
8830
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
8815
|
-
handlers: { listItem:
|
|
8831
|
+
handlers: { listItem: xf }
|
|
8816
8832
|
};
|
|
8817
8833
|
}
|
|
8818
8834
|
function vr(e) {
|
|
8819
8835
|
const n = this.stack[this.stack.length - 2];
|
|
8820
8836
|
n.type, n.checked = e.type === "taskListCheckValueChecked";
|
|
8821
8837
|
}
|
|
8822
|
-
function
|
|
8838
|
+
function kf(e) {
|
|
8823
8839
|
const n = this.stack[this.stack.length - 2];
|
|
8824
8840
|
if (n && n.type === "listItem" && typeof n.checked == "boolean") {
|
|
8825
8841
|
const t = this.stack[this.stack.length - 1];
|
|
@@ -8840,7 +8856,7 @@ function yf(e) {
|
|
|
8840
8856
|
}
|
|
8841
8857
|
this.exit(e);
|
|
8842
8858
|
}
|
|
8843
|
-
function
|
|
8859
|
+
function xf(e, n, t, r) {
|
|
8844
8860
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = t.createTracker(r);
|
|
8845
8861
|
o && a.move(l);
|
|
8846
8862
|
let s = Li.listItem(e, n, t, {
|
|
@@ -8852,55 +8868,55 @@ function kf(e, n, t, r) {
|
|
|
8852
8868
|
return f + l;
|
|
8853
8869
|
}
|
|
8854
8870
|
}
|
|
8855
|
-
function
|
|
8871
|
+
function bf() {
|
|
8856
8872
|
return [
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8873
|
+
Ju(),
|
|
8874
|
+
kc(),
|
|
8875
|
+
Cc(),
|
|
8876
|
+
uf(),
|
|
8877
|
+
gf()
|
|
8862
8878
|
];
|
|
8863
8879
|
}
|
|
8864
|
-
function
|
|
8880
|
+
function wf(e) {
|
|
8865
8881
|
return {
|
|
8866
8882
|
extensions: [
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8883
|
+
Ku(),
|
|
8884
|
+
xc(e),
|
|
8885
|
+
Sc(),
|
|
8886
|
+
mf(e),
|
|
8887
|
+
yf()
|
|
8872
8888
|
]
|
|
8873
8889
|
};
|
|
8874
8890
|
}
|
|
8875
|
-
const
|
|
8876
|
-
tokenize: If,
|
|
8877
|
-
partial: !0
|
|
8878
|
-
}, Di = {
|
|
8891
|
+
const Cf = {
|
|
8879
8892
|
tokenize: Af,
|
|
8880
8893
|
partial: !0
|
|
8881
|
-
},
|
|
8894
|
+
}, Di = {
|
|
8882
8895
|
tokenize: Tf,
|
|
8883
8896
|
partial: !0
|
|
8884
|
-
},
|
|
8897
|
+
}, Ni = {
|
|
8885
8898
|
tokenize: zf,
|
|
8886
8899
|
partial: !0
|
|
8887
|
-
},
|
|
8900
|
+
}, Mi = {
|
|
8888
8901
|
tokenize: Pf,
|
|
8889
8902
|
partial: !0
|
|
8903
|
+
}, Sf = {
|
|
8904
|
+
tokenize: Lf,
|
|
8905
|
+
partial: !0
|
|
8890
8906
|
}, Ri = {
|
|
8891
8907
|
name: "wwwAutolink",
|
|
8892
|
-
tokenize:
|
|
8908
|
+
tokenize: Ef,
|
|
8893
8909
|
previous: Oi
|
|
8894
8910
|
}, Fi = {
|
|
8895
8911
|
name: "protocolAutolink",
|
|
8896
|
-
tokenize:
|
|
8912
|
+
tokenize: If,
|
|
8897
8913
|
previous: ji
|
|
8898
8914
|
}, Ee = {
|
|
8899
8915
|
name: "emailAutolink",
|
|
8900
|
-
tokenize:
|
|
8916
|
+
tokenize: _f,
|
|
8901
8917
|
previous: Bi
|
|
8902
8918
|
}, we = {};
|
|
8903
|
-
function
|
|
8919
|
+
function vf() {
|
|
8904
8920
|
return {
|
|
8905
8921
|
text: we
|
|
8906
8922
|
};
|
|
@@ -8916,7 +8932,7 @@ we[72] = [Ee, Fi];
|
|
|
8916
8932
|
we[104] = [Ee, Fi];
|
|
8917
8933
|
we[87] = [Ee, Ri];
|
|
8918
8934
|
we[119] = [Ee, Ri];
|
|
8919
|
-
function
|
|
8935
|
+
function _f(e, n, t) {
|
|
8920
8936
|
const r = this;
|
|
8921
8937
|
let i, o;
|
|
8922
8938
|
return l;
|
|
@@ -8927,7 +8943,7 @@ function vf(e, n, t) {
|
|
|
8927
8943
|
return an(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), s) : t(c);
|
|
8928
8944
|
}
|
|
8929
8945
|
function s(c) {
|
|
8930
|
-
return c === 46 ? e.check(
|
|
8946
|
+
return c === 46 ? e.check(Sf, f, u)(c) : c === 45 || c === 95 || ie(c) ? (o = !0, e.consume(c), s) : f(c);
|
|
8931
8947
|
}
|
|
8932
8948
|
function u(c) {
|
|
8933
8949
|
return e.consume(c), i = !0, s;
|
|
@@ -8936,17 +8952,17 @@ function vf(e, n, t) {
|
|
|
8936
8952
|
return o && i && ae(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), n(c)) : t(c);
|
|
8937
8953
|
}
|
|
8938
8954
|
}
|
|
8939
|
-
function
|
|
8955
|
+
function Ef(e, n, t) {
|
|
8940
8956
|
const r = this;
|
|
8941
8957
|
return i;
|
|
8942
8958
|
function i(l) {
|
|
8943
|
-
return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || An(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
|
|
8959
|
+
return l !== 87 && l !== 119 || !Oi.call(r, r.previous) || An(r.events) ? t(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Cf, e.attempt(Di, e.attempt(Ni, o), t), t)(l));
|
|
8944
8960
|
}
|
|
8945
8961
|
function o(l) {
|
|
8946
8962
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), n(l);
|
|
8947
8963
|
}
|
|
8948
8964
|
}
|
|
8949
|
-
function
|
|
8965
|
+
function If(e, n, t) {
|
|
8950
8966
|
const r = this;
|
|
8951
8967
|
let i = "", o = !1;
|
|
8952
8968
|
return l;
|
|
@@ -8973,7 +8989,7 @@ function Ef(e, n, t) {
|
|
|
8973
8989
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), n(c);
|
|
8974
8990
|
}
|
|
8975
8991
|
}
|
|
8976
|
-
function
|
|
8992
|
+
function Af(e, n, t) {
|
|
8977
8993
|
let r = 0;
|
|
8978
8994
|
return i;
|
|
8979
8995
|
function i(l) {
|
|
@@ -8983,7 +8999,7 @@ function If(e, n, t) {
|
|
|
8983
8999
|
return l === null ? t(l) : n(l);
|
|
8984
9000
|
}
|
|
8985
9001
|
}
|
|
8986
|
-
function
|
|
9002
|
+
function Tf(e, n, t) {
|
|
8987
9003
|
let r, i, o;
|
|
8988
9004
|
return l;
|
|
8989
9005
|
function l(u) {
|
|
@@ -8996,7 +9012,7 @@ function Af(e, n, t) {
|
|
|
8996
9012
|
return i || r || !o ? t(u) : n(u);
|
|
8997
9013
|
}
|
|
8998
9014
|
}
|
|
8999
|
-
function
|
|
9015
|
+
function zf(e, n) {
|
|
9000
9016
|
let t = 0, r = 0;
|
|
9001
9017
|
return i;
|
|
9002
9018
|
function i(l) {
|
|
@@ -9006,7 +9022,7 @@ function Tf(e, n) {
|
|
|
9006
9022
|
return l === 41 && r++, e.consume(l), i;
|
|
9007
9023
|
}
|
|
9008
9024
|
}
|
|
9009
|
-
function
|
|
9025
|
+
function Pf(e, n, t) {
|
|
9010
9026
|
return r;
|
|
9011
9027
|
function r(a) {
|
|
9012
9028
|
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) : (
|
|
@@ -9025,7 +9041,7 @@ function zf(e, n, t) {
|
|
|
9025
9041
|
return a === 59 ? (e.consume(a), r) : ae(a) ? (e.consume(a), l) : t(a);
|
|
9026
9042
|
}
|
|
9027
9043
|
}
|
|
9028
|
-
function
|
|
9044
|
+
function Lf(e, n, t) {
|
|
9029
9045
|
return r;
|
|
9030
9046
|
function r(o) {
|
|
9031
9047
|
return e.consume(o), i;
|
|
@@ -9061,37 +9077,37 @@ function An(e) {
|
|
|
9061
9077
|
}
|
|
9062
9078
|
return e.length > 0 && !t && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), t;
|
|
9063
9079
|
}
|
|
9064
|
-
const
|
|
9065
|
-
tokenize:
|
|
9080
|
+
const Df = {
|
|
9081
|
+
tokenize: $f,
|
|
9066
9082
|
partial: !0
|
|
9067
9083
|
};
|
|
9068
|
-
function
|
|
9084
|
+
function Nf() {
|
|
9069
9085
|
return {
|
|
9070
9086
|
document: {
|
|
9071
9087
|
91: {
|
|
9072
9088
|
name: "gfmFootnoteDefinition",
|
|
9073
|
-
tokenize:
|
|
9089
|
+
tokenize: Of,
|
|
9074
9090
|
continuation: {
|
|
9075
|
-
tokenize:
|
|
9091
|
+
tokenize: jf
|
|
9076
9092
|
},
|
|
9077
|
-
exit:
|
|
9093
|
+
exit: Bf
|
|
9078
9094
|
}
|
|
9079
9095
|
},
|
|
9080
9096
|
text: {
|
|
9081
9097
|
91: {
|
|
9082
9098
|
name: "gfmFootnoteCall",
|
|
9083
|
-
tokenize:
|
|
9099
|
+
tokenize: Ff
|
|
9084
9100
|
},
|
|
9085
9101
|
93: {
|
|
9086
9102
|
name: "gfmPotentialFootnoteCall",
|
|
9087
9103
|
add: "after",
|
|
9088
|
-
tokenize:
|
|
9089
|
-
resolveTo:
|
|
9104
|
+
tokenize: Mf,
|
|
9105
|
+
resolveTo: Rf
|
|
9090
9106
|
}
|
|
9091
9107
|
}
|
|
9092
9108
|
};
|
|
9093
9109
|
}
|
|
9094
|
-
function
|
|
9110
|
+
function Mf(e, n, t) {
|
|
9095
9111
|
const r = this;
|
|
9096
9112
|
let i = r.events.length;
|
|
9097
9113
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -9116,7 +9132,7 @@ function Nf(e, n, t) {
|
|
|
9116
9132
|
return u.codePointAt(0) !== 94 || !o.includes(u.slice(1)) ? t(s) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(s), e.exit("gfmFootnoteCallLabelMarker"), n(s));
|
|
9117
9133
|
}
|
|
9118
9134
|
}
|
|
9119
|
-
function
|
|
9135
|
+
function Rf(e, n) {
|
|
9120
9136
|
let t = e.length;
|
|
9121
9137
|
for (; t--; )
|
|
9122
9138
|
if (e[t][1].type === "labelImage" && e[t][0] === "enter") {
|
|
@@ -9166,7 +9182,7 @@ function Mf(e, n) {
|
|
|
9166
9182
|
];
|
|
9167
9183
|
return e.splice(t, e.length - t + 1, ...a), e;
|
|
9168
9184
|
}
|
|
9169
|
-
function
|
|
9185
|
+
function Ff(e, n, t) {
|
|
9170
9186
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
9171
9187
|
let o = 0, l;
|
|
9172
9188
|
return a;
|
|
@@ -9196,7 +9212,7 @@ function Rf(e, n, t) {
|
|
|
9196
9212
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, u) : u(c);
|
|
9197
9213
|
}
|
|
9198
9214
|
}
|
|
9199
|
-
function
|
|
9215
|
+
function Of(e, n, t) {
|
|
9200
9216
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
9201
9217
|
let o, l = 0, a;
|
|
9202
9218
|
return s;
|
|
@@ -9232,13 +9248,13 @@ function Ff(e, n, t) {
|
|
|
9232
9248
|
return n(g);
|
|
9233
9249
|
}
|
|
9234
9250
|
}
|
|
9235
|
-
function
|
|
9236
|
-
return e.check(ft, n, e.attempt(
|
|
9251
|
+
function jf(e, n, t) {
|
|
9252
|
+
return e.check(ft, n, e.attempt(Df, n, t));
|
|
9237
9253
|
}
|
|
9238
|
-
function
|
|
9254
|
+
function Bf(e) {
|
|
9239
9255
|
e.exit("gfmFootnoteDefinition");
|
|
9240
9256
|
}
|
|
9241
|
-
function
|
|
9257
|
+
function $f(e, n, t) {
|
|
9242
9258
|
const r = this;
|
|
9243
9259
|
return q(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
9244
9260
|
function i(o) {
|
|
@@ -9246,7 +9262,7 @@ function Bf(e, n, t) {
|
|
|
9246
9262
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? n(o) : t(o);
|
|
9247
9263
|
}
|
|
9248
9264
|
}
|
|
9249
|
-
function
|
|
9265
|
+
function Hf(e) {
|
|
9250
9266
|
let t = (e || {}).singleTilde;
|
|
9251
9267
|
const r = {
|
|
9252
9268
|
name: "strikethrough",
|
|
@@ -9307,7 +9323,7 @@ function $f(e) {
|
|
|
9307
9323
|
}
|
|
9308
9324
|
}
|
|
9309
9325
|
}
|
|
9310
|
-
class
|
|
9326
|
+
class Vf {
|
|
9311
9327
|
/**
|
|
9312
9328
|
* Create a new edit map.
|
|
9313
9329
|
*/
|
|
@@ -9323,7 +9339,7 @@ class Hf {
|
|
|
9323
9339
|
* @returns {undefined}
|
|
9324
9340
|
*/
|
|
9325
9341
|
add(n, t, r) {
|
|
9326
|
-
|
|
9342
|
+
qf(this, n, t, r);
|
|
9327
9343
|
}
|
|
9328
9344
|
// To do: add this when moving to `micromark`.
|
|
9329
9345
|
// /**
|
|
@@ -9362,7 +9378,7 @@ class Hf {
|
|
|
9362
9378
|
this.map.length = 0;
|
|
9363
9379
|
}
|
|
9364
9380
|
}
|
|
9365
|
-
function
|
|
9381
|
+
function qf(e, n, t, r) {
|
|
9366
9382
|
let i = 0;
|
|
9367
9383
|
if (!(t === 0 && r.length === 0)) {
|
|
9368
9384
|
for (; i < e.map.length; ) {
|
|
@@ -9375,7 +9391,7 @@ function Vf(e, n, t, r) {
|
|
|
9375
9391
|
e.map.push([n, t, r]);
|
|
9376
9392
|
}
|
|
9377
9393
|
}
|
|
9378
|
-
function
|
|
9394
|
+
function Uf(e, n) {
|
|
9379
9395
|
let t = !1;
|
|
9380
9396
|
const r = [];
|
|
9381
9397
|
for (; n < e.length; ) {
|
|
@@ -9395,18 +9411,18 @@ function qf(e, n) {
|
|
|
9395
9411
|
}
|
|
9396
9412
|
return r;
|
|
9397
9413
|
}
|
|
9398
|
-
function
|
|
9414
|
+
function Wf() {
|
|
9399
9415
|
return {
|
|
9400
9416
|
flow: {
|
|
9401
9417
|
null: {
|
|
9402
9418
|
name: "table",
|
|
9403
|
-
tokenize:
|
|
9404
|
-
resolveAll:
|
|
9419
|
+
tokenize: Yf,
|
|
9420
|
+
resolveAll: Qf
|
|
9405
9421
|
}
|
|
9406
9422
|
}
|
|
9407
9423
|
};
|
|
9408
9424
|
}
|
|
9409
|
-
function
|
|
9425
|
+
function Yf(e, n, t) {
|
|
9410
9426
|
const r = this;
|
|
9411
9427
|
let i = 0, o = 0, l;
|
|
9412
9428
|
return a;
|
|
@@ -9418,8 +9434,8 @@ function Wf(e, n, t) {
|
|
|
9418
9434
|
P === "linePrefix") T--;
|
|
9419
9435
|
else break;
|
|
9420
9436
|
}
|
|
9421
|
-
const z = T > -1 ? r.events[T][1].type : null, U = z === "tableHead" || z === "tableRow" ?
|
|
9422
|
-
return U ===
|
|
9437
|
+
const z = T > -1 ? r.events[T][1].type : null, U = z === "tableHead" || z === "tableRow" ? b : s;
|
|
9438
|
+
return U === b && r.parser.lazy[r.now().line] ? t(k) : U(k);
|
|
9423
9439
|
}
|
|
9424
9440
|
function s(k) {
|
|
9425
9441
|
return e.enter("tableHead"), e.enter("tableRow"), u(k);
|
|
@@ -9463,7 +9479,7 @@ function Wf(e, n, t) {
|
|
|
9463
9479
|
function N(k) {
|
|
9464
9480
|
return t(k);
|
|
9465
9481
|
}
|
|
9466
|
-
function
|
|
9482
|
+
function b(k) {
|
|
9467
9483
|
return e.enter("tableRow"), O(k);
|
|
9468
9484
|
}
|
|
9469
9485
|
function O(k) {
|
|
@@ -9476,9 +9492,9 @@ function Wf(e, n, t) {
|
|
|
9476
9492
|
return k === 92 || k === 124 ? (e.consume(k), H) : H(k);
|
|
9477
9493
|
}
|
|
9478
9494
|
}
|
|
9479
|
-
function
|
|
9495
|
+
function Qf(e, n) {
|
|
9480
9496
|
let t = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, s = 0, u, f, c;
|
|
9481
|
-
const h = new
|
|
9497
|
+
const h = new Vf();
|
|
9482
9498
|
for (; ++t < e.length; ) {
|
|
9483
9499
|
const p = e[t], g = p[1];
|
|
9484
9500
|
p[0] === "enter" ? g.type === "tableHead" ? (a = !1, s !== 0 && (_r(h, n, s, u, f), f = void 0, s = 0), u = {
|
|
@@ -9495,7 +9511,7 @@ function Yf(e, n) {
|
|
|
9495
9511
|
}
|
|
9496
9512
|
for (s !== 0 && _r(h, n, s, u, f), h.consume(n.events), t = -1; ++t < n.events.length; ) {
|
|
9497
9513
|
const p = n.events[t];
|
|
9498
|
-
p[0] === "enter" && p[1].type === "table" && (p[1]._align =
|
|
9514
|
+
p[0] === "enter" && p[1].type === "table" && (p[1]._align = Uf(n.events, t));
|
|
9499
9515
|
}
|
|
9500
9516
|
return e;
|
|
9501
9517
|
}
|
|
@@ -9533,18 +9549,18 @@ function qe(e, n) {
|
|
|
9533
9549
|
const t = e[n], r = t[0] === "enter" ? "start" : "end";
|
|
9534
9550
|
return t[1][r];
|
|
9535
9551
|
}
|
|
9536
|
-
const
|
|
9552
|
+
const Xf = {
|
|
9537
9553
|
name: "tasklistCheck",
|
|
9538
|
-
tokenize:
|
|
9554
|
+
tokenize: Jf
|
|
9539
9555
|
};
|
|
9540
|
-
function
|
|
9556
|
+
function Gf() {
|
|
9541
9557
|
return {
|
|
9542
9558
|
text: {
|
|
9543
|
-
91:
|
|
9559
|
+
91: Xf
|
|
9544
9560
|
}
|
|
9545
9561
|
};
|
|
9546
9562
|
}
|
|
9547
|
-
function
|
|
9563
|
+
function Jf(e, n, t) {
|
|
9548
9564
|
const r = this;
|
|
9549
9565
|
return i;
|
|
9550
9566
|
function i(s) {
|
|
@@ -9563,59 +9579,59 @@ function Gf(e, n, t) {
|
|
|
9563
9579
|
}
|
|
9564
9580
|
function a(s) {
|
|
9565
9581
|
return D(s) ? n(s) : $(s) ? e.check({
|
|
9566
|
-
tokenize:
|
|
9582
|
+
tokenize: Kf
|
|
9567
9583
|
}, n, t)(s) : t(s);
|
|
9568
9584
|
}
|
|
9569
9585
|
}
|
|
9570
|
-
function
|
|
9586
|
+
function Kf(e, n, t) {
|
|
9571
9587
|
return q(e, r, "whitespace");
|
|
9572
9588
|
function r(i) {
|
|
9573
9589
|
return i === null ? t(i) : n(i);
|
|
9574
9590
|
}
|
|
9575
9591
|
}
|
|
9576
|
-
function
|
|
9592
|
+
function Zf(e) {
|
|
9577
9593
|
return Gr([
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9594
|
+
vf(),
|
|
9595
|
+
Nf(),
|
|
9596
|
+
Hf(e),
|
|
9597
|
+
Wf(),
|
|
9598
|
+
Gf()
|
|
9583
9599
|
]);
|
|
9584
9600
|
}
|
|
9585
|
-
const
|
|
9586
|
-
function
|
|
9601
|
+
const ep = {};
|
|
9602
|
+
function tp(e) {
|
|
9587
9603
|
const n = (
|
|
9588
9604
|
/** @type {Processor<Root>} */
|
|
9589
9605
|
this
|
|
9590
|
-
), t = e ||
|
|
9591
|
-
i.push(
|
|
9592
|
-
}
|
|
9593
|
-
const
|
|
9594
|
-
wrapper:
|
|
9595
|
-
table:
|
|
9596
|
-
th:
|
|
9597
|
-
tr:
|
|
9598
|
-
td:
|
|
9606
|
+
), t = e || ep, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
9607
|
+
i.push(Zf(t)), o.push(bf()), l.push(wf(t));
|
|
9608
|
+
}
|
|
9609
|
+
const np = "_wrapper_izvjy_1", rp = "_table_izvjy_15", ip = "_th_izvjy_27", lp = "_tr_izvjy_47", op = "_td_izvjy_63", nt = {
|
|
9610
|
+
wrapper: np,
|
|
9611
|
+
table: rp,
|
|
9612
|
+
th: ip,
|
|
9613
|
+
tr: lp,
|
|
9614
|
+
td: op
|
|
9599
9615
|
};
|
|
9600
|
-
function
|
|
9601
|
-
return /* @__PURE__ */
|
|
9602
|
-
/* @__PURE__ */
|
|
9603
|
-
/* @__PURE__ */
|
|
9616
|
+
function ap({ part: e }) {
|
|
9617
|
+
return /* @__PURE__ */ x("div", { className: nt.wrapper, "data-juneau": "table-part", children: /* @__PURE__ */ Y("table", { className: nt.table, children: [
|
|
9618
|
+
/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ x("tr", { children: e.columns.map((n) => /* @__PURE__ */ x("th", { className: nt.th, children: n }, n)) }) }),
|
|
9619
|
+
/* @__PURE__ */ x("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ x("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ x("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
|
|
9604
9620
|
] }) });
|
|
9605
9621
|
}
|
|
9606
|
-
const
|
|
9607
|
-
card:
|
|
9608
|
-
header:
|
|
9609
|
-
icon:
|
|
9610
|
-
title:
|
|
9611
|
-
description:
|
|
9612
|
-
cardResolved:
|
|
9613
|
-
resolvedBadge:
|
|
9614
|
-
actions:
|
|
9615
|
-
confirm:
|
|
9616
|
-
cancel:
|
|
9622
|
+
const sp = "_card_1gzm6_1", up = "_header_1gzm6_17", cp = "_icon_1gzm6_31", fp = "_title_1gzm6_45", pp = "_description_1gzm6_57", hp = "_cardResolved_1gzm6_71", dp = "_resolvedBadge_1gzm6_79", mp = "_actions_1gzm6_101", gp = "_confirm_1gzm6_111", yp = "_cancel_1gzm6_143", ye = {
|
|
9623
|
+
card: sp,
|
|
9624
|
+
header: up,
|
|
9625
|
+
icon: cp,
|
|
9626
|
+
title: fp,
|
|
9627
|
+
description: pp,
|
|
9628
|
+
cardResolved: hp,
|
|
9629
|
+
resolvedBadge: dp,
|
|
9630
|
+
actions: mp,
|
|
9631
|
+
confirm: gp,
|
|
9632
|
+
cancel: yp
|
|
9617
9633
|
};
|
|
9618
|
-
function
|
|
9634
|
+
function kp({ part: e, onConfirm: n, onCancel: t }) {
|
|
9619
9635
|
const r = Te(), { proposal: i } = e, o = i.resolved === "confirmed" ? r.proposalConfirmed : i.resolved === "cancelled" ? r.proposalCancelled : i.resolved === "expired" ? r.proposalExpired : null;
|
|
9620
9636
|
return /* @__PURE__ */ Y(
|
|
9621
9637
|
"div",
|
|
@@ -9624,12 +9640,12 @@ function yp({ part: e, onConfirm: n, onCancel: t }) {
|
|
|
9624
9640
|
"data-juneau": "proposal-card",
|
|
9625
9641
|
children: [
|
|
9626
9642
|
/* @__PURE__ */ Y("div", { className: ye.header, children: [
|
|
9627
|
-
/* @__PURE__ */
|
|
9628
|
-
/* @__PURE__ */
|
|
9643
|
+
/* @__PURE__ */ x("svg", { className: ye.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("path", { d: "M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z" }) }),
|
|
9644
|
+
/* @__PURE__ */ x("span", { className: ye.title, children: i.title })
|
|
9629
9645
|
] }),
|
|
9630
|
-
i.description && /* @__PURE__ */
|
|
9631
|
-
o ? /* @__PURE__ */
|
|
9632
|
-
/* @__PURE__ */
|
|
9646
|
+
i.description && /* @__PURE__ */ x("p", { className: ye.description, children: i.description }),
|
|
9647
|
+
o ? /* @__PURE__ */ x("span", { className: ye.resolvedBadge, children: o }) : /* @__PURE__ */ Y("div", { className: ye.actions, children: [
|
|
9648
|
+
/* @__PURE__ */ x(
|
|
9633
9649
|
"button",
|
|
9634
9650
|
{
|
|
9635
9651
|
className: ye.confirm,
|
|
@@ -9637,7 +9653,7 @@ function yp({ part: e, onConfirm: n, onCancel: t }) {
|
|
|
9637
9653
|
children: i.confirmLabel ?? r.proposalConfirm
|
|
9638
9654
|
}
|
|
9639
9655
|
),
|
|
9640
|
-
/* @__PURE__ */
|
|
9656
|
+
/* @__PURE__ */ x(
|
|
9641
9657
|
"button",
|
|
9642
9658
|
{
|
|
9643
9659
|
className: ye.cancel,
|
|
@@ -9650,38 +9666,38 @@ function yp({ part: e, onConfirm: n, onCancel: t }) {
|
|
|
9650
9666
|
}
|
|
9651
9667
|
);
|
|
9652
9668
|
}
|
|
9653
|
-
const
|
|
9654
|
-
activity:
|
|
9655
|
-
indicator:
|
|
9656
|
-
content:
|
|
9657
|
-
title:
|
|
9658
|
-
description:
|
|
9669
|
+
const xp = "_activity_1661l_1", bp = "_indicator_1661l_25", wp = "_content_1661l_71", Cp = "_title_1661l_79", Sp = "_description_1661l_89", rt = {
|
|
9670
|
+
activity: xp,
|
|
9671
|
+
indicator: bp,
|
|
9672
|
+
content: wp,
|
|
9673
|
+
title: Cp,
|
|
9674
|
+
description: Sp
|
|
9659
9675
|
};
|
|
9660
|
-
function
|
|
9676
|
+
function vp({ part: e }) {
|
|
9661
9677
|
return /* @__PURE__ */ Y("div", { className: rt.activity, "data-status": e.status, "data-juneau": "activity-part", children: [
|
|
9662
|
-
/* @__PURE__ */
|
|
9678
|
+
/* @__PURE__ */ x("span", { className: rt.indicator, "aria-hidden": "true" }),
|
|
9663
9679
|
/* @__PURE__ */ Y("div", { className: rt.content, children: [
|
|
9664
|
-
/* @__PURE__ */
|
|
9665
|
-
e.description && /* @__PURE__ */
|
|
9680
|
+
/* @__PURE__ */ x("div", { className: rt.title, children: e.title }),
|
|
9681
|
+
e.description && /* @__PURE__ */ x("div", { className: rt.description, children: e.description })
|
|
9666
9682
|
] })
|
|
9667
9683
|
] });
|
|
9668
9684
|
}
|
|
9669
|
-
const
|
|
9670
|
-
card:
|
|
9671
|
-
cardClickable:
|
|
9672
|
-
header:
|
|
9673
|
-
title:
|
|
9674
|
-
subtitle:
|
|
9675
|
-
fields:
|
|
9676
|
-
fieldRow:
|
|
9677
|
-
fieldLabel:
|
|
9678
|
-
fieldValue:
|
|
9679
|
-
badge:
|
|
9680
|
-
badgeSuccess:
|
|
9681
|
-
badgeWarning:
|
|
9682
|
-
badgeDanger:
|
|
9683
|
-
badgeNeutral:
|
|
9684
|
-
},
|
|
9685
|
+
const _p = "_card_jwkcu_1", Ep = "_cardClickable_jwkcu_14", Ip = "_header_jwkcu_24", Ap = "_title_jwkcu_30", Tp = "_subtitle_jwkcu_36", zp = "_fields_jwkcu_41", Pp = "_fieldRow_jwkcu_48", Lp = "_fieldLabel_jwkcu_55", Dp = "_fieldValue_jwkcu_61", Np = "_badge_jwkcu_68", Mp = "_badgeSuccess_jwkcu_76", Rp = "_badgeWarning_jwkcu_81", Fp = "_badgeDanger_jwkcu_86", Op = "_badgeNeutral_jwkcu_91", oe = {
|
|
9686
|
+
card: _p,
|
|
9687
|
+
cardClickable: Ep,
|
|
9688
|
+
header: Ip,
|
|
9689
|
+
title: Ap,
|
|
9690
|
+
subtitle: Tp,
|
|
9691
|
+
fields: zp,
|
|
9692
|
+
fieldRow: Pp,
|
|
9693
|
+
fieldLabel: Lp,
|
|
9694
|
+
fieldValue: Dp,
|
|
9695
|
+
badge: Np,
|
|
9696
|
+
badgeSuccess: Mp,
|
|
9697
|
+
badgeWarning: Rp,
|
|
9698
|
+
badgeDanger: Fp,
|
|
9699
|
+
badgeNeutral: Op
|
|
9700
|
+
}, jp = {
|
|
9685
9701
|
success: oe.badgeSuccess,
|
|
9686
9702
|
warning: oe.badgeWarning,
|
|
9687
9703
|
danger: oe.badgeDanger,
|
|
@@ -9690,15 +9706,15 @@ const vp = "_card_jwkcu_1", _p = "_cardClickable_jwkcu_14", Ep = "_header_jwkcu_
|
|
|
9690
9706
|
function $i({ part: e, onEntityClick: n }) {
|
|
9691
9707
|
const { entity: t, entityType: r } = e, i = n !== void 0, o = /* @__PURE__ */ Y(un, { children: [
|
|
9692
9708
|
/* @__PURE__ */ Y("div", { className: oe.header, children: [
|
|
9693
|
-
/* @__PURE__ */
|
|
9694
|
-
t.subtitle && /* @__PURE__ */
|
|
9709
|
+
/* @__PURE__ */ x("span", { className: oe.title, children: t.title }),
|
|
9710
|
+
t.subtitle && /* @__PURE__ */ x("span", { className: oe.subtitle, children: t.subtitle })
|
|
9695
9711
|
] }),
|
|
9696
|
-
t.fields && t.fields.length > 0 && /* @__PURE__ */
|
|
9697
|
-
/* @__PURE__ */
|
|
9698
|
-
/* @__PURE__ */
|
|
9712
|
+
t.fields && t.fields.length > 0 && /* @__PURE__ */ x("dl", { className: oe.fields, children: t.fields.map((l, a) => /* @__PURE__ */ Y("div", { className: oe.fieldRow, children: [
|
|
9713
|
+
/* @__PURE__ */ x("dt", { className: oe.fieldLabel, children: l.label }),
|
|
9714
|
+
/* @__PURE__ */ x("dd", { className: oe.fieldValue, children: l.badge ? /* @__PURE__ */ x("span", { className: `${oe.badge} ${jp[l.badge]}`, children: l.value }) : l.value })
|
|
9699
9715
|
] }, a)) })
|
|
9700
9716
|
] });
|
|
9701
|
-
return i ? /* @__PURE__ */
|
|
9717
|
+
return i ? /* @__PURE__ */ x(
|
|
9702
9718
|
"button",
|
|
9703
9719
|
{
|
|
9704
9720
|
type: "button",
|
|
@@ -9707,16 +9723,16 @@ function $i({ part: e, onEntityClick: n }) {
|
|
|
9707
9723
|
"data-juneau": "entity-card",
|
|
9708
9724
|
children: o
|
|
9709
9725
|
}
|
|
9710
|
-
) : /* @__PURE__ */
|
|
9726
|
+
) : /* @__PURE__ */ x("div", { className: oe.card, "data-juneau": "entity-card", children: o });
|
|
9711
9727
|
}
|
|
9712
|
-
const
|
|
9713
|
-
list:
|
|
9714
|
-
listTitle:
|
|
9728
|
+
const Bp = "_list_a2maw_1", $p = "_listTitle_a2maw_11", Er = {
|
|
9729
|
+
list: Bp,
|
|
9730
|
+
listTitle: $p
|
|
9715
9731
|
};
|
|
9716
|
-
function
|
|
9732
|
+
function Hp({ part: e, onEntityClick: n }) {
|
|
9717
9733
|
return /* @__PURE__ */ Y("div", { className: Er.list, "data-juneau": "entity-list-part", children: [
|
|
9718
|
-
e.title && /* @__PURE__ */
|
|
9719
|
-
e.entities.map((t, r) => /* @__PURE__ */
|
|
9734
|
+
e.title && /* @__PURE__ */ x("span", { className: Er.listTitle, children: e.title }),
|
|
9735
|
+
e.entities.map((t, r) => /* @__PURE__ */ x(
|
|
9720
9736
|
$i,
|
|
9721
9737
|
{
|
|
9722
9738
|
part: { type: "entity", entity: t, entityType: e.entityType },
|
|
@@ -9726,28 +9742,28 @@ function $p({ part: e, onEntityClick: n }) {
|
|
|
9726
9742
|
))
|
|
9727
9743
|
] });
|
|
9728
9744
|
}
|
|
9729
|
-
const
|
|
9730
|
-
markdown:
|
|
9731
|
-
unknownPart:
|
|
9732
|
-
errorText:
|
|
9733
|
-
errorIcon:
|
|
9745
|
+
const Vp = "_markdown_sznoh_1", qp = "_unknownPart_sznoh_167", Up = "_errorText_sznoh_195", Wp = "_errorIcon_sznoh_211", xt = {
|
|
9746
|
+
markdown: Vp,
|
|
9747
|
+
unknownPart: qp,
|
|
9748
|
+
errorText: Up,
|
|
9749
|
+
errorIcon: Wp
|
|
9734
9750
|
};
|
|
9735
|
-
function
|
|
9751
|
+
function Yp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, renderPart: i }) {
|
|
9736
9752
|
if (i) {
|
|
9737
9753
|
const o = i(e);
|
|
9738
9754
|
if (o != null)
|
|
9739
|
-
return /* @__PURE__ */
|
|
9755
|
+
return /* @__PURE__ */ x(un, { children: o });
|
|
9740
9756
|
}
|
|
9741
9757
|
switch (e.type) {
|
|
9742
9758
|
case "text":
|
|
9743
|
-
return /* @__PURE__ */
|
|
9759
|
+
return /* @__PURE__ */ x("div", { className: xt.markdown, children: /* @__PURE__ */ x($u, { remarkPlugins: [tp], children: e.text }) });
|
|
9744
9760
|
case "table":
|
|
9745
|
-
return /* @__PURE__ */
|
|
9761
|
+
return /* @__PURE__ */ x(ap, { part: e });
|
|
9746
9762
|
case "activity":
|
|
9747
|
-
return /* @__PURE__ */
|
|
9763
|
+
return /* @__PURE__ */ x(vp, { part: e });
|
|
9748
9764
|
case "proposal":
|
|
9749
|
-
return /* @__PURE__ */
|
|
9750
|
-
|
|
9765
|
+
return /* @__PURE__ */ x(
|
|
9766
|
+
kp,
|
|
9751
9767
|
{
|
|
9752
9768
|
part: e,
|
|
9753
9769
|
onConfirm: n,
|
|
@@ -9755,39 +9771,39 @@ function Wp({ part: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick:
|
|
|
9755
9771
|
}
|
|
9756
9772
|
);
|
|
9757
9773
|
case "entity":
|
|
9758
|
-
return /* @__PURE__ */
|
|
9774
|
+
return /* @__PURE__ */ x($i, { part: e, onEntityClick: r });
|
|
9759
9775
|
case "entity-list":
|
|
9760
|
-
return /* @__PURE__ */
|
|
9776
|
+
return /* @__PURE__ */ x(Hp, { part: e, onEntityClick: r });
|
|
9761
9777
|
case "error":
|
|
9762
9778
|
return /* @__PURE__ */ Y("span", { className: xt.errorText, children: [
|
|
9763
|
-
/* @__PURE__ */
|
|
9779
|
+
/* @__PURE__ */ x(Tl, { className: xt.errorIcon }),
|
|
9764
9780
|
e.message
|
|
9765
9781
|
] });
|
|
9766
9782
|
default:
|
|
9767
9783
|
return globalThis.process?.env?.NODE_ENV !== "production" ? /* @__PURE__ */ Y("div", { className: xt.unknownPart, children: [
|
|
9768
9784
|
"Unhandled part type: ",
|
|
9769
|
-
/* @__PURE__ */
|
|
9785
|
+
/* @__PURE__ */ x("code", { children: e.type }),
|
|
9770
9786
|
" — pass a",
|
|
9771
9787
|
" ",
|
|
9772
|
-
/* @__PURE__ */
|
|
9788
|
+
/* @__PURE__ */ x("code", { children: "renderPart" }),
|
|
9773
9789
|
" prop to render it."
|
|
9774
9790
|
] }) : null;
|
|
9775
9791
|
}
|
|
9776
9792
|
}
|
|
9777
|
-
const
|
|
9778
|
-
wrapper:
|
|
9779
|
-
user:
|
|
9780
|
-
assistant:
|
|
9781
|
-
avatar:
|
|
9782
|
-
content:
|
|
9783
|
-
bubble:
|
|
9784
|
-
card:
|
|
9785
|
-
empty:
|
|
9786
|
-
},
|
|
9793
|
+
const Qp = "_wrapper_1q20p_1", Xp = "_user_1q20p_8", Gp = "_assistant_1q20p_12", Jp = "_avatar_1q20p_16", Kp = "_content_1q20p_43", Zp = "_bubble_1q20p_51", eh = "_card_1q20p_70", th = "_empty_1q20p_92", xe = {
|
|
9794
|
+
wrapper: Qp,
|
|
9795
|
+
user: Xp,
|
|
9796
|
+
assistant: Gp,
|
|
9797
|
+
avatar: Jp,
|
|
9798
|
+
content: Kp,
|
|
9799
|
+
bubble: Zp,
|
|
9800
|
+
card: eh,
|
|
9801
|
+
empty: th
|
|
9802
|
+
}, nh = /* @__PURE__ */ new Set(["text", "error", "activity"]);
|
|
9787
9803
|
function Hi(e) {
|
|
9788
|
-
return !
|
|
9804
|
+
return !nh.has(e.type);
|
|
9789
9805
|
}
|
|
9790
|
-
function
|
|
9806
|
+
function rh(e) {
|
|
9791
9807
|
const n = [];
|
|
9792
9808
|
return e.forEach((t, r) => {
|
|
9793
9809
|
const i = Hi(t), o = n[n.length - 1];
|
|
@@ -9798,9 +9814,9 @@ function nh(e) {
|
|
|
9798
9814
|
n.push({ card: i, parts: [{ part: t, index: r }] });
|
|
9799
9815
|
}), n;
|
|
9800
9816
|
}
|
|
9801
|
-
function
|
|
9802
|
-
const l = Te(), a = e.role === "user", s = (f, c) => /* @__PURE__ */
|
|
9803
|
-
|
|
9817
|
+
function ih({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityClick: r, assistantIcon: i, renderPart: o }) {
|
|
9818
|
+
const l = Te(), a = e.role === "user", s = (f, c) => /* @__PURE__ */ x(
|
|
9819
|
+
Yp,
|
|
9804
9820
|
{
|
|
9805
9821
|
part: f,
|
|
9806
9822
|
onProposalConfirm: n,
|
|
@@ -9817,8 +9833,8 @@ function rh({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
|
|
|
9817
9833
|
"data-juneau": "message",
|
|
9818
9834
|
"data-juneau-role": e.role,
|
|
9819
9835
|
children: [
|
|
9820
|
-
!a && /* @__PURE__ */
|
|
9821
|
-
u ? /* @__PURE__ */
|
|
9836
|
+
!a && /* @__PURE__ */ x("div", { className: xe.avatar, "aria-hidden": "true", children: i ?? /* @__PURE__ */ x(Nr, {}) }),
|
|
9837
|
+
u ? /* @__PURE__ */ x("div", { className: xe.content, children: rh(e.parts).map((f, c) => /* @__PURE__ */ x(
|
|
9822
9838
|
"div",
|
|
9823
9839
|
{
|
|
9824
9840
|
className: f.card ? xe.card : xe.bubble,
|
|
@@ -9828,19 +9844,19 @@ function rh({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
|
|
|
9828
9844
|
c
|
|
9829
9845
|
)) }) : /* @__PURE__ */ Y("div", { className: xe.bubble, "data-juneau-segment": "bubble", children: [
|
|
9830
9846
|
e.parts.map((f, c) => s(f, c)),
|
|
9831
|
-
e.parts.length === 0 && /* @__PURE__ */
|
|
9847
|
+
e.parts.length === 0 && /* @__PURE__ */ x("span", { className: xe.empty })
|
|
9832
9848
|
] }),
|
|
9833
|
-
a && /* @__PURE__ */
|
|
9849
|
+
a && /* @__PURE__ */ x("div", { className: xe.avatar, children: l.userLabel })
|
|
9834
9850
|
]
|
|
9835
9851
|
}
|
|
9836
9852
|
);
|
|
9837
9853
|
}
|
|
9838
|
-
const
|
|
9839
|
-
wrapper:
|
|
9840
|
-
dot:
|
|
9841
|
-
connectingLabel:
|
|
9854
|
+
const lh = "_wrapper_1oco7_1", oh = "_dot_1oco7_15", ah = "_connectingLabel_1oco7_37", it = {
|
|
9855
|
+
wrapper: lh,
|
|
9856
|
+
dot: oh,
|
|
9857
|
+
connectingLabel: ah
|
|
9842
9858
|
};
|
|
9843
|
-
function
|
|
9859
|
+
function sh({ connecting: e = !1 }) {
|
|
9844
9860
|
const n = Te();
|
|
9845
9861
|
return /* @__PURE__ */ Y(
|
|
9846
9862
|
"div",
|
|
@@ -9849,31 +9865,31 @@ function ah({ connecting: e = !1 }) {
|
|
|
9849
9865
|
"aria-label": e ? n.connectingMessage : n.typingMessage,
|
|
9850
9866
|
"data-juneau": "typing-indicator",
|
|
9851
9867
|
children: [
|
|
9852
|
-
/* @__PURE__ */
|
|
9853
|
-
/* @__PURE__ */
|
|
9854
|
-
/* @__PURE__ */
|
|
9855
|
-
e && /* @__PURE__ */
|
|
9868
|
+
/* @__PURE__ */ x("span", { className: it.dot }),
|
|
9869
|
+
/* @__PURE__ */ x("span", { className: it.dot }),
|
|
9870
|
+
/* @__PURE__ */ x("span", { className: it.dot }),
|
|
9871
|
+
e && /* @__PURE__ */ x("span", { className: it.connectingLabel, children: n.connectingMessage })
|
|
9856
9872
|
]
|
|
9857
9873
|
}
|
|
9858
9874
|
);
|
|
9859
9875
|
}
|
|
9860
|
-
const
|
|
9861
|
-
list:
|
|
9862
|
-
empty:
|
|
9863
|
-
hint:
|
|
9864
|
-
typing:
|
|
9876
|
+
const uh = "_list_ixto8_1", ch = "_empty_ixto8_21", fh = "_hint_ixto8_47", ph = "_typing_ixto8_61", bt = {
|
|
9877
|
+
list: uh,
|
|
9878
|
+
empty: ch,
|
|
9879
|
+
hint: fh,
|
|
9880
|
+
typing: ph
|
|
9865
9881
|
};
|
|
9866
|
-
function
|
|
9882
|
+
function hh({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, onEntityClick: o, assistantIcon: l, renderPart: a, emptyState: s }) {
|
|
9867
9883
|
const u = Te(), f = Ue(null);
|
|
9868
9884
|
return St(() => {
|
|
9869
9885
|
f.current?.scrollIntoView({ behavior: "smooth" });
|
|
9870
9886
|
}, [e, n]), /* @__PURE__ */ Y("div", { className: bt.list, "data-juneau": "message-list", children: [
|
|
9871
9887
|
e.length === 0 && (s ?? /* @__PURE__ */ Y("div", { className: bt.empty, "data-juneau": "empty-state", children: [
|
|
9872
|
-
/* @__PURE__ */
|
|
9873
|
-
/* @__PURE__ */
|
|
9888
|
+
/* @__PURE__ */ x("p", { children: u.emptyStateText }),
|
|
9889
|
+
/* @__PURE__ */ x("p", { className: bt.hint, children: /* @__PURE__ */ x("em", { children: u.emptyStateHint }) })
|
|
9874
9890
|
] })),
|
|
9875
|
-
e.map((c) => /* @__PURE__ */
|
|
9876
|
-
|
|
9891
|
+
e.map((c) => /* @__PURE__ */ x(
|
|
9892
|
+
ih,
|
|
9877
9893
|
{
|
|
9878
9894
|
message: c,
|
|
9879
9895
|
onProposalConfirm: r,
|
|
@@ -9884,37 +9900,37 @@ function ph({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r,
|
|
|
9884
9900
|
},
|
|
9885
9901
|
c.id
|
|
9886
9902
|
)),
|
|
9887
|
-
n && /* @__PURE__ */
|
|
9888
|
-
/* @__PURE__ */
|
|
9903
|
+
n && /* @__PURE__ */ x("div", { className: bt.typing, children: /* @__PURE__ */ x(sh, { connecting: t }) }),
|
|
9904
|
+
/* @__PURE__ */ x("div", { ref: f })
|
|
9889
9905
|
] });
|
|
9890
9906
|
}
|
|
9891
|
-
const
|
|
9892
|
-
wrapper:
|
|
9893
|
-
textarea:
|
|
9894
|
-
toolbar:
|
|
9895
|
-
actions:
|
|
9896
|
-
actionBtn:
|
|
9897
|
-
sendBtn:
|
|
9898
|
-
spinnerIcon:
|
|
9899
|
-
stopBtn:
|
|
9900
|
-
stopIcon:
|
|
9907
|
+
const dh = "_wrapper_ehrkb_1", mh = "_textarea_ehrkb_21", gh = "_toolbar_ehrkb_69", yh = "_actions_ehrkb_89", kh = "_actionBtn_ehrkb_103", xh = "_sendBtn_ehrkb_169", bh = "_spinnerIcon_ehrkb_231", wh = "_stopBtn_ehrkb_251", Ch = "_stopIcon_ehrkb_297", ve = {
|
|
9908
|
+
wrapper: dh,
|
|
9909
|
+
textarea: mh,
|
|
9910
|
+
toolbar: gh,
|
|
9911
|
+
actions: yh,
|
|
9912
|
+
actionBtn: kh,
|
|
9913
|
+
sendBtn: xh,
|
|
9914
|
+
spinnerIcon: bh,
|
|
9915
|
+
stopBtn: wh,
|
|
9916
|
+
stopIcon: Ch
|
|
9901
9917
|
};
|
|
9902
|
-
function
|
|
9918
|
+
function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
|
|
9903
9919
|
const s = Te(), u = Ue(null), f = Ue(!1);
|
|
9904
9920
|
St(() => {
|
|
9905
9921
|
f.current && !i && u.current?.focus(), f.current = i;
|
|
9906
9922
|
}, [i]);
|
|
9907
9923
|
const c = [
|
|
9908
|
-
{ icon: /* @__PURE__ */
|
|
9909
|
-
{ icon: /* @__PURE__ */
|
|
9910
|
-
{ icon: /* @__PURE__ */
|
|
9911
|
-
{ icon: /* @__PURE__ */
|
|
9912
|
-
{ icon: /* @__PURE__ */
|
|
9924
|
+
{ icon: /* @__PURE__ */ x(wl, {}), label: s.actionAddFile },
|
|
9925
|
+
{ icon: /* @__PURE__ */ x(Cl, {}), label: s.actionQuickActions },
|
|
9926
|
+
{ icon: /* @__PURE__ */ x(Sl, {}), label: s.actionNew },
|
|
9927
|
+
{ icon: /* @__PURE__ */ x(vl, {}), label: s.actionHistory },
|
|
9928
|
+
{ icon: /* @__PURE__ */ x(_l, {}), label: s.actionRules }
|
|
9913
9929
|
], h = l ?? c, p = (g) => {
|
|
9914
9930
|
g.key === "Enter" && !g.shiftKey && (g.preventDefault(), i || t());
|
|
9915
9931
|
};
|
|
9916
9932
|
return /* @__PURE__ */ Y("div", { className: ve.wrapper, "data-juneau": "input", children: [
|
|
9917
|
-
/* @__PURE__ */
|
|
9933
|
+
/* @__PURE__ */ x(
|
|
9918
9934
|
"textarea",
|
|
9919
9935
|
{
|
|
9920
9936
|
ref: u,
|
|
@@ -9929,7 +9945,7 @@ function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9929
9945
|
}
|
|
9930
9946
|
),
|
|
9931
9947
|
/* @__PURE__ */ Y("div", { className: ve.toolbar, children: [
|
|
9932
|
-
h.length > 0 && /* @__PURE__ */
|
|
9948
|
+
h.length > 0 && /* @__PURE__ */ x("div", { className: ve.actions, children: h.map((g, C) => /* @__PURE__ */ Y(
|
|
9933
9949
|
"button",
|
|
9934
9950
|
{
|
|
9935
9951
|
className: ve.actionBtn,
|
|
@@ -9939,7 +9955,7 @@ function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9939
9955
|
onClick: g.onClick,
|
|
9940
9956
|
children: [
|
|
9941
9957
|
g.icon,
|
|
9942
|
-
/* @__PURE__ */
|
|
9958
|
+
/* @__PURE__ */ x("span", { children: g.label })
|
|
9943
9959
|
]
|
|
9944
9960
|
},
|
|
9945
9961
|
C
|
|
@@ -9952,8 +9968,8 @@ function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9952
9968
|
"aria-label": s.stopMessage,
|
|
9953
9969
|
type: "button",
|
|
9954
9970
|
children: [
|
|
9955
|
-
/* @__PURE__ */
|
|
9956
|
-
/* @__PURE__ */
|
|
9971
|
+
/* @__PURE__ */ x("svg", { className: ve.stopIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }) }),
|
|
9972
|
+
/* @__PURE__ */ x("span", { children: s.stopMessage })
|
|
9957
9973
|
]
|
|
9958
9974
|
}
|
|
9959
9975
|
) : /* @__PURE__ */ Y(
|
|
@@ -9965,32 +9981,32 @@ function Ch({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
|
|
|
9965
9981
|
"aria-label": s.sendMessage,
|
|
9966
9982
|
type: "button",
|
|
9967
9983
|
children: [
|
|
9968
|
-
i ? /* @__PURE__ */
|
|
9969
|
-
/* @__PURE__ */
|
|
9984
|
+
i ? /* @__PURE__ */ x("svg", { className: ve.spinnerIcon, viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ x("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeDasharray: "32", strokeDashoffset: "12" }) }) : a ?? /* @__PURE__ */ x(bl, {}),
|
|
9985
|
+
/* @__PURE__ */ x("span", { children: s.sendMessage })
|
|
9970
9986
|
]
|
|
9971
9987
|
}
|
|
9972
9988
|
)
|
|
9973
9989
|
] })
|
|
9974
9990
|
] });
|
|
9975
9991
|
}
|
|
9976
|
-
const
|
|
9977
|
-
wrapper:
|
|
9978
|
-
icon:
|
|
9979
|
-
message:
|
|
9980
|
-
dismiss:
|
|
9992
|
+
const vh = "_wrapper_1e3w5_1", _h = "_icon_1e3w5_27", Eh = "_message_1e3w5_39", Ih = "_dismiss_1e3w5_47", wt = {
|
|
9993
|
+
wrapper: vh,
|
|
9994
|
+
icon: _h,
|
|
9995
|
+
message: Eh,
|
|
9996
|
+
dismiss: Ih
|
|
9981
9997
|
};
|
|
9982
|
-
function
|
|
9998
|
+
function Ah({ message: e, onDismiss: n }) {
|
|
9983
9999
|
const t = Te();
|
|
9984
10000
|
return /* @__PURE__ */ Y("div", { className: wt.wrapper, role: "alert", "data-juneau": "error", children: [
|
|
9985
|
-
/* @__PURE__ */
|
|
9986
|
-
/* @__PURE__ */
|
|
9987
|
-
n && /* @__PURE__ */
|
|
10001
|
+
/* @__PURE__ */ x("svg", { className: wt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }) }),
|
|
10002
|
+
/* @__PURE__ */ x("span", { className: wt.message, children: e }),
|
|
10003
|
+
n && /* @__PURE__ */ x("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ x("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
|
|
9988
10004
|
] });
|
|
9989
10005
|
}
|
|
9990
|
-
const
|
|
9991
|
-
chat:
|
|
10006
|
+
const Th = "_chat_13051_1", zh = {
|
|
10007
|
+
chat: Th
|
|
9992
10008
|
};
|
|
9993
|
-
function
|
|
10009
|
+
function Ph({
|
|
9994
10010
|
messages: e,
|
|
9995
10011
|
input: n,
|
|
9996
10012
|
isLoading: t,
|
|
@@ -10014,12 +10030,12 @@ function zh({
|
|
|
10014
10030
|
return /* @__PURE__ */ Y(
|
|
10015
10031
|
"div",
|
|
10016
10032
|
{
|
|
10017
|
-
className: [
|
|
10033
|
+
className: [zh.chat, y].filter(Boolean).join(" "),
|
|
10018
10034
|
style: I,
|
|
10019
10035
|
"data-juneau": "chat",
|
|
10020
10036
|
children: [
|
|
10021
|
-
/* @__PURE__ */
|
|
10022
|
-
|
|
10037
|
+
/* @__PURE__ */ x(
|
|
10038
|
+
hh,
|
|
10023
10039
|
{
|
|
10024
10040
|
messages: e,
|
|
10025
10041
|
isLoading: t,
|
|
@@ -10032,9 +10048,9 @@ function zh({
|
|
|
10032
10048
|
emptyState: S
|
|
10033
10049
|
}
|
|
10034
10050
|
),
|
|
10035
|
-
i && /* @__PURE__ */
|
|
10036
|
-
/* @__PURE__ */
|
|
10037
|
-
|
|
10051
|
+
i && /* @__PURE__ */ x(Ah, { message: i }),
|
|
10052
|
+
/* @__PURE__ */ x(
|
|
10053
|
+
Sh,
|
|
10038
10054
|
{
|
|
10039
10055
|
value: n,
|
|
10040
10056
|
onChange: o,
|
|
@@ -10050,15 +10066,15 @@ function zh({
|
|
|
10050
10066
|
}
|
|
10051
10067
|
);
|
|
10052
10068
|
}
|
|
10053
|
-
const
|
|
10054
|
-
header:
|
|
10055
|
-
left:
|
|
10056
|
-
icon:
|
|
10057
|
-
title:
|
|
10058
|
-
resetBtn:
|
|
10059
|
-
actions:
|
|
10069
|
+
const Lh = "_header_1saak_1", Dh = "_left_1saak_23", Nh = "_icon_1saak_35", Mh = "_title_1saak_45", Rh = "_resetBtn_1saak_57", Fh = "_actions_1saak_99", Ne = {
|
|
10070
|
+
header: Lh,
|
|
10071
|
+
left: Dh,
|
|
10072
|
+
icon: Nh,
|
|
10073
|
+
title: Mh,
|
|
10074
|
+
resetBtn: Rh,
|
|
10075
|
+
actions: Fh
|
|
10060
10076
|
};
|
|
10061
|
-
function
|
|
10077
|
+
function Oh({
|
|
10062
10078
|
title: e,
|
|
10063
10079
|
onMinimize: n,
|
|
10064
10080
|
isMinimized: t,
|
|
@@ -10069,39 +10085,41 @@ function Fh({
|
|
|
10069
10085
|
const l = Te();
|
|
10070
10086
|
return /* @__PURE__ */ Y("div", { className: Ne.header, "data-juneau": "header", children: [
|
|
10071
10087
|
/* @__PURE__ */ Y("div", { className: Ne.left, children: [
|
|
10072
|
-
/* @__PURE__ */
|
|
10073
|
-
/* @__PURE__ */
|
|
10088
|
+
/* @__PURE__ */ x("span", { className: Ne.icon, "aria-hidden": "true", children: r ?? /* @__PURE__ */ x(Nr, {}) }),
|
|
10089
|
+
/* @__PURE__ */ x("span", { className: Ne.title, children: e ?? l.sidebarTitle })
|
|
10074
10090
|
] }),
|
|
10075
10091
|
(n || i || o) && /* @__PURE__ */ Y("div", { className: Ne.actions, children: [
|
|
10076
10092
|
o,
|
|
10077
|
-
i && /* @__PURE__ */
|
|
10093
|
+
i && /* @__PURE__ */ x(
|
|
10078
10094
|
"button",
|
|
10079
10095
|
{
|
|
10080
10096
|
className: Ne.resetBtn,
|
|
10081
10097
|
onClick: i,
|
|
10082
10098
|
title: l.resetConversation,
|
|
10083
10099
|
"aria-label": l.resetConversation,
|
|
10084
|
-
|
|
10100
|
+
"data-juneau": "header-reset",
|
|
10101
|
+
children: /* @__PURE__ */ x(Al, {})
|
|
10085
10102
|
}
|
|
10086
10103
|
),
|
|
10087
|
-
n && /* @__PURE__ */
|
|
10104
|
+
n && /* @__PURE__ */ x(
|
|
10088
10105
|
"button",
|
|
10089
10106
|
{
|
|
10090
10107
|
className: Ne.resetBtn,
|
|
10091
10108
|
onClick: n,
|
|
10092
10109
|
title: t ? l.expandSidebar : l.minimizeSidebar,
|
|
10093
10110
|
"aria-label": t ? l.expandSidebar : l.minimizeSidebar,
|
|
10094
|
-
|
|
10111
|
+
"data-juneau": "header-minimize",
|
|
10112
|
+
children: t ? /* @__PURE__ */ x(Il, {}) : /* @__PURE__ */ x(El, {})
|
|
10095
10113
|
}
|
|
10096
10114
|
)
|
|
10097
10115
|
] })
|
|
10098
10116
|
] });
|
|
10099
10117
|
}
|
|
10100
|
-
const
|
|
10101
|
-
sidebar:
|
|
10102
|
-
minimized:
|
|
10118
|
+
const jh = "_sidebar_u9ybt_1", Bh = "_minimized_u9ybt_39", Ir = {
|
|
10119
|
+
sidebar: jh,
|
|
10120
|
+
minimized: Bh
|
|
10103
10121
|
};
|
|
10104
|
-
function
|
|
10122
|
+
function od({
|
|
10105
10123
|
title: e,
|
|
10106
10124
|
icon: n,
|
|
10107
10125
|
actions: t,
|
|
@@ -10124,11 +10142,11 @@ function ld({
|
|
|
10124
10142
|
isLoading: _,
|
|
10125
10143
|
isConnecting: L,
|
|
10126
10144
|
error: N,
|
|
10127
|
-
reset:
|
|
10145
|
+
reset: b,
|
|
10128
10146
|
confirmProposal: O,
|
|
10129
10147
|
cancelProposal: H
|
|
10130
10148
|
} = xl(), B = a ? () => {
|
|
10131
|
-
|
|
10149
|
+
b(), a();
|
|
10132
10150
|
} : void 0;
|
|
10133
10151
|
return /* @__PURE__ */ Y(
|
|
10134
10152
|
"aside",
|
|
@@ -10137,8 +10155,8 @@ function ld({
|
|
|
10137
10155
|
style: { height: h ? void 0 : i, ...l },
|
|
10138
10156
|
"data-juneau": "sidebar",
|
|
10139
10157
|
children: [
|
|
10140
|
-
/* @__PURE__ */
|
|
10141
|
-
|
|
10158
|
+
/* @__PURE__ */ x(
|
|
10159
|
+
Oh,
|
|
10142
10160
|
{
|
|
10143
10161
|
title: e,
|
|
10144
10162
|
icon: n,
|
|
@@ -10148,8 +10166,8 @@ function ld({
|
|
|
10148
10166
|
headerActions: f
|
|
10149
10167
|
}
|
|
10150
10168
|
),
|
|
10151
|
-
!h && /* @__PURE__ */
|
|
10152
|
-
|
|
10169
|
+
!h && /* @__PURE__ */ x(
|
|
10170
|
+
Ph,
|
|
10153
10171
|
{
|
|
10154
10172
|
messages: g,
|
|
10155
10173
|
input: C,
|
|
@@ -10173,77 +10191,77 @@ function ld({
|
|
|
10173
10191
|
}
|
|
10174
10192
|
);
|
|
10175
10193
|
}
|
|
10176
|
-
const
|
|
10177
|
-
list:
|
|
10178
|
-
item:
|
|
10179
|
-
chat:
|
|
10180
|
-
chatActive:
|
|
10181
|
-
title:
|
|
10182
|
-
date:
|
|
10194
|
+
const $h = "_list_j7fvh_1", Hh = "_item_j7fvh_19", Vh = "_chat_j7fvh_31", qh = "_chatActive_j7fvh_71", Uh = "_title_j7fvh_79", Wh = "_date_j7fvh_99", Yh = "_empty_j7fvh_163", _e = {
|
|
10195
|
+
list: $h,
|
|
10196
|
+
item: Hh,
|
|
10197
|
+
chat: Vh,
|
|
10198
|
+
chatActive: qh,
|
|
10199
|
+
title: Uh,
|
|
10200
|
+
date: Wh,
|
|
10183
10201
|
delete: "_delete_j7fvh_111",
|
|
10184
|
-
empty:
|
|
10202
|
+
empty: Yh
|
|
10185
10203
|
};
|
|
10186
|
-
function
|
|
10204
|
+
function ad({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {
|
|
10187
10205
|
const i = Te();
|
|
10188
|
-
return e.length === 0 ? /* @__PURE__ */
|
|
10206
|
+
return e.length === 0 ? /* @__PURE__ */ x("p", { className: _e.empty, children: i.historyEmpty }) : /* @__PURE__ */ x("ul", { className: _e.list, "data-juneau": "history-list", children: e.map((o) => /* @__PURE__ */ Y("li", { className: _e.item, children: [
|
|
10189
10207
|
/* @__PURE__ */ Y(
|
|
10190
10208
|
"button",
|
|
10191
10209
|
{
|
|
10192
10210
|
className: o.id === t ? `${_e.chat} ${_e.chatActive}` : _e.chat,
|
|
10193
10211
|
onClick: () => n(o.id),
|
|
10194
10212
|
children: [
|
|
10195
|
-
/* @__PURE__ */
|
|
10196
|
-
/* @__PURE__ */
|
|
10213
|
+
/* @__PURE__ */ x("span", { className: _e.title, children: o.title }),
|
|
10214
|
+
/* @__PURE__ */ x("span", { className: _e.date, children: o.updatedAt.toLocaleDateString(void 0, { day: "numeric", month: "short" }) })
|
|
10197
10215
|
]
|
|
10198
10216
|
}
|
|
10199
10217
|
),
|
|
10200
|
-
r && /* @__PURE__ */
|
|
10218
|
+
r && /* @__PURE__ */ x(
|
|
10201
10219
|
"button",
|
|
10202
10220
|
{
|
|
10203
10221
|
className: _e.delete,
|
|
10204
10222
|
onClick: () => r(o.id),
|
|
10205
10223
|
"aria-label": i.historyDeleteChat,
|
|
10206
|
-
children: /* @__PURE__ */
|
|
10224
|
+
children: /* @__PURE__ */ x("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) })
|
|
10207
10225
|
}
|
|
10208
10226
|
)
|
|
10209
10227
|
] }, o.id)) });
|
|
10210
10228
|
}
|
|
10211
10229
|
export {
|
|
10212
|
-
|
|
10213
|
-
|
|
10230
|
+
vp as AiActivityPart,
|
|
10231
|
+
Ph as AiChat,
|
|
10214
10232
|
cn as AiChatContext,
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10233
|
+
Oh as AiChatHeader,
|
|
10234
|
+
ad as AiChatHistoryList,
|
|
10235
|
+
id as AiChatProvider,
|
|
10218
10236
|
$i as AiEntityCard,
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10237
|
+
Hp as AiEntityListPart,
|
|
10238
|
+
Ah as AiError,
|
|
10239
|
+
Sh as AiInput,
|
|
10240
|
+
ih as AiMessageBubble,
|
|
10241
|
+
hh as AiMessageList,
|
|
10242
|
+
Yp as AiMessagePartRenderer,
|
|
10243
|
+
kp as AiProposalCard,
|
|
10244
|
+
od as AiSidebar,
|
|
10245
|
+
ap as AiTablePart,
|
|
10246
|
+
sh as AiTypingIndicator,
|
|
10247
|
+
nd as JuneauProvider,
|
|
10230
10248
|
Nn as consumeStream,
|
|
10231
|
-
|
|
10232
|
-
|
|
10249
|
+
td as createFetchStreamAdapter,
|
|
10250
|
+
ed as createSseAdapter,
|
|
10233
10251
|
K as delay,
|
|
10234
|
-
|
|
10252
|
+
Jh as deserializeMessages,
|
|
10235
10253
|
Zi as getMessageText,
|
|
10236
10254
|
zr as isProposalPart,
|
|
10237
|
-
|
|
10255
|
+
ld as juneauCs,
|
|
10238
10256
|
Lr as juneauEn,
|
|
10239
|
-
|
|
10257
|
+
Zh as mockAdapter,
|
|
10240
10258
|
Pr as parseJuneauWire,
|
|
10241
|
-
|
|
10259
|
+
Gh as serializeForStorage,
|
|
10242
10260
|
Ki as serializeMessages,
|
|
10243
|
-
|
|
10261
|
+
Kh as trimChats,
|
|
10244
10262
|
nl as trimHistory,
|
|
10245
10263
|
ml as useAiChat,
|
|
10246
10264
|
xl as useAiChatContext,
|
|
10247
|
-
|
|
10265
|
+
rd as useAiChatContextSafe
|
|
10248
10266
|
};
|
|
10249
10267
|
//# sourceMappingURL=index.js.map
|