@versini/sassysaint 6.6.10 → 6.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.D4Te-1xT.js → App.BO5ERHO6.js} +911 -887
- package/dist/chunks/{MessageAssistant.Dntrn2Cr.js → ChatBubbleAssistant.CdMTnYhs.js} +794 -794
- package/dist/chunks/{MarkdownWithExtra.Db66Hm3K.js → MarkdownWithExtra.DC_AHnw9.js} +2 -2
- package/dist/chunks/{index.CNAtqeo6.js → index.BiSTuu2f.js} +1 -1
- package/dist/chunks/{index.BYwV-qI7.js → index.DBUj3LXB.js} +4 -4
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as en, jsx as re, Fragment as
|
|
2
|
-
import { AppContext as
|
|
1
|
+
import { jsxs as en, jsx as re, Fragment as er } from "react/jsx-runtime";
|
|
2
|
+
import { AppContext as gi, E as di, Re as ct } from "./App.BO5ERHO6.js";
|
|
3
3
|
import hn from "clsx";
|
|
4
|
-
import { lazy as
|
|
5
|
-
import { LOCAL_STORAGE_PREFIX as
|
|
6
|
-
function
|
|
4
|
+
import { lazy as yi, useContext as ki, Suspense as xi } from "react";
|
|
5
|
+
import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, durationFormatter as Si } from "./index.BiSTuu2f.js";
|
|
6
|
+
function nr(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
9
|
/*!
|
|
@@ -19,7 +19,7 @@ try {
|
|
|
19
19
|
});
|
|
20
20
|
} catch {
|
|
21
21
|
}
|
|
22
|
-
const ft = "av-spinner",
|
|
22
|
+
const ft = "av-spinner", Ci = ({
|
|
23
23
|
spinnerRef: e,
|
|
24
24
|
mode: t = "system",
|
|
25
25
|
type: n = "circle",
|
|
@@ -63,22 +63,22 @@ function ef(e) {
|
|
|
63
63
|
}
|
|
64
64
|
return t;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Ei(e, t) {
|
|
67
67
|
const n = {};
|
|
68
68
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
69
69
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
70
70
|
).trim();
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const Ii = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ai = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ti = {};
|
|
73
73
|
function ht(e, t) {
|
|
74
|
-
return (
|
|
74
|
+
return (Ti.jsx ? Ai : Ii).test(e);
|
|
75
75
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
76
|
+
const Pi = /[ \t\n\f\r]/g;
|
|
77
|
+
function vi(e) {
|
|
78
78
|
return typeof e == "object" ? e.type === "text" ? pt(e.value) : !1 : pt(e);
|
|
79
79
|
}
|
|
80
80
|
function pt(e) {
|
|
81
|
-
return e.replace(
|
|
81
|
+
return e.replace(Pi, "") === "";
|
|
82
82
|
}
|
|
83
83
|
class Ve {
|
|
84
84
|
/**
|
|
@@ -94,7 +94,7 @@ class Ve {
|
|
|
94
94
|
Ve.prototype.property = {};
|
|
95
95
|
Ve.prototype.normal = {};
|
|
96
96
|
Ve.prototype.space = null;
|
|
97
|
-
function
|
|
97
|
+
function tr(e, t) {
|
|
98
98
|
const n = {}, r = {};
|
|
99
99
|
let i = -1;
|
|
100
100
|
for (; ++i < e.length; )
|
|
@@ -124,12 +124,12 @@ le.prototype.spaceSeparated = !1;
|
|
|
124
124
|
le.prototype.commaOrSpaceSeparated = !1;
|
|
125
125
|
le.prototype.mustUseProperty = !1;
|
|
126
126
|
le.prototype.defined = !1;
|
|
127
|
-
let
|
|
128
|
-
const M = Ie(), W = Ie(),
|
|
127
|
+
let Li = 0;
|
|
128
|
+
const M = Ie(), W = Ie(), rr = Ie(), I = Ie(), V = Ie(), ze = Ie(), ne = Ie();
|
|
129
129
|
function Ie() {
|
|
130
|
-
return 2 ** ++
|
|
130
|
+
return 2 ** ++Li;
|
|
131
131
|
}
|
|
132
|
-
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: M, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: I, overloadedBoolean:
|
|
132
|
+
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: M, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: I, overloadedBoolean: rr, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), pn = Object.keys(Dn);
|
|
133
133
|
class Hn extends le {
|
|
134
134
|
/**
|
|
135
135
|
* @constructor
|
|
@@ -151,12 +151,12 @@ Hn.prototype.defined = !0;
|
|
|
151
151
|
function mt(e, t, n) {
|
|
152
152
|
n && (e[t] = n);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const zi = {}.hasOwnProperty;
|
|
155
155
|
function Fe(e) {
|
|
156
156
|
const t = {}, n = {};
|
|
157
157
|
let r;
|
|
158
158
|
for (r in e.properties)
|
|
159
|
-
if (
|
|
159
|
+
if (zi.call(e.properties, r)) {
|
|
160
160
|
const i = e.properties[r], o = new Hn(
|
|
161
161
|
r,
|
|
162
162
|
e.transform(e.attributes || {}, r),
|
|
@@ -167,7 +167,7 @@ function Fe(e) {
|
|
|
167
167
|
}
|
|
168
168
|
return new Ve(t, n, e.space);
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const ir = Fe({
|
|
171
171
|
space: "xlink",
|
|
172
172
|
transform(e, t) {
|
|
173
173
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
@@ -181,25 +181,25 @@ const lr = Fe({
|
|
|
181
181
|
xLinkTitle: null,
|
|
182
182
|
xLinkType: null
|
|
183
183
|
}
|
|
184
|
-
}),
|
|
184
|
+
}), lr = Fe({
|
|
185
185
|
space: "xml",
|
|
186
186
|
transform(e, t) {
|
|
187
187
|
return "xml:" + t.slice(3).toLowerCase();
|
|
188
188
|
},
|
|
189
189
|
properties: { xmlLang: null, xmlBase: null, xmlSpace: null }
|
|
190
190
|
});
|
|
191
|
-
function
|
|
191
|
+
function or(e, t) {
|
|
192
192
|
return t in e ? e[t] : t;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
194
|
+
function ar(e, t) {
|
|
195
|
+
return or(e, t.toLowerCase());
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const ur = Fe({
|
|
198
198
|
space: "xmlns",
|
|
199
199
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
200
|
-
transform:
|
|
200
|
+
transform: ar,
|
|
201
201
|
properties: { xmlns: null, xmlnsXLink: null }
|
|
202
|
-
}),
|
|
202
|
+
}), sr = Fe({
|
|
203
203
|
transform(e, t) {
|
|
204
204
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
205
205
|
},
|
|
@@ -254,7 +254,7 @@ const sr = Fe({
|
|
|
254
254
|
ariaValueText: null,
|
|
255
255
|
role: null
|
|
256
256
|
}
|
|
257
|
-
}),
|
|
257
|
+
}), Di = Fe({
|
|
258
258
|
space: "html",
|
|
259
259
|
attributes: {
|
|
260
260
|
acceptcharset: "accept-charset",
|
|
@@ -262,7 +262,7 @@ const sr = Fe({
|
|
|
262
262
|
htmlfor: "for",
|
|
263
263
|
httpequiv: "http-equiv"
|
|
264
264
|
},
|
|
265
|
-
transform:
|
|
265
|
+
transform: ar,
|
|
266
266
|
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
|
267
267
|
properties: {
|
|
268
268
|
// Standard Properties.
|
|
@@ -304,7 +304,7 @@ const sr = Fe({
|
|
|
304
304
|
dir: null,
|
|
305
305
|
dirName: null,
|
|
306
306
|
disabled: M,
|
|
307
|
-
download:
|
|
307
|
+
download: rr,
|
|
308
308
|
draggable: W,
|
|
309
309
|
encType: null,
|
|
310
310
|
enterKeyHint: null,
|
|
@@ -615,7 +615,7 @@ const sr = Fe({
|
|
|
615
615
|
security: null,
|
|
616
616
|
unselectable: null
|
|
617
617
|
}
|
|
618
|
-
}),
|
|
618
|
+
}), Fi = Fe({
|
|
619
619
|
space: "svg",
|
|
620
620
|
attributes: {
|
|
621
621
|
accentHeight: "accent-height",
|
|
@@ -792,7 +792,7 @@ const sr = Fe({
|
|
|
792
792
|
playbackOrder: "playbackorder",
|
|
793
793
|
timelineBegin: "timelinebegin"
|
|
794
794
|
},
|
|
795
|
-
transform:
|
|
795
|
+
transform: or,
|
|
796
796
|
properties: {
|
|
797
797
|
about: ne,
|
|
798
798
|
accentHeight: I,
|
|
@@ -1174,20 +1174,20 @@ const sr = Fe({
|
|
|
1174
1174
|
z: null,
|
|
1175
1175
|
zoomAndPan: null
|
|
1176
1176
|
}
|
|
1177
|
-
}),
|
|
1178
|
-
function
|
|
1177
|
+
}), _i = /^data[-\w.:]+$/i, gt = /-[a-z]/g, Ri = /[A-Z]/g;
|
|
1178
|
+
function Oi(e, t) {
|
|
1179
1179
|
const n = zn(t);
|
|
1180
1180
|
let r = t, i = le;
|
|
1181
1181
|
if (n in e.normal)
|
|
1182
1182
|
return e.property[e.normal[n]];
|
|
1183
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
1183
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && _i.test(t)) {
|
|
1184
1184
|
if (t.charAt(4) === "-") {
|
|
1185
|
-
const o = t.slice(5).replace(gt,
|
|
1185
|
+
const o = t.slice(5).replace(gt, Ni);
|
|
1186
1186
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
1187
1187
|
} else {
|
|
1188
1188
|
const o = t.slice(4);
|
|
1189
1189
|
if (!gt.test(o)) {
|
|
1190
|
-
let l = o.replace(
|
|
1190
|
+
let l = o.replace(Ri, Mi);
|
|
1191
1191
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
@@ -1195,13 +1195,13 @@ function Mi(e, t) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
return new i(r, t);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Mi(e) {
|
|
1199
1199
|
return "-" + e.toLowerCase();
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Ni(e) {
|
|
1202
1202
|
return e.charAt(1).toUpperCase();
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1204
|
+
const Bi = {
|
|
1205
1205
|
classId: "classID",
|
|
1206
1206
|
dataType: "datatype",
|
|
1207
1207
|
itemId: "itemID",
|
|
@@ -1219,16 +1219,16 @@ const ji = {
|
|
|
1219
1219
|
xLinkTitle: "xlinkTitle",
|
|
1220
1220
|
xLinkType: "xlinkType",
|
|
1221
1221
|
xmlnsXLink: "xmlnsXlink"
|
|
1222
|
-
},
|
|
1222
|
+
}, ji = tr([lr, ir, ur, sr, Di], "html"), Un = tr([lr, ir, ur, sr, Fi], "svg");
|
|
1223
1223
|
function nf(e) {
|
|
1224
1224
|
const t = String(e || "").trim();
|
|
1225
1225
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Hi(e) {
|
|
1228
1228
|
return e.join(" ").trim();
|
|
1229
1229
|
}
|
|
1230
1230
|
var Ne = {}, mn, dt;
|
|
1231
|
-
function
|
|
1231
|
+
function Ui() {
|
|
1232
1232
|
if (dt) return mn;
|
|
1233
1233
|
dt = 1;
|
|
1234
1234
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, a = /^\s+|\s+$/g, u = `
|
|
@@ -1318,14 +1318,14 @@ function qi() {
|
|
|
1318
1318
|
return mn;
|
|
1319
1319
|
}
|
|
1320
1320
|
var yt;
|
|
1321
|
-
function
|
|
1321
|
+
function qi() {
|
|
1322
1322
|
if (yt) return Ne;
|
|
1323
1323
|
yt = 1;
|
|
1324
1324
|
var e = Ne.__importDefault || function(r) {
|
|
1325
1325
|
return r && r.__esModule ? r : { default: r };
|
|
1326
1326
|
};
|
|
1327
1327
|
Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.default = n;
|
|
1328
|
-
var t = e(/* @__PURE__ */
|
|
1328
|
+
var t = e(/* @__PURE__ */ Ui());
|
|
1329
1329
|
function n(r, i) {
|
|
1330
1330
|
var o = null;
|
|
1331
1331
|
if (!r || typeof r != "string")
|
|
@@ -1340,9 +1340,9 @@ function $i() {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
return Ne;
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1344
|
-
const kt = /* @__PURE__ */
|
|
1345
|
-
function
|
|
1343
|
+
var $i = /* @__PURE__ */ qi();
|
|
1344
|
+
const kt = /* @__PURE__ */ nr($i), Vi = kt.default || kt, cr = fr("end"), qn = fr("start");
|
|
1345
|
+
function fr(e) {
|
|
1346
1346
|
return t;
|
|
1347
1347
|
function t(n) {
|
|
1348
1348
|
const r = n && n.position && n.position[e] || {};
|
|
@@ -1354,8 +1354,8 @@ function hr(e) {
|
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const t = qn(e), n =
|
|
1357
|
+
function Wi(e) {
|
|
1358
|
+
const t = qn(e), n = cr(e);
|
|
1359
1359
|
if (t && n)
|
|
1360
1360
|
return { start: t, end: n };
|
|
1361
1361
|
}
|
|
@@ -1458,8 +1458,8 @@ K.prototype.fatal = void 0;
|
|
|
1458
1458
|
K.prototype.place = void 0;
|
|
1459
1459
|
K.prototype.ruleId = void 0;
|
|
1460
1460
|
K.prototype.source = void 0;
|
|
1461
|
-
const $n = {}.hasOwnProperty,
|
|
1462
|
-
function
|
|
1461
|
+
const $n = {}.hasOwnProperty, Qi = /* @__PURE__ */ new Map(), Yi = /[A-Z]/g, Gi = /-([a-z])/g, Xi = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ki = /* @__PURE__ */ new Set(["td", "th"]), hr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1462
|
+
function Ji(e, t) {
|
|
1463
1463
|
if (!t || t.Fragment === void 0)
|
|
1464
1464
|
throw new TypeError("Expected `Fragment` in options");
|
|
1465
1465
|
const n = t.filePath || void 0;
|
|
@@ -1469,13 +1469,13 @@ function Zi(e, t) {
|
|
|
1469
1469
|
throw new TypeError(
|
|
1470
1470
|
"Expected `jsxDEV` in options when `development: true`"
|
|
1471
1471
|
);
|
|
1472
|
-
r =
|
|
1472
|
+
r = ol(n, t.jsxDEV);
|
|
1473
1473
|
} else {
|
|
1474
1474
|
if (typeof t.jsx != "function")
|
|
1475
1475
|
throw new TypeError("Expected `jsx` in production options");
|
|
1476
1476
|
if (typeof t.jsxs != "function")
|
|
1477
1477
|
throw new TypeError("Expected `jsxs` in production options");
|
|
1478
|
-
r =
|
|
1478
|
+
r = ll(n, t.jsx, t.jsxs);
|
|
1479
1479
|
}
|
|
1480
1480
|
const i = {
|
|
1481
1481
|
Fragment: t.Fragment,
|
|
@@ -1488,10 +1488,10 @@ function Zi(e, t) {
|
|
|
1488
1488
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1489
1489
|
passKeys: t.passKeys !== !1,
|
|
1490
1490
|
passNode: t.passNode || !1,
|
|
1491
|
-
schema: t.space === "svg" ? Un :
|
|
1491
|
+
schema: t.space === "svg" ? Un : ji,
|
|
1492
1492
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1493
1493
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1494
|
-
}, o =
|
|
1494
|
+
}, o = pr(i, e, void 0);
|
|
1495
1495
|
return o && typeof o != "string" ? o : i.create(
|
|
1496
1496
|
e,
|
|
1497
1497
|
i.Fragment,
|
|
@@ -1499,31 +1499,31 @@ function Zi(e, t) {
|
|
|
1499
1499
|
void 0
|
|
1500
1500
|
);
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function pr(e, t, n) {
|
|
1503
1503
|
if (t.type === "element")
|
|
1504
|
-
return
|
|
1504
|
+
return Zi(e, t, n);
|
|
1505
1505
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
|
1506
|
-
return
|
|
1506
|
+
return el(e, t);
|
|
1507
1507
|
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
|
|
1508
|
-
return
|
|
1508
|
+
return tl(e, t, n);
|
|
1509
1509
|
if (t.type === "mdxjsEsm")
|
|
1510
|
-
return
|
|
1510
|
+
return nl(e, t);
|
|
1511
1511
|
if (t.type === "root")
|
|
1512
|
-
return
|
|
1512
|
+
return rl(e, t, n);
|
|
1513
1513
|
if (t.type === "text")
|
|
1514
|
-
return
|
|
1514
|
+
return il(e, t);
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function Zi(e, t, n) {
|
|
1517
1517
|
const r = e.schema;
|
|
1518
1518
|
let i = r;
|
|
1519
1519
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1520
|
-
const o =
|
|
1520
|
+
const o = gr(e, t.tagName, !1), l = al(e, t);
|
|
1521
1521
|
let a = Wn(e, t);
|
|
1522
|
-
return
|
|
1523
|
-
return typeof u == "string" ? !
|
|
1524
|
-
})),
|
|
1522
|
+
return Xi.has(t.tagName) && (a = a.filter(function(u) {
|
|
1523
|
+
return typeof u == "string" ? !vi(u) : !0;
|
|
1524
|
+
})), mr(e, l, o, t), Vn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function el(e, t) {
|
|
1527
1527
|
if (t.data && t.data.estree && e.evaluater) {
|
|
1528
1528
|
const r = t.data.estree.body[0];
|
|
1529
1529
|
return (
|
|
@@ -1533,7 +1533,7 @@ function nl(e, t) {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
qe(e, t.position);
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function nl(e, t) {
|
|
1537
1537
|
if (t.data && t.data.estree && e.evaluater)
|
|
1538
1538
|
return (
|
|
1539
1539
|
/** @type {Child | undefined} */
|
|
@@ -1541,21 +1541,21 @@ function tl(e, t) {
|
|
|
1541
1541
|
);
|
|
1542
1542
|
qe(e, t.position);
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function tl(e, t, n) {
|
|
1545
1545
|
const r = e.schema;
|
|
1546
1546
|
let i = r;
|
|
1547
1547
|
t.name === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1548
|
-
const o = t.name === null ? e.Fragment :
|
|
1549
|
-
return
|
|
1548
|
+
const o = t.name === null ? e.Fragment : gr(e, t.name, !0), l = ul(e, t), a = Wn(e, t);
|
|
1549
|
+
return mr(e, l, o, t), Vn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function rl(e, t, n) {
|
|
1552
1552
|
const r = {};
|
|
1553
1553
|
return Vn(r, Wn(e, t)), e.create(t, e.Fragment, r, n);
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function il(e, t) {
|
|
1556
1556
|
return t.value;
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function mr(e, t, n, r) {
|
|
1559
1559
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
1560
1560
|
}
|
|
1561
1561
|
function Vn(e, t) {
|
|
@@ -1564,14 +1564,14 @@ function Vn(e, t) {
|
|
|
1564
1564
|
n && (e.children = n);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function ll(e, t, n) {
|
|
1568
1568
|
return r;
|
|
1569
1569
|
function r(i, o, l, a) {
|
|
1570
1570
|
const s = Array.isArray(l.children) ? n : t;
|
|
1571
1571
|
return a ? s(o, l, a) : s(o, l);
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function ol(e, t) {
|
|
1575
1575
|
return n;
|
|
1576
1576
|
function n(r, i, o, l) {
|
|
1577
1577
|
const a = Array.isArray(o.children), u = qn(r);
|
|
@@ -1589,15 +1589,15 @@ function al(e, t) {
|
|
|
1589
1589
|
);
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function al(e, t) {
|
|
1593
1593
|
const n = {};
|
|
1594
1594
|
let r, i;
|
|
1595
1595
|
for (i in t.properties)
|
|
1596
1596
|
if (i !== "children" && $n.call(t.properties, i)) {
|
|
1597
|
-
const o =
|
|
1597
|
+
const o = sl(e, i, t.properties[i]);
|
|
1598
1598
|
if (o) {
|
|
1599
1599
|
const [l, a] = o;
|
|
1600
|
-
e.tableCellAlignToStyle && l === "align" && typeof a == "string" &&
|
|
1600
|
+
e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Ki.has(t.tagName) ? r = a : n[l] = a;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
if (r) {
|
|
@@ -1609,7 +1609,7 @@ function ul(e, t) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
return n;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function ul(e, t) {
|
|
1613
1613
|
const n = {};
|
|
1614
1614
|
for (const r of t.attributes)
|
|
1615
1615
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -1640,7 +1640,7 @@ function sl(e, t) {
|
|
|
1640
1640
|
function Wn(e, t) {
|
|
1641
1641
|
const n = [];
|
|
1642
1642
|
let r = -1;
|
|
1643
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1643
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Qi;
|
|
1644
1644
|
for (; ++r < t.children.length; ) {
|
|
1645
1645
|
const o = t.children[r];
|
|
1646
1646
|
let l;
|
|
@@ -1651,28 +1651,28 @@ function Wn(e, t) {
|
|
|
1651
1651
|
l = u + "-" + s, i.set(u, s + 1);
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
const a =
|
|
1654
|
+
const a = pr(e, o, l);
|
|
1655
1655
|
a !== void 0 && n.push(a);
|
|
1656
1656
|
}
|
|
1657
1657
|
return n;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const r =
|
|
1659
|
+
function sl(e, t, n) {
|
|
1660
|
+
const r = Oi(e.schema, t);
|
|
1661
1661
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1662
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
1663
|
-
let i = typeof n == "object" ? n :
|
|
1664
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
1662
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? Ei(n) : Hi(n)), r.property === "style") {
|
|
1663
|
+
let i = typeof n == "object" ? n : cl(e, String(n));
|
|
1664
|
+
return e.stylePropertyNameCase === "css" && (i = fl(i)), ["style", i];
|
|
1665
1665
|
}
|
|
1666
1666
|
return [
|
|
1667
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
1667
|
+
e.elementAttributeNameCase === "react" && r.space ? Bi[r.property] || r.property : r.attribute,
|
|
1668
1668
|
n
|
|
1669
1669
|
];
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function cl(e, t) {
|
|
1673
1673
|
const n = {};
|
|
1674
1674
|
try {
|
|
1675
|
-
|
|
1675
|
+
Vi(t, r);
|
|
1676
1676
|
} catch (i) {
|
|
1677
1677
|
if (!e.ignoreInvalidStyle) {
|
|
1678
1678
|
const o = (
|
|
@@ -1684,16 +1684,16 @@ function fl(e, t) {
|
|
|
1684
1684
|
ruleId: "style",
|
|
1685
1685
|
source: "hast-util-to-jsx-runtime"
|
|
1686
1686
|
});
|
|
1687
|
-
throw l.file = e.filePath || void 0, l.url =
|
|
1687
|
+
throw l.file = e.filePath || void 0, l.url = hr + "#cannot-parse-style-attribute", l;
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
1690
|
return n;
|
|
1691
1691
|
function r(i, o) {
|
|
1692
1692
|
let l = i;
|
|
1693
|
-
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(
|
|
1693
|
+
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(Gi, pl)), n[l] = o;
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function gr(e, t, n) {
|
|
1697
1697
|
let r;
|
|
1698
1698
|
if (!n)
|
|
1699
1699
|
r = { type: "Literal", value: t };
|
|
@@ -1734,23 +1734,23 @@ function qe(e, t) {
|
|
|
1734
1734
|
source: "hast-util-to-jsx-runtime"
|
|
1735
1735
|
}
|
|
1736
1736
|
);
|
|
1737
|
-
throw n.file = e.filePath || void 0, n.url =
|
|
1737
|
+
throw n.file = e.filePath || void 0, n.url = hr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function fl(e) {
|
|
1740
1740
|
const t = {};
|
|
1741
1741
|
let n;
|
|
1742
1742
|
for (n in e)
|
|
1743
|
-
$n.call(e, n) && (t[
|
|
1743
|
+
$n.call(e, n) && (t[hl(n)] = e[n]);
|
|
1744
1744
|
return t;
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1747
|
-
let t = e.replace(
|
|
1746
|
+
function hl(e) {
|
|
1747
|
+
let t = e.replace(Yi, ml);
|
|
1748
1748
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function pl(e, t) {
|
|
1751
1751
|
return t.toUpperCase();
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function ml(e) {
|
|
1754
1754
|
return "-" + e.toLowerCase();
|
|
1755
1755
|
}
|
|
1756
1756
|
const gn = {
|
|
@@ -1775,13 +1775,13 @@ const gn = {
|
|
|
1775
1775
|
"track",
|
|
1776
1776
|
"video"
|
|
1777
1777
|
]
|
|
1778
|
-
},
|
|
1778
|
+
}, gl = {};
|
|
1779
1779
|
function Qn(e, t) {
|
|
1780
|
-
const n =
|
|
1781
|
-
return
|
|
1780
|
+
const n = gl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
1781
|
+
return dr(e, r, i);
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
if (
|
|
1783
|
+
function dr(e, t, n) {
|
|
1784
|
+
if (dl(e)) {
|
|
1785
1785
|
if ("value" in e)
|
|
1786
1786
|
return e.type === "html" && !n ? "" : e.value;
|
|
1787
1787
|
if (t && "alt" in e && e.alt)
|
|
@@ -1795,10 +1795,10 @@ function wt(e, t, n) {
|
|
|
1795
1795
|
const r = [];
|
|
1796
1796
|
let i = -1;
|
|
1797
1797
|
for (; ++i < e.length; )
|
|
1798
|
-
r[i] =
|
|
1798
|
+
r[i] = dr(e[i], t, n);
|
|
1799
1799
|
return r.join("");
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function dl(e) {
|
|
1802
1802
|
return !!(e && typeof e == "object");
|
|
1803
1803
|
}
|
|
1804
1804
|
const St = document.createElement("i");
|
|
@@ -1821,14 +1821,14 @@ function ie(e, t) {
|
|
|
1821
1821
|
return e.length > 0 ? (te(e, e.length, 0, t), e) : t;
|
|
1822
1822
|
}
|
|
1823
1823
|
const Ct = {}.hasOwnProperty;
|
|
1824
|
-
function
|
|
1824
|
+
function yr(e) {
|
|
1825
1825
|
const t = {};
|
|
1826
1826
|
let n = -1;
|
|
1827
1827
|
for (; ++n < e.length; )
|
|
1828
|
-
|
|
1828
|
+
yl(t, e[n]);
|
|
1829
1829
|
return t;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function yl(e, t) {
|
|
1832
1832
|
let n;
|
|
1833
1833
|
for (n in t) {
|
|
1834
1834
|
const i = (Ct.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
@@ -1837,7 +1837,7 @@ function kl(e, t) {
|
|
|
1837
1837
|
for (l in o) {
|
|
1838
1838
|
Ct.call(i, l) || (i[l] = []);
|
|
1839
1839
|
const a = o[l];
|
|
1840
|
-
|
|
1840
|
+
kl(
|
|
1841
1841
|
// @ts-expect-error Looks like a list.
|
|
1842
1842
|
i[l],
|
|
1843
1843
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -1845,14 +1845,14 @@ function kl(e, t) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function kl(e, t) {
|
|
1849
1849
|
let n = -1;
|
|
1850
1850
|
const r = [];
|
|
1851
1851
|
for (; ++n < t.length; )
|
|
1852
1852
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
1853
1853
|
te(e, 0, 0, r);
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function kr(e, t) {
|
|
1856
1856
|
const n = Number.parseInt(e, t);
|
|
1857
1857
|
return (
|
|
1858
1858
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -1868,7 +1868,7 @@ function xr(e, t) {
|
|
|
1868
1868
|
function ce(e) {
|
|
1869
1869
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1870
1870
|
}
|
|
1871
|
-
const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/),
|
|
1871
|
+
const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/), xl = be(/[#-'*+\--9=?A-Z^-~]/);
|
|
1872
1872
|
function nn(e) {
|
|
1873
1873
|
return (
|
|
1874
1874
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -1876,7 +1876,7 @@ function nn(e) {
|
|
|
1876
1876
|
e !== null && (e < 32 || e === 127)
|
|
1877
1877
|
);
|
|
1878
1878
|
}
|
|
1879
|
-
const _n = be(/\d/),
|
|
1879
|
+
const _n = be(/\d/), bl = be(/[\dA-Fa-f]/), wl = be(/[!-/:-@[-`{-~]/);
|
|
1880
1880
|
function D(e) {
|
|
1881
1881
|
return e !== null && e < -2;
|
|
1882
1882
|
}
|
|
@@ -1923,10 +1923,10 @@ function j(e, t, n, r) {
|
|
|
1923
1923
|
return N(u) && o++ < i ? (e.consume(u), a) : (e.exit(n), t(u));
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
|
-
const
|
|
1927
|
-
tokenize:
|
|
1926
|
+
const Sl = {
|
|
1927
|
+
tokenize: Cl
|
|
1928
1928
|
};
|
|
1929
|
-
function
|
|
1929
|
+
function Cl(e) {
|
|
1930
1930
|
const t = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
1931
1931
|
let n;
|
|
1932
1932
|
return t;
|
|
@@ -1955,12 +1955,12 @@ function El(e) {
|
|
|
1955
1955
|
return D(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1959
|
-
tokenize:
|
|
1958
|
+
const El = {
|
|
1959
|
+
tokenize: Il
|
|
1960
1960
|
}, Et = {
|
|
1961
|
-
tokenize:
|
|
1961
|
+
tokenize: Al
|
|
1962
1962
|
};
|
|
1963
|
-
function
|
|
1963
|
+
function Il(e) {
|
|
1964
1964
|
const t = this, n = [];
|
|
1965
1965
|
let r = 0, i, o, l;
|
|
1966
1966
|
return a;
|
|
@@ -2072,7 +2072,7 @@ function Al(e) {
|
|
|
2072
2072
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function Al(e, t, n) {
|
|
2076
2076
|
return j(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2077
2077
|
}
|
|
2078
2078
|
function De(e) {
|
|
@@ -2092,10 +2092,10 @@ function un(e, t, n) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
const Rn = {
|
|
2094
2094
|
name: "attention",
|
|
2095
|
-
resolveAll:
|
|
2096
|
-
tokenize:
|
|
2095
|
+
resolveAll: Tl,
|
|
2096
|
+
tokenize: Pl
|
|
2097
2097
|
};
|
|
2098
|
-
function
|
|
2098
|
+
function Tl(e, t) {
|
|
2099
2099
|
let n = -1, r, i, o, l, a, u, s, f;
|
|
2100
2100
|
for (; ++n < e.length; )
|
|
2101
2101
|
if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
|
|
@@ -2150,7 +2150,7 @@ function Pl(e, t) {
|
|
|
2150
2150
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
|
2151
2151
|
return e;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Pl(e, t) {
|
|
2154
2154
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = De(r);
|
|
2155
2155
|
let o;
|
|
2156
2156
|
return l;
|
|
@@ -2167,11 +2167,11 @@ function vl(e, t) {
|
|
|
2167
2167
|
function It(e, t) {
|
|
2168
2168
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
2169
2169
|
}
|
|
2170
|
-
const
|
|
2170
|
+
const vl = {
|
|
2171
2171
|
name: "autolink",
|
|
2172
|
-
tokenize:
|
|
2172
|
+
tokenize: Ll
|
|
2173
2173
|
};
|
|
2174
|
-
function
|
|
2174
|
+
function Ll(e, t, n) {
|
|
2175
2175
|
let r = 0;
|
|
2176
2176
|
return i;
|
|
2177
2177
|
function i(h) {
|
|
@@ -2190,7 +2190,7 @@ function zl(e, t, n) {
|
|
|
2190
2190
|
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 || nn(h) ? n(h) : (e.consume(h), u);
|
|
2191
2191
|
}
|
|
2192
2192
|
function s(h) {
|
|
2193
|
-
return h === 64 ? (e.consume(h), f) :
|
|
2193
|
+
return h === 64 ? (e.consume(h), f) : xl(h) ? (e.consume(h), s) : n(h);
|
|
2194
2194
|
}
|
|
2195
2195
|
function f(h) {
|
|
2196
2196
|
return X(h) ? c(h) : n(h);
|
|
@@ -2208,9 +2208,9 @@ function zl(e, t, n) {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
const We = {
|
|
2210
2210
|
partial: !0,
|
|
2211
|
-
tokenize:
|
|
2211
|
+
tokenize: zl
|
|
2212
2212
|
};
|
|
2213
|
-
function
|
|
2213
|
+
function zl(e, t, n) {
|
|
2214
2214
|
return r;
|
|
2215
2215
|
function r(o) {
|
|
2216
2216
|
return N(o) ? j(e, i, "linePrefix")(o) : i(o);
|
|
@@ -2219,15 +2219,15 @@ function Dl(e, t, n) {
|
|
|
2219
2219
|
return o === null || D(o) ? t(o) : n(o);
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
|
-
const
|
|
2222
|
+
const xr = {
|
|
2223
2223
|
continuation: {
|
|
2224
|
-
tokenize:
|
|
2224
|
+
tokenize: Fl
|
|
2225
2225
|
},
|
|
2226
|
-
exit:
|
|
2226
|
+
exit: _l,
|
|
2227
2227
|
name: "blockQuote",
|
|
2228
|
-
tokenize:
|
|
2228
|
+
tokenize: Dl
|
|
2229
2229
|
};
|
|
2230
|
-
function
|
|
2230
|
+
function Dl(e, t, n) {
|
|
2231
2231
|
const r = this;
|
|
2232
2232
|
return i;
|
|
2233
2233
|
function i(l) {
|
|
@@ -2243,37 +2243,37 @@ function Fl(e, t, n) {
|
|
|
2243
2243
|
return N(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function Fl(e, t, n) {
|
|
2247
2247
|
const r = this;
|
|
2248
2248
|
return i;
|
|
2249
2249
|
function i(l) {
|
|
2250
2250
|
return N(l) ? j(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
|
|
2251
2251
|
}
|
|
2252
2252
|
function o(l) {
|
|
2253
|
-
return e.attempt(
|
|
2253
|
+
return e.attempt(xr, t, n)(l);
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function _l(e) {
|
|
2257
2257
|
e.exit("blockQuote");
|
|
2258
2258
|
}
|
|
2259
|
-
const
|
|
2259
|
+
const br = {
|
|
2260
2260
|
name: "characterEscape",
|
|
2261
|
-
tokenize:
|
|
2261
|
+
tokenize: Rl
|
|
2262
2262
|
};
|
|
2263
|
-
function
|
|
2263
|
+
function Rl(e, t, n) {
|
|
2264
2264
|
return r;
|
|
2265
2265
|
function r(o) {
|
|
2266
2266
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
2267
2267
|
}
|
|
2268
2268
|
function i(o) {
|
|
2269
|
-
return
|
|
2269
|
+
return wl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
|
-
const
|
|
2272
|
+
const wr = {
|
|
2273
2273
|
name: "characterReference",
|
|
2274
|
-
tokenize:
|
|
2274
|
+
tokenize: Ol
|
|
2275
2275
|
};
|
|
2276
|
-
function
|
|
2276
|
+
function Ol(e, t, n) {
|
|
2277
2277
|
const r = this;
|
|
2278
2278
|
let i = 0, o, l;
|
|
2279
2279
|
return a;
|
|
@@ -2284,7 +2284,7 @@ function Ml(e, t, n) {
|
|
|
2284
2284
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = X, f(c));
|
|
2285
2285
|
}
|
|
2286
2286
|
function s(c) {
|
|
2287
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
2287
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = bl, f) : (e.enter("characterReferenceValue"), o = 7, l = _n, f(c));
|
|
2288
2288
|
}
|
|
2289
2289
|
function f(c) {
|
|
2290
2290
|
if (c === 59 && i) {
|
|
@@ -2296,13 +2296,13 @@ function Ml(e, t, n) {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
const At = {
|
|
2298
2298
|
partial: !0,
|
|
2299
|
-
tokenize:
|
|
2299
|
+
tokenize: Nl
|
|
2300
2300
|
}, Tt = {
|
|
2301
2301
|
concrete: !0,
|
|
2302
2302
|
name: "codeFenced",
|
|
2303
|
-
tokenize:
|
|
2303
|
+
tokenize: Ml
|
|
2304
2304
|
};
|
|
2305
|
-
function
|
|
2305
|
+
function Ml(e, t, n) {
|
|
2306
2306
|
const r = this, i = {
|
|
2307
2307
|
partial: !0,
|
|
2308
2308
|
tokenize: z
|
|
@@ -2373,7 +2373,7 @@ function Nl(e, t, n) {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function Nl(e, t, n) {
|
|
2377
2377
|
const r = this;
|
|
2378
2378
|
return i;
|
|
2379
2379
|
function i(l) {
|
|
@@ -2385,12 +2385,12 @@ function Bl(e, t, n) {
|
|
|
2385
2385
|
}
|
|
2386
2386
|
const dn = {
|
|
2387
2387
|
name: "codeIndented",
|
|
2388
|
-
tokenize:
|
|
2389
|
-
},
|
|
2388
|
+
tokenize: jl
|
|
2389
|
+
}, Bl = {
|
|
2390
2390
|
partial: !0,
|
|
2391
|
-
tokenize:
|
|
2391
|
+
tokenize: Hl
|
|
2392
2392
|
};
|
|
2393
|
-
function
|
|
2393
|
+
function jl(e, t, n) {
|
|
2394
2394
|
const r = this;
|
|
2395
2395
|
return i;
|
|
2396
2396
|
function i(s) {
|
|
@@ -2401,7 +2401,7 @@ function Hl(e, t, n) {
|
|
|
2401
2401
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
|
|
2402
2402
|
}
|
|
2403
2403
|
function l(s) {
|
|
2404
|
-
return s === null ? u(s) : D(s) ? e.attempt(
|
|
2404
|
+
return s === null ? u(s) : D(s) ? e.attempt(Bl, l, u)(s) : (e.enter("codeFlowValue"), a(s));
|
|
2405
2405
|
}
|
|
2406
2406
|
function a(s) {
|
|
2407
2407
|
return s === null || D(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), a);
|
|
@@ -2410,7 +2410,7 @@ function Hl(e, t, n) {
|
|
|
2410
2410
|
return e.exit("codeIndented"), t(s);
|
|
2411
2411
|
}
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function Hl(e, t, n) {
|
|
2414
2414
|
const r = this;
|
|
2415
2415
|
return i;
|
|
2416
2416
|
function i(l) {
|
|
@@ -2421,13 +2421,13 @@ function Ul(e, t, n) {
|
|
|
2421
2421
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : D(l) ? i(l) : n(l);
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
|
-
const
|
|
2424
|
+
const Ul = {
|
|
2425
2425
|
name: "codeText",
|
|
2426
|
-
previous:
|
|
2427
|
-
resolve:
|
|
2428
|
-
tokenize:
|
|
2426
|
+
previous: $l,
|
|
2427
|
+
resolve: ql,
|
|
2428
|
+
tokenize: Vl
|
|
2429
2429
|
};
|
|
2430
|
-
function
|
|
2430
|
+
function ql(e) {
|
|
2431
2431
|
let t = e.length - 4, n = 3, r, i;
|
|
2432
2432
|
if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
|
|
2433
2433
|
for (r = n; ++r < t; )
|
|
@@ -2440,10 +2440,10 @@ function $l(e) {
|
|
|
2440
2440
|
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);
|
|
2441
2441
|
return e;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function $l(e) {
|
|
2444
2444
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function Vl(e, t, n) {
|
|
2447
2447
|
let r = 0, i, o;
|
|
2448
2448
|
return l;
|
|
2449
2449
|
function l(c) {
|
|
@@ -2462,7 +2462,7 @@ function Wl(e, t, n) {
|
|
|
2462
2462
|
return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
|
|
2463
2463
|
}
|
|
2464
2464
|
}
|
|
2465
|
-
class
|
|
2465
|
+
class Wl {
|
|
2466
2466
|
/**
|
|
2467
2467
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
2468
2468
|
* Initial items (optional).
|
|
@@ -2634,10 +2634,10 @@ function Be(e, t) {
|
|
|
2634
2634
|
for (; n < t.length; )
|
|
2635
2635
|
e.push(...t.slice(n, n + 1e4)), n += 1e4;
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function Sr(e) {
|
|
2638
2638
|
const t = {};
|
|
2639
2639
|
let n = -1, r, i, o, l, a, u, s;
|
|
2640
|
-
const f = new
|
|
2640
|
+
const f = new Wl(e);
|
|
2641
2641
|
for (; ++n < f.length; ) {
|
|
2642
2642
|
for (; n in t; )
|
|
2643
2643
|
n = t[n];
|
|
@@ -2645,7 +2645,7 @@ function Cr(e) {
|
|
|
2645
2645
|
for (; ++o < u.length && u[o][1].type !== "content"; )
|
|
2646
2646
|
u[o][1].type === "chunkText" && (u[o][1]._isInFirstContentOfListItem = !0, o++);
|
|
2647
2647
|
if (r[0] === "enter")
|
|
2648
|
-
r[1].contentType && (Object.assign(t,
|
|
2648
|
+
r[1].contentType && (Object.assign(t, Ql(f, n)), n = t[n], s = !0);
|
|
2649
2649
|
else if (r[1]._container) {
|
|
2650
2650
|
for (o = n, i = void 0; o-- && (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
|
2651
2651
|
l[0] === "enter" && (i && (f.get(i)[1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
|
|
@@ -2656,7 +2656,7 @@ function Cr(e) {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
return te(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function Ql(e, t) {
|
|
2660
2660
|
const n = e.get(t)[1], r = e.get(t)[2];
|
|
2661
2661
|
let i = t - 1;
|
|
2662
2662
|
const o = [], l = n._tokenizer || r.parser[n.contentType](n.start), a = l.events, u = [], s = {};
|
|
@@ -2678,17 +2678,17 @@ function Yl(e, t) {
|
|
|
2678
2678
|
s[d + u[p][0]] = d + u[p][1], d += u[p][1] - u[p][0] - 1;
|
|
2679
2679
|
return s;
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2682
|
-
resolve:
|
|
2683
|
-
tokenize:
|
|
2684
|
-
},
|
|
2681
|
+
const Yl = {
|
|
2682
|
+
resolve: Xl,
|
|
2683
|
+
tokenize: Kl
|
|
2684
|
+
}, Gl = {
|
|
2685
2685
|
partial: !0,
|
|
2686
|
-
tokenize:
|
|
2686
|
+
tokenize: Jl
|
|
2687
2687
|
};
|
|
2688
|
-
function
|
|
2689
|
-
return
|
|
2688
|
+
function Xl(e) {
|
|
2689
|
+
return Sr(e), e;
|
|
2690
2690
|
}
|
|
2691
|
-
function
|
|
2691
|
+
function Kl(e, t) {
|
|
2692
2692
|
let n;
|
|
2693
2693
|
return r;
|
|
2694
2694
|
function r(a) {
|
|
@@ -2697,7 +2697,7 @@ function Jl(e, t) {
|
|
|
2697
2697
|
}), i(a);
|
|
2698
2698
|
}
|
|
2699
2699
|
function i(a) {
|
|
2700
|
-
return a === null ? o(a) : D(a) ? e.check(
|
|
2700
|
+
return a === null ? o(a) : D(a) ? e.check(Gl, l, o)(a) : (e.consume(a), i);
|
|
2701
2701
|
}
|
|
2702
2702
|
function o(a) {
|
|
2703
2703
|
return e.exit("chunkContent"), e.exit("content"), t(a);
|
|
@@ -2709,7 +2709,7 @@ function Jl(e, t) {
|
|
|
2709
2709
|
}), n = n.next, i;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function Jl(e, t, n) {
|
|
2713
2713
|
const r = this;
|
|
2714
2714
|
return i;
|
|
2715
2715
|
function i(l) {
|
|
@@ -2722,7 +2722,7 @@ function Zl(e, t, n) {
|
|
|
2722
2722
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : e.interrupt(r.parser.constructs.flow, n, t)(l);
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
|
-
function
|
|
2725
|
+
function Cr(e, t, n, r, i, o, l, a, u) {
|
|
2726
2726
|
const s = u || Number.POSITIVE_INFINITY;
|
|
2727
2727
|
let f = 0;
|
|
2728
2728
|
return c;
|
|
@@ -2749,7 +2749,7 @@ function Er(e, t, n, r, i, o, l, a, u) {
|
|
|
2749
2749
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), x) : x(y);
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function Er(e, t, n, r, i, o) {
|
|
2753
2753
|
const l = this;
|
|
2754
2754
|
let a = 0, u;
|
|
2755
2755
|
return s;
|
|
@@ -2773,7 +2773,7 @@ function Ir(e, t, n, r, i, o) {
|
|
|
2773
2773
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, c) : c(h);
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2776
|
+
function Ir(e, t, n, r, i, o) {
|
|
2777
2777
|
let l;
|
|
2778
2778
|
return a;
|
|
2779
2779
|
function a(p) {
|
|
@@ -2801,14 +2801,14 @@ function Ue(e, t) {
|
|
|
2801
2801
|
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : N(i) ? j(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
const
|
|
2804
|
+
const Zl = {
|
|
2805
2805
|
name: "definition",
|
|
2806
|
-
tokenize:
|
|
2807
|
-
},
|
|
2806
|
+
tokenize: no
|
|
2807
|
+
}, eo = {
|
|
2808
2808
|
partial: !0,
|
|
2809
|
-
tokenize:
|
|
2809
|
+
tokenize: to
|
|
2810
2810
|
};
|
|
2811
|
-
function
|
|
2811
|
+
function no(e, t, n) {
|
|
2812
2812
|
const r = this;
|
|
2813
2813
|
let i;
|
|
2814
2814
|
return o;
|
|
@@ -2816,7 +2816,7 @@ function to(e, t, n) {
|
|
|
2816
2816
|
return e.enter("definition"), l(h);
|
|
2817
2817
|
}
|
|
2818
2818
|
function l(h) {
|
|
2819
|
-
return
|
|
2819
|
+
return Er.call(
|
|
2820
2820
|
r,
|
|
2821
2821
|
e,
|
|
2822
2822
|
a,
|
|
@@ -2834,7 +2834,7 @@ function to(e, t, n) {
|
|
|
2834
2834
|
return $(h) ? Ue(e, s)(h) : s(h);
|
|
2835
2835
|
}
|
|
2836
2836
|
function s(h) {
|
|
2837
|
-
return
|
|
2837
|
+
return Cr(
|
|
2838
2838
|
e,
|
|
2839
2839
|
f,
|
|
2840
2840
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
|
@@ -2847,7 +2847,7 @@ function to(e, t, n) {
|
|
|
2847
2847
|
)(h);
|
|
2848
2848
|
}
|
|
2849
2849
|
function f(h) {
|
|
2850
|
-
return e.attempt(
|
|
2850
|
+
return e.attempt(eo, c, c)(h);
|
|
2851
2851
|
}
|
|
2852
2852
|
function c(h) {
|
|
2853
2853
|
return N(h) ? j(e, p, "whitespace")(h) : p(h);
|
|
@@ -2856,13 +2856,13 @@ function to(e, t, n) {
|
|
|
2856
2856
|
return h === null || D(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
|
-
function
|
|
2859
|
+
function to(e, t, n) {
|
|
2860
2860
|
return r;
|
|
2861
2861
|
function r(a) {
|
|
2862
2862
|
return $(a) ? Ue(e, i)(a) : n(a);
|
|
2863
2863
|
}
|
|
2864
2864
|
function i(a) {
|
|
2865
|
-
return
|
|
2865
|
+
return Ir(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
2866
2866
|
}
|
|
2867
2867
|
function o(a) {
|
|
2868
2868
|
return N(a) ? j(e, l, "whitespace")(a) : l(a);
|
|
@@ -2871,11 +2871,11 @@ function ro(e, t, n) {
|
|
|
2871
2871
|
return a === null || D(a) ? t(a) : n(a);
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
|
-
const
|
|
2874
|
+
const ro = {
|
|
2875
2875
|
name: "hardBreakEscape",
|
|
2876
|
-
tokenize:
|
|
2876
|
+
tokenize: io
|
|
2877
2877
|
};
|
|
2878
|
-
function
|
|
2878
|
+
function io(e, t, n) {
|
|
2879
2879
|
return r;
|
|
2880
2880
|
function r(o) {
|
|
2881
2881
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
|
@@ -2884,12 +2884,12 @@ function lo(e, t, n) {
|
|
|
2884
2884
|
return D(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
|
-
const
|
|
2887
|
+
const lo = {
|
|
2888
2888
|
name: "headingAtx",
|
|
2889
|
-
resolve:
|
|
2890
|
-
tokenize:
|
|
2889
|
+
resolve: oo,
|
|
2890
|
+
tokenize: ao
|
|
2891
2891
|
};
|
|
2892
|
-
function
|
|
2892
|
+
function oo(e, t) {
|
|
2893
2893
|
let n = e.length - 2, r = 3, i, o;
|
|
2894
2894
|
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 = {
|
|
2895
2895
|
type: "atxHeadingText",
|
|
@@ -2902,7 +2902,7 @@ function ao(e, t) {
|
|
|
2902
2902
|
contentType: "text"
|
|
2903
2903
|
}, te(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2905
|
+
function ao(e, t, n) {
|
|
2906
2906
|
let r = 0;
|
|
2907
2907
|
return i;
|
|
2908
2908
|
function i(f) {
|
|
@@ -2924,7 +2924,7 @@ function uo(e, t, n) {
|
|
|
2924
2924
|
return f === null || f === 35 || $(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
const
|
|
2927
|
+
const uo = [
|
|
2928
2928
|
"address",
|
|
2929
2929
|
"article",
|
|
2930
2930
|
"aside",
|
|
@@ -2987,25 +2987,25 @@ const so = [
|
|
|
2987
2987
|
"tr",
|
|
2988
2988
|
"track",
|
|
2989
2989
|
"ul"
|
|
2990
|
-
], Pt = ["pre", "script", "style", "textarea"],
|
|
2990
|
+
], Pt = ["pre", "script", "style", "textarea"], so = {
|
|
2991
2991
|
concrete: !0,
|
|
2992
2992
|
name: "htmlFlow",
|
|
2993
|
-
resolveTo:
|
|
2994
|
-
tokenize:
|
|
2995
|
-
},
|
|
2996
|
-
partial: !0,
|
|
2997
|
-
tokenize: yo
|
|
2998
|
-
}, ho = {
|
|
2993
|
+
resolveTo: ho,
|
|
2994
|
+
tokenize: po
|
|
2995
|
+
}, co = {
|
|
2999
2996
|
partial: !0,
|
|
3000
2997
|
tokenize: go
|
|
2998
|
+
}, fo = {
|
|
2999
|
+
partial: !0,
|
|
3000
|
+
tokenize: mo
|
|
3001
3001
|
};
|
|
3002
|
-
function
|
|
3002
|
+
function ho(e) {
|
|
3003
3003
|
let t = e.length;
|
|
3004
3004
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
|
3005
3005
|
;
|
|
3006
3006
|
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;
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function po(e, t, n) {
|
|
3009
3009
|
const r = this;
|
|
3010
3010
|
let i, o, l, a, u;
|
|
3011
3011
|
return s;
|
|
@@ -3034,7 +3034,7 @@ function mo(e, t, n) {
|
|
|
3034
3034
|
function E(g) {
|
|
3035
3035
|
if (g === null || g === 47 || g === 62 || $(g)) {
|
|
3036
3036
|
const ue = g === 47, we = l.toLowerCase();
|
|
3037
|
-
return !ue && !o && Pt.includes(we) ? (i = 1, r.interrupt ? t(g) : v(g)) :
|
|
3037
|
+
return !ue && !o && Pt.includes(we) ? (i = 1, r.interrupt ? t(g) : v(g)) : uo.includes(l.toLowerCase()) ? (i = 6, ue ? (e.consume(g), y) : r.interrupt ? t(g) : v(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? S(g) : C(g));
|
|
3038
3038
|
}
|
|
3039
3039
|
return g === 45 || X(g) ? (e.consume(g), l += String.fromCharCode(g), E) : n(g);
|
|
3040
3040
|
}
|
|
@@ -3072,10 +3072,10 @@ function mo(e, t, n) {
|
|
|
3072
3072
|
return g === null || D(g) ? v(g) : N(g) ? (e.consume(g), P) : n(g);
|
|
3073
3073
|
}
|
|
3074
3074
|
function v(g) {
|
|
3075
|
-
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), ae) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), pe) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
3075
|
+
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), ae) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), pe) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(co, me, L)(g)) : g === null || D(g) ? (e.exit("htmlFlowData"), L(g)) : (e.consume(g), v);
|
|
3076
3076
|
}
|
|
3077
3077
|
function L(g) {
|
|
3078
|
-
return e.check(
|
|
3078
|
+
return e.check(fo, T, me)(g);
|
|
3079
3079
|
}
|
|
3080
3080
|
function T(g) {
|
|
3081
3081
|
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), _;
|
|
@@ -3109,7 +3109,7 @@ function mo(e, t, n) {
|
|
|
3109
3109
|
return e.exit("htmlFlow"), t(g);
|
|
3110
3110
|
}
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function mo(e, t, n) {
|
|
3113
3113
|
const r = this;
|
|
3114
3114
|
return i;
|
|
3115
3115
|
function i(l) {
|
|
@@ -3119,17 +3119,17 @@ function go(e, t, n) {
|
|
|
3119
3119
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3122
|
+
function go(e, t, n) {
|
|
3123
3123
|
return r;
|
|
3124
3124
|
function r(i) {
|
|
3125
3125
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(We, t, n);
|
|
3126
3126
|
}
|
|
3127
3127
|
}
|
|
3128
|
-
const
|
|
3128
|
+
const yo = {
|
|
3129
3129
|
name: "htmlText",
|
|
3130
|
-
tokenize:
|
|
3130
|
+
tokenize: ko
|
|
3131
3131
|
};
|
|
3132
|
-
function
|
|
3132
|
+
function ko(e, t, n) {
|
|
3133
3133
|
const r = this;
|
|
3134
3134
|
let i, o, l;
|
|
3135
3135
|
return a;
|
|
@@ -3224,17 +3224,17 @@ function xo(e, t, n) {
|
|
|
3224
3224
|
}
|
|
3225
3225
|
const Gn = {
|
|
3226
3226
|
name: "labelEnd",
|
|
3227
|
-
resolveAll:
|
|
3228
|
-
resolveTo:
|
|
3227
|
+
resolveAll: So,
|
|
3228
|
+
resolveTo: Co,
|
|
3229
|
+
tokenize: Eo
|
|
3230
|
+
}, xo = {
|
|
3229
3231
|
tokenize: Io
|
|
3230
3232
|
}, bo = {
|
|
3231
3233
|
tokenize: Ao
|
|
3232
3234
|
}, wo = {
|
|
3233
3235
|
tokenize: To
|
|
3234
|
-
}, So = {
|
|
3235
|
-
tokenize: Po
|
|
3236
3236
|
};
|
|
3237
|
-
function
|
|
3237
|
+
function So(e) {
|
|
3238
3238
|
let t = -1;
|
|
3239
3239
|
const n = [];
|
|
3240
3240
|
for (; ++t < e.length; ) {
|
|
@@ -3246,7 +3246,7 @@ function Co(e) {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
return e.length !== n.length && te(e, 0, e.length, n), e;
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Co(e, t) {
|
|
3250
3250
|
let n = e.length, r = 0, i, o, l, a;
|
|
3251
3251
|
for (; n--; )
|
|
3252
3252
|
if (i = e[n][1], o) {
|
|
@@ -3286,7 +3286,7 @@ function Eo(e, t) {
|
|
|
3286
3286
|
};
|
|
3287
3287
|
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, un(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]]), te(e, o, e.length, a), e;
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function Eo(e, t, n) {
|
|
3290
3290
|
const r = this;
|
|
3291
3291
|
let i = r.events.length, o, l;
|
|
3292
3292
|
for (; i--; )
|
|
@@ -3302,10 +3302,10 @@ function Io(e, t, n) {
|
|
|
3302
3302
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
|
|
3303
3303
|
}
|
|
3304
3304
|
function u(p) {
|
|
3305
|
-
return p === 40 ? e.attempt(
|
|
3305
|
+
return p === 40 ? e.attempt(xo, f, l ? f : c)(p) : p === 91 ? e.attempt(bo, f, l ? s : c)(p) : l ? f(p) : c(p);
|
|
3306
3306
|
}
|
|
3307
3307
|
function s(p) {
|
|
3308
|
-
return e.attempt(
|
|
3308
|
+
return e.attempt(wo, f, c)(p);
|
|
3309
3309
|
}
|
|
3310
3310
|
function f(p) {
|
|
3311
3311
|
return t(p);
|
|
@@ -3314,7 +3314,7 @@ function Io(e, t, n) {
|
|
|
3314
3314
|
return o._balanced = !0, n(p);
|
|
3315
3315
|
}
|
|
3316
3316
|
}
|
|
3317
|
-
function
|
|
3317
|
+
function Io(e, t, n) {
|
|
3318
3318
|
return r;
|
|
3319
3319
|
function r(c) {
|
|
3320
3320
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
|
@@ -3323,7 +3323,7 @@ function Ao(e, t, n) {
|
|
|
3323
3323
|
return $(c) ? Ue(e, o)(c) : o(c);
|
|
3324
3324
|
}
|
|
3325
3325
|
function o(c) {
|
|
3326
|
-
return c === 41 ? f(c) :
|
|
3326
|
+
return c === 41 ? f(c) : Cr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
|
|
3327
3327
|
}
|
|
3328
3328
|
function l(c) {
|
|
3329
3329
|
return $(c) ? Ue(e, u)(c) : f(c);
|
|
@@ -3332,7 +3332,7 @@ function Ao(e, t, n) {
|
|
|
3332
3332
|
return n(c);
|
|
3333
3333
|
}
|
|
3334
3334
|
function u(c) {
|
|
3335
|
-
return c === 34 || c === 39 || c === 40 ?
|
|
3335
|
+
return c === 34 || c === 39 || c === 40 ? Ir(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
|
|
3336
3336
|
}
|
|
3337
3337
|
function s(c) {
|
|
3338
3338
|
return $(c) ? Ue(e, f)(c) : f(c);
|
|
@@ -3341,11 +3341,11 @@ function Ao(e, t, n) {
|
|
|
3341
3341
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function Ao(e, t, n) {
|
|
3345
3345
|
const r = this;
|
|
3346
3346
|
return i;
|
|
3347
3347
|
function i(a) {
|
|
3348
|
-
return
|
|
3348
|
+
return Er.call(r, e, o, l, "reference", "referenceMarker", "referenceString")(a);
|
|
3349
3349
|
}
|
|
3350
3350
|
function o(a) {
|
|
3351
3351
|
return r.parser.defined.includes(ce(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(a) : n(a);
|
|
@@ -3354,7 +3354,7 @@ function To(e, t, n) {
|
|
|
3354
3354
|
return n(a);
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
|
-
function
|
|
3357
|
+
function To(e, t, n) {
|
|
3358
3358
|
return r;
|
|
3359
3359
|
function r(o) {
|
|
3360
3360
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
|
@@ -3363,12 +3363,12 @@ function Po(e, t, n) {
|
|
|
3363
3363
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3366
|
+
const Po = {
|
|
3367
3367
|
name: "labelStartImage",
|
|
3368
3368
|
resolveAll: Gn.resolveAll,
|
|
3369
|
-
tokenize:
|
|
3369
|
+
tokenize: vo
|
|
3370
3370
|
};
|
|
3371
|
-
function
|
|
3371
|
+
function vo(e, t, n) {
|
|
3372
3372
|
const r = this;
|
|
3373
3373
|
return i;
|
|
3374
3374
|
function i(a) {
|
|
@@ -3381,12 +3381,12 @@ function Lo(e, t, n) {
|
|
|
3381
3381
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
|
|
3382
3382
|
}
|
|
3383
3383
|
}
|
|
3384
|
-
const
|
|
3384
|
+
const Lo = {
|
|
3385
3385
|
name: "labelStartLink",
|
|
3386
3386
|
resolveAll: Gn.resolveAll,
|
|
3387
|
-
tokenize:
|
|
3387
|
+
tokenize: zo
|
|
3388
3388
|
};
|
|
3389
|
-
function
|
|
3389
|
+
function zo(e, t, n) {
|
|
3390
3390
|
const r = this;
|
|
3391
3391
|
return i;
|
|
3392
3392
|
function i(l) {
|
|
@@ -3398,9 +3398,9 @@ function Do(e, t, n) {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
const yn = {
|
|
3400
3400
|
name: "lineEnding",
|
|
3401
|
-
tokenize:
|
|
3401
|
+
tokenize: Do
|
|
3402
3402
|
};
|
|
3403
|
-
function
|
|
3403
|
+
function Do(e, t) {
|
|
3404
3404
|
return n;
|
|
3405
3405
|
function n(r) {
|
|
3406
3406
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), j(e, t, "linePrefix");
|
|
@@ -3408,9 +3408,9 @@ function Fo(e, t) {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
const Ze = {
|
|
3410
3410
|
name: "thematicBreak",
|
|
3411
|
-
tokenize:
|
|
3411
|
+
tokenize: Fo
|
|
3412
3412
|
};
|
|
3413
|
-
function
|
|
3413
|
+
function Fo(e, t, n) {
|
|
3414
3414
|
let r = 0, i;
|
|
3415
3415
|
return o;
|
|
3416
3416
|
function o(s) {
|
|
@@ -3428,19 +3428,19 @@ function _o(e, t, n) {
|
|
|
3428
3428
|
}
|
|
3429
3429
|
const Z = {
|
|
3430
3430
|
continuation: {
|
|
3431
|
-
tokenize:
|
|
3431
|
+
tokenize: Mo
|
|
3432
3432
|
},
|
|
3433
|
-
exit:
|
|
3433
|
+
exit: Bo,
|
|
3434
3434
|
name: "list",
|
|
3435
|
-
tokenize:
|
|
3436
|
-
},
|
|
3435
|
+
tokenize: Oo
|
|
3436
|
+
}, _o = {
|
|
3437
3437
|
partial: !0,
|
|
3438
|
-
tokenize:
|
|
3439
|
-
},
|
|
3438
|
+
tokenize: jo
|
|
3439
|
+
}, Ro = {
|
|
3440
3440
|
partial: !0,
|
|
3441
|
-
tokenize:
|
|
3441
|
+
tokenize: No
|
|
3442
3442
|
};
|
|
3443
|
-
function
|
|
3443
|
+
function Oo(e, t, n) {
|
|
3444
3444
|
const r = this, i = r.events[r.events.length - 1];
|
|
3445
3445
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
|
3446
3446
|
return a;
|
|
@@ -3464,7 +3464,7 @@ function Mo(e, t, n) {
|
|
|
3464
3464
|
We,
|
|
3465
3465
|
// Can’t be empty when interrupting.
|
|
3466
3466
|
r.interrupt ? n : f,
|
|
3467
|
-
e.attempt(
|
|
3467
|
+
e.attempt(_o, p, c)
|
|
3468
3468
|
);
|
|
3469
3469
|
}
|
|
3470
3470
|
function f(h) {
|
|
@@ -3477,20 +3477,20 @@ function Mo(e, t, n) {
|
|
|
3477
3477
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
|
|
3478
3478
|
}
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function Mo(e, t, n) {
|
|
3481
3481
|
const r = this;
|
|
3482
3482
|
return r.containerState._closeFlow = void 0, e.check(We, i, o);
|
|
3483
3483
|
function i(a) {
|
|
3484
3484
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, j(e, t, "listItemIndent", r.containerState.size + 1)(a);
|
|
3485
3485
|
}
|
|
3486
3486
|
function o(a) {
|
|
3487
|
-
return r.containerState.furtherBlankLines || !N(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(
|
|
3487
|
+
return r.containerState.furtherBlankLines || !N(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(Ro, t, l)(a));
|
|
3488
3488
|
}
|
|
3489
3489
|
function l(a) {
|
|
3490
3490
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, j(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3491
3491
|
}
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function No(e, t, n) {
|
|
3494
3494
|
const r = this;
|
|
3495
3495
|
return j(e, i, "listItemIndent", r.containerState.size + 1);
|
|
3496
3496
|
function i(o) {
|
|
@@ -3498,10 +3498,10 @@ function Bo(e, t, n) {
|
|
|
3498
3498
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function Bo(e) {
|
|
3502
3502
|
e.exit(this.containerState.type);
|
|
3503
3503
|
}
|
|
3504
|
-
function
|
|
3504
|
+
function jo(e, t, n) {
|
|
3505
3505
|
const r = this;
|
|
3506
3506
|
return j(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3507
3507
|
function i(o) {
|
|
@@ -3511,10 +3511,10 @@ function Ho(e, t, n) {
|
|
|
3511
3511
|
}
|
|
3512
3512
|
const vt = {
|
|
3513
3513
|
name: "setextUnderline",
|
|
3514
|
-
resolveTo:
|
|
3515
|
-
tokenize:
|
|
3514
|
+
resolveTo: Ho,
|
|
3515
|
+
tokenize: Uo
|
|
3516
3516
|
};
|
|
3517
|
-
function
|
|
3517
|
+
function Ho(e, t) {
|
|
3518
3518
|
let n = e.length, r, i, o;
|
|
3519
3519
|
for (; n--; )
|
|
3520
3520
|
if (e[n][0] === "enter") {
|
|
@@ -3538,7 +3538,7 @@ function Uo(e, t) {
|
|
|
3538
3538
|
...e[o][1].end
|
|
3539
3539
|
}) : e[r][1] = l, e.push(["exit", l, t]), e;
|
|
3540
3540
|
}
|
|
3541
|
-
function
|
|
3541
|
+
function Uo(e, t, n) {
|
|
3542
3542
|
const r = this;
|
|
3543
3543
|
let i;
|
|
3544
3544
|
return o;
|
|
@@ -3561,16 +3561,16 @@ function qo(e, t, n) {
|
|
|
3561
3561
|
return s === null || D(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
|
|
3562
3562
|
}
|
|
3563
3563
|
}
|
|
3564
|
-
const
|
|
3565
|
-
tokenize:
|
|
3564
|
+
const qo = {
|
|
3565
|
+
tokenize: $o
|
|
3566
3566
|
};
|
|
3567
|
-
function
|
|
3567
|
+
function $o(e) {
|
|
3568
3568
|
const t = this, n = e.attempt(
|
|
3569
3569
|
// Try to parse a blank line.
|
|
3570
3570
|
We,
|
|
3571
3571
|
r,
|
|
3572
3572
|
// Try to parse initial flow (essentially, only code).
|
|
3573
|
-
e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
|
3573
|
+
e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Yl, i)), "linePrefix"))
|
|
3574
3574
|
);
|
|
3575
3575
|
return n;
|
|
3576
3576
|
function r(o) {
|
|
@@ -3588,12 +3588,12 @@ function Vo(e) {
|
|
|
3588
3588
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
3591
|
-
const
|
|
3592
|
-
resolveAll:
|
|
3593
|
-
},
|
|
3594
|
-
function
|
|
3591
|
+
const Vo = {
|
|
3592
|
+
resolveAll: Tr()
|
|
3593
|
+
}, Wo = Ar("string"), Qo = Ar("text");
|
|
3594
|
+
function Ar(e) {
|
|
3595
3595
|
return {
|
|
3596
|
-
resolveAll:
|
|
3596
|
+
resolveAll: Tr(e === "text" ? Yo : void 0),
|
|
3597
3597
|
tokenize: t
|
|
3598
3598
|
};
|
|
3599
3599
|
function t(n) {
|
|
@@ -3627,7 +3627,7 @@ function Tr(e) {
|
|
|
3627
3627
|
}
|
|
3628
3628
|
}
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function Tr(e) {
|
|
3631
3631
|
return t;
|
|
3632
3632
|
function t(n, r) {
|
|
3633
3633
|
let i = -1, o;
|
|
@@ -3636,7 +3636,7 @@ function Pr(e) {
|
|
|
3636
3636
|
return e ? e(n, r) : n;
|
|
3637
3637
|
}
|
|
3638
3638
|
}
|
|
3639
|
-
function
|
|
3639
|
+
function Yo(e, t) {
|
|
3640
3640
|
let n = 0;
|
|
3641
3641
|
for (; ++n <= e.length; )
|
|
3642
3642
|
if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
|
|
@@ -3678,7 +3678,7 @@ function Go(e, t) {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
return e;
|
|
3680
3680
|
}
|
|
3681
|
-
const
|
|
3681
|
+
const Go = {
|
|
3682
3682
|
42: Z,
|
|
3683
3683
|
43: Z,
|
|
3684
3684
|
45: Z,
|
|
@@ -3692,46 +3692,46 @@ const Xo = {
|
|
|
3692
3692
|
55: Z,
|
|
3693
3693
|
56: Z,
|
|
3694
3694
|
57: Z,
|
|
3695
|
-
62:
|
|
3695
|
+
62: xr
|
|
3696
|
+
}, Xo = {
|
|
3697
|
+
91: Zl
|
|
3696
3698
|
}, Ko = {
|
|
3697
|
-
91: eo
|
|
3698
|
-
}, Jo = {
|
|
3699
3699
|
[-2]: dn,
|
|
3700
3700
|
[-1]: dn,
|
|
3701
3701
|
32: dn
|
|
3702
|
-
},
|
|
3703
|
-
35:
|
|
3702
|
+
}, Jo = {
|
|
3703
|
+
35: lo,
|
|
3704
3704
|
42: Ze,
|
|
3705
3705
|
45: [vt, Ze],
|
|
3706
|
-
60:
|
|
3706
|
+
60: so,
|
|
3707
3707
|
61: vt,
|
|
3708
3708
|
95: Ze,
|
|
3709
3709
|
96: Tt,
|
|
3710
3710
|
126: Tt
|
|
3711
|
+
}, Zo = {
|
|
3712
|
+
38: wr,
|
|
3713
|
+
92: br
|
|
3711
3714
|
}, ea = {
|
|
3712
|
-
38: Sr,
|
|
3713
|
-
92: wr
|
|
3714
|
-
}, na = {
|
|
3715
3715
|
[-5]: yn,
|
|
3716
3716
|
[-4]: yn,
|
|
3717
3717
|
[-3]: yn,
|
|
3718
|
-
33:
|
|
3719
|
-
38:
|
|
3718
|
+
33: Po,
|
|
3719
|
+
38: wr,
|
|
3720
3720
|
42: Rn,
|
|
3721
|
-
60: [
|
|
3722
|
-
91:
|
|
3723
|
-
92: [
|
|
3721
|
+
60: [vl, yo],
|
|
3722
|
+
91: Lo,
|
|
3723
|
+
92: [ro, br],
|
|
3724
3724
|
93: Gn,
|
|
3725
3725
|
95: Rn,
|
|
3726
|
-
96:
|
|
3726
|
+
96: Ul
|
|
3727
|
+
}, na = {
|
|
3728
|
+
null: [Rn, Vo]
|
|
3727
3729
|
}, ta = {
|
|
3728
|
-
null: [Rn, Wo]
|
|
3729
|
-
}, ra = {
|
|
3730
3730
|
null: [42, 95]
|
|
3731
|
-
},
|
|
3731
|
+
}, ra = {
|
|
3732
3732
|
null: []
|
|
3733
|
-
},
|
|
3734
|
-
function
|
|
3733
|
+
}, ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: ta, contentInitial: Xo, disable: ra, document: Go, flow: Jo, flowInitial: Ko, insideSpan: na, string: Zo, text: ea }, Symbol.toStringTag, { value: "Module" }));
|
|
3734
|
+
function la(e, t, n) {
|
|
3735
3735
|
let r = {
|
|
3736
3736
|
_bufferIndex: -1,
|
|
3737
3737
|
_index: 0,
|
|
@@ -3768,10 +3768,10 @@ function oa(e, t, n) {
|
|
|
3768
3768
|
return l = ie(l, P), E(), l[l.length - 1] !== null ? [] : (U(t, 0), s.events = un(o, s.events, s), s.events);
|
|
3769
3769
|
}
|
|
3770
3770
|
function p(P, v) {
|
|
3771
|
-
return
|
|
3771
|
+
return aa(h(P), v);
|
|
3772
3772
|
}
|
|
3773
3773
|
function h(P) {
|
|
3774
|
-
return
|
|
3774
|
+
return oa(l, P);
|
|
3775
3775
|
}
|
|
3776
3776
|
function d() {
|
|
3777
3777
|
const {
|
|
@@ -3894,7 +3894,7 @@ function oa(e, t, n) {
|
|
|
3894
3894
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
3895
3895
|
}
|
|
3896
3896
|
}
|
|
3897
|
-
function
|
|
3897
|
+
function oa(e, t) {
|
|
3898
3898
|
const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
|
|
3899
3899
|
let l;
|
|
3900
3900
|
if (n === i)
|
|
@@ -3908,7 +3908,7 @@ function aa(e, t) {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
return l;
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function aa(e, t) {
|
|
3912
3912
|
let n = -1;
|
|
3913
3913
|
const r = [];
|
|
3914
3914
|
let i;
|
|
@@ -3948,35 +3948,35 @@ function ua(e, t) {
|
|
|
3948
3948
|
}
|
|
3949
3949
|
return r.join("");
|
|
3950
3950
|
}
|
|
3951
|
-
function
|
|
3951
|
+
function ua(e) {
|
|
3952
3952
|
const r = {
|
|
3953
3953
|
constructs: (
|
|
3954
3954
|
/** @type {FullNormalizedExtension} */
|
|
3955
|
-
|
|
3955
|
+
yr([ia, ...(e || {}).extensions || []])
|
|
3956
3956
|
),
|
|
3957
|
-
content: i(
|
|
3957
|
+
content: i(Sl),
|
|
3958
3958
|
defined: [],
|
|
3959
|
-
document: i(
|
|
3960
|
-
flow: i(
|
|
3959
|
+
document: i(El),
|
|
3960
|
+
flow: i(qo),
|
|
3961
3961
|
lazy: {},
|
|
3962
|
-
string: i(
|
|
3963
|
-
text: i(
|
|
3962
|
+
string: i(Wo),
|
|
3963
|
+
text: i(Qo)
|
|
3964
3964
|
};
|
|
3965
3965
|
return r;
|
|
3966
3966
|
function i(o) {
|
|
3967
3967
|
return l;
|
|
3968
3968
|
function l(a) {
|
|
3969
|
-
return
|
|
3969
|
+
return la(r, o, a);
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
|
3973
|
-
function
|
|
3974
|
-
for (; !
|
|
3973
|
+
function sa(e) {
|
|
3974
|
+
for (; !Sr(e); )
|
|
3975
3975
|
;
|
|
3976
3976
|
return e;
|
|
3977
3977
|
}
|
|
3978
3978
|
const Lt = /[\0\t\n\r]/g;
|
|
3979
|
-
function
|
|
3979
|
+
function ca() {
|
|
3980
3980
|
let e = 1, t = "", n = !0, r;
|
|
3981
3981
|
return i;
|
|
3982
3982
|
function i(o, l, a) {
|
|
@@ -4011,24 +4011,24 @@ function fa() {
|
|
|
4011
4011
|
return a && (r && u.push(-5), t && u.push(t), u.push(null)), u;
|
|
4012
4012
|
}
|
|
4013
4013
|
}
|
|
4014
|
-
const
|
|
4015
|
-
function
|
|
4016
|
-
return e.replace(
|
|
4014
|
+
const fa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4015
|
+
function ha(e) {
|
|
4016
|
+
return e.replace(fa, pa);
|
|
4017
4017
|
}
|
|
4018
|
-
function
|
|
4018
|
+
function pa(e, t, n) {
|
|
4019
4019
|
if (t)
|
|
4020
4020
|
return t;
|
|
4021
4021
|
if (n.charCodeAt(0) === 35) {
|
|
4022
4022
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
|
4023
|
-
return
|
|
4023
|
+
return kr(n.slice(o ? 2 : 1), o ? 16 : 10);
|
|
4024
4024
|
}
|
|
4025
4025
|
return Yn(n) || e;
|
|
4026
4026
|
}
|
|
4027
|
-
const
|
|
4028
|
-
function
|
|
4029
|
-
return typeof t != "string" && (n = t, t = void 0),
|
|
4027
|
+
const Pr = {}.hasOwnProperty;
|
|
4028
|
+
function ma(e, t, n) {
|
|
4029
|
+
return typeof t != "string" && (n = t, t = void 0), ga(n)(sa(ua(n).document().write(ca()(e, t, !0))));
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4031
|
+
function ga(e) {
|
|
4032
4032
|
const t = {
|
|
4033
4033
|
transforms: [],
|
|
4034
4034
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -4044,36 +4044,36 @@ function da(e) {
|
|
|
4044
4044
|
codeFencedFenceInfo: l,
|
|
4045
4045
|
codeFencedFenceMeta: l,
|
|
4046
4046
|
codeIndented: o(Ye, l),
|
|
4047
|
-
codeText: o(
|
|
4047
|
+
codeText: o(oi, l),
|
|
4048
4048
|
codeTextData: H,
|
|
4049
4049
|
data: H,
|
|
4050
4050
|
codeFlowValue: H,
|
|
4051
|
-
definition: o(
|
|
4051
|
+
definition: o(ai),
|
|
4052
4052
|
definitionDestinationString: l,
|
|
4053
4053
|
definitionLabelString: l,
|
|
4054
4054
|
definitionTitleString: l,
|
|
4055
|
-
emphasis: o(
|
|
4055
|
+
emphasis: o(ui),
|
|
4056
4056
|
hardBreakEscape: o(ot),
|
|
4057
4057
|
hardBreakTrailing: o(ot),
|
|
4058
4058
|
htmlFlow: o(at, l),
|
|
4059
4059
|
htmlFlowData: H,
|
|
4060
4060
|
htmlText: o(at, l),
|
|
4061
4061
|
htmlTextData: H,
|
|
4062
|
-
image: o(
|
|
4062
|
+
image: o(si),
|
|
4063
4063
|
label: l,
|
|
4064
4064
|
link: o(ut),
|
|
4065
|
-
listItem: o(
|
|
4065
|
+
listItem: o(ci),
|
|
4066
4066
|
listItemValue: p,
|
|
4067
4067
|
listOrdered: o(st, c),
|
|
4068
4068
|
listUnordered: o(st),
|
|
4069
|
-
paragraph: o(
|
|
4069
|
+
paragraph: o(fi),
|
|
4070
4070
|
reference: g,
|
|
4071
4071
|
referenceString: l,
|
|
4072
4072
|
resourceDestinationString: l,
|
|
4073
4073
|
resourceTitleString: l,
|
|
4074
4074
|
setextHeading: o(lt),
|
|
4075
|
-
strong: o(
|
|
4076
|
-
thematicBreak: o(
|
|
4075
|
+
strong: o(hi),
|
|
4076
|
+
thematicBreak: o(mi)
|
|
4077
4077
|
},
|
|
4078
4078
|
exit: {
|
|
4079
4079
|
atxHeading: u(),
|
|
@@ -4127,7 +4127,7 @@ function da(e) {
|
|
|
4127
4127
|
thematicBreak: u()
|
|
4128
4128
|
}
|
|
4129
4129
|
};
|
|
4130
|
-
|
|
4130
|
+
vr(t, (e || {}).mdastExtensions || []);
|
|
4131
4131
|
const n = {};
|
|
4132
4132
|
return r;
|
|
4133
4133
|
function r(b) {
|
|
@@ -4156,7 +4156,7 @@ function da(e) {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
for (q = -1; ++q < b.length; ) {
|
|
4158
4158
|
const se = t[b[q][0]];
|
|
4159
|
-
|
|
4159
|
+
Pr.call(se, b[q][1].type) && se[b[q][1].type].call(Object.assign({
|
|
4160
4160
|
sliceSerialize: b[q][2].sliceSerialize
|
|
4161
4161
|
}, R), b[q][1]);
|
|
4162
4162
|
}
|
|
@@ -4327,7 +4327,7 @@ function da(e) {
|
|
|
4327
4327
|
function H(b) {
|
|
4328
4328
|
const R = this.stack[this.stack.length - 1].children;
|
|
4329
4329
|
let B = R[R.length - 1];
|
|
4330
|
-
(!B || B.type !== "text") && (B =
|
|
4330
|
+
(!B || B.type !== "text") && (B = pi(), B.position = {
|
|
4331
4331
|
start: xe(b.start),
|
|
4332
4332
|
// @ts-expect-error: we’ll add `end` later.
|
|
4333
4333
|
end: void 0
|
|
@@ -4381,7 +4381,7 @@ function da(e) {
|
|
|
4381
4381
|
}
|
|
4382
4382
|
function oe(b) {
|
|
4383
4383
|
const A = this.sliceSerialize(b), R = this.stack[this.stack.length - 2];
|
|
4384
|
-
R.label =
|
|
4384
|
+
R.label = ha(A), R.identifier = ce(A).toLowerCase();
|
|
4385
4385
|
}
|
|
4386
4386
|
function pe() {
|
|
4387
4387
|
const b = this.stack[this.stack.length - 1], A = this.resume(), R = this.stack[this.stack.length - 1];
|
|
@@ -4415,7 +4415,7 @@ function da(e) {
|
|
|
4415
4415
|
function G(b) {
|
|
4416
4416
|
const A = this.sliceSerialize(b), R = this.data.characterReferenceType;
|
|
4417
4417
|
let B;
|
|
4418
|
-
R ? (B =
|
|
4418
|
+
R ? (B = kr(A, R === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : B = Yn(A);
|
|
4419
4419
|
const q = this.stack[this.stack.length - 1];
|
|
4420
4420
|
q.value += B;
|
|
4421
4421
|
}
|
|
@@ -4447,13 +4447,13 @@ function da(e) {
|
|
|
4447
4447
|
value: ""
|
|
4448
4448
|
};
|
|
4449
4449
|
}
|
|
4450
|
-
function
|
|
4450
|
+
function oi() {
|
|
4451
4451
|
return {
|
|
4452
4452
|
type: "inlineCode",
|
|
4453
4453
|
value: ""
|
|
4454
4454
|
};
|
|
4455
4455
|
}
|
|
4456
|
-
function
|
|
4456
|
+
function ai() {
|
|
4457
4457
|
return {
|
|
4458
4458
|
type: "definition",
|
|
4459
4459
|
identifier: "",
|
|
@@ -4462,7 +4462,7 @@ function da(e) {
|
|
|
4462
4462
|
url: ""
|
|
4463
4463
|
};
|
|
4464
4464
|
}
|
|
4465
|
-
function
|
|
4465
|
+
function ui() {
|
|
4466
4466
|
return {
|
|
4467
4467
|
type: "emphasis",
|
|
4468
4468
|
children: []
|
|
@@ -4487,7 +4487,7 @@ function da(e) {
|
|
|
4487
4487
|
value: ""
|
|
4488
4488
|
};
|
|
4489
4489
|
}
|
|
4490
|
-
function
|
|
4490
|
+
function si() {
|
|
4491
4491
|
return {
|
|
4492
4492
|
type: "image",
|
|
4493
4493
|
title: null,
|
|
@@ -4512,7 +4512,7 @@ function da(e) {
|
|
|
4512
4512
|
children: []
|
|
4513
4513
|
};
|
|
4514
4514
|
}
|
|
4515
|
-
function
|
|
4515
|
+
function ci(b) {
|
|
4516
4516
|
return {
|
|
4517
4517
|
type: "listItem",
|
|
4518
4518
|
spread: b._spread,
|
|
@@ -4520,25 +4520,25 @@ function da(e) {
|
|
|
4520
4520
|
children: []
|
|
4521
4521
|
};
|
|
4522
4522
|
}
|
|
4523
|
-
function
|
|
4523
|
+
function fi() {
|
|
4524
4524
|
return {
|
|
4525
4525
|
type: "paragraph",
|
|
4526
4526
|
children: []
|
|
4527
4527
|
};
|
|
4528
4528
|
}
|
|
4529
|
-
function
|
|
4529
|
+
function hi() {
|
|
4530
4530
|
return {
|
|
4531
4531
|
type: "strong",
|
|
4532
4532
|
children: []
|
|
4533
4533
|
};
|
|
4534
4534
|
}
|
|
4535
|
-
function
|
|
4535
|
+
function pi() {
|
|
4536
4536
|
return {
|
|
4537
4537
|
type: "text",
|
|
4538
4538
|
value: ""
|
|
4539
4539
|
};
|
|
4540
4540
|
}
|
|
4541
|
-
function
|
|
4541
|
+
function mi() {
|
|
4542
4542
|
return {
|
|
4543
4543
|
type: "thematicBreak"
|
|
4544
4544
|
};
|
|
@@ -4551,17 +4551,17 @@ function xe(e) {
|
|
|
4551
4551
|
offset: e.offset
|
|
4552
4552
|
};
|
|
4553
4553
|
}
|
|
4554
|
-
function
|
|
4554
|
+
function vr(e, t) {
|
|
4555
4555
|
let n = -1;
|
|
4556
4556
|
for (; ++n < t.length; ) {
|
|
4557
4557
|
const r = t[n];
|
|
4558
|
-
Array.isArray(r) ?
|
|
4558
|
+
Array.isArray(r) ? vr(e, r) : da(e, r);
|
|
4559
4559
|
}
|
|
4560
4560
|
}
|
|
4561
|
-
function
|
|
4561
|
+
function da(e, t) {
|
|
4562
4562
|
let n;
|
|
4563
4563
|
for (n in t)
|
|
4564
|
-
if (
|
|
4564
|
+
if (Pr.call(t, n))
|
|
4565
4565
|
switch (n) {
|
|
4566
4566
|
case "canContainEols": {
|
|
4567
4567
|
const r = t[n];
|
|
@@ -4593,11 +4593,11 @@ function zt(e, t) {
|
|
|
4593
4593
|
end: t.end
|
|
4594
4594
|
}) + ") is still open");
|
|
4595
4595
|
}
|
|
4596
|
-
function
|
|
4596
|
+
function ya(e) {
|
|
4597
4597
|
const t = this;
|
|
4598
4598
|
t.parser = n;
|
|
4599
4599
|
function n(r) {
|
|
4600
|
-
return
|
|
4600
|
+
return ma(r, {
|
|
4601
4601
|
...t.data("settings"),
|
|
4602
4602
|
...e,
|
|
4603
4603
|
// Note: these options are not in the readme.
|
|
@@ -4608,7 +4608,7 @@ function ka(e) {
|
|
|
4608
4608
|
});
|
|
4609
4609
|
}
|
|
4610
4610
|
}
|
|
4611
|
-
function
|
|
4611
|
+
function ka(e, t) {
|
|
4612
4612
|
const n = {
|
|
4613
4613
|
type: "element",
|
|
4614
4614
|
tagName: "blockquote",
|
|
@@ -4617,12 +4617,12 @@ function xa(e, t) {
|
|
|
4617
4617
|
};
|
|
4618
4618
|
return e.patch(t, n), e.applyData(t, n);
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4620
|
+
function xa(e, t) {
|
|
4621
4621
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4622
4622
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
4623
4623
|
` }];
|
|
4624
4624
|
}
|
|
4625
|
-
function
|
|
4625
|
+
function ba(e, t) {
|
|
4626
4626
|
const n = t.value ? t.value + `
|
|
4627
4627
|
` : "", r = {};
|
|
4628
4628
|
t.lang && (r.className = ["language-" + t.lang]);
|
|
@@ -4634,7 +4634,7 @@ function wa(e, t) {
|
|
|
4634
4634
|
};
|
|
4635
4635
|
return t.meta && (i.data = { meta: t.meta }), e.patch(t, i), i = e.applyData(t, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(t, i), i;
|
|
4636
4636
|
}
|
|
4637
|
-
function
|
|
4637
|
+
function wa(e, t) {
|
|
4638
4638
|
const n = {
|
|
4639
4639
|
type: "element",
|
|
4640
4640
|
tagName: "del",
|
|
@@ -4643,7 +4643,7 @@ function Sa(e, t) {
|
|
|
4643
4643
|
};
|
|
4644
4644
|
return e.patch(t, n), e.applyData(t, n);
|
|
4645
4645
|
}
|
|
4646
|
-
function
|
|
4646
|
+
function Sa(e, t) {
|
|
4647
4647
|
const n = {
|
|
4648
4648
|
type: "element",
|
|
4649
4649
|
tagName: "em",
|
|
@@ -4652,7 +4652,7 @@ function Ca(e, t) {
|
|
|
4652
4652
|
};
|
|
4653
4653
|
return e.patch(t, n), e.applyData(t, n);
|
|
4654
4654
|
}
|
|
4655
|
-
function
|
|
4655
|
+
function Ca(e, t) {
|
|
4656
4656
|
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);
|
|
4657
4657
|
let l, a = e.footnoteCounts.get(r);
|
|
4658
4658
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -4676,7 +4676,7 @@ function Ea(e, t) {
|
|
|
4676
4676
|
};
|
|
4677
4677
|
return e.patch(t, s), e.applyData(t, s);
|
|
4678
4678
|
}
|
|
4679
|
-
function
|
|
4679
|
+
function Ea(e, t) {
|
|
4680
4680
|
const n = {
|
|
4681
4681
|
type: "element",
|
|
4682
4682
|
tagName: "h" + t.depth,
|
|
@@ -4685,13 +4685,13 @@ function Ia(e, t) {
|
|
|
4685
4685
|
};
|
|
4686
4686
|
return e.patch(t, n), e.applyData(t, n);
|
|
4687
4687
|
}
|
|
4688
|
-
function
|
|
4688
|
+
function Ia(e, t) {
|
|
4689
4689
|
if (e.options.allowDangerousHtml) {
|
|
4690
4690
|
const n = { type: "raw", value: t.value };
|
|
4691
4691
|
return e.patch(t, n), e.applyData(t, n);
|
|
4692
4692
|
}
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4694
|
+
function Lr(e, t) {
|
|
4695
4695
|
const n = t.referenceType;
|
|
4696
4696
|
let r = "]";
|
|
4697
4697
|
if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference")
|
|
@@ -4701,22 +4701,22 @@ function zr(e, t) {
|
|
|
4701
4701
|
const l = i[i.length - 1];
|
|
4702
4702
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
|
4703
4703
|
}
|
|
4704
|
-
function
|
|
4704
|
+
function Aa(e, t) {
|
|
4705
4705
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4706
4706
|
if (!r)
|
|
4707
|
-
return
|
|
4707
|
+
return Lr(e, t);
|
|
4708
4708
|
const i = { src: _e(r.url || ""), alt: t.alt };
|
|
4709
4709
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4710
4710
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
4711
4711
|
return e.patch(t, o), e.applyData(t, o);
|
|
4712
4712
|
}
|
|
4713
|
-
function
|
|
4713
|
+
function Ta(e, t) {
|
|
4714
4714
|
const n = { src: _e(t.url) };
|
|
4715
4715
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4716
4716
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
4717
4717
|
return e.patch(t, r), e.applyData(t, r);
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function Pa(e, t) {
|
|
4720
4720
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
|
4721
4721
|
e.patch(t, n);
|
|
4722
4722
|
const r = {
|
|
@@ -4727,10 +4727,10 @@ function va(e, t) {
|
|
|
4727
4727
|
};
|
|
4728
4728
|
return e.patch(t, r), e.applyData(t, r);
|
|
4729
4729
|
}
|
|
4730
|
-
function
|
|
4730
|
+
function va(e, t) {
|
|
4731
4731
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4732
4732
|
if (!r)
|
|
4733
|
-
return
|
|
4733
|
+
return Lr(e, t);
|
|
4734
4734
|
const i = { href: _e(r.url || "") };
|
|
4735
4735
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4736
4736
|
const o = {
|
|
@@ -4741,7 +4741,7 @@ function La(e, t) {
|
|
|
4741
4741
|
};
|
|
4742
4742
|
return e.patch(t, o), e.applyData(t, o);
|
|
4743
4743
|
}
|
|
4744
|
-
function
|
|
4744
|
+
function La(e, t) {
|
|
4745
4745
|
const n = { href: _e(t.url) };
|
|
4746
4746
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4747
4747
|
const r = {
|
|
@@ -4752,8 +4752,8 @@ function za(e, t) {
|
|
|
4752
4752
|
};
|
|
4753
4753
|
return e.patch(t, r), e.applyData(t, r);
|
|
4754
4754
|
}
|
|
4755
|
-
function
|
|
4756
|
-
const r = e.all(t), i = n ?
|
|
4755
|
+
function za(e, t, n) {
|
|
4756
|
+
const r = e.all(t), i = n ? Da(n) : zr(t), o = {}, l = [];
|
|
4757
4757
|
if (typeof t.checked == "boolean") {
|
|
4758
4758
|
const f = r[0];
|
|
4759
4759
|
let c;
|
|
@@ -4776,22 +4776,22 @@ function Da(e, t, n) {
|
|
|
4776
4776
|
const s = { type: "element", tagName: "li", properties: o, children: l };
|
|
4777
4777
|
return e.patch(t, s), e.applyData(t, s);
|
|
4778
4778
|
}
|
|
4779
|
-
function
|
|
4779
|
+
function Da(e) {
|
|
4780
4780
|
let t = !1;
|
|
4781
4781
|
if (e.type === "list") {
|
|
4782
4782
|
t = e.spread || !1;
|
|
4783
4783
|
const n = e.children;
|
|
4784
4784
|
let r = -1;
|
|
4785
4785
|
for (; !t && ++r < n.length; )
|
|
4786
|
-
t =
|
|
4786
|
+
t = zr(n[r]);
|
|
4787
4787
|
}
|
|
4788
4788
|
return t;
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function zr(e) {
|
|
4791
4791
|
const t = e.spread;
|
|
4792
4792
|
return t ?? e.children.length > 1;
|
|
4793
4793
|
}
|
|
4794
|
-
function
|
|
4794
|
+
function Fa(e, t) {
|
|
4795
4795
|
const n = {}, r = e.all(t);
|
|
4796
4796
|
let i = -1;
|
|
4797
4797
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
|
@@ -4809,7 +4809,7 @@ function _a(e, t) {
|
|
|
4809
4809
|
};
|
|
4810
4810
|
return e.patch(t, o), e.applyData(t, o);
|
|
4811
4811
|
}
|
|
4812
|
-
function
|
|
4812
|
+
function _a(e, t) {
|
|
4813
4813
|
const n = {
|
|
4814
4814
|
type: "element",
|
|
4815
4815
|
tagName: "p",
|
|
@@ -4818,11 +4818,11 @@ function Ra(e, t) {
|
|
|
4818
4818
|
};
|
|
4819
4819
|
return e.patch(t, n), e.applyData(t, n);
|
|
4820
4820
|
}
|
|
4821
|
-
function
|
|
4821
|
+
function Ra(e, t) {
|
|
4822
4822
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
|
4823
4823
|
return e.patch(t, n), e.applyData(t, n);
|
|
4824
4824
|
}
|
|
4825
|
-
function
|
|
4825
|
+
function Oa(e, t) {
|
|
4826
4826
|
const n = {
|
|
4827
4827
|
type: "element",
|
|
4828
4828
|
tagName: "strong",
|
|
@@ -4831,7 +4831,7 @@ function Ma(e, t) {
|
|
|
4831
4831
|
};
|
|
4832
4832
|
return e.patch(t, n), e.applyData(t, n);
|
|
4833
4833
|
}
|
|
4834
|
-
function
|
|
4834
|
+
function Ma(e, t) {
|
|
4835
4835
|
const n = e.all(t), r = n.shift(), i = [];
|
|
4836
4836
|
if (r) {
|
|
4837
4837
|
const l = {
|
|
@@ -4848,7 +4848,7 @@ function Na(e, t) {
|
|
|
4848
4848
|
tagName: "tbody",
|
|
4849
4849
|
properties: {},
|
|
4850
4850
|
children: e.wrap(n, !0)
|
|
4851
|
-
}, a = qn(t.children[1]), u =
|
|
4851
|
+
}, a = qn(t.children[1]), u = cr(t.children[t.children.length - 1]);
|
|
4852
4852
|
a && u && (l.position = { start: a, end: u }), i.push(l);
|
|
4853
4853
|
}
|
|
4854
4854
|
const o = {
|
|
@@ -4859,7 +4859,7 @@ function Na(e, t) {
|
|
|
4859
4859
|
};
|
|
4860
4860
|
return e.patch(t, o), e.applyData(t, o);
|
|
4861
4861
|
}
|
|
4862
|
-
function
|
|
4862
|
+
function Na(e, t, n) {
|
|
4863
4863
|
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;
|
|
4864
4864
|
let u = -1;
|
|
4865
4865
|
const s = [];
|
|
@@ -4877,7 +4877,7 @@ function Ba(e, t, n) {
|
|
|
4877
4877
|
};
|
|
4878
4878
|
return e.patch(t, f), e.applyData(t, f);
|
|
4879
4879
|
}
|
|
4880
|
-
function
|
|
4880
|
+
function Ba(e, t) {
|
|
4881
4881
|
const n = {
|
|
4882
4882
|
type: "element",
|
|
4883
4883
|
tagName: "td",
|
|
@@ -4888,7 +4888,7 @@ function ja(e, t) {
|
|
|
4888
4888
|
return e.patch(t, n), e.applyData(t, n);
|
|
4889
4889
|
}
|
|
4890
4890
|
const Dt = 9, Ft = 32;
|
|
4891
|
-
function
|
|
4891
|
+
function ja(e) {
|
|
4892
4892
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4893
4893
|
let r = n.exec(t), i = 0;
|
|
4894
4894
|
const o = [];
|
|
@@ -4913,11 +4913,11 @@ function _t(e, t, n) {
|
|
|
4913
4913
|
}
|
|
4914
4914
|
return i > r ? e.slice(r, i) : "";
|
|
4915
4915
|
}
|
|
4916
|
-
function
|
|
4917
|
-
const n = { type: "text", value:
|
|
4916
|
+
function Ha(e, t) {
|
|
4917
|
+
const n = { type: "text", value: ja(String(t.value)) };
|
|
4918
4918
|
return e.patch(t, n), e.applyData(t, n);
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function Ua(e, t) {
|
|
4921
4921
|
const n = {
|
|
4922
4922
|
type: "element",
|
|
4923
4923
|
tagName: "hr",
|
|
@@ -4926,31 +4926,31 @@ function qa(e, t) {
|
|
|
4926
4926
|
};
|
|
4927
4927
|
return e.patch(t, n), e.applyData(t, n);
|
|
4928
4928
|
}
|
|
4929
|
-
const
|
|
4930
|
-
blockquote:
|
|
4931
|
-
break:
|
|
4932
|
-
code:
|
|
4933
|
-
delete:
|
|
4934
|
-
emphasis:
|
|
4935
|
-
footnoteReference:
|
|
4936
|
-
heading:
|
|
4937
|
-
html:
|
|
4938
|
-
imageReference:
|
|
4939
|
-
image:
|
|
4940
|
-
inlineCode:
|
|
4941
|
-
linkReference:
|
|
4942
|
-
link:
|
|
4943
|
-
listItem:
|
|
4944
|
-
list:
|
|
4945
|
-
paragraph:
|
|
4929
|
+
const qa = {
|
|
4930
|
+
blockquote: ka,
|
|
4931
|
+
break: xa,
|
|
4932
|
+
code: ba,
|
|
4933
|
+
delete: wa,
|
|
4934
|
+
emphasis: Sa,
|
|
4935
|
+
footnoteReference: Ca,
|
|
4936
|
+
heading: Ea,
|
|
4937
|
+
html: Ia,
|
|
4938
|
+
imageReference: Aa,
|
|
4939
|
+
image: Ta,
|
|
4940
|
+
inlineCode: Pa,
|
|
4941
|
+
linkReference: va,
|
|
4942
|
+
link: La,
|
|
4943
|
+
listItem: za,
|
|
4944
|
+
list: Fa,
|
|
4945
|
+
paragraph: _a,
|
|
4946
4946
|
// @ts-expect-error: root is different, but hard to type.
|
|
4947
|
-
root:
|
|
4948
|
-
strong:
|
|
4949
|
-
table:
|
|
4950
|
-
tableCell:
|
|
4951
|
-
tableRow:
|
|
4952
|
-
text:
|
|
4953
|
-
thematicBreak:
|
|
4947
|
+
root: Ra,
|
|
4948
|
+
strong: Oa,
|
|
4949
|
+
table: Ma,
|
|
4950
|
+
tableCell: Ba,
|
|
4951
|
+
tableRow: Na,
|
|
4952
|
+
text: Ha,
|
|
4953
|
+
thematicBreak: Ua,
|
|
4954
4954
|
toml: Ge,
|
|
4955
4955
|
yaml: Ge,
|
|
4956
4956
|
definition: Ge,
|
|
@@ -4958,14 +4958,14 @@ const $a = {
|
|
|
4958
4958
|
};
|
|
4959
4959
|
function Ge() {
|
|
4960
4960
|
}
|
|
4961
|
-
const
|
|
4961
|
+
const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _r = 8, Rt = typeof self == "object" ? self : globalThis, $a = (e, t) => {
|
|
4962
4962
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4963
4963
|
if (e.has(i))
|
|
4964
4964
|
return e.get(i);
|
|
4965
4965
|
const [o, l] = t[i];
|
|
4966
4966
|
switch (o) {
|
|
4967
4967
|
case sn:
|
|
4968
|
-
case
|
|
4968
|
+
case Dr:
|
|
4969
4969
|
return n(l, i);
|
|
4970
4970
|
case tn: {
|
|
4971
4971
|
const a = n([], i);
|
|
@@ -4997,11 +4997,11 @@ const Fr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, _r = 7, R
|
|
|
4997
4997
|
a.add(r(u));
|
|
4998
4998
|
return a;
|
|
4999
4999
|
}
|
|
5000
|
-
case
|
|
5000
|
+
case Fr: {
|
|
5001
5001
|
const { name: a, message: u } = l;
|
|
5002
5002
|
return n(new Rt[a](u), i);
|
|
5003
5003
|
}
|
|
5004
|
-
case
|
|
5004
|
+
case _r:
|
|
5005
5005
|
return n(BigInt(l), i);
|
|
5006
5006
|
case "BigInt":
|
|
5007
5007
|
return n(Object(BigInt(l)), i);
|
|
@@ -5009,11 +5009,11 @@ const Fr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, _r = 7, R
|
|
|
5009
5009
|
return n(new Rt[o](l), i);
|
|
5010
5010
|
};
|
|
5011
5011
|
return r;
|
|
5012
|
-
}, Ot = (e) =>
|
|
5012
|
+
}, Ot = (e) => $a(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: Va } = {}, { keys: Wa } = Object, je = (e) => {
|
|
5013
5013
|
const t = typeof e;
|
|
5014
5014
|
if (t !== "object" || !e)
|
|
5015
5015
|
return [sn, t];
|
|
5016
|
-
const n =
|
|
5016
|
+
const n = Va.call(e).slice(8, -1);
|
|
5017
5017
|
switch (n) {
|
|
5018
5018
|
case "Array":
|
|
5019
5019
|
return [tn, ve];
|
|
@@ -5028,8 +5028,8 @@ const Fr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, _r = 7, R
|
|
|
5028
5028
|
case "Set":
|
|
5029
5029
|
return [Zn, ve];
|
|
5030
5030
|
}
|
|
5031
|
-
return n.includes("Array") ? [tn, n] : n.includes("Error") ? [
|
|
5032
|
-
}, Xe = ([e, t]) => e === sn && (t === "function" || t === "symbol"),
|
|
5031
|
+
return n.includes("Array") ? [tn, n] : n.includes("Error") ? [Fr, n] : [rn, n];
|
|
5032
|
+
}, Xe = ([e, t]) => e === sn && (t === "function" || t === "symbol"), Qa = (e, t, n, r) => {
|
|
5033
5033
|
const i = (l, a) => {
|
|
5034
5034
|
const u = r.push(l) - 1;
|
|
5035
5035
|
return n.set(a, u), u;
|
|
@@ -5042,7 +5042,7 @@ const Fr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, _r = 7, R
|
|
|
5042
5042
|
let f = l;
|
|
5043
5043
|
switch (u) {
|
|
5044
5044
|
case "bigint":
|
|
5045
|
-
a =
|
|
5045
|
+
a = _r, f = l.toString();
|
|
5046
5046
|
break;
|
|
5047
5047
|
case "function":
|
|
5048
5048
|
case "symbol":
|
|
@@ -5051,7 +5051,7 @@ const Fr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, _r = 7, R
|
|
|
5051
5051
|
f = null;
|
|
5052
5052
|
break;
|
|
5053
5053
|
case "undefined":
|
|
5054
|
-
return i([
|
|
5054
|
+
return i([Dr], l);
|
|
5055
5055
|
}
|
|
5056
5056
|
return i([a, f], l);
|
|
5057
5057
|
}
|
|
@@ -5076,7 +5076,7 @@ const Fr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, _r = 7, R
|
|
|
5076
5076
|
if (t && "toJSON" in l)
|
|
5077
5077
|
return o(l.toJSON());
|
|
5078
5078
|
const f = [], c = i([a, f], l);
|
|
5079
|
-
for (const p of
|
|
5079
|
+
for (const p of Wa(l))
|
|
5080
5080
|
(e || !Xe(je(l[p]))) && f.push([o(p), o(l[p])]);
|
|
5081
5081
|
return c;
|
|
5082
5082
|
}
|
|
@@ -5105,12 +5105,12 @@ const Fr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, _r = 7, R
|
|
|
5105
5105
|
return o;
|
|
5106
5106
|
}, Mt = (e, { json: t, lossy: n } = {}) => {
|
|
5107
5107
|
const r = [];
|
|
5108
|
-
return
|
|
5108
|
+
return Qa(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5109
5109
|
}, ln = typeof structuredClone == "function" ? (
|
|
5110
5110
|
/* c8 ignore start */
|
|
5111
5111
|
(e, t) => t && ("json" in t || "lossy" in t) ? Ot(Mt(e, t)) : structuredClone(e)
|
|
5112
5112
|
) : (e, t) => Ot(Mt(e, t));
|
|
5113
|
-
function
|
|
5113
|
+
function Ya(e, t) {
|
|
5114
5114
|
const n = [{ type: "text", value: "↩" }];
|
|
5115
5115
|
return t > 1 && n.push({
|
|
5116
5116
|
type: "element",
|
|
@@ -5119,11 +5119,11 @@ function Ga(e, t) {
|
|
|
5119
5119
|
children: [{ type: "text", value: String(t) }]
|
|
5120
5120
|
}), n;
|
|
5121
5121
|
}
|
|
5122
|
-
function
|
|
5122
|
+
function Ga(e, t) {
|
|
5123
5123
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
5124
5124
|
}
|
|
5125
|
-
function
|
|
5126
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
5125
|
+
function Xa(e) {
|
|
5126
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || Ya, r = e.options.footnoteBackLabel || Ga, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
|
|
5127
5127
|
className: ["sr-only"]
|
|
5128
5128
|
}, a = [];
|
|
5129
5129
|
let u = -1;
|
|
@@ -5210,17 +5210,17 @@ const cn = (
|
|
|
5210
5210
|
*/
|
|
5211
5211
|
function(e) {
|
|
5212
5212
|
if (e == null)
|
|
5213
|
-
return
|
|
5213
|
+
return eu;
|
|
5214
5214
|
if (typeof e == "function")
|
|
5215
5215
|
return fn(e);
|
|
5216
5216
|
if (typeof e == "object")
|
|
5217
|
-
return Array.isArray(e) ?
|
|
5217
|
+
return Array.isArray(e) ? Ka(e) : Ja(e);
|
|
5218
5218
|
if (typeof e == "string")
|
|
5219
|
-
return
|
|
5219
|
+
return Za(e);
|
|
5220
5220
|
throw new Error("Expected function, string, or object as test");
|
|
5221
5221
|
}
|
|
5222
5222
|
);
|
|
5223
|
-
function
|
|
5223
|
+
function Ka(e) {
|
|
5224
5224
|
const t = [];
|
|
5225
5225
|
let n = -1;
|
|
5226
5226
|
for (; ++n < e.length; )
|
|
@@ -5233,7 +5233,7 @@ function Ja(e) {
|
|
|
5233
5233
|
return !1;
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
|
-
function
|
|
5236
|
+
function Ja(e) {
|
|
5237
5237
|
const t = (
|
|
5238
5238
|
/** @type {Record<string, unknown>} */
|
|
5239
5239
|
e
|
|
@@ -5251,7 +5251,7 @@ function Za(e) {
|
|
|
5251
5251
|
return !0;
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
|
-
function
|
|
5254
|
+
function Za(e) {
|
|
5255
5255
|
return fn(t);
|
|
5256
5256
|
function t(n) {
|
|
5257
5257
|
return n && n.type === e;
|
|
@@ -5260,7 +5260,7 @@ function eu(e) {
|
|
|
5260
5260
|
function fn(e) {
|
|
5261
5261
|
return t;
|
|
5262
5262
|
function t(n, r, i) {
|
|
5263
|
-
return !!(
|
|
5263
|
+
return !!(nu(n) && e.call(
|
|
5264
5264
|
this,
|
|
5265
5265
|
n,
|
|
5266
5266
|
typeof r == "number" ? r : void 0,
|
|
@@ -5268,14 +5268,14 @@ function fn(e) {
|
|
|
5268
5268
|
));
|
|
5269
5269
|
}
|
|
5270
5270
|
}
|
|
5271
|
-
function
|
|
5271
|
+
function eu() {
|
|
5272
5272
|
return !0;
|
|
5273
5273
|
}
|
|
5274
|
-
function
|
|
5274
|
+
function nu(e) {
|
|
5275
5275
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5276
5276
|
}
|
|
5277
|
-
const
|
|
5278
|
-
function
|
|
5277
|
+
const Rr = [], tu = !0, On = !1, ru = "skip";
|
|
5278
|
+
function Or(e, t, n, r) {
|
|
5279
5279
|
let i;
|
|
5280
5280
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
5281
5281
|
const o = cn(i), l = r ? -1 : 1;
|
|
@@ -5299,15 +5299,15 @@ function Mr(e, t, n, r) {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
return p;
|
|
5301
5301
|
function p() {
|
|
5302
|
-
let h =
|
|
5303
|
-
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h =
|
|
5302
|
+
let h = Rr, d, x, E;
|
|
5303
|
+
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = iu(n(u, f)), h[0] === On))
|
|
5304
5304
|
return h;
|
|
5305
5305
|
if ("children" in u && u.children) {
|
|
5306
5306
|
const y = (
|
|
5307
5307
|
/** @type {UnistParent} */
|
|
5308
5308
|
u
|
|
5309
5309
|
);
|
|
5310
|
-
if (y.children && h[0] !==
|
|
5310
|
+
if (y.children && h[0] !== ru)
|
|
5311
5311
|
for (x = (r ? y.children.length : -1) + l, E = f.concat(y); x > -1 && x < y.children.length; ) {
|
|
5312
5312
|
const S = y.children[x];
|
|
5313
5313
|
if (d = a(S, x, E)(), d[0] === On)
|
|
@@ -5319,22 +5319,22 @@ function Mr(e, t, n, r) {
|
|
|
5319
5319
|
}
|
|
5320
5320
|
}
|
|
5321
5321
|
}
|
|
5322
|
-
function
|
|
5323
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
5322
|
+
function iu(e) {
|
|
5323
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [tu, e] : e == null ? Rr : [e];
|
|
5324
5324
|
}
|
|
5325
5325
|
function et(e, t, n, r) {
|
|
5326
5326
|
let i, o, l;
|
|
5327
|
-
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r),
|
|
5327
|
+
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r), Or(e, o, a, i);
|
|
5328
5328
|
function a(u, s) {
|
|
5329
5329
|
const f = s[s.length - 1], c = f ? f.children.indexOf(u) : void 0;
|
|
5330
5330
|
return l(u, c, f);
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
|
-
const Mn = {}.hasOwnProperty,
|
|
5334
|
-
function
|
|
5335
|
-
const n = t ||
|
|
5333
|
+
const Mn = {}.hasOwnProperty, lu = {};
|
|
5334
|
+
function ou(e, t) {
|
|
5335
|
+
const n = t || lu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...qa, ...n.handlers }, a = {
|
|
5336
5336
|
all: s,
|
|
5337
|
-
applyData:
|
|
5337
|
+
applyData: uu,
|
|
5338
5338
|
definitionById: r,
|
|
5339
5339
|
footnoteById: i,
|
|
5340
5340
|
footnoteCounts: o,
|
|
@@ -5342,8 +5342,8 @@ function au(e, t) {
|
|
|
5342
5342
|
handlers: l,
|
|
5343
5343
|
one: u,
|
|
5344
5344
|
options: n,
|
|
5345
|
-
patch:
|
|
5346
|
-
wrap:
|
|
5345
|
+
patch: au,
|
|
5346
|
+
wrap: cu
|
|
5347
5347
|
};
|
|
5348
5348
|
return et(e, function(f) {
|
|
5349
5349
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
@@ -5362,7 +5362,7 @@ function au(e, t) {
|
|
|
5362
5362
|
}
|
|
5363
5363
|
return ln(f);
|
|
5364
5364
|
}
|
|
5365
|
-
return (a.options.unknownHandler ||
|
|
5365
|
+
return (a.options.unknownHandler || su)(a, f, c);
|
|
5366
5366
|
}
|
|
5367
5367
|
function s(f) {
|
|
5368
5368
|
const c = [];
|
|
@@ -5383,10 +5383,10 @@ function au(e, t) {
|
|
|
5383
5383
|
return c;
|
|
5384
5384
|
}
|
|
5385
5385
|
}
|
|
5386
|
-
function
|
|
5387
|
-
e.position && (t.position =
|
|
5386
|
+
function au(e, t) {
|
|
5387
|
+
e.position && (t.position = Wi(e));
|
|
5388
5388
|
}
|
|
5389
|
-
function
|
|
5389
|
+
function uu(e, t) {
|
|
5390
5390
|
let n = t;
|
|
5391
5391
|
if (e && e.data) {
|
|
5392
5392
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -5401,7 +5401,7 @@ function su(e, t) {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
return n;
|
|
5403
5403
|
}
|
|
5404
|
-
function
|
|
5404
|
+
function su(e, t) {
|
|
5405
5405
|
const n = t.data || {}, r = "value" in t && !(Mn.call(n, "hProperties") || Mn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5406
5406
|
type: "element",
|
|
5407
5407
|
tagName: "div",
|
|
@@ -5410,7 +5410,7 @@ function cu(e, t) {
|
|
|
5410
5410
|
};
|
|
5411
5411
|
return e.patch(t, r), e.applyData(t, r);
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function cu(e, t) {
|
|
5414
5414
|
const n = [];
|
|
5415
5415
|
let r = -1;
|
|
5416
5416
|
for (t && n.push({ type: "text", value: `
|
|
@@ -5427,11 +5427,11 @@ function Nt(e) {
|
|
|
5427
5427
|
return e.slice(t);
|
|
5428
5428
|
}
|
|
5429
5429
|
function Bt(e, t) {
|
|
5430
|
-
const n =
|
|
5430
|
+
const n = ou(e, t), r = n.one(e, void 0), i = Xa(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5431
5431
|
return i && o.children.push({ type: "text", value: `
|
|
5432
5432
|
` }, i), o;
|
|
5433
5433
|
}
|
|
5434
|
-
function
|
|
5434
|
+
function fu(e, t) {
|
|
5435
5435
|
return e && "run" in e ? async function(n, r) {
|
|
5436
5436
|
const i = (
|
|
5437
5437
|
/** @type {HastRoot} */
|
|
@@ -5450,7 +5450,7 @@ function jt(e) {
|
|
|
5450
5450
|
throw e;
|
|
5451
5451
|
}
|
|
5452
5452
|
var kn, Ht;
|
|
5453
|
-
function
|
|
5453
|
+
function hu() {
|
|
5454
5454
|
if (Ht) return kn;
|
|
5455
5455
|
Ht = 1;
|
|
5456
5456
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(s) {
|
|
@@ -5489,15 +5489,15 @@ function pu() {
|
|
|
5489
5489
|
return x;
|
|
5490
5490
|
}, kn;
|
|
5491
5491
|
}
|
|
5492
|
-
var
|
|
5493
|
-
const xn = /* @__PURE__ */
|
|
5492
|
+
var pu = /* @__PURE__ */ hu();
|
|
5493
|
+
const xn = /* @__PURE__ */ nr(pu);
|
|
5494
5494
|
function Nn(e) {
|
|
5495
5495
|
if (typeof e != "object" || e === null)
|
|
5496
5496
|
return !1;
|
|
5497
5497
|
const t = Object.getPrototypeOf(e);
|
|
5498
5498
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5499
5499
|
}
|
|
5500
|
-
function
|
|
5500
|
+
function mu() {
|
|
5501
5501
|
const e = [], t = { run: n, use: r };
|
|
5502
5502
|
return t;
|
|
5503
5503
|
function n(...i) {
|
|
@@ -5515,7 +5515,7 @@ function gu() {
|
|
|
5515
5515
|
}
|
|
5516
5516
|
for (; ++c < i.length; )
|
|
5517
5517
|
(s[c] === null || s[c] === void 0) && (s[c] = i[c]);
|
|
5518
|
-
i = s, f ?
|
|
5518
|
+
i = s, f ? gu(f, a)(...s) : l(null, ...s);
|
|
5519
5519
|
}
|
|
5520
5520
|
}
|
|
5521
5521
|
function r(i) {
|
|
@@ -5526,7 +5526,7 @@ function gu() {
|
|
|
5526
5526
|
return e.push(i), t;
|
|
5527
5527
|
}
|
|
5528
5528
|
}
|
|
5529
|
-
function
|
|
5529
|
+
function gu(e, t) {
|
|
5530
5530
|
let n;
|
|
5531
5531
|
return r;
|
|
5532
5532
|
function r(...l) {
|
|
@@ -5553,8 +5553,8 @@ function du(e, t) {
|
|
|
5553
5553
|
i(null, l);
|
|
5554
5554
|
}
|
|
5555
5555
|
}
|
|
5556
|
-
const fe = { basename:
|
|
5557
|
-
function
|
|
5556
|
+
const fe = { basename: du, dirname: yu, extname: ku, join: xu, sep: "/" };
|
|
5557
|
+
function du(e, t) {
|
|
5558
5558
|
if (t !== void 0 && typeof t != "string")
|
|
5559
5559
|
throw new TypeError('"ext" argument must be a string');
|
|
5560
5560
|
Qe(e);
|
|
@@ -5582,7 +5582,7 @@ function yu(e, t) {
|
|
|
5582
5582
|
l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
|
|
5583
5583
|
return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5585
|
+
function yu(e) {
|
|
5586
5586
|
if (Qe(e), e.length === 0)
|
|
5587
5587
|
return ".";
|
|
5588
5588
|
let t = -1, n = e.length, r;
|
|
@@ -5595,7 +5595,7 @@ function ku(e) {
|
|
|
5595
5595
|
} else r || (r = !0);
|
|
5596
5596
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
5597
5597
|
}
|
|
5598
|
-
function
|
|
5598
|
+
function ku(e) {
|
|
5599
5599
|
Qe(e);
|
|
5600
5600
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
|
|
5601
5601
|
for (; t--; ) {
|
|
@@ -5613,19 +5613,19 @@ function xu(e) {
|
|
|
5613
5613
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5614
5614
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
5615
5615
|
}
|
|
5616
|
-
function
|
|
5616
|
+
function xu(...e) {
|
|
5617
5617
|
let t = -1, n;
|
|
5618
5618
|
for (; ++t < e.length; )
|
|
5619
5619
|
Qe(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
5620
|
-
return n === void 0 ? "." :
|
|
5620
|
+
return n === void 0 ? "." : bu(n);
|
|
5621
5621
|
}
|
|
5622
|
-
function
|
|
5622
|
+
function bu(e) {
|
|
5623
5623
|
Qe(e);
|
|
5624
5624
|
const t = e.codePointAt(0) === 47;
|
|
5625
|
-
let n =
|
|
5625
|
+
let n = wu(e, !t);
|
|
5626
5626
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
5627
5627
|
}
|
|
5628
|
-
function
|
|
5628
|
+
function wu(e, t) {
|
|
5629
5629
|
let n = "", r = 0, i = -1, o = 0, l = -1, a, u;
|
|
5630
5630
|
for (; ++l <= e.length; ) {
|
|
5631
5631
|
if (l < e.length)
|
|
@@ -5662,15 +5662,15 @@ function Qe(e) {
|
|
|
5662
5662
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5663
5663
|
);
|
|
5664
5664
|
}
|
|
5665
|
-
const
|
|
5666
|
-
function
|
|
5665
|
+
const Su = { cwd: Cu };
|
|
5666
|
+
function Cu() {
|
|
5667
5667
|
return "/";
|
|
5668
5668
|
}
|
|
5669
5669
|
function Bn(e) {
|
|
5670
5670
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5671
5671
|
e.auth === void 0);
|
|
5672
5672
|
}
|
|
5673
|
-
function
|
|
5673
|
+
function Eu(e) {
|
|
5674
5674
|
if (typeof e == "string")
|
|
5675
5675
|
e = new URL(e);
|
|
5676
5676
|
else if (!Bn(e)) {
|
|
@@ -5683,9 +5683,9 @@ function Iu(e) {
|
|
|
5683
5683
|
const t = new TypeError("The URL must be of scheme file");
|
|
5684
5684
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
5685
5685
|
}
|
|
5686
|
-
return
|
|
5686
|
+
return Iu(e);
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5688
|
+
function Iu(e) {
|
|
5689
5689
|
if (e.hostname !== "") {
|
|
5690
5690
|
const r = new TypeError(
|
|
5691
5691
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5717,7 +5717,7 @@ const bn = (
|
|
|
5717
5717
|
"dirname"
|
|
5718
5718
|
]
|
|
5719
5719
|
);
|
|
5720
|
-
class
|
|
5720
|
+
class Mr {
|
|
5721
5721
|
/**
|
|
5722
5722
|
* Create a new virtual file.
|
|
5723
5723
|
*
|
|
@@ -5742,7 +5742,7 @@ class Nr {
|
|
|
5742
5742
|
*/
|
|
5743
5743
|
constructor(t) {
|
|
5744
5744
|
let n;
|
|
5745
|
-
t ? Bn(t) ? n = { path: t } : typeof t == "string" ||
|
|
5745
|
+
t ? Bn(t) ? n = { path: t } : typeof t == "string" || Au(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Su.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5746
5746
|
let r = -1;
|
|
5747
5747
|
for (; ++r < bn.length; ) {
|
|
5748
5748
|
const o = bn[r];
|
|
@@ -5850,7 +5850,7 @@ class Nr {
|
|
|
5850
5850
|
* Nothing.
|
|
5851
5851
|
*/
|
|
5852
5852
|
set path(t) {
|
|
5853
|
-
Bn(t) && (t =
|
|
5853
|
+
Bn(t) && (t = Eu(t)), Sn(t, "path"), this.path !== t && this.history.push(t);
|
|
5854
5854
|
}
|
|
5855
5855
|
/**
|
|
5856
5856
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6101,10 +6101,10 @@ function Ut(e, t) {
|
|
|
6101
6101
|
if (!e)
|
|
6102
6102
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6103
6103
|
}
|
|
6104
|
-
function
|
|
6104
|
+
function Au(e) {
|
|
6105
6105
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6106
6106
|
}
|
|
6107
|
-
const
|
|
6107
|
+
const Tu = (
|
|
6108
6108
|
/**
|
|
6109
6109
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6110
6110
|
*/
|
|
@@ -6125,13 +6125,13 @@ const Pu = (
|
|
|
6125
6125
|
};
|
|
6126
6126
|
return Object.setPrototypeOf(o, r), o;
|
|
6127
6127
|
}
|
|
6128
|
-
),
|
|
6129
|
-
class nt extends
|
|
6128
|
+
), Pu = {}.hasOwnProperty;
|
|
6129
|
+
class nt extends Tu {
|
|
6130
6130
|
/**
|
|
6131
6131
|
* Create a processor.
|
|
6132
6132
|
*/
|
|
6133
6133
|
constructor() {
|
|
6134
|
-
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 =
|
|
6134
|
+
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();
|
|
6135
6135
|
}
|
|
6136
6136
|
/**
|
|
6137
6137
|
* Copy a processor.
|
|
@@ -6216,7 +6216,7 @@ class nt extends Pu {
|
|
|
6216
6216
|
* the entire dataset when getting without key.
|
|
6217
6217
|
*/
|
|
6218
6218
|
data(t, n) {
|
|
6219
|
-
return typeof t == "string" ? arguments.length === 2 ? (In("data", this.frozen), this.namespace[t] = n, this) :
|
|
6219
|
+
return typeof t == "string" ? arguments.length === 2 ? (In("data", this.frozen), this.namespace[t] = n, this) : Pu.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (In("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
6220
6220
|
}
|
|
6221
6221
|
/**
|
|
6222
6222
|
* Freeze a processor.
|
|
@@ -6331,7 +6331,7 @@ class nt extends Pu {
|
|
|
6331
6331
|
/** @type {unknown} */
|
|
6332
6332
|
c
|
|
6333
6333
|
), d = r.stringify(h, p);
|
|
6334
|
-
|
|
6334
|
+
zu(d) ? p.value = d : p.result = d, s(
|
|
6335
6335
|
f,
|
|
6336
6336
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6337
6337
|
p
|
|
@@ -6607,7 +6607,7 @@ class nt extends Pu {
|
|
|
6607
6607
|
}
|
|
6608
6608
|
}
|
|
6609
6609
|
}
|
|
6610
|
-
const
|
|
6610
|
+
const vu = new nt().freeze();
|
|
6611
6611
|
function Cn(e, t) {
|
|
6612
6612
|
if (typeof t != "function")
|
|
6613
6613
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -6633,18 +6633,18 @@ function $t(e, t, n) {
|
|
|
6633
6633
|
);
|
|
6634
6634
|
}
|
|
6635
6635
|
function Ke(e) {
|
|
6636
|
-
return
|
|
6636
|
+
return Lu(e) ? e : new Mr(e);
|
|
6637
6637
|
}
|
|
6638
|
-
function
|
|
6638
|
+
function Lu(e) {
|
|
6639
6639
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6640
6640
|
}
|
|
6641
|
-
function
|
|
6642
|
-
return typeof e == "string" ||
|
|
6641
|
+
function zu(e) {
|
|
6642
|
+
return typeof e == "string" || Du(e);
|
|
6643
6643
|
}
|
|
6644
|
-
function
|
|
6644
|
+
function Du(e) {
|
|
6645
6645
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6646
6646
|
}
|
|
6647
|
-
const Vt = [], Wt = { allowDangerousHtml: !0 },
|
|
6647
|
+
const Vt = [], Wt = { allowDangerousHtml: !0 }, Fu = /^(https?|ircs?|mailto|xmpp)$/i, _u = [
|
|
6648
6648
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
6649
6649
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
6650
6650
|
{
|
|
@@ -6677,10 +6677,10 @@ const Vt = [], Wt = { allowDangerousHtml: !0 }, _u = /^(https?|ircs?|mailto|xmpp
|
|
|
6677
6677
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
6678
6678
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
6679
6679
|
];
|
|
6680
|
-
function
|
|
6681
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Vt, u = e.remarkPlugins || Vt, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Wt } : Wt, f = e.skipHtml, c = e.unwrapDisallowed, p = e.urlTransform ||
|
|
6680
|
+
function Ru(e) {
|
|
6681
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Vt, u = e.remarkPlugins || Vt, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Wt } : Wt, f = e.skipHtml, c = e.unwrapDisallowed, p = e.urlTransform || Ou, h = vu().use(ya).use(u).use(fu, s).use(a), d = new Mr();
|
|
6682
6682
|
typeof r == "string" && (d.value = r);
|
|
6683
|
-
for (const S of
|
|
6683
|
+
for (const S of _u)
|
|
6684
6684
|
;
|
|
6685
6685
|
const x = h.parse(d);
|
|
6686
6686
|
let E = h.runSync(x, d);
|
|
@@ -6693,8 +6693,8 @@ function Ou(e) {
|
|
|
6693
6693
|
/** @type {Array<ElementContent>} */
|
|
6694
6694
|
E.type === "root" ? E.children : [E]
|
|
6695
6695
|
)
|
|
6696
|
-
}), et(E, y),
|
|
6697
|
-
Fragment:
|
|
6696
|
+
}), et(E, y), Ji(E, {
|
|
6697
|
+
Fragment: er,
|
|
6698
6698
|
// @ts-expect-error
|
|
6699
6699
|
// React components are allowed to return numbers,
|
|
6700
6700
|
// but not according to the types in hast-util-to-jsx-runtime
|
|
@@ -6723,13 +6723,13 @@ function Ou(e) {
|
|
|
6723
6723
|
}
|
|
6724
6724
|
}
|
|
6725
6725
|
}
|
|
6726
|
-
function
|
|
6726
|
+
function Ou(e) {
|
|
6727
6727
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
6728
6728
|
return (
|
|
6729
6729
|
// If there is no protocol, it’s relative.
|
|
6730
6730
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
6731
6731
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
|
6732
|
-
|
|
6732
|
+
Fu.test(e.slice(0, t)) ? e : ""
|
|
6733
6733
|
);
|
|
6734
6734
|
}
|
|
6735
6735
|
function Qt(e, t) {
|
|
@@ -6741,16 +6741,16 @@ function Qt(e, t) {
|
|
|
6741
6741
|
r++, i = n.indexOf(t, i + t.length);
|
|
6742
6742
|
return r;
|
|
6743
6743
|
}
|
|
6744
|
-
function
|
|
6744
|
+
function Mu(e) {
|
|
6745
6745
|
if (typeof e != "string")
|
|
6746
6746
|
throw new TypeError("Expected a string");
|
|
6747
6747
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
6748
6748
|
}
|
|
6749
|
-
function
|
|
6750
|
-
const i = cn(n.ignore || []), o =
|
|
6749
|
+
function Nu(e, t, n) {
|
|
6750
|
+
const i = cn(n.ignore || []), o = Bu(t);
|
|
6751
6751
|
let l = -1;
|
|
6752
6752
|
for (; ++l < o.length; )
|
|
6753
|
-
|
|
6753
|
+
Or(e, "text", a);
|
|
6754
6754
|
function a(s, f) {
|
|
6755
6755
|
let c = -1, p;
|
|
6756
6756
|
for (; ++c < f.length; ) {
|
|
@@ -6790,7 +6790,7 @@ function Bu(e, t, n) {
|
|
|
6790
6790
|
return y ? (d < s.value.length && S.push({ type: "text", value: s.value.slice(d) }), c.children.splice(E, 1, ...S)) : S = [s], E + S.length;
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
|
-
function
|
|
6793
|
+
function Bu(e) {
|
|
6794
6794
|
const t = [];
|
|
6795
6795
|
if (!Array.isArray(e))
|
|
6796
6796
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -6798,37 +6798,37 @@ function ju(e) {
|
|
|
6798
6798
|
let r = -1;
|
|
6799
6799
|
for (; ++r < n.length; ) {
|
|
6800
6800
|
const i = n[r];
|
|
6801
|
-
t.push([
|
|
6801
|
+
t.push([ju(i[0]), Hu(i[1])]);
|
|
6802
6802
|
}
|
|
6803
6803
|
return t;
|
|
6804
6804
|
}
|
|
6805
|
-
function
|
|
6806
|
-
return typeof e == "string" ? new RegExp(
|
|
6805
|
+
function ju(e) {
|
|
6806
|
+
return typeof e == "string" ? new RegExp(Mu(e), "g") : e;
|
|
6807
6807
|
}
|
|
6808
|
-
function
|
|
6808
|
+
function Hu(e) {
|
|
6809
6809
|
return typeof e == "function" ? e : function() {
|
|
6810
6810
|
return e;
|
|
6811
6811
|
};
|
|
6812
6812
|
}
|
|
6813
6813
|
const An = "phrasing", Tn = ["autolink", "link", "image", "label"];
|
|
6814
|
-
function
|
|
6814
|
+
function Uu() {
|
|
6815
6815
|
return {
|
|
6816
|
-
transforms: [
|
|
6816
|
+
transforms: [Gu],
|
|
6817
6817
|
enter: {
|
|
6818
|
-
literalAutolink:
|
|
6818
|
+
literalAutolink: $u,
|
|
6819
6819
|
literalAutolinkEmail: Pn,
|
|
6820
6820
|
literalAutolinkHttp: Pn,
|
|
6821
6821
|
literalAutolinkWww: Pn
|
|
6822
6822
|
},
|
|
6823
6823
|
exit: {
|
|
6824
|
-
literalAutolink:
|
|
6825
|
-
literalAutolinkEmail:
|
|
6826
|
-
literalAutolinkHttp:
|
|
6827
|
-
literalAutolinkWww:
|
|
6824
|
+
literalAutolink: Yu,
|
|
6825
|
+
literalAutolinkEmail: Qu,
|
|
6826
|
+
literalAutolinkHttp: Vu,
|
|
6827
|
+
literalAutolinkWww: Wu
|
|
6828
6828
|
}
|
|
6829
6829
|
};
|
|
6830
6830
|
}
|
|
6831
|
-
function
|
|
6831
|
+
function qu() {
|
|
6832
6832
|
return {
|
|
6833
6833
|
unsafe: [
|
|
6834
6834
|
{
|
|
@@ -6855,41 +6855,41 @@ function $u() {
|
|
|
6855
6855
|
]
|
|
6856
6856
|
};
|
|
6857
6857
|
}
|
|
6858
|
-
function
|
|
6858
|
+
function $u(e) {
|
|
6859
6859
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
6860
6860
|
}
|
|
6861
6861
|
function Pn(e) {
|
|
6862
6862
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
6863
6863
|
}
|
|
6864
|
-
function
|
|
6864
|
+
function Vu(e) {
|
|
6865
6865
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
6866
6866
|
}
|
|
6867
|
-
function
|
|
6867
|
+
function Wu(e) {
|
|
6868
6868
|
this.config.exit.data.call(this, e);
|
|
6869
6869
|
const t = this.stack[this.stack.length - 1];
|
|
6870
6870
|
t.url = "http://" + this.sliceSerialize(e);
|
|
6871
6871
|
}
|
|
6872
|
-
function
|
|
6872
|
+
function Qu(e) {
|
|
6873
6873
|
this.config.exit.autolinkEmail.call(this, e);
|
|
6874
6874
|
}
|
|
6875
|
-
function
|
|
6875
|
+
function Yu(e) {
|
|
6876
6876
|
this.exit(e);
|
|
6877
6877
|
}
|
|
6878
|
-
function
|
|
6879
|
-
|
|
6878
|
+
function Gu(e) {
|
|
6879
|
+
Nu(
|
|
6880
6880
|
e,
|
|
6881
6881
|
[
|
|
6882
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
6883
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
|
6882
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Xu],
|
|
6883
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Ku]
|
|
6884
6884
|
],
|
|
6885
6885
|
{ ignore: ["link", "linkReference"] }
|
|
6886
6886
|
);
|
|
6887
6887
|
}
|
|
6888
|
-
function
|
|
6888
|
+
function Xu(e, t, n, r, i) {
|
|
6889
6889
|
let o = "";
|
|
6890
|
-
if (!
|
|
6890
|
+
if (!Nr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Ju(n)))
|
|
6891
6891
|
return !1;
|
|
6892
|
-
const l =
|
|
6892
|
+
const l = Zu(n + r);
|
|
6893
6893
|
if (!l[0]) return !1;
|
|
6894
6894
|
const a = {
|
|
6895
6895
|
type: "link",
|
|
@@ -6899,10 +6899,10 @@ function Ku(e, t, n, r, i) {
|
|
|
6899
6899
|
};
|
|
6900
6900
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
6901
6901
|
}
|
|
6902
|
-
function
|
|
6902
|
+
function Ku(e, t, n, r) {
|
|
6903
6903
|
return (
|
|
6904
6904
|
// Not an expected previous character.
|
|
6905
|
-
!
|
|
6905
|
+
!Nr(r, !0) || // Label ends in not allowed character.
|
|
6906
6906
|
/[-\d_]$/.test(n) ? !1 : {
|
|
6907
6907
|
type: "link",
|
|
6908
6908
|
title: null,
|
|
@@ -6911,11 +6911,11 @@ function Ju(e, t, n, r) {
|
|
|
6911
6911
|
}
|
|
6912
6912
|
);
|
|
6913
6913
|
}
|
|
6914
|
-
function
|
|
6914
|
+
function Ju(e) {
|
|
6915
6915
|
const t = e.split(".");
|
|
6916
6916
|
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])));
|
|
6917
6917
|
}
|
|
6918
|
-
function
|
|
6918
|
+
function Zu(e) {
|
|
6919
6919
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
6920
6920
|
if (!t)
|
|
6921
6921
|
return [e, void 0];
|
|
@@ -6927,69 +6927,69 @@ function es(e) {
|
|
|
6927
6927
|
e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), o++;
|
|
6928
6928
|
return [e, n];
|
|
6929
6929
|
}
|
|
6930
|
-
function
|
|
6930
|
+
function Nr(e, t) {
|
|
6931
6931
|
const n = e.input.charCodeAt(e.index - 1);
|
|
6932
6932
|
return (e.index === 0 || Ee(n) || an(n)) && // If it’s an email, the previous character should not be a slash.
|
|
6933
6933
|
(!t || n !== 47);
|
|
6934
6934
|
}
|
|
6935
|
-
|
|
6936
|
-
function
|
|
6935
|
+
Br.peek = cs;
|
|
6936
|
+
function es() {
|
|
6937
6937
|
return {
|
|
6938
6938
|
enter: {
|
|
6939
|
-
gfmFootnoteDefinition:
|
|
6940
|
-
gfmFootnoteDefinitionLabelString:
|
|
6941
|
-
gfmFootnoteCall:
|
|
6942
|
-
gfmFootnoteCallString:
|
|
6939
|
+
gfmFootnoteDefinition: ts,
|
|
6940
|
+
gfmFootnoteDefinitionLabelString: rs,
|
|
6941
|
+
gfmFootnoteCall: os,
|
|
6942
|
+
gfmFootnoteCallString: as
|
|
6943
6943
|
},
|
|
6944
6944
|
exit: {
|
|
6945
|
-
gfmFootnoteDefinition:
|
|
6946
|
-
gfmFootnoteDefinitionLabelString:
|
|
6947
|
-
gfmFootnoteCall:
|
|
6948
|
-
gfmFootnoteCallString:
|
|
6945
|
+
gfmFootnoteDefinition: ls,
|
|
6946
|
+
gfmFootnoteDefinitionLabelString: is,
|
|
6947
|
+
gfmFootnoteCall: ss,
|
|
6948
|
+
gfmFootnoteCallString: us
|
|
6949
6949
|
}
|
|
6950
6950
|
};
|
|
6951
6951
|
}
|
|
6952
|
-
function
|
|
6952
|
+
function ns() {
|
|
6953
6953
|
return {
|
|
6954
6954
|
// This is on by default already.
|
|
6955
6955
|
unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
|
|
6956
|
-
handlers: { footnoteDefinition:
|
|
6956
|
+
handlers: { footnoteDefinition: fs, footnoteReference: Br }
|
|
6957
6957
|
};
|
|
6958
6958
|
}
|
|
6959
|
-
function
|
|
6959
|
+
function ts(e) {
|
|
6960
6960
|
this.enter(
|
|
6961
6961
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
6962
6962
|
e
|
|
6963
6963
|
);
|
|
6964
6964
|
}
|
|
6965
|
-
function
|
|
6965
|
+
function rs() {
|
|
6966
6966
|
this.buffer();
|
|
6967
6967
|
}
|
|
6968
|
-
function
|
|
6968
|
+
function is(e) {
|
|
6969
6969
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6970
6970
|
n.label = t, n.identifier = ce(
|
|
6971
6971
|
this.sliceSerialize(e)
|
|
6972
6972
|
).toLowerCase();
|
|
6973
6973
|
}
|
|
6974
|
-
function
|
|
6974
|
+
function ls(e) {
|
|
6975
6975
|
this.exit(e);
|
|
6976
6976
|
}
|
|
6977
|
-
function
|
|
6977
|
+
function os(e) {
|
|
6978
6978
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
6979
6979
|
}
|
|
6980
|
-
function
|
|
6980
|
+
function as() {
|
|
6981
6981
|
this.buffer();
|
|
6982
6982
|
}
|
|
6983
|
-
function
|
|
6983
|
+
function us(e) {
|
|
6984
6984
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6985
6985
|
n.label = t, n.identifier = ce(
|
|
6986
6986
|
this.sliceSerialize(e)
|
|
6987
6987
|
).toLowerCase();
|
|
6988
6988
|
}
|
|
6989
|
-
function
|
|
6989
|
+
function ss(e) {
|
|
6990
6990
|
this.exit(e);
|
|
6991
6991
|
}
|
|
6992
|
-
function
|
|
6992
|
+
function Br(e, t, n, r) {
|
|
6993
6993
|
const i = n.createTracker(r);
|
|
6994
6994
|
let o = i.move("[^");
|
|
6995
6995
|
const l = n.enter("footnoteReference"), a = n.enter("reference");
|
|
@@ -7001,10 +7001,10 @@ function jr(e, t, n, r) {
|
|
|
7001
7001
|
})
|
|
7002
7002
|
), a(), l(), o += i.move("]"), o;
|
|
7003
7003
|
}
|
|
7004
|
-
function
|
|
7004
|
+
function cs() {
|
|
7005
7005
|
return "[";
|
|
7006
7006
|
}
|
|
7007
|
-
function
|
|
7007
|
+
function fs(e, t, n, r) {
|
|
7008
7008
|
const i = n.createTracker(r);
|
|
7009
7009
|
let o = i.move("[^");
|
|
7010
7010
|
const l = n.enter("footnoteDefinition"), a = n.enter("label");
|
|
@@ -7017,13 +7017,13 @@ function hs(e, t, n, r) {
|
|
|
7017
7017
|
), a(), o += i.move(
|
|
7018
7018
|
"]:" + (e.children && e.children.length > 0 ? " " : "")
|
|
7019
7019
|
), i.shift(4), o += i.move(
|
|
7020
|
-
n.indentLines(n.containerFlow(e, i.current()),
|
|
7020
|
+
n.indentLines(n.containerFlow(e, i.current()), hs)
|
|
7021
7021
|
), l(), o;
|
|
7022
7022
|
}
|
|
7023
|
-
function
|
|
7023
|
+
function hs(e, t, n) {
|
|
7024
7024
|
return t === 0 ? e : (n ? "" : " ") + e;
|
|
7025
7025
|
}
|
|
7026
|
-
const
|
|
7026
|
+
const ps = [
|
|
7027
7027
|
"autolink",
|
|
7028
7028
|
"destinationLiteral",
|
|
7029
7029
|
"destinationRaw",
|
|
@@ -7031,33 +7031,33 @@ const ms = [
|
|
|
7031
7031
|
"titleQuote",
|
|
7032
7032
|
"titleApostrophe"
|
|
7033
7033
|
];
|
|
7034
|
-
|
|
7035
|
-
function
|
|
7034
|
+
jr.peek = ks;
|
|
7035
|
+
function ms() {
|
|
7036
7036
|
return {
|
|
7037
7037
|
canContainEols: ["delete"],
|
|
7038
|
-
enter: { strikethrough:
|
|
7039
|
-
exit: { strikethrough:
|
|
7038
|
+
enter: { strikethrough: ds },
|
|
7039
|
+
exit: { strikethrough: ys }
|
|
7040
7040
|
};
|
|
7041
7041
|
}
|
|
7042
|
-
function
|
|
7042
|
+
function gs() {
|
|
7043
7043
|
return {
|
|
7044
7044
|
unsafe: [
|
|
7045
7045
|
{
|
|
7046
7046
|
character: "~",
|
|
7047
7047
|
inConstruct: "phrasing",
|
|
7048
|
-
notInConstruct:
|
|
7048
|
+
notInConstruct: ps
|
|
7049
7049
|
}
|
|
7050
7050
|
],
|
|
7051
|
-
handlers: { delete:
|
|
7051
|
+
handlers: { delete: jr }
|
|
7052
7052
|
};
|
|
7053
7053
|
}
|
|
7054
|
-
function
|
|
7054
|
+
function ds(e) {
|
|
7055
7055
|
this.enter({ type: "delete", children: [] }, e);
|
|
7056
7056
|
}
|
|
7057
|
-
function
|
|
7057
|
+
function ys(e) {
|
|
7058
7058
|
this.exit(e);
|
|
7059
7059
|
}
|
|
7060
|
-
function
|
|
7060
|
+
function jr(e, t, n, r) {
|
|
7061
7061
|
const i = n.createTracker(r), o = n.enter("strikethrough");
|
|
7062
7062
|
let l = i.move("~~");
|
|
7063
7063
|
return l += n.containerPhrasing(e, {
|
|
@@ -7066,20 +7066,20 @@ function Hr(e, t, n, r) {
|
|
|
7066
7066
|
after: "~"
|
|
7067
7067
|
}), l += i.move("~~"), o(), l;
|
|
7068
7068
|
}
|
|
7069
|
-
function
|
|
7069
|
+
function ks() {
|
|
7070
7070
|
return "~";
|
|
7071
7071
|
}
|
|
7072
|
-
function
|
|
7072
|
+
function xs(e) {
|
|
7073
7073
|
return e.length;
|
|
7074
7074
|
}
|
|
7075
|
-
function
|
|
7076
|
-
const n = t, r = (n.align || []).concat(), i = n.stringLength ||
|
|
7075
|
+
function bs(e, t) {
|
|
7076
|
+
const n = t, r = (n.align || []).concat(), i = n.stringLength || xs, o = [], l = [], a = [], u = [];
|
|
7077
7077
|
let s = 0, f = -1;
|
|
7078
7078
|
for (; ++f < e.length; ) {
|
|
7079
7079
|
const x = [], E = [];
|
|
7080
7080
|
let y = -1;
|
|
7081
7081
|
for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
|
|
7082
|
-
const S =
|
|
7082
|
+
const S = ws(e[f][y]);
|
|
7083
7083
|
if (n.alignDelimiters !== !1) {
|
|
7084
7084
|
const C = i(S);
|
|
7085
7085
|
E[y] = C, (u[y] === void 0 || C > u[y]) && (u[y] = C);
|
|
@@ -7134,26 +7134,26 @@ function ws(e, t) {
|
|
|
7134
7134
|
return d.join(`
|
|
7135
7135
|
`);
|
|
7136
7136
|
}
|
|
7137
|
-
function
|
|
7137
|
+
function ws(e) {
|
|
7138
7138
|
return e == null ? "" : String(e);
|
|
7139
7139
|
}
|
|
7140
7140
|
function Yt(e) {
|
|
7141
7141
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7142
7142
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7143
7143
|
}
|
|
7144
|
-
function
|
|
7144
|
+
function Ss(e, t, n, r) {
|
|
7145
7145
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
7146
7146
|
o.move("> "), o.shift(2);
|
|
7147
7147
|
const l = n.indentLines(
|
|
7148
7148
|
n.containerFlow(e, o.current()),
|
|
7149
|
-
|
|
7149
|
+
Cs
|
|
7150
7150
|
);
|
|
7151
7151
|
return i(), l;
|
|
7152
7152
|
}
|
|
7153
|
-
function
|
|
7153
|
+
function Cs(e, t, n) {
|
|
7154
7154
|
return ">" + (n ? "" : " ") + e;
|
|
7155
7155
|
}
|
|
7156
|
-
function
|
|
7156
|
+
function Es(e, t) {
|
|
7157
7157
|
return Gt(e, t.inConstruct, !0) && !Gt(e, t.notInConstruct, !1);
|
|
7158
7158
|
}
|
|
7159
7159
|
function Gt(e, t, n) {
|
|
@@ -7169,12 +7169,12 @@ function Xt(e, t, n, r) {
|
|
|
7169
7169
|
let i = -1;
|
|
7170
7170
|
for (; ++i < n.unsafe.length; )
|
|
7171
7171
|
if (n.unsafe[i].character === `
|
|
7172
|
-
` &&
|
|
7172
|
+
` && Es(n.stack, n.unsafe[i]))
|
|
7173
7173
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
7174
7174
|
return `\\
|
|
7175
7175
|
`;
|
|
7176
7176
|
}
|
|
7177
|
-
function
|
|
7177
|
+
function Is(e, t) {
|
|
7178
7178
|
const n = String(e);
|
|
7179
7179
|
let r = n.indexOf(t), i = r, o = 0, l = 0;
|
|
7180
7180
|
if (typeof t != "string")
|
|
@@ -7183,13 +7183,13 @@ function As(e, t) {
|
|
|
7183
7183
|
r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
7184
7184
|
return l;
|
|
7185
7185
|
}
|
|
7186
|
-
function
|
|
7186
|
+
function As(e, t) {
|
|
7187
7187
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
7188
7188
|
!e.lang && // And there’s a non-whitespace character…
|
|
7189
7189
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
7190
7190
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
7191
7191
|
}
|
|
7192
|
-
function
|
|
7192
|
+
function Ts(e) {
|
|
7193
7193
|
const t = e.options.fence || "`";
|
|
7194
7194
|
if (t !== "`" && t !== "~")
|
|
7195
7195
|
throw new Error(
|
|
@@ -7197,13 +7197,13 @@ function Ps(e) {
|
|
|
7197
7197
|
);
|
|
7198
7198
|
return t;
|
|
7199
7199
|
}
|
|
7200
|
-
function
|
|
7201
|
-
const i =
|
|
7202
|
-
if (
|
|
7203
|
-
const c = n.enter("codeIndented"), p = n.indentLines(o,
|
|
7200
|
+
function Ps(e, t, n, r) {
|
|
7201
|
+
const i = Ts(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
7202
|
+
if (As(e, n)) {
|
|
7203
|
+
const c = n.enter("codeIndented"), p = n.indentLines(o, vs);
|
|
7204
7204
|
return c(), p;
|
|
7205
7205
|
}
|
|
7206
|
-
const a = n.createTracker(r), u = i.repeat(Math.max(
|
|
7206
|
+
const a = n.createTracker(r), u = i.repeat(Math.max(Is(o, i) + 1, 3)), s = n.enter("codeFenced");
|
|
7207
7207
|
let f = a.move(u);
|
|
7208
7208
|
if (e.lang) {
|
|
7209
7209
|
const c = n.enter(`codeFencedLang${l}`);
|
|
@@ -7232,7 +7232,7 @@ function vs(e, t, n, r) {
|
|
|
7232
7232
|
`), o && (f += a.move(o + `
|
|
7233
7233
|
`)), f += a.move(u), s(), f;
|
|
7234
7234
|
}
|
|
7235
|
-
function
|
|
7235
|
+
function vs(e, t, n) {
|
|
7236
7236
|
return (n ? "" : " ") + e;
|
|
7237
7237
|
}
|
|
7238
7238
|
function tt(e) {
|
|
@@ -7243,7 +7243,7 @@ function tt(e) {
|
|
|
7243
7243
|
);
|
|
7244
7244
|
return t;
|
|
7245
7245
|
}
|
|
7246
|
-
function
|
|
7246
|
+
function Ls(e, t, n, r) {
|
|
7247
7247
|
const i = tt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
|
|
7248
7248
|
let a = n.enter("label");
|
|
7249
7249
|
const u = n.createTracker(r);
|
|
@@ -7273,7 +7273,7 @@ function zs(e, t, n, r) {
|
|
|
7273
7273
|
})
|
|
7274
7274
|
), s += u.move(i), a()), l(), s;
|
|
7275
7275
|
}
|
|
7276
|
-
function
|
|
7276
|
+
function zs(e) {
|
|
7277
7277
|
const t = e.options.emphasis || "*";
|
|
7278
7278
|
if (t !== "*" && t !== "_")
|
|
7279
7279
|
throw new Error(
|
|
@@ -7317,9 +7317,9 @@ function on(e, t, n) {
|
|
|
7317
7317
|
{ inside: !1, outside: !1 }
|
|
7318
7318
|
);
|
|
7319
7319
|
}
|
|
7320
|
-
|
|
7321
|
-
function
|
|
7322
|
-
const i =
|
|
7320
|
+
Hr.peek = Ds;
|
|
7321
|
+
function Hr(e, t, n, r) {
|
|
7322
|
+
const i = zs(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
|
|
7323
7323
|
let u = l.move(
|
|
7324
7324
|
n.containerPhrasing(e, {
|
|
7325
7325
|
after: i,
|
|
@@ -7341,19 +7341,19 @@ function Ur(e, t, n, r) {
|
|
|
7341
7341
|
before: f.outside
|
|
7342
7342
|
}, a + u + h;
|
|
7343
7343
|
}
|
|
7344
|
-
function
|
|
7344
|
+
function Ds(e, t, n) {
|
|
7345
7345
|
return n.options.emphasis || "*";
|
|
7346
7346
|
}
|
|
7347
|
-
function
|
|
7347
|
+
function Fs(e, t) {
|
|
7348
7348
|
let n = !1;
|
|
7349
7349
|
return et(e, function(r) {
|
|
7350
7350
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7351
7351
|
return n = !0, On;
|
|
7352
7352
|
}), !!((!e.depth || e.depth < 3) && Qn(e) && (t.options.setext || n));
|
|
7353
7353
|
}
|
|
7354
|
-
function
|
|
7354
|
+
function _s(e, t, n, r) {
|
|
7355
7355
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
7356
|
-
if (
|
|
7356
|
+
if (Fs(e, n)) {
|
|
7357
7357
|
const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
|
|
7358
7358
|
...o.current(),
|
|
7359
7359
|
before: `
|
|
@@ -7380,15 +7380,15 @@ function Rs(e, t, n, r) {
|
|
|
7380
7380
|
});
|
|
7381
7381
|
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;
|
|
7382
7382
|
}
|
|
7383
|
-
|
|
7384
|
-
function
|
|
7383
|
+
Ur.peek = Rs;
|
|
7384
|
+
function Ur(e) {
|
|
7385
7385
|
return e.value || "";
|
|
7386
7386
|
}
|
|
7387
|
-
function
|
|
7387
|
+
function Rs() {
|
|
7388
7388
|
return "<";
|
|
7389
7389
|
}
|
|
7390
|
-
|
|
7391
|
-
function
|
|
7390
|
+
qr.peek = Os;
|
|
7391
|
+
function qr(e, t, n, r) {
|
|
7392
7392
|
const i = tt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
|
|
7393
7393
|
let a = n.enter("label");
|
|
7394
7394
|
const u = n.createTracker(r);
|
|
@@ -7413,11 +7413,11 @@ function $r(e, t, n, r) {
|
|
|
7413
7413
|
})
|
|
7414
7414
|
), s += u.move(i), a()), s += u.move(")"), l(), s;
|
|
7415
7415
|
}
|
|
7416
|
-
function
|
|
7416
|
+
function Os() {
|
|
7417
7417
|
return "!";
|
|
7418
7418
|
}
|
|
7419
|
-
|
|
7420
|
-
function
|
|
7419
|
+
$r.peek = Ms;
|
|
7420
|
+
function $r(e, t, n, r) {
|
|
7421
7421
|
const i = e.referenceType, o = n.enter("imageReference");
|
|
7422
7422
|
let l = n.enter("label");
|
|
7423
7423
|
const a = n.createTracker(r);
|
|
@@ -7437,11 +7437,11 @@ function Vr(e, t, n, r) {
|
|
|
7437
7437
|
});
|
|
7438
7438
|
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;
|
|
7439
7439
|
}
|
|
7440
|
-
function
|
|
7440
|
+
function Ms() {
|
|
7441
7441
|
return "!";
|
|
7442
7442
|
}
|
|
7443
|
-
|
|
7444
|
-
function
|
|
7443
|
+
Vr.peek = Ns;
|
|
7444
|
+
function Vr(e, t, n) {
|
|
7445
7445
|
let r = e.value || "", i = "`", o = -1;
|
|
7446
7446
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
7447
7447
|
i += "`";
|
|
@@ -7456,10 +7456,10 @@ function Wr(e, t, n) {
|
|
|
7456
7456
|
}
|
|
7457
7457
|
return i + r + i;
|
|
7458
7458
|
}
|
|
7459
|
-
function
|
|
7459
|
+
function Ns() {
|
|
7460
7460
|
return "`";
|
|
7461
7461
|
}
|
|
7462
|
-
function
|
|
7462
|
+
function Wr(e, t) {
|
|
7463
7463
|
const n = Qn(e);
|
|
7464
7464
|
return !!(!t.options.resourceLink && // If there’s a url…
|
|
7465
7465
|
e.url && // And there’s a no title…
|
|
@@ -7470,11 +7470,11 @@ function Qr(e, t) {
|
|
|
7470
7470
|
// references don’t work), space, or angle brackets…
|
|
7471
7471
|
!/[\0- <>\u007F]/.test(e.url));
|
|
7472
7472
|
}
|
|
7473
|
-
|
|
7474
|
-
function
|
|
7473
|
+
Qr.peek = Bs;
|
|
7474
|
+
function Qr(e, t, n, r) {
|
|
7475
7475
|
const i = tt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
|
|
7476
7476
|
let a, u;
|
|
7477
|
-
if (
|
|
7477
|
+
if (Wr(e, n)) {
|
|
7478
7478
|
const f = n.stack;
|
|
7479
7479
|
n.stack = [], a = n.enter("autolink");
|
|
7480
7480
|
let c = l.move("<");
|
|
@@ -7512,11 +7512,11 @@ function Yr(e, t, n, r) {
|
|
|
7512
7512
|
})
|
|
7513
7513
|
), s += l.move(i), u()), s += l.move(")"), a(), s;
|
|
7514
7514
|
}
|
|
7515
|
-
function
|
|
7516
|
-
return
|
|
7515
|
+
function Bs(e, t, n) {
|
|
7516
|
+
return Wr(e, n) ? "<" : "[";
|
|
7517
7517
|
}
|
|
7518
|
-
|
|
7519
|
-
function
|
|
7518
|
+
Yr.peek = js;
|
|
7519
|
+
function Yr(e, t, n, r) {
|
|
7520
7520
|
const i = e.referenceType, o = n.enter("linkReference");
|
|
7521
7521
|
let l = n.enter("label");
|
|
7522
7522
|
const a = n.createTracker(r);
|
|
@@ -7536,7 +7536,7 @@ function Gr(e, t, n, r) {
|
|
|
7536
7536
|
});
|
|
7537
7537
|
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;
|
|
7538
7538
|
}
|
|
7539
|
-
function
|
|
7539
|
+
function js() {
|
|
7540
7540
|
return "[";
|
|
7541
7541
|
}
|
|
7542
7542
|
function rt(e) {
|
|
@@ -7547,7 +7547,7 @@ function rt(e) {
|
|
|
7547
7547
|
);
|
|
7548
7548
|
return t;
|
|
7549
7549
|
}
|
|
7550
|
-
function
|
|
7550
|
+
function Hs(e) {
|
|
7551
7551
|
const t = rt(e), n = e.options.bulletOther;
|
|
7552
7552
|
if (!n)
|
|
7553
7553
|
return t === "*" ? "-" : "*";
|
|
@@ -7561,7 +7561,7 @@ function Us(e) {
|
|
|
7561
7561
|
);
|
|
7562
7562
|
return n;
|
|
7563
7563
|
}
|
|
7564
|
-
function
|
|
7564
|
+
function Us(e) {
|
|
7565
7565
|
const t = e.options.bulletOrdered || ".";
|
|
7566
7566
|
if (t !== "." && t !== ")")
|
|
7567
7567
|
throw new Error(
|
|
@@ -7569,7 +7569,7 @@ function qs(e) {
|
|
|
7569
7569
|
);
|
|
7570
7570
|
return t;
|
|
7571
7571
|
}
|
|
7572
|
-
function
|
|
7572
|
+
function Gr(e) {
|
|
7573
7573
|
const t = e.options.rule || "*";
|
|
7574
7574
|
if (t !== "*" && t !== "-" && t !== "_")
|
|
7575
7575
|
throw new Error(
|
|
@@ -7577,10 +7577,10 @@ function Xr(e) {
|
|
|
7577
7577
|
);
|
|
7578
7578
|
return t;
|
|
7579
7579
|
}
|
|
7580
|
-
function
|
|
7580
|
+
function qs(e, t, n, r) {
|
|
7581
7581
|
const i = n.enter("list"), o = n.bulletCurrent;
|
|
7582
|
-
let l = e.ordered ?
|
|
7583
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
7582
|
+
let l = e.ordered ? Us(n) : rt(n);
|
|
7583
|
+
const a = e.ordered ? l === "." ? ")" : "." : Hs(n);
|
|
7584
7584
|
let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
|
|
7585
7585
|
if (!e.ordered) {
|
|
7586
7586
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -7589,7 +7589,7 @@ function $s(e, t, n, r) {
|
|
|
7589
7589
|
(l === "*" || l === "-") && // Empty first list item:
|
|
7590
7590
|
f && (!f.children || !f.children[0]) && // Directly in two other list items:
|
|
7591
7591
|
n.stack[n.stack.length - 1] === "list" && n.stack[n.stack.length - 2] === "listItem" && n.stack[n.stack.length - 3] === "list" && n.stack[n.stack.length - 4] === "listItem" && // That are each the first child.
|
|
7592
|
-
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (u = !0),
|
|
7592
|
+
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (u = !0), Gr(n) === l && f
|
|
7593
7593
|
) {
|
|
7594
7594
|
let c = -1;
|
|
7595
7595
|
for (; ++c < e.children.length; ) {
|
|
@@ -7605,7 +7605,7 @@ function $s(e, t, n, r) {
|
|
|
7605
7605
|
const s = n.containerFlow(e, r);
|
|
7606
7606
|
return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
|
|
7607
7607
|
}
|
|
7608
|
-
function
|
|
7608
|
+
function $s(e) {
|
|
7609
7609
|
const t = e.options.listItemIndent || "one";
|
|
7610
7610
|
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
7611
7611
|
throw new Error(
|
|
@@ -7613,8 +7613,8 @@ function Vs(e) {
|
|
|
7613
7613
|
);
|
|
7614
7614
|
return t;
|
|
7615
7615
|
}
|
|
7616
|
-
function
|
|
7617
|
-
const i =
|
|
7616
|
+
function Vs(e, t, n, r) {
|
|
7617
|
+
const i = $s(n);
|
|
7618
7618
|
let o = n.bulletCurrent || rt(n);
|
|
7619
7619
|
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);
|
|
7620
7620
|
let l = o.length + 1;
|
|
@@ -7630,11 +7630,11 @@ function Ws(e, t, n, r) {
|
|
|
7630
7630
|
return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
|
|
7631
7631
|
}
|
|
7632
7632
|
}
|
|
7633
|
-
function
|
|
7633
|
+
function Ws(e, t, n, r) {
|
|
7634
7634
|
const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
|
|
7635
7635
|
return o(), i(), l;
|
|
7636
7636
|
}
|
|
7637
|
-
const
|
|
7637
|
+
const Qs = (
|
|
7638
7638
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
7639
7639
|
cn([
|
|
7640
7640
|
"break",
|
|
@@ -7660,12 +7660,12 @@ const Ys = (
|
|
|
7660
7660
|
"textDirective"
|
|
7661
7661
|
])
|
|
7662
7662
|
);
|
|
7663
|
-
function
|
|
7663
|
+
function Ys(e, t, n, r) {
|
|
7664
7664
|
return (e.children.some(function(l) {
|
|
7665
|
-
return
|
|
7665
|
+
return Qs(l);
|
|
7666
7666
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
7667
7667
|
}
|
|
7668
|
-
function
|
|
7668
|
+
function Gs(e) {
|
|
7669
7669
|
const t = e.options.strong || "*";
|
|
7670
7670
|
if (t !== "*" && t !== "_")
|
|
7671
7671
|
throw new Error(
|
|
@@ -7673,9 +7673,9 @@ function Xs(e) {
|
|
|
7673
7673
|
);
|
|
7674
7674
|
return t;
|
|
7675
7675
|
}
|
|
7676
|
-
|
|
7677
|
-
function
|
|
7678
|
-
const i =
|
|
7676
|
+
Xr.peek = Xs;
|
|
7677
|
+
function Xr(e, t, n, r) {
|
|
7678
|
+
const i = Gs(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
|
|
7679
7679
|
let u = l.move(
|
|
7680
7680
|
n.containerPhrasing(e, {
|
|
7681
7681
|
after: i,
|
|
@@ -7697,13 +7697,13 @@ function Kr(e, t, n, r) {
|
|
|
7697
7697
|
before: f.outside
|
|
7698
7698
|
}, a + u + h;
|
|
7699
7699
|
}
|
|
7700
|
-
function
|
|
7700
|
+
function Xs(e, t, n) {
|
|
7701
7701
|
return n.options.strong || "*";
|
|
7702
7702
|
}
|
|
7703
|
-
function
|
|
7703
|
+
function Ks(e, t, n, r) {
|
|
7704
7704
|
return n.safe(e.value, r);
|
|
7705
7705
|
}
|
|
7706
|
-
function
|
|
7706
|
+
function Js(e) {
|
|
7707
7707
|
const t = e.options.ruleRepetition || 3;
|
|
7708
7708
|
if (t < 3)
|
|
7709
7709
|
throw new Error(
|
|
@@ -7711,50 +7711,50 @@ function Zs(e) {
|
|
|
7711
7711
|
);
|
|
7712
7712
|
return t;
|
|
7713
7713
|
}
|
|
7714
|
-
function
|
|
7715
|
-
const r = (
|
|
7714
|
+
function Zs(e, t, n) {
|
|
7715
|
+
const r = (Gr(n) + (n.options.ruleSpaces ? " " : "")).repeat(Js(n));
|
|
7716
7716
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7717
7717
|
}
|
|
7718
|
-
const
|
|
7719
|
-
blockquote:
|
|
7718
|
+
const Kr = {
|
|
7719
|
+
blockquote: Ss,
|
|
7720
7720
|
break: Xt,
|
|
7721
|
-
code:
|
|
7722
|
-
definition:
|
|
7723
|
-
emphasis:
|
|
7721
|
+
code: Ps,
|
|
7722
|
+
definition: Ls,
|
|
7723
|
+
emphasis: Hr,
|
|
7724
7724
|
hardBreak: Xt,
|
|
7725
|
-
heading:
|
|
7726
|
-
html:
|
|
7727
|
-
image:
|
|
7728
|
-
imageReference:
|
|
7729
|
-
inlineCode:
|
|
7730
|
-
link:
|
|
7731
|
-
linkReference:
|
|
7732
|
-
list:
|
|
7733
|
-
listItem:
|
|
7734
|
-
paragraph:
|
|
7735
|
-
root:
|
|
7736
|
-
strong:
|
|
7737
|
-
text:
|
|
7738
|
-
thematicBreak:
|
|
7725
|
+
heading: _s,
|
|
7726
|
+
html: Ur,
|
|
7727
|
+
image: qr,
|
|
7728
|
+
imageReference: $r,
|
|
7729
|
+
inlineCode: Vr,
|
|
7730
|
+
link: Qr,
|
|
7731
|
+
linkReference: Yr,
|
|
7732
|
+
list: qs,
|
|
7733
|
+
listItem: Vs,
|
|
7734
|
+
paragraph: Ws,
|
|
7735
|
+
root: Ys,
|
|
7736
|
+
strong: Xr,
|
|
7737
|
+
text: Ks,
|
|
7738
|
+
thematicBreak: Zs
|
|
7739
7739
|
};
|
|
7740
|
-
function
|
|
7740
|
+
function ec() {
|
|
7741
7741
|
return {
|
|
7742
7742
|
enter: {
|
|
7743
|
-
table:
|
|
7743
|
+
table: nc,
|
|
7744
7744
|
tableData: Kt,
|
|
7745
7745
|
tableHeader: Kt,
|
|
7746
|
-
tableRow:
|
|
7746
|
+
tableRow: rc
|
|
7747
7747
|
},
|
|
7748
7748
|
exit: {
|
|
7749
|
-
codeText:
|
|
7750
|
-
table:
|
|
7749
|
+
codeText: ic,
|
|
7750
|
+
table: tc,
|
|
7751
7751
|
tableData: vn,
|
|
7752
7752
|
tableHeader: vn,
|
|
7753
7753
|
tableRow: vn
|
|
7754
7754
|
}
|
|
7755
7755
|
};
|
|
7756
7756
|
}
|
|
7757
|
-
function
|
|
7757
|
+
function nc(e) {
|
|
7758
7758
|
const t = e._align;
|
|
7759
7759
|
this.enter(
|
|
7760
7760
|
{
|
|
@@ -7767,10 +7767,10 @@ function tc(e) {
|
|
|
7767
7767
|
e
|
|
7768
7768
|
), this.data.inTable = !0;
|
|
7769
7769
|
}
|
|
7770
|
-
function
|
|
7770
|
+
function tc(e) {
|
|
7771
7771
|
this.exit(e), this.data.inTable = void 0;
|
|
7772
7772
|
}
|
|
7773
|
-
function
|
|
7773
|
+
function rc(e) {
|
|
7774
7774
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
7775
7775
|
}
|
|
7776
7776
|
function vn(e) {
|
|
@@ -7779,16 +7779,16 @@ function vn(e) {
|
|
|
7779
7779
|
function Kt(e) {
|
|
7780
7780
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
7781
7781
|
}
|
|
7782
|
-
function
|
|
7782
|
+
function ic(e) {
|
|
7783
7783
|
let t = this.resume();
|
|
7784
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
7784
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, lc));
|
|
7785
7785
|
const n = this.stack[this.stack.length - 1];
|
|
7786
7786
|
n.value = t, this.exit(e);
|
|
7787
7787
|
}
|
|
7788
|
-
function
|
|
7788
|
+
function lc(e, t) {
|
|
7789
7789
|
return t === "|" ? t : e;
|
|
7790
7790
|
}
|
|
7791
|
-
function
|
|
7791
|
+
function oc(e) {
|
|
7792
7792
|
const t = e, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
|
|
7793
7793
|
return {
|
|
7794
7794
|
unsafe: [
|
|
@@ -7834,7 +7834,7 @@ function ac(e) {
|
|
|
7834
7834
|
return S(), y(), C;
|
|
7835
7835
|
}
|
|
7836
7836
|
function s(h, d) {
|
|
7837
|
-
return
|
|
7837
|
+
return bs(h, {
|
|
7838
7838
|
align: d,
|
|
7839
7839
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
7840
7840
|
alignDelimiters: r,
|
|
@@ -7861,30 +7861,30 @@ function ac(e) {
|
|
|
7861
7861
|
return C(), S;
|
|
7862
7862
|
}
|
|
7863
7863
|
function p(h, d, x) {
|
|
7864
|
-
let E =
|
|
7864
|
+
let E = Kr.inlineCode(h, d, x);
|
|
7865
7865
|
return x.stack.includes("tableCell") && (E = E.replace(/\|/g, "\\$&")), E;
|
|
7866
7866
|
}
|
|
7867
7867
|
}
|
|
7868
|
-
function
|
|
7868
|
+
function ac() {
|
|
7869
7869
|
return {
|
|
7870
7870
|
exit: {
|
|
7871
7871
|
taskListCheckValueChecked: Jt,
|
|
7872
7872
|
taskListCheckValueUnchecked: Jt,
|
|
7873
|
-
paragraph:
|
|
7873
|
+
paragraph: sc
|
|
7874
7874
|
}
|
|
7875
7875
|
};
|
|
7876
7876
|
}
|
|
7877
|
-
function
|
|
7877
|
+
function uc() {
|
|
7878
7878
|
return {
|
|
7879
7879
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
7880
|
-
handlers: { listItem:
|
|
7880
|
+
handlers: { listItem: cc }
|
|
7881
7881
|
};
|
|
7882
7882
|
}
|
|
7883
7883
|
function Jt(e) {
|
|
7884
7884
|
const t = this.stack[this.stack.length - 2];
|
|
7885
7885
|
t.checked = e.type === "taskListCheckValueChecked";
|
|
7886
7886
|
}
|
|
7887
|
-
function
|
|
7887
|
+
function sc(e) {
|
|
7888
7888
|
const t = this.stack[this.stack.length - 2];
|
|
7889
7889
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
7890
7890
|
const n = this.stack[this.stack.length - 1], r = n.children[0];
|
|
@@ -7903,10 +7903,10 @@ function cc(e) {
|
|
|
7903
7903
|
}
|
|
7904
7904
|
this.exit(e);
|
|
7905
7905
|
}
|
|
7906
|
-
function
|
|
7906
|
+
function cc(e, t, n, r) {
|
|
7907
7907
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
7908
7908
|
o && a.move(l);
|
|
7909
|
-
let u =
|
|
7909
|
+
let u = Kr.listItem(e, t, n, {
|
|
7910
7910
|
...r,
|
|
7911
7911
|
...a.current()
|
|
7912
7912
|
});
|
|
@@ -7915,27 +7915,30 @@ function fc(e, t, n, r) {
|
|
|
7915
7915
|
return f + l;
|
|
7916
7916
|
}
|
|
7917
7917
|
}
|
|
7918
|
-
function
|
|
7918
|
+
function fc() {
|
|
7919
7919
|
return [
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7920
|
+
Uu(),
|
|
7921
|
+
es(),
|
|
7922
|
+
ms(),
|
|
7923
|
+
ec(),
|
|
7924
|
+
ac()
|
|
7925
7925
|
];
|
|
7926
7926
|
}
|
|
7927
|
-
function
|
|
7927
|
+
function hc(e) {
|
|
7928
7928
|
return {
|
|
7929
7929
|
extensions: [
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7930
|
+
qu(),
|
|
7931
|
+
ns(),
|
|
7932
|
+
gs(),
|
|
7933
|
+
oc(e),
|
|
7934
|
+
uc()
|
|
7935
7935
|
]
|
|
7936
7936
|
};
|
|
7937
7937
|
}
|
|
7938
|
-
const
|
|
7938
|
+
const pc = {
|
|
7939
|
+
tokenize: xc,
|
|
7940
|
+
partial: !0
|
|
7941
|
+
}, Jr = {
|
|
7939
7942
|
tokenize: bc,
|
|
7940
7943
|
partial: !0
|
|
7941
7944
|
}, Zr = {
|
|
@@ -7944,26 +7947,23 @@ const mc = {
|
|
|
7944
7947
|
}, ei = {
|
|
7945
7948
|
tokenize: Sc,
|
|
7946
7949
|
partial: !0
|
|
7947
|
-
},
|
|
7950
|
+
}, mc = {
|
|
7948
7951
|
tokenize: Cc,
|
|
7949
7952
|
partial: !0
|
|
7950
|
-
},
|
|
7951
|
-
tokenize: Ec,
|
|
7952
|
-
partial: !0
|
|
7953
|
-
}, ti = {
|
|
7953
|
+
}, ni = {
|
|
7954
7954
|
name: "wwwAutolink",
|
|
7955
|
+
tokenize: yc,
|
|
7956
|
+
previous: ri
|
|
7957
|
+
}, ti = {
|
|
7958
|
+
name: "protocolAutolink",
|
|
7955
7959
|
tokenize: kc,
|
|
7956
7960
|
previous: ii
|
|
7957
|
-
}, ri = {
|
|
7958
|
-
name: "protocolAutolink",
|
|
7959
|
-
tokenize: xc,
|
|
7960
|
-
previous: li
|
|
7961
7961
|
}, ye = {
|
|
7962
7962
|
name: "emailAutolink",
|
|
7963
|
-
tokenize:
|
|
7964
|
-
previous:
|
|
7963
|
+
tokenize: dc,
|
|
7964
|
+
previous: li
|
|
7965
7965
|
}, he = {};
|
|
7966
|
-
function
|
|
7966
|
+
function gc() {
|
|
7967
7967
|
return {
|
|
7968
7968
|
text: he
|
|
7969
7969
|
};
|
|
@@ -7975,22 +7975,22 @@ he[43] = ye;
|
|
|
7975
7975
|
he[45] = ye;
|
|
7976
7976
|
he[46] = ye;
|
|
7977
7977
|
he[95] = ye;
|
|
7978
|
-
he[72] = [ye,
|
|
7979
|
-
he[104] = [ye,
|
|
7980
|
-
he[87] = [ye,
|
|
7981
|
-
he[119] = [ye,
|
|
7982
|
-
function
|
|
7978
|
+
he[72] = [ye, ti];
|
|
7979
|
+
he[104] = [ye, ti];
|
|
7980
|
+
he[87] = [ye, ni];
|
|
7981
|
+
he[119] = [ye, ni];
|
|
7982
|
+
function dc(e, t, n) {
|
|
7983
7983
|
const r = this;
|
|
7984
7984
|
let i, o;
|
|
7985
7985
|
return l;
|
|
7986
7986
|
function l(c) {
|
|
7987
|
-
return !jn(c) || !
|
|
7987
|
+
return !jn(c) || !li.call(r, r.previous) || it(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
|
|
7988
7988
|
}
|
|
7989
7989
|
function a(c) {
|
|
7990
7990
|
return jn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7991
7991
|
}
|
|
7992
7992
|
function u(c) {
|
|
7993
|
-
return c === 46 ? e.check(
|
|
7993
|
+
return c === 46 ? e.check(mc, f, s)(c) : c === 45 || c === 95 || X(c) ? (o = !0, e.consume(c), u) : f(c);
|
|
7994
7994
|
}
|
|
7995
7995
|
function s(c) {
|
|
7996
7996
|
return e.consume(c), i = !0, u;
|
|
@@ -7999,22 +7999,22 @@ function yc(e, t, n) {
|
|
|
7999
7999
|
return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
|
|
8000
8000
|
}
|
|
8001
8001
|
}
|
|
8002
|
-
function
|
|
8002
|
+
function yc(e, t, n) {
|
|
8003
8003
|
const r = this;
|
|
8004
8004
|
return i;
|
|
8005
8005
|
function i(l) {
|
|
8006
|
-
return l !== 87 && l !== 119 || !
|
|
8006
|
+
return l !== 87 && l !== 119 || !ri.call(r, r.previous) || it(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(pc, e.attempt(Jr, e.attempt(Zr, o), n), n)(l));
|
|
8007
8007
|
}
|
|
8008
8008
|
function o(l) {
|
|
8009
8009
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
|
8010
8010
|
}
|
|
8011
8011
|
}
|
|
8012
|
-
function
|
|
8012
|
+
function kc(e, t, n) {
|
|
8013
8013
|
const r = this;
|
|
8014
8014
|
let i = "", o = !1;
|
|
8015
8015
|
return l;
|
|
8016
8016
|
function l(c) {
|
|
8017
|
-
return (c === 72 || c === 104) &&
|
|
8017
|
+
return (c === 72 || c === 104) && ii.call(r, r.previous) && !it(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : n(c);
|
|
8018
8018
|
}
|
|
8019
8019
|
function a(c) {
|
|
8020
8020
|
if (J(c) && i.length < 5)
|
|
@@ -8030,13 +8030,13 @@ function xc(e, t, n) {
|
|
|
8030
8030
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
|
|
8031
8031
|
}
|
|
8032
8032
|
function s(c) {
|
|
8033
|
-
return c === null || nn(c) || $(c) || Ee(c) || an(c) ? n(c) : e.attempt(
|
|
8033
|
+
return c === null || nn(c) || $(c) || Ee(c) || an(c) ? n(c) : e.attempt(Jr, e.attempt(Zr, f), n)(c);
|
|
8034
8034
|
}
|
|
8035
8035
|
function f(c) {
|
|
8036
8036
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
8037
8037
|
}
|
|
8038
8038
|
}
|
|
8039
|
-
function
|
|
8039
|
+
function xc(e, t, n) {
|
|
8040
8040
|
let r = 0;
|
|
8041
8041
|
return i;
|
|
8042
8042
|
function i(l) {
|
|
@@ -8046,11 +8046,11 @@ function bc(e, t, n) {
|
|
|
8046
8046
|
return l === null ? n(l) : t(l);
|
|
8047
8047
|
}
|
|
8048
8048
|
}
|
|
8049
|
-
function
|
|
8049
|
+
function bc(e, t, n) {
|
|
8050
8050
|
let r, i, o;
|
|
8051
8051
|
return l;
|
|
8052
8052
|
function l(s) {
|
|
8053
|
-
return s === 46 || s === 95 ? e.check(
|
|
8053
|
+
return s === 46 || s === 95 ? e.check(ei, u, a)(s) : s === null || $(s) || Ee(s) || s !== 45 && an(s) ? u(s) : (o = !0, e.consume(s), l);
|
|
8054
8054
|
}
|
|
8055
8055
|
function a(s) {
|
|
8056
8056
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
|
@@ -8059,17 +8059,17 @@ function wc(e, t, n) {
|
|
|
8059
8059
|
return i || r || !o ? n(s) : t(s);
|
|
8060
8060
|
}
|
|
8061
8061
|
}
|
|
8062
|
-
function
|
|
8062
|
+
function wc(e, t) {
|
|
8063
8063
|
let n = 0, r = 0;
|
|
8064
8064
|
return i;
|
|
8065
8065
|
function i(l) {
|
|
8066
|
-
return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(
|
|
8066
|
+
return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(ei, t, o)(l) : l === null || $(l) || Ee(l) ? t(l) : (e.consume(l), i);
|
|
8067
8067
|
}
|
|
8068
8068
|
function o(l) {
|
|
8069
8069
|
return l === 41 && r++, e.consume(l), i;
|
|
8070
8070
|
}
|
|
8071
8071
|
}
|
|
8072
|
-
function
|
|
8072
|
+
function Sc(e, t, n) {
|
|
8073
8073
|
return r;
|
|
8074
8074
|
function r(a) {
|
|
8075
8075
|
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) : (
|
|
@@ -8088,7 +8088,7 @@ function Cc(e, t, n) {
|
|
|
8088
8088
|
return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
|
|
8089
8089
|
}
|
|
8090
8090
|
}
|
|
8091
|
-
function
|
|
8091
|
+
function Cc(e, t, n) {
|
|
8092
8092
|
return r;
|
|
8093
8093
|
function r(o) {
|
|
8094
8094
|
return e.consume(o), i;
|
|
@@ -8097,13 +8097,13 @@ function Ec(e, t, n) {
|
|
|
8097
8097
|
return X(o) ? n(o) : t(o);
|
|
8098
8098
|
}
|
|
8099
8099
|
}
|
|
8100
|
-
function
|
|
8100
|
+
function ri(e) {
|
|
8101
8101
|
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || $(e);
|
|
8102
8102
|
}
|
|
8103
|
-
function
|
|
8103
|
+
function ii(e) {
|
|
8104
8104
|
return !J(e);
|
|
8105
8105
|
}
|
|
8106
|
-
function
|
|
8106
|
+
function li(e) {
|
|
8107
8107
|
return !(e === 47 || jn(e));
|
|
8108
8108
|
}
|
|
8109
8109
|
function jn(e) {
|
|
@@ -8124,37 +8124,37 @@ function it(e) {
|
|
|
8124
8124
|
}
|
|
8125
8125
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
8126
8126
|
}
|
|
8127
|
-
const
|
|
8128
|
-
tokenize:
|
|
8127
|
+
const Ec = {
|
|
8128
|
+
tokenize: Dc,
|
|
8129
8129
|
partial: !0
|
|
8130
8130
|
};
|
|
8131
|
-
function
|
|
8131
|
+
function Ic() {
|
|
8132
8132
|
return {
|
|
8133
8133
|
document: {
|
|
8134
8134
|
91: {
|
|
8135
8135
|
name: "gfmFootnoteDefinition",
|
|
8136
|
-
tokenize:
|
|
8136
|
+
tokenize: vc,
|
|
8137
8137
|
continuation: {
|
|
8138
|
-
tokenize:
|
|
8138
|
+
tokenize: Lc
|
|
8139
8139
|
},
|
|
8140
|
-
exit:
|
|
8140
|
+
exit: zc
|
|
8141
8141
|
}
|
|
8142
8142
|
},
|
|
8143
8143
|
text: {
|
|
8144
8144
|
91: {
|
|
8145
8145
|
name: "gfmFootnoteCall",
|
|
8146
|
-
tokenize:
|
|
8146
|
+
tokenize: Pc
|
|
8147
8147
|
},
|
|
8148
8148
|
93: {
|
|
8149
8149
|
name: "gfmPotentialFootnoteCall",
|
|
8150
8150
|
add: "after",
|
|
8151
|
-
tokenize:
|
|
8152
|
-
resolveTo:
|
|
8151
|
+
tokenize: Ac,
|
|
8152
|
+
resolveTo: Tc
|
|
8153
8153
|
}
|
|
8154
8154
|
}
|
|
8155
8155
|
};
|
|
8156
8156
|
}
|
|
8157
|
-
function
|
|
8157
|
+
function Ac(e, t, n) {
|
|
8158
8158
|
const r = this;
|
|
8159
8159
|
let i = r.events.length;
|
|
8160
8160
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -8179,7 +8179,7 @@ function Tc(e, t, n) {
|
|
|
8179
8179
|
return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
|
|
8180
8180
|
}
|
|
8181
8181
|
}
|
|
8182
|
-
function
|
|
8182
|
+
function Tc(e, t) {
|
|
8183
8183
|
let n = e.length;
|
|
8184
8184
|
for (; n-- && !(e[n][1].type === "labelImage" && e[n][0] === "enter"); )
|
|
8185
8185
|
;
|
|
@@ -8226,7 +8226,7 @@ function Pc(e, t) {
|
|
|
8226
8226
|
];
|
|
8227
8227
|
return e.splice(n, e.length - n + 1, ...a), e;
|
|
8228
8228
|
}
|
|
8229
|
-
function
|
|
8229
|
+
function Pc(e, t, n) {
|
|
8230
8230
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8231
8231
|
let o = 0, l;
|
|
8232
8232
|
return a;
|
|
@@ -8256,7 +8256,7 @@ function vc(e, t, n) {
|
|
|
8256
8256
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
|
|
8257
8257
|
}
|
|
8258
8258
|
}
|
|
8259
|
-
function
|
|
8259
|
+
function vc(e, t, n) {
|
|
8260
8260
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8261
8261
|
let o, l = 0, a;
|
|
8262
8262
|
return u;
|
|
@@ -8292,13 +8292,13 @@ function Lc(e, t, n) {
|
|
|
8292
8292
|
return t(d);
|
|
8293
8293
|
}
|
|
8294
8294
|
}
|
|
8295
|
-
function
|
|
8296
|
-
return e.check(We, t, e.attempt(
|
|
8295
|
+
function Lc(e, t, n) {
|
|
8296
|
+
return e.check(We, t, e.attempt(Ec, t, n));
|
|
8297
8297
|
}
|
|
8298
|
-
function
|
|
8298
|
+
function zc(e) {
|
|
8299
8299
|
e.exit("gfmFootnoteDefinition");
|
|
8300
8300
|
}
|
|
8301
|
-
function
|
|
8301
|
+
function Dc(e, t, n) {
|
|
8302
8302
|
const r = this;
|
|
8303
8303
|
return j(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
8304
8304
|
function i(o) {
|
|
@@ -8306,7 +8306,7 @@ function Fc(e, t, n) {
|
|
|
8306
8306
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
|
|
8307
8307
|
}
|
|
8308
8308
|
}
|
|
8309
|
-
function
|
|
8309
|
+
function Fc(e) {
|
|
8310
8310
|
let n = e.singleTilde;
|
|
8311
8311
|
const r = {
|
|
8312
8312
|
name: "strikethrough",
|
|
@@ -8367,7 +8367,7 @@ function _c(e) {
|
|
|
8367
8367
|
}
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
|
-
class
|
|
8370
|
+
class _c {
|
|
8371
8371
|
/**
|
|
8372
8372
|
* Create a new edit map.
|
|
8373
8373
|
*/
|
|
@@ -8383,7 +8383,7 @@ class Rc {
|
|
|
8383
8383
|
* @returns {undefined}
|
|
8384
8384
|
*/
|
|
8385
8385
|
add(t, n, r) {
|
|
8386
|
-
|
|
8386
|
+
Rc(this, t, n, r);
|
|
8387
8387
|
}
|
|
8388
8388
|
// To do: add this when moving to `micromark`.
|
|
8389
8389
|
// /**
|
|
@@ -8422,7 +8422,7 @@ class Rc {
|
|
|
8422
8422
|
this.map.length = 0;
|
|
8423
8423
|
}
|
|
8424
8424
|
}
|
|
8425
|
-
function
|
|
8425
|
+
function Rc(e, t, n, r) {
|
|
8426
8426
|
let i = 0;
|
|
8427
8427
|
if (!(n === 0 && r.length === 0)) {
|
|
8428
8428
|
for (; i < e.map.length; ) {
|
|
@@ -8435,7 +8435,7 @@ function Oc(e, t, n, r) {
|
|
|
8435
8435
|
e.map.push([t, n, r]);
|
|
8436
8436
|
}
|
|
8437
8437
|
}
|
|
8438
|
-
function
|
|
8438
|
+
function Oc(e, t) {
|
|
8439
8439
|
let n = !1;
|
|
8440
8440
|
const r = [];
|
|
8441
8441
|
for (; t < e.length; ) {
|
|
@@ -8455,18 +8455,18 @@ function Mc(e, t) {
|
|
|
8455
8455
|
}
|
|
8456
8456
|
return r;
|
|
8457
8457
|
}
|
|
8458
|
-
function
|
|
8458
|
+
function Mc() {
|
|
8459
8459
|
return {
|
|
8460
8460
|
flow: {
|
|
8461
8461
|
null: {
|
|
8462
8462
|
name: "table",
|
|
8463
|
-
tokenize:
|
|
8464
|
-
resolveAll:
|
|
8463
|
+
tokenize: Nc,
|
|
8464
|
+
resolveAll: Bc
|
|
8465
8465
|
}
|
|
8466
8466
|
}
|
|
8467
8467
|
};
|
|
8468
8468
|
}
|
|
8469
|
-
function
|
|
8469
|
+
function Nc(e, t, n) {
|
|
8470
8470
|
const r = this;
|
|
8471
8471
|
let i = 0, o = 0, l;
|
|
8472
8472
|
return a;
|
|
@@ -8536,9 +8536,9 @@ function Bc(e, t, n) {
|
|
|
8536
8536
|
return k === 92 || k === 124 ? (e.consume(k), U) : U(k);
|
|
8537
8537
|
}
|
|
8538
8538
|
}
|
|
8539
|
-
function
|
|
8539
|
+
function Bc(e, t) {
|
|
8540
8540
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
|
|
8541
|
-
const p = new
|
|
8541
|
+
const p = new _c();
|
|
8542
8542
|
for (; ++n < e.length; ) {
|
|
8543
8543
|
const h = e[n], d = h[1];
|
|
8544
8544
|
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (Zt(p, t, u, s, f), f = void 0, u = 0), s = {
|
|
@@ -8555,7 +8555,7 @@ function jc(e, t) {
|
|
|
8555
8555
|
}
|
|
8556
8556
|
for (u !== 0 && Zt(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
8557
8557
|
const h = t.events[n];
|
|
8558
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
8558
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = Oc(t.events, n));
|
|
8559
8559
|
}
|
|
8560
8560
|
return e;
|
|
8561
8561
|
}
|
|
@@ -8593,18 +8593,18 @@ function Le(e, t) {
|
|
|
8593
8593
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8594
8594
|
return n[1][r];
|
|
8595
8595
|
}
|
|
8596
|
-
const
|
|
8596
|
+
const jc = {
|
|
8597
8597
|
name: "tasklistCheck",
|
|
8598
|
-
tokenize:
|
|
8598
|
+
tokenize: Uc
|
|
8599
8599
|
};
|
|
8600
|
-
function
|
|
8600
|
+
function Hc() {
|
|
8601
8601
|
return {
|
|
8602
8602
|
text: {
|
|
8603
|
-
91:
|
|
8603
|
+
91: jc
|
|
8604
8604
|
}
|
|
8605
8605
|
};
|
|
8606
8606
|
}
|
|
8607
|
-
function
|
|
8607
|
+
function Uc(e, t, n) {
|
|
8608
8608
|
const r = this;
|
|
8609
8609
|
return i;
|
|
8610
8610
|
function i(u) {
|
|
@@ -8623,57 +8623,57 @@ function qc(e, t, n) {
|
|
|
8623
8623
|
}
|
|
8624
8624
|
function a(u) {
|
|
8625
8625
|
return D(u) ? t(u) : N(u) ? e.check({
|
|
8626
|
-
tokenize:
|
|
8626
|
+
tokenize: qc
|
|
8627
8627
|
}, t, n)(u) : n(u);
|
|
8628
8628
|
}
|
|
8629
8629
|
}
|
|
8630
|
-
function
|
|
8630
|
+
function qc(e, t, n) {
|
|
8631
8631
|
return j(e, r, "whitespace");
|
|
8632
8632
|
function r(i) {
|
|
8633
8633
|
return i === null ? n(i) : t(i);
|
|
8634
8634
|
}
|
|
8635
8635
|
}
|
|
8636
|
-
function
|
|
8637
|
-
return
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8636
|
+
function $c(e) {
|
|
8637
|
+
return yr([
|
|
8638
|
+
gc(),
|
|
8639
|
+
Ic(),
|
|
8640
|
+
Fc(e),
|
|
8641
|
+
Mc(),
|
|
8642
|
+
Hc()
|
|
8643
8643
|
]);
|
|
8644
8644
|
}
|
|
8645
|
-
const
|
|
8646
|
-
function
|
|
8645
|
+
const Vc = {};
|
|
8646
|
+
function Wc(e) {
|
|
8647
8647
|
const t = (
|
|
8648
8648
|
/** @type {Processor} */
|
|
8649
8649
|
this
|
|
8650
|
-
), n = e ||
|
|
8651
|
-
i.push(
|
|
8650
|
+
), n = e || Vc, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
8651
|
+
i.push($c(n)), o.push(fc()), l.push(hc(n));
|
|
8652
8652
|
}
|
|
8653
|
-
const
|
|
8653
|
+
const Qc = yi(
|
|
8654
8654
|
() => import(
|
|
8655
8655
|
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8656
|
-
"./MarkdownWithExtra.
|
|
8656
|
+
"./MarkdownWithExtra.DC_AHnw9.js"
|
|
8657
8657
|
)
|
|
8658
8658
|
), Ln = {
|
|
8659
8659
|
MODEL: "Model",
|
|
8660
8660
|
PLUGIN: "Plugin",
|
|
8661
8661
|
PROCESSING_TIME: "Processing time"
|
|
8662
|
-
},
|
|
8663
|
-
|
|
8662
|
+
}, Yc = ({
|
|
8663
|
+
content: e,
|
|
8664
8664
|
name: t,
|
|
8665
8665
|
loading: n,
|
|
8666
8666
|
processingTime: r
|
|
8667
8667
|
}) => {
|
|
8668
|
-
const { state: i } =
|
|
8669
|
-
key:
|
|
8668
|
+
const { state: i } = ki(gi), [o] = di({
|
|
8669
|
+
key: bi + wi,
|
|
8670
8670
|
initialValue: !1
|
|
8671
8671
|
}), l = {
|
|
8672
8672
|
[Ln.MODEL]: i && i.model && o ? i.model : null,
|
|
8673
8673
|
[Ln.PLUGIN]: t && o ? t : null,
|
|
8674
|
-
[Ln.PROCESSING_TIME]: r && o ?
|
|
8674
|
+
[Ln.PROCESSING_TIME]: r && o ? Si(r) : null
|
|
8675
8675
|
};
|
|
8676
|
-
return /* @__PURE__ */ re(
|
|
8676
|
+
return /* @__PURE__ */ re(er, { children: n ? /* @__PURE__ */ re(ct, { children: /* @__PURE__ */ re(Ci, { type: "dots" }) }) : /* @__PURE__ */ en(
|
|
8677
8677
|
ct,
|
|
8678
8678
|
{
|
|
8679
8679
|
copyToClipboard: e,
|
|
@@ -8682,28 +8682,28 @@ const Yc = ki(
|
|
|
8682
8682
|
noMaxWidth: !0,
|
|
8683
8683
|
className: "max-w-[95cqw] @container",
|
|
8684
8684
|
children: [
|
|
8685
|
-
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(
|
|
8686
|
-
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(
|
|
8685
|
+
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(xi, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(Qc, { content: e }) }),
|
|
8686
|
+
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(Ru, { remarkPlugins: [Wc], children: e })
|
|
8687
8687
|
]
|
|
8688
8688
|
}
|
|
8689
8689
|
) });
|
|
8690
|
-
}, tf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null,
|
|
8690
|
+
}, tf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Yc }, Symbol.toStringTag, { value: "Module" }));
|
|
8691
8691
|
export {
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8692
|
+
tf as ChatBubbleAssistant,
|
|
8693
|
+
Ru as Markdown,
|
|
8694
|
+
ru as SKIP,
|
|
8695
8695
|
cn as convert,
|
|
8696
8696
|
j as factorySpace,
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8697
|
+
Oi as find,
|
|
8698
|
+
nr as getDefaultExportFromCjs,
|
|
8699
|
+
ji as html,
|
|
8700
|
+
Is as longestStreak,
|
|
8701
8701
|
D as markdownLineEnding,
|
|
8702
8702
|
zn as normalize,
|
|
8703
8703
|
nf as parse,
|
|
8704
8704
|
ef as parse$1,
|
|
8705
|
-
|
|
8705
|
+
Wc as remarkGfm,
|
|
8706
8706
|
Un as svg,
|
|
8707
8707
|
et as visit,
|
|
8708
|
-
|
|
8708
|
+
Or as visitParents
|
|
8709
8709
|
};
|