@caseparts-org/caseblocks 0.0.193 → 0.0.195
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/assets/Admonition.css +1 -0
- package/dist/assets/MainNav.css +1 -1
- package/dist/assets/Markdown.css +1 -1
- package/dist/atoms/Markdown/Markdown.js +794 -776
- package/dist/atoms/Markdown/Markdown.stories.d.ts +2 -0
- package/dist/atoms/Markdown/Markdown.stories.js +88 -18
- package/dist/atoms/Markdown/PreprocessedMarkdown.d.ts +4 -3
- package/dist/atoms/Markdown/PreprocessedMarkdown.js +18 -11
- package/dist/atoms/Markdown/PreprocessedMarkdown.stories.d.ts +1 -0
- package/dist/atoms/Markdown/PreprocessedMarkdown.stories.js +34 -25
- package/dist/atoms/Markdown/remarkAdmonition.d.ts +15 -0
- package/dist/atoms/Markdown/remarkAdmonition.js +120 -0
- package/dist/atoms/Markdown/usePreprocessedMarkdown.d.ts +2 -1
- package/dist/atoms/Markdown/usePreprocessedMarkdown.js +59 -37
- package/dist/main-client.js +54 -52
- package/dist/main-server.d.ts +2 -0
- package/dist/main-server.js +16 -14
- package/dist/main.d.ts +2 -0
- package/dist/main.js +18 -16
- package/dist/molecules/Admonition/Admonition.d.ts +10 -0
- package/dist/molecules/Admonition/Admonition.js +46 -0
- package/dist/molecules/Admonition/Admonition.stories.d.ts +13 -0
- package/dist/molecules/Admonition/Admonition.stories.js +51 -0
- package/dist/organisms/MainNav/MainNav.js +77 -75
- package/package.json +1 -1
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { jsxs as Ci, jsx as
|
|
1
|
+
import { jsxs as Ci, jsx as nn, Fragment as Ei } from "react/jsx-runtime";
|
|
2
|
+
import { remarkAdmonition as Ii } from "./remarkAdmonition.js";
|
|
3
|
+
import { Admonition as Ai } from "../../molecules/Admonition/Admonition.js";
|
|
2
4
|
import "react";
|
|
3
|
-
import '../../assets/Markdown.css';var
|
|
5
|
+
import '../../assets/Markdown.css';var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
6
|
function ar(e) {
|
|
5
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
8
|
}
|
|
7
|
-
function
|
|
9
|
+
function Ti(e, t) {
|
|
8
10
|
const n = {};
|
|
9
11
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
10
12
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
11
13
|
).trim();
|
|
12
14
|
}
|
|
13
|
-
const
|
|
15
|
+
const Pi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, vi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zi = {};
|
|
14
16
|
function ft(e, t) {
|
|
15
|
-
return (
|
|
17
|
+
return (zi.jsx ? vi : Pi).test(e);
|
|
16
18
|
}
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
+
const Di = /[ \t\n\f\r]/g;
|
|
20
|
+
function Li(e) {
|
|
19
21
|
return typeof e == "object" ? e.type === "text" ? ht(e.value) : !1 : ht(e);
|
|
20
22
|
}
|
|
21
23
|
function ht(e) {
|
|
22
|
-
return e.replace(
|
|
24
|
+
return e.replace(Di, "") === "";
|
|
23
25
|
}
|
|
24
26
|
class qe {
|
|
25
27
|
/**
|
|
@@ -73,10 +75,10 @@ ee.prototype.overloadedBoolean = !1;
|
|
|
73
75
|
ee.prototype.property = "";
|
|
74
76
|
ee.prototype.spaceSeparated = !1;
|
|
75
77
|
ee.prototype.space = void 0;
|
|
76
|
-
let
|
|
78
|
+
let Fi = 0;
|
|
77
79
|
const D = Ie(), W = Ie(), zn = Ie(), S = Ie(), V = Ie(), De = Ie(), te = Ie();
|
|
78
80
|
function Ie() {
|
|
79
|
-
return 2 ** ++
|
|
81
|
+
return 2 ** ++Fi;
|
|
80
82
|
}
|
|
81
83
|
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82
84
|
__proto__: null,
|
|
@@ -87,7 +89,7 @@ const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
87
89
|
number: S,
|
|
88
90
|
overloadedBoolean: zn,
|
|
89
91
|
spaceSeparated: V
|
|
90
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
92
|
+
}, Symbol.toStringTag, { value: "Module" })), mn = (
|
|
91
93
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
92
94
|
Object.keys(Dn)
|
|
93
95
|
);
|
|
@@ -108,9 +110,9 @@ class Hn extends ee {
|
|
|
108
110
|
constructor(t, n, r, i) {
|
|
109
111
|
let o = -1;
|
|
110
112
|
if (super(t, n), pt(this, "space", i), typeof r == "number")
|
|
111
|
-
for (; ++o <
|
|
112
|
-
const l =
|
|
113
|
-
pt(this,
|
|
113
|
+
for (; ++o < mn.length; ) {
|
|
114
|
+
const l = mn[o];
|
|
115
|
+
pt(this, mn[o], (r & Dn[l]) === Dn[l]);
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -193,7 +195,7 @@ function cr(e, t) {
|
|
|
193
195
|
function fr(e, t) {
|
|
194
196
|
return cr(e, t.toLowerCase());
|
|
195
197
|
}
|
|
196
|
-
const
|
|
198
|
+
const _i = Fe({
|
|
197
199
|
attributes: {
|
|
198
200
|
acceptcharset: "accept-charset",
|
|
199
201
|
classname: "class",
|
|
@@ -554,7 +556,7 @@ const Li = Fe({
|
|
|
554
556
|
},
|
|
555
557
|
space: "html",
|
|
556
558
|
transform: fr
|
|
557
|
-
}),
|
|
559
|
+
}), Ri = Fe({
|
|
558
560
|
attributes: {
|
|
559
561
|
accentHeight: "accent-height",
|
|
560
562
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1138,7 +1140,7 @@ const Li = Fe({
|
|
|
1138
1140
|
transform(e, t) {
|
|
1139
1141
|
return "xml:" + t.slice(3).toLowerCase();
|
|
1140
1142
|
}
|
|
1141
|
-
}),
|
|
1143
|
+
}), Oi = {
|
|
1142
1144
|
classId: "classID",
|
|
1143
1145
|
dataType: "datatype",
|
|
1144
1146
|
itemId: "itemID",
|
|
@@ -1156,20 +1158,20 @@ const Li = Fe({
|
|
|
1156
1158
|
xLinkTitle: "xlinkTitle",
|
|
1157
1159
|
xLinkType: "xlinkType",
|
|
1158
1160
|
xmlnsXLink: "xmlnsXlink"
|
|
1159
|
-
},
|
|
1160
|
-
function
|
|
1161
|
+
}, Mi = /[A-Z]/g, mt = /-[a-z]/g, Ni = /^data[-\w.:]+$/i;
|
|
1162
|
+
function Bi(e, t) {
|
|
1161
1163
|
const n = vn(t);
|
|
1162
1164
|
let r = t, i = ee;
|
|
1163
1165
|
if (n in e.normal)
|
|
1164
1166
|
return e.property[e.normal[n]];
|
|
1165
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
1167
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Ni.test(t)) {
|
|
1166
1168
|
if (t.charAt(4) === "-") {
|
|
1167
|
-
const o = t.slice(5).replace(mt,
|
|
1169
|
+
const o = t.slice(5).replace(mt, Hi);
|
|
1168
1170
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
1169
1171
|
} else {
|
|
1170
1172
|
const o = t.slice(4);
|
|
1171
1173
|
if (!mt.test(o)) {
|
|
1172
|
-
let l = o.replace(
|
|
1174
|
+
let l = o.replace(Mi, ji);
|
|
1173
1175
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
1174
1176
|
}
|
|
1175
1177
|
}
|
|
@@ -1177,28 +1179,28 @@ function Mi(e, t) {
|
|
|
1177
1179
|
}
|
|
1178
1180
|
return new i(r, t);
|
|
1179
1181
|
}
|
|
1180
|
-
function
|
|
1182
|
+
function ji(e) {
|
|
1181
1183
|
return "-" + e.toLowerCase();
|
|
1182
1184
|
}
|
|
1183
|
-
function
|
|
1185
|
+
function Hi(e) {
|
|
1184
1186
|
return e.charAt(1).toUpperCase();
|
|
1185
1187
|
}
|
|
1186
|
-
const
|
|
1187
|
-
function
|
|
1188
|
+
const Ui = ur([sr, _i, hr, pr, mr], "html"), Un = ur([sr, Ri, hr, pr, mr], "svg");
|
|
1189
|
+
function Vi(e) {
|
|
1188
1190
|
return e.join(" ").trim();
|
|
1189
1191
|
}
|
|
1190
|
-
var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,
|
|
1191
|
-
`, dt = "/", yt = "*", Ce = "",
|
|
1192
|
-
function
|
|
1192
|
+
var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, $i = /\n/g, qi = /^\s*/, Wi = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Yi = /^:\s*/, Xi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Qi = /^[;\s]*/, Gi = /^\s+|\s+$/g, Ki = `
|
|
1193
|
+
`, dt = "/", yt = "*", Ce = "", Ji = "comment", Zi = "declaration";
|
|
1194
|
+
function el(e, t) {
|
|
1193
1195
|
if (typeof e != "string")
|
|
1194
1196
|
throw new TypeError("First argument must be a string");
|
|
1195
1197
|
if (!e) return [];
|
|
1196
1198
|
t = t || {};
|
|
1197
1199
|
var n = 1, r = 1;
|
|
1198
1200
|
function i(d) {
|
|
1199
|
-
var x = d.match(
|
|
1201
|
+
var x = d.match($i);
|
|
1200
1202
|
x && (n += x.length);
|
|
1201
|
-
var C = d.lastIndexOf(
|
|
1203
|
+
var C = d.lastIndexOf(Ki);
|
|
1202
1204
|
r = ~C ? d.length - C : r + d.length;
|
|
1203
1205
|
}
|
|
1204
1206
|
function o() {
|
|
@@ -1225,7 +1227,7 @@ function Ji(e, t) {
|
|
|
1225
1227
|
}
|
|
1226
1228
|
}
|
|
1227
1229
|
function s() {
|
|
1228
|
-
u(
|
|
1230
|
+
u(qi);
|
|
1229
1231
|
}
|
|
1230
1232
|
function f(d) {
|
|
1231
1233
|
var x;
|
|
@@ -1242,21 +1244,21 @@ function Ji(e, t) {
|
|
|
1242
1244
|
return a("End of comment missing");
|
|
1243
1245
|
var C = e.slice(2, x - 2);
|
|
1244
1246
|
return r += 2, i(C), e = e.slice(x), r += 2, d({
|
|
1245
|
-
type:
|
|
1247
|
+
type: Ji,
|
|
1246
1248
|
comment: C
|
|
1247
1249
|
});
|
|
1248
1250
|
}
|
|
1249
1251
|
}
|
|
1250
1252
|
function p() {
|
|
1251
|
-
var d = o(), x = u(
|
|
1253
|
+
var d = o(), x = u(Wi);
|
|
1252
1254
|
if (x) {
|
|
1253
|
-
if (c(), !u(
|
|
1254
|
-
var C = u(
|
|
1255
|
-
type:
|
|
1255
|
+
if (c(), !u(Yi)) return a("property missing ':'");
|
|
1256
|
+
var C = u(Xi), y = d({
|
|
1257
|
+
type: Zi,
|
|
1256
1258
|
property: kt(x[0].replace(gt, Ce)),
|
|
1257
1259
|
value: C ? kt(C[0].replace(gt, Ce)) : Ce
|
|
1258
1260
|
});
|
|
1259
|
-
return u(
|
|
1261
|
+
return u(Qi), y;
|
|
1260
1262
|
}
|
|
1261
1263
|
}
|
|
1262
1264
|
function h() {
|
|
@@ -1269,19 +1271,19 @@ function Ji(e, t) {
|
|
|
1269
1271
|
return s(), h();
|
|
1270
1272
|
}
|
|
1271
1273
|
function kt(e) {
|
|
1272
|
-
return e ? e.replace(
|
|
1274
|
+
return e ? e.replace(Gi, Ce) : Ce;
|
|
1273
1275
|
}
|
|
1274
|
-
var
|
|
1276
|
+
var nl = el, tl = tn && tn.__importDefault || function(e) {
|
|
1275
1277
|
return e && e.__esModule ? e : { default: e };
|
|
1276
1278
|
};
|
|
1277
1279
|
Object.defineProperty(Vn, "__esModule", { value: !0 });
|
|
1278
|
-
Vn.default =
|
|
1279
|
-
const
|
|
1280
|
-
function
|
|
1280
|
+
Vn.default = il;
|
|
1281
|
+
const rl = tl(nl);
|
|
1282
|
+
function il(e, t) {
|
|
1281
1283
|
let n = null;
|
|
1282
1284
|
if (!e || typeof e != "string")
|
|
1283
1285
|
return n;
|
|
1284
|
-
const r = (0,
|
|
1286
|
+
const r = (0, rl.default)(e), i = typeof t == "function";
|
|
1285
1287
|
return r.forEach((o) => {
|
|
1286
1288
|
if (o.type !== "declaration")
|
|
1287
1289
|
return;
|
|
@@ -1289,31 +1291,31 @@ function tl(e, t) {
|
|
|
1289
1291
|
i ? t(l, a, o) : a && (n = n || {}, n[l] = a);
|
|
1290
1292
|
}), n;
|
|
1291
1293
|
}
|
|
1292
|
-
var
|
|
1293
|
-
Object.defineProperty(
|
|
1294
|
-
|
|
1295
|
-
var
|
|
1296
|
-
return !e ||
|
|
1297
|
-
},
|
|
1294
|
+
var un = {};
|
|
1295
|
+
Object.defineProperty(un, "__esModule", { value: !0 });
|
|
1296
|
+
un.camelCase = void 0;
|
|
1297
|
+
var ll = /^--[a-zA-Z0-9_-]+$/, ol = /-([a-z])/g, al = /^[^-]+$/, ul = /^-(webkit|moz|ms|o|khtml)-/, sl = /^-(ms)-/, cl = function(e) {
|
|
1298
|
+
return !e || al.test(e) || ll.test(e);
|
|
1299
|
+
}, fl = function(e, t) {
|
|
1298
1300
|
return t.toUpperCase();
|
|
1299
1301
|
}, xt = function(e, t) {
|
|
1300
1302
|
return "".concat(t, "-");
|
|
1301
|
-
},
|
|
1302
|
-
return t === void 0 && (t = {}),
|
|
1303
|
+
}, hl = function(e, t) {
|
|
1304
|
+
return t === void 0 && (t = {}), cl(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(sl, xt) : e = e.replace(ul, xt), e.replace(ol, fl));
|
|
1303
1305
|
};
|
|
1304
|
-
|
|
1305
|
-
var
|
|
1306
|
+
un.camelCase = hl;
|
|
1307
|
+
var pl = tn && tn.__importDefault || function(e) {
|
|
1306
1308
|
return e && e.__esModule ? e : { default: e };
|
|
1307
|
-
},
|
|
1309
|
+
}, ml = pl(Vn), gl = un;
|
|
1308
1310
|
function Ln(e, t) {
|
|
1309
1311
|
var n = {};
|
|
1310
|
-
return !e || typeof e != "string" || (0,
|
|
1311
|
-
r && i && (n[(0,
|
|
1312
|
+
return !e || typeof e != "string" || (0, ml.default)(e, function(r, i) {
|
|
1313
|
+
r && i && (n[(0, gl.camelCase)(r, t)] = i);
|
|
1312
1314
|
}), n;
|
|
1313
1315
|
}
|
|
1314
1316
|
Ln.default = Ln;
|
|
1315
|
-
var
|
|
1316
|
-
const
|
|
1317
|
+
var dl = Ln;
|
|
1318
|
+
const yl = /* @__PURE__ */ ar(dl), gr = dr("end"), $n = dr("start");
|
|
1317
1319
|
function dr(e) {
|
|
1318
1320
|
return t;
|
|
1319
1321
|
function t(n) {
|
|
@@ -1326,7 +1328,7 @@ function dr(e) {
|
|
|
1326
1328
|
};
|
|
1327
1329
|
}
|
|
1328
1330
|
}
|
|
1329
|
-
function
|
|
1331
|
+
function kl(e) {
|
|
1330
1332
|
const t = $n(e), n = gr(e);
|
|
1331
1333
|
if (t && n)
|
|
1332
1334
|
return { start: t, end: n };
|
|
@@ -1430,8 +1432,8 @@ K.prototype.fatal = void 0;
|
|
|
1430
1432
|
K.prototype.place = void 0;
|
|
1431
1433
|
K.prototype.ruleId = void 0;
|
|
1432
1434
|
K.prototype.source = void 0;
|
|
1433
|
-
const qn = {}.hasOwnProperty,
|
|
1434
|
-
function
|
|
1435
|
+
const qn = {}.hasOwnProperty, xl = /* @__PURE__ */ new Map(), bl = /[A-Z]/g, wl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Sl = /* @__PURE__ */ new Set(["td", "th"]), yr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1436
|
+
function Cl(e, t) {
|
|
1435
1437
|
if (!t || t.Fragment === void 0)
|
|
1436
1438
|
throw new TypeError("Expected `Fragment` in options");
|
|
1437
1439
|
const n = t.filePath || void 0;
|
|
@@ -1441,13 +1443,13 @@ function wl(e, t) {
|
|
|
1441
1443
|
throw new TypeError(
|
|
1442
1444
|
"Expected `jsxDEV` in options when `development: true`"
|
|
1443
1445
|
);
|
|
1444
|
-
r =
|
|
1446
|
+
r = Dl(n, t.jsxDEV);
|
|
1445
1447
|
} else {
|
|
1446
1448
|
if (typeof t.jsx != "function")
|
|
1447
1449
|
throw new TypeError("Expected `jsx` in production options");
|
|
1448
1450
|
if (typeof t.jsxs != "function")
|
|
1449
1451
|
throw new TypeError("Expected `jsxs` in production options");
|
|
1450
|
-
r =
|
|
1452
|
+
r = zl(n, t.jsx, t.jsxs);
|
|
1451
1453
|
}
|
|
1452
1454
|
const i = {
|
|
1453
1455
|
Fragment: t.Fragment,
|
|
@@ -1460,7 +1462,7 @@ function wl(e, t) {
|
|
|
1460
1462
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1461
1463
|
passKeys: t.passKeys !== !1,
|
|
1462
1464
|
passNode: t.passNode || !1,
|
|
1463
|
-
schema: t.space === "svg" ? Un :
|
|
1465
|
+
schema: t.space === "svg" ? Un : Ui,
|
|
1464
1466
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1465
1467
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1466
1468
|
}, o = kr(i, e, void 0);
|
|
@@ -1473,29 +1475,29 @@ function wl(e, t) {
|
|
|
1473
1475
|
}
|
|
1474
1476
|
function kr(e, t, n) {
|
|
1475
1477
|
if (t.type === "element")
|
|
1476
|
-
return
|
|
1478
|
+
return El(e, t, n);
|
|
1477
1479
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
|
1478
|
-
return
|
|
1480
|
+
return Il(e, t);
|
|
1479
1481
|
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
|
|
1480
|
-
return
|
|
1482
|
+
return Tl(e, t, n);
|
|
1481
1483
|
if (t.type === "mdxjsEsm")
|
|
1482
|
-
return
|
|
1484
|
+
return Al(e, t);
|
|
1483
1485
|
if (t.type === "root")
|
|
1484
|
-
return
|
|
1486
|
+
return Pl(e, t, n);
|
|
1485
1487
|
if (t.type === "text")
|
|
1486
|
-
return
|
|
1488
|
+
return vl(e, t);
|
|
1487
1489
|
}
|
|
1488
|
-
function
|
|
1490
|
+
function El(e, t, n) {
|
|
1489
1491
|
const r = e.schema;
|
|
1490
1492
|
let i = r;
|
|
1491
1493
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1492
|
-
const o = br(e, t.tagName, !1), l =
|
|
1494
|
+
const o = br(e, t.tagName, !1), l = Ll(e, t);
|
|
1493
1495
|
let a = Yn(e, t);
|
|
1494
|
-
return
|
|
1495
|
-
return typeof u == "string" ? !
|
|
1496
|
+
return wl.has(t.tagName) && (a = a.filter(function(u) {
|
|
1497
|
+
return typeof u == "string" ? !Li(u) : !0;
|
|
1496
1498
|
})), xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1497
1499
|
}
|
|
1498
|
-
function
|
|
1500
|
+
function Il(e, t) {
|
|
1499
1501
|
if (t.data && t.data.estree && e.evaluater) {
|
|
1500
1502
|
const r = t.data.estree.body[0];
|
|
1501
1503
|
return r.type, /** @type {Child | undefined} */
|
|
@@ -1503,7 +1505,7 @@ function Cl(e, t) {
|
|
|
1503
1505
|
}
|
|
1504
1506
|
Ve(e, t.position);
|
|
1505
1507
|
}
|
|
1506
|
-
function
|
|
1508
|
+
function Al(e, t) {
|
|
1507
1509
|
if (t.data && t.data.estree && e.evaluater)
|
|
1508
1510
|
return (
|
|
1509
1511
|
/** @type {Child | undefined} */
|
|
@@ -1511,18 +1513,18 @@ function El(e, t) {
|
|
|
1511
1513
|
);
|
|
1512
1514
|
Ve(e, t.position);
|
|
1513
1515
|
}
|
|
1514
|
-
function
|
|
1516
|
+
function Tl(e, t, n) {
|
|
1515
1517
|
const r = e.schema;
|
|
1516
1518
|
let i = r;
|
|
1517
1519
|
t.name === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1518
|
-
const o = t.name === null ? e.Fragment : br(e, t.name, !0), l =
|
|
1520
|
+
const o = t.name === null ? e.Fragment : br(e, t.name, !0), l = Fl(e, t), a = Yn(e, t);
|
|
1519
1521
|
return xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1520
1522
|
}
|
|
1521
|
-
function
|
|
1523
|
+
function Pl(e, t, n) {
|
|
1522
1524
|
const r = {};
|
|
1523
1525
|
return Wn(r, Yn(e, t)), e.create(t, e.Fragment, r, n);
|
|
1524
1526
|
}
|
|
1525
|
-
function
|
|
1527
|
+
function vl(e, t) {
|
|
1526
1528
|
return t.value;
|
|
1527
1529
|
}
|
|
1528
1530
|
function xr(e, t, n, r) {
|
|
@@ -1534,14 +1536,14 @@ function Wn(e, t) {
|
|
|
1534
1536
|
n && (e.children = n);
|
|
1535
1537
|
}
|
|
1536
1538
|
}
|
|
1537
|
-
function
|
|
1539
|
+
function zl(e, t, n) {
|
|
1538
1540
|
return r;
|
|
1539
1541
|
function r(i, o, l, a) {
|
|
1540
1542
|
const s = Array.isArray(l.children) ? n : t;
|
|
1541
1543
|
return a ? s(o, l, a) : s(o, l);
|
|
1542
1544
|
}
|
|
1543
1545
|
}
|
|
1544
|
-
function
|
|
1546
|
+
function Dl(e, t) {
|
|
1545
1547
|
return n;
|
|
1546
1548
|
function n(r, i, o, l) {
|
|
1547
1549
|
const a = Array.isArray(o.children), u = $n(r);
|
|
@@ -1559,15 +1561,15 @@ function vl(e, t) {
|
|
|
1559
1561
|
);
|
|
1560
1562
|
}
|
|
1561
1563
|
}
|
|
1562
|
-
function
|
|
1564
|
+
function Ll(e, t) {
|
|
1563
1565
|
const n = {};
|
|
1564
1566
|
let r, i;
|
|
1565
1567
|
for (i in t.properties)
|
|
1566
1568
|
if (i !== "children" && qn.call(t.properties, i)) {
|
|
1567
|
-
const o =
|
|
1569
|
+
const o = _l(e, i, t.properties[i]);
|
|
1568
1570
|
if (o) {
|
|
1569
1571
|
const [l, a] = o;
|
|
1570
|
-
e.tableCellAlignToStyle && l === "align" && typeof a == "string" &&
|
|
1572
|
+
e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Sl.has(t.tagName) ? r = a : n[l] = a;
|
|
1571
1573
|
}
|
|
1572
1574
|
}
|
|
1573
1575
|
if (r) {
|
|
@@ -1579,7 +1581,7 @@ function zl(e, t) {
|
|
|
1579
1581
|
}
|
|
1580
1582
|
return n;
|
|
1581
1583
|
}
|
|
1582
|
-
function
|
|
1584
|
+
function Fl(e, t) {
|
|
1583
1585
|
const n = {};
|
|
1584
1586
|
for (const r of t.attributes)
|
|
1585
1587
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -1614,7 +1616,7 @@ function Dl(e, t) {
|
|
|
1614
1616
|
function Yn(e, t) {
|
|
1615
1617
|
const n = [];
|
|
1616
1618
|
let r = -1;
|
|
1617
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1619
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : xl;
|
|
1618
1620
|
for (; ++r < t.children.length; ) {
|
|
1619
1621
|
const o = t.children[r];
|
|
1620
1622
|
let l;
|
|
@@ -1630,22 +1632,22 @@ function Yn(e, t) {
|
|
|
1630
1632
|
}
|
|
1631
1633
|
return n;
|
|
1632
1634
|
}
|
|
1633
|
-
function
|
|
1634
|
-
const r =
|
|
1635
|
+
function _l(e, t, n) {
|
|
1636
|
+
const r = Bi(e.schema, t);
|
|
1635
1637
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1636
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
1637
|
-
let i = typeof n == "object" ? n :
|
|
1638
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
1638
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? Ti(n) : Vi(n)), r.property === "style") {
|
|
1639
|
+
let i = typeof n == "object" ? n : Rl(e, String(n));
|
|
1640
|
+
return e.stylePropertyNameCase === "css" && (i = Ol(i)), ["style", i];
|
|
1639
1641
|
}
|
|
1640
1642
|
return [
|
|
1641
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
1643
|
+
e.elementAttributeNameCase === "react" && r.space ? Oi[r.property] || r.property : r.attribute,
|
|
1642
1644
|
n
|
|
1643
1645
|
];
|
|
1644
1646
|
}
|
|
1645
1647
|
}
|
|
1646
|
-
function
|
|
1648
|
+
function Rl(e, t) {
|
|
1647
1649
|
try {
|
|
1648
|
-
return
|
|
1650
|
+
return yl(t, { reactCompat: !0 });
|
|
1649
1651
|
} catch (n) {
|
|
1650
1652
|
if (e.ignoreInvalidStyle)
|
|
1651
1653
|
return {};
|
|
@@ -1704,21 +1706,21 @@ function Ve(e, t) {
|
|
|
1704
1706
|
);
|
|
1705
1707
|
throw n.file = e.filePath || void 0, n.url = yr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1706
1708
|
}
|
|
1707
|
-
function
|
|
1709
|
+
function Ol(e) {
|
|
1708
1710
|
const t = {};
|
|
1709
1711
|
let n;
|
|
1710
1712
|
for (n in e)
|
|
1711
|
-
qn.call(e, n) && (t[
|
|
1713
|
+
qn.call(e, n) && (t[Ml(n)] = e[n]);
|
|
1712
1714
|
return t;
|
|
1713
1715
|
}
|
|
1714
|
-
function
|
|
1715
|
-
let t = e.replace(
|
|
1716
|
+
function Ml(e) {
|
|
1717
|
+
let t = e.replace(bl, Nl);
|
|
1716
1718
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1717
1719
|
}
|
|
1718
|
-
function
|
|
1720
|
+
function Nl(e) {
|
|
1719
1721
|
return "-" + e.toLowerCase();
|
|
1720
1722
|
}
|
|
1721
|
-
const
|
|
1723
|
+
const gn = {
|
|
1722
1724
|
action: ["form"],
|
|
1723
1725
|
cite: ["blockquote", "del", "ins", "q"],
|
|
1724
1726
|
data: ["object"],
|
|
@@ -1740,13 +1742,13 @@ const mn = {
|
|
|
1740
1742
|
"track",
|
|
1741
1743
|
"video"
|
|
1742
1744
|
]
|
|
1743
|
-
},
|
|
1745
|
+
}, Bl = {};
|
|
1744
1746
|
function Xn(e, t) {
|
|
1745
|
-
const n =
|
|
1747
|
+
const n = Bl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
1746
1748
|
return wr(e, r, i);
|
|
1747
1749
|
}
|
|
1748
1750
|
function wr(e, t, n) {
|
|
1749
|
-
if (
|
|
1751
|
+
if (jl(e)) {
|
|
1750
1752
|
if ("value" in e)
|
|
1751
1753
|
return e.type === "html" && !n ? "" : e.value;
|
|
1752
1754
|
if (t && "alt" in e && e.alt)
|
|
@@ -1763,7 +1765,7 @@ function St(e, t, n) {
|
|
|
1763
1765
|
r[i] = wr(e[i], t, n);
|
|
1764
1766
|
return r.join("");
|
|
1765
1767
|
}
|
|
1766
|
-
function
|
|
1768
|
+
function jl(e) {
|
|
1767
1769
|
return !!(e && typeof e == "object");
|
|
1768
1770
|
}
|
|
1769
1771
|
const Ct = document.createElement("i");
|
|
@@ -1790,10 +1792,10 @@ function Sr(e) {
|
|
|
1790
1792
|
const t = {};
|
|
1791
1793
|
let n = -1;
|
|
1792
1794
|
for (; ++n < e.length; )
|
|
1793
|
-
|
|
1795
|
+
Hl(t, e[n]);
|
|
1794
1796
|
return t;
|
|
1795
1797
|
}
|
|
1796
|
-
function
|
|
1798
|
+
function Hl(e, t) {
|
|
1797
1799
|
let n;
|
|
1798
1800
|
for (n in t) {
|
|
1799
1801
|
const i = (Et.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
@@ -1802,7 +1804,7 @@ function Bl(e, t) {
|
|
|
1802
1804
|
for (l in o) {
|
|
1803
1805
|
Et.call(i, l) || (i[l] = []);
|
|
1804
1806
|
const a = o[l];
|
|
1805
|
-
|
|
1807
|
+
Ul(
|
|
1806
1808
|
// @ts-expect-error Looks like a list.
|
|
1807
1809
|
i[l],
|
|
1808
1810
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -1810,7 +1812,7 @@ function Bl(e, t) {
|
|
|
1810
1812
|
}
|
|
1811
1813
|
}
|
|
1812
1814
|
}
|
|
1813
|
-
function
|
|
1815
|
+
function Ul(e, t) {
|
|
1814
1816
|
let n = -1;
|
|
1815
1817
|
const r = [];
|
|
1816
1818
|
for (; ++n < t.length; )
|
|
@@ -1833,15 +1835,15 @@ function Cr(e, t) {
|
|
|
1833
1835
|
function se(e) {
|
|
1834
1836
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1835
1837
|
}
|
|
1836
|
-
const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/),
|
|
1837
|
-
function
|
|
1838
|
+
const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/), Vl = xe(/[#-'*+\--9=?A-Z^-~]/);
|
|
1839
|
+
function rn(e) {
|
|
1838
1840
|
return (
|
|
1839
1841
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
1840
1842
|
// character DEL
|
|
1841
1843
|
e !== null && (e < 32 || e === 127)
|
|
1842
1844
|
);
|
|
1843
1845
|
}
|
|
1844
|
-
const _n = xe(/\d/),
|
|
1846
|
+
const _n = xe(/\d/), $l = xe(/[\dA-Fa-f]/), ql = xe(/[!-/:-@[-`{-~]/);
|
|
1845
1847
|
function v(e) {
|
|
1846
1848
|
return e !== null && e < -2;
|
|
1847
1849
|
}
|
|
@@ -1851,7 +1853,7 @@ function U(e) {
|
|
|
1851
1853
|
function _(e) {
|
|
1852
1854
|
return e === -2 || e === -1 || e === 32;
|
|
1853
1855
|
}
|
|
1854
|
-
const
|
|
1856
|
+
const sn = xe(new RegExp("\\p{P}|\\p{S}", "u")), Ee = xe(/\s/);
|
|
1855
1857
|
function xe(e) {
|
|
1856
1858
|
return t;
|
|
1857
1859
|
function t(n) {
|
|
@@ -1888,10 +1890,10 @@ function O(e, t, n, r) {
|
|
|
1888
1890
|
return _(u) && o++ < i ? (e.consume(u), a) : (e.exit(n), t(u));
|
|
1889
1891
|
}
|
|
1890
1892
|
}
|
|
1891
|
-
const
|
|
1892
|
-
tokenize:
|
|
1893
|
+
const Wl = {
|
|
1894
|
+
tokenize: Yl
|
|
1893
1895
|
};
|
|
1894
|
-
function
|
|
1896
|
+
function Yl(e) {
|
|
1895
1897
|
const t = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
1896
1898
|
let n;
|
|
1897
1899
|
return t;
|
|
@@ -1920,12 +1922,12 @@ function ql(e) {
|
|
|
1920
1922
|
return v(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
|
1921
1923
|
}
|
|
1922
1924
|
}
|
|
1923
|
-
const
|
|
1924
|
-
tokenize:
|
|
1925
|
+
const Xl = {
|
|
1926
|
+
tokenize: Ql
|
|
1925
1927
|
}, It = {
|
|
1926
|
-
tokenize:
|
|
1928
|
+
tokenize: Gl
|
|
1927
1929
|
};
|
|
1928
|
-
function
|
|
1930
|
+
function Ql(e) {
|
|
1929
1931
|
const t = this, n = [];
|
|
1930
1932
|
let r = 0, i, o, l;
|
|
1931
1933
|
return a;
|
|
@@ -2037,16 +2039,16 @@ function Yl(e) {
|
|
|
2037
2039
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
2038
2040
|
}
|
|
2039
2041
|
}
|
|
2040
|
-
function
|
|
2042
|
+
function Gl(e, t, n) {
|
|
2041
2043
|
return O(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2042
2044
|
}
|
|
2043
2045
|
function Le(e) {
|
|
2044
2046
|
if (e === null || U(e) || Ee(e))
|
|
2045
2047
|
return 1;
|
|
2046
|
-
if (
|
|
2048
|
+
if (sn(e))
|
|
2047
2049
|
return 2;
|
|
2048
2050
|
}
|
|
2049
|
-
function
|
|
2051
|
+
function cn(e, t, n) {
|
|
2050
2052
|
const r = [];
|
|
2051
2053
|
let i = -1;
|
|
2052
2054
|
for (; ++i < e.length; ) {
|
|
@@ -2057,10 +2059,10 @@ function sn(e, t, n) {
|
|
|
2057
2059
|
}
|
|
2058
2060
|
const Rn = {
|
|
2059
2061
|
name: "attention",
|
|
2060
|
-
resolveAll:
|
|
2061
|
-
tokenize:
|
|
2062
|
+
resolveAll: Kl,
|
|
2063
|
+
tokenize: Jl
|
|
2062
2064
|
};
|
|
2063
|
-
function
|
|
2065
|
+
function Kl(e, t) {
|
|
2064
2066
|
let n = -1, r, i, o, l, a, u, s, f;
|
|
2065
2067
|
for (; ++n < e.length; )
|
|
2066
2068
|
if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
|
|
@@ -2107,7 +2109,7 @@ function Ql(e, t) {
|
|
|
2107
2109
|
...l.start
|
|
2108
2110
|
}, e[n][1].start = {
|
|
2109
2111
|
...a.end
|
|
2110
|
-
}, s = [], e[r][1].end.offset - e[r][1].start.offset && (s = ie(s, [["enter", e[r][1], t], ["exit", e[r][1], t]])), s = ie(s, [["enter", i, t], ["enter", l, t], ["exit", l, t], ["enter", o, t]]), s = ie(s,
|
|
2112
|
+
}, s = [], e[r][1].end.offset - e[r][1].start.offset && (s = ie(s, [["enter", e[r][1], t], ["exit", e[r][1], t]])), s = ie(s, [["enter", i, t], ["enter", l, t], ["exit", l, t], ["enter", o, t]]), s = ie(s, cn(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), s = ie(s, [["exit", o, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (f = 2, s = ie(s, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : f = 0, re(e, r - 1, n - r + 3, s), n = r + s.length - f - 2;
|
|
2111
2113
|
break;
|
|
2112
2114
|
}
|
|
2113
2115
|
}
|
|
@@ -2115,7 +2117,7 @@ function Ql(e, t) {
|
|
|
2115
2117
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
|
2116
2118
|
return e;
|
|
2117
2119
|
}
|
|
2118
|
-
function
|
|
2120
|
+
function Jl(e, t) {
|
|
2119
2121
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Le(r);
|
|
2120
2122
|
let o;
|
|
2121
2123
|
return l;
|
|
@@ -2132,11 +2134,11 @@ function Gl(e, t) {
|
|
|
2132
2134
|
function At(e, t) {
|
|
2133
2135
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
2134
2136
|
}
|
|
2135
|
-
const
|
|
2137
|
+
const Zl = {
|
|
2136
2138
|
name: "autolink",
|
|
2137
|
-
tokenize:
|
|
2139
|
+
tokenize: eo
|
|
2138
2140
|
};
|
|
2139
|
-
function
|
|
2141
|
+
function eo(e, t, n) {
|
|
2140
2142
|
let r = 0;
|
|
2141
2143
|
return i;
|
|
2142
2144
|
function i(h) {
|
|
@@ -2152,10 +2154,10 @@ function Jl(e, t, n) {
|
|
|
2152
2154
|
return h === 58 ? (e.consume(h), r = 0, u) : (h === 43 || h === 45 || h === 46 || G(h)) && r++ < 32 ? (e.consume(h), a) : (r = 0, s(h));
|
|
2153
2155
|
}
|
|
2154
2156
|
function u(h) {
|
|
2155
|
-
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 ||
|
|
2157
|
+
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || rn(h) ? n(h) : (e.consume(h), u);
|
|
2156
2158
|
}
|
|
2157
2159
|
function s(h) {
|
|
2158
|
-
return h === 64 ? (e.consume(h), f) :
|
|
2160
|
+
return h === 64 ? (e.consume(h), f) : Vl(h) ? (e.consume(h), s) : n(h);
|
|
2159
2161
|
}
|
|
2160
2162
|
function f(h) {
|
|
2161
2163
|
return G(h) ? c(h) : n(h);
|
|
@@ -2173,9 +2175,9 @@ function Jl(e, t, n) {
|
|
|
2173
2175
|
}
|
|
2174
2176
|
const We = {
|
|
2175
2177
|
partial: !0,
|
|
2176
|
-
tokenize:
|
|
2178
|
+
tokenize: no
|
|
2177
2179
|
};
|
|
2178
|
-
function
|
|
2180
|
+
function no(e, t, n) {
|
|
2179
2181
|
return r;
|
|
2180
2182
|
function r(o) {
|
|
2181
2183
|
return _(o) ? O(e, i, "linePrefix")(o) : i(o);
|
|
@@ -2186,13 +2188,13 @@ function Zl(e, t, n) {
|
|
|
2186
2188
|
}
|
|
2187
2189
|
const Er = {
|
|
2188
2190
|
continuation: {
|
|
2189
|
-
tokenize:
|
|
2191
|
+
tokenize: ro
|
|
2190
2192
|
},
|
|
2191
|
-
exit:
|
|
2193
|
+
exit: io,
|
|
2192
2194
|
name: "blockQuote",
|
|
2193
|
-
tokenize:
|
|
2195
|
+
tokenize: to
|
|
2194
2196
|
};
|
|
2195
|
-
function
|
|
2197
|
+
function to(e, t, n) {
|
|
2196
2198
|
const r = this;
|
|
2197
2199
|
return i;
|
|
2198
2200
|
function i(l) {
|
|
@@ -2208,7 +2210,7 @@ function eo(e, t, n) {
|
|
|
2208
2210
|
return _(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
|
2209
2211
|
}
|
|
2210
2212
|
}
|
|
2211
|
-
function
|
|
2213
|
+
function ro(e, t, n) {
|
|
2212
2214
|
const r = this;
|
|
2213
2215
|
return i;
|
|
2214
2216
|
function i(l) {
|
|
@@ -2218,27 +2220,27 @@ function no(e, t, n) {
|
|
|
2218
2220
|
return e.attempt(Er, t, n)(l);
|
|
2219
2221
|
}
|
|
2220
2222
|
}
|
|
2221
|
-
function
|
|
2223
|
+
function io(e) {
|
|
2222
2224
|
e.exit("blockQuote");
|
|
2223
2225
|
}
|
|
2224
2226
|
const Ir = {
|
|
2225
2227
|
name: "characterEscape",
|
|
2226
|
-
tokenize:
|
|
2228
|
+
tokenize: lo
|
|
2227
2229
|
};
|
|
2228
|
-
function
|
|
2230
|
+
function lo(e, t, n) {
|
|
2229
2231
|
return r;
|
|
2230
2232
|
function r(o) {
|
|
2231
2233
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
2232
2234
|
}
|
|
2233
2235
|
function i(o) {
|
|
2234
|
-
return
|
|
2236
|
+
return ql(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2235
2237
|
}
|
|
2236
2238
|
}
|
|
2237
2239
|
const Ar = {
|
|
2238
2240
|
name: "characterReference",
|
|
2239
|
-
tokenize:
|
|
2241
|
+
tokenize: oo
|
|
2240
2242
|
};
|
|
2241
|
-
function
|
|
2243
|
+
function oo(e, t, n) {
|
|
2242
2244
|
const r = this;
|
|
2243
2245
|
let i = 0, o, l;
|
|
2244
2246
|
return a;
|
|
@@ -2249,7 +2251,7 @@ function io(e, t, n) {
|
|
|
2249
2251
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = G, f(c));
|
|
2250
2252
|
}
|
|
2251
2253
|
function s(c) {
|
|
2252
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
2254
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = $l, f) : (e.enter("characterReferenceValue"), o = 7, l = _n, f(c));
|
|
2253
2255
|
}
|
|
2254
2256
|
function f(c) {
|
|
2255
2257
|
if (c === 59 && i) {
|
|
@@ -2261,13 +2263,13 @@ function io(e, t, n) {
|
|
|
2261
2263
|
}
|
|
2262
2264
|
const Tt = {
|
|
2263
2265
|
partial: !0,
|
|
2264
|
-
tokenize:
|
|
2266
|
+
tokenize: uo
|
|
2265
2267
|
}, Pt = {
|
|
2266
2268
|
concrete: !0,
|
|
2267
2269
|
name: "codeFenced",
|
|
2268
|
-
tokenize:
|
|
2270
|
+
tokenize: ao
|
|
2269
2271
|
};
|
|
2270
|
-
function
|
|
2272
|
+
function ao(e, t, n) {
|
|
2271
2273
|
const r = this, i = {
|
|
2272
2274
|
partial: !0,
|
|
2273
2275
|
tokenize: F
|
|
@@ -2338,7 +2340,7 @@ function lo(e, t, n) {
|
|
|
2338
2340
|
}
|
|
2339
2341
|
}
|
|
2340
2342
|
}
|
|
2341
|
-
function
|
|
2343
|
+
function uo(e, t, n) {
|
|
2342
2344
|
const r = this;
|
|
2343
2345
|
return i;
|
|
2344
2346
|
function i(l) {
|
|
@@ -2348,14 +2350,14 @@ function oo(e, t, n) {
|
|
|
2348
2350
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
|
2349
2351
|
}
|
|
2350
2352
|
}
|
|
2351
|
-
const
|
|
2353
|
+
const dn = {
|
|
2352
2354
|
name: "codeIndented",
|
|
2353
|
-
tokenize:
|
|
2354
|
-
},
|
|
2355
|
+
tokenize: co
|
|
2356
|
+
}, so = {
|
|
2355
2357
|
partial: !0,
|
|
2356
|
-
tokenize:
|
|
2358
|
+
tokenize: fo
|
|
2357
2359
|
};
|
|
2358
|
-
function
|
|
2360
|
+
function co(e, t, n) {
|
|
2359
2361
|
const r = this;
|
|
2360
2362
|
return i;
|
|
2361
2363
|
function i(s) {
|
|
@@ -2366,7 +2368,7 @@ function uo(e, t, n) {
|
|
|
2366
2368
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
|
|
2367
2369
|
}
|
|
2368
2370
|
function l(s) {
|
|
2369
|
-
return s === null ? u(s) : v(s) ? e.attempt(
|
|
2371
|
+
return s === null ? u(s) : v(s) ? e.attempt(so, l, u)(s) : (e.enter("codeFlowValue"), a(s));
|
|
2370
2372
|
}
|
|
2371
2373
|
function a(s) {
|
|
2372
2374
|
return s === null || v(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), a);
|
|
@@ -2375,7 +2377,7 @@ function uo(e, t, n) {
|
|
|
2375
2377
|
return e.exit("codeIndented"), t(s);
|
|
2376
2378
|
}
|
|
2377
2379
|
}
|
|
2378
|
-
function
|
|
2380
|
+
function fo(e, t, n) {
|
|
2379
2381
|
const r = this;
|
|
2380
2382
|
return i;
|
|
2381
2383
|
function i(l) {
|
|
@@ -2386,13 +2388,13 @@ function so(e, t, n) {
|
|
|
2386
2388
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : v(l) ? i(l) : n(l);
|
|
2387
2389
|
}
|
|
2388
2390
|
}
|
|
2389
|
-
const
|
|
2391
|
+
const ho = {
|
|
2390
2392
|
name: "codeText",
|
|
2391
|
-
previous:
|
|
2392
|
-
resolve:
|
|
2393
|
-
tokenize:
|
|
2393
|
+
previous: mo,
|
|
2394
|
+
resolve: po,
|
|
2395
|
+
tokenize: go
|
|
2394
2396
|
};
|
|
2395
|
-
function
|
|
2397
|
+
function po(e) {
|
|
2396
2398
|
let t = e.length - 4, n = 3, r, i;
|
|
2397
2399
|
if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
|
|
2398
2400
|
for (r = n; ++r < t; )
|
|
@@ -2405,10 +2407,10 @@ function fo(e) {
|
|
|
2405
2407
|
i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || 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), t -= r - i - 2, r = i + 2), i = void 0);
|
|
2406
2408
|
return e;
|
|
2407
2409
|
}
|
|
2408
|
-
function
|
|
2410
|
+
function mo(e) {
|
|
2409
2411
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2410
2412
|
}
|
|
2411
|
-
function
|
|
2413
|
+
function go(e, t, n) {
|
|
2412
2414
|
let r = 0, i, o;
|
|
2413
2415
|
return l;
|
|
2414
2416
|
function l(c) {
|
|
@@ -2427,7 +2429,7 @@ function po(e, t, n) {
|
|
|
2427
2429
|
return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
|
|
2428
2430
|
}
|
|
2429
2431
|
}
|
|
2430
|
-
class
|
|
2432
|
+
class yo {
|
|
2431
2433
|
/**
|
|
2432
2434
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
2433
2435
|
* Initial items (optional).
|
|
@@ -2602,7 +2604,7 @@ function Ne(e, t) {
|
|
|
2602
2604
|
function Tr(e) {
|
|
2603
2605
|
const t = {};
|
|
2604
2606
|
let n = -1, r, i, o, l, a, u, s;
|
|
2605
|
-
const f = new
|
|
2607
|
+
const f = new yo(e);
|
|
2606
2608
|
for (; ++n < f.length; ) {
|
|
2607
2609
|
for (; n in t; )
|
|
2608
2610
|
n = t[n];
|
|
@@ -2610,7 +2612,7 @@ function Tr(e) {
|
|
|
2610
2612
|
for (; ++o < u.length && u[o][1].type !== "content"; )
|
|
2611
2613
|
u[o][1].type === "chunkText" && (u[o][1]._isInFirstContentOfListItem = !0, o++);
|
|
2612
2614
|
if (r[0] === "enter")
|
|
2613
|
-
r[1].contentType && (Object.assign(t,
|
|
2615
|
+
r[1].contentType && (Object.assign(t, ko(f, n)), n = t[n], s = !0);
|
|
2614
2616
|
else if (r[1]._container) {
|
|
2615
2617
|
for (o = n, i = void 0; o--; )
|
|
2616
2618
|
if (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
|
|
@@ -2623,7 +2625,7 @@ function Tr(e) {
|
|
|
2623
2625
|
}
|
|
2624
2626
|
return re(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
|
|
2625
2627
|
}
|
|
2626
|
-
function
|
|
2628
|
+
function ko(e, t) {
|
|
2627
2629
|
const n = e.get(t)[1], r = e.get(t)[2];
|
|
2628
2630
|
let i = t - 1;
|
|
2629
2631
|
const o = [];
|
|
@@ -2648,17 +2650,17 @@ function go(e, t) {
|
|
|
2648
2650
|
s[d + u[p][0]] = d + u[p][1], d += u[p][1] - u[p][0] - 1;
|
|
2649
2651
|
return s;
|
|
2650
2652
|
}
|
|
2651
|
-
const
|
|
2652
|
-
resolve:
|
|
2653
|
-
tokenize:
|
|
2654
|
-
},
|
|
2653
|
+
const xo = {
|
|
2654
|
+
resolve: wo,
|
|
2655
|
+
tokenize: So
|
|
2656
|
+
}, bo = {
|
|
2655
2657
|
partial: !0,
|
|
2656
|
-
tokenize:
|
|
2658
|
+
tokenize: Co
|
|
2657
2659
|
};
|
|
2658
|
-
function
|
|
2660
|
+
function wo(e) {
|
|
2659
2661
|
return Tr(e), e;
|
|
2660
2662
|
}
|
|
2661
|
-
function
|
|
2663
|
+
function So(e, t) {
|
|
2662
2664
|
let n;
|
|
2663
2665
|
return r;
|
|
2664
2666
|
function r(a) {
|
|
@@ -2667,7 +2669,7 @@ function bo(e, t) {
|
|
|
2667
2669
|
}), i(a);
|
|
2668
2670
|
}
|
|
2669
2671
|
function i(a) {
|
|
2670
|
-
return a === null ? o(a) : v(a) ? e.check(
|
|
2672
|
+
return a === null ? o(a) : v(a) ? e.check(bo, l, o)(a) : (e.consume(a), i);
|
|
2671
2673
|
}
|
|
2672
2674
|
function o(a) {
|
|
2673
2675
|
return e.exit("chunkContent"), e.exit("content"), t(a);
|
|
@@ -2679,7 +2681,7 @@ function bo(e, t) {
|
|
|
2679
2681
|
}), n = n.next, i;
|
|
2680
2682
|
}
|
|
2681
2683
|
}
|
|
2682
|
-
function
|
|
2684
|
+
function Co(e, t, n) {
|
|
2683
2685
|
const r = this;
|
|
2684
2686
|
return i;
|
|
2685
2687
|
function i(l) {
|
|
@@ -2697,7 +2699,7 @@ function Pr(e, t, n, r, i, o, l, a, u) {
|
|
|
2697
2699
|
let f = 0;
|
|
2698
2700
|
return c;
|
|
2699
2701
|
function c(y) {
|
|
2700
|
-
return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o), p) : y === null || y === 32 || y === 41 ||
|
|
2702
|
+
return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o), p) : y === null || y === 32 || y === 41 || rn(y) ? n(y) : (e.enter(r), e.enter(l), e.enter(a), e.enter("chunkString", {
|
|
2701
2703
|
contentType: "string"
|
|
2702
2704
|
}), x(y));
|
|
2703
2705
|
}
|
|
@@ -2713,7 +2715,7 @@ function Pr(e, t, n, r, i, o, l, a, u) {
|
|
|
2713
2715
|
return y === 60 || y === 62 || y === 92 ? (e.consume(y), h) : h(y);
|
|
2714
2716
|
}
|
|
2715
2717
|
function x(y) {
|
|
2716
|
-
return !f && (y === null || y === 41 || U(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 ||
|
|
2718
|
+
return !f && (y === null || y === 41 || U(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 || rn(y) ? n(y) : (e.consume(y), y === 92 ? C : x);
|
|
2717
2719
|
}
|
|
2718
2720
|
function C(y) {
|
|
2719
2721
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), x) : x(y);
|
|
@@ -2771,14 +2773,14 @@ function He(e, t) {
|
|
|
2771
2773
|
return v(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : _(i) ? O(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
|
|
2772
2774
|
}
|
|
2773
2775
|
}
|
|
2774
|
-
const
|
|
2776
|
+
const Eo = {
|
|
2775
2777
|
name: "definition",
|
|
2776
|
-
tokenize:
|
|
2777
|
-
},
|
|
2778
|
+
tokenize: Ao
|
|
2779
|
+
}, Io = {
|
|
2778
2780
|
partial: !0,
|
|
2779
|
-
tokenize:
|
|
2781
|
+
tokenize: To
|
|
2780
2782
|
};
|
|
2781
|
-
function
|
|
2783
|
+
function Ao(e, t, n) {
|
|
2782
2784
|
const r = this;
|
|
2783
2785
|
let i;
|
|
2784
2786
|
return o;
|
|
@@ -2817,7 +2819,7 @@ function Eo(e, t, n) {
|
|
|
2817
2819
|
)(h);
|
|
2818
2820
|
}
|
|
2819
2821
|
function f(h) {
|
|
2820
|
-
return e.attempt(
|
|
2822
|
+
return e.attempt(Io, c, c)(h);
|
|
2821
2823
|
}
|
|
2822
2824
|
function c(h) {
|
|
2823
2825
|
return _(h) ? O(e, p, "whitespace")(h) : p(h);
|
|
@@ -2826,7 +2828,7 @@ function Eo(e, t, n) {
|
|
|
2826
2828
|
return h === null || v(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
|
|
2827
2829
|
}
|
|
2828
2830
|
}
|
|
2829
|
-
function
|
|
2831
|
+
function To(e, t, n) {
|
|
2830
2832
|
return r;
|
|
2831
2833
|
function r(a) {
|
|
2832
2834
|
return U(a) ? He(e, i)(a) : n(a);
|
|
@@ -2841,11 +2843,11 @@ function Io(e, t, n) {
|
|
|
2841
2843
|
return a === null || v(a) ? t(a) : n(a);
|
|
2842
2844
|
}
|
|
2843
2845
|
}
|
|
2844
|
-
const
|
|
2846
|
+
const Po = {
|
|
2845
2847
|
name: "hardBreakEscape",
|
|
2846
|
-
tokenize:
|
|
2848
|
+
tokenize: vo
|
|
2847
2849
|
};
|
|
2848
|
-
function
|
|
2850
|
+
function vo(e, t, n) {
|
|
2849
2851
|
return r;
|
|
2850
2852
|
function r(o) {
|
|
2851
2853
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
|
@@ -2854,12 +2856,12 @@ function To(e, t, n) {
|
|
|
2854
2856
|
return v(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
|
|
2855
2857
|
}
|
|
2856
2858
|
}
|
|
2857
|
-
const
|
|
2859
|
+
const zo = {
|
|
2858
2860
|
name: "headingAtx",
|
|
2859
|
-
resolve:
|
|
2860
|
-
tokenize:
|
|
2861
|
+
resolve: Do,
|
|
2862
|
+
tokenize: Lo
|
|
2861
2863
|
};
|
|
2862
|
-
function
|
|
2864
|
+
function Do(e, t) {
|
|
2863
2865
|
let n = e.length - 2, r = 3, i, o;
|
|
2864
2866
|
return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
|
|
2865
2867
|
type: "atxHeadingText",
|
|
@@ -2872,7 +2874,7 @@ function vo(e, t) {
|
|
|
2872
2874
|
contentType: "text"
|
|
2873
2875
|
}, re(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
|
|
2874
2876
|
}
|
|
2875
|
-
function
|
|
2877
|
+
function Lo(e, t, n) {
|
|
2876
2878
|
let r = 0;
|
|
2877
2879
|
return i;
|
|
2878
2880
|
function i(f) {
|
|
@@ -2894,7 +2896,7 @@ function zo(e, t, n) {
|
|
|
2894
2896
|
return f === null || f === 35 || U(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
|
|
2895
2897
|
}
|
|
2896
2898
|
}
|
|
2897
|
-
const
|
|
2899
|
+
const Fo = [
|
|
2898
2900
|
"address",
|
|
2899
2901
|
"article",
|
|
2900
2902
|
"aside",
|
|
@@ -2957,25 +2959,25 @@ const Do = [
|
|
|
2957
2959
|
"tr",
|
|
2958
2960
|
"track",
|
|
2959
2961
|
"ul"
|
|
2960
|
-
], vt = ["pre", "script", "style", "textarea"],
|
|
2962
|
+
], vt = ["pre", "script", "style", "textarea"], _o = {
|
|
2961
2963
|
concrete: !0,
|
|
2962
2964
|
name: "htmlFlow",
|
|
2963
|
-
resolveTo:
|
|
2964
|
-
tokenize: Oo
|
|
2965
|
-
}, Fo = {
|
|
2966
|
-
partial: !0,
|
|
2965
|
+
resolveTo: Mo,
|
|
2967
2966
|
tokenize: No
|
|
2968
|
-
},
|
|
2967
|
+
}, Ro = {
|
|
2968
|
+
partial: !0,
|
|
2969
|
+
tokenize: jo
|
|
2970
|
+
}, Oo = {
|
|
2969
2971
|
partial: !0,
|
|
2970
|
-
tokenize:
|
|
2972
|
+
tokenize: Bo
|
|
2971
2973
|
};
|
|
2972
|
-
function
|
|
2974
|
+
function Mo(e) {
|
|
2973
2975
|
let t = e.length;
|
|
2974
2976
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
|
2975
2977
|
;
|
|
2976
2978
|
return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
|
|
2977
2979
|
}
|
|
2978
|
-
function
|
|
2980
|
+
function No(e, t, n) {
|
|
2979
2981
|
const r = this;
|
|
2980
2982
|
let i, o, l, a, u;
|
|
2981
2983
|
return s;
|
|
@@ -3004,7 +3006,7 @@ function Oo(e, t, n) {
|
|
|
3004
3006
|
function C(g) {
|
|
3005
3007
|
if (g === null || g === 47 || g === 62 || U(g)) {
|
|
3006
3008
|
const ae = g === 47, be = l.toLowerCase();
|
|
3007
|
-
return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) :
|
|
3009
|
+
return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) : Fo.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
|
|
3008
3010
|
}
|
|
3009
3011
|
return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g), C) : n(g);
|
|
3010
3012
|
}
|
|
@@ -3042,10 +3044,10 @@ function Oo(e, t, n) {
|
|
|
3042
3044
|
return g === null || v(g) ? P(g) : _(g) ? (e.consume(g), T) : n(g);
|
|
3043
3045
|
}
|
|
3044
3046
|
function P(g) {
|
|
3045
|
-
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
3047
|
+
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Ro, pe, j)(g)) : g === null || v(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), P);
|
|
3046
3048
|
}
|
|
3047
3049
|
function j(g) {
|
|
3048
|
-
return e.check(
|
|
3050
|
+
return e.check(Oo, q, pe)(g);
|
|
3049
3051
|
}
|
|
3050
3052
|
function q(g) {
|
|
3051
3053
|
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), N;
|
|
@@ -3079,7 +3081,7 @@ function Oo(e, t, n) {
|
|
|
3079
3081
|
return e.exit("htmlFlow"), t(g);
|
|
3080
3082
|
}
|
|
3081
3083
|
}
|
|
3082
|
-
function
|
|
3084
|
+
function Bo(e, t, n) {
|
|
3083
3085
|
const r = this;
|
|
3084
3086
|
return i;
|
|
3085
3087
|
function i(l) {
|
|
@@ -3089,17 +3091,17 @@ function Mo(e, t, n) {
|
|
|
3089
3091
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
|
3090
3092
|
}
|
|
3091
3093
|
}
|
|
3092
|
-
function
|
|
3094
|
+
function jo(e, t, n) {
|
|
3093
3095
|
return r;
|
|
3094
3096
|
function r(i) {
|
|
3095
3097
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(We, t, n);
|
|
3096
3098
|
}
|
|
3097
3099
|
}
|
|
3098
|
-
const
|
|
3100
|
+
const Ho = {
|
|
3099
3101
|
name: "htmlText",
|
|
3100
|
-
tokenize:
|
|
3102
|
+
tokenize: Uo
|
|
3101
3103
|
};
|
|
3102
|
-
function
|
|
3104
|
+
function Uo(e, t, n) {
|
|
3103
3105
|
const r = this;
|
|
3104
3106
|
let i, o, l;
|
|
3105
3107
|
return a;
|
|
@@ -3194,17 +3196,17 @@ function jo(e, t, n) {
|
|
|
3194
3196
|
}
|
|
3195
3197
|
const Gn = {
|
|
3196
3198
|
name: "labelEnd",
|
|
3197
|
-
resolveAll:
|
|
3198
|
-
resolveTo:
|
|
3199
|
-
tokenize: Wo
|
|
3200
|
-
}, Ho = {
|
|
3201
|
-
tokenize: Yo
|
|
3202
|
-
}, Uo = {
|
|
3199
|
+
resolveAll: Wo,
|
|
3200
|
+
resolveTo: Yo,
|
|
3203
3201
|
tokenize: Xo
|
|
3204
3202
|
}, Vo = {
|
|
3205
3203
|
tokenize: Qo
|
|
3204
|
+
}, $o = {
|
|
3205
|
+
tokenize: Go
|
|
3206
|
+
}, qo = {
|
|
3207
|
+
tokenize: Ko
|
|
3206
3208
|
};
|
|
3207
|
-
function
|
|
3209
|
+
function Wo(e) {
|
|
3208
3210
|
let t = -1;
|
|
3209
3211
|
const n = [];
|
|
3210
3212
|
for (; ++t < e.length; ) {
|
|
@@ -3216,7 +3218,7 @@ function $o(e) {
|
|
|
3216
3218
|
}
|
|
3217
3219
|
return e.length !== n.length && re(e, 0, e.length, n), e;
|
|
3218
3220
|
}
|
|
3219
|
-
function
|
|
3221
|
+
function Yo(e, t) {
|
|
3220
3222
|
let n = e.length, r = 0, i, o, l, a;
|
|
3221
3223
|
for (; n--; )
|
|
3222
3224
|
if (i = e[n][1], o) {
|
|
@@ -3254,9 +3256,9 @@ function qo(e, t) {
|
|
|
3254
3256
|
...e[l - 2][1].start
|
|
3255
3257
|
}
|
|
3256
3258
|
};
|
|
3257
|
-
return a = [["enter", u, t], ["enter", s, t]], a = ie(a, e.slice(o + 1, o + r + 3)), a = ie(a, [["enter", f, t]]), a = ie(a,
|
|
3259
|
+
return a = [["enter", u, t], ["enter", s, t]], a = ie(a, e.slice(o + 1, o + r + 3)), a = ie(a, [["enter", f, t]]), a = ie(a, cn(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = ie(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = ie(a, e.slice(l + 1)), a = ie(a, [["exit", u, t]]), re(e, o, e.length, a), e;
|
|
3258
3260
|
}
|
|
3259
|
-
function
|
|
3261
|
+
function Xo(e, t, n) {
|
|
3260
3262
|
const r = this;
|
|
3261
3263
|
let i = r.events.length, o, l;
|
|
3262
3264
|
for (; i--; )
|
|
@@ -3272,10 +3274,10 @@ function Wo(e, t, n) {
|
|
|
3272
3274
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
|
|
3273
3275
|
}
|
|
3274
3276
|
function u(p) {
|
|
3275
|
-
return p === 40 ? e.attempt(
|
|
3277
|
+
return p === 40 ? e.attempt(Vo, f, l ? f : c)(p) : p === 91 ? e.attempt($o, f, l ? s : c)(p) : l ? f(p) : c(p);
|
|
3276
3278
|
}
|
|
3277
3279
|
function s(p) {
|
|
3278
|
-
return e.attempt(
|
|
3280
|
+
return e.attempt(qo, f, c)(p);
|
|
3279
3281
|
}
|
|
3280
3282
|
function f(p) {
|
|
3281
3283
|
return t(p);
|
|
@@ -3284,7 +3286,7 @@ function Wo(e, t, n) {
|
|
|
3284
3286
|
return o._balanced = !0, n(p);
|
|
3285
3287
|
}
|
|
3286
3288
|
}
|
|
3287
|
-
function
|
|
3289
|
+
function Qo(e, t, n) {
|
|
3288
3290
|
return r;
|
|
3289
3291
|
function r(c) {
|
|
3290
3292
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
|
@@ -3311,7 +3313,7 @@ function Yo(e, t, n) {
|
|
|
3311
3313
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
|
|
3312
3314
|
}
|
|
3313
3315
|
}
|
|
3314
|
-
function
|
|
3316
|
+
function Go(e, t, n) {
|
|
3315
3317
|
const r = this;
|
|
3316
3318
|
return i;
|
|
3317
3319
|
function i(a) {
|
|
@@ -3324,7 +3326,7 @@ function Xo(e, t, n) {
|
|
|
3324
3326
|
return n(a);
|
|
3325
3327
|
}
|
|
3326
3328
|
}
|
|
3327
|
-
function
|
|
3329
|
+
function Ko(e, t, n) {
|
|
3328
3330
|
return r;
|
|
3329
3331
|
function r(o) {
|
|
3330
3332
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
|
@@ -3333,12 +3335,12 @@ function Qo(e, t, n) {
|
|
|
3333
3335
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
|
|
3334
3336
|
}
|
|
3335
3337
|
}
|
|
3336
|
-
const
|
|
3338
|
+
const Jo = {
|
|
3337
3339
|
name: "labelStartImage",
|
|
3338
3340
|
resolveAll: Gn.resolveAll,
|
|
3339
|
-
tokenize:
|
|
3341
|
+
tokenize: Zo
|
|
3340
3342
|
};
|
|
3341
|
-
function
|
|
3343
|
+
function Zo(e, t, n) {
|
|
3342
3344
|
const r = this;
|
|
3343
3345
|
return i;
|
|
3344
3346
|
function i(a) {
|
|
@@ -3351,12 +3353,12 @@ function Ko(e, t, n) {
|
|
|
3351
3353
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
|
|
3352
3354
|
}
|
|
3353
3355
|
}
|
|
3354
|
-
const
|
|
3356
|
+
const ea = {
|
|
3355
3357
|
name: "labelStartLink",
|
|
3356
3358
|
resolveAll: Gn.resolveAll,
|
|
3357
|
-
tokenize:
|
|
3359
|
+
tokenize: na
|
|
3358
3360
|
};
|
|
3359
|
-
function
|
|
3361
|
+
function na(e, t, n) {
|
|
3360
3362
|
const r = this;
|
|
3361
3363
|
return i;
|
|
3362
3364
|
function i(l) {
|
|
@@ -3366,11 +3368,11 @@ function Zo(e, t, n) {
|
|
|
3366
3368
|
return l === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(l) : t(l);
|
|
3367
3369
|
}
|
|
3368
3370
|
}
|
|
3369
|
-
const
|
|
3371
|
+
const yn = {
|
|
3370
3372
|
name: "lineEnding",
|
|
3371
|
-
tokenize:
|
|
3373
|
+
tokenize: ta
|
|
3372
3374
|
};
|
|
3373
|
-
function
|
|
3375
|
+
function ta(e, t) {
|
|
3374
3376
|
return n;
|
|
3375
3377
|
function n(r) {
|
|
3376
3378
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), O(e, t, "linePrefix");
|
|
@@ -3378,9 +3380,9 @@ function ea(e, t) {
|
|
|
3378
3380
|
}
|
|
3379
3381
|
const Ze = {
|
|
3380
3382
|
name: "thematicBreak",
|
|
3381
|
-
tokenize:
|
|
3383
|
+
tokenize: ra
|
|
3382
3384
|
};
|
|
3383
|
-
function
|
|
3385
|
+
function ra(e, t, n) {
|
|
3384
3386
|
let r = 0, i;
|
|
3385
3387
|
return o;
|
|
3386
3388
|
function o(s) {
|
|
@@ -3398,19 +3400,19 @@ function na(e, t, n) {
|
|
|
3398
3400
|
}
|
|
3399
3401
|
const Z = {
|
|
3400
3402
|
continuation: {
|
|
3401
|
-
tokenize:
|
|
3403
|
+
tokenize: aa
|
|
3402
3404
|
},
|
|
3403
|
-
exit:
|
|
3405
|
+
exit: sa,
|
|
3404
3406
|
name: "list",
|
|
3405
|
-
tokenize:
|
|
3406
|
-
},
|
|
3407
|
+
tokenize: oa
|
|
3408
|
+
}, ia = {
|
|
3407
3409
|
partial: !0,
|
|
3408
|
-
tokenize:
|
|
3409
|
-
},
|
|
3410
|
+
tokenize: ca
|
|
3411
|
+
}, la = {
|
|
3410
3412
|
partial: !0,
|
|
3411
|
-
tokenize:
|
|
3413
|
+
tokenize: ua
|
|
3412
3414
|
};
|
|
3413
|
-
function
|
|
3415
|
+
function oa(e, t, n) {
|
|
3414
3416
|
const r = this, i = r.events[r.events.length - 1];
|
|
3415
3417
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
|
3416
3418
|
return a;
|
|
@@ -3434,7 +3436,7 @@ function ia(e, t, n) {
|
|
|
3434
3436
|
We,
|
|
3435
3437
|
// Can’t be empty when interrupting.
|
|
3436
3438
|
r.interrupt ? n : f,
|
|
3437
|
-
e.attempt(
|
|
3439
|
+
e.attempt(ia, p, c)
|
|
3438
3440
|
);
|
|
3439
3441
|
}
|
|
3440
3442
|
function f(h) {
|
|
@@ -3447,20 +3449,20 @@ function ia(e, t, n) {
|
|
|
3447
3449
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
|
|
3448
3450
|
}
|
|
3449
3451
|
}
|
|
3450
|
-
function
|
|
3452
|
+
function aa(e, t, n) {
|
|
3451
3453
|
const r = this;
|
|
3452
3454
|
return r.containerState._closeFlow = void 0, e.check(We, i, o);
|
|
3453
3455
|
function i(a) {
|
|
3454
3456
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, O(e, t, "listItemIndent", r.containerState.size + 1)(a);
|
|
3455
3457
|
}
|
|
3456
3458
|
function o(a) {
|
|
3457
|
-
return r.containerState.furtherBlankLines || !_(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
|
3459
|
+
return r.containerState.furtherBlankLines || !_(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(la, t, l)(a));
|
|
3458
3460
|
}
|
|
3459
3461
|
function l(a) {
|
|
3460
3462
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, O(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3461
3463
|
}
|
|
3462
3464
|
}
|
|
3463
|
-
function
|
|
3465
|
+
function ua(e, t, n) {
|
|
3464
3466
|
const r = this;
|
|
3465
3467
|
return O(e, i, "listItemIndent", r.containerState.size + 1);
|
|
3466
3468
|
function i(o) {
|
|
@@ -3468,10 +3470,10 @@ function oa(e, t, n) {
|
|
|
3468
3470
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
|
|
3469
3471
|
}
|
|
3470
3472
|
}
|
|
3471
|
-
function
|
|
3473
|
+
function sa(e) {
|
|
3472
3474
|
e.exit(this.containerState.type);
|
|
3473
3475
|
}
|
|
3474
|
-
function
|
|
3476
|
+
function ca(e, t, n) {
|
|
3475
3477
|
const r = this;
|
|
3476
3478
|
return O(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3477
3479
|
function i(o) {
|
|
@@ -3481,10 +3483,10 @@ function ua(e, t, n) {
|
|
|
3481
3483
|
}
|
|
3482
3484
|
const zt = {
|
|
3483
3485
|
name: "setextUnderline",
|
|
3484
|
-
resolveTo:
|
|
3485
|
-
tokenize:
|
|
3486
|
+
resolveTo: fa,
|
|
3487
|
+
tokenize: ha
|
|
3486
3488
|
};
|
|
3487
|
-
function
|
|
3489
|
+
function fa(e, t) {
|
|
3488
3490
|
let n = e.length, r, i, o;
|
|
3489
3491
|
for (; n--; )
|
|
3490
3492
|
if (e[n][0] === "enter") {
|
|
@@ -3508,7 +3510,7 @@ function sa(e, t) {
|
|
|
3508
3510
|
...e[o][1].end
|
|
3509
3511
|
}) : e[r][1] = l, e.push(["exit", l, t]), e;
|
|
3510
3512
|
}
|
|
3511
|
-
function
|
|
3513
|
+
function ha(e, t, n) {
|
|
3512
3514
|
const r = this;
|
|
3513
3515
|
let i;
|
|
3514
3516
|
return o;
|
|
@@ -3531,16 +3533,16 @@ function ca(e, t, n) {
|
|
|
3531
3533
|
return s === null || v(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
|
|
3532
3534
|
}
|
|
3533
3535
|
}
|
|
3534
|
-
const
|
|
3535
|
-
tokenize:
|
|
3536
|
+
const pa = {
|
|
3537
|
+
tokenize: ma
|
|
3536
3538
|
};
|
|
3537
|
-
function
|
|
3539
|
+
function ma(e) {
|
|
3538
3540
|
const t = this, n = e.attempt(
|
|
3539
3541
|
// Try to parse a blank line.
|
|
3540
3542
|
We,
|
|
3541
3543
|
r,
|
|
3542
3544
|
// Try to parse initial flow (essentially, only code).
|
|
3543
|
-
e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
|
3545
|
+
e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(xo, i)), "linePrefix"))
|
|
3544
3546
|
);
|
|
3545
3547
|
return n;
|
|
3546
3548
|
function r(o) {
|
|
@@ -3558,12 +3560,12 @@ function ha(e) {
|
|
|
3558
3560
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
|
|
3559
3561
|
}
|
|
3560
3562
|
}
|
|
3561
|
-
const
|
|
3563
|
+
const ga = {
|
|
3562
3564
|
resolveAll: Lr()
|
|
3563
|
-
},
|
|
3565
|
+
}, da = Dr("string"), ya = Dr("text");
|
|
3564
3566
|
function Dr(e) {
|
|
3565
3567
|
return {
|
|
3566
|
-
resolveAll: Lr(e === "text" ?
|
|
3568
|
+
resolveAll: Lr(e === "text" ? ka : void 0),
|
|
3567
3569
|
tokenize: t
|
|
3568
3570
|
};
|
|
3569
3571
|
function t(n) {
|
|
@@ -3606,7 +3608,7 @@ function Lr(e) {
|
|
|
3606
3608
|
return e ? e(n, r) : n;
|
|
3607
3609
|
}
|
|
3608
3610
|
}
|
|
3609
|
-
function
|
|
3611
|
+
function ka(e, t) {
|
|
3610
3612
|
let n = 0;
|
|
3611
3613
|
for (; ++n <= e.length; )
|
|
3612
3614
|
if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
|
|
@@ -3648,7 +3650,7 @@ function da(e, t) {
|
|
|
3648
3650
|
}
|
|
3649
3651
|
return e;
|
|
3650
3652
|
}
|
|
3651
|
-
const
|
|
3653
|
+
const xa = {
|
|
3652
3654
|
42: Z,
|
|
3653
3655
|
43: Z,
|
|
3654
3656
|
45: Z,
|
|
@@ -3663,56 +3665,56 @@ const ya = {
|
|
|
3663
3665
|
56: Z,
|
|
3664
3666
|
57: Z,
|
|
3665
3667
|
62: Er
|
|
3666
|
-
}, ka = {
|
|
3667
|
-
91: So
|
|
3668
|
-
}, xa = {
|
|
3669
|
-
[-2]: gn,
|
|
3670
|
-
[-1]: gn,
|
|
3671
|
-
32: gn
|
|
3672
3668
|
}, ba = {
|
|
3673
|
-
|
|
3669
|
+
91: Eo
|
|
3670
|
+
}, wa = {
|
|
3671
|
+
[-2]: dn,
|
|
3672
|
+
[-1]: dn,
|
|
3673
|
+
32: dn
|
|
3674
|
+
}, Sa = {
|
|
3675
|
+
35: zo,
|
|
3674
3676
|
42: Ze,
|
|
3675
3677
|
45: [zt, Ze],
|
|
3676
|
-
60:
|
|
3678
|
+
60: _o,
|
|
3677
3679
|
61: zt,
|
|
3678
3680
|
95: Ze,
|
|
3679
3681
|
96: Pt,
|
|
3680
3682
|
126: Pt
|
|
3681
|
-
},
|
|
3683
|
+
}, Ca = {
|
|
3682
3684
|
38: Ar,
|
|
3683
3685
|
92: Ir
|
|
3684
|
-
},
|
|
3685
|
-
[-5]:
|
|
3686
|
-
[-4]:
|
|
3687
|
-
[-3]:
|
|
3688
|
-
33:
|
|
3686
|
+
}, Ea = {
|
|
3687
|
+
[-5]: yn,
|
|
3688
|
+
[-4]: yn,
|
|
3689
|
+
[-3]: yn,
|
|
3690
|
+
33: Jo,
|
|
3689
3691
|
38: Ar,
|
|
3690
3692
|
42: Rn,
|
|
3691
|
-
60: [
|
|
3692
|
-
91:
|
|
3693
|
-
92: [
|
|
3693
|
+
60: [Zl, Ho],
|
|
3694
|
+
91: ea,
|
|
3695
|
+
92: [Po, Ir],
|
|
3694
3696
|
93: Gn,
|
|
3695
3697
|
95: Rn,
|
|
3696
|
-
96:
|
|
3697
|
-
}, Ca = {
|
|
3698
|
-
null: [Rn, pa]
|
|
3699
|
-
}, Ea = {
|
|
3700
|
-
null: [42, 95]
|
|
3698
|
+
96: ho
|
|
3701
3699
|
}, Ia = {
|
|
3700
|
+
null: [Rn, ga]
|
|
3701
|
+
}, Aa = {
|
|
3702
|
+
null: [42, 95]
|
|
3703
|
+
}, Ta = {
|
|
3702
3704
|
null: []
|
|
3703
|
-
},
|
|
3705
|
+
}, Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3704
3706
|
__proto__: null,
|
|
3705
|
-
attentionMarkers:
|
|
3706
|
-
contentInitial:
|
|
3707
|
-
disable:
|
|
3708
|
-
document:
|
|
3709
|
-
flow:
|
|
3710
|
-
flowInitial:
|
|
3711
|
-
insideSpan:
|
|
3712
|
-
string:
|
|
3713
|
-
text:
|
|
3707
|
+
attentionMarkers: Aa,
|
|
3708
|
+
contentInitial: ba,
|
|
3709
|
+
disable: Ta,
|
|
3710
|
+
document: xa,
|
|
3711
|
+
flow: Sa,
|
|
3712
|
+
flowInitial: wa,
|
|
3713
|
+
insideSpan: Ia,
|
|
3714
|
+
string: Ca,
|
|
3715
|
+
text: Ea
|
|
3714
3716
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3715
|
-
function
|
|
3717
|
+
function va(e, t, n) {
|
|
3716
3718
|
let r = {
|
|
3717
3719
|
_bufferIndex: -1,
|
|
3718
3720
|
_index: 0,
|
|
@@ -3746,13 +3748,13 @@ function Ta(e, t, n) {
|
|
|
3746
3748
|
let f = t.tokenize.call(s, u);
|
|
3747
3749
|
return t.resolveAll && o.push(t), s;
|
|
3748
3750
|
function c(T) {
|
|
3749
|
-
return l = ie(l, T), C(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events =
|
|
3751
|
+
return l = ie(l, T), C(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events = cn(o, s.events, s), s.events);
|
|
3750
3752
|
}
|
|
3751
3753
|
function p(T, P) {
|
|
3752
|
-
return
|
|
3754
|
+
return Da(h(T), P);
|
|
3753
3755
|
}
|
|
3754
3756
|
function h(T) {
|
|
3755
|
-
return
|
|
3757
|
+
return za(l, T);
|
|
3756
3758
|
}
|
|
3757
3759
|
function d() {
|
|
3758
3760
|
const {
|
|
@@ -3875,7 +3877,7 @@ function Ta(e, t, n) {
|
|
|
3875
3877
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
3876
3878
|
}
|
|
3877
3879
|
}
|
|
3878
|
-
function
|
|
3880
|
+
function za(e, t) {
|
|
3879
3881
|
const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
|
|
3880
3882
|
let l;
|
|
3881
3883
|
if (n === i)
|
|
@@ -3889,7 +3891,7 @@ function Pa(e, t) {
|
|
|
3889
3891
|
}
|
|
3890
3892
|
return l;
|
|
3891
3893
|
}
|
|
3892
|
-
function
|
|
3894
|
+
function Da(e, t) {
|
|
3893
3895
|
let n = -1;
|
|
3894
3896
|
const r = [];
|
|
3895
3897
|
let i;
|
|
@@ -3929,35 +3931,35 @@ function va(e, t) {
|
|
|
3929
3931
|
}
|
|
3930
3932
|
return r.join("");
|
|
3931
3933
|
}
|
|
3932
|
-
function
|
|
3934
|
+
function La(e) {
|
|
3933
3935
|
const r = {
|
|
3934
3936
|
constructs: (
|
|
3935
3937
|
/** @type {FullNormalizedExtension} */
|
|
3936
|
-
Sr([
|
|
3938
|
+
Sr([Pa, ...(e || {}).extensions || []])
|
|
3937
3939
|
),
|
|
3938
|
-
content: i(
|
|
3940
|
+
content: i(Wl),
|
|
3939
3941
|
defined: [],
|
|
3940
|
-
document: i(
|
|
3941
|
-
flow: i(
|
|
3942
|
+
document: i(Xl),
|
|
3943
|
+
flow: i(pa),
|
|
3942
3944
|
lazy: {},
|
|
3943
|
-
string: i(
|
|
3944
|
-
text: i(
|
|
3945
|
+
string: i(da),
|
|
3946
|
+
text: i(ya)
|
|
3945
3947
|
};
|
|
3946
3948
|
return r;
|
|
3947
3949
|
function i(o) {
|
|
3948
3950
|
return l;
|
|
3949
3951
|
function l(a) {
|
|
3950
|
-
return
|
|
3952
|
+
return va(r, o, a);
|
|
3951
3953
|
}
|
|
3952
3954
|
}
|
|
3953
3955
|
}
|
|
3954
|
-
function
|
|
3956
|
+
function Fa(e) {
|
|
3955
3957
|
for (; !Tr(e); )
|
|
3956
3958
|
;
|
|
3957
3959
|
return e;
|
|
3958
3960
|
}
|
|
3959
3961
|
const Dt = /[\0\t\n\r]/g;
|
|
3960
|
-
function
|
|
3962
|
+
function _a() {
|
|
3961
3963
|
let e = 1, t = "", n = !0, r;
|
|
3962
3964
|
return i;
|
|
3963
3965
|
function i(o, l, a) {
|
|
@@ -3992,11 +3994,11 @@ function La() {
|
|
|
3992
3994
|
return a && (r && u.push(-5), t && u.push(t), u.push(null)), u;
|
|
3993
3995
|
}
|
|
3994
3996
|
}
|
|
3995
|
-
const
|
|
3996
|
-
function
|
|
3997
|
-
return e.replace(
|
|
3997
|
+
const Ra = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
3998
|
+
function Oa(e) {
|
|
3999
|
+
return e.replace(Ra, Ma);
|
|
3998
4000
|
}
|
|
3999
|
-
function
|
|
4001
|
+
function Ma(e, t, n) {
|
|
4000
4002
|
if (t)
|
|
4001
4003
|
return t;
|
|
4002
4004
|
if (n.charCodeAt(0) === 35) {
|
|
@@ -4006,10 +4008,10 @@ function Ra(e, t, n) {
|
|
|
4006
4008
|
return Qn(n) || e;
|
|
4007
4009
|
}
|
|
4008
4010
|
const Fr = {}.hasOwnProperty;
|
|
4009
|
-
function
|
|
4010
|
-
return typeof t != "string" && (n = t, t = void 0),
|
|
4011
|
+
function Na(e, t, n) {
|
|
4012
|
+
return typeof t != "string" && (n = t, t = void 0), Ba(n)(Fa(La(n).document().write(_a()(e, t, !0))));
|
|
4011
4013
|
}
|
|
4012
|
-
function
|
|
4014
|
+
function Ba(e) {
|
|
4013
4015
|
const t = {
|
|
4014
4016
|
transforms: [],
|
|
4015
4017
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -4362,7 +4364,7 @@ function Ma(e) {
|
|
|
4362
4364
|
}
|
|
4363
4365
|
function le(b) {
|
|
4364
4366
|
const I = this.sliceSerialize(b), z = this.stack[this.stack.length - 2];
|
|
4365
|
-
z.label =
|
|
4367
|
+
z.label = Oa(I), z.identifier = se(I).toLowerCase();
|
|
4366
4368
|
}
|
|
4367
4369
|
function he() {
|
|
4368
4370
|
const b = this.stack[this.stack.length - 1], I = this.resume(), z = this.stack[this.stack.length - 1];
|
|
@@ -4536,10 +4538,10 @@ function _r(e, t) {
|
|
|
4536
4538
|
let n = -1;
|
|
4537
4539
|
for (; ++n < t.length; ) {
|
|
4538
4540
|
const r = t[n];
|
|
4539
|
-
Array.isArray(r) ? _r(e, r) :
|
|
4541
|
+
Array.isArray(r) ? _r(e, r) : ja(e, r);
|
|
4540
4542
|
}
|
|
4541
4543
|
}
|
|
4542
|
-
function
|
|
4544
|
+
function ja(e, t) {
|
|
4543
4545
|
let n;
|
|
4544
4546
|
for (n in t)
|
|
4545
4547
|
if (Fr.call(t, n))
|
|
@@ -4574,11 +4576,11 @@ function Lt(e, t) {
|
|
|
4574
4576
|
end: t.end
|
|
4575
4577
|
}) + ") is still open");
|
|
4576
4578
|
}
|
|
4577
|
-
function
|
|
4579
|
+
function Ha(e) {
|
|
4578
4580
|
const t = this;
|
|
4579
4581
|
t.parser = n;
|
|
4580
4582
|
function n(r) {
|
|
4581
|
-
return
|
|
4583
|
+
return Na(r, {
|
|
4582
4584
|
...t.data("settings"),
|
|
4583
4585
|
...e,
|
|
4584
4586
|
// Note: these options are not in the readme.
|
|
@@ -4589,7 +4591,7 @@ function Ba(e) {
|
|
|
4589
4591
|
});
|
|
4590
4592
|
}
|
|
4591
4593
|
}
|
|
4592
|
-
function
|
|
4594
|
+
function Ua(e, t) {
|
|
4593
4595
|
const n = {
|
|
4594
4596
|
type: "element",
|
|
4595
4597
|
tagName: "blockquote",
|
|
@@ -4598,12 +4600,12 @@ function ja(e, t) {
|
|
|
4598
4600
|
};
|
|
4599
4601
|
return e.patch(t, n), e.applyData(t, n);
|
|
4600
4602
|
}
|
|
4601
|
-
function
|
|
4603
|
+
function Va(e, t) {
|
|
4602
4604
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4603
4605
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
4604
4606
|
` }];
|
|
4605
4607
|
}
|
|
4606
|
-
function
|
|
4608
|
+
function $a(e, t) {
|
|
4607
4609
|
const n = t.value ? t.value + `
|
|
4608
4610
|
` : "", r = {}, i = t.lang ? t.lang.split(/\s+/) : [];
|
|
4609
4611
|
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
@@ -4615,7 +4617,7 @@ function Ua(e, t) {
|
|
|
4615
4617
|
};
|
|
4616
4618
|
return t.meta && (o.data = { meta: t.meta }), e.patch(t, o), o = e.applyData(t, o), o = { type: "element", tagName: "pre", properties: {}, children: [o] }, e.patch(t, o), o;
|
|
4617
4619
|
}
|
|
4618
|
-
function
|
|
4620
|
+
function qa(e, t) {
|
|
4619
4621
|
const n = {
|
|
4620
4622
|
type: "element",
|
|
4621
4623
|
tagName: "del",
|
|
@@ -4624,7 +4626,7 @@ function Va(e, t) {
|
|
|
4624
4626
|
};
|
|
4625
4627
|
return e.patch(t, n), e.applyData(t, n);
|
|
4626
4628
|
}
|
|
4627
|
-
function
|
|
4629
|
+
function Wa(e, t) {
|
|
4628
4630
|
const n = {
|
|
4629
4631
|
type: "element",
|
|
4630
4632
|
tagName: "em",
|
|
@@ -4633,7 +4635,7 @@ function $a(e, t) {
|
|
|
4633
4635
|
};
|
|
4634
4636
|
return e.patch(t, n), e.applyData(t, n);
|
|
4635
4637
|
}
|
|
4636
|
-
function
|
|
4638
|
+
function Ya(e, t) {
|
|
4637
4639
|
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = _e(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
4638
4640
|
let l, a = e.footnoteCounts.get(r);
|
|
4639
4641
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -4657,7 +4659,7 @@ function qa(e, t) {
|
|
|
4657
4659
|
};
|
|
4658
4660
|
return e.patch(t, s), e.applyData(t, s);
|
|
4659
4661
|
}
|
|
4660
|
-
function
|
|
4662
|
+
function Xa(e, t) {
|
|
4661
4663
|
const n = {
|
|
4662
4664
|
type: "element",
|
|
4663
4665
|
tagName: "h" + t.depth,
|
|
@@ -4666,7 +4668,7 @@ function Wa(e, t) {
|
|
|
4666
4668
|
};
|
|
4667
4669
|
return e.patch(t, n), e.applyData(t, n);
|
|
4668
4670
|
}
|
|
4669
|
-
function
|
|
4671
|
+
function Qa(e, t) {
|
|
4670
4672
|
if (e.options.allowDangerousHtml) {
|
|
4671
4673
|
const n = { type: "raw", value: t.value };
|
|
4672
4674
|
return e.patch(t, n), e.applyData(t, n);
|
|
@@ -4682,7 +4684,7 @@ function Rr(e, t) {
|
|
|
4682
4684
|
const l = i[i.length - 1];
|
|
4683
4685
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
|
4684
4686
|
}
|
|
4685
|
-
function
|
|
4687
|
+
function Ga(e, t) {
|
|
4686
4688
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4687
4689
|
if (!r)
|
|
4688
4690
|
return Rr(e, t);
|
|
@@ -4691,13 +4693,13 @@ function Xa(e, t) {
|
|
|
4691
4693
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
4692
4694
|
return e.patch(t, o), e.applyData(t, o);
|
|
4693
4695
|
}
|
|
4694
|
-
function
|
|
4696
|
+
function Ka(e, t) {
|
|
4695
4697
|
const n = { src: _e(t.url) };
|
|
4696
4698
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4697
4699
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
4698
4700
|
return e.patch(t, r), e.applyData(t, r);
|
|
4699
4701
|
}
|
|
4700
|
-
function
|
|
4702
|
+
function Ja(e, t) {
|
|
4701
4703
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
|
4702
4704
|
e.patch(t, n);
|
|
4703
4705
|
const r = {
|
|
@@ -4708,7 +4710,7 @@ function Ga(e, t) {
|
|
|
4708
4710
|
};
|
|
4709
4711
|
return e.patch(t, r), e.applyData(t, r);
|
|
4710
4712
|
}
|
|
4711
|
-
function
|
|
4713
|
+
function Za(e, t) {
|
|
4712
4714
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4713
4715
|
if (!r)
|
|
4714
4716
|
return Rr(e, t);
|
|
@@ -4722,7 +4724,7 @@ function Ka(e, t) {
|
|
|
4722
4724
|
};
|
|
4723
4725
|
return e.patch(t, o), e.applyData(t, o);
|
|
4724
4726
|
}
|
|
4725
|
-
function
|
|
4727
|
+
function eu(e, t) {
|
|
4726
4728
|
const n = { href: _e(t.url) };
|
|
4727
4729
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4728
4730
|
const r = {
|
|
@@ -4733,8 +4735,8 @@ function Ja(e, t) {
|
|
|
4733
4735
|
};
|
|
4734
4736
|
return e.patch(t, r), e.applyData(t, r);
|
|
4735
4737
|
}
|
|
4736
|
-
function
|
|
4737
|
-
const r = e.all(t), i = n ?
|
|
4738
|
+
function nu(e, t, n) {
|
|
4739
|
+
const r = e.all(t), i = n ? tu(n) : Or(t), o = {}, l = [];
|
|
4738
4740
|
if (typeof t.checked == "boolean") {
|
|
4739
4741
|
const f = r[0];
|
|
4740
4742
|
let c;
|
|
@@ -4757,7 +4759,7 @@ function Za(e, t, n) {
|
|
|
4757
4759
|
const s = { type: "element", tagName: "li", properties: o, children: l };
|
|
4758
4760
|
return e.patch(t, s), e.applyData(t, s);
|
|
4759
4761
|
}
|
|
4760
|
-
function
|
|
4762
|
+
function tu(e) {
|
|
4761
4763
|
let t = !1;
|
|
4762
4764
|
if (e.type === "list") {
|
|
4763
4765
|
t = e.spread || !1;
|
|
@@ -4772,7 +4774,7 @@ function Or(e) {
|
|
|
4772
4774
|
const t = e.spread;
|
|
4773
4775
|
return t ?? e.children.length > 1;
|
|
4774
4776
|
}
|
|
4775
|
-
function
|
|
4777
|
+
function ru(e, t) {
|
|
4776
4778
|
const n = {}, r = e.all(t);
|
|
4777
4779
|
let i = -1;
|
|
4778
4780
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
|
@@ -4790,7 +4792,7 @@ function nu(e, t) {
|
|
|
4790
4792
|
};
|
|
4791
4793
|
return e.patch(t, o), e.applyData(t, o);
|
|
4792
4794
|
}
|
|
4793
|
-
function
|
|
4795
|
+
function iu(e, t) {
|
|
4794
4796
|
const n = {
|
|
4795
4797
|
type: "element",
|
|
4796
4798
|
tagName: "p",
|
|
@@ -4799,11 +4801,11 @@ function tu(e, t) {
|
|
|
4799
4801
|
};
|
|
4800
4802
|
return e.patch(t, n), e.applyData(t, n);
|
|
4801
4803
|
}
|
|
4802
|
-
function
|
|
4804
|
+
function lu(e, t) {
|
|
4803
4805
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
|
4804
4806
|
return e.patch(t, n), e.applyData(t, n);
|
|
4805
4807
|
}
|
|
4806
|
-
function
|
|
4808
|
+
function ou(e, t) {
|
|
4807
4809
|
const n = {
|
|
4808
4810
|
type: "element",
|
|
4809
4811
|
tagName: "strong",
|
|
@@ -4812,7 +4814,7 @@ function iu(e, t) {
|
|
|
4812
4814
|
};
|
|
4813
4815
|
return e.patch(t, n), e.applyData(t, n);
|
|
4814
4816
|
}
|
|
4815
|
-
function
|
|
4817
|
+
function au(e, t) {
|
|
4816
4818
|
const n = e.all(t), r = n.shift(), i = [];
|
|
4817
4819
|
if (r) {
|
|
4818
4820
|
const l = {
|
|
@@ -4840,7 +4842,7 @@ function lu(e, t) {
|
|
|
4840
4842
|
};
|
|
4841
4843
|
return e.patch(t, o), e.applyData(t, o);
|
|
4842
4844
|
}
|
|
4843
|
-
function
|
|
4845
|
+
function uu(e, t, n) {
|
|
4844
4846
|
const r = n ? n.children : void 0, o = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", l = n && n.type === "table" ? n.align : void 0, a = l ? l.length : t.children.length;
|
|
4845
4847
|
let u = -1;
|
|
4846
4848
|
const s = [];
|
|
@@ -4858,7 +4860,7 @@ function ou(e, t, n) {
|
|
|
4858
4860
|
};
|
|
4859
4861
|
return e.patch(t, f), e.applyData(t, f);
|
|
4860
4862
|
}
|
|
4861
|
-
function
|
|
4863
|
+
function su(e, t) {
|
|
4862
4864
|
const n = {
|
|
4863
4865
|
type: "element",
|
|
4864
4866
|
tagName: "td",
|
|
@@ -4869,7 +4871,7 @@ function au(e, t) {
|
|
|
4869
4871
|
return e.patch(t, n), e.applyData(t, n);
|
|
4870
4872
|
}
|
|
4871
4873
|
const Ft = 9, _t = 32;
|
|
4872
|
-
function
|
|
4874
|
+
function cu(e) {
|
|
4873
4875
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4874
4876
|
let r = n.exec(t), i = 0;
|
|
4875
4877
|
const o = [];
|
|
@@ -4894,11 +4896,11 @@ function Rt(e, t, n) {
|
|
|
4894
4896
|
}
|
|
4895
4897
|
return i > r ? e.slice(r, i) : "";
|
|
4896
4898
|
}
|
|
4897
|
-
function
|
|
4898
|
-
const n = { type: "text", value:
|
|
4899
|
+
function fu(e, t) {
|
|
4900
|
+
const n = { type: "text", value: cu(String(t.value)) };
|
|
4899
4901
|
return e.patch(t, n), e.applyData(t, n);
|
|
4900
4902
|
}
|
|
4901
|
-
function
|
|
4903
|
+
function hu(e, t) {
|
|
4902
4904
|
const n = {
|
|
4903
4905
|
type: "element",
|
|
4904
4906
|
tagName: "hr",
|
|
@@ -4907,31 +4909,31 @@ function cu(e, t) {
|
|
|
4907
4909
|
};
|
|
4908
4910
|
return e.patch(t, n), e.applyData(t, n);
|
|
4909
4911
|
}
|
|
4910
|
-
const
|
|
4911
|
-
blockquote:
|
|
4912
|
-
break:
|
|
4913
|
-
code:
|
|
4914
|
-
delete:
|
|
4915
|
-
emphasis:
|
|
4916
|
-
footnoteReference:
|
|
4917
|
-
heading:
|
|
4918
|
-
html:
|
|
4919
|
-
imageReference:
|
|
4920
|
-
image:
|
|
4921
|
-
inlineCode:
|
|
4922
|
-
linkReference:
|
|
4923
|
-
link:
|
|
4924
|
-
listItem:
|
|
4925
|
-
list:
|
|
4926
|
-
paragraph:
|
|
4912
|
+
const pu = {
|
|
4913
|
+
blockquote: Ua,
|
|
4914
|
+
break: Va,
|
|
4915
|
+
code: $a,
|
|
4916
|
+
delete: qa,
|
|
4917
|
+
emphasis: Wa,
|
|
4918
|
+
footnoteReference: Ya,
|
|
4919
|
+
heading: Xa,
|
|
4920
|
+
html: Qa,
|
|
4921
|
+
imageReference: Ga,
|
|
4922
|
+
image: Ka,
|
|
4923
|
+
inlineCode: Ja,
|
|
4924
|
+
linkReference: Za,
|
|
4925
|
+
link: eu,
|
|
4926
|
+
listItem: nu,
|
|
4927
|
+
list: ru,
|
|
4928
|
+
paragraph: iu,
|
|
4927
4929
|
// @ts-expect-error: root is different, but hard to type.
|
|
4928
|
-
root:
|
|
4929
|
-
strong:
|
|
4930
|
-
table:
|
|
4931
|
-
tableCell:
|
|
4932
|
-
tableRow:
|
|
4933
|
-
text:
|
|
4934
|
-
thematicBreak:
|
|
4930
|
+
root: lu,
|
|
4931
|
+
strong: ou,
|
|
4932
|
+
table: au,
|
|
4933
|
+
tableCell: su,
|
|
4934
|
+
tableRow: uu,
|
|
4935
|
+
text: fu,
|
|
4936
|
+
thematicBreak: hu,
|
|
4935
4937
|
toml: Qe,
|
|
4936
4938
|
yaml: Qe,
|
|
4937
4939
|
definition: Qe,
|
|
@@ -4939,13 +4941,13 @@ const fu = {
|
|
|
4939
4941
|
};
|
|
4940
4942
|
function Qe() {
|
|
4941
4943
|
}
|
|
4942
|
-
const Mr = -1,
|
|
4944
|
+
const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, Br = 8, Ot = typeof self == "object" ? self : globalThis, mu = (e, t) => {
|
|
4943
4945
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4944
4946
|
if (e.has(i))
|
|
4945
4947
|
return e.get(i);
|
|
4946
4948
|
const [o, l] = t[i];
|
|
4947
4949
|
switch (o) {
|
|
4948
|
-
case
|
|
4950
|
+
case fn:
|
|
4949
4951
|
case Mr:
|
|
4950
4952
|
return n(l, i);
|
|
4951
4953
|
case Ue: {
|
|
@@ -4954,7 +4956,7 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
4954
4956
|
a.push(r(u));
|
|
4955
4957
|
return a;
|
|
4956
4958
|
}
|
|
4957
|
-
case
|
|
4959
|
+
case ln: {
|
|
4958
4960
|
const a = n({}, i);
|
|
4959
4961
|
for (const [u, s] of l)
|
|
4960
4962
|
a[r(u)] = r(s);
|
|
@@ -4996,16 +4998,16 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
4996
4998
|
return n(new Ot[o](l), i);
|
|
4997
4999
|
};
|
|
4998
5000
|
return r;
|
|
4999
|
-
}, Mt = (e) =>
|
|
5001
|
+
}, Mt = (e) => mu(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: gu } = {}, { keys: du } = Object, Be = (e) => {
|
|
5000
5002
|
const t = typeof e;
|
|
5001
5003
|
if (t !== "object" || !e)
|
|
5002
|
-
return [
|
|
5003
|
-
const n =
|
|
5004
|
+
return [fn, t];
|
|
5005
|
+
const n = gu.call(e).slice(8, -1);
|
|
5004
5006
|
switch (n) {
|
|
5005
5007
|
case "Array":
|
|
5006
5008
|
return [Ue, ve];
|
|
5007
5009
|
case "Object":
|
|
5008
|
-
return [
|
|
5010
|
+
return [ln, ve];
|
|
5009
5011
|
case "Date":
|
|
5010
5012
|
return [Kn, ve];
|
|
5011
5013
|
case "RegExp":
|
|
@@ -5017,8 +5019,8 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5017
5019
|
case "DataView":
|
|
5018
5020
|
return [Ue, n];
|
|
5019
5021
|
}
|
|
5020
|
-
return n.includes("Array") ? [Ue, n] : n.includes("Error") ? [Nr, n] : [
|
|
5021
|
-
}, Ge = ([e, t]) => e ===
|
|
5022
|
+
return n.includes("Array") ? [Ue, n] : n.includes("Error") ? [Nr, n] : [ln, n];
|
|
5023
|
+
}, Ge = ([e, t]) => e === fn && (t === "function" || t === "symbol"), yu = (e, t, n, r) => {
|
|
5022
5024
|
const i = (l, a) => {
|
|
5023
5025
|
const u = r.push(l) - 1;
|
|
5024
5026
|
return n.set(a, u), u;
|
|
@@ -5027,7 +5029,7 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5027
5029
|
return n.get(l);
|
|
5028
5030
|
let [a, u] = Be(l);
|
|
5029
5031
|
switch (a) {
|
|
5030
|
-
case
|
|
5032
|
+
case fn: {
|
|
5031
5033
|
let f = l;
|
|
5032
5034
|
switch (u) {
|
|
5033
5035
|
case "bigint":
|
|
@@ -5054,7 +5056,7 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5054
5056
|
f.push(o(p));
|
|
5055
5057
|
return c;
|
|
5056
5058
|
}
|
|
5057
|
-
case
|
|
5059
|
+
case ln: {
|
|
5058
5060
|
if (u)
|
|
5059
5061
|
switch (u) {
|
|
5060
5062
|
case "BigInt":
|
|
@@ -5067,7 +5069,7 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5067
5069
|
if (t && "toJSON" in l)
|
|
5068
5070
|
return o(l.toJSON());
|
|
5069
5071
|
const f = [], c = i([a, f], l);
|
|
5070
|
-
for (const p of
|
|
5072
|
+
for (const p of du(l))
|
|
5071
5073
|
(e || !Ge(Be(l[p]))) && f.push([o(p), o(l[p])]);
|
|
5072
5074
|
return c;
|
|
5073
5075
|
}
|
|
@@ -5096,12 +5098,12 @@ const Mr = -1, cn = 0, Ue = 1, rn = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5096
5098
|
return o;
|
|
5097
5099
|
}, Nt = (e, { json: t, lossy: n } = {}) => {
|
|
5098
5100
|
const r = [];
|
|
5099
|
-
return
|
|
5100
|
-
},
|
|
5101
|
+
return yu(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5102
|
+
}, on = typeof structuredClone == "function" ? (
|
|
5101
5103
|
/* c8 ignore start */
|
|
5102
5104
|
(e, t) => t && ("json" in t || "lossy" in t) ? Mt(Nt(e, t)) : structuredClone(e)
|
|
5103
5105
|
) : (e, t) => Mt(Nt(e, t));
|
|
5104
|
-
function
|
|
5106
|
+
function ku(e, t) {
|
|
5105
5107
|
const n = [{ type: "text", value: "↩" }];
|
|
5106
5108
|
return t > 1 && n.push({
|
|
5107
5109
|
type: "element",
|
|
@@ -5110,11 +5112,11 @@ function du(e, t) {
|
|
|
5110
5112
|
children: [{ type: "text", value: String(t) }]
|
|
5111
5113
|
}), n;
|
|
5112
5114
|
}
|
|
5113
|
-
function
|
|
5115
|
+
function xu(e, t) {
|
|
5114
5116
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
5115
5117
|
}
|
|
5116
|
-
function
|
|
5117
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
5118
|
+
function bu(e) {
|
|
5119
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || ku, r = e.options.footnoteBackLabel || xu, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
|
|
5118
5120
|
className: ["sr-only"]
|
|
5119
5121
|
}, a = [];
|
|
5120
5122
|
let u = -1;
|
|
@@ -5166,7 +5168,7 @@ function ku(e) {
|
|
|
5166
5168
|
type: "element",
|
|
5167
5169
|
tagName: o,
|
|
5168
5170
|
properties: {
|
|
5169
|
-
...
|
|
5171
|
+
...on(l),
|
|
5170
5172
|
id: "footnote-label"
|
|
5171
5173
|
},
|
|
5172
5174
|
children: [{ type: "text", value: i }]
|
|
@@ -5184,7 +5186,7 @@ function ku(e) {
|
|
|
5184
5186
|
]
|
|
5185
5187
|
};
|
|
5186
5188
|
}
|
|
5187
|
-
const
|
|
5189
|
+
const hn = (
|
|
5188
5190
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
5189
5191
|
/**
|
|
5190
5192
|
* @type {(
|
|
@@ -5201,29 +5203,29 @@ const fn = (
|
|
|
5201
5203
|
*/
|
|
5202
5204
|
function(e) {
|
|
5203
5205
|
if (e == null)
|
|
5204
|
-
return
|
|
5206
|
+
return Eu;
|
|
5205
5207
|
if (typeof e == "function")
|
|
5206
|
-
return
|
|
5208
|
+
return pn(e);
|
|
5207
5209
|
if (typeof e == "object")
|
|
5208
|
-
return Array.isArray(e) ?
|
|
5210
|
+
return Array.isArray(e) ? wu(e) : (
|
|
5209
5211
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
5210
5212
|
// narrows to `Array`.
|
|
5211
|
-
|
|
5213
|
+
Su(
|
|
5212
5214
|
/** @type {Props} */
|
|
5213
5215
|
e
|
|
5214
5216
|
)
|
|
5215
5217
|
);
|
|
5216
5218
|
if (typeof e == "string")
|
|
5217
|
-
return
|
|
5219
|
+
return Cu(e);
|
|
5218
5220
|
throw new Error("Expected function, string, or object as test");
|
|
5219
5221
|
}
|
|
5220
5222
|
);
|
|
5221
|
-
function
|
|
5223
|
+
function wu(e) {
|
|
5222
5224
|
const t = [];
|
|
5223
5225
|
let n = -1;
|
|
5224
5226
|
for (; ++n < e.length; )
|
|
5225
|
-
t[n] =
|
|
5226
|
-
return
|
|
5227
|
+
t[n] = hn(e[n]);
|
|
5228
|
+
return pn(r);
|
|
5227
5229
|
function r(...i) {
|
|
5228
5230
|
let o = -1;
|
|
5229
5231
|
for (; ++o < t.length; )
|
|
@@ -5231,12 +5233,12 @@ function xu(e) {
|
|
|
5231
5233
|
return !1;
|
|
5232
5234
|
}
|
|
5233
5235
|
}
|
|
5234
|
-
function
|
|
5236
|
+
function Su(e) {
|
|
5235
5237
|
const t = (
|
|
5236
5238
|
/** @type {Record<string, unknown>} */
|
|
5237
5239
|
e
|
|
5238
5240
|
);
|
|
5239
|
-
return
|
|
5241
|
+
return pn(n);
|
|
5240
5242
|
function n(r) {
|
|
5241
5243
|
const i = (
|
|
5242
5244
|
/** @type {Record<string, unknown>} */
|
|
@@ -5249,16 +5251,16 @@ function bu(e) {
|
|
|
5249
5251
|
return !0;
|
|
5250
5252
|
}
|
|
5251
5253
|
}
|
|
5252
|
-
function
|
|
5253
|
-
return
|
|
5254
|
+
function Cu(e) {
|
|
5255
|
+
return pn(t);
|
|
5254
5256
|
function t(n) {
|
|
5255
5257
|
return n && n.type === e;
|
|
5256
5258
|
}
|
|
5257
5259
|
}
|
|
5258
|
-
function
|
|
5260
|
+
function pn(e) {
|
|
5259
5261
|
return t;
|
|
5260
5262
|
function t(n, r, i) {
|
|
5261
|
-
return !!(
|
|
5263
|
+
return !!(Iu(n) && e.call(
|
|
5262
5264
|
this,
|
|
5263
5265
|
n,
|
|
5264
5266
|
typeof r == "number" ? r : void 0,
|
|
@@ -5266,17 +5268,17 @@ function hn(e) {
|
|
|
5266
5268
|
));
|
|
5267
5269
|
}
|
|
5268
5270
|
}
|
|
5269
|
-
function
|
|
5271
|
+
function Eu() {
|
|
5270
5272
|
return !0;
|
|
5271
5273
|
}
|
|
5272
|
-
function
|
|
5274
|
+
function Iu(e) {
|
|
5273
5275
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5274
5276
|
}
|
|
5275
|
-
const jr = [],
|
|
5277
|
+
const jr = [], Au = !0, On = !1, Tu = "skip";
|
|
5276
5278
|
function Hr(e, t, n, r) {
|
|
5277
5279
|
let i;
|
|
5278
5280
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
5279
|
-
const o =
|
|
5281
|
+
const o = hn(i), l = r ? -1 : 1;
|
|
5280
5282
|
a(e, void 0, [])();
|
|
5281
5283
|
function a(u, s, f) {
|
|
5282
5284
|
const c = (
|
|
@@ -5298,14 +5300,14 @@ function Hr(e, t, n, r) {
|
|
|
5298
5300
|
return p;
|
|
5299
5301
|
function p() {
|
|
5300
5302
|
let h = jr, d, x, C;
|
|
5301
|
-
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h =
|
|
5303
|
+
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = Pu(n(u, f)), h[0] === On))
|
|
5302
5304
|
return h;
|
|
5303
5305
|
if ("children" in u && u.children) {
|
|
5304
5306
|
const y = (
|
|
5305
5307
|
/** @type {UnistParent} */
|
|
5306
5308
|
u
|
|
5307
5309
|
);
|
|
5308
|
-
if (y.children && h[0] !==
|
|
5310
|
+
if (y.children && h[0] !== Tu)
|
|
5309
5311
|
for (x = (r ? y.children.length : -1) + l, C = f.concat(y); x > -1 && x < y.children.length; ) {
|
|
5310
5312
|
const A = y.children[x];
|
|
5311
5313
|
if (d = a(A, x, C)(), d[0] === On)
|
|
@@ -5317,8 +5319,8 @@ function Hr(e, t, n, r) {
|
|
|
5317
5319
|
}
|
|
5318
5320
|
}
|
|
5319
5321
|
}
|
|
5320
|
-
function
|
|
5321
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
5322
|
+
function Pu(e) {
|
|
5323
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [Au, e] : e == null ? jr : [e];
|
|
5322
5324
|
}
|
|
5323
5325
|
function nt(e, t, n, r) {
|
|
5324
5326
|
let i, o, l;
|
|
@@ -5328,11 +5330,11 @@ function nt(e, t, n, r) {
|
|
|
5328
5330
|
return l(u, c, f);
|
|
5329
5331
|
}
|
|
5330
5332
|
}
|
|
5331
|
-
const Mn = {}.hasOwnProperty,
|
|
5332
|
-
function
|
|
5333
|
-
const n = t ||
|
|
5333
|
+
const Mn = {}.hasOwnProperty, vu = {};
|
|
5334
|
+
function zu(e, t) {
|
|
5335
|
+
const n = t || vu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...pu, ...n.handlers }, a = {
|
|
5334
5336
|
all: s,
|
|
5335
|
-
applyData:
|
|
5337
|
+
applyData: Lu,
|
|
5336
5338
|
definitionById: r,
|
|
5337
5339
|
footnoteById: i,
|
|
5338
5340
|
footnoteCounts: o,
|
|
@@ -5340,8 +5342,8 @@ function Pu(e, t) {
|
|
|
5340
5342
|
handlers: l,
|
|
5341
5343
|
one: u,
|
|
5342
5344
|
options: n,
|
|
5343
|
-
patch:
|
|
5344
|
-
wrap:
|
|
5345
|
+
patch: Du,
|
|
5346
|
+
wrap: _u
|
|
5345
5347
|
};
|
|
5346
5348
|
return nt(e, function(f) {
|
|
5347
5349
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
@@ -5355,12 +5357,12 @@ function Pu(e, t) {
|
|
|
5355
5357
|
return h(a, f, c);
|
|
5356
5358
|
if (a.options.passThrough && a.options.passThrough.includes(p)) {
|
|
5357
5359
|
if ("children" in f) {
|
|
5358
|
-
const { children: x, ...C } = f, y =
|
|
5360
|
+
const { children: x, ...C } = f, y = on(C);
|
|
5359
5361
|
return y.children = a.all(f), y;
|
|
5360
5362
|
}
|
|
5361
|
-
return
|
|
5363
|
+
return on(f);
|
|
5362
5364
|
}
|
|
5363
|
-
return (a.options.unknownHandler ||
|
|
5365
|
+
return (a.options.unknownHandler || Fu)(a, f, c);
|
|
5364
5366
|
}
|
|
5365
5367
|
function s(f) {
|
|
5366
5368
|
const c = [];
|
|
@@ -5381,10 +5383,10 @@ function Pu(e, t) {
|
|
|
5381
5383
|
return c;
|
|
5382
5384
|
}
|
|
5383
5385
|
}
|
|
5384
|
-
function
|
|
5385
|
-
e.position && (t.position =
|
|
5386
|
+
function Du(e, t) {
|
|
5387
|
+
e.position && (t.position = kl(e));
|
|
5386
5388
|
}
|
|
5387
|
-
function
|
|
5389
|
+
function Lu(e, t) {
|
|
5388
5390
|
let n = t;
|
|
5389
5391
|
if (e && e.data) {
|
|
5390
5392
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -5395,11 +5397,11 @@ function zu(e, t) {
|
|
|
5395
5397
|
const l = "children" in n ? n.children : [n];
|
|
5396
5398
|
n = { type: "element", tagName: r, properties: {}, children: l };
|
|
5397
5399
|
}
|
|
5398
|
-
n.type === "element" && o && Object.assign(n.properties,
|
|
5400
|
+
n.type === "element" && o && Object.assign(n.properties, on(o)), "children" in n && n.children && i !== null && i !== void 0 && (n.children = i);
|
|
5399
5401
|
}
|
|
5400
5402
|
return n;
|
|
5401
5403
|
}
|
|
5402
|
-
function
|
|
5404
|
+
function Fu(e, t) {
|
|
5403
5405
|
const n = t.data || {}, r = "value" in t && !(Mn.call(n, "hProperties") || Mn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5404
5406
|
type: "element",
|
|
5405
5407
|
tagName: "div",
|
|
@@ -5408,7 +5410,7 @@ function Du(e, t) {
|
|
|
5408
5410
|
};
|
|
5409
5411
|
return e.patch(t, r), e.applyData(t, r);
|
|
5410
5412
|
}
|
|
5411
|
-
function
|
|
5413
|
+
function _u(e, t) {
|
|
5412
5414
|
const n = [];
|
|
5413
5415
|
let r = -1;
|
|
5414
5416
|
for (t && n.push({ type: "text", value: `
|
|
@@ -5425,11 +5427,11 @@ function Bt(e) {
|
|
|
5425
5427
|
return e.slice(t);
|
|
5426
5428
|
}
|
|
5427
5429
|
function jt(e, t) {
|
|
5428
|
-
const n =
|
|
5430
|
+
const n = zu(e, t), r = n.one(e, void 0), i = bu(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5429
5431
|
return i && o.children.push({ type: "text", value: `
|
|
5430
5432
|
` }, i), o;
|
|
5431
5433
|
}
|
|
5432
|
-
function
|
|
5434
|
+
function Ru(e, t) {
|
|
5433
5435
|
return e && "run" in e ? async function(n, r) {
|
|
5434
5436
|
const i = (
|
|
5435
5437
|
/** @type {HastRoot} */
|
|
@@ -5473,7 +5475,7 @@ var en = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
|
|
|
5473
5475
|
return Vt(t, n).value;
|
|
5474
5476
|
} else return;
|
|
5475
5477
|
return t[n];
|
|
5476
|
-
},
|
|
5478
|
+
}, Ou = function e() {
|
|
5477
5479
|
var t, n, r, i, o, l, a = arguments[0], u = 1, s = arguments.length, f = !1;
|
|
5478
5480
|
for (typeof a == "boolean" && (f = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < s; ++u)
|
|
5479
5481
|
if (t = arguments[u], t != null)
|
|
@@ -5481,14 +5483,14 @@ var en = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
|
|
|
5481
5483
|
r = Yt(a, n), i = Yt(t, n), a !== i && (f && i && (qt(i) || (o = $t(i))) ? (o ? (o = !1, l = r && $t(r) ? r : []) : l = r && qt(r) ? r : {}, Wt(a, { name: n, newValue: e(f, l, i) })) : typeof i < "u" && Wt(a, { name: n, newValue: i }));
|
|
5482
5484
|
return a;
|
|
5483
5485
|
};
|
|
5484
|
-
const
|
|
5486
|
+
const kn = /* @__PURE__ */ ar(Ou);
|
|
5485
5487
|
function Nn(e) {
|
|
5486
5488
|
if (typeof e != "object" || e === null)
|
|
5487
5489
|
return !1;
|
|
5488
5490
|
const t = Object.getPrototypeOf(e);
|
|
5489
5491
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5490
5492
|
}
|
|
5491
|
-
function
|
|
5493
|
+
function Mu() {
|
|
5492
5494
|
const e = [], t = { run: n, use: r };
|
|
5493
5495
|
return t;
|
|
5494
5496
|
function n(...i) {
|
|
@@ -5506,7 +5508,7 @@ function Ru() {
|
|
|
5506
5508
|
}
|
|
5507
5509
|
for (; ++c < i.length; )
|
|
5508
5510
|
(s[c] === null || s[c] === void 0) && (s[c] = i[c]);
|
|
5509
|
-
i = s, f ?
|
|
5511
|
+
i = s, f ? Nu(f, a)(...s) : l(null, ...s);
|
|
5510
5512
|
}
|
|
5511
5513
|
}
|
|
5512
5514
|
function r(i) {
|
|
@@ -5517,7 +5519,7 @@ function Ru() {
|
|
|
5517
5519
|
return e.push(i), t;
|
|
5518
5520
|
}
|
|
5519
5521
|
}
|
|
5520
|
-
function
|
|
5522
|
+
function Nu(e, t) {
|
|
5521
5523
|
let n;
|
|
5522
5524
|
return r;
|
|
5523
5525
|
function r(...l) {
|
|
@@ -5544,8 +5546,8 @@ function Ou(e, t) {
|
|
|
5544
5546
|
i(null, l);
|
|
5545
5547
|
}
|
|
5546
5548
|
}
|
|
5547
|
-
const ce = { basename:
|
|
5548
|
-
function
|
|
5549
|
+
const ce = { basename: Bu, dirname: ju, extname: Hu, join: Uu, sep: "/" };
|
|
5550
|
+
function Bu(e, t) {
|
|
5549
5551
|
if (t !== void 0 && typeof t != "string")
|
|
5550
5552
|
throw new TypeError('"ext" argument must be a string');
|
|
5551
5553
|
Ye(e);
|
|
@@ -5573,7 +5575,7 @@ function Mu(e, t) {
|
|
|
5573
5575
|
l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
|
|
5574
5576
|
return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
|
|
5575
5577
|
}
|
|
5576
|
-
function
|
|
5578
|
+
function ju(e) {
|
|
5577
5579
|
if (Ye(e), e.length === 0)
|
|
5578
5580
|
return ".";
|
|
5579
5581
|
let t = -1, n = e.length, r;
|
|
@@ -5586,7 +5588,7 @@ function Nu(e) {
|
|
|
5586
5588
|
} else r || (r = !0);
|
|
5587
5589
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
5588
5590
|
}
|
|
5589
|
-
function
|
|
5591
|
+
function Hu(e) {
|
|
5590
5592
|
Ye(e);
|
|
5591
5593
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
|
|
5592
5594
|
for (; t--; ) {
|
|
@@ -5604,19 +5606,19 @@ function Bu(e) {
|
|
|
5604
5606
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5605
5607
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
5606
5608
|
}
|
|
5607
|
-
function
|
|
5609
|
+
function Uu(...e) {
|
|
5608
5610
|
let t = -1, n;
|
|
5609
5611
|
for (; ++t < e.length; )
|
|
5610
5612
|
Ye(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
5611
|
-
return n === void 0 ? "." :
|
|
5613
|
+
return n === void 0 ? "." : Vu(n);
|
|
5612
5614
|
}
|
|
5613
|
-
function
|
|
5615
|
+
function Vu(e) {
|
|
5614
5616
|
Ye(e);
|
|
5615
5617
|
const t = e.codePointAt(0) === 47;
|
|
5616
|
-
let n =
|
|
5618
|
+
let n = $u(e, !t);
|
|
5617
5619
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
5618
5620
|
}
|
|
5619
|
-
function
|
|
5621
|
+
function $u(e, t) {
|
|
5620
5622
|
let n = "", r = 0, i = -1, o = 0, l = -1, a, u;
|
|
5621
5623
|
for (; ++l <= e.length; ) {
|
|
5622
5624
|
if (l < e.length)
|
|
@@ -5653,15 +5655,15 @@ function Ye(e) {
|
|
|
5653
5655
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5654
5656
|
);
|
|
5655
5657
|
}
|
|
5656
|
-
const
|
|
5657
|
-
function
|
|
5658
|
+
const qu = { cwd: Wu };
|
|
5659
|
+
function Wu() {
|
|
5658
5660
|
return "/";
|
|
5659
5661
|
}
|
|
5660
5662
|
function Bn(e) {
|
|
5661
5663
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5662
5664
|
e.auth === void 0);
|
|
5663
5665
|
}
|
|
5664
|
-
function
|
|
5666
|
+
function Yu(e) {
|
|
5665
5667
|
if (typeof e == "string")
|
|
5666
5668
|
e = new URL(e);
|
|
5667
5669
|
else if (!Bn(e)) {
|
|
@@ -5674,9 +5676,9 @@ function qu(e) {
|
|
|
5674
5676
|
const t = new TypeError("The URL must be of scheme file");
|
|
5675
5677
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
5676
5678
|
}
|
|
5677
|
-
return
|
|
5679
|
+
return Xu(e);
|
|
5678
5680
|
}
|
|
5679
|
-
function
|
|
5681
|
+
function Xu(e) {
|
|
5680
5682
|
if (e.hostname !== "") {
|
|
5681
5683
|
const r = new TypeError(
|
|
5682
5684
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5697,7 +5699,7 @@ function Wu(e) {
|
|
|
5697
5699
|
}
|
|
5698
5700
|
return decodeURIComponent(t);
|
|
5699
5701
|
}
|
|
5700
|
-
const
|
|
5702
|
+
const xn = (
|
|
5701
5703
|
/** @type {const} */
|
|
5702
5704
|
[
|
|
5703
5705
|
"history",
|
|
@@ -5733,15 +5735,15 @@ class Vr {
|
|
|
5733
5735
|
*/
|
|
5734
5736
|
constructor(t) {
|
|
5735
5737
|
let n;
|
|
5736
|
-
t ? Bn(t) ? n = { path: t } : typeof t == "string" ||
|
|
5738
|
+
t ? Bn(t) ? n = { path: t } : typeof t == "string" || Qu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : qu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
5737
5739
|
let r = -1;
|
|
5738
|
-
for (; ++r <
|
|
5739
|
-
const o =
|
|
5740
|
+
for (; ++r < xn.length; ) {
|
|
5741
|
+
const o = xn[r];
|
|
5740
5742
|
o in n && n[o] !== void 0 && n[o] !== null && (this[o] = o === "history" ? [...n[o]] : n[o]);
|
|
5741
5743
|
}
|
|
5742
5744
|
let i;
|
|
5743
5745
|
for (i in n)
|
|
5744
|
-
|
|
5746
|
+
xn.includes(i) || (this[i] = n[i]);
|
|
5745
5747
|
}
|
|
5746
5748
|
/**
|
|
5747
5749
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -5765,7 +5767,7 @@ class Vr {
|
|
|
5765
5767
|
* Nothing.
|
|
5766
5768
|
*/
|
|
5767
5769
|
set basename(t) {
|
|
5768
|
-
|
|
5770
|
+
wn(t, "basename"), bn(t, "basename"), this.path = ce.join(this.dirname || "", t);
|
|
5769
5771
|
}
|
|
5770
5772
|
/**
|
|
5771
5773
|
* Get the parent path (example: `'~'`).
|
|
@@ -5811,7 +5813,7 @@ class Vr {
|
|
|
5811
5813
|
* Nothing.
|
|
5812
5814
|
*/
|
|
5813
5815
|
set extname(t) {
|
|
5814
|
-
if (
|
|
5816
|
+
if (bn(t, "extname"), Xt(this.dirname, "extname"), t) {
|
|
5815
5817
|
if (t.codePointAt(0) !== 46)
|
|
5816
5818
|
throw new Error("`extname` must start with `.`");
|
|
5817
5819
|
if (t.includes(".", 1))
|
|
@@ -5841,7 +5843,7 @@ class Vr {
|
|
|
5841
5843
|
* Nothing.
|
|
5842
5844
|
*/
|
|
5843
5845
|
set path(t) {
|
|
5844
|
-
Bn(t) && (t =
|
|
5846
|
+
Bn(t) && (t = Yu(t)), wn(t, "path"), this.path !== t && this.history.push(t);
|
|
5845
5847
|
}
|
|
5846
5848
|
/**
|
|
5847
5849
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -5865,7 +5867,7 @@ class Vr {
|
|
|
5865
5867
|
* Nothing.
|
|
5866
5868
|
*/
|
|
5867
5869
|
set stem(t) {
|
|
5868
|
-
|
|
5870
|
+
wn(t, "stem"), bn(t, "stem"), this.path = ce.join(this.dirname || "", t + (this.extname || ""));
|
|
5869
5871
|
}
|
|
5870
5872
|
// Normal prototypal methods.
|
|
5871
5873
|
/**
|
|
@@ -6078,13 +6080,13 @@ class Vr {
|
|
|
6078
6080
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
6079
6081
|
}
|
|
6080
6082
|
}
|
|
6081
|
-
function
|
|
6083
|
+
function bn(e, t) {
|
|
6082
6084
|
if (e && e.includes(ce.sep))
|
|
6083
6085
|
throw new Error(
|
|
6084
6086
|
"`" + t + "` cannot be a path: did not expect `" + ce.sep + "`"
|
|
6085
6087
|
);
|
|
6086
6088
|
}
|
|
6087
|
-
function
|
|
6089
|
+
function wn(e, t) {
|
|
6088
6090
|
if (!e)
|
|
6089
6091
|
throw new Error("`" + t + "` cannot be empty");
|
|
6090
6092
|
}
|
|
@@ -6092,10 +6094,10 @@ function Xt(e, t) {
|
|
|
6092
6094
|
if (!e)
|
|
6093
6095
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6094
6096
|
}
|
|
6095
|
-
function
|
|
6097
|
+
function Qu(e) {
|
|
6096
6098
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6097
6099
|
}
|
|
6098
|
-
const
|
|
6100
|
+
const Gu = (
|
|
6099
6101
|
/**
|
|
6100
6102
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6101
6103
|
*/
|
|
@@ -6116,13 +6118,13 @@ const Xu = (
|
|
|
6116
6118
|
};
|
|
6117
6119
|
return Object.setPrototypeOf(o, r), o;
|
|
6118
6120
|
}
|
|
6119
|
-
),
|
|
6120
|
-
class tt extends
|
|
6121
|
+
), Ku = {}.hasOwnProperty;
|
|
6122
|
+
class tt extends Gu {
|
|
6121
6123
|
/**
|
|
6122
6124
|
* Create a processor.
|
|
6123
6125
|
*/
|
|
6124
6126
|
constructor() {
|
|
6125
|
-
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 =
|
|
6127
|
+
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 = Mu();
|
|
6126
6128
|
}
|
|
6127
6129
|
/**
|
|
6128
6130
|
* Copy a processor.
|
|
@@ -6145,7 +6147,7 @@ class tt extends Xu {
|
|
|
6145
6147
|
const r = this.attachers[n];
|
|
6146
6148
|
t.use(...r);
|
|
6147
6149
|
}
|
|
6148
|
-
return t.data(
|
|
6150
|
+
return t.data(kn(!0, {}, this.namespace)), t;
|
|
6149
6151
|
}
|
|
6150
6152
|
/**
|
|
6151
6153
|
* Configure the processor with info available to all plugins.
|
|
@@ -6207,7 +6209,7 @@ class tt extends Xu {
|
|
|
6207
6209
|
* the entire dataset when getting without key.
|
|
6208
6210
|
*/
|
|
6209
6211
|
data(t, n) {
|
|
6210
|
-
return typeof t == "string" ? arguments.length === 2 ? (
|
|
6212
|
+
return typeof t == "string" ? arguments.length === 2 ? (En("data", this.frozen), this.namespace[t] = n, this) : Ku.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (En("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
6211
6213
|
}
|
|
6212
6214
|
/**
|
|
6213
6215
|
* Freeze a processor.
|
|
@@ -6261,7 +6263,7 @@ class tt extends Xu {
|
|
|
6261
6263
|
parse(t) {
|
|
6262
6264
|
this.freeze();
|
|
6263
6265
|
const n = Ke(t), r = this.parser || this.Parser;
|
|
6264
|
-
return
|
|
6266
|
+
return Sn("parse", r), r(String(n), n);
|
|
6265
6267
|
}
|
|
6266
6268
|
/**
|
|
6267
6269
|
* Process the given file as configured on the processor.
|
|
@@ -6307,7 +6309,7 @@ class tt extends Xu {
|
|
|
6307
6309
|
*/
|
|
6308
6310
|
process(t, n) {
|
|
6309
6311
|
const r = this;
|
|
6310
|
-
return this.freeze(),
|
|
6312
|
+
return this.freeze(), Sn("process", this.parser || this.Parser), Cn("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
|
|
6311
6313
|
function i(o, l) {
|
|
6312
6314
|
const a = Ke(t), u = (
|
|
6313
6315
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -6322,7 +6324,7 @@ class tt extends Xu {
|
|
|
6322
6324
|
/** @type {unknown} */
|
|
6323
6325
|
c
|
|
6324
6326
|
), d = r.stringify(h, p);
|
|
6325
|
-
|
|
6327
|
+
es(d) ? p.value = d : p.result = d, s(
|
|
6326
6328
|
f,
|
|
6327
6329
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6328
6330
|
p
|
|
@@ -6366,7 +6368,7 @@ class tt extends Xu {
|
|
|
6366
6368
|
*/
|
|
6367
6369
|
processSync(t) {
|
|
6368
6370
|
let n = !1, r;
|
|
6369
|
-
return this.freeze(),
|
|
6371
|
+
return this.freeze(), Sn("processSync", this.parser || this.Parser), Cn("processSync", this.compiler || this.Compiler), this.process(t, i), Gt("processSync", "process", n), r;
|
|
6370
6372
|
function i(o, l) {
|
|
6371
6373
|
n = !0, Ht(o), r = l;
|
|
6372
6374
|
}
|
|
@@ -6481,7 +6483,7 @@ class tt extends Xu {
|
|
|
6481
6483
|
stringify(t, n) {
|
|
6482
6484
|
this.freeze();
|
|
6483
6485
|
const r = Ke(n), i = this.compiler || this.Compiler;
|
|
6484
|
-
return
|
|
6486
|
+
return Cn("stringify", i), Qt(t), i(t, r);
|
|
6485
6487
|
}
|
|
6486
6488
|
/**
|
|
6487
6489
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6542,7 +6544,7 @@ class tt extends Xu {
|
|
|
6542
6544
|
*/
|
|
6543
6545
|
use(t, ...n) {
|
|
6544
6546
|
const r = this.attachers, i = this.namespace;
|
|
6545
|
-
if (
|
|
6547
|
+
if (En("use", this.frozen), t != null) if (typeof t == "function")
|
|
6546
6548
|
u(t, n);
|
|
6547
6549
|
else if (typeof t == "object")
|
|
6548
6550
|
Array.isArray(t) ? a(t) : l(t);
|
|
@@ -6569,7 +6571,7 @@ class tt extends Xu {
|
|
|
6569
6571
|
throw new Error(
|
|
6570
6572
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
6571
6573
|
);
|
|
6572
|
-
a(s.plugins), s.settings && (i.settings =
|
|
6574
|
+
a(s.plugins), s.settings && (i.settings = kn(!0, i.settings, s.settings));
|
|
6573
6575
|
}
|
|
6574
6576
|
function a(s) {
|
|
6575
6577
|
let f = -1;
|
|
@@ -6593,21 +6595,21 @@ class tt extends Xu {
|
|
|
6593
6595
|
else if (f.length > 0) {
|
|
6594
6596
|
let [h, ...d] = f;
|
|
6595
6597
|
const x = r[p][1];
|
|
6596
|
-
Nn(x) && Nn(h) && (h =
|
|
6598
|
+
Nn(x) && Nn(h) && (h = kn(!0, x, h)), r[p] = [s, h, ...d];
|
|
6597
6599
|
}
|
|
6598
6600
|
}
|
|
6599
6601
|
}
|
|
6600
6602
|
}
|
|
6601
|
-
const
|
|
6602
|
-
function
|
|
6603
|
+
const Ju = new tt().freeze();
|
|
6604
|
+
function Sn(e, t) {
|
|
6603
6605
|
if (typeof t != "function")
|
|
6604
6606
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
6605
6607
|
}
|
|
6606
|
-
function
|
|
6608
|
+
function Cn(e, t) {
|
|
6607
6609
|
if (typeof t != "function")
|
|
6608
6610
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
6609
6611
|
}
|
|
6610
|
-
function
|
|
6612
|
+
function En(e, t) {
|
|
6611
6613
|
if (t)
|
|
6612
6614
|
throw new Error(
|
|
6613
6615
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
@@ -6624,18 +6626,18 @@ function Gt(e, t, n) {
|
|
|
6624
6626
|
);
|
|
6625
6627
|
}
|
|
6626
6628
|
function Ke(e) {
|
|
6627
|
-
return
|
|
6629
|
+
return Zu(e) ? e : new Vr(e);
|
|
6628
6630
|
}
|
|
6629
|
-
function
|
|
6631
|
+
function Zu(e) {
|
|
6630
6632
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6631
6633
|
}
|
|
6632
|
-
function
|
|
6633
|
-
return typeof e == "string" ||
|
|
6634
|
+
function es(e) {
|
|
6635
|
+
return typeof e == "string" || ns(e);
|
|
6634
6636
|
}
|
|
6635
|
-
function
|
|
6637
|
+
function ns(e) {
|
|
6636
6638
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6637
6639
|
}
|
|
6638
|
-
const
|
|
6640
|
+
const ts = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Kt = [], Jt = { allowDangerousHtml: !0 }, rs = /^(https?|ircs?|mailto|xmpp)$/i, is = [
|
|
6639
6641
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
6640
6642
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
6641
6643
|
{
|
|
@@ -6669,27 +6671,27 @@ const es = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
6669
6671
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
6670
6672
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
6671
6673
|
];
|
|
6672
|
-
function
|
|
6673
|
-
const t =
|
|
6674
|
-
return
|
|
6674
|
+
function ls(e) {
|
|
6675
|
+
const t = os(e), n = as(e);
|
|
6676
|
+
return us(t.runSync(t.parse(n), n), e);
|
|
6675
6677
|
}
|
|
6676
|
-
function
|
|
6678
|
+
function os(e) {
|
|
6677
6679
|
const t = e.rehypePlugins || Kt, n = e.remarkPlugins || Kt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Jt } : Jt;
|
|
6678
|
-
return
|
|
6680
|
+
return Ju().use(Ha).use(n).use(Ru, r).use(t);
|
|
6679
6681
|
}
|
|
6680
|
-
function
|
|
6682
|
+
function as(e) {
|
|
6681
6683
|
const t = e.children || "", n = new Vr();
|
|
6682
6684
|
return typeof t == "string" && (n.value = t), n;
|
|
6683
6685
|
}
|
|
6684
|
-
function
|
|
6685
|
-
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform ||
|
|
6686
|
-
for (const f of
|
|
6687
|
-
Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") +
|
|
6688
|
-
return nt(e, s),
|
|
6686
|
+
function us(e, t) {
|
|
6687
|
+
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform || ss;
|
|
6688
|
+
for (const f of is)
|
|
6689
|
+
Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + ts + f.id, void 0);
|
|
6690
|
+
return nt(e, s), Cl(e, {
|
|
6689
6691
|
Fragment: Ei,
|
|
6690
6692
|
components: i,
|
|
6691
6693
|
ignoreInvalidStyle: !0,
|
|
6692
|
-
jsx:
|
|
6694
|
+
jsx: nn,
|
|
6693
6695
|
jsxs: Ci,
|
|
6694
6696
|
passKeys: !0,
|
|
6695
6697
|
passNode: !0
|
|
@@ -6699,9 +6701,9 @@ function os(e, t) {
|
|
|
6699
6701
|
return l ? p.children.splice(c, 1) : p.children[c] = { type: "text", value: f.value }, c;
|
|
6700
6702
|
if (f.type === "element") {
|
|
6701
6703
|
let h;
|
|
6702
|
-
for (h in
|
|
6703
|
-
if (Object.hasOwn(
|
|
6704
|
-
const d = f.properties[h], x =
|
|
6704
|
+
for (h in gn)
|
|
6705
|
+
if (Object.hasOwn(gn, h) && Object.hasOwn(f.properties, h)) {
|
|
6706
|
+
const d = f.properties[h], x = gn[h];
|
|
6705
6707
|
(x === null || x.includes(f.tagName)) && (f.properties[h] = u(String(d || ""), h, f));
|
|
6706
6708
|
}
|
|
6707
6709
|
}
|
|
@@ -6712,13 +6714,13 @@ function os(e, t) {
|
|
|
6712
6714
|
}
|
|
6713
6715
|
}
|
|
6714
6716
|
}
|
|
6715
|
-
function
|
|
6717
|
+
function ss(e) {
|
|
6716
6718
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
6717
6719
|
return (
|
|
6718
6720
|
// If there is no protocol, it’s relative.
|
|
6719
6721
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
6720
6722
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
|
6721
|
-
|
|
6723
|
+
rs.test(e.slice(0, t)) ? e : ""
|
|
6722
6724
|
);
|
|
6723
6725
|
}
|
|
6724
6726
|
function Zt(e, t) {
|
|
@@ -6730,13 +6732,13 @@ function Zt(e, t) {
|
|
|
6730
6732
|
r++, i = n.indexOf(t, i + t.length);
|
|
6731
6733
|
return r;
|
|
6732
6734
|
}
|
|
6733
|
-
function
|
|
6735
|
+
function cs(e) {
|
|
6734
6736
|
if (typeof e != "string")
|
|
6735
6737
|
throw new TypeError("Expected a string");
|
|
6736
6738
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
6737
6739
|
}
|
|
6738
6740
|
function $r(e, t, n) {
|
|
6739
|
-
const i =
|
|
6741
|
+
const i = hn((n || {}).ignore || []), o = fs(t);
|
|
6740
6742
|
let l = -1;
|
|
6741
6743
|
for (; ++l < o.length; )
|
|
6742
6744
|
Hr(e, "text", a);
|
|
@@ -6779,7 +6781,7 @@ function $r(e, t, n) {
|
|
|
6779
6781
|
return y ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(C, 1, ...A)) : A = [s], C + A.length;
|
|
6780
6782
|
}
|
|
6781
6783
|
}
|
|
6782
|
-
function
|
|
6784
|
+
function fs(e) {
|
|
6783
6785
|
const t = [];
|
|
6784
6786
|
if (!Array.isArray(e))
|
|
6785
6787
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -6787,98 +6789,98 @@ function ss(e) {
|
|
|
6787
6789
|
let r = -1;
|
|
6788
6790
|
for (; ++r < n.length; ) {
|
|
6789
6791
|
const i = n[r];
|
|
6790
|
-
t.push([
|
|
6792
|
+
t.push([hs(i[0]), ps(i[1])]);
|
|
6791
6793
|
}
|
|
6792
6794
|
return t;
|
|
6793
6795
|
}
|
|
6794
|
-
function
|
|
6795
|
-
return typeof e == "string" ? new RegExp(
|
|
6796
|
+
function hs(e) {
|
|
6797
|
+
return typeof e == "string" ? new RegExp(cs(e), "g") : e;
|
|
6796
6798
|
}
|
|
6797
|
-
function
|
|
6799
|
+
function ps(e) {
|
|
6798
6800
|
return typeof e == "function" ? e : function() {
|
|
6799
6801
|
return e;
|
|
6800
6802
|
};
|
|
6801
6803
|
}
|
|
6802
|
-
const
|
|
6803
|
-
function
|
|
6804
|
+
const In = "phrasing", An = ["autolink", "link", "image", "label"];
|
|
6805
|
+
function ms() {
|
|
6804
6806
|
return {
|
|
6805
|
-
transforms: [
|
|
6807
|
+
transforms: [ws],
|
|
6806
6808
|
enter: {
|
|
6807
|
-
literalAutolink:
|
|
6808
|
-
literalAutolinkEmail:
|
|
6809
|
-
literalAutolinkHttp:
|
|
6810
|
-
literalAutolinkWww:
|
|
6809
|
+
literalAutolink: ds,
|
|
6810
|
+
literalAutolinkEmail: Tn,
|
|
6811
|
+
literalAutolinkHttp: Tn,
|
|
6812
|
+
literalAutolinkWww: Tn
|
|
6811
6813
|
},
|
|
6812
6814
|
exit: {
|
|
6813
|
-
literalAutolink:
|
|
6814
|
-
literalAutolinkEmail:
|
|
6815
|
-
literalAutolinkHttp:
|
|
6816
|
-
literalAutolinkWww:
|
|
6815
|
+
literalAutolink: bs,
|
|
6816
|
+
literalAutolinkEmail: xs,
|
|
6817
|
+
literalAutolinkHttp: ys,
|
|
6818
|
+
literalAutolinkWww: ks
|
|
6817
6819
|
}
|
|
6818
6820
|
};
|
|
6819
6821
|
}
|
|
6820
|
-
function
|
|
6822
|
+
function gs() {
|
|
6821
6823
|
return {
|
|
6822
6824
|
unsafe: [
|
|
6823
6825
|
{
|
|
6824
6826
|
character: "@",
|
|
6825
6827
|
before: "[+\\-.\\w]",
|
|
6826
6828
|
after: "[\\-.\\w]",
|
|
6827
|
-
inConstruct:
|
|
6828
|
-
notInConstruct:
|
|
6829
|
+
inConstruct: In,
|
|
6830
|
+
notInConstruct: An
|
|
6829
6831
|
},
|
|
6830
6832
|
{
|
|
6831
6833
|
character: ".",
|
|
6832
6834
|
before: "[Ww]",
|
|
6833
6835
|
after: "[\\-.\\w]",
|
|
6834
|
-
inConstruct:
|
|
6835
|
-
notInConstruct:
|
|
6836
|
+
inConstruct: In,
|
|
6837
|
+
notInConstruct: An
|
|
6836
6838
|
},
|
|
6837
6839
|
{
|
|
6838
6840
|
character: ":",
|
|
6839
6841
|
before: "[ps]",
|
|
6840
6842
|
after: "\\/",
|
|
6841
|
-
inConstruct:
|
|
6842
|
-
notInConstruct:
|
|
6843
|
+
inConstruct: In,
|
|
6844
|
+
notInConstruct: An
|
|
6843
6845
|
}
|
|
6844
6846
|
]
|
|
6845
6847
|
};
|
|
6846
6848
|
}
|
|
6847
|
-
function
|
|
6849
|
+
function ds(e) {
|
|
6848
6850
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
6849
6851
|
}
|
|
6850
|
-
function
|
|
6852
|
+
function Tn(e) {
|
|
6851
6853
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
6852
6854
|
}
|
|
6853
|
-
function
|
|
6855
|
+
function ys(e) {
|
|
6854
6856
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
6855
6857
|
}
|
|
6856
|
-
function
|
|
6858
|
+
function ks(e) {
|
|
6857
6859
|
this.config.exit.data.call(this, e);
|
|
6858
6860
|
const t = this.stack[this.stack.length - 1];
|
|
6859
6861
|
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
6860
6862
|
}
|
|
6861
|
-
function
|
|
6863
|
+
function xs(e) {
|
|
6862
6864
|
this.config.exit.autolinkEmail.call(this, e);
|
|
6863
6865
|
}
|
|
6864
|
-
function
|
|
6866
|
+
function bs(e) {
|
|
6865
6867
|
this.exit(e);
|
|
6866
6868
|
}
|
|
6867
|
-
function
|
|
6869
|
+
function ws(e) {
|
|
6868
6870
|
$r(
|
|
6869
6871
|
e,
|
|
6870
6872
|
[
|
|
6871
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
6872
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
|
6873
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Ss],
|
|
6874
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Cs]
|
|
6873
6875
|
],
|
|
6874
6876
|
{ ignore: ["link", "linkReference"] }
|
|
6875
6877
|
);
|
|
6876
6878
|
}
|
|
6877
|
-
function
|
|
6879
|
+
function Ss(e, t, n, r, i) {
|
|
6878
6880
|
let o = "";
|
|
6879
|
-
if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !
|
|
6881
|
+
if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Es(n)))
|
|
6880
6882
|
return !1;
|
|
6881
|
-
const l =
|
|
6883
|
+
const l = Is(n + r);
|
|
6882
6884
|
if (!l[0]) return !1;
|
|
6883
6885
|
const a = {
|
|
6884
6886
|
type: "link",
|
|
@@ -6888,7 +6890,7 @@ function bs(e, t, n, r, i) {
|
|
|
6888
6890
|
};
|
|
6889
6891
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
6890
6892
|
}
|
|
6891
|
-
function
|
|
6893
|
+
function Cs(e, t, n, r) {
|
|
6892
6894
|
return (
|
|
6893
6895
|
// Not an expected previous character.
|
|
6894
6896
|
!qr(r, !0) || // Label ends in not allowed character.
|
|
@@ -6900,11 +6902,11 @@ function ws(e, t, n, r) {
|
|
|
6900
6902
|
}
|
|
6901
6903
|
);
|
|
6902
6904
|
}
|
|
6903
|
-
function
|
|
6905
|
+
function Es(e) {
|
|
6904
6906
|
const t = e.split(".");
|
|
6905
6907
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
6906
6908
|
}
|
|
6907
|
-
function
|
|
6909
|
+
function Is(e) {
|
|
6908
6910
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
6909
6911
|
if (!t)
|
|
6910
6912
|
return [e, void 0];
|
|
@@ -6918,44 +6920,44 @@ function Cs(e) {
|
|
|
6918
6920
|
}
|
|
6919
6921
|
function qr(e, t) {
|
|
6920
6922
|
const n = e.input.charCodeAt(e.index - 1);
|
|
6921
|
-
return (e.index === 0 || Ee(n) ||
|
|
6923
|
+
return (e.index === 0 || Ee(n) || sn(n)) && // If it’s an email, the previous character should not be a slash.
|
|
6922
6924
|
(!t || n !== 47);
|
|
6923
6925
|
}
|
|
6924
|
-
Wr.peek =
|
|
6925
|
-
function
|
|
6926
|
+
Wr.peek = _s;
|
|
6927
|
+
function As() {
|
|
6926
6928
|
this.buffer();
|
|
6927
6929
|
}
|
|
6928
|
-
function
|
|
6930
|
+
function Ts(e) {
|
|
6929
6931
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
6930
6932
|
}
|
|
6931
|
-
function
|
|
6933
|
+
function Ps() {
|
|
6932
6934
|
this.buffer();
|
|
6933
6935
|
}
|
|
6934
|
-
function
|
|
6936
|
+
function vs(e) {
|
|
6935
6937
|
this.enter(
|
|
6936
6938
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
6937
6939
|
e
|
|
6938
6940
|
);
|
|
6939
6941
|
}
|
|
6940
|
-
function
|
|
6942
|
+
function zs(e) {
|
|
6941
6943
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6942
6944
|
n.type, n.identifier = se(
|
|
6943
6945
|
this.sliceSerialize(e)
|
|
6944
6946
|
).toLowerCase(), n.label = t;
|
|
6945
6947
|
}
|
|
6946
|
-
function
|
|
6948
|
+
function Ds(e) {
|
|
6947
6949
|
this.exit(e);
|
|
6948
6950
|
}
|
|
6949
|
-
function
|
|
6951
|
+
function Ls(e) {
|
|
6950
6952
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6951
6953
|
n.type, n.identifier = se(
|
|
6952
6954
|
this.sliceSerialize(e)
|
|
6953
6955
|
).toLowerCase(), n.label = t;
|
|
6954
6956
|
}
|
|
6955
|
-
function
|
|
6957
|
+
function Fs(e) {
|
|
6956
6958
|
this.exit(e);
|
|
6957
6959
|
}
|
|
6958
|
-
function
|
|
6960
|
+
function _s() {
|
|
6959
6961
|
return "[";
|
|
6960
6962
|
}
|
|
6961
6963
|
function Wr(e, t, n, r) {
|
|
@@ -6966,23 +6968,23 @@ function Wr(e, t, n, r) {
|
|
|
6966
6968
|
n.safe(n.associationId(e), { after: "]", before: o })
|
|
6967
6969
|
), a(), l(), o += i.move("]"), o;
|
|
6968
6970
|
}
|
|
6969
|
-
function
|
|
6971
|
+
function Rs() {
|
|
6970
6972
|
return {
|
|
6971
6973
|
enter: {
|
|
6972
|
-
gfmFootnoteCallString:
|
|
6973
|
-
gfmFootnoteCall:
|
|
6974
|
-
gfmFootnoteDefinitionLabelString:
|
|
6975
|
-
gfmFootnoteDefinition:
|
|
6974
|
+
gfmFootnoteCallString: As,
|
|
6975
|
+
gfmFootnoteCall: Ts,
|
|
6976
|
+
gfmFootnoteDefinitionLabelString: Ps,
|
|
6977
|
+
gfmFootnoteDefinition: vs
|
|
6976
6978
|
},
|
|
6977
6979
|
exit: {
|
|
6978
|
-
gfmFootnoteCallString:
|
|
6979
|
-
gfmFootnoteCall:
|
|
6980
|
-
gfmFootnoteDefinitionLabelString:
|
|
6981
|
-
gfmFootnoteDefinition:
|
|
6980
|
+
gfmFootnoteCallString: zs,
|
|
6981
|
+
gfmFootnoteCall: Ds,
|
|
6982
|
+
gfmFootnoteDefinitionLabelString: Ls,
|
|
6983
|
+
gfmFootnoteDefinition: Fs
|
|
6982
6984
|
}
|
|
6983
6985
|
};
|
|
6984
6986
|
}
|
|
6985
|
-
function
|
|
6987
|
+
function Os(e) {
|
|
6986
6988
|
let t = !1;
|
|
6987
6989
|
return e && e.firstLineBlank && (t = !0), {
|
|
6988
6990
|
handlers: { footnoteDefinition: n, footnoteReference: Wr },
|
|
@@ -6999,18 +7001,18 @@ function _s(e) {
|
|
|
6999
7001
|
(t ? `
|
|
7000
7002
|
` : " ") + o.indentLines(
|
|
7001
7003
|
o.containerFlow(r, a.current()),
|
|
7002
|
-
t ? Yr :
|
|
7004
|
+
t ? Yr : Ms
|
|
7003
7005
|
)
|
|
7004
7006
|
)), s(), u;
|
|
7005
7007
|
}
|
|
7006
7008
|
}
|
|
7007
|
-
function
|
|
7009
|
+
function Ms(e, t, n) {
|
|
7008
7010
|
return t === 0 ? e : Yr(e, t, n);
|
|
7009
7011
|
}
|
|
7010
7012
|
function Yr(e, t, n) {
|
|
7011
7013
|
return (n ? "" : " ") + e;
|
|
7012
7014
|
}
|
|
7013
|
-
const
|
|
7015
|
+
const Ns = [
|
|
7014
7016
|
"autolink",
|
|
7015
7017
|
"destinationLiteral",
|
|
7016
7018
|
"destinationRaw",
|
|
@@ -7018,30 +7020,30 @@ const Os = [
|
|
|
7018
7020
|
"titleQuote",
|
|
7019
7021
|
"titleApostrophe"
|
|
7020
7022
|
];
|
|
7021
|
-
Xr.peek =
|
|
7022
|
-
function
|
|
7023
|
+
Xr.peek = Vs;
|
|
7024
|
+
function Bs() {
|
|
7023
7025
|
return {
|
|
7024
7026
|
canContainEols: ["delete"],
|
|
7025
|
-
enter: { strikethrough:
|
|
7026
|
-
exit: { strikethrough:
|
|
7027
|
+
enter: { strikethrough: Hs },
|
|
7028
|
+
exit: { strikethrough: Us }
|
|
7027
7029
|
};
|
|
7028
7030
|
}
|
|
7029
|
-
function
|
|
7031
|
+
function js() {
|
|
7030
7032
|
return {
|
|
7031
7033
|
unsafe: [
|
|
7032
7034
|
{
|
|
7033
7035
|
character: "~",
|
|
7034
7036
|
inConstruct: "phrasing",
|
|
7035
|
-
notInConstruct:
|
|
7037
|
+
notInConstruct: Ns
|
|
7036
7038
|
}
|
|
7037
7039
|
],
|
|
7038
7040
|
handlers: { delete: Xr }
|
|
7039
7041
|
};
|
|
7040
7042
|
}
|
|
7041
|
-
function
|
|
7043
|
+
function Hs(e) {
|
|
7042
7044
|
this.enter({ type: "delete", children: [] }, e);
|
|
7043
7045
|
}
|
|
7044
|
-
function
|
|
7046
|
+
function Us(e) {
|
|
7045
7047
|
this.exit(e);
|
|
7046
7048
|
}
|
|
7047
7049
|
function Xr(e, t, n, r) {
|
|
@@ -7053,20 +7055,20 @@ function Xr(e, t, n, r) {
|
|
|
7053
7055
|
after: "~"
|
|
7054
7056
|
}), l += i.move("~~"), o(), l;
|
|
7055
7057
|
}
|
|
7056
|
-
function
|
|
7058
|
+
function Vs() {
|
|
7057
7059
|
return "~";
|
|
7058
7060
|
}
|
|
7059
|
-
function
|
|
7061
|
+
function $s(e) {
|
|
7060
7062
|
return e.length;
|
|
7061
7063
|
}
|
|
7062
|
-
function
|
|
7063
|
-
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength ||
|
|
7064
|
+
function qs(e, t) {
|
|
7065
|
+
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || $s, o = [], l = [], a = [], u = [];
|
|
7064
7066
|
let s = 0, f = -1;
|
|
7065
7067
|
for (; ++f < e.length; ) {
|
|
7066
7068
|
const x = [], C = [];
|
|
7067
7069
|
let y = -1;
|
|
7068
7070
|
for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
|
|
7069
|
-
const A =
|
|
7071
|
+
const A = Ws(e[f][y]);
|
|
7070
7072
|
if (n.alignDelimiters !== !1) {
|
|
7071
7073
|
const E = i(A);
|
|
7072
7074
|
C[y] = E, (u[y] === void 0 || E > u[y]) && (u[y] = E);
|
|
@@ -7121,26 +7123,26 @@ function Vs(e, t) {
|
|
|
7121
7123
|
return d.join(`
|
|
7122
7124
|
`);
|
|
7123
7125
|
}
|
|
7124
|
-
function
|
|
7126
|
+
function Ws(e) {
|
|
7125
7127
|
return e == null ? "" : String(e);
|
|
7126
7128
|
}
|
|
7127
7129
|
function er(e) {
|
|
7128
7130
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7129
7131
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7130
7132
|
}
|
|
7131
|
-
function
|
|
7133
|
+
function Ys(e, t, n, r) {
|
|
7132
7134
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
7133
7135
|
o.move("> "), o.shift(2);
|
|
7134
7136
|
const l = n.indentLines(
|
|
7135
7137
|
n.containerFlow(e, o.current()),
|
|
7136
|
-
|
|
7138
|
+
Xs
|
|
7137
7139
|
);
|
|
7138
7140
|
return i(), l;
|
|
7139
7141
|
}
|
|
7140
|
-
function
|
|
7142
|
+
function Xs(e, t, n) {
|
|
7141
7143
|
return ">" + (n ? "" : " ") + e;
|
|
7142
7144
|
}
|
|
7143
|
-
function
|
|
7145
|
+
function Qs(e, t) {
|
|
7144
7146
|
return nr(e, t.inConstruct, !0) && !nr(e, t.notInConstruct, !1);
|
|
7145
7147
|
}
|
|
7146
7148
|
function nr(e, t, n) {
|
|
@@ -7156,12 +7158,12 @@ function tr(e, t, n, r) {
|
|
|
7156
7158
|
let i = -1;
|
|
7157
7159
|
for (; ++i < n.unsafe.length; )
|
|
7158
7160
|
if (n.unsafe[i].character === `
|
|
7159
|
-
` &&
|
|
7161
|
+
` && Qs(n.stack, n.unsafe[i]))
|
|
7160
7162
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
7161
7163
|
return `\\
|
|
7162
7164
|
`;
|
|
7163
7165
|
}
|
|
7164
|
-
function
|
|
7166
|
+
function Gs(e, t) {
|
|
7165
7167
|
const n = String(e);
|
|
7166
7168
|
let r = n.indexOf(t), i = r, o = 0, l = 0;
|
|
7167
7169
|
if (typeof t != "string")
|
|
@@ -7170,13 +7172,13 @@ function Xs(e, t) {
|
|
|
7170
7172
|
r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
7171
7173
|
return l;
|
|
7172
7174
|
}
|
|
7173
|
-
function
|
|
7175
|
+
function Ks(e, t) {
|
|
7174
7176
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
7175
7177
|
!e.lang && // And there’s a non-whitespace character…
|
|
7176
7178
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
7177
7179
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
7178
7180
|
}
|
|
7179
|
-
function
|
|
7181
|
+
function Js(e) {
|
|
7180
7182
|
const t = e.options.fence || "`";
|
|
7181
7183
|
if (t !== "`" && t !== "~")
|
|
7182
7184
|
throw new Error(
|
|
@@ -7184,13 +7186,13 @@ function Gs(e) {
|
|
|
7184
7186
|
);
|
|
7185
7187
|
return t;
|
|
7186
7188
|
}
|
|
7187
|
-
function
|
|
7188
|
-
const i =
|
|
7189
|
-
if (
|
|
7190
|
-
const c = n.enter("codeIndented"), p = n.indentLines(o,
|
|
7189
|
+
function Zs(e, t, n, r) {
|
|
7190
|
+
const i = Js(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
7191
|
+
if (Ks(e, n)) {
|
|
7192
|
+
const c = n.enter("codeIndented"), p = n.indentLines(o, ec);
|
|
7191
7193
|
return c(), p;
|
|
7192
7194
|
}
|
|
7193
|
-
const a = n.createTracker(r), u = i.repeat(Math.max(
|
|
7195
|
+
const a = n.createTracker(r), u = i.repeat(Math.max(Gs(o, i) + 1, 3)), s = n.enter("codeFenced");
|
|
7194
7196
|
let f = a.move(u);
|
|
7195
7197
|
if (e.lang) {
|
|
7196
7198
|
const c = n.enter(`codeFencedLang${l}`);
|
|
@@ -7219,7 +7221,7 @@ function Ks(e, t, n, r) {
|
|
|
7219
7221
|
`), o && (f += a.move(o + `
|
|
7220
7222
|
`)), f += a.move(u), s(), f;
|
|
7221
7223
|
}
|
|
7222
|
-
function
|
|
7224
|
+
function ec(e, t, n) {
|
|
7223
7225
|
return (n ? "" : " ") + e;
|
|
7224
7226
|
}
|
|
7225
7227
|
function rt(e) {
|
|
@@ -7230,7 +7232,7 @@ function rt(e) {
|
|
|
7230
7232
|
);
|
|
7231
7233
|
return t;
|
|
7232
7234
|
}
|
|
7233
|
-
function
|
|
7235
|
+
function nc(e, t, n, r) {
|
|
7234
7236
|
const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
|
|
7235
7237
|
let a = n.enter("label");
|
|
7236
7238
|
const u = n.createTracker(r);
|
|
@@ -7260,7 +7262,7 @@ function Zs(e, t, n, r) {
|
|
|
7260
7262
|
})
|
|
7261
7263
|
), s += u.move(i), a()), l(), s;
|
|
7262
7264
|
}
|
|
7263
|
-
function
|
|
7265
|
+
function tc(e) {
|
|
7264
7266
|
const t = e.options.emphasis || "*";
|
|
7265
7267
|
if (t !== "*" && t !== "_")
|
|
7266
7268
|
throw new Error(
|
|
@@ -7271,7 +7273,7 @@ function ec(e) {
|
|
|
7271
7273
|
function $e(e) {
|
|
7272
7274
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
7273
7275
|
}
|
|
7274
|
-
function
|
|
7276
|
+
function an(e, t, n) {
|
|
7275
7277
|
const r = Le(e), i = Le(t);
|
|
7276
7278
|
return r === void 0 ? i === void 0 ? (
|
|
7277
7279
|
// Letter inside:
|
|
@@ -7304,9 +7306,9 @@ function on(e, t, n) {
|
|
|
7304
7306
|
{ inside: !1, outside: !1 }
|
|
7305
7307
|
);
|
|
7306
7308
|
}
|
|
7307
|
-
Qr.peek =
|
|
7309
|
+
Qr.peek = rc;
|
|
7308
7310
|
function Qr(e, t, n, r) {
|
|
7309
|
-
const i =
|
|
7311
|
+
const i = tc(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
|
|
7310
7312
|
let u = l.move(
|
|
7311
7313
|
n.containerPhrasing(e, {
|
|
7312
7314
|
after: i,
|
|
@@ -7314,13 +7316,13 @@ function Qr(e, t, n, r) {
|
|
|
7314
7316
|
...l.current()
|
|
7315
7317
|
})
|
|
7316
7318
|
);
|
|
7317
|
-
const s = u.charCodeAt(0), f =
|
|
7319
|
+
const s = u.charCodeAt(0), f = an(
|
|
7318
7320
|
r.before.charCodeAt(r.before.length - 1),
|
|
7319
7321
|
s,
|
|
7320
7322
|
i
|
|
7321
7323
|
);
|
|
7322
7324
|
f.inside && (u = $e(s) + u.slice(1));
|
|
7323
|
-
const c = u.charCodeAt(u.length - 1), p =
|
|
7325
|
+
const c = u.charCodeAt(u.length - 1), p = an(r.after.charCodeAt(0), c, i);
|
|
7324
7326
|
p.inside && (u = u.slice(0, -1) + $e(c));
|
|
7325
7327
|
const h = l.move(i);
|
|
7326
7328
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
@@ -7328,19 +7330,19 @@ function Qr(e, t, n, r) {
|
|
|
7328
7330
|
before: f.outside
|
|
7329
7331
|
}, a + u + h;
|
|
7330
7332
|
}
|
|
7331
|
-
function
|
|
7333
|
+
function rc(e, t, n) {
|
|
7332
7334
|
return n.options.emphasis || "*";
|
|
7333
7335
|
}
|
|
7334
|
-
function
|
|
7336
|
+
function ic(e, t) {
|
|
7335
7337
|
let n = !1;
|
|
7336
7338
|
return nt(e, function(r) {
|
|
7337
7339
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7338
7340
|
return n = !0, On;
|
|
7339
7341
|
}), !!((!e.depth || e.depth < 3) && Xn(e) && (t.options.setext || n));
|
|
7340
7342
|
}
|
|
7341
|
-
function
|
|
7343
|
+
function lc(e, t, n, r) {
|
|
7342
7344
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
7343
|
-
if (
|
|
7345
|
+
if (ic(e, n)) {
|
|
7344
7346
|
const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
|
|
7345
7347
|
...o.current(),
|
|
7346
7348
|
before: `
|
|
@@ -7367,14 +7369,14 @@ function rc(e, t, n, r) {
|
|
|
7367
7369
|
});
|
|
7368
7370
|
return /^[\t ]/.test(s) && (s = $e(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), u(), a(), s;
|
|
7369
7371
|
}
|
|
7370
|
-
Gr.peek =
|
|
7372
|
+
Gr.peek = oc;
|
|
7371
7373
|
function Gr(e) {
|
|
7372
7374
|
return e.value || "";
|
|
7373
7375
|
}
|
|
7374
|
-
function
|
|
7376
|
+
function oc() {
|
|
7375
7377
|
return "<";
|
|
7376
7378
|
}
|
|
7377
|
-
Kr.peek =
|
|
7379
|
+
Kr.peek = ac;
|
|
7378
7380
|
function Kr(e, t, n, r) {
|
|
7379
7381
|
const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
|
|
7380
7382
|
let a = n.enter("label");
|
|
@@ -7400,10 +7402,10 @@ function Kr(e, t, n, r) {
|
|
|
7400
7402
|
})
|
|
7401
7403
|
), s += u.move(i), a()), s += u.move(")"), l(), s;
|
|
7402
7404
|
}
|
|
7403
|
-
function
|
|
7405
|
+
function ac() {
|
|
7404
7406
|
return "!";
|
|
7405
7407
|
}
|
|
7406
|
-
Jr.peek =
|
|
7408
|
+
Jr.peek = uc;
|
|
7407
7409
|
function Jr(e, t, n, r) {
|
|
7408
7410
|
const i = e.referenceType, o = n.enter("imageReference");
|
|
7409
7411
|
let l = n.enter("label");
|
|
@@ -7424,10 +7426,10 @@ function Jr(e, t, n, r) {
|
|
|
7424
7426
|
});
|
|
7425
7427
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
7426
7428
|
}
|
|
7427
|
-
function
|
|
7429
|
+
function uc() {
|
|
7428
7430
|
return "!";
|
|
7429
7431
|
}
|
|
7430
|
-
Zr.peek =
|
|
7432
|
+
Zr.peek = sc;
|
|
7431
7433
|
function Zr(e, t, n) {
|
|
7432
7434
|
let r = e.value || "", i = "`", o = -1;
|
|
7433
7435
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -7443,7 +7445,7 @@ function Zr(e, t, n) {
|
|
|
7443
7445
|
}
|
|
7444
7446
|
return i + r + i;
|
|
7445
7447
|
}
|
|
7446
|
-
function
|
|
7448
|
+
function sc() {
|
|
7447
7449
|
return "`";
|
|
7448
7450
|
}
|
|
7449
7451
|
function ei(e, t) {
|
|
@@ -7457,7 +7459,7 @@ function ei(e, t) {
|
|
|
7457
7459
|
// references don’t work), space, or angle brackets…
|
|
7458
7460
|
!/[\0- <>\u007F]/.test(e.url));
|
|
7459
7461
|
}
|
|
7460
|
-
ni.peek =
|
|
7462
|
+
ni.peek = cc;
|
|
7461
7463
|
function ni(e, t, n, r) {
|
|
7462
7464
|
const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
|
|
7463
7465
|
let a, u;
|
|
@@ -7499,10 +7501,10 @@ function ni(e, t, n, r) {
|
|
|
7499
7501
|
})
|
|
7500
7502
|
), s += l.move(i), u()), s += l.move(")"), a(), s;
|
|
7501
7503
|
}
|
|
7502
|
-
function
|
|
7504
|
+
function cc(e, t, n) {
|
|
7503
7505
|
return ei(e, n) ? "<" : "[";
|
|
7504
7506
|
}
|
|
7505
|
-
ti.peek =
|
|
7507
|
+
ti.peek = fc;
|
|
7506
7508
|
function ti(e, t, n, r) {
|
|
7507
7509
|
const i = e.referenceType, o = n.enter("linkReference");
|
|
7508
7510
|
let l = n.enter("label");
|
|
@@ -7523,7 +7525,7 @@ function ti(e, t, n, r) {
|
|
|
7523
7525
|
});
|
|
7524
7526
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
7525
7527
|
}
|
|
7526
|
-
function
|
|
7528
|
+
function fc() {
|
|
7527
7529
|
return "[";
|
|
7528
7530
|
}
|
|
7529
7531
|
function it(e) {
|
|
@@ -7534,7 +7536,7 @@ function it(e) {
|
|
|
7534
7536
|
);
|
|
7535
7537
|
return t;
|
|
7536
7538
|
}
|
|
7537
|
-
function
|
|
7539
|
+
function hc(e) {
|
|
7538
7540
|
const t = it(e), n = e.options.bulletOther;
|
|
7539
7541
|
if (!n)
|
|
7540
7542
|
return t === "*" ? "-" : "*";
|
|
@@ -7548,7 +7550,7 @@ function cc(e) {
|
|
|
7548
7550
|
);
|
|
7549
7551
|
return n;
|
|
7550
7552
|
}
|
|
7551
|
-
function
|
|
7553
|
+
function pc(e) {
|
|
7552
7554
|
const t = e.options.bulletOrdered || ".";
|
|
7553
7555
|
if (t !== "." && t !== ")")
|
|
7554
7556
|
throw new Error(
|
|
@@ -7564,10 +7566,10 @@ function ri(e) {
|
|
|
7564
7566
|
);
|
|
7565
7567
|
return t;
|
|
7566
7568
|
}
|
|
7567
|
-
function
|
|
7569
|
+
function mc(e, t, n, r) {
|
|
7568
7570
|
const i = n.enter("list"), o = n.bulletCurrent;
|
|
7569
|
-
let l = e.ordered ?
|
|
7570
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
7571
|
+
let l = e.ordered ? pc(n) : it(n);
|
|
7572
|
+
const a = e.ordered ? l === "." ? ")" : "." : hc(n);
|
|
7571
7573
|
let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
|
|
7572
7574
|
if (!e.ordered) {
|
|
7573
7575
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -7592,7 +7594,7 @@ function hc(e, t, n, r) {
|
|
|
7592
7594
|
const s = n.containerFlow(e, r);
|
|
7593
7595
|
return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
|
|
7594
7596
|
}
|
|
7595
|
-
function
|
|
7597
|
+
function gc(e) {
|
|
7596
7598
|
const t = e.options.listItemIndent || "one";
|
|
7597
7599
|
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
7598
7600
|
throw new Error(
|
|
@@ -7600,8 +7602,8 @@ function pc(e) {
|
|
|
7600
7602
|
);
|
|
7601
7603
|
return t;
|
|
7602
7604
|
}
|
|
7603
|
-
function
|
|
7604
|
-
const i =
|
|
7605
|
+
function dc(e, t, n, r) {
|
|
7606
|
+
const i = gc(n);
|
|
7605
7607
|
let o = n.bulletCurrent || it(n);
|
|
7606
7608
|
t && t.type === "list" && t.ordered && (o = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + o);
|
|
7607
7609
|
let l = o.length + 1;
|
|
@@ -7617,13 +7619,13 @@ function mc(e, t, n, r) {
|
|
|
7617
7619
|
return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
|
|
7618
7620
|
}
|
|
7619
7621
|
}
|
|
7620
|
-
function
|
|
7622
|
+
function yc(e, t, n, r) {
|
|
7621
7623
|
const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
|
|
7622
7624
|
return o(), i(), l;
|
|
7623
7625
|
}
|
|
7624
|
-
const
|
|
7626
|
+
const kc = (
|
|
7625
7627
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
7626
|
-
|
|
7628
|
+
hn([
|
|
7627
7629
|
"break",
|
|
7628
7630
|
"delete",
|
|
7629
7631
|
"emphasis",
|
|
@@ -7647,12 +7649,12 @@ const dc = (
|
|
|
7647
7649
|
"textDirective"
|
|
7648
7650
|
])
|
|
7649
7651
|
);
|
|
7650
|
-
function
|
|
7652
|
+
function xc(e, t, n, r) {
|
|
7651
7653
|
return (e.children.some(function(l) {
|
|
7652
|
-
return
|
|
7654
|
+
return kc(l);
|
|
7653
7655
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
7654
7656
|
}
|
|
7655
|
-
function
|
|
7657
|
+
function bc(e) {
|
|
7656
7658
|
const t = e.options.strong || "*";
|
|
7657
7659
|
if (t !== "*" && t !== "_")
|
|
7658
7660
|
throw new Error(
|
|
@@ -7660,9 +7662,9 @@ function kc(e) {
|
|
|
7660
7662
|
);
|
|
7661
7663
|
return t;
|
|
7662
7664
|
}
|
|
7663
|
-
ii.peek =
|
|
7665
|
+
ii.peek = wc;
|
|
7664
7666
|
function ii(e, t, n, r) {
|
|
7665
|
-
const i =
|
|
7667
|
+
const i = bc(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
|
|
7666
7668
|
let u = l.move(
|
|
7667
7669
|
n.containerPhrasing(e, {
|
|
7668
7670
|
after: i,
|
|
@@ -7670,13 +7672,13 @@ function ii(e, t, n, r) {
|
|
|
7670
7672
|
...l.current()
|
|
7671
7673
|
})
|
|
7672
7674
|
);
|
|
7673
|
-
const s = u.charCodeAt(0), f =
|
|
7675
|
+
const s = u.charCodeAt(0), f = an(
|
|
7674
7676
|
r.before.charCodeAt(r.before.length - 1),
|
|
7675
7677
|
s,
|
|
7676
7678
|
i
|
|
7677
7679
|
);
|
|
7678
7680
|
f.inside && (u = $e(s) + u.slice(1));
|
|
7679
|
-
const c = u.charCodeAt(u.length - 1), p =
|
|
7681
|
+
const c = u.charCodeAt(u.length - 1), p = an(r.after.charCodeAt(0), c, i);
|
|
7680
7682
|
p.inside && (u = u.slice(0, -1) + $e(c));
|
|
7681
7683
|
const h = l.move(i + i);
|
|
7682
7684
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
@@ -7684,13 +7686,13 @@ function ii(e, t, n, r) {
|
|
|
7684
7686
|
before: f.outside
|
|
7685
7687
|
}, a + u + h;
|
|
7686
7688
|
}
|
|
7687
|
-
function
|
|
7689
|
+
function wc(e, t, n) {
|
|
7688
7690
|
return n.options.strong || "*";
|
|
7689
7691
|
}
|
|
7690
|
-
function
|
|
7692
|
+
function Sc(e, t, n, r) {
|
|
7691
7693
|
return n.safe(e.value, r);
|
|
7692
7694
|
}
|
|
7693
|
-
function
|
|
7695
|
+
function Cc(e) {
|
|
7694
7696
|
const t = e.options.ruleRepetition || 3;
|
|
7695
7697
|
if (t < 3)
|
|
7696
7698
|
throw new Error(
|
|
@@ -7698,50 +7700,50 @@ function wc(e) {
|
|
|
7698
7700
|
);
|
|
7699
7701
|
return t;
|
|
7700
7702
|
}
|
|
7701
|
-
function
|
|
7702
|
-
const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(
|
|
7703
|
+
function Ec(e, t, n) {
|
|
7704
|
+
const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(Cc(n));
|
|
7703
7705
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7704
7706
|
}
|
|
7705
7707
|
const li = {
|
|
7706
|
-
blockquote:
|
|
7708
|
+
blockquote: Ys,
|
|
7707
7709
|
break: tr,
|
|
7708
|
-
code:
|
|
7709
|
-
definition:
|
|
7710
|
+
code: Zs,
|
|
7711
|
+
definition: nc,
|
|
7710
7712
|
emphasis: Qr,
|
|
7711
7713
|
hardBreak: tr,
|
|
7712
|
-
heading:
|
|
7714
|
+
heading: lc,
|
|
7713
7715
|
html: Gr,
|
|
7714
7716
|
image: Kr,
|
|
7715
7717
|
imageReference: Jr,
|
|
7716
7718
|
inlineCode: Zr,
|
|
7717
7719
|
link: ni,
|
|
7718
7720
|
linkReference: ti,
|
|
7719
|
-
list:
|
|
7720
|
-
listItem:
|
|
7721
|
-
paragraph:
|
|
7722
|
-
root:
|
|
7721
|
+
list: mc,
|
|
7722
|
+
listItem: dc,
|
|
7723
|
+
paragraph: yc,
|
|
7724
|
+
root: xc,
|
|
7723
7725
|
strong: ii,
|
|
7724
|
-
text:
|
|
7725
|
-
thematicBreak:
|
|
7726
|
+
text: Sc,
|
|
7727
|
+
thematicBreak: Ec
|
|
7726
7728
|
};
|
|
7727
|
-
function
|
|
7729
|
+
function Ic() {
|
|
7728
7730
|
return {
|
|
7729
7731
|
enter: {
|
|
7730
|
-
table:
|
|
7732
|
+
table: Ac,
|
|
7731
7733
|
tableData: rr,
|
|
7732
7734
|
tableHeader: rr,
|
|
7733
|
-
tableRow:
|
|
7735
|
+
tableRow: Pc
|
|
7734
7736
|
},
|
|
7735
7737
|
exit: {
|
|
7736
|
-
codeText:
|
|
7737
|
-
table:
|
|
7738
|
-
tableData:
|
|
7739
|
-
tableHeader:
|
|
7740
|
-
tableRow:
|
|
7738
|
+
codeText: vc,
|
|
7739
|
+
table: Tc,
|
|
7740
|
+
tableData: Pn,
|
|
7741
|
+
tableHeader: Pn,
|
|
7742
|
+
tableRow: Pn
|
|
7741
7743
|
}
|
|
7742
7744
|
};
|
|
7743
7745
|
}
|
|
7744
|
-
function
|
|
7746
|
+
function Ac(e) {
|
|
7745
7747
|
const t = e._align;
|
|
7746
7748
|
this.enter(
|
|
7747
7749
|
{
|
|
@@ -7754,28 +7756,28 @@ function Ec(e) {
|
|
|
7754
7756
|
e
|
|
7755
7757
|
), this.data.inTable = !0;
|
|
7756
7758
|
}
|
|
7757
|
-
function
|
|
7759
|
+
function Tc(e) {
|
|
7758
7760
|
this.exit(e), this.data.inTable = void 0;
|
|
7759
7761
|
}
|
|
7760
|
-
function
|
|
7762
|
+
function Pc(e) {
|
|
7761
7763
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
7762
7764
|
}
|
|
7763
|
-
function
|
|
7765
|
+
function Pn(e) {
|
|
7764
7766
|
this.exit(e);
|
|
7765
7767
|
}
|
|
7766
7768
|
function rr(e) {
|
|
7767
7769
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
7768
7770
|
}
|
|
7769
|
-
function
|
|
7771
|
+
function vc(e) {
|
|
7770
7772
|
let t = this.resume();
|
|
7771
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
7773
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, zc));
|
|
7772
7774
|
const n = this.stack[this.stack.length - 1];
|
|
7773
7775
|
n.type, n.value = t, this.exit(e);
|
|
7774
7776
|
}
|
|
7775
|
-
function
|
|
7777
|
+
function zc(e, t) {
|
|
7776
7778
|
return t === "|" ? t : e;
|
|
7777
7779
|
}
|
|
7778
|
-
function
|
|
7780
|
+
function Dc(e) {
|
|
7779
7781
|
const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
|
|
7780
7782
|
return {
|
|
7781
7783
|
unsafe: [
|
|
@@ -7821,7 +7823,7 @@ function vc(e) {
|
|
|
7821
7823
|
return A(), y(), E;
|
|
7822
7824
|
}
|
|
7823
7825
|
function s(h, d) {
|
|
7824
|
-
return
|
|
7826
|
+
return qs(h, {
|
|
7825
7827
|
align: d,
|
|
7826
7828
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
7827
7829
|
alignDelimiters: r,
|
|
@@ -7852,26 +7854,26 @@ function vc(e) {
|
|
|
7852
7854
|
return x.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
7853
7855
|
}
|
|
7854
7856
|
}
|
|
7855
|
-
function
|
|
7857
|
+
function Lc() {
|
|
7856
7858
|
return {
|
|
7857
7859
|
exit: {
|
|
7858
7860
|
taskListCheckValueChecked: ir,
|
|
7859
7861
|
taskListCheckValueUnchecked: ir,
|
|
7860
|
-
paragraph:
|
|
7862
|
+
paragraph: _c
|
|
7861
7863
|
}
|
|
7862
7864
|
};
|
|
7863
7865
|
}
|
|
7864
|
-
function
|
|
7866
|
+
function Fc() {
|
|
7865
7867
|
return {
|
|
7866
7868
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
7867
|
-
handlers: { listItem:
|
|
7869
|
+
handlers: { listItem: Rc }
|
|
7868
7870
|
};
|
|
7869
7871
|
}
|
|
7870
7872
|
function ir(e) {
|
|
7871
7873
|
const t = this.stack[this.stack.length - 2];
|
|
7872
7874
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
7873
7875
|
}
|
|
7874
|
-
function
|
|
7876
|
+
function _c(e) {
|
|
7875
7877
|
const t = this.stack[this.stack.length - 2];
|
|
7876
7878
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
7877
7879
|
const n = this.stack[this.stack.length - 1];
|
|
@@ -7892,7 +7894,7 @@ function Lc(e) {
|
|
|
7892
7894
|
}
|
|
7893
7895
|
this.exit(e);
|
|
7894
7896
|
}
|
|
7895
|
-
function
|
|
7897
|
+
function Rc(e, t, n, r) {
|
|
7896
7898
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
7897
7899
|
o && a.move(l);
|
|
7898
7900
|
let u = li.listItem(e, t, n, {
|
|
@@ -7904,55 +7906,55 @@ function Fc(e, t, n, r) {
|
|
|
7904
7906
|
return f + l;
|
|
7905
7907
|
}
|
|
7906
7908
|
}
|
|
7907
|
-
function
|
|
7909
|
+
function Oc() {
|
|
7908
7910
|
return [
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7911
|
+
ms(),
|
|
7912
|
+
Rs(),
|
|
7913
|
+
Bs(),
|
|
7914
|
+
Ic(),
|
|
7915
|
+
Lc()
|
|
7914
7916
|
];
|
|
7915
7917
|
}
|
|
7916
|
-
function
|
|
7918
|
+
function Mc(e) {
|
|
7917
7919
|
return {
|
|
7918
7920
|
extensions: [
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7921
|
+
gs(),
|
|
7922
|
+
Os(e),
|
|
7923
|
+
js(),
|
|
7924
|
+
Dc(e),
|
|
7925
|
+
Fc()
|
|
7924
7926
|
]
|
|
7925
7927
|
};
|
|
7926
7928
|
}
|
|
7927
|
-
const
|
|
7928
|
-
tokenize:
|
|
7929
|
+
const Nc = {
|
|
7930
|
+
tokenize: $c,
|
|
7929
7931
|
partial: !0
|
|
7930
7932
|
}, oi = {
|
|
7931
|
-
tokenize:
|
|
7933
|
+
tokenize: qc,
|
|
7932
7934
|
partial: !0
|
|
7933
7935
|
}, ai = {
|
|
7934
|
-
tokenize:
|
|
7936
|
+
tokenize: Wc,
|
|
7935
7937
|
partial: !0
|
|
7936
7938
|
}, ui = {
|
|
7937
|
-
tokenize:
|
|
7939
|
+
tokenize: Yc,
|
|
7938
7940
|
partial: !0
|
|
7939
|
-
},
|
|
7940
|
-
tokenize:
|
|
7941
|
+
}, Bc = {
|
|
7942
|
+
tokenize: Xc,
|
|
7941
7943
|
partial: !0
|
|
7942
7944
|
}, si = {
|
|
7943
7945
|
name: "wwwAutolink",
|
|
7944
|
-
tokenize:
|
|
7946
|
+
tokenize: Uc,
|
|
7945
7947
|
previous: fi
|
|
7946
7948
|
}, ci = {
|
|
7947
7949
|
name: "protocolAutolink",
|
|
7948
|
-
tokenize:
|
|
7950
|
+
tokenize: Vc,
|
|
7949
7951
|
previous: hi
|
|
7950
7952
|
}, de = {
|
|
7951
7953
|
name: "emailAutolink",
|
|
7952
|
-
tokenize:
|
|
7954
|
+
tokenize: Hc,
|
|
7953
7955
|
previous: pi
|
|
7954
7956
|
}, fe = {};
|
|
7955
|
-
function
|
|
7957
|
+
function jc() {
|
|
7956
7958
|
return {
|
|
7957
7959
|
text: fe
|
|
7958
7960
|
};
|
|
@@ -7968,7 +7970,7 @@ fe[72] = [de, ci];
|
|
|
7968
7970
|
fe[104] = [de, ci];
|
|
7969
7971
|
fe[87] = [de, si];
|
|
7970
7972
|
fe[119] = [de, si];
|
|
7971
|
-
function
|
|
7973
|
+
function Hc(e, t, n) {
|
|
7972
7974
|
const r = this;
|
|
7973
7975
|
let i, o;
|
|
7974
7976
|
return l;
|
|
@@ -7979,7 +7981,7 @@ function Bc(e, t, n) {
|
|
|
7979
7981
|
return jn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7980
7982
|
}
|
|
7981
7983
|
function u(c) {
|
|
7982
|
-
return c === 46 ? e.check(
|
|
7984
|
+
return c === 46 ? e.check(Bc, f, s)(c) : c === 45 || c === 95 || G(c) ? (o = !0, e.consume(c), u) : f(c);
|
|
7983
7985
|
}
|
|
7984
7986
|
function s(c) {
|
|
7985
7987
|
return e.consume(c), i = !0, u;
|
|
@@ -7988,17 +7990,17 @@ function Bc(e, t, n) {
|
|
|
7988
7990
|
return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
|
|
7989
7991
|
}
|
|
7990
7992
|
}
|
|
7991
|
-
function
|
|
7993
|
+
function Uc(e, t, n) {
|
|
7992
7994
|
const r = this;
|
|
7993
7995
|
return i;
|
|
7994
7996
|
function i(l) {
|
|
7995
|
-
return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
|
|
7997
|
+
return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Nc, e.attempt(oi, e.attempt(ai, o), n), n)(l));
|
|
7996
7998
|
}
|
|
7997
7999
|
function o(l) {
|
|
7998
8000
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
|
7999
8001
|
}
|
|
8000
8002
|
}
|
|
8001
|
-
function
|
|
8003
|
+
function Vc(e, t, n) {
|
|
8002
8004
|
const r = this;
|
|
8003
8005
|
let i = "", o = !1;
|
|
8004
8006
|
return l;
|
|
@@ -8019,13 +8021,13 @@ function Hc(e, t, n) {
|
|
|
8019
8021
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
|
|
8020
8022
|
}
|
|
8021
8023
|
function s(c) {
|
|
8022
|
-
return c === null ||
|
|
8024
|
+
return c === null || rn(c) || U(c) || Ee(c) || sn(c) ? n(c) : e.attempt(oi, e.attempt(ai, f), n)(c);
|
|
8023
8025
|
}
|
|
8024
8026
|
function f(c) {
|
|
8025
8027
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
8026
8028
|
}
|
|
8027
8029
|
}
|
|
8028
|
-
function
|
|
8030
|
+
function $c(e, t, n) {
|
|
8029
8031
|
let r = 0;
|
|
8030
8032
|
return i;
|
|
8031
8033
|
function i(l) {
|
|
@@ -8035,11 +8037,11 @@ function Uc(e, t, n) {
|
|
|
8035
8037
|
return l === null ? n(l) : t(l);
|
|
8036
8038
|
}
|
|
8037
8039
|
}
|
|
8038
|
-
function
|
|
8040
|
+
function qc(e, t, n) {
|
|
8039
8041
|
let r, i, o;
|
|
8040
8042
|
return l;
|
|
8041
8043
|
function l(s) {
|
|
8042
|
-
return s === 46 || s === 95 ? e.check(ui, u, a)(s) : s === null || U(s) || Ee(s) || s !== 45 &&
|
|
8044
|
+
return s === 46 || s === 95 ? e.check(ui, u, a)(s) : s === null || U(s) || Ee(s) || s !== 45 && sn(s) ? u(s) : (o = !0, e.consume(s), l);
|
|
8043
8045
|
}
|
|
8044
8046
|
function a(s) {
|
|
8045
8047
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
|
@@ -8048,7 +8050,7 @@ function Vc(e, t, n) {
|
|
|
8048
8050
|
return i || r || !o ? n(s) : t(s);
|
|
8049
8051
|
}
|
|
8050
8052
|
}
|
|
8051
|
-
function
|
|
8053
|
+
function Wc(e, t) {
|
|
8052
8054
|
let n = 0, r = 0;
|
|
8053
8055
|
return i;
|
|
8054
8056
|
function i(l) {
|
|
@@ -8058,7 +8060,7 @@ function $c(e, t) {
|
|
|
8058
8060
|
return l === 41 && r++, e.consume(l), i;
|
|
8059
8061
|
}
|
|
8060
8062
|
}
|
|
8061
|
-
function
|
|
8063
|
+
function Yc(e, t, n) {
|
|
8062
8064
|
return r;
|
|
8063
8065
|
function r(a) {
|
|
8064
8066
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
|
|
@@ -8077,7 +8079,7 @@ function qc(e, t, n) {
|
|
|
8077
8079
|
return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
|
|
8078
8080
|
}
|
|
8079
8081
|
}
|
|
8080
|
-
function
|
|
8082
|
+
function Xc(e, t, n) {
|
|
8081
8083
|
return r;
|
|
8082
8084
|
function r(o) {
|
|
8083
8085
|
return e.consume(o), i;
|
|
@@ -8113,37 +8115,37 @@ function lt(e) {
|
|
|
8113
8115
|
}
|
|
8114
8116
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
8115
8117
|
}
|
|
8116
|
-
const
|
|
8117
|
-
tokenize:
|
|
8118
|
+
const Qc = {
|
|
8119
|
+
tokenize: rf,
|
|
8118
8120
|
partial: !0
|
|
8119
8121
|
};
|
|
8120
|
-
function
|
|
8122
|
+
function Gc() {
|
|
8121
8123
|
return {
|
|
8122
8124
|
document: {
|
|
8123
8125
|
91: {
|
|
8124
8126
|
name: "gfmFootnoteDefinition",
|
|
8125
|
-
tokenize:
|
|
8127
|
+
tokenize: ef,
|
|
8126
8128
|
continuation: {
|
|
8127
|
-
tokenize:
|
|
8129
|
+
tokenize: nf
|
|
8128
8130
|
},
|
|
8129
|
-
exit:
|
|
8131
|
+
exit: tf
|
|
8130
8132
|
}
|
|
8131
8133
|
},
|
|
8132
8134
|
text: {
|
|
8133
8135
|
91: {
|
|
8134
8136
|
name: "gfmFootnoteCall",
|
|
8135
|
-
tokenize:
|
|
8137
|
+
tokenize: Zc
|
|
8136
8138
|
},
|
|
8137
8139
|
93: {
|
|
8138
8140
|
name: "gfmPotentialFootnoteCall",
|
|
8139
8141
|
add: "after",
|
|
8140
|
-
tokenize:
|
|
8141
|
-
resolveTo:
|
|
8142
|
+
tokenize: Kc,
|
|
8143
|
+
resolveTo: Jc
|
|
8142
8144
|
}
|
|
8143
8145
|
}
|
|
8144
8146
|
};
|
|
8145
8147
|
}
|
|
8146
|
-
function
|
|
8148
|
+
function Kc(e, t, n) {
|
|
8147
8149
|
const r = this;
|
|
8148
8150
|
let i = r.events.length;
|
|
8149
8151
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -8168,7 +8170,7 @@ function Qc(e, t, n) {
|
|
|
8168
8170
|
return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
|
|
8169
8171
|
}
|
|
8170
8172
|
}
|
|
8171
|
-
function
|
|
8173
|
+
function Jc(e, t) {
|
|
8172
8174
|
let n = e.length;
|
|
8173
8175
|
for (; n--; )
|
|
8174
8176
|
if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
@@ -8218,7 +8220,7 @@ function Gc(e, t) {
|
|
|
8218
8220
|
];
|
|
8219
8221
|
return e.splice(n, e.length - n + 1, ...a), e;
|
|
8220
8222
|
}
|
|
8221
|
-
function
|
|
8223
|
+
function Zc(e, t, n) {
|
|
8222
8224
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8223
8225
|
let o = 0, l;
|
|
8224
8226
|
return a;
|
|
@@ -8248,7 +8250,7 @@ function Kc(e, t, n) {
|
|
|
8248
8250
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
|
|
8249
8251
|
}
|
|
8250
8252
|
}
|
|
8251
|
-
function
|
|
8253
|
+
function ef(e, t, n) {
|
|
8252
8254
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8253
8255
|
let o, l = 0, a;
|
|
8254
8256
|
return u;
|
|
@@ -8284,13 +8286,13 @@ function Jc(e, t, n) {
|
|
|
8284
8286
|
return t(d);
|
|
8285
8287
|
}
|
|
8286
8288
|
}
|
|
8287
|
-
function
|
|
8288
|
-
return e.check(We, t, e.attempt(
|
|
8289
|
+
function nf(e, t, n) {
|
|
8290
|
+
return e.check(We, t, e.attempt(Qc, t, n));
|
|
8289
8291
|
}
|
|
8290
|
-
function
|
|
8292
|
+
function tf(e) {
|
|
8291
8293
|
e.exit("gfmFootnoteDefinition");
|
|
8292
8294
|
}
|
|
8293
|
-
function
|
|
8295
|
+
function rf(e, t, n) {
|
|
8294
8296
|
const r = this;
|
|
8295
8297
|
return O(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
8296
8298
|
function i(o) {
|
|
@@ -8298,7 +8300,7 @@ function nf(e, t, n) {
|
|
|
8298
8300
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
|
|
8299
8301
|
}
|
|
8300
8302
|
}
|
|
8301
|
-
function
|
|
8303
|
+
function lf(e) {
|
|
8302
8304
|
let n = (e || {}).singleTilde;
|
|
8303
8305
|
const r = {
|
|
8304
8306
|
name: "strikethrough",
|
|
@@ -8334,7 +8336,7 @@ function tf(e) {
|
|
|
8334
8336
|
start: Object.assign({}, l[s][1].end),
|
|
8335
8337
|
end: Object.assign({}, l[u][1].start)
|
|
8336
8338
|
}, p = [["enter", f, a], ["enter", l[s][1], a], ["exit", l[s][1], a], ["enter", c, a]], h = a.parser.constructs.insideSpan.null;
|
|
8337
|
-
h && re(p, p.length, 0,
|
|
8339
|
+
h && re(p, p.length, 0, cn(h, l.slice(s + 1, u), a)), re(p, p.length, 0, [["exit", c, a], ["enter", l[u][1], a], ["exit", l[u][1], a], ["exit", f, a]]), re(l, s - 1, u - s + 3, p), u = s + p.length - 2;
|
|
8338
8340
|
break;
|
|
8339
8341
|
}
|
|
8340
8342
|
}
|
|
@@ -8359,7 +8361,7 @@ function tf(e) {
|
|
|
8359
8361
|
}
|
|
8360
8362
|
}
|
|
8361
8363
|
}
|
|
8362
|
-
class
|
|
8364
|
+
class of {
|
|
8363
8365
|
/**
|
|
8364
8366
|
* Create a new edit map.
|
|
8365
8367
|
*/
|
|
@@ -8375,7 +8377,7 @@ class rf {
|
|
|
8375
8377
|
* @returns {undefined}
|
|
8376
8378
|
*/
|
|
8377
8379
|
add(t, n, r) {
|
|
8378
|
-
|
|
8380
|
+
af(this, t, n, r);
|
|
8379
8381
|
}
|
|
8380
8382
|
// To do: add this when moving to `micromark`.
|
|
8381
8383
|
// /**
|
|
@@ -8414,7 +8416,7 @@ class rf {
|
|
|
8414
8416
|
this.map.length = 0;
|
|
8415
8417
|
}
|
|
8416
8418
|
}
|
|
8417
|
-
function
|
|
8419
|
+
function af(e, t, n, r) {
|
|
8418
8420
|
let i = 0;
|
|
8419
8421
|
if (!(n === 0 && r.length === 0)) {
|
|
8420
8422
|
for (; i < e.map.length; ) {
|
|
@@ -8427,7 +8429,7 @@ function lf(e, t, n, r) {
|
|
|
8427
8429
|
e.map.push([t, n, r]);
|
|
8428
8430
|
}
|
|
8429
8431
|
}
|
|
8430
|
-
function
|
|
8432
|
+
function uf(e, t) {
|
|
8431
8433
|
let n = !1;
|
|
8432
8434
|
const r = [];
|
|
8433
8435
|
for (; t < e.length; ) {
|
|
@@ -8447,18 +8449,18 @@ function of(e, t) {
|
|
|
8447
8449
|
}
|
|
8448
8450
|
return r;
|
|
8449
8451
|
}
|
|
8450
|
-
function
|
|
8452
|
+
function sf() {
|
|
8451
8453
|
return {
|
|
8452
8454
|
flow: {
|
|
8453
8455
|
null: {
|
|
8454
8456
|
name: "table",
|
|
8455
|
-
tokenize:
|
|
8456
|
-
resolveAll:
|
|
8457
|
+
tokenize: cf,
|
|
8458
|
+
resolveAll: ff
|
|
8457
8459
|
}
|
|
8458
8460
|
}
|
|
8459
8461
|
};
|
|
8460
8462
|
}
|
|
8461
|
-
function
|
|
8463
|
+
function cf(e, t, n) {
|
|
8462
8464
|
const r = this;
|
|
8463
8465
|
let i = 0, o = 0, l;
|
|
8464
8466
|
return a;
|
|
@@ -8528,9 +8530,9 @@ function uf(e, t, n) {
|
|
|
8528
8530
|
return k === 92 || k === 124 ? (e.consume(k), $) : $(k);
|
|
8529
8531
|
}
|
|
8530
8532
|
}
|
|
8531
|
-
function
|
|
8533
|
+
function ff(e, t) {
|
|
8532
8534
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
|
|
8533
|
-
const p = new
|
|
8535
|
+
const p = new of();
|
|
8534
8536
|
for (; ++n < e.length; ) {
|
|
8535
8537
|
const h = e[n], d = h[1];
|
|
8536
8538
|
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (lr(p, t, u, s, f), f = void 0, u = 0), s = {
|
|
@@ -8547,7 +8549,7 @@ function sf(e, t) {
|
|
|
8547
8549
|
}
|
|
8548
8550
|
for (u !== 0 && lr(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
8549
8551
|
const h = t.events[n];
|
|
8550
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
8552
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = uf(t.events, n));
|
|
8551
8553
|
}
|
|
8552
8554
|
return e;
|
|
8553
8555
|
}
|
|
@@ -8585,18 +8587,18 @@ function ze(e, t) {
|
|
|
8585
8587
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8586
8588
|
return n[1][r];
|
|
8587
8589
|
}
|
|
8588
|
-
const
|
|
8590
|
+
const hf = {
|
|
8589
8591
|
name: "tasklistCheck",
|
|
8590
|
-
tokenize:
|
|
8592
|
+
tokenize: mf
|
|
8591
8593
|
};
|
|
8592
|
-
function
|
|
8594
|
+
function pf() {
|
|
8593
8595
|
return {
|
|
8594
8596
|
text: {
|
|
8595
|
-
91:
|
|
8597
|
+
91: hf
|
|
8596
8598
|
}
|
|
8597
8599
|
};
|
|
8598
8600
|
}
|
|
8599
|
-
function
|
|
8601
|
+
function mf(e, t, n) {
|
|
8600
8602
|
const r = this;
|
|
8601
8603
|
return i;
|
|
8602
8604
|
function i(u) {
|
|
@@ -8615,59 +8617,75 @@ function hf(e, t, n) {
|
|
|
8615
8617
|
}
|
|
8616
8618
|
function a(u) {
|
|
8617
8619
|
return v(u) ? t(u) : _(u) ? e.check({
|
|
8618
|
-
tokenize:
|
|
8620
|
+
tokenize: gf
|
|
8619
8621
|
}, t, n)(u) : n(u);
|
|
8620
8622
|
}
|
|
8621
8623
|
}
|
|
8622
|
-
function
|
|
8624
|
+
function gf(e, t, n) {
|
|
8623
8625
|
return O(e, r, "whitespace");
|
|
8624
8626
|
function r(i) {
|
|
8625
8627
|
return i === null ? n(i) : t(i);
|
|
8626
8628
|
}
|
|
8627
8629
|
}
|
|
8628
|
-
function
|
|
8630
|
+
function df(e) {
|
|
8629
8631
|
return Sr([
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8632
|
+
jc(),
|
|
8633
|
+
Gc(),
|
|
8634
|
+
lf(e),
|
|
8635
|
+
sf(),
|
|
8636
|
+
pf()
|
|
8635
8637
|
]);
|
|
8636
8638
|
}
|
|
8637
|
-
const
|
|
8638
|
-
function
|
|
8639
|
+
const yf = {};
|
|
8640
|
+
function kf(e) {
|
|
8639
8641
|
const t = (
|
|
8640
8642
|
/** @type {Processor<Root>} */
|
|
8641
8643
|
this
|
|
8642
|
-
), n = e ||
|
|
8643
|
-
i.push(
|
|
8644
|
+
), n = e || yf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
8645
|
+
i.push(df(n)), o.push(Oc()), l.push(Mc(n));
|
|
8644
8646
|
}
|
|
8645
|
-
function
|
|
8646
|
-
$r(e, [/\r?\n|\r/g,
|
|
8647
|
+
function xf(e) {
|
|
8648
|
+
$r(e, [/\r?\n|\r/g, bf]);
|
|
8647
8649
|
}
|
|
8648
|
-
function
|
|
8650
|
+
function bf() {
|
|
8649
8651
|
return { type: "break" };
|
|
8650
8652
|
}
|
|
8651
|
-
function
|
|
8653
|
+
function wf() {
|
|
8652
8654
|
return function(e) {
|
|
8653
|
-
|
|
8655
|
+
xf(e);
|
|
8654
8656
|
};
|
|
8655
8657
|
}
|
|
8656
|
-
const
|
|
8657
|
-
markdown:
|
|
8658
|
+
const Sf = "_markdown_33sn4_1", or = {
|
|
8659
|
+
markdown: Sf
|
|
8660
|
+
}, Cf = {
|
|
8661
|
+
aside: ({ node: e, className: t, children: n, ...r }) => {
|
|
8662
|
+
const i = (e == null ? void 0 : e.properties) ?? {}, o = typeof i["data-admonition"] == "string" ? i["data-admonition"] : "note", l = typeof i["data-admonition-variant"] == "string" ? i["data-admonition-variant"] : "unknown", a = typeof i["data-admonition-icon"] == "string" ? i["data-admonition-icon"] : void 0, u = typeof i["data-admonition-title"] == "string" ? i["data-admonition-title"] : void 0;
|
|
8663
|
+
return /* @__PURE__ */ nn(
|
|
8664
|
+
Ai,
|
|
8665
|
+
{
|
|
8666
|
+
...r,
|
|
8667
|
+
className: t,
|
|
8668
|
+
admonitionType: o,
|
|
8669
|
+
variant: l,
|
|
8670
|
+
icon: a,
|
|
8671
|
+
title: u,
|
|
8672
|
+
children: n
|
|
8673
|
+
}
|
|
8674
|
+
);
|
|
8675
|
+
}
|
|
8658
8676
|
};
|
|
8659
|
-
function
|
|
8677
|
+
function Pf({ children: e, className: t, components: n }) {
|
|
8660
8678
|
if (!e) return null;
|
|
8661
|
-
const r = t ? `${or.markdown} ${t}` : or.markdown;
|
|
8662
|
-
return /* @__PURE__ */
|
|
8663
|
-
|
|
8679
|
+
const r = t ? `${or.markdown} ${t}` : or.markdown, i = { ...Cf, ...n };
|
|
8680
|
+
return /* @__PURE__ */ nn("div", { className: r, children: /* @__PURE__ */ nn(
|
|
8681
|
+
ls,
|
|
8664
8682
|
{
|
|
8665
|
-
remarkPlugins: [
|
|
8666
|
-
components:
|
|
8683
|
+
remarkPlugins: [kf, wf, Ii],
|
|
8684
|
+
components: i,
|
|
8667
8685
|
children: e
|
|
8668
8686
|
}
|
|
8669
8687
|
) });
|
|
8670
8688
|
}
|
|
8671
8689
|
export {
|
|
8672
|
-
|
|
8690
|
+
Pf as Markdown
|
|
8673
8691
|
};
|