@versini/sassysaint 5.0.1 → 5.1.3
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.Da6BVUYy.js +1434 -0
- package/dist/chunks/LazyHeader.rYQgZPSI.js +1983 -0
- package/dist/chunks/{LazyMarkdownWithExtra.Crb3W0hj.js → LazyMarkdownWithExtra.8gJ4kHmJ.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.Cvu_1y4O.js → LazyMessageAssistant.CDMHbVPp.js} +481 -456
- package/dist/chunks/{index.BA5202H5.DKMEJZV8.js → index.BV7w1tBT.B-qjwzFk.js} +83 -78
- package/dist/chunks/{index.CMDql_8l.js → index.BuZgDoDD.js} +1634 -1376
- package/dist/chunks/index.lZ9DXn26.js +1466 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/dist/chunks/App.BMR9hf5e.js +0 -500
- package/dist/chunks/LazyHeader.Bu6NhpqV.js +0 -1429
- package/dist/chunks/useLocalStorage.D91BITud.js +0 -1016
|
@@ -1,18 +1,44 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { AppContext as
|
|
4
|
-
import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
|
|
5
|
-
import { T as ut } from "./App.BMR9hf5e.js";
|
|
2
|
+
import { le as ot } from "./App.Da6BVUYy.js";
|
|
3
|
+
import { AppContext as wi, E as Si } from "./index.lZ9DXn26.js";
|
|
6
4
|
import cn from "clsx";
|
|
7
|
-
|
|
5
|
+
import { lazy as Ci, useContext as Ei, Suspense as Ai } from "react";
|
|
6
|
+
import { LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.BuZgDoDD.js";
|
|
7
|
+
var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
|
+
function Li(e) {
|
|
9
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
|
+
}
|
|
11
|
+
/*!
|
|
12
|
+
@versini/ui-spinner v1.0.8
|
|
13
|
+
© 2024 gizmette.com
|
|
14
|
+
*/
|
|
15
|
+
try {
|
|
16
|
+
window.__VERSINI_UI_SPINNER__ || (window.__VERSINI_UI_SPINNER__ = {
|
|
17
|
+
version: "1.0.8",
|
|
18
|
+
buildTime: "09/27/2024 11:56 AM EDT",
|
|
19
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
20
|
+
license: "MIT"
|
|
21
|
+
});
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
const ut = "av-spinner", st = (e) => {
|
|
25
|
+
let t = "";
|
|
26
|
+
if (typeof e == "number" || typeof e == "string")
|
|
27
|
+
t = "m-" + e;
|
|
28
|
+
else {
|
|
29
|
+
const n = [];
|
|
30
|
+
(e == null ? void 0 : e.t) !== void 0 && n.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && n.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && n.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && n.push(`ml-${e.l}`), t = n.join(" ");
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}, zi = ({
|
|
8
34
|
spinnerRef: e,
|
|
9
35
|
mode: t = "system",
|
|
10
36
|
type: n = "circle",
|
|
11
37
|
spacing: r
|
|
12
38
|
}) => {
|
|
13
39
|
const i = n === "circle" ? cn(
|
|
14
|
-
|
|
15
|
-
|
|
40
|
+
ut,
|
|
41
|
+
st(r),
|
|
16
42
|
"h-8 w-8",
|
|
17
43
|
"align-[-0.125em]",
|
|
18
44
|
"border-4",
|
|
@@ -23,7 +49,7 @@ const Li = ({
|
|
|
23
49
|
"text-copy-dark dark:text-copy-accent": t === "system",
|
|
24
50
|
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
|
25
51
|
}
|
|
26
|
-
) : cn(
|
|
52
|
+
) : cn(ut, st(r)), o = cn("av-spinner__dot", {
|
|
27
53
|
"fill-copy-dark": t === "dark",
|
|
28
54
|
"fill-copy-accent": t === "light",
|
|
29
55
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
@@ -38,10 +64,6 @@ const Li = ({
|
|
|
38
64
|
/* @__PURE__ */ re("span", { className: "sr-only", children: "Loading..." })
|
|
39
65
|
] });
|
|
40
66
|
};
|
|
41
|
-
var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
42
|
-
function zi(e) {
|
|
43
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
44
|
-
}
|
|
45
67
|
function yf(e) {
|
|
46
68
|
const t = [], n = String(e || "");
|
|
47
69
|
let r = n.indexOf(","), i = 0, o = !1;
|
|
@@ -52,24 +74,24 @@ function yf(e) {
|
|
|
52
74
|
}
|
|
53
75
|
return t;
|
|
54
76
|
}
|
|
55
|
-
function
|
|
77
|
+
function vi(e, t) {
|
|
56
78
|
const n = {};
|
|
57
79
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
58
80
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
59
81
|
).trim();
|
|
60
82
|
}
|
|
61
|
-
const
|
|
83
|
+
const Di = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Oi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Fi = {};
|
|
62
84
|
function ct(e, t) {
|
|
63
|
-
return (Fi.jsx ? Oi :
|
|
85
|
+
return (Fi.jsx ? Oi : Di).test(e);
|
|
64
86
|
}
|
|
65
|
-
const
|
|
66
|
-
function
|
|
87
|
+
const _i = /[ \t\n\f\r]/g;
|
|
88
|
+
function Ri(e) {
|
|
67
89
|
return typeof e == "object" ? e.type === "text" ? ft(e.value) : !1 : ft(e);
|
|
68
90
|
}
|
|
69
91
|
function ft(e) {
|
|
70
|
-
return e.replace(
|
|
92
|
+
return e.replace(_i, "") === "";
|
|
71
93
|
}
|
|
72
|
-
class
|
|
94
|
+
class Ue {
|
|
73
95
|
/**
|
|
74
96
|
* @constructor
|
|
75
97
|
* @param {Properties} property
|
|
@@ -80,15 +102,15 @@ class $e {
|
|
|
80
102
|
this.property = t, this.normal = n, r && (this.space = r);
|
|
81
103
|
}
|
|
82
104
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
105
|
+
Ue.prototype.property = {};
|
|
106
|
+
Ue.prototype.normal = {};
|
|
107
|
+
Ue.prototype.space = null;
|
|
86
108
|
function ar(e, t) {
|
|
87
109
|
const n = {}, r = {};
|
|
88
110
|
let i = -1;
|
|
89
111
|
for (; ++i < e.length; )
|
|
90
112
|
Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
|
|
91
|
-
return new
|
|
113
|
+
return new Ue(n, r, t);
|
|
92
114
|
}
|
|
93
115
|
function Tn(e) {
|
|
94
116
|
return e.toLowerCase();
|
|
@@ -114,11 +136,11 @@ le.prototype.commaOrSpaceSeparated = !1;
|
|
|
114
136
|
le.prototype.mustUseProperty = !1;
|
|
115
137
|
le.prototype.defined = !1;
|
|
116
138
|
let Mi = 0;
|
|
117
|
-
const O = Te(), W = Te(), ur = Te(), C = Te(),
|
|
139
|
+
const O = Te(), W = Te(), ur = Te(), C = Te(), U = Te(), De = Te(), ne = Te();
|
|
118
140
|
function Te() {
|
|
119
141
|
return 2 ** ++Mi;
|
|
120
142
|
}
|
|
121
|
-
const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: O, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated:
|
|
143
|
+
const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: O, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: De, number: C, overloadedBoolean: ur, spaceSeparated: U }, Symbol.toStringTag, { value: "Module" })), fn = Object.keys(Pn);
|
|
122
144
|
class Mn extends le {
|
|
123
145
|
/**
|
|
124
146
|
* @constructor
|
|
@@ -140,12 +162,12 @@ Mn.prototype.defined = !0;
|
|
|
140
162
|
function pt(e, t, n) {
|
|
141
163
|
n && (e[t] = n);
|
|
142
164
|
}
|
|
143
|
-
const
|
|
165
|
+
const Ni = {}.hasOwnProperty;
|
|
144
166
|
function Oe(e) {
|
|
145
167
|
const t = {}, n = {};
|
|
146
168
|
let r;
|
|
147
169
|
for (r in e.properties)
|
|
148
|
-
if (
|
|
170
|
+
if (Ni.call(e.properties, r)) {
|
|
149
171
|
const i = e.properties[r], o = new Mn(
|
|
150
172
|
r,
|
|
151
173
|
e.transform(e.attributes || {}, r),
|
|
@@ -154,7 +176,7 @@ function Oe(e) {
|
|
|
154
176
|
);
|
|
155
177
|
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Tn(r)] = r, n[Tn(o.attribute)] = r;
|
|
156
178
|
}
|
|
157
|
-
return new
|
|
179
|
+
return new Ue(t, n, e.space);
|
|
158
180
|
}
|
|
159
181
|
const sr = Oe({
|
|
160
182
|
space: "xlink",
|
|
@@ -201,36 +223,36 @@ const hr = Oe({
|
|
|
201
223
|
ariaColCount: C,
|
|
202
224
|
ariaColIndex: C,
|
|
203
225
|
ariaColSpan: C,
|
|
204
|
-
ariaControls:
|
|
226
|
+
ariaControls: U,
|
|
205
227
|
ariaCurrent: null,
|
|
206
|
-
ariaDescribedBy:
|
|
228
|
+
ariaDescribedBy: U,
|
|
207
229
|
ariaDetails: null,
|
|
208
230
|
ariaDisabled: W,
|
|
209
|
-
ariaDropEffect:
|
|
231
|
+
ariaDropEffect: U,
|
|
210
232
|
ariaErrorMessage: null,
|
|
211
233
|
ariaExpanded: W,
|
|
212
|
-
ariaFlowTo:
|
|
234
|
+
ariaFlowTo: U,
|
|
213
235
|
ariaGrabbed: W,
|
|
214
236
|
ariaHasPopup: null,
|
|
215
237
|
ariaHidden: W,
|
|
216
238
|
ariaInvalid: null,
|
|
217
239
|
ariaKeyShortcuts: null,
|
|
218
240
|
ariaLabel: null,
|
|
219
|
-
ariaLabelledBy:
|
|
241
|
+
ariaLabelledBy: U,
|
|
220
242
|
ariaLevel: C,
|
|
221
243
|
ariaLive: null,
|
|
222
244
|
ariaModal: W,
|
|
223
245
|
ariaMultiLine: W,
|
|
224
246
|
ariaMultiSelectable: W,
|
|
225
247
|
ariaOrientation: null,
|
|
226
|
-
ariaOwns:
|
|
248
|
+
ariaOwns: U,
|
|
227
249
|
ariaPlaceholder: null,
|
|
228
250
|
ariaPosInSet: C,
|
|
229
251
|
ariaPressed: W,
|
|
230
252
|
ariaReadOnly: W,
|
|
231
253
|
ariaRelevant: null,
|
|
232
254
|
ariaRequired: W,
|
|
233
|
-
ariaRoleDescription:
|
|
255
|
+
ariaRoleDescription: U,
|
|
234
256
|
ariaRowCount: C,
|
|
235
257
|
ariaRowIndex: C,
|
|
236
258
|
ariaRowSpan: C,
|
|
@@ -243,7 +265,7 @@ const hr = Oe({
|
|
|
243
265
|
ariaValueText: null,
|
|
244
266
|
role: null
|
|
245
267
|
}
|
|
246
|
-
}),
|
|
268
|
+
}), Bi = Oe({
|
|
247
269
|
space: "html",
|
|
248
270
|
attributes: {
|
|
249
271
|
acceptcharset: "accept-charset",
|
|
@@ -256,9 +278,9 @@ const hr = Oe({
|
|
|
256
278
|
properties: {
|
|
257
279
|
// Standard Properties.
|
|
258
280
|
abbr: null,
|
|
259
|
-
accept:
|
|
260
|
-
acceptCharset:
|
|
261
|
-
accessKey:
|
|
281
|
+
accept: De,
|
|
282
|
+
acceptCharset: U,
|
|
283
|
+
accessKey: U,
|
|
262
284
|
action: null,
|
|
263
285
|
allow: null,
|
|
264
286
|
allowFullScreen: O,
|
|
@@ -268,22 +290,22 @@ const hr = Oe({
|
|
|
268
290
|
as: null,
|
|
269
291
|
async: O,
|
|
270
292
|
autoCapitalize: null,
|
|
271
|
-
autoComplete:
|
|
293
|
+
autoComplete: U,
|
|
272
294
|
autoFocus: O,
|
|
273
295
|
autoPlay: O,
|
|
274
|
-
blocking:
|
|
296
|
+
blocking: U,
|
|
275
297
|
capture: null,
|
|
276
298
|
charSet: null,
|
|
277
299
|
checked: O,
|
|
278
300
|
cite: null,
|
|
279
|
-
className:
|
|
301
|
+
className: U,
|
|
280
302
|
cols: C,
|
|
281
303
|
colSpan: null,
|
|
282
304
|
content: null,
|
|
283
305
|
contentEditable: W,
|
|
284
306
|
controls: O,
|
|
285
|
-
controlsList:
|
|
286
|
-
coords: C |
|
|
307
|
+
controlsList: U,
|
|
308
|
+
coords: C | De,
|
|
287
309
|
crossOrigin: null,
|
|
288
310
|
data: null,
|
|
289
311
|
dateTime: null,
|
|
@@ -304,14 +326,14 @@ const hr = Oe({
|
|
|
304
326
|
formMethod: null,
|
|
305
327
|
formNoValidate: O,
|
|
306
328
|
formTarget: null,
|
|
307
|
-
headers:
|
|
329
|
+
headers: U,
|
|
308
330
|
height: C,
|
|
309
331
|
hidden: O,
|
|
310
332
|
high: C,
|
|
311
333
|
href: null,
|
|
312
334
|
hrefLang: null,
|
|
313
|
-
htmlFor:
|
|
314
|
-
httpEquiv:
|
|
335
|
+
htmlFor: U,
|
|
336
|
+
httpEquiv: U,
|
|
315
337
|
id: null,
|
|
316
338
|
imageSizes: null,
|
|
317
339
|
imageSrcSet: null,
|
|
@@ -321,10 +343,10 @@ const hr = Oe({
|
|
|
321
343
|
is: null,
|
|
322
344
|
isMap: O,
|
|
323
345
|
itemId: null,
|
|
324
|
-
itemProp:
|
|
325
|
-
itemRef:
|
|
346
|
+
itemProp: U,
|
|
347
|
+
itemRef: U,
|
|
326
348
|
itemScope: O,
|
|
327
|
-
itemType:
|
|
349
|
+
itemType: U,
|
|
328
350
|
kind: null,
|
|
329
351
|
label: null,
|
|
330
352
|
lang: null,
|
|
@@ -437,7 +459,7 @@ const hr = Oe({
|
|
|
437
459
|
open: O,
|
|
438
460
|
optimum: C,
|
|
439
461
|
pattern: null,
|
|
440
|
-
ping:
|
|
462
|
+
ping: U,
|
|
441
463
|
placeholder: null,
|
|
442
464
|
playsInline: O,
|
|
443
465
|
popover: null,
|
|
@@ -447,12 +469,12 @@ const hr = Oe({
|
|
|
447
469
|
preload: null,
|
|
448
470
|
readOnly: O,
|
|
449
471
|
referrerPolicy: null,
|
|
450
|
-
rel:
|
|
472
|
+
rel: U,
|
|
451
473
|
required: O,
|
|
452
474
|
reversed: O,
|
|
453
475
|
rows: C,
|
|
454
476
|
rowSpan: C,
|
|
455
|
-
sandbox:
|
|
477
|
+
sandbox: U,
|
|
456
478
|
scope: null,
|
|
457
479
|
scoped: O,
|
|
458
480
|
seamless: O,
|
|
@@ -488,7 +510,7 @@ const hr = Oe({
|
|
|
488
510
|
// Several. Use CSS `text-align` instead,
|
|
489
511
|
aLink: null,
|
|
490
512
|
// `<body>`. Use CSS `a:active {color}` instead
|
|
491
|
-
archive:
|
|
513
|
+
archive: U,
|
|
492
514
|
// `<object>`. List of URIs to archives
|
|
493
515
|
axis: null,
|
|
494
516
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
@@ -803,7 +825,7 @@ const hr = Oe({
|
|
|
803
825
|
by: null,
|
|
804
826
|
calcMode: null,
|
|
805
827
|
capHeight: C,
|
|
806
|
-
className:
|
|
828
|
+
className: U,
|
|
807
829
|
clip: null,
|
|
808
830
|
clipPath: null,
|
|
809
831
|
clipPathUnits: null,
|
|
@@ -863,9 +885,9 @@ const hr = Oe({
|
|
|
863
885
|
from: null,
|
|
864
886
|
fx: null,
|
|
865
887
|
fy: null,
|
|
866
|
-
g1:
|
|
867
|
-
g2:
|
|
868
|
-
glyphName:
|
|
888
|
+
g1: De,
|
|
889
|
+
g2: De,
|
|
890
|
+
glyphName: De,
|
|
869
891
|
glyphOrientationHorizontal: null,
|
|
870
892
|
glyphOrientationVertical: null,
|
|
871
893
|
glyphRef: null,
|
|
@@ -1038,7 +1060,7 @@ const hr = Oe({
|
|
|
1038
1060
|
patternTransform: null,
|
|
1039
1061
|
patternUnits: null,
|
|
1040
1062
|
phase: null,
|
|
1041
|
-
ping:
|
|
1063
|
+
ping: U,
|
|
1042
1064
|
pitch: null,
|
|
1043
1065
|
playbackOrder: null,
|
|
1044
1066
|
pointerEvents: null,
|
|
@@ -1161,8 +1183,8 @@ const hr = Oe({
|
|
|
1161
1183
|
z: null,
|
|
1162
1184
|
zoomAndPan: null
|
|
1163
1185
|
}
|
|
1164
|
-
}), Hi = /^data[-\w.:]+$/i, ht = /-[a-z]/g,
|
|
1165
|
-
function
|
|
1186
|
+
}), Hi = /^data[-\w.:]+$/i, ht = /-[a-z]/g, $i = /[A-Z]/g;
|
|
1187
|
+
function Ui(e, t) {
|
|
1166
1188
|
const n = Tn(t);
|
|
1167
1189
|
let r = t, i = le;
|
|
1168
1190
|
if (n in e.normal)
|
|
@@ -1174,7 +1196,7 @@ function $i(e, t) {
|
|
|
1174
1196
|
} else {
|
|
1175
1197
|
const o = t.slice(4);
|
|
1176
1198
|
if (!ht.test(o)) {
|
|
1177
|
-
let l = o.replace(
|
|
1199
|
+
let l = o.replace($i, qi);
|
|
1178
1200
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
1179
1201
|
}
|
|
1180
1202
|
}
|
|
@@ -1206,7 +1228,7 @@ const Wi = {
|
|
|
1206
1228
|
xLinkTitle: "xlinkTitle",
|
|
1207
1229
|
xLinkType: "xlinkType",
|
|
1208
1230
|
xmlnsXLink: "xmlnsXlink"
|
|
1209
|
-
}, Qi = ar([cr, sr, hr, mr,
|
|
1231
|
+
}, Qi = ar([cr, sr, hr, mr, Bi], "html"), Nn = ar([cr, sr, hr, mr, ji], "svg");
|
|
1210
1232
|
function kf(e) {
|
|
1211
1233
|
const t = String(e || "").trim();
|
|
1212
1234
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -1297,7 +1319,7 @@ var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki
|
|
|
1297
1319
|
function yt(e) {
|
|
1298
1320
|
return e ? e.replace(nl, Ae) : Ae;
|
|
1299
1321
|
}
|
|
1300
|
-
var ol =
|
|
1322
|
+
var ol = at && at.__importDefault || function(e) {
|
|
1301
1323
|
return e && e.__esModule ? e : { default: e };
|
|
1302
1324
|
};
|
|
1303
1325
|
Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
@@ -1315,7 +1337,7 @@ function ul(e, t) {
|
|
|
1315
1337
|
}), n;
|
|
1316
1338
|
}
|
|
1317
1339
|
var kt = gr.default = ul;
|
|
1318
|
-
const sl = kt.default || kt, dr = yr("end"),
|
|
1340
|
+
const sl = kt.default || kt, dr = yr("end"), Bn = yr("start");
|
|
1319
1341
|
function yr(e) {
|
|
1320
1342
|
return t;
|
|
1321
1343
|
function t(n) {
|
|
@@ -1329,11 +1351,11 @@ function yr(e) {
|
|
|
1329
1351
|
}
|
|
1330
1352
|
}
|
|
1331
1353
|
function cl(e) {
|
|
1332
|
-
const t =
|
|
1354
|
+
const t = Bn(e), n = dr(e);
|
|
1333
1355
|
if (t && n)
|
|
1334
1356
|
return { start: t, end: n };
|
|
1335
1357
|
}
|
|
1336
|
-
function
|
|
1358
|
+
function Be(e) {
|
|
1337
1359
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? xt(e.position) : "start" in e || "end" in e ? xt(e) : "line" in e || "column" in e ? Ln(e) : "";
|
|
1338
1360
|
}
|
|
1339
1361
|
function Ln(e) {
|
|
@@ -1416,7 +1438,7 @@ class K extends Error {
|
|
|
1416
1438
|
u && (o.place = u.position);
|
|
1417
1439
|
}
|
|
1418
1440
|
const a = o.place && "start" in o.place ? o.place.start : o.place;
|
|
1419
|
-
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.message = i, this.line = a ? a.line : void 0, this.name =
|
|
1441
|
+
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.message = i, this.line = a ? a.line : void 0, this.name = Be(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "";
|
|
1420
1442
|
}
|
|
1421
1443
|
}
|
|
1422
1444
|
K.prototype.file = "";
|
|
@@ -1462,7 +1484,7 @@ function dl(e, t) {
|
|
|
1462
1484
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1463
1485
|
passKeys: t.passKeys !== !1,
|
|
1464
1486
|
passNode: t.passNode || !1,
|
|
1465
|
-
schema: t.space === "svg" ?
|
|
1487
|
+
schema: t.space === "svg" ? Nn : Qi,
|
|
1466
1488
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1467
1489
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1468
1490
|
}, o = xr(i, e, void 0);
|
|
@@ -1490,11 +1512,11 @@ function xr(e, t, n) {
|
|
|
1490
1512
|
function yl(e, t, n) {
|
|
1491
1513
|
const r = e.schema;
|
|
1492
1514
|
let i = r;
|
|
1493
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
1515
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Nn, e.schema = i), e.ancestors.push(t);
|
|
1494
1516
|
const o = wr(e, t.tagName, !1), l = Al(e, t);
|
|
1495
|
-
let a =
|
|
1517
|
+
let a = $n(e, t);
|
|
1496
1518
|
return ml.has(t.tagName) && (a = a.filter(function(u) {
|
|
1497
|
-
return typeof u == "string" ? !
|
|
1519
|
+
return typeof u == "string" ? !Ri(u) : !0;
|
|
1498
1520
|
})), br(e, l, o, t), Hn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1499
1521
|
}
|
|
1500
1522
|
function kl(e, t) {
|
|
@@ -1505,7 +1527,7 @@ function kl(e, t) {
|
|
|
1505
1527
|
e.evaluater.evaluateExpression(r.expression)
|
|
1506
1528
|
);
|
|
1507
1529
|
}
|
|
1508
|
-
|
|
1530
|
+
$e(e, t.position);
|
|
1509
1531
|
}
|
|
1510
1532
|
function xl(e, t) {
|
|
1511
1533
|
if (t.data && t.data.estree && e.evaluater)
|
|
@@ -1513,18 +1535,18 @@ function xl(e, t) {
|
|
|
1513
1535
|
/** @type {Child | undefined} */
|
|
1514
1536
|
e.evaluater.evaluateProgram(t.data.estree)
|
|
1515
1537
|
);
|
|
1516
|
-
|
|
1538
|
+
$e(e, t.position);
|
|
1517
1539
|
}
|
|
1518
1540
|
function bl(e, t, n) {
|
|
1519
1541
|
const r = e.schema;
|
|
1520
1542
|
let i = r;
|
|
1521
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
1522
|
-
const o = t.name === null ? e.Fragment : wr(e, t.name, !0), l = Il(e, t), a =
|
|
1543
|
+
t.name === "svg" && r.space === "html" && (i = Nn, e.schema = i), e.ancestors.push(t);
|
|
1544
|
+
const o = t.name === null ? e.Fragment : wr(e, t.name, !0), l = Il(e, t), a = $n(e, t);
|
|
1523
1545
|
return br(e, l, o, t), Hn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1524
1546
|
}
|
|
1525
1547
|
function wl(e, t, n) {
|
|
1526
1548
|
const r = {};
|
|
1527
|
-
return Hn(r,
|
|
1549
|
+
return Hn(r, $n(e, t)), e.create(t, e.Fragment, r, n);
|
|
1528
1550
|
}
|
|
1529
1551
|
function Sl(e, t) {
|
|
1530
1552
|
return t.value;
|
|
@@ -1548,7 +1570,7 @@ function Cl(e, t, n) {
|
|
|
1548
1570
|
function El(e, t) {
|
|
1549
1571
|
return n;
|
|
1550
1572
|
function n(r, i, o, l) {
|
|
1551
|
-
const a = Array.isArray(o.children), u =
|
|
1573
|
+
const a = Array.isArray(o.children), u = Bn(r);
|
|
1552
1574
|
return t(
|
|
1553
1575
|
i,
|
|
1554
1576
|
o,
|
|
@@ -1594,7 +1616,7 @@ function Il(e, t) {
|
|
|
1594
1616
|
e.evaluater.evaluateExpression(a.argument)
|
|
1595
1617
|
);
|
|
1596
1618
|
} else
|
|
1597
|
-
|
|
1619
|
+
$e(e, t.position);
|
|
1598
1620
|
else {
|
|
1599
1621
|
const i = r.name;
|
|
1600
1622
|
let o;
|
|
@@ -1603,7 +1625,7 @@ function Il(e, t) {
|
|
|
1603
1625
|
const a = r.value.data.estree.body[0];
|
|
1604
1626
|
o = e.evaluater.evaluateExpression(a.expression);
|
|
1605
1627
|
} else
|
|
1606
|
-
|
|
1628
|
+
$e(e, t.position);
|
|
1607
1629
|
else
|
|
1608
1630
|
o = r.value === null ? !0 : r.value;
|
|
1609
1631
|
n[i] = /** @type {Props[keyof Props]} */
|
|
@@ -1611,7 +1633,7 @@ function Il(e, t) {
|
|
|
1611
1633
|
}
|
|
1612
1634
|
return n;
|
|
1613
1635
|
}
|
|
1614
|
-
function
|
|
1636
|
+
function $n(e, t) {
|
|
1615
1637
|
const n = [];
|
|
1616
1638
|
let r = -1;
|
|
1617
1639
|
const i = e.passKeys ? /* @__PURE__ */ new Map() : fl;
|
|
@@ -1631,9 +1653,9 @@ function Un(e, t) {
|
|
|
1631
1653
|
return n;
|
|
1632
1654
|
}
|
|
1633
1655
|
function Tl(e, t, n) {
|
|
1634
|
-
const r =
|
|
1656
|
+
const r = Ui(e.schema, t);
|
|
1635
1657
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1636
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
1658
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? vi(n) : Gi(n)), r.property === "style") {
|
|
1637
1659
|
let i = typeof n == "object" ? n : Pl(e, String(n));
|
|
1638
1660
|
return e.stylePropertyNameCase === "css" && (i = Ll(i)), ["style", i];
|
|
1639
1661
|
}
|
|
@@ -1664,7 +1686,7 @@ function Pl(e, t) {
|
|
|
1664
1686
|
return n;
|
|
1665
1687
|
function r(i, o) {
|
|
1666
1688
|
let l = i;
|
|
1667
|
-
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(hl,
|
|
1689
|
+
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(hl, vl)), n[l] = o;
|
|
1668
1690
|
}
|
|
1669
1691
|
}
|
|
1670
1692
|
function wr(e, t, n) {
|
|
@@ -1696,9 +1718,9 @@ function wr(e, t, n) {
|
|
|
1696
1718
|
}
|
|
1697
1719
|
if (e.evaluater)
|
|
1698
1720
|
return e.evaluater.evaluateExpression(r);
|
|
1699
|
-
|
|
1721
|
+
$e(e);
|
|
1700
1722
|
}
|
|
1701
|
-
function
|
|
1723
|
+
function $e(e, t) {
|
|
1702
1724
|
const n = new K(
|
|
1703
1725
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
1704
1726
|
{
|
|
@@ -1718,13 +1740,13 @@ function Ll(e) {
|
|
|
1718
1740
|
return t;
|
|
1719
1741
|
}
|
|
1720
1742
|
function zl(e) {
|
|
1721
|
-
let t = e.replace(pl,
|
|
1743
|
+
let t = e.replace(pl, Dl);
|
|
1722
1744
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1723
1745
|
}
|
|
1724
|
-
function
|
|
1746
|
+
function vl(e, t) {
|
|
1725
1747
|
return t.toUpperCase();
|
|
1726
1748
|
}
|
|
1727
|
-
function
|
|
1749
|
+
function Dl(e) {
|
|
1728
1750
|
return "-" + e.toLowerCase();
|
|
1729
1751
|
}
|
|
1730
1752
|
const pn = {
|
|
@@ -1750,7 +1772,7 @@ const pn = {
|
|
|
1750
1772
|
"video"
|
|
1751
1773
|
]
|
|
1752
1774
|
}, Ol = {};
|
|
1753
|
-
function
|
|
1775
|
+
function Un(e, t) {
|
|
1754
1776
|
const n = Ol, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
1755
1777
|
return Sr(e, r, i);
|
|
1756
1778
|
}
|
|
@@ -1799,10 +1821,10 @@ function Cr(e) {
|
|
|
1799
1821
|
const t = {};
|
|
1800
1822
|
let n = -1;
|
|
1801
1823
|
for (; ++n < e.length; )
|
|
1802
|
-
|
|
1824
|
+
_l(t, e[n]);
|
|
1803
1825
|
return t;
|
|
1804
1826
|
}
|
|
1805
|
-
function
|
|
1827
|
+
function _l(e, t) {
|
|
1806
1828
|
let n;
|
|
1807
1829
|
for (n in t) {
|
|
1808
1830
|
const i = (Ct.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
@@ -1811,7 +1833,7 @@ function Rl(e, t) {
|
|
|
1811
1833
|
for (l in o) {
|
|
1812
1834
|
Ct.call(i, l) || (i[l] = []);
|
|
1813
1835
|
const a = o[l];
|
|
1814
|
-
|
|
1836
|
+
Rl(
|
|
1815
1837
|
// @ts-expect-error Looks like a list.
|
|
1816
1838
|
i[l],
|
|
1817
1839
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -1819,7 +1841,7 @@ function Rl(e, t) {
|
|
|
1819
1841
|
}
|
|
1820
1842
|
}
|
|
1821
1843
|
}
|
|
1822
|
-
function
|
|
1844
|
+
function Rl(e, t) {
|
|
1823
1845
|
let n = -1;
|
|
1824
1846
|
const r = [];
|
|
1825
1847
|
for (; ++n < t.length; )
|
|
@@ -1850,11 +1872,11 @@ function Je(e) {
|
|
|
1850
1872
|
e !== null && (e < 32 || e === 127)
|
|
1851
1873
|
);
|
|
1852
1874
|
}
|
|
1853
|
-
const zn = be(/\d/),
|
|
1875
|
+
const zn = be(/\d/), Nl = be(/[\dA-Fa-f]/), Bl = be(/[!-/:-@[-`{-~]/);
|
|
1854
1876
|
function L(e) {
|
|
1855
1877
|
return e !== null && e < -2;
|
|
1856
1878
|
}
|
|
1857
|
-
function
|
|
1879
|
+
function $(e) {
|
|
1858
1880
|
return e !== null && (e < 0 || e === 32);
|
|
1859
1881
|
}
|
|
1860
1882
|
function F(e) {
|
|
@@ -1933,12 +1955,12 @@ function Hl(e) {
|
|
|
1933
1955
|
return L(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
|
1934
1956
|
}
|
|
1935
1957
|
}
|
|
1936
|
-
const
|
|
1937
|
-
tokenize:
|
|
1958
|
+
const $l = {
|
|
1959
|
+
tokenize: Ul
|
|
1938
1960
|
}, Et = {
|
|
1939
1961
|
tokenize: ql
|
|
1940
1962
|
};
|
|
1941
|
-
function
|
|
1963
|
+
function Ul(e) {
|
|
1942
1964
|
const t = this, n = [];
|
|
1943
1965
|
let r = 0, i, o, l;
|
|
1944
1966
|
return a;
|
|
@@ -1957,22 +1979,22 @@ function $l(e) {
|
|
|
1957
1979
|
if (r++, t.containerState._closeFlow) {
|
|
1958
1980
|
t.containerState._closeFlow = void 0, i && A();
|
|
1959
1981
|
const z = t.events.length;
|
|
1960
|
-
let
|
|
1961
|
-
for (;
|
|
1962
|
-
if (t.events[
|
|
1963
|
-
w = t.events[
|
|
1982
|
+
let v = z, w;
|
|
1983
|
+
for (; v--; )
|
|
1984
|
+
if (t.events[v][0] === "exit" && t.events[v][1].type === "chunkFlow") {
|
|
1985
|
+
w = t.events[v][1].end;
|
|
1964
1986
|
break;
|
|
1965
1987
|
}
|
|
1966
1988
|
x(r);
|
|
1967
|
-
let
|
|
1968
|
-
for (;
|
|
1969
|
-
t.events[
|
|
1989
|
+
let _ = z;
|
|
1990
|
+
for (; _ < t.events.length; )
|
|
1991
|
+
t.events[_][1].end = Object.assign({}, w), _++;
|
|
1970
1992
|
return te(
|
|
1971
1993
|
t.events,
|
|
1972
|
-
|
|
1994
|
+
v + 1,
|
|
1973
1995
|
0,
|
|
1974
1996
|
t.events.slice(z)
|
|
1975
|
-
), t.events.length =
|
|
1997
|
+
), t.events.length = _, s(E);
|
|
1976
1998
|
}
|
|
1977
1999
|
return a(E);
|
|
1978
2000
|
}
|
|
@@ -2025,8 +2047,8 @@ function $l(e) {
|
|
|
2025
2047
|
return L(E) ? (e.consume(E), S(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(E), k);
|
|
2026
2048
|
}
|
|
2027
2049
|
function S(E, z) {
|
|
2028
|
-
const
|
|
2029
|
-
if (z &&
|
|
2050
|
+
const v = t.sliceStream(E);
|
|
2051
|
+
if (z && v.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(v), t.parser.lazy[E.start.line]) {
|
|
2030
2052
|
let w = i.events.length;
|
|
2031
2053
|
for (; w--; )
|
|
2032
2054
|
if (
|
|
@@ -2036,31 +2058,31 @@ function $l(e) {
|
|
|
2036
2058
|
i.events[w][1].end.offset > l)
|
|
2037
2059
|
)
|
|
2038
2060
|
return;
|
|
2039
|
-
const
|
|
2040
|
-
let q =
|
|
2061
|
+
const _ = t.events.length;
|
|
2062
|
+
let q = _, B, y;
|
|
2041
2063
|
for (; q--; )
|
|
2042
2064
|
if (t.events[q][0] === "exit" && t.events[q][1].type === "chunkFlow") {
|
|
2043
|
-
if (
|
|
2065
|
+
if (B) {
|
|
2044
2066
|
y = t.events[q][1].end;
|
|
2045
2067
|
break;
|
|
2046
2068
|
}
|
|
2047
|
-
|
|
2069
|
+
B = !0;
|
|
2048
2070
|
}
|
|
2049
|
-
for (x(r), w =
|
|
2071
|
+
for (x(r), w = _; w < t.events.length; )
|
|
2050
2072
|
t.events[w][1].end = Object.assign({}, y), w++;
|
|
2051
2073
|
te(
|
|
2052
2074
|
t.events,
|
|
2053
2075
|
q + 1,
|
|
2054
2076
|
0,
|
|
2055
|
-
t.events.slice(
|
|
2077
|
+
t.events.slice(_)
|
|
2056
2078
|
), t.events.length = w;
|
|
2057
2079
|
}
|
|
2058
2080
|
}
|
|
2059
2081
|
function x(E) {
|
|
2060
2082
|
let z = n.length;
|
|
2061
2083
|
for (; z-- > E; ) {
|
|
2062
|
-
const
|
|
2063
|
-
t.containerState =
|
|
2084
|
+
const v = n[z];
|
|
2085
|
+
t.containerState = v[1], v[0].exit.call(t, e);
|
|
2064
2086
|
}
|
|
2065
2087
|
n.length = E;
|
|
2066
2088
|
}
|
|
@@ -2077,7 +2099,7 @@ function ql(e, t, n) {
|
|
|
2077
2099
|
);
|
|
2078
2100
|
}
|
|
2079
2101
|
function Ze(e) {
|
|
2080
|
-
if (e === null ||
|
|
2102
|
+
if (e === null || $(e) || Ie(e))
|
|
2081
2103
|
return 1;
|
|
2082
2104
|
if (rn(e))
|
|
2083
2105
|
return 2;
|
|
@@ -2091,7 +2113,7 @@ function ln(e, t, n) {
|
|
|
2091
2113
|
}
|
|
2092
2114
|
return t;
|
|
2093
2115
|
}
|
|
2094
|
-
const
|
|
2116
|
+
const vn = {
|
|
2095
2117
|
name: "attention",
|
|
2096
2118
|
tokenize: Wl,
|
|
2097
2119
|
resolveAll: Vl
|
|
@@ -2275,7 +2297,7 @@ function Zl(e, t, n) {
|
|
|
2275
2297
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
2276
2298
|
}
|
|
2277
2299
|
function i(o) {
|
|
2278
|
-
return
|
|
2300
|
+
return Bl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2279
2301
|
}
|
|
2280
2302
|
}
|
|
2281
2303
|
const Tr = {
|
|
@@ -2293,7 +2315,7 @@ function eo(e, t, n) {
|
|
|
2293
2315
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = Y, f(c));
|
|
2294
2316
|
}
|
|
2295
2317
|
function s(c) {
|
|
2296
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
2318
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Nl, f) : (e.enter("characterReferenceValue"), o = 7, l = zn, f(c));
|
|
2297
2319
|
}
|
|
2298
2320
|
function f(c) {
|
|
2299
2321
|
if (c === 59 && i) {
|
|
@@ -2313,7 +2335,7 @@ const It = {
|
|
|
2313
2335
|
};
|
|
2314
2336
|
function no(e, t, n) {
|
|
2315
2337
|
const r = this, i = {
|
|
2316
|
-
tokenize:
|
|
2338
|
+
tokenize: v,
|
|
2317
2339
|
partial: !0
|
|
2318
2340
|
};
|
|
2319
2341
|
let o = 0, l = 0, a;
|
|
@@ -2322,8 +2344,8 @@ function no(e, t, n) {
|
|
|
2322
2344
|
return s(w);
|
|
2323
2345
|
}
|
|
2324
2346
|
function s(w) {
|
|
2325
|
-
const
|
|
2326
|
-
return o =
|
|
2347
|
+
const _ = r.events[r.events.length - 1];
|
|
2348
|
+
return o = _ && _[1].type === "linePrefix" ? _[2].sliceSerialize(_[1], !0).length : 0, a = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(w);
|
|
2327
2349
|
}
|
|
2328
2350
|
function f(w) {
|
|
2329
2351
|
return w === a ? (l++, e.consume(w), f) : l < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), F(w) ? M(e, c, "whitespace")(w) : c(w));
|
|
@@ -2367,28 +2389,28 @@ function no(e, t, n) {
|
|
|
2367
2389
|
function z(w) {
|
|
2368
2390
|
return e.exit("codeFenced"), t(w);
|
|
2369
2391
|
}
|
|
2370
|
-
function
|
|
2371
|
-
let
|
|
2392
|
+
function v(w, _, q) {
|
|
2393
|
+
let B = 0;
|
|
2372
2394
|
return y;
|
|
2373
|
-
function y(
|
|
2374
|
-
return w.enter("lineEnding"), w.consume(
|
|
2395
|
+
function y(N) {
|
|
2396
|
+
return w.enter("lineEnding"), w.consume(N), w.exit("lineEnding"), T;
|
|
2375
2397
|
}
|
|
2376
|
-
function T(
|
|
2377
|
-
return w.enter("codeFencedFence"), F(
|
|
2398
|
+
function T(N) {
|
|
2399
|
+
return w.enter("codeFencedFence"), F(N) ? M(
|
|
2378
2400
|
w,
|
|
2379
2401
|
P,
|
|
2380
2402
|
"linePrefix",
|
|
2381
2403
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
2382
|
-
)(
|
|
2404
|
+
)(N) : P(N);
|
|
2383
2405
|
}
|
|
2384
|
-
function P(
|
|
2385
|
-
return
|
|
2406
|
+
function P(N) {
|
|
2407
|
+
return N === a ? (w.enter("codeFencedFenceSequence"), H(N)) : q(N);
|
|
2386
2408
|
}
|
|
2387
|
-
function H(
|
|
2388
|
-
return
|
|
2409
|
+
function H(N) {
|
|
2410
|
+
return N === a ? (B++, w.consume(N), H) : B >= l ? (w.exit("codeFencedFenceSequence"), F(N) ? M(w, V, "whitespace")(N) : V(N)) : q(N);
|
|
2389
2411
|
}
|
|
2390
|
-
function V(
|
|
2391
|
-
return
|
|
2412
|
+
function V(N) {
|
|
2413
|
+
return N === null || L(N) ? (w.exit("codeFencedFence"), _(N)) : q(N);
|
|
2392
2414
|
}
|
|
2393
2415
|
}
|
|
2394
2416
|
}
|
|
@@ -2591,7 +2613,7 @@ function Lr(e, t, n, r, i, o, l, a, u) {
|
|
|
2591
2613
|
return x === 60 || x === 62 || x === 92 ? (e.consume(x), p) : p(x);
|
|
2592
2614
|
}
|
|
2593
2615
|
function k(x) {
|
|
2594
|
-
return !f && (x === null || x === 41 ||
|
|
2616
|
+
return !f && (x === null || x === 41 || $(x)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(x)) : f < s && x === 40 ? (e.consume(x), f++, k) : x === 41 ? (e.consume(x), f--, k) : x === null || x === 32 || x === 40 || Je(x) ? n(x) : (e.consume(x), x === 92 ? S : k);
|
|
2595
2617
|
}
|
|
2596
2618
|
function S(x) {
|
|
2597
2619
|
return x === 40 || x === 41 || x === 92 ? (e.consume(x), k) : k(x);
|
|
@@ -2621,7 +2643,7 @@ function zr(e, t, n, r, i, o) {
|
|
|
2621
2643
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, c) : c(p);
|
|
2622
2644
|
}
|
|
2623
2645
|
}
|
|
2624
|
-
function
|
|
2646
|
+
function vr(e, t, n, r, i, o) {
|
|
2625
2647
|
let l;
|
|
2626
2648
|
return a;
|
|
2627
2649
|
function a(h) {
|
|
@@ -2685,7 +2707,7 @@ function xo(e, t, n) {
|
|
|
2685
2707
|
), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), u) : n(p);
|
|
2686
2708
|
}
|
|
2687
2709
|
function u(p) {
|
|
2688
|
-
return
|
|
2710
|
+
return $(p) ? je(e, s)(p) : s(p);
|
|
2689
2711
|
}
|
|
2690
2712
|
function s(p) {
|
|
2691
2713
|
return Lr(
|
|
@@ -2713,10 +2735,10 @@ function xo(e, t, n) {
|
|
|
2713
2735
|
function bo(e, t, n) {
|
|
2714
2736
|
return r;
|
|
2715
2737
|
function r(a) {
|
|
2716
|
-
return
|
|
2738
|
+
return $(a) ? je(e, i)(a) : n(a);
|
|
2717
2739
|
}
|
|
2718
2740
|
function i(a) {
|
|
2719
|
-
return
|
|
2741
|
+
return vr(
|
|
2720
2742
|
e,
|
|
2721
2743
|
o,
|
|
2722
2744
|
n,
|
|
@@ -2778,7 +2800,7 @@ function Ao(e, t, n) {
|
|
|
2778
2800
|
return e.enter("atxHeadingSequence"), l(f);
|
|
2779
2801
|
}
|
|
2780
2802
|
function l(f) {
|
|
2781
|
-
return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null ||
|
|
2803
|
+
return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || $(f) ? (e.exit("atxHeadingSequence"), a(f)) : n(f);
|
|
2782
2804
|
}
|
|
2783
2805
|
function a(f) {
|
|
2784
2806
|
return f === 35 ? (e.enter("atxHeadingSequence"), u(f)) : f === null || L(f) ? (e.exit("atxHeading"), t(f)) : F(f) ? M(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), s(f));
|
|
@@ -2787,7 +2809,7 @@ function Ao(e, t, n) {
|
|
|
2787
2809
|
return f === 35 ? (e.consume(f), u) : (e.exit("atxHeadingSequence"), a(f));
|
|
2788
2810
|
}
|
|
2789
2811
|
function s(f) {
|
|
2790
|
-
return f === null || f === 35 ||
|
|
2812
|
+
return f === null || f === 35 || $(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
|
|
2791
2813
|
}
|
|
2792
2814
|
}
|
|
2793
2815
|
const Io = [
|
|
@@ -2855,14 +2877,14 @@ const Io = [
|
|
|
2855
2877
|
"ul"
|
|
2856
2878
|
], Pt = ["pre", "script", "style", "textarea"], To = {
|
|
2857
2879
|
name: "htmlFlow",
|
|
2858
|
-
tokenize:
|
|
2880
|
+
tokenize: vo,
|
|
2859
2881
|
resolveTo: zo,
|
|
2860
2882
|
concrete: !0
|
|
2861
2883
|
}, Po = {
|
|
2862
2884
|
tokenize: Oo,
|
|
2863
2885
|
partial: !0
|
|
2864
2886
|
}, Lo = {
|
|
2865
|
-
tokenize:
|
|
2887
|
+
tokenize: Do,
|
|
2866
2888
|
partial: !0
|
|
2867
2889
|
};
|
|
2868
2890
|
function zo(e) {
|
|
@@ -2871,7 +2893,7 @@ function zo(e) {
|
|
|
2871
2893
|
;
|
|
2872
2894
|
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;
|
|
2873
2895
|
}
|
|
2874
|
-
function
|
|
2896
|
+
function vo(e, t, n) {
|
|
2875
2897
|
const r = this;
|
|
2876
2898
|
let i, o, l, a, u;
|
|
2877
2899
|
return s;
|
|
@@ -2898,7 +2920,7 @@ function Do(e, t, n) {
|
|
|
2898
2920
|
return J(g) ? (e.consume(g), l = String.fromCharCode(g), S) : n(g);
|
|
2899
2921
|
}
|
|
2900
2922
|
function S(g) {
|
|
2901
|
-
if (g === null || g === 47 || g === 62 ||
|
|
2923
|
+
if (g === null || g === 47 || g === 62 || $(g)) {
|
|
2902
2924
|
const ue = g === 47, we = l.toLowerCase();
|
|
2903
2925
|
return !ue && !o && Pt.includes(we) ? (i = 1, r.interrupt ? t(g) : P(g)) : Io.includes(l.toLowerCase()) ? (i = 6, ue ? (e.consume(g), x) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
|
|
2904
2926
|
}
|
|
@@ -2914,21 +2936,21 @@ function Do(e, t, n) {
|
|
|
2914
2936
|
return g === 47 ? (e.consume(g), y) : g === 58 || g === 95 || J(g) ? (e.consume(g), z) : F(g) ? (e.consume(g), E) : y(g);
|
|
2915
2937
|
}
|
|
2916
2938
|
function z(g) {
|
|
2917
|
-
return g === 45 || g === 46 || g === 58 || g === 95 || Y(g) ? (e.consume(g), z) :
|
|
2939
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || Y(g) ? (e.consume(g), z) : v(g);
|
|
2918
2940
|
}
|
|
2919
|
-
function
|
|
2920
|
-
return g === 61 ? (e.consume(g), w) : F(g) ? (e.consume(g),
|
|
2941
|
+
function v(g) {
|
|
2942
|
+
return g === 61 ? (e.consume(g), w) : F(g) ? (e.consume(g), v) : E(g);
|
|
2921
2943
|
}
|
|
2922
2944
|
function w(g) {
|
|
2923
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g,
|
|
2945
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g, _) : F(g) ? (e.consume(g), w) : q(g);
|
|
2924
2946
|
}
|
|
2925
|
-
function
|
|
2926
|
-
return g === u ? (e.consume(g), u = null,
|
|
2947
|
+
function _(g) {
|
|
2948
|
+
return g === u ? (e.consume(g), u = null, B) : g === null || L(g) ? n(g) : (e.consume(g), _);
|
|
2927
2949
|
}
|
|
2928
2950
|
function q(g) {
|
|
2929
|
-
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 ||
|
|
2951
|
+
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || $(g) ? v(g) : (e.consume(g), q);
|
|
2930
2952
|
}
|
|
2931
|
-
function
|
|
2953
|
+
function B(g) {
|
|
2932
2954
|
return g === 47 || g === 62 || F(g) ? E(g) : n(g);
|
|
2933
2955
|
}
|
|
2934
2956
|
function y(g) {
|
|
@@ -2952,9 +2974,9 @@ function Do(e, t, n) {
|
|
|
2952
2974
|
)(g);
|
|
2953
2975
|
}
|
|
2954
2976
|
function V(g) {
|
|
2955
|
-
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"),
|
|
2977
|
+
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), N;
|
|
2956
2978
|
}
|
|
2957
|
-
function
|
|
2979
|
+
function N(g) {
|
|
2958
2980
|
return g === null || L(g) ? H(g) : (e.enter("htmlFlowData"), P(g));
|
|
2959
2981
|
}
|
|
2960
2982
|
function X(g) {
|
|
@@ -2983,7 +3005,7 @@ function Do(e, t, n) {
|
|
|
2983
3005
|
return e.exit("htmlFlow"), t(g);
|
|
2984
3006
|
}
|
|
2985
3007
|
}
|
|
2986
|
-
function
|
|
3008
|
+
function Do(e, t, n) {
|
|
2987
3009
|
const r = this;
|
|
2988
3010
|
return i;
|
|
2989
3011
|
function i(l) {
|
|
@@ -3001,9 +3023,9 @@ function Oo(e, t, n) {
|
|
|
3001
3023
|
}
|
|
3002
3024
|
const Fo = {
|
|
3003
3025
|
name: "htmlText",
|
|
3004
|
-
tokenize:
|
|
3026
|
+
tokenize: _o
|
|
3005
3027
|
};
|
|
3006
|
-
function
|
|
3028
|
+
function _o(e, t, n) {
|
|
3007
3029
|
const r = this;
|
|
3008
3030
|
let i, o, l;
|
|
3009
3031
|
return a;
|
|
@@ -3011,7 +3033,7 @@ function Ro(e, t, n) {
|
|
|
3011
3033
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), u;
|
|
3012
3034
|
}
|
|
3013
3035
|
function u(m) {
|
|
3014
|
-
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m),
|
|
3036
|
+
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m), v) : m === 63 ? (e.consume(m), E) : J(m) ? (e.consume(m), q) : n(m);
|
|
3015
3037
|
}
|
|
3016
3038
|
function s(m) {
|
|
3017
3039
|
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), o = 0, d) : J(m) ? (e.consume(m), A) : n(m);
|
|
@@ -3050,38 +3072,38 @@ function Ro(e, t, n) {
|
|
|
3050
3072
|
function z(m) {
|
|
3051
3073
|
return m === 62 ? X(m) : E(m);
|
|
3052
3074
|
}
|
|
3053
|
-
function
|
|
3075
|
+
function v(m) {
|
|
3054
3076
|
return J(m) ? (e.consume(m), w) : n(m);
|
|
3055
3077
|
}
|
|
3056
3078
|
function w(m) {
|
|
3057
|
-
return m === 45 || Y(m) ? (e.consume(m), w) :
|
|
3079
|
+
return m === 45 || Y(m) ? (e.consume(m), w) : _(m);
|
|
3058
3080
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return L(m) ? (l =
|
|
3081
|
+
function _(m) {
|
|
3082
|
+
return L(m) ? (l = _, Q(m)) : F(m) ? (e.consume(m), _) : X(m);
|
|
3061
3083
|
}
|
|
3062
3084
|
function q(m) {
|
|
3063
|
-
return m === 45 || Y(m) ? (e.consume(m), q) : m === 47 || m === 62 ||
|
|
3085
|
+
return m === 45 || Y(m) ? (e.consume(m), q) : m === 47 || m === 62 || $(m) ? B(m) : n(m);
|
|
3064
3086
|
}
|
|
3065
|
-
function
|
|
3066
|
-
return m === 47 ? (e.consume(m), X) : m === 58 || m === 95 || J(m) ? (e.consume(m), y) : L(m) ? (l =
|
|
3087
|
+
function B(m) {
|
|
3088
|
+
return m === 47 ? (e.consume(m), X) : m === 58 || m === 95 || J(m) ? (e.consume(m), y) : L(m) ? (l = B, Q(m)) : F(m) ? (e.consume(m), B) : X(m);
|
|
3067
3089
|
}
|
|
3068
3090
|
function y(m) {
|
|
3069
3091
|
return m === 45 || m === 46 || m === 58 || m === 95 || Y(m) ? (e.consume(m), y) : T(m);
|
|
3070
3092
|
}
|
|
3071
3093
|
function T(m) {
|
|
3072
|
-
return m === 61 ? (e.consume(m), P) : L(m) ? (l = T, Q(m)) : F(m) ? (e.consume(m), T) :
|
|
3094
|
+
return m === 61 ? (e.consume(m), P) : L(m) ? (l = T, Q(m)) : F(m) ? (e.consume(m), T) : B(m);
|
|
3073
3095
|
}
|
|
3074
3096
|
function P(m) {
|
|
3075
3097
|
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, H) : L(m) ? (l = P, Q(m)) : F(m) ? (e.consume(m), P) : (e.consume(m), V);
|
|
3076
3098
|
}
|
|
3077
3099
|
function H(m) {
|
|
3078
|
-
return m === i ? (e.consume(m), i = void 0,
|
|
3100
|
+
return m === i ? (e.consume(m), i = void 0, N) : m === null ? n(m) : L(m) ? (l = H, Q(m)) : (e.consume(m), H);
|
|
3079
3101
|
}
|
|
3080
3102
|
function V(m) {
|
|
3081
|
-
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 ||
|
|
3103
|
+
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || $(m) ? B(m) : (e.consume(m), V);
|
|
3082
3104
|
}
|
|
3083
|
-
function
|
|
3084
|
-
return m === 47 || m === 62 ||
|
|
3105
|
+
function N(m) {
|
|
3106
|
+
return m === 47 || m === 62 || $(m) ? B(m) : n(m);
|
|
3085
3107
|
}
|
|
3086
3108
|
function X(m) {
|
|
3087
3109
|
return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
|
|
@@ -3105,15 +3127,15 @@ const Vn = {
|
|
|
3105
3127
|
name: "labelEnd",
|
|
3106
3128
|
tokenize: Ho,
|
|
3107
3129
|
resolveTo: jo,
|
|
3108
|
-
resolveAll:
|
|
3109
|
-
},
|
|
3110
|
-
tokenize: Uo
|
|
3111
|
-
}, Mo = {
|
|
3130
|
+
resolveAll: Bo
|
|
3131
|
+
}, Ro = {
|
|
3112
3132
|
tokenize: $o
|
|
3113
|
-
},
|
|
3133
|
+
}, Mo = {
|
|
3134
|
+
tokenize: Uo
|
|
3135
|
+
}, No = {
|
|
3114
3136
|
tokenize: qo
|
|
3115
3137
|
};
|
|
3116
|
-
function
|
|
3138
|
+
function Bo(e) {
|
|
3117
3139
|
let t = -1;
|
|
3118
3140
|
for (; ++t < e.length; ) {
|
|
3119
3141
|
const n = e[t][1];
|
|
@@ -3185,7 +3207,7 @@ function Ho(e, t, n) {
|
|
|
3185
3207
|
}
|
|
3186
3208
|
function u(h) {
|
|
3187
3209
|
return h === 40 ? e.attempt(
|
|
3188
|
-
|
|
3210
|
+
Ro,
|
|
3189
3211
|
f,
|
|
3190
3212
|
l ? f : c
|
|
3191
3213
|
)(h) : h === 91 ? e.attempt(
|
|
@@ -3196,7 +3218,7 @@ function Ho(e, t, n) {
|
|
|
3196
3218
|
}
|
|
3197
3219
|
function s(h) {
|
|
3198
3220
|
return e.attempt(
|
|
3199
|
-
|
|
3221
|
+
No,
|
|
3200
3222
|
f,
|
|
3201
3223
|
c
|
|
3202
3224
|
)(h);
|
|
@@ -3208,13 +3230,13 @@ function Ho(e, t, n) {
|
|
|
3208
3230
|
return o._balanced = !0, n(h);
|
|
3209
3231
|
}
|
|
3210
3232
|
}
|
|
3211
|
-
function
|
|
3233
|
+
function $o(e, t, n) {
|
|
3212
3234
|
return r;
|
|
3213
3235
|
function r(c) {
|
|
3214
3236
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
|
3215
3237
|
}
|
|
3216
3238
|
function i(c) {
|
|
3217
|
-
return
|
|
3239
|
+
return $(c) ? je(e, o)(c) : o(c);
|
|
3218
3240
|
}
|
|
3219
3241
|
function o(c) {
|
|
3220
3242
|
return c === 41 ? f(c) : Lr(
|
|
@@ -3230,13 +3252,13 @@ function Uo(e, t, n) {
|
|
|
3230
3252
|
)(c);
|
|
3231
3253
|
}
|
|
3232
3254
|
function l(c) {
|
|
3233
|
-
return
|
|
3255
|
+
return $(c) ? je(e, u)(c) : f(c);
|
|
3234
3256
|
}
|
|
3235
3257
|
function a(c) {
|
|
3236
3258
|
return n(c);
|
|
3237
3259
|
}
|
|
3238
3260
|
function u(c) {
|
|
3239
|
-
return c === 34 || c === 39 || c === 40 ?
|
|
3261
|
+
return c === 34 || c === 39 || c === 40 ? vr(
|
|
3240
3262
|
e,
|
|
3241
3263
|
s,
|
|
3242
3264
|
n,
|
|
@@ -3246,13 +3268,13 @@ function Uo(e, t, n) {
|
|
|
3246
3268
|
)(c) : f(c);
|
|
3247
3269
|
}
|
|
3248
3270
|
function s(c) {
|
|
3249
|
-
return
|
|
3271
|
+
return $(c) ? je(e, f)(c) : f(c);
|
|
3250
3272
|
}
|
|
3251
3273
|
function f(c) {
|
|
3252
3274
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
|
|
3253
3275
|
}
|
|
3254
3276
|
}
|
|
3255
|
-
function
|
|
3277
|
+
function Uo(e, t, n) {
|
|
3256
3278
|
const r = this;
|
|
3257
3279
|
return i;
|
|
3258
3280
|
function i(a) {
|
|
@@ -3543,8 +3565,8 @@ function aa(e) {
|
|
|
3543
3565
|
}
|
|
3544
3566
|
const ua = {
|
|
3545
3567
|
resolveAll: Or()
|
|
3546
|
-
}, sa =
|
|
3547
|
-
function
|
|
3568
|
+
}, sa = Dr("string"), ca = Dr("text");
|
|
3569
|
+
function Dr(e) {
|
|
3548
3570
|
return {
|
|
3549
3571
|
tokenize: t,
|
|
3550
3572
|
resolveAll: Or(
|
|
@@ -3652,9 +3674,9 @@ function pa(e, t, n) {
|
|
|
3652
3674
|
consume: A,
|
|
3653
3675
|
enter: E,
|
|
3654
3676
|
exit: z,
|
|
3655
|
-
attempt:
|
|
3656
|
-
check:
|
|
3657
|
-
interrupt:
|
|
3677
|
+
attempt: _(v),
|
|
3678
|
+
check: _(w),
|
|
3679
|
+
interrupt: _(w, {
|
|
3658
3680
|
interrupt: !0
|
|
3659
3681
|
})
|
|
3660
3682
|
}, s = {
|
|
@@ -3681,13 +3703,13 @@ function pa(e, t, n) {
|
|
|
3681
3703
|
return ha(l, T);
|
|
3682
3704
|
}
|
|
3683
3705
|
function d() {
|
|
3684
|
-
const { line: T, column: P, offset: H, _index: V, _bufferIndex:
|
|
3706
|
+
const { line: T, column: P, offset: H, _index: V, _bufferIndex: N } = r;
|
|
3685
3707
|
return {
|
|
3686
3708
|
line: T,
|
|
3687
3709
|
column: P,
|
|
3688
3710
|
offset: H,
|
|
3689
3711
|
_index: V,
|
|
3690
|
-
_bufferIndex:
|
|
3712
|
+
_bufferIndex: N
|
|
3691
3713
|
};
|
|
3692
3714
|
}
|
|
3693
3715
|
function k(T) {
|
|
@@ -3718,23 +3740,23 @@ function pa(e, t, n) {
|
|
|
3718
3740
|
const P = a.pop();
|
|
3719
3741
|
return P.end = d(), s.events.push(["exit", P, s]), P;
|
|
3720
3742
|
}
|
|
3721
|
-
function
|
|
3743
|
+
function v(T, P) {
|
|
3722
3744
|
q(T, P.from);
|
|
3723
3745
|
}
|
|
3724
3746
|
function w(T, P) {
|
|
3725
3747
|
P.restore();
|
|
3726
3748
|
}
|
|
3727
|
-
function
|
|
3749
|
+
function _(T, P) {
|
|
3728
3750
|
return H;
|
|
3729
|
-
function H(V,
|
|
3751
|
+
function H(V, N, X) {
|
|
3730
3752
|
let Q, oe, he, m;
|
|
3731
3753
|
return Array.isArray(V) ? me(V) : "tokenize" in V ? (
|
|
3732
3754
|
// @ts-expect-error Looks like a construct.
|
|
3733
3755
|
me([V])
|
|
3734
3756
|
) : ae(V);
|
|
3735
3757
|
function ae(G) {
|
|
3736
|
-
return
|
|
3737
|
-
function
|
|
3758
|
+
return _e;
|
|
3759
|
+
function _e(ke) {
|
|
3738
3760
|
const Pe = ke !== null && G[ke], Se = ke !== null && G.null, sn = [
|
|
3739
3761
|
// To do: add more extension tests.
|
|
3740
3762
|
/* c8 ignore next 2 */
|
|
@@ -3748,9 +3770,9 @@ function pa(e, t, n) {
|
|
|
3748
3770
|
return Q = G, oe = 0, G.length === 0 ? X : g(G[oe]);
|
|
3749
3771
|
}
|
|
3750
3772
|
function g(G) {
|
|
3751
|
-
return
|
|
3752
|
-
function
|
|
3753
|
-
return m =
|
|
3773
|
+
return _e;
|
|
3774
|
+
function _e(ke) {
|
|
3775
|
+
return m = B(), he = G, G.partial || (s.currentConstruct = G), G.name && s.parser.constructs.disable.null.includes(G.name) ? we() : G.tokenize.call(
|
|
3754
3776
|
// If we do have fields, create an object w/ `context` as its
|
|
3755
3777
|
// prototype.
|
|
3756
3778
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -3762,7 +3784,7 @@ function pa(e, t, n) {
|
|
|
3762
3784
|
}
|
|
3763
3785
|
}
|
|
3764
3786
|
function ue(G) {
|
|
3765
|
-
return T(he, m),
|
|
3787
|
+
return T(he, m), N;
|
|
3766
3788
|
}
|
|
3767
3789
|
function we(G) {
|
|
3768
3790
|
return m.restore(), ++oe < Q.length ? g(Q[oe]) : X;
|
|
@@ -3777,14 +3799,14 @@ function pa(e, t, n) {
|
|
|
3777
3799
|
T.resolve(s.events.slice(P), s)
|
|
3778
3800
|
), T.resolveTo && (s.events = T.resolveTo(s.events, s));
|
|
3779
3801
|
}
|
|
3780
|
-
function
|
|
3781
|
-
const T = d(), P = s.previous, H = s.currentConstruct, V = s.events.length,
|
|
3802
|
+
function B() {
|
|
3803
|
+
const T = d(), P = s.previous, H = s.currentConstruct, V = s.events.length, N = Array.from(a);
|
|
3782
3804
|
return {
|
|
3783
3805
|
restore: X,
|
|
3784
3806
|
from: V
|
|
3785
3807
|
};
|
|
3786
3808
|
function X() {
|
|
3787
|
-
r = T, s.previous = P, s.currentConstruct = H, s.events.length = V, a =
|
|
3809
|
+
r = T, s.previous = P, s.currentConstruct = H, s.events.length = V, a = N, y();
|
|
3788
3810
|
}
|
|
3789
3811
|
}
|
|
3790
3812
|
function y() {
|
|
@@ -3885,15 +3907,15 @@ const ga = {
|
|
|
3885
3907
|
[-3]: mn,
|
|
3886
3908
|
33: Vo,
|
|
3887
3909
|
38: Tr,
|
|
3888
|
-
42:
|
|
3910
|
+
42: vn,
|
|
3889
3911
|
60: [Ql, Fo],
|
|
3890
3912
|
91: Qo,
|
|
3891
3913
|
92: [wo, Ir],
|
|
3892
3914
|
93: Vn,
|
|
3893
|
-
95:
|
|
3915
|
+
95: vn,
|
|
3894
3916
|
96: oo
|
|
3895
3917
|
}, wa = {
|
|
3896
|
-
null: [
|
|
3918
|
+
null: [vn, ua]
|
|
3897
3919
|
}, Sa = {
|
|
3898
3920
|
null: [42, 95]
|
|
3899
3921
|
}, Ca = {
|
|
@@ -3908,7 +3930,7 @@ function Aa(e) {
|
|
|
3908
3930
|
lazy: {},
|
|
3909
3931
|
constructs: n,
|
|
3910
3932
|
content: i(jl),
|
|
3911
|
-
document: i(
|
|
3933
|
+
document: i($l),
|
|
3912
3934
|
flow: i(oa),
|
|
3913
3935
|
string: i(sa),
|
|
3914
3936
|
text: i(ca)
|
|
@@ -3976,33 +3998,33 @@ function za(e, t, n) {
|
|
|
3976
3998
|
return qn(n) || e;
|
|
3977
3999
|
}
|
|
3978
4000
|
const Fr = {}.hasOwnProperty;
|
|
3979
|
-
function
|
|
3980
|
-
return typeof t != "string" && (n = t, t = void 0),
|
|
4001
|
+
function va(e, t, n) {
|
|
4002
|
+
return typeof t != "string" && (n = t, t = void 0), Da(n)(
|
|
3981
4003
|
Ia(
|
|
3982
4004
|
Aa(n).document().write(Ta()(e, t, !0))
|
|
3983
4005
|
)
|
|
3984
4006
|
);
|
|
3985
4007
|
}
|
|
3986
|
-
function
|
|
4008
|
+
function Da(e) {
|
|
3987
4009
|
const t = {
|
|
3988
4010
|
transforms: [],
|
|
3989
4011
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
3990
4012
|
enter: {
|
|
3991
4013
|
autolink: o(it),
|
|
3992
|
-
autolinkProtocol:
|
|
3993
|
-
autolinkEmail:
|
|
4014
|
+
autolinkProtocol: B,
|
|
4015
|
+
autolinkEmail: B,
|
|
3994
4016
|
atxHeading: o(nt),
|
|
3995
4017
|
blockQuote: o(Pe),
|
|
3996
|
-
characterEscape:
|
|
3997
|
-
characterReference:
|
|
4018
|
+
characterEscape: B,
|
|
4019
|
+
characterReference: B,
|
|
3998
4020
|
codeFenced: o(Se),
|
|
3999
4021
|
codeFencedFenceInfo: l,
|
|
4000
4022
|
codeFencedFenceMeta: l,
|
|
4001
4023
|
codeIndented: o(Se, l),
|
|
4002
4024
|
codeText: o(sn, l),
|
|
4003
|
-
codeTextData:
|
|
4004
|
-
data:
|
|
4005
|
-
codeFlowValue:
|
|
4025
|
+
codeTextData: B,
|
|
4026
|
+
data: B,
|
|
4027
|
+
codeFlowValue: B,
|
|
4006
4028
|
definition: o(hi),
|
|
4007
4029
|
definitionDestinationString: l,
|
|
4008
4030
|
definitionLabelString: l,
|
|
@@ -4011,9 +4033,9 @@ function va(e) {
|
|
|
4011
4033
|
hardBreakEscape: o(tt),
|
|
4012
4034
|
hardBreakTrailing: o(tt),
|
|
4013
4035
|
htmlFlow: o(rt, l),
|
|
4014
|
-
htmlFlowData:
|
|
4036
|
+
htmlFlowData: B,
|
|
4015
4037
|
htmlText: o(rt, l),
|
|
4016
|
-
htmlTextData:
|
|
4038
|
+
htmlTextData: B,
|
|
4017
4039
|
image: o(gi),
|
|
4018
4040
|
label: l,
|
|
4019
4041
|
link: o(it),
|
|
@@ -4032,10 +4054,10 @@ function va(e) {
|
|
|
4032
4054
|
},
|
|
4033
4055
|
exit: {
|
|
4034
4056
|
atxHeading: u(),
|
|
4035
|
-
atxHeadingSequence:
|
|
4057
|
+
atxHeadingSequence: v,
|
|
4036
4058
|
autolink: u(),
|
|
4037
4059
|
autolinkEmail: ke,
|
|
4038
|
-
autolinkProtocol:
|
|
4060
|
+
autolinkProtocol: _e,
|
|
4039
4061
|
blockQuote: u(),
|
|
4040
4062
|
characterEscapeValue: y,
|
|
4041
4063
|
characterReferenceMarkerHexadecimal: we,
|
|
@@ -4047,7 +4069,7 @@ function va(e) {
|
|
|
4047
4069
|
codeFencedFenceMeta: d,
|
|
4048
4070
|
codeFlowValue: y,
|
|
4049
4071
|
codeIndented: u(x),
|
|
4050
|
-
codeText: u(
|
|
4072
|
+
codeText: u(N),
|
|
4051
4073
|
codeTextData: y,
|
|
4052
4074
|
data: y,
|
|
4053
4075
|
definition: u(),
|
|
@@ -4075,13 +4097,13 @@ function va(e) {
|
|
|
4075
4097
|
resourceTitleString: ae,
|
|
4076
4098
|
resource: me,
|
|
4077
4099
|
setextHeading: u(q),
|
|
4078
|
-
setextHeadingLineSequence:
|
|
4100
|
+
setextHeadingLineSequence: _,
|
|
4079
4101
|
setextHeadingText: w,
|
|
4080
4102
|
strong: u(),
|
|
4081
4103
|
thematicBreak: u()
|
|
4082
4104
|
}
|
|
4083
4105
|
};
|
|
4084
|
-
|
|
4106
|
+
_r(t, (e || {}).mdastExtensions || []);
|
|
4085
4107
|
const n = {};
|
|
4086
4108
|
return r;
|
|
4087
4109
|
function r(b) {
|
|
@@ -4089,7 +4111,7 @@ function va(e) {
|
|
|
4089
4111
|
type: "root",
|
|
4090
4112
|
children: []
|
|
4091
4113
|
};
|
|
4092
|
-
const
|
|
4114
|
+
const D = {
|
|
4093
4115
|
stack: [I],
|
|
4094
4116
|
tokenStack: [],
|
|
4095
4117
|
config: t,
|
|
@@ -4098,14 +4120,14 @@ function va(e) {
|
|
|
4098
4120
|
buffer: l,
|
|
4099
4121
|
resume: f,
|
|
4100
4122
|
data: n
|
|
4101
|
-
},
|
|
4123
|
+
}, R = [];
|
|
4102
4124
|
let j = -1;
|
|
4103
4125
|
for (; ++j < b.length; )
|
|
4104
4126
|
if (b[j][1].type === "listOrdered" || b[j][1].type === "listUnordered")
|
|
4105
4127
|
if (b[j][0] === "enter")
|
|
4106
|
-
|
|
4128
|
+
R.push(j);
|
|
4107
4129
|
else {
|
|
4108
|
-
const se =
|
|
4130
|
+
const se = R.pop();
|
|
4109
4131
|
j = i(b, se, j);
|
|
4110
4132
|
}
|
|
4111
4133
|
for (j = -1; ++j < b.length; ) {
|
|
@@ -4115,14 +4137,14 @@ function va(e) {
|
|
|
4115
4137
|
{
|
|
4116
4138
|
sliceSerialize: b[j][2].sliceSerialize
|
|
4117
4139
|
},
|
|
4118
|
-
|
|
4140
|
+
D
|
|
4119
4141
|
),
|
|
4120
4142
|
b[j][1]
|
|
4121
4143
|
);
|
|
4122
4144
|
}
|
|
4123
|
-
if (
|
|
4124
|
-
const se =
|
|
4125
|
-
(se[1] ||
|
|
4145
|
+
if (D.tokenStack.length > 0) {
|
|
4146
|
+
const se = D.tokenStack[D.tokenStack.length - 1];
|
|
4147
|
+
(se[1] || vt).call(D, void 0, se[0]);
|
|
4126
4148
|
}
|
|
4127
4149
|
for (I.position = {
|
|
4128
4150
|
start: xe(
|
|
@@ -4143,10 +4165,10 @@ function va(e) {
|
|
|
4143
4165
|
I = t.transforms[j](I) || I;
|
|
4144
4166
|
return I;
|
|
4145
4167
|
}
|
|
4146
|
-
function i(b, I,
|
|
4147
|
-
let
|
|
4148
|
-
for (; ++
|
|
4149
|
-
const ee = b[
|
|
4168
|
+
function i(b, I, D) {
|
|
4169
|
+
let R = I - 1, j = -1, se = !1, Ce, ge, Re, Me;
|
|
4170
|
+
for (; ++R <= D; ) {
|
|
4171
|
+
const ee = b[R];
|
|
4150
4172
|
switch (ee[1].type) {
|
|
4151
4173
|
case "listUnordered":
|
|
4152
4174
|
case "listOrdered":
|
|
@@ -4155,7 +4177,7 @@ function va(e) {
|
|
|
4155
4177
|
break;
|
|
4156
4178
|
}
|
|
4157
4179
|
case "lineEndingBlank": {
|
|
4158
|
-
ee[0] === "enter" && (Ce && !Me && !j && !
|
|
4180
|
+
ee[0] === "enter" && (Ce && !Me && !j && !Re && (Re = R), Me = void 0);
|
|
4159
4181
|
break;
|
|
4160
4182
|
}
|
|
4161
4183
|
case "linePrefix":
|
|
@@ -4169,7 +4191,7 @@ function va(e) {
|
|
|
4169
4191
|
}
|
|
4170
4192
|
if (!j && ee[0] === "enter" && ee[1].type === "listItemPrefix" || j === -1 && ee[0] === "exit" && (ee[1].type === "listUnordered" || ee[1].type === "listOrdered")) {
|
|
4171
4193
|
if (Ce) {
|
|
4172
|
-
let Le =
|
|
4194
|
+
let Le = R;
|
|
4173
4195
|
for (ge = void 0; Le--; ) {
|
|
4174
4196
|
const de = b[Le];
|
|
4175
4197
|
if (de[1].type === "lineEnding" || de[1].type === "lineEndingBlank") {
|
|
@@ -4177,10 +4199,10 @@ function va(e) {
|
|
|
4177
4199
|
ge && (b[ge][1].type = "lineEndingBlank", se = !0), de[1].type = "lineEnding", ge = Le;
|
|
4178
4200
|
} else if (!(de[1].type === "linePrefix" || de[1].type === "blockQuotePrefix" || de[1].type === "blockQuotePrefixWhitespace" || de[1].type === "blockQuoteMarker" || de[1].type === "listItemIndent")) break;
|
|
4179
4201
|
}
|
|
4180
|
-
|
|
4202
|
+
Re && (!ge || Re < ge) && (Ce._spread = !0), Ce.end = Object.assign(
|
|
4181
4203
|
{},
|
|
4182
4204
|
ge ? b[ge][1].start : ee[1].end
|
|
4183
|
-
), b.splice(ge ||
|
|
4205
|
+
), b.splice(ge || R, 0, ["exit", Ce, ee[2]]), R++, D++;
|
|
4184
4206
|
}
|
|
4185
4207
|
if (ee[1].type === "listItemPrefix") {
|
|
4186
4208
|
const Le = {
|
|
@@ -4190,16 +4212,16 @@ function va(e) {
|
|
|
4190
4212
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4191
4213
|
end: void 0
|
|
4192
4214
|
};
|
|
4193
|
-
Ce = Le, b.splice(
|
|
4215
|
+
Ce = Le, b.splice(R, 0, ["enter", Le, ee[2]]), R++, D++, Re = void 0, Me = !0;
|
|
4194
4216
|
}
|
|
4195
4217
|
}
|
|
4196
4218
|
}
|
|
4197
|
-
return b[I][1]._spread = se,
|
|
4219
|
+
return b[I][1]._spread = se, D;
|
|
4198
4220
|
}
|
|
4199
4221
|
function o(b, I) {
|
|
4200
|
-
return
|
|
4201
|
-
function
|
|
4202
|
-
a.call(this, b(
|
|
4222
|
+
return D;
|
|
4223
|
+
function D(R) {
|
|
4224
|
+
a.call(this, b(R), R), I && I.call(this, R);
|
|
4203
4225
|
}
|
|
4204
4226
|
}
|
|
4205
4227
|
function l() {
|
|
@@ -4208,8 +4230,8 @@ function va(e) {
|
|
|
4208
4230
|
children: []
|
|
4209
4231
|
});
|
|
4210
4232
|
}
|
|
4211
|
-
function a(b, I,
|
|
4212
|
-
this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([I,
|
|
4233
|
+
function a(b, I, D) {
|
|
4234
|
+
this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([I, D]), b.position = {
|
|
4213
4235
|
start: xe(I.start),
|
|
4214
4236
|
// @ts-expect-error: `end` will be patched later.
|
|
4215
4237
|
end: void 0
|
|
@@ -4217,24 +4239,24 @@ function va(e) {
|
|
|
4217
4239
|
}
|
|
4218
4240
|
function u(b) {
|
|
4219
4241
|
return I;
|
|
4220
|
-
function I(
|
|
4221
|
-
b && b.call(this,
|
|
4242
|
+
function I(D) {
|
|
4243
|
+
b && b.call(this, D), s.call(this, D);
|
|
4222
4244
|
}
|
|
4223
4245
|
}
|
|
4224
4246
|
function s(b, I) {
|
|
4225
|
-
const
|
|
4226
|
-
if (
|
|
4227
|
-
|
|
4247
|
+
const D = this.stack.pop(), R = this.tokenStack.pop();
|
|
4248
|
+
if (R)
|
|
4249
|
+
R[0].type !== b.type && (I ? I.call(this, b, R[0]) : (R[1] || vt).call(this, b, R[0]));
|
|
4228
4250
|
else throw new Error(
|
|
4229
|
-
"Cannot close `" + b.type + "` (" +
|
|
4251
|
+
"Cannot close `" + b.type + "` (" + Be({
|
|
4230
4252
|
start: b.start,
|
|
4231
4253
|
end: b.end
|
|
4232
4254
|
}) + "): it’s not open"
|
|
4233
4255
|
);
|
|
4234
|
-
|
|
4256
|
+
D.position.end = xe(b.end);
|
|
4235
4257
|
}
|
|
4236
4258
|
function f() {
|
|
4237
|
-
return
|
|
4259
|
+
return Un(this.stack.pop());
|
|
4238
4260
|
}
|
|
4239
4261
|
function c() {
|
|
4240
4262
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -4265,8 +4287,8 @@ function va(e) {
|
|
|
4265
4287
|
I.value = b.replace(/(\r?\n|\r)$/g, "");
|
|
4266
4288
|
}
|
|
4267
4289
|
function A(b) {
|
|
4268
|
-
const I = this.resume(),
|
|
4269
|
-
|
|
4290
|
+
const I = this.resume(), D = this.stack[this.stack.length - 1];
|
|
4291
|
+
D.label = I, D.identifier = ce(
|
|
4270
4292
|
this.sliceSerialize(b)
|
|
4271
4293
|
).toLowerCase();
|
|
4272
4294
|
}
|
|
@@ -4278,31 +4300,31 @@ function va(e) {
|
|
|
4278
4300
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4279
4301
|
I.url = b;
|
|
4280
4302
|
}
|
|
4281
|
-
function
|
|
4303
|
+
function v(b) {
|
|
4282
4304
|
const I = this.stack[this.stack.length - 1];
|
|
4283
4305
|
if (!I.depth) {
|
|
4284
|
-
const
|
|
4285
|
-
I.depth =
|
|
4306
|
+
const D = this.sliceSerialize(b).length;
|
|
4307
|
+
I.depth = D;
|
|
4286
4308
|
}
|
|
4287
4309
|
}
|
|
4288
4310
|
function w() {
|
|
4289
4311
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
4290
4312
|
}
|
|
4291
|
-
function
|
|
4313
|
+
function _(b) {
|
|
4292
4314
|
const I = this.stack[this.stack.length - 1];
|
|
4293
4315
|
I.depth = this.sliceSerialize(b).codePointAt(0) === 61 ? 1 : 2;
|
|
4294
4316
|
}
|
|
4295
4317
|
function q() {
|
|
4296
4318
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
4297
4319
|
}
|
|
4298
|
-
function
|
|
4299
|
-
const
|
|
4300
|
-
let
|
|
4301
|
-
(!
|
|
4320
|
+
function B(b) {
|
|
4321
|
+
const D = this.stack[this.stack.length - 1].children;
|
|
4322
|
+
let R = D[D.length - 1];
|
|
4323
|
+
(!R || R.type !== "text") && (R = xi(), R.position = {
|
|
4302
4324
|
start: xe(b.start),
|
|
4303
4325
|
// @ts-expect-error: we’ll add `end` later.
|
|
4304
4326
|
end: void 0
|
|
4305
|
-
},
|
|
4327
|
+
}, D.push(R)), this.stack.push(R);
|
|
4306
4328
|
}
|
|
4307
4329
|
function y(b) {
|
|
4308
4330
|
const I = this.stack.pop();
|
|
@@ -4311,11 +4333,11 @@ function va(e) {
|
|
|
4311
4333
|
function T(b) {
|
|
4312
4334
|
const I = this.stack[this.stack.length - 1];
|
|
4313
4335
|
if (this.data.atHardBreak) {
|
|
4314
|
-
const
|
|
4315
|
-
|
|
4336
|
+
const D = I.children[I.children.length - 1];
|
|
4337
|
+
D.position.end = xe(b.end), this.data.atHardBreak = void 0;
|
|
4316
4338
|
return;
|
|
4317
4339
|
}
|
|
4318
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(I.type) && (
|
|
4340
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(I.type) && (B.call(this, b), y.call(this, b));
|
|
4319
4341
|
}
|
|
4320
4342
|
function P() {
|
|
4321
4343
|
this.data.atHardBreak = !0;
|
|
@@ -4328,7 +4350,7 @@ function va(e) {
|
|
|
4328
4350
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4329
4351
|
I.value = b;
|
|
4330
4352
|
}
|
|
4331
|
-
function
|
|
4353
|
+
function N() {
|
|
4332
4354
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4333
4355
|
I.value = b;
|
|
4334
4356
|
}
|
|
@@ -4351,16 +4373,16 @@ function va(e) {
|
|
|
4351
4373
|
this.data.referenceType = void 0;
|
|
4352
4374
|
}
|
|
4353
4375
|
function oe(b) {
|
|
4354
|
-
const I = this.sliceSerialize(b),
|
|
4355
|
-
|
|
4376
|
+
const I = this.sliceSerialize(b), D = this.stack[this.stack.length - 2];
|
|
4377
|
+
D.label = La(I), D.identifier = ce(I).toLowerCase();
|
|
4356
4378
|
}
|
|
4357
4379
|
function he() {
|
|
4358
|
-
const b = this.stack[this.stack.length - 1], I = this.resume(),
|
|
4359
|
-
if (this.data.inReference = !0,
|
|
4360
|
-
const
|
|
4361
|
-
|
|
4380
|
+
const b = this.stack[this.stack.length - 1], I = this.resume(), D = this.stack[this.stack.length - 1];
|
|
4381
|
+
if (this.data.inReference = !0, D.type === "link") {
|
|
4382
|
+
const R = b.children;
|
|
4383
|
+
D.children = R;
|
|
4362
4384
|
} else
|
|
4363
|
-
|
|
4385
|
+
D.alt = I;
|
|
4364
4386
|
}
|
|
4365
4387
|
function m() {
|
|
4366
4388
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
@@ -4377,8 +4399,8 @@ function va(e) {
|
|
|
4377
4399
|
this.data.referenceType = "collapsed";
|
|
4378
4400
|
}
|
|
4379
4401
|
function ue(b) {
|
|
4380
|
-
const I = this.resume(),
|
|
4381
|
-
|
|
4402
|
+
const I = this.resume(), D = this.stack[this.stack.length - 1];
|
|
4403
|
+
D.label = I, D.identifier = ce(
|
|
4382
4404
|
this.sliceSerialize(b)
|
|
4383
4405
|
).toLowerCase(), this.data.referenceType = "full";
|
|
4384
4406
|
}
|
|
@@ -4386,16 +4408,16 @@ function va(e) {
|
|
|
4386
4408
|
this.data.characterReferenceType = b.type;
|
|
4387
4409
|
}
|
|
4388
4410
|
function G(b) {
|
|
4389
|
-
const I = this.sliceSerialize(b),
|
|
4390
|
-
let
|
|
4391
|
-
|
|
4411
|
+
const I = this.sliceSerialize(b), D = this.data.characterReferenceType;
|
|
4412
|
+
let R;
|
|
4413
|
+
D ? (R = Er(
|
|
4392
4414
|
I,
|
|
4393
|
-
|
|
4394
|
-
), this.data.characterReferenceType = void 0) :
|
|
4415
|
+
D === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
4416
|
+
), this.data.characterReferenceType = void 0) : R = qn(I);
|
|
4395
4417
|
const j = this.stack.pop();
|
|
4396
|
-
j.value +=
|
|
4418
|
+
j.value += R, j.position.end = xe(b.end);
|
|
4397
4419
|
}
|
|
4398
|
-
function
|
|
4420
|
+
function _e(b) {
|
|
4399
4421
|
y.call(this, b);
|
|
4400
4422
|
const I = this.stack[this.stack.length - 1];
|
|
4401
4423
|
I.url = this.sliceSerialize(b);
|
|
@@ -4523,11 +4545,11 @@ function xe(e) {
|
|
|
4523
4545
|
offset: e.offset
|
|
4524
4546
|
};
|
|
4525
4547
|
}
|
|
4526
|
-
function
|
|
4548
|
+
function _r(e, t) {
|
|
4527
4549
|
let n = -1;
|
|
4528
4550
|
for (; ++n < t.length; ) {
|
|
4529
4551
|
const r = t[n];
|
|
4530
|
-
Array.isArray(r) ?
|
|
4552
|
+
Array.isArray(r) ? _r(e, r) : Oa(e, r);
|
|
4531
4553
|
}
|
|
4532
4554
|
}
|
|
4533
4555
|
function Oa(e, t) {
|
|
@@ -4553,17 +4575,17 @@ function Oa(e, t) {
|
|
|
4553
4575
|
}
|
|
4554
4576
|
}
|
|
4555
4577
|
}
|
|
4556
|
-
function
|
|
4578
|
+
function vt(e, t) {
|
|
4557
4579
|
throw e ? new Error(
|
|
4558
|
-
"Cannot close `" + e.type + "` (" +
|
|
4580
|
+
"Cannot close `" + e.type + "` (" + Be({
|
|
4559
4581
|
start: e.start,
|
|
4560
4582
|
end: e.end
|
|
4561
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
4583
|
+
}) + "): a different token (`" + t.type + "`, " + Be({
|
|
4562
4584
|
start: t.start,
|
|
4563
4585
|
end: t.end
|
|
4564
4586
|
}) + ") is open"
|
|
4565
4587
|
) : new Error(
|
|
4566
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
|
4588
|
+
"Cannot close document, a token (`" + t.type + "`, " + Be({
|
|
4567
4589
|
start: t.start,
|
|
4568
4590
|
end: t.end
|
|
4569
4591
|
}) + ") is still open"
|
|
@@ -4573,7 +4595,7 @@ function Fa(e) {
|
|
|
4573
4595
|
const t = this;
|
|
4574
4596
|
t.parser = n;
|
|
4575
4597
|
function n(r) {
|
|
4576
|
-
return
|
|
4598
|
+
return va(r, {
|
|
4577
4599
|
...t.data("settings"),
|
|
4578
4600
|
...e,
|
|
4579
4601
|
// Note: these options are not in the readme.
|
|
@@ -4584,7 +4606,7 @@ function Fa(e) {
|
|
|
4584
4606
|
});
|
|
4585
4607
|
}
|
|
4586
4608
|
}
|
|
4587
|
-
function
|
|
4609
|
+
function _a(e, t) {
|
|
4588
4610
|
const n = {
|
|
4589
4611
|
type: "element",
|
|
4590
4612
|
tagName: "blockquote",
|
|
@@ -4593,7 +4615,7 @@ function Ra(e, t) {
|
|
|
4593
4615
|
};
|
|
4594
4616
|
return e.patch(t, n), e.applyData(t, n);
|
|
4595
4617
|
}
|
|
4596
|
-
function
|
|
4618
|
+
function Ra(e, t) {
|
|
4597
4619
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4598
4620
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
4599
4621
|
` }];
|
|
@@ -4610,7 +4632,7 @@ function Ma(e, t) {
|
|
|
4610
4632
|
};
|
|
4611
4633
|
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;
|
|
4612
4634
|
}
|
|
4613
|
-
function
|
|
4635
|
+
function Na(e, t) {
|
|
4614
4636
|
const n = {
|
|
4615
4637
|
type: "element",
|
|
4616
4638
|
tagName: "del",
|
|
@@ -4619,7 +4641,7 @@ function Ba(e, t) {
|
|
|
4619
4641
|
};
|
|
4620
4642
|
return e.patch(t, n), e.applyData(t, n);
|
|
4621
4643
|
}
|
|
4622
|
-
function
|
|
4644
|
+
function Ba(e, t) {
|
|
4623
4645
|
const n = {
|
|
4624
4646
|
type: "element",
|
|
4625
4647
|
tagName: "em",
|
|
@@ -4661,13 +4683,13 @@ function Ha(e, t) {
|
|
|
4661
4683
|
};
|
|
4662
4684
|
return e.patch(t, n), e.applyData(t, n);
|
|
4663
4685
|
}
|
|
4664
|
-
function
|
|
4686
|
+
function $a(e, t) {
|
|
4665
4687
|
if (e.options.allowDangerousHtml) {
|
|
4666
4688
|
const n = { type: "raw", value: t.value };
|
|
4667
4689
|
return e.patch(t, n), e.applyData(t, n);
|
|
4668
4690
|
}
|
|
4669
4691
|
}
|
|
4670
|
-
function
|
|
4692
|
+
function Rr(e, t) {
|
|
4671
4693
|
const n = t.referenceType;
|
|
4672
4694
|
let r = "]";
|
|
4673
4695
|
if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference")
|
|
@@ -4677,10 +4699,10 @@ function _r(e, t) {
|
|
|
4677
4699
|
const l = i[i.length - 1];
|
|
4678
4700
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
|
4679
4701
|
}
|
|
4680
|
-
function
|
|
4702
|
+
function Ua(e, t) {
|
|
4681
4703
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4682
4704
|
if (!r)
|
|
4683
|
-
return
|
|
4705
|
+
return Rr(e, t);
|
|
4684
4706
|
const i = { src: Fe(r.url || ""), alt: t.alt };
|
|
4685
4707
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4686
4708
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
@@ -4706,7 +4728,7 @@ function Va(e, t) {
|
|
|
4706
4728
|
function Wa(e, t) {
|
|
4707
4729
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4708
4730
|
if (!r)
|
|
4709
|
-
return
|
|
4731
|
+
return Rr(e, t);
|
|
4710
4732
|
const i = { href: Fe(r.url || "") };
|
|
4711
4733
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4712
4734
|
const o = {
|
|
@@ -4824,7 +4846,7 @@ function eu(e, t) {
|
|
|
4824
4846
|
tagName: "tbody",
|
|
4825
4847
|
properties: {},
|
|
4826
4848
|
children: e.wrap(n, !0)
|
|
4827
|
-
}, a =
|
|
4849
|
+
}, a = Bn(t.children[1]), u = dr(t.children[t.children.length - 1]);
|
|
4828
4850
|
a && u && (l.position = { start: a, end: u }), i.push(l);
|
|
4829
4851
|
}
|
|
4830
4852
|
const o = {
|
|
@@ -4863,7 +4885,7 @@ function tu(e, t) {
|
|
|
4863
4885
|
};
|
|
4864
4886
|
return e.patch(t, n), e.applyData(t, n);
|
|
4865
4887
|
}
|
|
4866
|
-
const
|
|
4888
|
+
const Dt = 9, Ot = 32;
|
|
4867
4889
|
function ru(e) {
|
|
4868
4890
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4869
4891
|
let r = n.exec(t), i = 0;
|
|
@@ -4879,12 +4901,12 @@ function Ft(e, t, n) {
|
|
|
4879
4901
|
let r = 0, i = e.length;
|
|
4880
4902
|
if (t) {
|
|
4881
4903
|
let o = e.codePointAt(r);
|
|
4882
|
-
for (; o ===
|
|
4904
|
+
for (; o === Dt || o === Ot; )
|
|
4883
4905
|
r++, o = e.codePointAt(r);
|
|
4884
4906
|
}
|
|
4885
4907
|
if (n) {
|
|
4886
4908
|
let o = e.codePointAt(i - 1);
|
|
4887
|
-
for (; o ===
|
|
4909
|
+
for (; o === Dt || o === Ot; )
|
|
4888
4910
|
i--, o = e.codePointAt(i - 1);
|
|
4889
4911
|
}
|
|
4890
4912
|
return i > r ? e.slice(r, i) : "";
|
|
@@ -4903,15 +4925,15 @@ function lu(e, t) {
|
|
|
4903
4925
|
return e.patch(t, n), e.applyData(t, n);
|
|
4904
4926
|
}
|
|
4905
4927
|
const ou = {
|
|
4906
|
-
blockquote:
|
|
4907
|
-
break:
|
|
4928
|
+
blockquote: _a,
|
|
4929
|
+
break: Ra,
|
|
4908
4930
|
code: Ma,
|
|
4909
|
-
delete:
|
|
4910
|
-
emphasis:
|
|
4931
|
+
delete: Na,
|
|
4932
|
+
emphasis: Ba,
|
|
4911
4933
|
footnoteReference: ja,
|
|
4912
4934
|
heading: Ha,
|
|
4913
|
-
html:
|
|
4914
|
-
imageReference:
|
|
4935
|
+
html: $a,
|
|
4936
|
+
imageReference: Ua,
|
|
4915
4937
|
image: qa,
|
|
4916
4938
|
inlineCode: Va,
|
|
4917
4939
|
linkReference: Wa,
|
|
@@ -4934,14 +4956,14 @@ const ou = {
|
|
|
4934
4956
|
};
|
|
4935
4957
|
function We() {
|
|
4936
4958
|
}
|
|
4937
|
-
const
|
|
4959
|
+
const Nr = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Br = 7, jr = 8, _t = typeof self == "object" ? self : globalThis, au = (e, t) => {
|
|
4938
4960
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4939
4961
|
if (e.has(i))
|
|
4940
4962
|
return e.get(i);
|
|
4941
4963
|
const [o, l] = t[i];
|
|
4942
4964
|
switch (o) {
|
|
4943
4965
|
case on:
|
|
4944
|
-
case
|
|
4966
|
+
case Nr:
|
|
4945
4967
|
return n(l, i);
|
|
4946
4968
|
case en: {
|
|
4947
4969
|
const a = n([], i);
|
|
@@ -4973,19 +4995,19 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
4973
4995
|
a.add(r(u));
|
|
4974
4996
|
return a;
|
|
4975
4997
|
}
|
|
4976
|
-
case
|
|
4998
|
+
case Br: {
|
|
4977
4999
|
const { name: a, message: u } = l;
|
|
4978
|
-
return n(new
|
|
5000
|
+
return n(new _t[a](u), i);
|
|
4979
5001
|
}
|
|
4980
5002
|
case jr:
|
|
4981
5003
|
return n(BigInt(l), i);
|
|
4982
5004
|
case "BigInt":
|
|
4983
5005
|
return n(Object(BigInt(l)), i);
|
|
4984
5006
|
}
|
|
4985
|
-
return n(new
|
|
5007
|
+
return n(new _t[o](l), i);
|
|
4986
5008
|
};
|
|
4987
5009
|
return r;
|
|
4988
|
-
},
|
|
5010
|
+
}, Rt = (e) => au(/* @__PURE__ */ new Map(), e)(0), ze = "", { toString: uu } = {}, { keys: su } = Object, Ne = (e) => {
|
|
4989
5011
|
const t = typeof e;
|
|
4990
5012
|
if (t !== "object" || !e)
|
|
4991
5013
|
return [on, t];
|
|
@@ -5004,7 +5026,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5004
5026
|
case "Set":
|
|
5005
5027
|
return [Xn, ze];
|
|
5006
5028
|
}
|
|
5007
|
-
return n.includes("Array") ? [en, n] : n.includes("Error") ? [
|
|
5029
|
+
return n.includes("Array") ? [en, n] : n.includes("Error") ? [Br, n] : [nn, n];
|
|
5008
5030
|
}, Qe = ([e, t]) => e === on && (t === "function" || t === "symbol"), cu = (e, t, n, r) => {
|
|
5009
5031
|
const i = (l, a) => {
|
|
5010
5032
|
const u = r.push(l) - 1;
|
|
@@ -5012,7 +5034,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5012
5034
|
}, o = (l) => {
|
|
5013
5035
|
if (n.has(l))
|
|
5014
5036
|
return n.get(l);
|
|
5015
|
-
let [a, u] =
|
|
5037
|
+
let [a, u] = Ne(l);
|
|
5016
5038
|
switch (a) {
|
|
5017
5039
|
case on: {
|
|
5018
5040
|
let f = l;
|
|
@@ -5027,7 +5049,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5027
5049
|
f = null;
|
|
5028
5050
|
break;
|
|
5029
5051
|
case "undefined":
|
|
5030
|
-
return i([
|
|
5052
|
+
return i([Nr], l);
|
|
5031
5053
|
}
|
|
5032
5054
|
return i([a, f], l);
|
|
5033
5055
|
}
|
|
@@ -5053,7 +5075,7 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5053
5075
|
return o(l.toJSON());
|
|
5054
5076
|
const f = [], c = i([a, f], l);
|
|
5055
5077
|
for (const h of su(l))
|
|
5056
|
-
(e || !Qe(
|
|
5078
|
+
(e || !Qe(Ne(l[h]))) && f.push([o(h), o(l[h])]);
|
|
5057
5079
|
return c;
|
|
5058
5080
|
}
|
|
5059
5081
|
case Wn:
|
|
@@ -5065,13 +5087,13 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5065
5087
|
case Gn: {
|
|
5066
5088
|
const f = [], c = i([a, f], l);
|
|
5067
5089
|
for (const [h, p] of l)
|
|
5068
|
-
(e || !(Qe(
|
|
5090
|
+
(e || !(Qe(Ne(h)) || Qe(Ne(p)))) && f.push([o(h), o(p)]);
|
|
5069
5091
|
return c;
|
|
5070
5092
|
}
|
|
5071
5093
|
case Xn: {
|
|
5072
5094
|
const f = [], c = i([a, f], l);
|
|
5073
5095
|
for (const h of l)
|
|
5074
|
-
(e || !Qe(
|
|
5096
|
+
(e || !Qe(Ne(h))) && f.push(o(h));
|
|
5075
5097
|
return c;
|
|
5076
5098
|
}
|
|
5077
5099
|
}
|
|
@@ -5084,8 +5106,8 @@ const Br = -1, on = 0, en = 1, nn = 2, Wn = 3, Qn = 4, Gn = 5, Xn = 6, Nr = 7, j
|
|
|
5084
5106
|
return cu(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5085
5107
|
}, tn = typeof structuredClone == "function" ? (
|
|
5086
5108
|
/* c8 ignore start */
|
|
5087
|
-
(e, t) => t && ("json" in t || "lossy" in t) ?
|
|
5088
|
-
) : (e, t) =>
|
|
5109
|
+
(e, t) => t && ("json" in t || "lossy" in t) ? Rt(Mt(e, t)) : structuredClone(e)
|
|
5110
|
+
) : (e, t) => Rt(Mt(e, t));
|
|
5089
5111
|
function fu(e, t) {
|
|
5090
5112
|
const n = [{ type: "text", value: "↩" }];
|
|
5091
5113
|
return t > 1 && n.push({
|
|
@@ -5248,8 +5270,8 @@ function yu() {
|
|
|
5248
5270
|
function ku(e) {
|
|
5249
5271
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5250
5272
|
}
|
|
5251
|
-
const Hr = [], xu = !0,
|
|
5252
|
-
function
|
|
5273
|
+
const Hr = [], xu = !0, Dn = !1, bu = "skip";
|
|
5274
|
+
function $r(e, t, n, r) {
|
|
5253
5275
|
let i;
|
|
5254
5276
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
5255
5277
|
const o = an(i), l = r ? -1 : 1;
|
|
@@ -5274,7 +5296,7 @@ function Ur(e, t, n, r) {
|
|
|
5274
5296
|
return h;
|
|
5275
5297
|
function h() {
|
|
5276
5298
|
let p = Hr, d, k, S;
|
|
5277
|
-
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (p = wu(n(u, f)), p[0] ===
|
|
5299
|
+
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (p = wu(n(u, f)), p[0] === Dn))
|
|
5278
5300
|
return p;
|
|
5279
5301
|
if ("children" in u && u.children) {
|
|
5280
5302
|
const x = (
|
|
@@ -5284,7 +5306,7 @@ function Ur(e, t, n, r) {
|
|
|
5284
5306
|
if (x.children && p[0] !== bu)
|
|
5285
5307
|
for (k = (r ? x.children.length : -1) + l, S = f.concat(x); k > -1 && k < x.children.length; ) {
|
|
5286
5308
|
const A = x.children[k];
|
|
5287
|
-
if (d = a(A, k, S)(), d[0] ===
|
|
5309
|
+
if (d = a(A, k, S)(), d[0] === Dn)
|
|
5288
5310
|
return d;
|
|
5289
5311
|
k = typeof d[1] == "number" ? d[1] : k + l;
|
|
5290
5312
|
}
|
|
@@ -5298,7 +5320,7 @@ function wu(e) {
|
|
|
5298
5320
|
}
|
|
5299
5321
|
function Yn(e, t, n, r) {
|
|
5300
5322
|
let i, o, l;
|
|
5301
|
-
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r),
|
|
5323
|
+
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r), $r(e, o, a, i);
|
|
5302
5324
|
function a(u, s) {
|
|
5303
5325
|
const f = s[s.length - 1], c = f ? f.children.indexOf(u) : void 0;
|
|
5304
5326
|
return l(u, c, f);
|
|
@@ -5346,9 +5368,9 @@ function Cu(e, t) {
|
|
|
5346
5368
|
for (; ++p < h.length; ) {
|
|
5347
5369
|
const d = a.one(h[p], f);
|
|
5348
5370
|
if (d) {
|
|
5349
|
-
if (p && h[p - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value =
|
|
5371
|
+
if (p && h[p - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value = Nt(d.value)), !Array.isArray(d) && d.type === "element")) {
|
|
5350
5372
|
const k = d.children[0];
|
|
5351
|
-
k && k.type === "text" && (k.value =
|
|
5373
|
+
k && k.type === "text" && (k.value = Nt(k.value));
|
|
5352
5374
|
}
|
|
5353
5375
|
Array.isArray(d) ? c.push(...d) : c.push(d);
|
|
5354
5376
|
}
|
|
@@ -5394,13 +5416,13 @@ function Tu(e, t) {
|
|
|
5394
5416
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
|
5395
5417
|
` }), n;
|
|
5396
5418
|
}
|
|
5397
|
-
function
|
|
5419
|
+
function Nt(e) {
|
|
5398
5420
|
let t = 0, n = e.charCodeAt(t);
|
|
5399
5421
|
for (; n === 9 || n === 32; )
|
|
5400
5422
|
t++, n = e.charCodeAt(t);
|
|
5401
5423
|
return e.slice(t);
|
|
5402
5424
|
}
|
|
5403
|
-
function
|
|
5425
|
+
function Bt(e, t) {
|
|
5404
5426
|
const n = Cu(e, t), r = n.one(e, void 0), i = hu(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5405
5427
|
return i && o.children.push({ type: "text", value: `
|
|
5406
5428
|
` }, i), o;
|
|
@@ -5409,13 +5431,13 @@ function Pu(e, t) {
|
|
|
5409
5431
|
return e && "run" in e ? async function(n, r) {
|
|
5410
5432
|
const i = (
|
|
5411
5433
|
/** @type {HastRoot} */
|
|
5412
|
-
|
|
5434
|
+
Bt(n, { file: r, ...t })
|
|
5413
5435
|
);
|
|
5414
5436
|
await e.run(i, r);
|
|
5415
5437
|
} : function(n, r) {
|
|
5416
5438
|
return (
|
|
5417
5439
|
/** @type {HastRoot} */
|
|
5418
|
-
|
|
5440
|
+
Bt(n, { file: r, ...t || e })
|
|
5419
5441
|
);
|
|
5420
5442
|
};
|
|
5421
5443
|
}
|
|
@@ -5423,10 +5445,10 @@ function jt(e) {
|
|
|
5423
5445
|
if (e)
|
|
5424
5446
|
throw e;
|
|
5425
5447
|
}
|
|
5426
|
-
var Ke = Object.prototype.hasOwnProperty,
|
|
5427
|
-
return typeof Array.isArray == "function" ? Array.isArray(t) :
|
|
5448
|
+
var Ke = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ht = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, Ut = function(t) {
|
|
5449
|
+
return typeof Array.isArray == "function" ? Array.isArray(t) : Ur.call(t) === "[object Array]";
|
|
5428
5450
|
}, qt = function(t) {
|
|
5429
|
-
if (!t ||
|
|
5451
|
+
if (!t || Ur.call(t) !== "[object Object]")
|
|
5430
5452
|
return !1;
|
|
5431
5453
|
var n = Ke.call(t, "constructor"), r = t.constructor && t.constructor.prototype && Ke.call(t.constructor.prototype, "isPrototypeOf");
|
|
5432
5454
|
if (t.constructor && !n && !r)
|
|
@@ -5445,8 +5467,8 @@ var Ke = Object.prototype.hasOwnProperty, $r = Object.prototype.toString, Ht = O
|
|
|
5445
5467
|
}, Wt = function(t, n) {
|
|
5446
5468
|
if (n === "__proto__")
|
|
5447
5469
|
if (Ke.call(t, n)) {
|
|
5448
|
-
if (
|
|
5449
|
-
return
|
|
5470
|
+
if ($t)
|
|
5471
|
+
return $t(t, n).value;
|
|
5450
5472
|
} else return;
|
|
5451
5473
|
return t[n];
|
|
5452
5474
|
}, Lu = function e() {
|
|
@@ -5454,10 +5476,10 @@ var Ke = Object.prototype.hasOwnProperty, $r = Object.prototype.toString, Ht = O
|
|
|
5454
5476
|
for (typeof a == "boolean" && (f = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < s; ++u)
|
|
5455
5477
|
if (t = arguments[u], t != null)
|
|
5456
5478
|
for (n in t)
|
|
5457
|
-
r = Wt(a, n), i = Wt(t, n), a !== i && (f && i && (qt(i) || (o =
|
|
5479
|
+
r = Wt(a, n), i = Wt(t, n), a !== i && (f && i && (qt(i) || (o = Ut(i))) ? (o ? (o = !1, l = r && Ut(r) ? r : []) : l = r && qt(r) ? r : {}, Vt(a, { name: n, newValue: e(f, l, i) })) : typeof i < "u" && Vt(a, { name: n, newValue: i }));
|
|
5458
5480
|
return a;
|
|
5459
5481
|
};
|
|
5460
|
-
const gn = /* @__PURE__ */
|
|
5482
|
+
const gn = /* @__PURE__ */ Li(Lu);
|
|
5461
5483
|
function Fn(e) {
|
|
5462
5484
|
if (typeof e != "object" || e === null)
|
|
5463
5485
|
return !1;
|
|
@@ -5482,7 +5504,7 @@ function zu() {
|
|
|
5482
5504
|
}
|
|
5483
5505
|
for (; ++c < i.length; )
|
|
5484
5506
|
(s[c] === null || s[c] === void 0) && (s[c] = i[c]);
|
|
5485
|
-
i = s, f ?
|
|
5507
|
+
i = s, f ? vu(f, a)(...s) : l(null, ...s);
|
|
5486
5508
|
}
|
|
5487
5509
|
}
|
|
5488
5510
|
function r(i) {
|
|
@@ -5493,7 +5515,7 @@ function zu() {
|
|
|
5493
5515
|
return e.push(i), t;
|
|
5494
5516
|
}
|
|
5495
5517
|
}
|
|
5496
|
-
function
|
|
5518
|
+
function vu(e, t) {
|
|
5497
5519
|
let n;
|
|
5498
5520
|
return r;
|
|
5499
5521
|
function r(...l) {
|
|
@@ -5520,8 +5542,8 @@ function Du(e, t) {
|
|
|
5520
5542
|
i(null, l);
|
|
5521
5543
|
}
|
|
5522
5544
|
}
|
|
5523
|
-
const fe = { basename:
|
|
5524
|
-
function
|
|
5545
|
+
const fe = { basename: Du, dirname: Ou, extname: Fu, join: _u, sep: "/" };
|
|
5546
|
+
function Du(e, t) {
|
|
5525
5547
|
if (t !== void 0 && typeof t != "string")
|
|
5526
5548
|
throw new TypeError('"ext" argument must be a string');
|
|
5527
5549
|
Ve(e);
|
|
@@ -5580,13 +5602,13 @@ function Fu(e) {
|
|
|
5580
5602
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5581
5603
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
5582
5604
|
}
|
|
5583
|
-
function
|
|
5605
|
+
function _u(...e) {
|
|
5584
5606
|
let t = -1, n;
|
|
5585
5607
|
for (; ++t < e.length; )
|
|
5586
5608
|
Ve(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
5587
|
-
return n === void 0 ? "." :
|
|
5609
|
+
return n === void 0 ? "." : Ru(n);
|
|
5588
5610
|
}
|
|
5589
|
-
function
|
|
5611
|
+
function Ru(e) {
|
|
5590
5612
|
Ve(e);
|
|
5591
5613
|
const t = e.codePointAt(0) === 47;
|
|
5592
5614
|
let n = Mu(e, !t);
|
|
@@ -5629,18 +5651,18 @@ function Ve(e) {
|
|
|
5629
5651
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5630
5652
|
);
|
|
5631
5653
|
}
|
|
5632
|
-
const
|
|
5633
|
-
function
|
|
5654
|
+
const Nu = { cwd: Bu };
|
|
5655
|
+
function Bu() {
|
|
5634
5656
|
return "/";
|
|
5635
5657
|
}
|
|
5636
|
-
function
|
|
5658
|
+
function _n(e) {
|
|
5637
5659
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5638
5660
|
e.auth === void 0);
|
|
5639
5661
|
}
|
|
5640
5662
|
function ju(e) {
|
|
5641
5663
|
if (typeof e == "string")
|
|
5642
5664
|
e = new URL(e);
|
|
5643
|
-
else if (!
|
|
5665
|
+
else if (!_n(e)) {
|
|
5644
5666
|
const t = new TypeError(
|
|
5645
5667
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
5646
5668
|
);
|
|
@@ -5709,7 +5731,7 @@ class qr {
|
|
|
5709
5731
|
*/
|
|
5710
5732
|
constructor(t) {
|
|
5711
5733
|
let n;
|
|
5712
|
-
t ?
|
|
5734
|
+
t ? _n(t) ? n = { path: t } : typeof t == "string" || $u(t) ? n = { value: t } : n = t : n = {}, this.cwd = Nu.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5713
5735
|
let r = -1;
|
|
5714
5736
|
for (; ++r < dn.length; ) {
|
|
5715
5737
|
const o = dn[r];
|
|
@@ -5817,7 +5839,7 @@ class qr {
|
|
|
5817
5839
|
* Nothing.
|
|
5818
5840
|
*/
|
|
5819
5841
|
set path(t) {
|
|
5820
|
-
|
|
5842
|
+
_n(t) && (t = ju(t)), kn(t, "path"), this.path !== t && this.history.push(t);
|
|
5821
5843
|
}
|
|
5822
5844
|
/**
|
|
5823
5845
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6068,10 +6090,10 @@ function Qt(e, t) {
|
|
|
6068
6090
|
if (!e)
|
|
6069
6091
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6070
6092
|
}
|
|
6071
|
-
function
|
|
6093
|
+
function $u(e) {
|
|
6072
6094
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6073
6095
|
}
|
|
6074
|
-
const
|
|
6096
|
+
const Uu = (
|
|
6075
6097
|
/**
|
|
6076
6098
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6077
6099
|
*/
|
|
@@ -6099,7 +6121,7 @@ const $u = (
|
|
|
6099
6121
|
return o;
|
|
6100
6122
|
}
|
|
6101
6123
|
), qu = {}.hasOwnProperty;
|
|
6102
|
-
class Kn extends
|
|
6124
|
+
class Kn extends Uu {
|
|
6103
6125
|
/**
|
|
6104
6126
|
* Create a processor.
|
|
6105
6127
|
*/
|
|
@@ -6679,16 +6701,16 @@ function Ku(e) {
|
|
|
6679
6701
|
if (A.type === "raw" && z && typeof E == "number")
|
|
6680
6702
|
return f ? z.children.splice(E, 1) : z.children[E] = { type: "text", value: A.value }, E;
|
|
6681
6703
|
if (A.type === "element") {
|
|
6682
|
-
let
|
|
6683
|
-
for (
|
|
6684
|
-
if (Object.hasOwn(pn,
|
|
6685
|
-
const w = A.properties[
|
|
6686
|
-
(
|
|
6704
|
+
let v;
|
|
6705
|
+
for (v in pn)
|
|
6706
|
+
if (Object.hasOwn(pn, v) && Object.hasOwn(A.properties, v)) {
|
|
6707
|
+
const w = A.properties[v], _ = pn[v];
|
|
6708
|
+
(_ === null || _.includes(A.tagName)) && (A.properties[v] = h(String(w || ""), v, A));
|
|
6687
6709
|
}
|
|
6688
6710
|
}
|
|
6689
6711
|
if (A.type === "element") {
|
|
6690
|
-
let
|
|
6691
|
-
if (!
|
|
6712
|
+
let v = t ? !t.includes(A.tagName) : l ? l.includes(A.tagName) : !1;
|
|
6713
|
+
if (!v && n && typeof E == "number" && (v = !n(A, E, z)), v && z && typeof E == "number")
|
|
6692
6714
|
return c && A.children ? z.children.splice(E, 1, ...A.children) : z.children.splice(E, 1), E;
|
|
6693
6715
|
}
|
|
6694
6716
|
}
|
|
@@ -6720,7 +6742,7 @@ function es(e, t, n) {
|
|
|
6720
6742
|
const i = an((n || {}).ignore || []), o = ns(t);
|
|
6721
6743
|
let l = -1;
|
|
6722
6744
|
for (; ++l < o.length; )
|
|
6723
|
-
|
|
6745
|
+
$r(e, "text", a);
|
|
6724
6746
|
function a(s, f) {
|
|
6725
6747
|
let c = -1, h;
|
|
6726
6748
|
for (; ++c < f.length; ) {
|
|
@@ -6744,12 +6766,12 @@ function es(e, t, n) {
|
|
|
6744
6766
|
h.lastIndex = 0;
|
|
6745
6767
|
let E = h.exec(s.value);
|
|
6746
6768
|
for (; E; ) {
|
|
6747
|
-
const z = E.index,
|
|
6769
|
+
const z = E.index, v = {
|
|
6748
6770
|
index: E.index,
|
|
6749
6771
|
input: E.input,
|
|
6750
6772
|
stack: [...f, s]
|
|
6751
6773
|
};
|
|
6752
|
-
let w = p(...E,
|
|
6774
|
+
let w = p(...E, v);
|
|
6753
6775
|
if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? h.lastIndex = z + 1 : (d !== z && A.push({
|
|
6754
6776
|
type: "text",
|
|
6755
6777
|
value: s.value.slice(d, z)
|
|
@@ -7004,11 +7026,11 @@ Qr.peek = Fs;
|
|
|
7004
7026
|
function zs() {
|
|
7005
7027
|
return {
|
|
7006
7028
|
canContainEols: ["delete"],
|
|
7007
|
-
enter: { strikethrough:
|
|
7029
|
+
enter: { strikethrough: Ds },
|
|
7008
7030
|
exit: { strikethrough: Os }
|
|
7009
7031
|
};
|
|
7010
7032
|
}
|
|
7011
|
-
function
|
|
7033
|
+
function vs() {
|
|
7012
7034
|
return {
|
|
7013
7035
|
unsafe: [
|
|
7014
7036
|
{
|
|
@@ -7020,7 +7042,7 @@ function Ds() {
|
|
|
7020
7042
|
handlers: { delete: Qr }
|
|
7021
7043
|
};
|
|
7022
7044
|
}
|
|
7023
|
-
function
|
|
7045
|
+
function Ds(e) {
|
|
7024
7046
|
this.enter({ type: "delete", children: [] }, e);
|
|
7025
7047
|
}
|
|
7026
7048
|
function Os(e) {
|
|
@@ -7038,14 +7060,14 @@ function Qr(e, t, n, r) {
|
|
|
7038
7060
|
function Fs() {
|
|
7039
7061
|
return "~";
|
|
7040
7062
|
}
|
|
7041
|
-
function
|
|
7063
|
+
function _s(e, t = {}) {
|
|
7042
7064
|
const n = (t.align || []).concat(), r = t.stringLength || Ms, i = [], o = [], l = [], a = [];
|
|
7043
7065
|
let u = 0, s = -1;
|
|
7044
7066
|
for (; ++s < e.length; ) {
|
|
7045
7067
|
const d = [], k = [];
|
|
7046
7068
|
let S = -1;
|
|
7047
7069
|
for (e[s].length > u && (u = e[s].length); ++S < e[s].length; ) {
|
|
7048
|
-
const x =
|
|
7070
|
+
const x = Rs(e[s][S]);
|
|
7049
7071
|
if (t.alignDelimiters !== !1) {
|
|
7050
7072
|
const A = r(x);
|
|
7051
7073
|
k[S] = A, (a[S] === void 0 || A > a[S]) && (a[S] = A);
|
|
@@ -7086,8 +7108,8 @@ function Rs(e, t = {}) {
|
|
|
7086
7108
|
const x = d[f] || "";
|
|
7087
7109
|
let A = "", E = "";
|
|
7088
7110
|
if (t.alignDelimiters !== !1) {
|
|
7089
|
-
const z = a[f] - (k[f] || 0),
|
|
7090
|
-
|
|
7111
|
+
const z = a[f] - (k[f] || 0), v = i[f];
|
|
7112
|
+
v === 114 ? A = " ".repeat(z) : v === 99 ? z % 2 ? (A = " ".repeat(z / 2 + 0.5), E = " ".repeat(z / 2 - 0.5)) : (A = " ".repeat(z / 2), E = A) : E = " ".repeat(z);
|
|
7091
7113
|
}
|
|
7092
7114
|
t.delimiterStart !== !1 && !f && S.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
7093
7115
|
// empty: there will be a closing space.
|
|
@@ -7100,7 +7122,7 @@ function Rs(e, t = {}) {
|
|
|
7100
7122
|
return p.join(`
|
|
7101
7123
|
`);
|
|
7102
7124
|
}
|
|
7103
|
-
function
|
|
7125
|
+
function Rs(e) {
|
|
7104
7126
|
return e == null ? "" : String(e);
|
|
7105
7127
|
}
|
|
7106
7128
|
function Ms(e) {
|
|
@@ -7110,16 +7132,16 @@ function Zt(e) {
|
|
|
7110
7132
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7111
7133
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7112
7134
|
}
|
|
7113
|
-
function
|
|
7135
|
+
function Ns(e, t, n, r) {
|
|
7114
7136
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
7115
7137
|
o.move("> "), o.shift(2);
|
|
7116
7138
|
const l = n.indentLines(
|
|
7117
7139
|
n.containerFlow(e, o.current()),
|
|
7118
|
-
|
|
7140
|
+
Bs
|
|
7119
7141
|
);
|
|
7120
7142
|
return i(), l;
|
|
7121
7143
|
}
|
|
7122
|
-
function
|
|
7144
|
+
function Bs(e, t, n) {
|
|
7123
7145
|
return ">" + (n ? "" : " ") + e;
|
|
7124
7146
|
}
|
|
7125
7147
|
function js(e, t) {
|
|
@@ -7152,13 +7174,13 @@ function Hs(e, t) {
|
|
|
7152
7174
|
r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
7153
7175
|
return l;
|
|
7154
7176
|
}
|
|
7155
|
-
function
|
|
7177
|
+
function $s(e, t) {
|
|
7156
7178
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
7157
7179
|
!e.lang && // And there’s a non-whitespace character…
|
|
7158
7180
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
7159
7181
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
7160
7182
|
}
|
|
7161
|
-
function
|
|
7183
|
+
function Us(e) {
|
|
7162
7184
|
const t = e.options.fence || "`";
|
|
7163
7185
|
if (t !== "`" && t !== "~")
|
|
7164
7186
|
throw new Error(
|
|
@@ -7167,8 +7189,8 @@ function $s(e) {
|
|
|
7167
7189
|
return t;
|
|
7168
7190
|
}
|
|
7169
7191
|
function qs(e, t, n, r) {
|
|
7170
|
-
const i =
|
|
7171
|
-
if (
|
|
7192
|
+
const i = Us(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
7193
|
+
if ($s(e, n)) {
|
|
7172
7194
|
const c = n.enter("codeIndented"), h = n.indentLines(o, Vs);
|
|
7173
7195
|
return c(), h;
|
|
7174
7196
|
}
|
|
@@ -7269,8 +7291,8 @@ function Xs(e, t) {
|
|
|
7269
7291
|
let n = !1;
|
|
7270
7292
|
return Yn(e, function(r) {
|
|
7271
7293
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7272
|
-
return n = !0,
|
|
7273
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
7294
|
+
return n = !0, Dn;
|
|
7295
|
+
}), !!((!e.depth || e.depth < 3) && Un(e) && (t.options.setext || n));
|
|
7274
7296
|
}
|
|
7275
7297
|
function Ys(e, t, n, r) {
|
|
7276
7298
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
@@ -7381,7 +7403,7 @@ function ec() {
|
|
|
7381
7403
|
return "`";
|
|
7382
7404
|
}
|
|
7383
7405
|
function Zr(e, t) {
|
|
7384
|
-
const n =
|
|
7406
|
+
const n = Un(e);
|
|
7385
7407
|
return !!(!t.options.resourceLink && // If there’s a url…
|
|
7386
7408
|
e.url && // And there’s a no title…
|
|
7387
7409
|
!e.title && // And the content of `node` is a single text node…
|
|
@@ -7625,7 +7647,7 @@ function gc(e, t, n) {
|
|
|
7625
7647
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7626
7648
|
}
|
|
7627
7649
|
const ii = {
|
|
7628
|
-
blockquote:
|
|
7650
|
+
blockquote: Ns,
|
|
7629
7651
|
break: nr,
|
|
7630
7652
|
code: qs,
|
|
7631
7653
|
definition: Ws,
|
|
@@ -7743,7 +7765,7 @@ function Sc(e) {
|
|
|
7743
7765
|
return A(), x(), E;
|
|
7744
7766
|
}
|
|
7745
7767
|
function s(p, d) {
|
|
7746
|
-
return
|
|
7768
|
+
return _s(p, {
|
|
7747
7769
|
align: d,
|
|
7748
7770
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
7749
7771
|
alignDelimiters: r,
|
|
@@ -7838,26 +7860,26 @@ function Pc(e) {
|
|
|
7838
7860
|
extensions: [
|
|
7839
7861
|
ls(),
|
|
7840
7862
|
ys(),
|
|
7841
|
-
|
|
7863
|
+
vs(),
|
|
7842
7864
|
Sc(e),
|
|
7843
7865
|
Ec()
|
|
7844
7866
|
]
|
|
7845
7867
|
};
|
|
7846
7868
|
}
|
|
7847
7869
|
const Lc = {
|
|
7848
|
-
tokenize:
|
|
7870
|
+
tokenize: _c,
|
|
7849
7871
|
partial: !0
|
|
7850
7872
|
}, li = {
|
|
7851
|
-
tokenize:
|
|
7873
|
+
tokenize: Rc,
|
|
7852
7874
|
partial: !0
|
|
7853
7875
|
}, oi = {
|
|
7854
7876
|
tokenize: Mc,
|
|
7855
7877
|
partial: !0
|
|
7856
7878
|
}, ai = {
|
|
7857
|
-
tokenize:
|
|
7879
|
+
tokenize: Nc,
|
|
7858
7880
|
partial: !0
|
|
7859
7881
|
}, zc = {
|
|
7860
|
-
tokenize:
|
|
7882
|
+
tokenize: Bc,
|
|
7861
7883
|
partial: !0
|
|
7862
7884
|
}, ui = {
|
|
7863
7885
|
tokenize: Oc,
|
|
@@ -7866,10 +7888,10 @@ const Lc = {
|
|
|
7866
7888
|
tokenize: Fc,
|
|
7867
7889
|
previous: fi
|
|
7868
7890
|
}, ye = {
|
|
7869
|
-
tokenize:
|
|
7891
|
+
tokenize: Dc,
|
|
7870
7892
|
previous: pi
|
|
7871
7893
|
}, pe = {};
|
|
7872
|
-
function
|
|
7894
|
+
function vc() {
|
|
7873
7895
|
return {
|
|
7874
7896
|
text: pe
|
|
7875
7897
|
};
|
|
@@ -7885,15 +7907,15 @@ pe[72] = [ye, si];
|
|
|
7885
7907
|
pe[104] = [ye, si];
|
|
7886
7908
|
pe[87] = [ye, ui];
|
|
7887
7909
|
pe[119] = [ye, ui];
|
|
7888
|
-
function
|
|
7910
|
+
function Dc(e, t, n) {
|
|
7889
7911
|
const r = this;
|
|
7890
7912
|
let i, o;
|
|
7891
7913
|
return l;
|
|
7892
7914
|
function l(c) {
|
|
7893
|
-
return !
|
|
7915
|
+
return !Rn(c) || !pi.call(r, r.previous) || et(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
|
|
7894
7916
|
}
|
|
7895
7917
|
function a(c) {
|
|
7896
|
-
return
|
|
7918
|
+
return Rn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7897
7919
|
}
|
|
7898
7920
|
function u(c) {
|
|
7899
7921
|
return c === 46 ? e.check(
|
|
@@ -7944,13 +7966,13 @@ function Fc(e, t, n) {
|
|
|
7944
7966
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
|
|
7945
7967
|
}
|
|
7946
7968
|
function s(c) {
|
|
7947
|
-
return c === null || Je(c) ||
|
|
7969
|
+
return c === null || Je(c) || $(c) || Ie(c) || rn(c) ? n(c) : e.attempt(li, e.attempt(oi, f), n)(c);
|
|
7948
7970
|
}
|
|
7949
7971
|
function f(c) {
|
|
7950
7972
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
7951
7973
|
}
|
|
7952
7974
|
}
|
|
7953
|
-
function
|
|
7975
|
+
function _c(e, t, n) {
|
|
7954
7976
|
let r = 0;
|
|
7955
7977
|
return i;
|
|
7956
7978
|
function i(l) {
|
|
@@ -7960,11 +7982,11 @@ function Rc(e, t, n) {
|
|
|
7960
7982
|
return l === null ? n(l) : t(l);
|
|
7961
7983
|
}
|
|
7962
7984
|
}
|
|
7963
|
-
function
|
|
7985
|
+
function Rc(e, t, n) {
|
|
7964
7986
|
let r, i, o;
|
|
7965
7987
|
return l;
|
|
7966
7988
|
function l(s) {
|
|
7967
|
-
return s === 46 || s === 95 ? e.check(ai, u, a)(s) : s === null ||
|
|
7989
|
+
return s === 46 || s === 95 ? e.check(ai, u, a)(s) : s === null || $(s) || Ie(s) || s !== 45 && rn(s) ? u(s) : (o = !0, e.consume(s), l);
|
|
7968
7990
|
}
|
|
7969
7991
|
function a(s) {
|
|
7970
7992
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
|
@@ -7977,23 +7999,23 @@ function Mc(e, t) {
|
|
|
7977
7999
|
let n = 0, r = 0;
|
|
7978
8000
|
return i;
|
|
7979
8001
|
function i(l) {
|
|
7980
|
-
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(ai, t, o)(l) : l === null ||
|
|
8002
|
+
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(ai, t, o)(l) : l === null || $(l) || Ie(l) ? t(l) : (e.consume(l), i);
|
|
7981
8003
|
}
|
|
7982
8004
|
function o(l) {
|
|
7983
8005
|
return l === 41 && r++, e.consume(l), i;
|
|
7984
8006
|
}
|
|
7985
8007
|
}
|
|
7986
|
-
function
|
|
8008
|
+
function Nc(e, t, n) {
|
|
7987
8009
|
return r;
|
|
7988
8010
|
function r(a) {
|
|
7989
8011
|
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) : (
|
|
7990
8012
|
// `<` is an end.
|
|
7991
8013
|
a === 60 || // So is whitespace.
|
|
7992
|
-
a === null ||
|
|
8014
|
+
a === null || $(a) || Ie(a) ? t(a) : n(a)
|
|
7993
8015
|
);
|
|
7994
8016
|
}
|
|
7995
8017
|
function i(a) {
|
|
7996
|
-
return a === null || a === 40 || a === 91 ||
|
|
8018
|
+
return a === null || a === 40 || a === 91 || $(a) || Ie(a) ? t(a) : r(a);
|
|
7997
8019
|
}
|
|
7998
8020
|
function o(a) {
|
|
7999
8021
|
return J(a) ? l(a) : n(a);
|
|
@@ -8002,7 +8024,7 @@ function Bc(e, t, n) {
|
|
|
8002
8024
|
return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
|
|
8003
8025
|
}
|
|
8004
8026
|
}
|
|
8005
|
-
function
|
|
8027
|
+
function Bc(e, t, n) {
|
|
8006
8028
|
return r;
|
|
8007
8029
|
function r(o) {
|
|
8008
8030
|
return e.consume(o), i;
|
|
@@ -8012,15 +8034,15 @@ function Nc(e, t, n) {
|
|
|
8012
8034
|
}
|
|
8013
8035
|
}
|
|
8014
8036
|
function ci(e) {
|
|
8015
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 ||
|
|
8037
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || $(e);
|
|
8016
8038
|
}
|
|
8017
8039
|
function fi(e) {
|
|
8018
8040
|
return !J(e);
|
|
8019
8041
|
}
|
|
8020
8042
|
function pi(e) {
|
|
8021
|
-
return !(e === 47 ||
|
|
8043
|
+
return !(e === 47 || Rn(e));
|
|
8022
8044
|
}
|
|
8023
|
-
function
|
|
8045
|
+
function Rn(e) {
|
|
8024
8046
|
return e === 43 || e === 45 || e === 46 || e === 95 || Y(e);
|
|
8025
8047
|
}
|
|
8026
8048
|
function et(e) {
|
|
@@ -8059,13 +8081,13 @@ function Hc() {
|
|
|
8059
8081
|
},
|
|
8060
8082
|
93: {
|
|
8061
8083
|
add: "after",
|
|
8062
|
-
tokenize:
|
|
8063
|
-
resolveTo:
|
|
8084
|
+
tokenize: $c,
|
|
8085
|
+
resolveTo: Uc
|
|
8064
8086
|
}
|
|
8065
8087
|
}
|
|
8066
8088
|
};
|
|
8067
8089
|
}
|
|
8068
|
-
function
|
|
8090
|
+
function $c(e, t, n) {
|
|
8069
8091
|
const r = this;
|
|
8070
8092
|
let i = r.events.length;
|
|
8071
8093
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -8092,7 +8114,7 @@ function Uc(e, t, n) {
|
|
|
8092
8114
|
return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
|
|
8093
8115
|
}
|
|
8094
8116
|
}
|
|
8095
|
-
function
|
|
8117
|
+
function Uc(e, t) {
|
|
8096
8118
|
let n = e.length;
|
|
8097
8119
|
for (; n-- && !(e[n][1].type === "labelImage" && e[n][0] === "enter"); )
|
|
8098
8120
|
;
|
|
@@ -8155,7 +8177,7 @@ function qc(e, t, n) {
|
|
|
8155
8177
|
o > 999 || // Closing brace with nothing.
|
|
8156
8178
|
c === 93 && !l || // Space or tab is not supported by GFM for some reason.
|
|
8157
8179
|
// `\n` and `[` not being supported makes sense.
|
|
8158
|
-
c === null || c === 91 ||
|
|
8180
|
+
c === null || c === 91 || $(c)
|
|
8159
8181
|
)
|
|
8160
8182
|
return n(c);
|
|
8161
8183
|
if (c === 93) {
|
|
@@ -8163,7 +8185,7 @@ function qc(e, t, n) {
|
|
|
8163
8185
|
const h = e.exit("gfmFootnoteCallString");
|
|
8164
8186
|
return i.includes(ce(r.sliceSerialize(h))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(c), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(c);
|
|
8165
8187
|
}
|
|
8166
|
-
return
|
|
8188
|
+
return $(c) || (l = !0), o++, e.consume(c), c === 92 ? f : s;
|
|
8167
8189
|
}
|
|
8168
8190
|
function f(c) {
|
|
8169
8191
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
|
|
@@ -8185,7 +8207,7 @@ function Vc(e, t, n) {
|
|
|
8185
8207
|
l > 999 || // Closing brace with nothing.
|
|
8186
8208
|
d === 93 && !a || // Space or tab is not supported by GFM for some reason.
|
|
8187
8209
|
// `\n` and `[` not being supported makes sense.
|
|
8188
|
-
d === null || d === 91 ||
|
|
8210
|
+
d === null || d === 91 || $(d)
|
|
8189
8211
|
)
|
|
8190
8212
|
return n(d);
|
|
8191
8213
|
if (d === 93) {
|
|
@@ -8193,7 +8215,7 @@ function Vc(e, t, n) {
|
|
|
8193
8215
|
const k = e.exit("gfmFootnoteDefinitionLabelString");
|
|
8194
8216
|
return o = ce(r.sliceSerialize(k)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(d), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
|
|
8195
8217
|
}
|
|
8196
|
-
return
|
|
8218
|
+
return $(d) || (a = !0), l++, e.consume(d), d === 92 ? c : f;
|
|
8197
8219
|
}
|
|
8198
8220
|
function c(d) {
|
|
8199
8221
|
return d === 91 || d === 92 || d === 93 ? (e.consume(d), l++, f) : f(d);
|
|
@@ -8429,7 +8451,7 @@ function ef(e, t, n) {
|
|
|
8429
8451
|
return y === null ? n(y) : L(y) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), p) : n(y) : F(y) ? M(e, f, "whitespace")(y) : (o += 1, l && (l = !1, i += 1), y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(y)));
|
|
8430
8452
|
}
|
|
8431
8453
|
function c(y) {
|
|
8432
|
-
return y === null || y === 124 ||
|
|
8454
|
+
return y === null || y === 124 || $(y) ? (e.exit("data"), f(y)) : (e.consume(y), y === 92 ? h : c);
|
|
8433
8455
|
}
|
|
8434
8456
|
function h(y) {
|
|
8435
8457
|
return y === 92 || y === 124 ? (e.consume(y), c) : c(y);
|
|
@@ -8443,16 +8465,16 @@ function ef(e, t, n) {
|
|
|
8443
8465
|
)(y) : d(y));
|
|
8444
8466
|
}
|
|
8445
8467
|
function d(y) {
|
|
8446
|
-
return y === 45 || y === 58 ? S(y) : y === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), k) :
|
|
8468
|
+
return y === 45 || y === 58 ? S(y) : y === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), k) : v(y);
|
|
8447
8469
|
}
|
|
8448
8470
|
function k(y) {
|
|
8449
8471
|
return F(y) ? M(e, S, "whitespace")(y) : S(y);
|
|
8450
8472
|
}
|
|
8451
8473
|
function S(y) {
|
|
8452
|
-
return y === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), x) : y === 45 ? (o += 1, x(y)) : y === null || L(y) ? z(y) :
|
|
8474
|
+
return y === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), x) : y === 45 ? (o += 1, x(y)) : y === null || L(y) ? z(y) : v(y);
|
|
8453
8475
|
}
|
|
8454
8476
|
function x(y) {
|
|
8455
|
-
return y === 45 ? (e.enter("tableDelimiterFiller"), A(y)) :
|
|
8477
|
+
return y === 45 ? (e.enter("tableDelimiterFiller"), A(y)) : v(y);
|
|
8456
8478
|
}
|
|
8457
8479
|
function A(y) {
|
|
8458
8480
|
return y === 45 ? (e.consume(y), A) : y === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), E) : (e.exit("tableDelimiterFiller"), E(y));
|
|
@@ -8461,21 +8483,21 @@ function ef(e, t, n) {
|
|
|
8461
8483
|
return F(y) ? M(e, z, "whitespace")(y) : z(y);
|
|
8462
8484
|
}
|
|
8463
8485
|
function z(y) {
|
|
8464
|
-
return y === 124 ? d(y) : y === null || L(y) ? !l || i !== o ?
|
|
8486
|
+
return y === 124 ? d(y) : y === null || L(y) ? !l || i !== o ? v(y) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(y)) : v(y);
|
|
8465
8487
|
}
|
|
8466
|
-
function
|
|
8488
|
+
function v(y) {
|
|
8467
8489
|
return n(y);
|
|
8468
8490
|
}
|
|
8469
8491
|
function w(y) {
|
|
8470
|
-
return e.enter("tableRow"),
|
|
8492
|
+
return e.enter("tableRow"), _(y);
|
|
8471
8493
|
}
|
|
8472
|
-
function
|
|
8473
|
-
return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"),
|
|
8494
|
+
function _(y) {
|
|
8495
|
+
return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), _) : y === null || L(y) ? (e.exit("tableRow"), t(y)) : F(y) ? M(e, _, "whitespace")(y) : (e.enter("data"), q(y));
|
|
8474
8496
|
}
|
|
8475
8497
|
function q(y) {
|
|
8476
|
-
return y === null || y === 124 ||
|
|
8498
|
+
return y === null || y === 124 || $(y) ? (e.exit("data"), _(y)) : (e.consume(y), y === 92 ? B : q);
|
|
8477
8499
|
}
|
|
8478
|
-
function
|
|
8500
|
+
function B(y) {
|
|
8479
8501
|
return y === 92 || y === 124 ? (e.consume(y), q) : q(y);
|
|
8480
8502
|
}
|
|
8481
8503
|
}
|
|
@@ -8525,15 +8547,15 @@ function nf(e, t) {
|
|
|
8525
8547
|
}
|
|
8526
8548
|
function Xe(e, t, n, r, i, o) {
|
|
8527
8549
|
const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
8528
|
-
n[0] !== 0 && (o.end = Object.assign({},
|
|
8529
|
-
const u =
|
|
8550
|
+
n[0] !== 0 && (o.end = Object.assign({}, ve(t.events, n[0])), e.add(n[0], 0, [["exit", o, t]]));
|
|
8551
|
+
const u = ve(t.events, n[1]);
|
|
8530
8552
|
if (o = {
|
|
8531
8553
|
type: l,
|
|
8532
8554
|
start: Object.assign({}, u),
|
|
8533
8555
|
// Note: correct end is set later.
|
|
8534
8556
|
end: Object.assign({}, u)
|
|
8535
8557
|
}, e.add(n[1], 0, [["enter", o, t]]), n[2] !== 0) {
|
|
8536
|
-
const s =
|
|
8558
|
+
const s = ve(t.events, n[2]), f = ve(t.events, n[3]), c = {
|
|
8537
8559
|
type: a,
|
|
8538
8560
|
start: Object.assign({}, s),
|
|
8539
8561
|
end: Object.assign({}, f)
|
|
@@ -8547,13 +8569,13 @@ function Xe(e, t, n, r, i, o) {
|
|
|
8547
8569
|
}
|
|
8548
8570
|
e.add(n[3] + 1, 0, [["exit", c, t]]);
|
|
8549
8571
|
}
|
|
8550
|
-
return i !== void 0 && (o.end = Object.assign({},
|
|
8572
|
+
return i !== void 0 && (o.end = Object.assign({}, ve(t.events, i)), e.add(i, 0, [["exit", o, t]]), o = void 0), o;
|
|
8551
8573
|
}
|
|
8552
8574
|
function ir(e, t, n, r, i) {
|
|
8553
|
-
const o = [], l =
|
|
8575
|
+
const o = [], l = ve(t.events, n);
|
|
8554
8576
|
i && (i.end = Object.assign({}, l), o.push(["exit", i, t])), r.end = Object.assign({}, l), o.push(["exit", r, t]), e.add(n + 1, 0, o);
|
|
8555
8577
|
}
|
|
8556
|
-
function
|
|
8578
|
+
function ve(e, t) {
|
|
8557
8579
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8558
8580
|
return n[1][r];
|
|
8559
8581
|
}
|
|
@@ -8579,7 +8601,7 @@ function lf(e, t, n) {
|
|
|
8579
8601
|
);
|
|
8580
8602
|
}
|
|
8581
8603
|
function o(u) {
|
|
8582
|
-
return
|
|
8604
|
+
return $(u) ? (e.enter("taskListCheckValueUnchecked"), e.consume(u), e.exit("taskListCheckValueUnchecked"), l) : u === 88 || u === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(u), e.exit("taskListCheckValueChecked"), l) : n(u);
|
|
8583
8605
|
}
|
|
8584
8606
|
function l(u) {
|
|
8585
8607
|
return u === 93 ? (e.enter("taskListCheckMarker"), e.consume(u), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : n(u);
|
|
@@ -8602,7 +8624,7 @@ function of(e, t, n) {
|
|
|
8602
8624
|
}
|
|
8603
8625
|
function af(e) {
|
|
8604
8626
|
return Cr([
|
|
8605
|
-
|
|
8627
|
+
vc(),
|
|
8606
8628
|
Hc(),
|
|
8607
8629
|
Xc(e),
|
|
8608
8630
|
Zc(),
|
|
@@ -8617,8 +8639,11 @@ function sf(e) {
|
|
|
8617
8639
|
), n = e || uf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
8618
8640
|
i.push(af(n)), o.push(Tc()), l.push(Pc(n));
|
|
8619
8641
|
}
|
|
8620
|
-
const cf =
|
|
8621
|
-
() => import(
|
|
8642
|
+
const cf = Ci(
|
|
8643
|
+
() => import(
|
|
8644
|
+
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8645
|
+
"./LazyMarkdownWithExtra.8gJ4kHmJ.js"
|
|
8646
|
+
)
|
|
8622
8647
|
), In = {
|
|
8623
8648
|
MODEL: "Model",
|
|
8624
8649
|
PLUGIN: "Plugin",
|
|
@@ -8629,24 +8654,24 @@ const cf = Ii(
|
|
|
8629
8654
|
loading: n,
|
|
8630
8655
|
processingTime: r
|
|
8631
8656
|
}) => {
|
|
8632
|
-
const { state: i } =
|
|
8633
|
-
key:
|
|
8657
|
+
const { state: i } = Ei(wi), [o] = Si({
|
|
8658
|
+
key: Ii + Ti,
|
|
8634
8659
|
initialValue: !1
|
|
8635
8660
|
});
|
|
8636
8661
|
return /* @__PURE__ */ He(or, { children: [
|
|
8637
8662
|
/* @__PURE__ */ re("div", { className: "h-0.5" }),
|
|
8638
|
-
n ? /* @__PURE__ */ re(
|
|
8639
|
-
|
|
8663
|
+
n ? /* @__PURE__ */ re(ot, { children: /* @__PURE__ */ re(zi, { type: "dots" }) }) : /* @__PURE__ */ He(
|
|
8664
|
+
ot,
|
|
8640
8665
|
{
|
|
8641
8666
|
copyToClipboard: e,
|
|
8642
8667
|
copyToClipboardFocusMode: "light",
|
|
8643
8668
|
footer: {
|
|
8644
8669
|
[In.MODEL]: i && i.model && o ? i.model : null,
|
|
8645
8670
|
[In.PLUGIN]: t && o ? t : null,
|
|
8646
|
-
[In.PROCESSING_TIME]: r && o ?
|
|
8671
|
+
[In.PROCESSING_TIME]: r && o ? Pi(r) : null
|
|
8647
8672
|
},
|
|
8648
8673
|
children: [
|
|
8649
|
-
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(
|
|
8674
|
+
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(Ai, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(cf, { content: e }) }),
|
|
8650
8675
|
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(Ku, { remarkPlugins: [sf], children: e })
|
|
8651
8676
|
]
|
|
8652
8677
|
}
|
|
@@ -8659,8 +8684,8 @@ export {
|
|
|
8659
8684
|
bu as SKIP,
|
|
8660
8685
|
an as convert,
|
|
8661
8686
|
M as factorySpace,
|
|
8662
|
-
|
|
8663
|
-
|
|
8687
|
+
Ui as find,
|
|
8688
|
+
Li as getDefaultExportFromCjs,
|
|
8664
8689
|
Qi as html,
|
|
8665
8690
|
Hs as longestStreak,
|
|
8666
8691
|
L as markdownLineEnding,
|
|
@@ -8668,7 +8693,7 @@ export {
|
|
|
8668
8693
|
kf as parse,
|
|
8669
8694
|
yf as parse$1,
|
|
8670
8695
|
sf as remarkGfm,
|
|
8671
|
-
|
|
8696
|
+
Nn as svg,
|
|
8672
8697
|
Yn as visit,
|
|
8673
|
-
|
|
8698
|
+
$r as visitParents
|
|
8674
8699
|
};
|