@versini/sassysaint 8.45.4 → 8.45.5
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.Dm7CeWzJ.js → AboutChangelog.BpN2wOS7.js} +2 -2
- package/dist/chunks/{AboutEntry.z1IGd8nH.js → AboutEntry.Dhj2VuZW.js} +5 -5
- package/dist/chunks/App.D11WrOhS.js +11446 -0
- package/dist/chunks/{Chart.fnP0GZlV.js → Chart.CIxXVKbK.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.C214h3Za.js → ChatBubbleAssistant.BL27OUc-.js} +12 -12
- package/dist/chunks/ChatHistoryTable.DiJXlug9.js +649 -0
- package/dist/chunks/{HistoryEntry.Bg8wGgO6.js → HistoryEntry.C-g2zSt5.js} +27 -27
- package/dist/chunks/{LNWAZHJI.CgXWR3aC.js → LNWAZHJI.rjyRVWgx.js} +1 -1
- package/dist/chunks/{ProfileEntry.llkfgZbz.js → ProfileEntry.D9_uLmwO.js} +6 -6
- package/dist/chunks/SettingsEntry.CqtonnjU.js +889 -0
- package/dist/chunks/{UsageEntry.Dt5P9AhJ.js → UsageEntry.llD6nb8y.js} +7 -7
- package/dist/chunks/{index.Cdz3tBE5.js → index.5rAVjSln.js} +3 -3
- package/dist/chunks/index.BXSqY8t-.js +249 -0
- package/dist/chunks/{index.DXnBFV0d.js → index.C6rTHYVc.js} +2 -2
- package/dist/chunks/{index.aLXAYIRa.js → index.Ch7-8kkf.js} +1 -1
- package/dist/chunks/{index.xegEqIYd.js → index.D8CPTDrL.js} +1222 -1258
- package/dist/chunks/{index.Brh2cWqI.js → index.rezmsiOZ.js} +1 -1
- package/dist/chunks/{index.0hUxtRYc.js → index.ydUD8HKp.js} +1 -1
- package/dist/chunks/{useMarkdown.CWlc3oNt.js → useMarkdown.Cu3gwotw.js} +502 -502
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
- package/dist/chunks/App.Dxe8LDdD.js +0 -12621
- package/dist/chunks/ChatHistoryTable.CHWU2-BC.js +0 -1205
- package/dist/chunks/SettingsEntry.mv_g2-2P.js +0 -1064
- package/dist/chunks/index.CyMvgyLB.js +0 -804
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as rn from "react/jsx-runtime";
|
2
|
-
import { jsx as
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
import { getDefaultExportFromCjs as Nt } from "./App.
|
6
|
-
import
|
2
|
+
import { jsx as se, jsxs as Pn } from "react/jsx-runtime";
|
3
|
+
import { te as Ir, isTauri as Tr, unObfuscate as Pr, obfuscate as Ar } from "./index.D8CPTDrL.js";
|
4
|
+
import zr, { useState as Lt, useEffect as _t, useCallback as vt, useRef as Re } from "react";
|
5
|
+
import { getDefaultExportFromCjs as Nt } from "./App.D11WrOhS.js";
|
6
|
+
import Lr from "clsx";
|
7
7
|
const Rt = ({
|
8
8
|
children: e,
|
9
9
|
fill: n,
|
@@ -15,8 +15,8 @@ const Rt = ({
|
|
15
15
|
semantic: a = !1,
|
16
16
|
...s
|
17
17
|
}) => {
|
18
|
-
const u =
|
19
|
-
return /* @__PURE__ */
|
18
|
+
const u = Lr(l, r);
|
19
|
+
return /* @__PURE__ */ Pn(
|
20
20
|
"svg",
|
21
21
|
{
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -28,26 +28,26 @@ const Rt = ({
|
|
28
28
|
focusable: !1,
|
29
29
|
...s,
|
30
30
|
children: [
|
31
|
-
o && a && /* @__PURE__ */
|
31
|
+
o && a && /* @__PURE__ */ se("title", { children: o }),
|
32
32
|
e
|
33
33
|
]
|
34
34
|
}
|
35
|
-
)
|
35
|
+
);
|
36
36
|
};
|
37
37
|
/*!
|
38
|
-
@versini/ui-svgicon v4.2.
|
38
|
+
@versini/ui-svgicon v4.2.1
|
39
39
|
© 2025 gizmette.com
|
40
40
|
*/
|
41
41
|
try {
|
42
42
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
43
|
-
version: "4.2.
|
44
|
-
buildTime: "
|
43
|
+
version: "4.2.1",
|
44
|
+
buildTime: "08/27/2025 08:27 AM EDT",
|
45
45
|
homepage: "https://github.com/aversini/ui-components",
|
46
46
|
license: "MIT"
|
47
47
|
});
|
48
48
|
} catch {
|
49
49
|
}
|
50
|
-
const
|
50
|
+
const _r = ({
|
51
51
|
className: e,
|
52
52
|
viewBox: n,
|
53
53
|
title: t,
|
@@ -63,23 +63,23 @@ const vr = ({
|
|
63
63
|
title: t || "Copied",
|
64
64
|
...i,
|
65
65
|
children: [
|
66
|
-
/* @__PURE__ */
|
66
|
+
/* @__PURE__ */ se(
|
67
67
|
"path",
|
68
68
|
{
|
69
69
|
d: "M0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96m104 160c0-6.1 2.3-12.3 7-17 9.4-9.4 24.6-9.4 33.9 0l47 47 111-111c4.7-4.7 10.8-7 17-7s12.3 2.3 17 7c2.3 2.3 4.1 5 5.3 7.9.6 1.5 1 2.9 1.3 4.4.2 1.1.3 2.2.3 2.2.1 1.2.1 1.2.1 2.5-.1 1.5-.1 1.9-.1 2.3-.1.7-.2 1.5-.3 2.2-.3 1.5-.7 3-1.3 4.4-1.2 2.9-2.9 5.6-5.3 7.9l-128 128c-4.7 4.7-10.8 7-17 7s-12.3-2.3-17-7l-64-64c-4.7-4.7-7-10.8-7-17z",
|
70
70
|
opacity: ".4"
|
71
71
|
}
|
72
72
|
),
|
73
|
-
/* @__PURE__ */
|
73
|
+
/* @__PURE__ */ se("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
74
74
|
]
|
75
75
|
}
|
76
|
-
),
|
76
|
+
), vr = ({
|
77
77
|
className: e,
|
78
78
|
viewBox: n,
|
79
79
|
title: t,
|
80
80
|
monotone: r,
|
81
81
|
...i
|
82
|
-
}) => /* @__PURE__ */
|
82
|
+
}) => /* @__PURE__ */ se(
|
83
83
|
Rt,
|
84
84
|
{
|
85
85
|
defaultViewBox: "0 0 512 512",
|
@@ -88,23 +88,23 @@ const vr = ({
|
|
88
88
|
className: e,
|
89
89
|
title: t || "Copy",
|
90
90
|
...i,
|
91
|
-
children: /* @__PURE__ */
|
91
|
+
children: /* @__PURE__ */ se("path", { d: "M64 464h224c8.8 0 16-7.2 16-16v-64h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16m160-160h224c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16m-64-16V64c0-35.3 28.7-64 64-64h224c35.3 0 64 28.7 64 64v224c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64" })
|
92
92
|
}
|
93
93
|
);
|
94
94
|
/*!
|
95
|
-
@versini/ui-icons v4.
|
95
|
+
@versini/ui-icons v4.11.0
|
96
96
|
© 2025 gizmette.com
|
97
97
|
*/
|
98
98
|
try {
|
99
99
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
100
|
-
version: "4.
|
101
|
-
buildTime: "
|
100
|
+
version: "4.11.0",
|
101
|
+
buildTime: "08/27/2025 08:28 AM EDT",
|
102
102
|
homepage: "https://github.com/aversini/ui-components",
|
103
103
|
license: "MIT"
|
104
104
|
});
|
105
105
|
} catch {
|
106
106
|
}
|
107
|
-
const Dt =
|
107
|
+
const Dt = zr.forwardRef(({ copyToClipboard: e, ...n }, t) => {
|
108
108
|
const [r, i] = Lt(!1), l = () => {
|
109
109
|
typeof e == "string" && (navigator.clipboard.writeText(e), i(!0)), typeof e == "function" && (navigator.clipboard.writeText(e()), i(!0));
|
110
110
|
};
|
@@ -115,8 +115,8 @@ const Dt = Lr.forwardRef(({ copyToClipboard: e, ...n }, t) => {
|
|
115
115
|
}, 3e3)), () => {
|
116
116
|
clearTimeout(o);
|
117
117
|
};
|
118
|
-
}, [r]), /* @__PURE__ */
|
119
|
-
|
118
|
+
}, [r]), /* @__PURE__ */ se(
|
119
|
+
Ir,
|
120
120
|
{
|
121
121
|
...n,
|
122
122
|
size: "small",
|
@@ -124,12 +124,12 @@ const Dt = Lr.forwardRef(({ copyToClipboard: e, ...n }, t) => {
|
|
124
124
|
label: r ? "Copied to clipboard" : "Copy to clipboard",
|
125
125
|
onClick: l,
|
126
126
|
disabled: r,
|
127
|
-
children: r ? /* @__PURE__ */
|
127
|
+
children: r ? /* @__PURE__ */ se(_r, { size: "size-3" }) : /* @__PURE__ */ se(vr, { size: "size-3" })
|
128
128
|
}
|
129
129
|
);
|
130
130
|
});
|
131
131
|
Dt.displayName = "ButtonCopy";
|
132
|
-
const Ft = -1, Ze = 0, je = 1, Je = 2, An = 3, zn = 4, Ln = 5, _n = 6, Ot = 7, Mt = 8, Xn = typeof self == "object" ? self : globalThis,
|
132
|
+
const Ft = -1, Ze = 0, je = 1, Je = 2, An = 3, zn = 4, Ln = 5, _n = 6, Ot = 7, Mt = 8, Xn = typeof self == "object" ? self : globalThis, Nr = (e, n) => {
|
133
133
|
const t = (i, l) => (e.set(l, i), i), r = (i) => {
|
134
134
|
if (e.has(i))
|
135
135
|
return e.get(i);
|
@@ -186,11 +186,11 @@ const Ft = -1, Ze = 0, je = 1, Je = 2, An = 3, zn = 4, Ln = 5, _n = 6, Ot = 7, M
|
|
186
186
|
return t(new Xn[l](o), i);
|
187
187
|
};
|
188
188
|
return r;
|
189
|
-
}, Yn = (e) =>
|
189
|
+
}, Yn = (e) => Nr(/* @__PURE__ */ new Map(), e)(0), Ie = "", { toString: Rr } = {}, { keys: Dr } = Object, De = (e) => {
|
190
190
|
const n = typeof e;
|
191
191
|
if (n !== "object" || !e)
|
192
192
|
return [Ze, n];
|
193
|
-
const t =
|
193
|
+
const t = Rr.call(e).slice(8, -1);
|
194
194
|
switch (t) {
|
195
195
|
case "Array":
|
196
196
|
return [je, Ie];
|
@@ -208,7 +208,7 @@ const Ft = -1, Ze = 0, je = 1, Je = 2, An = 3, zn = 4, Ln = 5, _n = 6, Ot = 7, M
|
|
208
208
|
return [je, t];
|
209
209
|
}
|
210
210
|
return t.includes("Array") ? [je, t] : t.includes("Error") ? [Ot, t] : [Je, t];
|
211
|
-
}, Ge = ([e, n]) => e === Ze && (n === "function" || n === "symbol"),
|
211
|
+
}, Ge = ([e, n]) => e === Ze && (n === "function" || n === "symbol"), Fr = (e, n, t, r) => {
|
212
212
|
const i = (o, a) => {
|
213
213
|
const s = r.push(o) - 1;
|
214
214
|
return t.set(a, s), s;
|
@@ -257,7 +257,7 @@ const Ft = -1, Ze = 0, je = 1, Je = 2, An = 3, zn = 4, Ln = 5, _n = 6, Ot = 7, M
|
|
257
257
|
if (n && "toJSON" in o)
|
258
258
|
return l(o.toJSON());
|
259
259
|
const c = [], p = i([a, c], o);
|
260
|
-
for (const d of
|
260
|
+
for (const d of Dr(o))
|
261
261
|
(e || !Ge(De(o[d]))) && c.push([l(d), l(o[d])]);
|
262
262
|
return p;
|
263
263
|
}
|
@@ -286,7 +286,7 @@ const Ft = -1, Ze = 0, je = 1, Je = 2, An = 3, zn = 4, Ln = 5, _n = 6, Ot = 7, M
|
|
286
286
|
return l;
|
287
287
|
}, Kn = (e, { json: n, lossy: t } = {}) => {
|
288
288
|
const r = [];
|
289
|
-
return
|
289
|
+
return Fr(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
290
290
|
}, be = typeof structuredClone == "function" ? (
|
291
291
|
/* c8 ignore start */
|
292
292
|
(e, n) => n && ("json" in n || "lossy" in n) ? Yn(Kn(e, n)) : structuredClone(e)
|
@@ -306,17 +306,17 @@ const Ft = -1, Ze = 0, je = 1, Je = 2, An = 3, zn = 4, Ln = 5, _n = 6, Ot = 7, M
|
|
306
306
|
*/
|
307
307
|
(function(e) {
|
308
308
|
if (e == null)
|
309
|
-
return
|
309
|
+
return Br;
|
310
310
|
if (typeof e == "string")
|
311
|
-
return Br(e);
|
312
|
-
if (typeof e == "object")
|
313
311
|
return Mr(e);
|
312
|
+
if (typeof e == "object")
|
313
|
+
return Or(e);
|
314
314
|
if (typeof e == "function")
|
315
315
|
return vn(e);
|
316
316
|
throw new Error("Expected function, string, or array as `test`");
|
317
317
|
})
|
318
318
|
);
|
319
|
-
function
|
319
|
+
function Or(e) {
|
320
320
|
const n = [];
|
321
321
|
let t = -1;
|
322
322
|
for (; ++t < e.length; )
|
@@ -329,7 +329,7 @@ function Mr(e) {
|
|
329
329
|
return !1;
|
330
330
|
}
|
331
331
|
}
|
332
|
-
function
|
332
|
+
function Mr(e) {
|
333
333
|
return vn(n);
|
334
334
|
function n(t) {
|
335
335
|
return t.tagName === e;
|
@@ -338,7 +338,7 @@ function Br(e) {
|
|
338
338
|
function vn(e) {
|
339
339
|
return n;
|
340
340
|
function n(t, r, i) {
|
341
|
-
return !!(
|
341
|
+
return !!(jr(t) && e.call(
|
342
342
|
this,
|
343
343
|
t,
|
344
344
|
typeof r == "number" ? r : void 0,
|
@@ -346,23 +346,23 @@ function vn(e) {
|
|
346
346
|
));
|
347
347
|
}
|
348
348
|
}
|
349
|
-
function
|
349
|
+
function Br(e) {
|
350
350
|
return !!(e && typeof e == "object" && "type" in e && e.type === "element" && "tagName" in e && typeof e.tagName == "string");
|
351
351
|
}
|
352
|
-
function
|
352
|
+
function jr(e) {
|
353
353
|
return e !== null && typeof e == "object" && "type" in e && "tagName" in e;
|
354
354
|
}
|
355
|
-
const
|
356
|
-
function
|
355
|
+
const Hr = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, Ur = /^[a-zA-Z]:\\/;
|
356
|
+
function Vr(e) {
|
357
357
|
if (typeof e != "string")
|
358
358
|
throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
|
359
|
-
return
|
359
|
+
return Ur.test(e) ? !1 : Hr.test(e);
|
360
360
|
}
|
361
|
-
function
|
361
|
+
function qr(e) {
|
362
362
|
const n = String(e || "").trim();
|
363
363
|
return n ? n.split(/[ \t\n\r\f]+/g) : [];
|
364
364
|
}
|
365
|
-
function
|
365
|
+
function $r(e) {
|
366
366
|
return e.join(" ").trim();
|
367
367
|
}
|
368
368
|
const jt = (
|
@@ -382,17 +382,17 @@ const jt = (
|
|
382
382
|
*/
|
383
383
|
(function(e) {
|
384
384
|
if (e == null)
|
385
|
-
return
|
385
|
+
return Yr;
|
386
386
|
if (typeof e == "function")
|
387
387
|
return en(e);
|
388
388
|
if (typeof e == "object")
|
389
|
-
return Array.isArray(e) ?
|
389
|
+
return Array.isArray(e) ? Wr(e) : Gr(e);
|
390
390
|
if (typeof e == "string")
|
391
|
-
return
|
391
|
+
return Xr(e);
|
392
392
|
throw new Error("Expected function, string, or object as test");
|
393
393
|
})
|
394
394
|
);
|
395
|
-
function
|
395
|
+
function Wr(e) {
|
396
396
|
const n = [];
|
397
397
|
let t = -1;
|
398
398
|
for (; ++t < e.length; )
|
@@ -405,7 +405,7 @@ function Gr(e) {
|
|
405
405
|
return !1;
|
406
406
|
}
|
407
407
|
}
|
408
|
-
function
|
408
|
+
function Gr(e) {
|
409
409
|
const n = (
|
410
410
|
/** @type {Record<string, unknown>} */
|
411
411
|
e
|
@@ -423,7 +423,7 @@ function Xr(e) {
|
|
423
423
|
return !0;
|
424
424
|
}
|
425
425
|
}
|
426
|
-
function
|
426
|
+
function Xr(e) {
|
427
427
|
return en(n);
|
428
428
|
function n(t) {
|
429
429
|
return t && t.type === e;
|
@@ -432,7 +432,7 @@ function Yr(e) {
|
|
432
432
|
function en(e) {
|
433
433
|
return n;
|
434
434
|
function n(t, r, i) {
|
435
|
-
return !!(
|
435
|
+
return !!(Kr(t) && e.call(
|
436
436
|
this,
|
437
437
|
t,
|
438
438
|
typeof r == "number" ? r : void 0,
|
@@ -440,14 +440,14 @@ function en(e) {
|
|
440
440
|
));
|
441
441
|
}
|
442
442
|
}
|
443
|
-
function
|
443
|
+
function Yr() {
|
444
444
|
return !0;
|
445
445
|
}
|
446
|
-
function
|
446
|
+
function Kr(e) {
|
447
447
|
return e !== null && typeof e == "object" && "type" in e;
|
448
448
|
}
|
449
|
-
const Ht = [],
|
450
|
-
function
|
449
|
+
const Ht = [], Qr = !0, Qn = !1, Jr = "skip";
|
450
|
+
function Zr(e, n, t, r) {
|
451
451
|
let i;
|
452
452
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
453
453
|
const l = jt(i), o = r ? -1 : 1;
|
@@ -472,14 +472,14 @@ function ei(e, n, t, r) {
|
|
472
472
|
return d;
|
473
473
|
function d() {
|
474
474
|
let f = Ht, w, b, z;
|
475
|
-
if ((!n || l(s, u, c[c.length - 1] || void 0)) && (f =
|
475
|
+
if ((!n || l(s, u, c[c.length - 1] || void 0)) && (f = ei(t(s, c)), f[0] === Qn))
|
476
476
|
return f;
|
477
477
|
if ("children" in s && s.children) {
|
478
478
|
const k = (
|
479
479
|
/** @type {UnistParent} */
|
480
480
|
s
|
481
481
|
);
|
482
|
-
if (k.children && f[0] !==
|
482
|
+
if (k.children && f[0] !== Jr)
|
483
483
|
for (b = (r ? k.children.length : -1) + o, z = c.concat(k); b > -1 && b < k.children.length; ) {
|
484
484
|
const A = k.children[b];
|
485
485
|
if (w = a(A, b, z)(), w[0] === Qn)
|
@@ -491,26 +491,26 @@ function ei(e, n, t, r) {
|
|
491
491
|
}
|
492
492
|
}
|
493
493
|
}
|
494
|
-
function
|
495
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
494
|
+
function ei(e) {
|
495
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [Qr, e] : e == null ? Ht : [e];
|
496
496
|
}
|
497
497
|
function nn(e, n, t, r) {
|
498
498
|
let i, l, o;
|
499
|
-
typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r),
|
499
|
+
typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), Zr(e, l, a, i);
|
500
500
|
function a(s, u) {
|
501
501
|
const c = u[u.length - 1], p = c ? c.children.indexOf(s) : void 0;
|
502
502
|
return o(s, p, c);
|
503
503
|
}
|
504
504
|
}
|
505
|
-
const
|
506
|
-
function
|
507
|
-
const n = e ||
|
505
|
+
const ni = ["http", "https"], ti = ["nofollow"], ri = {};
|
506
|
+
function ii(e) {
|
507
|
+
const n = e || ri, t = n.protocols || ni, r = Bt(n.test);
|
508
508
|
return function(i) {
|
509
509
|
nn(i, "element", function(l, o, a) {
|
510
510
|
if (l.tagName === "a" && typeof l.properties.href == "string" && r(l, o, a)) {
|
511
511
|
const s = l.properties.href;
|
512
|
-
if (
|
513
|
-
const u = Fe(n.content, l), c = u && !Array.isArray(u) ? [u] : u, p = Fe(n.rel, l) ||
|
512
|
+
if (Vr(s) ? t.includes(s.slice(0, s.indexOf(":"))) : s.startsWith("//")) {
|
513
|
+
const u = Fe(n.content, l), c = u && !Array.isArray(u) ? [u] : u, p = Fe(n.rel, l) || ti, d = typeof p == "string" ? qr(p) : p, f = Fe(n.target, l), w = Fe(n.properties, l);
|
514
514
|
if (w && Object.assign(l.properties, be(w)), d.length > 0 && (l.properties.rel = [...d]), f && (l.properties.target = f), c) {
|
515
515
|
const b = Fe(n.contentProperties, l) || {};
|
516
516
|
l.children.push({
|
@@ -528,7 +528,7 @@ function li(e) {
|
|
528
528
|
function Fe(e, n) {
|
529
529
|
return typeof e == "function" ? e(n) : e;
|
530
530
|
}
|
531
|
-
function
|
531
|
+
function wu(e) {
|
532
532
|
const n = [], t = String(e || "");
|
533
533
|
let r = t.indexOf(","), i = 0, l = !1;
|
534
534
|
for (; !l; ) {
|
@@ -538,22 +538,22 @@ function Su(e) {
|
|
538
538
|
}
|
539
539
|
return n;
|
540
540
|
}
|
541
|
-
function
|
541
|
+
function li(e, n) {
|
542
542
|
const t = {};
|
543
543
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
544
544
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
545
545
|
).trim();
|
546
546
|
}
|
547
|
-
const
|
547
|
+
const oi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ai = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ui = {};
|
548
548
|
function Jn(e, n) {
|
549
|
-
return (
|
549
|
+
return (ui.jsx ? ai : oi).test(e);
|
550
550
|
}
|
551
|
-
const
|
552
|
-
function
|
551
|
+
const si = /[ \t\n\f\r]/g;
|
552
|
+
function ci(e) {
|
553
553
|
return typeof e == "object" ? e.type === "text" ? Zn(e.value) : !1 : Zn(e);
|
554
554
|
}
|
555
555
|
function Zn(e) {
|
556
|
-
return e.replace(
|
556
|
+
return e.replace(si, "") === "";
|
557
557
|
}
|
558
558
|
class qe {
|
559
559
|
/**
|
@@ -607,10 +607,10 @@ J.prototype.overloadedBoolean = !1;
|
|
607
607
|
J.prototype.property = "";
|
608
608
|
J.prototype.spaceSeparated = !1;
|
609
609
|
J.prototype.space = void 0;
|
610
|
-
let
|
610
|
+
let pi = 0;
|
611
611
|
const N = we(), $ = we(), xn = we(), x = we(), U = we(), Pe = we(), ee = we();
|
612
612
|
function we() {
|
613
|
-
return 2 ** ++
|
613
|
+
return 2 ** ++pi;
|
614
614
|
}
|
615
615
|
const kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: N, booleanish: $, commaOrSpaceSeparated: ee, commaSeparated: Pe, number: x, overloadedBoolean: xn, spaceSeparated: U }, Symbol.toStringTag, { value: "Module" })), ln = (
|
616
616
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
@@ -718,7 +718,7 @@ function qt(e, n) {
|
|
718
718
|
function $t(e, n) {
|
719
719
|
return qt(e, n.toLowerCase());
|
720
720
|
}
|
721
|
-
const
|
721
|
+
const fi = ze({
|
722
722
|
attributes: {
|
723
723
|
acceptcharset: "accept-charset",
|
724
724
|
classname: "class",
|
@@ -1079,7 +1079,7 @@ const hi = ze({
|
|
1079
1079
|
},
|
1080
1080
|
space: "html",
|
1081
1081
|
transform: $t
|
1082
|
-
}),
|
1082
|
+
}), hi = ze({
|
1083
1083
|
attributes: {
|
1084
1084
|
accentHeight: "accent-height",
|
1085
1085
|
alignmentBaseline: "alignment-baseline",
|
@@ -1663,7 +1663,7 @@ const hi = ze({
|
|
1663
1663
|
transform(e, n) {
|
1664
1664
|
return "xml:" + n.slice(3).toLowerCase();
|
1665
1665
|
}
|
1666
|
-
}),
|
1666
|
+
}), mi = {
|
1667
1667
|
classId: "classID",
|
1668
1668
|
dataType: "datatype",
|
1669
1669
|
itemId: "itemID",
|
@@ -1681,20 +1681,20 @@ const hi = ze({
|
|
1681
1681
|
xLinkTitle: "xlinkTitle",
|
1682
1682
|
xLinkType: "xlinkType",
|
1683
1683
|
xmlnsXLink: "xmlnsXlink"
|
1684
|
-
},
|
1685
|
-
function
|
1684
|
+
}, di = /[A-Z]/g, nt = /-[a-z]/g, gi = /^data[-\w.:]+$/i;
|
1685
|
+
function yi(e, n) {
|
1686
1686
|
const t = yn(n);
|
1687
1687
|
let r = n, i = J;
|
1688
1688
|
if (t in e.normal)
|
1689
1689
|
return e.property[e.normal[t]];
|
1690
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
1690
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && gi.test(n)) {
|
1691
1691
|
if (n.charAt(4) === "-") {
|
1692
|
-
const l = n.slice(5).replace(nt,
|
1692
|
+
const l = n.slice(5).replace(nt, ki);
|
1693
1693
|
r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
1694
1694
|
} else {
|
1695
1695
|
const l = n.slice(4);
|
1696
1696
|
if (!nt.test(l)) {
|
1697
|
-
let o = l.replace(
|
1697
|
+
let o = l.replace(di, xi);
|
1698
1698
|
o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
|
1699
1699
|
}
|
1700
1700
|
}
|
@@ -1702,15 +1702,15 @@ function xi(e, n) {
|
|
1702
1702
|
}
|
1703
1703
|
return new i(r, n);
|
1704
1704
|
}
|
1705
|
-
function
|
1705
|
+
function xi(e) {
|
1706
1706
|
return "-" + e.toLowerCase();
|
1707
1707
|
}
|
1708
|
-
function
|
1708
|
+
function ki(e) {
|
1709
1709
|
return e.charAt(1).toUpperCase();
|
1710
1710
|
}
|
1711
|
-
const
|
1711
|
+
const bi = Ut([Vt, fi, Wt, Gt, Xt], "html"), Rn = Ut([Vt, hi, Wt, Gt, Xt], "svg");
|
1712
1712
|
var Te = {}, on, tt;
|
1713
|
-
function
|
1713
|
+
function wi() {
|
1714
1714
|
if (tt) return on;
|
1715
1715
|
tt = 1;
|
1716
1716
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
@@ -1800,14 +1800,14 @@ function Si() {
|
|
1800
1800
|
return on;
|
1801
1801
|
}
|
1802
1802
|
var rt;
|
1803
|
-
function
|
1803
|
+
function Si() {
|
1804
1804
|
if (rt) return Te;
|
1805
1805
|
rt = 1;
|
1806
1806
|
var e = Te && Te.__importDefault || function(r) {
|
1807
1807
|
return r && r.__esModule ? r : { default: r };
|
1808
1808
|
};
|
1809
1809
|
Object.defineProperty(Te, "__esModule", { value: !0 }), Te.default = t;
|
1810
|
-
var n = e(/* @__PURE__ */
|
1810
|
+
var n = e(/* @__PURE__ */ wi());
|
1811
1811
|
function t(r, i) {
|
1812
1812
|
var l = null;
|
1813
1813
|
if (!r || typeof r != "string")
|
@@ -1823,7 +1823,7 @@ function Ci() {
|
|
1823
1823
|
return Te;
|
1824
1824
|
}
|
1825
1825
|
var Oe = {}, it;
|
1826
|
-
function
|
1826
|
+
function Ci() {
|
1827
1827
|
if (it) return Oe;
|
1828
1828
|
it = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.camelCase = void 0;
|
1829
1829
|
var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, l = function(u) {
|
@@ -1838,12 +1838,12 @@ function Ei() {
|
|
1838
1838
|
return Oe.camelCase = s, Oe;
|
1839
1839
|
}
|
1840
1840
|
var Me, lt;
|
1841
|
-
function
|
1841
|
+
function Ei() {
|
1842
1842
|
if (lt) return Me;
|
1843
1843
|
lt = 1;
|
1844
1844
|
var e = Me && Me.__importDefault || function(i) {
|
1845
1845
|
return i && i.__esModule ? i : { default: i };
|
1846
|
-
}, n = e(/* @__PURE__ */
|
1846
|
+
}, n = e(/* @__PURE__ */ Si()), t = /* @__PURE__ */ Ci();
|
1847
1847
|
function r(i, l) {
|
1848
1848
|
var o = {};
|
1849
1849
|
return !i || typeof i != "string" || (0, n.default)(i, function(a, s) {
|
@@ -1852,8 +1852,8 @@ function Ii() {
|
|
1852
1852
|
}
|
1853
1853
|
return r.default = r, Me = r, Me;
|
1854
1854
|
}
|
1855
|
-
var
|
1856
|
-
const
|
1855
|
+
var Ii = /* @__PURE__ */ Ei();
|
1856
|
+
const Ti = /* @__PURE__ */ Nt(Ii), Yt = Kt("end"), Dn = Kt("start");
|
1857
1857
|
function Kt(e) {
|
1858
1858
|
return n;
|
1859
1859
|
function n(t) {
|
@@ -1866,7 +1866,7 @@ function Kt(e) {
|
|
1866
1866
|
};
|
1867
1867
|
}
|
1868
1868
|
}
|
1869
|
-
function
|
1869
|
+
function Pi(e) {
|
1870
1870
|
const n = Dn(e), t = Yt(e);
|
1871
1871
|
if (n && t)
|
1872
1872
|
return { start: n, end: t };
|
@@ -1970,8 +1970,8 @@ Y.prototype.fatal = void 0;
|
|
1970
1970
|
Y.prototype.place = void 0;
|
1971
1971
|
Y.prototype.ruleId = void 0;
|
1972
1972
|
Y.prototype.source = void 0;
|
1973
|
-
const Fn = {}.hasOwnProperty,
|
1974
|
-
function
|
1973
|
+
const Fn = {}.hasOwnProperty, Ai = /* @__PURE__ */ new Map(), zi = /[A-Z]/g, Li = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), _i = /* @__PURE__ */ new Set(["td", "th"]), Qt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
1974
|
+
function vi(e, n) {
|
1975
1975
|
if (!n || n.Fragment === void 0)
|
1976
1976
|
throw new TypeError("Expected `Fragment` in options");
|
1977
1977
|
const t = n.filePath || void 0;
|
@@ -1981,13 +1981,13 @@ function Ni(e, n) {
|
|
1981
1981
|
throw new TypeError(
|
1982
1982
|
"Expected `jsxDEV` in options when `development: true`"
|
1983
1983
|
);
|
1984
|
-
r =
|
1984
|
+
r = ji(t, n.jsxDEV);
|
1985
1985
|
} else {
|
1986
1986
|
if (typeof n.jsx != "function")
|
1987
1987
|
throw new TypeError("Expected `jsx` in production options");
|
1988
1988
|
if (typeof n.jsxs != "function")
|
1989
1989
|
throw new TypeError("Expected `jsxs` in production options");
|
1990
|
-
r =
|
1990
|
+
r = Bi(t, n.jsx, n.jsxs);
|
1991
1991
|
}
|
1992
1992
|
const i = {
|
1993
1993
|
Fragment: n.Fragment,
|
@@ -2000,7 +2000,7 @@ function Ni(e, n) {
|
|
2000
2000
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
2001
2001
|
passKeys: n.passKeys !== !1,
|
2002
2002
|
passNode: n.passNode || !1,
|
2003
|
-
schema: n.space === "svg" ? Rn :
|
2003
|
+
schema: n.space === "svg" ? Rn : bi,
|
2004
2004
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
2005
2005
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
2006
2006
|
}, l = Jt(i, e, void 0);
|
@@ -2013,29 +2013,29 @@ function Ni(e, n) {
|
|
2013
2013
|
}
|
2014
2014
|
function Jt(e, n, t) {
|
2015
2015
|
if (n.type === "element")
|
2016
|
-
return
|
2016
|
+
return Ni(e, n, t);
|
2017
2017
|
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
2018
|
-
return
|
2018
|
+
return Ri(e, n);
|
2019
2019
|
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
|
2020
|
-
return
|
2020
|
+
return Fi(e, n, t);
|
2021
2021
|
if (n.type === "mdxjsEsm")
|
2022
|
-
return
|
2022
|
+
return Di(e, n);
|
2023
2023
|
if (n.type === "root")
|
2024
|
-
return
|
2024
|
+
return Oi(e, n, t);
|
2025
2025
|
if (n.type === "text")
|
2026
|
-
return
|
2026
|
+
return Mi(e, n);
|
2027
2027
|
}
|
2028
|
-
function
|
2028
|
+
function Ni(e, n, t) {
|
2029
2029
|
const r = e.schema;
|
2030
2030
|
let i = r;
|
2031
2031
|
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Rn, e.schema = i), e.ancestors.push(n);
|
2032
|
-
const l = er(e, n.tagName, !1), o =
|
2032
|
+
const l = er(e, n.tagName, !1), o = Hi(e, n);
|
2033
2033
|
let a = Mn(e, n);
|
2034
|
-
return
|
2035
|
-
return typeof s == "string" ? !
|
2034
|
+
return Li.has(n.tagName) && (a = a.filter(function(s) {
|
2035
|
+
return typeof s == "string" ? !ci(s) : !0;
|
2036
2036
|
})), Zt(e, o, l, n), On(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
2037
2037
|
}
|
2038
|
-
function
|
2038
|
+
function Ri(e, n) {
|
2039
2039
|
if (n.data && n.data.estree && e.evaluater) {
|
2040
2040
|
const r = n.data.estree.body[0];
|
2041
2041
|
return (
|
@@ -2045,7 +2045,7 @@ function Di(e, n) {
|
|
2045
2045
|
}
|
2046
2046
|
Ve(e, n.position);
|
2047
2047
|
}
|
2048
|
-
function
|
2048
|
+
function Di(e, n) {
|
2049
2049
|
if (n.data && n.data.estree && e.evaluater)
|
2050
2050
|
return (
|
2051
2051
|
/** @type {Child | undefined} */
|
@@ -2053,18 +2053,18 @@ function Fi(e, n) {
|
|
2053
2053
|
);
|
2054
2054
|
Ve(e, n.position);
|
2055
2055
|
}
|
2056
|
-
function
|
2056
|
+
function Fi(e, n, t) {
|
2057
2057
|
const r = e.schema;
|
2058
2058
|
let i = r;
|
2059
2059
|
n.name === "svg" && r.space === "html" && (i = Rn, e.schema = i), e.ancestors.push(n);
|
2060
|
-
const l = n.name === null ? e.Fragment : er(e, n.name, !0), o =
|
2060
|
+
const l = n.name === null ? e.Fragment : er(e, n.name, !0), o = Ui(e, n), a = Mn(e, n);
|
2061
2061
|
return Zt(e, o, l, n), On(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
2062
2062
|
}
|
2063
|
-
function
|
2063
|
+
function Oi(e, n, t) {
|
2064
2064
|
const r = {};
|
2065
2065
|
return On(r, Mn(e, n)), e.create(n, e.Fragment, r, t);
|
2066
2066
|
}
|
2067
|
-
function
|
2067
|
+
function Mi(e, n) {
|
2068
2068
|
return n.value;
|
2069
2069
|
}
|
2070
2070
|
function Zt(e, n, t, r) {
|
@@ -2076,14 +2076,14 @@ function On(e, n) {
|
|
2076
2076
|
t && (e.children = t);
|
2077
2077
|
}
|
2078
2078
|
}
|
2079
|
-
function
|
2079
|
+
function Bi(e, n, t) {
|
2080
2080
|
return r;
|
2081
2081
|
function r(i, l, o, a) {
|
2082
2082
|
const u = Array.isArray(o.children) ? t : n;
|
2083
2083
|
return a ? u(l, o, a) : u(l, o);
|
2084
2084
|
}
|
2085
2085
|
}
|
2086
|
-
function
|
2086
|
+
function ji(e, n) {
|
2087
2087
|
return t;
|
2088
2088
|
function t(r, i, l, o) {
|
2089
2089
|
const a = Array.isArray(l.children), s = Dn(r);
|
@@ -2101,15 +2101,15 @@ function Hi(e, n) {
|
|
2101
2101
|
);
|
2102
2102
|
}
|
2103
2103
|
}
|
2104
|
-
function
|
2104
|
+
function Hi(e, n) {
|
2105
2105
|
const t = {};
|
2106
2106
|
let r, i;
|
2107
2107
|
for (i in n.properties)
|
2108
2108
|
if (i !== "children" && Fn.call(n.properties, i)) {
|
2109
|
-
const l =
|
2109
|
+
const l = Vi(e, i, n.properties[i]);
|
2110
2110
|
if (l) {
|
2111
2111
|
const [o, a] = l;
|
2112
|
-
e.tableCellAlignToStyle && o === "align" && typeof a == "string" &&
|
2112
|
+
e.tableCellAlignToStyle && o === "align" && typeof a == "string" && _i.has(n.tagName) ? r = a : t[o] = a;
|
2113
2113
|
}
|
2114
2114
|
}
|
2115
2115
|
if (r) {
|
@@ -2121,7 +2121,7 @@ function Ui(e, n) {
|
|
2121
2121
|
}
|
2122
2122
|
return t;
|
2123
2123
|
}
|
2124
|
-
function
|
2124
|
+
function Ui(e, n) {
|
2125
2125
|
const t = {};
|
2126
2126
|
for (const r of n.attributes)
|
2127
2127
|
if (r.type === "mdxJsxExpressionAttribute")
|
@@ -2152,7 +2152,7 @@ function Vi(e, n) {
|
|
2152
2152
|
function Mn(e, n) {
|
2153
2153
|
const t = [];
|
2154
2154
|
let r = -1;
|
2155
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
2155
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Ai;
|
2156
2156
|
for (; ++r < n.children.length; ) {
|
2157
2157
|
const l = n.children[r];
|
2158
2158
|
let o;
|
@@ -2168,22 +2168,22 @@ function Mn(e, n) {
|
|
2168
2168
|
}
|
2169
2169
|
return t;
|
2170
2170
|
}
|
2171
|
-
function
|
2172
|
-
const r =
|
2171
|
+
function Vi(e, n, t) {
|
2172
|
+
const r = yi(e.schema, n);
|
2173
2173
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
2174
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
2175
|
-
let i = typeof t == "object" ? t :
|
2176
|
-
return e.stylePropertyNameCase === "css" && (i =
|
2174
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? li(t) : $r(t)), r.property === "style") {
|
2175
|
+
let i = typeof t == "object" ? t : qi(e, String(t));
|
2176
|
+
return e.stylePropertyNameCase === "css" && (i = $i(i)), ["style", i];
|
2177
2177
|
}
|
2178
2178
|
return [
|
2179
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
2179
|
+
e.elementAttributeNameCase === "react" && r.space ? mi[r.property] || r.property : r.attribute,
|
2180
2180
|
t
|
2181
2181
|
];
|
2182
2182
|
}
|
2183
2183
|
}
|
2184
|
-
function
|
2184
|
+
function qi(e, n) {
|
2185
2185
|
try {
|
2186
|
-
return
|
2186
|
+
return Ti(n, { reactCompat: !0 });
|
2187
2187
|
} catch (t) {
|
2188
2188
|
if (e.ignoreInvalidStyle)
|
2189
2189
|
return {};
|
@@ -2242,37 +2242,37 @@ function Ve(e, n) {
|
|
2242
2242
|
);
|
2243
2243
|
throw t.file = e.filePath || void 0, t.url = Qt + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
2244
2244
|
}
|
2245
|
-
function
|
2245
|
+
function $i(e) {
|
2246
2246
|
const n = {};
|
2247
2247
|
let t;
|
2248
2248
|
for (t in e)
|
2249
|
-
Fn.call(e, t) && (n[
|
2249
|
+
Fn.call(e, t) && (n[Wi(t)] = e[t]);
|
2250
2250
|
return n;
|
2251
2251
|
}
|
2252
|
-
function
|
2253
|
-
let n = e.replace(
|
2252
|
+
function Wi(e) {
|
2253
|
+
let n = e.replace(zi, Gi);
|
2254
2254
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
2255
2255
|
}
|
2256
|
-
function
|
2256
|
+
function Gi(e) {
|
2257
2257
|
return "-" + e.toLowerCase();
|
2258
2258
|
}
|
2259
|
-
function
|
2259
|
+
function Xi(e) {
|
2260
2260
|
const n = (
|
2261
2261
|
/** @type {Processor} */
|
2262
2262
|
this
|
2263
2263
|
);
|
2264
2264
|
n.compiler = t;
|
2265
2265
|
function t(r, i) {
|
2266
|
-
return
|
2266
|
+
return vi(r, { filePath: i.path, ...e });
|
2267
2267
|
}
|
2268
2268
|
}
|
2269
|
-
const
|
2270
|
-
function
|
2271
|
-
const t =
|
2269
|
+
const Yi = {};
|
2270
|
+
function Ki(e, n) {
|
2271
|
+
const t = Yi, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
2272
2272
|
return nr(e, r, i);
|
2273
2273
|
}
|
2274
2274
|
function nr(e, n, t) {
|
2275
|
-
if (
|
2275
|
+
if (Qi(e)) {
|
2276
2276
|
if ("value" in e)
|
2277
2277
|
return e.type === "html" && !t ? "" : e.value;
|
2278
2278
|
if (n && "alt" in e && e.alt)
|
@@ -2289,7 +2289,7 @@ function ut(e, n, t) {
|
|
2289
2289
|
r[i] = nr(e[i], n, t);
|
2290
2290
|
return r.join("");
|
2291
2291
|
}
|
2292
|
-
function
|
2292
|
+
function Qi(e) {
|
2293
2293
|
return !!(e && typeof e == "object");
|
2294
2294
|
}
|
2295
2295
|
const st = document.createElement("i");
|
@@ -2316,14 +2316,14 @@ function te(e, n) {
|
|
2316
2316
|
return e.length > 0 ? (ce(e, e.length, 0, n), e) : n;
|
2317
2317
|
}
|
2318
2318
|
const ct = {}.hasOwnProperty;
|
2319
|
-
function
|
2319
|
+
function Ji(e) {
|
2320
2320
|
const n = {};
|
2321
2321
|
let t = -1;
|
2322
2322
|
for (; ++t < e.length; )
|
2323
|
-
|
2323
|
+
Zi(n, e[t]);
|
2324
2324
|
return n;
|
2325
2325
|
}
|
2326
|
-
function
|
2326
|
+
function Zi(e, n) {
|
2327
2327
|
let t;
|
2328
2328
|
for (t in n) {
|
2329
2329
|
const i = (ct.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
|
@@ -2332,7 +2332,7 @@ function el(e, n) {
|
|
2332
2332
|
for (o in l) {
|
2333
2333
|
ct.call(i, o) || (i[o] = []);
|
2334
2334
|
const a = l[o];
|
2335
|
-
|
2335
|
+
el(
|
2336
2336
|
// @ts-expect-error Looks like a list.
|
2337
2337
|
i[o],
|
2338
2338
|
Array.isArray(a) ? a : a ? [a] : []
|
@@ -2340,7 +2340,7 @@ function el(e, n) {
|
|
2340
2340
|
}
|
2341
2341
|
}
|
2342
2342
|
}
|
2343
|
-
function
|
2343
|
+
function el(e, n) {
|
2344
2344
|
let t = -1;
|
2345
2345
|
const r = [];
|
2346
2346
|
for (; ++t < n.length; )
|
@@ -2363,7 +2363,7 @@ function tr(e, n) {
|
|
2363
2363
|
function Ae(e) {
|
2364
2364
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
2365
2365
|
}
|
2366
|
-
const
|
2366
|
+
const ue = ye(/[A-Za-z]/), ne = ye(/[\dA-Za-z]/), nl = ye(/[#-'*+\--9=?A-Z^-~]/);
|
2367
2367
|
function wn(e) {
|
2368
2368
|
return (
|
2369
2369
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -2371,7 +2371,7 @@ function wn(e) {
|
|
2371
2371
|
e !== null && (e < 32 || e === 127)
|
2372
2372
|
);
|
2373
2373
|
}
|
2374
|
-
const Sn = ye(/\d/),
|
2374
|
+
const Sn = ye(/\d/), tl = ye(/[\dA-Fa-f]/), rl = ye(/[!-/:-@[-`{-~]/);
|
2375
2375
|
function L(e) {
|
2376
2376
|
return e !== null && e < -2;
|
2377
2377
|
}
|
@@ -2381,7 +2381,7 @@ function Q(e) {
|
|
2381
2381
|
function F(e) {
|
2382
2382
|
return e === -2 || e === -1 || e === 32;
|
2383
2383
|
}
|
2384
|
-
const
|
2384
|
+
const il = ye(new RegExp("\\p{P}|\\p{S}", "u")), ll = ye(/\s/);
|
2385
2385
|
function ye(e) {
|
2386
2386
|
return n;
|
2387
2387
|
function n(t) {
|
@@ -2418,10 +2418,10 @@ function V(e, n, t, r) {
|
|
2418
2418
|
return F(s) && l++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
|
2419
2419
|
}
|
2420
2420
|
}
|
2421
|
-
const
|
2422
|
-
tokenize:
|
2421
|
+
const ol = {
|
2422
|
+
tokenize: al
|
2423
2423
|
};
|
2424
|
-
function
|
2424
|
+
function al(e) {
|
2425
2425
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
2426
2426
|
let t;
|
2427
2427
|
return n;
|
@@ -2450,12 +2450,12 @@ function ul(e) {
|
|
2450
2450
|
return L(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
|
2451
2451
|
}
|
2452
2452
|
}
|
2453
|
-
const
|
2454
|
-
tokenize:
|
2453
|
+
const ul = {
|
2454
|
+
tokenize: sl
|
2455
2455
|
}, pt = {
|
2456
|
-
tokenize:
|
2456
|
+
tokenize: cl
|
2457
2457
|
};
|
2458
|
-
function
|
2458
|
+
function sl(e) {
|
2459
2459
|
const n = this, t = [];
|
2460
2460
|
let r = 0, i, l, o;
|
2461
2461
|
return a;
|
@@ -2567,13 +2567,13 @@ function cl(e) {
|
|
2567
2567
|
i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
2568
2568
|
}
|
2569
2569
|
}
|
2570
|
-
function
|
2570
|
+
function cl(e, n, t) {
|
2571
2571
|
return V(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
2572
2572
|
}
|
2573
2573
|
function ft(e) {
|
2574
|
-
if (e === null || Q(e) ||
|
2574
|
+
if (e === null || Q(e) || ll(e))
|
2575
2575
|
return 1;
|
2576
|
-
if (
|
2576
|
+
if (il(e))
|
2577
2577
|
return 2;
|
2578
2578
|
}
|
2579
2579
|
function jn(e, n, t) {
|
@@ -2587,10 +2587,10 @@ function jn(e, n, t) {
|
|
2587
2587
|
}
|
2588
2588
|
const Cn = {
|
2589
2589
|
name: "attention",
|
2590
|
-
resolveAll:
|
2591
|
-
tokenize:
|
2590
|
+
resolveAll: pl,
|
2591
|
+
tokenize: fl
|
2592
2592
|
};
|
2593
|
-
function
|
2593
|
+
function pl(e, n) {
|
2594
2594
|
let t = -1, r, i, l, o, a, s, u, c;
|
2595
2595
|
for (; ++t < e.length; )
|
2596
2596
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
@@ -2645,7 +2645,7 @@ function fl(e, n) {
|
|
2645
2645
|
e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
|
2646
2646
|
return e;
|
2647
2647
|
}
|
2648
|
-
function
|
2648
|
+
function fl(e, n) {
|
2649
2649
|
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ft(r);
|
2650
2650
|
let l;
|
2651
2651
|
return o;
|
@@ -2662,18 +2662,18 @@ function hl(e, n) {
|
|
2662
2662
|
function ht(e, n) {
|
2663
2663
|
e.column += n, e.offset += n, e._bufferIndex += n;
|
2664
2664
|
}
|
2665
|
-
const
|
2665
|
+
const hl = {
|
2666
2666
|
name: "autolink",
|
2667
|
-
tokenize:
|
2667
|
+
tokenize: ml
|
2668
2668
|
};
|
2669
|
-
function
|
2669
|
+
function ml(e, n, t) {
|
2670
2670
|
let r = 0;
|
2671
2671
|
return i;
|
2672
2672
|
function i(f) {
|
2673
2673
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), l;
|
2674
2674
|
}
|
2675
2675
|
function l(f) {
|
2676
|
-
return
|
2676
|
+
return ue(f) ? (e.consume(f), o) : f === 64 ? t(f) : u(f);
|
2677
2677
|
}
|
2678
2678
|
function o(f) {
|
2679
2679
|
return f === 43 || f === 45 || f === 46 || ne(f) ? (r = 1, a(f)) : u(f);
|
@@ -2685,7 +2685,7 @@ function dl(e, n, t) {
|
|
2685
2685
|
return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), n) : f === null || f === 32 || f === 60 || wn(f) ? t(f) : (e.consume(f), s);
|
2686
2686
|
}
|
2687
2687
|
function u(f) {
|
2688
|
-
return f === 64 ? (e.consume(f), c) :
|
2688
|
+
return f === 64 ? (e.consume(f), c) : nl(f) ? (e.consume(f), u) : t(f);
|
2689
2689
|
}
|
2690
2690
|
function c(f) {
|
2691
2691
|
return ne(f) ? p(f) : t(f);
|
@@ -2703,9 +2703,9 @@ function dl(e, n, t) {
|
|
2703
2703
|
}
|
2704
2704
|
const tn = {
|
2705
2705
|
partial: !0,
|
2706
|
-
tokenize:
|
2706
|
+
tokenize: dl
|
2707
2707
|
};
|
2708
|
-
function
|
2708
|
+
function dl(e, n, t) {
|
2709
2709
|
return r;
|
2710
2710
|
function r(l) {
|
2711
2711
|
return F(l) ? V(e, i, "linePrefix")(l) : i(l);
|
@@ -2716,13 +2716,13 @@ function gl(e, n, t) {
|
|
2716
2716
|
}
|
2717
2717
|
const rr = {
|
2718
2718
|
continuation: {
|
2719
|
-
tokenize:
|
2719
|
+
tokenize: yl
|
2720
2720
|
},
|
2721
|
-
exit:
|
2721
|
+
exit: xl,
|
2722
2722
|
name: "blockQuote",
|
2723
|
-
tokenize:
|
2723
|
+
tokenize: gl
|
2724
2724
|
};
|
2725
|
-
function
|
2725
|
+
function gl(e, n, t) {
|
2726
2726
|
const r = this;
|
2727
2727
|
return i;
|
2728
2728
|
function i(o) {
|
@@ -2738,7 +2738,7 @@ function yl(e, n, t) {
|
|
2738
2738
|
return F(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
|
2739
2739
|
}
|
2740
2740
|
}
|
2741
|
-
function
|
2741
|
+
function yl(e, n, t) {
|
2742
2742
|
const r = this;
|
2743
2743
|
return i;
|
2744
2744
|
function i(o) {
|
@@ -2748,27 +2748,27 @@ function xl(e, n, t) {
|
|
2748
2748
|
return e.attempt(rr, n, t)(o);
|
2749
2749
|
}
|
2750
2750
|
}
|
2751
|
-
function
|
2751
|
+
function xl(e) {
|
2752
2752
|
e.exit("blockQuote");
|
2753
2753
|
}
|
2754
2754
|
const ir = {
|
2755
2755
|
name: "characterEscape",
|
2756
|
-
tokenize:
|
2756
|
+
tokenize: kl
|
2757
2757
|
};
|
2758
|
-
function
|
2758
|
+
function kl(e, n, t) {
|
2759
2759
|
return r;
|
2760
2760
|
function r(l) {
|
2761
2761
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
|
2762
2762
|
}
|
2763
2763
|
function i(l) {
|
2764
|
-
return
|
2764
|
+
return rl(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
|
2765
2765
|
}
|
2766
2766
|
}
|
2767
2767
|
const lr = {
|
2768
2768
|
name: "characterReference",
|
2769
|
-
tokenize:
|
2769
|
+
tokenize: bl
|
2770
2770
|
};
|
2771
|
-
function
|
2771
|
+
function bl(e, n, t) {
|
2772
2772
|
const r = this;
|
2773
2773
|
let i = 0, l, o;
|
2774
2774
|
return a;
|
@@ -2779,7 +2779,7 @@ function wl(e, n, t) {
|
|
2779
2779
|
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), l = 31, o = ne, c(p));
|
2780
2780
|
}
|
2781
2781
|
function u(p) {
|
2782
|
-
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o =
|
2782
|
+
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = tl, c) : (e.enter("characterReferenceValue"), l = 7, o = Sn, c(p));
|
2783
2783
|
}
|
2784
2784
|
function c(p) {
|
2785
2785
|
if (p === 59 && i) {
|
@@ -2791,13 +2791,13 @@ function wl(e, n, t) {
|
|
2791
2791
|
}
|
2792
2792
|
const mt = {
|
2793
2793
|
partial: !0,
|
2794
|
-
tokenize:
|
2794
|
+
tokenize: Sl
|
2795
2795
|
}, dt = {
|
2796
2796
|
concrete: !0,
|
2797
2797
|
name: "codeFenced",
|
2798
|
-
tokenize:
|
2798
|
+
tokenize: wl
|
2799
2799
|
};
|
2800
|
-
function
|
2800
|
+
function wl(e, n, t) {
|
2801
2801
|
const r = this, i = {
|
2802
2802
|
partial: !0,
|
2803
2803
|
tokenize: H
|
@@ -2868,7 +2868,7 @@ function Sl(e, n, t) {
|
|
2868
2868
|
}
|
2869
2869
|
}
|
2870
2870
|
}
|
2871
|
-
function
|
2871
|
+
function Sl(e, n, t) {
|
2872
2872
|
const r = this;
|
2873
2873
|
return i;
|
2874
2874
|
function i(o) {
|
@@ -2880,12 +2880,12 @@ function Cl(e, n, t) {
|
|
2880
2880
|
}
|
2881
2881
|
const an = {
|
2882
2882
|
name: "codeIndented",
|
2883
|
-
tokenize:
|
2884
|
-
},
|
2883
|
+
tokenize: El
|
2884
|
+
}, Cl = {
|
2885
2885
|
partial: !0,
|
2886
|
-
tokenize:
|
2886
|
+
tokenize: Il
|
2887
2887
|
};
|
2888
|
-
function
|
2888
|
+
function El(e, n, t) {
|
2889
2889
|
const r = this;
|
2890
2890
|
return i;
|
2891
2891
|
function i(u) {
|
@@ -2896,7 +2896,7 @@ function Il(e, n, t) {
|
|
2896
2896
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : t(u);
|
2897
2897
|
}
|
2898
2898
|
function o(u) {
|
2899
|
-
return u === null ? s(u) : L(u) ? e.attempt(
|
2899
|
+
return u === null ? s(u) : L(u) ? e.attempt(Cl, o, s)(u) : (e.enter("codeFlowValue"), a(u));
|
2900
2900
|
}
|
2901
2901
|
function a(u) {
|
2902
2902
|
return u === null || L(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), a);
|
@@ -2905,7 +2905,7 @@ function Il(e, n, t) {
|
|
2905
2905
|
return e.exit("codeIndented"), n(u);
|
2906
2906
|
}
|
2907
2907
|
}
|
2908
|
-
function
|
2908
|
+
function Il(e, n, t) {
|
2909
2909
|
const r = this;
|
2910
2910
|
return i;
|
2911
2911
|
function i(o) {
|
@@ -2916,13 +2916,13 @@ function Tl(e, n, t) {
|
|
2916
2916
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : L(o) ? i(o) : t(o);
|
2917
2917
|
}
|
2918
2918
|
}
|
2919
|
-
const
|
2919
|
+
const Tl = {
|
2920
2920
|
name: "codeText",
|
2921
|
-
previous:
|
2922
|
-
resolve:
|
2923
|
-
tokenize:
|
2921
|
+
previous: Al,
|
2922
|
+
resolve: Pl,
|
2923
|
+
tokenize: zl
|
2924
2924
|
};
|
2925
|
-
function
|
2925
|
+
function Pl(e) {
|
2926
2926
|
let n = e.length - 4, t = 3, r, i;
|
2927
2927
|
if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
|
2928
2928
|
for (r = t; ++r < n; )
|
@@ -2935,10 +2935,10 @@ function Al(e) {
|
|
2935
2935
|
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);
|
2936
2936
|
return e;
|
2937
2937
|
}
|
2938
|
-
function
|
2938
|
+
function Al(e) {
|
2939
2939
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
2940
2940
|
}
|
2941
|
-
function
|
2941
|
+
function zl(e, n, t) {
|
2942
2942
|
let r = 0, i, l;
|
2943
2943
|
return o;
|
2944
2944
|
function o(p) {
|
@@ -2957,7 +2957,7 @@ function Ll(e, n, t) {
|
|
2957
2957
|
return p === 96 ? (e.consume(p), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(p)) : (l.type = "codeTextData", u(p));
|
2958
2958
|
}
|
2959
2959
|
}
|
2960
|
-
class
|
2960
|
+
class Ll {
|
2961
2961
|
/**
|
2962
2962
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
2963
2963
|
* Initial items (optional).
|
@@ -3132,7 +3132,7 @@ function Be(e, n) {
|
|
3132
3132
|
function or(e) {
|
3133
3133
|
const n = {};
|
3134
3134
|
let t = -1, r, i, l, o, a, s, u;
|
3135
|
-
const c = new
|
3135
|
+
const c = new Ll(e);
|
3136
3136
|
for (; ++t < c.length; ) {
|
3137
3137
|
for (; t in n; )
|
3138
3138
|
t = n[t];
|
@@ -3140,7 +3140,7 @@ function or(e) {
|
|
3140
3140
|
for (; ++l < s.length && s[l][1].type !== "content"; )
|
3141
3141
|
s[l][1].type === "chunkText" && (s[l][1]._isInFirstContentOfListItem = !0, l++);
|
3142
3142
|
if (r[0] === "enter")
|
3143
|
-
r[1].contentType && (Object.assign(n,
|
3143
|
+
r[1].contentType && (Object.assign(n, _l(c, t)), t = n[t], u = !0);
|
3144
3144
|
else if (r[1]._container) {
|
3145
3145
|
for (l = t, i = void 0; l--; )
|
3146
3146
|
if (o = c.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
|
@@ -3153,7 +3153,7 @@ function or(e) {
|
|
3153
3153
|
}
|
3154
3154
|
return ce(e, 0, Number.POSITIVE_INFINITY, c.slice(0)), !u;
|
3155
3155
|
}
|
3156
|
-
function
|
3156
|
+
function _l(e, n) {
|
3157
3157
|
const t = e.get(n)[1], r = e.get(n)[2];
|
3158
3158
|
let i = n - 1;
|
3159
3159
|
const l = [];
|
@@ -3178,17 +3178,17 @@ function vl(e, n) {
|
|
3178
3178
|
u[w + s[d][0]] = w + s[d][1], w += s[d][1] - s[d][0] - 1;
|
3179
3179
|
return u;
|
3180
3180
|
}
|
3181
|
-
const
|
3182
|
-
resolve:
|
3183
|
-
tokenize:
|
3184
|
-
},
|
3181
|
+
const vl = {
|
3182
|
+
resolve: Rl,
|
3183
|
+
tokenize: Dl
|
3184
|
+
}, Nl = {
|
3185
3185
|
partial: !0,
|
3186
|
-
tokenize:
|
3186
|
+
tokenize: Fl
|
3187
3187
|
};
|
3188
|
-
function
|
3188
|
+
function Rl(e) {
|
3189
3189
|
return or(e), e;
|
3190
3190
|
}
|
3191
|
-
function
|
3191
|
+
function Dl(e, n) {
|
3192
3192
|
let t;
|
3193
3193
|
return r;
|
3194
3194
|
function r(a) {
|
@@ -3197,7 +3197,7 @@ function Fl(e, n) {
|
|
3197
3197
|
}), i(a);
|
3198
3198
|
}
|
3199
3199
|
function i(a) {
|
3200
|
-
return a === null ? l(a) : L(a) ? e.check(
|
3200
|
+
return a === null ? l(a) : L(a) ? e.check(Nl, o, l)(a) : (e.consume(a), i);
|
3201
3201
|
}
|
3202
3202
|
function l(a) {
|
3203
3203
|
return e.exit("chunkContent"), e.exit("content"), n(a);
|
@@ -3209,7 +3209,7 @@ function Fl(e, n) {
|
|
3209
3209
|
}), t = t.next, i;
|
3210
3210
|
}
|
3211
3211
|
}
|
3212
|
-
function
|
3212
|
+
function Fl(e, n, t) {
|
3213
3213
|
const r = this;
|
3214
3214
|
return i;
|
3215
3215
|
function i(o) {
|
@@ -3301,14 +3301,14 @@ function Ue(e, n) {
|
|
3301
3301
|
return L(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : F(i) ? V(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
3302
3302
|
}
|
3303
3303
|
}
|
3304
|
-
const
|
3304
|
+
const Ol = {
|
3305
3305
|
name: "definition",
|
3306
|
-
tokenize:
|
3307
|
-
},
|
3306
|
+
tokenize: Bl
|
3307
|
+
}, Ml = {
|
3308
3308
|
partial: !0,
|
3309
|
-
tokenize:
|
3309
|
+
tokenize: jl
|
3310
3310
|
};
|
3311
|
-
function
|
3311
|
+
function Bl(e, n, t) {
|
3312
3312
|
const r = this;
|
3313
3313
|
let i;
|
3314
3314
|
return l;
|
@@ -3347,7 +3347,7 @@ function jl(e, n, t) {
|
|
3347
3347
|
)(f);
|
3348
3348
|
}
|
3349
3349
|
function c(f) {
|
3350
|
-
return e.attempt(
|
3350
|
+
return e.attempt(Ml, p, p)(f);
|
3351
3351
|
}
|
3352
3352
|
function p(f) {
|
3353
3353
|
return F(f) ? V(e, d, "whitespace")(f) : d(f);
|
@@ -3356,7 +3356,7 @@ function jl(e, n, t) {
|
|
3356
3356
|
return f === null || L(f) ? (e.exit("definition"), r.parser.defined.push(i), n(f)) : t(f);
|
3357
3357
|
}
|
3358
3358
|
}
|
3359
|
-
function
|
3359
|
+
function jl(e, n, t) {
|
3360
3360
|
return r;
|
3361
3361
|
function r(a) {
|
3362
3362
|
return Q(a) ? Ue(e, i)(a) : t(a);
|
@@ -3371,11 +3371,11 @@ function Hl(e, n, t) {
|
|
3371
3371
|
return a === null || L(a) ? n(a) : t(a);
|
3372
3372
|
}
|
3373
3373
|
}
|
3374
|
-
const
|
3374
|
+
const Hl = {
|
3375
3375
|
name: "hardBreakEscape",
|
3376
|
-
tokenize:
|
3376
|
+
tokenize: Ul
|
3377
3377
|
};
|
3378
|
-
function
|
3378
|
+
function Ul(e, n, t) {
|
3379
3379
|
return r;
|
3380
3380
|
function r(l) {
|
3381
3381
|
return e.enter("hardBreakEscape"), e.consume(l), i;
|
@@ -3384,12 +3384,12 @@ function Vl(e, n, t) {
|
|
3384
3384
|
return L(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
|
3385
3385
|
}
|
3386
3386
|
}
|
3387
|
-
const
|
3387
|
+
const Vl = {
|
3388
3388
|
name: "headingAtx",
|
3389
|
-
resolve:
|
3390
|
-
tokenize:
|
3389
|
+
resolve: ql,
|
3390
|
+
tokenize: $l
|
3391
3391
|
};
|
3392
|
-
function
|
3392
|
+
function ql(e, n) {
|
3393
3393
|
let t = e.length - 2, r = 3, i, l;
|
3394
3394
|
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 = {
|
3395
3395
|
type: "atxHeadingText",
|
@@ -3402,7 +3402,7 @@ function $l(e, n) {
|
|
3402
3402
|
contentType: "text"
|
3403
3403
|
}, ce(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
|
3404
3404
|
}
|
3405
|
-
function
|
3405
|
+
function $l(e, n, t) {
|
3406
3406
|
let r = 0;
|
3407
3407
|
return i;
|
3408
3408
|
function i(c) {
|
@@ -3424,7 +3424,7 @@ function Wl(e, n, t) {
|
|
3424
3424
|
return c === null || c === 35 || Q(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
|
3425
3425
|
}
|
3426
3426
|
}
|
3427
|
-
const
|
3427
|
+
const Wl = [
|
3428
3428
|
"address",
|
3429
3429
|
"article",
|
3430
3430
|
"aside",
|
@@ -3487,25 +3487,25 @@ const Gl = [
|
|
3487
3487
|
"tr",
|
3488
3488
|
"track",
|
3489
3489
|
"ul"
|
3490
|
-
], gt = ["pre", "script", "style", "textarea"],
|
3490
|
+
], gt = ["pre", "script", "style", "textarea"], Gl = {
|
3491
3491
|
concrete: !0,
|
3492
3492
|
name: "htmlFlow",
|
3493
|
-
resolveTo:
|
3494
|
-
tokenize:
|
3495
|
-
},
|
3496
|
-
partial: !0,
|
3497
|
-
tokenize: eo
|
3498
|
-
}, Kl = {
|
3493
|
+
resolveTo: Kl,
|
3494
|
+
tokenize: Ql
|
3495
|
+
}, Xl = {
|
3499
3496
|
partial: !0,
|
3500
3497
|
tokenize: Zl
|
3498
|
+
}, Yl = {
|
3499
|
+
partial: !0,
|
3500
|
+
tokenize: Jl
|
3501
3501
|
};
|
3502
|
-
function
|
3502
|
+
function Kl(e) {
|
3503
3503
|
let n = e.length;
|
3504
3504
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
|
3505
3505
|
;
|
3506
3506
|
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;
|
3507
3507
|
}
|
3508
|
-
function
|
3508
|
+
function Ql(e, n, t) {
|
3509
3509
|
const r = this;
|
3510
3510
|
let i, l, o, a, s;
|
3511
3511
|
return u;
|
@@ -3516,10 +3516,10 @@ function Jl(e, n, t) {
|
|
3516
3516
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(m), p;
|
3517
3517
|
}
|
3518
3518
|
function p(m) {
|
3519
|
-
return m === 33 ? (e.consume(m), d) : m === 47 ? (e.consume(m), l = !0, b) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? n : h) :
|
3519
|
+
return m === 33 ? (e.consume(m), d) : m === 47 ? (e.consume(m), l = !0, b) : m === 63 ? (e.consume(m), i = 3, r.interrupt ? n : h) : ue(m) ? (e.consume(m), o = String.fromCharCode(m), z) : t(m);
|
3520
3520
|
}
|
3521
3521
|
function d(m) {
|
3522
|
-
return m === 45 ? (e.consume(m), i = 2, f) : m === 91 ? (e.consume(m), i = 5, a = 0, w) :
|
3522
|
+
return m === 45 ? (e.consume(m), i = 2, f) : m === 91 ? (e.consume(m), i = 5, a = 0, w) : ue(m) ? (e.consume(m), i = 4, r.interrupt ? n : h) : t(m);
|
3523
3523
|
}
|
3524
3524
|
function f(m) {
|
3525
3525
|
return m === 45 ? (e.consume(m), r.interrupt ? n : h) : t(m);
|
@@ -3529,12 +3529,12 @@ function Jl(e, n, t) {
|
|
3529
3529
|
return m === le.charCodeAt(a++) ? (e.consume(m), a === le.length ? r.interrupt ? n : I : w) : t(m);
|
3530
3530
|
}
|
3531
3531
|
function b(m) {
|
3532
|
-
return
|
3532
|
+
return ue(m) ? (e.consume(m), o = String.fromCharCode(m), z) : t(m);
|
3533
3533
|
}
|
3534
3534
|
function z(m) {
|
3535
3535
|
if (m === null || m === 47 || m === 62 || Q(m)) {
|
3536
3536
|
const le = m === 47, xe = o.toLowerCase();
|
3537
|
-
return !le && !l && gt.includes(xe) ? (i = 1, r.interrupt ? n(m) : I(m)) :
|
3537
|
+
return !le && !l && gt.includes(xe) ? (i = 1, r.interrupt ? n(m) : I(m)) : Wl.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), k) : r.interrupt ? n(m) : I(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? A(m) : C(m));
|
3538
3538
|
}
|
3539
3539
|
return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), z) : t(m);
|
3540
3540
|
}
|
@@ -3545,7 +3545,7 @@ function Jl(e, n, t) {
|
|
3545
3545
|
return F(m) ? (e.consume(m), A) : M(m);
|
3546
3546
|
}
|
3547
3547
|
function C(m) {
|
3548
|
-
return m === 47 ? (e.consume(m), M) : m === 58 || m === 95 ||
|
3548
|
+
return m === 47 ? (e.consume(m), M) : m === 58 || m === 95 || ue(m) ? (e.consume(m), B) : F(m) ? (e.consume(m), C) : M(m);
|
3549
3549
|
}
|
3550
3550
|
function B(m) {
|
3551
3551
|
return m === 45 || m === 46 || m === 58 || m === 95 || ne(m) ? (e.consume(m), B) : H(m);
|
@@ -3572,10 +3572,10 @@ function Jl(e, n, t) {
|
|
3572
3572
|
return m === null || L(m) ? I(m) : F(m) ? (e.consume(m), P) : t(m);
|
3573
3573
|
}
|
3574
3574
|
function I(m) {
|
3575
|
-
return m === 45 && i === 2 ? (e.consume(m), W) : m === 60 && i === 1 ? (e.consume(m), G) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), pe) : L(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
3575
|
+
return m === 45 && i === 2 ? (e.consume(m), W) : m === 60 && i === 1 ? (e.consume(m), G) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), pe) : L(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Xl, fe, T)(m)) : m === null || L(m) ? (e.exit("htmlFlowData"), T(m)) : (e.consume(m), I);
|
3576
3576
|
}
|
3577
3577
|
function T(m) {
|
3578
|
-
return e.check(
|
3578
|
+
return e.check(Yl, E, fe)(m);
|
3579
3579
|
}
|
3580
3580
|
function E(m) {
|
3581
3581
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), _;
|
@@ -3594,7 +3594,7 @@ function Jl(e, n, t) {
|
|
3594
3594
|
const le = o.toLowerCase();
|
3595
3595
|
return gt.includes(le) ? (e.consume(m), ie) : I(m);
|
3596
3596
|
}
|
3597
|
-
return
|
3597
|
+
return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : I(m);
|
3598
3598
|
}
|
3599
3599
|
function pe(m) {
|
3600
3600
|
return m === 93 ? (e.consume(m), h) : I(m);
|
@@ -3609,7 +3609,7 @@ function Jl(e, n, t) {
|
|
3609
3609
|
return e.exit("htmlFlow"), n(m);
|
3610
3610
|
}
|
3611
3611
|
}
|
3612
|
-
function
|
3612
|
+
function Jl(e, n, t) {
|
3613
3613
|
const r = this;
|
3614
3614
|
return i;
|
3615
3615
|
function i(o) {
|
@@ -3619,17 +3619,17 @@ function Zl(e, n, t) {
|
|
3619
3619
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
3620
3620
|
}
|
3621
3621
|
}
|
3622
|
-
function
|
3622
|
+
function Zl(e, n, t) {
|
3623
3623
|
return r;
|
3624
3624
|
function r(i) {
|
3625
3625
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(tn, n, t);
|
3626
3626
|
}
|
3627
3627
|
}
|
3628
|
-
const
|
3628
|
+
const eo = {
|
3629
3629
|
name: "htmlText",
|
3630
|
-
tokenize:
|
3630
|
+
tokenize: no
|
3631
3631
|
};
|
3632
|
-
function
|
3632
|
+
function no(e, n, t) {
|
3633
3633
|
const r = this;
|
3634
3634
|
let i, l, o;
|
3635
3635
|
return a;
|
@@ -3637,10 +3637,10 @@ function to(e, n, t) {
|
|
3637
3637
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(h), s;
|
3638
3638
|
}
|
3639
3639
|
function s(h) {
|
3640
|
-
return h === 33 ? (e.consume(h), u) : h === 47 ? (e.consume(h), H) : h === 63 ? (e.consume(h), C) :
|
3640
|
+
return h === 33 ? (e.consume(h), u) : h === 47 ? (e.consume(h), H) : h === 63 ? (e.consume(h), C) : ue(h) ? (e.consume(h), q) : t(h);
|
3641
3641
|
}
|
3642
3642
|
function u(h) {
|
3643
|
-
return h === 45 ? (e.consume(h), c) : h === 91 ? (e.consume(h), l = 0, w) :
|
3643
|
+
return h === 45 ? (e.consume(h), c) : h === 91 ? (e.consume(h), l = 0, w) : ue(h) ? (e.consume(h), A) : t(h);
|
3644
3644
|
}
|
3645
3645
|
function c(h) {
|
3646
3646
|
return h === 45 ? (e.consume(h), f) : t(h);
|
@@ -3677,7 +3677,7 @@ function to(e, n, t) {
|
|
3677
3677
|
return h === 62 ? W(h) : C(h);
|
3678
3678
|
}
|
3679
3679
|
function H(h) {
|
3680
|
-
return
|
3680
|
+
return ue(h) ? (e.consume(h), y) : t(h);
|
3681
3681
|
}
|
3682
3682
|
function y(h) {
|
3683
3683
|
return h === 45 || ne(h) ? (e.consume(h), y) : D(h);
|
@@ -3689,7 +3689,7 @@ function to(e, n, t) {
|
|
3689
3689
|
return h === 45 || ne(h) ? (e.consume(h), q) : h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
3690
3690
|
}
|
3691
3691
|
function O(h) {
|
3692
|
-
return h === 47 ? (e.consume(h), W) : h === 58 || h === 95 ||
|
3692
|
+
return h === 47 ? (e.consume(h), W) : h === 58 || h === 95 || ue(h) ? (e.consume(h), M) : L(h) ? (o = O, G(h)) : F(h) ? (e.consume(h), O) : W(h);
|
3693
3693
|
}
|
3694
3694
|
function M(h) {
|
3695
3695
|
return h === 45 || h === 46 || h === 58 || h === 95 || ne(h) ? (e.consume(h), M) : P(h);
|
@@ -3724,17 +3724,17 @@ function to(e, n, t) {
|
|
3724
3724
|
}
|
3725
3725
|
const Hn = {
|
3726
3726
|
name: "labelEnd",
|
3727
|
-
resolveAll:
|
3728
|
-
resolveTo:
|
3727
|
+
resolveAll: lo,
|
3728
|
+
resolveTo: oo,
|
3729
|
+
tokenize: ao
|
3730
|
+
}, to = {
|
3729
3731
|
tokenize: uo
|
3730
3732
|
}, ro = {
|
3731
3733
|
tokenize: so
|
3732
3734
|
}, io = {
|
3733
3735
|
tokenize: co
|
3734
|
-
}, lo = {
|
3735
|
-
tokenize: po
|
3736
3736
|
};
|
3737
|
-
function
|
3737
|
+
function lo(e) {
|
3738
3738
|
let n = -1;
|
3739
3739
|
const t = [];
|
3740
3740
|
for (; ++n < e.length; ) {
|
@@ -3746,7 +3746,7 @@ function oo(e) {
|
|
3746
3746
|
}
|
3747
3747
|
return e.length !== t.length && ce(e, 0, e.length, t), e;
|
3748
3748
|
}
|
3749
|
-
function
|
3749
|
+
function oo(e, n) {
|
3750
3750
|
let t = e.length, r = 0, i, l, o, a;
|
3751
3751
|
for (; t--; )
|
3752
3752
|
if (i = e[t][1], l) {
|
@@ -3786,7 +3786,7 @@ function ao(e, n) {
|
|
3786
3786
|
};
|
3787
3787
|
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, jn(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]]), ce(e, l, e.length, a), e;
|
3788
3788
|
}
|
3789
|
-
function
|
3789
|
+
function ao(e, n, t) {
|
3790
3790
|
const r = this;
|
3791
3791
|
let i = r.events.length, l, o;
|
3792
3792
|
for (; i--; )
|
@@ -3802,10 +3802,10 @@ function uo(e, n, t) {
|
|
3802
3802
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), s) : t(d);
|
3803
3803
|
}
|
3804
3804
|
function s(d) {
|
3805
|
-
return d === 40 ? e.attempt(
|
3805
|
+
return d === 40 ? e.attempt(to, c, o ? c : p)(d) : d === 91 ? e.attempt(ro, c, o ? u : p)(d) : o ? c(d) : p(d);
|
3806
3806
|
}
|
3807
3807
|
function u(d) {
|
3808
|
-
return e.attempt(
|
3808
|
+
return e.attempt(io, c, p)(d);
|
3809
3809
|
}
|
3810
3810
|
function c(d) {
|
3811
3811
|
return n(d);
|
@@ -3814,7 +3814,7 @@ function uo(e, n, t) {
|
|
3814
3814
|
return l._balanced = !0, t(d);
|
3815
3815
|
}
|
3816
3816
|
}
|
3817
|
-
function
|
3817
|
+
function uo(e, n, t) {
|
3818
3818
|
return r;
|
3819
3819
|
function r(p) {
|
3820
3820
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
@@ -3841,7 +3841,7 @@ function so(e, n, t) {
|
|
3841
3841
|
return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), n) : t(p);
|
3842
3842
|
}
|
3843
3843
|
}
|
3844
|
-
function
|
3844
|
+
function so(e, n, t) {
|
3845
3845
|
const r = this;
|
3846
3846
|
return i;
|
3847
3847
|
function i(a) {
|
@@ -3854,7 +3854,7 @@ function co(e, n, t) {
|
|
3854
3854
|
return t(a);
|
3855
3855
|
}
|
3856
3856
|
}
|
3857
|
-
function
|
3857
|
+
function co(e, n, t) {
|
3858
3858
|
return r;
|
3859
3859
|
function r(l) {
|
3860
3860
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
|
@@ -3863,12 +3863,12 @@ function po(e, n, t) {
|
|
3863
3863
|
return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
|
3864
3864
|
}
|
3865
3865
|
}
|
3866
|
-
const
|
3866
|
+
const po = {
|
3867
3867
|
name: "labelStartImage",
|
3868
3868
|
resolveAll: Hn.resolveAll,
|
3869
|
-
tokenize:
|
3869
|
+
tokenize: fo
|
3870
3870
|
};
|
3871
|
-
function
|
3871
|
+
function fo(e, n, t) {
|
3872
3872
|
const r = this;
|
3873
3873
|
return i;
|
3874
3874
|
function i(a) {
|
@@ -3881,12 +3881,12 @@ function ho(e, n, t) {
|
|
3881
3881
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
|
3882
3882
|
}
|
3883
3883
|
}
|
3884
|
-
const
|
3884
|
+
const ho = {
|
3885
3885
|
name: "labelStartLink",
|
3886
3886
|
resolveAll: Hn.resolveAll,
|
3887
|
-
tokenize:
|
3887
|
+
tokenize: mo
|
3888
3888
|
};
|
3889
|
-
function
|
3889
|
+
function mo(e, n, t) {
|
3890
3890
|
const r = this;
|
3891
3891
|
return i;
|
3892
3892
|
function i(o) {
|
@@ -3898,9 +3898,9 @@ function go(e, n, t) {
|
|
3898
3898
|
}
|
3899
3899
|
const un = {
|
3900
3900
|
name: "lineEnding",
|
3901
|
-
tokenize:
|
3901
|
+
tokenize: go
|
3902
3902
|
};
|
3903
|
-
function
|
3903
|
+
function go(e, n) {
|
3904
3904
|
return t;
|
3905
3905
|
function t(r) {
|
3906
3906
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), V(e, n, "linePrefix");
|
@@ -3908,9 +3908,9 @@ function yo(e, n) {
|
|
3908
3908
|
}
|
3909
3909
|
const Qe = {
|
3910
3910
|
name: "thematicBreak",
|
3911
|
-
tokenize:
|
3911
|
+
tokenize: yo
|
3912
3912
|
};
|
3913
|
-
function
|
3913
|
+
function yo(e, n, t) {
|
3914
3914
|
let r = 0, i;
|
3915
3915
|
return l;
|
3916
3916
|
function l(u) {
|
@@ -3928,19 +3928,19 @@ function xo(e, n, t) {
|
|
3928
3928
|
}
|
3929
3929
|
const K = {
|
3930
3930
|
continuation: {
|
3931
|
-
tokenize:
|
3931
|
+
tokenize: wo
|
3932
3932
|
},
|
3933
|
-
exit:
|
3933
|
+
exit: Co,
|
3934
3934
|
name: "list",
|
3935
|
-
tokenize:
|
3936
|
-
},
|
3935
|
+
tokenize: bo
|
3936
|
+
}, xo = {
|
3937
3937
|
partial: !0,
|
3938
|
-
tokenize:
|
3939
|
-
},
|
3938
|
+
tokenize: Eo
|
3939
|
+
}, ko = {
|
3940
3940
|
partial: !0,
|
3941
|
-
tokenize:
|
3941
|
+
tokenize: So
|
3942
3942
|
};
|
3943
|
-
function
|
3943
|
+
function bo(e, n, t) {
|
3944
3944
|
const r = this, i = r.events[r.events.length - 1];
|
3945
3945
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
3946
3946
|
return a;
|
@@ -3964,7 +3964,7 @@ function wo(e, n, t) {
|
|
3964
3964
|
tn,
|
3965
3965
|
// Can’t be empty when interrupting.
|
3966
3966
|
r.interrupt ? t : c,
|
3967
|
-
e.attempt(
|
3967
|
+
e.attempt(xo, d, p)
|
3968
3968
|
);
|
3969
3969
|
}
|
3970
3970
|
function c(f) {
|
@@ -3977,20 +3977,20 @@ function wo(e, n, t) {
|
|
3977
3977
|
return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(f);
|
3978
3978
|
}
|
3979
3979
|
}
|
3980
|
-
function
|
3980
|
+
function wo(e, n, t) {
|
3981
3981
|
const r = this;
|
3982
3982
|
return r.containerState._closeFlow = void 0, e.check(tn, i, l);
|
3983
3983
|
function i(a) {
|
3984
3984
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, V(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
3985
3985
|
}
|
3986
3986
|
function l(a) {
|
3987
|
-
return r.containerState.furtherBlankLines || !F(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(
|
3987
|
+
return r.containerState.furtherBlankLines || !F(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(ko, n, o)(a));
|
3988
3988
|
}
|
3989
3989
|
function o(a) {
|
3990
3990
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, V(e, e.attempt(K, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
3991
3991
|
}
|
3992
3992
|
}
|
3993
|
-
function
|
3993
|
+
function So(e, n, t) {
|
3994
3994
|
const r = this;
|
3995
3995
|
return V(e, i, "listItemIndent", r.containerState.size + 1);
|
3996
3996
|
function i(l) {
|
@@ -3998,10 +3998,10 @@ function Co(e, n, t) {
|
|
3998
3998
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
|
3999
3999
|
}
|
4000
4000
|
}
|
4001
|
-
function
|
4001
|
+
function Co(e) {
|
4002
4002
|
e.exit(this.containerState.type);
|
4003
4003
|
}
|
4004
|
-
function
|
4004
|
+
function Eo(e, n, t) {
|
4005
4005
|
const r = this;
|
4006
4006
|
return V(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
4007
4007
|
function i(l) {
|
@@ -4011,10 +4011,10 @@ function Io(e, n, t) {
|
|
4011
4011
|
}
|
4012
4012
|
const yt = {
|
4013
4013
|
name: "setextUnderline",
|
4014
|
-
resolveTo:
|
4015
|
-
tokenize:
|
4014
|
+
resolveTo: Io,
|
4015
|
+
tokenize: To
|
4016
4016
|
};
|
4017
|
-
function
|
4017
|
+
function Io(e, n) {
|
4018
4018
|
let t = e.length, r, i, l;
|
4019
4019
|
for (; t--; )
|
4020
4020
|
if (e[t][0] === "enter") {
|
@@ -4038,7 +4038,7 @@ function To(e, n) {
|
|
4038
4038
|
...e[l][1].end
|
4039
4039
|
}) : e[r][1] = o, e.push(["exit", o, n]), e;
|
4040
4040
|
}
|
4041
|
-
function
|
4041
|
+
function To(e, n, t) {
|
4042
4042
|
const r = this;
|
4043
4043
|
let i;
|
4044
4044
|
return l;
|
@@ -4061,16 +4061,16 @@ function Po(e, n, t) {
|
|
4061
4061
|
return u === null || L(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
|
4062
4062
|
}
|
4063
4063
|
}
|
4064
|
-
const
|
4065
|
-
tokenize:
|
4064
|
+
const Po = {
|
4065
|
+
tokenize: Ao
|
4066
4066
|
};
|
4067
|
-
function
|
4067
|
+
function Ao(e) {
|
4068
4068
|
const n = this, t = e.attempt(
|
4069
4069
|
// Try to parse a blank line.
|
4070
4070
|
tn,
|
4071
4071
|
r,
|
4072
4072
|
// Try to parse initial flow (essentially, only code).
|
4073
|
-
e.attempt(this.parser.constructs.flowInitial, i, V(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
4073
|
+
e.attempt(this.parser.constructs.flowInitial, i, V(e, e.attempt(this.parser.constructs.flow, i, e.attempt(vl, i)), "linePrefix"))
|
4074
4074
|
);
|
4075
4075
|
return t;
|
4076
4076
|
function r(l) {
|
@@ -4088,12 +4088,12 @@ function zo(e) {
|
|
4088
4088
|
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
4089
4089
|
}
|
4090
4090
|
}
|
4091
|
-
const
|
4091
|
+
const zo = {
|
4092
4092
|
resolveAll: pr()
|
4093
|
-
},
|
4093
|
+
}, Lo = cr("string"), _o = cr("text");
|
4094
4094
|
function cr(e) {
|
4095
4095
|
return {
|
4096
|
-
resolveAll: pr(e === "text" ?
|
4096
|
+
resolveAll: pr(e === "text" ? vo : void 0),
|
4097
4097
|
tokenize: n
|
4098
4098
|
};
|
4099
4099
|
function n(t) {
|
@@ -4136,7 +4136,7 @@ function pr(e) {
|
|
4136
4136
|
return e ? e(t, r) : t;
|
4137
4137
|
}
|
4138
4138
|
}
|
4139
|
-
function
|
4139
|
+
function vo(e, n) {
|
4140
4140
|
let t = 0;
|
4141
4141
|
for (; ++t <= e.length; )
|
4142
4142
|
if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
@@ -4178,7 +4178,7 @@ function No(e, n) {
|
|
4178
4178
|
}
|
4179
4179
|
return e;
|
4180
4180
|
}
|
4181
|
-
const
|
4181
|
+
const No = {
|
4182
4182
|
42: K,
|
4183
4183
|
43: K,
|
4184
4184
|
45: K,
|
@@ -4193,45 +4193,45 @@ const Ro = {
|
|
4193
4193
|
56: K,
|
4194
4194
|
57: K,
|
4195
4195
|
62: rr
|
4196
|
+
}, Ro = {
|
4197
|
+
91: Ol
|
4196
4198
|
}, Do = {
|
4197
|
-
91: Ml
|
4198
|
-
}, Fo = {
|
4199
4199
|
[-2]: an,
|
4200
4200
|
[-1]: an,
|
4201
4201
|
32: an
|
4202
|
-
},
|
4203
|
-
35:
|
4202
|
+
}, Fo = {
|
4203
|
+
35: Vl,
|
4204
4204
|
42: Qe,
|
4205
4205
|
45: [yt, Qe],
|
4206
|
-
60:
|
4206
|
+
60: Gl,
|
4207
4207
|
61: yt,
|
4208
4208
|
95: Qe,
|
4209
4209
|
96: dt,
|
4210
4210
|
126: dt
|
4211
|
-
},
|
4211
|
+
}, Oo = {
|
4212
4212
|
38: lr,
|
4213
4213
|
92: ir
|
4214
|
-
},
|
4214
|
+
}, Mo = {
|
4215
4215
|
[-5]: un,
|
4216
4216
|
[-4]: un,
|
4217
4217
|
[-3]: un,
|
4218
|
-
33:
|
4218
|
+
33: po,
|
4219
4219
|
38: lr,
|
4220
4220
|
42: Cn,
|
4221
|
-
60: [
|
4222
|
-
91:
|
4223
|
-
92: [
|
4221
|
+
60: [hl, eo],
|
4222
|
+
91: ho,
|
4223
|
+
92: [Hl, ir],
|
4224
4224
|
93: Hn,
|
4225
4225
|
95: Cn,
|
4226
|
-
96:
|
4226
|
+
96: Tl
|
4227
|
+
}, Bo = {
|
4228
|
+
null: [Cn, zo]
|
4227
4229
|
}, jo = {
|
4228
|
-
null: [Cn, Lo]
|
4229
|
-
}, Ho = {
|
4230
4230
|
null: [42, 95]
|
4231
|
-
},
|
4231
|
+
}, Ho = {
|
4232
4232
|
null: []
|
4233
|
-
},
|
4234
|
-
function
|
4233
|
+
}, Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: jo, contentInitial: Ro, disable: Ho, document: No, flow: Fo, flowInitial: Do, insideSpan: Bo, string: Oo, text: Mo }, Symbol.toStringTag, { value: "Module" }));
|
4234
|
+
function Vo(e, n, t) {
|
4235
4235
|
let r = {
|
4236
4236
|
_bufferIndex: -1,
|
4237
4237
|
_index: 0,
|
@@ -4268,10 +4268,10 @@ function qo(e, n, t) {
|
|
4268
4268
|
return o = te(o, P), z(), o[o.length - 1] !== null ? [] : (q(n, 0), u.events = jn(l, u.events, u), u.events);
|
4269
4269
|
}
|
4270
4270
|
function d(P, I) {
|
4271
|
-
return
|
4271
|
+
return $o(f(P), I);
|
4272
4272
|
}
|
4273
4273
|
function f(P) {
|
4274
|
-
return
|
4274
|
+
return qo(o, P);
|
4275
4275
|
}
|
4276
4276
|
function w() {
|
4277
4277
|
const {
|
@@ -4394,7 +4394,7 @@ function qo(e, n, t) {
|
|
4394
4394
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
4395
4395
|
}
|
4396
4396
|
}
|
4397
|
-
function
|
4397
|
+
function qo(e, n) {
|
4398
4398
|
const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
|
4399
4399
|
let o;
|
4400
4400
|
if (t === i)
|
@@ -4408,7 +4408,7 @@ function $o(e, n) {
|
|
4408
4408
|
}
|
4409
4409
|
return o;
|
4410
4410
|
}
|
4411
|
-
function
|
4411
|
+
function $o(e, n) {
|
4412
4412
|
let t = -1;
|
4413
4413
|
const r = [];
|
4414
4414
|
let i;
|
@@ -4448,35 +4448,35 @@ function Wo(e, n) {
|
|
4448
4448
|
}
|
4449
4449
|
return r.join("");
|
4450
4450
|
}
|
4451
|
-
function
|
4451
|
+
function Wo(e) {
|
4452
4452
|
const r = {
|
4453
4453
|
constructs: (
|
4454
4454
|
/** @type {FullNormalizedExtension} */
|
4455
|
-
|
4455
|
+
Ji([Uo, ...(e || {}).extensions || []])
|
4456
4456
|
),
|
4457
|
-
content: i(
|
4457
|
+
content: i(ol),
|
4458
4458
|
defined: [],
|
4459
|
-
document: i(
|
4460
|
-
flow: i(
|
4459
|
+
document: i(ul),
|
4460
|
+
flow: i(Po),
|
4461
4461
|
lazy: {},
|
4462
|
-
string: i(
|
4463
|
-
text: i(
|
4462
|
+
string: i(Lo),
|
4463
|
+
text: i(_o)
|
4464
4464
|
};
|
4465
4465
|
return r;
|
4466
4466
|
function i(l) {
|
4467
4467
|
return o;
|
4468
4468
|
function o(a) {
|
4469
|
-
return
|
4469
|
+
return Vo(r, l, a);
|
4470
4470
|
}
|
4471
4471
|
}
|
4472
4472
|
}
|
4473
|
-
function
|
4473
|
+
function Go(e) {
|
4474
4474
|
for (; !or(e); )
|
4475
4475
|
;
|
4476
4476
|
return e;
|
4477
4477
|
}
|
4478
4478
|
const xt = /[\0\t\n\r]/g;
|
4479
|
-
function
|
4479
|
+
function Xo() {
|
4480
4480
|
let e = 1, n = "", t = !0, r;
|
4481
4481
|
return i;
|
4482
4482
|
function i(l, o, a) {
|
@@ -4511,11 +4511,11 @@ function Yo() {
|
|
4511
4511
|
return a && (r && s.push(-5), n && s.push(n), s.push(null)), s;
|
4512
4512
|
}
|
4513
4513
|
}
|
4514
|
-
const
|
4515
|
-
function
|
4516
|
-
return e.replace(
|
4514
|
+
const Yo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
4515
|
+
function Ko(e) {
|
4516
|
+
return e.replace(Yo, Qo);
|
4517
4517
|
}
|
4518
|
-
function
|
4518
|
+
function Qo(e, n, t) {
|
4519
4519
|
if (n)
|
4520
4520
|
return n;
|
4521
4521
|
if (t.charCodeAt(0) === 35) {
|
@@ -4525,10 +4525,10 @@ function Jo(e, n, t) {
|
|
4525
4525
|
return Bn(t) || e;
|
4526
4526
|
}
|
4527
4527
|
const fr = {}.hasOwnProperty;
|
4528
|
-
function
|
4529
|
-
return typeof n != "string" && (t = n, n = void 0),
|
4528
|
+
function Jo(e, n, t) {
|
4529
|
+
return typeof n != "string" && (t = n, n = void 0), Zo(t)(Go(Wo(t).document().write(Xo()(e, n, !0))));
|
4530
4530
|
}
|
4531
|
-
function
|
4531
|
+
function Zo(e) {
|
4532
4532
|
const n = {
|
4533
4533
|
transforms: [],
|
4534
4534
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
@@ -4765,7 +4765,7 @@ function ea(e) {
|
|
4765
4765
|
v.position.end = ge(g.end);
|
4766
4766
|
}
|
4767
4767
|
function c() {
|
4768
|
-
return
|
4768
|
+
return Ki(this.stack.pop());
|
4769
4769
|
}
|
4770
4770
|
function p() {
|
4771
4771
|
this.data.expectingFirstListItemValue = !0;
|
@@ -4881,7 +4881,7 @@ function ea(e) {
|
|
4881
4881
|
}
|
4882
4882
|
function re(g) {
|
4883
4883
|
const S = this.sliceSerialize(g), v = this.stack[this.stack.length - 2];
|
4884
|
-
v.label =
|
4884
|
+
v.label = Ko(S), v.identifier = Ae(S).toLowerCase();
|
4885
4885
|
}
|
4886
4886
|
function pe() {
|
4887
4887
|
const g = this.stack[this.stack.length - 1], S = this.resume(), v = this.stack[this.stack.length - 1];
|
@@ -5055,10 +5055,10 @@ function hr(e, n) {
|
|
5055
5055
|
let t = -1;
|
5056
5056
|
for (; ++t < n.length; ) {
|
5057
5057
|
const r = n[t];
|
5058
|
-
Array.isArray(r) ? hr(e, r) :
|
5058
|
+
Array.isArray(r) ? hr(e, r) : ea(e, r);
|
5059
5059
|
}
|
5060
5060
|
}
|
5061
|
-
function
|
5061
|
+
function ea(e, n) {
|
5062
5062
|
let t;
|
5063
5063
|
for (t in n)
|
5064
5064
|
if (fr.call(n, t))
|
@@ -5093,11 +5093,11 @@ function kt(e, n) {
|
|
5093
5093
|
end: n.end
|
5094
5094
|
}) + ") is still open");
|
5095
5095
|
}
|
5096
|
-
function
|
5096
|
+
function na(e) {
|
5097
5097
|
const n = this;
|
5098
5098
|
n.parser = t;
|
5099
5099
|
function t(r) {
|
5100
|
-
return
|
5100
|
+
return Jo(r, {
|
5101
5101
|
...n.data("settings"),
|
5102
5102
|
...e,
|
5103
5103
|
// Note: these options are not in the readme.
|
@@ -5108,7 +5108,7 @@ function ta(e) {
|
|
5108
5108
|
});
|
5109
5109
|
}
|
5110
5110
|
}
|
5111
|
-
function
|
5111
|
+
function ta(e, n) {
|
5112
5112
|
const t = {
|
5113
5113
|
type: "element",
|
5114
5114
|
tagName: "blockquote",
|
@@ -5117,12 +5117,12 @@ function ra(e, n) {
|
|
5117
5117
|
};
|
5118
5118
|
return e.patch(n, t), e.applyData(n, t);
|
5119
5119
|
}
|
5120
|
-
function
|
5120
|
+
function ra(e, n) {
|
5121
5121
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
5122
5122
|
return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
|
5123
5123
|
` }];
|
5124
5124
|
}
|
5125
|
-
function
|
5125
|
+
function ia(e, n) {
|
5126
5126
|
const t = n.value ? n.value + `
|
5127
5127
|
` : "", r = {};
|
5128
5128
|
n.lang && (r.className = ["language-" + n.lang]);
|
@@ -5134,7 +5134,7 @@ function la(e, n) {
|
|
5134
5134
|
};
|
5135
5135
|
return n.meta && (i.data = { meta: n.meta }), e.patch(n, i), i = e.applyData(n, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(n, i), i;
|
5136
5136
|
}
|
5137
|
-
function
|
5137
|
+
function la(e, n) {
|
5138
5138
|
const t = {
|
5139
5139
|
type: "element",
|
5140
5140
|
tagName: "del",
|
@@ -5143,7 +5143,7 @@ function oa(e, n) {
|
|
5143
5143
|
};
|
5144
5144
|
return e.patch(n, t), e.applyData(n, t);
|
5145
5145
|
}
|
5146
|
-
function
|
5146
|
+
function oa(e, n) {
|
5147
5147
|
const t = {
|
5148
5148
|
type: "element",
|
5149
5149
|
tagName: "em",
|
@@ -5152,7 +5152,7 @@ function aa(e, n) {
|
|
5152
5152
|
};
|
5153
5153
|
return e.patch(n, t), e.applyData(n, t);
|
5154
5154
|
}
|
5155
|
-
function
|
5155
|
+
function aa(e, n) {
|
5156
5156
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Le(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
|
5157
5157
|
let o, a = e.footnoteCounts.get(r);
|
5158
5158
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
|
@@ -5176,7 +5176,7 @@ function ua(e, n) {
|
|
5176
5176
|
};
|
5177
5177
|
return e.patch(n, u), e.applyData(n, u);
|
5178
5178
|
}
|
5179
|
-
function
|
5179
|
+
function ua(e, n) {
|
5180
5180
|
const t = {
|
5181
5181
|
type: "element",
|
5182
5182
|
tagName: "h" + n.depth,
|
@@ -5185,7 +5185,7 @@ function sa(e, n) {
|
|
5185
5185
|
};
|
5186
5186
|
return e.patch(n, t), e.applyData(n, t);
|
5187
5187
|
}
|
5188
|
-
function
|
5188
|
+
function sa(e, n) {
|
5189
5189
|
if (e.options.allowDangerousHtml) {
|
5190
5190
|
const t = { type: "raw", value: n.value };
|
5191
5191
|
return e.patch(n, t), e.applyData(n, t);
|
@@ -5201,7 +5201,7 @@ function mr(e, n) {
|
|
5201
5201
|
const o = i[i.length - 1];
|
5202
5202
|
return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
|
5203
5203
|
}
|
5204
|
-
function
|
5204
|
+
function ca(e, n) {
|
5205
5205
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
5206
5206
|
if (!r)
|
5207
5207
|
return mr(e, n);
|
@@ -5210,13 +5210,13 @@ function pa(e, n) {
|
|
5210
5210
|
const l = { type: "element", tagName: "img", properties: i, children: [] };
|
5211
5211
|
return e.patch(n, l), e.applyData(n, l);
|
5212
5212
|
}
|
5213
|
-
function
|
5213
|
+
function pa(e, n) {
|
5214
5214
|
const t = { src: Le(n.url) };
|
5215
5215
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
5216
5216
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
5217
5217
|
return e.patch(n, r), e.applyData(n, r);
|
5218
5218
|
}
|
5219
|
-
function
|
5219
|
+
function fa(e, n) {
|
5220
5220
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
5221
5221
|
e.patch(n, t);
|
5222
5222
|
const r = {
|
@@ -5227,7 +5227,7 @@ function ha(e, n) {
|
|
5227
5227
|
};
|
5228
5228
|
return e.patch(n, r), e.applyData(n, r);
|
5229
5229
|
}
|
5230
|
-
function
|
5230
|
+
function ha(e, n) {
|
5231
5231
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
5232
5232
|
if (!r)
|
5233
5233
|
return mr(e, n);
|
@@ -5241,7 +5241,7 @@ function ma(e, n) {
|
|
5241
5241
|
};
|
5242
5242
|
return e.patch(n, l), e.applyData(n, l);
|
5243
5243
|
}
|
5244
|
-
function
|
5244
|
+
function ma(e, n) {
|
5245
5245
|
const t = { href: Le(n.url) };
|
5246
5246
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
5247
5247
|
const r = {
|
@@ -5252,8 +5252,8 @@ function da(e, n) {
|
|
5252
5252
|
};
|
5253
5253
|
return e.patch(n, r), e.applyData(n, r);
|
5254
5254
|
}
|
5255
|
-
function
|
5256
|
-
const r = e.all(n), i = t ?
|
5255
|
+
function da(e, n, t) {
|
5256
|
+
const r = e.all(n), i = t ? ga(t) : dr(n), l = {}, o = [];
|
5257
5257
|
if (typeof n.checked == "boolean") {
|
5258
5258
|
const c = r[0];
|
5259
5259
|
let p;
|
@@ -5276,7 +5276,7 @@ function ga(e, n, t) {
|
|
5276
5276
|
const u = { type: "element", tagName: "li", properties: l, children: o };
|
5277
5277
|
return e.patch(n, u), e.applyData(n, u);
|
5278
5278
|
}
|
5279
|
-
function
|
5279
|
+
function ga(e) {
|
5280
5280
|
let n = !1;
|
5281
5281
|
if (e.type === "list") {
|
5282
5282
|
n = e.spread || !1;
|
@@ -5291,7 +5291,7 @@ function dr(e) {
|
|
5291
5291
|
const n = e.spread;
|
5292
5292
|
return n ?? e.children.length > 1;
|
5293
5293
|
}
|
5294
|
-
function
|
5294
|
+
function ya(e, n) {
|
5295
5295
|
const t = {}, r = e.all(n);
|
5296
5296
|
let i = -1;
|
5297
5297
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
@@ -5309,7 +5309,7 @@ function xa(e, n) {
|
|
5309
5309
|
};
|
5310
5310
|
return e.patch(n, l), e.applyData(n, l);
|
5311
5311
|
}
|
5312
|
-
function
|
5312
|
+
function xa(e, n) {
|
5313
5313
|
const t = {
|
5314
5314
|
type: "element",
|
5315
5315
|
tagName: "p",
|
@@ -5318,11 +5318,11 @@ function ka(e, n) {
|
|
5318
5318
|
};
|
5319
5319
|
return e.patch(n, t), e.applyData(n, t);
|
5320
5320
|
}
|
5321
|
-
function
|
5321
|
+
function ka(e, n) {
|
5322
5322
|
const t = { type: "root", children: e.wrap(e.all(n)) };
|
5323
5323
|
return e.patch(n, t), e.applyData(n, t);
|
5324
5324
|
}
|
5325
|
-
function
|
5325
|
+
function ba(e, n) {
|
5326
5326
|
const t = {
|
5327
5327
|
type: "element",
|
5328
5328
|
tagName: "strong",
|
@@ -5331,7 +5331,7 @@ function wa(e, n) {
|
|
5331
5331
|
};
|
5332
5332
|
return e.patch(n, t), e.applyData(n, t);
|
5333
5333
|
}
|
5334
|
-
function
|
5334
|
+
function wa(e, n) {
|
5335
5335
|
const t = e.all(n), r = t.shift(), i = [];
|
5336
5336
|
if (r) {
|
5337
5337
|
const o = {
|
@@ -5359,7 +5359,7 @@ function Sa(e, n) {
|
|
5359
5359
|
};
|
5360
5360
|
return e.patch(n, l), e.applyData(n, l);
|
5361
5361
|
}
|
5362
|
-
function
|
5362
|
+
function Sa(e, n, t) {
|
5363
5363
|
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;
|
5364
5364
|
let s = -1;
|
5365
5365
|
const u = [];
|
@@ -5377,7 +5377,7 @@ function Ca(e, n, t) {
|
|
5377
5377
|
};
|
5378
5378
|
return e.patch(n, c), e.applyData(n, c);
|
5379
5379
|
}
|
5380
|
-
function
|
5380
|
+
function Ca(e, n) {
|
5381
5381
|
const t = {
|
5382
5382
|
type: "element",
|
5383
5383
|
tagName: "td",
|
@@ -5388,7 +5388,7 @@ function Ea(e, n) {
|
|
5388
5388
|
return e.patch(n, t), e.applyData(n, t);
|
5389
5389
|
}
|
5390
5390
|
const bt = 9, wt = 32;
|
5391
|
-
function
|
5391
|
+
function Ea(e) {
|
5392
5392
|
const n = String(e), t = /\r?\n|\r/g;
|
5393
5393
|
let r = t.exec(n), i = 0;
|
5394
5394
|
const l = [];
|
@@ -5413,11 +5413,11 @@ function St(e, n, t) {
|
|
5413
5413
|
}
|
5414
5414
|
return i > r ? e.slice(r, i) : "";
|
5415
5415
|
}
|
5416
|
-
function
|
5417
|
-
const t = { type: "text", value:
|
5416
|
+
function Ia(e, n) {
|
5417
|
+
const t = { type: "text", value: Ea(String(n.value)) };
|
5418
5418
|
return e.patch(n, t), e.applyData(n, t);
|
5419
5419
|
}
|
5420
|
-
function
|
5420
|
+
function Ta(e, n) {
|
5421
5421
|
const t = {
|
5422
5422
|
type: "element",
|
5423
5423
|
tagName: "hr",
|
@@ -5426,31 +5426,31 @@ function Pa(e, n) {
|
|
5426
5426
|
};
|
5427
5427
|
return e.patch(n, t), e.applyData(n, t);
|
5428
5428
|
}
|
5429
|
-
const
|
5430
|
-
blockquote:
|
5431
|
-
break:
|
5432
|
-
code:
|
5433
|
-
delete:
|
5434
|
-
emphasis:
|
5435
|
-
footnoteReference:
|
5436
|
-
heading:
|
5437
|
-
html:
|
5438
|
-
imageReference:
|
5439
|
-
image:
|
5440
|
-
inlineCode:
|
5441
|
-
linkReference:
|
5442
|
-
link:
|
5443
|
-
listItem:
|
5444
|
-
list:
|
5445
|
-
paragraph:
|
5429
|
+
const Pa = {
|
5430
|
+
blockquote: ta,
|
5431
|
+
break: ra,
|
5432
|
+
code: ia,
|
5433
|
+
delete: la,
|
5434
|
+
emphasis: oa,
|
5435
|
+
footnoteReference: aa,
|
5436
|
+
heading: ua,
|
5437
|
+
html: sa,
|
5438
|
+
imageReference: ca,
|
5439
|
+
image: pa,
|
5440
|
+
inlineCode: fa,
|
5441
|
+
linkReference: ha,
|
5442
|
+
link: ma,
|
5443
|
+
listItem: da,
|
5444
|
+
list: ya,
|
5445
|
+
paragraph: xa,
|
5446
5446
|
// @ts-expect-error: root is different, but hard to type.
|
5447
|
-
root:
|
5448
|
-
strong:
|
5449
|
-
table:
|
5450
|
-
tableCell:
|
5451
|
-
tableRow:
|
5452
|
-
text:
|
5453
|
-
thematicBreak:
|
5447
|
+
root: ka,
|
5448
|
+
strong: ba,
|
5449
|
+
table: wa,
|
5450
|
+
tableCell: Ca,
|
5451
|
+
tableRow: Sa,
|
5452
|
+
text: Ia,
|
5453
|
+
thematicBreak: Ta,
|
5454
5454
|
toml: Xe,
|
5455
5455
|
yaml: Xe,
|
5456
5456
|
definition: Xe,
|
@@ -5458,7 +5458,7 @@ const Aa = {
|
|
5458
5458
|
};
|
5459
5459
|
function Xe() {
|
5460
5460
|
}
|
5461
|
-
function
|
5461
|
+
function Aa(e, n) {
|
5462
5462
|
const t = [{ type: "text", value: "↩" }];
|
5463
5463
|
return n > 1 && t.push({
|
5464
5464
|
type: "element",
|
@@ -5467,11 +5467,11 @@ function za(e, n) {
|
|
5467
5467
|
children: [{ type: "text", value: String(n) }]
|
5468
5468
|
}), t;
|
5469
5469
|
}
|
5470
|
-
function
|
5470
|
+
function za(e, n) {
|
5471
5471
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
5472
5472
|
}
|
5473
|
-
function
|
5474
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
5473
|
+
function La(e) {
|
5474
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Aa, r = e.options.footnoteBackLabel || za, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
|
5475
5475
|
className: ["sr-only"]
|
5476
5476
|
}, a = [];
|
5477
5477
|
let s = -1;
|
@@ -5541,11 +5541,11 @@ function _a(e) {
|
|
5541
5541
|
]
|
5542
5542
|
};
|
5543
5543
|
}
|
5544
|
-
const En = {}.hasOwnProperty,
|
5545
|
-
function
|
5546
|
-
const t = n ||
|
5544
|
+
const En = {}.hasOwnProperty, _a = {};
|
5545
|
+
function va(e, n) {
|
5546
|
+
const t = n || _a, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...Pa, ...t.handlers }, a = {
|
5547
5547
|
all: u,
|
5548
|
-
applyData:
|
5548
|
+
applyData: Ra,
|
5549
5549
|
definitionById: r,
|
5550
5550
|
footnoteById: i,
|
5551
5551
|
footnoteCounts: l,
|
@@ -5553,8 +5553,8 @@ function Na(e, n) {
|
|
5553
5553
|
handlers: o,
|
5554
5554
|
one: s,
|
5555
5555
|
options: t,
|
5556
|
-
patch:
|
5557
|
-
wrap:
|
5556
|
+
patch: Na,
|
5557
|
+
wrap: Fa
|
5558
5558
|
};
|
5559
5559
|
return nn(e, function(c) {
|
5560
5560
|
if (c.type === "definition" || c.type === "footnoteDefinition") {
|
@@ -5573,7 +5573,7 @@ function Na(e, n) {
|
|
5573
5573
|
}
|
5574
5574
|
return be(c);
|
5575
5575
|
}
|
5576
|
-
return (a.options.unknownHandler ||
|
5576
|
+
return (a.options.unknownHandler || Da)(a, c, p);
|
5577
5577
|
}
|
5578
5578
|
function u(c) {
|
5579
5579
|
const p = [];
|
@@ -5594,10 +5594,10 @@ function Na(e, n) {
|
|
5594
5594
|
return p;
|
5595
5595
|
}
|
5596
5596
|
}
|
5597
|
-
function
|
5598
|
-
e.position && (n.position =
|
5597
|
+
function Na(e, n) {
|
5598
|
+
e.position && (n.position = Pi(e));
|
5599
5599
|
}
|
5600
|
-
function
|
5600
|
+
function Ra(e, n) {
|
5601
5601
|
let t = n;
|
5602
5602
|
if (e && e.data) {
|
5603
5603
|
const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
|
@@ -5612,7 +5612,7 @@ function Da(e, n) {
|
|
5612
5612
|
}
|
5613
5613
|
return t;
|
5614
5614
|
}
|
5615
|
-
function
|
5615
|
+
function Da(e, n) {
|
5616
5616
|
const t = n.data || {}, r = "value" in n && !(En.call(t, "hProperties") || En.call(t, "hChildren")) ? { type: "text", value: n.value } : {
|
5617
5617
|
type: "element",
|
5618
5618
|
tagName: "div",
|
@@ -5621,7 +5621,7 @@ function Fa(e, n) {
|
|
5621
5621
|
};
|
5622
5622
|
return e.patch(n, r), e.applyData(n, r);
|
5623
5623
|
}
|
5624
|
-
function
|
5624
|
+
function Fa(e, n) {
|
5625
5625
|
const t = [];
|
5626
5626
|
let r = -1;
|
5627
5627
|
for (n && t.push({ type: "text", value: `
|
@@ -5638,11 +5638,11 @@ function Ct(e) {
|
|
5638
5638
|
return e.slice(n);
|
5639
5639
|
}
|
5640
5640
|
function Et(e, n) {
|
5641
|
-
const t =
|
5641
|
+
const t = va(e, n), r = t.one(e, void 0), i = La(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
5642
5642
|
return i && l.children.push({ type: "text", value: `
|
5643
5643
|
` }, i), l;
|
5644
5644
|
}
|
5645
|
-
function
|
5645
|
+
function Oa(e, n) {
|
5646
5646
|
return e && "run" in e ? async function(t, r) {
|
5647
5647
|
const i = (
|
5648
5648
|
/** @type {HastRoot} */
|
@@ -5661,7 +5661,7 @@ function It(e) {
|
|
5661
5661
|
throw e;
|
5662
5662
|
}
|
5663
5663
|
var sn, Tt;
|
5664
|
-
function
|
5664
|
+
function Ma() {
|
5665
5665
|
if (Tt) return sn;
|
5666
5666
|
Tt = 1;
|
5667
5667
|
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
@@ -5700,15 +5700,15 @@ function Ba() {
|
|
5700
5700
|
return b;
|
5701
5701
|
}, sn;
|
5702
5702
|
}
|
5703
|
-
var
|
5704
|
-
const cn = /* @__PURE__ */ Nt(
|
5703
|
+
var Ba = /* @__PURE__ */ Ma();
|
5704
|
+
const cn = /* @__PURE__ */ Nt(Ba);
|
5705
5705
|
function In(e) {
|
5706
5706
|
if (typeof e != "object" || e === null)
|
5707
5707
|
return !1;
|
5708
5708
|
const n = Object.getPrototypeOf(e);
|
5709
5709
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
5710
5710
|
}
|
5711
|
-
function
|
5711
|
+
function ja() {
|
5712
5712
|
const e = [], n = { run: t, use: r };
|
5713
5713
|
return n;
|
5714
5714
|
function t(...i) {
|
@@ -5726,7 +5726,7 @@ function Ha() {
|
|
5726
5726
|
}
|
5727
5727
|
for (; ++p < i.length; )
|
5728
5728
|
(u[p] === null || u[p] === void 0) && (u[p] = i[p]);
|
5729
|
-
i = u, c ?
|
5729
|
+
i = u, c ? Ha(c, a)(...u) : o(null, ...u);
|
5730
5730
|
}
|
5731
5731
|
}
|
5732
5732
|
function r(i) {
|
@@ -5737,7 +5737,7 @@ function Ha() {
|
|
5737
5737
|
return e.push(i), n;
|
5738
5738
|
}
|
5739
5739
|
}
|
5740
|
-
function
|
5740
|
+
function Ha(e, n) {
|
5741
5741
|
let t;
|
5742
5742
|
return r;
|
5743
5743
|
function r(...o) {
|
@@ -5764,8 +5764,8 @@ function Ua(e, n) {
|
|
5764
5764
|
i(null, o);
|
5765
5765
|
}
|
5766
5766
|
}
|
5767
|
-
const
|
5768
|
-
function
|
5767
|
+
const ae = { basename: Ua, dirname: Va, extname: qa, join: $a, sep: "/" };
|
5768
|
+
function Ua(e, n) {
|
5769
5769
|
if (n !== void 0 && typeof n != "string")
|
5770
5770
|
throw new TypeError('"ext" argument must be a string');
|
5771
5771
|
$e(e);
|
@@ -5793,7 +5793,7 @@ function Va(e, n) {
|
|
5793
5793
|
o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
|
5794
5794
|
return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
|
5795
5795
|
}
|
5796
|
-
function
|
5796
|
+
function Va(e) {
|
5797
5797
|
if ($e(e), e.length === 0)
|
5798
5798
|
return ".";
|
5799
5799
|
let n = -1, t = e.length, r;
|
@@ -5806,7 +5806,7 @@ function qa(e) {
|
|
5806
5806
|
} else r || (r = !0);
|
5807
5807
|
return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
|
5808
5808
|
}
|
5809
|
-
function
|
5809
|
+
function qa(e) {
|
5810
5810
|
$e(e);
|
5811
5811
|
let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
|
5812
5812
|
for (; n--; ) {
|
@@ -5824,19 +5824,19 @@ function $a(e) {
|
|
5824
5824
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
5825
5825
|
l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
|
5826
5826
|
}
|
5827
|
-
function
|
5827
|
+
function $a(...e) {
|
5828
5828
|
let n = -1, t;
|
5829
5829
|
for (; ++n < e.length; )
|
5830
5830
|
$e(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
|
5831
|
-
return t === void 0 ? "." :
|
5831
|
+
return t === void 0 ? "." : Wa(t);
|
5832
5832
|
}
|
5833
|
-
function
|
5833
|
+
function Wa(e) {
|
5834
5834
|
$e(e);
|
5835
5835
|
const n = e.codePointAt(0) === 47;
|
5836
|
-
let t =
|
5836
|
+
let t = Ga(e, !n);
|
5837
5837
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
5838
5838
|
}
|
5839
|
-
function
|
5839
|
+
function Ga(e, n) {
|
5840
5840
|
let t = "", r = 0, i = -1, l = 0, o = -1, a, s;
|
5841
5841
|
for (; ++o <= e.length; ) {
|
5842
5842
|
if (o < e.length)
|
@@ -5873,15 +5873,15 @@ function $e(e) {
|
|
5873
5873
|
"Path must be a string. Received " + JSON.stringify(e)
|
5874
5874
|
);
|
5875
5875
|
}
|
5876
|
-
const
|
5877
|
-
function
|
5876
|
+
const Xa = { cwd: Ya };
|
5877
|
+
function Ya() {
|
5878
5878
|
return "/";
|
5879
5879
|
}
|
5880
5880
|
function Tn(e) {
|
5881
5881
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
5882
5882
|
e.auth === void 0);
|
5883
5883
|
}
|
5884
|
-
function
|
5884
|
+
function Ka(e) {
|
5885
5885
|
if (typeof e == "string")
|
5886
5886
|
e = new URL(e);
|
5887
5887
|
else if (!Tn(e)) {
|
@@ -5894,9 +5894,9 @@ function Qa(e) {
|
|
5894
5894
|
const n = new TypeError("The URL must be of scheme file");
|
5895
5895
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
5896
5896
|
}
|
5897
|
-
return
|
5897
|
+
return Qa(e);
|
5898
5898
|
}
|
5899
|
-
function
|
5899
|
+
function Qa(e) {
|
5900
5900
|
if (e.hostname !== "") {
|
5901
5901
|
const r = new TypeError(
|
5902
5902
|
'File URL host must be "localhost" or empty on darwin'
|
@@ -5928,7 +5928,7 @@ const pn = (
|
|
5928
5928
|
"dirname"
|
5929
5929
|
]
|
5930
5930
|
);
|
5931
|
-
class
|
5931
|
+
class Ja {
|
5932
5932
|
/**
|
5933
5933
|
* Create a new virtual file.
|
5934
5934
|
*
|
@@ -5953,7 +5953,7 @@ class Za {
|
|
5953
5953
|
*/
|
5954
5954
|
constructor(n) {
|
5955
5955
|
let t;
|
5956
|
-
n ? Tn(n) ? t = { path: n } : typeof n == "string" ||
|
5956
|
+
n ? Tn(n) ? t = { path: n } : typeof n == "string" || Za(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Xa.cwd(), this.data = {}, this.history = [], this.messages = [];
|
5957
5957
|
let r = -1;
|
5958
5958
|
for (; ++r < pn.length; ) {
|
5959
5959
|
const l = pn[r];
|
@@ -5970,7 +5970,7 @@ class Za {
|
|
5970
5970
|
* Basename.
|
5971
5971
|
*/
|
5972
5972
|
get basename() {
|
5973
|
-
return typeof this.path == "string" ?
|
5973
|
+
return typeof this.path == "string" ? ae.basename(this.path) : void 0;
|
5974
5974
|
}
|
5975
5975
|
/**
|
5976
5976
|
* Set basename (including extname) (`'index.min.js'`).
|
@@ -5985,7 +5985,7 @@ class Za {
|
|
5985
5985
|
* Nothing.
|
5986
5986
|
*/
|
5987
5987
|
set basename(n) {
|
5988
|
-
hn(n, "basename"), fn(n, "basename"), this.path =
|
5988
|
+
hn(n, "basename"), fn(n, "basename"), this.path = ae.join(this.dirname || "", n);
|
5989
5989
|
}
|
5990
5990
|
/**
|
5991
5991
|
* Get the parent path (example: `'~'`).
|
@@ -5994,7 +5994,7 @@ class Za {
|
|
5994
5994
|
* Dirname.
|
5995
5995
|
*/
|
5996
5996
|
get dirname() {
|
5997
|
-
return typeof this.path == "string" ?
|
5997
|
+
return typeof this.path == "string" ? ae.dirname(this.path) : void 0;
|
5998
5998
|
}
|
5999
5999
|
/**
|
6000
6000
|
* Set the parent path (example: `'~'`).
|
@@ -6007,7 +6007,7 @@ class Za {
|
|
6007
6007
|
* Nothing.
|
6008
6008
|
*/
|
6009
6009
|
set dirname(n) {
|
6010
|
-
Pt(this.basename, "dirname"), this.path =
|
6010
|
+
Pt(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
|
6011
6011
|
}
|
6012
6012
|
/**
|
6013
6013
|
* Get the extname (including dot) (example: `'.js'`).
|
@@ -6016,7 +6016,7 @@ class Za {
|
|
6016
6016
|
* Extname.
|
6017
6017
|
*/
|
6018
6018
|
get extname() {
|
6019
|
-
return typeof this.path == "string" ?
|
6019
|
+
return typeof this.path == "string" ? ae.extname(this.path) : void 0;
|
6020
6020
|
}
|
6021
6021
|
/**
|
6022
6022
|
* Set the extname (including dot) (example: `'.js'`).
|
@@ -6037,7 +6037,7 @@ class Za {
|
|
6037
6037
|
if (n.includes(".", 1))
|
6038
6038
|
throw new Error("`extname` cannot contain multiple dots");
|
6039
6039
|
}
|
6040
|
-
this.path =
|
6040
|
+
this.path = ae.join(this.dirname, this.stem + (n || ""));
|
6041
6041
|
}
|
6042
6042
|
/**
|
6043
6043
|
* Get the full path (example: `'~/index.min.js'`).
|
@@ -6061,7 +6061,7 @@ class Za {
|
|
6061
6061
|
* Nothing.
|
6062
6062
|
*/
|
6063
6063
|
set path(n) {
|
6064
|
-
Tn(n) && (n =
|
6064
|
+
Tn(n) && (n = Ka(n)), hn(n, "path"), this.path !== n && this.history.push(n);
|
6065
6065
|
}
|
6066
6066
|
/**
|
6067
6067
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -6070,7 +6070,7 @@ class Za {
|
|
6070
6070
|
* Stem.
|
6071
6071
|
*/
|
6072
6072
|
get stem() {
|
6073
|
-
return typeof this.path == "string" ?
|
6073
|
+
return typeof this.path == "string" ? ae.basename(this.path, this.extname) : void 0;
|
6074
6074
|
}
|
6075
6075
|
/**
|
6076
6076
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -6085,7 +6085,7 @@ class Za {
|
|
6085
6085
|
* Nothing.
|
6086
6086
|
*/
|
6087
6087
|
set stem(n) {
|
6088
|
-
hn(n, "stem"), fn(n, "stem"), this.path =
|
6088
|
+
hn(n, "stem"), fn(n, "stem"), this.path = ae.join(this.dirname || "", n + (this.extname || ""));
|
6089
6089
|
}
|
6090
6090
|
// Normal prototypal methods.
|
6091
6091
|
/**
|
@@ -6299,9 +6299,9 @@ class Za {
|
|
6299
6299
|
}
|
6300
6300
|
}
|
6301
6301
|
function fn(e, n) {
|
6302
|
-
if (e && e.includes(
|
6302
|
+
if (e && e.includes(ae.sep))
|
6303
6303
|
throw new Error(
|
6304
|
-
"`" + n + "` cannot be a path: did not expect `" +
|
6304
|
+
"`" + n + "` cannot be a path: did not expect `" + ae.sep + "`"
|
6305
6305
|
);
|
6306
6306
|
}
|
6307
6307
|
function hn(e, n) {
|
@@ -6312,10 +6312,10 @@ function Pt(e, n) {
|
|
6312
6312
|
if (!e)
|
6313
6313
|
throw new Error("Setting `" + n + "` requires `path` to be set too");
|
6314
6314
|
}
|
6315
|
-
function
|
6315
|
+
function Za(e) {
|
6316
6316
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
6317
6317
|
}
|
6318
|
-
const
|
6318
|
+
const eu = (
|
6319
6319
|
/**
|
6320
6320
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
6321
6321
|
*/
|
@@ -6336,13 +6336,13 @@ const nu = (
|
|
6336
6336
|
};
|
6337
6337
|
return Object.setPrototypeOf(l, r), l;
|
6338
6338
|
})
|
6339
|
-
),
|
6340
|
-
class Un extends
|
6339
|
+
), nu = {}.hasOwnProperty;
|
6340
|
+
class Un extends eu {
|
6341
6341
|
/**
|
6342
6342
|
* Create a processor.
|
6343
6343
|
*/
|
6344
6344
|
constructor() {
|
6345
|
-
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 =
|
6345
|
+
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 = ja();
|
6346
6346
|
}
|
6347
6347
|
/**
|
6348
6348
|
* Copy a processor.
|
@@ -6427,7 +6427,7 @@ class Un extends nu {
|
|
6427
6427
|
* the entire dataset when getting without key.
|
6428
6428
|
*/
|
6429
6429
|
data(n, t) {
|
6430
|
-
return typeof n == "string" ? arguments.length === 2 ? (gn("data", this.frozen), this.namespace[n] = t, this) :
|
6430
|
+
return typeof n == "string" ? arguments.length === 2 ? (gn("data", this.frozen), this.namespace[n] = t, this) : nu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (gn("data", this.frozen), this.namespace = n, this) : this.namespace;
|
6431
6431
|
}
|
6432
6432
|
/**
|
6433
6433
|
* Freeze a processor.
|
@@ -6542,7 +6542,7 @@ class Un extends nu {
|
|
6542
6542
|
/** @type {unknown} */
|
6543
6543
|
p
|
6544
6544
|
), w = r.stringify(f, d);
|
6545
|
-
|
6545
|
+
iu(w) ? d.value = w : d.result = w, u(
|
6546
6546
|
c,
|
6547
6547
|
/** @type {VFileWithOutput<CompileResult>} */
|
6548
6548
|
d
|
@@ -6818,7 +6818,7 @@ class Un extends nu {
|
|
6818
6818
|
}
|
6819
6819
|
}
|
6820
6820
|
}
|
6821
|
-
const
|
6821
|
+
const tu = new Un().freeze();
|
6822
6822
|
function mn(e, n) {
|
6823
6823
|
if (typeof n != "function")
|
6824
6824
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
@@ -6844,18 +6844,18 @@ function zt(e, n, t) {
|
|
6844
6844
|
);
|
6845
6845
|
}
|
6846
6846
|
function Ye(e) {
|
6847
|
-
return
|
6847
|
+
return ru(e) ? e : new Ja(e);
|
6848
6848
|
}
|
6849
|
-
function
|
6849
|
+
function ru(e) {
|
6850
6850
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
6851
6851
|
}
|
6852
|
-
function
|
6853
|
-
return typeof e == "string" ||
|
6852
|
+
function iu(e) {
|
6853
|
+
return typeof e == "string" || lu(e);
|
6854
6854
|
}
|
6855
|
-
function
|
6855
|
+
function lu(e) {
|
6856
6856
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
6857
6857
|
}
|
6858
|
-
const
|
6858
|
+
const ou = ({
|
6859
6859
|
href: e,
|
6860
6860
|
target: n,
|
6861
6861
|
rel: t,
|
@@ -6864,7 +6864,7 @@ const au = ({
|
|
6864
6864
|
}) => {
|
6865
6865
|
const l = vt(
|
6866
6866
|
async (o) => {
|
6867
|
-
if (
|
6867
|
+
if (Tr() && e && au(e)) {
|
6868
6868
|
o.preventDefault(), o.stopPropagation();
|
6869
6869
|
try {
|
6870
6870
|
const { openUrl: a } = await import(
|
@@ -6879,16 +6879,16 @@ const au = ({
|
|
6879
6879
|
},
|
6880
6880
|
[e, n]
|
6881
6881
|
);
|
6882
|
-
return /* @__PURE__ */
|
6882
|
+
return /* @__PURE__ */ se("a", { href: e, target: n, rel: t, onClick: l, ...i, children: r });
|
6883
6883
|
};
|
6884
|
-
function
|
6884
|
+
function au(e) {
|
6885
6885
|
try {
|
6886
6886
|
return new URL(e, window.location.href).origin !== window.location.origin;
|
6887
6887
|
} catch {
|
6888
6888
|
return !0;
|
6889
6889
|
}
|
6890
6890
|
}
|
6891
|
-
class
|
6891
|
+
class uu {
|
6892
6892
|
remarkGfm = null;
|
6893
6893
|
rehypeKatex = null;
|
6894
6894
|
remarkMath = null;
|
@@ -6900,7 +6900,7 @@ class su {
|
|
6900
6900
|
if (!this.remarkGfm) {
|
6901
6901
|
const { default: n } = await import(
|
6902
6902
|
/* webpackChunkName: "md-remark" */
|
6903
|
-
"./index.
|
6903
|
+
"./index.Ch7-8kkf.js"
|
6904
6904
|
);
|
6905
6905
|
this.remarkGfm = n;
|
6906
6906
|
}
|
@@ -6908,10 +6908,10 @@ class su {
|
|
6908
6908
|
}
|
6909
6909
|
async loadKatex() {
|
6910
6910
|
if (!this.rehypeKatex) {
|
6911
|
-
|
6911
|
+
hu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
6912
6912
|
const { default: n } = await import(
|
6913
6913
|
/* webpackChunkName: "md-rehype-katex" */
|
6914
|
-
"./index.
|
6914
|
+
"./index.C6rTHYVc.js"
|
6915
6915
|
);
|
6916
6916
|
this.rehypeKatex = n;
|
6917
6917
|
}
|
@@ -6921,7 +6921,7 @@ class su {
|
|
6921
6921
|
if (!this.remarkMath) {
|
6922
6922
|
const { default: n } = await import(
|
6923
6923
|
/* webpackChunkName: "md-remark" */
|
6924
|
-
"./index.
|
6924
|
+
"./index.ydUD8HKp.js"
|
6925
6925
|
);
|
6926
6926
|
this.remarkMath = n;
|
6927
6927
|
}
|
@@ -6931,61 +6931,61 @@ class su {
|
|
6931
6931
|
if (!this.rehypeHighlight) {
|
6932
6932
|
const { default: n } = await import(
|
6933
6933
|
/* webpackChunkName: "md-rehype-highlight" */
|
6934
|
-
"./index.
|
6934
|
+
"./index.5rAVjSln.js"
|
6935
6935
|
);
|
6936
6936
|
this.rehypeHighlight = n;
|
6937
6937
|
}
|
6938
6938
|
return this.rehypeHighlight;
|
6939
6939
|
}
|
6940
6940
|
}
|
6941
|
-
const Ke = new
|
6941
|
+
const Ke = new uu(), su = ({
|
6942
6942
|
children: e,
|
6943
6943
|
raw: n,
|
6944
6944
|
...t
|
6945
6945
|
}) => /* @__PURE__ */ Pn("pre", { className: "relative pt-7 sm:pt-2 ps-0 sm:ps-3", ...t, children: [
|
6946
6946
|
e,
|
6947
|
-
/* @__PURE__ */
|
6947
|
+
/* @__PURE__ */ se(
|
6948
6948
|
Dt,
|
6949
6949
|
{
|
6950
6950
|
mode: "light",
|
6951
6951
|
focusMode: "light",
|
6952
|
-
copyToClipboard: () =>
|
6952
|
+
copyToClipboard: () => Pr(n) || "",
|
6953
6953
|
labelRight: "Copy",
|
6954
6954
|
radius: "small",
|
6955
6955
|
className: "mb-2 px-1 absolute top-2 right-2 font-sans font-normal text-xs"
|
6956
6956
|
}
|
6957
6957
|
)
|
6958
|
-
] }),
|
6958
|
+
] }), cu = (e) => e.includes("```"), pu = (e) => e.includes("$$"), fu = (e) => (
|
6959
6959
|
// urls.
|
6960
6960
|
e.includes("http://") || e.includes("https://") || // table.
|
6961
6961
|
e.includes("|") || // strikethrough.
|
6962
6962
|
e.includes("~") || e.includes("~~") || // task lists.
|
6963
6963
|
e.includes("- [ ]") || e.includes("- [x]")
|
6964
|
-
),
|
6964
|
+
), hu = (e) => {
|
6965
6965
|
const n = document.createElement("link");
|
6966
6966
|
n.href = e, n.type = "text/css", n.rel = "stylesheet", n.id = "dynamic-katex-css", document.head.appendChild(n);
|
6967
|
-
},
|
6967
|
+
}, mu = () => (e) => {
|
6968
6968
|
nn(e, (n) => {
|
6969
6969
|
if (n?.type === "element" && n?.tagName === "pre") {
|
6970
6970
|
const [t] = n.children;
|
6971
6971
|
if (t.tagName !== "code")
|
6972
6972
|
return;
|
6973
|
-
n.raw =
|
6973
|
+
n.raw = Ar(t.children?.[0].value);
|
6974
6974
|
}
|
6975
6975
|
});
|
6976
|
-
},
|
6976
|
+
}, du = () => (e) => {
|
6977
6977
|
nn(e, "element", (n) => {
|
6978
6978
|
n?.type === "element" && n?.tagName === "pre" && (n.properties.raw = n.raw);
|
6979
6979
|
});
|
6980
|
-
},
|
6980
|
+
}, Su = ({
|
6981
6981
|
onError: e = () => {
|
6982
6982
|
}
|
6983
6983
|
} = {}) => {
|
6984
6984
|
const n = Re(e), t = Re(null), r = Re(null), i = Re(null), l = Re({
|
6985
6985
|
rehypePlugins: [
|
6986
|
-
|
6986
|
+
mu,
|
6987
6987
|
[
|
6988
|
-
|
6988
|
+
ii,
|
6989
6989
|
{
|
6990
6990
|
target: "_blank",
|
6991
6991
|
rel: ["noopener", "noreferrer"]
|
@@ -7000,28 +7000,28 @@ const Ke = new su(), cu = ({
|
|
7000
7000
|
const s = vt((u) => {
|
7001
7001
|
(async () => {
|
7002
7002
|
const { rehypePlugins: c, remarkPlugins: p } = l.current;
|
7003
|
-
if (!t.current &&
|
7003
|
+
if (!t.current && cu(u)) {
|
7004
7004
|
t.current = !0;
|
7005
7005
|
const d = await Ke.loadHighlight();
|
7006
7006
|
l.current.rehypePlugins = [...c, d];
|
7007
7007
|
}
|
7008
|
-
if (!r.current &&
|
7008
|
+
if (!r.current && fu(u)) {
|
7009
7009
|
r.current = !0;
|
7010
7010
|
const d = await Ke.loadGfm();
|
7011
7011
|
l.current.remarkPlugins = [...p, d];
|
7012
7012
|
}
|
7013
|
-
if (!i.current &&
|
7013
|
+
if (!i.current && pu(u)) {
|
7014
7014
|
i.current = !0;
|
7015
7015
|
const d = await Ke.loadKatex(), f = await Ke.loadMath();
|
7016
7016
|
l.current.remarkPlugins = [...p, f], l.current.rehypePlugins = [...c, d];
|
7017
7017
|
}
|
7018
|
-
l.current.rehypePlugins.push(
|
7018
|
+
l.current.rehypePlugins.push(du), tu().use(na).use(l.current.remarkPlugins).use(Oa).use(l.current.rehypePlugins).use(Xi, {
|
7019
7019
|
Fragment: rn.Fragment,
|
7020
7020
|
jsx: rn.jsx,
|
7021
7021
|
jsxs: rn.jsxs,
|
7022
7022
|
components: {
|
7023
|
-
pre:
|
7024
|
-
a:
|
7023
|
+
pre: su,
|
7024
|
+
a: ou
|
7025
7025
|
}
|
7026
7026
|
}).process(u).then((d) => a(d.result)).catch(n.current);
|
7027
7027
|
})();
|
@@ -7030,32 +7030,32 @@ const Ke = new su(), cu = ({
|
|
7030
7030
|
};
|
7031
7031
|
export {
|
7032
7032
|
Qn as EXIT,
|
7033
|
-
|
7034
|
-
|
7033
|
+
Jr as SKIP,
|
7034
|
+
ue as asciiAlpha,
|
7035
7035
|
ne as asciiAlphanumeric,
|
7036
7036
|
wn as asciiControl,
|
7037
7037
|
tn as blankLine,
|
7038
7038
|
ft as classifyCharacter,
|
7039
|
-
|
7039
|
+
Ji as combineExtensions,
|
7040
7040
|
jt as convert,
|
7041
7041
|
Bt as convertElement,
|
7042
7042
|
V as factorySpace,
|
7043
|
-
|
7044
|
-
|
7043
|
+
yi as find,
|
7044
|
+
bi as html,
|
7045
7045
|
L as markdownLineEnding,
|
7046
7046
|
Q as markdownLineEndingOrSpace,
|
7047
7047
|
F as markdownSpace,
|
7048
7048
|
yn as normalize,
|
7049
7049
|
Ae as normalizeIdentifier,
|
7050
|
-
|
7051
|
-
|
7050
|
+
qr as parse,
|
7051
|
+
wu as parse$1,
|
7052
7052
|
jn as resolveAll,
|
7053
7053
|
ce as splice,
|
7054
7054
|
Rn as svg,
|
7055
|
-
|
7056
|
-
|
7057
|
-
|
7058
|
-
|
7055
|
+
Ki as toString,
|
7056
|
+
il as unicodePunctuation,
|
7057
|
+
ll as unicodeWhitespace,
|
7058
|
+
Su as useMarkdown,
|
7059
7059
|
nn as visit,
|
7060
|
-
|
7060
|
+
Zr as visitParents
|
7061
7061
|
};
|