@versini/sassysaint 8.24.1 → 8.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.BlusPGZU.js → AboutChangelog.TW-2tXVE.js} +2 -2
- package/dist/chunks/{App.C2HbvbqP.js → App.Bk3n-sIs.js} +4219 -5120
- package/dist/chunks/Chart.iB4jOqWC.js +5185 -0
- package/dist/chunks/{ChatBubbleAssistant.aVbcjNdo.js → ChatBubbleAssistant.BixakVnl.js} +24 -24
- package/dist/chunks/{2ZEF3XTO.C7-IegIh.js → I3HPI4QX.kf2XRRn9.js} +2769 -2930
- package/dist/chunks/{index.D-MCKAQN.js → index.B4YQWIU9.js} +1 -1
- package/dist/chunks/{index.BLmTo_vb.js → index.C7L5rzAT.js} +1 -1
- package/dist/chunks/{index.BMk2TwcT.js → index.DYGXp_k3.js} +3 -3
- package/dist/chunks/{index.BhWKCbUC.js → index.RwlG7A5L.js} +1 -1
- package/dist/chunks/{index.CNFFyn4I.js → index.hTQeydQm.js} +2 -2
- package/dist/chunks/{index.dypCp4DG.js → index.sNc386oW.js} +2889 -2968
- package/dist/chunks/{useMarkdown.CYWBFhb4.js → useMarkdown.BfW5lCMH.js} +869 -873
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +3 -3
- package/package.json +7 -7
- package/dist/chunks/Chart.C1iBvC3s.js +0 -5325
@@ -1,13 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
|
8
|
-
import { getDefaultExportFromCjs as zt } from "./App.C2HbvbqP.js";
|
9
|
-
import Lr from "clsx";
|
10
|
-
const Lt = ({
|
1
|
+
import * as nn from "react/jsx-runtime";
|
2
|
+
import { jsx as se, jsxs as En, Fragment as wr } from "react/jsx-runtime";
|
3
|
+
import { le as Sr, unObfuscate as Cr, obfuscate as Er } from "./index.sNc386oW.js";
|
4
|
+
import Ir, { useState as Pt, useEffect as Tt, useRef as Re, useCallback as Pr } from "react";
|
5
|
+
import { getDefaultExportFromCjs as At } from "./App.Bk3n-sIs.js";
|
6
|
+
import Tr from "clsx";
|
7
|
+
const zt = ({
|
11
8
|
children: e,
|
12
9
|
fill: n,
|
13
10
|
viewBox: t,
|
@@ -18,8 +15,8 @@ const Lt = ({
|
|
18
15
|
semantic: a = !1,
|
19
16
|
...s
|
20
17
|
}) => {
|
21
|
-
const u =
|
22
|
-
return /* @__PURE__ */ se(
|
18
|
+
const u = Tr(l, r);
|
19
|
+
return /* @__PURE__ */ se(wr, { children: /* @__PURE__ */ En(
|
23
20
|
"svg",
|
24
21
|
{
|
25
22
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -50,14 +47,14 @@ try {
|
|
50
47
|
});
|
51
48
|
} catch {
|
52
49
|
}
|
53
|
-
const
|
50
|
+
const Ar = ({
|
54
51
|
className: e,
|
55
52
|
viewBox: n,
|
56
53
|
title: t,
|
57
54
|
monotone: r,
|
58
55
|
...i
|
59
|
-
}) => /* @__PURE__ */
|
60
|
-
|
56
|
+
}) => /* @__PURE__ */ En(
|
57
|
+
zt,
|
61
58
|
{
|
62
59
|
defaultViewBox: "0 0 448 512",
|
63
60
|
size: "size-5",
|
@@ -76,14 +73,14 @@ const Nr = ({
|
|
76
73
|
/* @__PURE__ */ se("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
77
74
|
]
|
78
75
|
}
|
79
|
-
),
|
76
|
+
), zr = ({
|
80
77
|
className: e,
|
81
78
|
viewBox: n,
|
82
79
|
title: t,
|
83
80
|
monotone: r,
|
84
81
|
...i
|
85
82
|
}) => /* @__PURE__ */ se(
|
86
|
-
|
83
|
+
zt,
|
87
84
|
{
|
88
85
|
defaultViewBox: "0 0 512 512",
|
89
86
|
size: "size-5",
|
@@ -107,11 +104,11 @@ try {
|
|
107
104
|
});
|
108
105
|
} catch {
|
109
106
|
}
|
110
|
-
const
|
111
|
-
const [r, i] =
|
107
|
+
const Lt = Ir.forwardRef(({ copyToClipboard: e, ...n }, t) => {
|
108
|
+
const [r, i] = Pt(!1), l = () => {
|
112
109
|
typeof e == "string" && (navigator.clipboard.writeText(e), i(!0)), typeof e == "function" && (navigator.clipboard.writeText(e()), i(!0));
|
113
110
|
};
|
114
|
-
return
|
111
|
+
return Tt(() => {
|
115
112
|
let o;
|
116
113
|
return r && (o = window.setTimeout(() => {
|
117
114
|
i(!1);
|
@@ -119,7 +116,7 @@ const Nt = Ar.forwardRef(({ copyToClipboard: e, ...n }, t) => {
|
|
119
116
|
clearTimeout(o);
|
120
117
|
};
|
121
118
|
}, [r]), /* @__PURE__ */ se(
|
122
|
-
|
119
|
+
Sr,
|
123
120
|
{
|
124
121
|
...n,
|
125
122
|
size: "small",
|
@@ -127,96 +124,96 @@ const Nt = Ar.forwardRef(({ copyToClipboard: e, ...n }, t) => {
|
|
127
124
|
label: r ? "Copied to clipboard" : "Copy to clipboard",
|
128
125
|
onClick: l,
|
129
126
|
disabled: r,
|
130
|
-
children: r ? /* @__PURE__ */ se(
|
127
|
+
children: r ? /* @__PURE__ */ se(Ar, { size: "size-3" }) : /* @__PURE__ */ se(zr, { size: "size-3" })
|
131
128
|
}
|
132
129
|
);
|
133
130
|
});
|
134
|
-
|
135
|
-
const
|
131
|
+
Lt.displayName = "ButtonCopy";
|
132
|
+
const Nt = -1, Qe = 0, Ye = 1, Xe = 2, In = 3, Pn = 4, Tn = 5, An = 6, vt = 7, _t = 8, $n = typeof self == "object" ? self : globalThis, Lr = (e, n) => {
|
136
133
|
const t = (i, l) => (e.set(l, i), i), r = (i) => {
|
137
134
|
if (e.has(i))
|
138
135
|
return e.get(i);
|
139
136
|
const [l, o] = n[i];
|
140
137
|
switch (l) {
|
141
|
-
case
|
142
|
-
case
|
138
|
+
case Qe:
|
139
|
+
case Nt:
|
143
140
|
return t(o, i);
|
144
|
-
case
|
141
|
+
case Ye: {
|
145
142
|
const a = t([], i);
|
146
143
|
for (const s of o)
|
147
144
|
a.push(r(s));
|
148
145
|
return a;
|
149
146
|
}
|
150
|
-
case
|
147
|
+
case Xe: {
|
151
148
|
const a = t({}, i);
|
152
149
|
for (const [s, u] of o)
|
153
150
|
a[r(s)] = r(u);
|
154
151
|
return a;
|
155
152
|
}
|
156
|
-
case
|
153
|
+
case In:
|
157
154
|
return t(new Date(o), i);
|
158
|
-
case
|
155
|
+
case Pn: {
|
159
156
|
const { source: a, flags: s } = o;
|
160
157
|
return t(new RegExp(a, s), i);
|
161
158
|
}
|
162
|
-
case
|
159
|
+
case Tn: {
|
163
160
|
const a = t(/* @__PURE__ */ new Map(), i);
|
164
161
|
for (const [s, u] of o)
|
165
162
|
a.set(r(s), r(u));
|
166
163
|
return a;
|
167
164
|
}
|
168
|
-
case
|
165
|
+
case An: {
|
169
166
|
const a = t(/* @__PURE__ */ new Set(), i);
|
170
167
|
for (const s of o)
|
171
168
|
a.add(r(s));
|
172
169
|
return a;
|
173
170
|
}
|
174
|
-
case
|
171
|
+
case vt: {
|
175
172
|
const { name: a, message: s } = o;
|
176
|
-
return t(new
|
173
|
+
return t(new $n[a](s), i);
|
177
174
|
}
|
178
|
-
case
|
175
|
+
case _t:
|
179
176
|
return t(BigInt(o), i);
|
180
177
|
case "BigInt":
|
181
178
|
return t(Object(BigInt(o)), i);
|
182
179
|
}
|
183
|
-
return t(new
|
180
|
+
return t(new $n[l](o), i);
|
184
181
|
};
|
185
182
|
return r;
|
186
|
-
},
|
183
|
+
}, Wn = (e) => Lr(/* @__PURE__ */ new Map(), e)(0), Ie = "", { toString: Nr } = {}, { keys: vr } = Object, De = (e) => {
|
187
184
|
const n = typeof e;
|
188
185
|
if (n !== "object" || !e)
|
189
|
-
return [
|
190
|
-
const t =
|
186
|
+
return [Qe, n];
|
187
|
+
const t = Nr.call(e).slice(8, -1);
|
191
188
|
switch (t) {
|
192
189
|
case "Array":
|
193
|
-
return [
|
190
|
+
return [Ye, Ie];
|
194
191
|
case "Object":
|
195
|
-
return [
|
192
|
+
return [Xe, Ie];
|
196
193
|
case "Date":
|
197
|
-
return [
|
194
|
+
return [In, Ie];
|
198
195
|
case "RegExp":
|
199
|
-
return [
|
196
|
+
return [Pn, Ie];
|
200
197
|
case "Map":
|
201
|
-
return [
|
198
|
+
return [Tn, Ie];
|
202
199
|
case "Set":
|
203
|
-
return [
|
200
|
+
return [An, Ie];
|
204
201
|
}
|
205
|
-
return t.includes("Array") ? [
|
206
|
-
},
|
202
|
+
return t.includes("Array") ? [Ye, t] : t.includes("Error") ? [vt, t] : [Xe, t];
|
203
|
+
}, qe = ([e, n]) => e === Qe && (n === "function" || n === "symbol"), _r = (e, n, t, r) => {
|
207
204
|
const i = (o, a) => {
|
208
205
|
const s = r.push(o) - 1;
|
209
206
|
return t.set(a, s), s;
|
210
207
|
}, l = (o) => {
|
211
208
|
if (t.has(o))
|
212
209
|
return t.get(o);
|
213
|
-
let [a, s] =
|
210
|
+
let [a, s] = De(o);
|
214
211
|
switch (a) {
|
215
|
-
case
|
212
|
+
case Qe: {
|
216
213
|
let c = o;
|
217
214
|
switch (s) {
|
218
215
|
case "bigint":
|
219
|
-
a =
|
216
|
+
a = _t, c = o.toString();
|
220
217
|
break;
|
221
218
|
case "function":
|
222
219
|
case "symbol":
|
@@ -225,11 +222,11 @@ const vt = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, Tn = 4, An = 5, zn = 6, _t = 7, R
|
|
225
222
|
c = null;
|
226
223
|
break;
|
227
224
|
case "undefined":
|
228
|
-
return i([
|
225
|
+
return i([Nt], o);
|
229
226
|
}
|
230
227
|
return i([a, c], o);
|
231
228
|
}
|
232
|
-
case
|
229
|
+
case Ye: {
|
233
230
|
if (s)
|
234
231
|
return i([s, [...o]], o);
|
235
232
|
const c = [], p = i([a, c], o);
|
@@ -237,7 +234,7 @@ const vt = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, Tn = 4, An = 5, zn = 6, _t = 7, R
|
|
237
234
|
c.push(l(d));
|
238
235
|
return p;
|
239
236
|
}
|
240
|
-
case
|
237
|
+
case Xe: {
|
241
238
|
if (s)
|
242
239
|
switch (s) {
|
243
240
|
case "BigInt":
|
@@ -250,26 +247,26 @@ const vt = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, Tn = 4, An = 5, zn = 6, _t = 7, R
|
|
250
247
|
if (n && "toJSON" in o)
|
251
248
|
return l(o.toJSON());
|
252
249
|
const c = [], p = i([a, c], o);
|
253
|
-
for (const d of
|
254
|
-
(e ||
|
250
|
+
for (const d of vr(o))
|
251
|
+
(e || !qe(De(o[d]))) && c.push([l(d), l(o[d])]);
|
255
252
|
return p;
|
256
253
|
}
|
257
|
-
case
|
254
|
+
case In:
|
258
255
|
return i([a, o.toISOString()], o);
|
259
|
-
case
|
256
|
+
case Pn: {
|
260
257
|
const { source: c, flags: p } = o;
|
261
258
|
return i([a, { source: c, flags: p }], o);
|
262
259
|
}
|
263
|
-
case
|
260
|
+
case Tn: {
|
264
261
|
const c = [], p = i([a, c], o);
|
265
262
|
for (const [d, h] of o)
|
266
|
-
(e || !(
|
263
|
+
(e || !(qe(De(d)) || qe(De(h)))) && c.push([l(d), l(h)]);
|
267
264
|
return p;
|
268
265
|
}
|
269
|
-
case
|
266
|
+
case An: {
|
270
267
|
const c = [], p = i([a, c], o);
|
271
268
|
for (const d of o)
|
272
|
-
(e ||
|
269
|
+
(e || !qe(De(d))) && c.push(l(d));
|
273
270
|
return p;
|
274
271
|
}
|
275
272
|
}
|
@@ -277,13 +274,13 @@ const vt = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, Tn = 4, An = 5, zn = 6, _t = 7, R
|
|
277
274
|
return i([a, { name: s, message: u }], o);
|
278
275
|
};
|
279
276
|
return l;
|
280
|
-
},
|
277
|
+
}, Kn = (e, { json: n, lossy: t } = {}) => {
|
281
278
|
const r = [];
|
282
|
-
return
|
279
|
+
return _r(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
283
280
|
}, be = typeof structuredClone == "function" ? (
|
284
281
|
/* c8 ignore start */
|
285
|
-
(e, n) => n && ("json" in n || "lossy" in n) ? Kn(
|
286
|
-
) : (e, n) => Kn(
|
282
|
+
(e, n) => n && ("json" in n || "lossy" in n) ? Wn(Kn(e, n)) : structuredClone(e)
|
283
|
+
) : (e, n) => Wn(Kn(e, n)), Rt = (
|
287
284
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
288
285
|
/**
|
289
286
|
* @type {(
|
@@ -299,22 +296,22 @@ const vt = -1, Je = 0, Xe = 1, Qe = 2, Pn = 3, Tn = 4, An = 5, zn = 6, _t = 7, R
|
|
299
296
|
*/
|
300
297
|
function(e) {
|
301
298
|
if (e == null)
|
302
|
-
return
|
299
|
+
return Fr;
|
303
300
|
if (typeof e == "string")
|
304
|
-
return
|
301
|
+
return Dr(e);
|
305
302
|
if (typeof e == "object")
|
306
|
-
return
|
303
|
+
return Rr(e);
|
307
304
|
if (typeof e == "function")
|
308
|
-
return
|
305
|
+
return zn(e);
|
309
306
|
throw new Error("Expected function, string, or array as `test`");
|
310
307
|
}
|
311
308
|
);
|
312
|
-
function
|
309
|
+
function Rr(e) {
|
313
310
|
const n = [];
|
314
311
|
let t = -1;
|
315
312
|
for (; ++t < e.length; )
|
316
|
-
n[t] =
|
317
|
-
return
|
313
|
+
n[t] = Rt(e[t]);
|
314
|
+
return zn(r);
|
318
315
|
function r(...i) {
|
319
316
|
let l = -1;
|
320
317
|
for (; ++l < n.length; )
|
@@ -322,16 +319,16 @@ function Or(e) {
|
|
322
319
|
return !1;
|
323
320
|
}
|
324
321
|
}
|
325
|
-
function
|
326
|
-
return
|
322
|
+
function Dr(e) {
|
323
|
+
return zn(n);
|
327
324
|
function n(t) {
|
328
325
|
return t.tagName === e;
|
329
326
|
}
|
330
327
|
}
|
331
|
-
function
|
328
|
+
function zn(e) {
|
332
329
|
return n;
|
333
330
|
function n(t, r, i) {
|
334
|
-
return !!(
|
331
|
+
return !!(Or(t) && e.call(
|
335
332
|
this,
|
336
333
|
t,
|
337
334
|
typeof r == "number" ? r : void 0,
|
@@ -339,26 +336,26 @@ function Ln(e) {
|
|
339
336
|
));
|
340
337
|
}
|
341
338
|
}
|
342
|
-
function
|
339
|
+
function Fr(e) {
|
343
340
|
return !!(e && typeof e == "object" && "type" in e && e.type === "element" && "tagName" in e && typeof e.tagName == "string");
|
344
341
|
}
|
345
|
-
function
|
342
|
+
function Or(e) {
|
346
343
|
return e !== null && typeof e == "object" && "type" in e && "tagName" in e;
|
347
344
|
}
|
348
|
-
const
|
349
|
-
function
|
345
|
+
const Mr = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, Br = /^[a-zA-Z]:\\/;
|
346
|
+
function jr(e) {
|
350
347
|
if (typeof e != "string")
|
351
348
|
throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
|
352
|
-
return
|
349
|
+
return Br.test(e) ? !1 : Mr.test(e);
|
353
350
|
}
|
354
|
-
function
|
351
|
+
function Hr(e) {
|
355
352
|
const n = String(e || "").trim();
|
356
353
|
return n ? n.split(/[ \t\n\r\f]+/g) : [];
|
357
354
|
}
|
358
|
-
function
|
355
|
+
function Vr(e) {
|
359
356
|
return e.join(" ").trim();
|
360
357
|
}
|
361
|
-
const
|
358
|
+
const Dt = (
|
362
359
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
363
360
|
/**
|
364
361
|
* @type {(
|
@@ -375,22 +372,22 @@ const Ft = (
|
|
375
372
|
*/
|
376
373
|
function(e) {
|
377
374
|
if (e == null)
|
378
|
-
return
|
375
|
+
return Wr;
|
379
376
|
if (typeof e == "function")
|
380
|
-
return
|
377
|
+
return Je(e);
|
381
378
|
if (typeof e == "object")
|
382
|
-
return Array.isArray(e) ?
|
379
|
+
return Array.isArray(e) ? Ur(e) : qr(e);
|
383
380
|
if (typeof e == "string")
|
384
|
-
return
|
381
|
+
return $r(e);
|
385
382
|
throw new Error("Expected function, string, or object as test");
|
386
383
|
}
|
387
384
|
);
|
388
|
-
function
|
385
|
+
function Ur(e) {
|
389
386
|
const n = [];
|
390
387
|
let t = -1;
|
391
388
|
for (; ++t < e.length; )
|
392
|
-
n[t] =
|
393
|
-
return
|
389
|
+
n[t] = Dt(e[t]);
|
390
|
+
return Je(r);
|
394
391
|
function r(...i) {
|
395
392
|
let l = -1;
|
396
393
|
for (; ++l < n.length; )
|
@@ -398,12 +395,12 @@ function Wr(e) {
|
|
398
395
|
return !1;
|
399
396
|
}
|
400
397
|
}
|
401
|
-
function
|
398
|
+
function qr(e) {
|
402
399
|
const n = (
|
403
400
|
/** @type {Record<string, unknown>} */
|
404
401
|
e
|
405
402
|
);
|
406
|
-
return
|
403
|
+
return Je(t);
|
407
404
|
function t(r) {
|
408
405
|
const i = (
|
409
406
|
/** @type {Record<string, unknown>} */
|
@@ -416,16 +413,16 @@ function Kr(e) {
|
|
416
413
|
return !0;
|
417
414
|
}
|
418
415
|
}
|
419
|
-
function
|
420
|
-
return
|
416
|
+
function $r(e) {
|
417
|
+
return Je(n);
|
421
418
|
function n(t) {
|
422
419
|
return t && t.type === e;
|
423
420
|
}
|
424
421
|
}
|
425
|
-
function
|
422
|
+
function Je(e) {
|
426
423
|
return n;
|
427
424
|
function n(t, r, i) {
|
428
|
-
return !!(
|
425
|
+
return !!(Kr(t) && e.call(
|
429
426
|
this,
|
430
427
|
t,
|
431
428
|
typeof r == "number" ? r : void 0,
|
@@ -433,17 +430,17 @@ function Ze(e) {
|
|
433
430
|
));
|
434
431
|
}
|
435
432
|
}
|
436
|
-
function
|
433
|
+
function Wr() {
|
437
434
|
return !0;
|
438
435
|
}
|
439
|
-
function
|
436
|
+
function Kr(e) {
|
440
437
|
return e !== null && typeof e == "object" && "type" in e;
|
441
438
|
}
|
442
|
-
const
|
443
|
-
function
|
439
|
+
const Ft = [], Gr = !0, Gn = !1, Yr = "skip";
|
440
|
+
function Xr(e, n, t, r) {
|
444
441
|
let i;
|
445
442
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
446
|
-
const l =
|
443
|
+
const l = Dt(i), o = r ? -1 : 1;
|
447
444
|
a(e, void 0, [])();
|
448
445
|
function a(s, u, c) {
|
449
446
|
const p = (
|
@@ -464,18 +461,18 @@ function Zr(e, n, t, r) {
|
|
464
461
|
}
|
465
462
|
return d;
|
466
463
|
function d() {
|
467
|
-
let h =
|
468
|
-
if ((!n || l(s, u, c[c.length - 1] || void 0)) && (h =
|
464
|
+
let h = Ft, w, b, z;
|
465
|
+
if ((!n || l(s, u, c[c.length - 1] || void 0)) && (h = Qr(t(s, c)), h[0] === Gn))
|
469
466
|
return h;
|
470
467
|
if ("children" in s && s.children) {
|
471
468
|
const k = (
|
472
469
|
/** @type {UnistParent} */
|
473
470
|
s
|
474
471
|
);
|
475
|
-
if (k.children && h[0] !==
|
472
|
+
if (k.children && h[0] !== Yr)
|
476
473
|
for (b = (r ? k.children.length : -1) + o, z = c.concat(k); b > -1 && b < k.children.length; ) {
|
477
474
|
const A = k.children[b];
|
478
|
-
if (w = a(A, b, z)(), w[0] ===
|
475
|
+
if (w = a(A, b, z)(), w[0] === Gn)
|
479
476
|
return w;
|
480
477
|
b = typeof w[1] == "number" ? w[1] : b + o;
|
481
478
|
}
|
@@ -484,28 +481,28 @@ function Zr(e, n, t, r) {
|
|
484
481
|
}
|
485
482
|
}
|
486
483
|
}
|
487
|
-
function
|
488
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
484
|
+
function Qr(e) {
|
485
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [Gr, e] : e == null ? Ft : [e];
|
489
486
|
}
|
490
|
-
function
|
487
|
+
function Ze(e, n, t, r) {
|
491
488
|
let i, l, o;
|
492
|
-
typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r),
|
489
|
+
typeof n == "function" && typeof t != "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), Xr(e, l, a, i);
|
493
490
|
function a(s, u) {
|
494
491
|
const c = u[u.length - 1], p = c ? c.children.indexOf(s) : void 0;
|
495
492
|
return o(s, p, c);
|
496
493
|
}
|
497
494
|
}
|
498
|
-
const
|
499
|
-
function
|
500
|
-
const n = e ||
|
495
|
+
const Jr = ["http", "https"], Zr = ["nofollow"], ei = {};
|
496
|
+
function ni(e) {
|
497
|
+
const n = e || ei, t = n.protocols || Jr, r = Rt(n.test);
|
501
498
|
return function(i) {
|
502
|
-
|
499
|
+
Ze(i, "element", function(l, o, a) {
|
503
500
|
if (l.tagName === "a" && typeof l.properties.href == "string" && r(l, o, a)) {
|
504
501
|
const s = l.properties.href;
|
505
|
-
if (
|
506
|
-
const u =
|
502
|
+
if (jr(s) ? t.includes(s.slice(0, s.indexOf(":"))) : s.startsWith("//")) {
|
503
|
+
const u = Fe(n.content, l), c = u && !Array.isArray(u) ? [u] : u, p = Fe(n.rel, l) || Zr, d = typeof p == "string" ? Hr(p) : p, h = Fe(n.target, l), w = Fe(n.properties, l);
|
507
504
|
if (w && Object.assign(l.properties, be(w)), d.length > 0 && (l.properties.rel = [...d]), h && (l.properties.target = h), c) {
|
508
|
-
const b =
|
505
|
+
const b = Fe(n.contentProperties, l) || {};
|
509
506
|
l.children.push({
|
510
507
|
type: "element",
|
511
508
|
tagName: "span",
|
@@ -518,10 +515,10 @@ function ii(e) {
|
|
518
515
|
});
|
519
516
|
};
|
520
517
|
}
|
521
|
-
function
|
518
|
+
function Fe(e, n) {
|
522
519
|
return typeof e == "function" ? e(n) : e;
|
523
520
|
}
|
524
|
-
function
|
521
|
+
function gu(e) {
|
525
522
|
const n = [], t = String(e || "");
|
526
523
|
let r = t.indexOf(","), i = 0, l = !1;
|
527
524
|
for (; !l; ) {
|
@@ -531,24 +528,24 @@ function bu(e) {
|
|
531
528
|
}
|
532
529
|
return n;
|
533
530
|
}
|
534
|
-
function
|
531
|
+
function ti(e, n) {
|
535
532
|
const t = {};
|
536
533
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
537
534
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
538
535
|
).trim();
|
539
536
|
}
|
540
|
-
const
|
541
|
-
function
|
542
|
-
return (
|
537
|
+
const ri = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ii = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, li = {};
|
538
|
+
function Yn(e, n) {
|
539
|
+
return (li.jsx ? ii : ri).test(e);
|
543
540
|
}
|
544
|
-
const
|
545
|
-
function
|
546
|
-
return typeof e == "object" ? e.type === "text" ?
|
541
|
+
const oi = /[ \t\n\f\r]/g;
|
542
|
+
function ai(e) {
|
543
|
+
return typeof e == "object" ? e.type === "text" ? Xn(e.value) : !1 : Xn(e);
|
547
544
|
}
|
548
|
-
function
|
549
|
-
return e.replace(
|
545
|
+
function Xn(e) {
|
546
|
+
return e.replace(oi, "") === "";
|
550
547
|
}
|
551
|
-
class
|
548
|
+
class He {
|
552
549
|
/**
|
553
550
|
* @param {SchemaType['property']} property
|
554
551
|
* Property.
|
@@ -563,16 +560,16 @@ class Ve {
|
|
563
560
|
this.normal = t, this.property = n, r && (this.space = r);
|
564
561
|
}
|
565
562
|
}
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
function
|
563
|
+
He.prototype.normal = {};
|
564
|
+
He.prototype.property = {};
|
565
|
+
He.prototype.space = void 0;
|
566
|
+
function Ot(e, n) {
|
570
567
|
const t = {}, r = {};
|
571
568
|
for (const i of e)
|
572
569
|
Object.assign(t, i.property), Object.assign(r, i.normal);
|
573
|
-
return new
|
570
|
+
return new He(t, r, n);
|
574
571
|
}
|
575
|
-
function
|
572
|
+
function dn(e) {
|
576
573
|
return e.toLowerCase();
|
577
574
|
}
|
578
575
|
class J {
|
@@ -600,16 +597,16 @@ J.prototype.overloadedBoolean = !1;
|
|
600
597
|
J.prototype.property = "";
|
601
598
|
J.prototype.spaceSeparated = !1;
|
602
599
|
J.prototype.space = void 0;
|
603
|
-
let
|
604
|
-
const _ = we(), $ = we(),
|
600
|
+
let ui = 0;
|
601
|
+
const _ = we(), $ = we(), Mt = we(), x = we(), V = we(), Te = we(), ee = we();
|
605
602
|
function we() {
|
606
|
-
return 2 ** ++
|
603
|
+
return 2 ** ++ui;
|
607
604
|
}
|
608
|
-
const
|
605
|
+
const gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: _, booleanish: $, commaOrSpaceSeparated: ee, commaSeparated: Te, number: x, overloadedBoolean: Mt, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), tn = (
|
609
606
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
610
|
-
Object.keys(
|
607
|
+
Object.keys(gn)
|
611
608
|
);
|
612
|
-
class
|
609
|
+
class Ln extends J {
|
613
610
|
/**
|
614
611
|
* @constructor
|
615
612
|
* @param {string} property
|
@@ -625,31 +622,31 @@ class Nn extends J {
|
|
625
622
|
*/
|
626
623
|
constructor(n, t, r, i) {
|
627
624
|
let l = -1;
|
628
|
-
if (super(n, t),
|
629
|
-
for (; ++l <
|
630
|
-
const o =
|
631
|
-
|
625
|
+
if (super(n, t), Qn(this, "space", i), typeof r == "number")
|
626
|
+
for (; ++l < tn.length; ) {
|
627
|
+
const o = tn[l];
|
628
|
+
Qn(this, tn[l], (r & gn[o]) === gn[o]);
|
632
629
|
}
|
633
630
|
}
|
634
631
|
}
|
635
|
-
|
636
|
-
function
|
632
|
+
Ln.prototype.defined = !0;
|
633
|
+
function Qn(e, n, t) {
|
637
634
|
t && (e[n] = t);
|
638
635
|
}
|
639
636
|
function ze(e) {
|
640
637
|
const n = {}, t = {};
|
641
638
|
for (const [r, i] of Object.entries(e.properties)) {
|
642
|
-
const l = new
|
639
|
+
const l = new Ln(
|
643
640
|
r,
|
644
641
|
e.transform(e.attributes || {}, r),
|
645
642
|
i,
|
646
643
|
e.space
|
647
644
|
);
|
648
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[
|
645
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[dn(r)] = r, t[dn(l.attribute)] = r;
|
649
646
|
}
|
650
|
-
return new
|
647
|
+
return new He(n, t, e.space);
|
651
648
|
}
|
652
|
-
const
|
649
|
+
const Bt = ze({
|
653
650
|
properties: {
|
654
651
|
ariaActiveDescendant: null,
|
655
652
|
ariaAtomic: $,
|
@@ -705,13 +702,13 @@ const jt = ze({
|
|
705
702
|
return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
|
706
703
|
}
|
707
704
|
});
|
708
|
-
function
|
705
|
+
function jt(e, n) {
|
709
706
|
return n in e ? e[n] : n;
|
710
707
|
}
|
711
|
-
function
|
712
|
-
return
|
708
|
+
function Ht(e, n) {
|
709
|
+
return jt(e, n.toLowerCase());
|
713
710
|
}
|
714
|
-
const
|
711
|
+
const si = ze({
|
715
712
|
attributes: {
|
716
713
|
acceptcharset: "accept-charset",
|
717
714
|
classname: "class",
|
@@ -759,7 +756,7 @@ const hi = ze({
|
|
759
756
|
dir: null,
|
760
757
|
dirName: null,
|
761
758
|
disabled: _,
|
762
|
-
download:
|
759
|
+
download: Mt,
|
763
760
|
draggable: $,
|
764
761
|
encType: null,
|
765
762
|
enterKeyHint: null,
|
@@ -1071,8 +1068,8 @@ const hi = ze({
|
|
1071
1068
|
unselectable: null
|
1072
1069
|
},
|
1073
1070
|
space: "html",
|
1074
|
-
transform:
|
1075
|
-
}),
|
1071
|
+
transform: Ht
|
1072
|
+
}), ci = ze({
|
1076
1073
|
attributes: {
|
1077
1074
|
accentHeight: "accent-height",
|
1078
1075
|
alignmentBaseline: "alignment-baseline",
|
@@ -1630,8 +1627,8 @@ const hi = ze({
|
|
1630
1627
|
zoomAndPan: null
|
1631
1628
|
},
|
1632
1629
|
space: "svg",
|
1633
|
-
transform:
|
1634
|
-
}),
|
1630
|
+
transform: jt
|
1631
|
+
}), Vt = ze({
|
1635
1632
|
properties: {
|
1636
1633
|
xLinkActuate: null,
|
1637
1634
|
xLinkArcRole: null,
|
@@ -1645,18 +1642,18 @@ const hi = ze({
|
|
1645
1642
|
transform(e, n) {
|
1646
1643
|
return "xlink:" + n.slice(5).toLowerCase();
|
1647
1644
|
}
|
1648
|
-
}),
|
1645
|
+
}), Ut = ze({
|
1649
1646
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
1650
1647
|
properties: { xmlnsXLink: null, xmlns: null },
|
1651
1648
|
space: "xmlns",
|
1652
|
-
transform:
|
1653
|
-
}),
|
1649
|
+
transform: Ht
|
1650
|
+
}), qt = ze({
|
1654
1651
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
1655
1652
|
space: "xml",
|
1656
1653
|
transform(e, n) {
|
1657
1654
|
return "xml:" + n.slice(3).toLowerCase();
|
1658
1655
|
}
|
1659
|
-
}),
|
1656
|
+
}), pi = {
|
1660
1657
|
classId: "classID",
|
1661
1658
|
dataType: "datatype",
|
1662
1659
|
itemId: "itemID",
|
@@ -1674,41 +1671,41 @@ const hi = ze({
|
|
1674
1671
|
xLinkTitle: "xlinkTitle",
|
1675
1672
|
xLinkType: "xlinkType",
|
1676
1673
|
xmlnsXLink: "xmlnsXlink"
|
1677
|
-
},
|
1678
|
-
function
|
1679
|
-
const t =
|
1674
|
+
}, hi = /[A-Z]/g, Jn = /-[a-z]/g, fi = /^data[-\w.:]+$/i;
|
1675
|
+
function mi(e, n) {
|
1676
|
+
const t = dn(n);
|
1680
1677
|
let r = n, i = J;
|
1681
1678
|
if (t in e.normal)
|
1682
1679
|
return e.property[e.normal[t]];
|
1683
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
1680
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && fi.test(n)) {
|
1684
1681
|
if (n.charAt(4) === "-") {
|
1685
|
-
const l = n.slice(5).replace(
|
1682
|
+
const l = n.slice(5).replace(Jn, gi);
|
1686
1683
|
r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
1687
1684
|
} else {
|
1688
1685
|
const l = n.slice(4);
|
1689
|
-
if (!
|
1690
|
-
let o = l.replace(
|
1686
|
+
if (!Jn.test(l)) {
|
1687
|
+
let o = l.replace(hi, di);
|
1691
1688
|
o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
|
1692
1689
|
}
|
1693
1690
|
}
|
1694
|
-
i =
|
1691
|
+
i = Ln;
|
1695
1692
|
}
|
1696
1693
|
return new i(r, n);
|
1697
1694
|
}
|
1698
|
-
function
|
1695
|
+
function di(e) {
|
1699
1696
|
return "-" + e.toLowerCase();
|
1700
1697
|
}
|
1701
|
-
function
|
1698
|
+
function gi(e) {
|
1702
1699
|
return e.charAt(1).toUpperCase();
|
1703
1700
|
}
|
1704
|
-
const
|
1705
|
-
var Pe = {},
|
1706
|
-
function
|
1707
|
-
if (
|
1708
|
-
|
1701
|
+
const yi = Ot([Bt, si, Vt, Ut, qt], "html"), Nn = Ot([Bt, ci, Vt, Ut, qt], "svg");
|
1702
|
+
var Pe = {}, rn, Zn;
|
1703
|
+
function xi() {
|
1704
|
+
if (Zn) return rn;
|
1705
|
+
Zn = 1;
|
1709
1706
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
1710
1707
|
`, u = "/", c = "*", p = "", d = "comment", h = "declaration";
|
1711
|
-
|
1708
|
+
rn = function(b, z) {
|
1712
1709
|
if (typeof b != "string")
|
1713
1710
|
throw new TypeError("First argument must be a string");
|
1714
1711
|
if (!b) return [];
|
@@ -1790,17 +1787,17 @@ function wi() {
|
|
1790
1787
|
function w(b) {
|
1791
1788
|
return b ? b.replace(a, p) : p;
|
1792
1789
|
}
|
1793
|
-
return
|
1790
|
+
return rn;
|
1794
1791
|
}
|
1795
|
-
var
|
1796
|
-
function
|
1797
|
-
if (
|
1798
|
-
|
1792
|
+
var et;
|
1793
|
+
function ki() {
|
1794
|
+
if (et) return Pe;
|
1795
|
+
et = 1;
|
1799
1796
|
var e = Pe && Pe.__importDefault || function(r) {
|
1800
1797
|
return r && r.__esModule ? r : { default: r };
|
1801
1798
|
};
|
1802
1799
|
Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.default = t;
|
1803
|
-
var n = e(/* @__PURE__ */
|
1800
|
+
var n = e(/* @__PURE__ */ xi());
|
1804
1801
|
function t(r, i) {
|
1805
1802
|
var l = null;
|
1806
1803
|
if (!r || typeof r != "string")
|
@@ -1815,9 +1812,9 @@ function Si() {
|
|
1815
1812
|
}
|
1816
1813
|
return Pe;
|
1817
1814
|
}
|
1818
|
-
var
|
1819
|
-
const
|
1820
|
-
function
|
1815
|
+
var bi = /* @__PURE__ */ ki();
|
1816
|
+
const nt = /* @__PURE__ */ At(bi), wi = nt.default || nt, $t = Wt("end"), vn = Wt("start");
|
1817
|
+
function Wt(e) {
|
1821
1818
|
return n;
|
1822
1819
|
function n(t) {
|
1823
1820
|
const r = t && t.position && t.position[e] || {};
|
@@ -1829,21 +1826,21 @@ function Kt(e) {
|
|
1829
1826
|
};
|
1830
1827
|
}
|
1831
1828
|
}
|
1832
|
-
function
|
1833
|
-
const n =
|
1829
|
+
function Si(e) {
|
1830
|
+
const n = vn(e), t = $t(e);
|
1834
1831
|
if (n && t)
|
1835
1832
|
return { start: n, end: t };
|
1836
1833
|
}
|
1837
|
-
function
|
1838
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
1834
|
+
function Me(e) {
|
1835
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? tt(e.position) : "start" in e || "end" in e ? tt(e) : "line" in e || "column" in e ? yn(e) : "";
|
1839
1836
|
}
|
1840
|
-
function
|
1841
|
-
return
|
1837
|
+
function yn(e) {
|
1838
|
+
return rt(e && e.line) + ":" + rt(e && e.column);
|
1842
1839
|
}
|
1843
|
-
function
|
1844
|
-
return
|
1840
|
+
function tt(e) {
|
1841
|
+
return yn(e && e.start) + "-" + yn(e && e.end);
|
1845
1842
|
}
|
1846
|
-
function
|
1843
|
+
function rt(e) {
|
1847
1844
|
return e && typeof e == "number" ? e : 1;
|
1848
1845
|
}
|
1849
1846
|
class Y extends Error {
|
@@ -1917,7 +1914,7 @@ class Y extends Error {
|
|
1917
1914
|
s && (l.place = s.position);
|
1918
1915
|
}
|
1919
1916
|
const a = l.place && "start" in l.place ? l.place.start : l.place;
|
1920
|
-
this.ancestors = l.ancestors || void 0, this.cause = l.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 =
|
1917
|
+
this.ancestors = l.ancestors || void 0, this.cause = l.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 = Me(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = o && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "";
|
1921
1918
|
}
|
1922
1919
|
}
|
1923
1920
|
Y.prototype.file = "";
|
@@ -1933,8 +1930,8 @@ Y.prototype.fatal = void 0;
|
|
1933
1930
|
Y.prototype.place = void 0;
|
1934
1931
|
Y.prototype.ruleId = void 0;
|
1935
1932
|
Y.prototype.source = void 0;
|
1936
|
-
const
|
1937
|
-
function
|
1933
|
+
const _n = {}.hasOwnProperty, Ci = /* @__PURE__ */ new Map(), Ei = /[A-Z]/g, Ii = /-([a-z])/g, Pi = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ti = /* @__PURE__ */ new Set(["td", "th"]), Kt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
1934
|
+
function Ai(e, n) {
|
1938
1935
|
if (!n || n.Fragment === void 0)
|
1939
1936
|
throw new TypeError("Expected `Fragment` in options");
|
1940
1937
|
const t = n.filePath || void 0;
|
@@ -1944,13 +1941,13 @@ function Ni(e, n) {
|
|
1944
1941
|
throw new TypeError(
|
1945
1942
|
"Expected `jsxDEV` in options when `development: true`"
|
1946
1943
|
);
|
1947
|
-
r =
|
1944
|
+
r = Fi(t, n.jsxDEV);
|
1948
1945
|
} else {
|
1949
1946
|
if (typeof n.jsx != "function")
|
1950
1947
|
throw new TypeError("Expected `jsx` in production options");
|
1951
1948
|
if (typeof n.jsxs != "function")
|
1952
1949
|
throw new TypeError("Expected `jsxs` in production options");
|
1953
|
-
r =
|
1950
|
+
r = Di(t, n.jsx, n.jsxs);
|
1954
1951
|
}
|
1955
1952
|
const i = {
|
1956
1953
|
Fragment: n.Fragment,
|
@@ -1963,10 +1960,10 @@ function Ni(e, n) {
|
|
1963
1960
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
1964
1961
|
passKeys: n.passKeys !== !1,
|
1965
1962
|
passNode: n.passNode || !1,
|
1966
|
-
schema: n.space === "svg" ?
|
1963
|
+
schema: n.space === "svg" ? Nn : yi,
|
1967
1964
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
1968
1965
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
1969
|
-
}, l =
|
1966
|
+
}, l = Gt(i, e, void 0);
|
1970
1967
|
return l && typeof l != "string" ? l : i.create(
|
1971
1968
|
e,
|
1972
1969
|
i.Fragment,
|
@@ -1974,31 +1971,31 @@ function Ni(e, n) {
|
|
1974
1971
|
void 0
|
1975
1972
|
);
|
1976
1973
|
}
|
1977
|
-
function
|
1974
|
+
function Gt(e, n, t) {
|
1978
1975
|
if (n.type === "element")
|
1979
|
-
return
|
1976
|
+
return zi(e, n, t);
|
1980
1977
|
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
1981
|
-
return
|
1978
|
+
return Li(e, n);
|
1982
1979
|
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
|
1983
|
-
return
|
1980
|
+
return vi(e, n, t);
|
1984
1981
|
if (n.type === "mdxjsEsm")
|
1985
|
-
return
|
1982
|
+
return Ni(e, n);
|
1986
1983
|
if (n.type === "root")
|
1987
|
-
return
|
1984
|
+
return _i(e, n, t);
|
1988
1985
|
if (n.type === "text")
|
1989
|
-
return
|
1986
|
+
return Ri(e, n);
|
1990
1987
|
}
|
1991
|
-
function
|
1988
|
+
function zi(e, n, t) {
|
1992
1989
|
const r = e.schema;
|
1993
1990
|
let i = r;
|
1994
|
-
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
1995
|
-
const l =
|
1996
|
-
let a =
|
1997
|
-
return
|
1998
|
-
return typeof s == "string" ? !
|
1999
|
-
})),
|
2000
|
-
}
|
2001
|
-
function
|
1991
|
+
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Nn, e.schema = i), e.ancestors.push(n);
|
1992
|
+
const l = Xt(e, n.tagName, !1), o = Oi(e, n);
|
1993
|
+
let a = Dn(e, n);
|
1994
|
+
return Pi.has(n.tagName) && (a = a.filter(function(s) {
|
1995
|
+
return typeof s == "string" ? !ai(s) : !0;
|
1996
|
+
})), Yt(e, o, l, n), Rn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
1997
|
+
}
|
1998
|
+
function Li(e, n) {
|
2002
1999
|
if (n.data && n.data.estree && e.evaluater) {
|
2003
2000
|
const r = n.data.estree.body[0];
|
2004
2001
|
return (
|
@@ -2006,50 +2003,50 @@ function _i(e, n) {
|
|
2006
2003
|
e.evaluater.evaluateExpression(r.expression)
|
2007
2004
|
);
|
2008
2005
|
}
|
2009
|
-
|
2006
|
+
je(e, n.position);
|
2010
2007
|
}
|
2011
|
-
function
|
2008
|
+
function Ni(e, n) {
|
2012
2009
|
if (n.data && n.data.estree && e.evaluater)
|
2013
2010
|
return (
|
2014
2011
|
/** @type {Child | undefined} */
|
2015
2012
|
e.evaluater.evaluateProgram(n.data.estree)
|
2016
2013
|
);
|
2017
|
-
|
2014
|
+
je(e, n.position);
|
2018
2015
|
}
|
2019
|
-
function
|
2016
|
+
function vi(e, n, t) {
|
2020
2017
|
const r = e.schema;
|
2021
2018
|
let i = r;
|
2022
|
-
n.name === "svg" && r.space === "html" && (i =
|
2023
|
-
const l = n.name === null ? e.Fragment :
|
2024
|
-
return
|
2019
|
+
n.name === "svg" && r.space === "html" && (i = Nn, e.schema = i), e.ancestors.push(n);
|
2020
|
+
const l = n.name === null ? e.Fragment : Xt(e, n.name, !0), o = Mi(e, n), a = Dn(e, n);
|
2021
|
+
return Yt(e, o, l, n), Rn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
2025
2022
|
}
|
2026
|
-
function
|
2023
|
+
function _i(e, n, t) {
|
2027
2024
|
const r = {};
|
2028
|
-
return
|
2025
|
+
return Rn(r, Dn(e, n)), e.create(n, e.Fragment, r, t);
|
2029
2026
|
}
|
2030
|
-
function
|
2027
|
+
function Ri(e, n) {
|
2031
2028
|
return n.value;
|
2032
2029
|
}
|
2033
|
-
function
|
2030
|
+
function Yt(e, n, t, r) {
|
2034
2031
|
typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
|
2035
2032
|
}
|
2036
|
-
function
|
2033
|
+
function Rn(e, n) {
|
2037
2034
|
if (n.length > 0) {
|
2038
2035
|
const t = n.length > 1 ? n : n[0];
|
2039
2036
|
t && (e.children = t);
|
2040
2037
|
}
|
2041
2038
|
}
|
2042
|
-
function
|
2039
|
+
function Di(e, n, t) {
|
2043
2040
|
return r;
|
2044
2041
|
function r(i, l, o, a) {
|
2045
2042
|
const u = Array.isArray(o.children) ? t : n;
|
2046
2043
|
return a ? u(l, o, a) : u(l, o);
|
2047
2044
|
}
|
2048
2045
|
}
|
2049
|
-
function
|
2046
|
+
function Fi(e, n) {
|
2050
2047
|
return t;
|
2051
2048
|
function t(r, i, l, o) {
|
2052
|
-
const a = Array.isArray(l.children), s =
|
2049
|
+
const a = Array.isArray(l.children), s = vn(r);
|
2053
2050
|
return n(
|
2054
2051
|
i,
|
2055
2052
|
l,
|
@@ -2064,15 +2061,15 @@ function Bi(e, n) {
|
|
2064
2061
|
);
|
2065
2062
|
}
|
2066
2063
|
}
|
2067
|
-
function
|
2064
|
+
function Oi(e, n) {
|
2068
2065
|
const t = {};
|
2069
2066
|
let r, i;
|
2070
2067
|
for (i in n.properties)
|
2071
|
-
if (i !== "children" &&
|
2072
|
-
const l =
|
2068
|
+
if (i !== "children" && _n.call(n.properties, i)) {
|
2069
|
+
const l = Bi(e, i, n.properties[i]);
|
2073
2070
|
if (l) {
|
2074
2071
|
const [o, a] = l;
|
2075
|
-
e.tableCellAlignToStyle && o === "align" && typeof a == "string" &&
|
2072
|
+
e.tableCellAlignToStyle && o === "align" && typeof a == "string" && Ti.has(n.tagName) ? r = a : t[o] = a;
|
2076
2073
|
}
|
2077
2074
|
}
|
2078
2075
|
if (r) {
|
@@ -2084,7 +2081,7 @@ function ji(e, n) {
|
|
2084
2081
|
}
|
2085
2082
|
return t;
|
2086
2083
|
}
|
2087
|
-
function
|
2084
|
+
function Mi(e, n) {
|
2088
2085
|
const t = {};
|
2089
2086
|
for (const r of n.attributes)
|
2090
2087
|
if (r.type === "mdxJsxExpressionAttribute")
|
@@ -2095,7 +2092,7 @@ function Hi(e, n) {
|
|
2095
2092
|
e.evaluater.evaluateExpression(a.argument)
|
2096
2093
|
);
|
2097
2094
|
} else
|
2098
|
-
|
2095
|
+
je(e, n.position);
|
2099
2096
|
else {
|
2100
2097
|
const i = r.name;
|
2101
2098
|
let l;
|
@@ -2104,7 +2101,7 @@ function Hi(e, n) {
|
|
2104
2101
|
const a = r.value.data.estree.body[0];
|
2105
2102
|
l = e.evaluater.evaluateExpression(a.expression);
|
2106
2103
|
} else
|
2107
|
-
|
2104
|
+
je(e, n.position);
|
2108
2105
|
else
|
2109
2106
|
l = r.value === null ? !0 : r.value;
|
2110
2107
|
t[i] = /** @type {Props[keyof Props]} */
|
@@ -2112,10 +2109,10 @@ function Hi(e, n) {
|
|
2112
2109
|
}
|
2113
2110
|
return t;
|
2114
2111
|
}
|
2115
|
-
function
|
2112
|
+
function Dn(e, n) {
|
2116
2113
|
const t = [];
|
2117
2114
|
let r = -1;
|
2118
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
2115
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Ci;
|
2119
2116
|
for (; ++r < n.children.length; ) {
|
2120
2117
|
const l = n.children[r];
|
2121
2118
|
let o;
|
@@ -2126,28 +2123,28 @@ function Fn(e, n) {
|
|
2126
2123
|
o = s + "-" + u, i.set(s, u + 1);
|
2127
2124
|
}
|
2128
2125
|
}
|
2129
|
-
const a =
|
2126
|
+
const a = Gt(e, l, o);
|
2130
2127
|
a !== void 0 && t.push(a);
|
2131
2128
|
}
|
2132
2129
|
return t;
|
2133
2130
|
}
|
2134
|
-
function
|
2135
|
-
const r =
|
2131
|
+
function Bi(e, n, t) {
|
2132
|
+
const r = mi(e.schema, n);
|
2136
2133
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
2137
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
2138
|
-
let i = typeof t == "object" ? t :
|
2139
|
-
return e.stylePropertyNameCase === "css" && (i =
|
2134
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? ti(t) : Vr(t)), r.property === "style") {
|
2135
|
+
let i = typeof t == "object" ? t : ji(e, String(t));
|
2136
|
+
return e.stylePropertyNameCase === "css" && (i = Hi(i)), ["style", i];
|
2140
2137
|
}
|
2141
2138
|
return [
|
2142
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
2139
|
+
e.elementAttributeNameCase === "react" && r.space ? pi[r.property] || r.property : r.attribute,
|
2143
2140
|
t
|
2144
2141
|
];
|
2145
2142
|
}
|
2146
2143
|
}
|
2147
|
-
function
|
2144
|
+
function ji(e, n) {
|
2148
2145
|
const t = {};
|
2149
2146
|
try {
|
2150
|
-
|
2147
|
+
wi(n, r);
|
2151
2148
|
} catch (i) {
|
2152
2149
|
if (!e.ignoreInvalidStyle) {
|
2153
2150
|
const l = (
|
@@ -2159,16 +2156,16 @@ function Ui(e, n) {
|
|
2159
2156
|
ruleId: "style",
|
2160
2157
|
source: "hast-util-to-jsx-runtime"
|
2161
2158
|
});
|
2162
|
-
throw o.file = e.filePath || void 0, o.url =
|
2159
|
+
throw o.file = e.filePath || void 0, o.url = Kt + "#cannot-parse-style-attribute", o;
|
2163
2160
|
}
|
2164
2161
|
}
|
2165
2162
|
return t;
|
2166
2163
|
function r(i, l) {
|
2167
2164
|
let o = i;
|
2168
|
-
o.slice(0, 2) !== "--" && (o.slice(0, 4) === "-ms-" && (o = "ms-" + o.slice(4)), o = o.replace(
|
2165
|
+
o.slice(0, 2) !== "--" && (o.slice(0, 4) === "-ms-" && (o = "ms-" + o.slice(4)), o = o.replace(Ii, Ui)), t[o] = l;
|
2169
2166
|
}
|
2170
2167
|
}
|
2171
|
-
function
|
2168
|
+
function Xt(e, n, t) {
|
2172
2169
|
let r;
|
2173
2170
|
if (!t)
|
2174
2171
|
r = { type: "Literal", value: n };
|
@@ -2176,7 +2173,7 @@ function Qt(e, n, t) {
|
|
2176
2173
|
const i = n.split(".");
|
2177
2174
|
let l = -1, o;
|
2178
2175
|
for (; ++l < i.length; ) {
|
2179
|
-
const a =
|
2176
|
+
const a = Yn(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
|
2180
2177
|
o = o ? {
|
2181
2178
|
type: "MemberExpression",
|
2182
2179
|
object: o,
|
@@ -2187,19 +2184,19 @@ function Qt(e, n, t) {
|
|
2187
2184
|
}
|
2188
2185
|
r = o;
|
2189
2186
|
} else
|
2190
|
-
r =
|
2187
|
+
r = Yn(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
|
2191
2188
|
if (r.type === "Literal") {
|
2192
2189
|
const i = (
|
2193
2190
|
/** @type {string | number} */
|
2194
2191
|
r.value
|
2195
2192
|
);
|
2196
|
-
return
|
2193
|
+
return _n.call(e.components, i) ? e.components[i] : i;
|
2197
2194
|
}
|
2198
2195
|
if (e.evaluater)
|
2199
2196
|
return e.evaluater.evaluateExpression(r);
|
2200
|
-
|
2197
|
+
je(e);
|
2201
2198
|
}
|
2202
|
-
function
|
2199
|
+
function je(e, n) {
|
2203
2200
|
const t = new Y(
|
2204
2201
|
"Cannot handle MDX estrees without `createEvaluater`",
|
2205
2202
|
{
|
@@ -2209,66 +2206,66 @@ function He(e, n) {
|
|
2209
2206
|
source: "hast-util-to-jsx-runtime"
|
2210
2207
|
}
|
2211
2208
|
);
|
2212
|
-
throw t.file = e.filePath || void 0, t.url =
|
2209
|
+
throw t.file = e.filePath || void 0, t.url = Kt + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
2213
2210
|
}
|
2214
|
-
function
|
2211
|
+
function Hi(e) {
|
2215
2212
|
const n = {};
|
2216
2213
|
let t;
|
2217
2214
|
for (t in e)
|
2218
|
-
|
2215
|
+
_n.call(e, t) && (n[Vi(t)] = e[t]);
|
2219
2216
|
return n;
|
2220
2217
|
}
|
2221
|
-
function
|
2222
|
-
let n = e.replace(
|
2218
|
+
function Vi(e) {
|
2219
|
+
let n = e.replace(Ei, qi);
|
2223
2220
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
2224
2221
|
}
|
2225
|
-
function
|
2222
|
+
function Ui(e, n) {
|
2226
2223
|
return n.toUpperCase();
|
2227
2224
|
}
|
2228
|
-
function
|
2225
|
+
function qi(e) {
|
2229
2226
|
return "-" + e.toLowerCase();
|
2230
2227
|
}
|
2231
|
-
function
|
2228
|
+
function $i(e) {
|
2232
2229
|
const n = (
|
2233
2230
|
/** @type {Processor} */
|
2234
2231
|
this
|
2235
2232
|
);
|
2236
2233
|
n.compiler = t;
|
2237
2234
|
function t(r, i) {
|
2238
|
-
return
|
2235
|
+
return Ai(r, { filePath: i.path, ...e });
|
2239
2236
|
}
|
2240
2237
|
}
|
2241
|
-
const
|
2242
|
-
function
|
2243
|
-
const t =
|
2244
|
-
return
|
2238
|
+
const Wi = {};
|
2239
|
+
function Ki(e, n) {
|
2240
|
+
const t = Wi, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
2241
|
+
return Qt(e, r, i);
|
2245
2242
|
}
|
2246
|
-
function
|
2247
|
-
if (
|
2243
|
+
function Qt(e, n, t) {
|
2244
|
+
if (Gi(e)) {
|
2248
2245
|
if ("value" in e)
|
2249
2246
|
return e.type === "html" && !t ? "" : e.value;
|
2250
2247
|
if (n && "alt" in e && e.alt)
|
2251
2248
|
return e.alt;
|
2252
2249
|
if ("children" in e)
|
2253
|
-
return
|
2250
|
+
return it(e.children, n, t);
|
2254
2251
|
}
|
2255
|
-
return Array.isArray(e) ?
|
2252
|
+
return Array.isArray(e) ? it(e, n, t) : "";
|
2256
2253
|
}
|
2257
|
-
function
|
2254
|
+
function it(e, n, t) {
|
2258
2255
|
const r = [];
|
2259
2256
|
let i = -1;
|
2260
2257
|
for (; ++i < e.length; )
|
2261
|
-
r[i] =
|
2258
|
+
r[i] = Qt(e[i], n, t);
|
2262
2259
|
return r.join("");
|
2263
2260
|
}
|
2264
|
-
function
|
2261
|
+
function Gi(e) {
|
2265
2262
|
return !!(e && typeof e == "object");
|
2266
2263
|
}
|
2267
|
-
const
|
2268
|
-
function
|
2264
|
+
const lt = document.createElement("i");
|
2265
|
+
function Fn(e) {
|
2269
2266
|
const n = "&" + e + ";";
|
2270
|
-
|
2271
|
-
const t =
|
2267
|
+
lt.innerHTML = n;
|
2268
|
+
const t = lt.textContent;
|
2272
2269
|
return t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t;
|
2273
2270
|
}
|
2274
2271
|
function ce(e, n, t, r) {
|
@@ -2283,24 +2280,24 @@ function ce(e, n, t, r) {
|
|
2283
2280
|
function te(e, n) {
|
2284
2281
|
return e.length > 0 ? (ce(e, e.length, 0, n), e) : n;
|
2285
2282
|
}
|
2286
|
-
const
|
2287
|
-
function
|
2283
|
+
const ot = {}.hasOwnProperty;
|
2284
|
+
function Yi(e) {
|
2288
2285
|
const n = {};
|
2289
2286
|
let t = -1;
|
2290
2287
|
for (; ++t < e.length; )
|
2291
|
-
|
2288
|
+
Xi(n, e[t]);
|
2292
2289
|
return n;
|
2293
2290
|
}
|
2294
|
-
function
|
2291
|
+
function Xi(e, n) {
|
2295
2292
|
let t;
|
2296
2293
|
for (t in n) {
|
2297
|
-
const i = (
|
2294
|
+
const i = (ot.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
|
2298
2295
|
let o;
|
2299
2296
|
if (l)
|
2300
2297
|
for (o in l) {
|
2301
|
-
|
2298
|
+
ot.call(i, o) || (i[o] = []);
|
2302
2299
|
const a = l[o];
|
2303
|
-
|
2300
|
+
Qi(
|
2304
2301
|
// @ts-expect-error Looks like a list.
|
2305
2302
|
i[o],
|
2306
2303
|
Array.isArray(a) ? a : a ? [a] : []
|
@@ -2308,14 +2305,14 @@ function Zi(e, n) {
|
|
2308
2305
|
}
|
2309
2306
|
}
|
2310
2307
|
}
|
2311
|
-
function
|
2308
|
+
function Qi(e, n) {
|
2312
2309
|
let t = -1;
|
2313
2310
|
const r = [];
|
2314
2311
|
for (; ++t < n.length; )
|
2315
2312
|
(n[t].add === "after" ? e : r).push(n[t]);
|
2316
2313
|
ce(e, 0, 0, r);
|
2317
2314
|
}
|
2318
|
-
function
|
2315
|
+
function Jt(e, n) {
|
2319
2316
|
const t = Number.parseInt(e, n);
|
2320
2317
|
return (
|
2321
2318
|
// C0 except for HT, LF, FF, CR, space.
|
@@ -2331,15 +2328,15 @@ function Zt(e, n) {
|
|
2331
2328
|
function Ae(e) {
|
2332
2329
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
2333
2330
|
}
|
2334
|
-
const ue = ye(/[A-Za-z]/), ne = ye(/[\dA-Za-z]/),
|
2335
|
-
function
|
2331
|
+
const ue = ye(/[A-Za-z]/), ne = ye(/[\dA-Za-z]/), Ji = ye(/[#-'*+\--9=?A-Z^-~]/);
|
2332
|
+
function xn(e) {
|
2336
2333
|
return (
|
2337
2334
|
// Special whitespace codes (which have negative values), C0 and Control
|
2338
2335
|
// character DEL
|
2339
2336
|
e !== null && (e < 32 || e === 127)
|
2340
2337
|
);
|
2341
2338
|
}
|
2342
|
-
const
|
2339
|
+
const kn = ye(/\d/), Zi = ye(/[\dA-Fa-f]/), el = ye(/[!-/:-@[-`{-~]/);
|
2343
2340
|
function L(e) {
|
2344
2341
|
return e !== null && e < -2;
|
2345
2342
|
}
|
@@ -2349,7 +2346,7 @@ function Q(e) {
|
|
2349
2346
|
function F(e) {
|
2350
2347
|
return e === -2 || e === -1 || e === 32;
|
2351
2348
|
}
|
2352
|
-
const
|
2349
|
+
const nl = ye(new RegExp("\\p{P}|\\p{S}", "u")), tl = ye(/\s/);
|
2353
2350
|
function ye(e) {
|
2354
2351
|
return n;
|
2355
2352
|
function n(t) {
|
@@ -2386,10 +2383,10 @@ function U(e, n, t, r) {
|
|
2386
2383
|
return F(s) && l++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
|
2387
2384
|
}
|
2388
2385
|
}
|
2389
|
-
const
|
2390
|
-
tokenize:
|
2386
|
+
const rl = {
|
2387
|
+
tokenize: il
|
2391
2388
|
};
|
2392
|
-
function
|
2389
|
+
function il(e) {
|
2393
2390
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
2394
2391
|
let t;
|
2395
2392
|
return n;
|
@@ -2418,12 +2415,12 @@ function al(e) {
|
|
2418
2415
|
return L(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
|
2419
2416
|
}
|
2420
2417
|
}
|
2421
|
-
const
|
2422
|
-
tokenize:
|
2423
|
-
},
|
2424
|
-
tokenize:
|
2418
|
+
const ll = {
|
2419
|
+
tokenize: ol
|
2420
|
+
}, at = {
|
2421
|
+
tokenize: al
|
2425
2422
|
};
|
2426
|
-
function
|
2423
|
+
function ol(e) {
|
2427
2424
|
const n = this, t = [];
|
2428
2425
|
let r = 0, i, l, o;
|
2429
2426
|
return a;
|
@@ -2462,7 +2459,7 @@ function sl(e) {
|
|
2462
2459
|
return w(C);
|
2463
2460
|
n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
2464
2461
|
}
|
2465
|
-
return n.containerState = {}, e.check(
|
2462
|
+
return n.containerState = {}, e.check(at, c, p)(C);
|
2466
2463
|
}
|
2467
2464
|
function c(C) {
|
2468
2465
|
return i && A(), k(r), d(C);
|
@@ -2471,7 +2468,7 @@ function sl(e) {
|
|
2471
2468
|
return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, w(C);
|
2472
2469
|
}
|
2473
2470
|
function d(C) {
|
2474
|
-
return n.containerState = {}, e.attempt(
|
2471
|
+
return n.containerState = {}, e.attempt(at, h, w)(C);
|
2475
2472
|
}
|
2476
2473
|
function h(C) {
|
2477
2474
|
return r++, t.push([n.currentConstruct, n.containerState]), d(C);
|
@@ -2535,16 +2532,16 @@ function sl(e) {
|
|
2535
2532
|
i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
2536
2533
|
}
|
2537
2534
|
}
|
2538
|
-
function
|
2535
|
+
function al(e, n, t) {
|
2539
2536
|
return U(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
2540
2537
|
}
|
2541
|
-
function
|
2542
|
-
if (e === null || Q(e) ||
|
2538
|
+
function ut(e) {
|
2539
|
+
if (e === null || Q(e) || tl(e))
|
2543
2540
|
return 1;
|
2544
|
-
if (
|
2541
|
+
if (nl(e))
|
2545
2542
|
return 2;
|
2546
2543
|
}
|
2547
|
-
function
|
2544
|
+
function On(e, n, t) {
|
2548
2545
|
const r = [];
|
2549
2546
|
let i = -1;
|
2550
2547
|
for (; ++i < e.length; ) {
|
@@ -2553,12 +2550,12 @@ function Mn(e, n, t) {
|
|
2553
2550
|
}
|
2554
2551
|
return n;
|
2555
2552
|
}
|
2556
|
-
const
|
2553
|
+
const bn = {
|
2557
2554
|
name: "attention",
|
2558
|
-
resolveAll:
|
2559
|
-
tokenize:
|
2555
|
+
resolveAll: ul,
|
2556
|
+
tokenize: sl
|
2560
2557
|
};
|
2561
|
-
function
|
2558
|
+
function ul(e, n) {
|
2562
2559
|
let t = -1, r, i, l, o, a, s, u, c;
|
2563
2560
|
for (; ++t < e.length; )
|
2564
2561
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
@@ -2573,7 +2570,7 @@ function pl(e, n) {
|
|
2573
2570
|
}, d = {
|
2574
2571
|
...e[t][1].start
|
2575
2572
|
};
|
2576
|
-
|
2573
|
+
st(p, -s), st(d, s), o = {
|
2577
2574
|
type: s > 1 ? "strongSequence" : "emphasisSequence",
|
2578
2575
|
start: p,
|
2579
2576
|
end: {
|
@@ -2605,7 +2602,7 @@ function pl(e, n) {
|
|
2605
2602
|
...o.start
|
2606
2603
|
}, e[t][1].start = {
|
2607
2604
|
...a.end
|
2608
|
-
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = te(u, [["enter", e[r][1], n], ["exit", e[r][1], n]])), u = te(u, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), u = te(u,
|
2605
|
+
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = te(u, [["enter", e[r][1], n], ["exit", e[r][1], n]])), u = te(u, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), u = te(u, On(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), u = te(u, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (c = 2, u = te(u, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : c = 0, ce(e, r - 1, t - r + 3, u), t = r + u.length - c - 2;
|
2609
2606
|
break;
|
2610
2607
|
}
|
2611
2608
|
}
|
@@ -2613,8 +2610,8 @@ function pl(e, n) {
|
|
2613
2610
|
e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
|
2614
2611
|
return e;
|
2615
2612
|
}
|
2616
|
-
function
|
2617
|
-
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i =
|
2613
|
+
function sl(e, n) {
|
2614
|
+
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ut(r);
|
2618
2615
|
let l;
|
2619
2616
|
return o;
|
2620
2617
|
function o(s) {
|
@@ -2623,18 +2620,18 @@ function hl(e, n) {
|
|
2623
2620
|
function a(s) {
|
2624
2621
|
if (s === l)
|
2625
2622
|
return e.consume(s), a;
|
2626
|
-
const u = e.exit("attentionSequence"), c =
|
2623
|
+
const u = e.exit("attentionSequence"), c = ut(s), p = !c || c === 2 && i || t.includes(s), d = !i || i === 2 && c || t.includes(r);
|
2627
2624
|
return u._open = !!(l === 42 ? p : p && (i || !d)), u._close = !!(l === 42 ? d : d && (c || !p)), n(s);
|
2628
2625
|
}
|
2629
2626
|
}
|
2630
|
-
function
|
2627
|
+
function st(e, n) {
|
2631
2628
|
e.column += n, e.offset += n, e._bufferIndex += n;
|
2632
2629
|
}
|
2633
|
-
const
|
2630
|
+
const cl = {
|
2634
2631
|
name: "autolink",
|
2635
|
-
tokenize:
|
2632
|
+
tokenize: pl
|
2636
2633
|
};
|
2637
|
-
function
|
2634
|
+
function pl(e, n, t) {
|
2638
2635
|
let r = 0;
|
2639
2636
|
return i;
|
2640
2637
|
function i(h) {
|
@@ -2650,10 +2647,10 @@ function ml(e, n, t) {
|
|
2650
2647
|
return h === 58 ? (e.consume(h), r = 0, s) : (h === 43 || h === 45 || h === 46 || ne(h)) && r++ < 32 ? (e.consume(h), a) : (r = 0, u(h));
|
2651
2648
|
}
|
2652
2649
|
function s(h) {
|
2653
|
-
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), n) : h === null || h === 32 || h === 60 ||
|
2650
|
+
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), n) : h === null || h === 32 || h === 60 || xn(h) ? t(h) : (e.consume(h), s);
|
2654
2651
|
}
|
2655
2652
|
function u(h) {
|
2656
|
-
return h === 64 ? (e.consume(h), c) :
|
2653
|
+
return h === 64 ? (e.consume(h), c) : Ji(h) ? (e.consume(h), u) : t(h);
|
2657
2654
|
}
|
2658
2655
|
function c(h) {
|
2659
2656
|
return ne(h) ? p(h) : t(h);
|
@@ -2669,11 +2666,11 @@ function ml(e, n, t) {
|
|
2669
2666
|
return t(h);
|
2670
2667
|
}
|
2671
2668
|
}
|
2672
|
-
const
|
2669
|
+
const en = {
|
2673
2670
|
partial: !0,
|
2674
|
-
tokenize:
|
2671
|
+
tokenize: hl
|
2675
2672
|
};
|
2676
|
-
function
|
2673
|
+
function hl(e, n, t) {
|
2677
2674
|
return r;
|
2678
2675
|
function r(l) {
|
2679
2676
|
return F(l) ? U(e, i, "linePrefix")(l) : i(l);
|
@@ -2682,15 +2679,15 @@ function dl(e, n, t) {
|
|
2682
2679
|
return l === null || L(l) ? n(l) : t(l);
|
2683
2680
|
}
|
2684
2681
|
}
|
2685
|
-
const
|
2682
|
+
const Zt = {
|
2686
2683
|
continuation: {
|
2687
|
-
tokenize:
|
2684
|
+
tokenize: ml
|
2688
2685
|
},
|
2689
|
-
exit:
|
2686
|
+
exit: dl,
|
2690
2687
|
name: "blockQuote",
|
2691
|
-
tokenize:
|
2688
|
+
tokenize: fl
|
2692
2689
|
};
|
2693
|
-
function
|
2690
|
+
function fl(e, n, t) {
|
2694
2691
|
const r = this;
|
2695
2692
|
return i;
|
2696
2693
|
function i(o) {
|
@@ -2706,37 +2703,37 @@ function gl(e, n, t) {
|
|
2706
2703
|
return F(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
|
2707
2704
|
}
|
2708
2705
|
}
|
2709
|
-
function
|
2706
|
+
function ml(e, n, t) {
|
2710
2707
|
const r = this;
|
2711
2708
|
return i;
|
2712
2709
|
function i(o) {
|
2713
2710
|
return F(o) ? U(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
|
2714
2711
|
}
|
2715
2712
|
function l(o) {
|
2716
|
-
return e.attempt(
|
2713
|
+
return e.attempt(Zt, n, t)(o);
|
2717
2714
|
}
|
2718
2715
|
}
|
2719
|
-
function
|
2716
|
+
function dl(e) {
|
2720
2717
|
e.exit("blockQuote");
|
2721
2718
|
}
|
2722
|
-
const
|
2719
|
+
const er = {
|
2723
2720
|
name: "characterEscape",
|
2724
|
-
tokenize:
|
2721
|
+
tokenize: gl
|
2725
2722
|
};
|
2726
|
-
function
|
2723
|
+
function gl(e, n, t) {
|
2727
2724
|
return r;
|
2728
2725
|
function r(l) {
|
2729
2726
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
|
2730
2727
|
}
|
2731
2728
|
function i(l) {
|
2732
|
-
return
|
2729
|
+
return el(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
|
2733
2730
|
}
|
2734
2731
|
}
|
2735
|
-
const
|
2732
|
+
const nr = {
|
2736
2733
|
name: "characterReference",
|
2737
|
-
tokenize:
|
2734
|
+
tokenize: yl
|
2738
2735
|
};
|
2739
|
-
function
|
2736
|
+
function yl(e, n, t) {
|
2740
2737
|
const r = this;
|
2741
2738
|
let i = 0, l, o;
|
2742
2739
|
return a;
|
@@ -2747,25 +2744,25 @@ function bl(e, n, t) {
|
|
2747
2744
|
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), l = 31, o = ne, c(p));
|
2748
2745
|
}
|
2749
2746
|
function u(p) {
|
2750
|
-
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o =
|
2747
|
+
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = Zi, c) : (e.enter("characterReferenceValue"), l = 7, o = kn, c(p));
|
2751
2748
|
}
|
2752
2749
|
function c(p) {
|
2753
2750
|
if (p === 59 && i) {
|
2754
2751
|
const d = e.exit("characterReferenceValue");
|
2755
|
-
return o === ne && !
|
2752
|
+
return o === ne && !Fn(r.sliceSerialize(d)) ? t(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
|
2756
2753
|
}
|
2757
2754
|
return o(p) && i++ < l ? (e.consume(p), c) : t(p);
|
2758
2755
|
}
|
2759
2756
|
}
|
2760
|
-
const
|
2757
|
+
const ct = {
|
2761
2758
|
partial: !0,
|
2762
|
-
tokenize:
|
2763
|
-
},
|
2759
|
+
tokenize: kl
|
2760
|
+
}, pt = {
|
2764
2761
|
concrete: !0,
|
2765
2762
|
name: "codeFenced",
|
2766
|
-
tokenize:
|
2763
|
+
tokenize: xl
|
2767
2764
|
};
|
2768
|
-
function
|
2765
|
+
function xl(e, n, t) {
|
2769
2766
|
const r = this, i = {
|
2770
2767
|
partial: !0,
|
2771
2768
|
tokenize: H
|
@@ -2783,7 +2780,7 @@ function wl(e, n, t) {
|
|
2783
2780
|
return y === a ? (o++, e.consume(y), c) : o < 3 ? t(y) : (e.exit("codeFencedFenceSequence"), F(y) ? U(e, p, "whitespace")(y) : p(y));
|
2784
2781
|
}
|
2785
2782
|
function p(y) {
|
2786
|
-
return y === null || L(y) ? (e.exit("codeFencedFence"), r.interrupt ? n(y) : e.check(
|
2783
|
+
return y === null || L(y) ? (e.exit("codeFencedFence"), r.interrupt ? n(y) : e.check(ct, b, B)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
2787
2784
|
contentType: "string"
|
2788
2785
|
}), d(y));
|
2789
2786
|
}
|
@@ -2808,7 +2805,7 @@ function wl(e, n, t) {
|
|
2808
2805
|
return l > 0 && F(y) ? U(e, A, "linePrefix", l + 1)(y) : A(y);
|
2809
2806
|
}
|
2810
2807
|
function A(y) {
|
2811
|
-
return y === null || L(y) ? e.check(
|
2808
|
+
return y === null || L(y) ? e.check(ct, b, B)(y) : (e.enter("codeFlowValue"), C(y));
|
2812
2809
|
}
|
2813
2810
|
function C(y) {
|
2814
2811
|
return y === null || L(y) ? (e.exit("codeFlowValue"), A(y)) : (e.consume(y), C);
|
@@ -2836,7 +2833,7 @@ function wl(e, n, t) {
|
|
2836
2833
|
}
|
2837
2834
|
}
|
2838
2835
|
}
|
2839
|
-
function
|
2836
|
+
function kl(e, n, t) {
|
2840
2837
|
const r = this;
|
2841
2838
|
return i;
|
2842
2839
|
function i(o) {
|
@@ -2846,14 +2843,14 @@ function Sl(e, n, t) {
|
|
2846
2843
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
2847
2844
|
}
|
2848
2845
|
}
|
2849
|
-
const
|
2846
|
+
const ln = {
|
2850
2847
|
name: "codeIndented",
|
2851
|
-
tokenize:
|
2852
|
-
},
|
2848
|
+
tokenize: wl
|
2849
|
+
}, bl = {
|
2853
2850
|
partial: !0,
|
2854
|
-
tokenize:
|
2851
|
+
tokenize: Sl
|
2855
2852
|
};
|
2856
|
-
function
|
2853
|
+
function wl(e, n, t) {
|
2857
2854
|
const r = this;
|
2858
2855
|
return i;
|
2859
2856
|
function i(u) {
|
@@ -2864,7 +2861,7 @@ function El(e, n, t) {
|
|
2864
2861
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : t(u);
|
2865
2862
|
}
|
2866
2863
|
function o(u) {
|
2867
|
-
return u === null ? s(u) : L(u) ? e.attempt(
|
2864
|
+
return u === null ? s(u) : L(u) ? e.attempt(bl, o, s)(u) : (e.enter("codeFlowValue"), a(u));
|
2868
2865
|
}
|
2869
2866
|
function a(u) {
|
2870
2867
|
return u === null || L(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), a);
|
@@ -2873,7 +2870,7 @@ function El(e, n, t) {
|
|
2873
2870
|
return e.exit("codeIndented"), n(u);
|
2874
2871
|
}
|
2875
2872
|
}
|
2876
|
-
function
|
2873
|
+
function Sl(e, n, t) {
|
2877
2874
|
const r = this;
|
2878
2875
|
return i;
|
2879
2876
|
function i(o) {
|
@@ -2884,13 +2881,13 @@ function Il(e, n, t) {
|
|
2884
2881
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : L(o) ? i(o) : t(o);
|
2885
2882
|
}
|
2886
2883
|
}
|
2887
|
-
const
|
2884
|
+
const Cl = {
|
2888
2885
|
name: "codeText",
|
2889
|
-
previous:
|
2890
|
-
resolve:
|
2891
|
-
tokenize:
|
2886
|
+
previous: Il,
|
2887
|
+
resolve: El,
|
2888
|
+
tokenize: Pl
|
2892
2889
|
};
|
2893
|
-
function
|
2890
|
+
function El(e) {
|
2894
2891
|
let n = e.length - 4, t = 3, r, i;
|
2895
2892
|
if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
|
2896
2893
|
for (r = t; ++r < n; )
|
@@ -2903,10 +2900,10 @@ function Tl(e) {
|
|
2903
2900
|
i === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (i = r) : (r === n || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
|
2904
2901
|
return e;
|
2905
2902
|
}
|
2906
|
-
function
|
2903
|
+
function Il(e) {
|
2907
2904
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
2908
2905
|
}
|
2909
|
-
function
|
2906
|
+
function Pl(e, n, t) {
|
2910
2907
|
let r = 0, i, l;
|
2911
2908
|
return o;
|
2912
2909
|
function o(p) {
|
@@ -2925,7 +2922,7 @@ function zl(e, n, t) {
|
|
2925
2922
|
return p === 96 ? (e.consume(p), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(p)) : (l.type = "codeTextData", u(p));
|
2926
2923
|
}
|
2927
2924
|
}
|
2928
|
-
class
|
2925
|
+
class Tl {
|
2929
2926
|
/**
|
2930
2927
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
2931
2928
|
* Initial items (optional).
|
@@ -3005,7 +3002,7 @@ class Ll {
|
|
3005
3002
|
const i = t || 0;
|
3006
3003
|
this.setCursor(Math.trunc(n));
|
3007
3004
|
const l = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
|
3008
|
-
return r &&
|
3005
|
+
return r && Oe(this.left, r), l.reverse();
|
3009
3006
|
}
|
3010
3007
|
/**
|
3011
3008
|
* Remove and return the highest-numbered item in the array, so
|
@@ -3040,7 +3037,7 @@ class Ll {
|
|
3040
3037
|
* Nothing.
|
3041
3038
|
*/
|
3042
3039
|
pushMany(n) {
|
3043
|
-
this.setCursor(Number.POSITIVE_INFINITY),
|
3040
|
+
this.setCursor(Number.POSITIVE_INFINITY), Oe(this.left, n);
|
3044
3041
|
}
|
3045
3042
|
/**
|
3046
3043
|
* Inserts a single item to the low-numbered side of the array;
|
@@ -3064,7 +3061,7 @@ class Ll {
|
|
3064
3061
|
* Nothing.
|
3065
3062
|
*/
|
3066
3063
|
unshiftMany(n) {
|
3067
|
-
this.setCursor(0),
|
3064
|
+
this.setCursor(0), Oe(this.right, n.reverse());
|
3068
3065
|
}
|
3069
3066
|
/**
|
3070
3067
|
* Move the cursor to a specific position in the array. Requires
|
@@ -3082,14 +3079,14 @@ class Ll {
|
|
3082
3079
|
if (!(n === this.left.length || n > this.left.length && this.right.length === 0 || n < 0 && this.left.length === 0))
|
3083
3080
|
if (n < this.left.length) {
|
3084
3081
|
const t = this.left.splice(n, Number.POSITIVE_INFINITY);
|
3085
|
-
|
3082
|
+
Oe(this.right, t.reverse());
|
3086
3083
|
} else {
|
3087
3084
|
const t = this.right.splice(this.left.length + this.right.length - n, Number.POSITIVE_INFINITY);
|
3088
|
-
|
3085
|
+
Oe(this.left, t.reverse());
|
3089
3086
|
}
|
3090
3087
|
}
|
3091
3088
|
}
|
3092
|
-
function
|
3089
|
+
function Oe(e, n) {
|
3093
3090
|
let t = 0;
|
3094
3091
|
if (n.length < 1e4)
|
3095
3092
|
e.push(...n);
|
@@ -3097,10 +3094,10 @@ function Me(e, n) {
|
|
3097
3094
|
for (; t < n.length; )
|
3098
3095
|
e.push(...n.slice(t, t + 1e4)), t += 1e4;
|
3099
3096
|
}
|
3100
|
-
function
|
3097
|
+
function tr(e) {
|
3101
3098
|
const n = {};
|
3102
3099
|
let t = -1, r, i, l, o, a, s, u;
|
3103
|
-
const c = new
|
3100
|
+
const c = new Tl(e);
|
3104
3101
|
for (; ++t < c.length; ) {
|
3105
3102
|
for (; t in n; )
|
3106
3103
|
t = n[t];
|
@@ -3108,7 +3105,7 @@ function rr(e) {
|
|
3108
3105
|
for (; ++l < s.length && s[l][1].type !== "content"; )
|
3109
3106
|
s[l][1].type === "chunkText" && (s[l][1]._isInFirstContentOfListItem = !0, l++);
|
3110
3107
|
if (r[0] === "enter")
|
3111
|
-
r[1].contentType && (Object.assign(n,
|
3108
|
+
r[1].contentType && (Object.assign(n, Al(c, t)), t = n[t], u = !0);
|
3112
3109
|
else if (r[1]._container) {
|
3113
3110
|
for (l = t, i = void 0; l-- && (o = c.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank"); )
|
3114
3111
|
o[0] === "enter" && (i && (c.get(i)[1].type = "lineEndingBlank"), o[1].type = "lineEnding", i = l);
|
@@ -3119,7 +3116,7 @@ function rr(e) {
|
|
3119
3116
|
}
|
3120
3117
|
return ce(e, 0, Number.POSITIVE_INFINITY, c.slice(0)), !u;
|
3121
3118
|
}
|
3122
|
-
function
|
3119
|
+
function Al(e, n) {
|
3123
3120
|
const t = e.get(n)[1], r = e.get(n)[2];
|
3124
3121
|
let i = n - 1;
|
3125
3122
|
const l = [], o = t._tokenizer || r.parser[t.contentType](t.start), a = o.events, s = [], u = {};
|
@@ -3141,17 +3138,17 @@ function Nl(e, n) {
|
|
3141
3138
|
u[w + s[d][0]] = w + s[d][1], w += s[d][1] - s[d][0] - 1;
|
3142
3139
|
return u;
|
3143
3140
|
}
|
3144
|
-
const
|
3145
|
-
resolve:
|
3146
|
-
tokenize:
|
3147
|
-
},
|
3141
|
+
const zl = {
|
3142
|
+
resolve: Nl,
|
3143
|
+
tokenize: vl
|
3144
|
+
}, Ll = {
|
3148
3145
|
partial: !0,
|
3149
|
-
tokenize:
|
3146
|
+
tokenize: _l
|
3150
3147
|
};
|
3151
|
-
function
|
3152
|
-
return
|
3148
|
+
function Nl(e) {
|
3149
|
+
return tr(e), e;
|
3153
3150
|
}
|
3154
|
-
function
|
3151
|
+
function vl(e, n) {
|
3155
3152
|
let t;
|
3156
3153
|
return r;
|
3157
3154
|
function r(a) {
|
@@ -3160,7 +3157,7 @@ function Dl(e, n) {
|
|
3160
3157
|
}), i(a);
|
3161
3158
|
}
|
3162
3159
|
function i(a) {
|
3163
|
-
return a === null ? l(a) : L(a) ? e.check(
|
3160
|
+
return a === null ? l(a) : L(a) ? e.check(Ll, o, l)(a) : (e.consume(a), i);
|
3164
3161
|
}
|
3165
3162
|
function l(a) {
|
3166
3163
|
return e.exit("chunkContent"), e.exit("content"), n(a);
|
@@ -3172,7 +3169,7 @@ function Dl(e, n) {
|
|
3172
3169
|
}), t = t.next, i;
|
3173
3170
|
}
|
3174
3171
|
}
|
3175
|
-
function
|
3172
|
+
function _l(e, n, t) {
|
3176
3173
|
const r = this;
|
3177
3174
|
return i;
|
3178
3175
|
function i(o) {
|
@@ -3185,12 +3182,12 @@ function Fl(e, n, t) {
|
|
3185
3182
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : e.interrupt(r.parser.constructs.flow, t, n)(o);
|
3186
3183
|
}
|
3187
3184
|
}
|
3188
|
-
function
|
3185
|
+
function rr(e, n, t, r, i, l, o, a, s) {
|
3189
3186
|
const u = s || Number.POSITIVE_INFINITY;
|
3190
3187
|
let c = 0;
|
3191
3188
|
return p;
|
3192
3189
|
function p(k) {
|
3193
|
-
return k === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(k), e.exit(l), d) : k === null || k === 32 || k === 41 ||
|
3190
|
+
return k === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(k), e.exit(l), d) : k === null || k === 32 || k === 41 || xn(k) ? t(k) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
|
3194
3191
|
contentType: "string"
|
3195
3192
|
}), b(k));
|
3196
3193
|
}
|
@@ -3206,13 +3203,13 @@ function ir(e, n, t, r, i, l, o, a, s) {
|
|
3206
3203
|
return k === 60 || k === 62 || k === 92 ? (e.consume(k), h) : h(k);
|
3207
3204
|
}
|
3208
3205
|
function b(k) {
|
3209
|
-
return !c && (k === null || k === 41 || Q(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(k)) : c < u && k === 40 ? (e.consume(k), c++, b) : k === 41 ? (e.consume(k), c--, b) : k === null || k === 32 || k === 40 ||
|
3206
|
+
return !c && (k === null || k === 41 || Q(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(k)) : c < u && k === 40 ? (e.consume(k), c++, b) : k === 41 ? (e.consume(k), c--, b) : k === null || k === 32 || k === 40 || xn(k) ? t(k) : (e.consume(k), k === 92 ? z : b);
|
3210
3207
|
}
|
3211
3208
|
function z(k) {
|
3212
3209
|
return k === 40 || k === 41 || k === 92 ? (e.consume(k), b) : b(k);
|
3213
3210
|
}
|
3214
3211
|
}
|
3215
|
-
function
|
3212
|
+
function ir(e, n, t, r, i, l) {
|
3216
3213
|
const o = this;
|
3217
3214
|
let a = 0, s;
|
3218
3215
|
return u;
|
@@ -3236,7 +3233,7 @@ function lr(e, n, t, r, i, l) {
|
|
3236
3233
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, p) : p(h);
|
3237
3234
|
}
|
3238
3235
|
}
|
3239
|
-
function
|
3236
|
+
function lr(e, n, t, r, i, l) {
|
3240
3237
|
let o;
|
3241
3238
|
return a;
|
3242
3239
|
function a(d) {
|
@@ -3257,21 +3254,21 @@ function or(e, n, t, r, i, l) {
|
|
3257
3254
|
return d === o || d === 92 ? (e.consume(d), c) : c(d);
|
3258
3255
|
}
|
3259
3256
|
}
|
3260
|
-
function
|
3257
|
+
function Be(e, n) {
|
3261
3258
|
let t;
|
3262
3259
|
return r;
|
3263
3260
|
function r(i) {
|
3264
3261
|
return L(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : F(i) ? U(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
3265
3262
|
}
|
3266
3263
|
}
|
3267
|
-
const
|
3264
|
+
const Rl = {
|
3268
3265
|
name: "definition",
|
3269
|
-
tokenize:
|
3270
|
-
},
|
3266
|
+
tokenize: Fl
|
3267
|
+
}, Dl = {
|
3271
3268
|
partial: !0,
|
3272
|
-
tokenize:
|
3269
|
+
tokenize: Ol
|
3273
3270
|
};
|
3274
|
-
function
|
3271
|
+
function Fl(e, n, t) {
|
3275
3272
|
const r = this;
|
3276
3273
|
let i;
|
3277
3274
|
return l;
|
@@ -3279,7 +3276,7 @@ function Bl(e, n, t) {
|
|
3279
3276
|
return e.enter("definition"), o(h);
|
3280
3277
|
}
|
3281
3278
|
function o(h) {
|
3282
|
-
return
|
3279
|
+
return ir.call(
|
3283
3280
|
r,
|
3284
3281
|
e,
|
3285
3282
|
a,
|
@@ -3294,10 +3291,10 @@ function Bl(e, n, t) {
|
|
3294
3291
|
return i = Ae(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), s) : t(h);
|
3295
3292
|
}
|
3296
3293
|
function s(h) {
|
3297
|
-
return Q(h) ?
|
3294
|
+
return Q(h) ? Be(e, u)(h) : u(h);
|
3298
3295
|
}
|
3299
3296
|
function u(h) {
|
3300
|
-
return
|
3297
|
+
return rr(
|
3301
3298
|
e,
|
3302
3299
|
c,
|
3303
3300
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
@@ -3310,7 +3307,7 @@ function Bl(e, n, t) {
|
|
3310
3307
|
)(h);
|
3311
3308
|
}
|
3312
3309
|
function c(h) {
|
3313
|
-
return e.attempt(
|
3310
|
+
return e.attempt(Dl, p, p)(h);
|
3314
3311
|
}
|
3315
3312
|
function p(h) {
|
3316
3313
|
return F(h) ? U(e, d, "whitespace")(h) : d(h);
|
@@ -3319,13 +3316,13 @@ function Bl(e, n, t) {
|
|
3319
3316
|
return h === null || L(h) ? (e.exit("definition"), r.parser.defined.push(i), n(h)) : t(h);
|
3320
3317
|
}
|
3321
3318
|
}
|
3322
|
-
function
|
3319
|
+
function Ol(e, n, t) {
|
3323
3320
|
return r;
|
3324
3321
|
function r(a) {
|
3325
|
-
return Q(a) ?
|
3322
|
+
return Q(a) ? Be(e, i)(a) : t(a);
|
3326
3323
|
}
|
3327
3324
|
function i(a) {
|
3328
|
-
return
|
3325
|
+
return lr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
3329
3326
|
}
|
3330
3327
|
function l(a) {
|
3331
3328
|
return F(a) ? U(e, o, "whitespace")(a) : o(a);
|
@@ -3334,11 +3331,11 @@ function jl(e, n, t) {
|
|
3334
3331
|
return a === null || L(a) ? n(a) : t(a);
|
3335
3332
|
}
|
3336
3333
|
}
|
3337
|
-
const
|
3334
|
+
const Ml = {
|
3338
3335
|
name: "hardBreakEscape",
|
3339
|
-
tokenize:
|
3336
|
+
tokenize: Bl
|
3340
3337
|
};
|
3341
|
-
function
|
3338
|
+
function Bl(e, n, t) {
|
3342
3339
|
return r;
|
3343
3340
|
function r(l) {
|
3344
3341
|
return e.enter("hardBreakEscape"), e.consume(l), i;
|
@@ -3347,12 +3344,12 @@ function Vl(e, n, t) {
|
|
3347
3344
|
return L(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
|
3348
3345
|
}
|
3349
3346
|
}
|
3350
|
-
const
|
3347
|
+
const jl = {
|
3351
3348
|
name: "headingAtx",
|
3352
|
-
resolve:
|
3353
|
-
tokenize:
|
3349
|
+
resolve: Hl,
|
3350
|
+
tokenize: Vl
|
3354
3351
|
};
|
3355
|
-
function
|
3352
|
+
function Hl(e, n) {
|
3356
3353
|
let t = e.length - 2, r = 3, i, l;
|
3357
3354
|
return e[r][1].type === "whitespace" && (r += 2), t - 2 > r && e[t][1].type === "whitespace" && (t -= 2), e[t][1].type === "atxHeadingSequence" && (r === t - 1 || t - 4 > r && e[t - 2][1].type === "whitespace") && (t -= r + 1 === t ? 2 : 4), t > r && (i = {
|
3358
3355
|
type: "atxHeadingText",
|
@@ -3365,7 +3362,7 @@ function ql(e, n) {
|
|
3365
3362
|
contentType: "text"
|
3366
3363
|
}, ce(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
|
3367
3364
|
}
|
3368
|
-
function
|
3365
|
+
function Vl(e, n, t) {
|
3369
3366
|
let r = 0;
|
3370
3367
|
return i;
|
3371
3368
|
function i(c) {
|
@@ -3387,7 +3384,7 @@ function $l(e, n, t) {
|
|
3387
3384
|
return c === null || c === 35 || Q(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
|
3388
3385
|
}
|
3389
3386
|
}
|
3390
|
-
const
|
3387
|
+
const Ul = [
|
3391
3388
|
"address",
|
3392
3389
|
"article",
|
3393
3390
|
"aside",
|
@@ -3450,25 +3447,25 @@ const Wl = [
|
|
3450
3447
|
"tr",
|
3451
3448
|
"track",
|
3452
3449
|
"ul"
|
3453
|
-
],
|
3450
|
+
], ht = ["pre", "script", "style", "textarea"], ql = {
|
3454
3451
|
concrete: !0,
|
3455
3452
|
name: "htmlFlow",
|
3456
|
-
resolveTo:
|
3457
|
-
tokenize:
|
3458
|
-
},
|
3453
|
+
resolveTo: Kl,
|
3454
|
+
tokenize: Gl
|
3455
|
+
}, $l = {
|
3459
3456
|
partial: !0,
|
3460
|
-
tokenize:
|
3461
|
-
},
|
3457
|
+
tokenize: Xl
|
3458
|
+
}, Wl = {
|
3462
3459
|
partial: !0,
|
3463
|
-
tokenize:
|
3460
|
+
tokenize: Yl
|
3464
3461
|
};
|
3465
|
-
function
|
3462
|
+
function Kl(e) {
|
3466
3463
|
let n = e.length;
|
3467
3464
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
|
3468
3465
|
;
|
3469
3466
|
return n > 1 && e[n - 2][1].type === "linePrefix" && (e[n][1].start = e[n - 2][1].start, e[n + 1][1].start = e[n - 2][1].start, e.splice(n - 2, 2)), e;
|
3470
3467
|
}
|
3471
|
-
function
|
3468
|
+
function Gl(e, n, t) {
|
3472
3469
|
const r = this;
|
3473
3470
|
let i, l, o, a, s;
|
3474
3471
|
return u;
|
@@ -3497,7 +3494,7 @@ function Ql(e, n, t) {
|
|
3497
3494
|
function z(m) {
|
3498
3495
|
if (m === null || m === 47 || m === 62 || Q(m)) {
|
3499
3496
|
const le = m === 47, xe = o.toLowerCase();
|
3500
|
-
return !le && !l &&
|
3497
|
+
return !le && !l && ht.includes(xe) ? (i = 1, r.interrupt ? n(m) : I(m)) : Ul.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), k) : r.interrupt ? n(m) : I(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? A(m) : C(m));
|
3501
3498
|
}
|
3502
3499
|
return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), z) : t(m);
|
3503
3500
|
}
|
@@ -3535,10 +3532,10 @@ function Ql(e, n, t) {
|
|
3535
3532
|
return m === null || L(m) ? I(m) : F(m) ? (e.consume(m), T) : t(m);
|
3536
3533
|
}
|
3537
3534
|
function I(m) {
|
3538
|
-
return m === 45 && i === 2 ? (e.consume(m), W) : m === 60 && i === 1 ? (e.consume(m), K) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), f) : m === 93 && i === 5 ? (e.consume(m), pe) : L(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
3535
|
+
return m === 45 && i === 2 ? (e.consume(m), W) : m === 60 && i === 1 ? (e.consume(m), K) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), f) : m === 93 && i === 5 ? (e.consume(m), pe) : L(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check($l, he, P)(m)) : m === null || L(m) ? (e.exit("htmlFlowData"), P(m)) : (e.consume(m), I);
|
3539
3536
|
}
|
3540
3537
|
function P(m) {
|
3541
|
-
return e.check(
|
3538
|
+
return e.check(Wl, E, he)(m);
|
3542
3539
|
}
|
3543
3540
|
function E(m) {
|
3544
3541
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), N;
|
@@ -3555,7 +3552,7 @@ function Ql(e, n, t) {
|
|
3555
3552
|
function re(m) {
|
3556
3553
|
if (m === 62) {
|
3557
3554
|
const le = o.toLowerCase();
|
3558
|
-
return
|
3555
|
+
return ht.includes(le) ? (e.consume(m), ie) : I(m);
|
3559
3556
|
}
|
3560
3557
|
return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : I(m);
|
3561
3558
|
}
|
@@ -3572,7 +3569,7 @@ function Ql(e, n, t) {
|
|
3572
3569
|
return e.exit("htmlFlow"), n(m);
|
3573
3570
|
}
|
3574
3571
|
}
|
3575
|
-
function
|
3572
|
+
function Yl(e, n, t) {
|
3576
3573
|
const r = this;
|
3577
3574
|
return i;
|
3578
3575
|
function i(o) {
|
@@ -3582,17 +3579,17 @@ function Jl(e, n, t) {
|
|
3582
3579
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
3583
3580
|
}
|
3584
3581
|
}
|
3585
|
-
function
|
3582
|
+
function Xl(e, n, t) {
|
3586
3583
|
return r;
|
3587
3584
|
function r(i) {
|
3588
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
3585
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(en, n, t);
|
3589
3586
|
}
|
3590
3587
|
}
|
3591
|
-
const
|
3588
|
+
const Ql = {
|
3592
3589
|
name: "htmlText",
|
3593
|
-
tokenize:
|
3590
|
+
tokenize: Jl
|
3594
3591
|
};
|
3595
|
-
function
|
3592
|
+
function Jl(e, n, t) {
|
3596
3593
|
const r = this;
|
3597
3594
|
let i, l, o;
|
3598
3595
|
return a;
|
@@ -3685,19 +3682,19 @@ function no(e, n, t) {
|
|
3685
3682
|
return e.enter("htmlTextData"), o(f);
|
3686
3683
|
}
|
3687
3684
|
}
|
3688
|
-
const
|
3685
|
+
const Mn = {
|
3689
3686
|
name: "labelEnd",
|
3690
|
-
resolveAll:
|
3691
|
-
resolveTo:
|
3687
|
+
resolveAll: to,
|
3688
|
+
resolveTo: ro,
|
3689
|
+
tokenize: io
|
3690
|
+
}, Zl = {
|
3691
|
+
tokenize: lo
|
3692
|
+
}, eo = {
|
3693
|
+
tokenize: oo
|
3694
|
+
}, no = {
|
3692
3695
|
tokenize: ao
|
3693
|
-
}, to = {
|
3694
|
-
tokenize: uo
|
3695
|
-
}, ro = {
|
3696
|
-
tokenize: so
|
3697
|
-
}, io = {
|
3698
|
-
tokenize: co
|
3699
3696
|
};
|
3700
|
-
function
|
3697
|
+
function to(e) {
|
3701
3698
|
let n = -1;
|
3702
3699
|
const t = [];
|
3703
3700
|
for (; ++n < e.length; ) {
|
@@ -3709,7 +3706,7 @@ function lo(e) {
|
|
3709
3706
|
}
|
3710
3707
|
return e.length !== t.length && ce(e, 0, e.length, t), e;
|
3711
3708
|
}
|
3712
|
-
function
|
3709
|
+
function ro(e, n) {
|
3713
3710
|
let t = e.length, r = 0, i, l, o, a;
|
3714
3711
|
for (; t--; )
|
3715
3712
|
if (i = e[t][1], l) {
|
@@ -3747,9 +3744,9 @@ function oo(e, n) {
|
|
3747
3744
|
...e[o - 2][1].start
|
3748
3745
|
}
|
3749
3746
|
};
|
3750
|
-
return a = [["enter", s, n], ["enter", u, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", c, n]]), a = te(a,
|
3747
|
+
return a = [["enter", s, n], ["enter", u, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", c, n]]), a = te(a, On(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = te(a, [["exit", c, n], e[o - 2], e[o - 1], ["exit", u, n]]), a = te(a, e.slice(o + 1)), a = te(a, [["exit", s, n]]), ce(e, l, e.length, a), e;
|
3751
3748
|
}
|
3752
|
-
function
|
3749
|
+
function io(e, n, t) {
|
3753
3750
|
const r = this;
|
3754
3751
|
let i = r.events.length, l, o;
|
3755
3752
|
for (; i--; )
|
@@ -3765,10 +3762,10 @@ function ao(e, n, t) {
|
|
3765
3762
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), s) : t(d);
|
3766
3763
|
}
|
3767
3764
|
function s(d) {
|
3768
|
-
return d === 40 ? e.attempt(
|
3765
|
+
return d === 40 ? e.attempt(Zl, c, o ? c : p)(d) : d === 91 ? e.attempt(eo, c, o ? u : p)(d) : o ? c(d) : p(d);
|
3769
3766
|
}
|
3770
3767
|
function u(d) {
|
3771
|
-
return e.attempt(
|
3768
|
+
return e.attempt(no, c, p)(d);
|
3772
3769
|
}
|
3773
3770
|
function c(d) {
|
3774
3771
|
return n(d);
|
@@ -3777,38 +3774,38 @@ function ao(e, n, t) {
|
|
3777
3774
|
return l._balanced = !0, t(d);
|
3778
3775
|
}
|
3779
3776
|
}
|
3780
|
-
function
|
3777
|
+
function lo(e, n, t) {
|
3781
3778
|
return r;
|
3782
3779
|
function r(p) {
|
3783
3780
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
3784
3781
|
}
|
3785
3782
|
function i(p) {
|
3786
|
-
return Q(p) ?
|
3783
|
+
return Q(p) ? Be(e, l)(p) : l(p);
|
3787
3784
|
}
|
3788
3785
|
function l(p) {
|
3789
|
-
return p === 41 ? c(p) :
|
3786
|
+
return p === 41 ? c(p) : rr(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(p);
|
3790
3787
|
}
|
3791
3788
|
function o(p) {
|
3792
|
-
return Q(p) ?
|
3789
|
+
return Q(p) ? Be(e, s)(p) : c(p);
|
3793
3790
|
}
|
3794
3791
|
function a(p) {
|
3795
3792
|
return t(p);
|
3796
3793
|
}
|
3797
3794
|
function s(p) {
|
3798
|
-
return p === 34 || p === 39 || p === 40 ?
|
3795
|
+
return p === 34 || p === 39 || p === 40 ? lr(e, u, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(p) : c(p);
|
3799
3796
|
}
|
3800
3797
|
function u(p) {
|
3801
|
-
return Q(p) ?
|
3798
|
+
return Q(p) ? Be(e, c)(p) : c(p);
|
3802
3799
|
}
|
3803
3800
|
function c(p) {
|
3804
3801
|
return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), n) : t(p);
|
3805
3802
|
}
|
3806
3803
|
}
|
3807
|
-
function
|
3804
|
+
function oo(e, n, t) {
|
3808
3805
|
const r = this;
|
3809
3806
|
return i;
|
3810
3807
|
function i(a) {
|
3811
|
-
return
|
3808
|
+
return ir.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
|
3812
3809
|
}
|
3813
3810
|
function l(a) {
|
3814
3811
|
return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
|
@@ -3817,7 +3814,7 @@ function so(e, n, t) {
|
|
3817
3814
|
return t(a);
|
3818
3815
|
}
|
3819
3816
|
}
|
3820
|
-
function
|
3817
|
+
function ao(e, n, t) {
|
3821
3818
|
return r;
|
3822
3819
|
function r(l) {
|
3823
3820
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
|
@@ -3826,12 +3823,12 @@ function co(e, n, t) {
|
|
3826
3823
|
return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
|
3827
3824
|
}
|
3828
3825
|
}
|
3829
|
-
const
|
3826
|
+
const uo = {
|
3830
3827
|
name: "labelStartImage",
|
3831
|
-
resolveAll:
|
3832
|
-
tokenize:
|
3828
|
+
resolveAll: Mn.resolveAll,
|
3829
|
+
tokenize: so
|
3833
3830
|
};
|
3834
|
-
function
|
3831
|
+
function so(e, n, t) {
|
3835
3832
|
const r = this;
|
3836
3833
|
return i;
|
3837
3834
|
function i(a) {
|
@@ -3844,12 +3841,12 @@ function ho(e, n, t) {
|
|
3844
3841
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
|
3845
3842
|
}
|
3846
3843
|
}
|
3847
|
-
const
|
3844
|
+
const co = {
|
3848
3845
|
name: "labelStartLink",
|
3849
|
-
resolveAll:
|
3850
|
-
tokenize:
|
3846
|
+
resolveAll: Mn.resolveAll,
|
3847
|
+
tokenize: po
|
3851
3848
|
};
|
3852
|
-
function
|
3849
|
+
function po(e, n, t) {
|
3853
3850
|
const r = this;
|
3854
3851
|
return i;
|
3855
3852
|
function i(o) {
|
@@ -3859,21 +3856,21 @@ function mo(e, n, t) {
|
|
3859
3856
|
return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
|
3860
3857
|
}
|
3861
3858
|
}
|
3862
|
-
const
|
3859
|
+
const on = {
|
3863
3860
|
name: "lineEnding",
|
3864
|
-
tokenize:
|
3861
|
+
tokenize: ho
|
3865
3862
|
};
|
3866
|
-
function
|
3863
|
+
function ho(e, n) {
|
3867
3864
|
return t;
|
3868
3865
|
function t(r) {
|
3869
3866
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), U(e, n, "linePrefix");
|
3870
3867
|
}
|
3871
3868
|
}
|
3872
|
-
const
|
3869
|
+
const Ge = {
|
3873
3870
|
name: "thematicBreak",
|
3874
|
-
tokenize:
|
3871
|
+
tokenize: fo
|
3875
3872
|
};
|
3876
|
-
function
|
3873
|
+
function fo(e, n, t) {
|
3877
3874
|
let r = 0, i;
|
3878
3875
|
return l;
|
3879
3876
|
function l(u) {
|
@@ -3891,43 +3888,43 @@ function yo(e, n, t) {
|
|
3891
3888
|
}
|
3892
3889
|
const X = {
|
3893
3890
|
continuation: {
|
3894
|
-
tokenize:
|
3891
|
+
tokenize: xo
|
3895
3892
|
},
|
3896
|
-
exit:
|
3893
|
+
exit: bo,
|
3897
3894
|
name: "list",
|
3898
|
-
tokenize:
|
3899
|
-
},
|
3895
|
+
tokenize: yo
|
3896
|
+
}, mo = {
|
3900
3897
|
partial: !0,
|
3901
|
-
tokenize:
|
3902
|
-
},
|
3898
|
+
tokenize: wo
|
3899
|
+
}, go = {
|
3903
3900
|
partial: !0,
|
3904
|
-
tokenize:
|
3901
|
+
tokenize: ko
|
3905
3902
|
};
|
3906
|
-
function
|
3903
|
+
function yo(e, n, t) {
|
3907
3904
|
const r = this, i = r.events[r.events.length - 1];
|
3908
3905
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
3909
3906
|
return a;
|
3910
3907
|
function a(h) {
|
3911
3908
|
const w = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
3912
|
-
if (w === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker :
|
3909
|
+
if (w === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : kn(h)) {
|
3913
3910
|
if (r.containerState.type || (r.containerState.type = w, e.enter(w, {
|
3914
3911
|
_container: !0
|
3915
3912
|
})), w === "listUnordered")
|
3916
|
-
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(
|
3913
|
+
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Ge, t, u)(h) : u(h);
|
3917
3914
|
if (!r.interrupt || h === 49)
|
3918
3915
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), s(h);
|
3919
3916
|
}
|
3920
3917
|
return t(h);
|
3921
3918
|
}
|
3922
3919
|
function s(h) {
|
3923
|
-
return
|
3920
|
+
return kn(h) && ++o < 10 ? (e.consume(h), s) : (!r.interrupt || o < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), u(h)) : t(h);
|
3924
3921
|
}
|
3925
3922
|
function u(h) {
|
3926
3923
|
return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
|
3927
|
-
|
3924
|
+
en,
|
3928
3925
|
// Can’t be empty when interrupting.
|
3929
3926
|
r.interrupt ? t : c,
|
3930
|
-
e.attempt(
|
3927
|
+
e.attempt(mo, d, p)
|
3931
3928
|
);
|
3932
3929
|
}
|
3933
3930
|
function c(h) {
|
@@ -3940,20 +3937,20 @@ function bo(e, n, t) {
|
|
3940
3937
|
return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(h);
|
3941
3938
|
}
|
3942
3939
|
}
|
3943
|
-
function
|
3940
|
+
function xo(e, n, t) {
|
3944
3941
|
const r = this;
|
3945
|
-
return r.containerState._closeFlow = void 0, e.check(
|
3942
|
+
return r.containerState._closeFlow = void 0, e.check(en, i, l);
|
3946
3943
|
function i(a) {
|
3947
3944
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, U(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
3948
3945
|
}
|
3949
3946
|
function l(a) {
|
3950
|
-
return r.containerState.furtherBlankLines || !F(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
3947
|
+
return r.containerState.furtherBlankLines || !F(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(go, n, o)(a));
|
3951
3948
|
}
|
3952
3949
|
function o(a) {
|
3953
3950
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, U(e, e.attempt(X, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
3954
3951
|
}
|
3955
3952
|
}
|
3956
|
-
function
|
3953
|
+
function ko(e, n, t) {
|
3957
3954
|
const r = this;
|
3958
3955
|
return U(e, i, "listItemIndent", r.containerState.size + 1);
|
3959
3956
|
function i(l) {
|
@@ -3961,10 +3958,10 @@ function So(e, n, t) {
|
|
3961
3958
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
|
3962
3959
|
}
|
3963
3960
|
}
|
3964
|
-
function
|
3961
|
+
function bo(e) {
|
3965
3962
|
e.exit(this.containerState.type);
|
3966
3963
|
}
|
3967
|
-
function
|
3964
|
+
function wo(e, n, t) {
|
3968
3965
|
const r = this;
|
3969
3966
|
return U(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
3970
3967
|
function i(l) {
|
@@ -3972,12 +3969,12 @@ function Eo(e, n, t) {
|
|
3972
3969
|
return !F(l) && o && o[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
|
3973
3970
|
}
|
3974
3971
|
}
|
3975
|
-
const
|
3972
|
+
const ft = {
|
3976
3973
|
name: "setextUnderline",
|
3977
|
-
resolveTo:
|
3978
|
-
tokenize:
|
3974
|
+
resolveTo: So,
|
3975
|
+
tokenize: Co
|
3979
3976
|
};
|
3980
|
-
function
|
3977
|
+
function So(e, n) {
|
3981
3978
|
let t = e.length, r, i, l;
|
3982
3979
|
for (; t--; )
|
3983
3980
|
if (e[t][0] === "enter") {
|
@@ -4001,7 +3998,7 @@ function Io(e, n) {
|
|
4001
3998
|
...e[l][1].end
|
4002
3999
|
}) : e[r][1] = o, e.push(["exit", o, n]), e;
|
4003
4000
|
}
|
4004
|
-
function
|
4001
|
+
function Co(e, n, t) {
|
4005
4002
|
const r = this;
|
4006
4003
|
let i;
|
4007
4004
|
return l;
|
@@ -4024,16 +4021,16 @@ function Po(e, n, t) {
|
|
4024
4021
|
return u === null || L(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
|
4025
4022
|
}
|
4026
4023
|
}
|
4027
|
-
const
|
4028
|
-
tokenize:
|
4024
|
+
const Eo = {
|
4025
|
+
tokenize: Io
|
4029
4026
|
};
|
4030
|
-
function
|
4027
|
+
function Io(e) {
|
4031
4028
|
const n = this, t = e.attempt(
|
4032
4029
|
// Try to parse a blank line.
|
4033
|
-
|
4030
|
+
en,
|
4034
4031
|
r,
|
4035
4032
|
// Try to parse initial flow (essentially, only code).
|
4036
|
-
e.attempt(this.parser.constructs.flowInitial, i, U(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
4033
|
+
e.attempt(this.parser.constructs.flowInitial, i, U(e, e.attempt(this.parser.constructs.flow, i, e.attempt(zl, i)), "linePrefix"))
|
4037
4034
|
);
|
4038
4035
|
return t;
|
4039
4036
|
function r(l) {
|
@@ -4051,12 +4048,12 @@ function Ao(e) {
|
|
4051
4048
|
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
4052
4049
|
}
|
4053
4050
|
}
|
4054
|
-
const
|
4055
|
-
resolveAll:
|
4056
|
-
},
|
4057
|
-
function
|
4051
|
+
const Po = {
|
4052
|
+
resolveAll: ar()
|
4053
|
+
}, To = or("string"), Ao = or("text");
|
4054
|
+
function or(e) {
|
4058
4055
|
return {
|
4059
|
-
resolveAll:
|
4056
|
+
resolveAll: ar(e === "text" ? zo : void 0),
|
4060
4057
|
tokenize: n
|
4061
4058
|
};
|
4062
4059
|
function n(t) {
|
@@ -4090,7 +4087,7 @@ function ar(e) {
|
|
4090
4087
|
}
|
4091
4088
|
}
|
4092
4089
|
}
|
4093
|
-
function
|
4090
|
+
function ar(e) {
|
4094
4091
|
return n;
|
4095
4092
|
function n(t, r) {
|
4096
4093
|
let i = -1, l;
|
@@ -4099,7 +4096,7 @@ function ur(e) {
|
|
4099
4096
|
return e ? e(t, r) : t;
|
4100
4097
|
}
|
4101
4098
|
}
|
4102
|
-
function
|
4099
|
+
function zo(e, n) {
|
4103
4100
|
let t = 0;
|
4104
4101
|
for (; ++t <= e.length; )
|
4105
4102
|
if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
@@ -4141,7 +4138,7 @@ function vo(e, n) {
|
|
4141
4138
|
}
|
4142
4139
|
return e;
|
4143
4140
|
}
|
4144
|
-
const
|
4141
|
+
const Lo = {
|
4145
4142
|
42: X,
|
4146
4143
|
43: X,
|
4147
4144
|
45: X,
|
@@ -4155,46 +4152,46 @@ const _o = {
|
|
4155
4152
|
55: X,
|
4156
4153
|
56: X,
|
4157
4154
|
57: X,
|
4158
|
-
62:
|
4155
|
+
62: Zt
|
4156
|
+
}, No = {
|
4157
|
+
91: Rl
|
4158
|
+
}, vo = {
|
4159
|
+
[-2]: ln,
|
4160
|
+
[-1]: ln,
|
4161
|
+
32: ln
|
4162
|
+
}, _o = {
|
4163
|
+
35: jl,
|
4164
|
+
42: Ge,
|
4165
|
+
45: [ft, Ge],
|
4166
|
+
60: ql,
|
4167
|
+
61: ft,
|
4168
|
+
95: Ge,
|
4169
|
+
96: pt,
|
4170
|
+
126: pt
|
4159
4171
|
}, Ro = {
|
4160
|
-
|
4172
|
+
38: nr,
|
4173
|
+
92: er
|
4161
4174
|
}, Do = {
|
4162
|
-
[-
|
4163
|
-
[-
|
4164
|
-
|
4175
|
+
[-5]: on,
|
4176
|
+
[-4]: on,
|
4177
|
+
[-3]: on,
|
4178
|
+
33: uo,
|
4179
|
+
38: nr,
|
4180
|
+
42: bn,
|
4181
|
+
60: [cl, Ql],
|
4182
|
+
91: co,
|
4183
|
+
92: [Ml, er],
|
4184
|
+
93: Mn,
|
4185
|
+
95: bn,
|
4186
|
+
96: Cl
|
4165
4187
|
}, Fo = {
|
4166
|
-
|
4167
|
-
42: Ye,
|
4168
|
-
45: [mt, Ye],
|
4169
|
-
60: Kl,
|
4170
|
-
61: mt,
|
4171
|
-
95: Ye,
|
4172
|
-
96: ht,
|
4173
|
-
126: ht
|
4188
|
+
null: [bn, Po]
|
4174
4189
|
}, Oo = {
|
4175
|
-
38: tr,
|
4176
|
-
92: nr
|
4177
|
-
}, Mo = {
|
4178
|
-
[-5]: an,
|
4179
|
-
[-4]: an,
|
4180
|
-
[-3]: an,
|
4181
|
-
33: po,
|
4182
|
-
38: tr,
|
4183
|
-
42: wn,
|
4184
|
-
60: [fl, eo],
|
4185
|
-
91: fo,
|
4186
|
-
92: [Hl, nr],
|
4187
|
-
93: Bn,
|
4188
|
-
95: wn,
|
4189
|
-
96: Pl
|
4190
|
-
}, Bo = {
|
4191
|
-
null: [wn, zo]
|
4192
|
-
}, jo = {
|
4193
4190
|
null: [42, 95]
|
4194
|
-
},
|
4191
|
+
}, Mo = {
|
4195
4192
|
null: []
|
4196
|
-
},
|
4197
|
-
function
|
4193
|
+
}, Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Oo, contentInitial: No, disable: Mo, document: Lo, flow: _o, flowInitial: vo, insideSpan: Fo, string: Ro, text: Do }, Symbol.toStringTag, { value: "Module" }));
|
4194
|
+
function jo(e, n, t) {
|
4198
4195
|
let r = {
|
4199
4196
|
_bufferIndex: -1,
|
4200
4197
|
_index: 0,
|
@@ -4228,13 +4225,13 @@ function Uo(e, n, t) {
|
|
4228
4225
|
let c = n.tokenize.call(u, s);
|
4229
4226
|
return n.resolveAll && l.push(n), u;
|
4230
4227
|
function p(T) {
|
4231
|
-
return o = te(o, T), z(), o[o.length - 1] !== null ? [] : (q(n, 0), u.events =
|
4228
|
+
return o = te(o, T), z(), o[o.length - 1] !== null ? [] : (q(n, 0), u.events = On(l, u.events, u), u.events);
|
4232
4229
|
}
|
4233
4230
|
function d(T, I) {
|
4234
|
-
return
|
4231
|
+
return Vo(h(T), I);
|
4235
4232
|
}
|
4236
4233
|
function h(T) {
|
4237
|
-
return
|
4234
|
+
return Ho(o, T);
|
4238
4235
|
}
|
4239
4236
|
function w() {
|
4240
4237
|
const {
|
@@ -4306,13 +4303,13 @@ function Uo(e, n, t) {
|
|
4306
4303
|
function ie(G) {
|
4307
4304
|
return Ne;
|
4308
4305
|
function Ne(de) {
|
4309
|
-
const Se = de !== null && G[de], Ce = de !== null && G.null,
|
4306
|
+
const Se = de !== null && G[de], Ce = de !== null && G.null, Ue = [
|
4310
4307
|
// To do: add more extension tests.
|
4311
4308
|
/* c8 ignore next 2 */
|
4312
4309
|
...Array.isArray(Se) ? Se : Se ? [Se] : [],
|
4313
4310
|
...Array.isArray(Ce) ? Ce : Ce ? [Ce] : []
|
4314
4311
|
];
|
4315
|
-
return he(
|
4312
|
+
return he(Ue)(de);
|
4316
4313
|
}
|
4317
4314
|
}
|
4318
4315
|
function he(G) {
|
@@ -4357,7 +4354,7 @@ function Uo(e, n, t) {
|
|
4357
4354
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
4358
4355
|
}
|
4359
4356
|
}
|
4360
|
-
function
|
4357
|
+
function Ho(e, n) {
|
4361
4358
|
const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
|
4362
4359
|
let o;
|
4363
4360
|
if (t === i)
|
@@ -4371,7 +4368,7 @@ function qo(e, n) {
|
|
4371
4368
|
}
|
4372
4369
|
return o;
|
4373
4370
|
}
|
4374
|
-
function
|
4371
|
+
function Vo(e, n) {
|
4375
4372
|
let t = -1;
|
4376
4373
|
const r = [];
|
4377
4374
|
let i;
|
@@ -4411,42 +4408,42 @@ function $o(e, n) {
|
|
4411
4408
|
}
|
4412
4409
|
return r.join("");
|
4413
4410
|
}
|
4414
|
-
function
|
4411
|
+
function Uo(e) {
|
4415
4412
|
const r = {
|
4416
4413
|
constructs: (
|
4417
4414
|
/** @type {FullNormalizedExtension} */
|
4418
|
-
|
4415
|
+
Yi([Bo, ...(e || {}).extensions || []])
|
4419
4416
|
),
|
4420
|
-
content: i(
|
4417
|
+
content: i(rl),
|
4421
4418
|
defined: [],
|
4422
|
-
document: i(
|
4423
|
-
flow: i(
|
4419
|
+
document: i(ll),
|
4420
|
+
flow: i(Eo),
|
4424
4421
|
lazy: {},
|
4425
|
-
string: i(
|
4426
|
-
text: i(
|
4422
|
+
string: i(To),
|
4423
|
+
text: i(Ao)
|
4427
4424
|
};
|
4428
4425
|
return r;
|
4429
4426
|
function i(l) {
|
4430
4427
|
return o;
|
4431
4428
|
function o(a) {
|
4432
|
-
return
|
4429
|
+
return jo(r, l, a);
|
4433
4430
|
}
|
4434
4431
|
}
|
4435
4432
|
}
|
4436
|
-
function
|
4437
|
-
for (; !
|
4433
|
+
function qo(e) {
|
4434
|
+
for (; !tr(e); )
|
4438
4435
|
;
|
4439
4436
|
return e;
|
4440
4437
|
}
|
4441
|
-
const
|
4442
|
-
function
|
4438
|
+
const mt = /[\0\t\n\r]/g;
|
4439
|
+
function $o() {
|
4443
4440
|
let e = 1, n = "", t = !0, r;
|
4444
4441
|
return i;
|
4445
4442
|
function i(l, o, a) {
|
4446
4443
|
const s = [];
|
4447
4444
|
let u, c, p, d, h;
|
4448
4445
|
for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)), p = 0, n = "", t && (l.charCodeAt(0) === 65279 && p++, t = void 0); p < l.length; ) {
|
4449
|
-
if (
|
4446
|
+
if (mt.lastIndex = p, u = mt.exec(l), d = u && u.index !== void 0 ? u.index : l.length, h = l.charCodeAt(d), !u) {
|
4450
4447
|
n = l.slice(p);
|
4451
4448
|
break;
|
4452
4449
|
}
|
@@ -4474,69 +4471,69 @@ function Go() {
|
|
4474
4471
|
return a && (r && s.push(-5), n && s.push(n), s.push(null)), s;
|
4475
4472
|
}
|
4476
4473
|
}
|
4477
|
-
const
|
4478
|
-
function
|
4479
|
-
return e.replace(
|
4474
|
+
const Wo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
4475
|
+
function Ko(e) {
|
4476
|
+
return e.replace(Wo, Go);
|
4480
4477
|
}
|
4481
|
-
function
|
4478
|
+
function Go(e, n, t) {
|
4482
4479
|
if (n)
|
4483
4480
|
return n;
|
4484
4481
|
if (t.charCodeAt(0) === 35) {
|
4485
4482
|
const i = t.charCodeAt(1), l = i === 120 || i === 88;
|
4486
|
-
return
|
4483
|
+
return Jt(t.slice(l ? 2 : 1), l ? 16 : 10);
|
4487
4484
|
}
|
4488
|
-
return
|
4485
|
+
return Fn(t) || e;
|
4489
4486
|
}
|
4490
|
-
const
|
4491
|
-
function
|
4492
|
-
return typeof n != "string" && (t = n, n = void 0),
|
4487
|
+
const ur = {}.hasOwnProperty;
|
4488
|
+
function Yo(e, n, t) {
|
4489
|
+
return typeof n != "string" && (t = n, n = void 0), Xo(t)(qo(Uo(t).document().write($o()(e, n, !0))));
|
4493
4490
|
}
|
4494
|
-
function
|
4491
|
+
function Xo(e) {
|
4495
4492
|
const n = {
|
4496
4493
|
transforms: [],
|
4497
4494
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
4498
4495
|
enter: {
|
4499
|
-
autolink: l(
|
4496
|
+
autolink: l(Un),
|
4500
4497
|
autolinkProtocol: O,
|
4501
4498
|
autolinkEmail: O,
|
4502
|
-
atxHeading: l(
|
4499
|
+
atxHeading: l(jn),
|
4503
4500
|
blockQuote: l(Ce),
|
4504
4501
|
characterEscape: O,
|
4505
4502
|
characterReference: O,
|
4506
|
-
codeFenced: l(
|
4503
|
+
codeFenced: l(Ue),
|
4507
4504
|
codeFencedFenceInfo: o,
|
4508
4505
|
codeFencedFenceMeta: o,
|
4509
|
-
codeIndented: l(
|
4510
|
-
codeText: l(
|
4506
|
+
codeIndented: l(Ue, o),
|
4507
|
+
codeText: l(hr, o),
|
4511
4508
|
codeTextData: O,
|
4512
4509
|
data: O,
|
4513
4510
|
codeFlowValue: O,
|
4514
|
-
definition: l(
|
4511
|
+
definition: l(fr),
|
4515
4512
|
definitionDestinationString: o,
|
4516
4513
|
definitionLabelString: o,
|
4517
4514
|
definitionTitleString: o,
|
4518
|
-
emphasis: l(
|
4519
|
-
hardBreakEscape: l(
|
4520
|
-
hardBreakTrailing: l(
|
4521
|
-
htmlFlow: l(
|
4515
|
+
emphasis: l(mr),
|
4516
|
+
hardBreakEscape: l(Hn),
|
4517
|
+
hardBreakTrailing: l(Hn),
|
4518
|
+
htmlFlow: l(Vn, o),
|
4522
4519
|
htmlFlowData: O,
|
4523
|
-
htmlText: l(
|
4520
|
+
htmlText: l(Vn, o),
|
4524
4521
|
htmlTextData: O,
|
4525
|
-
image: l(
|
4522
|
+
image: l(dr),
|
4526
4523
|
label: o,
|
4527
|
-
link: l(
|
4528
|
-
listItem: l(
|
4524
|
+
link: l(Un),
|
4525
|
+
listItem: l(gr),
|
4529
4526
|
listItemValue: d,
|
4530
|
-
listOrdered: l(
|
4531
|
-
listUnordered: l(
|
4532
|
-
paragraph: l(
|
4527
|
+
listOrdered: l(qn, p),
|
4528
|
+
listUnordered: l(qn),
|
4529
|
+
paragraph: l(yr),
|
4533
4530
|
reference: m,
|
4534
4531
|
referenceString: o,
|
4535
4532
|
resourceDestinationString: o,
|
4536
4533
|
resourceTitleString: o,
|
4537
|
-
setextHeading: l(
|
4538
|
-
strong: l(
|
4539
|
-
thematicBreak: l(
|
4534
|
+
setextHeading: l(jn),
|
4535
|
+
strong: l(xr),
|
4536
|
+
thematicBreak: l(br)
|
4540
4537
|
},
|
4541
4538
|
exit: {
|
4542
4539
|
atxHeading: s(),
|
@@ -4590,7 +4587,7 @@ function Zo(e) {
|
|
4590
4587
|
thematicBreak: s()
|
4591
4588
|
}
|
4592
4589
|
};
|
4593
|
-
|
4590
|
+
sr(n, (e || {}).mdastExtensions || []);
|
4594
4591
|
const t = {};
|
4595
4592
|
return r;
|
4596
4593
|
function r(g) {
|
@@ -4619,13 +4616,13 @@ function Zo(e) {
|
|
4619
4616
|
}
|
4620
4617
|
for (j = -1; ++j < g.length; ) {
|
4621
4618
|
const oe = n[g[j][0]];
|
4622
|
-
|
4619
|
+
ur.call(oe, g[j][1].type) && oe[g[j][1].type].call(Object.assign({
|
4623
4620
|
sliceSerialize: g[j][2].sliceSerialize
|
4624
4621
|
}, v), g[j][1]);
|
4625
4622
|
}
|
4626
4623
|
if (v.tokenStack.length > 0) {
|
4627
4624
|
const oe = v.tokenStack[v.tokenStack.length - 1];
|
4628
|
-
(oe[1] ||
|
4625
|
+
(oe[1] || dt).call(v, void 0, oe[0]);
|
4629
4626
|
}
|
4630
4627
|
for (S.position = {
|
4631
4628
|
start: ge(g.length > 0 ? g[0][1].start : {
|
@@ -4720,15 +4717,15 @@ function Zo(e) {
|
|
4720
4717
|
function u(g, S) {
|
4721
4718
|
const v = this.stack.pop(), R = this.tokenStack.pop();
|
4722
4719
|
if (R)
|
4723
|
-
R[0].type !== g.type && (S ? S.call(this, g, R[0]) : (R[1] ||
|
4724
|
-
else throw new Error("Cannot close `" + g.type + "` (" +
|
4720
|
+
R[0].type !== g.type && (S ? S.call(this, g, R[0]) : (R[1] || dt).call(this, g, R[0]));
|
4721
|
+
else throw new Error("Cannot close `" + g.type + "` (" + Me({
|
4725
4722
|
start: g.start,
|
4726
4723
|
end: g.end
|
4727
4724
|
}) + "): it’s not open");
|
4728
4725
|
v.position.end = ge(g.end);
|
4729
4726
|
}
|
4730
4727
|
function c() {
|
4731
|
-
return
|
4728
|
+
return Ki(this.stack.pop());
|
4732
4729
|
}
|
4733
4730
|
function p() {
|
4734
4731
|
this.data.expectingFirstListItemValue = !0;
|
@@ -4790,7 +4787,7 @@ function Zo(e) {
|
|
4790
4787
|
function O(g) {
|
4791
4788
|
const v = this.stack[this.stack.length - 1].children;
|
4792
4789
|
let R = v[v.length - 1];
|
4793
|
-
(!R || R.type !== "text") && (R =
|
4790
|
+
(!R || R.type !== "text") && (R = kr(), R.position = {
|
4794
4791
|
start: ge(g.start),
|
4795
4792
|
// @ts-expect-error: we’ll add `end` later.
|
4796
4793
|
end: void 0
|
@@ -4844,7 +4841,7 @@ function Zo(e) {
|
|
4844
4841
|
}
|
4845
4842
|
function re(g) {
|
4846
4843
|
const S = this.sliceSerialize(g), v = this.stack[this.stack.length - 2];
|
4847
|
-
v.label =
|
4844
|
+
v.label = Ko(S), v.identifier = Ae(S).toLowerCase();
|
4848
4845
|
}
|
4849
4846
|
function pe() {
|
4850
4847
|
const g = this.stack[this.stack.length - 1], S = this.resume(), v = this.stack[this.stack.length - 1];
|
@@ -4878,7 +4875,7 @@ function Zo(e) {
|
|
4878
4875
|
function G(g) {
|
4879
4876
|
const S = this.sliceSerialize(g), v = this.data.characterReferenceType;
|
4880
4877
|
let R;
|
4881
|
-
v ? (R =
|
4878
|
+
v ? (R = Jt(S, v === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : R = Fn(S);
|
4882
4879
|
const j = this.stack[this.stack.length - 1];
|
4883
4880
|
j.value += R;
|
4884
4881
|
}
|
@@ -4902,7 +4899,7 @@ function Zo(e) {
|
|
4902
4899
|
children: []
|
4903
4900
|
};
|
4904
4901
|
}
|
4905
|
-
function
|
4902
|
+
function Ue() {
|
4906
4903
|
return {
|
4907
4904
|
type: "code",
|
4908
4905
|
lang: null,
|
@@ -4910,13 +4907,13 @@ function Zo(e) {
|
|
4910
4907
|
value: ""
|
4911
4908
|
};
|
4912
4909
|
}
|
4913
|
-
function
|
4910
|
+
function hr() {
|
4914
4911
|
return {
|
4915
4912
|
type: "inlineCode",
|
4916
4913
|
value: ""
|
4917
4914
|
};
|
4918
4915
|
}
|
4919
|
-
function
|
4916
|
+
function fr() {
|
4920
4917
|
return {
|
4921
4918
|
type: "definition",
|
4922
4919
|
identifier: "",
|
@@ -4925,13 +4922,13 @@ function Zo(e) {
|
|
4925
4922
|
url: ""
|
4926
4923
|
};
|
4927
4924
|
}
|
4928
|
-
function
|
4925
|
+
function mr() {
|
4929
4926
|
return {
|
4930
4927
|
type: "emphasis",
|
4931
4928
|
children: []
|
4932
4929
|
};
|
4933
4930
|
}
|
4934
|
-
function
|
4931
|
+
function jn() {
|
4935
4932
|
return {
|
4936
4933
|
type: "heading",
|
4937
4934
|
// @ts-expect-error `depth` will be set later.
|
@@ -4939,18 +4936,18 @@ function Zo(e) {
|
|
4939
4936
|
children: []
|
4940
4937
|
};
|
4941
4938
|
}
|
4942
|
-
function
|
4939
|
+
function Hn() {
|
4943
4940
|
return {
|
4944
4941
|
type: "break"
|
4945
4942
|
};
|
4946
4943
|
}
|
4947
|
-
function
|
4944
|
+
function Vn() {
|
4948
4945
|
return {
|
4949
4946
|
type: "html",
|
4950
4947
|
value: ""
|
4951
4948
|
};
|
4952
4949
|
}
|
4953
|
-
function
|
4950
|
+
function dr() {
|
4954
4951
|
return {
|
4955
4952
|
type: "image",
|
4956
4953
|
title: null,
|
@@ -4958,7 +4955,7 @@ function Zo(e) {
|
|
4958
4955
|
alt: null
|
4959
4956
|
};
|
4960
4957
|
}
|
4961
|
-
function
|
4958
|
+
function Un() {
|
4962
4959
|
return {
|
4963
4960
|
type: "link",
|
4964
4961
|
title: null,
|
@@ -4966,7 +4963,7 @@ function Zo(e) {
|
|
4966
4963
|
children: []
|
4967
4964
|
};
|
4968
4965
|
}
|
4969
|
-
function
|
4966
|
+
function qn(g) {
|
4970
4967
|
return {
|
4971
4968
|
type: "list",
|
4972
4969
|
ordered: g.type === "listOrdered",
|
@@ -4975,7 +4972,7 @@ function Zo(e) {
|
|
4975
4972
|
children: []
|
4976
4973
|
};
|
4977
4974
|
}
|
4978
|
-
function
|
4975
|
+
function gr(g) {
|
4979
4976
|
return {
|
4980
4977
|
type: "listItem",
|
4981
4978
|
spread: g._spread,
|
@@ -4983,25 +4980,25 @@ function Zo(e) {
|
|
4983
4980
|
children: []
|
4984
4981
|
};
|
4985
4982
|
}
|
4986
|
-
function
|
4983
|
+
function yr() {
|
4987
4984
|
return {
|
4988
4985
|
type: "paragraph",
|
4989
4986
|
children: []
|
4990
4987
|
};
|
4991
4988
|
}
|
4992
|
-
function
|
4989
|
+
function xr() {
|
4993
4990
|
return {
|
4994
4991
|
type: "strong",
|
4995
4992
|
children: []
|
4996
4993
|
};
|
4997
4994
|
}
|
4998
|
-
function
|
4995
|
+
function kr() {
|
4999
4996
|
return {
|
5000
4997
|
type: "text",
|
5001
4998
|
value: ""
|
5002
4999
|
};
|
5003
5000
|
}
|
5004
|
-
function
|
5001
|
+
function br() {
|
5005
5002
|
return {
|
5006
5003
|
type: "thematicBreak"
|
5007
5004
|
};
|
@@ -5014,17 +5011,17 @@ function ge(e) {
|
|
5014
5011
|
offset: e.offset
|
5015
5012
|
};
|
5016
5013
|
}
|
5017
|
-
function
|
5014
|
+
function sr(e, n) {
|
5018
5015
|
let t = -1;
|
5019
5016
|
for (; ++t < n.length; ) {
|
5020
5017
|
const r = n[t];
|
5021
|
-
Array.isArray(r) ?
|
5018
|
+
Array.isArray(r) ? sr(e, r) : Qo(e, r);
|
5022
5019
|
}
|
5023
5020
|
}
|
5024
|
-
function
|
5021
|
+
function Qo(e, n) {
|
5025
5022
|
let t;
|
5026
5023
|
for (t in n)
|
5027
|
-
if (
|
5024
|
+
if (ur.call(n, t))
|
5028
5025
|
switch (t) {
|
5029
5026
|
case "canContainEols": {
|
5030
5027
|
const r = n[t];
|
@@ -5044,23 +5041,23 @@ function ea(e, n) {
|
|
5044
5041
|
}
|
5045
5042
|
}
|
5046
5043
|
}
|
5047
|
-
function
|
5048
|
-
throw e ? new Error("Cannot close `" + e.type + "` (" +
|
5044
|
+
function dt(e, n) {
|
5045
|
+
throw e ? new Error("Cannot close `" + e.type + "` (" + Me({
|
5049
5046
|
start: e.start,
|
5050
5047
|
end: e.end
|
5051
|
-
}) + "): a different token (`" + n.type + "`, " +
|
5048
|
+
}) + "): a different token (`" + n.type + "`, " + Me({
|
5052
5049
|
start: n.start,
|
5053
5050
|
end: n.end
|
5054
|
-
}) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " +
|
5051
|
+
}) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " + Me({
|
5055
5052
|
start: n.start,
|
5056
5053
|
end: n.end
|
5057
5054
|
}) + ") is still open");
|
5058
5055
|
}
|
5059
|
-
function
|
5056
|
+
function Jo(e) {
|
5060
5057
|
const n = this;
|
5061
5058
|
n.parser = t;
|
5062
5059
|
function t(r) {
|
5063
|
-
return
|
5060
|
+
return Yo(r, {
|
5064
5061
|
...n.data("settings"),
|
5065
5062
|
...e,
|
5066
5063
|
// Note: these options are not in the readme.
|
@@ -5071,7 +5068,7 @@ function na(e) {
|
|
5071
5068
|
});
|
5072
5069
|
}
|
5073
5070
|
}
|
5074
|
-
function
|
5071
|
+
function Zo(e, n) {
|
5075
5072
|
const t = {
|
5076
5073
|
type: "element",
|
5077
5074
|
tagName: "blockquote",
|
@@ -5080,12 +5077,12 @@ function ta(e, n) {
|
|
5080
5077
|
};
|
5081
5078
|
return e.patch(n, t), e.applyData(n, t);
|
5082
5079
|
}
|
5083
|
-
function
|
5080
|
+
function ea(e, n) {
|
5084
5081
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
5085
5082
|
return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
|
5086
5083
|
` }];
|
5087
5084
|
}
|
5088
|
-
function
|
5085
|
+
function na(e, n) {
|
5089
5086
|
const t = n.value ? n.value + `
|
5090
5087
|
` : "", r = {};
|
5091
5088
|
n.lang && (r.className = ["language-" + n.lang]);
|
@@ -5097,7 +5094,7 @@ function ia(e, n) {
|
|
5097
5094
|
};
|
5098
5095
|
return n.meta && (i.data = { meta: n.meta }), e.patch(n, i), i = e.applyData(n, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(n, i), i;
|
5099
5096
|
}
|
5100
|
-
function
|
5097
|
+
function ta(e, n) {
|
5101
5098
|
const t = {
|
5102
5099
|
type: "element",
|
5103
5100
|
tagName: "del",
|
@@ -5106,7 +5103,7 @@ function la(e, n) {
|
|
5106
5103
|
};
|
5107
5104
|
return e.patch(n, t), e.applyData(n, t);
|
5108
5105
|
}
|
5109
|
-
function
|
5106
|
+
function ra(e, n) {
|
5110
5107
|
const t = {
|
5111
5108
|
type: "element",
|
5112
5109
|
tagName: "em",
|
@@ -5115,7 +5112,7 @@ function oa(e, n) {
|
|
5115
5112
|
};
|
5116
5113
|
return e.patch(n, t), e.applyData(n, t);
|
5117
5114
|
}
|
5118
|
-
function
|
5115
|
+
function ia(e, n) {
|
5119
5116
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Le(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
|
5120
5117
|
let o, a = e.footnoteCounts.get(r);
|
5121
5118
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
|
@@ -5139,7 +5136,7 @@ function aa(e, n) {
|
|
5139
5136
|
};
|
5140
5137
|
return e.patch(n, u), e.applyData(n, u);
|
5141
5138
|
}
|
5142
|
-
function
|
5139
|
+
function la(e, n) {
|
5143
5140
|
const t = {
|
5144
5141
|
type: "element",
|
5145
5142
|
tagName: "h" + n.depth,
|
@@ -5148,13 +5145,13 @@ function ua(e, n) {
|
|
5148
5145
|
};
|
5149
5146
|
return e.patch(n, t), e.applyData(n, t);
|
5150
5147
|
}
|
5151
|
-
function
|
5148
|
+
function oa(e, n) {
|
5152
5149
|
if (e.options.allowDangerousHtml) {
|
5153
5150
|
const t = { type: "raw", value: n.value };
|
5154
5151
|
return e.patch(n, t), e.applyData(n, t);
|
5155
5152
|
}
|
5156
5153
|
}
|
5157
|
-
function
|
5154
|
+
function cr(e, n) {
|
5158
5155
|
const t = n.referenceType;
|
5159
5156
|
let r = "]";
|
5160
5157
|
if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference")
|
@@ -5164,22 +5161,22 @@ function pr(e, n) {
|
|
5164
5161
|
const o = i[i.length - 1];
|
5165
5162
|
return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
|
5166
5163
|
}
|
5167
|
-
function
|
5164
|
+
function aa(e, n) {
|
5168
5165
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
5169
5166
|
if (!r)
|
5170
|
-
return
|
5167
|
+
return cr(e, n);
|
5171
5168
|
const i = { src: Le(r.url || ""), alt: n.alt };
|
5172
5169
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
5173
5170
|
const l = { type: "element", tagName: "img", properties: i, children: [] };
|
5174
5171
|
return e.patch(n, l), e.applyData(n, l);
|
5175
5172
|
}
|
5176
|
-
function
|
5173
|
+
function ua(e, n) {
|
5177
5174
|
const t = { src: Le(n.url) };
|
5178
5175
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
5179
5176
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
5180
5177
|
return e.patch(n, r), e.applyData(n, r);
|
5181
5178
|
}
|
5182
|
-
function
|
5179
|
+
function sa(e, n) {
|
5183
5180
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
5184
5181
|
e.patch(n, t);
|
5185
5182
|
const r = {
|
@@ -5190,10 +5187,10 @@ function ha(e, n) {
|
|
5190
5187
|
};
|
5191
5188
|
return e.patch(n, r), e.applyData(n, r);
|
5192
5189
|
}
|
5193
|
-
function
|
5190
|
+
function ca(e, n) {
|
5194
5191
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
5195
5192
|
if (!r)
|
5196
|
-
return
|
5193
|
+
return cr(e, n);
|
5197
5194
|
const i = { href: Le(r.url || "") };
|
5198
5195
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
5199
5196
|
const l = {
|
@@ -5204,7 +5201,7 @@ function fa(e, n) {
|
|
5204
5201
|
};
|
5205
5202
|
return e.patch(n, l), e.applyData(n, l);
|
5206
5203
|
}
|
5207
|
-
function
|
5204
|
+
function pa(e, n) {
|
5208
5205
|
const t = { href: Le(n.url) };
|
5209
5206
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
5210
5207
|
const r = {
|
@@ -5215,8 +5212,8 @@ function ma(e, n) {
|
|
5215
5212
|
};
|
5216
5213
|
return e.patch(n, r), e.applyData(n, r);
|
5217
5214
|
}
|
5218
|
-
function
|
5219
|
-
const r = e.all(n), i = t ?
|
5215
|
+
function ha(e, n, t) {
|
5216
|
+
const r = e.all(n), i = t ? fa(t) : pr(n), l = {}, o = [];
|
5220
5217
|
if (typeof n.checked == "boolean") {
|
5221
5218
|
const c = r[0];
|
5222
5219
|
let p;
|
@@ -5239,22 +5236,22 @@ function da(e, n, t) {
|
|
5239
5236
|
const u = { type: "element", tagName: "li", properties: l, children: o };
|
5240
5237
|
return e.patch(n, u), e.applyData(n, u);
|
5241
5238
|
}
|
5242
|
-
function
|
5239
|
+
function fa(e) {
|
5243
5240
|
let n = !1;
|
5244
5241
|
if (e.type === "list") {
|
5245
5242
|
n = e.spread || !1;
|
5246
5243
|
const t = e.children;
|
5247
5244
|
let r = -1;
|
5248
5245
|
for (; !n && ++r < t.length; )
|
5249
|
-
n =
|
5246
|
+
n = pr(t[r]);
|
5250
5247
|
}
|
5251
5248
|
return n;
|
5252
5249
|
}
|
5253
|
-
function
|
5250
|
+
function pr(e) {
|
5254
5251
|
const n = e.spread;
|
5255
5252
|
return n ?? e.children.length > 1;
|
5256
5253
|
}
|
5257
|
-
function
|
5254
|
+
function ma(e, n) {
|
5258
5255
|
const t = {}, r = e.all(n);
|
5259
5256
|
let i = -1;
|
5260
5257
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
@@ -5272,7 +5269,7 @@ function ya(e, n) {
|
|
5272
5269
|
};
|
5273
5270
|
return e.patch(n, l), e.applyData(n, l);
|
5274
5271
|
}
|
5275
|
-
function
|
5272
|
+
function da(e, n) {
|
5276
5273
|
const t = {
|
5277
5274
|
type: "element",
|
5278
5275
|
tagName: "p",
|
@@ -5281,11 +5278,11 @@ function xa(e, n) {
|
|
5281
5278
|
};
|
5282
5279
|
return e.patch(n, t), e.applyData(n, t);
|
5283
5280
|
}
|
5284
|
-
function
|
5281
|
+
function ga(e, n) {
|
5285
5282
|
const t = { type: "root", children: e.wrap(e.all(n)) };
|
5286
5283
|
return e.patch(n, t), e.applyData(n, t);
|
5287
5284
|
}
|
5288
|
-
function
|
5285
|
+
function ya(e, n) {
|
5289
5286
|
const t = {
|
5290
5287
|
type: "element",
|
5291
5288
|
tagName: "strong",
|
@@ -5294,7 +5291,7 @@ function ba(e, n) {
|
|
5294
5291
|
};
|
5295
5292
|
return e.patch(n, t), e.applyData(n, t);
|
5296
5293
|
}
|
5297
|
-
function
|
5294
|
+
function xa(e, n) {
|
5298
5295
|
const t = e.all(n), r = t.shift(), i = [];
|
5299
5296
|
if (r) {
|
5300
5297
|
const o = {
|
@@ -5311,7 +5308,7 @@ function wa(e, n) {
|
|
5311
5308
|
tagName: "tbody",
|
5312
5309
|
properties: {},
|
5313
5310
|
children: e.wrap(t, !0)
|
5314
|
-
}, a =
|
5311
|
+
}, a = vn(n.children[1]), s = $t(n.children[n.children.length - 1]);
|
5315
5312
|
a && s && (o.position = { start: a, end: s }), i.push(o);
|
5316
5313
|
}
|
5317
5314
|
const l = {
|
@@ -5322,7 +5319,7 @@ function wa(e, n) {
|
|
5322
5319
|
};
|
5323
5320
|
return e.patch(n, l), e.applyData(n, l);
|
5324
5321
|
}
|
5325
|
-
function
|
5322
|
+
function ka(e, n, t) {
|
5326
5323
|
const r = t ? t.children : void 0, l = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, a = o ? o.length : n.children.length;
|
5327
5324
|
let s = -1;
|
5328
5325
|
const u = [];
|
@@ -5340,7 +5337,7 @@ function Sa(e, n, t) {
|
|
5340
5337
|
};
|
5341
5338
|
return e.patch(n, c), e.applyData(n, c);
|
5342
5339
|
}
|
5343
|
-
function
|
5340
|
+
function ba(e, n) {
|
5344
5341
|
const t = {
|
5345
5342
|
type: "element",
|
5346
5343
|
tagName: "td",
|
@@ -5350,37 +5347,37 @@ function Ca(e, n) {
|
|
5350
5347
|
};
|
5351
5348
|
return e.patch(n, t), e.applyData(n, t);
|
5352
5349
|
}
|
5353
|
-
const
|
5354
|
-
function
|
5350
|
+
const gt = 9, yt = 32;
|
5351
|
+
function wa(e) {
|
5355
5352
|
const n = String(e), t = /\r?\n|\r/g;
|
5356
5353
|
let r = t.exec(n), i = 0;
|
5357
5354
|
const l = [];
|
5358
5355
|
for (; r; )
|
5359
5356
|
l.push(
|
5360
|
-
|
5357
|
+
xt(n.slice(i, r.index), i > 0, !0),
|
5361
5358
|
r[0]
|
5362
5359
|
), i = r.index + r[0].length, r = t.exec(n);
|
5363
|
-
return l.push(
|
5360
|
+
return l.push(xt(n.slice(i), i > 0, !1)), l.join("");
|
5364
5361
|
}
|
5365
|
-
function
|
5362
|
+
function xt(e, n, t) {
|
5366
5363
|
let r = 0, i = e.length;
|
5367
5364
|
if (n) {
|
5368
5365
|
let l = e.codePointAt(r);
|
5369
|
-
for (; l ===
|
5366
|
+
for (; l === gt || l === yt; )
|
5370
5367
|
r++, l = e.codePointAt(r);
|
5371
5368
|
}
|
5372
5369
|
if (t) {
|
5373
5370
|
let l = e.codePointAt(i - 1);
|
5374
|
-
for (; l ===
|
5371
|
+
for (; l === gt || l === yt; )
|
5375
5372
|
i--, l = e.codePointAt(i - 1);
|
5376
5373
|
}
|
5377
5374
|
return i > r ? e.slice(r, i) : "";
|
5378
5375
|
}
|
5379
|
-
function
|
5380
|
-
const t = { type: "text", value:
|
5376
|
+
function Sa(e, n) {
|
5377
|
+
const t = { type: "text", value: wa(String(n.value)) };
|
5381
5378
|
return e.patch(n, t), e.applyData(n, t);
|
5382
5379
|
}
|
5383
|
-
function
|
5380
|
+
function Ca(e, n) {
|
5384
5381
|
const t = {
|
5385
5382
|
type: "element",
|
5386
5383
|
tagName: "hr",
|
@@ -5389,39 +5386,39 @@ function Pa(e, n) {
|
|
5389
5386
|
};
|
5390
5387
|
return e.patch(n, t), e.applyData(n, t);
|
5391
5388
|
}
|
5392
|
-
const
|
5393
|
-
blockquote:
|
5394
|
-
break:
|
5395
|
-
code:
|
5396
|
-
delete:
|
5397
|
-
emphasis:
|
5398
|
-
footnoteReference:
|
5399
|
-
heading:
|
5400
|
-
html:
|
5401
|
-
imageReference:
|
5402
|
-
image:
|
5403
|
-
inlineCode:
|
5404
|
-
linkReference:
|
5405
|
-
link:
|
5406
|
-
listItem:
|
5407
|
-
list:
|
5408
|
-
paragraph:
|
5389
|
+
const Ea = {
|
5390
|
+
blockquote: Zo,
|
5391
|
+
break: ea,
|
5392
|
+
code: na,
|
5393
|
+
delete: ta,
|
5394
|
+
emphasis: ra,
|
5395
|
+
footnoteReference: ia,
|
5396
|
+
heading: la,
|
5397
|
+
html: oa,
|
5398
|
+
imageReference: aa,
|
5399
|
+
image: ua,
|
5400
|
+
inlineCode: sa,
|
5401
|
+
linkReference: ca,
|
5402
|
+
link: pa,
|
5403
|
+
listItem: ha,
|
5404
|
+
list: ma,
|
5405
|
+
paragraph: da,
|
5409
5406
|
// @ts-expect-error: root is different, but hard to type.
|
5410
|
-
root:
|
5411
|
-
strong:
|
5412
|
-
table:
|
5413
|
-
tableCell:
|
5414
|
-
tableRow:
|
5415
|
-
text:
|
5416
|
-
thematicBreak:
|
5417
|
-
toml:
|
5418
|
-
yaml:
|
5419
|
-
definition:
|
5420
|
-
footnoteDefinition:
|
5407
|
+
root: ga,
|
5408
|
+
strong: ya,
|
5409
|
+
table: xa,
|
5410
|
+
tableCell: ba,
|
5411
|
+
tableRow: ka,
|
5412
|
+
text: Sa,
|
5413
|
+
thematicBreak: Ca,
|
5414
|
+
toml: $e,
|
5415
|
+
yaml: $e,
|
5416
|
+
definition: $e,
|
5417
|
+
footnoteDefinition: $e
|
5421
5418
|
};
|
5422
|
-
function
|
5419
|
+
function $e() {
|
5423
5420
|
}
|
5424
|
-
function
|
5421
|
+
function Ia(e, n) {
|
5425
5422
|
const t = [{ type: "text", value: "↩" }];
|
5426
5423
|
return n > 1 && t.push({
|
5427
5424
|
type: "element",
|
@@ -5430,11 +5427,11 @@ function Aa(e, n) {
|
|
5430
5427
|
children: [{ type: "text", value: String(n) }]
|
5431
5428
|
}), t;
|
5432
5429
|
}
|
5433
|
-
function
|
5430
|
+
function Pa(e, n) {
|
5434
5431
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
5435
5432
|
}
|
5436
|
-
function
|
5437
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
5433
|
+
function Ta(e) {
|
5434
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Ia, r = e.options.footnoteBackLabel || Pa, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
|
5438
5435
|
className: ["sr-only"]
|
5439
5436
|
}, a = [];
|
5440
5437
|
let s = -1;
|
@@ -5504,11 +5501,11 @@ function La(e) {
|
|
5504
5501
|
]
|
5505
5502
|
};
|
5506
5503
|
}
|
5507
|
-
const
|
5508
|
-
function
|
5509
|
-
const t = n ||
|
5504
|
+
const wn = {}.hasOwnProperty, Aa = {};
|
5505
|
+
function za(e, n) {
|
5506
|
+
const t = n || Aa, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...Ea, ...t.handlers }, a = {
|
5510
5507
|
all: u,
|
5511
|
-
applyData:
|
5508
|
+
applyData: Na,
|
5512
5509
|
definitionById: r,
|
5513
5510
|
footnoteById: i,
|
5514
5511
|
footnoteCounts: l,
|
@@ -5516,10 +5513,10 @@ function va(e, n) {
|
|
5516
5513
|
handlers: o,
|
5517
5514
|
one: s,
|
5518
5515
|
options: t,
|
5519
|
-
patch:
|
5520
|
-
wrap:
|
5516
|
+
patch: La,
|
5517
|
+
wrap: _a
|
5521
5518
|
};
|
5522
|
-
return
|
5519
|
+
return Ze(e, function(c) {
|
5523
5520
|
if (c.type === "definition" || c.type === "footnoteDefinition") {
|
5524
5521
|
const p = c.type === "definition" ? r : i, d = String(c.identifier).toUpperCase();
|
5525
5522
|
p.has(d) || p.set(d, c);
|
@@ -5527,7 +5524,7 @@ function va(e, n) {
|
|
5527
5524
|
}), a;
|
5528
5525
|
function s(c, p) {
|
5529
5526
|
const d = c.type, h = a.handlers[d];
|
5530
|
-
if (
|
5527
|
+
if (wn.call(a.handlers, d) && h)
|
5531
5528
|
return h(a, c, p);
|
5532
5529
|
if (a.options.passThrough && a.options.passThrough.includes(d)) {
|
5533
5530
|
if ("children" in c) {
|
@@ -5536,7 +5533,7 @@ function va(e, n) {
|
|
5536
5533
|
}
|
5537
5534
|
return be(c);
|
5538
5535
|
}
|
5539
|
-
return (a.options.unknownHandler ||
|
5536
|
+
return (a.options.unknownHandler || va)(a, c, p);
|
5540
5537
|
}
|
5541
5538
|
function u(c) {
|
5542
5539
|
const p = [];
|
@@ -5546,9 +5543,9 @@ function va(e, n) {
|
|
5546
5543
|
for (; ++h < d.length; ) {
|
5547
5544
|
const w = a.one(d[h], c);
|
5548
5545
|
if (w) {
|
5549
|
-
if (h && d[h - 1].type === "break" && (!Array.isArray(w) && w.type === "text" && (w.value =
|
5546
|
+
if (h && d[h - 1].type === "break" && (!Array.isArray(w) && w.type === "text" && (w.value = kt(w.value)), !Array.isArray(w) && w.type === "element")) {
|
5550
5547
|
const b = w.children[0];
|
5551
|
-
b && b.type === "text" && (b.value =
|
5548
|
+
b && b.type === "text" && (b.value = kt(b.value));
|
5552
5549
|
}
|
5553
5550
|
Array.isArray(w) ? p.push(...w) : p.push(w);
|
5554
5551
|
}
|
@@ -5557,10 +5554,10 @@ function va(e, n) {
|
|
5557
5554
|
return p;
|
5558
5555
|
}
|
5559
5556
|
}
|
5560
|
-
function
|
5561
|
-
e.position && (n.position =
|
5557
|
+
function La(e, n) {
|
5558
|
+
e.position && (n.position = Si(e));
|
5562
5559
|
}
|
5563
|
-
function
|
5560
|
+
function Na(e, n) {
|
5564
5561
|
let t = n;
|
5565
5562
|
if (e && e.data) {
|
5566
5563
|
const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
|
@@ -5575,8 +5572,8 @@ function Ra(e, n) {
|
|
5575
5572
|
}
|
5576
5573
|
return t;
|
5577
5574
|
}
|
5578
|
-
function
|
5579
|
-
const t = n.data || {}, r = "value" in n && !(
|
5575
|
+
function va(e, n) {
|
5576
|
+
const t = n.data || {}, r = "value" in n && !(wn.call(t, "hProperties") || wn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
|
5580
5577
|
type: "element",
|
5581
5578
|
tagName: "div",
|
5582
5579
|
properties: {},
|
@@ -5584,7 +5581,7 @@ function Da(e, n) {
|
|
5584
5581
|
};
|
5585
5582
|
return e.patch(n, r), e.applyData(n, r);
|
5586
5583
|
}
|
5587
|
-
function
|
5584
|
+
function _a(e, n) {
|
5588
5585
|
const t = [];
|
5589
5586
|
let r = -1;
|
5590
5587
|
for (n && t.push({ type: "text", value: `
|
@@ -5594,39 +5591,39 @@ function Fa(e, n) {
|
|
5594
5591
|
return n && e.length > 0 && t.push({ type: "text", value: `
|
5595
5592
|
` }), t;
|
5596
5593
|
}
|
5597
|
-
function
|
5594
|
+
function kt(e) {
|
5598
5595
|
let n = 0, t = e.charCodeAt(n);
|
5599
5596
|
for (; t === 9 || t === 32; )
|
5600
5597
|
n++, t = e.charCodeAt(n);
|
5601
5598
|
return e.slice(n);
|
5602
5599
|
}
|
5603
|
-
function
|
5604
|
-
const t =
|
5600
|
+
function bt(e, n) {
|
5601
|
+
const t = za(e, n), r = t.one(e, void 0), i = Ta(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
5605
5602
|
return i && l.children.push({ type: "text", value: `
|
5606
5603
|
` }, i), l;
|
5607
5604
|
}
|
5608
|
-
function
|
5605
|
+
function Ra(e, n) {
|
5609
5606
|
return e && "run" in e ? async function(t, r) {
|
5610
5607
|
const i = (
|
5611
5608
|
/** @type {HastRoot} */
|
5612
|
-
|
5609
|
+
bt(t, { file: r, ...n })
|
5613
5610
|
);
|
5614
5611
|
await e.run(i, r);
|
5615
5612
|
} : function(t, r) {
|
5616
5613
|
return (
|
5617
5614
|
/** @type {HastRoot} */
|
5618
|
-
|
5615
|
+
bt(t, { file: r, ...e || n })
|
5619
5616
|
);
|
5620
5617
|
};
|
5621
5618
|
}
|
5622
|
-
function
|
5619
|
+
function wt(e) {
|
5623
5620
|
if (e)
|
5624
5621
|
throw e;
|
5625
5622
|
}
|
5626
|
-
var
|
5627
|
-
function
|
5628
|
-
if (
|
5629
|
-
|
5623
|
+
var an, St;
|
5624
|
+
function Da() {
|
5625
|
+
if (St) return an;
|
5626
|
+
St = 1;
|
5630
5627
|
var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
5631
5628
|
return typeof Array.isArray == "function" ? Array.isArray(u) : n.call(u) === "[object Array]";
|
5632
5629
|
}, l = function(u) {
|
@@ -5654,24 +5651,24 @@ function Ma() {
|
|
5654
5651
|
} else return;
|
5655
5652
|
return u[c];
|
5656
5653
|
};
|
5657
|
-
return
|
5654
|
+
return an = function s() {
|
5658
5655
|
var u, c, p, d, h, w, b = arguments[0], z = 1, k = arguments.length, A = !1;
|
5659
5656
|
for (typeof b == "boolean" && (A = b, b = arguments[1] || {}, z = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); z < k; ++z)
|
5660
5657
|
if (u = arguments[z], u != null)
|
5661
5658
|
for (c in u)
|
5662
5659
|
p = a(b, c), d = a(u, c), b !== d && (A && d && (l(d) || (h = i(d))) ? (h ? (h = !1, w = p && i(p) ? p : []) : w = p && l(p) ? p : {}, o(b, { name: c, newValue: s(A, w, d) })) : typeof d < "u" && o(b, { name: c, newValue: d }));
|
5663
5660
|
return b;
|
5664
|
-
},
|
5661
|
+
}, an;
|
5665
5662
|
}
|
5666
|
-
var
|
5667
|
-
const
|
5668
|
-
function
|
5663
|
+
var Fa = /* @__PURE__ */ Da();
|
5664
|
+
const un = /* @__PURE__ */ At(Fa);
|
5665
|
+
function Sn(e) {
|
5669
5666
|
if (typeof e != "object" || e === null)
|
5670
5667
|
return !1;
|
5671
5668
|
const n = Object.getPrototypeOf(e);
|
5672
5669
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
5673
5670
|
}
|
5674
|
-
function
|
5671
|
+
function Oa() {
|
5675
5672
|
const e = [], n = { run: t, use: r };
|
5676
5673
|
return n;
|
5677
5674
|
function t(...i) {
|
@@ -5689,7 +5686,7 @@ function ja() {
|
|
5689
5686
|
}
|
5690
5687
|
for (; ++p < i.length; )
|
5691
5688
|
(u[p] === null || u[p] === void 0) && (u[p] = i[p]);
|
5692
|
-
i = u, c ?
|
5689
|
+
i = u, c ? Ma(c, a)(...u) : o(null, ...u);
|
5693
5690
|
}
|
5694
5691
|
}
|
5695
5692
|
function r(i) {
|
@@ -5700,7 +5697,7 @@ function ja() {
|
|
5700
5697
|
return e.push(i), n;
|
5701
5698
|
}
|
5702
5699
|
}
|
5703
|
-
function
|
5700
|
+
function Ma(e, n) {
|
5704
5701
|
let t;
|
5705
5702
|
return r;
|
5706
5703
|
function r(...o) {
|
@@ -5727,11 +5724,11 @@ function Ha(e, n) {
|
|
5727
5724
|
i(null, o);
|
5728
5725
|
}
|
5729
5726
|
}
|
5730
|
-
const ae = { basename:
|
5731
|
-
function
|
5727
|
+
const ae = { basename: Ba, dirname: ja, extname: Ha, join: Va, sep: "/" };
|
5728
|
+
function Ba(e, n) {
|
5732
5729
|
if (n !== void 0 && typeof n != "string")
|
5733
5730
|
throw new TypeError('"ext" argument must be a string');
|
5734
|
-
|
5731
|
+
Ve(e);
|
5735
5732
|
let t = 0, r = -1, i = e.length, l;
|
5736
5733
|
if (n === void 0 || n.length === 0 || n.length > e.length) {
|
5737
5734
|
for (; i--; )
|
@@ -5756,8 +5753,8 @@ function Va(e, n) {
|
|
5756
5753
|
o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
|
5757
5754
|
return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
|
5758
5755
|
}
|
5759
|
-
function
|
5760
|
-
if (
|
5756
|
+
function ja(e) {
|
5757
|
+
if (Ve(e), e.length === 0)
|
5761
5758
|
return ".";
|
5762
5759
|
let n = -1, t = e.length, r;
|
5763
5760
|
for (; --t; )
|
@@ -5769,8 +5766,8 @@ function Ua(e) {
|
|
5769
5766
|
} else r || (r = !0);
|
5770
5767
|
return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
|
5771
5768
|
}
|
5772
|
-
function
|
5773
|
-
|
5769
|
+
function Ha(e) {
|
5770
|
+
Ve(e);
|
5774
5771
|
let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
|
5775
5772
|
for (; n--; ) {
|
5776
5773
|
const a = e.codePointAt(n);
|
@@ -5787,19 +5784,19 @@ function qa(e) {
|
|
5787
5784
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
5788
5785
|
l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
|
5789
5786
|
}
|
5790
|
-
function
|
5787
|
+
function Va(...e) {
|
5791
5788
|
let n = -1, t;
|
5792
5789
|
for (; ++n < e.length; )
|
5793
|
-
|
5794
|
-
return t === void 0 ? "." :
|
5790
|
+
Ve(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
|
5791
|
+
return t === void 0 ? "." : Ua(t);
|
5795
5792
|
}
|
5796
|
-
function
|
5797
|
-
|
5793
|
+
function Ua(e) {
|
5794
|
+
Ve(e);
|
5798
5795
|
const n = e.codePointAt(0) === 47;
|
5799
|
-
let t =
|
5796
|
+
let t = qa(e, !n);
|
5800
5797
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
5801
5798
|
}
|
5802
|
-
function
|
5799
|
+
function qa(e, n) {
|
5803
5800
|
let t = "", r = 0, i = -1, l = 0, o = -1, a, s;
|
5804
5801
|
for (; ++o <= e.length; ) {
|
5805
5802
|
if (o < e.length)
|
@@ -5830,24 +5827,24 @@ function Ka(e, n) {
|
|
5830
5827
|
}
|
5831
5828
|
return t;
|
5832
5829
|
}
|
5833
|
-
function
|
5830
|
+
function Ve(e) {
|
5834
5831
|
if (typeof e != "string")
|
5835
5832
|
throw new TypeError(
|
5836
5833
|
"Path must be a string. Received " + JSON.stringify(e)
|
5837
5834
|
);
|
5838
5835
|
}
|
5839
|
-
const
|
5840
|
-
function
|
5836
|
+
const $a = { cwd: Wa };
|
5837
|
+
function Wa() {
|
5841
5838
|
return "/";
|
5842
5839
|
}
|
5843
|
-
function
|
5840
|
+
function Cn(e) {
|
5844
5841
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
5845
5842
|
e.auth === void 0);
|
5846
5843
|
}
|
5847
|
-
function
|
5844
|
+
function Ka(e) {
|
5848
5845
|
if (typeof e == "string")
|
5849
5846
|
e = new URL(e);
|
5850
|
-
else if (!
|
5847
|
+
else if (!Cn(e)) {
|
5851
5848
|
const n = new TypeError(
|
5852
5849
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
5853
5850
|
);
|
@@ -5857,9 +5854,9 @@ function Xa(e) {
|
|
5857
5854
|
const n = new TypeError("The URL must be of scheme file");
|
5858
5855
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
5859
5856
|
}
|
5860
|
-
return
|
5857
|
+
return Ga(e);
|
5861
5858
|
}
|
5862
|
-
function
|
5859
|
+
function Ga(e) {
|
5863
5860
|
if (e.hostname !== "") {
|
5864
5861
|
const r = new TypeError(
|
5865
5862
|
'File URL host must be "localhost" or empty on darwin'
|
@@ -5880,7 +5877,7 @@ function Qa(e) {
|
|
5880
5877
|
}
|
5881
5878
|
return decodeURIComponent(n);
|
5882
5879
|
}
|
5883
|
-
const
|
5880
|
+
const sn = (
|
5884
5881
|
/** @type {const} */
|
5885
5882
|
[
|
5886
5883
|
"history",
|
@@ -5891,7 +5888,7 @@ const cn = (
|
|
5891
5888
|
"dirname"
|
5892
5889
|
]
|
5893
5890
|
);
|
5894
|
-
class
|
5891
|
+
class Ya {
|
5895
5892
|
/**
|
5896
5893
|
* Create a new virtual file.
|
5897
5894
|
*
|
@@ -5916,15 +5913,15 @@ class Ja {
|
|
5916
5913
|
*/
|
5917
5914
|
constructor(n) {
|
5918
5915
|
let t;
|
5919
|
-
n ?
|
5916
|
+
n ? Cn(n) ? t = { path: n } : typeof n == "string" || Xa(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : $a.cwd(), this.data = {}, this.history = [], this.messages = [];
|
5920
5917
|
let r = -1;
|
5921
|
-
for (; ++r <
|
5922
|
-
const l =
|
5918
|
+
for (; ++r < sn.length; ) {
|
5919
|
+
const l = sn[r];
|
5923
5920
|
l in t && t[l] !== void 0 && t[l] !== null && (this[l] = l === "history" ? [...t[l]] : t[l]);
|
5924
5921
|
}
|
5925
5922
|
let i;
|
5926
5923
|
for (i in t)
|
5927
|
-
|
5924
|
+
sn.includes(i) || (this[i] = t[i]);
|
5928
5925
|
}
|
5929
5926
|
/**
|
5930
5927
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
@@ -5948,7 +5945,7 @@ class Ja {
|
|
5948
5945
|
* Nothing.
|
5949
5946
|
*/
|
5950
5947
|
set basename(n) {
|
5951
|
-
|
5948
|
+
pn(n, "basename"), cn(n, "basename"), this.path = ae.join(this.dirname || "", n);
|
5952
5949
|
}
|
5953
5950
|
/**
|
5954
5951
|
* Get the parent path (example: `'~'`).
|
@@ -5970,7 +5967,7 @@ class Ja {
|
|
5970
5967
|
* Nothing.
|
5971
5968
|
*/
|
5972
5969
|
set dirname(n) {
|
5973
|
-
|
5970
|
+
Ct(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
|
5974
5971
|
}
|
5975
5972
|
/**
|
5976
5973
|
* Get the extname (including dot) (example: `'.js'`).
|
@@ -5994,7 +5991,7 @@ class Ja {
|
|
5994
5991
|
* Nothing.
|
5995
5992
|
*/
|
5996
5993
|
set extname(n) {
|
5997
|
-
if (
|
5994
|
+
if (cn(n, "extname"), Ct(this.dirname, "extname"), n) {
|
5998
5995
|
if (n.codePointAt(0) !== 46)
|
5999
5996
|
throw new Error("`extname` must start with `.`");
|
6000
5997
|
if (n.includes(".", 1))
|
@@ -6024,7 +6021,7 @@ class Ja {
|
|
6024
6021
|
* Nothing.
|
6025
6022
|
*/
|
6026
6023
|
set path(n) {
|
6027
|
-
|
6024
|
+
Cn(n) && (n = Ka(n)), pn(n, "path"), this.path !== n && this.history.push(n);
|
6028
6025
|
}
|
6029
6026
|
/**
|
6030
6027
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -6048,7 +6045,7 @@ class Ja {
|
|
6048
6045
|
* Nothing.
|
6049
6046
|
*/
|
6050
6047
|
set stem(n) {
|
6051
|
-
|
6048
|
+
pn(n, "stem"), cn(n, "stem"), this.path = ae.join(this.dirname || "", n + (this.extname || ""));
|
6052
6049
|
}
|
6053
6050
|
// Normal prototypal methods.
|
6054
6051
|
/**
|
@@ -6261,24 +6258,24 @@ class Ja {
|
|
6261
6258
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
|
6262
6259
|
}
|
6263
6260
|
}
|
6264
|
-
function
|
6261
|
+
function cn(e, n) {
|
6265
6262
|
if (e && e.includes(ae.sep))
|
6266
6263
|
throw new Error(
|
6267
6264
|
"`" + n + "` cannot be a path: did not expect `" + ae.sep + "`"
|
6268
6265
|
);
|
6269
6266
|
}
|
6270
|
-
function
|
6267
|
+
function pn(e, n) {
|
6271
6268
|
if (!e)
|
6272
6269
|
throw new Error("`" + n + "` cannot be empty");
|
6273
6270
|
}
|
6274
|
-
function
|
6271
|
+
function Ct(e, n) {
|
6275
6272
|
if (!e)
|
6276
6273
|
throw new Error("Setting `" + n + "` requires `path` to be set too");
|
6277
6274
|
}
|
6278
|
-
function
|
6275
|
+
function Xa(e) {
|
6279
6276
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
6280
6277
|
}
|
6281
|
-
const
|
6278
|
+
const Qa = (
|
6282
6279
|
/**
|
6283
6280
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
6284
6281
|
*/
|
@@ -6299,13 +6296,13 @@ const eu = (
|
|
6299
6296
|
};
|
6300
6297
|
return Object.setPrototypeOf(l, r), l;
|
6301
6298
|
}
|
6302
|
-
),
|
6303
|
-
class
|
6299
|
+
), Ja = {}.hasOwnProperty;
|
6300
|
+
class Bn extends Qa {
|
6304
6301
|
/**
|
6305
6302
|
* Create a processor.
|
6306
6303
|
*/
|
6307
6304
|
constructor() {
|
6308
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
6305
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Oa();
|
6309
6306
|
}
|
6310
6307
|
/**
|
6311
6308
|
* Copy a processor.
|
@@ -6321,14 +6318,14 @@ class jn extends eu {
|
|
6321
6318
|
copy() {
|
6322
6319
|
const n = (
|
6323
6320
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
6324
|
-
new
|
6321
|
+
new Bn()
|
6325
6322
|
);
|
6326
6323
|
let t = -1;
|
6327
6324
|
for (; ++t < this.attachers.length; ) {
|
6328
6325
|
const r = this.attachers[t];
|
6329
6326
|
n.use(...r);
|
6330
6327
|
}
|
6331
|
-
return n.data(
|
6328
|
+
return n.data(un(!0, {}, this.namespace)), n;
|
6332
6329
|
}
|
6333
6330
|
/**
|
6334
6331
|
* Configure the processor with info available to all plugins.
|
@@ -6390,7 +6387,7 @@ class jn extends eu {
|
|
6390
6387
|
* the entire dataset when getting without key.
|
6391
6388
|
*/
|
6392
6389
|
data(n, t) {
|
6393
|
-
return typeof n == "string" ? arguments.length === 2 ? (
|
6390
|
+
return typeof n == "string" ? arguments.length === 2 ? (mn("data", this.frozen), this.namespace[n] = t, this) : Ja.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (mn("data", this.frozen), this.namespace = n, this) : this.namespace;
|
6394
6391
|
}
|
6395
6392
|
/**
|
6396
6393
|
* Freeze a processor.
|
@@ -6443,8 +6440,8 @@ class jn extends eu {
|
|
6443
6440
|
*/
|
6444
6441
|
parse(n) {
|
6445
6442
|
this.freeze();
|
6446
|
-
const t =
|
6447
|
-
return
|
6443
|
+
const t = We(n), r = this.parser || this.Parser;
|
6444
|
+
return hn("parse", r), r(String(t), t);
|
6448
6445
|
}
|
6449
6446
|
/**
|
6450
6447
|
* Process the given file as configured on the processor.
|
@@ -6490,9 +6487,9 @@ class jn extends eu {
|
|
6490
6487
|
*/
|
6491
6488
|
process(n, t) {
|
6492
6489
|
const r = this;
|
6493
|
-
return this.freeze(),
|
6490
|
+
return this.freeze(), hn("process", this.parser || this.Parser), fn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
|
6494
6491
|
function i(l, o) {
|
6495
|
-
const a =
|
6492
|
+
const a = We(n), s = (
|
6496
6493
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
6497
6494
|
/** @type {unknown} */
|
6498
6495
|
r.parse(a)
|
@@ -6505,7 +6502,7 @@ class jn extends eu {
|
|
6505
6502
|
/** @type {unknown} */
|
6506
6503
|
p
|
6507
6504
|
), w = r.stringify(h, d);
|
6508
|
-
|
6505
|
+
nu(w) ? d.value = w : d.result = w, u(
|
6509
6506
|
c,
|
6510
6507
|
/** @type {VFileWithOutput<CompileResult>} */
|
6511
6508
|
d
|
@@ -6549,9 +6546,9 @@ class jn extends eu {
|
|
6549
6546
|
*/
|
6550
6547
|
processSync(n) {
|
6551
6548
|
let t = !1, r;
|
6552
|
-
return this.freeze(),
|
6549
|
+
return this.freeze(), hn("processSync", this.parser || this.Parser), fn("processSync", this.compiler || this.Compiler), this.process(n, i), It("processSync", "process", t), r;
|
6553
6550
|
function i(l, o) {
|
6554
|
-
t = !0,
|
6551
|
+
t = !0, wt(l), r = o;
|
6555
6552
|
}
|
6556
6553
|
}
|
6557
6554
|
/**
|
@@ -6593,11 +6590,11 @@ class jn extends eu {
|
|
6593
6590
|
* transformed tree.
|
6594
6591
|
*/
|
6595
6592
|
run(n, t, r) {
|
6596
|
-
|
6593
|
+
Et(n), this.freeze();
|
6597
6594
|
const i = this.transformers;
|
6598
6595
|
return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
|
6599
6596
|
function l(o, a) {
|
6600
|
-
const s =
|
6597
|
+
const s = We(t);
|
6601
6598
|
i.run(n, s, u);
|
6602
6599
|
function u(c, p, d) {
|
6603
6600
|
const h = (
|
@@ -6627,9 +6624,9 @@ class jn extends eu {
|
|
6627
6624
|
*/
|
6628
6625
|
runSync(n, t) {
|
6629
6626
|
let r = !1, i;
|
6630
|
-
return this.run(n, t, l),
|
6627
|
+
return this.run(n, t, l), It("runSync", "run", r), i;
|
6631
6628
|
function l(o, a) {
|
6632
|
-
|
6629
|
+
wt(o), i = a, r = !0;
|
6633
6630
|
}
|
6634
6631
|
}
|
6635
6632
|
/**
|
@@ -6663,8 +6660,8 @@ class jn extends eu {
|
|
6663
6660
|
*/
|
6664
6661
|
stringify(n, t) {
|
6665
6662
|
this.freeze();
|
6666
|
-
const r =
|
6667
|
-
return
|
6663
|
+
const r = We(t), i = this.compiler || this.Compiler;
|
6664
|
+
return fn("stringify", i), Et(n), i(n, r);
|
6668
6665
|
}
|
6669
6666
|
/**
|
6670
6667
|
* Configure the processor to use a plugin, a list of usable values, or a
|
@@ -6725,7 +6722,7 @@ class jn extends eu {
|
|
6725
6722
|
*/
|
6726
6723
|
use(n, ...t) {
|
6727
6724
|
const r = this.attachers, i = this.namespace;
|
6728
|
-
if (
|
6725
|
+
if (mn("use", this.frozen), n != null) if (typeof n == "function")
|
6729
6726
|
s(n, t);
|
6730
6727
|
else if (typeof n == "object")
|
6731
6728
|
Array.isArray(n) ? a(n) : o(n);
|
@@ -6752,7 +6749,7 @@ class jn extends eu {
|
|
6752
6749
|
throw new Error(
|
6753
6750
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
6754
6751
|
);
|
6755
|
-
a(u.plugins), u.settings && (i.settings =
|
6752
|
+
a(u.plugins), u.settings && (i.settings = un(!0, i.settings, u.settings));
|
6756
6753
|
}
|
6757
6754
|
function a(u) {
|
6758
6755
|
let c = -1;
|
@@ -6776,61 +6773,61 @@ class jn extends eu {
|
|
6776
6773
|
else if (c.length > 0) {
|
6777
6774
|
let [h, ...w] = c;
|
6778
6775
|
const b = r[d][1];
|
6779
|
-
|
6776
|
+
Sn(b) && Sn(h) && (h = un(!0, b, h)), r[d] = [u, h, ...w];
|
6780
6777
|
}
|
6781
6778
|
}
|
6782
6779
|
}
|
6783
6780
|
}
|
6784
|
-
const
|
6785
|
-
function
|
6781
|
+
const Za = new Bn().freeze();
|
6782
|
+
function hn(e, n) {
|
6786
6783
|
if (typeof n != "function")
|
6787
6784
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
6788
6785
|
}
|
6789
|
-
function
|
6786
|
+
function fn(e, n) {
|
6790
6787
|
if (typeof n != "function")
|
6791
6788
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
6792
6789
|
}
|
6793
|
-
function
|
6790
|
+
function mn(e, n) {
|
6794
6791
|
if (n)
|
6795
6792
|
throw new Error(
|
6796
6793
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
6797
6794
|
);
|
6798
6795
|
}
|
6799
|
-
function
|
6800
|
-
if (!
|
6796
|
+
function Et(e) {
|
6797
|
+
if (!Sn(e) || typeof e.type != "string")
|
6801
6798
|
throw new TypeError("Expected node, got `" + e + "`");
|
6802
6799
|
}
|
6803
|
-
function
|
6800
|
+
function It(e, n, t) {
|
6804
6801
|
if (!t)
|
6805
6802
|
throw new Error(
|
6806
6803
|
"`" + e + "` finished async. Use `" + n + "` instead"
|
6807
6804
|
);
|
6808
6805
|
}
|
6809
|
-
function
|
6810
|
-
return
|
6806
|
+
function We(e) {
|
6807
|
+
return eu(e) ? e : new Ya(e);
|
6811
6808
|
}
|
6812
|
-
function
|
6809
|
+
function eu(e) {
|
6813
6810
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
6814
6811
|
}
|
6815
|
-
function
|
6816
|
-
return typeof e == "string" ||
|
6812
|
+
function nu(e) {
|
6813
|
+
return typeof e == "string" || tu(e);
|
6817
6814
|
}
|
6818
|
-
function
|
6815
|
+
function tu(e) {
|
6819
6816
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
6820
6817
|
}
|
6821
|
-
class
|
6818
|
+
class ru {
|
6819
|
+
remarkGfm = null;
|
6820
|
+
rehypeKatex = null;
|
6821
|
+
remarkMath = null;
|
6822
|
+
rehypeHighlight = null;
|
6822
6823
|
constructor() {
|
6823
|
-
Re(this, "remarkGfm", null);
|
6824
|
-
Re(this, "rehypeKatex", null);
|
6825
|
-
Re(this, "remarkMath", null);
|
6826
|
-
Re(this, "rehypeHighlight", null);
|
6827
6824
|
this.remarkGfm = null, this.rehypeKatex = null, this.remarkMath = null, this.rehypeHighlight = null;
|
6828
6825
|
}
|
6829
6826
|
async loadGfm() {
|
6830
6827
|
if (!this.remarkGfm) {
|
6831
6828
|
const { default: n } = await import(
|
6832
6829
|
/* webpackChunkName: "LazyRemarkGfm" */
|
6833
|
-
"./index.
|
6830
|
+
"./index.B4YQWIU9.js"
|
6834
6831
|
);
|
6835
6832
|
this.remarkGfm = n;
|
6836
6833
|
}
|
@@ -6838,10 +6835,10 @@ class ou {
|
|
6838
6835
|
}
|
6839
6836
|
async loadKatex() {
|
6840
6837
|
if (!this.rehypeKatex) {
|
6841
|
-
|
6838
|
+
uu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
6842
6839
|
const { default: n } = await import(
|
6843
6840
|
/* webpackChunkName: "LazyRehypeKatex" */
|
6844
|
-
"./index.
|
6841
|
+
"./index.hTQeydQm.js"
|
6845
6842
|
);
|
6846
6843
|
this.rehypeKatex = n;
|
6847
6844
|
}
|
@@ -6851,7 +6848,7 @@ class ou {
|
|
6851
6848
|
if (!this.remarkMath) {
|
6852
6849
|
const { default: n } = await import(
|
6853
6850
|
/* webpackChunkName: "LazyRemarkMath" */
|
6854
|
-
"./index.
|
6851
|
+
"./index.RwlG7A5L.js"
|
6855
6852
|
);
|
6856
6853
|
this.remarkMath = n;
|
6857
6854
|
}
|
@@ -6861,62 +6858,61 @@ class ou {
|
|
6861
6858
|
if (!this.rehypeHighlight) {
|
6862
6859
|
const { default: n } = await import(
|
6863
6860
|
/* webpackChunkName: "LazyRehypeHighlight" */
|
6864
|
-
"./index.
|
6861
|
+
"./index.DYGXp_k3.js"
|
6865
6862
|
);
|
6866
6863
|
this.rehypeHighlight = n;
|
6867
6864
|
}
|
6868
6865
|
return this.rehypeHighlight;
|
6869
6866
|
}
|
6870
6867
|
}
|
6871
|
-
const
|
6868
|
+
const Ke = new ru(), iu = ({
|
6872
6869
|
children: e,
|
6873
6870
|
raw: n,
|
6874
6871
|
...t
|
6875
|
-
}) => /* @__PURE__ */
|
6872
|
+
}) => /* @__PURE__ */ En("pre", { className: "relative pt-7 sm:pt-2 ps-0 sm:ps-3", ...t, children: [
|
6876
6873
|
e,
|
6877
6874
|
/* @__PURE__ */ se(
|
6878
|
-
|
6875
|
+
Lt,
|
6879
6876
|
{
|
6880
6877
|
mode: "light",
|
6881
6878
|
focusMode: "light",
|
6882
|
-
copyToClipboard: () =>
|
6879
|
+
copyToClipboard: () => Cr(n) || "",
|
6883
6880
|
labelRight: "Copy",
|
6884
6881
|
radius: "small",
|
6885
6882
|
className: "mb-2 px-1 absolute top-2 right-2 font-sans font-normal text-xs"
|
6886
6883
|
}
|
6887
6884
|
)
|
6888
|
-
] }),
|
6885
|
+
] }), lu = (e) => e.includes("```"), ou = (e) => e.includes("$$"), au = (e) => (
|
6889
6886
|
// urls
|
6890
6887
|
e.includes("http://") || e.includes("https://") || // table
|
6891
6888
|
e.includes("|") || // strikethrough
|
6892
6889
|
e.includes("~") || e.includes("~~") || // task lists
|
6893
6890
|
e.includes("- [ ]") || e.includes("- [x]")
|
6894
|
-
),
|
6891
|
+
), uu = (e) => {
|
6895
6892
|
const n = document.createElement("link");
|
6896
6893
|
n.href = e, n.type = "text/css", n.rel = "stylesheet", n.id = "dynamic-katex-css", document.head.appendChild(n);
|
6897
|
-
},
|
6898
|
-
|
6899
|
-
|
6900
|
-
|
6901
|
-
|
6902
|
-
if (r.tagName !== "code")
|
6894
|
+
}, su = () => (e) => {
|
6895
|
+
Ze(e, (n) => {
|
6896
|
+
if (n?.type === "element" && n?.tagName === "pre") {
|
6897
|
+
const [t] = n.children;
|
6898
|
+
if (t.tagName !== "code")
|
6903
6899
|
return;
|
6904
|
-
n.raw =
|
6900
|
+
n.raw = Er(t.children?.[0].value);
|
6905
6901
|
}
|
6906
6902
|
});
|
6907
|
-
},
|
6908
|
-
|
6909
|
-
|
6903
|
+
}, cu = () => (e) => {
|
6904
|
+
Ze(e, "element", (n) => {
|
6905
|
+
n?.type === "element" && n?.tagName === "pre" && (n.properties.raw = n.raw);
|
6910
6906
|
});
|
6911
|
-
},
|
6907
|
+
}, yu = ({
|
6912
6908
|
onError: e = () => {
|
6913
6909
|
}
|
6914
6910
|
} = {}) => {
|
6915
|
-
const n =
|
6911
|
+
const n = Re(e), t = Re(null), r = Re(null), i = Re(null), l = Re({
|
6916
6912
|
rehypePlugins: [
|
6917
|
-
|
6913
|
+
su,
|
6918
6914
|
[
|
6919
|
-
|
6915
|
+
ni,
|
6920
6916
|
{
|
6921
6917
|
target: "_blank",
|
6922
6918
|
rel: ["noopener", "noreferrer"]
|
@@ -6924,34 +6920,34 @@ const Ge = new ou(), au = ({
|
|
6924
6920
|
]
|
6925
6921
|
],
|
6926
6922
|
remarkPlugins: []
|
6927
|
-
}), [o, a] =
|
6928
|
-
|
6923
|
+
}), [o, a] = Pt(null);
|
6924
|
+
Tt(() => {
|
6929
6925
|
n.current = e;
|
6930
6926
|
}, [e]);
|
6931
|
-
const s =
|
6927
|
+
const s = Pr((u) => {
|
6932
6928
|
(async () => {
|
6933
6929
|
const { rehypePlugins: c, remarkPlugins: p } = l.current;
|
6934
|
-
if (!t.current &&
|
6930
|
+
if (!t.current && lu(u)) {
|
6935
6931
|
t.current = !0;
|
6936
|
-
const d = await
|
6932
|
+
const d = await Ke.loadHighlight();
|
6937
6933
|
l.current.rehypePlugins = [...c, d];
|
6938
6934
|
}
|
6939
|
-
if (!r.current &&
|
6935
|
+
if (!r.current && au(u)) {
|
6940
6936
|
r.current = !0;
|
6941
|
-
const d = await
|
6937
|
+
const d = await Ke.loadGfm();
|
6942
6938
|
l.current.remarkPlugins = [...p, d];
|
6943
6939
|
}
|
6944
|
-
if (!i.current &&
|
6940
|
+
if (!i.current && ou(u)) {
|
6945
6941
|
i.current = !0;
|
6946
|
-
const d = await
|
6942
|
+
const d = await Ke.loadKatex(), h = await Ke.loadMath();
|
6947
6943
|
l.current.remarkPlugins = [...p, h], l.current.rehypePlugins = [...c, d];
|
6948
6944
|
}
|
6949
|
-
l.current.rehypePlugins.push(
|
6950
|
-
Fragment:
|
6951
|
-
jsx:
|
6952
|
-
jsxs:
|
6945
|
+
l.current.rehypePlugins.push(cu), Za().use(Jo).use(l.current.remarkPlugins).use(Ra).use(l.current.rehypePlugins).use($i, {
|
6946
|
+
Fragment: nn.Fragment,
|
6947
|
+
jsx: nn.jsx,
|
6948
|
+
jsxs: nn.jsxs,
|
6953
6949
|
components: {
|
6954
|
-
pre:
|
6950
|
+
pre: iu
|
6955
6951
|
}
|
6956
6952
|
}).process(u).then((d) => a(d.result)).catch(n.current);
|
6957
6953
|
})();
|
@@ -6959,29 +6955,29 @@ const Ge = new ou(), au = ({
|
|
6959
6955
|
return [o, s];
|
6960
6956
|
};
|
6961
6957
|
export {
|
6962
|
-
|
6963
|
-
|
6958
|
+
Gn as EXIT,
|
6959
|
+
Yr as SKIP,
|
6964
6960
|
ue as asciiAlpha,
|
6965
6961
|
ne as asciiAlphanumeric,
|
6966
|
-
|
6967
|
-
|
6968
|
-
|
6969
|
-
|
6970
|
-
|
6971
|
-
|
6962
|
+
xn as asciiControl,
|
6963
|
+
en as blankLine,
|
6964
|
+
ut as classifyCharacter,
|
6965
|
+
Yi as combineExtensions,
|
6966
|
+
Dt as convert,
|
6967
|
+
Rt as convertElement,
|
6972
6968
|
U as factorySpace,
|
6973
6969
|
L as markdownLineEnding,
|
6974
6970
|
Q as markdownLineEndingOrSpace,
|
6975
6971
|
F as markdownSpace,
|
6976
6972
|
Ae as normalizeIdentifier,
|
6977
|
-
|
6978
|
-
|
6979
|
-
|
6973
|
+
Hr as parse,
|
6974
|
+
gu as parse$1,
|
6975
|
+
On as resolveAll,
|
6980
6976
|
ce as splice,
|
6981
|
-
|
6982
|
-
|
6983
|
-
|
6984
|
-
|
6985
|
-
|
6986
|
-
|
6977
|
+
Ki as toString,
|
6978
|
+
nl as unicodePunctuation,
|
6979
|
+
tl as unicodeWhitespace,
|
6980
|
+
yu as useMarkdown,
|
6981
|
+
Ze as visit,
|
6982
|
+
Xr as visitParents
|
6987
6983
|
};
|