@versini/sassysaint 8.113.1 → 8.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.DARG59db.js → AboutChangelog.cYXO6N-J.js} +2 -2
- package/dist/chunks/{AboutEntry.b7SX6WL6.js → AboutEntry.CSQbhWlI.js} +7 -7
- package/dist/chunks/{App.xmJgJehw.js → App.Dma2gxWb.js} +2694 -2705
- package/dist/chunks/{Bubble.Cz0qyoPO.js → Bubble.-CdmiUoI.js} +1 -1
- package/dist/chunks/{ButtonIconDelete.B3ULIUO-.js → ButtonIconDelete.Cgu_no-r.js} +2 -2
- package/dist/chunks/{Chart.C0iTXNld.js → Chart.BrccRt9A.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Oxeqz6_p.js → ChatBubbleAssistant.DDEqvmFC.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.XmPerorZ.js → ChatBubbleUser.CLqjgdS1.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.CPSt_wL_.js → ChatHistoryTable.DDxqwi3_.js} +11 -11
- package/dist/chunks/{HistoryEntry.CkyoLRa6.js → HistoryEntry.CBbnICC8.js} +38 -38
- package/dist/chunks/{LoginEntry.OXFkZEz4.js → LoginEntry.4o6Zyxt5.js} +4 -4
- package/dist/chunks/{LogoEntry.CwNXwlBx.js → LogoEntry.DzrCgR1y.js} +891 -891
- package/dist/chunks/{MemoriesEntry.RiZXtAAL.js → MemoriesEntry.CJenxq81.js} +5 -5
- package/dist/chunks/{ProfileEntry.CrZ2q4i9.js → ProfileEntry.Dtk5OH9L.js} +4 -4
- package/dist/chunks/{SettingsEntry.M3K9Udw1.js → SettingsEntry.DT__txag.js} +21 -21
- package/dist/chunks/{UsageEntry.CN_Db9Wa.js → UsageEntry.D4jX6Ni3.js} +5 -5
- package/dist/chunks/{_baseUniq.f4f4GDt9.js → _baseUniq.j-cbKTIU.js} +1 -1
- package/dist/chunks/{arc.i1gTqq5f.js → arc.s51KKzXf.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.BlAWNnCU.js → architecture-U656AL7Q.D9jnBghb.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.CNiv_XUQ.js → architectureDiagram-VXUJARFQ.BX9cPW0h.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.DHyMgxSX.js → blockDiagram-VD42YOAC.D2nIV7_O.js} +5 -5
- package/dist/chunks/{browser.DwvEsO0M.js → browser.BpS7pwYf.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.5rV4UgiI.js → c4Diagram-YG6GDRKO.DXt3lYiA.js} +2 -2
- package/dist/chunks/{channel.Cbuusniv.js → channel.CFOku56s.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.Cr4aulve.js → chunk-4BX2VUAB.BWz_fDS6.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.BSNVvGBN.js → chunk-55IACEB6.DgiFo5u1.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.f8-M_ha3.js → chunk-B4BG7PRW.D0bHBpBT.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.DHI14tPg.js → chunk-DI55MBZ5.HQmmvdll.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.iTWjW72u.js → chunk-FMBD7UC4.DPxQ7DiM.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.D4-2NXjF.js → chunk-QN33PNHL.DaIDraDw.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.CYmGB8Sb.js → chunk-QZHKN3VN.LC7xBEqZ.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.DzMaXodZ.js → chunk-TZMSLE5B.b50h6n9-.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.BKKdpvXL.js → classDiagram-2ON5EDUG.BhbvE-K3.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.BKKdpvXL.js → classDiagram-v2-WZHVMYZB.BhbvE-K3.js} +2 -2
- package/dist/chunks/{clone.CvyZhqBo.js → clone.Duh8Phbm.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.DkcPIpNo.js → cose-bilkent-S5V4N54A.hI1Ll-gw.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.CYWrglcj.js → dagre-6UL2VRFP._rp-5xrB.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.ammyY8fs.js → diagram-PSM6KHXK.Bo5ENyvC.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.nxakvoUi.js → diagram-QEK2KX5R.7zq18yjt.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.oTHGFvqq.js → diagram-S2PKOQOG.BJxppCOh.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.CLXRUHsa.js → erDiagram-Q2GNP2WA.Cs1J95yg.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.Cy7wO5FH.js → flowDiagram-NV44I4VS.CHhgAMP7.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.Cl8zcb3j.js → ganttDiagram-JELNMOA3.B2xNftod.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.hNW58gvI.js → gitGraph-F6HP7TQM.KJFqke_C.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.CZSlTMsq.js → gitGraphDiagram-NY62KEGX.DX_ee_38.js} +4 -4
- package/dist/chunks/{graph.Caz35JH7.js → graph.CUgUKS08.js} +2 -2
- package/dist/chunks/{index.CvxA-kV5.js → index.B519ew0o.js} +1 -1
- package/dist/chunks/{index.DjSNYDyW.js → index.B8hSJstR.js} +3 -3
- package/dist/chunks/{index.DN476kOD.js → index.BP-52CIm.js} +1 -1
- package/dist/chunks/{index.BviDehsy.js → index.C7y29n02.js} +1 -1
- package/dist/chunks/{index.CQi6BBgd.js → index.Cve2drMf.js} +1 -1
- package/dist/chunks/{index.1cAC-xa5.js → index.DA40TKr6.js} +1 -1
- package/dist/chunks/{index.Db2hh2RQ.js → index.DZU3Dh0n.js} +1 -1
- package/dist/chunks/{index.HA4LNOyl.js → index.DurA77q3.js} +3 -3
- package/dist/chunks/{index.CqmFtr8m.js → index.DxCB1RIc.js} +604 -554
- package/dist/chunks/{info-NVLQJR56.Dc95hvAr.js → info-NVLQJR56.CBxhfRws.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.DkzXHXgE.js → infoDiagram-WHAUD3N6.Q_b5lpx4.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.Dm4nCIWT.js → journeyDiagram-XKPGCS4Q.C2MAzQ81.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.Bw_g7kdo.js → kanban-definition-3W4ZIXB7.D2G7relm.js} +2 -2
- package/dist/chunks/{layout.B2-214jN.js → layout.CXHmnDHE.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.CXlYMeXK.js → mermaid-parser.core.t-ijXLVA.js} +10 -10
- package/dist/chunks/{min.BgoLZ81l.js → min.Db1anaH8.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.CsFsq1Li.js → mindmap-definition-VGOIOE7T.D0Z0JOgS.js} +4 -4
- package/dist/chunks/{packet-BFZMPI3H.CDcu8fNx.js → packet-BFZMPI3H.BS97JHmr.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.ByUouGiC.js → pie-7BOR55EZ.6GPetedW.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.D8CkHMPE.js → pieDiagram-ADFJNKIX.DomEEeYz.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.yAWIyAoJ.js → quadrantDiagram-AYHSOK5B.C9Da1XDD.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.Bd9UodJQ.js → radar-NHE76QYJ.BgcGDRmW.js} +1 -1
- package/dist/chunks/{rehype-mermaid.CkjpiQg3.js → rehype-mermaid.Dx1B0gAg.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.D_fevfp7.js → requirementDiagram-UZGBJVZJ.D5DVZQJF.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BhEOFLc-.js → sankeyDiagram-TZEHDZUN.D1qdX7uU.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.BHLZnLLI.js → sequenceDiagram-WL72ISMW.BG_L2WY-.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.CCaljhqc.js → stateDiagram-FKZM4ZOC.B4ID8gfW.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BIe9xvkt.js → stateDiagram-v2-4FDKWEC3.OKYwCiNm.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.DaPI8uIU.js → timeline-definition-IT6M3QCI.D_oPJBYb.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.Dp5s54-J.js → treemap-KMMF4GRG.BxoeOvUX.js} +1 -1
- package/dist/chunks/{useMarkdown.DZ7gk7QY.js → useMarkdown.B4iPfBGx.js} +942 -874
- package/dist/chunks/{xychartDiagram-PRI3JC2R.CuFnq5R8.js → xychartDiagram-PRI3JC2R.CFF8ELFv.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ButtonIcon as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { getDefaultExportFromCjs as
|
|
5
|
-
import { isTauri as
|
|
6
|
-
function
|
|
7
|
-
const [r, i] =
|
|
1
|
+
import { jsx as ge, jsxs as _n, Fragment as et } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIcon as Rr, IconCopied as vr, IconCopy as Dr } from "./LogoEntry.DzrCgR1y.js";
|
|
3
|
+
import { useState as Ut, useEffect as jt, useCallback as Mn, useRef as Ae, createElement as Fr } from "react";
|
|
4
|
+
import { getDefaultExportFromCjs as $t, unObfuscate as Or, obfuscate as Br } from "./App.Dma2gxWb.js";
|
|
5
|
+
import { isTauri as Ht } from "./index.DxCB1RIc.js";
|
|
6
|
+
function Ur({ copyToClipboard: e, ref: n, ...t }) {
|
|
7
|
+
const [r, i] = Ut(!1), l = () => {
|
|
8
8
|
typeof e == "string" && (navigator.clipboard.writeText(e), i(!0)), typeof e == "function" && (navigator.clipboard.writeText(e()), i(!0));
|
|
9
9
|
};
|
|
10
|
-
return
|
|
10
|
+
return jt(() => {
|
|
11
11
|
let o;
|
|
12
12
|
return r && (o = window.setTimeout(() => {
|
|
13
13
|
i(!1);
|
|
@@ -16,28 +16,28 @@ function Br({ copyToClipboard: e, ref: n, ...t }) {
|
|
|
16
16
|
};
|
|
17
17
|
}, [
|
|
18
18
|
r
|
|
19
|
-
]), /* @__PURE__ */
|
|
19
|
+
]), /* @__PURE__ */ ge(Rr, {
|
|
20
20
|
...t,
|
|
21
21
|
size: "small",
|
|
22
22
|
ref: n,
|
|
23
23
|
label: r ? "Copied to clipboard" : "Copy to clipboard",
|
|
24
24
|
onClick: l,
|
|
25
25
|
disabled: r,
|
|
26
|
-
children: r ? /* @__PURE__ */
|
|
26
|
+
children: r ? /* @__PURE__ */ ge(vr, {
|
|
27
27
|
size: "size-3"
|
|
28
|
-
}) : /* @__PURE__ */
|
|
28
|
+
}) : /* @__PURE__ */ ge(Dr, {
|
|
29
29
|
size: "size-3"
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const Vt = -1, nn = 0, He = 1, en = 2, Nn = 3, Rn = 4, vn = 5, Dn = 6, qt = 7, Wt = 8, nt = typeof self == "object" ? self : globalThis, jr = (e, n) => {
|
|
34
34
|
const t = (i, l) => (e.set(l, i), i), r = (i) => {
|
|
35
35
|
if (e.has(i))
|
|
36
36
|
return e.get(i);
|
|
37
37
|
const [l, o] = n[i];
|
|
38
38
|
switch (l) {
|
|
39
39
|
case nn:
|
|
40
|
-
case
|
|
40
|
+
case Vt:
|
|
41
41
|
return t(o, i);
|
|
42
42
|
case He: {
|
|
43
43
|
const a = t([], i);
|
|
@@ -51,29 +51,29 @@ const $t = -1, nn = 0, He = 1, en = 2, _n = 3, Mn = 4, Nn = 5, Rn = 6, Ht = 7, V
|
|
|
51
51
|
a[r(s)] = r(u);
|
|
52
52
|
return a;
|
|
53
53
|
}
|
|
54
|
-
case
|
|
54
|
+
case Nn:
|
|
55
55
|
return t(new Date(o), i);
|
|
56
|
-
case
|
|
56
|
+
case Rn: {
|
|
57
57
|
const { source: a, flags: s } = o;
|
|
58
58
|
return t(new RegExp(a, s), i);
|
|
59
59
|
}
|
|
60
|
-
case
|
|
60
|
+
case vn: {
|
|
61
61
|
const a = t(/* @__PURE__ */ new Map(), i);
|
|
62
62
|
for (const [s, u] of o)
|
|
63
63
|
a.set(r(s), r(u));
|
|
64
64
|
return a;
|
|
65
65
|
}
|
|
66
|
-
case
|
|
66
|
+
case Dn: {
|
|
67
67
|
const a = t(/* @__PURE__ */ new Set(), i);
|
|
68
68
|
for (const s of o)
|
|
69
69
|
a.add(r(s));
|
|
70
70
|
return a;
|
|
71
71
|
}
|
|
72
|
-
case
|
|
72
|
+
case qt: {
|
|
73
73
|
const { name: a, message: s } = o;
|
|
74
|
-
return t(new
|
|
74
|
+
return t(new nt[a](s), i);
|
|
75
75
|
}
|
|
76
|
-
case
|
|
76
|
+
case Wt:
|
|
77
77
|
return t(BigInt(o), i);
|
|
78
78
|
case "BigInt":
|
|
79
79
|
return t(Object(BigInt(o)), i);
|
|
@@ -84,32 +84,32 @@ const $t = -1, nn = 0, He = 1, en = 2, _n = 3, Mn = 4, Nn = 5, Rn = 6, Ht = 7, V
|
|
|
84
84
|
return t(new DataView(a), o);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
return t(new
|
|
87
|
+
return t(new nt[l](o), i);
|
|
88
88
|
};
|
|
89
89
|
return r;
|
|
90
|
-
},
|
|
90
|
+
}, tt = (e) => jr(/* @__PURE__ */ new Map(), e)(0), Pe = "", { toString: $r } = {}, { keys: Hr } = Object, De = (e) => {
|
|
91
91
|
const n = typeof e;
|
|
92
92
|
if (n !== "object" || !e)
|
|
93
93
|
return [nn, n];
|
|
94
|
-
const t =
|
|
94
|
+
const t = $r.call(e).slice(8, -1);
|
|
95
95
|
switch (t) {
|
|
96
96
|
case "Array":
|
|
97
|
-
return [He,
|
|
97
|
+
return [He, Pe];
|
|
98
98
|
case "Object":
|
|
99
|
-
return [en,
|
|
99
|
+
return [en, Pe];
|
|
100
100
|
case "Date":
|
|
101
|
-
return [
|
|
101
|
+
return [Nn, Pe];
|
|
102
102
|
case "RegExp":
|
|
103
|
-
return [
|
|
103
|
+
return [Rn, Pe];
|
|
104
104
|
case "Map":
|
|
105
|
-
return [
|
|
105
|
+
return [vn, Pe];
|
|
106
106
|
case "Set":
|
|
107
|
-
return [
|
|
107
|
+
return [Dn, Pe];
|
|
108
108
|
case "DataView":
|
|
109
109
|
return [He, t];
|
|
110
110
|
}
|
|
111
|
-
return t.includes("Array") ? [He, t] : t.includes("Error") ? [
|
|
112
|
-
}, Ke = ([e, n]) => e === nn && (n === "function" || n === "symbol"),
|
|
111
|
+
return t.includes("Array") ? [He, t] : t.includes("Error") ? [qt, t] : [en, t];
|
|
112
|
+
}, Ke = ([e, n]) => e === nn && (n === "function" || n === "symbol"), Vr = (e, n, t, r) => {
|
|
113
113
|
const i = (o, a) => {
|
|
114
114
|
const s = r.push(o) - 1;
|
|
115
115
|
return t.set(a, s), s;
|
|
@@ -122,7 +122,7 @@ const $t = -1, nn = 0, He = 1, en = 2, _n = 3, Mn = 4, Nn = 5, Rn = 6, Ht = 7, V
|
|
|
122
122
|
let c = o;
|
|
123
123
|
switch (s) {
|
|
124
124
|
case "bigint":
|
|
125
|
-
a =
|
|
125
|
+
a = Wt, c = o.toString();
|
|
126
126
|
break;
|
|
127
127
|
case "function":
|
|
128
128
|
case "symbol":
|
|
@@ -131,7 +131,7 @@ const $t = -1, nn = 0, He = 1, en = 2, _n = 3, Mn = 4, Nn = 5, Rn = 6, Ht = 7, V
|
|
|
131
131
|
c = null;
|
|
132
132
|
break;
|
|
133
133
|
case "undefined":
|
|
134
|
-
return i([
|
|
134
|
+
return i([Vt], o);
|
|
135
135
|
}
|
|
136
136
|
return i([a, c], o);
|
|
137
137
|
}
|
|
@@ -158,23 +158,23 @@ const $t = -1, nn = 0, He = 1, en = 2, _n = 3, Mn = 4, Nn = 5, Rn = 6, Ht = 7, V
|
|
|
158
158
|
if (n && "toJSON" in o)
|
|
159
159
|
return l(o.toJSON());
|
|
160
160
|
const c = [], f = i([a, c], o);
|
|
161
|
-
for (const d of
|
|
161
|
+
for (const d of Hr(o))
|
|
162
162
|
(e || !Ke(De(o[d]))) && c.push([l(d), l(o[d])]);
|
|
163
163
|
return f;
|
|
164
164
|
}
|
|
165
|
-
case
|
|
165
|
+
case Nn:
|
|
166
166
|
return i([a, o.toISOString()], o);
|
|
167
|
-
case
|
|
167
|
+
case Rn: {
|
|
168
168
|
const { source: c, flags: f } = o;
|
|
169
169
|
return i([a, { source: c, flags: f }], o);
|
|
170
170
|
}
|
|
171
|
-
case
|
|
171
|
+
case vn: {
|
|
172
172
|
const c = [], f = i([a, c], o);
|
|
173
173
|
for (const [d, p] of o)
|
|
174
174
|
(e || !(Ke(De(d)) || Ke(De(p)))) && c.push([l(d), l(p)]);
|
|
175
175
|
return f;
|
|
176
176
|
}
|
|
177
|
-
case
|
|
177
|
+
case Dn: {
|
|
178
178
|
const c = [], f = i([a, c], o);
|
|
179
179
|
for (const d of o)
|
|
180
180
|
(e || !Ke(De(d))) && c.push(l(d));
|
|
@@ -185,13 +185,13 @@ const $t = -1, nn = 0, He = 1, en = 2, _n = 3, Mn = 4, Nn = 5, Rn = 6, Ht = 7, V
|
|
|
185
185
|
return i([a, { name: s, message: u }], o);
|
|
186
186
|
};
|
|
187
187
|
return l;
|
|
188
|
-
},
|
|
188
|
+
}, rt = (e, { json: n, lossy: t } = {}) => {
|
|
189
189
|
const r = [];
|
|
190
|
-
return
|
|
191
|
-
},
|
|
190
|
+
return Vr(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
|
191
|
+
}, be = typeof structuredClone == "function" ? (
|
|
192
192
|
/* c8 ignore start */
|
|
193
|
-
(e, n) => n && ("json" in n || "lossy" in n) ?
|
|
194
|
-
) : (e, n) =>
|
|
193
|
+
(e, n) => n && ("json" in n || "lossy" in n) ? tt(rt(e, n)) : structuredClone(e)
|
|
194
|
+
) : (e, n) => tt(rt(e, n)), Xt = (
|
|
195
195
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
196
196
|
/**
|
|
197
197
|
* @type {(
|
|
@@ -207,22 +207,22 @@ const $t = -1, nn = 0, He = 1, en = 2, _n = 3, Mn = 4, Nn = 5, Rn = 6, Ht = 7, V
|
|
|
207
207
|
*/
|
|
208
208
|
(function(e) {
|
|
209
209
|
if (e == null)
|
|
210
|
-
return
|
|
210
|
+
return Xr;
|
|
211
211
|
if (typeof e == "string")
|
|
212
|
-
return
|
|
212
|
+
return Wr(e);
|
|
213
213
|
if (typeof e == "object")
|
|
214
|
-
return
|
|
214
|
+
return qr(e);
|
|
215
215
|
if (typeof e == "function")
|
|
216
|
-
return
|
|
216
|
+
return Fn(e);
|
|
217
217
|
throw new Error("Expected function, string, or array as `test`");
|
|
218
218
|
})
|
|
219
219
|
);
|
|
220
|
-
function
|
|
220
|
+
function qr(e) {
|
|
221
221
|
const n = [];
|
|
222
222
|
let t = -1;
|
|
223
223
|
for (; ++t < e.length; )
|
|
224
|
-
n[t] =
|
|
225
|
-
return
|
|
224
|
+
n[t] = Xt(e[t]);
|
|
225
|
+
return Fn(r);
|
|
226
226
|
function r(...i) {
|
|
227
227
|
let l = -1;
|
|
228
228
|
for (; ++l < n.length; )
|
|
@@ -230,16 +230,16 @@ function Vr(e) {
|
|
|
230
230
|
return !1;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
return
|
|
233
|
+
function Wr(e) {
|
|
234
|
+
return Fn(n);
|
|
235
235
|
function n(t) {
|
|
236
236
|
return t.tagName === e;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Fn(e) {
|
|
240
240
|
return n;
|
|
241
241
|
function n(t, r, i) {
|
|
242
|
-
return !!(
|
|
242
|
+
return !!(Yr(t) && e.call(
|
|
243
243
|
this,
|
|
244
244
|
t,
|
|
245
245
|
typeof r == "number" ? r : void 0,
|
|
@@ -247,26 +247,26 @@ function vn(e) {
|
|
|
247
247
|
));
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Xr(e) {
|
|
251
251
|
return !!(e && typeof e == "object" && "type" in e && e.type === "element" && "tagName" in e && typeof e.tagName == "string");
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Yr(e) {
|
|
254
254
|
return e !== null && typeof e == "object" && "type" in e && "tagName" in e;
|
|
255
255
|
}
|
|
256
|
-
const
|
|
257
|
-
function
|
|
256
|
+
const Gr = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, Kr = /^[a-zA-Z]:\\/;
|
|
257
|
+
function Qr(e) {
|
|
258
258
|
if (typeof e != "string")
|
|
259
259
|
throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
|
|
260
|
-
return
|
|
260
|
+
return Kr.test(e) ? !1 : Gr.test(e);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Jr(e) {
|
|
263
263
|
const n = String(e || "").trim();
|
|
264
264
|
return n ? n.split(/[ \t\n\r\f]+/g) : [];
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Zr(e) {
|
|
267
267
|
return e.join(" ").trim();
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const Yt = (
|
|
270
270
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
271
271
|
/**
|
|
272
272
|
* @type {(
|
|
@@ -283,28 +283,28 @@ const Wt = (
|
|
|
283
283
|
*/
|
|
284
284
|
(function(e) {
|
|
285
285
|
if (e == null)
|
|
286
|
-
return
|
|
286
|
+
return ri;
|
|
287
287
|
if (typeof e == "function")
|
|
288
288
|
return tn(e);
|
|
289
289
|
if (typeof e == "object")
|
|
290
|
-
return Array.isArray(e) ?
|
|
290
|
+
return Array.isArray(e) ? ei(e) : (
|
|
291
291
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
292
292
|
// narrows to `Array`.
|
|
293
|
-
|
|
293
|
+
ni(
|
|
294
294
|
/** @type {Props} */
|
|
295
295
|
e
|
|
296
296
|
)
|
|
297
297
|
);
|
|
298
298
|
if (typeof e == "string")
|
|
299
|
-
return
|
|
299
|
+
return ti(e);
|
|
300
300
|
throw new Error("Expected function, string, or object as test");
|
|
301
301
|
})
|
|
302
302
|
);
|
|
303
|
-
function
|
|
303
|
+
function ei(e) {
|
|
304
304
|
const n = [];
|
|
305
305
|
let t = -1;
|
|
306
306
|
for (; ++t < e.length; )
|
|
307
|
-
n[t] =
|
|
307
|
+
n[t] = Yt(e[t]);
|
|
308
308
|
return tn(r);
|
|
309
309
|
function r(...i) {
|
|
310
310
|
let l = -1;
|
|
@@ -313,7 +313,7 @@ function Zr(e) {
|
|
|
313
313
|
return !1;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function ni(e) {
|
|
317
317
|
const n = (
|
|
318
318
|
/** @type {Record<string, unknown>} */
|
|
319
319
|
e
|
|
@@ -331,7 +331,7 @@ function ei(e) {
|
|
|
331
331
|
return !0;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function ti(e) {
|
|
335
335
|
return tn(n);
|
|
336
336
|
function n(t) {
|
|
337
337
|
return t && t.type === e;
|
|
@@ -340,7 +340,7 @@ function ni(e) {
|
|
|
340
340
|
function tn(e) {
|
|
341
341
|
return n;
|
|
342
342
|
function n(t, r, i) {
|
|
343
|
-
return !!(
|
|
343
|
+
return !!(ii(t) && e.call(
|
|
344
344
|
this,
|
|
345
345
|
t,
|
|
346
346
|
typeof r == "number" ? r : void 0,
|
|
@@ -348,17 +348,17 @@ function tn(e) {
|
|
|
348
348
|
));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function ri() {
|
|
352
352
|
return !0;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function ii(e) {
|
|
355
355
|
return e !== null && typeof e == "object" && "type" in e;
|
|
356
356
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
357
|
+
const Gt = [], $e = !0, it = !1, xn = "skip";
|
|
358
|
+
function li(e, n, t, r) {
|
|
359
359
|
let i;
|
|
360
360
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
|
361
|
-
const l =
|
|
361
|
+
const l = Yt(i), o = r ? -1 : 1;
|
|
362
362
|
a(e, void 0, [])();
|
|
363
363
|
function a(s, u, c) {
|
|
364
364
|
const f = (
|
|
@@ -379,8 +379,8 @@ function ii(e, n, t, r) {
|
|
|
379
379
|
}
|
|
380
380
|
return d;
|
|
381
381
|
function d() {
|
|
382
|
-
let p =
|
|
383
|
-
if ((!n || l(s, u, c[c.length - 1] || void 0)) && (p =
|
|
382
|
+
let p = Gt, b, S, E;
|
|
383
|
+
if ((!n || l(s, u, c[c.length - 1] || void 0)) && (p = oi(t(s, c)), p[0] === it))
|
|
384
384
|
return p;
|
|
385
385
|
if ("children" in s && s.children) {
|
|
386
386
|
const k = (
|
|
@@ -390,7 +390,7 @@ function ii(e, n, t, r) {
|
|
|
390
390
|
if (k.children && p[0] !== xn)
|
|
391
391
|
for (S = (r ? k.children.length : -1) + o, E = c.concat(k); S > -1 && S < k.children.length; ) {
|
|
392
392
|
const z = k.children[S];
|
|
393
|
-
if (b = a(z, S, E)(), b[0] ===
|
|
393
|
+
if (b = a(z, S, E)(), b[0] === it)
|
|
394
394
|
return b;
|
|
395
395
|
S = typeof b[1] == "number" ? b[1] : S + o;
|
|
396
396
|
}
|
|
@@ -399,33 +399,33 @@ function ii(e, n, t, r) {
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [$e, e] : e == null ?
|
|
402
|
+
function oi(e) {
|
|
403
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [$e, e] : e == null ? Gt : [e];
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function we(e, n, t, r) {
|
|
406
406
|
let i, l, o;
|
|
407
|
-
typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r),
|
|
407
|
+
typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), li(e, l, a, i);
|
|
408
408
|
function a(s, u) {
|
|
409
409
|
const c = u[u.length - 1], f = c ? c.children.indexOf(s) : void 0;
|
|
410
410
|
return o(s, f, c);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
const
|
|
414
|
-
function
|
|
415
|
-
const n = e ||
|
|
413
|
+
const ai = ["http", "https"], ui = ["nofollow"], si = {};
|
|
414
|
+
function ci(e) {
|
|
415
|
+
const n = e || si, t = n.protocols || ai, r = Xt(n.test);
|
|
416
416
|
return function(i) {
|
|
417
|
-
|
|
417
|
+
we(i, "element", function(l, o, a) {
|
|
418
418
|
if (l.tagName === "a" && typeof l.properties.href == "string" && r(l, o, a)) {
|
|
419
419
|
const s = l.properties.href;
|
|
420
|
-
if (
|
|
421
|
-
const u =
|
|
422
|
-
if (b && Object.assign(l.properties,
|
|
423
|
-
const S =
|
|
420
|
+
if (Qr(s) ? t.includes(s.slice(0, s.indexOf(":"))) : s.startsWith("//")) {
|
|
421
|
+
const u = Fe(n.content, l), c = u && !Array.isArray(u) ? [u] : u, f = Fe(n.rel, l) || ui, d = typeof f == "string" ? Jr(f) : f, p = Fe(n.target, l), b = Fe(n.properties, l);
|
|
422
|
+
if (b && Object.assign(l.properties, be(b)), d.length > 0 && (l.properties.rel = [...d]), p && (l.properties.target = p), c) {
|
|
423
|
+
const S = Fe(n.contentProperties, l) || {};
|
|
424
424
|
l.children.push({
|
|
425
425
|
type: "element",
|
|
426
426
|
tagName: "span",
|
|
427
|
-
properties:
|
|
428
|
-
children:
|
|
427
|
+
properties: be(S),
|
|
428
|
+
children: be(c)
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
}
|
|
@@ -433,19 +433,19 @@ function si(e) {
|
|
|
433
433
|
});
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Fe(e, n) {
|
|
437
437
|
return typeof e == "function" ? e(n) : e;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function fi({ defaultOrigin: e = "", allowedLinkPrefixes: n = [], allowedImagePrefixes: t = [], allowDataImages: r = !1, allowedProtocols: i = [], blockedImageClass: l = "inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm", blockedLinkClass: o = "text-gray-500" }) {
|
|
440
440
|
const a = n.length && !n.every((u) => u === "*"), s = t.length && !t.every((u) => u === "*");
|
|
441
441
|
if (!e && (a || s))
|
|
442
442
|
throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");
|
|
443
443
|
return (u) => {
|
|
444
|
-
const c =
|
|
445
|
-
|
|
444
|
+
const c = di(e, n, t, r, i, l, o);
|
|
445
|
+
we(u, c);
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function lt(e, n) {
|
|
449
449
|
if (typeof e != "string")
|
|
450
450
|
return null;
|
|
451
451
|
try {
|
|
@@ -466,10 +466,10 @@ function rt(e, n) {
|
|
|
466
466
|
return null;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function pi(e) {
|
|
470
470
|
return typeof e != "string" ? !1 : e.startsWith("/") || e.startsWith("./") || e.startsWith("../");
|
|
471
471
|
}
|
|
472
|
-
const
|
|
472
|
+
const hi = /* @__PURE__ */ new Set([
|
|
473
473
|
"https:",
|
|
474
474
|
"http:",
|
|
475
475
|
"irc:",
|
|
@@ -477,13 +477,13 @@ const pi = /* @__PURE__ */ new Set([
|
|
|
477
477
|
"mailto:",
|
|
478
478
|
"xmpp:",
|
|
479
479
|
"blob:"
|
|
480
|
-
]),
|
|
480
|
+
]), mi = /* @__PURE__ */ new Set([
|
|
481
481
|
"javascript:",
|
|
482
482
|
"data:",
|
|
483
483
|
"file:",
|
|
484
484
|
"vbscript:"
|
|
485
485
|
]);
|
|
486
|
-
function
|
|
486
|
+
function ot(e, n, t, r = !1, i = !1, l = []) {
|
|
487
487
|
if (!e)
|
|
488
488
|
return null;
|
|
489
489
|
if (typeof e == "string" && e.startsWith("#") && !i)
|
|
@@ -506,25 +506,25 @@ function it(e, n, t, r = !1, i = !1, l = []) {
|
|
|
506
506
|
}
|
|
507
507
|
return null;
|
|
508
508
|
}
|
|
509
|
-
const o =
|
|
510
|
-
if (!o ||
|
|
509
|
+
const o = lt(e, t);
|
|
510
|
+
if (!o || mi.has(o.protocol) || !(hi.has(o.protocol) || l.includes(o.protocol) || l.includes("*")))
|
|
511
511
|
return null;
|
|
512
512
|
if (o.protocol === "mailto:" || !o.protocol.match(/^https?:$/))
|
|
513
513
|
return o.href;
|
|
514
|
-
const s =
|
|
514
|
+
const s = pi(e);
|
|
515
515
|
return o && n.some((u) => {
|
|
516
|
-
const c =
|
|
516
|
+
const c = lt(u, t);
|
|
517
517
|
return !c || c.origin !== o.origin ? !1 : o.href.startsWith(c.href);
|
|
518
518
|
}) ? s ? o.pathname + o.search + o.hash : o.href : n.includes("*") ? o.protocol !== "https:" && o.protocol !== "http:" ? null : s ? o.pathname + o.search + o.hash : o.href : null;
|
|
519
519
|
}
|
|
520
|
-
const on = /* @__PURE__ */ Symbol("node-seen"),
|
|
520
|
+
const on = /* @__PURE__ */ Symbol("node-seen"), di = (e, n, t, r, i, l, o) => {
|
|
521
521
|
const a = (s, u, c) => {
|
|
522
522
|
if (s.type !== "element" || // @ts-expect-error
|
|
523
523
|
s[on])
|
|
524
524
|
return $e;
|
|
525
525
|
if (s.tagName === "a") {
|
|
526
|
-
const f =
|
|
527
|
-
return f === null ? (s[on] = !0,
|
|
526
|
+
const f = ot(s.properties.href, n, e, !1, !1, i);
|
|
527
|
+
return f === null ? (s[on] = !0, we(s, a), c && typeof u == "number" && (c.children[u] = {
|
|
528
528
|
type: "element",
|
|
529
529
|
tagName: "span",
|
|
530
530
|
properties: {
|
|
@@ -541,8 +541,8 @@ const on = /* @__PURE__ */ Symbol("node-seen"), mi = (e, n, t, r, i, l, o) => {
|
|
|
541
541
|
}), xn) : (s.properties.href = f, s.properties.target = "_blank", s.properties.rel = "noopener noreferrer", $e);
|
|
542
542
|
}
|
|
543
543
|
if (s.tagName === "img") {
|
|
544
|
-
const f =
|
|
545
|
-
return f === null ? (s[on] = !0,
|
|
544
|
+
const f = ot(s.properties.src, t, e, r, !0, i);
|
|
545
|
+
return f === null ? (s[on] = !0, we(s, a), c && typeof u == "number" && (c.children[u] = {
|
|
546
546
|
type: "element",
|
|
547
547
|
tagName: "span",
|
|
548
548
|
properties: {
|
|
@@ -560,7 +560,7 @@ const on = /* @__PURE__ */ Symbol("node-seen"), mi = (e, n, t, r, i, l, o) => {
|
|
|
560
560
|
};
|
|
561
561
|
return a;
|
|
562
562
|
};
|
|
563
|
-
function
|
|
563
|
+
function as(e) {
|
|
564
564
|
const n = [], t = String(e || "");
|
|
565
565
|
let r = t.indexOf(","), i = 0, l = !1;
|
|
566
566
|
for (; !l; ) {
|
|
@@ -570,22 +570,22 @@ function is(e) {
|
|
|
570
570
|
}
|
|
571
571
|
return n;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function gi(e, n) {
|
|
574
574
|
const t = {};
|
|
575
575
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
576
576
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
|
577
577
|
).trim();
|
|
578
578
|
}
|
|
579
|
-
const
|
|
580
|
-
function
|
|
581
|
-
return (
|
|
579
|
+
const yi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ki = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, xi = {};
|
|
580
|
+
function at(e, n) {
|
|
581
|
+
return (xi.jsx ? ki : yi).test(e);
|
|
582
582
|
}
|
|
583
|
-
const
|
|
584
|
-
function
|
|
585
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
583
|
+
const bi = /[ \t\n\f\r]/g;
|
|
584
|
+
function wi(e) {
|
|
585
|
+
return typeof e == "object" ? e.type === "text" ? ut(e.value) : !1 : ut(e);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return e.replace(
|
|
587
|
+
function ut(e) {
|
|
588
|
+
return e.replace(bi, "") === "";
|
|
589
589
|
}
|
|
590
590
|
class Xe {
|
|
591
591
|
/**
|
|
@@ -605,7 +605,7 @@ class Xe {
|
|
|
605
605
|
Xe.prototype.normal = {};
|
|
606
606
|
Xe.prototype.property = {};
|
|
607
607
|
Xe.prototype.space = void 0;
|
|
608
|
-
function
|
|
608
|
+
function Kt(e, n) {
|
|
609
609
|
const t = {}, r = {};
|
|
610
610
|
for (const i of e)
|
|
611
611
|
Object.assign(t, i.property), Object.assign(r, i.normal);
|
|
@@ -639,16 +639,16 @@ J.prototype.overloadedBoolean = !1;
|
|
|
639
639
|
J.prototype.property = "";
|
|
640
640
|
J.prototype.spaceSeparated = !1;
|
|
641
641
|
J.prototype.space = void 0;
|
|
642
|
-
let
|
|
643
|
-
const M =
|
|
644
|
-
function
|
|
645
|
-
return 2 ** ++
|
|
642
|
+
let Si = 0;
|
|
643
|
+
const M = Se(), W = Se(), wn = Se(), x = Se(), V = Se(), Le = Se(), ee = Se();
|
|
644
|
+
function Se() {
|
|
645
|
+
return 2 ** ++Si;
|
|
646
646
|
}
|
|
647
647
|
const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: M, booleanish: W, commaOrSpaceSeparated: ee, commaSeparated: Le, number: x, overloadedBoolean: wn, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), an = (
|
|
648
648
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
649
649
|
Object.keys(Sn)
|
|
650
650
|
);
|
|
651
|
-
class
|
|
651
|
+
class On extends J {
|
|
652
652
|
/**
|
|
653
653
|
* @constructor
|
|
654
654
|
* @param {string} property
|
|
@@ -664,21 +664,21 @@ class Dn extends J {
|
|
|
664
664
|
*/
|
|
665
665
|
constructor(n, t, r, i) {
|
|
666
666
|
let l = -1;
|
|
667
|
-
if (super(n, t),
|
|
667
|
+
if (super(n, t), st(this, "space", i), typeof r == "number")
|
|
668
668
|
for (; ++l < an.length; ) {
|
|
669
669
|
const o = an[l];
|
|
670
|
-
|
|
670
|
+
st(this, an[l], (r & Sn[o]) === Sn[o]);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
|
|
675
|
-
function
|
|
674
|
+
On.prototype.defined = !0;
|
|
675
|
+
function st(e, n, t) {
|
|
676
676
|
t && (e[n] = t);
|
|
677
677
|
}
|
|
678
678
|
function _e(e) {
|
|
679
679
|
const n = {}, t = {};
|
|
680
680
|
for (const [r, i] of Object.entries(e.properties)) {
|
|
681
|
-
const l = new
|
|
681
|
+
const l = new On(
|
|
682
682
|
r,
|
|
683
683
|
e.transform(e.attributes || {}, r),
|
|
684
684
|
i,
|
|
@@ -688,7 +688,7 @@ function _e(e) {
|
|
|
688
688
|
}
|
|
689
689
|
return new Xe(n, t, e.space);
|
|
690
690
|
}
|
|
691
|
-
const
|
|
691
|
+
const Qt = _e({
|
|
692
692
|
properties: {
|
|
693
693
|
ariaActiveDescendant: null,
|
|
694
694
|
ariaAtomic: W,
|
|
@@ -744,13 +744,13 @@ const Gt = _e({
|
|
|
744
744
|
return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
|
-
function
|
|
747
|
+
function Jt(e, n) {
|
|
748
748
|
return n in e ? e[n] : n;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
return
|
|
750
|
+
function Zt(e, n) {
|
|
751
|
+
return Jt(e, n.toLowerCase());
|
|
752
752
|
}
|
|
753
|
-
const
|
|
753
|
+
const Ci = _e({
|
|
754
754
|
attributes: {
|
|
755
755
|
acceptcharset: "accept-charset",
|
|
756
756
|
classname: "class",
|
|
@@ -1110,8 +1110,8 @@ const Si = _e({
|
|
|
1110
1110
|
unselectable: null
|
|
1111
1111
|
},
|
|
1112
1112
|
space: "html",
|
|
1113
|
-
transform:
|
|
1114
|
-
}),
|
|
1113
|
+
transform: Zt
|
|
1114
|
+
}), Ii = _e({
|
|
1115
1115
|
attributes: {
|
|
1116
1116
|
accentHeight: "accent-height",
|
|
1117
1117
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1669,8 +1669,8 @@ const Si = _e({
|
|
|
1669
1669
|
zoomAndPan: null
|
|
1670
1670
|
},
|
|
1671
1671
|
space: "svg",
|
|
1672
|
-
transform:
|
|
1673
|
-
}),
|
|
1672
|
+
transform: Jt
|
|
1673
|
+
}), er = _e({
|
|
1674
1674
|
properties: {
|
|
1675
1675
|
xLinkActuate: null,
|
|
1676
1676
|
xLinkArcRole: null,
|
|
@@ -1684,18 +1684,18 @@ const Si = _e({
|
|
|
1684
1684
|
transform(e, n) {
|
|
1685
1685
|
return "xlink:" + n.slice(5).toLowerCase();
|
|
1686
1686
|
}
|
|
1687
|
-
}),
|
|
1687
|
+
}), nr = _e({
|
|
1688
1688
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1689
1689
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1690
1690
|
space: "xmlns",
|
|
1691
|
-
transform:
|
|
1692
|
-
}),
|
|
1691
|
+
transform: Zt
|
|
1692
|
+
}), tr = _e({
|
|
1693
1693
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1694
1694
|
space: "xml",
|
|
1695
1695
|
transform(e, n) {
|
|
1696
1696
|
return "xml:" + n.slice(3).toLowerCase();
|
|
1697
1697
|
}
|
|
1698
|
-
}),
|
|
1698
|
+
}), Ei = {
|
|
1699
1699
|
classId: "classID",
|
|
1700
1700
|
dataType: "datatype",
|
|
1701
1701
|
itemId: "itemID",
|
|
@@ -1713,38 +1713,38 @@ const Si = _e({
|
|
|
1713
1713
|
xLinkTitle: "xlinkTitle",
|
|
1714
1714
|
xLinkType: "xlinkType",
|
|
1715
1715
|
xmlnsXLink: "xmlnsXlink"
|
|
1716
|
-
},
|
|
1717
|
-
function
|
|
1716
|
+
}, Ai = /[A-Z]/g, ct = /-[a-z]/g, Pi = /^data[-\w.:]+$/i;
|
|
1717
|
+
function Ti(e, n) {
|
|
1718
1718
|
const t = bn(n);
|
|
1719
1719
|
let r = n, i = J;
|
|
1720
1720
|
if (t in e.normal)
|
|
1721
1721
|
return e.property[e.normal[t]];
|
|
1722
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
1722
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && Pi.test(n)) {
|
|
1723
1723
|
if (n.charAt(4) === "-") {
|
|
1724
|
-
const l = n.slice(5).replace(
|
|
1724
|
+
const l = n.slice(5).replace(ct, zi);
|
|
1725
1725
|
r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
|
1726
1726
|
} else {
|
|
1727
1727
|
const l = n.slice(4);
|
|
1728
|
-
if (!
|
|
1729
|
-
let o = l.replace(
|
|
1728
|
+
if (!ct.test(l)) {
|
|
1729
|
+
let o = l.replace(Ai, Li);
|
|
1730
1730
|
o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
i =
|
|
1733
|
+
i = On;
|
|
1734
1734
|
}
|
|
1735
1735
|
return new i(r, n);
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Li(e) {
|
|
1738
1738
|
return "-" + e.toLowerCase();
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function zi(e) {
|
|
1741
1741
|
return e.charAt(1).toUpperCase();
|
|
1742
1742
|
}
|
|
1743
|
-
const
|
|
1744
|
-
var
|
|
1745
|
-
function
|
|
1746
|
-
if (
|
|
1747
|
-
|
|
1743
|
+
const _i = Kt([Qt, Ci, er, nr, tr], "html"), Bn = Kt([Qt, Ii, er, nr, tr], "svg");
|
|
1744
|
+
var Te = {}, un, ft;
|
|
1745
|
+
function Mi() {
|
|
1746
|
+
if (ft) return un;
|
|
1747
|
+
ft = 1;
|
|
1748
1748
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
|
1749
1749
|
`, u = "/", c = "*", f = "", d = "comment", p = "declaration";
|
|
1750
1750
|
function b(E, k) {
|
|
@@ -1756,8 +1756,8 @@ function _i() {
|
|
|
1756
1756
|
function B(T) {
|
|
1757
1757
|
var C = T.match(n);
|
|
1758
1758
|
C && (z += C.length);
|
|
1759
|
-
var
|
|
1760
|
-
I = ~
|
|
1759
|
+
var O = T.lastIndexOf(s);
|
|
1760
|
+
I = ~O ? T.length - O : I + T.length;
|
|
1761
1761
|
}
|
|
1762
1762
|
function j() {
|
|
1763
1763
|
var T = { line: z, column: I };
|
|
@@ -1778,14 +1778,14 @@ function _i() {
|
|
|
1778
1778
|
function $(T) {
|
|
1779
1779
|
var C = T.exec(E);
|
|
1780
1780
|
if (C) {
|
|
1781
|
-
var
|
|
1782
|
-
return B(
|
|
1781
|
+
var O = C[0];
|
|
1782
|
+
return B(O), E = E.slice(O.length), C;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
function D() {
|
|
1786
1786
|
$(t);
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function F(T) {
|
|
1789
1789
|
var C;
|
|
1790
1790
|
for (T = T || []; C = P(); )
|
|
1791
1791
|
C !== !1 && T.push(C);
|
|
@@ -1798,10 +1798,10 @@ function _i() {
|
|
|
1798
1798
|
++C;
|
|
1799
1799
|
if (C += 2, f === E.charAt(C - 1))
|
|
1800
1800
|
return R("End of comment missing");
|
|
1801
|
-
var
|
|
1802
|
-
return I += 2, B(
|
|
1801
|
+
var O = E.slice(2, C - 2);
|
|
1802
|
+
return I += 2, B(O), E = E.slice(C), I += 2, T({
|
|
1803
1803
|
type: d,
|
|
1804
|
-
comment:
|
|
1804
|
+
comment: O
|
|
1805
1805
|
});
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
@@ -1809,19 +1809,19 @@ function _i() {
|
|
|
1809
1809
|
var T = j(), C = $(r);
|
|
1810
1810
|
if (C) {
|
|
1811
1811
|
if (P(), !$(i)) return R("property missing ':'");
|
|
1812
|
-
var
|
|
1812
|
+
var O = $(l), X = T({
|
|
1813
1813
|
type: p,
|
|
1814
1814
|
property: S(C[0].replace(e, f)),
|
|
1815
|
-
value:
|
|
1815
|
+
value: O ? S(O[0].replace(e, f)) : f
|
|
1816
1816
|
});
|
|
1817
1817
|
return $(o), X;
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
function H() {
|
|
1821
1821
|
var T = [];
|
|
1822
|
-
|
|
1822
|
+
F(T);
|
|
1823
1823
|
for (var C; C = A(); )
|
|
1824
|
-
C !== !1 && (T.push(C),
|
|
1824
|
+
C !== !1 && (T.push(C), F(T));
|
|
1825
1825
|
return T;
|
|
1826
1826
|
}
|
|
1827
1827
|
return D(), H();
|
|
@@ -1831,15 +1831,15 @@ function _i() {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
return un = b, un;
|
|
1833
1833
|
}
|
|
1834
|
-
var
|
|
1835
|
-
function
|
|
1836
|
-
if (
|
|
1837
|
-
|
|
1838
|
-
var e =
|
|
1834
|
+
var pt;
|
|
1835
|
+
function Ni() {
|
|
1836
|
+
if (pt) return Te;
|
|
1837
|
+
pt = 1;
|
|
1838
|
+
var e = Te && Te.__importDefault || function(r) {
|
|
1839
1839
|
return r && r.__esModule ? r : { default: r };
|
|
1840
1840
|
};
|
|
1841
|
-
Object.defineProperty(
|
|
1842
|
-
const n = e(/* @__PURE__ */
|
|
1841
|
+
Object.defineProperty(Te, "__esModule", { value: !0 }), Te.default = t;
|
|
1842
|
+
const n = e(/* @__PURE__ */ Mi());
|
|
1843
1843
|
function t(r, i) {
|
|
1844
1844
|
let l = null;
|
|
1845
1845
|
if (!r || typeof r != "string")
|
|
@@ -1852,12 +1852,12 @@ function Mi() {
|
|
|
1852
1852
|
a ? i(u, c, s) : c && (l = l || {}, l[u] = c);
|
|
1853
1853
|
}), l;
|
|
1854
1854
|
}
|
|
1855
|
-
return
|
|
1855
|
+
return Te;
|
|
1856
1856
|
}
|
|
1857
|
-
var
|
|
1858
|
-
function
|
|
1859
|
-
if (
|
|
1860
|
-
|
|
1857
|
+
var Oe = {}, ht;
|
|
1858
|
+
function Ri() {
|
|
1859
|
+
if (ht) return Oe;
|
|
1860
|
+
ht = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.camelCase = void 0;
|
|
1861
1861
|
var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, l = function(u) {
|
|
1862
1862
|
return !u || t.test(u) || e.test(u);
|
|
1863
1863
|
}, o = function(u, c) {
|
|
@@ -1867,15 +1867,15 @@ function Ni() {
|
|
|
1867
1867
|
}, s = function(u, c) {
|
|
1868
1868
|
return c === void 0 && (c = {}), l(u) ? u : (u = u.toLowerCase(), c.reactCompat ? u = u.replace(i, a) : u = u.replace(r, a), u.replace(n, o));
|
|
1869
1869
|
};
|
|
1870
|
-
return
|
|
1870
|
+
return Oe.camelCase = s, Oe;
|
|
1871
1871
|
}
|
|
1872
|
-
var Be,
|
|
1873
|
-
function
|
|
1874
|
-
if (
|
|
1875
|
-
|
|
1872
|
+
var Be, mt;
|
|
1873
|
+
function vi() {
|
|
1874
|
+
if (mt) return Be;
|
|
1875
|
+
mt = 1;
|
|
1876
1876
|
var e = Be && Be.__importDefault || function(i) {
|
|
1877
1877
|
return i && i.__esModule ? i : { default: i };
|
|
1878
|
-
}, n = e(/* @__PURE__ */
|
|
1878
|
+
}, n = e(/* @__PURE__ */ Ni()), t = /* @__PURE__ */ Ri();
|
|
1879
1879
|
function r(i, l) {
|
|
1880
1880
|
var o = {};
|
|
1881
1881
|
return !i || typeof i != "string" || (0, n.default)(i, function(a, s) {
|
|
@@ -1884,9 +1884,9 @@ function Ri() {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
return r.default = r, Be = r, Be;
|
|
1886
1886
|
}
|
|
1887
|
-
var
|
|
1888
|
-
const
|
|
1889
|
-
function
|
|
1887
|
+
var Di = /* @__PURE__ */ vi();
|
|
1888
|
+
const Fi = /* @__PURE__ */ $t(Di), rr = ir("end"), Un = ir("start");
|
|
1889
|
+
function ir(e) {
|
|
1890
1890
|
return n;
|
|
1891
1891
|
function n(t) {
|
|
1892
1892
|
const r = t && t.position && t.position[e] || {};
|
|
@@ -1899,20 +1899,20 @@ function tr(e) {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
function Oi(e) {
|
|
1902
|
-
const n =
|
|
1902
|
+
const n = Un(e), t = rr(e);
|
|
1903
1903
|
if (n && t)
|
|
1904
1904
|
return { start: n, end: t };
|
|
1905
1905
|
}
|
|
1906
1906
|
function Ve(e) {
|
|
1907
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
1907
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? dt(e.position) : "start" in e || "end" in e ? dt(e) : "line" in e || "column" in e ? Cn(e) : "";
|
|
1908
1908
|
}
|
|
1909
1909
|
function Cn(e) {
|
|
1910
|
-
return
|
|
1910
|
+
return gt(e && e.line) + ":" + gt(e && e.column);
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function dt(e) {
|
|
1913
1913
|
return Cn(e && e.start) + "-" + Cn(e && e.end);
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function gt(e) {
|
|
1916
1916
|
return e && typeof e == "number" ? e : 1;
|
|
1917
1917
|
}
|
|
1918
1918
|
class G extends Error {
|
|
@@ -2002,8 +2002,8 @@ G.prototype.fatal = void 0;
|
|
|
2002
2002
|
G.prototype.place = void 0;
|
|
2003
2003
|
G.prototype.ruleId = void 0;
|
|
2004
2004
|
G.prototype.source = void 0;
|
|
2005
|
-
const
|
|
2006
|
-
function
|
|
2005
|
+
const jn = {}.hasOwnProperty, Bi = /* @__PURE__ */ new Map(), Ui = /[A-Z]/g, ji = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), $i = /* @__PURE__ */ new Set(["td", "th"]), lr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
2006
|
+
function Hi(e, n) {
|
|
2007
2007
|
if (!n || n.Fragment === void 0)
|
|
2008
2008
|
throw new TypeError("Expected `Fragment` in options");
|
|
2009
2009
|
const t = n.filePath || void 0;
|
|
@@ -2013,13 +2013,13 @@ function $i(e, n) {
|
|
|
2013
2013
|
throw new TypeError(
|
|
2014
2014
|
"Expected `jsxDEV` in options when `development: true`"
|
|
2015
2015
|
);
|
|
2016
|
-
r =
|
|
2016
|
+
r = Qi(t, n.jsxDEV);
|
|
2017
2017
|
} else {
|
|
2018
2018
|
if (typeof n.jsx != "function")
|
|
2019
2019
|
throw new TypeError("Expected `jsx` in production options");
|
|
2020
2020
|
if (typeof n.jsxs != "function")
|
|
2021
2021
|
throw new TypeError("Expected `jsxs` in production options");
|
|
2022
|
-
r =
|
|
2022
|
+
r = Ki(t, n.jsx, n.jsxs);
|
|
2023
2023
|
}
|
|
2024
2024
|
const i = {
|
|
2025
2025
|
Fragment: n.Fragment,
|
|
@@ -2032,10 +2032,10 @@ function $i(e, n) {
|
|
|
2032
2032
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
|
2033
2033
|
passKeys: n.passKeys !== !1,
|
|
2034
2034
|
passNode: n.passNode || !1,
|
|
2035
|
-
schema: n.space === "svg" ?
|
|
2035
|
+
schema: n.space === "svg" ? Bn : _i,
|
|
2036
2036
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
2037
2037
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
2038
|
-
}, l =
|
|
2038
|
+
}, l = or(i, e, void 0);
|
|
2039
2039
|
return l && typeof l != "string" ? l : i.create(
|
|
2040
2040
|
e,
|
|
2041
2041
|
i.Fragment,
|
|
@@ -2043,31 +2043,31 @@ function $i(e, n) {
|
|
|
2043
2043
|
void 0
|
|
2044
2044
|
);
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function or(e, n, t) {
|
|
2047
2047
|
if (n.type === "element")
|
|
2048
|
-
return
|
|
2048
|
+
return Vi(e, n, t);
|
|
2049
2049
|
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
|
2050
|
-
return
|
|
2050
|
+
return qi(e, n);
|
|
2051
2051
|
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
|
|
2052
|
-
return
|
|
2052
|
+
return Xi(e, n, t);
|
|
2053
2053
|
if (n.type === "mdxjsEsm")
|
|
2054
|
-
return
|
|
2054
|
+
return Wi(e, n);
|
|
2055
2055
|
if (n.type === "root")
|
|
2056
|
-
return
|
|
2056
|
+
return Yi(e, n, t);
|
|
2057
2057
|
if (n.type === "text")
|
|
2058
|
-
return
|
|
2058
|
+
return Gi(e, n);
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function Vi(e, n, t) {
|
|
2061
2061
|
const r = e.schema;
|
|
2062
2062
|
let i = r;
|
|
2063
|
-
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
2064
|
-
const l =
|
|
2065
|
-
let a =
|
|
2066
|
-
return
|
|
2067
|
-
return typeof s == "string" ? !
|
|
2068
|
-
})),
|
|
2069
|
-
}
|
|
2070
|
-
function
|
|
2063
|
+
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Bn, e.schema = i), e.ancestors.push(n);
|
|
2064
|
+
const l = ur(e, n.tagName, !1), o = Ji(e, n);
|
|
2065
|
+
let a = Hn(e, n);
|
|
2066
|
+
return ji.has(n.tagName) && (a = a.filter(function(s) {
|
|
2067
|
+
return typeof s == "string" ? !wi(s) : !0;
|
|
2068
|
+
})), ar(e, o, l, n), $n(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
|
2069
|
+
}
|
|
2070
|
+
function qi(e, n) {
|
|
2071
2071
|
if (n.data && n.data.estree && e.evaluater) {
|
|
2072
2072
|
const r = n.data.estree.body[0];
|
|
2073
2073
|
return (
|
|
@@ -2077,7 +2077,7 @@ function Vi(e, n) {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
We(e, n.position);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function Wi(e, n) {
|
|
2081
2081
|
if (n.data && n.data.estree && e.evaluater)
|
|
2082
2082
|
return (
|
|
2083
2083
|
/** @type {Child | undefined} */
|
|
@@ -2085,40 +2085,40 @@ function qi(e, n) {
|
|
|
2085
2085
|
);
|
|
2086
2086
|
We(e, n.position);
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function Xi(e, n, t) {
|
|
2089
2089
|
const r = e.schema;
|
|
2090
2090
|
let i = r;
|
|
2091
|
-
n.name === "svg" && r.space === "html" && (i =
|
|
2092
|
-
const l = n.name === null ? e.Fragment :
|
|
2093
|
-
return
|
|
2091
|
+
n.name === "svg" && r.space === "html" && (i = Bn, e.schema = i), e.ancestors.push(n);
|
|
2092
|
+
const l = n.name === null ? e.Fragment : ur(e, n.name, !0), o = Zi(e, n), a = Hn(e, n);
|
|
2093
|
+
return ar(e, o, l, n), $n(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function Yi(e, n, t) {
|
|
2096
2096
|
const r = {};
|
|
2097
|
-
return
|
|
2097
|
+
return $n(r, Hn(e, n)), e.create(n, e.Fragment, r, t);
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2099
|
+
function Gi(e, n) {
|
|
2100
2100
|
return n.value;
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function ar(e, n, t, r) {
|
|
2103
2103
|
typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function $n(e, n) {
|
|
2106
2106
|
if (n.length > 0) {
|
|
2107
2107
|
const t = n.length > 1 ? n : n[0];
|
|
2108
2108
|
t && (e.children = t);
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function Ki(e, n, t) {
|
|
2112
2112
|
return r;
|
|
2113
2113
|
function r(i, l, o, a) {
|
|
2114
2114
|
const u = Array.isArray(o.children) ? t : n;
|
|
2115
2115
|
return a ? u(l, o, a) : u(l, o);
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function Qi(e, n) {
|
|
2119
2119
|
return t;
|
|
2120
2120
|
function t(r, i, l, o) {
|
|
2121
|
-
const a = Array.isArray(l.children), s =
|
|
2121
|
+
const a = Array.isArray(l.children), s = Un(r);
|
|
2122
2122
|
return n(
|
|
2123
2123
|
i,
|
|
2124
2124
|
l,
|
|
@@ -2133,15 +2133,15 @@ function Ki(e, n) {
|
|
|
2133
2133
|
);
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function Ji(e, n) {
|
|
2137
2137
|
const t = {};
|
|
2138
2138
|
let r, i;
|
|
2139
2139
|
for (i in n.properties)
|
|
2140
|
-
if (i !== "children" &&
|
|
2141
|
-
const l =
|
|
2140
|
+
if (i !== "children" && jn.call(n.properties, i)) {
|
|
2141
|
+
const l = el(e, i, n.properties[i]);
|
|
2142
2142
|
if (l) {
|
|
2143
2143
|
const [o, a] = l;
|
|
2144
|
-
e.tableCellAlignToStyle && o === "align" && typeof a == "string" &&
|
|
2144
|
+
e.tableCellAlignToStyle && o === "align" && typeof a == "string" && $i.has(n.tagName) ? r = a : t[o] = a;
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
if (r) {
|
|
@@ -2153,7 +2153,7 @@ function Qi(e, n) {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
return t;
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function Zi(e, n) {
|
|
2157
2157
|
const t = {};
|
|
2158
2158
|
for (const r of n.attributes)
|
|
2159
2159
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -2181,10 +2181,10 @@ function Ji(e, n) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
return t;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function Hn(e, n) {
|
|
2185
2185
|
const t = [];
|
|
2186
2186
|
let r = -1;
|
|
2187
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
2187
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Bi;
|
|
2188
2188
|
for (; ++r < n.children.length; ) {
|
|
2189
2189
|
const l = n.children[r];
|
|
2190
2190
|
let o;
|
|
@@ -2195,27 +2195,27 @@ function jn(e, n) {
|
|
|
2195
2195
|
o = s + "-" + u, i.set(s, u + 1);
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
|
-
const a =
|
|
2198
|
+
const a = or(e, l, o);
|
|
2199
2199
|
a !== void 0 && t.push(a);
|
|
2200
2200
|
}
|
|
2201
2201
|
return t;
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2204
|
-
const r =
|
|
2203
|
+
function el(e, n, t) {
|
|
2204
|
+
const r = Ti(e.schema, n);
|
|
2205
2205
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
2206
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
|
2207
|
-
let i = typeof t == "object" ? t :
|
|
2208
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
2206
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? gi(t) : Zr(t)), r.property === "style") {
|
|
2207
|
+
let i = typeof t == "object" ? t : nl(e, String(t));
|
|
2208
|
+
return e.stylePropertyNameCase === "css" && (i = tl(i)), ["style", i];
|
|
2209
2209
|
}
|
|
2210
2210
|
return [
|
|
2211
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
2211
|
+
e.elementAttributeNameCase === "react" && r.space ? Ei[r.property] || r.property : r.attribute,
|
|
2212
2212
|
t
|
|
2213
2213
|
];
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function nl(e, n) {
|
|
2217
2217
|
try {
|
|
2218
|
-
return
|
|
2218
|
+
return Fi(n, { reactCompat: !0 });
|
|
2219
2219
|
} catch (t) {
|
|
2220
2220
|
if (e.ignoreInvalidStyle)
|
|
2221
2221
|
return {};
|
|
@@ -2228,10 +2228,10 @@ function el(e, n) {
|
|
|
2228
2228
|
ruleId: "style",
|
|
2229
2229
|
source: "hast-util-to-jsx-runtime"
|
|
2230
2230
|
});
|
|
2231
|
-
throw i.file = e.filePath || void 0, i.url =
|
|
2231
|
+
throw i.file = e.filePath || void 0, i.url = lr + "#cannot-parse-style-attribute", i;
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
function
|
|
2234
|
+
function ur(e, n, t) {
|
|
2235
2235
|
let r;
|
|
2236
2236
|
if (!t)
|
|
2237
2237
|
r = { type: "Literal", value: n };
|
|
@@ -2239,7 +2239,7 @@ function or(e, n, t) {
|
|
|
2239
2239
|
const i = n.split(".");
|
|
2240
2240
|
let l = -1, o;
|
|
2241
2241
|
for (; ++l < i.length; ) {
|
|
2242
|
-
const a =
|
|
2242
|
+
const a = at(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
|
|
2243
2243
|
o = o ? {
|
|
2244
2244
|
type: "MemberExpression",
|
|
2245
2245
|
object: o,
|
|
@@ -2250,13 +2250,13 @@ function or(e, n, t) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
r = o;
|
|
2252
2252
|
} else
|
|
2253
|
-
r =
|
|
2253
|
+
r = at(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
|
|
2254
2254
|
if (r.type === "Literal") {
|
|
2255
2255
|
const i = (
|
|
2256
2256
|
/** @type {string | number} */
|
|
2257
2257
|
r.value
|
|
2258
2258
|
);
|
|
2259
|
-
return
|
|
2259
|
+
return jn.call(e.components, i) ? e.components[i] : i;
|
|
2260
2260
|
}
|
|
2261
2261
|
if (e.evaluater)
|
|
2262
2262
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -2272,63 +2272,63 @@ function We(e, n) {
|
|
|
2272
2272
|
source: "hast-util-to-jsx-runtime"
|
|
2273
2273
|
}
|
|
2274
2274
|
);
|
|
2275
|
-
throw t.file = e.filePath || void 0, t.url =
|
|
2275
|
+
throw t.file = e.filePath || void 0, t.url = lr + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function tl(e) {
|
|
2278
2278
|
const n = {};
|
|
2279
2279
|
let t;
|
|
2280
2280
|
for (t in e)
|
|
2281
|
-
|
|
2281
|
+
jn.call(e, t) && (n[rl(t)] = e[t]);
|
|
2282
2282
|
return n;
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2285
|
-
let n = e.replace(
|
|
2284
|
+
function rl(e) {
|
|
2285
|
+
let n = e.replace(Ui, il);
|
|
2286
2286
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function il(e) {
|
|
2289
2289
|
return "-" + e.toLowerCase();
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function ll(e) {
|
|
2292
2292
|
const n = (
|
|
2293
2293
|
/** @type {Processor} */
|
|
2294
2294
|
this
|
|
2295
2295
|
);
|
|
2296
2296
|
n.compiler = t;
|
|
2297
2297
|
function t(r, i) {
|
|
2298
|
-
return
|
|
2298
|
+
return Hi(r, { filePath: i.path, ...e });
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
|
-
const
|
|
2302
|
-
function
|
|
2303
|
-
const t =
|
|
2304
|
-
return
|
|
2301
|
+
const ol = {};
|
|
2302
|
+
function al(e, n) {
|
|
2303
|
+
const t = ol, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
2304
|
+
return sr(e, r, i);
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2307
|
-
if (
|
|
2306
|
+
function sr(e, n, t) {
|
|
2307
|
+
if (ul(e)) {
|
|
2308
2308
|
if ("value" in e)
|
|
2309
2309
|
return e.type === "html" && !t ? "" : e.value;
|
|
2310
2310
|
if (n && "alt" in e && e.alt)
|
|
2311
2311
|
return e.alt;
|
|
2312
2312
|
if ("children" in e)
|
|
2313
|
-
return
|
|
2313
|
+
return yt(e.children, n, t);
|
|
2314
2314
|
}
|
|
2315
|
-
return Array.isArray(e) ?
|
|
2315
|
+
return Array.isArray(e) ? yt(e, n, t) : "";
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function yt(e, n, t) {
|
|
2318
2318
|
const r = [];
|
|
2319
2319
|
let i = -1;
|
|
2320
2320
|
for (; ++i < e.length; )
|
|
2321
|
-
r[i] =
|
|
2321
|
+
r[i] = sr(e[i], n, t);
|
|
2322
2322
|
return r.join("");
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function ul(e) {
|
|
2325
2325
|
return !!(e && typeof e == "object");
|
|
2326
2326
|
}
|
|
2327
|
-
const
|
|
2328
|
-
function
|
|
2327
|
+
const kt = document.createElement("i");
|
|
2328
|
+
function Vn(e) {
|
|
2329
2329
|
const n = "&" + e + ";";
|
|
2330
|
-
|
|
2331
|
-
const t =
|
|
2330
|
+
kt.innerHTML = n;
|
|
2331
|
+
const t = kt.textContent;
|
|
2332
2332
|
return (
|
|
2333
2333
|
// @ts-expect-error: TypeScript is wrong that `textContent` on elements can
|
|
2334
2334
|
// yield `null`.
|
|
@@ -2347,24 +2347,24 @@ function se(e, n, t, r) {
|
|
|
2347
2347
|
function te(e, n) {
|
|
2348
2348
|
return e.length > 0 ? (se(e, e.length, 0, n), e) : n;
|
|
2349
2349
|
}
|
|
2350
|
-
const
|
|
2351
|
-
function
|
|
2350
|
+
const xt = {}.hasOwnProperty;
|
|
2351
|
+
function sl(e) {
|
|
2352
2352
|
const n = {};
|
|
2353
2353
|
let t = -1;
|
|
2354
2354
|
for (; ++t < e.length; )
|
|
2355
|
-
|
|
2355
|
+
cl(n, e[t]);
|
|
2356
2356
|
return n;
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function cl(e, n) {
|
|
2359
2359
|
let t;
|
|
2360
2360
|
for (t in n) {
|
|
2361
|
-
const i = (
|
|
2361
|
+
const i = (xt.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
|
|
2362
2362
|
let o;
|
|
2363
2363
|
if (l)
|
|
2364
2364
|
for (o in l) {
|
|
2365
|
-
|
|
2365
|
+
xt.call(i, o) || (i[o] = []);
|
|
2366
2366
|
const a = l[o];
|
|
2367
|
-
|
|
2367
|
+
fl(
|
|
2368
2368
|
// @ts-expect-error Looks like a list.
|
|
2369
2369
|
i[o],
|
|
2370
2370
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -2372,14 +2372,14 @@ function sl(e, n) {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2375
|
+
function fl(e, n) {
|
|
2376
2376
|
let t = -1;
|
|
2377
2377
|
const r = [];
|
|
2378
2378
|
for (; ++t < n.length; )
|
|
2379
2379
|
(n[t].add === "after" ? e : r).push(n[t]);
|
|
2380
2380
|
se(e, 0, 0, r);
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function cr(e, n) {
|
|
2383
2383
|
const t = Number.parseInt(e, n);
|
|
2384
2384
|
return (
|
|
2385
2385
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -2395,7 +2395,7 @@ function ur(e, n) {
|
|
|
2395
2395
|
function ze(e) {
|
|
2396
2396
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2397
2397
|
}
|
|
2398
|
-
const ue =
|
|
2398
|
+
const ue = ye(/[A-Za-z]/), ne = ye(/[\dA-Za-z]/), pl = ye(/[#-'*+\--9=?A-Z^-~]/);
|
|
2399
2399
|
function In(e) {
|
|
2400
2400
|
return (
|
|
2401
2401
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2403,7 +2403,7 @@ function In(e) {
|
|
|
2403
2403
|
e !== null && (e < 32 || e === 127)
|
|
2404
2404
|
);
|
|
2405
2405
|
}
|
|
2406
|
-
const En =
|
|
2406
|
+
const En = ye(/\d/), hl = ye(/[\dA-Fa-f]/), ml = ye(/[!-/:-@[-`{-~]/);
|
|
2407
2407
|
function L(e) {
|
|
2408
2408
|
return e !== null && e < -2;
|
|
2409
2409
|
}
|
|
@@ -2413,8 +2413,8 @@ function Q(e) {
|
|
|
2413
2413
|
function v(e) {
|
|
2414
2414
|
return e === -2 || e === -1 || e === 32;
|
|
2415
2415
|
}
|
|
2416
|
-
const
|
|
2417
|
-
function
|
|
2416
|
+
const dl = ye(new RegExp("\\p{P}|\\p{S}", "u")), gl = ye(/\s/);
|
|
2417
|
+
function ye(e) {
|
|
2418
2418
|
return n;
|
|
2419
2419
|
function n(t) {
|
|
2420
2420
|
return t !== null && t > -1 && e.test(String.fromCharCode(t));
|
|
@@ -2450,10 +2450,10 @@ function q(e, n, t, r) {
|
|
|
2450
2450
|
return v(s) && l++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
|
-
const
|
|
2454
|
-
tokenize:
|
|
2453
|
+
const yl = {
|
|
2454
|
+
tokenize: kl
|
|
2455
2455
|
};
|
|
2456
|
-
function
|
|
2456
|
+
function kl(e) {
|
|
2457
2457
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
2458
2458
|
let t;
|
|
2459
2459
|
return n;
|
|
@@ -2482,12 +2482,12 @@ function yl(e) {
|
|
|
2482
2482
|
return L(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
|
-
const
|
|
2486
|
-
tokenize: xl
|
|
2487
|
-
}, kt = {
|
|
2485
|
+
const xl = {
|
|
2488
2486
|
tokenize: bl
|
|
2487
|
+
}, bt = {
|
|
2488
|
+
tokenize: wl
|
|
2489
2489
|
};
|
|
2490
|
-
function
|
|
2490
|
+
function bl(e) {
|
|
2491
2491
|
const n = this, t = [];
|
|
2492
2492
|
let r = 0, i, l, o;
|
|
2493
2493
|
return a;
|
|
@@ -2526,7 +2526,7 @@ function xl(e) {
|
|
|
2526
2526
|
return b(I);
|
|
2527
2527
|
n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
2528
2528
|
}
|
|
2529
|
-
return n.containerState = {}, e.check(
|
|
2529
|
+
return n.containerState = {}, e.check(bt, c, f)(I);
|
|
2530
2530
|
}
|
|
2531
2531
|
function c(I) {
|
|
2532
2532
|
return i && z(), k(r), d(I);
|
|
@@ -2535,7 +2535,7 @@ function xl(e) {
|
|
|
2535
2535
|
return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, b(I);
|
|
2536
2536
|
}
|
|
2537
2537
|
function d(I) {
|
|
2538
|
-
return n.containerState = {}, e.attempt(
|
|
2538
|
+
return n.containerState = {}, e.attempt(bt, p, b)(I);
|
|
2539
2539
|
}
|
|
2540
2540
|
function p(I) {
|
|
2541
2541
|
return r++, t.push([n.currentConstruct, n.containerState]), d(I);
|
|
@@ -2571,18 +2571,18 @@ function xl(e) {
|
|
|
2571
2571
|
)
|
|
2572
2572
|
return;
|
|
2573
2573
|
const R = n.events.length;
|
|
2574
|
-
let $ = R, D,
|
|
2574
|
+
let $ = R, D, F;
|
|
2575
2575
|
for (; $--; )
|
|
2576
2576
|
if (n.events[$][0] === "exit" && n.events[$][1].type === "chunkFlow") {
|
|
2577
2577
|
if (D) {
|
|
2578
|
-
|
|
2578
|
+
F = n.events[$][1].end;
|
|
2579
2579
|
break;
|
|
2580
2580
|
}
|
|
2581
2581
|
D = !0;
|
|
2582
2582
|
}
|
|
2583
2583
|
for (k(r), y = R; y < n.events.length; )
|
|
2584
2584
|
n.events[y][1].end = {
|
|
2585
|
-
...
|
|
2585
|
+
...F
|
|
2586
2586
|
}, y++;
|
|
2587
2587
|
se(n.events, $ + 1, 0, n.events.slice(R)), n.events.length = y;
|
|
2588
2588
|
}
|
|
@@ -2599,16 +2599,16 @@ function xl(e) {
|
|
|
2599
2599
|
i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function wl(e, n, t) {
|
|
2603
2603
|
return q(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2604
2604
|
}
|
|
2605
|
-
function
|
|
2606
|
-
if (e === null || Q(e) ||
|
|
2605
|
+
function wt(e) {
|
|
2606
|
+
if (e === null || Q(e) || gl(e))
|
|
2607
2607
|
return 1;
|
|
2608
|
-
if (
|
|
2608
|
+
if (dl(e))
|
|
2609
2609
|
return 2;
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function qn(e, n, t) {
|
|
2612
2612
|
const r = [];
|
|
2613
2613
|
let i = -1;
|
|
2614
2614
|
for (; ++i < e.length; ) {
|
|
@@ -2619,10 +2619,10 @@ function Hn(e, n, t) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
const An = {
|
|
2621
2621
|
name: "attention",
|
|
2622
|
-
resolveAll:
|
|
2623
|
-
tokenize:
|
|
2622
|
+
resolveAll: Sl,
|
|
2623
|
+
tokenize: Cl
|
|
2624
2624
|
};
|
|
2625
|
-
function
|
|
2625
|
+
function Sl(e, n) {
|
|
2626
2626
|
let t = -1, r, i, l, o, a, s, u, c;
|
|
2627
2627
|
for (; ++t < e.length; )
|
|
2628
2628
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
|
@@ -2637,7 +2637,7 @@ function wl(e, n) {
|
|
|
2637
2637
|
}, d = {
|
|
2638
2638
|
...e[t][1].start
|
|
2639
2639
|
};
|
|
2640
|
-
|
|
2640
|
+
St(f, -s), St(d, s), o = {
|
|
2641
2641
|
type: s > 1 ? "strongSequence" : "emphasisSequence",
|
|
2642
2642
|
start: f,
|
|
2643
2643
|
end: {
|
|
@@ -2669,7 +2669,7 @@ function wl(e, n) {
|
|
|
2669
2669
|
...o.start
|
|
2670
2670
|
}, e[t][1].start = {
|
|
2671
2671
|
...a.end
|
|
2672
|
-
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = te(u, [["enter", e[r][1], n], ["exit", e[r][1], n]])), u = te(u, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), u = te(u,
|
|
2672
|
+
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = te(u, [["enter", e[r][1], n], ["exit", e[r][1], n]])), u = te(u, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), u = te(u, qn(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), u = te(u, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (c = 2, u = te(u, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : c = 0, se(e, r - 1, t - r + 3, u), t = r + u.length - c - 2;
|
|
2673
2673
|
break;
|
|
2674
2674
|
}
|
|
2675
2675
|
}
|
|
@@ -2677,8 +2677,8 @@ function wl(e, n) {
|
|
|
2677
2677
|
e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
|
|
2678
2678
|
return e;
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2681
|
-
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i =
|
|
2680
|
+
function Cl(e, n) {
|
|
2681
|
+
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = wt(r);
|
|
2682
2682
|
let l;
|
|
2683
2683
|
return o;
|
|
2684
2684
|
function o(s) {
|
|
@@ -2687,18 +2687,18 @@ function Sl(e, n) {
|
|
|
2687
2687
|
function a(s) {
|
|
2688
2688
|
if (s === l)
|
|
2689
2689
|
return e.consume(s), a;
|
|
2690
|
-
const u = e.exit("attentionSequence"), c =
|
|
2690
|
+
const u = e.exit("attentionSequence"), c = wt(s), f = !c || c === 2 && i || t.includes(s), d = !i || i === 2 && c || t.includes(r);
|
|
2691
2691
|
return u._open = !!(l === 42 ? f : f && (i || !d)), u._close = !!(l === 42 ? d : d && (c || !f)), n(s);
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2694
|
+
function St(e, n) {
|
|
2695
2695
|
e.column += n, e.offset += n, e._bufferIndex += n;
|
|
2696
2696
|
}
|
|
2697
|
-
const
|
|
2697
|
+
const Il = {
|
|
2698
2698
|
name: "autolink",
|
|
2699
|
-
tokenize:
|
|
2699
|
+
tokenize: El
|
|
2700
2700
|
};
|
|
2701
|
-
function
|
|
2701
|
+
function El(e, n, t) {
|
|
2702
2702
|
let r = 0;
|
|
2703
2703
|
return i;
|
|
2704
2704
|
function i(p) {
|
|
@@ -2717,7 +2717,7 @@ function Il(e, n, t) {
|
|
|
2717
2717
|
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 || In(p) ? t(p) : (e.consume(p), s);
|
|
2718
2718
|
}
|
|
2719
2719
|
function u(p) {
|
|
2720
|
-
return p === 64 ? (e.consume(p), c) :
|
|
2720
|
+
return p === 64 ? (e.consume(p), c) : pl(p) ? (e.consume(p), u) : t(p);
|
|
2721
2721
|
}
|
|
2722
2722
|
function c(p) {
|
|
2723
2723
|
return ne(p) ? f(p) : t(p);
|
|
@@ -2735,9 +2735,9 @@ function Il(e, n, t) {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
const rn = {
|
|
2737
2737
|
partial: !0,
|
|
2738
|
-
tokenize:
|
|
2738
|
+
tokenize: Al
|
|
2739
2739
|
};
|
|
2740
|
-
function
|
|
2740
|
+
function Al(e, n, t) {
|
|
2741
2741
|
return r;
|
|
2742
2742
|
function r(l) {
|
|
2743
2743
|
return v(l) ? q(e, i, "linePrefix")(l) : i(l);
|
|
@@ -2746,15 +2746,15 @@ function El(e, n, t) {
|
|
|
2746
2746
|
return l === null || L(l) ? n(l) : t(l);
|
|
2747
2747
|
}
|
|
2748
2748
|
}
|
|
2749
|
-
const
|
|
2749
|
+
const fr = {
|
|
2750
2750
|
continuation: {
|
|
2751
|
-
tokenize:
|
|
2751
|
+
tokenize: Tl
|
|
2752
2752
|
},
|
|
2753
|
-
exit:
|
|
2753
|
+
exit: Ll,
|
|
2754
2754
|
name: "blockQuote",
|
|
2755
|
-
tokenize:
|
|
2755
|
+
tokenize: Pl
|
|
2756
2756
|
};
|
|
2757
|
-
function
|
|
2757
|
+
function Pl(e, n, t) {
|
|
2758
2758
|
const r = this;
|
|
2759
2759
|
return i;
|
|
2760
2760
|
function i(o) {
|
|
@@ -2770,37 +2770,37 @@ function Al(e, n, t) {
|
|
|
2770
2770
|
return v(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function Tl(e, n, t) {
|
|
2774
2774
|
const r = this;
|
|
2775
2775
|
return i;
|
|
2776
2776
|
function i(o) {
|
|
2777
2777
|
return v(o) ? q(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
|
|
2778
2778
|
}
|
|
2779
2779
|
function l(o) {
|
|
2780
|
-
return e.attempt(
|
|
2780
|
+
return e.attempt(fr, n, t)(o);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
|
-
function
|
|
2783
|
+
function Ll(e) {
|
|
2784
2784
|
e.exit("blockQuote");
|
|
2785
2785
|
}
|
|
2786
|
-
const
|
|
2786
|
+
const pr = {
|
|
2787
2787
|
name: "characterEscape",
|
|
2788
|
-
tokenize:
|
|
2788
|
+
tokenize: zl
|
|
2789
2789
|
};
|
|
2790
|
-
function
|
|
2790
|
+
function zl(e, n, t) {
|
|
2791
2791
|
return r;
|
|
2792
2792
|
function r(l) {
|
|
2793
2793
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
|
|
2794
2794
|
}
|
|
2795
2795
|
function i(l) {
|
|
2796
|
-
return
|
|
2796
|
+
return ml(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
|
-
const
|
|
2799
|
+
const hr = {
|
|
2800
2800
|
name: "characterReference",
|
|
2801
|
-
tokenize:
|
|
2801
|
+
tokenize: _l
|
|
2802
2802
|
};
|
|
2803
|
-
function
|
|
2803
|
+
function _l(e, n, t) {
|
|
2804
2804
|
const r = this;
|
|
2805
2805
|
let i = 0, l, o;
|
|
2806
2806
|
return a;
|
|
@@ -2811,25 +2811,25 @@ function zl(e, n, t) {
|
|
|
2811
2811
|
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), l = 31, o = ne, c(f));
|
|
2812
2812
|
}
|
|
2813
2813
|
function u(f) {
|
|
2814
|
-
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o =
|
|
2814
|
+
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = hl, c) : (e.enter("characterReferenceValue"), l = 7, o = En, c(f));
|
|
2815
2815
|
}
|
|
2816
2816
|
function c(f) {
|
|
2817
2817
|
if (f === 59 && i) {
|
|
2818
2818
|
const d = e.exit("characterReferenceValue");
|
|
2819
|
-
return o === ne &&
|
|
2819
|
+
return o === ne && !Vn(r.sliceSerialize(d)) ? t(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
|
|
2820
2820
|
}
|
|
2821
2821
|
return o(f) && i++ < l ? (e.consume(f), c) : t(f);
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
|
-
const
|
|
2824
|
+
const Ct = {
|
|
2825
2825
|
partial: !0,
|
|
2826
|
-
tokenize:
|
|
2827
|
-
},
|
|
2826
|
+
tokenize: Nl
|
|
2827
|
+
}, It = {
|
|
2828
2828
|
concrete: !0,
|
|
2829
2829
|
name: "codeFenced",
|
|
2830
|
-
tokenize:
|
|
2830
|
+
tokenize: Ml
|
|
2831
2831
|
};
|
|
2832
|
-
function
|
|
2832
|
+
function Ml(e, n, t) {
|
|
2833
2833
|
const r = this, i = {
|
|
2834
2834
|
partial: !0,
|
|
2835
2835
|
tokenize: j
|
|
@@ -2847,7 +2847,7 @@ function _l(e, n, t) {
|
|
|
2847
2847
|
return y === a ? (o++, e.consume(y), c) : o < 3 ? t(y) : (e.exit("codeFencedFenceSequence"), v(y) ? q(e, f, "whitespace")(y) : f(y));
|
|
2848
2848
|
}
|
|
2849
2849
|
function f(y) {
|
|
2850
|
-
return y === null || L(y) ? (e.exit("codeFencedFence"), r.interrupt ? n(y) : e.check(
|
|
2850
|
+
return y === null || L(y) ? (e.exit("codeFencedFence"), r.interrupt ? n(y) : e.check(Ct, S, B)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
2851
2851
|
contentType: "string"
|
|
2852
2852
|
}), d(y));
|
|
2853
2853
|
}
|
|
@@ -2872,7 +2872,7 @@ function _l(e, n, t) {
|
|
|
2872
2872
|
return l > 0 && v(y) ? q(e, z, "linePrefix", l + 1)(y) : z(y);
|
|
2873
2873
|
}
|
|
2874
2874
|
function z(y) {
|
|
2875
|
-
return y === null || L(y) ? e.check(
|
|
2875
|
+
return y === null || L(y) ? e.check(Ct, S, B)(y) : (e.enter("codeFlowValue"), I(y));
|
|
2876
2876
|
}
|
|
2877
2877
|
function I(y) {
|
|
2878
2878
|
return y === null || L(y) ? (e.exit("codeFlowValue"), z(y)) : (e.consume(y), I);
|
|
@@ -2882,8 +2882,8 @@ function _l(e, n, t) {
|
|
|
2882
2882
|
}
|
|
2883
2883
|
function j(y, R, $) {
|
|
2884
2884
|
let D = 0;
|
|
2885
|
-
return
|
|
2886
|
-
function
|
|
2885
|
+
return F;
|
|
2886
|
+
function F(C) {
|
|
2887
2887
|
return y.enter("lineEnding"), y.consume(C), y.exit("lineEnding"), P;
|
|
2888
2888
|
}
|
|
2889
2889
|
function P(C) {
|
|
@@ -2900,7 +2900,7 @@ function _l(e, n, t) {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function Nl(e, n, t) {
|
|
2904
2904
|
const r = this;
|
|
2905
2905
|
return i;
|
|
2906
2906
|
function i(o) {
|
|
@@ -2912,12 +2912,12 @@ function Ml(e, n, t) {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
const sn = {
|
|
2914
2914
|
name: "codeIndented",
|
|
2915
|
-
tokenize: Rl
|
|
2916
|
-
}, Nl = {
|
|
2917
|
-
partial: !0,
|
|
2918
2915
|
tokenize: vl
|
|
2916
|
+
}, Rl = {
|
|
2917
|
+
partial: !0,
|
|
2918
|
+
tokenize: Dl
|
|
2919
2919
|
};
|
|
2920
|
-
function
|
|
2920
|
+
function vl(e, n, t) {
|
|
2921
2921
|
const r = this;
|
|
2922
2922
|
return i;
|
|
2923
2923
|
function i(u) {
|
|
@@ -2928,7 +2928,7 @@ function Rl(e, n, t) {
|
|
|
2928
2928
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : t(u);
|
|
2929
2929
|
}
|
|
2930
2930
|
function o(u) {
|
|
2931
|
-
return u === null ? s(u) : L(u) ? e.attempt(
|
|
2931
|
+
return u === null ? s(u) : L(u) ? e.attempt(Rl, o, s)(u) : (e.enter("codeFlowValue"), a(u));
|
|
2932
2932
|
}
|
|
2933
2933
|
function a(u) {
|
|
2934
2934
|
return u === null || L(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), a);
|
|
@@ -2937,7 +2937,7 @@ function Rl(e, n, t) {
|
|
|
2937
2937
|
return e.exit("codeIndented"), n(u);
|
|
2938
2938
|
}
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function Dl(e, n, t) {
|
|
2941
2941
|
const r = this;
|
|
2942
2942
|
return i;
|
|
2943
2943
|
function i(o) {
|
|
@@ -2948,11 +2948,11 @@ function vl(e, n, t) {
|
|
|
2948
2948
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : L(o) ? i(o) : t(o);
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
|
-
const
|
|
2951
|
+
const Fl = {
|
|
2952
2952
|
name: "codeText",
|
|
2953
|
-
previous:
|
|
2953
|
+
previous: Bl,
|
|
2954
2954
|
resolve: Ol,
|
|
2955
|
-
tokenize:
|
|
2955
|
+
tokenize: Ul
|
|
2956
2956
|
};
|
|
2957
2957
|
function Ol(e) {
|
|
2958
2958
|
let n = e.length - 4, t = 3, r, i;
|
|
@@ -2967,10 +2967,10 @@ function Ol(e) {
|
|
|
2967
2967
|
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);
|
|
2968
2968
|
return e;
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function Bl(e) {
|
|
2971
2971
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2972
2972
|
}
|
|
2973
|
-
function
|
|
2973
|
+
function Ul(e, n, t) {
|
|
2974
2974
|
let r = 0, i, l;
|
|
2975
2975
|
return o;
|
|
2976
2976
|
function o(f) {
|
|
@@ -2989,7 +2989,7 @@ function Bl(e, n, t) {
|
|
|
2989
2989
|
return f === 96 ? (e.consume(f), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(f)) : (l.type = "codeTextData", u(f));
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
|
-
class
|
|
2992
|
+
class jl {
|
|
2993
2993
|
/**
|
|
2994
2994
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
2995
2995
|
* Initial items (optional).
|
|
@@ -3161,10 +3161,10 @@ function Ue(e, n) {
|
|
|
3161
3161
|
for (; t < n.length; )
|
|
3162
3162
|
e.push(...n.slice(t, t + 1e4)), t += 1e4;
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function mr(e) {
|
|
3165
3165
|
const n = {};
|
|
3166
3166
|
let t = -1, r, i, l, o, a, s, u;
|
|
3167
|
-
const c = new
|
|
3167
|
+
const c = new jl(e);
|
|
3168
3168
|
for (; ++t < c.length; ) {
|
|
3169
3169
|
for (; t in n; )
|
|
3170
3170
|
t = n[t];
|
|
@@ -3172,7 +3172,7 @@ function pr(e) {
|
|
|
3172
3172
|
for (; ++l < s.length && s[l][1].type !== "content"; )
|
|
3173
3173
|
s[l][1].type === "chunkText" && (s[l][1]._isInFirstContentOfListItem = !0, l++);
|
|
3174
3174
|
if (r[0] === "enter")
|
|
3175
|
-
r[1].contentType && (Object.assign(n,
|
|
3175
|
+
r[1].contentType && (Object.assign(n, $l(c, t)), t = n[t], u = !0);
|
|
3176
3176
|
else if (r[1]._container) {
|
|
3177
3177
|
for (l = t, i = void 0; l--; )
|
|
3178
3178
|
if (o = c.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
|
|
@@ -3185,7 +3185,7 @@ function pr(e) {
|
|
|
3185
3185
|
}
|
|
3186
3186
|
return se(e, 0, Number.POSITIVE_INFINITY, c.slice(0)), !u;
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function $l(e, n) {
|
|
3189
3189
|
const t = e.get(n)[1], r = e.get(n)[2];
|
|
3190
3190
|
let i = n - 1;
|
|
3191
3191
|
const l = [];
|
|
@@ -3210,17 +3210,17 @@ function jl(e, n) {
|
|
|
3210
3210
|
u[b + s[d][0]] = b + s[d][1], b += s[d][1] - s[d][0] - 1;
|
|
3211
3211
|
return u;
|
|
3212
3212
|
}
|
|
3213
|
-
const
|
|
3214
|
-
resolve:
|
|
3215
|
-
tokenize: ql
|
|
3216
|
-
}, Hl = {
|
|
3217
|
-
partial: !0,
|
|
3213
|
+
const Hl = {
|
|
3214
|
+
resolve: ql,
|
|
3218
3215
|
tokenize: Wl
|
|
3216
|
+
}, Vl = {
|
|
3217
|
+
partial: !0,
|
|
3218
|
+
tokenize: Xl
|
|
3219
3219
|
};
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3220
|
+
function ql(e) {
|
|
3221
|
+
return mr(e), e;
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function Wl(e, n) {
|
|
3224
3224
|
let t;
|
|
3225
3225
|
return r;
|
|
3226
3226
|
function r(a) {
|
|
@@ -3229,7 +3229,7 @@ function ql(e, n) {
|
|
|
3229
3229
|
}), i(a);
|
|
3230
3230
|
}
|
|
3231
3231
|
function i(a) {
|
|
3232
|
-
return a === null ? l(a) : L(a) ? e.check(
|
|
3232
|
+
return a === null ? l(a) : L(a) ? e.check(Vl, o, l)(a) : (e.consume(a), i);
|
|
3233
3233
|
}
|
|
3234
3234
|
function l(a) {
|
|
3235
3235
|
return e.exit("chunkContent"), e.exit("content"), n(a);
|
|
@@ -3241,7 +3241,7 @@ function ql(e, n) {
|
|
|
3241
3241
|
}), t = t.next, i;
|
|
3242
3242
|
}
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function Xl(e, n, t) {
|
|
3245
3245
|
const r = this;
|
|
3246
3246
|
return i;
|
|
3247
3247
|
function i(o) {
|
|
@@ -3254,7 +3254,7 @@ function Wl(e, n, t) {
|
|
|
3254
3254
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : e.interrupt(r.parser.constructs.flow, t, n)(o);
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
|
-
function
|
|
3257
|
+
function dr(e, n, t, r, i, l, o, a, s) {
|
|
3258
3258
|
const u = s || Number.POSITIVE_INFINITY;
|
|
3259
3259
|
let c = 0;
|
|
3260
3260
|
return f;
|
|
@@ -3281,7 +3281,7 @@ function hr(e, n, t, r, i, l, o, a, s) {
|
|
|
3281
3281
|
return k === 40 || k === 41 || k === 92 ? (e.consume(k), S) : S(k);
|
|
3282
3282
|
}
|
|
3283
3283
|
}
|
|
3284
|
-
function
|
|
3284
|
+
function gr(e, n, t, r, i, l) {
|
|
3285
3285
|
const o = this;
|
|
3286
3286
|
let a = 0, s;
|
|
3287
3287
|
return u;
|
|
@@ -3305,7 +3305,7 @@ function mr(e, n, t, r, i, l) {
|
|
|
3305
3305
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, f) : f(p);
|
|
3306
3306
|
}
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3308
|
+
function yr(e, n, t, r, i, l) {
|
|
3309
3309
|
let o;
|
|
3310
3310
|
return a;
|
|
3311
3311
|
function a(d) {
|
|
@@ -3333,14 +3333,14 @@ function qe(e, n) {
|
|
|
3333
3333
|
return L(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : v(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
|
-
const
|
|
3336
|
+
const Yl = {
|
|
3337
3337
|
name: "definition",
|
|
3338
|
-
tokenize: Gl
|
|
3339
|
-
}, Yl = {
|
|
3340
|
-
partial: !0,
|
|
3341
3338
|
tokenize: Kl
|
|
3339
|
+
}, Gl = {
|
|
3340
|
+
partial: !0,
|
|
3341
|
+
tokenize: Ql
|
|
3342
3342
|
};
|
|
3343
|
-
function
|
|
3343
|
+
function Kl(e, n, t) {
|
|
3344
3344
|
const r = this;
|
|
3345
3345
|
let i;
|
|
3346
3346
|
return l;
|
|
@@ -3348,7 +3348,7 @@ function Gl(e, n, t) {
|
|
|
3348
3348
|
return e.enter("definition"), o(p);
|
|
3349
3349
|
}
|
|
3350
3350
|
function o(p) {
|
|
3351
|
-
return
|
|
3351
|
+
return gr.call(
|
|
3352
3352
|
r,
|
|
3353
3353
|
e,
|
|
3354
3354
|
a,
|
|
@@ -3366,7 +3366,7 @@ function Gl(e, n, t) {
|
|
|
3366
3366
|
return Q(p) ? qe(e, u)(p) : u(p);
|
|
3367
3367
|
}
|
|
3368
3368
|
function u(p) {
|
|
3369
|
-
return
|
|
3369
|
+
return dr(
|
|
3370
3370
|
e,
|
|
3371
3371
|
c,
|
|
3372
3372
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
|
@@ -3379,7 +3379,7 @@ function Gl(e, n, t) {
|
|
|
3379
3379
|
)(p);
|
|
3380
3380
|
}
|
|
3381
3381
|
function c(p) {
|
|
3382
|
-
return e.attempt(
|
|
3382
|
+
return e.attempt(Gl, f, f)(p);
|
|
3383
3383
|
}
|
|
3384
3384
|
function f(p) {
|
|
3385
3385
|
return v(p) ? q(e, d, "whitespace")(p) : d(p);
|
|
@@ -3388,13 +3388,13 @@ function Gl(e, n, t) {
|
|
|
3388
3388
|
return p === null || L(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
|
|
3389
3389
|
}
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function Ql(e, n, t) {
|
|
3392
3392
|
return r;
|
|
3393
3393
|
function r(a) {
|
|
3394
3394
|
return Q(a) ? qe(e, i)(a) : t(a);
|
|
3395
3395
|
}
|
|
3396
3396
|
function i(a) {
|
|
3397
|
-
return
|
|
3397
|
+
return yr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
3398
3398
|
}
|
|
3399
3399
|
function l(a) {
|
|
3400
3400
|
return v(a) ? q(e, o, "whitespace")(a) : o(a);
|
|
@@ -3403,11 +3403,11 @@ function Kl(e, n, t) {
|
|
|
3403
3403
|
return a === null || L(a) ? n(a) : t(a);
|
|
3404
3404
|
}
|
|
3405
3405
|
}
|
|
3406
|
-
const
|
|
3406
|
+
const Jl = {
|
|
3407
3407
|
name: "hardBreakEscape",
|
|
3408
|
-
tokenize:
|
|
3408
|
+
tokenize: Zl
|
|
3409
3409
|
};
|
|
3410
|
-
function
|
|
3410
|
+
function Zl(e, n, t) {
|
|
3411
3411
|
return r;
|
|
3412
3412
|
function r(l) {
|
|
3413
3413
|
return e.enter("hardBreakEscape"), e.consume(l), i;
|
|
@@ -3416,12 +3416,12 @@ function Jl(e, n, t) {
|
|
|
3416
3416
|
return L(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
|
|
3417
3417
|
}
|
|
3418
3418
|
}
|
|
3419
|
-
const
|
|
3419
|
+
const eo = {
|
|
3420
3420
|
name: "headingAtx",
|
|
3421
|
-
resolve:
|
|
3422
|
-
tokenize:
|
|
3421
|
+
resolve: no,
|
|
3422
|
+
tokenize: to
|
|
3423
3423
|
};
|
|
3424
|
-
function
|
|
3424
|
+
function no(e, n) {
|
|
3425
3425
|
let t = e.length - 2, r = 3, i, l;
|
|
3426
3426
|
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 = {
|
|
3427
3427
|
type: "atxHeadingText",
|
|
@@ -3434,7 +3434,7 @@ function eo(e, n) {
|
|
|
3434
3434
|
contentType: "text"
|
|
3435
3435
|
}, se(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
|
|
3436
3436
|
}
|
|
3437
|
-
function
|
|
3437
|
+
function to(e, n, t) {
|
|
3438
3438
|
let r = 0;
|
|
3439
3439
|
return i;
|
|
3440
3440
|
function i(c) {
|
|
@@ -3456,7 +3456,7 @@ function no(e, n, t) {
|
|
|
3456
3456
|
return c === null || c === 35 || Q(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
|
-
const
|
|
3459
|
+
const ro = [
|
|
3460
3460
|
"address",
|
|
3461
3461
|
"article",
|
|
3462
3462
|
"aside",
|
|
@@ -3519,25 +3519,25 @@ const to = [
|
|
|
3519
3519
|
"tr",
|
|
3520
3520
|
"track",
|
|
3521
3521
|
"ul"
|
|
3522
|
-
],
|
|
3522
|
+
], Et = ["pre", "script", "style", "textarea"], io = {
|
|
3523
3523
|
concrete: !0,
|
|
3524
3524
|
name: "htmlFlow",
|
|
3525
|
-
resolveTo:
|
|
3526
|
-
tokenize:
|
|
3527
|
-
}, io = {
|
|
3528
|
-
partial: !0,
|
|
3529
|
-
tokenize: so
|
|
3525
|
+
resolveTo: ao,
|
|
3526
|
+
tokenize: uo
|
|
3530
3527
|
}, lo = {
|
|
3531
3528
|
partial: !0,
|
|
3532
|
-
tokenize:
|
|
3529
|
+
tokenize: co
|
|
3530
|
+
}, oo = {
|
|
3531
|
+
partial: !0,
|
|
3532
|
+
tokenize: so
|
|
3533
3533
|
};
|
|
3534
|
-
function
|
|
3534
|
+
function ao(e) {
|
|
3535
3535
|
let n = e.length;
|
|
3536
3536
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
|
|
3537
3537
|
;
|
|
3538
3538
|
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;
|
|
3539
3539
|
}
|
|
3540
|
-
function
|
|
3540
|
+
function uo(e, n, t) {
|
|
3541
3541
|
const r = this;
|
|
3542
3542
|
let i, l, o, a, s;
|
|
3543
3543
|
return u;
|
|
@@ -3565,8 +3565,8 @@ function ao(e, n, t) {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
function E(m) {
|
|
3567
3567
|
if (m === null || m === 47 || m === 62 || Q(m)) {
|
|
3568
|
-
const le = m === 47,
|
|
3569
|
-
return !le && !l &&
|
|
3568
|
+
const le = m === 47, ke = o.toLowerCase();
|
|
3569
|
+
return !le && !l && Et.includes(ke) ? (i = 1, r.interrupt ? n(m) : A(m)) : ro.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), k) : r.interrupt ? n(m) : A(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? z(m) : I(m));
|
|
3570
3570
|
}
|
|
3571
3571
|
return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), E) : t(m);
|
|
3572
3572
|
}
|
|
@@ -3574,10 +3574,10 @@ function ao(e, n, t) {
|
|
|
3574
3574
|
return m === 62 ? (e.consume(m), r.interrupt ? n : A) : t(m);
|
|
3575
3575
|
}
|
|
3576
3576
|
function z(m) {
|
|
3577
|
-
return v(m) ? (e.consume(m), z) :
|
|
3577
|
+
return v(m) ? (e.consume(m), z) : F(m);
|
|
3578
3578
|
}
|
|
3579
3579
|
function I(m) {
|
|
3580
|
-
return m === 47 ? (e.consume(m),
|
|
3580
|
+
return m === 47 ? (e.consume(m), F) : m === 58 || m === 95 || ue(m) ? (e.consume(m), B) : v(m) ? (e.consume(m), I) : F(m);
|
|
3581
3581
|
}
|
|
3582
3582
|
function B(m) {
|
|
3583
3583
|
return m === 45 || m === 46 || m === 58 || m === 95 || ne(m) ? (e.consume(m), B) : j(m);
|
|
@@ -3597,17 +3597,17 @@ function ao(e, n, t) {
|
|
|
3597
3597
|
function D(m) {
|
|
3598
3598
|
return m === 47 || m === 62 || v(m) ? I(m) : t(m);
|
|
3599
3599
|
}
|
|
3600
|
-
function
|
|
3600
|
+
function F(m) {
|
|
3601
3601
|
return m === 62 ? (e.consume(m), P) : t(m);
|
|
3602
3602
|
}
|
|
3603
3603
|
function P(m) {
|
|
3604
3604
|
return m === null || L(m) ? A(m) : v(m) ? (e.consume(m), P) : t(m);
|
|
3605
3605
|
}
|
|
3606
3606
|
function A(m) {
|
|
3607
|
-
return m === 45 && i === 2 ? (e.consume(m),
|
|
3607
|
+
return m === 45 && i === 2 ? (e.consume(m), O) : m === 60 && i === 1 ? (e.consume(m), X) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), ce) : L(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(lo, fe, H)(m)) : m === null || L(m) ? (e.exit("htmlFlowData"), H(m)) : (e.consume(m), A);
|
|
3608
3608
|
}
|
|
3609
3609
|
function H(m) {
|
|
3610
|
-
return e.check(
|
|
3610
|
+
return e.check(oo, T, fe)(m);
|
|
3611
3611
|
}
|
|
3612
3612
|
function T(m) {
|
|
3613
3613
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), C;
|
|
@@ -3615,7 +3615,7 @@ function ao(e, n, t) {
|
|
|
3615
3615
|
function C(m) {
|
|
3616
3616
|
return m === null || L(m) ? H(m) : (e.enter("htmlFlowData"), A(m));
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function O(m) {
|
|
3619
3619
|
return m === 45 ? (e.consume(m), h) : A(m);
|
|
3620
3620
|
}
|
|
3621
3621
|
function X(m) {
|
|
@@ -3624,7 +3624,7 @@ function ao(e, n, t) {
|
|
|
3624
3624
|
function re(m) {
|
|
3625
3625
|
if (m === 62) {
|
|
3626
3626
|
const le = o.toLowerCase();
|
|
3627
|
-
return
|
|
3627
|
+
return Et.includes(le) ? (e.consume(m), ie) : A(m);
|
|
3628
3628
|
}
|
|
3629
3629
|
return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : A(m);
|
|
3630
3630
|
}
|
|
@@ -3641,7 +3641,7 @@ function ao(e, n, t) {
|
|
|
3641
3641
|
return e.exit("htmlFlow"), n(m);
|
|
3642
3642
|
}
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function so(e, n, t) {
|
|
3645
3645
|
const r = this;
|
|
3646
3646
|
return i;
|
|
3647
3647
|
function i(o) {
|
|
@@ -3651,17 +3651,17 @@ function uo(e, n, t) {
|
|
|
3651
3651
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
|
3652
3652
|
}
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3654
|
+
function co(e, n, t) {
|
|
3655
3655
|
return r;
|
|
3656
3656
|
function r(i) {
|
|
3657
3657
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(rn, n, t);
|
|
3658
3658
|
}
|
|
3659
3659
|
}
|
|
3660
|
-
const
|
|
3660
|
+
const fo = {
|
|
3661
3661
|
name: "htmlText",
|
|
3662
|
-
tokenize:
|
|
3662
|
+
tokenize: po
|
|
3663
3663
|
};
|
|
3664
|
-
function
|
|
3664
|
+
function po(e, n, t) {
|
|
3665
3665
|
const r = this;
|
|
3666
3666
|
let i, l, o;
|
|
3667
3667
|
return a;
|
|
@@ -3684,7 +3684,7 @@ function fo(e, n, t) {
|
|
|
3684
3684
|
return h === 45 ? (e.consume(h), p) : f(h);
|
|
3685
3685
|
}
|
|
3686
3686
|
function p(h) {
|
|
3687
|
-
return h === 62 ?
|
|
3687
|
+
return h === 62 ? O(h) : h === 45 ? d(h) : f(h);
|
|
3688
3688
|
}
|
|
3689
3689
|
function b(h) {
|
|
3690
3690
|
const ie = "CDATA[";
|
|
@@ -3697,16 +3697,16 @@ function fo(e, n, t) {
|
|
|
3697
3697
|
return h === 93 ? (e.consume(h), k) : S(h);
|
|
3698
3698
|
}
|
|
3699
3699
|
function k(h) {
|
|
3700
|
-
return h === 62 ?
|
|
3700
|
+
return h === 62 ? O(h) : h === 93 ? (e.consume(h), k) : S(h);
|
|
3701
3701
|
}
|
|
3702
3702
|
function z(h) {
|
|
3703
|
-
return h === null || h === 62 ?
|
|
3703
|
+
return h === null || h === 62 ? O(h) : L(h) ? (o = z, X(h)) : (e.consume(h), z);
|
|
3704
3704
|
}
|
|
3705
3705
|
function I(h) {
|
|
3706
3706
|
return h === null ? t(h) : h === 63 ? (e.consume(h), B) : L(h) ? (o = I, X(h)) : (e.consume(h), I);
|
|
3707
3707
|
}
|
|
3708
3708
|
function B(h) {
|
|
3709
|
-
return h === 62 ?
|
|
3709
|
+
return h === 62 ? O(h) : I(h);
|
|
3710
3710
|
}
|
|
3711
3711
|
function j(h) {
|
|
3712
3712
|
return ue(h) ? (e.consume(h), y) : t(h);
|
|
@@ -3715,16 +3715,16 @@ function fo(e, n, t) {
|
|
|
3715
3715
|
return h === 45 || ne(h) ? (e.consume(h), y) : R(h);
|
|
3716
3716
|
}
|
|
3717
3717
|
function R(h) {
|
|
3718
|
-
return L(h) ? (o = R, X(h)) : v(h) ? (e.consume(h), R) :
|
|
3718
|
+
return L(h) ? (o = R, X(h)) : v(h) ? (e.consume(h), R) : O(h);
|
|
3719
3719
|
}
|
|
3720
3720
|
function $(h) {
|
|
3721
3721
|
return h === 45 || ne(h) ? (e.consume(h), $) : h === 47 || h === 62 || Q(h) ? D(h) : t(h);
|
|
3722
3722
|
}
|
|
3723
3723
|
function D(h) {
|
|
3724
|
-
return h === 47 ? (e.consume(h),
|
|
3724
|
+
return h === 47 ? (e.consume(h), O) : h === 58 || h === 95 || ue(h) ? (e.consume(h), F) : L(h) ? (o = D, X(h)) : v(h) ? (e.consume(h), D) : O(h);
|
|
3725
3725
|
}
|
|
3726
|
-
function
|
|
3727
|
-
return h === 45 || h === 46 || h === 58 || h === 95 || ne(h) ? (e.consume(h),
|
|
3726
|
+
function F(h) {
|
|
3727
|
+
return h === 45 || h === 46 || h === 58 || h === 95 || ne(h) ? (e.consume(h), F) : P(h);
|
|
3728
3728
|
}
|
|
3729
3729
|
function P(h) {
|
|
3730
3730
|
return h === 61 ? (e.consume(h), A) : L(h) ? (o = P, X(h)) : v(h) ? (e.consume(h), P) : D(h);
|
|
@@ -3741,7 +3741,7 @@ function fo(e, n, t) {
|
|
|
3741
3741
|
function C(h) {
|
|
3742
3742
|
return h === 47 || h === 62 || Q(h) ? D(h) : t(h);
|
|
3743
3743
|
}
|
|
3744
|
-
function
|
|
3744
|
+
function O(h) {
|
|
3745
3745
|
return h === 62 ? (e.consume(h), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(h);
|
|
3746
3746
|
}
|
|
3747
3747
|
function X(h) {
|
|
@@ -3754,19 +3754,19 @@ function fo(e, n, t) {
|
|
|
3754
3754
|
return e.enter("htmlTextData"), o(h);
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
|
-
const
|
|
3757
|
+
const Wn = {
|
|
3758
3758
|
name: "labelEnd",
|
|
3759
|
-
resolveAll:
|
|
3760
|
-
resolveTo:
|
|
3761
|
-
tokenize: ko
|
|
3762
|
-
}, po = {
|
|
3759
|
+
resolveAll: yo,
|
|
3760
|
+
resolveTo: ko,
|
|
3763
3761
|
tokenize: xo
|
|
3764
3762
|
}, ho = {
|
|
3765
3763
|
tokenize: bo
|
|
3766
3764
|
}, mo = {
|
|
3767
3765
|
tokenize: wo
|
|
3766
|
+
}, go = {
|
|
3767
|
+
tokenize: So
|
|
3768
3768
|
};
|
|
3769
|
-
function
|
|
3769
|
+
function yo(e) {
|
|
3770
3770
|
let n = -1;
|
|
3771
3771
|
const t = [];
|
|
3772
3772
|
for (; ++n < e.length; ) {
|
|
@@ -3778,7 +3778,7 @@ function go(e) {
|
|
|
3778
3778
|
}
|
|
3779
3779
|
return e.length !== t.length && se(e, 0, e.length, t), e;
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3781
|
+
function ko(e, n) {
|
|
3782
3782
|
let t = e.length, r = 0, i, l, o, a;
|
|
3783
3783
|
for (; t--; )
|
|
3784
3784
|
if (i = e[t][1], l) {
|
|
@@ -3816,9 +3816,9 @@ function yo(e, n) {
|
|
|
3816
3816
|
...e[o - 2][1].start
|
|
3817
3817
|
}
|
|
3818
3818
|
};
|
|
3819
|
-
return a = [["enter", s, n], ["enter", u, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", c, n]]), a = te(a,
|
|
3819
|
+
return a = [["enter", s, n], ["enter", u, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", c, n]]), a = te(a, qn(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = te(a, [["exit", c, n], e[o - 2], e[o - 1], ["exit", u, n]]), a = te(a, e.slice(o + 1)), a = te(a, [["exit", s, n]]), se(e, l, e.length, a), e;
|
|
3820
3820
|
}
|
|
3821
|
-
function
|
|
3821
|
+
function xo(e, n, t) {
|
|
3822
3822
|
const r = this;
|
|
3823
3823
|
let i = r.events.length, l, o;
|
|
3824
3824
|
for (; i--; )
|
|
@@ -3834,10 +3834,10 @@ function ko(e, n, t) {
|
|
|
3834
3834
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), s) : t(d);
|
|
3835
3835
|
}
|
|
3836
3836
|
function s(d) {
|
|
3837
|
-
return d === 40 ? e.attempt(
|
|
3837
|
+
return d === 40 ? e.attempt(ho, c, o ? c : f)(d) : d === 91 ? e.attempt(mo, c, o ? u : f)(d) : o ? c(d) : f(d);
|
|
3838
3838
|
}
|
|
3839
3839
|
function u(d) {
|
|
3840
|
-
return e.attempt(
|
|
3840
|
+
return e.attempt(go, c, f)(d);
|
|
3841
3841
|
}
|
|
3842
3842
|
function c(d) {
|
|
3843
3843
|
return n(d);
|
|
@@ -3846,7 +3846,7 @@ function ko(e, n, t) {
|
|
|
3846
3846
|
return l._balanced = !0, t(d);
|
|
3847
3847
|
}
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3849
|
+
function bo(e, n, t) {
|
|
3850
3850
|
return r;
|
|
3851
3851
|
function r(f) {
|
|
3852
3852
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
|
|
@@ -3855,7 +3855,7 @@ function xo(e, n, t) {
|
|
|
3855
3855
|
return Q(f) ? qe(e, l)(f) : l(f);
|
|
3856
3856
|
}
|
|
3857
3857
|
function l(f) {
|
|
3858
|
-
return f === 41 ? c(f) :
|
|
3858
|
+
return f === 41 ? c(f) : dr(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
|
|
3859
3859
|
}
|
|
3860
3860
|
function o(f) {
|
|
3861
3861
|
return Q(f) ? qe(e, s)(f) : c(f);
|
|
@@ -3864,7 +3864,7 @@ function xo(e, n, t) {
|
|
|
3864
3864
|
return t(f);
|
|
3865
3865
|
}
|
|
3866
3866
|
function s(f) {
|
|
3867
|
-
return f === 34 || f === 39 || f === 40 ?
|
|
3867
|
+
return f === 34 || f === 39 || f === 40 ? yr(e, u, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : c(f);
|
|
3868
3868
|
}
|
|
3869
3869
|
function u(f) {
|
|
3870
3870
|
return Q(f) ? qe(e, c)(f) : c(f);
|
|
@@ -3873,11 +3873,11 @@ function xo(e, n, t) {
|
|
|
3873
3873
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), n) : t(f);
|
|
3874
3874
|
}
|
|
3875
3875
|
}
|
|
3876
|
-
function
|
|
3876
|
+
function wo(e, n, t) {
|
|
3877
3877
|
const r = this;
|
|
3878
3878
|
return i;
|
|
3879
3879
|
function i(a) {
|
|
3880
|
-
return
|
|
3880
|
+
return gr.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
|
|
3881
3881
|
}
|
|
3882
3882
|
function l(a) {
|
|
3883
3883
|
return r.parser.defined.includes(ze(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
|
|
@@ -3886,7 +3886,7 @@ function bo(e, n, t) {
|
|
|
3886
3886
|
return t(a);
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3889
|
+
function So(e, n, t) {
|
|
3890
3890
|
return r;
|
|
3891
3891
|
function r(l) {
|
|
3892
3892
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
|
|
@@ -3895,12 +3895,12 @@ function wo(e, n, t) {
|
|
|
3895
3895
|
return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
|
|
3896
3896
|
}
|
|
3897
3897
|
}
|
|
3898
|
-
const
|
|
3898
|
+
const Co = {
|
|
3899
3899
|
name: "labelStartImage",
|
|
3900
|
-
resolveAll:
|
|
3901
|
-
tokenize:
|
|
3900
|
+
resolveAll: Wn.resolveAll,
|
|
3901
|
+
tokenize: Io
|
|
3902
3902
|
};
|
|
3903
|
-
function
|
|
3903
|
+
function Io(e, n, t) {
|
|
3904
3904
|
const r = this;
|
|
3905
3905
|
return i;
|
|
3906
3906
|
function i(a) {
|
|
@@ -3913,12 +3913,12 @@ function Co(e, n, t) {
|
|
|
3913
3913
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
|
|
3914
3914
|
}
|
|
3915
3915
|
}
|
|
3916
|
-
const
|
|
3916
|
+
const Eo = {
|
|
3917
3917
|
name: "labelStartLink",
|
|
3918
|
-
resolveAll:
|
|
3919
|
-
tokenize:
|
|
3918
|
+
resolveAll: Wn.resolveAll,
|
|
3919
|
+
tokenize: Ao
|
|
3920
3920
|
};
|
|
3921
|
-
function
|
|
3921
|
+
function Ao(e, n, t) {
|
|
3922
3922
|
const r = this;
|
|
3923
3923
|
return i;
|
|
3924
3924
|
function i(o) {
|
|
@@ -3930,9 +3930,9 @@ function Eo(e, n, t) {
|
|
|
3930
3930
|
}
|
|
3931
3931
|
const cn = {
|
|
3932
3932
|
name: "lineEnding",
|
|
3933
|
-
tokenize:
|
|
3933
|
+
tokenize: Po
|
|
3934
3934
|
};
|
|
3935
|
-
function
|
|
3935
|
+
function Po(e, n) {
|
|
3936
3936
|
return t;
|
|
3937
3937
|
function t(r) {
|
|
3938
3938
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), q(e, n, "linePrefix");
|
|
@@ -3940,9 +3940,9 @@ function Ao(e, n) {
|
|
|
3940
3940
|
}
|
|
3941
3941
|
const Ze = {
|
|
3942
3942
|
name: "thematicBreak",
|
|
3943
|
-
tokenize:
|
|
3943
|
+
tokenize: To
|
|
3944
3944
|
};
|
|
3945
|
-
function
|
|
3945
|
+
function To(e, n, t) {
|
|
3946
3946
|
let r = 0, i;
|
|
3947
3947
|
return l;
|
|
3948
3948
|
function l(u) {
|
|
@@ -3960,19 +3960,19 @@ function Po(e, n, t) {
|
|
|
3960
3960
|
}
|
|
3961
3961
|
const K = {
|
|
3962
3962
|
continuation: {
|
|
3963
|
-
tokenize:
|
|
3963
|
+
tokenize: Mo
|
|
3964
3964
|
},
|
|
3965
|
-
exit:
|
|
3965
|
+
exit: Ro,
|
|
3966
3966
|
name: "list",
|
|
3967
|
-
tokenize:
|
|
3968
|
-
}, To = {
|
|
3969
|
-
partial: !0,
|
|
3970
|
-
tokenize: Ro
|
|
3967
|
+
tokenize: _o
|
|
3971
3968
|
}, Lo = {
|
|
3972
3969
|
partial: !0,
|
|
3973
|
-
tokenize:
|
|
3970
|
+
tokenize: vo
|
|
3971
|
+
}, zo = {
|
|
3972
|
+
partial: !0,
|
|
3973
|
+
tokenize: No
|
|
3974
3974
|
};
|
|
3975
|
-
function
|
|
3975
|
+
function _o(e, n, t) {
|
|
3976
3976
|
const r = this, i = r.events[r.events.length - 1];
|
|
3977
3977
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
|
3978
3978
|
return a;
|
|
@@ -3996,7 +3996,7 @@ function zo(e, n, t) {
|
|
|
3996
3996
|
rn,
|
|
3997
3997
|
// Can’t be empty when interrupting.
|
|
3998
3998
|
r.interrupt ? t : c,
|
|
3999
|
-
e.attempt(
|
|
3999
|
+
e.attempt(Lo, d, f)
|
|
4000
4000
|
);
|
|
4001
4001
|
}
|
|
4002
4002
|
function c(p) {
|
|
@@ -4009,20 +4009,20 @@ function zo(e, n, t) {
|
|
|
4009
4009
|
return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
|
|
4010
4010
|
}
|
|
4011
4011
|
}
|
|
4012
|
-
function
|
|
4012
|
+
function Mo(e, n, t) {
|
|
4013
4013
|
const r = this;
|
|
4014
4014
|
return r.containerState._closeFlow = void 0, e.check(rn, i, l);
|
|
4015
4015
|
function i(a) {
|
|
4016
4016
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
|
4017
4017
|
}
|
|
4018
4018
|
function l(a) {
|
|
4019
|
-
return r.containerState.furtherBlankLines || !v(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
|
4019
|
+
return r.containerState.furtherBlankLines || !v(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(zo, n, o)(a));
|
|
4020
4020
|
}
|
|
4021
4021
|
function o(a) {
|
|
4022
4022
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, q(e, e.attempt(K, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
4023
4023
|
}
|
|
4024
4024
|
}
|
|
4025
|
-
function
|
|
4025
|
+
function No(e, n, t) {
|
|
4026
4026
|
const r = this;
|
|
4027
4027
|
return q(e, i, "listItemIndent", r.containerState.size + 1);
|
|
4028
4028
|
function i(l) {
|
|
@@ -4030,10 +4030,10 @@ function Mo(e, n, t) {
|
|
|
4030
4030
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4033
|
+
function Ro(e) {
|
|
4034
4034
|
e.exit(this.containerState.type);
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function vo(e, n, t) {
|
|
4037
4037
|
const r = this;
|
|
4038
4038
|
return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4039
4039
|
function i(l) {
|
|
@@ -4041,12 +4041,12 @@ function Ro(e, n, t) {
|
|
|
4041
4041
|
return !v(l) && o && o[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
|
|
4042
4042
|
}
|
|
4043
4043
|
}
|
|
4044
|
-
const
|
|
4044
|
+
const At = {
|
|
4045
4045
|
name: "setextUnderline",
|
|
4046
|
-
resolveTo:
|
|
4047
|
-
tokenize:
|
|
4046
|
+
resolveTo: Do,
|
|
4047
|
+
tokenize: Fo
|
|
4048
4048
|
};
|
|
4049
|
-
function
|
|
4049
|
+
function Do(e, n) {
|
|
4050
4050
|
let t = e.length, r, i, l;
|
|
4051
4051
|
for (; t--; )
|
|
4052
4052
|
if (e[t][0] === "enter") {
|
|
@@ -4070,7 +4070,7 @@ function vo(e, n) {
|
|
|
4070
4070
|
...e[l][1].end
|
|
4071
4071
|
}) : e[r][1] = o, e.push(["exit", o, n]), e;
|
|
4072
4072
|
}
|
|
4073
|
-
function
|
|
4073
|
+
function Fo(e, n, t) {
|
|
4074
4074
|
const r = this;
|
|
4075
4075
|
let i;
|
|
4076
4076
|
return l;
|
|
@@ -4094,15 +4094,15 @@ function Do(e, n, t) {
|
|
|
4094
4094
|
}
|
|
4095
4095
|
}
|
|
4096
4096
|
const Oo = {
|
|
4097
|
-
tokenize:
|
|
4097
|
+
tokenize: Bo
|
|
4098
4098
|
};
|
|
4099
|
-
function
|
|
4099
|
+
function Bo(e) {
|
|
4100
4100
|
const n = this, t = e.attempt(
|
|
4101
4101
|
// Try to parse a blank line.
|
|
4102
4102
|
rn,
|
|
4103
4103
|
r,
|
|
4104
4104
|
// Try to parse initial flow (essentially, only code).
|
|
4105
|
-
e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
|
4105
|
+
e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Hl, i)), "linePrefix"))
|
|
4106
4106
|
);
|
|
4107
4107
|
return t;
|
|
4108
4108
|
function r(l) {
|
|
@@ -4120,12 +4120,12 @@ function Fo(e) {
|
|
|
4120
4120
|
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
4123
|
-
const
|
|
4124
|
-
resolveAll:
|
|
4125
|
-
},
|
|
4126
|
-
function
|
|
4123
|
+
const Uo = {
|
|
4124
|
+
resolveAll: xr()
|
|
4125
|
+
}, jo = kr("string"), $o = kr("text");
|
|
4126
|
+
function kr(e) {
|
|
4127
4127
|
return {
|
|
4128
|
-
resolveAll:
|
|
4128
|
+
resolveAll: xr(e === "text" ? Ho : void 0),
|
|
4129
4129
|
tokenize: n
|
|
4130
4130
|
};
|
|
4131
4131
|
function n(t) {
|
|
@@ -4159,7 +4159,7 @@ function gr(e) {
|
|
|
4159
4159
|
}
|
|
4160
4160
|
}
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function xr(e) {
|
|
4163
4163
|
return n;
|
|
4164
4164
|
function n(t, r) {
|
|
4165
4165
|
let i = -1, l;
|
|
@@ -4168,7 +4168,7 @@ function yr(e) {
|
|
|
4168
4168
|
return e ? e(t, r) : t;
|
|
4169
4169
|
}
|
|
4170
4170
|
}
|
|
4171
|
-
function
|
|
4171
|
+
function Ho(e, n) {
|
|
4172
4172
|
let t = 0;
|
|
4173
4173
|
for (; ++t <= e.length; )
|
|
4174
4174
|
if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
|
@@ -4210,7 +4210,7 @@ function $o(e, n) {
|
|
|
4210
4210
|
}
|
|
4211
4211
|
return e;
|
|
4212
4212
|
}
|
|
4213
|
-
const
|
|
4213
|
+
const Vo = {
|
|
4214
4214
|
42: K,
|
|
4215
4215
|
43: K,
|
|
4216
4216
|
45: K,
|
|
@@ -4224,46 +4224,46 @@ const Ho = {
|
|
|
4224
4224
|
55: K,
|
|
4225
4225
|
56: K,
|
|
4226
4226
|
57: K,
|
|
4227
|
-
62:
|
|
4228
|
-
}, Vo = {
|
|
4229
|
-
91: Xl
|
|
4227
|
+
62: fr
|
|
4230
4228
|
}, qo = {
|
|
4229
|
+
91: Yl
|
|
4230
|
+
}, Wo = {
|
|
4231
4231
|
[-2]: sn,
|
|
4232
4232
|
[-1]: sn,
|
|
4233
4233
|
32: sn
|
|
4234
|
-
},
|
|
4235
|
-
35:
|
|
4234
|
+
}, Xo = {
|
|
4235
|
+
35: eo,
|
|
4236
4236
|
42: Ze,
|
|
4237
|
-
45: [
|
|
4238
|
-
60:
|
|
4239
|
-
61:
|
|
4237
|
+
45: [At, Ze],
|
|
4238
|
+
60: io,
|
|
4239
|
+
61: At,
|
|
4240
4240
|
95: Ze,
|
|
4241
|
-
96:
|
|
4242
|
-
126:
|
|
4243
|
-
}, Xo = {
|
|
4244
|
-
38: fr,
|
|
4245
|
-
92: cr
|
|
4241
|
+
96: It,
|
|
4242
|
+
126: It
|
|
4246
4243
|
}, Yo = {
|
|
4244
|
+
38: hr,
|
|
4245
|
+
92: pr
|
|
4246
|
+
}, Go = {
|
|
4247
4247
|
[-5]: cn,
|
|
4248
4248
|
[-4]: cn,
|
|
4249
4249
|
[-3]: cn,
|
|
4250
|
-
33:
|
|
4251
|
-
38:
|
|
4250
|
+
33: Co,
|
|
4251
|
+
38: hr,
|
|
4252
4252
|
42: An,
|
|
4253
|
-
60: [
|
|
4254
|
-
91:
|
|
4255
|
-
92: [
|
|
4256
|
-
93:
|
|
4253
|
+
60: [Il, fo],
|
|
4254
|
+
91: Eo,
|
|
4255
|
+
92: [Jl, pr],
|
|
4256
|
+
93: Wn,
|
|
4257
4257
|
95: An,
|
|
4258
|
-
96:
|
|
4259
|
-
}, Go = {
|
|
4260
|
-
null: [An, Bo]
|
|
4258
|
+
96: Fl
|
|
4261
4259
|
}, Ko = {
|
|
4262
|
-
null: [
|
|
4260
|
+
null: [An, Uo]
|
|
4263
4261
|
}, Qo = {
|
|
4262
|
+
null: [42, 95]
|
|
4263
|
+
}, Jo = {
|
|
4264
4264
|
null: []
|
|
4265
|
-
},
|
|
4266
|
-
function
|
|
4265
|
+
}, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Qo, contentInitial: qo, disable: Jo, document: Vo, flow: Xo, flowInitial: Wo, insideSpan: Ko, string: Yo, text: Go }, Symbol.toStringTag, { value: "Module" }));
|
|
4266
|
+
function ea(e, n, t) {
|
|
4267
4267
|
let r = {
|
|
4268
4268
|
_bufferIndex: -1,
|
|
4269
4269
|
_index: 0,
|
|
@@ -4297,13 +4297,13 @@ function Zo(e, n, t) {
|
|
|
4297
4297
|
let c = n.tokenize.call(u, s);
|
|
4298
4298
|
return n.resolveAll && l.push(n), u;
|
|
4299
4299
|
function f(P) {
|
|
4300
|
-
return o = te(o, P), E(), o[o.length - 1] !== null ? [] : ($(n, 0), u.events =
|
|
4300
|
+
return o = te(o, P), E(), o[o.length - 1] !== null ? [] : ($(n, 0), u.events = qn(l, u.events, u), u.events);
|
|
4301
4301
|
}
|
|
4302
4302
|
function d(P, A) {
|
|
4303
|
-
return
|
|
4303
|
+
return ta(p(P), A);
|
|
4304
4304
|
}
|
|
4305
4305
|
function p(P) {
|
|
4306
|
-
return
|
|
4306
|
+
return na(o, P);
|
|
4307
4307
|
}
|
|
4308
4308
|
function b() {
|
|
4309
4309
|
const {
|
|
@@ -4322,7 +4322,7 @@ function Zo(e, n, t) {
|
|
|
4322
4322
|
};
|
|
4323
4323
|
}
|
|
4324
4324
|
function S(P) {
|
|
4325
|
-
i[P.line] = P.column,
|
|
4325
|
+
i[P.line] = P.column, F();
|
|
4326
4326
|
}
|
|
4327
4327
|
function E() {
|
|
4328
4328
|
let P;
|
|
@@ -4339,7 +4339,7 @@ function Zo(e, n, t) {
|
|
|
4339
4339
|
c = c(P);
|
|
4340
4340
|
}
|
|
4341
4341
|
function z(P) {
|
|
4342
|
-
L(P) ? (r.line++, r.column = 1, r.offset += P === -3 ? 2 : 1,
|
|
4342
|
+
L(P) ? (r.line++, r.column = 1, r.offset += P === -3 ? 2 : 1, F()) : P !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
4343
4343
|
// strings.
|
|
4344
4344
|
/** @type {string} */
|
|
4345
4345
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = P;
|
|
@@ -4360,7 +4360,7 @@ function Zo(e, n, t) {
|
|
|
4360
4360
|
}
|
|
4361
4361
|
function R(P, A) {
|
|
4362
4362
|
return H;
|
|
4363
|
-
function H(T, C,
|
|
4363
|
+
function H(T, C, O) {
|
|
4364
4364
|
let X, re, ce, h;
|
|
4365
4365
|
return Array.isArray(T) ? (
|
|
4366
4366
|
/* c8 ignore next 1 */
|
|
@@ -4375,37 +4375,37 @@ function Zo(e, n, t) {
|
|
|
4375
4375
|
function ie(Y) {
|
|
4376
4376
|
return Ne;
|
|
4377
4377
|
function Ne(me) {
|
|
4378
|
-
const
|
|
4378
|
+
const Ce = me !== null && Y[me], Ie = me !== null && Y.null, Ge = [
|
|
4379
4379
|
// To do: add more extension tests.
|
|
4380
4380
|
/* c8 ignore next 2 */
|
|
4381
|
-
...Array.isArray(
|
|
4382
|
-
...Array.isArray(
|
|
4381
|
+
...Array.isArray(Ce) ? Ce : Ce ? [Ce] : [],
|
|
4382
|
+
...Array.isArray(Ie) ? Ie : Ie ? [Ie] : []
|
|
4383
4383
|
];
|
|
4384
4384
|
return fe(Ge)(me);
|
|
4385
4385
|
}
|
|
4386
4386
|
}
|
|
4387
4387
|
function fe(Y) {
|
|
4388
|
-
return X = Y, re = 0, Y.length === 0 ?
|
|
4388
|
+
return X = Y, re = 0, Y.length === 0 ? O : m(Y[re]);
|
|
4389
4389
|
}
|
|
4390
4390
|
function m(Y) {
|
|
4391
4391
|
return Ne;
|
|
4392
4392
|
function Ne(me) {
|
|
4393
|
-
return h = D(), ce = Y, Y.partial || (u.currentConstruct = Y), Y.name && u.parser.constructs.disable.null.includes(Y.name) ?
|
|
4393
|
+
return h = D(), ce = Y, Y.partial || (u.currentConstruct = Y), Y.name && u.parser.constructs.disable.null.includes(Y.name) ? ke() : Y.tokenize.call(
|
|
4394
4394
|
// If we do have fields, create an object w/ `context` as its
|
|
4395
4395
|
// prototype.
|
|
4396
4396
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
4397
4397
|
A ? Object.assign(Object.create(u), A) : u,
|
|
4398
4398
|
s,
|
|
4399
4399
|
le,
|
|
4400
|
-
|
|
4400
|
+
ke
|
|
4401
4401
|
)(me);
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
4404
4404
|
function le(Y) {
|
|
4405
4405
|
return P(ce, h), C;
|
|
4406
4406
|
}
|
|
4407
|
-
function
|
|
4408
|
-
return h.restore(), ++re < X.length ? m(X[re]) :
|
|
4407
|
+
function ke(Y) {
|
|
4408
|
+
return h.restore(), ++re < X.length ? m(X[re]) : O;
|
|
4409
4409
|
}
|
|
4410
4410
|
}
|
|
4411
4411
|
}
|
|
@@ -4416,17 +4416,17 @@ function Zo(e, n, t) {
|
|
|
4416
4416
|
const P = b(), A = u.previous, H = u.currentConstruct, T = u.events.length, C = Array.from(a);
|
|
4417
4417
|
return {
|
|
4418
4418
|
from: T,
|
|
4419
|
-
restore:
|
|
4419
|
+
restore: O
|
|
4420
4420
|
};
|
|
4421
|
-
function
|
|
4422
|
-
r = P, u.previous = A, u.currentConstruct = H, u.events.length = T, a = C,
|
|
4421
|
+
function O() {
|
|
4422
|
+
r = P, u.previous = A, u.currentConstruct = H, u.events.length = T, a = C, F();
|
|
4423
4423
|
}
|
|
4424
4424
|
}
|
|
4425
|
-
function
|
|
4425
|
+
function F() {
|
|
4426
4426
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
4427
4427
|
}
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function na(e, n) {
|
|
4430
4430
|
const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
|
|
4431
4431
|
let o;
|
|
4432
4432
|
if (t === i)
|
|
@@ -4440,7 +4440,7 @@ function ea(e, n) {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
return o;
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4443
|
+
function ta(e, n) {
|
|
4444
4444
|
let t = -1;
|
|
4445
4445
|
const r = [];
|
|
4446
4446
|
let i;
|
|
@@ -4480,42 +4480,42 @@ function na(e, n) {
|
|
|
4480
4480
|
}
|
|
4481
4481
|
return r.join("");
|
|
4482
4482
|
}
|
|
4483
|
-
function
|
|
4483
|
+
function ra(e) {
|
|
4484
4484
|
const r = {
|
|
4485
4485
|
constructs: (
|
|
4486
4486
|
/** @type {FullNormalizedExtension} */
|
|
4487
|
-
|
|
4487
|
+
sl([Zo, ...(e || {}).extensions || []])
|
|
4488
4488
|
),
|
|
4489
|
-
content: i(
|
|
4489
|
+
content: i(yl),
|
|
4490
4490
|
defined: [],
|
|
4491
|
-
document: i(
|
|
4491
|
+
document: i(xl),
|
|
4492
4492
|
flow: i(Oo),
|
|
4493
4493
|
lazy: {},
|
|
4494
|
-
string: i(
|
|
4495
|
-
text: i(
|
|
4494
|
+
string: i(jo),
|
|
4495
|
+
text: i($o)
|
|
4496
4496
|
};
|
|
4497
4497
|
return r;
|
|
4498
4498
|
function i(l) {
|
|
4499
4499
|
return o;
|
|
4500
4500
|
function o(a) {
|
|
4501
|
-
return
|
|
4501
|
+
return ea(r, l, a);
|
|
4502
4502
|
}
|
|
4503
4503
|
}
|
|
4504
4504
|
}
|
|
4505
|
-
function
|
|
4506
|
-
for (; !
|
|
4505
|
+
function ia(e) {
|
|
4506
|
+
for (; !mr(e); )
|
|
4507
4507
|
;
|
|
4508
4508
|
return e;
|
|
4509
4509
|
}
|
|
4510
|
-
const
|
|
4511
|
-
function
|
|
4510
|
+
const Pt = /[\0\t\n\r]/g;
|
|
4511
|
+
function la() {
|
|
4512
4512
|
let e = 1, n = "", t = !0, r;
|
|
4513
4513
|
return i;
|
|
4514
4514
|
function i(l, o, a) {
|
|
4515
4515
|
const s = [];
|
|
4516
4516
|
let u, c, f, d, p;
|
|
4517
4517
|
for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)), f = 0, n = "", t && (l.charCodeAt(0) === 65279 && f++, t = void 0); f < l.length; ) {
|
|
4518
|
-
if (
|
|
4518
|
+
if (Pt.lastIndex = f, u = Pt.exec(l), d = u && u.index !== void 0 ? u.index : l.length, p = l.charCodeAt(d), !u) {
|
|
4519
4519
|
n = l.slice(f);
|
|
4520
4520
|
break;
|
|
4521
4521
|
}
|
|
@@ -4543,91 +4543,91 @@ function ia() {
|
|
|
4543
4543
|
return a && (r && s.push(-5), n && s.push(n), s.push(null)), s;
|
|
4544
4544
|
}
|
|
4545
4545
|
}
|
|
4546
|
-
const
|
|
4547
|
-
function
|
|
4548
|
-
return e.replace(
|
|
4546
|
+
const oa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4547
|
+
function aa(e) {
|
|
4548
|
+
return e.replace(oa, ua);
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4550
|
+
function ua(e, n, t) {
|
|
4551
4551
|
if (n)
|
|
4552
4552
|
return n;
|
|
4553
4553
|
if (t.charCodeAt(0) === 35) {
|
|
4554
4554
|
const i = t.charCodeAt(1), l = i === 120 || i === 88;
|
|
4555
|
-
return
|
|
4555
|
+
return cr(t.slice(l ? 2 : 1), l ? 16 : 10);
|
|
4556
4556
|
}
|
|
4557
|
-
return
|
|
4557
|
+
return Vn(t) || e;
|
|
4558
4558
|
}
|
|
4559
|
-
const
|
|
4560
|
-
function
|
|
4561
|
-
return typeof n != "string" && (t = n, n = void 0),
|
|
4559
|
+
const br = {}.hasOwnProperty;
|
|
4560
|
+
function sa(e, n, t) {
|
|
4561
|
+
return typeof n != "string" && (t = n, n = void 0), ca(t)(ia(ra(t).document().write(la()(e, n, !0))));
|
|
4562
4562
|
}
|
|
4563
|
-
function
|
|
4563
|
+
function ca(e) {
|
|
4564
4564
|
const n = {
|
|
4565
4565
|
transforms: [],
|
|
4566
4566
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
4567
4567
|
enter: {
|
|
4568
|
-
autolink: l(
|
|
4568
|
+
autolink: l(Jn),
|
|
4569
4569
|
autolinkProtocol: D,
|
|
4570
4570
|
autolinkEmail: D,
|
|
4571
|
-
atxHeading: l(
|
|
4572
|
-
blockQuote: l(
|
|
4571
|
+
atxHeading: l(Gn),
|
|
4572
|
+
blockQuote: l(Ie),
|
|
4573
4573
|
characterEscape: D,
|
|
4574
4574
|
characterReference: D,
|
|
4575
4575
|
codeFenced: l(Ge),
|
|
4576
4576
|
codeFencedFenceInfo: o,
|
|
4577
4577
|
codeFencedFenceMeta: o,
|
|
4578
4578
|
codeIndented: l(Ge, o),
|
|
4579
|
-
codeText: l(
|
|
4579
|
+
codeText: l(Er, o),
|
|
4580
4580
|
codeTextData: D,
|
|
4581
4581
|
data: D,
|
|
4582
4582
|
codeFlowValue: D,
|
|
4583
|
-
definition: l(
|
|
4583
|
+
definition: l(Ar),
|
|
4584
4584
|
definitionDestinationString: o,
|
|
4585
4585
|
definitionLabelString: o,
|
|
4586
4586
|
definitionTitleString: o,
|
|
4587
|
-
emphasis: l(
|
|
4588
|
-
hardBreakEscape: l(
|
|
4589
|
-
hardBreakTrailing: l(
|
|
4590
|
-
htmlFlow: l(
|
|
4587
|
+
emphasis: l(Pr),
|
|
4588
|
+
hardBreakEscape: l(Kn),
|
|
4589
|
+
hardBreakTrailing: l(Kn),
|
|
4590
|
+
htmlFlow: l(Qn, o),
|
|
4591
4591
|
htmlFlowData: D,
|
|
4592
|
-
htmlText: l(
|
|
4592
|
+
htmlText: l(Qn, o),
|
|
4593
4593
|
htmlTextData: D,
|
|
4594
|
-
image: l(
|
|
4594
|
+
image: l(Tr),
|
|
4595
4595
|
label: o,
|
|
4596
|
-
link: l(
|
|
4597
|
-
listItem: l(
|
|
4596
|
+
link: l(Jn),
|
|
4597
|
+
listItem: l(Lr),
|
|
4598
4598
|
listItemValue: d,
|
|
4599
|
-
listOrdered: l(
|
|
4600
|
-
listUnordered: l(
|
|
4601
|
-
paragraph: l(
|
|
4599
|
+
listOrdered: l(Zn, f),
|
|
4600
|
+
listUnordered: l(Zn),
|
|
4601
|
+
paragraph: l(zr),
|
|
4602
4602
|
reference: m,
|
|
4603
4603
|
referenceString: o,
|
|
4604
4604
|
resourceDestinationString: o,
|
|
4605
4605
|
resourceTitleString: o,
|
|
4606
|
-
setextHeading: l(
|
|
4607
|
-
strong: l(
|
|
4608
|
-
thematicBreak: l(
|
|
4606
|
+
setextHeading: l(Gn),
|
|
4607
|
+
strong: l(_r),
|
|
4608
|
+
thematicBreak: l(Nr)
|
|
4609
4609
|
},
|
|
4610
4610
|
exit: {
|
|
4611
4611
|
atxHeading: s(),
|
|
4612
4612
|
atxHeadingSequence: j,
|
|
4613
4613
|
autolink: s(),
|
|
4614
|
-
autolinkEmail:
|
|
4614
|
+
autolinkEmail: Ce,
|
|
4615
4615
|
autolinkProtocol: me,
|
|
4616
4616
|
blockQuote: s(),
|
|
4617
|
-
characterEscapeValue:
|
|
4618
|
-
characterReferenceMarkerHexadecimal:
|
|
4619
|
-
characterReferenceMarkerNumeric:
|
|
4617
|
+
characterEscapeValue: F,
|
|
4618
|
+
characterReferenceMarkerHexadecimal: ke,
|
|
4619
|
+
characterReferenceMarkerNumeric: ke,
|
|
4620
4620
|
characterReferenceValue: Y,
|
|
4621
4621
|
characterReference: Ne,
|
|
4622
4622
|
codeFenced: s(E),
|
|
4623
4623
|
codeFencedFence: S,
|
|
4624
4624
|
codeFencedFenceInfo: p,
|
|
4625
4625
|
codeFencedFenceMeta: b,
|
|
4626
|
-
codeFlowValue:
|
|
4626
|
+
codeFlowValue: F,
|
|
4627
4627
|
codeIndented: s(k),
|
|
4628
4628
|
codeText: s(C),
|
|
4629
|
-
codeTextData:
|
|
4630
|
-
data:
|
|
4629
|
+
codeTextData: F,
|
|
4630
|
+
data: F,
|
|
4631
4631
|
definition: s(),
|
|
4632
4632
|
definitionDestinationString: B,
|
|
4633
4633
|
definitionLabelString: z,
|
|
@@ -4636,14 +4636,14 @@ function sa(e) {
|
|
|
4636
4636
|
hardBreakEscape: s(A),
|
|
4637
4637
|
hardBreakTrailing: s(A),
|
|
4638
4638
|
htmlFlow: s(H),
|
|
4639
|
-
htmlFlowData:
|
|
4639
|
+
htmlFlowData: F,
|
|
4640
4640
|
htmlText: s(T),
|
|
4641
|
-
htmlTextData:
|
|
4641
|
+
htmlTextData: F,
|
|
4642
4642
|
image: s(X),
|
|
4643
4643
|
label: ce,
|
|
4644
4644
|
labelText: re,
|
|
4645
4645
|
lineEnding: P,
|
|
4646
|
-
link: s(
|
|
4646
|
+
link: s(O),
|
|
4647
4647
|
listItem: s(),
|
|
4648
4648
|
listOrdered: s(),
|
|
4649
4649
|
listUnordered: s(),
|
|
@@ -4659,7 +4659,7 @@ function sa(e) {
|
|
|
4659
4659
|
thematicBreak: s()
|
|
4660
4660
|
}
|
|
4661
4661
|
};
|
|
4662
|
-
|
|
4662
|
+
wr(n, (e || {}).mdastExtensions || []);
|
|
4663
4663
|
const t = {};
|
|
4664
4664
|
return r;
|
|
4665
4665
|
function r(g) {
|
|
@@ -4688,13 +4688,13 @@ function sa(e) {
|
|
|
4688
4688
|
}
|
|
4689
4689
|
for (U = -1; ++U < g.length; ) {
|
|
4690
4690
|
const oe = n[g[U][0]];
|
|
4691
|
-
|
|
4691
|
+
br.call(oe, g[U][1].type) && oe[g[U][1].type].call(Object.assign({
|
|
4692
4692
|
sliceSerialize: g[U][2].sliceSerialize
|
|
4693
4693
|
}, _), g[U][1]);
|
|
4694
4694
|
}
|
|
4695
4695
|
if (_.tokenStack.length > 0) {
|
|
4696
4696
|
const oe = _.tokenStack[_.tokenStack.length - 1];
|
|
4697
|
-
(oe[1] ||
|
|
4697
|
+
(oe[1] || Tt).call(_, void 0, oe[0]);
|
|
4698
4698
|
}
|
|
4699
4699
|
for (w.position = {
|
|
4700
4700
|
start: de(g.length > 0 ? g[0][1].start : {
|
|
@@ -4712,7 +4712,7 @@ function sa(e) {
|
|
|
4712
4712
|
return w;
|
|
4713
4713
|
}
|
|
4714
4714
|
function i(g, w, _) {
|
|
4715
|
-
let N = w - 1, U = -1, oe = !1,
|
|
4715
|
+
let N = w - 1, U = -1, oe = !1, xe, pe, Re, ve;
|
|
4716
4716
|
for (; ++N <= _; ) {
|
|
4717
4717
|
const Z = g[N];
|
|
4718
4718
|
switch (Z[1].type) {
|
|
@@ -4723,7 +4723,7 @@ function sa(e) {
|
|
|
4723
4723
|
break;
|
|
4724
4724
|
}
|
|
4725
4725
|
case "lineEndingBlank": {
|
|
4726
|
-
Z[0] === "enter" && (
|
|
4726
|
+
Z[0] === "enter" && (xe && !ve && !U && !Re && (Re = N), ve = void 0);
|
|
4727
4727
|
break;
|
|
4728
4728
|
}
|
|
4729
4729
|
case "linePrefix":
|
|
@@ -4736,26 +4736,26 @@ function sa(e) {
|
|
|
4736
4736
|
ve = void 0;
|
|
4737
4737
|
}
|
|
4738
4738
|
if (!U && Z[0] === "enter" && Z[1].type === "listItemPrefix" || U === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
|
|
4739
|
-
if (
|
|
4740
|
-
let
|
|
4741
|
-
for (pe = void 0;
|
|
4742
|
-
const he = g[
|
|
4739
|
+
if (xe) {
|
|
4740
|
+
let Ee = N;
|
|
4741
|
+
for (pe = void 0; Ee--; ) {
|
|
4742
|
+
const he = g[Ee];
|
|
4743
4743
|
if (he[1].type === "lineEnding" || he[1].type === "lineEndingBlank") {
|
|
4744
4744
|
if (he[0] === "exit") continue;
|
|
4745
|
-
pe && (g[pe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", pe =
|
|
4745
|
+
pe && (g[pe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", pe = Ee;
|
|
4746
4746
|
} else if (!(he[1].type === "linePrefix" || he[1].type === "blockQuotePrefix" || he[1].type === "blockQuotePrefixWhitespace" || he[1].type === "blockQuoteMarker" || he[1].type === "listItemIndent")) break;
|
|
4747
4747
|
}
|
|
4748
|
-
Re && (!pe || Re < pe) && (
|
|
4748
|
+
Re && (!pe || Re < pe) && (xe._spread = !0), xe.end = Object.assign({}, pe ? g[pe][1].start : Z[1].end), g.splice(pe || N, 0, ["exit", xe, Z[2]]), N++, _++;
|
|
4749
4749
|
}
|
|
4750
4750
|
if (Z[1].type === "listItemPrefix") {
|
|
4751
|
-
const
|
|
4751
|
+
const Ee = {
|
|
4752
4752
|
type: "listItem",
|
|
4753
4753
|
_spread: !1,
|
|
4754
4754
|
start: Object.assign({}, Z[1].start),
|
|
4755
4755
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4756
4756
|
end: void 0
|
|
4757
4757
|
};
|
|
4758
|
-
|
|
4758
|
+
xe = Ee, g.splice(N, 0, ["enter", Ee, Z[2]]), N++, _++, Re = void 0, ve = !0;
|
|
4759
4759
|
}
|
|
4760
4760
|
}
|
|
4761
4761
|
}
|
|
@@ -4789,7 +4789,7 @@ function sa(e) {
|
|
|
4789
4789
|
function u(g, w) {
|
|
4790
4790
|
const _ = this.stack.pop(), N = this.tokenStack.pop();
|
|
4791
4791
|
if (N)
|
|
4792
|
-
N[0].type !== g.type && (w ? w.call(this, g, N[0]) : (N[1] ||
|
|
4792
|
+
N[0].type !== g.type && (w ? w.call(this, g, N[0]) : (N[1] || Tt).call(this, g, N[0]));
|
|
4793
4793
|
else throw new Error("Cannot close `" + g.type + "` (" + Ve({
|
|
4794
4794
|
start: g.start,
|
|
4795
4795
|
end: g.end
|
|
@@ -4797,7 +4797,7 @@ function sa(e) {
|
|
|
4797
4797
|
_.position.end = de(g.end);
|
|
4798
4798
|
}
|
|
4799
4799
|
function c() {
|
|
4800
|
-
return
|
|
4800
|
+
return al(this.stack.pop());
|
|
4801
4801
|
}
|
|
4802
4802
|
function f() {
|
|
4803
4803
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -4859,13 +4859,13 @@ function sa(e) {
|
|
|
4859
4859
|
function D(g) {
|
|
4860
4860
|
const _ = this.stack[this.stack.length - 1].children;
|
|
4861
4861
|
let N = _[_.length - 1];
|
|
4862
|
-
(!N || N.type !== "text") && (N =
|
|
4862
|
+
(!N || N.type !== "text") && (N = Mr(), N.position = {
|
|
4863
4863
|
start: de(g.start),
|
|
4864
4864
|
// @ts-expect-error: we’ll add `end` later.
|
|
4865
4865
|
end: void 0
|
|
4866
4866
|
}, _.push(N)), this.stack.push(N);
|
|
4867
4867
|
}
|
|
4868
|
-
function
|
|
4868
|
+
function F(g) {
|
|
4869
4869
|
const w = this.stack.pop();
|
|
4870
4870
|
w.value += this.sliceSerialize(g), w.position.end = de(g.end);
|
|
4871
4871
|
}
|
|
@@ -4876,7 +4876,7 @@ function sa(e) {
|
|
|
4876
4876
|
_.position.end = de(g.end), this.data.atHardBreak = void 0;
|
|
4877
4877
|
return;
|
|
4878
4878
|
}
|
|
4879
|
-
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(w.type) && (D.call(this, g),
|
|
4879
|
+
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(w.type) && (D.call(this, g), F.call(this, g));
|
|
4880
4880
|
}
|
|
4881
4881
|
function A() {
|
|
4882
4882
|
this.data.atHardBreak = !0;
|
|
@@ -4893,7 +4893,7 @@ function sa(e) {
|
|
|
4893
4893
|
const g = this.resume(), w = this.stack[this.stack.length - 1];
|
|
4894
4894
|
w.value = g;
|
|
4895
4895
|
}
|
|
4896
|
-
function
|
|
4896
|
+
function O() {
|
|
4897
4897
|
const g = this.stack[this.stack.length - 1];
|
|
4898
4898
|
if (this.data.inReference) {
|
|
4899
4899
|
const w = this.data.referenceType || "shortcut";
|
|
@@ -4913,7 +4913,7 @@ function sa(e) {
|
|
|
4913
4913
|
}
|
|
4914
4914
|
function re(g) {
|
|
4915
4915
|
const w = this.sliceSerialize(g), _ = this.stack[this.stack.length - 2];
|
|
4916
|
-
_.label =
|
|
4916
|
+
_.label = aa(w), _.identifier = ze(w).toLowerCase();
|
|
4917
4917
|
}
|
|
4918
4918
|
function ce() {
|
|
4919
4919
|
const g = this.stack[this.stack.length - 1], w = this.resume(), _ = this.stack[this.stack.length - 1];
|
|
@@ -4941,13 +4941,13 @@ function sa(e) {
|
|
|
4941
4941
|
const w = this.resume(), _ = this.stack[this.stack.length - 1];
|
|
4942
4942
|
_.label = w, _.identifier = ze(this.sliceSerialize(g)).toLowerCase(), this.data.referenceType = "full";
|
|
4943
4943
|
}
|
|
4944
|
-
function
|
|
4944
|
+
function ke(g) {
|
|
4945
4945
|
this.data.characterReferenceType = g.type;
|
|
4946
4946
|
}
|
|
4947
4947
|
function Y(g) {
|
|
4948
4948
|
const w = this.sliceSerialize(g), _ = this.data.characterReferenceType;
|
|
4949
4949
|
let N;
|
|
4950
|
-
_ ? (N =
|
|
4950
|
+
_ ? (N = cr(w, _ === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : N = Vn(w);
|
|
4951
4951
|
const U = this.stack[this.stack.length - 1];
|
|
4952
4952
|
U.value += N;
|
|
4953
4953
|
}
|
|
@@ -4956,16 +4956,16 @@ function sa(e) {
|
|
|
4956
4956
|
w.position.end = de(g.end);
|
|
4957
4957
|
}
|
|
4958
4958
|
function me(g) {
|
|
4959
|
-
|
|
4959
|
+
F.call(this, g);
|
|
4960
4960
|
const w = this.stack[this.stack.length - 1];
|
|
4961
4961
|
w.url = this.sliceSerialize(g);
|
|
4962
4962
|
}
|
|
4963
|
-
function
|
|
4964
|
-
|
|
4963
|
+
function Ce(g) {
|
|
4964
|
+
F.call(this, g);
|
|
4965
4965
|
const w = this.stack[this.stack.length - 1];
|
|
4966
4966
|
w.url = "mailto:" + this.sliceSerialize(g);
|
|
4967
4967
|
}
|
|
4968
|
-
function
|
|
4968
|
+
function Ie() {
|
|
4969
4969
|
return {
|
|
4970
4970
|
type: "blockquote",
|
|
4971
4971
|
children: []
|
|
@@ -4979,13 +4979,13 @@ function sa(e) {
|
|
|
4979
4979
|
value: ""
|
|
4980
4980
|
};
|
|
4981
4981
|
}
|
|
4982
|
-
function
|
|
4982
|
+
function Er() {
|
|
4983
4983
|
return {
|
|
4984
4984
|
type: "inlineCode",
|
|
4985
4985
|
value: ""
|
|
4986
4986
|
};
|
|
4987
4987
|
}
|
|
4988
|
-
function
|
|
4988
|
+
function Ar() {
|
|
4989
4989
|
return {
|
|
4990
4990
|
type: "definition",
|
|
4991
4991
|
identifier: "",
|
|
@@ -4994,13 +4994,13 @@ function sa(e) {
|
|
|
4994
4994
|
url: ""
|
|
4995
4995
|
};
|
|
4996
4996
|
}
|
|
4997
|
-
function
|
|
4997
|
+
function Pr() {
|
|
4998
4998
|
return {
|
|
4999
4999
|
type: "emphasis",
|
|
5000
5000
|
children: []
|
|
5001
5001
|
};
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5003
|
+
function Gn() {
|
|
5004
5004
|
return {
|
|
5005
5005
|
type: "heading",
|
|
5006
5006
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -5008,18 +5008,18 @@ function sa(e) {
|
|
|
5008
5008
|
children: []
|
|
5009
5009
|
};
|
|
5010
5010
|
}
|
|
5011
|
-
function
|
|
5011
|
+
function Kn() {
|
|
5012
5012
|
return {
|
|
5013
5013
|
type: "break"
|
|
5014
5014
|
};
|
|
5015
5015
|
}
|
|
5016
|
-
function
|
|
5016
|
+
function Qn() {
|
|
5017
5017
|
return {
|
|
5018
5018
|
type: "html",
|
|
5019
5019
|
value: ""
|
|
5020
5020
|
};
|
|
5021
5021
|
}
|
|
5022
|
-
function
|
|
5022
|
+
function Tr() {
|
|
5023
5023
|
return {
|
|
5024
5024
|
type: "image",
|
|
5025
5025
|
title: null,
|
|
@@ -5027,7 +5027,7 @@ function sa(e) {
|
|
|
5027
5027
|
alt: null
|
|
5028
5028
|
};
|
|
5029
5029
|
}
|
|
5030
|
-
function
|
|
5030
|
+
function Jn() {
|
|
5031
5031
|
return {
|
|
5032
5032
|
type: "link",
|
|
5033
5033
|
title: null,
|
|
@@ -5035,7 +5035,7 @@ function sa(e) {
|
|
|
5035
5035
|
children: []
|
|
5036
5036
|
};
|
|
5037
5037
|
}
|
|
5038
|
-
function
|
|
5038
|
+
function Zn(g) {
|
|
5039
5039
|
return {
|
|
5040
5040
|
type: "list",
|
|
5041
5041
|
ordered: g.type === "listOrdered",
|
|
@@ -5044,7 +5044,7 @@ function sa(e) {
|
|
|
5044
5044
|
children: []
|
|
5045
5045
|
};
|
|
5046
5046
|
}
|
|
5047
|
-
function
|
|
5047
|
+
function Lr(g) {
|
|
5048
5048
|
return {
|
|
5049
5049
|
type: "listItem",
|
|
5050
5050
|
spread: g._spread,
|
|
@@ -5052,25 +5052,25 @@ function sa(e) {
|
|
|
5052
5052
|
children: []
|
|
5053
5053
|
};
|
|
5054
5054
|
}
|
|
5055
|
-
function
|
|
5055
|
+
function zr() {
|
|
5056
5056
|
return {
|
|
5057
5057
|
type: "paragraph",
|
|
5058
5058
|
children: []
|
|
5059
5059
|
};
|
|
5060
5060
|
}
|
|
5061
|
-
function
|
|
5061
|
+
function _r() {
|
|
5062
5062
|
return {
|
|
5063
5063
|
type: "strong",
|
|
5064
5064
|
children: []
|
|
5065
5065
|
};
|
|
5066
5066
|
}
|
|
5067
|
-
function
|
|
5067
|
+
function Mr() {
|
|
5068
5068
|
return {
|
|
5069
5069
|
type: "text",
|
|
5070
5070
|
value: ""
|
|
5071
5071
|
};
|
|
5072
5072
|
}
|
|
5073
|
-
function
|
|
5073
|
+
function Nr() {
|
|
5074
5074
|
return {
|
|
5075
5075
|
type: "thematicBreak"
|
|
5076
5076
|
};
|
|
@@ -5083,17 +5083,17 @@ function de(e) {
|
|
|
5083
5083
|
offset: e.offset
|
|
5084
5084
|
};
|
|
5085
5085
|
}
|
|
5086
|
-
function
|
|
5086
|
+
function wr(e, n) {
|
|
5087
5087
|
let t = -1;
|
|
5088
5088
|
for (; ++t < n.length; ) {
|
|
5089
5089
|
const r = n[t];
|
|
5090
|
-
Array.isArray(r) ?
|
|
5090
|
+
Array.isArray(r) ? wr(e, r) : fa(e, r);
|
|
5091
5091
|
}
|
|
5092
5092
|
}
|
|
5093
|
-
function
|
|
5093
|
+
function fa(e, n) {
|
|
5094
5094
|
let t;
|
|
5095
5095
|
for (t in n)
|
|
5096
|
-
if (
|
|
5096
|
+
if (br.call(n, t))
|
|
5097
5097
|
switch (t) {
|
|
5098
5098
|
case "canContainEols": {
|
|
5099
5099
|
const r = n[t];
|
|
@@ -5113,7 +5113,7 @@ function ca(e, n) {
|
|
|
5113
5113
|
}
|
|
5114
5114
|
}
|
|
5115
5115
|
}
|
|
5116
|
-
function
|
|
5116
|
+
function Tt(e, n) {
|
|
5117
5117
|
throw e ? new Error("Cannot close `" + e.type + "` (" + Ve({
|
|
5118
5118
|
start: e.start,
|
|
5119
5119
|
end: e.end
|
|
@@ -5125,11 +5125,11 @@ function At(e, n) {
|
|
|
5125
5125
|
end: n.end
|
|
5126
5126
|
}) + ") is still open");
|
|
5127
5127
|
}
|
|
5128
|
-
function
|
|
5128
|
+
function pa(e) {
|
|
5129
5129
|
const n = this;
|
|
5130
5130
|
n.parser = t;
|
|
5131
5131
|
function t(r) {
|
|
5132
|
-
return
|
|
5132
|
+
return sa(r, {
|
|
5133
5133
|
...n.data("settings"),
|
|
5134
5134
|
...e,
|
|
5135
5135
|
// Note: these options are not in the readme.
|
|
@@ -5140,7 +5140,7 @@ function fa(e) {
|
|
|
5140
5140
|
});
|
|
5141
5141
|
}
|
|
5142
5142
|
}
|
|
5143
|
-
function
|
|
5143
|
+
function ha(e, n) {
|
|
5144
5144
|
const t = {
|
|
5145
5145
|
type: "element",
|
|
5146
5146
|
tagName: "blockquote",
|
|
@@ -5149,12 +5149,12 @@ function pa(e, n) {
|
|
|
5149
5149
|
};
|
|
5150
5150
|
return e.patch(n, t), e.applyData(n, t);
|
|
5151
5151
|
}
|
|
5152
|
-
function
|
|
5152
|
+
function ma(e, n) {
|
|
5153
5153
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
5154
5154
|
return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
|
|
5155
5155
|
` }];
|
|
5156
5156
|
}
|
|
5157
|
-
function
|
|
5157
|
+
function da(e, n) {
|
|
5158
5158
|
const t = n.value ? n.value + `
|
|
5159
5159
|
` : "", r = {}, i = n.lang ? n.lang.split(/\s+/) : [];
|
|
5160
5160
|
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
@@ -5166,7 +5166,7 @@ function ma(e, n) {
|
|
|
5166
5166
|
};
|
|
5167
5167
|
return n.meta && (l.data = { meta: n.meta }), e.patch(n, l), l = e.applyData(n, l), l = { type: "element", tagName: "pre", properties: {}, children: [l] }, e.patch(n, l), l;
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5169
|
+
function ga(e, n) {
|
|
5170
5170
|
const t = {
|
|
5171
5171
|
type: "element",
|
|
5172
5172
|
tagName: "del",
|
|
@@ -5175,7 +5175,7 @@ function da(e, n) {
|
|
|
5175
5175
|
};
|
|
5176
5176
|
return e.patch(n, t), e.applyData(n, t);
|
|
5177
5177
|
}
|
|
5178
|
-
function
|
|
5178
|
+
function ya(e, n) {
|
|
5179
5179
|
const t = {
|
|
5180
5180
|
type: "element",
|
|
5181
5181
|
tagName: "em",
|
|
@@ -5184,7 +5184,7 @@ function ga(e, n) {
|
|
|
5184
5184
|
};
|
|
5185
5185
|
return e.patch(n, t), e.applyData(n, t);
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5187
|
+
function ka(e, n) {
|
|
5188
5188
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Me(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
|
|
5189
5189
|
let o, a = e.footnoteCounts.get(r);
|
|
5190
5190
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -5208,7 +5208,7 @@ function ya(e, n) {
|
|
|
5208
5208
|
};
|
|
5209
5209
|
return e.patch(n, u), e.applyData(n, u);
|
|
5210
5210
|
}
|
|
5211
|
-
function
|
|
5211
|
+
function xa(e, n) {
|
|
5212
5212
|
const t = {
|
|
5213
5213
|
type: "element",
|
|
5214
5214
|
tagName: "h" + n.depth,
|
|
@@ -5217,13 +5217,13 @@ function ka(e, n) {
|
|
|
5217
5217
|
};
|
|
5218
5218
|
return e.patch(n, t), e.applyData(n, t);
|
|
5219
5219
|
}
|
|
5220
|
-
function
|
|
5220
|
+
function ba(e, n) {
|
|
5221
5221
|
if (e.options.allowDangerousHtml) {
|
|
5222
5222
|
const t = { type: "raw", value: n.value };
|
|
5223
5223
|
return e.patch(n, t), e.applyData(n, t);
|
|
5224
5224
|
}
|
|
5225
5225
|
}
|
|
5226
|
-
function
|
|
5226
|
+
function Sr(e, n) {
|
|
5227
5227
|
const t = n.referenceType;
|
|
5228
5228
|
let r = "]";
|
|
5229
5229
|
if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference")
|
|
@@ -5233,22 +5233,22 @@ function br(e, n) {
|
|
|
5233
5233
|
const o = i[i.length - 1];
|
|
5234
5234
|
return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
|
|
5235
5235
|
}
|
|
5236
|
-
function
|
|
5236
|
+
function wa(e, n) {
|
|
5237
5237
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5238
5238
|
if (!r)
|
|
5239
|
-
return
|
|
5239
|
+
return Sr(e, n);
|
|
5240
5240
|
const i = { src: Me(r.url || ""), alt: n.alt };
|
|
5241
5241
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5242
5242
|
const l = { type: "element", tagName: "img", properties: i, children: [] };
|
|
5243
5243
|
return e.patch(n, l), e.applyData(n, l);
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function Sa(e, n) {
|
|
5246
5246
|
const t = { src: Me(n.url) };
|
|
5247
5247
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5248
5248
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5249
5249
|
return e.patch(n, r), e.applyData(n, r);
|
|
5250
5250
|
}
|
|
5251
|
-
function
|
|
5251
|
+
function Ca(e, n) {
|
|
5252
5252
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
|
5253
5253
|
e.patch(n, t);
|
|
5254
5254
|
const r = {
|
|
@@ -5259,10 +5259,10 @@ function Sa(e, n) {
|
|
|
5259
5259
|
};
|
|
5260
5260
|
return e.patch(n, r), e.applyData(n, r);
|
|
5261
5261
|
}
|
|
5262
|
-
function
|
|
5262
|
+
function Ia(e, n) {
|
|
5263
5263
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
5264
5264
|
if (!r)
|
|
5265
|
-
return
|
|
5265
|
+
return Sr(e, n);
|
|
5266
5266
|
const i = { href: Me(r.url || "") };
|
|
5267
5267
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5268
5268
|
const l = {
|
|
@@ -5273,7 +5273,7 @@ function Ca(e, n) {
|
|
|
5273
5273
|
};
|
|
5274
5274
|
return e.patch(n, l), e.applyData(n, l);
|
|
5275
5275
|
}
|
|
5276
|
-
function
|
|
5276
|
+
function Ea(e, n) {
|
|
5277
5277
|
const t = { href: Me(n.url) };
|
|
5278
5278
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
5279
5279
|
const r = {
|
|
@@ -5284,8 +5284,8 @@ function Ia(e, n) {
|
|
|
5284
5284
|
};
|
|
5285
5285
|
return e.patch(n, r), e.applyData(n, r);
|
|
5286
5286
|
}
|
|
5287
|
-
function
|
|
5288
|
-
const r = e.all(n), i = t ?
|
|
5287
|
+
function Aa(e, n, t) {
|
|
5288
|
+
const r = e.all(n), i = t ? Pa(t) : Cr(n), l = {}, o = [];
|
|
5289
5289
|
if (typeof n.checked == "boolean") {
|
|
5290
5290
|
const c = r[0];
|
|
5291
5291
|
let f;
|
|
@@ -5308,22 +5308,22 @@ function Ea(e, n, t) {
|
|
|
5308
5308
|
const u = { type: "element", tagName: "li", properties: l, children: o };
|
|
5309
5309
|
return e.patch(n, u), e.applyData(n, u);
|
|
5310
5310
|
}
|
|
5311
|
-
function
|
|
5311
|
+
function Pa(e) {
|
|
5312
5312
|
let n = !1;
|
|
5313
5313
|
if (e.type === "list") {
|
|
5314
5314
|
n = e.spread || !1;
|
|
5315
5315
|
const t = e.children;
|
|
5316
5316
|
let r = -1;
|
|
5317
5317
|
for (; !n && ++r < t.length; )
|
|
5318
|
-
n =
|
|
5318
|
+
n = Cr(t[r]);
|
|
5319
5319
|
}
|
|
5320
5320
|
return n;
|
|
5321
5321
|
}
|
|
5322
|
-
function
|
|
5322
|
+
function Cr(e) {
|
|
5323
5323
|
const n = e.spread;
|
|
5324
5324
|
return n ?? e.children.length > 1;
|
|
5325
5325
|
}
|
|
5326
|
-
function
|
|
5326
|
+
function Ta(e, n) {
|
|
5327
5327
|
const t = {}, r = e.all(n);
|
|
5328
5328
|
let i = -1;
|
|
5329
5329
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
|
@@ -5341,7 +5341,7 @@ function Pa(e, n) {
|
|
|
5341
5341
|
};
|
|
5342
5342
|
return e.patch(n, l), e.applyData(n, l);
|
|
5343
5343
|
}
|
|
5344
|
-
function
|
|
5344
|
+
function La(e, n) {
|
|
5345
5345
|
const t = {
|
|
5346
5346
|
type: "element",
|
|
5347
5347
|
tagName: "p",
|
|
@@ -5350,11 +5350,11 @@ function Ta(e, n) {
|
|
|
5350
5350
|
};
|
|
5351
5351
|
return e.patch(n, t), e.applyData(n, t);
|
|
5352
5352
|
}
|
|
5353
|
-
function
|
|
5353
|
+
function za(e, n) {
|
|
5354
5354
|
const t = { type: "root", children: e.wrap(e.all(n)) };
|
|
5355
5355
|
return e.patch(n, t), e.applyData(n, t);
|
|
5356
5356
|
}
|
|
5357
|
-
function
|
|
5357
|
+
function _a(e, n) {
|
|
5358
5358
|
const t = {
|
|
5359
5359
|
type: "element",
|
|
5360
5360
|
tagName: "strong",
|
|
@@ -5363,7 +5363,7 @@ function za(e, n) {
|
|
|
5363
5363
|
};
|
|
5364
5364
|
return e.patch(n, t), e.applyData(n, t);
|
|
5365
5365
|
}
|
|
5366
|
-
function
|
|
5366
|
+
function Ma(e, n) {
|
|
5367
5367
|
const t = e.all(n), r = t.shift(), i = [];
|
|
5368
5368
|
if (r) {
|
|
5369
5369
|
const o = {
|
|
@@ -5380,7 +5380,7 @@ function _a(e, n) {
|
|
|
5380
5380
|
tagName: "tbody",
|
|
5381
5381
|
properties: {},
|
|
5382
5382
|
children: e.wrap(t, !0)
|
|
5383
|
-
}, a =
|
|
5383
|
+
}, a = Un(n.children[1]), s = rr(n.children[n.children.length - 1]);
|
|
5384
5384
|
a && s && (o.position = { start: a, end: s }), i.push(o);
|
|
5385
5385
|
}
|
|
5386
5386
|
const l = {
|
|
@@ -5391,7 +5391,7 @@ function _a(e, n) {
|
|
|
5391
5391
|
};
|
|
5392
5392
|
return e.patch(n, l), e.applyData(n, l);
|
|
5393
5393
|
}
|
|
5394
|
-
function
|
|
5394
|
+
function Na(e, n, t) {
|
|
5395
5395
|
const r = t ? t.children : void 0, l = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, a = o ? o.length : n.children.length;
|
|
5396
5396
|
let s = -1;
|
|
5397
5397
|
const u = [];
|
|
@@ -5409,7 +5409,7 @@ function Ma(e, n, t) {
|
|
|
5409
5409
|
};
|
|
5410
5410
|
return e.patch(n, c), e.applyData(n, c);
|
|
5411
5411
|
}
|
|
5412
|
-
function
|
|
5412
|
+
function Ra(e, n) {
|
|
5413
5413
|
const t = {
|
|
5414
5414
|
type: "element",
|
|
5415
5415
|
tagName: "td",
|
|
@@ -5419,37 +5419,37 @@ function Na(e, n) {
|
|
|
5419
5419
|
};
|
|
5420
5420
|
return e.patch(n, t), e.applyData(n, t);
|
|
5421
5421
|
}
|
|
5422
|
-
const
|
|
5423
|
-
function
|
|
5422
|
+
const Lt = 9, zt = 32;
|
|
5423
|
+
function va(e) {
|
|
5424
5424
|
const n = String(e), t = /\r?\n|\r/g;
|
|
5425
5425
|
let r = t.exec(n), i = 0;
|
|
5426
5426
|
const l = [];
|
|
5427
5427
|
for (; r; )
|
|
5428
5428
|
l.push(
|
|
5429
|
-
|
|
5429
|
+
_t(n.slice(i, r.index), i > 0, !0),
|
|
5430
5430
|
r[0]
|
|
5431
5431
|
), i = r.index + r[0].length, r = t.exec(n);
|
|
5432
|
-
return l.push(
|
|
5432
|
+
return l.push(_t(n.slice(i), i > 0, !1)), l.join("");
|
|
5433
5433
|
}
|
|
5434
|
-
function
|
|
5434
|
+
function _t(e, n, t) {
|
|
5435
5435
|
let r = 0, i = e.length;
|
|
5436
5436
|
if (n) {
|
|
5437
5437
|
let l = e.codePointAt(r);
|
|
5438
|
-
for (; l ===
|
|
5438
|
+
for (; l === Lt || l === zt; )
|
|
5439
5439
|
r++, l = e.codePointAt(r);
|
|
5440
5440
|
}
|
|
5441
5441
|
if (t) {
|
|
5442
5442
|
let l = e.codePointAt(i - 1);
|
|
5443
|
-
for (; l ===
|
|
5443
|
+
for (; l === Lt || l === zt; )
|
|
5444
5444
|
i--, l = e.codePointAt(i - 1);
|
|
5445
5445
|
}
|
|
5446
5446
|
return i > r ? e.slice(r, i) : "";
|
|
5447
5447
|
}
|
|
5448
|
-
function
|
|
5449
|
-
const t = { type: "text", value:
|
|
5448
|
+
function Da(e, n) {
|
|
5449
|
+
const t = { type: "text", value: va(String(n.value)) };
|
|
5450
5450
|
return e.patch(n, t), e.applyData(n, t);
|
|
5451
5451
|
}
|
|
5452
|
-
function
|
|
5452
|
+
function Fa(e, n) {
|
|
5453
5453
|
const t = {
|
|
5454
5454
|
type: "element",
|
|
5455
5455
|
tagName: "hr",
|
|
@@ -5459,30 +5459,30 @@ function Da(e, n) {
|
|
|
5459
5459
|
return e.patch(n, t), e.applyData(n, t);
|
|
5460
5460
|
}
|
|
5461
5461
|
const Oa = {
|
|
5462
|
-
blockquote:
|
|
5463
|
-
break:
|
|
5464
|
-
code:
|
|
5465
|
-
delete:
|
|
5466
|
-
emphasis:
|
|
5467
|
-
footnoteReference:
|
|
5468
|
-
heading:
|
|
5469
|
-
html:
|
|
5470
|
-
imageReference:
|
|
5471
|
-
image:
|
|
5472
|
-
inlineCode:
|
|
5473
|
-
linkReference:
|
|
5474
|
-
link:
|
|
5475
|
-
listItem:
|
|
5476
|
-
list:
|
|
5477
|
-
paragraph:
|
|
5462
|
+
blockquote: ha,
|
|
5463
|
+
break: ma,
|
|
5464
|
+
code: da,
|
|
5465
|
+
delete: ga,
|
|
5466
|
+
emphasis: ya,
|
|
5467
|
+
footnoteReference: ka,
|
|
5468
|
+
heading: xa,
|
|
5469
|
+
html: ba,
|
|
5470
|
+
imageReference: wa,
|
|
5471
|
+
image: Sa,
|
|
5472
|
+
inlineCode: Ca,
|
|
5473
|
+
linkReference: Ia,
|
|
5474
|
+
link: Ea,
|
|
5475
|
+
listItem: Aa,
|
|
5476
|
+
list: Ta,
|
|
5477
|
+
paragraph: La,
|
|
5478
5478
|
// @ts-expect-error: root is different, but hard to type.
|
|
5479
|
-
root:
|
|
5480
|
-
strong:
|
|
5481
|
-
table:
|
|
5482
|
-
tableCell:
|
|
5483
|
-
tableRow:
|
|
5484
|
-
text:
|
|
5485
|
-
thematicBreak:
|
|
5479
|
+
root: za,
|
|
5480
|
+
strong: _a,
|
|
5481
|
+
table: Ma,
|
|
5482
|
+
tableCell: Ra,
|
|
5483
|
+
tableRow: Na,
|
|
5484
|
+
text: Da,
|
|
5485
|
+
thematicBreak: Fa,
|
|
5486
5486
|
toml: Qe,
|
|
5487
5487
|
yaml: Qe,
|
|
5488
5488
|
definition: Qe,
|
|
@@ -5490,7 +5490,7 @@ const Oa = {
|
|
|
5490
5490
|
};
|
|
5491
5491
|
function Qe() {
|
|
5492
5492
|
}
|
|
5493
|
-
function
|
|
5493
|
+
function Ba(e, n) {
|
|
5494
5494
|
const t = [{ type: "text", value: "↩" }];
|
|
5495
5495
|
return n > 1 && t.push({
|
|
5496
5496
|
type: "element",
|
|
@@ -5499,11 +5499,11 @@ function Fa(e, n) {
|
|
|
5499
5499
|
children: [{ type: "text", value: String(n) }]
|
|
5500
5500
|
}), t;
|
|
5501
5501
|
}
|
|
5502
|
-
function
|
|
5502
|
+
function Ua(e, n) {
|
|
5503
5503
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
|
5504
5504
|
}
|
|
5505
|
-
function
|
|
5506
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
|
5505
|
+
function ja(e) {
|
|
5506
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Ba, r = e.options.footnoteBackLabel || Ua, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
|
|
5507
5507
|
className: ["sr-only"]
|
|
5508
5508
|
}, a = [];
|
|
5509
5509
|
let s = -1;
|
|
@@ -5555,7 +5555,7 @@ function Ua(e) {
|
|
|
5555
5555
|
type: "element",
|
|
5556
5556
|
tagName: l,
|
|
5557
5557
|
properties: {
|
|
5558
|
-
...
|
|
5558
|
+
...be(o),
|
|
5559
5559
|
id: "footnote-label"
|
|
5560
5560
|
},
|
|
5561
5561
|
children: [{ type: "text", value: i }]
|
|
@@ -5573,11 +5573,11 @@ function Ua(e) {
|
|
|
5573
5573
|
]
|
|
5574
5574
|
};
|
|
5575
5575
|
}
|
|
5576
|
-
const Pn = {}.hasOwnProperty,
|
|
5577
|
-
function
|
|
5578
|
-
const t = n ||
|
|
5576
|
+
const Pn = {}.hasOwnProperty, $a = {};
|
|
5577
|
+
function Ha(e, n) {
|
|
5578
|
+
const t = n || $a, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...Oa, ...t.handlers }, a = {
|
|
5579
5579
|
all: u,
|
|
5580
|
-
applyData:
|
|
5580
|
+
applyData: qa,
|
|
5581
5581
|
definitionById: r,
|
|
5582
5582
|
footnoteById: i,
|
|
5583
5583
|
footnoteCounts: l,
|
|
@@ -5585,10 +5585,10 @@ function $a(e, n) {
|
|
|
5585
5585
|
handlers: o,
|
|
5586
5586
|
one: s,
|
|
5587
5587
|
options: t,
|
|
5588
|
-
patch:
|
|
5589
|
-
wrap:
|
|
5588
|
+
patch: Va,
|
|
5589
|
+
wrap: Xa
|
|
5590
5590
|
};
|
|
5591
|
-
return
|
|
5591
|
+
return we(e, function(c) {
|
|
5592
5592
|
if (c.type === "definition" || c.type === "footnoteDefinition") {
|
|
5593
5593
|
const f = c.type === "definition" ? r : i, d = String(c.identifier).toUpperCase();
|
|
5594
5594
|
f.has(d) || f.set(d, c);
|
|
@@ -5600,12 +5600,12 @@ function $a(e, n) {
|
|
|
5600
5600
|
return p(a, c, f);
|
|
5601
5601
|
if (a.options.passThrough && a.options.passThrough.includes(d)) {
|
|
5602
5602
|
if ("children" in c) {
|
|
5603
|
-
const { children: S, ...E } = c, k =
|
|
5603
|
+
const { children: S, ...E } = c, k = be(E);
|
|
5604
5604
|
return k.children = a.all(c), k;
|
|
5605
5605
|
}
|
|
5606
|
-
return
|
|
5606
|
+
return be(c);
|
|
5607
5607
|
}
|
|
5608
|
-
return (a.options.unknownHandler ||
|
|
5608
|
+
return (a.options.unknownHandler || Wa)(a, c, f);
|
|
5609
5609
|
}
|
|
5610
5610
|
function u(c) {
|
|
5611
5611
|
const f = [];
|
|
@@ -5615,9 +5615,9 @@ function $a(e, n) {
|
|
|
5615
5615
|
for (; ++p < d.length; ) {
|
|
5616
5616
|
const b = a.one(d[p], c);
|
|
5617
5617
|
if (b) {
|
|
5618
|
-
if (p && d[p - 1].type === "break" && (!Array.isArray(b) && b.type === "text" && (b.value =
|
|
5618
|
+
if (p && d[p - 1].type === "break" && (!Array.isArray(b) && b.type === "text" && (b.value = Mt(b.value)), !Array.isArray(b) && b.type === "element")) {
|
|
5619
5619
|
const S = b.children[0];
|
|
5620
|
-
S && S.type === "text" && (S.value =
|
|
5620
|
+
S && S.type === "text" && (S.value = Mt(S.value));
|
|
5621
5621
|
}
|
|
5622
5622
|
Array.isArray(b) ? f.push(...b) : f.push(b);
|
|
5623
5623
|
}
|
|
@@ -5626,10 +5626,10 @@ function $a(e, n) {
|
|
|
5626
5626
|
return f;
|
|
5627
5627
|
}
|
|
5628
5628
|
}
|
|
5629
|
-
function
|
|
5629
|
+
function Va(e, n) {
|
|
5630
5630
|
e.position && (n.position = Oi(e));
|
|
5631
5631
|
}
|
|
5632
|
-
function
|
|
5632
|
+
function qa(e, n) {
|
|
5633
5633
|
let t = n;
|
|
5634
5634
|
if (e && e.data) {
|
|
5635
5635
|
const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
|
|
@@ -5640,11 +5640,11 @@ function Va(e, n) {
|
|
|
5640
5640
|
const o = "children" in t ? t.children : [t];
|
|
5641
5641
|
t = { type: "element", tagName: r, properties: {}, children: o };
|
|
5642
5642
|
}
|
|
5643
|
-
t.type === "element" && l && Object.assign(t.properties,
|
|
5643
|
+
t.type === "element" && l && Object.assign(t.properties, be(l)), "children" in t && t.children && i !== null && i !== void 0 && (t.children = i);
|
|
5644
5644
|
}
|
|
5645
5645
|
return t;
|
|
5646
5646
|
}
|
|
5647
|
-
function
|
|
5647
|
+
function Wa(e, n) {
|
|
5648
5648
|
const t = n.data || {}, r = "value" in n && !(Pn.call(t, "hProperties") || Pn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
|
|
5649
5649
|
type: "element",
|
|
5650
5650
|
tagName: "div",
|
|
@@ -5653,7 +5653,7 @@ function qa(e, n) {
|
|
|
5653
5653
|
};
|
|
5654
5654
|
return e.patch(n, r), e.applyData(n, r);
|
|
5655
5655
|
}
|
|
5656
|
-
function
|
|
5656
|
+
function Xa(e, n) {
|
|
5657
5657
|
const t = [];
|
|
5658
5658
|
let r = -1;
|
|
5659
5659
|
for (n && t.push({ type: "text", value: `
|
|
@@ -5663,39 +5663,39 @@ function Wa(e, n) {
|
|
|
5663
5663
|
return n && e.length > 0 && t.push({ type: "text", value: `
|
|
5664
5664
|
` }), t;
|
|
5665
5665
|
}
|
|
5666
|
-
function
|
|
5666
|
+
function Mt(e) {
|
|
5667
5667
|
let n = 0, t = e.charCodeAt(n);
|
|
5668
5668
|
for (; t === 9 || t === 32; )
|
|
5669
5669
|
n++, t = e.charCodeAt(n);
|
|
5670
5670
|
return e.slice(n);
|
|
5671
5671
|
}
|
|
5672
|
-
function
|
|
5673
|
-
const t =
|
|
5672
|
+
function Nt(e, n) {
|
|
5673
|
+
const t = Ha(e, n), r = t.one(e, void 0), i = ja(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5674
5674
|
return i && l.children.push({ type: "text", value: `
|
|
5675
5675
|
` }, i), l;
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5677
|
+
function Ya(e, n) {
|
|
5678
5678
|
return e && "run" in e ? async function(t, r) {
|
|
5679
5679
|
const i = (
|
|
5680
5680
|
/** @type {HastRoot} */
|
|
5681
|
-
|
|
5681
|
+
Nt(t, { file: r, ...n })
|
|
5682
5682
|
);
|
|
5683
5683
|
await e.run(i, r);
|
|
5684
5684
|
} : function(t, r) {
|
|
5685
5685
|
return (
|
|
5686
5686
|
/** @type {HastRoot} */
|
|
5687
|
-
|
|
5687
|
+
Nt(t, { file: r, ...e || n })
|
|
5688
5688
|
);
|
|
5689
5689
|
};
|
|
5690
5690
|
}
|
|
5691
|
-
function
|
|
5691
|
+
function Rt(e) {
|
|
5692
5692
|
if (e)
|
|
5693
5693
|
throw e;
|
|
5694
5694
|
}
|
|
5695
|
-
var fn,
|
|
5696
|
-
function
|
|
5697
|
-
if (
|
|
5698
|
-
|
|
5695
|
+
var fn, vt;
|
|
5696
|
+
function Ga() {
|
|
5697
|
+
if (vt) return fn;
|
|
5698
|
+
vt = 1;
|
|
5699
5699
|
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
5700
5700
|
return typeof Array.isArray == "function" ? Array.isArray(u) : n.call(u) === "[object Array]";
|
|
5701
5701
|
}, l = function(u) {
|
|
@@ -5732,15 +5732,15 @@ function Ya() {
|
|
|
5732
5732
|
return S;
|
|
5733
5733
|
}, fn;
|
|
5734
5734
|
}
|
|
5735
|
-
var
|
|
5736
|
-
const pn = /* @__PURE__ */
|
|
5735
|
+
var Ka = /* @__PURE__ */ Ga();
|
|
5736
|
+
const pn = /* @__PURE__ */ $t(Ka);
|
|
5737
5737
|
function Tn(e) {
|
|
5738
5738
|
if (typeof e != "object" || e === null)
|
|
5739
5739
|
return !1;
|
|
5740
5740
|
const n = Object.getPrototypeOf(e);
|
|
5741
5741
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5742
5742
|
}
|
|
5743
|
-
function
|
|
5743
|
+
function Qa() {
|
|
5744
5744
|
const e = [], n = { run: t, use: r };
|
|
5745
5745
|
return n;
|
|
5746
5746
|
function t(...i) {
|
|
@@ -5758,7 +5758,7 @@ function Ka() {
|
|
|
5758
5758
|
}
|
|
5759
5759
|
for (; ++f < i.length; )
|
|
5760
5760
|
(u[f] === null || u[f] === void 0) && (u[f] = i[f]);
|
|
5761
|
-
i = u, c ?
|
|
5761
|
+
i = u, c ? Ja(c, a)(...u) : o(null, ...u);
|
|
5762
5762
|
}
|
|
5763
5763
|
}
|
|
5764
5764
|
function r(i) {
|
|
@@ -5769,7 +5769,7 @@ function Ka() {
|
|
|
5769
5769
|
return e.push(i), n;
|
|
5770
5770
|
}
|
|
5771
5771
|
}
|
|
5772
|
-
function
|
|
5772
|
+
function Ja(e, n) {
|
|
5773
5773
|
let t;
|
|
5774
5774
|
return r;
|
|
5775
5775
|
function r(...o) {
|
|
@@ -5796,8 +5796,8 @@ function Qa(e, n) {
|
|
|
5796
5796
|
i(null, o);
|
|
5797
5797
|
}
|
|
5798
5798
|
}
|
|
5799
|
-
const ae = { basename:
|
|
5800
|
-
function
|
|
5799
|
+
const ae = { basename: Za, dirname: eu, extname: nu, join: tu, sep: "/" };
|
|
5800
|
+
function Za(e, n) {
|
|
5801
5801
|
if (n !== void 0 && typeof n != "string")
|
|
5802
5802
|
throw new TypeError('"ext" argument must be a string');
|
|
5803
5803
|
Ye(e);
|
|
@@ -5825,7 +5825,7 @@ function Ja(e, n) {
|
|
|
5825
5825
|
o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
|
|
5826
5826
|
return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
|
|
5827
5827
|
}
|
|
5828
|
-
function
|
|
5828
|
+
function eu(e) {
|
|
5829
5829
|
if (Ye(e), e.length === 0)
|
|
5830
5830
|
return ".";
|
|
5831
5831
|
let n = -1, t = e.length, r;
|
|
@@ -5838,7 +5838,7 @@ function Za(e) {
|
|
|
5838
5838
|
} else r || (r = !0);
|
|
5839
5839
|
return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
|
|
5840
5840
|
}
|
|
5841
|
-
function
|
|
5841
|
+
function nu(e) {
|
|
5842
5842
|
Ye(e);
|
|
5843
5843
|
let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
|
|
5844
5844
|
for (; n--; ) {
|
|
@@ -5856,19 +5856,19 @@ function eu(e) {
|
|
|
5856
5856
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5857
5857
|
l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
|
|
5858
5858
|
}
|
|
5859
|
-
function
|
|
5859
|
+
function tu(...e) {
|
|
5860
5860
|
let n = -1, t;
|
|
5861
5861
|
for (; ++n < e.length; )
|
|
5862
5862
|
Ye(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
|
|
5863
|
-
return t === void 0 ? "." :
|
|
5863
|
+
return t === void 0 ? "." : ru(t);
|
|
5864
5864
|
}
|
|
5865
|
-
function
|
|
5865
|
+
function ru(e) {
|
|
5866
5866
|
Ye(e);
|
|
5867
5867
|
const n = e.codePointAt(0) === 47;
|
|
5868
|
-
let t =
|
|
5868
|
+
let t = iu(e, !n);
|
|
5869
5869
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
|
5870
5870
|
}
|
|
5871
|
-
function
|
|
5871
|
+
function iu(e, n) {
|
|
5872
5872
|
let t = "", r = 0, i = -1, l = 0, o = -1, a, s;
|
|
5873
5873
|
for (; ++o <= e.length; ) {
|
|
5874
5874
|
if (o < e.length)
|
|
@@ -5905,15 +5905,15 @@ function Ye(e) {
|
|
|
5905
5905
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5906
5906
|
);
|
|
5907
5907
|
}
|
|
5908
|
-
const
|
|
5909
|
-
function
|
|
5908
|
+
const lu = { cwd: ou };
|
|
5909
|
+
function ou() {
|
|
5910
5910
|
return "/";
|
|
5911
5911
|
}
|
|
5912
5912
|
function Ln(e) {
|
|
5913
5913
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5914
5914
|
e.auth === void 0);
|
|
5915
5915
|
}
|
|
5916
|
-
function
|
|
5916
|
+
function au(e) {
|
|
5917
5917
|
if (typeof e == "string")
|
|
5918
5918
|
e = new URL(e);
|
|
5919
5919
|
else if (!Ln(e)) {
|
|
@@ -5926,9 +5926,9 @@ function ou(e) {
|
|
|
5926
5926
|
const n = new TypeError("The URL must be of scheme file");
|
|
5927
5927
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
|
5928
5928
|
}
|
|
5929
|
-
return
|
|
5929
|
+
return uu(e);
|
|
5930
5930
|
}
|
|
5931
|
-
function
|
|
5931
|
+
function uu(e) {
|
|
5932
5932
|
if (e.hostname !== "") {
|
|
5933
5933
|
const r = new TypeError(
|
|
5934
5934
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5960,7 +5960,7 @@ const hn = (
|
|
|
5960
5960
|
"dirname"
|
|
5961
5961
|
]
|
|
5962
5962
|
);
|
|
5963
|
-
class
|
|
5963
|
+
class su {
|
|
5964
5964
|
/**
|
|
5965
5965
|
* Create a new virtual file.
|
|
5966
5966
|
*
|
|
@@ -5985,7 +5985,7 @@ class uu {
|
|
|
5985
5985
|
*/
|
|
5986
5986
|
constructor(n) {
|
|
5987
5987
|
let t;
|
|
5988
|
-
n ? Ln(n) ? t = { path: n } : typeof n == "string" ||
|
|
5988
|
+
n ? Ln(n) ? t = { path: n } : typeof n == "string" || cu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : lu.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5989
5989
|
let r = -1;
|
|
5990
5990
|
for (; ++r < hn.length; ) {
|
|
5991
5991
|
const l = hn[r];
|
|
@@ -6039,7 +6039,7 @@ class uu {
|
|
|
6039
6039
|
* Nothing.
|
|
6040
6040
|
*/
|
|
6041
6041
|
set dirname(n) {
|
|
6042
|
-
|
|
6042
|
+
Dt(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
|
|
6043
6043
|
}
|
|
6044
6044
|
/**
|
|
6045
6045
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -6063,7 +6063,7 @@ class uu {
|
|
|
6063
6063
|
* Nothing.
|
|
6064
6064
|
*/
|
|
6065
6065
|
set extname(n) {
|
|
6066
|
-
if (mn(n, "extname"),
|
|
6066
|
+
if (mn(n, "extname"), Dt(this.dirname, "extname"), n) {
|
|
6067
6067
|
if (n.codePointAt(0) !== 46)
|
|
6068
6068
|
throw new Error("`extname` must start with `.`");
|
|
6069
6069
|
if (n.includes(".", 1))
|
|
@@ -6093,7 +6093,7 @@ class uu {
|
|
|
6093
6093
|
* Nothing.
|
|
6094
6094
|
*/
|
|
6095
6095
|
set path(n) {
|
|
6096
|
-
Ln(n) && (n =
|
|
6096
|
+
Ln(n) && (n = au(n)), dn(n, "path"), this.path !== n && this.history.push(n);
|
|
6097
6097
|
}
|
|
6098
6098
|
/**
|
|
6099
6099
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6340,14 +6340,14 @@ function dn(e, n) {
|
|
|
6340
6340
|
if (!e)
|
|
6341
6341
|
throw new Error("`" + n + "` cannot be empty");
|
|
6342
6342
|
}
|
|
6343
|
-
function
|
|
6343
|
+
function Dt(e, n) {
|
|
6344
6344
|
if (!e)
|
|
6345
6345
|
throw new Error("Setting `" + n + "` requires `path` to be set too");
|
|
6346
6346
|
}
|
|
6347
|
-
function
|
|
6347
|
+
function cu(e) {
|
|
6348
6348
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6349
6349
|
}
|
|
6350
|
-
const
|
|
6350
|
+
const fu = (
|
|
6351
6351
|
/**
|
|
6352
6352
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6353
6353
|
*/
|
|
@@ -6368,13 +6368,13 @@ const cu = (
|
|
|
6368
6368
|
};
|
|
6369
6369
|
return Object.setPrototypeOf(l, r), l;
|
|
6370
6370
|
})
|
|
6371
|
-
),
|
|
6372
|
-
class
|
|
6371
|
+
), pu = {}.hasOwnProperty;
|
|
6372
|
+
class Xn extends fu {
|
|
6373
6373
|
/**
|
|
6374
6374
|
* Create a processor.
|
|
6375
6375
|
*/
|
|
6376
6376
|
constructor() {
|
|
6377
|
-
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 =
|
|
6377
|
+
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 = Qa();
|
|
6378
6378
|
}
|
|
6379
6379
|
/**
|
|
6380
6380
|
* Copy a processor.
|
|
@@ -6390,7 +6390,7 @@ class qn extends cu {
|
|
|
6390
6390
|
copy() {
|
|
6391
6391
|
const n = (
|
|
6392
6392
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
6393
|
-
new
|
|
6393
|
+
new Xn()
|
|
6394
6394
|
);
|
|
6395
6395
|
let t = -1;
|
|
6396
6396
|
for (; ++t < this.attachers.length; ) {
|
|
@@ -6459,7 +6459,7 @@ class qn extends cu {
|
|
|
6459
6459
|
* the entire dataset when getting without key.
|
|
6460
6460
|
*/
|
|
6461
6461
|
data(n, t) {
|
|
6462
|
-
return typeof n == "string" ? arguments.length === 2 ? (kn("data", this.frozen), this.namespace[n] = t, this) :
|
|
6462
|
+
return typeof n == "string" ? arguments.length === 2 ? (kn("data", this.frozen), this.namespace[n] = t, this) : pu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (kn("data", this.frozen), this.namespace = n, this) : this.namespace;
|
|
6463
6463
|
}
|
|
6464
6464
|
/**
|
|
6465
6465
|
* Freeze a processor.
|
|
@@ -6574,7 +6574,7 @@ class qn extends cu {
|
|
|
6574
6574
|
/** @type {unknown} */
|
|
6575
6575
|
f
|
|
6576
6576
|
), b = r.stringify(p, d);
|
|
6577
|
-
|
|
6577
|
+
du(b) ? d.value = b : d.result = b, u(
|
|
6578
6578
|
c,
|
|
6579
6579
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6580
6580
|
d
|
|
@@ -6618,9 +6618,9 @@ class qn extends cu {
|
|
|
6618
6618
|
*/
|
|
6619
6619
|
processSync(n) {
|
|
6620
6620
|
let t = !1, r;
|
|
6621
|
-
return this.freeze(), gn("processSync", this.parser || this.Parser), yn("processSync", this.compiler || this.Compiler), this.process(n, i),
|
|
6621
|
+
return this.freeze(), gn("processSync", this.parser || this.Parser), yn("processSync", this.compiler || this.Compiler), this.process(n, i), Ot("processSync", "process", t), r;
|
|
6622
6622
|
function i(l, o) {
|
|
6623
|
-
t = !0,
|
|
6623
|
+
t = !0, Rt(l), r = o;
|
|
6624
6624
|
}
|
|
6625
6625
|
}
|
|
6626
6626
|
/**
|
|
@@ -6662,7 +6662,7 @@ class qn extends cu {
|
|
|
6662
6662
|
* transformed tree.
|
|
6663
6663
|
*/
|
|
6664
6664
|
run(n, t, r) {
|
|
6665
|
-
|
|
6665
|
+
Ft(n), this.freeze();
|
|
6666
6666
|
const i = this.transformers;
|
|
6667
6667
|
return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
|
|
6668
6668
|
function l(o, a) {
|
|
@@ -6696,9 +6696,9 @@ class qn extends cu {
|
|
|
6696
6696
|
*/
|
|
6697
6697
|
runSync(n, t) {
|
|
6698
6698
|
let r = !1, i;
|
|
6699
|
-
return this.run(n, t, l),
|
|
6699
|
+
return this.run(n, t, l), Ot("runSync", "run", r), i;
|
|
6700
6700
|
function l(o, a) {
|
|
6701
|
-
|
|
6701
|
+
Rt(o), i = a, r = !0;
|
|
6702
6702
|
}
|
|
6703
6703
|
}
|
|
6704
6704
|
/**
|
|
@@ -6733,7 +6733,7 @@ class qn extends cu {
|
|
|
6733
6733
|
stringify(n, t) {
|
|
6734
6734
|
this.freeze();
|
|
6735
6735
|
const r = Je(t), i = this.compiler || this.Compiler;
|
|
6736
|
-
return yn("stringify", i),
|
|
6736
|
+
return yn("stringify", i), Ft(n), i(n, r);
|
|
6737
6737
|
}
|
|
6738
6738
|
/**
|
|
6739
6739
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6850,7 +6850,7 @@ class qn extends cu {
|
|
|
6850
6850
|
}
|
|
6851
6851
|
}
|
|
6852
6852
|
}
|
|
6853
|
-
const
|
|
6853
|
+
const hu = new Xn().freeze();
|
|
6854
6854
|
function gn(e, n) {
|
|
6855
6855
|
if (typeof n != "function")
|
|
6856
6856
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -6865,38 +6865,105 @@ function kn(e, n) {
|
|
|
6865
6865
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6866
6866
|
);
|
|
6867
6867
|
}
|
|
6868
|
-
function
|
|
6868
|
+
function Ft(e) {
|
|
6869
6869
|
if (!Tn(e) || typeof e.type != "string")
|
|
6870
6870
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
6871
6871
|
}
|
|
6872
|
-
function
|
|
6872
|
+
function Ot(e, n, t) {
|
|
6873
6873
|
if (!t)
|
|
6874
6874
|
throw new Error(
|
|
6875
6875
|
"`" + e + "` finished async. Use `" + n + "` instead"
|
|
6876
6876
|
);
|
|
6877
6877
|
}
|
|
6878
6878
|
function Je(e) {
|
|
6879
|
-
return
|
|
6880
|
-
}
|
|
6881
|
-
function hu(e) {
|
|
6882
|
-
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6879
|
+
return mu(e) ? e : new su(e);
|
|
6883
6880
|
}
|
|
6884
6881
|
function mu(e) {
|
|
6885
|
-
return typeof e == "
|
|
6882
|
+
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6886
6883
|
}
|
|
6887
6884
|
function du(e) {
|
|
6885
|
+
return typeof e == "string" || gu(e);
|
|
6886
|
+
}
|
|
6887
|
+
function gu(e) {
|
|
6888
6888
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6889
6889
|
}
|
|
6890
|
-
const
|
|
6890
|
+
const yu = (e, n) => {
|
|
6891
|
+
if (!e)
|
|
6892
|
+
return "image";
|
|
6893
|
+
if (e.startsWith("data:")) {
|
|
6894
|
+
const r = e.match(/^data:image\/(\w+)/)?.[1] || "png";
|
|
6895
|
+
return `${n?.replace(/[^a-zA-Z0-9-_]/g, "_") || "image"}.${r}`;
|
|
6896
|
+
}
|
|
6897
|
+
try {
|
|
6898
|
+
const i = new URL(e).pathname.split("/").pop();
|
|
6899
|
+
if (i && i.includes("."))
|
|
6900
|
+
return i;
|
|
6901
|
+
} catch {
|
|
6902
|
+
const t = e.split("/").pop();
|
|
6903
|
+
if (t && t.includes("."))
|
|
6904
|
+
return t;
|
|
6905
|
+
}
|
|
6906
|
+
return n?.replace(/[^a-zA-Z0-9-_]/g, "_") || "image";
|
|
6907
|
+
}, ku = ({ src: e, alt: n, ...t }) => {
|
|
6908
|
+
const r = yu(e, n), i = Mn(
|
|
6909
|
+
async (l) => {
|
|
6910
|
+
if (e) {
|
|
6911
|
+
if (Ht() && !e.startsWith("data:")) {
|
|
6912
|
+
l.preventDefault(), l.stopPropagation();
|
|
6913
|
+
try {
|
|
6914
|
+
const { openUrl: o } = await import(
|
|
6915
|
+
/* webpackChunkName: "tauri-plugin-opener" */
|
|
6916
|
+
"./index.CB_Hw3XI.js"
|
|
6917
|
+
);
|
|
6918
|
+
await o(e);
|
|
6919
|
+
} catch (o) {
|
|
6920
|
+
console.error("Failed to open URL in Tauri:", o), Bt(e, r);
|
|
6921
|
+
}
|
|
6922
|
+
return;
|
|
6923
|
+
}
|
|
6924
|
+
e.startsWith("data:") && (l.preventDefault(), Bt(e, r));
|
|
6925
|
+
}
|
|
6926
|
+
},
|
|
6927
|
+
[e, r]
|
|
6928
|
+
);
|
|
6929
|
+
return e ? /* @__PURE__ */ _n("span", { className: "inline-block", children: [
|
|
6930
|
+
/* @__PURE__ */ ge(
|
|
6931
|
+
"img",
|
|
6932
|
+
{
|
|
6933
|
+
src: e,
|
|
6934
|
+
alt: n || "",
|
|
6935
|
+
className: "rounded max-w-full",
|
|
6936
|
+
...t
|
|
6937
|
+
}
|
|
6938
|
+
),
|
|
6939
|
+
/* @__PURE__ */ ge(
|
|
6940
|
+
"a",
|
|
6941
|
+
{
|
|
6942
|
+
href: e,
|
|
6943
|
+
target: "_blank",
|
|
6944
|
+
rel: "noopener noreferrer",
|
|
6945
|
+
download: n || r,
|
|
6946
|
+
onClick: i,
|
|
6947
|
+
className: "text-xs block mt-1",
|
|
6948
|
+
children: "View Image (full resolution)"
|
|
6949
|
+
}
|
|
6950
|
+
)
|
|
6951
|
+
] }) : null;
|
|
6952
|
+
};
|
|
6953
|
+
function Bt(e, n) {
|
|
6954
|
+
const t = document.createElement("a");
|
|
6955
|
+
t.href = e, t.download = n, document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
6956
|
+
}
|
|
6957
|
+
const xu = ({
|
|
6891
6958
|
href: e,
|
|
6892
6959
|
target: n,
|
|
6893
6960
|
rel: t,
|
|
6894
6961
|
children: r,
|
|
6895
6962
|
...i
|
|
6896
6963
|
}) => {
|
|
6897
|
-
const l =
|
|
6964
|
+
const l = Mn(
|
|
6898
6965
|
async (o) => {
|
|
6899
|
-
if (
|
|
6966
|
+
if (Ht() && e && bu(e)) {
|
|
6900
6967
|
o.preventDefault(), o.stopPropagation();
|
|
6901
6968
|
try {
|
|
6902
6969
|
const { openUrl: a } = await import(
|
|
@@ -6911,9 +6978,9 @@ const gu = ({
|
|
|
6911
6978
|
},
|
|
6912
6979
|
[e, n]
|
|
6913
6980
|
);
|
|
6914
|
-
return /* @__PURE__ */
|
|
6981
|
+
return /* @__PURE__ */ ge("a", { href: e, target: n, rel: t, onClick: l, ...i, children: r });
|
|
6915
6982
|
};
|
|
6916
|
-
function
|
|
6983
|
+
function bu(e) {
|
|
6917
6984
|
try {
|
|
6918
6985
|
return new URL(e, window.location.href).origin !== window.location.origin;
|
|
6919
6986
|
} catch {
|
|
@@ -6925,20 +6992,20 @@ const zn = (e) => {
|
|
|
6925
6992
|
return !1;
|
|
6926
6993
|
const t = e.props?.children;
|
|
6927
6994
|
return t == null ? !1 : typeof t == "string" ? t.trim().length > 0 : typeof t == "number" ? !0 : Array.isArray(t) ? t.some((r) => typeof r == "string" ? r.trim().length > 0 : typeof r == "number" ? !0 : r && typeof r == "object" && "props" in r ? zn(r) : !1) : typeof t == "object" && "props" in t ? zn(t) : !1;
|
|
6928
|
-
},
|
|
6995
|
+
}, wu = /(!?\[)([^\]]*?)$/, Su = /(\*\*)([^*]*?)$/, Cu = /(__)([^_]*?)$/, Iu = /(\*\*\*)([^*]*?)$/, Eu = /(\*)([^*]*?)$/, Au = /(_)([^_]*?)$/, Pu = /(`)([^`]*?)$/, Tu = /(~~)([^~]*?)$/, Lu = /\n[\t ]*(?:[-*+]|\d+\.)[\t ]+$/, zu = /(\n[\t ]*)([-*+]|\d+\.)([\t ]*)\n([\t ]*[^\s])/g, _u = (e) => {
|
|
6929
6996
|
let n = e;
|
|
6930
6997
|
n = n.replace(
|
|
6931
|
-
|
|
6998
|
+
zu,
|
|
6932
6999
|
(r, i, l, o, a) => `${i}${l} ${a}`
|
|
6933
7000
|
);
|
|
6934
|
-
const t = n.match(
|
|
7001
|
+
const t = n.match(Lu);
|
|
6935
7002
|
return t ? n.substring(0, n.length - t[0].length) : n;
|
|
6936
|
-
},
|
|
7003
|
+
}, Yn = (e) => {
|
|
6937
7004
|
const n = (e.match(/```/g) || []).length;
|
|
6938
7005
|
return n > 0 && n % 2 === 0 && e.includes(`
|
|
6939
7006
|
`);
|
|
6940
|
-
},
|
|
6941
|
-
const n = e.match(
|
|
7007
|
+
}, Mu = (e) => {
|
|
7008
|
+
const n = e.match(wu);
|
|
6942
7009
|
if (n) {
|
|
6943
7010
|
if (n[1].startsWith("!")) {
|
|
6944
7011
|
const r = e.lastIndexOf(n[0]);
|
|
@@ -6947,8 +7014,8 @@ const zn = (e) => {
|
|
|
6947
7014
|
return `${e}](placeholder:incomplete-link)`;
|
|
6948
7015
|
}
|
|
6949
7016
|
return e;
|
|
6950
|
-
},
|
|
6951
|
-
const n = e.match(
|
|
7017
|
+
}, Nu = (e) => {
|
|
7018
|
+
const n = e.match(Su);
|
|
6952
7019
|
if (n) {
|
|
6953
7020
|
const t = n[2];
|
|
6954
7021
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
@@ -6962,8 +7029,8 @@ const zn = (e) => {
|
|
|
6962
7029
|
return `${e}**`;
|
|
6963
7030
|
}
|
|
6964
7031
|
return e;
|
|
6965
|
-
},
|
|
6966
|
-
const n = e.match(
|
|
7032
|
+
}, Ru = (e) => {
|
|
7033
|
+
const n = e.match(Cu);
|
|
6967
7034
|
if (n) {
|
|
6968
7035
|
const t = n[2];
|
|
6969
7036
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
@@ -6977,7 +7044,7 @@ const zn = (e) => {
|
|
|
6977
7044
|
return `${e}__`;
|
|
6978
7045
|
}
|
|
6979
7046
|
return e;
|
|
6980
|
-
},
|
|
7047
|
+
}, vu = (e) => {
|
|
6981
7048
|
let n = 0, t = !1, r = 0;
|
|
6982
7049
|
for (let i = 0; i < e.length; i++) {
|
|
6983
7050
|
const l = e[i];
|
|
@@ -7004,14 +7071,14 @@ const zn = (e) => {
|
|
|
7004
7071
|
}
|
|
7005
7072
|
}
|
|
7006
7073
|
return n;
|
|
7007
|
-
},
|
|
7008
|
-
if (
|
|
7074
|
+
}, Du = (e) => {
|
|
7075
|
+
if (Yn(e))
|
|
7009
7076
|
return e;
|
|
7010
|
-
if (e.match(
|
|
7077
|
+
if (e.match(Eu)) {
|
|
7011
7078
|
let t = -1;
|
|
7012
7079
|
for (let l = 0; l < e.length; l++)
|
|
7013
7080
|
if (e[l] === "*" && e[l - 1] !== "*" && e[l + 1] !== "*") {
|
|
7014
|
-
if (
|
|
7081
|
+
if (Ir(e, l))
|
|
7015
7082
|
continue;
|
|
7016
7083
|
t = l;
|
|
7017
7084
|
break;
|
|
@@ -7023,11 +7090,11 @@ const zn = (e) => {
|
|
|
7023
7090
|
);
|
|
7024
7091
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
7025
7092
|
return e;
|
|
7026
|
-
if (
|
|
7093
|
+
if (vu(e) % 2 === 1)
|
|
7027
7094
|
return `${e}*`;
|
|
7028
7095
|
}
|
|
7029
7096
|
return e;
|
|
7030
|
-
},
|
|
7097
|
+
}, Fu = (e, n) => {
|
|
7031
7098
|
let t = !1, r = !1;
|
|
7032
7099
|
for (let i = 0; i < e.length && i < n; i++) {
|
|
7033
7100
|
if (e[i] === "\\" && e[i + 1] === "$") {
|
|
@@ -7040,7 +7107,7 @@ const zn = (e) => {
|
|
|
7040
7107
|
}, ln = (e, n) => {
|
|
7041
7108
|
const t = e.substring(n, n + 3) === "```", r = n > 0 && e.substring(n - 1, n + 2) === "```", i = n > 1 && e.substring(n - 2, n + 1) === "```";
|
|
7042
7109
|
return t || r || i;
|
|
7043
|
-
},
|
|
7110
|
+
}, Ir = (e, n) => {
|
|
7044
7111
|
let t = !1;
|
|
7045
7112
|
for (let r = 0; r < e.length && r < n; r++)
|
|
7046
7113
|
if (e[r] === "`") {
|
|
@@ -7049,7 +7116,7 @@ const zn = (e) => {
|
|
|
7049
7116
|
t = !t;
|
|
7050
7117
|
}
|
|
7051
7118
|
return t;
|
|
7052
|
-
},
|
|
7119
|
+
}, Ou = (e) => {
|
|
7053
7120
|
let n = 0, t = !1, r = !1, i = !1;
|
|
7054
7121
|
for (let l = 0; l < e.length; l++) {
|
|
7055
7122
|
const o = e[l], a = l > 0 ? e[l - 1] : "", s = l < e.length - 1 ? e[l + 1] : "";
|
|
@@ -7072,13 +7139,13 @@ const zn = (e) => {
|
|
|
7072
7139
|
}
|
|
7073
7140
|
}
|
|
7074
7141
|
return n;
|
|
7075
|
-
},
|
|
7076
|
-
if (
|
|
7142
|
+
}, Bu = (e) => {
|
|
7143
|
+
if (Yn(e))
|
|
7077
7144
|
return e;
|
|
7078
|
-
if (e.match(
|
|
7145
|
+
if (e.match(Au)) {
|
|
7079
7146
|
let t = -1;
|
|
7080
7147
|
for (let l = 0; l < e.length; l++)
|
|
7081
|
-
if (e[l] === "_" && e[l - 1] !== "_" && e[l + 1] !== "_" && e[l - 1] !== "\\" && !
|
|
7148
|
+
if (e[l] === "_" && e[l - 1] !== "_" && e[l + 1] !== "_" && e[l - 1] !== "\\" && !Fu(e, l) && !Ir(e, l)) {
|
|
7082
7149
|
const o = l > 0 ? e[l - 1] : "", a = l < e.length - 1 ? e[l + 1] : "";
|
|
7083
7150
|
if (o && a && /[\p{L}\p{N}_]/u.test(o) && /[\p{L}\p{N}_]/u.test(a))
|
|
7084
7151
|
continue;
|
|
@@ -7092,16 +7159,16 @@ const zn = (e) => {
|
|
|
7092
7159
|
);
|
|
7093
7160
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
7094
7161
|
return e;
|
|
7095
|
-
if (
|
|
7162
|
+
if (Ou(e) % 2 === 1)
|
|
7096
7163
|
return `${e}_`;
|
|
7097
7164
|
}
|
|
7098
7165
|
return e;
|
|
7099
|
-
},
|
|
7166
|
+
}, Uu = (e) => {
|
|
7100
7167
|
let n = 0;
|
|
7101
7168
|
for (let t = 0; t < e.length; t++)
|
|
7102
7169
|
e[t] === "`" && !ln(e, t) && n++;
|
|
7103
7170
|
return n;
|
|
7104
|
-
},
|
|
7171
|
+
}, ju = (e) => {
|
|
7105
7172
|
if (e.match(/^```[^`\n]*```?$/) && !e.includes(`
|
|
7106
7173
|
`))
|
|
7107
7174
|
return e.endsWith("``") && !e.endsWith("```") ? `${e}\`` : e;
|
|
@@ -7109,17 +7176,17 @@ const zn = (e) => {
|
|
|
7109
7176
|
if (t > 0 && t % 2 === 0 && e.includes(`
|
|
7110
7177
|
`) || (e.endsWith("```\n") || e.endsWith("```")) && t % 2 === 0)
|
|
7111
7178
|
return e;
|
|
7112
|
-
const i = e.match(
|
|
7179
|
+
const i = e.match(Pu);
|
|
7113
7180
|
if (i && !r) {
|
|
7114
7181
|
const l = i[2];
|
|
7115
7182
|
if (!l || /^[\s_~*`]*$/.test(l))
|
|
7116
7183
|
return e;
|
|
7117
|
-
if (
|
|
7184
|
+
if (Uu(e) % 2 === 1)
|
|
7118
7185
|
return `${e}\``;
|
|
7119
7186
|
}
|
|
7120
7187
|
return e;
|
|
7121
|
-
},
|
|
7122
|
-
const n = e.match(
|
|
7188
|
+
}, $u = (e) => {
|
|
7189
|
+
const n = e.match(Tu);
|
|
7123
7190
|
if (n) {
|
|
7124
7191
|
const t = n[2];
|
|
7125
7192
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
@@ -7128,7 +7195,7 @@ const zn = (e) => {
|
|
|
7128
7195
|
return `${e}~~`;
|
|
7129
7196
|
}
|
|
7130
7197
|
return e;
|
|
7131
|
-
},
|
|
7198
|
+
}, Hu = (e) => {
|
|
7132
7199
|
if ((e.match(/\$\$/g) || []).length % 2 === 0)
|
|
7133
7200
|
return e;
|
|
7134
7201
|
const t = e.indexOf("$$");
|
|
@@ -7136,7 +7203,7 @@ const zn = (e) => {
|
|
|
7136
7203
|
`, t) !== -1 && !e.endsWith(`
|
|
7137
7204
|
`) ? `${e}
|
|
7138
7205
|
$$` : `${e}$$`;
|
|
7139
|
-
},
|
|
7206
|
+
}, Vu = (e) => {
|
|
7140
7207
|
let n = 0;
|
|
7141
7208
|
const t = e.match(/\*+/g) || [];
|
|
7142
7209
|
for (const r of t) {
|
|
@@ -7144,27 +7211,27 @@ $$` : `${e}$$`;
|
|
|
7144
7211
|
i >= 3 && (n += Math.floor(i / 3));
|
|
7145
7212
|
}
|
|
7146
7213
|
return n;
|
|
7147
|
-
},
|
|
7148
|
-
if (
|
|
7214
|
+
}, qu = (e) => {
|
|
7215
|
+
if (Yn(e) || /^\*{4,}$/.test(e))
|
|
7149
7216
|
return e;
|
|
7150
|
-
const n = e.match(
|
|
7217
|
+
const n = e.match(Iu);
|
|
7151
7218
|
if (n) {
|
|
7152
7219
|
const t = n[2];
|
|
7153
7220
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
7154
7221
|
return e;
|
|
7155
|
-
if (
|
|
7222
|
+
if (Vu(e) % 2 === 1)
|
|
7156
7223
|
return `${e}***`;
|
|
7157
7224
|
}
|
|
7158
7225
|
return e;
|
|
7159
|
-
},
|
|
7226
|
+
}, Wu = (e) => {
|
|
7160
7227
|
if (!e || typeof e != "string")
|
|
7161
7228
|
return e;
|
|
7162
7229
|
let n = e;
|
|
7163
|
-
n =
|
|
7164
|
-
const t =
|
|
7165
|
-
return t.endsWith("](placeholder:incomplete-link)") ? t : (n = t, n =
|
|
7230
|
+
n = _u(n);
|
|
7231
|
+
const t = Mu(n);
|
|
7232
|
+
return t.endsWith("](placeholder:incomplete-link)") ? t : (n = t, n = ju(n), n = qu(n), n = Nu(n), n = Ru(n), n = Du(n), n = Bu(n), n = $u(n), n = Hu(n), n);
|
|
7166
7233
|
};
|
|
7167
|
-
class
|
|
7234
|
+
class Xu {
|
|
7168
7235
|
remarkGfm = null;
|
|
7169
7236
|
rehypeKatex = null;
|
|
7170
7237
|
remarkMath = null;
|
|
@@ -7176,7 +7243,7 @@ class Vu {
|
|
|
7176
7243
|
if (!this.rehypeMermaid) {
|
|
7177
7244
|
const { default: n } = await import(
|
|
7178
7245
|
/* webpackChunkName: "md-rehype-mermaid" */
|
|
7179
|
-
"./rehype-mermaid.
|
|
7246
|
+
"./rehype-mermaid.Dx1B0gAg.js"
|
|
7180
7247
|
).then((t) => t.rehypeMermaid);
|
|
7181
7248
|
this.rehypeMermaid = n;
|
|
7182
7249
|
}
|
|
@@ -7186,7 +7253,7 @@ class Vu {
|
|
|
7186
7253
|
if (!this.remarkGfm) {
|
|
7187
7254
|
const { default: n } = await import(
|
|
7188
7255
|
/* webpackChunkName: "md-remark" */
|
|
7189
|
-
"./index.
|
|
7256
|
+
"./index.Cve2drMf.js"
|
|
7190
7257
|
);
|
|
7191
7258
|
this.remarkGfm = n;
|
|
7192
7259
|
}
|
|
@@ -7194,10 +7261,10 @@ class Vu {
|
|
|
7194
7261
|
}
|
|
7195
7262
|
async loadKatex() {
|
|
7196
7263
|
if (!this.rehypeKatex) {
|
|
7197
|
-
|
|
7264
|
+
Zu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
|
7198
7265
|
const { default: n } = await import(
|
|
7199
7266
|
/* webpackChunkName: "md-rehype-katex" */
|
|
7200
|
-
"./index.
|
|
7267
|
+
"./index.DurA77q3.js"
|
|
7201
7268
|
);
|
|
7202
7269
|
this.rehypeKatex = n;
|
|
7203
7270
|
}
|
|
@@ -7207,7 +7274,7 @@ class Vu {
|
|
|
7207
7274
|
if (!this.remarkMath) {
|
|
7208
7275
|
const { default: n } = await import(
|
|
7209
7276
|
/* webpackChunkName: "md-remark" */
|
|
7210
|
-
"./index.
|
|
7277
|
+
"./index.DA40TKr6.js"
|
|
7211
7278
|
);
|
|
7212
7279
|
this.remarkMath = n;
|
|
7213
7280
|
}
|
|
@@ -7217,61 +7284,61 @@ class Vu {
|
|
|
7217
7284
|
if (!this.rehypeHighlight) {
|
|
7218
7285
|
const { default: n } = await import(
|
|
7219
7286
|
/* webpackChunkName: "md-rehype-highlight" */
|
|
7220
|
-
"./index.
|
|
7287
|
+
"./index.B8hSJstR.js"
|
|
7221
7288
|
);
|
|
7222
7289
|
this.rehypeHighlight = n;
|
|
7223
7290
|
}
|
|
7224
7291
|
return this.rehypeHighlight;
|
|
7225
7292
|
}
|
|
7226
7293
|
}
|
|
7227
|
-
const je = new
|
|
7294
|
+
const je = new Xu(), Yu = ({
|
|
7228
7295
|
children: e,
|
|
7229
7296
|
raw: n,
|
|
7230
7297
|
...t
|
|
7231
|
-
}) => /* @__PURE__ */
|
|
7298
|
+
}) => /* @__PURE__ */ _n("pre", { className: "relative pt-7 sm:pt-2 ps-0 sm:ps-3", ...t, children: [
|
|
7232
7299
|
e,
|
|
7233
|
-
/* @__PURE__ */
|
|
7234
|
-
|
|
7300
|
+
/* @__PURE__ */ ge(
|
|
7301
|
+
Ur,
|
|
7235
7302
|
{
|
|
7236
7303
|
mode: "dark",
|
|
7237
7304
|
noBorder: !0,
|
|
7238
7305
|
focusMode: "light",
|
|
7239
|
-
copyToClipboard: () =>
|
|
7306
|
+
copyToClipboard: () => Or(n) || "",
|
|
7240
7307
|
labelRight: "Copy",
|
|
7241
7308
|
radius: "small",
|
|
7242
7309
|
className: "mb-2 px-1 absolute top-2 right-2 font-sans font-normal text-xs"
|
|
7243
7310
|
}
|
|
7244
7311
|
)
|
|
7245
|
-
] }),
|
|
7312
|
+
] }), Gu = (e) => /```(?!mermaid)/.test(e), Ku = (e) => e.includes("```mermaid"), Qu = (e) => e.includes("$$"), Ju = (e) => (
|
|
7246
7313
|
// urls.
|
|
7247
7314
|
e.includes("http://") || e.includes("https://") || // table.
|
|
7248
7315
|
e.includes("|") || // strikethrough.
|
|
7249
7316
|
e.includes("~") || e.includes("~~") || // task lists.
|
|
7250
7317
|
e.includes("- [ ]") || e.includes("- [x]")
|
|
7251
|
-
),
|
|
7318
|
+
), Zu = (e) => {
|
|
7252
7319
|
const n = document.createElement("link");
|
|
7253
7320
|
n.href = e, n.type = "text/css", n.rel = "stylesheet", n.id = "dynamic-katex-css", document.head.appendChild(n);
|
|
7254
|
-
},
|
|
7255
|
-
|
|
7321
|
+
}, es = () => (e) => {
|
|
7322
|
+
we(e, (n) => {
|
|
7256
7323
|
if (n?.type === "element" && n?.tagName === "pre") {
|
|
7257
7324
|
const [t] = n.children;
|
|
7258
7325
|
if (t.tagName !== "code")
|
|
7259
7326
|
return;
|
|
7260
|
-
n.raw =
|
|
7327
|
+
n.raw = Br(t.children?.[0].value);
|
|
7261
7328
|
}
|
|
7262
7329
|
});
|
|
7263
|
-
},
|
|
7264
|
-
|
|
7330
|
+
}, ns = () => (e) => {
|
|
7331
|
+
we(e, "element", (n) => {
|
|
7265
7332
|
n?.type === "element" && n?.tagName === "pre" && (n.properties.raw = n.raw);
|
|
7266
7333
|
});
|
|
7267
|
-
},
|
|
7334
|
+
}, us = ({
|
|
7268
7335
|
onError: e = () => {
|
|
7269
7336
|
},
|
|
7270
7337
|
parseIncomplete: n = !0
|
|
7271
7338
|
} = {}) => {
|
|
7272
|
-
const t =
|
|
7339
|
+
const t = Ae(e), r = Ae(null), i = Ae(null), l = Ae(null), o = Ae(null), a = Ae({
|
|
7273
7340
|
rehypePlugins: [
|
|
7274
|
-
|
|
7341
|
+
es,
|
|
7275
7342
|
/**
|
|
7276
7343
|
* Security: Harden against XSS by restricting allowed elements, attributes,
|
|
7277
7344
|
* and URL protocols. Uses safe defaults for AI-generated content.
|
|
@@ -7285,7 +7352,7 @@ const je = new Vu(), qu = ({
|
|
|
7285
7352
|
* conversions or AI-generated content with inline images).
|
|
7286
7353
|
*/
|
|
7287
7354
|
[
|
|
7288
|
-
|
|
7355
|
+
fi,
|
|
7289
7356
|
{
|
|
7290
7357
|
defaultOrigin: typeof window < "u" ? window.location.origin : "https://localhost",
|
|
7291
7358
|
allowedLinkPrefixes: ["*"],
|
|
@@ -7294,7 +7361,7 @@ const je = new Vu(), qu = ({
|
|
|
7294
7361
|
}
|
|
7295
7362
|
],
|
|
7296
7363
|
[
|
|
7297
|
-
|
|
7364
|
+
ci,
|
|
7298
7365
|
{
|
|
7299
7366
|
target: "_blank",
|
|
7300
7367
|
rel: ["noopener", "noreferrer"]
|
|
@@ -7302,50 +7369,51 @@ const je = new Vu(), qu = ({
|
|
|
7302
7369
|
]
|
|
7303
7370
|
],
|
|
7304
7371
|
remarkPlugins: []
|
|
7305
|
-
}), [s, u] =
|
|
7306
|
-
|
|
7372
|
+
}), [s, u] = Ut(null);
|
|
7373
|
+
jt(() => {
|
|
7307
7374
|
t.current = e;
|
|
7308
7375
|
}, [e]);
|
|
7309
|
-
const c =
|
|
7376
|
+
const c = Mn(
|
|
7310
7377
|
(f) => {
|
|
7311
7378
|
(async () => {
|
|
7312
|
-
const d = n ?
|
|
7313
|
-
if (!r.current &&
|
|
7379
|
+
const d = n ? Wu(f) : f;
|
|
7380
|
+
if (!r.current && Gu(d)) {
|
|
7314
7381
|
r.current = !0;
|
|
7315
7382
|
const b = await je.loadHighlight();
|
|
7316
7383
|
a.current.rehypePlugins.push(b);
|
|
7317
7384
|
}
|
|
7318
|
-
if (!i.current &&
|
|
7385
|
+
if (!i.current && Ju(d)) {
|
|
7319
7386
|
i.current = !0;
|
|
7320
7387
|
const b = await je.loadGfm();
|
|
7321
7388
|
a.current.remarkPlugins.push(b);
|
|
7322
7389
|
}
|
|
7323
|
-
if (!l.current &&
|
|
7390
|
+
if (!l.current && Qu(d)) {
|
|
7324
7391
|
l.current = !0;
|
|
7325
7392
|
const b = await je.loadKatex(), S = await je.loadMath();
|
|
7326
7393
|
a.current.remarkPlugins.push(S), a.current.rehypePlugins.push(b);
|
|
7327
7394
|
}
|
|
7328
|
-
if (!o.current &&
|
|
7395
|
+
if (!o.current && Ku(d)) {
|
|
7329
7396
|
o.current = !0;
|
|
7330
7397
|
const b = await je.loadMermaid();
|
|
7331
7398
|
a.current.rehypePlugins.push(b);
|
|
7332
7399
|
}
|
|
7333
7400
|
const p = [
|
|
7334
7401
|
...a.current.rehypePlugins,
|
|
7335
|
-
|
|
7402
|
+
ns
|
|
7336
7403
|
];
|
|
7337
|
-
|
|
7338
|
-
Fragment:
|
|
7339
|
-
jsx:
|
|
7340
|
-
jsxs:
|
|
7404
|
+
hu().use(pa).use(a.current.remarkPlugins).use(Ya).use(p).use(ll, {
|
|
7405
|
+
Fragment: et,
|
|
7406
|
+
jsx: ge,
|
|
7407
|
+
jsxs: _n,
|
|
7341
7408
|
components: {
|
|
7342
|
-
pre:
|
|
7343
|
-
a:
|
|
7409
|
+
pre: Yu,
|
|
7410
|
+
a: xu,
|
|
7411
|
+
img: ku
|
|
7344
7412
|
}
|
|
7345
7413
|
}).process(d).then((b) => {
|
|
7346
7414
|
const S = b.result;
|
|
7347
7415
|
if (d && d.trim().length > 0 && !zn(S)) {
|
|
7348
|
-
u(
|
|
7416
|
+
u(Fr(et, null, d));
|
|
7349
7417
|
return;
|
|
7350
7418
|
}
|
|
7351
7419
|
u(S);
|
|
@@ -7357,33 +7425,33 @@ const je = new Vu(), qu = ({
|
|
|
7357
7425
|
return [s, c];
|
|
7358
7426
|
};
|
|
7359
7427
|
export {
|
|
7360
|
-
|
|
7428
|
+
it as EXIT,
|
|
7361
7429
|
xn as SKIP,
|
|
7362
7430
|
ue as asciiAlpha,
|
|
7363
7431
|
ne as asciiAlphanumeric,
|
|
7364
7432
|
In as asciiControl,
|
|
7365
7433
|
rn as blankLine,
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7434
|
+
wt as classifyCharacter,
|
|
7435
|
+
sl as combineExtensions,
|
|
7436
|
+
Yt as convert,
|
|
7437
|
+
Xt as convertElement,
|
|
7370
7438
|
q as factorySpace,
|
|
7371
|
-
|
|
7372
|
-
|
|
7439
|
+
Ti as find,
|
|
7440
|
+
_i as html,
|
|
7373
7441
|
L as markdownLineEnding,
|
|
7374
7442
|
Q as markdownLineEndingOrSpace,
|
|
7375
7443
|
v as markdownSpace,
|
|
7376
7444
|
bn as normalize,
|
|
7377
7445
|
ze as normalizeIdentifier,
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7446
|
+
Jr as parse,
|
|
7447
|
+
as as parse$1,
|
|
7448
|
+
qn as resolveAll,
|
|
7381
7449
|
se as splice,
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7450
|
+
Bn as svg,
|
|
7451
|
+
al as toString,
|
|
7452
|
+
dl as unicodePunctuation,
|
|
7453
|
+
gl as unicodeWhitespace,
|
|
7454
|
+
us as useMarkdown,
|
|
7455
|
+
we as visit,
|
|
7456
|
+
li as visitParents
|
|
7389
7457
|
};
|