@useago/sdk 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{createConversationSession-DtaeA418.cjs → createConversationSession-0F_OXdQB.cjs} +1 -1
- package/dist/{createConversationSession-D9FesBQS.js → createConversationSession-DbuVzvoX.js} +1 -1
- package/dist/createFormCollector-BMTdfhHg.cjs +1 -0
- package/dist/createFormCollector-Cujr7hW4.js +244 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +64 -7
- package/dist/index.d.ts +64 -7
- package/dist/index.js +59 -58
- package/dist/react.cjs +13 -13
- package/dist/react.d.cts +69 -9
- package/dist/react.d.ts +69 -9
- package/dist/react.js +1031 -1025
- package/dist/widget.cjs +1 -1
- package/dist/widget.d.cts +47 -5
- package/dist/widget.d.ts +47 -5
- package/dist/widget.js +44 -42
- package/package.json +1 -1
- package/dist/createFormCollector-BwvkKi48.js +0 -211
- package/dist/createFormCollector-Wb8Rr-U2.cjs +0 -1
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as Vn, r as Wn, t as
|
|
1
|
+
import { n as Vn, r as Wn, t as Ge } from "./rolldown-runtime-DxmricAu.js";
|
|
2
2
|
import { t as ui } from "./AgoClient-rvTz2thR.js";
|
|
3
|
-
import { t as Xn } from "./createFormCollector-
|
|
4
|
-
import { t as
|
|
5
|
-
import
|
|
3
|
+
import { n as si, t as Xn } from "./createFormCollector-Cujr7hW4.js";
|
|
4
|
+
import { t as sf } from "./createMockClient-DwdxNwEn.js";
|
|
5
|
+
import ci, { createContext as fi, useCallback as xe, useContext as Yn, useEffect as te, useId as pi, useMemo as We, useRef as Ne, useState as se, useSyncExternalStore as hi } from "react";
|
|
6
6
|
import { Fragment as Qn, jsx as M, jsxs as ce } from "react/jsx-runtime";
|
|
7
|
-
function
|
|
8
|
-
const [n, t] = se(!1), r = Ne(null), i =
|
|
7
|
+
function mi(e) {
|
|
8
|
+
const [n, t] = se(!1), r = Ne(null), i = We(() => {
|
|
9
9
|
r.current && r.current.destroy();
|
|
10
10
|
const l = new ui(e);
|
|
11
11
|
return r.current = l, l;
|
|
@@ -33,8 +33,8 @@ function hi(e) {
|
|
|
33
33
|
isReady: n
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var jt =
|
|
37
|
-
const { client: o } =
|
|
36
|
+
var jt = fi(null), pf = ({ children: e, client: n, tools: t, helpers: r, pageContext: i, ...l }) => {
|
|
37
|
+
const { client: o } = mi(n ? { baseUrl: "" } : l), a = n || o;
|
|
38
38
|
return te(() => {
|
|
39
39
|
if (!(!t || t.length === 0)) {
|
|
40
40
|
for (const u of t) a.register(u);
|
|
@@ -68,16 +68,16 @@ var jt = ci(null), ff = ({ children: e, client: n, tools: t, helpers: r, pageCon
|
|
|
68
68
|
children: e
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
-
function
|
|
71
|
+
function st() {
|
|
72
72
|
const e = Yn(jt);
|
|
73
73
|
if (!e) throw new Error('useAgoClient must be used within an <AgoProvider>. Wrap your component tree with <AgoProvider baseUrl="...">.');
|
|
74
74
|
return e;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ct() {
|
|
77
77
|
return Yn(jt);
|
|
78
78
|
}
|
|
79
79
|
function Kn({ client: e, conversationId: n } = {}) {
|
|
80
|
-
const t =
|
|
80
|
+
const t = ct(), r = e || t;
|
|
81
81
|
if (!r) throw new Error("useMessages requires an AgoClient. Either pass it as options.client or wrap your app in <AgoProvider>.");
|
|
82
82
|
const [i, l] = se([]), [o, a] = se(n), [u, c] = se(!1), [f, s] = se(null);
|
|
83
83
|
te(() => {
|
|
@@ -169,36 +169,179 @@ function Kn({ client: e, conversationId: n } = {}) {
|
|
|
169
169
|
conversationId: o
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
var gi = ({ onSend: e, disabled: n = !1, placeholder: t = "Type a message...", allowFiles: r = !1, className: i = "" }) => {
|
|
173
|
+
const [l, o] = se(""), [a, u] = se([]), c = Ne(null), f = xe((k) => {
|
|
174
|
+
k.preventDefault(), (l.trim() || a.length > 0) && (e(l.trim(), a.length > 0 ? a : void 0), o(""), u([]));
|
|
175
|
+
}, [
|
|
176
|
+
l,
|
|
177
|
+
a,
|
|
178
|
+
e
|
|
179
|
+
]), s = xe((k) => {
|
|
180
|
+
k.key === "Enter" && !k.shiftKey && (k.preventDefault(), f(k));
|
|
181
|
+
}, [f]), h = xe((k) => {
|
|
182
|
+
const S = Array.from(k.target.files || []);
|
|
183
|
+
u((d) => [...d, ...S]);
|
|
184
|
+
}, []), p = xe((k) => {
|
|
185
|
+
u((S) => S.filter((d, v) => v !== k));
|
|
186
|
+
}, []), y = l.trim() || a.length > 0;
|
|
187
|
+
return /* @__PURE__ */ ce("form", {
|
|
188
|
+
onSubmit: f,
|
|
189
|
+
className: `ago-chat-input ${i}`,
|
|
190
|
+
style: {
|
|
191
|
+
display: "flex",
|
|
192
|
+
flexDirection: "column",
|
|
193
|
+
gap: "8px",
|
|
194
|
+
padding: "12px 16px",
|
|
195
|
+
borderTop: "1px solid #dee3e8",
|
|
196
|
+
backgroundColor: "#fff"
|
|
197
|
+
},
|
|
198
|
+
children: [a.length > 0 && /* @__PURE__ */ M("div", {
|
|
199
|
+
className: "ago-chat-input__files",
|
|
200
|
+
style: {
|
|
201
|
+
display: "flex",
|
|
202
|
+
flexWrap: "wrap",
|
|
203
|
+
gap: "6px"
|
|
204
|
+
},
|
|
205
|
+
children: a.map((k, S) => /* @__PURE__ */ ce("div", {
|
|
206
|
+
style: {
|
|
207
|
+
display: "flex",
|
|
208
|
+
alignItems: "center",
|
|
209
|
+
gap: "6px",
|
|
210
|
+
padding: "4px 10px",
|
|
211
|
+
backgroundColor: "#f0f2f5",
|
|
212
|
+
borderRadius: "6px",
|
|
213
|
+
fontSize: "12px",
|
|
214
|
+
color: "#30373e"
|
|
215
|
+
},
|
|
216
|
+
children: [/* @__PURE__ */ M("span", {
|
|
217
|
+
style: {
|
|
218
|
+
maxWidth: "120px",
|
|
219
|
+
overflow: "hidden",
|
|
220
|
+
textOverflow: "ellipsis",
|
|
221
|
+
whiteSpace: "nowrap"
|
|
222
|
+
},
|
|
223
|
+
children: k.name
|
|
224
|
+
}), /* @__PURE__ */ M("button", {
|
|
225
|
+
type: "button",
|
|
226
|
+
onClick: () => p(S),
|
|
227
|
+
style: {
|
|
228
|
+
border: "none",
|
|
229
|
+
background: "none",
|
|
230
|
+
cursor: "pointer",
|
|
231
|
+
padding: "0",
|
|
232
|
+
color: "#6b6d6f",
|
|
233
|
+
fontSize: "14px",
|
|
234
|
+
lineHeight: 1
|
|
235
|
+
},
|
|
236
|
+
children: "×"
|
|
237
|
+
})]
|
|
238
|
+
}, S))
|
|
239
|
+
}), /* @__PURE__ */ ce("div", {
|
|
240
|
+
style: {
|
|
241
|
+
display: "flex",
|
|
242
|
+
gap: "8px",
|
|
243
|
+
alignItems: "flex-end"
|
|
244
|
+
},
|
|
245
|
+
children: [
|
|
246
|
+
r && /* @__PURE__ */ ce(Qn, { children: [/* @__PURE__ */ M("button", {
|
|
247
|
+
type: "button",
|
|
248
|
+
onClick: () => c.current?.click(),
|
|
249
|
+
disabled: n,
|
|
250
|
+
style: {
|
|
251
|
+
padding: "8px",
|
|
252
|
+
border: "1px solid #dee3e8",
|
|
253
|
+
borderRadius: "8px",
|
|
254
|
+
backgroundColor: "#fff",
|
|
255
|
+
cursor: n ? "not-allowed" : "pointer",
|
|
256
|
+
color: "#6b6d6f",
|
|
257
|
+
fontSize: "16px",
|
|
258
|
+
lineHeight: 1
|
|
259
|
+
},
|
|
260
|
+
children: "+"
|
|
261
|
+
}), /* @__PURE__ */ M("input", {
|
|
262
|
+
ref: c,
|
|
263
|
+
type: "file",
|
|
264
|
+
multiple: !0,
|
|
265
|
+
onChange: h,
|
|
266
|
+
style: { display: "none" }
|
|
267
|
+
})] }),
|
|
268
|
+
/* @__PURE__ */ M("textarea", {
|
|
269
|
+
value: l,
|
|
270
|
+
onChange: (k) => o(k.target.value),
|
|
271
|
+
onKeyDown: s,
|
|
272
|
+
placeholder: t,
|
|
273
|
+
disabled: n,
|
|
274
|
+
rows: 1,
|
|
275
|
+
style: {
|
|
276
|
+
flex: 1,
|
|
277
|
+
padding: "10px 14px",
|
|
278
|
+
border: "1px solid #dee3e8",
|
|
279
|
+
borderRadius: "20px",
|
|
280
|
+
resize: "none",
|
|
281
|
+
outline: "none",
|
|
282
|
+
fontFamily: "inherit",
|
|
283
|
+
fontSize: "14px",
|
|
284
|
+
color: "#30373e",
|
|
285
|
+
backgroundColor: "#f8f8f8",
|
|
286
|
+
transition: "border-color 0.15s"
|
|
287
|
+
},
|
|
288
|
+
onFocus: (k) => {
|
|
289
|
+
k.currentTarget.style.borderColor = "#1b5fc4";
|
|
290
|
+
},
|
|
291
|
+
onBlur: (k) => {
|
|
292
|
+
k.currentTarget.style.borderColor = "#dee3e8";
|
|
293
|
+
}
|
|
294
|
+
}),
|
|
295
|
+
/* @__PURE__ */ M("button", {
|
|
296
|
+
type: "submit",
|
|
297
|
+
disabled: n || !y,
|
|
298
|
+
style: {
|
|
299
|
+
padding: "10px 18px",
|
|
300
|
+
border: "none",
|
|
301
|
+
borderRadius: "20px",
|
|
302
|
+
backgroundColor: n || !y ? "#b5bfc8" : "#03182f",
|
|
303
|
+
color: "#fff",
|
|
304
|
+
cursor: n || !y ? "not-allowed" : "pointer",
|
|
305
|
+
fontWeight: 500,
|
|
306
|
+
fontSize: "14px",
|
|
307
|
+
transition: "background-color 0.15s"
|
|
308
|
+
},
|
|
309
|
+
children: "Send"
|
|
310
|
+
})
|
|
311
|
+
]
|
|
312
|
+
})]
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
function di(e, n) {
|
|
173
316
|
const t = n || {};
|
|
174
317
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join((t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")).trim();
|
|
175
318
|
}
|
|
176
|
-
var
|
|
319
|
+
var yi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, xi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ki = {};
|
|
177
320
|
function an(e, n) {
|
|
178
|
-
return ((n ||
|
|
321
|
+
return ((n || ki).jsx ? xi : yi).test(e);
|
|
179
322
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
323
|
+
var bi = /[ \t\n\f\r]/g;
|
|
324
|
+
function wi(e) {
|
|
182
325
|
return typeof e == "object" ? e.type === "text" ? un(e.value) : !1 : un(e);
|
|
183
326
|
}
|
|
184
327
|
function un(e) {
|
|
185
|
-
return e.replace(
|
|
328
|
+
return e.replace(bi, "") === "";
|
|
186
329
|
}
|
|
187
|
-
var
|
|
330
|
+
var Je = class {
|
|
188
331
|
constructor(e, n, t) {
|
|
189
332
|
this.normal = n, this.property = e, t && (this.space = t);
|
|
190
333
|
}
|
|
191
334
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
335
|
+
Je.prototype.normal = {};
|
|
336
|
+
Je.prototype.property = {};
|
|
337
|
+
Je.prototype.space = void 0;
|
|
195
338
|
function Gn(e, n) {
|
|
196
339
|
const t = {}, r = {};
|
|
197
340
|
for (const i of e)
|
|
198
341
|
Object.assign(t, i.property), Object.assign(r, i.normal);
|
|
199
|
-
return new
|
|
342
|
+
return new Je(t, r, n);
|
|
200
343
|
}
|
|
201
|
-
function
|
|
344
|
+
function Lt(e) {
|
|
202
345
|
return e.toLowerCase();
|
|
203
346
|
}
|
|
204
347
|
var re = class {
|
|
@@ -218,24 +361,24 @@ re.prototype.overloadedBoolean = !1;
|
|
|
218
361
|
re.prototype.property = "";
|
|
219
362
|
re.prototype.spaceSeparated = !1;
|
|
220
363
|
re.prototype.space = void 0;
|
|
221
|
-
var
|
|
364
|
+
var zt = /* @__PURE__ */ Vn({
|
|
222
365
|
boolean: () => O,
|
|
223
366
|
booleanish: () => K,
|
|
224
367
|
commaOrSpaceSeparated: () => le,
|
|
225
368
|
commaSeparated: () => _e,
|
|
226
369
|
number: () => E,
|
|
227
|
-
overloadedBoolean: () =>
|
|
370
|
+
overloadedBoolean: () => Dt,
|
|
228
371
|
spaceSeparated: () => V
|
|
229
|
-
}),
|
|
372
|
+
}), vi = 0, O = Te(), K = Te(), Dt = Te(), E = Te(), V = Te(), _e = Te(), le = Te();
|
|
230
373
|
function Te() {
|
|
231
|
-
return 2 ** ++
|
|
374
|
+
return 2 ** ++vi;
|
|
232
375
|
}
|
|
233
|
-
var
|
|
376
|
+
var gt = Object.keys(zt), Ht = class extends re {
|
|
234
377
|
constructor(e, n, t, r) {
|
|
235
378
|
let i = -1;
|
|
236
|
-
if (super(e, n), sn(this, "space", r), typeof t == "number") for (; ++i <
|
|
237
|
-
const l =
|
|
238
|
-
sn(this,
|
|
379
|
+
if (super(e, n), sn(this, "space", r), typeof t == "number") for (; ++i < gt.length; ) {
|
|
380
|
+
const l = gt[i];
|
|
381
|
+
sn(this, gt[i], (t & zt[l]) === zt[l]);
|
|
239
382
|
}
|
|
240
383
|
}
|
|
241
384
|
};
|
|
@@ -247,9 +390,9 @@ function Be(e) {
|
|
|
247
390
|
const n = {}, t = {};
|
|
248
391
|
for (const [r, i] of Object.entries(e.properties)) {
|
|
249
392
|
const l = new Ht(r, e.transform(e.attributes || {}, r), i, e.space);
|
|
250
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[
|
|
393
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[Lt(r)] = r, t[Lt(l.attribute)] = r;
|
|
251
394
|
}
|
|
252
|
-
return new
|
|
395
|
+
return new Je(n, t, e.space);
|
|
253
396
|
}
|
|
254
397
|
var Jn = Be({
|
|
255
398
|
properties: {
|
|
@@ -313,7 +456,7 @@ function Zn(e, n) {
|
|
|
313
456
|
function er(e, n) {
|
|
314
457
|
return Zn(e, n.toLowerCase());
|
|
315
458
|
}
|
|
316
|
-
var
|
|
459
|
+
var Ci = Be({
|
|
317
460
|
attributes: {
|
|
318
461
|
acceptcharset: "accept-charset",
|
|
319
462
|
classname: "class",
|
|
@@ -365,7 +508,7 @@ var wi = Be({
|
|
|
365
508
|
dir: null,
|
|
366
509
|
dirName: null,
|
|
367
510
|
disabled: O,
|
|
368
|
-
download:
|
|
511
|
+
download: Dt,
|
|
369
512
|
draggable: K,
|
|
370
513
|
encType: null,
|
|
371
514
|
enterKeyHint: null,
|
|
@@ -378,7 +521,7 @@ var wi = Be({
|
|
|
378
521
|
formTarget: null,
|
|
379
522
|
headers: V,
|
|
380
523
|
height: E,
|
|
381
|
-
hidden:
|
|
524
|
+
hidden: Dt,
|
|
382
525
|
high: E,
|
|
383
526
|
href: null,
|
|
384
527
|
hrefLang: null,
|
|
@@ -622,7 +765,7 @@ var wi = Be({
|
|
|
622
765
|
},
|
|
623
766
|
space: "html",
|
|
624
767
|
transform: er
|
|
625
|
-
}),
|
|
768
|
+
}), Si = Be({
|
|
626
769
|
attributes: {
|
|
627
770
|
accentHeight: "accent-height",
|
|
628
771
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1209,7 +1352,7 @@ var wi = Be({
|
|
|
1209
1352
|
transform(e, n) {
|
|
1210
1353
|
return "xml:" + n.slice(3).toLowerCase();
|
|
1211
1354
|
}
|
|
1212
|
-
}),
|
|
1355
|
+
}), Ei = {
|
|
1213
1356
|
classId: "classID",
|
|
1214
1357
|
dataType: "datatype",
|
|
1215
1358
|
itemId: "itemID",
|
|
@@ -1227,19 +1370,19 @@ var wi = Be({
|
|
|
1227
1370
|
xLinkTitle: "xlinkTitle",
|
|
1228
1371
|
xLinkType: "xlinkType",
|
|
1229
1372
|
xmlnsXLink: "xmlnsXlink"
|
|
1230
|
-
},
|
|
1231
|
-
function
|
|
1232
|
-
const t =
|
|
1373
|
+
}, Ii = /[A-Z]/g, cn = /-[a-z]/g, Ai = /^data[-\w.:]+$/i;
|
|
1374
|
+
function Ti(e, n) {
|
|
1375
|
+
const t = Lt(n);
|
|
1233
1376
|
let r = n, i = re;
|
|
1234
1377
|
if (t in e.normal) return e.property[e.normal[t]];
|
|
1235
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
1378
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && Ai.test(n)) {
|
|
1236
1379
|
if (n.charAt(4) === "-") {
|
|
1237
|
-
const l = n.slice(5).replace(cn,
|
|
1380
|
+
const l = n.slice(5).replace(cn, Li);
|
|
1238
1381
|
r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
|
1239
1382
|
} else {
|
|
1240
1383
|
const l = n.slice(4);
|
|
1241
1384
|
if (!cn.test(l)) {
|
|
1242
|
-
let o = l.replace(
|
|
1385
|
+
let o = l.replace(Ii, Pi);
|
|
1243
1386
|
o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
|
|
1244
1387
|
}
|
|
1245
1388
|
}
|
|
@@ -1247,29 +1390,29 @@ function Ii(e, n) {
|
|
|
1247
1390
|
}
|
|
1248
1391
|
return new i(r, n);
|
|
1249
1392
|
}
|
|
1250
|
-
function
|
|
1393
|
+
function Pi(e) {
|
|
1251
1394
|
return "-" + e.toLowerCase();
|
|
1252
1395
|
}
|
|
1253
|
-
function
|
|
1396
|
+
function Li(e) {
|
|
1254
1397
|
return e.charAt(1).toUpperCase();
|
|
1255
1398
|
}
|
|
1256
|
-
var
|
|
1399
|
+
var zi = Gn([
|
|
1257
1400
|
Jn,
|
|
1258
|
-
|
|
1401
|
+
Ci,
|
|
1259
1402
|
tr,
|
|
1260
1403
|
nr,
|
|
1261
1404
|
rr
|
|
1262
1405
|
], "html"), Ut = Gn([
|
|
1263
1406
|
Jn,
|
|
1264
|
-
|
|
1407
|
+
Si,
|
|
1265
1408
|
tr,
|
|
1266
1409
|
nr,
|
|
1267
1410
|
rr
|
|
1268
1411
|
], "svg");
|
|
1269
|
-
function
|
|
1412
|
+
function Di(e) {
|
|
1270
1413
|
return e.join(" ").trim();
|
|
1271
1414
|
}
|
|
1272
|
-
var
|
|
1415
|
+
var Fi = /* @__PURE__ */ Ge(((e, n) => {
|
|
1273
1416
|
var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, l = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, u = /^[;\s]*/, c = /^\s+|\s+$/g, f = `
|
|
1274
1417
|
`, s = "/", h = "*", p = "", y = "comment", k = "declaration";
|
|
1275
1418
|
function S(v, C) {
|
|
@@ -1354,12 +1497,12 @@ var zi = /* @__PURE__ */ Ke(((e, n) => {
|
|
|
1354
1497
|
return v ? v.replace(c, p) : p;
|
|
1355
1498
|
}
|
|
1356
1499
|
n.exports = S;
|
|
1357
|
-
})),
|
|
1500
|
+
})), Mi = /* @__PURE__ */ Ge(((e) => {
|
|
1358
1501
|
var n = e && e.__importDefault || function(i) {
|
|
1359
1502
|
return i && i.__esModule ? i : { default: i };
|
|
1360
1503
|
};
|
|
1361
1504
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
1362
|
-
var t = n(
|
|
1505
|
+
var t = n(Fi());
|
|
1363
1506
|
function r(i, l) {
|
|
1364
1507
|
let o = null;
|
|
1365
1508
|
if (!i || typeof i != "string") return o;
|
|
@@ -1370,7 +1513,7 @@ var zi = /* @__PURE__ */ Ke(((e, n) => {
|
|
|
1370
1513
|
u ? l(f, s, c) : s && (o = o || {}, o[f] = s);
|
|
1371
1514
|
}), o;
|
|
1372
1515
|
}
|
|
1373
|
-
})),
|
|
1516
|
+
})), Ri = /* @__PURE__ */ Ge(((e) => {
|
|
1374
1517
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
1375
1518
|
var n = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, l = /^-(ms)-/, o = function(f) {
|
|
1376
1519
|
return !f || r.test(f) || n.test(f);
|
|
@@ -1382,10 +1525,10 @@ var zi = /* @__PURE__ */ Ke(((e, n) => {
|
|
|
1382
1525
|
return s === void 0 && (s = {}), o(f) ? f : (f = f.toLowerCase(), s.reactCompat ? f = f.replace(l, u) : f = f.replace(i, u), f.replace(t, a));
|
|
1383
1526
|
};
|
|
1384
1527
|
e.camelCase = c;
|
|
1385
|
-
})),
|
|
1528
|
+
})), _i = /* @__PURE__ */ Ge(((e, n) => {
|
|
1386
1529
|
var t = (e && e.__importDefault || function(l) {
|
|
1387
1530
|
return l && l.__esModule ? l : { default: l };
|
|
1388
|
-
})(
|
|
1531
|
+
})(Mi()), r = Ri();
|
|
1389
1532
|
function i(l, o) {
|
|
1390
1533
|
var a = {};
|
|
1391
1534
|
return !l || typeof l != "string" || (0, t.default)(l, function(u, c) {
|
|
@@ -1405,21 +1548,21 @@ function lr(e) {
|
|
|
1405
1548
|
};
|
|
1406
1549
|
}
|
|
1407
1550
|
}
|
|
1408
|
-
function
|
|
1551
|
+
function Oi(e) {
|
|
1409
1552
|
const n = $t(e), t = ir(e);
|
|
1410
1553
|
if (n && t) return {
|
|
1411
1554
|
start: n,
|
|
1412
1555
|
end: t
|
|
1413
1556
|
};
|
|
1414
1557
|
}
|
|
1415
|
-
function
|
|
1416
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? fn(e.position) : "start" in e || "end" in e ? fn(e) : "line" in e || "column" in e ?
|
|
1558
|
+
function Xe(e) {
|
|
1559
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? fn(e.position) : "start" in e || "end" in e ? fn(e) : "line" in e || "column" in e ? Ft(e) : "";
|
|
1417
1560
|
}
|
|
1418
|
-
function
|
|
1561
|
+
function Ft(e) {
|
|
1419
1562
|
return pn(e && e.line) + ":" + pn(e && e.column);
|
|
1420
1563
|
}
|
|
1421
1564
|
function fn(e) {
|
|
1422
|
-
return
|
|
1565
|
+
return Ft(e && e.start) + "-" + Ft(e && e.end);
|
|
1423
1566
|
}
|
|
1424
1567
|
function pn(e) {
|
|
1425
1568
|
return e && typeof e == "number" ? e : 1;
|
|
@@ -1440,7 +1583,7 @@ var Z = class extends Error {
|
|
|
1440
1583
|
a && (i.place = a.position);
|
|
1441
1584
|
}
|
|
1442
1585
|
const o = i.place && "start" in i.place ? i.place.start : i.place;
|
|
1443
|
-
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name =
|
|
1586
|
+
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = Xe(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = l && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
1444
1587
|
}
|
|
1445
1588
|
};
|
|
1446
1589
|
Z.prototype.file = "";
|
|
@@ -1456,24 +1599,24 @@ Z.prototype.fatal = void 0;
|
|
|
1456
1599
|
Z.prototype.place = void 0;
|
|
1457
1600
|
Z.prototype.ruleId = void 0;
|
|
1458
1601
|
Z.prototype.source = void 0;
|
|
1459
|
-
var
|
|
1602
|
+
var Ni = /* @__PURE__ */ Wn(_i(), 1), qt = {}.hasOwnProperty, Bi = /* @__PURE__ */ new Map(), ji = /[A-Z]/g, Hi = /* @__PURE__ */ new Set([
|
|
1460
1603
|
"table",
|
|
1461
1604
|
"tbody",
|
|
1462
1605
|
"thead",
|
|
1463
1606
|
"tfoot",
|
|
1464
1607
|
"tr"
|
|
1465
|
-
]),
|
|
1466
|
-
function
|
|
1608
|
+
]), Ui = /* @__PURE__ */ new Set(["td", "th"]), or = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1609
|
+
function $i(e, n) {
|
|
1467
1610
|
if (!n || n.Fragment === void 0) throw new TypeError("Expected `Fragment` in options");
|
|
1468
1611
|
const t = n.filePath || void 0;
|
|
1469
1612
|
let r;
|
|
1470
1613
|
if (n.development) {
|
|
1471
1614
|
if (typeof n.jsxDEV != "function") throw new TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
1472
|
-
r =
|
|
1615
|
+
r = Gi(t, n.jsxDEV);
|
|
1473
1616
|
} else {
|
|
1474
1617
|
if (typeof n.jsx != "function") throw new TypeError("Expected `jsx` in production options");
|
|
1475
1618
|
if (typeof n.jsxs != "function") throw new TypeError("Expected `jsxs` in production options");
|
|
1476
|
-
r =
|
|
1619
|
+
r = Ki(t, n.jsx, n.jsxs);
|
|
1477
1620
|
}
|
|
1478
1621
|
const i = {
|
|
1479
1622
|
Fragment: n.Fragment,
|
|
@@ -1486,53 +1629,53 @@ function Hi(e, n) {
|
|
|
1486
1629
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
|
1487
1630
|
passKeys: n.passKeys !== !1,
|
|
1488
1631
|
passNode: n.passNode || !1,
|
|
1489
|
-
schema: n.space === "svg" ? Ut :
|
|
1632
|
+
schema: n.space === "svg" ? Ut : zi,
|
|
1490
1633
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
1491
1634
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
1492
1635
|
}, l = ar(i, e, void 0);
|
|
1493
1636
|
return l && typeof l != "string" ? l : i.create(e, i.Fragment, { children: l || void 0 }, void 0);
|
|
1494
1637
|
}
|
|
1495
1638
|
function ar(e, n, t) {
|
|
1496
|
-
if (n.type === "element") return
|
|
1497
|
-
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression") return
|
|
1498
|
-
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement") return
|
|
1499
|
-
if (n.type === "mdxjsEsm") return
|
|
1500
|
-
if (n.type === "root") return
|
|
1501
|
-
if (n.type === "text") return
|
|
1502
|
-
}
|
|
1503
|
-
function
|
|
1639
|
+
if (n.type === "element") return qi(e, n, t);
|
|
1640
|
+
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression") return Vi(e, n);
|
|
1641
|
+
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement") return Xi(e, n, t);
|
|
1642
|
+
if (n.type === "mdxjsEsm") return Wi(e, n);
|
|
1643
|
+
if (n.type === "root") return Yi(e, n, t);
|
|
1644
|
+
if (n.type === "text") return Qi(e, n);
|
|
1645
|
+
}
|
|
1646
|
+
function qi(e, n, t) {
|
|
1504
1647
|
const r = e.schema;
|
|
1505
1648
|
let i = r;
|
|
1506
1649
|
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Ut, e.schema = i), e.ancestors.push(n);
|
|
1507
|
-
const l = sr(e, n.tagName, !1), o =
|
|
1650
|
+
const l = sr(e, n.tagName, !1), o = Ji(e, n);
|
|
1508
1651
|
let a = Wt(e, n);
|
|
1509
|
-
return
|
|
1510
|
-
return typeof u == "string" ? !
|
|
1652
|
+
return Hi.has(n.tagName) && (a = a.filter(function(u) {
|
|
1653
|
+
return typeof u == "string" ? !wi(u) : !0;
|
|
1511
1654
|
})), ur(e, o, l, n), Vt(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
|
1512
1655
|
}
|
|
1513
|
-
function
|
|
1656
|
+
function Vi(e, n) {
|
|
1514
1657
|
if (n.data && n.data.estree && e.evaluater) {
|
|
1515
1658
|
const t = n.data.estree.body[0];
|
|
1516
1659
|
return t.type, e.evaluater.evaluateExpression(t.expression);
|
|
1517
1660
|
}
|
|
1518
|
-
|
|
1661
|
+
Qe(e, n.position);
|
|
1519
1662
|
}
|
|
1520
|
-
function
|
|
1663
|
+
function Wi(e, n) {
|
|
1521
1664
|
if (n.data && n.data.estree && e.evaluater) return e.evaluater.evaluateProgram(n.data.estree);
|
|
1522
|
-
|
|
1665
|
+
Qe(e, n.position);
|
|
1523
1666
|
}
|
|
1524
|
-
function
|
|
1667
|
+
function Xi(e, n, t) {
|
|
1525
1668
|
const r = e.schema;
|
|
1526
1669
|
let i = r;
|
|
1527
1670
|
n.name === "svg" && r.space === "html" && (i = Ut, e.schema = i), e.ancestors.push(n);
|
|
1528
|
-
const l = n.name === null ? e.Fragment : sr(e, n.name, !0), o =
|
|
1671
|
+
const l = n.name === null ? e.Fragment : sr(e, n.name, !0), o = Zi(e, n), a = Wt(e, n);
|
|
1529
1672
|
return ur(e, o, l, n), Vt(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
|
1530
1673
|
}
|
|
1531
|
-
function
|
|
1674
|
+
function Yi(e, n, t) {
|
|
1532
1675
|
const r = {};
|
|
1533
1676
|
return Vt(r, Wt(e, n)), e.create(n, e.Fragment, r, t);
|
|
1534
1677
|
}
|
|
1535
|
-
function
|
|
1678
|
+
function Qi(e, n) {
|
|
1536
1679
|
return n.value;
|
|
1537
1680
|
}
|
|
1538
1681
|
function ur(e, n, t, r) {
|
|
@@ -1544,14 +1687,14 @@ function Vt(e, n) {
|
|
|
1544
1687
|
t && (e.children = t);
|
|
1545
1688
|
}
|
|
1546
1689
|
}
|
|
1547
|
-
function
|
|
1690
|
+
function Ki(e, n, t) {
|
|
1548
1691
|
return r;
|
|
1549
1692
|
function r(i, l, o, a) {
|
|
1550
1693
|
const u = Array.isArray(o.children) ? t : n;
|
|
1551
1694
|
return a ? u(l, o, a) : u(l, o);
|
|
1552
1695
|
}
|
|
1553
1696
|
}
|
|
1554
|
-
function
|
|
1697
|
+
function Gi(e, n) {
|
|
1555
1698
|
return t;
|
|
1556
1699
|
function t(r, i, l, o) {
|
|
1557
1700
|
const a = Array.isArray(l.children), u = $t(r);
|
|
@@ -1562,14 +1705,14 @@ function Qi(e, n) {
|
|
|
1562
1705
|
}, void 0);
|
|
1563
1706
|
}
|
|
1564
1707
|
}
|
|
1565
|
-
function
|
|
1708
|
+
function Ji(e, n) {
|
|
1566
1709
|
const t = {};
|
|
1567
1710
|
let r, i;
|
|
1568
1711
|
for (i in n.properties) if (i !== "children" && qt.call(n.properties, i)) {
|
|
1569
|
-
const l =
|
|
1712
|
+
const l = el(e, i, n.properties[i]);
|
|
1570
1713
|
if (l) {
|
|
1571
1714
|
const [o, a] = l;
|
|
1572
|
-
e.tableCellAlignToStyle && o === "align" && typeof a == "string" &&
|
|
1715
|
+
e.tableCellAlignToStyle && o === "align" && typeof a == "string" && Ui.has(n.tagName) ? r = a : t[o] = a;
|
|
1573
1716
|
}
|
|
1574
1717
|
}
|
|
1575
1718
|
if (r) {
|
|
@@ -1578,7 +1721,7 @@ function Ki(e, n) {
|
|
|
1578
1721
|
}
|
|
1579
1722
|
return t;
|
|
1580
1723
|
}
|
|
1581
|
-
function
|
|
1724
|
+
function Zi(e, n) {
|
|
1582
1725
|
const t = {};
|
|
1583
1726
|
for (const r of n.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
|
|
1584
1727
|
const i = r.data.estree.body[0];
|
|
@@ -1587,14 +1730,14 @@ function Gi(e, n) {
|
|
|
1587
1730
|
l.type;
|
|
1588
1731
|
const o = l.properties[0];
|
|
1589
1732
|
o.type, Object.assign(t, e.evaluater.evaluateExpression(o.argument));
|
|
1590
|
-
} else
|
|
1733
|
+
} else Qe(e, n.position);
|
|
1591
1734
|
else {
|
|
1592
1735
|
const i = r.name;
|
|
1593
1736
|
let l;
|
|
1594
1737
|
if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
1595
1738
|
const o = r.value.data.estree.body[0];
|
|
1596
1739
|
o.type, l = e.evaluater.evaluateExpression(o.expression);
|
|
1597
|
-
} else
|
|
1740
|
+
} else Qe(e, n.position);
|
|
1598
1741
|
else l = r.value === null ? !0 : r.value;
|
|
1599
1742
|
t[i] = l;
|
|
1600
1743
|
}
|
|
@@ -1603,7 +1746,7 @@ function Gi(e, n) {
|
|
|
1603
1746
|
function Wt(e, n) {
|
|
1604
1747
|
const t = [];
|
|
1605
1748
|
let r = -1;
|
|
1606
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1749
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : Bi;
|
|
1607
1750
|
for (; ++r < n.children.length; ) {
|
|
1608
1751
|
const l = n.children[r];
|
|
1609
1752
|
let o;
|
|
@@ -1619,19 +1762,19 @@ function Wt(e, n) {
|
|
|
1619
1762
|
}
|
|
1620
1763
|
return t;
|
|
1621
1764
|
}
|
|
1622
|
-
function
|
|
1623
|
-
const r =
|
|
1765
|
+
function el(e, n, t) {
|
|
1766
|
+
const r = Ti(e.schema, n);
|
|
1624
1767
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
1625
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
|
1626
|
-
let i = typeof t == "object" ? t :
|
|
1627
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
1768
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? di(t) : Di(t)), r.property === "style") {
|
|
1769
|
+
let i = typeof t == "object" ? t : tl(e, String(t));
|
|
1770
|
+
return e.stylePropertyNameCase === "css" && (i = nl(i)), ["style", i];
|
|
1628
1771
|
}
|
|
1629
|
-
return [e.elementAttributeNameCase === "react" && r.space ?
|
|
1772
|
+
return [e.elementAttributeNameCase === "react" && r.space ? Ei[r.property] || r.property : r.attribute, t];
|
|
1630
1773
|
}
|
|
1631
1774
|
}
|
|
1632
|
-
function
|
|
1775
|
+
function tl(e, n) {
|
|
1633
1776
|
try {
|
|
1634
|
-
return (0,
|
|
1777
|
+
return (0, Ni.default)(n, { reactCompat: !0 });
|
|
1635
1778
|
} catch (t) {
|
|
1636
1779
|
if (e.ignoreInvalidStyle) return {};
|
|
1637
1780
|
const r = t, i = new Z("Cannot parse `style` attribute", {
|
|
@@ -1681,9 +1824,9 @@ function sr(e, n, t) {
|
|
|
1681
1824
|
return qt.call(e.components, i) ? e.components[i] : i;
|
|
1682
1825
|
}
|
|
1683
1826
|
if (e.evaluater) return e.evaluater.evaluateExpression(r);
|
|
1684
|
-
|
|
1827
|
+
Qe(e);
|
|
1685
1828
|
}
|
|
1686
|
-
function
|
|
1829
|
+
function Qe(e, n) {
|
|
1687
1830
|
const t = new Z("Cannot handle MDX estrees without `createEvaluater`", {
|
|
1688
1831
|
ancestors: e.ancestors,
|
|
1689
1832
|
place: n,
|
|
@@ -1692,20 +1835,20 @@ function Ye(e, n) {
|
|
|
1692
1835
|
});
|
|
1693
1836
|
throw t.file = e.filePath || void 0, t.url = or + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
1694
1837
|
}
|
|
1695
|
-
function
|
|
1838
|
+
function nl(e) {
|
|
1696
1839
|
const n = {};
|
|
1697
1840
|
let t;
|
|
1698
|
-
for (t in e) qt.call(e, t) && (n[
|
|
1841
|
+
for (t in e) qt.call(e, t) && (n[rl(t)] = e[t]);
|
|
1699
1842
|
return n;
|
|
1700
1843
|
}
|
|
1701
|
-
function
|
|
1702
|
-
let n = e.replace(
|
|
1844
|
+
function rl(e) {
|
|
1845
|
+
let n = e.replace(ji, il);
|
|
1703
1846
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
1704
1847
|
}
|
|
1705
|
-
function
|
|
1848
|
+
function il(e) {
|
|
1706
1849
|
return "-" + e.toLowerCase();
|
|
1707
1850
|
}
|
|
1708
|
-
var
|
|
1851
|
+
var dt = {
|
|
1709
1852
|
action: ["form"],
|
|
1710
1853
|
cite: [
|
|
1711
1854
|
"blockquote",
|
|
@@ -1737,13 +1880,13 @@ var gt = {
|
|
|
1737
1880
|
"track",
|
|
1738
1881
|
"video"
|
|
1739
1882
|
]
|
|
1740
|
-
},
|
|
1883
|
+
}, ll = {};
|
|
1741
1884
|
function Xt(e, n) {
|
|
1742
|
-
const t = n ||
|
|
1885
|
+
const t = n || ll;
|
|
1743
1886
|
return cr(e, typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, typeof t.includeHtml == "boolean" ? t.includeHtml : !0);
|
|
1744
1887
|
}
|
|
1745
1888
|
function cr(e, n, t) {
|
|
1746
|
-
if (
|
|
1889
|
+
if (ol(e)) {
|
|
1747
1890
|
if ("value" in e) return e.type === "html" && !t ? "" : e.value;
|
|
1748
1891
|
if (n && "alt" in e && e.alt) return e.alt;
|
|
1749
1892
|
if ("children" in e) return hn(e.children, n, t);
|
|
@@ -1756,7 +1899,7 @@ function hn(e, n, t) {
|
|
|
1756
1899
|
for (; ++i < e.length; ) r[i] = cr(e[i], n, t);
|
|
1757
1900
|
return r.join("");
|
|
1758
1901
|
}
|
|
1759
|
-
function
|
|
1902
|
+
function ol(e) {
|
|
1760
1903
|
return !!(e && typeof e == "object");
|
|
1761
1904
|
}
|
|
1762
1905
|
var mn = document.createElement("i");
|
|
@@ -1782,10 +1925,10 @@ var gn = {}.hasOwnProperty;
|
|
|
1782
1925
|
function fr(e) {
|
|
1783
1926
|
const n = {};
|
|
1784
1927
|
let t = -1;
|
|
1785
|
-
for (; ++t < e.length; )
|
|
1928
|
+
for (; ++t < e.length; ) al(n, e[t]);
|
|
1786
1929
|
return n;
|
|
1787
1930
|
}
|
|
1788
|
-
function
|
|
1931
|
+
function al(e, n) {
|
|
1789
1932
|
let t;
|
|
1790
1933
|
for (t in n) {
|
|
1791
1934
|
const r = (gn.call(e, t) ? e[t] : void 0) || (e[t] = {}), i = n[t];
|
|
@@ -1793,11 +1936,11 @@ function ll(e, n) {
|
|
|
1793
1936
|
if (i) for (l in i) {
|
|
1794
1937
|
gn.call(r, l) || (r[l] = []);
|
|
1795
1938
|
const o = i[l];
|
|
1796
|
-
|
|
1939
|
+
ul(r[l], Array.isArray(o) ? o : o ? [o] : []);
|
|
1797
1940
|
}
|
|
1798
1941
|
}
|
|
1799
1942
|
}
|
|
1800
|
-
function
|
|
1943
|
+
function ul(e, n) {
|
|
1801
1944
|
let t = -1;
|
|
1802
1945
|
const r = [];
|
|
1803
1946
|
for (; ++t < n.length; ) (n[t].add === "after" ? e : r).push(n[t]);
|
|
@@ -1810,11 +1953,11 @@ function pr(e, n) {
|
|
|
1810
1953
|
function fe(e) {
|
|
1811
1954
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1812
1955
|
}
|
|
1813
|
-
var ee = Se(/[A-Za-z]/), J = Se(/[\dA-Za-z]/),
|
|
1814
|
-
function
|
|
1956
|
+
var ee = Se(/[A-Za-z]/), J = Se(/[\dA-Za-z]/), sl = Se(/[#-'*+\--9=?A-Z^-~]/);
|
|
1957
|
+
function ot(e) {
|
|
1815
1958
|
return e !== null && (e < 32 || e === 127);
|
|
1816
1959
|
}
|
|
1817
|
-
var
|
|
1960
|
+
var Mt = Se(/\d/), cl = Se(/[\dA-Fa-f]/), fl = Se(/[!-/:-@[-`{-~]/);
|
|
1818
1961
|
function D(e) {
|
|
1819
1962
|
return e !== null && e < -2;
|
|
1820
1963
|
}
|
|
@@ -1824,7 +1967,7 @@ function q(e) {
|
|
|
1824
1967
|
function j(e) {
|
|
1825
1968
|
return e === -2 || e === -1 || e === 32;
|
|
1826
1969
|
}
|
|
1827
|
-
var
|
|
1970
|
+
var ft = Se(new RegExp("\\p{P}|\\p{S}", "u")), Ae = Se(/\s/);
|
|
1828
1971
|
function Se(e) {
|
|
1829
1972
|
return n;
|
|
1830
1973
|
function n(t) {
|
|
@@ -1859,8 +2002,8 @@ function U(e, n, t, r) {
|
|
|
1859
2002
|
return j(u) && l++ < i ? (e.consume(u), a) : (e.exit(t), n(u));
|
|
1860
2003
|
}
|
|
1861
2004
|
}
|
|
1862
|
-
var
|
|
1863
|
-
function
|
|
2005
|
+
var pl = { tokenize: hl };
|
|
2006
|
+
function hl(e) {
|
|
1864
2007
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
1865
2008
|
let t;
|
|
1866
2009
|
return n;
|
|
@@ -1889,8 +2032,8 @@ function fl(e) {
|
|
|
1889
2032
|
return D(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
|
|
1890
2033
|
}
|
|
1891
2034
|
}
|
|
1892
|
-
var
|
|
1893
|
-
function
|
|
2035
|
+
var ml = { tokenize: gl }, dn = { tokenize: dl };
|
|
2036
|
+
function gl(e) {
|
|
1894
2037
|
const n = this, t = [];
|
|
1895
2038
|
let r = 0, i, l, o;
|
|
1896
2039
|
return a;
|
|
@@ -1987,14 +2130,14 @@ function hl(e) {
|
|
|
1987
2130
|
i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
1988
2131
|
}
|
|
1989
2132
|
}
|
|
1990
|
-
function
|
|
2133
|
+
function dl(e, n, t) {
|
|
1991
2134
|
return U(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
1992
2135
|
}
|
|
1993
2136
|
function Oe(e) {
|
|
1994
2137
|
if (e === null || q(e) || Ae(e)) return 1;
|
|
1995
|
-
if (
|
|
2138
|
+
if (ft(e)) return 2;
|
|
1996
2139
|
}
|
|
1997
|
-
function
|
|
2140
|
+
function pt(e, n, t) {
|
|
1998
2141
|
const r = [];
|
|
1999
2142
|
let i = -1;
|
|
2000
2143
|
for (; ++i < e.length; ) {
|
|
@@ -2003,12 +2146,12 @@ function ft(e, n, t) {
|
|
|
2003
2146
|
}
|
|
2004
2147
|
return n;
|
|
2005
2148
|
}
|
|
2006
|
-
var
|
|
2149
|
+
var Rt = {
|
|
2007
2150
|
name: "attention",
|
|
2008
|
-
resolveAll:
|
|
2009
|
-
tokenize:
|
|
2151
|
+
resolveAll: yl,
|
|
2152
|
+
tokenize: xl
|
|
2010
2153
|
};
|
|
2011
|
-
function
|
|
2154
|
+
function yl(e, n) {
|
|
2012
2155
|
let t = -1, r, i, l, o, a, u, c, f;
|
|
2013
2156
|
for (; ++t < e.length; ) if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
|
2014
2157
|
for (r = t; r--; ) if (e[r][0] === "exit" && e[r][1].type === "attentionSequence" && e[r][1]._open && n.sliceSerialize(e[r][1]).charCodeAt(0) === n.sliceSerialize(e[t][1]).charCodeAt(0)) {
|
|
@@ -2060,7 +2203,7 @@ function gl(e, n) {
|
|
|
2060
2203
|
l,
|
|
2061
2204
|
n
|
|
2062
2205
|
]
|
|
2063
|
-
]), c = ae(c,
|
|
2206
|
+
]), c = ae(c, pt(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), c = ae(c, [
|
|
2064
2207
|
[
|
|
2065
2208
|
"exit",
|
|
2066
2209
|
l,
|
|
@@ -2096,7 +2239,7 @@ function gl(e, n) {
|
|
|
2096
2239
|
for (t = -1; ++t < e.length; ) e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
|
|
2097
2240
|
return e;
|
|
2098
2241
|
}
|
|
2099
|
-
function
|
|
2242
|
+
function xl(e, n) {
|
|
2100
2243
|
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Oe(r);
|
|
2101
2244
|
let l;
|
|
2102
2245
|
return o;
|
|
@@ -2113,11 +2256,11 @@ function dl(e, n) {
|
|
|
2113
2256
|
function yn(e, n) {
|
|
2114
2257
|
e.column += n, e.offset += n, e._bufferIndex += n;
|
|
2115
2258
|
}
|
|
2116
|
-
var
|
|
2259
|
+
var kl = {
|
|
2117
2260
|
name: "autolink",
|
|
2118
|
-
tokenize:
|
|
2261
|
+
tokenize: bl
|
|
2119
2262
|
};
|
|
2120
|
-
function
|
|
2263
|
+
function bl(e, n, t) {
|
|
2121
2264
|
let r = 0;
|
|
2122
2265
|
return i;
|
|
2123
2266
|
function i(p) {
|
|
@@ -2133,10 +2276,10 @@ function xl(e, n, t) {
|
|
|
2133
2276
|
return p === 58 ? (e.consume(p), r = 0, u) : (p === 43 || p === 45 || p === 46 || J(p)) && r++ < 32 ? (e.consume(p), a) : (r = 0, c(p));
|
|
2134
2277
|
}
|
|
2135
2278
|
function u(p) {
|
|
2136
|
-
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 ||
|
|
2279
|
+
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || ot(p) ? t(p) : (e.consume(p), u);
|
|
2137
2280
|
}
|
|
2138
2281
|
function c(p) {
|
|
2139
|
-
return p === 64 ? (e.consume(p), f) :
|
|
2282
|
+
return p === 64 ? (e.consume(p), f) : sl(p) ? (e.consume(p), c) : t(p);
|
|
2140
2283
|
}
|
|
2141
2284
|
function f(p) {
|
|
2142
2285
|
return J(p) ? s(p) : t(p);
|
|
@@ -2152,11 +2295,11 @@ function xl(e, n, t) {
|
|
|
2152
2295
|
return t(p);
|
|
2153
2296
|
}
|
|
2154
2297
|
}
|
|
2155
|
-
var
|
|
2298
|
+
var Ze = {
|
|
2156
2299
|
partial: !0,
|
|
2157
|
-
tokenize:
|
|
2300
|
+
tokenize: wl
|
|
2158
2301
|
};
|
|
2159
|
-
function
|
|
2302
|
+
function wl(e, n, t) {
|
|
2160
2303
|
return r;
|
|
2161
2304
|
function r(l) {
|
|
2162
2305
|
return j(l) ? U(e, i, "linePrefix")(l) : i(l);
|
|
@@ -2166,12 +2309,12 @@ function kl(e, n, t) {
|
|
|
2166
2309
|
}
|
|
2167
2310
|
}
|
|
2168
2311
|
var hr = {
|
|
2169
|
-
continuation: { tokenize:
|
|
2170
|
-
exit:
|
|
2312
|
+
continuation: { tokenize: Cl },
|
|
2313
|
+
exit: Sl,
|
|
2171
2314
|
name: "blockQuote",
|
|
2172
|
-
tokenize:
|
|
2315
|
+
tokenize: vl
|
|
2173
2316
|
};
|
|
2174
|
-
function
|
|
2317
|
+
function vl(e, n, t) {
|
|
2175
2318
|
const r = this;
|
|
2176
2319
|
return i;
|
|
2177
2320
|
function i(o) {
|
|
@@ -2185,7 +2328,7 @@ function bl(e, n, t) {
|
|
|
2185
2328
|
return j(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
|
|
2186
2329
|
}
|
|
2187
2330
|
}
|
|
2188
|
-
function
|
|
2331
|
+
function Cl(e, n, t) {
|
|
2189
2332
|
const r = this;
|
|
2190
2333
|
return i;
|
|
2191
2334
|
function i(o) {
|
|
@@ -2195,27 +2338,27 @@ function wl(e, n, t) {
|
|
|
2195
2338
|
return e.attempt(hr, n, t)(o);
|
|
2196
2339
|
}
|
|
2197
2340
|
}
|
|
2198
|
-
function
|
|
2341
|
+
function Sl(e) {
|
|
2199
2342
|
e.exit("blockQuote");
|
|
2200
2343
|
}
|
|
2201
2344
|
var mr = {
|
|
2202
2345
|
name: "characterEscape",
|
|
2203
|
-
tokenize:
|
|
2346
|
+
tokenize: El
|
|
2204
2347
|
};
|
|
2205
|
-
function
|
|
2348
|
+
function El(e, n, t) {
|
|
2206
2349
|
return r;
|
|
2207
2350
|
function r(l) {
|
|
2208
2351
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
|
|
2209
2352
|
}
|
|
2210
2353
|
function i(l) {
|
|
2211
|
-
return
|
|
2354
|
+
return fl(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
|
|
2212
2355
|
}
|
|
2213
2356
|
}
|
|
2214
2357
|
var gr = {
|
|
2215
2358
|
name: "characterReference",
|
|
2216
|
-
tokenize:
|
|
2359
|
+
tokenize: Il
|
|
2217
2360
|
};
|
|
2218
|
-
function
|
|
2361
|
+
function Il(e, n, t) {
|
|
2219
2362
|
const r = this;
|
|
2220
2363
|
let i = 0, l, o;
|
|
2221
2364
|
return a;
|
|
@@ -2226,7 +2369,7 @@ function Sl(e, n, t) {
|
|
|
2226
2369
|
return s === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(s), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, o = J, f(s));
|
|
2227
2370
|
}
|
|
2228
2371
|
function c(s) {
|
|
2229
|
-
return s === 88 || s === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(s), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o =
|
|
2372
|
+
return s === 88 || s === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(s), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = cl, f) : (e.enter("characterReferenceValue"), l = 7, o = Mt, f(s));
|
|
2230
2373
|
}
|
|
2231
2374
|
function f(s) {
|
|
2232
2375
|
if (s === 59 && i) {
|
|
@@ -2238,13 +2381,13 @@ function Sl(e, n, t) {
|
|
|
2238
2381
|
}
|
|
2239
2382
|
var xn = {
|
|
2240
2383
|
partial: !0,
|
|
2241
|
-
tokenize:
|
|
2384
|
+
tokenize: Tl
|
|
2242
2385
|
}, kn = {
|
|
2243
2386
|
concrete: !0,
|
|
2244
2387
|
name: "codeFenced",
|
|
2245
|
-
tokenize:
|
|
2388
|
+
tokenize: Al
|
|
2246
2389
|
};
|
|
2247
|
-
function
|
|
2390
|
+
function Al(e, n, t) {
|
|
2248
2391
|
const r = this, i = {
|
|
2249
2392
|
partial: !0,
|
|
2250
2393
|
tokenize: L
|
|
@@ -2311,7 +2454,7 @@ function El(e, n, t) {
|
|
|
2311
2454
|
}
|
|
2312
2455
|
}
|
|
2313
2456
|
}
|
|
2314
|
-
function
|
|
2457
|
+
function Tl(e, n, t) {
|
|
2315
2458
|
const r = this;
|
|
2316
2459
|
return i;
|
|
2317
2460
|
function i(o) {
|
|
@@ -2321,14 +2464,14 @@ function Il(e, n, t) {
|
|
|
2321
2464
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
|
2322
2465
|
}
|
|
2323
2466
|
}
|
|
2324
|
-
var
|
|
2467
|
+
var yt = {
|
|
2325
2468
|
name: "codeIndented",
|
|
2326
|
-
tokenize:
|
|
2327
|
-
},
|
|
2469
|
+
tokenize: Ll
|
|
2470
|
+
}, Pl = {
|
|
2328
2471
|
partial: !0,
|
|
2329
|
-
tokenize:
|
|
2472
|
+
tokenize: zl
|
|
2330
2473
|
};
|
|
2331
|
-
function
|
|
2474
|
+
function Ll(e, n, t) {
|
|
2332
2475
|
const r = this;
|
|
2333
2476
|
return i;
|
|
2334
2477
|
function i(c) {
|
|
@@ -2339,7 +2482,7 @@ function Tl(e, n, t) {
|
|
|
2339
2482
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? o(c) : t(c);
|
|
2340
2483
|
}
|
|
2341
2484
|
function o(c) {
|
|
2342
|
-
return c === null ? u(c) : D(c) ? e.attempt(
|
|
2485
|
+
return c === null ? u(c) : D(c) ? e.attempt(Pl, o, u)(c) : (e.enter("codeFlowValue"), a(c));
|
|
2343
2486
|
}
|
|
2344
2487
|
function a(c) {
|
|
2345
2488
|
return c === null || D(c) ? (e.exit("codeFlowValue"), o(c)) : (e.consume(c), a);
|
|
@@ -2348,7 +2491,7 @@ function Tl(e, n, t) {
|
|
|
2348
2491
|
return e.exit("codeIndented"), n(c);
|
|
2349
2492
|
}
|
|
2350
2493
|
}
|
|
2351
|
-
function
|
|
2494
|
+
function zl(e, n, t) {
|
|
2352
2495
|
const r = this;
|
|
2353
2496
|
return i;
|
|
2354
2497
|
function i(o) {
|
|
@@ -2359,13 +2502,13 @@ function Pl(e, n, t) {
|
|
|
2359
2502
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : D(o) ? i(o) : t(o);
|
|
2360
2503
|
}
|
|
2361
2504
|
}
|
|
2362
|
-
var
|
|
2505
|
+
var Dl = {
|
|
2363
2506
|
name: "codeText",
|
|
2364
|
-
previous:
|
|
2365
|
-
resolve:
|
|
2366
|
-
tokenize:
|
|
2507
|
+
previous: Ml,
|
|
2508
|
+
resolve: Fl,
|
|
2509
|
+
tokenize: Rl
|
|
2367
2510
|
};
|
|
2368
|
-
function
|
|
2511
|
+
function Fl(e) {
|
|
2369
2512
|
let n = e.length - 4, t = 3, r, i;
|
|
2370
2513
|
if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
|
|
2371
2514
|
for (r = t; ++r < n; ) if (e[r][1].type === "codeTextData") {
|
|
@@ -2376,10 +2519,10 @@ function zl(e) {
|
|
|
2376
2519
|
for (r = t - 1, n++; ++r <= n; ) 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);
|
|
2377
2520
|
return e;
|
|
2378
2521
|
}
|
|
2379
|
-
function
|
|
2522
|
+
function Ml(e) {
|
|
2380
2523
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2381
2524
|
}
|
|
2382
|
-
function
|
|
2525
|
+
function Rl(e, n, t) {
|
|
2383
2526
|
let r = 0, i, l;
|
|
2384
2527
|
return o;
|
|
2385
2528
|
function o(s) {
|
|
@@ -2398,7 +2541,7 @@ function Fl(e, n, t) {
|
|
|
2398
2541
|
return s === 96 ? (e.consume(s), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(s)) : (l.type = "codeTextData", c(s));
|
|
2399
2542
|
}
|
|
2400
2543
|
}
|
|
2401
|
-
var
|
|
2544
|
+
var _l = class {
|
|
2402
2545
|
constructor(e) {
|
|
2403
2546
|
this.left = e ? [...e] : [], this.right = [];
|
|
2404
2547
|
}
|
|
@@ -2457,14 +2600,14 @@ function qe(e, n) {
|
|
|
2457
2600
|
function dr(e) {
|
|
2458
2601
|
const n = {};
|
|
2459
2602
|
let t = -1, r, i, l, o, a, u, c;
|
|
2460
|
-
const f = new
|
|
2603
|
+
const f = new _l(e);
|
|
2461
2604
|
for (; ++t < f.length; ) {
|
|
2462
2605
|
for (; t in n; ) t = n[t];
|
|
2463
2606
|
if (r = f.get(t), t && r[1].type === "chunkFlow" && f.get(t - 1)[1].type === "listItemPrefix" && (u = r[1]._tokenizer.events, l = 0, l < u.length && u[l][1].type === "lineEndingBlank" && (l += 2), l < u.length && u[l][1].type === "content"))
|
|
2464
2607
|
for (; ++l < u.length && u[l][1].type !== "content"; )
|
|
2465
2608
|
u[l][1].type === "chunkText" && (u[l][1]._isInFirstContentOfListItem = !0, l++);
|
|
2466
2609
|
if (r[0] === "enter")
|
|
2467
|
-
r[1].contentType && (Object.assign(n,
|
|
2610
|
+
r[1].contentType && (Object.assign(n, Ol(f, t)), t = n[t], c = !0);
|
|
2468
2611
|
else if (r[1]._container) {
|
|
2469
2612
|
for (l = t, i = void 0; l--; )
|
|
2470
2613
|
if (o = f.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
|
|
@@ -2476,7 +2619,7 @@ function dr(e) {
|
|
|
2476
2619
|
}
|
|
2477
2620
|
return oe(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !c;
|
|
2478
2621
|
}
|
|
2479
|
-
function
|
|
2622
|
+
function Ol(e, n) {
|
|
2480
2623
|
const t = e.get(n)[1], r = e.get(n)[2];
|
|
2481
2624
|
let i = n - 1;
|
|
2482
2625
|
const l = [];
|
|
@@ -2498,24 +2641,24 @@ function Rl(e, n) {
|
|
|
2498
2641
|
c[y + u[h][0]] = y + u[h][1], y += u[h][1] - u[h][0] - 1;
|
|
2499
2642
|
return c;
|
|
2500
2643
|
}
|
|
2501
|
-
var
|
|
2502
|
-
resolve:
|
|
2503
|
-
tokenize:
|
|
2504
|
-
},
|
|
2644
|
+
var Nl = {
|
|
2645
|
+
resolve: jl,
|
|
2646
|
+
tokenize: Hl
|
|
2647
|
+
}, Bl = {
|
|
2505
2648
|
partial: !0,
|
|
2506
|
-
tokenize:
|
|
2649
|
+
tokenize: Ul
|
|
2507
2650
|
};
|
|
2508
|
-
function
|
|
2651
|
+
function jl(e) {
|
|
2509
2652
|
return dr(e), e;
|
|
2510
2653
|
}
|
|
2511
|
-
function
|
|
2654
|
+
function Hl(e, n) {
|
|
2512
2655
|
let t;
|
|
2513
2656
|
return r;
|
|
2514
2657
|
function r(a) {
|
|
2515
2658
|
return e.enter("content"), t = e.enter("chunkContent", { contentType: "content" }), i(a);
|
|
2516
2659
|
}
|
|
2517
2660
|
function i(a) {
|
|
2518
|
-
return a === null ? l(a) : D(a) ? e.check(
|
|
2661
|
+
return a === null ? l(a) : D(a) ? e.check(Bl, o, l)(a) : (e.consume(a), i);
|
|
2519
2662
|
}
|
|
2520
2663
|
function l(a) {
|
|
2521
2664
|
return e.exit("chunkContent"), e.exit("content"), n(a);
|
|
@@ -2527,7 +2670,7 @@ function Bl(e, n) {
|
|
|
2527
2670
|
}), t = t.next, i;
|
|
2528
2671
|
}
|
|
2529
2672
|
}
|
|
2530
|
-
function
|
|
2673
|
+
function Ul(e, n, t) {
|
|
2531
2674
|
const r = this;
|
|
2532
2675
|
return i;
|
|
2533
2676
|
function i(o) {
|
|
@@ -2544,7 +2687,7 @@ function yr(e, n, t, r, i, l, o, a, u) {
|
|
|
2544
2687
|
let f = 0;
|
|
2545
2688
|
return s;
|
|
2546
2689
|
function s(d) {
|
|
2547
|
-
return d === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(d), e.exit(l), h) : d === null || d === 32 || d === 41 ||
|
|
2690
|
+
return d === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(d), e.exit(l), h) : d === null || d === 32 || d === 41 || ot(d) ? t(d) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", { contentType: "string" }), k(d));
|
|
2548
2691
|
}
|
|
2549
2692
|
function h(d) {
|
|
2550
2693
|
return d === 62 ? (e.enter(l), e.consume(d), e.exit(l), e.exit(i), e.exit(r), n) : (e.enter(a), e.enter("chunkString", { contentType: "string" }), p(d));
|
|
@@ -2556,7 +2699,7 @@ function yr(e, n, t, r, i, l, o, a, u) {
|
|
|
2556
2699
|
return d === 60 || d === 62 || d === 92 ? (e.consume(d), p) : p(d);
|
|
2557
2700
|
}
|
|
2558
2701
|
function k(d) {
|
|
2559
|
-
return !f && (d === null || d === 41 || q(d)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(d)) : f < c && d === 40 ? (e.consume(d), f++, k) : d === 41 ? (e.consume(d), f--, k) : d === null || d === 32 || d === 40 ||
|
|
2702
|
+
return !f && (d === null || d === 41 || q(d)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(d)) : f < c && d === 40 ? (e.consume(d), f++, k) : d === 41 ? (e.consume(d), f--, k) : d === null || d === 32 || d === 40 || ot(d) ? t(d) : (e.consume(d), d === 92 ? S : k);
|
|
2560
2703
|
}
|
|
2561
2704
|
function S(d) {
|
|
2562
2705
|
return d === 40 || d === 41 || d === 92 ? (e.consume(d), k) : k(d);
|
|
@@ -2598,21 +2741,21 @@ function kr(e, n, t, r, i, l) {
|
|
|
2598
2741
|
return h === o || h === 92 ? (e.consume(h), f) : f(h);
|
|
2599
2742
|
}
|
|
2600
2743
|
}
|
|
2601
|
-
function
|
|
2744
|
+
function Ye(e, n) {
|
|
2602
2745
|
let t;
|
|
2603
2746
|
return r;
|
|
2604
2747
|
function r(i) {
|
|
2605
2748
|
return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : j(i) ? U(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
|
2606
2749
|
}
|
|
2607
2750
|
}
|
|
2608
|
-
var
|
|
2751
|
+
var $l = {
|
|
2609
2752
|
name: "definition",
|
|
2610
|
-
tokenize:
|
|
2611
|
-
},
|
|
2753
|
+
tokenize: Vl
|
|
2754
|
+
}, ql = {
|
|
2612
2755
|
partial: !0,
|
|
2613
|
-
tokenize:
|
|
2756
|
+
tokenize: Wl
|
|
2614
2757
|
};
|
|
2615
|
-
function
|
|
2758
|
+
function Vl(e, n, t) {
|
|
2616
2759
|
const r = this;
|
|
2617
2760
|
let i;
|
|
2618
2761
|
return l;
|
|
@@ -2626,13 +2769,13 @@ function $l(e, n, t) {
|
|
|
2626
2769
|
return i = fe(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), u) : t(p);
|
|
2627
2770
|
}
|
|
2628
2771
|
function u(p) {
|
|
2629
|
-
return q(p) ?
|
|
2772
|
+
return q(p) ? Ye(e, c)(p) : c(p);
|
|
2630
2773
|
}
|
|
2631
2774
|
function c(p) {
|
|
2632
2775
|
return yr(e, f, t, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(p);
|
|
2633
2776
|
}
|
|
2634
2777
|
function f(p) {
|
|
2635
|
-
return e.attempt(
|
|
2778
|
+
return e.attempt(ql, s, s)(p);
|
|
2636
2779
|
}
|
|
2637
2780
|
function s(p) {
|
|
2638
2781
|
return j(p) ? U(e, h, "whitespace")(p) : h(p);
|
|
@@ -2641,10 +2784,10 @@ function $l(e, n, t) {
|
|
|
2641
2784
|
return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
|
|
2642
2785
|
}
|
|
2643
2786
|
}
|
|
2644
|
-
function
|
|
2787
|
+
function Wl(e, n, t) {
|
|
2645
2788
|
return r;
|
|
2646
2789
|
function r(a) {
|
|
2647
|
-
return q(a) ?
|
|
2790
|
+
return q(a) ? Ye(e, i)(a) : t(a);
|
|
2648
2791
|
}
|
|
2649
2792
|
function i(a) {
|
|
2650
2793
|
return kr(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
@@ -2656,11 +2799,11 @@ function ql(e, n, t) {
|
|
|
2656
2799
|
return a === null || D(a) ? n(a) : t(a);
|
|
2657
2800
|
}
|
|
2658
2801
|
}
|
|
2659
|
-
var
|
|
2802
|
+
var Xl = {
|
|
2660
2803
|
name: "hardBreakEscape",
|
|
2661
|
-
tokenize:
|
|
2804
|
+
tokenize: Yl
|
|
2662
2805
|
};
|
|
2663
|
-
function
|
|
2806
|
+
function Yl(e, n, t) {
|
|
2664
2807
|
return r;
|
|
2665
2808
|
function r(l) {
|
|
2666
2809
|
return e.enter("hardBreakEscape"), e.consume(l), i;
|
|
@@ -2669,12 +2812,12 @@ function Wl(e, n, t) {
|
|
|
2669
2812
|
return D(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
|
|
2670
2813
|
}
|
|
2671
2814
|
}
|
|
2672
|
-
var
|
|
2815
|
+
var Ql = {
|
|
2673
2816
|
name: "headingAtx",
|
|
2674
|
-
resolve:
|
|
2675
|
-
tokenize:
|
|
2817
|
+
resolve: Kl,
|
|
2818
|
+
tokenize: Gl
|
|
2676
2819
|
};
|
|
2677
|
-
function
|
|
2820
|
+
function Kl(e, n) {
|
|
2678
2821
|
let t = e.length - 2, r = 3, i, l;
|
|
2679
2822
|
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 = {
|
|
2680
2823
|
type: "atxHeadingText",
|
|
@@ -2708,7 +2851,7 @@ function Yl(e, n) {
|
|
|
2708
2851
|
]
|
|
2709
2852
|
])), e;
|
|
2710
2853
|
}
|
|
2711
|
-
function
|
|
2854
|
+
function Gl(e, n, t) {
|
|
2712
2855
|
let r = 0;
|
|
2713
2856
|
return i;
|
|
2714
2857
|
function i(f) {
|
|
@@ -2730,7 +2873,7 @@ function Ql(e, n, t) {
|
|
|
2730
2873
|
return f === null || f === 35 || q(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), c);
|
|
2731
2874
|
}
|
|
2732
2875
|
}
|
|
2733
|
-
var
|
|
2876
|
+
var Jl = [
|
|
2734
2877
|
"address",
|
|
2735
2878
|
"article",
|
|
2736
2879
|
"aside",
|
|
@@ -2798,24 +2941,24 @@ var Kl = [
|
|
|
2798
2941
|
"script",
|
|
2799
2942
|
"style",
|
|
2800
2943
|
"textarea"
|
|
2801
|
-
],
|
|
2944
|
+
], Zl = {
|
|
2802
2945
|
concrete: !0,
|
|
2803
2946
|
name: "htmlFlow",
|
|
2804
|
-
resolveTo:
|
|
2805
|
-
tokenize: to
|
|
2806
|
-
}, Jl = {
|
|
2807
|
-
partial: !0,
|
|
2947
|
+
resolveTo: no,
|
|
2808
2948
|
tokenize: ro
|
|
2809
|
-
},
|
|
2949
|
+
}, eo = {
|
|
2950
|
+
partial: !0,
|
|
2951
|
+
tokenize: lo
|
|
2952
|
+
}, to = {
|
|
2810
2953
|
partial: !0,
|
|
2811
|
-
tokenize:
|
|
2954
|
+
tokenize: io
|
|
2812
2955
|
};
|
|
2813
|
-
function
|
|
2956
|
+
function no(e) {
|
|
2814
2957
|
let n = e.length;
|
|
2815
2958
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); ) ;
|
|
2816
2959
|
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;
|
|
2817
2960
|
}
|
|
2818
|
-
function
|
|
2961
|
+
function ro(e, n, t) {
|
|
2819
2962
|
const r = this;
|
|
2820
2963
|
let i, l, o, a, u;
|
|
2821
2964
|
return c;
|
|
@@ -2843,7 +2986,7 @@ function to(e, n, t) {
|
|
|
2843
2986
|
function S(g) {
|
|
2844
2987
|
if (g === null || g === 47 || g === 62 || q(g)) {
|
|
2845
2988
|
const we = g === 47, Ee = o.toLowerCase();
|
|
2846
|
-
return !we && !l && bn.includes(Ee) ? (i = 1, r.interrupt ? n(g) : P(g)) :
|
|
2989
|
+
return !we && !l && bn.includes(Ee) ? (i = 1, r.interrupt ? n(g) : P(g)) : Jl.includes(o.toLowerCase()) ? (i = 6, we ? (e.consume(g), d) : r.interrupt ? n(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(g) : l ? v(g) : C(g));
|
|
2847
2990
|
}
|
|
2848
2991
|
return g === 45 || J(g) ? (e.consume(g), o += String.fromCharCode(g), S) : t(g);
|
|
2849
2992
|
}
|
|
@@ -2881,10 +3024,10 @@ function to(e, n, t) {
|
|
|
2881
3024
|
return g === null || D(g) ? P(g) : j(g) ? (e.consume(g), T) : t(g);
|
|
2882
3025
|
}
|
|
2883
3026
|
function P(g) {
|
|
2884
|
-
return g === 45 && i === 2 ? (e.consume(g), R) : g === 60 && i === 1 ? (e.consume(g), z) : g === 62 && i === 4 ? (e.consume(g), be) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), ue) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
3027
|
+
return g === 45 && i === 2 ? (e.consume(g), R) : g === 60 && i === 1 ? (e.consume(g), z) : g === 62 && i === 4 ? (e.consume(g), be) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), ue) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(eo, me, $)(g)) : g === null || D(g) ? (e.exit("htmlFlowData"), $(g)) : (e.consume(g), P);
|
|
2885
3028
|
}
|
|
2886
3029
|
function $(g) {
|
|
2887
|
-
return e.check(
|
|
3030
|
+
return e.check(to, W, me)(g);
|
|
2888
3031
|
}
|
|
2889
3032
|
function W(g) {
|
|
2890
3033
|
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), H;
|
|
@@ -2918,7 +3061,7 @@ function to(e, n, t) {
|
|
|
2918
3061
|
return e.exit("htmlFlow"), n(g);
|
|
2919
3062
|
}
|
|
2920
3063
|
}
|
|
2921
|
-
function
|
|
3064
|
+
function io(e, n, t) {
|
|
2922
3065
|
const r = this;
|
|
2923
3066
|
return i;
|
|
2924
3067
|
function i(o) {
|
|
@@ -2928,17 +3071,17 @@ function no(e, n, t) {
|
|
|
2928
3071
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
|
2929
3072
|
}
|
|
2930
3073
|
}
|
|
2931
|
-
function
|
|
3074
|
+
function lo(e, n, t) {
|
|
2932
3075
|
return r;
|
|
2933
3076
|
function r(i) {
|
|
2934
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
|
3077
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ze, n, t);
|
|
2935
3078
|
}
|
|
2936
3079
|
}
|
|
2937
|
-
var
|
|
3080
|
+
var oo = {
|
|
2938
3081
|
name: "htmlText",
|
|
2939
|
-
tokenize:
|
|
3082
|
+
tokenize: ao
|
|
2940
3083
|
};
|
|
2941
|
-
function
|
|
3084
|
+
function ao(e, n, t) {
|
|
2942
3085
|
const r = this;
|
|
2943
3086
|
let i, l, o;
|
|
2944
3087
|
return a;
|
|
@@ -3032,11 +3175,11 @@ function lo(e, n, t) {
|
|
|
3032
3175
|
}
|
|
3033
3176
|
var Qt = {
|
|
3034
3177
|
name: "labelEnd",
|
|
3035
|
-
resolveAll:
|
|
3036
|
-
resolveTo:
|
|
3037
|
-
tokenize:
|
|
3038
|
-
},
|
|
3039
|
-
function
|
|
3178
|
+
resolveAll: fo,
|
|
3179
|
+
resolveTo: po,
|
|
3180
|
+
tokenize: ho
|
|
3181
|
+
}, uo = { tokenize: mo }, so = { tokenize: go }, co = { tokenize: yo };
|
|
3182
|
+
function fo(e) {
|
|
3040
3183
|
let n = -1;
|
|
3041
3184
|
const t = [];
|
|
3042
3185
|
for (; ++n < e.length; ) {
|
|
@@ -3048,7 +3191,7 @@ function so(e) {
|
|
|
3048
3191
|
}
|
|
3049
3192
|
return e.length !== t.length && oe(e, 0, e.length, t), e;
|
|
3050
3193
|
}
|
|
3051
|
-
function
|
|
3194
|
+
function po(e, n) {
|
|
3052
3195
|
let t = e.length, r = 0, i, l, o, a;
|
|
3053
3196
|
for (; t--; )
|
|
3054
3197
|
if (i = e[t][1], l) {
|
|
@@ -3085,7 +3228,7 @@ function co(e, n) {
|
|
|
3085
3228
|
"enter",
|
|
3086
3229
|
f,
|
|
3087
3230
|
n
|
|
3088
|
-
]]), a = ae(a,
|
|
3231
|
+
]]), a = ae(a, pt(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = ae(a, [
|
|
3089
3232
|
[
|
|
3090
3233
|
"exit",
|
|
3091
3234
|
f,
|
|
@@ -3104,7 +3247,7 @@ function co(e, n) {
|
|
|
3104
3247
|
n
|
|
3105
3248
|
]]), oe(e, l, e.length, a), e;
|
|
3106
3249
|
}
|
|
3107
|
-
function
|
|
3250
|
+
function ho(e, n, t) {
|
|
3108
3251
|
const r = this;
|
|
3109
3252
|
let i = r.events.length, l, o;
|
|
3110
3253
|
for (; i--; ) if ((r.events[i][1].type === "labelImage" || r.events[i][1].type === "labelLink") && !r.events[i][1]._balanced) {
|
|
@@ -3119,10 +3262,10 @@ function fo(e, n, t) {
|
|
|
3119
3262
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), u) : t(h);
|
|
3120
3263
|
}
|
|
3121
3264
|
function u(h) {
|
|
3122
|
-
return h === 40 ? e.attempt(
|
|
3265
|
+
return h === 40 ? e.attempt(uo, f, o ? f : s)(h) : h === 91 ? e.attempt(so, f, o ? c : s)(h) : o ? f(h) : s(h);
|
|
3123
3266
|
}
|
|
3124
3267
|
function c(h) {
|
|
3125
|
-
return e.attempt(
|
|
3268
|
+
return e.attempt(co, f, s)(h);
|
|
3126
3269
|
}
|
|
3127
3270
|
function f(h) {
|
|
3128
3271
|
return n(h);
|
|
@@ -3131,19 +3274,19 @@ function fo(e, n, t) {
|
|
|
3131
3274
|
return l._balanced = !0, t(h);
|
|
3132
3275
|
}
|
|
3133
3276
|
}
|
|
3134
|
-
function
|
|
3277
|
+
function mo(e, n, t) {
|
|
3135
3278
|
return r;
|
|
3136
3279
|
function r(s) {
|
|
3137
3280
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(s), e.exit("resourceMarker"), i;
|
|
3138
3281
|
}
|
|
3139
3282
|
function i(s) {
|
|
3140
|
-
return q(s) ?
|
|
3283
|
+
return q(s) ? Ye(e, l)(s) : l(s);
|
|
3141
3284
|
}
|
|
3142
3285
|
function l(s) {
|
|
3143
3286
|
return s === 41 ? f(s) : yr(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(s);
|
|
3144
3287
|
}
|
|
3145
3288
|
function o(s) {
|
|
3146
|
-
return q(s) ?
|
|
3289
|
+
return q(s) ? Ye(e, u)(s) : f(s);
|
|
3147
3290
|
}
|
|
3148
3291
|
function a(s) {
|
|
3149
3292
|
return t(s);
|
|
@@ -3152,13 +3295,13 @@ function po(e, n, t) {
|
|
|
3152
3295
|
return s === 34 || s === 39 || s === 40 ? kr(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(s) : f(s);
|
|
3153
3296
|
}
|
|
3154
3297
|
function c(s) {
|
|
3155
|
-
return q(s) ?
|
|
3298
|
+
return q(s) ? Ye(e, f)(s) : f(s);
|
|
3156
3299
|
}
|
|
3157
3300
|
function f(s) {
|
|
3158
3301
|
return s === 41 ? (e.enter("resourceMarker"), e.consume(s), e.exit("resourceMarker"), e.exit("resource"), n) : t(s);
|
|
3159
3302
|
}
|
|
3160
3303
|
}
|
|
3161
|
-
function
|
|
3304
|
+
function go(e, n, t) {
|
|
3162
3305
|
const r = this;
|
|
3163
3306
|
return i;
|
|
3164
3307
|
function i(a) {
|
|
@@ -3171,7 +3314,7 @@ function ho(e, n, t) {
|
|
|
3171
3314
|
return t(a);
|
|
3172
3315
|
}
|
|
3173
3316
|
}
|
|
3174
|
-
function
|
|
3317
|
+
function yo(e, n, t) {
|
|
3175
3318
|
return r;
|
|
3176
3319
|
function r(l) {
|
|
3177
3320
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
|
|
@@ -3180,12 +3323,12 @@ function mo(e, n, t) {
|
|
|
3180
3323
|
return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
|
|
3181
3324
|
}
|
|
3182
3325
|
}
|
|
3183
|
-
var
|
|
3326
|
+
var xo = {
|
|
3184
3327
|
name: "labelStartImage",
|
|
3185
3328
|
resolveAll: Qt.resolveAll,
|
|
3186
|
-
tokenize:
|
|
3329
|
+
tokenize: ko
|
|
3187
3330
|
};
|
|
3188
|
-
function
|
|
3331
|
+
function ko(e, n, t) {
|
|
3189
3332
|
const r = this;
|
|
3190
3333
|
return i;
|
|
3191
3334
|
function i(a) {
|
|
@@ -3198,12 +3341,12 @@ function yo(e, n, t) {
|
|
|
3198
3341
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
|
|
3199
3342
|
}
|
|
3200
3343
|
}
|
|
3201
|
-
var
|
|
3344
|
+
var bo = {
|
|
3202
3345
|
name: "labelStartLink",
|
|
3203
3346
|
resolveAll: Qt.resolveAll,
|
|
3204
|
-
tokenize:
|
|
3347
|
+
tokenize: wo
|
|
3205
3348
|
};
|
|
3206
|
-
function
|
|
3349
|
+
function wo(e, n, t) {
|
|
3207
3350
|
const r = this;
|
|
3208
3351
|
return i;
|
|
3209
3352
|
function i(o) {
|
|
@@ -3213,21 +3356,21 @@ function ko(e, n, t) {
|
|
|
3213
3356
|
return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
|
|
3214
3357
|
}
|
|
3215
3358
|
}
|
|
3216
|
-
var
|
|
3359
|
+
var xt = {
|
|
3217
3360
|
name: "lineEnding",
|
|
3218
|
-
tokenize:
|
|
3361
|
+
tokenize: vo
|
|
3219
3362
|
};
|
|
3220
|
-
function
|
|
3363
|
+
function vo(e, n) {
|
|
3221
3364
|
return t;
|
|
3222
3365
|
function t(r) {
|
|
3223
3366
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), U(e, n, "linePrefix");
|
|
3224
3367
|
}
|
|
3225
3368
|
}
|
|
3226
|
-
var
|
|
3369
|
+
var lt = {
|
|
3227
3370
|
name: "thematicBreak",
|
|
3228
|
-
tokenize:
|
|
3371
|
+
tokenize: Co
|
|
3229
3372
|
};
|
|
3230
|
-
function
|
|
3373
|
+
function Co(e, n, t) {
|
|
3231
3374
|
let r = 0, i;
|
|
3232
3375
|
return l;
|
|
3233
3376
|
function l(c) {
|
|
@@ -3244,36 +3387,36 @@ function wo(e, n, t) {
|
|
|
3244
3387
|
}
|
|
3245
3388
|
}
|
|
3246
3389
|
var ne = {
|
|
3247
|
-
continuation: { tokenize:
|
|
3248
|
-
exit:
|
|
3390
|
+
continuation: { tokenize: Ao },
|
|
3391
|
+
exit: Po,
|
|
3249
3392
|
name: "list",
|
|
3250
|
-
tokenize:
|
|
3251
|
-
},
|
|
3393
|
+
tokenize: Io
|
|
3394
|
+
}, So = {
|
|
3252
3395
|
partial: !0,
|
|
3253
|
-
tokenize:
|
|
3254
|
-
},
|
|
3396
|
+
tokenize: Lo
|
|
3397
|
+
}, Eo = {
|
|
3255
3398
|
partial: !0,
|
|
3256
|
-
tokenize:
|
|
3399
|
+
tokenize: To
|
|
3257
3400
|
};
|
|
3258
|
-
function
|
|
3401
|
+
function Io(e, n, t) {
|
|
3259
3402
|
const r = this, i = r.events[r.events.length - 1];
|
|
3260
3403
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
|
3261
3404
|
return a;
|
|
3262
3405
|
function a(p) {
|
|
3263
3406
|
const y = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
|
3264
|
-
if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker :
|
|
3407
|
+
if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : Mt(p)) {
|
|
3265
3408
|
if (r.containerState.type || (r.containerState.type = y, e.enter(y, { _container: !0 })), y === "listUnordered")
|
|
3266
|
-
return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(
|
|
3409
|
+
return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(lt, t, c)(p) : c(p);
|
|
3267
3410
|
if (!r.interrupt || p === 49)
|
|
3268
3411
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), u(p);
|
|
3269
3412
|
}
|
|
3270
3413
|
return t(p);
|
|
3271
3414
|
}
|
|
3272
3415
|
function u(p) {
|
|
3273
|
-
return
|
|
3416
|
+
return Mt(p) && ++o < 10 ? (e.consume(p), u) : (!r.interrupt || o < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : t(p);
|
|
3274
3417
|
}
|
|
3275
3418
|
function c(p) {
|
|
3276
|
-
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
|
|
3419
|
+
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(Ze, r.interrupt ? t : f, e.attempt(So, h, s));
|
|
3277
3420
|
}
|
|
3278
3421
|
function f(p) {
|
|
3279
3422
|
return r.containerState.initialBlankLine = !0, l++, h(p);
|
|
@@ -3285,20 +3428,20 @@ function So(e, n, t) {
|
|
|
3285
3428
|
return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
|
|
3286
3429
|
}
|
|
3287
3430
|
}
|
|
3288
|
-
function
|
|
3431
|
+
function Ao(e, n, t) {
|
|
3289
3432
|
const r = this;
|
|
3290
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
3433
|
+
return r.containerState._closeFlow = void 0, e.check(Ze, i, l);
|
|
3291
3434
|
function i(a) {
|
|
3292
3435
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, U(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
|
3293
3436
|
}
|
|
3294
3437
|
function l(a) {
|
|
3295
|
-
return r.containerState.furtherBlankLines || !j(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(
|
|
3438
|
+
return r.containerState.furtherBlankLines || !j(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(Eo, n, o)(a));
|
|
3296
3439
|
}
|
|
3297
3440
|
function o(a) {
|
|
3298
3441
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, U(e, e.attempt(ne, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3299
3442
|
}
|
|
3300
3443
|
}
|
|
3301
|
-
function
|
|
3444
|
+
function To(e, n, t) {
|
|
3302
3445
|
const r = this;
|
|
3303
3446
|
return U(e, i, "listItemIndent", r.containerState.size + 1);
|
|
3304
3447
|
function i(l) {
|
|
@@ -3306,10 +3449,10 @@ function Io(e, n, t) {
|
|
|
3306
3449
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
|
|
3307
3450
|
}
|
|
3308
3451
|
}
|
|
3309
|
-
function
|
|
3452
|
+
function Po(e) {
|
|
3310
3453
|
e.exit(this.containerState.type);
|
|
3311
3454
|
}
|
|
3312
|
-
function
|
|
3455
|
+
function Lo(e, n, t) {
|
|
3313
3456
|
const r = this;
|
|
3314
3457
|
return U(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3315
3458
|
function i(l) {
|
|
@@ -3319,10 +3462,10 @@ function To(e, n, t) {
|
|
|
3319
3462
|
}
|
|
3320
3463
|
var wn = {
|
|
3321
3464
|
name: "setextUnderline",
|
|
3322
|
-
resolveTo:
|
|
3323
|
-
tokenize:
|
|
3465
|
+
resolveTo: zo,
|
|
3466
|
+
tokenize: Do
|
|
3324
3467
|
};
|
|
3325
|
-
function
|
|
3468
|
+
function zo(e, n) {
|
|
3326
3469
|
let t = e.length, r, i, l;
|
|
3327
3470
|
for (; t--; ) if (e[t][0] === "enter") {
|
|
3328
3471
|
if (e[t][1].type === "content") {
|
|
@@ -3351,7 +3494,7 @@ function Po(e, n) {
|
|
|
3351
3494
|
n
|
|
3352
3495
|
]), e;
|
|
3353
3496
|
}
|
|
3354
|
-
function
|
|
3497
|
+
function Do(e, n, t) {
|
|
3355
3498
|
const r = this;
|
|
3356
3499
|
let i;
|
|
3357
3500
|
return l;
|
|
@@ -3373,9 +3516,9 @@ function Lo(e, n, t) {
|
|
|
3373
3516
|
return c === null || D(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
|
|
3374
3517
|
}
|
|
3375
3518
|
}
|
|
3376
|
-
var
|
|
3377
|
-
function
|
|
3378
|
-
const n = this, t = e.attempt(
|
|
3519
|
+
var Fo = { tokenize: Mo };
|
|
3520
|
+
function Mo(e) {
|
|
3521
|
+
const n = this, t = e.attempt(Ze, r, e.attempt(this.parser.constructs.flowInitial, i, U(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Nl, i)), "linePrefix")));
|
|
3379
3522
|
return t;
|
|
3380
3523
|
function r(l) {
|
|
3381
3524
|
if (l === null) {
|
|
@@ -3392,10 +3535,10 @@ function Do(e) {
|
|
|
3392
3535
|
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
|
3393
3536
|
}
|
|
3394
3537
|
}
|
|
3395
|
-
var
|
|
3538
|
+
var Ro = { resolveAll: wr() }, _o = br("string"), Oo = br("text");
|
|
3396
3539
|
function br(e) {
|
|
3397
3540
|
return {
|
|
3398
|
-
resolveAll: wr(e === "text" ?
|
|
3541
|
+
resolveAll: wr(e === "text" ? No : void 0),
|
|
3399
3542
|
tokenize: n
|
|
3400
3543
|
};
|
|
3401
3544
|
function n(t) {
|
|
@@ -3434,7 +3577,7 @@ function wr(e) {
|
|
|
3434
3577
|
return e ? e(t, r) : t;
|
|
3435
3578
|
}
|
|
3436
3579
|
}
|
|
3437
|
-
function
|
|
3580
|
+
function No(e, n) {
|
|
3438
3581
|
let t = 0;
|
|
3439
3582
|
for (; ++t <= e.length; ) if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
|
3440
3583
|
const r = e[t - 1][1], i = n.sliceStream(r);
|
|
@@ -3479,17 +3622,17 @@ function _o(e, n) {
|
|
|
3479
3622
|
}
|
|
3480
3623
|
return e;
|
|
3481
3624
|
}
|
|
3482
|
-
var
|
|
3483
|
-
attentionMarkers: () =>
|
|
3484
|
-
contentInitial: () =>
|
|
3485
|
-
disable: () =>
|
|
3486
|
-
document: () =>
|
|
3487
|
-
flow: () =>
|
|
3488
|
-
flowInitial: () =>
|
|
3489
|
-
insideSpan: () =>
|
|
3490
|
-
string: () =>
|
|
3491
|
-
text: () =>
|
|
3492
|
-
}),
|
|
3625
|
+
var Bo = /* @__PURE__ */ Vn({
|
|
3626
|
+
attentionMarkers: () => Xo,
|
|
3627
|
+
contentInitial: () => Ho,
|
|
3628
|
+
disable: () => Yo,
|
|
3629
|
+
document: () => jo,
|
|
3630
|
+
flow: () => $o,
|
|
3631
|
+
flowInitial: () => Uo,
|
|
3632
|
+
insideSpan: () => Wo,
|
|
3633
|
+
string: () => qo,
|
|
3634
|
+
text: () => Vo
|
|
3635
|
+
}), jo = {
|
|
3493
3636
|
42: ne,
|
|
3494
3637
|
43: ne,
|
|
3495
3638
|
45: ne,
|
|
@@ -3504,37 +3647,37 @@ var Oo = /* @__PURE__ */ Vn({
|
|
|
3504
3647
|
56: ne,
|
|
3505
3648
|
57: ne,
|
|
3506
3649
|
62: hr
|
|
3507
|
-
},
|
|
3508
|
-
[-2]:
|
|
3509
|
-
[-1]:
|
|
3510
|
-
32:
|
|
3511
|
-
},
|
|
3512
|
-
35:
|
|
3513
|
-
42:
|
|
3514
|
-
45: [wn,
|
|
3515
|
-
60:
|
|
3650
|
+
}, Ho = { 91: $l }, Uo = {
|
|
3651
|
+
[-2]: yt,
|
|
3652
|
+
[-1]: yt,
|
|
3653
|
+
32: yt
|
|
3654
|
+
}, $o = {
|
|
3655
|
+
35: Ql,
|
|
3656
|
+
42: lt,
|
|
3657
|
+
45: [wn, lt],
|
|
3658
|
+
60: Zl,
|
|
3516
3659
|
61: wn,
|
|
3517
|
-
95:
|
|
3660
|
+
95: lt,
|
|
3518
3661
|
96: kn,
|
|
3519
3662
|
126: kn
|
|
3520
|
-
},
|
|
3663
|
+
}, qo = {
|
|
3521
3664
|
38: gr,
|
|
3522
3665
|
92: mr
|
|
3523
|
-
},
|
|
3524
|
-
[-5]:
|
|
3525
|
-
[-4]:
|
|
3526
|
-
[-3]:
|
|
3527
|
-
33:
|
|
3666
|
+
}, Vo = {
|
|
3667
|
+
[-5]: xt,
|
|
3668
|
+
[-4]: xt,
|
|
3669
|
+
[-3]: xt,
|
|
3670
|
+
33: xo,
|
|
3528
3671
|
38: gr,
|
|
3529
|
-
42:
|
|
3530
|
-
60: [
|
|
3531
|
-
91:
|
|
3532
|
-
92: [
|
|
3672
|
+
42: Rt,
|
|
3673
|
+
60: [kl, oo],
|
|
3674
|
+
91: bo,
|
|
3675
|
+
92: [Xl, mr],
|
|
3533
3676
|
93: Qt,
|
|
3534
|
-
95:
|
|
3535
|
-
96:
|
|
3536
|
-
},
|
|
3537
|
-
function
|
|
3677
|
+
95: Rt,
|
|
3678
|
+
96: Dl
|
|
3679
|
+
}, Wo = { null: [Rt, Ro] }, Xo = { null: [42, 95] }, Yo = { null: [] };
|
|
3680
|
+
function Qo(e, n, t) {
|
|
3538
3681
|
let r = {
|
|
3539
3682
|
_bufferIndex: -1,
|
|
3540
3683
|
_index: 0,
|
|
@@ -3566,13 +3709,13 @@ function Xo(e, n, t) {
|
|
|
3566
3709
|
let f = n.tokenize.call(c, u);
|
|
3567
3710
|
return n.resolveAll && l.push(n), c;
|
|
3568
3711
|
function s(T) {
|
|
3569
|
-
return o = ae(o, T), S(), o[o.length - 1] !== null ? [] : (F(n, 0), c.events =
|
|
3712
|
+
return o = ae(o, T), S(), o[o.length - 1] !== null ? [] : (F(n, 0), c.events = pt(l, c.events, c), c.events);
|
|
3570
3713
|
}
|
|
3571
3714
|
function h(T, P) {
|
|
3572
|
-
return
|
|
3715
|
+
return Go(p(T), P);
|
|
3573
3716
|
}
|
|
3574
3717
|
function p(T) {
|
|
3575
|
-
return
|
|
3718
|
+
return Ko(o, T);
|
|
3576
3719
|
}
|
|
3577
3720
|
function y() {
|
|
3578
3721
|
const { _bufferIndex: T, _index: P, line: $, column: W, offset: H } = r;
|
|
@@ -3670,7 +3813,7 @@ function Xo(e, n, t) {
|
|
|
3670
3813
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
3671
3814
|
}
|
|
3672
3815
|
}
|
|
3673
|
-
function
|
|
3816
|
+
function Ko(e, n) {
|
|
3674
3817
|
const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
|
|
3675
3818
|
let o;
|
|
3676
3819
|
if (t === i) o = [e[t].slice(r, l)];
|
|
@@ -3683,7 +3826,7 @@ function Yo(e, n) {
|
|
|
3683
3826
|
}
|
|
3684
3827
|
return o;
|
|
3685
3828
|
}
|
|
3686
|
-
function
|
|
3829
|
+
function Go(e, n) {
|
|
3687
3830
|
let t = -1;
|
|
3688
3831
|
const r = [];
|
|
3689
3832
|
let i;
|
|
@@ -3717,31 +3860,31 @@ function Qo(e, n) {
|
|
|
3717
3860
|
}
|
|
3718
3861
|
return r.join("");
|
|
3719
3862
|
}
|
|
3720
|
-
function
|
|
3863
|
+
function Jo(e) {
|
|
3721
3864
|
const n = {
|
|
3722
|
-
constructs: fr([
|
|
3723
|
-
content: t(
|
|
3865
|
+
constructs: fr([Bo, ...(e || {}).extensions || []]),
|
|
3866
|
+
content: t(pl),
|
|
3724
3867
|
defined: [],
|
|
3725
|
-
document: t(
|
|
3726
|
-
flow: t(
|
|
3868
|
+
document: t(ml),
|
|
3869
|
+
flow: t(Fo),
|
|
3727
3870
|
lazy: {},
|
|
3728
|
-
string: t(
|
|
3729
|
-
text: t(
|
|
3871
|
+
string: t(_o),
|
|
3872
|
+
text: t(Oo)
|
|
3730
3873
|
};
|
|
3731
3874
|
return n;
|
|
3732
3875
|
function t(r) {
|
|
3733
3876
|
return i;
|
|
3734
3877
|
function i(l) {
|
|
3735
|
-
return
|
|
3878
|
+
return Qo(n, r, l);
|
|
3736
3879
|
}
|
|
3737
3880
|
}
|
|
3738
3881
|
}
|
|
3739
|
-
function
|
|
3882
|
+
function Zo(e) {
|
|
3740
3883
|
for (; !dr(e); ) ;
|
|
3741
3884
|
return e;
|
|
3742
3885
|
}
|
|
3743
3886
|
var vn = /[\0\t\n\r]/g;
|
|
3744
|
-
function
|
|
3887
|
+
function ea() {
|
|
3745
3888
|
let e = 1, n = "", t = !0, r;
|
|
3746
3889
|
return i;
|
|
3747
3890
|
function i(l, o, a) {
|
|
@@ -3773,11 +3916,11 @@ function Jo() {
|
|
|
3773
3916
|
return a && (r && u.push(-5), n && u.push(n), u.push(null)), u;
|
|
3774
3917
|
}
|
|
3775
3918
|
}
|
|
3776
|
-
var
|
|
3777
|
-
function
|
|
3778
|
-
return e.replace(
|
|
3919
|
+
var ta = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
3920
|
+
function na(e) {
|
|
3921
|
+
return e.replace(ta, ra);
|
|
3779
3922
|
}
|
|
3780
|
-
function
|
|
3923
|
+
function ra(e, n, t) {
|
|
3781
3924
|
if (n) return n;
|
|
3782
3925
|
if (t.charCodeAt(0) === 35) {
|
|
3783
3926
|
const r = t.charCodeAt(1), i = r === 120 || r === 88;
|
|
@@ -3786,10 +3929,10 @@ function ta(e, n, t) {
|
|
|
3786
3929
|
return Yt(t) || e;
|
|
3787
3930
|
}
|
|
3788
3931
|
var vr = {}.hasOwnProperty;
|
|
3789
|
-
function
|
|
3790
|
-
return typeof n != "string" && (t = n, n = void 0),
|
|
3932
|
+
function ia(e, n, t) {
|
|
3933
|
+
return typeof n != "string" && (t = n, n = void 0), la(t)(Zo(Jo(t).document().write(ea()(e, n, !0))));
|
|
3791
3934
|
}
|
|
3792
|
-
function
|
|
3935
|
+
function la(e) {
|
|
3793
3936
|
const n = {
|
|
3794
3937
|
transforms: [],
|
|
3795
3938
|
canContainEols: [
|
|
@@ -4019,7 +4162,7 @@ function ra(e) {
|
|
|
4019
4162
|
function c(b, I) {
|
|
4020
4163
|
const _ = this.stack.pop(), X = this.tokenStack.pop();
|
|
4021
4164
|
if (X) X[0].type !== b.type && (I ? I.call(this, b, X[0]) : (X[1] || Cn).call(this, b, X[0]));
|
|
4022
|
-
else throw new Error("Cannot close `" + b.type + "` (" +
|
|
4165
|
+
else throw new Error("Cannot close `" + b.type + "` (" + Xe({
|
|
4023
4166
|
start: b.start,
|
|
4024
4167
|
end: b.end
|
|
4025
4168
|
}) + "): it’s not open");
|
|
@@ -4138,7 +4281,7 @@ function ra(e) {
|
|
|
4138
4281
|
}
|
|
4139
4282
|
function Q(b) {
|
|
4140
4283
|
const I = this.sliceSerialize(b), _ = this.stack[this.stack.length - 2];
|
|
4141
|
-
_.label =
|
|
4284
|
+
_.label = na(I), _.identifier = fe(I).toLowerCase();
|
|
4142
4285
|
}
|
|
4143
4286
|
function ue() {
|
|
4144
4287
|
const b = this.stack[this.stack.length - 1], I = this.resume(), _ = this.stack[this.stack.length - 1];
|
|
@@ -4303,10 +4446,10 @@ function Cr(e, n) {
|
|
|
4303
4446
|
let t = -1;
|
|
4304
4447
|
for (; ++t < n.length; ) {
|
|
4305
4448
|
const r = n[t];
|
|
4306
|
-
Array.isArray(r) ? Cr(e, r) :
|
|
4449
|
+
Array.isArray(r) ? Cr(e, r) : oa(e, r);
|
|
4307
4450
|
}
|
|
4308
4451
|
}
|
|
4309
|
-
function
|
|
4452
|
+
function oa(e, n) {
|
|
4310
4453
|
let t;
|
|
4311
4454
|
for (t in n) if (vr.call(n, t)) switch (t) {
|
|
4312
4455
|
case "canContainEols": {
|
|
@@ -4328,22 +4471,22 @@ function ia(e, n) {
|
|
|
4328
4471
|
}
|
|
4329
4472
|
}
|
|
4330
4473
|
function Cn(e, n) {
|
|
4331
|
-
throw e ? new Error("Cannot close `" + e.type + "` (" +
|
|
4474
|
+
throw e ? new Error("Cannot close `" + e.type + "` (" + Xe({
|
|
4332
4475
|
start: e.start,
|
|
4333
4476
|
end: e.end
|
|
4334
|
-
}) + "): a different token (`" + n.type + "`, " +
|
|
4477
|
+
}) + "): a different token (`" + n.type + "`, " + Xe({
|
|
4335
4478
|
start: n.start,
|
|
4336
4479
|
end: n.end
|
|
4337
|
-
}) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " +
|
|
4480
|
+
}) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " + Xe({
|
|
4338
4481
|
start: n.start,
|
|
4339
4482
|
end: n.end
|
|
4340
4483
|
}) + ") is still open");
|
|
4341
4484
|
}
|
|
4342
|
-
function
|
|
4485
|
+
function aa(e) {
|
|
4343
4486
|
const n = this;
|
|
4344
4487
|
n.parser = t;
|
|
4345
4488
|
function t(r) {
|
|
4346
|
-
return
|
|
4489
|
+
return ia(r, {
|
|
4347
4490
|
...n.data("settings"),
|
|
4348
4491
|
...e,
|
|
4349
4492
|
extensions: n.data("micromarkExtensions") || [],
|
|
@@ -4351,7 +4494,7 @@ function la(e) {
|
|
|
4351
4494
|
});
|
|
4352
4495
|
}
|
|
4353
4496
|
}
|
|
4354
|
-
function
|
|
4497
|
+
function ua(e, n) {
|
|
4355
4498
|
const t = {
|
|
4356
4499
|
type: "element",
|
|
4357
4500
|
tagName: "blockquote",
|
|
@@ -4360,7 +4503,7 @@ function oa(e, n) {
|
|
|
4360
4503
|
};
|
|
4361
4504
|
return e.patch(n, t), e.applyData(n, t);
|
|
4362
4505
|
}
|
|
4363
|
-
function
|
|
4506
|
+
function sa(e, n) {
|
|
4364
4507
|
const t = {
|
|
4365
4508
|
type: "element",
|
|
4366
4509
|
tagName: "br",
|
|
@@ -4373,7 +4516,7 @@ function aa(e, n) {
|
|
|
4373
4516
|
`
|
|
4374
4517
|
}];
|
|
4375
4518
|
}
|
|
4376
|
-
function
|
|
4519
|
+
function ca(e, n) {
|
|
4377
4520
|
const t = n.value ? n.value + `
|
|
4378
4521
|
` : "", r = {}, i = n.lang ? n.lang.split(/\s+/) : [];
|
|
4379
4522
|
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
@@ -4393,7 +4536,7 @@ function ua(e, n) {
|
|
|
4393
4536
|
children: [l]
|
|
4394
4537
|
}, e.patch(n, l), l;
|
|
4395
4538
|
}
|
|
4396
|
-
function
|
|
4539
|
+
function fa(e, n) {
|
|
4397
4540
|
const t = {
|
|
4398
4541
|
type: "element",
|
|
4399
4542
|
tagName: "del",
|
|
@@ -4402,7 +4545,7 @@ function sa(e, n) {
|
|
|
4402
4545
|
};
|
|
4403
4546
|
return e.patch(n, t), e.applyData(n, t);
|
|
4404
4547
|
}
|
|
4405
|
-
function
|
|
4548
|
+
function pa(e, n) {
|
|
4406
4549
|
const t = {
|
|
4407
4550
|
type: "element",
|
|
4408
4551
|
tagName: "em",
|
|
@@ -4411,7 +4554,7 @@ function ca(e, n) {
|
|
|
4411
4554
|
};
|
|
4412
4555
|
return e.patch(n, t), e.applyData(n, t);
|
|
4413
4556
|
}
|
|
4414
|
-
function
|
|
4557
|
+
function ha(e, n) {
|
|
4415
4558
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = je(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
|
|
4416
4559
|
let o, a = e.footnoteCounts.get(r);
|
|
4417
4560
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -4438,7 +4581,7 @@ function fa(e, n) {
|
|
|
4438
4581
|
};
|
|
4439
4582
|
return e.patch(n, c), e.applyData(n, c);
|
|
4440
4583
|
}
|
|
4441
|
-
function
|
|
4584
|
+
function ma(e, n) {
|
|
4442
4585
|
const t = {
|
|
4443
4586
|
type: "element",
|
|
4444
4587
|
tagName: "h" + n.depth,
|
|
@@ -4447,7 +4590,7 @@ function pa(e, n) {
|
|
|
4447
4590
|
};
|
|
4448
4591
|
return e.patch(n, t), e.applyData(n, t);
|
|
4449
4592
|
}
|
|
4450
|
-
function
|
|
4593
|
+
function ga(e, n) {
|
|
4451
4594
|
if (e.options.allowDangerousHtml) {
|
|
4452
4595
|
const t = {
|
|
4453
4596
|
type: "raw",
|
|
@@ -4474,7 +4617,7 @@ function Sr(e, n) {
|
|
|
4474
4617
|
value: r
|
|
4475
4618
|
}), i;
|
|
4476
4619
|
}
|
|
4477
|
-
function
|
|
4620
|
+
function da(e, n) {
|
|
4478
4621
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
4479
4622
|
if (!r) return Sr(e, n);
|
|
4480
4623
|
const i = {
|
|
@@ -4490,7 +4633,7 @@ function ma(e, n) {
|
|
|
4490
4633
|
};
|
|
4491
4634
|
return e.patch(n, l), e.applyData(n, l);
|
|
4492
4635
|
}
|
|
4493
|
-
function
|
|
4636
|
+
function ya(e, n) {
|
|
4494
4637
|
const t = { src: je(n.url) };
|
|
4495
4638
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
4496
4639
|
const r = {
|
|
@@ -4501,7 +4644,7 @@ function ga(e, n) {
|
|
|
4501
4644
|
};
|
|
4502
4645
|
return e.patch(n, r), e.applyData(n, r);
|
|
4503
4646
|
}
|
|
4504
|
-
function
|
|
4647
|
+
function xa(e, n) {
|
|
4505
4648
|
const t = {
|
|
4506
4649
|
type: "text",
|
|
4507
4650
|
value: n.value.replace(/\r?\n|\r/g, " ")
|
|
@@ -4515,7 +4658,7 @@ function da(e, n) {
|
|
|
4515
4658
|
};
|
|
4516
4659
|
return e.patch(n, r), e.applyData(n, r);
|
|
4517
4660
|
}
|
|
4518
|
-
function
|
|
4661
|
+
function ka(e, n) {
|
|
4519
4662
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
4520
4663
|
if (!r) return Sr(e, n);
|
|
4521
4664
|
const i = { href: je(r.url || "") };
|
|
@@ -4528,7 +4671,7 @@ function ya(e, n) {
|
|
|
4528
4671
|
};
|
|
4529
4672
|
return e.patch(n, l), e.applyData(n, l);
|
|
4530
4673
|
}
|
|
4531
|
-
function
|
|
4674
|
+
function ba(e, n) {
|
|
4532
4675
|
const t = { href: je(n.url) };
|
|
4533
4676
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
4534
4677
|
const r = {
|
|
@@ -4539,8 +4682,8 @@ function xa(e, n) {
|
|
|
4539
4682
|
};
|
|
4540
4683
|
return e.patch(n, r), e.applyData(n, r);
|
|
4541
4684
|
}
|
|
4542
|
-
function
|
|
4543
|
-
const r = e.all(n), i = t ?
|
|
4685
|
+
function wa(e, n, t) {
|
|
4686
|
+
const r = e.all(n), i = t ? va(t) : Er(n), l = {}, o = [];
|
|
4544
4687
|
if (typeof n.checked == "boolean") {
|
|
4545
4688
|
const f = r[0];
|
|
4546
4689
|
let s;
|
|
@@ -4586,7 +4729,7 @@ function ka(e, n, t) {
|
|
|
4586
4729
|
};
|
|
4587
4730
|
return e.patch(n, c), e.applyData(n, c);
|
|
4588
4731
|
}
|
|
4589
|
-
function
|
|
4732
|
+
function va(e) {
|
|
4590
4733
|
let n = !1;
|
|
4591
4734
|
if (e.type === "list") {
|
|
4592
4735
|
n = e.spread || !1;
|
|
@@ -4600,7 +4743,7 @@ function Er(e) {
|
|
|
4600
4743
|
const n = e.spread;
|
|
4601
4744
|
return n ?? e.children.length > 1;
|
|
4602
4745
|
}
|
|
4603
|
-
function
|
|
4746
|
+
function Ca(e, n) {
|
|
4604
4747
|
const t = {}, r = e.all(n);
|
|
4605
4748
|
let i = -1;
|
|
4606
4749
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
|
@@ -4618,7 +4761,7 @@ function wa(e, n) {
|
|
|
4618
4761
|
};
|
|
4619
4762
|
return e.patch(n, l), e.applyData(n, l);
|
|
4620
4763
|
}
|
|
4621
|
-
function
|
|
4764
|
+
function Sa(e, n) {
|
|
4622
4765
|
const t = {
|
|
4623
4766
|
type: "element",
|
|
4624
4767
|
tagName: "p",
|
|
@@ -4627,14 +4770,14 @@ function va(e, n) {
|
|
|
4627
4770
|
};
|
|
4628
4771
|
return e.patch(n, t), e.applyData(n, t);
|
|
4629
4772
|
}
|
|
4630
|
-
function
|
|
4773
|
+
function Ea(e, n) {
|
|
4631
4774
|
const t = {
|
|
4632
4775
|
type: "root",
|
|
4633
4776
|
children: e.wrap(e.all(n))
|
|
4634
4777
|
};
|
|
4635
4778
|
return e.patch(n, t), e.applyData(n, t);
|
|
4636
4779
|
}
|
|
4637
|
-
function
|
|
4780
|
+
function Ia(e, n) {
|
|
4638
4781
|
const t = {
|
|
4639
4782
|
type: "element",
|
|
4640
4783
|
tagName: "strong",
|
|
@@ -4643,7 +4786,7 @@ function Sa(e, n) {
|
|
|
4643
4786
|
};
|
|
4644
4787
|
return e.patch(n, t), e.applyData(n, t);
|
|
4645
4788
|
}
|
|
4646
|
-
function
|
|
4789
|
+
function Aa(e, n) {
|
|
4647
4790
|
const t = e.all(n), r = t.shift(), i = [];
|
|
4648
4791
|
if (r) {
|
|
4649
4792
|
const o = {
|
|
@@ -4674,7 +4817,7 @@ function Ea(e, n) {
|
|
|
4674
4817
|
};
|
|
4675
4818
|
return e.patch(n, l), e.applyData(n, l);
|
|
4676
4819
|
}
|
|
4677
|
-
function
|
|
4820
|
+
function Ta(e, n, t) {
|
|
4678
4821
|
const r = t ? t.children : void 0, i = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", l = t && t.type === "table" ? t.align : void 0, o = l ? l.length : n.children.length;
|
|
4679
4822
|
let a = -1;
|
|
4680
4823
|
const u = [];
|
|
@@ -4697,7 +4840,7 @@ function Ia(e, n, t) {
|
|
|
4697
4840
|
};
|
|
4698
4841
|
return e.patch(n, c), e.applyData(n, c);
|
|
4699
4842
|
}
|
|
4700
|
-
function
|
|
4843
|
+
function Pa(e, n) {
|
|
4701
4844
|
const t = {
|
|
4702
4845
|
type: "element",
|
|
4703
4846
|
tagName: "td",
|
|
@@ -4707,7 +4850,7 @@ function Aa(e, n) {
|
|
|
4707
4850
|
return e.patch(n, t), e.applyData(n, t);
|
|
4708
4851
|
}
|
|
4709
4852
|
var Sn = 9, En = 32;
|
|
4710
|
-
function
|
|
4853
|
+
function La(e) {
|
|
4711
4854
|
const n = String(e), t = /\r?\n|\r/g;
|
|
4712
4855
|
let r = t.exec(n), i = 0;
|
|
4713
4856
|
const l = [];
|
|
@@ -4729,14 +4872,14 @@ function In(e, n, t) {
|
|
|
4729
4872
|
}
|
|
4730
4873
|
return i > r ? e.slice(r, i) : "";
|
|
4731
4874
|
}
|
|
4732
|
-
function
|
|
4875
|
+
function za(e, n) {
|
|
4733
4876
|
const t = {
|
|
4734
4877
|
type: "text",
|
|
4735
|
-
value:
|
|
4878
|
+
value: La(String(n.value))
|
|
4736
4879
|
};
|
|
4737
4880
|
return e.patch(n, t), e.applyData(n, t);
|
|
4738
4881
|
}
|
|
4739
|
-
function
|
|
4882
|
+
function Da(e, n) {
|
|
4740
4883
|
const t = {
|
|
4741
4884
|
type: "element",
|
|
4742
4885
|
tagName: "hr",
|
|
@@ -4745,38 +4888,38 @@ function La(e, n) {
|
|
|
4745
4888
|
};
|
|
4746
4889
|
return e.patch(n, t), e.applyData(n, t);
|
|
4747
4890
|
}
|
|
4748
|
-
var
|
|
4749
|
-
blockquote:
|
|
4750
|
-
break:
|
|
4751
|
-
code:
|
|
4752
|
-
delete:
|
|
4753
|
-
emphasis:
|
|
4754
|
-
footnoteReference:
|
|
4755
|
-
heading:
|
|
4756
|
-
html:
|
|
4757
|
-
imageReference:
|
|
4758
|
-
image:
|
|
4759
|
-
inlineCode:
|
|
4760
|
-
linkReference:
|
|
4761
|
-
link:
|
|
4762
|
-
listItem:
|
|
4763
|
-
list:
|
|
4764
|
-
paragraph:
|
|
4765
|
-
root:
|
|
4766
|
-
strong:
|
|
4767
|
-
table:
|
|
4768
|
-
tableCell:
|
|
4769
|
-
tableRow:
|
|
4770
|
-
text:
|
|
4771
|
-
thematicBreak:
|
|
4772
|
-
toml:
|
|
4773
|
-
yaml:
|
|
4774
|
-
definition:
|
|
4775
|
-
footnoteDefinition:
|
|
4891
|
+
var Fa = {
|
|
4892
|
+
blockquote: ua,
|
|
4893
|
+
break: sa,
|
|
4894
|
+
code: ca,
|
|
4895
|
+
delete: fa,
|
|
4896
|
+
emphasis: pa,
|
|
4897
|
+
footnoteReference: ha,
|
|
4898
|
+
heading: ma,
|
|
4899
|
+
html: ga,
|
|
4900
|
+
imageReference: da,
|
|
4901
|
+
image: ya,
|
|
4902
|
+
inlineCode: xa,
|
|
4903
|
+
linkReference: ka,
|
|
4904
|
+
link: ba,
|
|
4905
|
+
listItem: wa,
|
|
4906
|
+
list: Ca,
|
|
4907
|
+
paragraph: Sa,
|
|
4908
|
+
root: Ea,
|
|
4909
|
+
strong: Ia,
|
|
4910
|
+
table: Aa,
|
|
4911
|
+
tableCell: Pa,
|
|
4912
|
+
tableRow: Ta,
|
|
4913
|
+
text: za,
|
|
4914
|
+
thematicBreak: Da,
|
|
4915
|
+
toml: tt,
|
|
4916
|
+
yaml: tt,
|
|
4917
|
+
definition: tt,
|
|
4918
|
+
footnoteDefinition: tt
|
|
4776
4919
|
};
|
|
4777
|
-
function
|
|
4920
|
+
function tt() {
|
|
4778
4921
|
}
|
|
4779
|
-
var An = typeof self == "object" ? self : globalThis,
|
|
4922
|
+
var An = typeof self == "object" ? self : globalThis, Ma = (e, n) => {
|
|
4780
4923
|
const t = (i, l) => (e.set(l, i), i), r = (i) => {
|
|
4781
4924
|
if (e.has(i)) return e.get(i);
|
|
4782
4925
|
const [l, o] = n[i];
|
|
@@ -4828,10 +4971,10 @@ var An = typeof self == "object" ? self : globalThis, Da = (e, n) => {
|
|
|
4828
4971
|
return t(new An[l](o), i);
|
|
4829
4972
|
};
|
|
4830
4973
|
return r;
|
|
4831
|
-
}, Tn = (e) =>
|
|
4974
|
+
}, Tn = (e) => Ma(/* @__PURE__ */ new Map(), e)(0), Fe = "", { toString: Ra } = {}, { keys: _a } = Object, Ve = (e) => {
|
|
4832
4975
|
const n = typeof e;
|
|
4833
4976
|
if (n !== "object" || !e) return [0, n];
|
|
4834
|
-
const t =
|
|
4977
|
+
const t = Ra.call(e).slice(8, -1);
|
|
4835
4978
|
switch (t) {
|
|
4836
4979
|
case "Array":
|
|
4837
4980
|
return [1, Fe];
|
|
@@ -4849,7 +4992,7 @@ var An = typeof self == "object" ? self : globalThis, Da = (e, n) => {
|
|
|
4849
4992
|
return [1, t];
|
|
4850
4993
|
}
|
|
4851
4994
|
return t.includes("Array") ? [1, t] : t.includes("Error") ? [7, t] : [2, t];
|
|
4852
|
-
},
|
|
4995
|
+
}, nt = ([e, n]) => e === 0 && (n === "function" || n === "symbol"), Oa = (e, n, t, r) => {
|
|
4853
4996
|
const i = (o, a) => {
|
|
4854
4997
|
const u = r.push(o) - 1;
|
|
4855
4998
|
return t.set(a, u), u;
|
|
@@ -4893,7 +5036,7 @@ var An = typeof self == "object" ? self : globalThis, Da = (e, n) => {
|
|
|
4893
5036
|
}
|
|
4894
5037
|
if (n && "toJSON" in o) return l(o.toJSON());
|
|
4895
5038
|
const f = [], s = i([a, f], o);
|
|
4896
|
-
for (const h of
|
|
5039
|
+
for (const h of _a(o)) (e || !nt(Ve(o[h]))) && f.push([l(h), l(o[h])]);
|
|
4897
5040
|
return s;
|
|
4898
5041
|
}
|
|
4899
5042
|
case 3:
|
|
@@ -4907,12 +5050,12 @@ var An = typeof self == "object" ? self : globalThis, Da = (e, n) => {
|
|
|
4907
5050
|
}
|
|
4908
5051
|
case 5: {
|
|
4909
5052
|
const f = [], s = i([a, f], o);
|
|
4910
|
-
for (const [h, p] of o) (e || !(
|
|
5053
|
+
for (const [h, p] of o) (e || !(nt(Ve(h)) || nt(Ve(p)))) && f.push([l(h), l(p)]);
|
|
4911
5054
|
return s;
|
|
4912
5055
|
}
|
|
4913
5056
|
case 6: {
|
|
4914
5057
|
const f = [], s = i([a, f], o);
|
|
4915
|
-
for (const h of o) (e || !
|
|
5058
|
+
for (const h of o) (e || !nt(Ve(h))) && f.push(l(h));
|
|
4916
5059
|
return s;
|
|
4917
5060
|
}
|
|
4918
5061
|
}
|
|
@@ -4925,9 +5068,9 @@ var An = typeof self == "object" ? self : globalThis, Da = (e, n) => {
|
|
|
4925
5068
|
return l;
|
|
4926
5069
|
}, Pn = (e, { json: n, lossy: t } = {}) => {
|
|
4927
5070
|
const r = [];
|
|
4928
|
-
return
|
|
4929
|
-
},
|
|
4930
|
-
function
|
|
5071
|
+
return Oa(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5072
|
+
}, at = typeof structuredClone == "function" ? (e, n) => n && ("json" in n || "lossy" in n) ? Tn(Pn(e, n)) : structuredClone(e) : (e, n) => Tn(Pn(e, n));
|
|
5073
|
+
function Na(e, n) {
|
|
4931
5074
|
const t = [{
|
|
4932
5075
|
type: "text",
|
|
4933
5076
|
value: "↩"
|
|
@@ -4942,11 +5085,11 @@ function _a(e, n) {
|
|
|
4942
5085
|
}]
|
|
4943
5086
|
}), t;
|
|
4944
5087
|
}
|
|
4945
|
-
function
|
|
5088
|
+
function Ba(e, n) {
|
|
4946
5089
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
|
4947
5090
|
}
|
|
4948
|
-
function
|
|
4949
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
|
5091
|
+
function ja(e) {
|
|
5092
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Na, r = e.options.footnoteBackLabel || Ba, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || { className: ["sr-only"] }, a = [];
|
|
4950
5093
|
let u = -1;
|
|
4951
5094
|
for (; ++u < e.footnoteOrder.length; ) {
|
|
4952
5095
|
const c = e.footnoteById.get(e.footnoteOrder[u]);
|
|
@@ -5004,7 +5147,7 @@ function Na(e) {
|
|
|
5004
5147
|
type: "element",
|
|
5005
5148
|
tagName: l,
|
|
5006
5149
|
properties: {
|
|
5007
|
-
...
|
|
5150
|
+
...at(o),
|
|
5008
5151
|
id: "footnote-label"
|
|
5009
5152
|
},
|
|
5010
5153
|
children: [{
|
|
@@ -5031,27 +5174,27 @@ function Na(e) {
|
|
|
5031
5174
|
]
|
|
5032
5175
|
};
|
|
5033
5176
|
}
|
|
5034
|
-
var
|
|
5035
|
-
if (e == null) return
|
|
5036
|
-
if (typeof e == "function") return
|
|
5037
|
-
if (typeof e == "object") return Array.isArray(e) ?
|
|
5038
|
-
if (typeof e == "string") return
|
|
5177
|
+
var ht = (function(e) {
|
|
5178
|
+
if (e == null) return qa;
|
|
5179
|
+
if (typeof e == "function") return mt(e);
|
|
5180
|
+
if (typeof e == "object") return Array.isArray(e) ? Ha(e) : Ua(e);
|
|
5181
|
+
if (typeof e == "string") return $a(e);
|
|
5039
5182
|
throw new Error("Expected function, string, or object as test");
|
|
5040
5183
|
});
|
|
5041
|
-
function
|
|
5184
|
+
function Ha(e) {
|
|
5042
5185
|
const n = [];
|
|
5043
5186
|
let t = -1;
|
|
5044
|
-
for (; ++t < e.length; ) n[t] =
|
|
5045
|
-
return
|
|
5187
|
+
for (; ++t < e.length; ) n[t] = ht(e[t]);
|
|
5188
|
+
return mt(r);
|
|
5046
5189
|
function r(...i) {
|
|
5047
5190
|
let l = -1;
|
|
5048
5191
|
for (; ++l < n.length; ) if (n[l].apply(this, i)) return !0;
|
|
5049
5192
|
return !1;
|
|
5050
5193
|
}
|
|
5051
5194
|
}
|
|
5052
|
-
function
|
|
5195
|
+
function Ua(e) {
|
|
5053
5196
|
const n = e;
|
|
5054
|
-
return
|
|
5197
|
+
return mt(t);
|
|
5055
5198
|
function t(r) {
|
|
5056
5199
|
const i = r;
|
|
5057
5200
|
let l;
|
|
@@ -5059,29 +5202,29 @@ function ja(e) {
|
|
|
5059
5202
|
return !0;
|
|
5060
5203
|
}
|
|
5061
5204
|
}
|
|
5062
|
-
function
|
|
5063
|
-
return
|
|
5205
|
+
function $a(e) {
|
|
5206
|
+
return mt(n);
|
|
5064
5207
|
function n(t) {
|
|
5065
5208
|
return t && t.type === e;
|
|
5066
5209
|
}
|
|
5067
5210
|
}
|
|
5068
|
-
function
|
|
5211
|
+
function mt(e) {
|
|
5069
5212
|
return n;
|
|
5070
5213
|
function n(t, r, i) {
|
|
5071
|
-
return !!(
|
|
5214
|
+
return !!(Va(t) && e.call(this, t, typeof r == "number" ? r : void 0, i || void 0));
|
|
5072
5215
|
}
|
|
5073
5216
|
}
|
|
5074
|
-
function
|
|
5217
|
+
function qa() {
|
|
5075
5218
|
return !0;
|
|
5076
5219
|
}
|
|
5077
|
-
function
|
|
5220
|
+
function Va(e) {
|
|
5078
5221
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5079
5222
|
}
|
|
5080
5223
|
var Ir = [];
|
|
5081
5224
|
function Ar(e, n, t, r) {
|
|
5082
5225
|
let i;
|
|
5083
5226
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
|
5084
|
-
const l =
|
|
5227
|
+
const l = ht(i), o = r ? -1 : 1;
|
|
5085
5228
|
a(e, void 0, [])();
|
|
5086
5229
|
function a(u, c, f) {
|
|
5087
5230
|
const s = u && typeof u == "object" ? u : {};
|
|
@@ -5092,7 +5235,7 @@ function Ar(e, n, t, r) {
|
|
|
5092
5235
|
return h;
|
|
5093
5236
|
function h() {
|
|
5094
5237
|
let p = Ir, y, k, S;
|
|
5095
|
-
if ((!n || l(u, c, f[f.length - 1] || void 0)) && (p =
|
|
5238
|
+
if ((!n || l(u, c, f[f.length - 1] || void 0)) && (p = Wa(t(u, f)), p[0] === !1))
|
|
5096
5239
|
return p;
|
|
5097
5240
|
if ("children" in u && u.children) {
|
|
5098
5241
|
const d = u;
|
|
@@ -5107,7 +5250,7 @@ function Ar(e, n, t, r) {
|
|
|
5107
5250
|
}
|
|
5108
5251
|
}
|
|
5109
5252
|
}
|
|
5110
|
-
function
|
|
5253
|
+
function Wa(e) {
|
|
5111
5254
|
return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ? Ir : [e];
|
|
5112
5255
|
}
|
|
5113
5256
|
function Kt(e, n, t, r) {
|
|
@@ -5118,23 +5261,23 @@ function Kt(e, n, t, r) {
|
|
|
5118
5261
|
return o(u, s, f);
|
|
5119
5262
|
}
|
|
5120
5263
|
}
|
|
5121
|
-
var
|
|
5122
|
-
function
|
|
5123
|
-
const t = n ||
|
|
5264
|
+
var _t = {}.hasOwnProperty, Xa = {};
|
|
5265
|
+
function Ya(e, n) {
|
|
5266
|
+
const t = n || Xa, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = {
|
|
5124
5267
|
all: a,
|
|
5125
|
-
applyData:
|
|
5268
|
+
applyData: Ka,
|
|
5126
5269
|
definitionById: r,
|
|
5127
5270
|
footnoteById: i,
|
|
5128
5271
|
footnoteCounts: /* @__PURE__ */ new Map(),
|
|
5129
5272
|
footnoteOrder: [],
|
|
5130
5273
|
handlers: {
|
|
5131
|
-
...
|
|
5274
|
+
...Fa,
|
|
5132
5275
|
...t.handlers
|
|
5133
5276
|
},
|
|
5134
5277
|
one: o,
|
|
5135
5278
|
options: t,
|
|
5136
|
-
patch:
|
|
5137
|
-
wrap:
|
|
5279
|
+
patch: Qa,
|
|
5280
|
+
wrap: Ja
|
|
5138
5281
|
};
|
|
5139
5282
|
return Kt(e, function(u) {
|
|
5140
5283
|
if (u.type === "definition" || u.type === "footnoteDefinition") {
|
|
@@ -5144,15 +5287,15 @@ function Wa(e, n) {
|
|
|
5144
5287
|
}), l;
|
|
5145
5288
|
function o(u, c) {
|
|
5146
5289
|
const f = u.type, s = l.handlers[f];
|
|
5147
|
-
if (
|
|
5290
|
+
if (_t.call(l.handlers, f) && s) return s(l, u, c);
|
|
5148
5291
|
if (l.options.passThrough && l.options.passThrough.includes(f)) {
|
|
5149
5292
|
if ("children" in u) {
|
|
5150
|
-
const { children: h, ...p } = u, y =
|
|
5293
|
+
const { children: h, ...p } = u, y = at(p);
|
|
5151
5294
|
return y.children = l.all(u), y;
|
|
5152
5295
|
}
|
|
5153
|
-
return
|
|
5296
|
+
return at(u);
|
|
5154
5297
|
}
|
|
5155
|
-
return (l.options.unknownHandler ||
|
|
5298
|
+
return (l.options.unknownHandler || Ga)(l, u, c);
|
|
5156
5299
|
}
|
|
5157
5300
|
function a(u) {
|
|
5158
5301
|
const c = [];
|
|
@@ -5173,10 +5316,10 @@ function Wa(e, n) {
|
|
|
5173
5316
|
return c;
|
|
5174
5317
|
}
|
|
5175
5318
|
}
|
|
5176
|
-
function
|
|
5177
|
-
e.position && (n.position =
|
|
5319
|
+
function Qa(e, n) {
|
|
5320
|
+
e.position && (n.position = Oi(e));
|
|
5178
5321
|
}
|
|
5179
|
-
function
|
|
5322
|
+
function Ka(e, n) {
|
|
5180
5323
|
let t = n;
|
|
5181
5324
|
if (e && e.data) {
|
|
5182
5325
|
const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
|
|
@@ -5185,12 +5328,12 @@ function Ya(e, n) {
|
|
|
5185
5328
|
tagName: r,
|
|
5186
5329
|
properties: {},
|
|
5187
5330
|
children: "children" in t ? t.children : [t]
|
|
5188
|
-
}), t.type === "element" && l && Object.assign(t.properties,
|
|
5331
|
+
}), t.type === "element" && l && Object.assign(t.properties, at(l)), "children" in t && t.children && i !== null && i !== void 0 && (t.children = i);
|
|
5189
5332
|
}
|
|
5190
5333
|
return t;
|
|
5191
5334
|
}
|
|
5192
|
-
function
|
|
5193
|
-
const t = n.data || {}, r = "value" in n && !(
|
|
5335
|
+
function Ga(e, n) {
|
|
5336
|
+
const t = n.data || {}, r = "value" in n && !(_t.call(t, "hProperties") || _t.call(t, "hChildren")) ? {
|
|
5194
5337
|
type: "text",
|
|
5195
5338
|
value: n.value
|
|
5196
5339
|
} : {
|
|
@@ -5201,7 +5344,7 @@ function Qa(e, n) {
|
|
|
5201
5344
|
};
|
|
5202
5345
|
return e.patch(n, r), e.applyData(n, r);
|
|
5203
5346
|
}
|
|
5204
|
-
function
|
|
5347
|
+
function Ja(e, n) {
|
|
5205
5348
|
const t = [];
|
|
5206
5349
|
let r = -1;
|
|
5207
5350
|
for (n && t.push({
|
|
@@ -5227,7 +5370,7 @@ function Ln(e) {
|
|
|
5227
5370
|
return e.slice(n);
|
|
5228
5371
|
}
|
|
5229
5372
|
function zn(e, n) {
|
|
5230
|
-
const t =
|
|
5373
|
+
const t = Ya(e, n), r = t.one(e, void 0), i = ja(t), l = Array.isArray(r) ? {
|
|
5231
5374
|
type: "root",
|
|
5232
5375
|
children: r
|
|
5233
5376
|
} : r || {
|
|
@@ -5240,7 +5383,7 @@ function zn(e, n) {
|
|
|
5240
5383
|
`
|
|
5241
5384
|
}, i)), l;
|
|
5242
5385
|
}
|
|
5243
|
-
function
|
|
5386
|
+
function Za(e, n) {
|
|
5244
5387
|
return e && "run" in e ? async function(t, r) {
|
|
5245
5388
|
const i = zn(t, {
|
|
5246
5389
|
file: r,
|
|
@@ -5257,7 +5400,7 @@ function Ga(e, n) {
|
|
|
5257
5400
|
function Dn(e) {
|
|
5258
5401
|
if (e) throw e;
|
|
5259
5402
|
}
|
|
5260
|
-
var
|
|
5403
|
+
var eu = /* @__PURE__ */ Ge(((e, n) => {
|
|
5261
5404
|
var t = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, l = Object.getOwnPropertyDescriptor, o = function(s) {
|
|
5262
5405
|
return typeof Array.isArray == "function" ? Array.isArray(s) : r.call(s) === "[object Array]";
|
|
5263
5406
|
}, a = function(s) {
|
|
@@ -5295,12 +5438,12 @@ var Ja = /* @__PURE__ */ Ke(((e, n) => {
|
|
|
5295
5438
|
return d;
|
|
5296
5439
|
};
|
|
5297
5440
|
}));
|
|
5298
|
-
function
|
|
5441
|
+
function Ot(e) {
|
|
5299
5442
|
if (typeof e != "object" || e === null) return !1;
|
|
5300
5443
|
const n = Object.getPrototypeOf(e);
|
|
5301
5444
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5302
5445
|
}
|
|
5303
|
-
function
|
|
5446
|
+
function tu() {
|
|
5304
5447
|
const e = [], n = {
|
|
5305
5448
|
run: t,
|
|
5306
5449
|
use: r
|
|
@@ -5319,7 +5462,7 @@ function Za() {
|
|
|
5319
5462
|
return;
|
|
5320
5463
|
}
|
|
5321
5464
|
for (; ++s < i.length; ) (c[s] === null || c[s] === void 0) && (c[s] = i[s]);
|
|
5322
|
-
i = c, f ?
|
|
5465
|
+
i = c, f ? nu(f, a)(...c) : o(null, ...c);
|
|
5323
5466
|
}
|
|
5324
5467
|
}
|
|
5325
5468
|
function r(i) {
|
|
@@ -5327,7 +5470,7 @@ function Za() {
|
|
|
5327
5470
|
return e.push(i), n;
|
|
5328
5471
|
}
|
|
5329
5472
|
}
|
|
5330
|
-
function
|
|
5473
|
+
function nu(e, n) {
|
|
5331
5474
|
let t;
|
|
5332
5475
|
return r;
|
|
5333
5476
|
function r(...o) {
|
|
@@ -5351,15 +5494,15 @@ function eu(e, n) {
|
|
|
5351
5494
|
}
|
|
5352
5495
|
}
|
|
5353
5496
|
var pe = {
|
|
5354
|
-
basename:
|
|
5355
|
-
dirname:
|
|
5356
|
-
extname:
|
|
5357
|
-
join:
|
|
5497
|
+
basename: ru,
|
|
5498
|
+
dirname: iu,
|
|
5499
|
+
extname: lu,
|
|
5500
|
+
join: ou,
|
|
5358
5501
|
sep: "/"
|
|
5359
5502
|
};
|
|
5360
|
-
function
|
|
5503
|
+
function ru(e, n) {
|
|
5361
5504
|
if (n !== void 0 && typeof n != "string") throw new TypeError('"ext" argument must be a string');
|
|
5362
|
-
|
|
5505
|
+
et(e);
|
|
5363
5506
|
let t = 0, r = -1, i = e.length, l;
|
|
5364
5507
|
if (n === void 0 || n.length === 0 || n.length > e.length) {
|
|
5365
5508
|
for (; i--; ) if (e.codePointAt(i) === 47) {
|
|
@@ -5381,8 +5524,8 @@ function tu(e, n) {
|
|
|
5381
5524
|
o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
|
|
5382
5525
|
return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
|
|
5383
5526
|
}
|
|
5384
|
-
function
|
|
5385
|
-
if (
|
|
5527
|
+
function iu(e) {
|
|
5528
|
+
if (et(e), e.length === 0) return ".";
|
|
5386
5529
|
let n = -1, t = e.length, r;
|
|
5387
5530
|
for (; --t; ) if (e.codePointAt(t) === 47) {
|
|
5388
5531
|
if (r) {
|
|
@@ -5392,8 +5535,8 @@ function nu(e) {
|
|
|
5392
5535
|
} else r || (r = !0);
|
|
5393
5536
|
return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
|
|
5394
5537
|
}
|
|
5395
|
-
function
|
|
5396
|
-
|
|
5538
|
+
function lu(e) {
|
|
5539
|
+
et(e);
|
|
5397
5540
|
let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
|
|
5398
5541
|
for (; n--; ) {
|
|
5399
5542
|
const a = e.codePointAt(n);
|
|
@@ -5408,19 +5551,19 @@ function ru(e) {
|
|
|
5408
5551
|
}
|
|
5409
5552
|
return i < 0 || t < 0 || l === 0 || l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
|
|
5410
5553
|
}
|
|
5411
|
-
function
|
|
5554
|
+
function ou(...e) {
|
|
5412
5555
|
let n = -1, t;
|
|
5413
5556
|
for (; ++n < e.length; )
|
|
5414
|
-
|
|
5415
|
-
return t === void 0 ? "." :
|
|
5557
|
+
et(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
|
|
5558
|
+
return t === void 0 ? "." : au(t);
|
|
5416
5559
|
}
|
|
5417
|
-
function
|
|
5418
|
-
|
|
5560
|
+
function au(e) {
|
|
5561
|
+
et(e);
|
|
5419
5562
|
const n = e.codePointAt(0) === 47;
|
|
5420
|
-
let t =
|
|
5563
|
+
let t = uu(e, !n);
|
|
5421
5564
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
|
5422
5565
|
}
|
|
5423
|
-
function
|
|
5566
|
+
function uu(e, n) {
|
|
5424
5567
|
let t = "", r = 0, i = -1, l = 0, o = -1, a, u;
|
|
5425
5568
|
for (; ++o <= e.length; ) {
|
|
5426
5569
|
if (o < e.length) a = e.codePointAt(o);
|
|
@@ -5450,19 +5593,19 @@ function ou(e, n) {
|
|
|
5450
5593
|
}
|
|
5451
5594
|
return t;
|
|
5452
5595
|
}
|
|
5453
|
-
function
|
|
5596
|
+
function et(e) {
|
|
5454
5597
|
if (typeof e != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
5455
5598
|
}
|
|
5456
|
-
var
|
|
5457
|
-
function
|
|
5599
|
+
var su = { cwd: cu };
|
|
5600
|
+
function cu() {
|
|
5458
5601
|
return "/";
|
|
5459
5602
|
}
|
|
5460
|
-
function
|
|
5603
|
+
function Nt(e) {
|
|
5461
5604
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && e.auth === void 0);
|
|
5462
5605
|
}
|
|
5463
|
-
function
|
|
5606
|
+
function fu(e) {
|
|
5464
5607
|
if (typeof e == "string") e = new URL(e);
|
|
5465
|
-
else if (!
|
|
5608
|
+
else if (!Nt(e)) {
|
|
5466
5609
|
const n = /* @__PURE__ */ new TypeError('The "path" argument must be of type string or an instance of URL. Received `' + e + "`");
|
|
5467
5610
|
throw n.code = "ERR_INVALID_ARG_TYPE", n;
|
|
5468
5611
|
}
|
|
@@ -5470,9 +5613,9 @@ function su(e) {
|
|
|
5470
5613
|
const n = /* @__PURE__ */ new TypeError("The URL must be of scheme file");
|
|
5471
5614
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
|
5472
5615
|
}
|
|
5473
|
-
return
|
|
5616
|
+
return pu(e);
|
|
5474
5617
|
}
|
|
5475
|
-
function
|
|
5618
|
+
function pu(e) {
|
|
5476
5619
|
if (e.hostname !== "") {
|
|
5477
5620
|
const r = /* @__PURE__ */ new TypeError('File URL host must be "localhost" or empty on darwin');
|
|
5478
5621
|
throw r.code = "ERR_INVALID_FILE_URL_HOST", r;
|
|
@@ -5488,7 +5631,7 @@ function cu(e) {
|
|
|
5488
5631
|
}
|
|
5489
5632
|
return decodeURIComponent(n);
|
|
5490
5633
|
}
|
|
5491
|
-
var
|
|
5634
|
+
var kt = [
|
|
5492
5635
|
"history",
|
|
5493
5636
|
"path",
|
|
5494
5637
|
"basename",
|
|
@@ -5498,20 +5641,20 @@ var xt = [
|
|
|
5498
5641
|
], Tr = class {
|
|
5499
5642
|
constructor(e) {
|
|
5500
5643
|
let n;
|
|
5501
|
-
e ?
|
|
5644
|
+
e ? Nt(e) ? n = { path: e } : typeof e == "string" || hu(e) ? n = { value: e } : n = e : n = {}, this.cwd = "cwd" in n ? "" : su.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
5502
5645
|
let t = -1;
|
|
5503
|
-
for (; ++t <
|
|
5504
|
-
const i =
|
|
5646
|
+
for (; ++t < kt.length; ) {
|
|
5647
|
+
const i = kt[t];
|
|
5505
5648
|
i in n && n[i] !== void 0 && n[i] !== null && (this[i] = i === "history" ? [...n[i]] : n[i]);
|
|
5506
5649
|
}
|
|
5507
5650
|
let r;
|
|
5508
|
-
for (r in n)
|
|
5651
|
+
for (r in n) kt.includes(r) || (this[r] = n[r]);
|
|
5509
5652
|
}
|
|
5510
5653
|
get basename() {
|
|
5511
5654
|
return typeof this.path == "string" ? pe.basename(this.path) : void 0;
|
|
5512
5655
|
}
|
|
5513
5656
|
set basename(e) {
|
|
5514
|
-
|
|
5657
|
+
wt(e, "basename"), bt(e, "basename"), this.path = pe.join(this.dirname || "", e);
|
|
5515
5658
|
}
|
|
5516
5659
|
get dirname() {
|
|
5517
5660
|
return typeof this.path == "string" ? pe.dirname(this.path) : void 0;
|
|
@@ -5523,7 +5666,7 @@ var xt = [
|
|
|
5523
5666
|
return typeof this.path == "string" ? pe.extname(this.path) : void 0;
|
|
5524
5667
|
}
|
|
5525
5668
|
set extname(e) {
|
|
5526
|
-
if (
|
|
5669
|
+
if (bt(e, "extname"), Fn(this.dirname, "extname"), e) {
|
|
5527
5670
|
if (e.codePointAt(0) !== 46) throw new Error("`extname` must start with `.`");
|
|
5528
5671
|
if (e.includes(".", 1)) throw new Error("`extname` cannot contain multiple dots");
|
|
5529
5672
|
}
|
|
@@ -5533,13 +5676,13 @@ var xt = [
|
|
|
5533
5676
|
return this.history[this.history.length - 1];
|
|
5534
5677
|
}
|
|
5535
5678
|
set path(e) {
|
|
5536
|
-
|
|
5679
|
+
Nt(e) && (e = fu(e)), wt(e, "path"), this.path !== e && this.history.push(e);
|
|
5537
5680
|
}
|
|
5538
5681
|
get stem() {
|
|
5539
5682
|
return typeof this.path == "string" ? pe.basename(this.path, this.extname) : void 0;
|
|
5540
5683
|
}
|
|
5541
5684
|
set stem(e) {
|
|
5542
|
-
|
|
5685
|
+
wt(e, "stem"), bt(e, "stem"), this.path = pe.join(this.dirname || "", e + (this.extname || ""));
|
|
5543
5686
|
}
|
|
5544
5687
|
fail(e, n, t) {
|
|
5545
5688
|
const r = this.message(e, n, t);
|
|
@@ -5557,26 +5700,26 @@ var xt = [
|
|
|
5557
5700
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
|
|
5558
5701
|
}
|
|
5559
5702
|
};
|
|
5560
|
-
function
|
|
5703
|
+
function bt(e, n) {
|
|
5561
5704
|
if (e && e.includes(pe.sep)) throw new Error("`" + n + "` cannot be a path: did not expect `" + pe.sep + "`");
|
|
5562
5705
|
}
|
|
5563
|
-
function
|
|
5706
|
+
function wt(e, n) {
|
|
5564
5707
|
if (!e) throw new Error("`" + n + "` cannot be empty");
|
|
5565
5708
|
}
|
|
5566
5709
|
function Fn(e, n) {
|
|
5567
5710
|
if (!e) throw new Error("Setting `" + n + "` requires `path` to be set too");
|
|
5568
5711
|
}
|
|
5569
|
-
function
|
|
5712
|
+
function hu(e) {
|
|
5570
5713
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
5571
5714
|
}
|
|
5572
|
-
var
|
|
5715
|
+
var mu = (function(e) {
|
|
5573
5716
|
const n = this.constructor.prototype, t = n[e], r = function() {
|
|
5574
5717
|
return t.apply(r, arguments);
|
|
5575
5718
|
};
|
|
5576
5719
|
return Object.setPrototypeOf(r, n), r;
|
|
5577
|
-
}),
|
|
5720
|
+
}), vt = /* @__PURE__ */ Wn(eu(), 1), gu = {}.hasOwnProperty, du = class Pr extends mu {
|
|
5578
5721
|
constructor() {
|
|
5579
|
-
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 =
|
|
5722
|
+
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 = tu();
|
|
5580
5723
|
}
|
|
5581
5724
|
copy() {
|
|
5582
5725
|
const n = new Pr();
|
|
@@ -5585,10 +5728,10 @@ var pu = (function(e) {
|
|
|
5585
5728
|
const r = this.attachers[t];
|
|
5586
5729
|
n.use(...r);
|
|
5587
5730
|
}
|
|
5588
|
-
return n.data((0,
|
|
5731
|
+
return n.data((0, vt.default)(!0, {}, this.namespace)), n;
|
|
5589
5732
|
}
|
|
5590
5733
|
data(n, t) {
|
|
5591
|
-
return typeof n == "string" ? arguments.length === 2 ? (
|
|
5734
|
+
return typeof n == "string" ? arguments.length === 2 ? (Et("data", this.frozen), this.namespace[n] = t, this) : gu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (Et("data", this.frozen), this.namespace = n, this) : this.namespace;
|
|
5592
5735
|
}
|
|
5593
5736
|
freeze() {
|
|
5594
5737
|
if (this.frozen) return this;
|
|
@@ -5604,18 +5747,18 @@ var pu = (function(e) {
|
|
|
5604
5747
|
}
|
|
5605
5748
|
parse(n) {
|
|
5606
5749
|
this.freeze();
|
|
5607
|
-
const t =
|
|
5608
|
-
return
|
|
5750
|
+
const t = rt(n), r = this.parser || this.Parser;
|
|
5751
|
+
return Ct("parse", r), r(String(t), t);
|
|
5609
5752
|
}
|
|
5610
5753
|
process(n, t) {
|
|
5611
5754
|
const r = this;
|
|
5612
|
-
return this.freeze(),
|
|
5755
|
+
return this.freeze(), Ct("process", this.parser || this.Parser), St("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
|
|
5613
5756
|
function i(l, o) {
|
|
5614
|
-
const a =
|
|
5757
|
+
const a = rt(n), u = r.parse(a);
|
|
5615
5758
|
r.run(u, a, function(f, s, h) {
|
|
5616
5759
|
if (f || !s || !h) return c(f);
|
|
5617
5760
|
const p = s, y = r.stringify(p, h);
|
|
5618
|
-
|
|
5761
|
+
ku(y) ? h.value = y : h.result = y, c(f, h);
|
|
5619
5762
|
});
|
|
5620
5763
|
function c(f, s) {
|
|
5621
5764
|
f || !s ? o(f) : l ? l(s) : t(void 0, s);
|
|
@@ -5624,7 +5767,7 @@ var pu = (function(e) {
|
|
|
5624
5767
|
}
|
|
5625
5768
|
processSync(n) {
|
|
5626
5769
|
let t = !1, r;
|
|
5627
|
-
return this.freeze(),
|
|
5770
|
+
return this.freeze(), Ct("processSync", this.parser || this.Parser), St("processSync", this.compiler || this.Compiler), this.process(n, i), Rn("processSync", "process", t), r;
|
|
5628
5771
|
function i(l, o) {
|
|
5629
5772
|
t = !0, Dn(l), r = o;
|
|
5630
5773
|
}
|
|
@@ -5634,7 +5777,7 @@ var pu = (function(e) {
|
|
|
5634
5777
|
const i = this.transformers;
|
|
5635
5778
|
return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
|
|
5636
5779
|
function l(o, a) {
|
|
5637
|
-
const u =
|
|
5780
|
+
const u = rt(t);
|
|
5638
5781
|
i.run(n, u, c);
|
|
5639
5782
|
function c(f, s, h) {
|
|
5640
5783
|
const p = s || n;
|
|
@@ -5651,12 +5794,12 @@ var pu = (function(e) {
|
|
|
5651
5794
|
}
|
|
5652
5795
|
stringify(n, t) {
|
|
5653
5796
|
this.freeze();
|
|
5654
|
-
const r =
|
|
5655
|
-
return
|
|
5797
|
+
const r = rt(t), i = this.compiler || this.Compiler;
|
|
5798
|
+
return St("stringify", i), Mn(n), i(n, r);
|
|
5656
5799
|
}
|
|
5657
5800
|
use(n, ...t) {
|
|
5658
5801
|
const r = this.attachers, i = this.namespace;
|
|
5659
|
-
if (
|
|
5802
|
+
if (Et("use", this.frozen), n != null)
|
|
5660
5803
|
if (typeof n == "function") u(n, t);
|
|
5661
5804
|
else if (typeof n == "object") Array.isArray(n) ? a(n) : o(n);
|
|
5662
5805
|
else throw new TypeError("Expected usable value, not `" + n + "`");
|
|
@@ -5671,7 +5814,7 @@ var pu = (function(e) {
|
|
|
5671
5814
|
}
|
|
5672
5815
|
function o(c) {
|
|
5673
5816
|
if (!("plugins" in c) && !("settings" in c)) throw new Error("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");
|
|
5674
|
-
a(c.plugins), c.settings && (i.settings = (0,
|
|
5817
|
+
a(c.plugins), c.settings && (i.settings = (0, vt.default)(!0, i.settings, c.settings));
|
|
5675
5818
|
}
|
|
5676
5819
|
function a(c) {
|
|
5677
5820
|
let f = -1;
|
|
@@ -5692,7 +5835,7 @@ var pu = (function(e) {
|
|
|
5692
5835
|
else if (f.length > 0) {
|
|
5693
5836
|
let [p, ...y] = f;
|
|
5694
5837
|
const k = r[h][1];
|
|
5695
|
-
|
|
5838
|
+
Ot(k) && Ot(p) && (p = (0, vt.default)(!0, k, p)), r[h] = [
|
|
5696
5839
|
c,
|
|
5697
5840
|
p,
|
|
5698
5841
|
...y
|
|
@@ -5700,35 +5843,35 @@ var pu = (function(e) {
|
|
|
5700
5843
|
}
|
|
5701
5844
|
}
|
|
5702
5845
|
}
|
|
5703
|
-
},
|
|
5704
|
-
function
|
|
5846
|
+
}, yu = new du().freeze();
|
|
5847
|
+
function Ct(e, n) {
|
|
5705
5848
|
if (typeof n != "function") throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
5706
5849
|
}
|
|
5707
|
-
function
|
|
5850
|
+
function St(e, n) {
|
|
5708
5851
|
if (typeof n != "function") throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
5709
5852
|
}
|
|
5710
|
-
function
|
|
5853
|
+
function Et(e, n) {
|
|
5711
5854
|
if (n) throw new Error("Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
|
|
5712
5855
|
}
|
|
5713
5856
|
function Mn(e) {
|
|
5714
|
-
if (!
|
|
5857
|
+
if (!Ot(e) || typeof e.type != "string") throw new TypeError("Expected node, got `" + e + "`");
|
|
5715
5858
|
}
|
|
5716
5859
|
function Rn(e, n, t) {
|
|
5717
5860
|
if (!t) throw new Error("`" + e + "` finished async. Use `" + n + "` instead");
|
|
5718
5861
|
}
|
|
5719
|
-
function
|
|
5720
|
-
return
|
|
5862
|
+
function rt(e) {
|
|
5863
|
+
return xu(e) ? e : new Tr(e);
|
|
5721
5864
|
}
|
|
5722
|
-
function
|
|
5865
|
+
function xu(e) {
|
|
5723
5866
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
5724
5867
|
}
|
|
5725
|
-
function
|
|
5726
|
-
return typeof e == "string" ||
|
|
5868
|
+
function ku(e) {
|
|
5869
|
+
return typeof e == "string" || bu(e);
|
|
5727
5870
|
}
|
|
5728
|
-
function
|
|
5871
|
+
function bu(e) {
|
|
5729
5872
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
5730
5873
|
}
|
|
5731
|
-
var _n = [], On = { allowDangerousHtml: !0 },
|
|
5874
|
+
var _n = [], On = { allowDangerousHtml: !0 }, wu = /^(https?|ircs?|mailto|xmpp)$/i, vu = [
|
|
5732
5875
|
{
|
|
5733
5876
|
from: "astPlugins",
|
|
5734
5877
|
id: "remove-buggy-html-in-markdown-parser"
|
|
@@ -5802,30 +5945,30 @@ var _n = [], On = { allowDangerousHtml: !0 }, ku = /^(https?|ircs?|mailto|xmpp)$
|
|
|
5802
5945
|
to: "urlTransform"
|
|
5803
5946
|
}
|
|
5804
5947
|
];
|
|
5805
|
-
function
|
|
5806
|
-
const n =
|
|
5807
|
-
return
|
|
5948
|
+
function Cu(e) {
|
|
5949
|
+
const n = Su(e), t = Eu(e);
|
|
5950
|
+
return Iu(n.runSync(n.parse(t), t), e);
|
|
5808
5951
|
}
|
|
5809
|
-
function
|
|
5952
|
+
function Su(e) {
|
|
5810
5953
|
const n = e.rehypePlugins || _n, t = e.remarkPlugins || _n, r = e.remarkRehypeOptions ? {
|
|
5811
5954
|
...e.remarkRehypeOptions,
|
|
5812
5955
|
...On
|
|
5813
5956
|
} : On;
|
|
5814
|
-
return
|
|
5957
|
+
return yu().use(aa).use(t).use(Za, r).use(n);
|
|
5815
5958
|
}
|
|
5816
|
-
function
|
|
5959
|
+
function Eu(e) {
|
|
5817
5960
|
const n = e.children || "", t = new Tr();
|
|
5818
5961
|
return typeof n == "string" ? t.value = n : "" + n, t;
|
|
5819
5962
|
}
|
|
5820
|
-
function
|
|
5821
|
-
const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform ||
|
|
5822
|
-
for (const f of
|
|
5963
|
+
function Iu(e, n) {
|
|
5964
|
+
const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform || Au;
|
|
5965
|
+
for (const f of vu) Object.hasOwn(n, f.from) && "" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + f.id;
|
|
5823
5966
|
return n.className && (e = {
|
|
5824
5967
|
type: "element",
|
|
5825
5968
|
tagName: "div",
|
|
5826
5969
|
properties: { className: n.className },
|
|
5827
5970
|
children: e.type === "root" ? e.children : [e]
|
|
5828
|
-
}), Kt(e, c),
|
|
5971
|
+
}), Kt(e, c), $i(e, {
|
|
5829
5972
|
Fragment: Qn,
|
|
5830
5973
|
components: i,
|
|
5831
5974
|
ignoreInvalidStyle: !0,
|
|
@@ -5842,8 +5985,8 @@ function Su(e, n) {
|
|
|
5842
5985
|
}, s;
|
|
5843
5986
|
if (f.type === "element") {
|
|
5844
5987
|
let p;
|
|
5845
|
-
for (p in
|
|
5846
|
-
const y = f.properties[p], k =
|
|
5988
|
+
for (p in dt) if (Object.hasOwn(dt, p) && Object.hasOwn(f.properties, p)) {
|
|
5989
|
+
const y = f.properties[p], k = dt[p];
|
|
5847
5990
|
(k === null || k.includes(f.tagName)) && (f.properties[p] = u(String(y || ""), p, f));
|
|
5848
5991
|
}
|
|
5849
5992
|
}
|
|
@@ -5854,9 +5997,9 @@ function Su(e, n) {
|
|
|
5854
5997
|
}
|
|
5855
5998
|
}
|
|
5856
5999
|
}
|
|
5857
|
-
function
|
|
6000
|
+
function Au(e) {
|
|
5858
6001
|
const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
5859
|
-
return n === -1 || i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r ||
|
|
6002
|
+
return n === -1 || i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r || wu.test(e.slice(0, n)) ? e : "";
|
|
5860
6003
|
}
|
|
5861
6004
|
function Nn(e, n) {
|
|
5862
6005
|
const t = String(e);
|
|
@@ -5866,12 +6009,12 @@ function Nn(e, n) {
|
|
|
5866
6009
|
r++, i = t.indexOf(n, i + n.length);
|
|
5867
6010
|
return r;
|
|
5868
6011
|
}
|
|
5869
|
-
function
|
|
6012
|
+
function Tu(e) {
|
|
5870
6013
|
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
5871
6014
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
5872
6015
|
}
|
|
5873
|
-
function
|
|
5874
|
-
const r =
|
|
6016
|
+
function Pu(e, n, t) {
|
|
6017
|
+
const r = ht((t || {}).ignore || []), i = Lu(n);
|
|
5875
6018
|
let l = -1;
|
|
5876
6019
|
for (; ++l < i.length; ) Ar(e, "text", o);
|
|
5877
6020
|
function o(u, c) {
|
|
@@ -5912,74 +6055,74 @@ function Au(e, n, t) {
|
|
|
5912
6055
|
}), f.children.splice(y, 1, ...S)) : S = [u], y + S.length;
|
|
5913
6056
|
}
|
|
5914
6057
|
}
|
|
5915
|
-
function
|
|
6058
|
+
function Lu(e) {
|
|
5916
6059
|
const n = [];
|
|
5917
6060
|
if (!Array.isArray(e)) throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
5918
6061
|
const t = !e[0] || Array.isArray(e[0]) ? e : [e];
|
|
5919
6062
|
let r = -1;
|
|
5920
6063
|
for (; ++r < t.length; ) {
|
|
5921
6064
|
const i = t[r];
|
|
5922
|
-
n.push([
|
|
6065
|
+
n.push([zu(i[0]), Du(i[1])]);
|
|
5923
6066
|
}
|
|
5924
6067
|
return n;
|
|
5925
6068
|
}
|
|
5926
|
-
function
|
|
5927
|
-
return typeof e == "string" ? new RegExp(
|
|
6069
|
+
function zu(e) {
|
|
6070
|
+
return typeof e == "string" ? new RegExp(Tu(e), "g") : e;
|
|
5928
6071
|
}
|
|
5929
|
-
function
|
|
6072
|
+
function Du(e) {
|
|
5930
6073
|
return typeof e == "function" ? e : function() {
|
|
5931
6074
|
return e;
|
|
5932
6075
|
};
|
|
5933
6076
|
}
|
|
5934
|
-
var
|
|
6077
|
+
var It = "phrasing", At = [
|
|
5935
6078
|
"autolink",
|
|
5936
6079
|
"link",
|
|
5937
6080
|
"image",
|
|
5938
6081
|
"label"
|
|
5939
6082
|
];
|
|
5940
|
-
function
|
|
6083
|
+
function Fu() {
|
|
5941
6084
|
return {
|
|
5942
|
-
transforms: [
|
|
6085
|
+
transforms: [ju],
|
|
5943
6086
|
enter: {
|
|
5944
|
-
literalAutolink:
|
|
5945
|
-
literalAutolinkEmail:
|
|
5946
|
-
literalAutolinkHttp:
|
|
5947
|
-
literalAutolinkWww:
|
|
6087
|
+
literalAutolink: Ru,
|
|
6088
|
+
literalAutolinkEmail: Tt,
|
|
6089
|
+
literalAutolinkHttp: Tt,
|
|
6090
|
+
literalAutolinkWww: Tt
|
|
5948
6091
|
},
|
|
5949
6092
|
exit: {
|
|
5950
|
-
literalAutolink:
|
|
5951
|
-
literalAutolinkEmail:
|
|
5952
|
-
literalAutolinkHttp:
|
|
5953
|
-
literalAutolinkWww:
|
|
6093
|
+
literalAutolink: Bu,
|
|
6094
|
+
literalAutolinkEmail: Nu,
|
|
6095
|
+
literalAutolinkHttp: _u,
|
|
6096
|
+
literalAutolinkWww: Ou
|
|
5954
6097
|
}
|
|
5955
6098
|
};
|
|
5956
6099
|
}
|
|
5957
|
-
function
|
|
6100
|
+
function Mu() {
|
|
5958
6101
|
return { unsafe: [
|
|
5959
6102
|
{
|
|
5960
6103
|
character: "@",
|
|
5961
6104
|
before: "[+\\-.\\w]",
|
|
5962
6105
|
after: "[\\-.\\w]",
|
|
5963
|
-
inConstruct:
|
|
5964
|
-
notInConstruct:
|
|
6106
|
+
inConstruct: It,
|
|
6107
|
+
notInConstruct: At
|
|
5965
6108
|
},
|
|
5966
6109
|
{
|
|
5967
6110
|
character: ".",
|
|
5968
6111
|
before: "[Ww]",
|
|
5969
6112
|
after: "[\\-.\\w]",
|
|
5970
|
-
inConstruct:
|
|
5971
|
-
notInConstruct:
|
|
6113
|
+
inConstruct: It,
|
|
6114
|
+
notInConstruct: At
|
|
5972
6115
|
},
|
|
5973
6116
|
{
|
|
5974
6117
|
character: ":",
|
|
5975
6118
|
before: "[ps]",
|
|
5976
6119
|
after: "\\/",
|
|
5977
|
-
inConstruct:
|
|
5978
|
-
notInConstruct:
|
|
6120
|
+
inConstruct: It,
|
|
6121
|
+
notInConstruct: At
|
|
5979
6122
|
}
|
|
5980
6123
|
] };
|
|
5981
6124
|
}
|
|
5982
|
-
function
|
|
6125
|
+
function Ru(e) {
|
|
5983
6126
|
this.enter({
|
|
5984
6127
|
type: "link",
|
|
5985
6128
|
title: null,
|
|
@@ -5987,30 +6130,30 @@ function Fu(e) {
|
|
|
5987
6130
|
children: []
|
|
5988
6131
|
}, e);
|
|
5989
6132
|
}
|
|
5990
|
-
function
|
|
6133
|
+
function Tt(e) {
|
|
5991
6134
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
5992
6135
|
}
|
|
5993
|
-
function
|
|
6136
|
+
function _u(e) {
|
|
5994
6137
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
5995
6138
|
}
|
|
5996
|
-
function
|
|
6139
|
+
function Ou(e) {
|
|
5997
6140
|
this.config.exit.data.call(this, e);
|
|
5998
6141
|
const n = this.stack[this.stack.length - 1];
|
|
5999
6142
|
n.type, n.url = "http://" + this.sliceSerialize(e);
|
|
6000
6143
|
}
|
|
6001
|
-
function
|
|
6144
|
+
function Nu(e) {
|
|
6002
6145
|
this.config.exit.autolinkEmail.call(this, e);
|
|
6003
6146
|
}
|
|
6004
|
-
function
|
|
6147
|
+
function Bu(e) {
|
|
6005
6148
|
this.exit(e);
|
|
6006
6149
|
}
|
|
6007
|
-
function
|
|
6008
|
-
|
|
6150
|
+
function ju(e) {
|
|
6151
|
+
Pu(e, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Hu], [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Uu]], { ignore: ["link", "linkReference"] });
|
|
6009
6152
|
}
|
|
6010
|
-
function
|
|
6153
|
+
function Hu(e, n, t, r, i) {
|
|
6011
6154
|
let l = "";
|
|
6012
|
-
if (!Lr(i) || (/^w/i.test(n) && (t = n + t, n = "", l = "http://"),
|
|
6013
|
-
const o =
|
|
6155
|
+
if (!Lr(i) || (/^w/i.test(n) && (t = n + t, n = "", l = "http://"), !$u(t))) return !1;
|
|
6156
|
+
const o = qu(t + r);
|
|
6014
6157
|
if (!o[0]) return !1;
|
|
6015
6158
|
const a = {
|
|
6016
6159
|
type: "link",
|
|
@@ -6026,7 +6169,7 @@ function Bu(e, n, t, r, i) {
|
|
|
6026
6169
|
value: o[1]
|
|
6027
6170
|
}] : a;
|
|
6028
6171
|
}
|
|
6029
|
-
function
|
|
6172
|
+
function Uu(e, n, t, r) {
|
|
6030
6173
|
return !Lr(r, !0) || /[-\d_]$/.test(t) ? !1 : {
|
|
6031
6174
|
type: "link",
|
|
6032
6175
|
title: null,
|
|
@@ -6037,11 +6180,11 @@ function ju(e, n, t, r) {
|
|
|
6037
6180
|
}]
|
|
6038
6181
|
};
|
|
6039
6182
|
}
|
|
6040
|
-
function
|
|
6183
|
+
function $u(e) {
|
|
6041
6184
|
const n = e.split(".");
|
|
6042
6185
|
return !(n.length < 2 || n[n.length - 1] && (/_/.test(n[n.length - 1]) || !/[a-zA-Z\d]/.test(n[n.length - 1])) || n[n.length - 2] && (/_/.test(n[n.length - 2]) || !/[a-zA-Z\d]/.test(n[n.length - 2])));
|
|
6043
6186
|
}
|
|
6044
|
-
function
|
|
6187
|
+
function qu(e) {
|
|
6045
6188
|
const n = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
6046
6189
|
if (!n) return [e, void 0];
|
|
6047
6190
|
e = e.slice(0, n.index);
|
|
@@ -6054,23 +6197,23 @@ function Uu(e) {
|
|
|
6054
6197
|
}
|
|
6055
6198
|
function Lr(e, n) {
|
|
6056
6199
|
const t = e.input.charCodeAt(e.index - 1);
|
|
6057
|
-
return (e.index === 0 || Ae(t) ||
|
|
6200
|
+
return (e.index === 0 || Ae(t) || ft(t)) && (!n || t !== 47);
|
|
6058
6201
|
}
|
|
6059
|
-
zr.peek =
|
|
6060
|
-
function
|
|
6202
|
+
zr.peek = Zu;
|
|
6203
|
+
function Vu() {
|
|
6061
6204
|
this.buffer();
|
|
6062
6205
|
}
|
|
6063
|
-
function
|
|
6206
|
+
function Wu(e) {
|
|
6064
6207
|
this.enter({
|
|
6065
6208
|
type: "footnoteReference",
|
|
6066
6209
|
identifier: "",
|
|
6067
6210
|
label: ""
|
|
6068
6211
|
}, e);
|
|
6069
6212
|
}
|
|
6070
|
-
function
|
|
6213
|
+
function Xu() {
|
|
6071
6214
|
this.buffer();
|
|
6072
6215
|
}
|
|
6073
|
-
function
|
|
6216
|
+
function Yu(e) {
|
|
6074
6217
|
this.enter({
|
|
6075
6218
|
type: "footnoteDefinition",
|
|
6076
6219
|
identifier: "",
|
|
@@ -6078,21 +6221,21 @@ function Wu(e) {
|
|
|
6078
6221
|
children: []
|
|
6079
6222
|
}, e);
|
|
6080
6223
|
}
|
|
6081
|
-
function
|
|
6224
|
+
function Qu(e) {
|
|
6082
6225
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
6083
6226
|
t.type, t.identifier = fe(this.sliceSerialize(e)).toLowerCase(), t.label = n;
|
|
6084
6227
|
}
|
|
6085
|
-
function
|
|
6228
|
+
function Ku(e) {
|
|
6086
6229
|
this.exit(e);
|
|
6087
6230
|
}
|
|
6088
|
-
function
|
|
6231
|
+
function Gu(e) {
|
|
6089
6232
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
6090
6233
|
t.type, t.identifier = fe(this.sliceSerialize(e)).toLowerCase(), t.label = n;
|
|
6091
6234
|
}
|
|
6092
|
-
function
|
|
6235
|
+
function Ju(e) {
|
|
6093
6236
|
this.exit(e);
|
|
6094
6237
|
}
|
|
6095
|
-
function
|
|
6238
|
+
function Zu() {
|
|
6096
6239
|
return "[";
|
|
6097
6240
|
}
|
|
6098
6241
|
function zr(e, n, t, r) {
|
|
@@ -6104,23 +6247,23 @@ function zr(e, n, t, r) {
|
|
|
6104
6247
|
before: l
|
|
6105
6248
|
})), a(), o(), l += i.move("]"), l;
|
|
6106
6249
|
}
|
|
6107
|
-
function
|
|
6250
|
+
function es() {
|
|
6108
6251
|
return {
|
|
6109
6252
|
enter: {
|
|
6110
|
-
gfmFootnoteCallString:
|
|
6111
|
-
gfmFootnoteCall:
|
|
6112
|
-
gfmFootnoteDefinitionLabelString:
|
|
6113
|
-
gfmFootnoteDefinition:
|
|
6253
|
+
gfmFootnoteCallString: Vu,
|
|
6254
|
+
gfmFootnoteCall: Wu,
|
|
6255
|
+
gfmFootnoteDefinitionLabelString: Xu,
|
|
6256
|
+
gfmFootnoteDefinition: Yu
|
|
6114
6257
|
},
|
|
6115
6258
|
exit: {
|
|
6116
|
-
gfmFootnoteCallString:
|
|
6117
|
-
gfmFootnoteCall:
|
|
6118
|
-
gfmFootnoteDefinitionLabelString:
|
|
6119
|
-
gfmFootnoteDefinition:
|
|
6259
|
+
gfmFootnoteCallString: Qu,
|
|
6260
|
+
gfmFootnoteCall: Ku,
|
|
6261
|
+
gfmFootnoteDefinitionLabelString: Gu,
|
|
6262
|
+
gfmFootnoteDefinition: Ju
|
|
6120
6263
|
}
|
|
6121
6264
|
};
|
|
6122
6265
|
}
|
|
6123
|
-
function
|
|
6266
|
+
function ts(e) {
|
|
6124
6267
|
let n = !1;
|
|
6125
6268
|
return e && e.firstLineBlank && (n = !0), {
|
|
6126
6269
|
handlers: {
|
|
@@ -6144,16 +6287,16 @@ function Zu(e) {
|
|
|
6144
6287
|
before: u,
|
|
6145
6288
|
after: "]"
|
|
6146
6289
|
})), f(), u += a.move("]:"), r.children && r.children.length > 0 && (a.shift(4), u += a.move((n ? `
|
|
6147
|
-
` : " ") + l.indentLines(l.containerFlow(r, a.current()), n ? Dr :
|
|
6290
|
+
` : " ") + l.indentLines(l.containerFlow(r, a.current()), n ? Dr : ns))), c(), u;
|
|
6148
6291
|
}
|
|
6149
6292
|
}
|
|
6150
|
-
function
|
|
6293
|
+
function ns(e, n, t) {
|
|
6151
6294
|
return n === 0 ? e : Dr(e, n, t);
|
|
6152
6295
|
}
|
|
6153
6296
|
function Dr(e, n, t) {
|
|
6154
6297
|
return (t ? "" : " ") + e;
|
|
6155
6298
|
}
|
|
6156
|
-
var
|
|
6299
|
+
var rs = [
|
|
6157
6300
|
"autolink",
|
|
6158
6301
|
"destinationLiteral",
|
|
6159
6302
|
"destinationRaw",
|
|
@@ -6161,31 +6304,31 @@ var ts = [
|
|
|
6161
6304
|
"titleQuote",
|
|
6162
6305
|
"titleApostrophe"
|
|
6163
6306
|
];
|
|
6164
|
-
Fr.peek =
|
|
6165
|
-
function
|
|
6307
|
+
Fr.peek = us;
|
|
6308
|
+
function is() {
|
|
6166
6309
|
return {
|
|
6167
6310
|
canContainEols: ["delete"],
|
|
6168
|
-
enter: { strikethrough:
|
|
6169
|
-
exit: { strikethrough:
|
|
6311
|
+
enter: { strikethrough: os },
|
|
6312
|
+
exit: { strikethrough: as }
|
|
6170
6313
|
};
|
|
6171
6314
|
}
|
|
6172
|
-
function
|
|
6315
|
+
function ls() {
|
|
6173
6316
|
return {
|
|
6174
6317
|
unsafe: [{
|
|
6175
6318
|
character: "~",
|
|
6176
6319
|
inConstruct: "phrasing",
|
|
6177
|
-
notInConstruct:
|
|
6320
|
+
notInConstruct: rs
|
|
6178
6321
|
}],
|
|
6179
6322
|
handlers: { delete: Fr }
|
|
6180
6323
|
};
|
|
6181
6324
|
}
|
|
6182
|
-
function
|
|
6325
|
+
function os(e) {
|
|
6183
6326
|
this.enter({
|
|
6184
6327
|
type: "delete",
|
|
6185
6328
|
children: []
|
|
6186
6329
|
}, e);
|
|
6187
6330
|
}
|
|
6188
|
-
function
|
|
6331
|
+
function as(e) {
|
|
6189
6332
|
this.exit(e);
|
|
6190
6333
|
}
|
|
6191
6334
|
function Fr(e, n, t, r) {
|
|
@@ -6197,20 +6340,20 @@ function Fr(e, n, t, r) {
|
|
|
6197
6340
|
after: "~"
|
|
6198
6341
|
}), o += i.move("~~"), l(), o;
|
|
6199
6342
|
}
|
|
6200
|
-
function
|
|
6343
|
+
function us() {
|
|
6201
6344
|
return "~";
|
|
6202
6345
|
}
|
|
6203
|
-
function
|
|
6346
|
+
function ss(e) {
|
|
6204
6347
|
return e.length;
|
|
6205
6348
|
}
|
|
6206
|
-
function
|
|
6207
|
-
const t = n || {}, r = (t.align || []).concat(), i = t.stringLength ||
|
|
6349
|
+
function cs(e, n) {
|
|
6350
|
+
const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || ss, l = [], o = [], a = [], u = [];
|
|
6208
6351
|
let c = 0, f = -1;
|
|
6209
6352
|
for (; ++f < e.length; ) {
|
|
6210
6353
|
const k = [], S = [];
|
|
6211
6354
|
let d = -1;
|
|
6212
6355
|
for (e[f].length > c && (c = e[f].length); ++d < e[f].length; ) {
|
|
6213
|
-
const v =
|
|
6356
|
+
const v = fs(e[f][d]);
|
|
6214
6357
|
if (t.alignDelimiters !== !1) {
|
|
6215
6358
|
const C = i(v);
|
|
6216
6359
|
S[d] = C, (u[d] === void 0 || C > u[d]) && (u[d] = C);
|
|
@@ -6255,23 +6398,23 @@ function us(e, n) {
|
|
|
6255
6398
|
return y.join(`
|
|
6256
6399
|
`);
|
|
6257
6400
|
}
|
|
6258
|
-
function
|
|
6401
|
+
function fs(e) {
|
|
6259
6402
|
return e == null ? "" : String(e);
|
|
6260
6403
|
}
|
|
6261
6404
|
function Bn(e) {
|
|
6262
6405
|
const n = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
6263
6406
|
return n === 67 || n === 99 ? 99 : n === 76 || n === 108 ? 108 : n === 82 || n === 114 ? 114 : 0;
|
|
6264
6407
|
}
|
|
6265
|
-
function
|
|
6408
|
+
function ps(e, n, t, r) {
|
|
6266
6409
|
const i = t.enter("blockquote"), l = t.createTracker(r);
|
|
6267
6410
|
l.move("> "), l.shift(2);
|
|
6268
|
-
const o = t.indentLines(t.containerFlow(e, l.current()),
|
|
6411
|
+
const o = t.indentLines(t.containerFlow(e, l.current()), hs);
|
|
6269
6412
|
return i(), o;
|
|
6270
6413
|
}
|
|
6271
|
-
function
|
|
6414
|
+
function hs(e, n, t) {
|
|
6272
6415
|
return ">" + (t ? "" : " ") + e;
|
|
6273
6416
|
}
|
|
6274
|
-
function
|
|
6417
|
+
function ms(e, n) {
|
|
6275
6418
|
return jn(e, n.inConstruct, !0) && !jn(e, n.notInConstruct, !1);
|
|
6276
6419
|
}
|
|
6277
6420
|
function jn(e, n, t) {
|
|
@@ -6283,11 +6426,11 @@ function jn(e, n, t) {
|
|
|
6283
6426
|
function Hn(e, n, t, r) {
|
|
6284
6427
|
let i = -1;
|
|
6285
6428
|
for (; ++i < t.unsafe.length; ) if (t.unsafe[i].character === `
|
|
6286
|
-
` &&
|
|
6429
|
+
` && ms(t.stack, t.unsafe[i])) return /[ \t]/.test(r.before) ? "" : " ";
|
|
6287
6430
|
return `\\
|
|
6288
6431
|
`;
|
|
6289
6432
|
}
|
|
6290
|
-
function
|
|
6433
|
+
function gs(e, n) {
|
|
6291
6434
|
const t = String(e);
|
|
6292
6435
|
let r = t.indexOf(n), i = r, l = 0, o = 0;
|
|
6293
6436
|
if (typeof n != "string") throw new TypeError("Expected substring");
|
|
@@ -6295,21 +6438,21 @@ function hs(e, n) {
|
|
|
6295
6438
|
r === i ? ++l > o && (o = l) : l = 1, i = r + n.length, r = t.indexOf(n, i);
|
|
6296
6439
|
return o;
|
|
6297
6440
|
}
|
|
6298
|
-
function
|
|
6441
|
+
function ds(e, n) {
|
|
6299
6442
|
return !!(n.options.fences === !1 && e.value && !e.lang && /[^ \r\n]/.test(e.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
6300
6443
|
}
|
|
6301
|
-
function
|
|
6444
|
+
function ys(e) {
|
|
6302
6445
|
const n = e.options.fence || "`";
|
|
6303
6446
|
if (n !== "`" && n !== "~") throw new Error("Cannot serialize code with `" + n + "` for `options.fence`, expected `` ` `` or `~`");
|
|
6304
6447
|
return n;
|
|
6305
6448
|
}
|
|
6306
|
-
function
|
|
6307
|
-
const i =
|
|
6308
|
-
if (
|
|
6309
|
-
const s = t.enter("codeIndented"), h = t.indentLines(l,
|
|
6449
|
+
function xs(e, n, t, r) {
|
|
6450
|
+
const i = ys(t), l = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
|
|
6451
|
+
if (ds(e, t)) {
|
|
6452
|
+
const s = t.enter("codeIndented"), h = t.indentLines(l, ks);
|
|
6310
6453
|
return s(), h;
|
|
6311
6454
|
}
|
|
6312
|
-
const a = t.createTracker(r), u = i.repeat(Math.max(
|
|
6455
|
+
const a = t.createTracker(r), u = i.repeat(Math.max(gs(l, i) + 1, 3)), c = t.enter("codeFenced");
|
|
6313
6456
|
let f = a.move(u);
|
|
6314
6457
|
if (e.lang) {
|
|
6315
6458
|
const s = t.enter(`codeFencedLang${o}`);
|
|
@@ -6334,7 +6477,7 @@ function ds(e, n, t, r) {
|
|
|
6334
6477
|
`), l && (f += a.move(l + `
|
|
6335
6478
|
`)), f += a.move(u), c(), f;
|
|
6336
6479
|
}
|
|
6337
|
-
function
|
|
6480
|
+
function ks(e, n, t) {
|
|
6338
6481
|
return (t ? "" : " ") + e;
|
|
6339
6482
|
}
|
|
6340
6483
|
function Gt(e) {
|
|
@@ -6342,7 +6485,7 @@ function Gt(e) {
|
|
|
6342
6485
|
if (n !== '"' && n !== "'") throw new Error("Cannot serialize title with `" + n + "` for `options.quote`, expected `\"`, or `'`");
|
|
6343
6486
|
return n;
|
|
6344
6487
|
}
|
|
6345
|
-
function
|
|
6488
|
+
function bs(e, n, t, r) {
|
|
6346
6489
|
const i = Gt(t), l = i === '"' ? "Quote" : "Apostrophe", o = t.enter("definition");
|
|
6347
6490
|
let a = t.enter("label");
|
|
6348
6491
|
const u = t.createTracker(r);
|
|
@@ -6366,15 +6509,15 @@ function xs(e, n, t, r) {
|
|
|
6366
6509
|
...u.current()
|
|
6367
6510
|
})), c += u.move(i), a()), o(), c;
|
|
6368
6511
|
}
|
|
6369
|
-
function
|
|
6512
|
+
function ws(e) {
|
|
6370
6513
|
const n = e.options.emphasis || "*";
|
|
6371
6514
|
if (n !== "*" && n !== "_") throw new Error("Cannot serialize emphasis with `" + n + "` for `options.emphasis`, expected `*`, or `_`");
|
|
6372
6515
|
return n;
|
|
6373
6516
|
}
|
|
6374
|
-
function
|
|
6517
|
+
function Ke(e) {
|
|
6375
6518
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
6376
6519
|
}
|
|
6377
|
-
function
|
|
6520
|
+
function ut(e, n, t) {
|
|
6378
6521
|
const r = Oe(e), i = Oe(n);
|
|
6379
6522
|
return r === void 0 ? i === void 0 ? t === "_" ? {
|
|
6380
6523
|
inside: !0,
|
|
@@ -6408,37 +6551,37 @@ function at(e, n, t) {
|
|
|
6408
6551
|
outside: !1
|
|
6409
6552
|
};
|
|
6410
6553
|
}
|
|
6411
|
-
Mr.peek =
|
|
6554
|
+
Mr.peek = vs;
|
|
6412
6555
|
function Mr(e, n, t, r) {
|
|
6413
|
-
const i =
|
|
6556
|
+
const i = ws(t), l = t.enter("emphasis"), o = t.createTracker(r), a = o.move(i);
|
|
6414
6557
|
let u = o.move(t.containerPhrasing(e, {
|
|
6415
6558
|
after: i,
|
|
6416
6559
|
before: a,
|
|
6417
6560
|
...o.current()
|
|
6418
6561
|
}));
|
|
6419
|
-
const c = u.charCodeAt(0), f =
|
|
6420
|
-
f.inside && (u =
|
|
6421
|
-
const s = u.charCodeAt(u.length - 1), h =
|
|
6422
|
-
h.inside && (u = u.slice(0, -1) +
|
|
6562
|
+
const c = u.charCodeAt(0), f = ut(r.before.charCodeAt(r.before.length - 1), c, i);
|
|
6563
|
+
f.inside && (u = Ke(c) + u.slice(1));
|
|
6564
|
+
const s = u.charCodeAt(u.length - 1), h = ut(r.after.charCodeAt(0), s, i);
|
|
6565
|
+
h.inside && (u = u.slice(0, -1) + Ke(s));
|
|
6423
6566
|
const p = o.move(i);
|
|
6424
6567
|
return l(), t.attentionEncodeSurroundingInfo = {
|
|
6425
6568
|
after: h.outside,
|
|
6426
6569
|
before: f.outside
|
|
6427
6570
|
}, a + u + p;
|
|
6428
6571
|
}
|
|
6429
|
-
function
|
|
6572
|
+
function vs(e, n, t) {
|
|
6430
6573
|
return t.options.emphasis || "*";
|
|
6431
6574
|
}
|
|
6432
|
-
function
|
|
6575
|
+
function Cs(e, n) {
|
|
6433
6576
|
let t = !1;
|
|
6434
6577
|
return Kt(e, function(r) {
|
|
6435
6578
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
6436
6579
|
return t = !0, !1;
|
|
6437
6580
|
}), !!((!e.depth || e.depth < 3) && Xt(e) && (n.options.setext || t));
|
|
6438
6581
|
}
|
|
6439
|
-
function
|
|
6582
|
+
function Ss(e, n, t, r) {
|
|
6440
6583
|
const i = Math.max(Math.min(6, e.depth || 1), 1), l = t.createTracker(r);
|
|
6441
|
-
if (
|
|
6584
|
+
if (Cs(e, t)) {
|
|
6442
6585
|
const f = t.enter("headingSetext"), s = t.enter("phrasing"), h = t.containerPhrasing(e, {
|
|
6443
6586
|
...l.current(),
|
|
6444
6587
|
before: `
|
|
@@ -6458,16 +6601,16 @@ function vs(e, n, t, r) {
|
|
|
6458
6601
|
`,
|
|
6459
6602
|
...l.current()
|
|
6460
6603
|
});
|
|
6461
|
-
return /^[\t ]/.test(c) && (c =
|
|
6604
|
+
return /^[\t ]/.test(c) && (c = Ke(c.charCodeAt(0)) + c.slice(1)), c = c ? o + " " + c : o, t.options.closeAtx && (c += " " + o), u(), a(), c;
|
|
6462
6605
|
}
|
|
6463
|
-
Rr.peek =
|
|
6606
|
+
Rr.peek = Es;
|
|
6464
6607
|
function Rr(e) {
|
|
6465
6608
|
return e.value || "";
|
|
6466
6609
|
}
|
|
6467
|
-
function
|
|
6610
|
+
function Es() {
|
|
6468
6611
|
return "<";
|
|
6469
6612
|
}
|
|
6470
|
-
_r.peek =
|
|
6613
|
+
_r.peek = Is;
|
|
6471
6614
|
function _r(e, n, t, r) {
|
|
6472
6615
|
const i = Gt(t), l = i === '"' ? "Quote" : "Apostrophe", o = t.enter("image");
|
|
6473
6616
|
let a = t.enter("label");
|
|
@@ -6491,10 +6634,10 @@ function _r(e, n, t, r) {
|
|
|
6491
6634
|
...u.current()
|
|
6492
6635
|
})), c += u.move(i), a()), c += u.move(")"), o(), c;
|
|
6493
6636
|
}
|
|
6494
|
-
function
|
|
6637
|
+
function Is() {
|
|
6495
6638
|
return "!";
|
|
6496
6639
|
}
|
|
6497
|
-
Or.peek =
|
|
6640
|
+
Or.peek = As;
|
|
6498
6641
|
function Or(e, n, t, r) {
|
|
6499
6642
|
const i = e.referenceType, l = t.enter("imageReference");
|
|
6500
6643
|
let o = t.enter("label");
|
|
@@ -6515,10 +6658,10 @@ function Or(e, n, t, r) {
|
|
|
6515
6658
|
});
|
|
6516
6659
|
return o(), t.stack = f, l(), i === "full" || !c || c !== s ? u += a.move(s + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
6517
6660
|
}
|
|
6518
|
-
function
|
|
6661
|
+
function As() {
|
|
6519
6662
|
return "!";
|
|
6520
6663
|
}
|
|
6521
|
-
Nr.peek =
|
|
6664
|
+
Nr.peek = Ts;
|
|
6522
6665
|
function Nr(e, n, t) {
|
|
6523
6666
|
let r = e.value || "", i = "`", l = -1;
|
|
6524
6667
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); ) i += "`";
|
|
@@ -6533,14 +6676,14 @@ function Nr(e, n, t) {
|
|
|
6533
6676
|
}
|
|
6534
6677
|
return i + r + i;
|
|
6535
6678
|
}
|
|
6536
|
-
function
|
|
6679
|
+
function Ts() {
|
|
6537
6680
|
return "`";
|
|
6538
6681
|
}
|
|
6539
6682
|
function Br(e, n) {
|
|
6540
6683
|
const t = Xt(e);
|
|
6541
6684
|
return !!(!n.options.resourceLink && e.url && !e.title && e.children && e.children.length === 1 && e.children[0].type === "text" && (t === e.url || "mailto:" + t === e.url) && /^[a-z][a-z+.-]+:/i.test(e.url) && !/[\0- <>\u007F]/.test(e.url));
|
|
6542
6685
|
}
|
|
6543
|
-
jr.peek =
|
|
6686
|
+
jr.peek = Ps;
|
|
6544
6687
|
function jr(e, n, t, r) {
|
|
6545
6688
|
const i = Gt(t), l = i === '"' ? "Quote" : "Apostrophe", o = t.createTracker(r);
|
|
6546
6689
|
let a, u;
|
|
@@ -6574,10 +6717,10 @@ function jr(e, n, t, r) {
|
|
|
6574
6717
|
...o.current()
|
|
6575
6718
|
})), c += o.move(i), u()), c += o.move(")"), a(), c;
|
|
6576
6719
|
}
|
|
6577
|
-
function
|
|
6720
|
+
function Ps(e, n, t) {
|
|
6578
6721
|
return Br(e, t) ? "<" : "[";
|
|
6579
6722
|
}
|
|
6580
|
-
Hr.peek =
|
|
6723
|
+
Hr.peek = Ls;
|
|
6581
6724
|
function Hr(e, n, t, r) {
|
|
6582
6725
|
const i = e.referenceType, l = t.enter("linkReference");
|
|
6583
6726
|
let o = t.enter("label");
|
|
@@ -6598,7 +6741,7 @@ function Hr(e, n, t, r) {
|
|
|
6598
6741
|
});
|
|
6599
6742
|
return o(), t.stack = f, l(), i === "full" || !c || c !== s ? u += a.move(s + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
6600
6743
|
}
|
|
6601
|
-
function
|
|
6744
|
+
function Ls() {
|
|
6602
6745
|
return "[";
|
|
6603
6746
|
}
|
|
6604
6747
|
function Jt(e) {
|
|
@@ -6606,14 +6749,14 @@ function Jt(e) {
|
|
|
6606
6749
|
if (n !== "*" && n !== "+" && n !== "-") throw new Error("Cannot serialize items with `" + n + "` for `options.bullet`, expected `*`, `+`, or `-`");
|
|
6607
6750
|
return n;
|
|
6608
6751
|
}
|
|
6609
|
-
function
|
|
6752
|
+
function zs(e) {
|
|
6610
6753
|
const n = Jt(e), t = e.options.bulletOther;
|
|
6611
6754
|
if (!t) return n === "*" ? "-" : "*";
|
|
6612
6755
|
if (t !== "*" && t !== "+" && t !== "-") throw new Error("Cannot serialize items with `" + t + "` for `options.bulletOther`, expected `*`, `+`, or `-`");
|
|
6613
6756
|
if (t === n) throw new Error("Expected `bullet` (`" + n + "`) and `bulletOther` (`" + t + "`) to be different");
|
|
6614
6757
|
return t;
|
|
6615
6758
|
}
|
|
6616
|
-
function
|
|
6759
|
+
function Ds(e) {
|
|
6617
6760
|
const n = e.options.bulletOrdered || ".";
|
|
6618
6761
|
if (n !== "." && n !== ")") throw new Error("Cannot serialize items with `" + n + "` for `options.bulletOrdered`, expected `.` or `)`");
|
|
6619
6762
|
return n;
|
|
@@ -6623,10 +6766,10 @@ function Ur(e) {
|
|
|
6623
6766
|
if (n !== "*" && n !== "-" && n !== "_") throw new Error("Cannot serialize rules with `" + n + "` for `options.rule`, expected `*`, `-`, or `_`");
|
|
6624
6767
|
return n;
|
|
6625
6768
|
}
|
|
6626
|
-
function
|
|
6769
|
+
function Fs(e, n, t, r) {
|
|
6627
6770
|
const i = t.enter("list"), l = t.bulletCurrent;
|
|
6628
|
-
let o = e.ordered ?
|
|
6629
|
-
const a = e.ordered ? o === "." ? ")" : "." :
|
|
6771
|
+
let o = e.ordered ? Ds(t) : Jt(t);
|
|
6772
|
+
const a = e.ordered ? o === "." ? ")" : "." : zs(t);
|
|
6630
6773
|
let u = n && t.bulletLastUsed ? o === t.bulletLastUsed : !1;
|
|
6631
6774
|
if (!e.ordered) {
|
|
6632
6775
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -6645,13 +6788,13 @@ function zs(e, n, t, r) {
|
|
|
6645
6788
|
const c = t.containerFlow(e, r);
|
|
6646
6789
|
return t.bulletLastUsed = o, t.bulletCurrent = l, i(), c;
|
|
6647
6790
|
}
|
|
6648
|
-
function
|
|
6791
|
+
function Ms(e) {
|
|
6649
6792
|
const n = e.options.listItemIndent || "one";
|
|
6650
6793
|
if (n !== "tab" && n !== "one" && n !== "mixed") throw new Error("Cannot serialize items with `" + n + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");
|
|
6651
6794
|
return n;
|
|
6652
6795
|
}
|
|
6653
|
-
function
|
|
6654
|
-
const i =
|
|
6796
|
+
function Rs(e, n, t, r) {
|
|
6797
|
+
const i = Ms(t);
|
|
6655
6798
|
let l = t.bulletCurrent || Jt(t);
|
|
6656
6799
|
n && n.type === "list" && n.ordered && (l = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (t.options.incrementListMarker === !1 ? 0 : n.children.indexOf(e)) + l);
|
|
6657
6800
|
let o = l.length + 1;
|
|
@@ -6664,11 +6807,11 @@ function Fs(e, n, t, r) {
|
|
|
6664
6807
|
return h ? (p ? "" : " ".repeat(o)) + s : (p ? l : l + " ".repeat(o - l.length)) + s;
|
|
6665
6808
|
}
|
|
6666
6809
|
}
|
|
6667
|
-
function
|
|
6810
|
+
function _s(e, n, t, r) {
|
|
6668
6811
|
const i = t.enter("paragraph"), l = t.enter("phrasing"), o = t.containerPhrasing(e, r);
|
|
6669
6812
|
return l(), i(), o;
|
|
6670
6813
|
}
|
|
6671
|
-
var
|
|
6814
|
+
var Os = ht([
|
|
6672
6815
|
"break",
|
|
6673
6816
|
"delete",
|
|
6674
6817
|
"emphasis",
|
|
@@ -6686,89 +6829,89 @@ var Rs = pt([
|
|
|
6686
6829
|
"text",
|
|
6687
6830
|
"textDirective"
|
|
6688
6831
|
]);
|
|
6689
|
-
function
|
|
6832
|
+
function Ns(e, n, t, r) {
|
|
6690
6833
|
return (e.children.some(function(i) {
|
|
6691
|
-
return
|
|
6834
|
+
return Os(i);
|
|
6692
6835
|
}) ? t.containerPhrasing : t.containerFlow).call(t, e, r);
|
|
6693
6836
|
}
|
|
6694
|
-
function
|
|
6837
|
+
function Bs(e) {
|
|
6695
6838
|
const n = e.options.strong || "*";
|
|
6696
6839
|
if (n !== "*" && n !== "_") throw new Error("Cannot serialize strong with `" + n + "` for `options.strong`, expected `*`, or `_`");
|
|
6697
6840
|
return n;
|
|
6698
6841
|
}
|
|
6699
|
-
$r.peek =
|
|
6842
|
+
$r.peek = js;
|
|
6700
6843
|
function $r(e, n, t, r) {
|
|
6701
|
-
const i =
|
|
6844
|
+
const i = Bs(t), l = t.enter("strong"), o = t.createTracker(r), a = o.move(i + i);
|
|
6702
6845
|
let u = o.move(t.containerPhrasing(e, {
|
|
6703
6846
|
after: i,
|
|
6704
6847
|
before: a,
|
|
6705
6848
|
...o.current()
|
|
6706
6849
|
}));
|
|
6707
|
-
const c = u.charCodeAt(0), f =
|
|
6708
|
-
f.inside && (u =
|
|
6709
|
-
const s = u.charCodeAt(u.length - 1), h =
|
|
6710
|
-
h.inside && (u = u.slice(0, -1) +
|
|
6850
|
+
const c = u.charCodeAt(0), f = ut(r.before.charCodeAt(r.before.length - 1), c, i);
|
|
6851
|
+
f.inside && (u = Ke(c) + u.slice(1));
|
|
6852
|
+
const s = u.charCodeAt(u.length - 1), h = ut(r.after.charCodeAt(0), s, i);
|
|
6853
|
+
h.inside && (u = u.slice(0, -1) + Ke(s));
|
|
6711
6854
|
const p = o.move(i + i);
|
|
6712
6855
|
return l(), t.attentionEncodeSurroundingInfo = {
|
|
6713
6856
|
after: h.outside,
|
|
6714
6857
|
before: f.outside
|
|
6715
6858
|
}, a + u + p;
|
|
6716
6859
|
}
|
|
6717
|
-
function
|
|
6860
|
+
function js(e, n, t) {
|
|
6718
6861
|
return t.options.strong || "*";
|
|
6719
6862
|
}
|
|
6720
|
-
function
|
|
6863
|
+
function Hs(e, n, t, r) {
|
|
6721
6864
|
return t.safe(e.value, r);
|
|
6722
6865
|
}
|
|
6723
|
-
function
|
|
6866
|
+
function Us(e) {
|
|
6724
6867
|
const n = e.options.ruleRepetition || 3;
|
|
6725
6868
|
if (n < 3) throw new Error("Cannot serialize rules with repetition `" + n + "` for `options.ruleRepetition`, expected `3` or more");
|
|
6726
6869
|
return n;
|
|
6727
6870
|
}
|
|
6728
|
-
function
|
|
6729
|
-
const r = (Ur(t) + (t.options.ruleSpaces ? " " : "")).repeat(
|
|
6871
|
+
function $s(e, n, t) {
|
|
6872
|
+
const r = (Ur(t) + (t.options.ruleSpaces ? " " : "")).repeat(Us(t));
|
|
6730
6873
|
return t.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
6731
6874
|
}
|
|
6732
6875
|
var qr = {
|
|
6733
|
-
blockquote:
|
|
6876
|
+
blockquote: ps,
|
|
6734
6877
|
break: Hn,
|
|
6735
|
-
code:
|
|
6736
|
-
definition:
|
|
6878
|
+
code: xs,
|
|
6879
|
+
definition: bs,
|
|
6737
6880
|
emphasis: Mr,
|
|
6738
6881
|
hardBreak: Hn,
|
|
6739
|
-
heading:
|
|
6882
|
+
heading: Ss,
|
|
6740
6883
|
html: Rr,
|
|
6741
6884
|
image: _r,
|
|
6742
6885
|
imageReference: Or,
|
|
6743
6886
|
inlineCode: Nr,
|
|
6744
6887
|
link: jr,
|
|
6745
6888
|
linkReference: Hr,
|
|
6746
|
-
list:
|
|
6747
|
-
listItem:
|
|
6748
|
-
paragraph:
|
|
6749
|
-
root:
|
|
6889
|
+
list: Fs,
|
|
6890
|
+
listItem: Rs,
|
|
6891
|
+
paragraph: _s,
|
|
6892
|
+
root: Ns,
|
|
6750
6893
|
strong: $r,
|
|
6751
|
-
text:
|
|
6752
|
-
thematicBreak:
|
|
6894
|
+
text: Hs,
|
|
6895
|
+
thematicBreak: $s
|
|
6753
6896
|
};
|
|
6754
|
-
function
|
|
6897
|
+
function qs() {
|
|
6755
6898
|
return {
|
|
6756
6899
|
enter: {
|
|
6757
|
-
table:
|
|
6900
|
+
table: Vs,
|
|
6758
6901
|
tableData: Un,
|
|
6759
6902
|
tableHeader: Un,
|
|
6760
|
-
tableRow:
|
|
6903
|
+
tableRow: Xs
|
|
6761
6904
|
},
|
|
6762
6905
|
exit: {
|
|
6763
|
-
codeText:
|
|
6764
|
-
table:
|
|
6765
|
-
tableData:
|
|
6766
|
-
tableHeader:
|
|
6767
|
-
tableRow:
|
|
6906
|
+
codeText: Ys,
|
|
6907
|
+
table: Ws,
|
|
6908
|
+
tableData: Pt,
|
|
6909
|
+
tableHeader: Pt,
|
|
6910
|
+
tableRow: Pt
|
|
6768
6911
|
}
|
|
6769
6912
|
};
|
|
6770
6913
|
}
|
|
6771
|
-
function
|
|
6914
|
+
function Vs(e) {
|
|
6772
6915
|
const n = e._align;
|
|
6773
6916
|
this.enter({
|
|
6774
6917
|
type: "table",
|
|
@@ -6778,16 +6921,16 @@ function $s(e) {
|
|
|
6778
6921
|
children: []
|
|
6779
6922
|
}, e), this.data.inTable = !0;
|
|
6780
6923
|
}
|
|
6781
|
-
function
|
|
6924
|
+
function Ws(e) {
|
|
6782
6925
|
this.exit(e), this.data.inTable = void 0;
|
|
6783
6926
|
}
|
|
6784
|
-
function
|
|
6927
|
+
function Xs(e) {
|
|
6785
6928
|
this.enter({
|
|
6786
6929
|
type: "tableRow",
|
|
6787
6930
|
children: []
|
|
6788
6931
|
}, e);
|
|
6789
6932
|
}
|
|
6790
|
-
function
|
|
6933
|
+
function Pt(e) {
|
|
6791
6934
|
this.exit(e);
|
|
6792
6935
|
}
|
|
6793
6936
|
function Un(e) {
|
|
@@ -6796,16 +6939,16 @@ function Un(e) {
|
|
|
6796
6939
|
children: []
|
|
6797
6940
|
}, e);
|
|
6798
6941
|
}
|
|
6799
|
-
function
|
|
6942
|
+
function Ys(e) {
|
|
6800
6943
|
let n = this.resume();
|
|
6801
|
-
this.data.inTable && (n = n.replace(/\\([\\|])/g,
|
|
6944
|
+
this.data.inTable && (n = n.replace(/\\([\\|])/g, Qs));
|
|
6802
6945
|
const t = this.stack[this.stack.length - 1];
|
|
6803
6946
|
t.type, t.value = n, this.exit(e);
|
|
6804
6947
|
}
|
|
6805
|
-
function
|
|
6948
|
+
function Qs(e, n) {
|
|
6806
6949
|
return n === "|" ? n : e;
|
|
6807
6950
|
}
|
|
6808
|
-
function
|
|
6951
|
+
function Ks(e) {
|
|
6809
6952
|
const n = e || {}, t = n.tableCellPadding, r = n.tablePipeAlign, i = n.stringLength, l = t ? " " : "|";
|
|
6810
6953
|
return {
|
|
6811
6954
|
unsafe: [
|
|
@@ -6862,7 +7005,7 @@ function Ys(e) {
|
|
|
6862
7005
|
return v(), d(), C;
|
|
6863
7006
|
}
|
|
6864
7007
|
function c(p, y) {
|
|
6865
|
-
return
|
|
7008
|
+
return cs(p, {
|
|
6866
7009
|
align: y,
|
|
6867
7010
|
alignDelimiters: r,
|
|
6868
7011
|
padding: t,
|
|
@@ -6888,28 +7031,28 @@ function Ys(e) {
|
|
|
6888
7031
|
return k.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
|
|
6889
7032
|
}
|
|
6890
7033
|
}
|
|
6891
|
-
function
|
|
7034
|
+
function Gs() {
|
|
6892
7035
|
return { exit: {
|
|
6893
7036
|
taskListCheckValueChecked: $n,
|
|
6894
7037
|
taskListCheckValueUnchecked: $n,
|
|
6895
|
-
paragraph:
|
|
7038
|
+
paragraph: Zs
|
|
6896
7039
|
} };
|
|
6897
7040
|
}
|
|
6898
|
-
function
|
|
7041
|
+
function Js() {
|
|
6899
7042
|
return {
|
|
6900
7043
|
unsafe: [{
|
|
6901
7044
|
atBreak: !0,
|
|
6902
7045
|
character: "-",
|
|
6903
7046
|
after: "[:|-]"
|
|
6904
7047
|
}],
|
|
6905
|
-
handlers: { listItem:
|
|
7048
|
+
handlers: { listItem: ec }
|
|
6906
7049
|
};
|
|
6907
7050
|
}
|
|
6908
7051
|
function $n(e) {
|
|
6909
7052
|
const n = this.stack[this.stack.length - 2];
|
|
6910
7053
|
n.type, n.checked = e.type === "taskListCheckValueChecked";
|
|
6911
7054
|
}
|
|
6912
|
-
function
|
|
7055
|
+
function Zs(e) {
|
|
6913
7056
|
const n = this.stack[this.stack.length - 2];
|
|
6914
7057
|
if (n && n.type === "listItem" && typeof n.checked == "boolean") {
|
|
6915
7058
|
const t = this.stack[this.stack.length - 1];
|
|
@@ -6930,7 +7073,7 @@ function Gs(e) {
|
|
|
6930
7073
|
}
|
|
6931
7074
|
this.exit(e);
|
|
6932
7075
|
}
|
|
6933
|
-
function
|
|
7076
|
+
function ec(e, n, t, r) {
|
|
6934
7077
|
const i = e.children[0], l = typeof e.checked == "boolean" && i && i.type === "paragraph", o = "[" + (e.checked ? "x" : " ") + "] ", a = t.createTracker(r);
|
|
6935
7078
|
l && a.move(o);
|
|
6936
7079
|
let u = qr.listItem(e, n, t, {
|
|
@@ -6942,53 +7085,53 @@ function Js(e, n, t, r) {
|
|
|
6942
7085
|
return f + o;
|
|
6943
7086
|
}
|
|
6944
7087
|
}
|
|
6945
|
-
function
|
|
7088
|
+
function tc() {
|
|
6946
7089
|
return [
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
7090
|
+
Fu(),
|
|
7091
|
+
es(),
|
|
7092
|
+
is(),
|
|
7093
|
+
qs(),
|
|
7094
|
+
Gs()
|
|
6952
7095
|
];
|
|
6953
7096
|
}
|
|
6954
|
-
function
|
|
7097
|
+
function nc(e) {
|
|
6955
7098
|
return { extensions: [
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
7099
|
+
Mu(),
|
|
7100
|
+
ts(e),
|
|
7101
|
+
ls(),
|
|
7102
|
+
Ks(e),
|
|
7103
|
+
Js()
|
|
6961
7104
|
] };
|
|
6962
7105
|
}
|
|
6963
|
-
var
|
|
6964
|
-
tokenize:
|
|
7106
|
+
var rc = {
|
|
7107
|
+
tokenize: sc,
|
|
6965
7108
|
partial: !0
|
|
6966
7109
|
}, Vr = {
|
|
6967
|
-
tokenize:
|
|
7110
|
+
tokenize: cc,
|
|
6968
7111
|
partial: !0
|
|
6969
7112
|
}, Wr = {
|
|
6970
|
-
tokenize:
|
|
7113
|
+
tokenize: fc,
|
|
6971
7114
|
partial: !0
|
|
6972
7115
|
}, Xr = {
|
|
6973
|
-
tokenize:
|
|
7116
|
+
tokenize: pc,
|
|
6974
7117
|
partial: !0
|
|
6975
|
-
},
|
|
6976
|
-
tokenize:
|
|
7118
|
+
}, ic = {
|
|
7119
|
+
tokenize: hc,
|
|
6977
7120
|
partial: !0
|
|
6978
7121
|
}, Yr = {
|
|
6979
7122
|
name: "wwwAutolink",
|
|
6980
|
-
tokenize:
|
|
7123
|
+
tokenize: ac,
|
|
6981
7124
|
previous: Kr
|
|
6982
7125
|
}, Qr = {
|
|
6983
7126
|
name: "protocolAutolink",
|
|
6984
|
-
tokenize:
|
|
7127
|
+
tokenize: uc,
|
|
6985
7128
|
previous: Gr
|
|
6986
7129
|
}, ke = {
|
|
6987
7130
|
name: "emailAutolink",
|
|
6988
|
-
tokenize:
|
|
7131
|
+
tokenize: oc,
|
|
6989
7132
|
previous: Jr
|
|
6990
7133
|
}, he = {};
|
|
6991
|
-
function
|
|
7134
|
+
function lc() {
|
|
6992
7135
|
return { text: he };
|
|
6993
7136
|
}
|
|
6994
7137
|
var Ie = 48;
|
|
@@ -7002,18 +7145,18 @@ he[72] = [ke, Qr];
|
|
|
7002
7145
|
he[104] = [ke, Qr];
|
|
7003
7146
|
he[87] = [ke, Yr];
|
|
7004
7147
|
he[119] = [ke, Yr];
|
|
7005
|
-
function
|
|
7148
|
+
function oc(e, n, t) {
|
|
7006
7149
|
const r = this;
|
|
7007
7150
|
let i, l;
|
|
7008
7151
|
return o;
|
|
7009
7152
|
function o(s) {
|
|
7010
|
-
return !
|
|
7153
|
+
return !Bt(s) || !Jr.call(r, r.previous) || Zt(r.events) ? t(s) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(s));
|
|
7011
7154
|
}
|
|
7012
7155
|
function a(s) {
|
|
7013
|
-
return
|
|
7156
|
+
return Bt(s) ? (e.consume(s), a) : s === 64 ? (e.consume(s), u) : t(s);
|
|
7014
7157
|
}
|
|
7015
7158
|
function u(s) {
|
|
7016
|
-
return s === 46 ? e.check(
|
|
7159
|
+
return s === 46 ? e.check(ic, f, c)(s) : s === 45 || s === 95 || J(s) ? (l = !0, e.consume(s), u) : f(s);
|
|
7017
7160
|
}
|
|
7018
7161
|
function c(s) {
|
|
7019
7162
|
return e.consume(s), i = !0, u;
|
|
@@ -7022,17 +7165,17 @@ function ic(e, n, t) {
|
|
|
7022
7165
|
return l && i && ee(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), n(s)) : t(s);
|
|
7023
7166
|
}
|
|
7024
7167
|
}
|
|
7025
|
-
function
|
|
7168
|
+
function ac(e, n, t) {
|
|
7026
7169
|
const r = this;
|
|
7027
7170
|
return i;
|
|
7028
7171
|
function i(o) {
|
|
7029
|
-
return o !== 87 && o !== 119 || !Kr.call(r, r.previous) || Zt(r.events) ? t(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
|
|
7172
|
+
return o !== 87 && o !== 119 || !Kr.call(r, r.previous) || Zt(r.events) ? t(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(rc, e.attempt(Vr, e.attempt(Wr, l), t), t)(o));
|
|
7030
7173
|
}
|
|
7031
7174
|
function l(o) {
|
|
7032
7175
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), n(o);
|
|
7033
7176
|
}
|
|
7034
7177
|
}
|
|
7035
|
-
function
|
|
7178
|
+
function uc(e, n, t) {
|
|
7036
7179
|
const r = this;
|
|
7037
7180
|
let i = "", l = !1;
|
|
7038
7181
|
return o;
|
|
@@ -7053,13 +7196,13 @@ function oc(e, n, t) {
|
|
|
7053
7196
|
return s === 47 ? (e.consume(s), l ? c : (l = !0, u)) : t(s);
|
|
7054
7197
|
}
|
|
7055
7198
|
function c(s) {
|
|
7056
|
-
return s === null ||
|
|
7199
|
+
return s === null || ot(s) || q(s) || Ae(s) || ft(s) ? t(s) : e.attempt(Vr, e.attempt(Wr, f), t)(s);
|
|
7057
7200
|
}
|
|
7058
7201
|
function f(s) {
|
|
7059
7202
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), n(s);
|
|
7060
7203
|
}
|
|
7061
7204
|
}
|
|
7062
|
-
function
|
|
7205
|
+
function sc(e, n, t) {
|
|
7063
7206
|
let r = 0;
|
|
7064
7207
|
return i;
|
|
7065
7208
|
function i(o) {
|
|
@@ -7069,11 +7212,11 @@ function ac(e, n, t) {
|
|
|
7069
7212
|
return o === null ? t(o) : n(o);
|
|
7070
7213
|
}
|
|
7071
7214
|
}
|
|
7072
|
-
function
|
|
7215
|
+
function cc(e, n, t) {
|
|
7073
7216
|
let r, i, l;
|
|
7074
7217
|
return o;
|
|
7075
7218
|
function o(c) {
|
|
7076
|
-
return c === 46 || c === 95 ? e.check(Xr, u, a)(c) : c === null || q(c) || Ae(c) || c !== 45 &&
|
|
7219
|
+
return c === 46 || c === 95 ? e.check(Xr, u, a)(c) : c === null || q(c) || Ae(c) || c !== 45 && ft(c) ? u(c) : (l = !0, e.consume(c), o);
|
|
7077
7220
|
}
|
|
7078
7221
|
function a(c) {
|
|
7079
7222
|
return c === 95 ? r = !0 : (i = r, r = void 0), e.consume(c), o;
|
|
@@ -7082,7 +7225,7 @@ function uc(e, n, t) {
|
|
|
7082
7225
|
return i || r || !l ? t(c) : n(c);
|
|
7083
7226
|
}
|
|
7084
7227
|
}
|
|
7085
|
-
function
|
|
7228
|
+
function fc(e, n) {
|
|
7086
7229
|
let t = 0, r = 0;
|
|
7087
7230
|
return i;
|
|
7088
7231
|
function i(o) {
|
|
@@ -7092,7 +7235,7 @@ function sc(e, n) {
|
|
|
7092
7235
|
return o === 41 && r++, e.consume(o), i;
|
|
7093
7236
|
}
|
|
7094
7237
|
}
|
|
7095
|
-
function
|
|
7238
|
+
function pc(e, n, t) {
|
|
7096
7239
|
return r;
|
|
7097
7240
|
function r(a) {
|
|
7098
7241
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), l) : a === 93 ? (e.consume(a), i) : a === 60 || a === null || q(a) || Ae(a) ? n(a) : t(a);
|
|
@@ -7107,7 +7250,7 @@ function cc(e, n, t) {
|
|
|
7107
7250
|
return a === 59 ? (e.consume(a), r) : ee(a) ? (e.consume(a), o) : t(a);
|
|
7108
7251
|
}
|
|
7109
7252
|
}
|
|
7110
|
-
function
|
|
7253
|
+
function hc(e, n, t) {
|
|
7111
7254
|
return r;
|
|
7112
7255
|
function r(l) {
|
|
7113
7256
|
return e.consume(l), i;
|
|
@@ -7123,9 +7266,9 @@ function Gr(e) {
|
|
|
7123
7266
|
return !ee(e);
|
|
7124
7267
|
}
|
|
7125
7268
|
function Jr(e) {
|
|
7126
|
-
return !(e === 47 ||
|
|
7269
|
+
return !(e === 47 || Bt(e));
|
|
7127
7270
|
}
|
|
7128
|
-
function
|
|
7271
|
+
function Bt(e) {
|
|
7129
7272
|
return e === 43 || e === 45 || e === 46 || e === 95 || J(e);
|
|
7130
7273
|
}
|
|
7131
7274
|
function Zt(e) {
|
|
@@ -7143,33 +7286,33 @@ function Zt(e) {
|
|
|
7143
7286
|
}
|
|
7144
7287
|
return e.length > 0 && !t && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), t;
|
|
7145
7288
|
}
|
|
7146
|
-
var
|
|
7147
|
-
tokenize:
|
|
7289
|
+
var mc = {
|
|
7290
|
+
tokenize: vc,
|
|
7148
7291
|
partial: !0
|
|
7149
7292
|
};
|
|
7150
|
-
function
|
|
7293
|
+
function gc() {
|
|
7151
7294
|
return {
|
|
7152
7295
|
document: { 91: {
|
|
7153
7296
|
name: "gfmFootnoteDefinition",
|
|
7154
|
-
tokenize:
|
|
7155
|
-
continuation: { tokenize:
|
|
7156
|
-
exit:
|
|
7297
|
+
tokenize: kc,
|
|
7298
|
+
continuation: { tokenize: bc },
|
|
7299
|
+
exit: wc
|
|
7157
7300
|
} },
|
|
7158
7301
|
text: {
|
|
7159
7302
|
91: {
|
|
7160
7303
|
name: "gfmFootnoteCall",
|
|
7161
|
-
tokenize:
|
|
7304
|
+
tokenize: xc
|
|
7162
7305
|
},
|
|
7163
7306
|
93: {
|
|
7164
7307
|
name: "gfmPotentialFootnoteCall",
|
|
7165
7308
|
add: "after",
|
|
7166
|
-
tokenize:
|
|
7167
|
-
resolveTo:
|
|
7309
|
+
tokenize: dc,
|
|
7310
|
+
resolveTo: yc
|
|
7168
7311
|
}
|
|
7169
7312
|
}
|
|
7170
7313
|
};
|
|
7171
7314
|
}
|
|
7172
|
-
function
|
|
7315
|
+
function dc(e, n, t) {
|
|
7173
7316
|
const r = this;
|
|
7174
7317
|
let i = r.events.length;
|
|
7175
7318
|
const l = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -7192,7 +7335,7 @@ function mc(e, n, t) {
|
|
|
7192
7335
|
return c.codePointAt(0) !== 94 || !l.includes(c.slice(1)) ? t(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), n(u));
|
|
7193
7336
|
}
|
|
7194
7337
|
}
|
|
7195
|
-
function
|
|
7338
|
+
function yc(e, n) {
|
|
7196
7339
|
let t = e.length;
|
|
7197
7340
|
for (; t--; ) if (e[t][1].type === "labelImage" && e[t][0] === "enter") {
|
|
7198
7341
|
e[t][1];
|
|
@@ -7268,7 +7411,7 @@ function gc(e, n) {
|
|
|
7268
7411
|
];
|
|
7269
7412
|
return e.splice(t, e.length - t + 1, ...a), e;
|
|
7270
7413
|
}
|
|
7271
|
-
function
|
|
7414
|
+
function xc(e, n, t) {
|
|
7272
7415
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
7273
7416
|
let l = 0, o;
|
|
7274
7417
|
return a;
|
|
@@ -7291,7 +7434,7 @@ function dc(e, n, t) {
|
|
|
7291
7434
|
return s === 91 || s === 92 || s === 93 ? (e.consume(s), l++, c) : c(s);
|
|
7292
7435
|
}
|
|
7293
7436
|
}
|
|
7294
|
-
function
|
|
7437
|
+
function kc(e, n, t) {
|
|
7295
7438
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
7296
7439
|
let l, o = 0, a;
|
|
7297
7440
|
return u;
|
|
@@ -7320,13 +7463,13 @@ function yc(e, n, t) {
|
|
|
7320
7463
|
return n(y);
|
|
7321
7464
|
}
|
|
7322
7465
|
}
|
|
7323
|
-
function
|
|
7324
|
-
return e.check(
|
|
7466
|
+
function bc(e, n, t) {
|
|
7467
|
+
return e.check(Ze, n, e.attempt(mc, n, t));
|
|
7325
7468
|
}
|
|
7326
|
-
function
|
|
7469
|
+
function wc(e) {
|
|
7327
7470
|
e.exit("gfmFootnoteDefinition");
|
|
7328
7471
|
}
|
|
7329
|
-
function
|
|
7472
|
+
function vc(e, n, t) {
|
|
7330
7473
|
const r = this;
|
|
7331
7474
|
return U(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
7332
7475
|
function i(l) {
|
|
@@ -7334,7 +7477,7 @@ function bc(e, n, t) {
|
|
|
7334
7477
|
return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? n(l) : t(l);
|
|
7335
7478
|
}
|
|
7336
7479
|
}
|
|
7337
|
-
function
|
|
7480
|
+
function Cc(e) {
|
|
7338
7481
|
let n = (e || {}).singleTilde;
|
|
7339
7482
|
const t = {
|
|
7340
7483
|
name: "strikethrough",
|
|
@@ -7382,7 +7525,7 @@ function wc(e) {
|
|
|
7382
7525
|
o
|
|
7383
7526
|
]
|
|
7384
7527
|
], h = o.parser.constructs.insideSpan.null;
|
|
7385
|
-
h && oe(s, s.length, 0,
|
|
7528
|
+
h && oe(s, s.length, 0, pt(h, l.slice(u + 1, a), o)), oe(s, s.length, 0, [
|
|
7386
7529
|
[
|
|
7387
7530
|
"exit",
|
|
7388
7531
|
f,
|
|
@@ -7427,12 +7570,12 @@ function wc(e) {
|
|
|
7427
7570
|
}
|
|
7428
7571
|
}
|
|
7429
7572
|
}
|
|
7430
|
-
var
|
|
7573
|
+
var Sc = class {
|
|
7431
7574
|
constructor() {
|
|
7432
7575
|
this.map = [];
|
|
7433
7576
|
}
|
|
7434
7577
|
add(e, n, t) {
|
|
7435
|
-
|
|
7578
|
+
Ec(this, e, n, t);
|
|
7436
7579
|
}
|
|
7437
7580
|
consume(e) {
|
|
7438
7581
|
if (this.map.sort(function(i, l) {
|
|
@@ -7451,7 +7594,7 @@ var vc = class {
|
|
|
7451
7594
|
this.map.length = 0;
|
|
7452
7595
|
}
|
|
7453
7596
|
};
|
|
7454
|
-
function
|
|
7597
|
+
function Ec(e, n, t, r) {
|
|
7455
7598
|
let i = 0;
|
|
7456
7599
|
if (!(t === 0 && r.length === 0)) {
|
|
7457
7600
|
for (; i < e.map.length; ) {
|
|
@@ -7468,7 +7611,7 @@ function Cc(e, n, t, r) {
|
|
|
7468
7611
|
]);
|
|
7469
7612
|
}
|
|
7470
7613
|
}
|
|
7471
|
-
function
|
|
7614
|
+
function Ic(e, n) {
|
|
7472
7615
|
let t = !1;
|
|
7473
7616
|
const r = [];
|
|
7474
7617
|
for (; n < e.length; ) {
|
|
@@ -7487,14 +7630,14 @@ function Sc(e, n) {
|
|
|
7487
7630
|
}
|
|
7488
7631
|
return r;
|
|
7489
7632
|
}
|
|
7490
|
-
function
|
|
7633
|
+
function Ac() {
|
|
7491
7634
|
return { flow: { null: {
|
|
7492
7635
|
name: "table",
|
|
7493
|
-
tokenize:
|
|
7494
|
-
resolveAll:
|
|
7636
|
+
tokenize: Tc,
|
|
7637
|
+
resolveAll: Pc
|
|
7495
7638
|
} } };
|
|
7496
7639
|
}
|
|
7497
|
-
function
|
|
7640
|
+
function Tc(e, n, t) {
|
|
7498
7641
|
const r = this;
|
|
7499
7642
|
let i = 0, l = 0, o;
|
|
7500
7643
|
return a;
|
|
@@ -7563,7 +7706,7 @@ function Ic(e, n, t) {
|
|
|
7563
7706
|
return x === 92 || x === 124 ? (e.consume(x), F) : F(x);
|
|
7564
7707
|
}
|
|
7565
7708
|
}
|
|
7566
|
-
function
|
|
7709
|
+
function Pc(e, n) {
|
|
7567
7710
|
let t = -1, r = !0, i = 0, l = [
|
|
7568
7711
|
0,
|
|
7569
7712
|
0,
|
|
@@ -7575,7 +7718,7 @@ function Ac(e, n) {
|
|
|
7575
7718
|
0,
|
|
7576
7719
|
0
|
|
7577
7720
|
], a = !1, u = 0, c, f, s;
|
|
7578
|
-
const h = new
|
|
7721
|
+
const h = new Sc();
|
|
7579
7722
|
for (; ++t < e.length; ) {
|
|
7580
7723
|
const p = e[t], y = p[1];
|
|
7581
7724
|
p[0] === "enter" ? y.type === "tableHead" ? (a = !1, u !== 0 && (qn(h, n, u, c, f), f = void 0, u = 0), c = {
|
|
@@ -7604,25 +7747,25 @@ function Ac(e, n) {
|
|
|
7604
7747
|
"enter",
|
|
7605
7748
|
f,
|
|
7606
7749
|
n
|
|
7607
|
-
]])), i = y.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (y.type === "data" || y.type === "tableDelimiterMarker" || y.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (l[1] !== 0 && (o[0] = o[1], s =
|
|
7750
|
+
]])), i = y.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (y.type === "data" || y.type === "tableDelimiterMarker" || y.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (l[1] !== 0 && (o[0] = o[1], s = it(h, n, l, i, void 0, s), l = [
|
|
7608
7751
|
0,
|
|
7609
7752
|
0,
|
|
7610
7753
|
0,
|
|
7611
7754
|
0
|
|
7612
|
-
]), o[2] = t)) : y.type === "tableCellDivider" && (r ? r = !1 : (l[1] !== 0 && (o[0] = o[1], s =
|
|
7755
|
+
]), o[2] = t)) : y.type === "tableCellDivider" && (r ? r = !1 : (l[1] !== 0 && (o[0] = o[1], s = it(h, n, l, i, void 0, s)), l = o, o = [
|
|
7613
7756
|
l[1],
|
|
7614
7757
|
t,
|
|
7615
7758
|
0,
|
|
7616
7759
|
0
|
|
7617
|
-
])) : y.type === "tableHead" ? (a = !0, u = t) : y.type === "tableRow" || y.type === "tableDelimiterRow" ? (u = t, l[1] !== 0 ? (o[0] = o[1], s =
|
|
7760
|
+
])) : y.type === "tableHead" ? (a = !0, u = t) : y.type === "tableRow" || y.type === "tableDelimiterRow" ? (u = t, l[1] !== 0 ? (o[0] = o[1], s = it(h, n, l, i, t, s)) : o[1] !== 0 && (s = it(h, n, o, i, t, s)), i = 0) : i && (y.type === "data" || y.type === "tableDelimiterMarker" || y.type === "tableDelimiterFiller") && (o[3] = t);
|
|
7618
7761
|
}
|
|
7619
7762
|
for (u !== 0 && qn(h, n, u, c, f), h.consume(n.events), t = -1; ++t < n.events.length; ) {
|
|
7620
7763
|
const p = n.events[t];
|
|
7621
|
-
p[0] === "enter" && p[1].type === "table" && (p[1]._align =
|
|
7764
|
+
p[0] === "enter" && p[1].type === "table" && (p[1]._align = Ic(n.events, t));
|
|
7622
7765
|
}
|
|
7623
7766
|
return e;
|
|
7624
7767
|
}
|
|
7625
|
-
function
|
|
7768
|
+
function it(e, n, t, r, i, l) {
|
|
7626
7769
|
const o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
7627
7770
|
t[0] !== 0 && (l.end = Object.assign({}, Re(n.events, t[0])), e.add(t[0], 0, [[
|
|
7628
7771
|
"exit",
|
|
@@ -7683,14 +7826,14 @@ function Re(e, n) {
|
|
|
7683
7826
|
const t = e[n], r = t[0] === "enter" ? "start" : "end";
|
|
7684
7827
|
return t[1][r];
|
|
7685
7828
|
}
|
|
7686
|
-
var
|
|
7829
|
+
var Lc = {
|
|
7687
7830
|
name: "tasklistCheck",
|
|
7688
|
-
tokenize:
|
|
7831
|
+
tokenize: Dc
|
|
7689
7832
|
};
|
|
7690
|
-
function
|
|
7691
|
-
return { text: { 91:
|
|
7833
|
+
function zc() {
|
|
7834
|
+
return { text: { 91: Lc } };
|
|
7692
7835
|
}
|
|
7693
|
-
function
|
|
7836
|
+
function Dc(e, n, t) {
|
|
7694
7837
|
const r = this;
|
|
7695
7838
|
return i;
|
|
7696
7839
|
function i(u) {
|
|
@@ -7703,30 +7846,30 @@ function Lc(e, n, t) {
|
|
|
7703
7846
|
return u === 93 ? (e.enter("taskListCheckMarker"), e.consume(u), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : t(u);
|
|
7704
7847
|
}
|
|
7705
7848
|
function a(u) {
|
|
7706
|
-
return D(u) ? n(u) : j(u) ? e.check({ tokenize:
|
|
7849
|
+
return D(u) ? n(u) : j(u) ? e.check({ tokenize: Fc }, n, t)(u) : t(u);
|
|
7707
7850
|
}
|
|
7708
7851
|
}
|
|
7709
|
-
function
|
|
7852
|
+
function Fc(e, n, t) {
|
|
7710
7853
|
return U(e, r, "whitespace");
|
|
7711
7854
|
function r(i) {
|
|
7712
7855
|
return i === null ? t(i) : n(i);
|
|
7713
7856
|
}
|
|
7714
7857
|
}
|
|
7715
|
-
function
|
|
7858
|
+
function Mc(e) {
|
|
7716
7859
|
return fr([
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7860
|
+
lc(),
|
|
7861
|
+
gc(),
|
|
7862
|
+
Cc(e),
|
|
7863
|
+
Ac(),
|
|
7864
|
+
zc()
|
|
7722
7865
|
]);
|
|
7723
7866
|
}
|
|
7724
|
-
var
|
|
7725
|
-
function
|
|
7726
|
-
const n = this, t = e ||
|
|
7727
|
-
i.push(
|
|
7867
|
+
var Rc = {};
|
|
7868
|
+
function _c(e) {
|
|
7869
|
+
const n = this, t = e || Rc, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), l = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
7870
|
+
i.push(Mc(t)), l.push(tc()), o.push(nc(t));
|
|
7728
7871
|
}
|
|
7729
|
-
var
|
|
7872
|
+
var Oc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
7730
7873
|
href: e,
|
|
7731
7874
|
target: "_blank",
|
|
7732
7875
|
rel: "noopener noreferrer",
|
|
@@ -7736,7 +7879,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7736
7879
|
},
|
|
7737
7880
|
...t,
|
|
7738
7881
|
children: n
|
|
7739
|
-
}),
|
|
7882
|
+
}), Nc = ({ children: e, ...n }) => /* @__PURE__ */ M("p", {
|
|
7740
7883
|
style: {
|
|
7741
7884
|
margin: "0 0 8px 0",
|
|
7742
7885
|
lineHeight: "1.6"
|
|
@@ -7744,7 +7887,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7744
7887
|
...n,
|
|
7745
7888
|
children: e
|
|
7746
7889
|
}), Me = (e, n) => {
|
|
7747
|
-
const t = ({ children: r, ...i }) =>
|
|
7890
|
+
const t = ({ children: r, ...i }) => ci.createElement(`h${e}`, {
|
|
7748
7891
|
style: {
|
|
7749
7892
|
margin: "16px 0 8px 0",
|
|
7750
7893
|
fontSize: n,
|
|
@@ -7754,7 +7897,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7754
7897
|
...i
|
|
7755
7898
|
}, r);
|
|
7756
7899
|
return t.displayName = `MarkdownHeading${e}`, t;
|
|
7757
|
-
},
|
|
7900
|
+
}, Bc = ({ children: e, ...n }) => /* @__PURE__ */ M("ul", {
|
|
7758
7901
|
style: {
|
|
7759
7902
|
margin: "0 0 8px 0",
|
|
7760
7903
|
paddingLeft: "20px",
|
|
@@ -7763,7 +7906,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7763
7906
|
},
|
|
7764
7907
|
...n,
|
|
7765
7908
|
children: e
|
|
7766
|
-
}),
|
|
7909
|
+
}), jc = ({ children: e, ...n }) => /* @__PURE__ */ M("ol", {
|
|
7767
7910
|
style: {
|
|
7768
7911
|
margin: "0 0 8px 0",
|
|
7769
7912
|
paddingLeft: "20px",
|
|
@@ -7772,7 +7915,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7772
7915
|
},
|
|
7773
7916
|
...n,
|
|
7774
7917
|
children: e
|
|
7775
|
-
}),
|
|
7918
|
+
}), Hc = ({ children: e, ...n }) => /* @__PURE__ */ M("li", {
|
|
7776
7919
|
style: {
|
|
7777
7920
|
display: "list-item",
|
|
7778
7921
|
margin: "2px 0",
|
|
@@ -7780,7 +7923,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7780
7923
|
},
|
|
7781
7924
|
...n,
|
|
7782
7925
|
children: e
|
|
7783
|
-
}),
|
|
7926
|
+
}), Uc = ({ className: e, children: n, ...t }) => e !== void 0 || String(n).includes(`
|
|
7784
7927
|
`) ? /* @__PURE__ */ M("code", {
|
|
7785
7928
|
style: {
|
|
7786
7929
|
display: "block",
|
|
@@ -7803,11 +7946,11 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7803
7946
|
},
|
|
7804
7947
|
...t,
|
|
7805
7948
|
children: n
|
|
7806
|
-
}),
|
|
7949
|
+
}), $c = ({ children: e, ...n }) => /* @__PURE__ */ M("pre", {
|
|
7807
7950
|
style: { margin: "0 0 8px 0" },
|
|
7808
7951
|
...n,
|
|
7809
7952
|
children: e
|
|
7810
|
-
}),
|
|
7953
|
+
}), qc = ({ children: e, ...n }) => /* @__PURE__ */ M("blockquote", {
|
|
7811
7954
|
style: {
|
|
7812
7955
|
borderLeft: "4px solid #dee3e8",
|
|
7813
7956
|
paddingLeft: "12px",
|
|
@@ -7817,7 +7960,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7817
7960
|
},
|
|
7818
7961
|
...n,
|
|
7819
7962
|
children: e
|
|
7820
|
-
}),
|
|
7963
|
+
}), Vc = ({ children: e, ...n }) => /* @__PURE__ */ M("div", {
|
|
7821
7964
|
style: {
|
|
7822
7965
|
overflowX: "auto",
|
|
7823
7966
|
margin: "0 0 8px 0"
|
|
@@ -7831,7 +7974,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7831
7974
|
...n,
|
|
7832
7975
|
children: e
|
|
7833
7976
|
})
|
|
7834
|
-
}),
|
|
7977
|
+
}), Wc = ({ children: e, ...n }) => /* @__PURE__ */ M("th", {
|
|
7835
7978
|
style: {
|
|
7836
7979
|
border: "1px solid #dee3e8",
|
|
7837
7980
|
padding: "6px 10px",
|
|
@@ -7841,14 +7984,14 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7841
7984
|
},
|
|
7842
7985
|
...n,
|
|
7843
7986
|
children: e
|
|
7844
|
-
}),
|
|
7987
|
+
}), Xc = ({ children: e, ...n }) => /* @__PURE__ */ M("td", {
|
|
7845
7988
|
style: {
|
|
7846
7989
|
border: "1px solid #dee3e8",
|
|
7847
7990
|
padding: "6px 10px"
|
|
7848
7991
|
},
|
|
7849
7992
|
...n,
|
|
7850
7993
|
children: e
|
|
7851
|
-
}),
|
|
7994
|
+
}), Yc = ({ alt: e, ...n }) => /* @__PURE__ */ M("img", {
|
|
7852
7995
|
alt: e ?? "",
|
|
7853
7996
|
style: {
|
|
7854
7997
|
maxWidth: "100%",
|
|
@@ -7856,38 +7999,38 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7856
7999
|
margin: "4px 0"
|
|
7857
8000
|
},
|
|
7858
8001
|
...n
|
|
7859
|
-
}),
|
|
8002
|
+
}), Qc = (e) => /* @__PURE__ */ M("hr", {
|
|
7860
8003
|
style: {
|
|
7861
8004
|
border: "none",
|
|
7862
8005
|
borderTop: "1px solid #dee3e8",
|
|
7863
8006
|
margin: "12px 0"
|
|
7864
8007
|
},
|
|
7865
8008
|
...e
|
|
7866
|
-
}),
|
|
7867
|
-
a:
|
|
7868
|
-
p:
|
|
8009
|
+
}), Kc = {
|
|
8010
|
+
a: Oc,
|
|
8011
|
+
p: Nc,
|
|
7869
8012
|
h1: Me(1, "20px"),
|
|
7870
8013
|
h2: Me(2, "18px"),
|
|
7871
8014
|
h3: Me(3, "16px"),
|
|
7872
8015
|
h4: Me(4, "15px"),
|
|
7873
8016
|
h5: Me(5, "14px"),
|
|
7874
8017
|
h6: Me(6, "13px"),
|
|
7875
|
-
ul:
|
|
7876
|
-
ol:
|
|
7877
|
-
li:
|
|
7878
|
-
code:
|
|
7879
|
-
pre:
|
|
7880
|
-
blockquote:
|
|
7881
|
-
table:
|
|
7882
|
-
th:
|
|
7883
|
-
td:
|
|
7884
|
-
img:
|
|
7885
|
-
hr:
|
|
7886
|
-
},
|
|
7887
|
-
remarkPlugins:
|
|
7888
|
-
components:
|
|
8018
|
+
ul: Bc,
|
|
8019
|
+
ol: jc,
|
|
8020
|
+
li: Hc,
|
|
8021
|
+
code: Uc,
|
|
8022
|
+
pre: $c,
|
|
8023
|
+
blockquote: qc,
|
|
8024
|
+
table: Vc,
|
|
8025
|
+
th: Wc,
|
|
8026
|
+
td: Xc,
|
|
8027
|
+
img: Yc,
|
|
8028
|
+
hr: Qc
|
|
8029
|
+
}, Gc = [_c], Jc = ({ content: e }) => /* @__PURE__ */ M(Cu, {
|
|
8030
|
+
remarkPlugins: Gc,
|
|
8031
|
+
components: Kc,
|
|
7889
8032
|
children: e
|
|
7890
|
-
}),
|
|
8033
|
+
}), Zc = ({ source: e, index: n }) => {
|
|
7891
8034
|
const t = /* @__PURE__ */ ce("div", {
|
|
7892
8035
|
style: {
|
|
7893
8036
|
display: "flex",
|
|
@@ -7952,7 +8095,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7952
8095
|
style: r,
|
|
7953
8096
|
children: t
|
|
7954
8097
|
});
|
|
7955
|
-
},
|
|
8098
|
+
}, ef = () => /* @__PURE__ */ ce("div", {
|
|
7956
8099
|
style: {
|
|
7957
8100
|
display: "flex",
|
|
7958
8101
|
gap: "4px",
|
|
@@ -7975,7 +8118,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
7975
8118
|
40% { opacity: 1; transform: scale(1); }
|
|
7976
8119
|
}
|
|
7977
8120
|
` })]
|
|
7978
|
-
}),
|
|
8121
|
+
}), tf = ({ message: e, className: n = "", showAgentName: t = !1, onFollowUpClick: r }) => {
|
|
7979
8122
|
const i = e.role === "user", l = e.status === "IN_PROGRESS";
|
|
7980
8123
|
return /* @__PURE__ */ ce("div", {
|
|
7981
8124
|
className: `ago-message ago-message--${e.role} ${n}`,
|
|
@@ -8010,7 +8153,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
8010
8153
|
width: "100%",
|
|
8011
8154
|
maxWidth: "85%"
|
|
8012
8155
|
},
|
|
8013
|
-
children: e.sources.map((o, a) => /* @__PURE__ */ M(
|
|
8156
|
+
children: e.sources.map((o, a) => /* @__PURE__ */ M(Zc, {
|
|
8014
8157
|
source: o,
|
|
8015
8158
|
index: a
|
|
8016
8159
|
}, o.id))
|
|
@@ -8027,7 +8170,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
8027
8170
|
fontSize: "14px",
|
|
8028
8171
|
lineHeight: "1.6"
|
|
8029
8172
|
},
|
|
8030
|
-
children: e.content ? /* @__PURE__ */ M(
|
|
8173
|
+
children: e.content ? /* @__PURE__ */ M(Jc, { content: e.content }) : l && /* @__PURE__ */ M(ef, {})
|
|
8031
8174
|
}),
|
|
8032
8175
|
e.followUpReplies && e.followUpReplies.length > 0 && /* @__PURE__ */ M("div", {
|
|
8033
8176
|
className: "ago-message__followups",
|
|
@@ -8063,153 +8206,11 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
8063
8206
|
})
|
|
8064
8207
|
]
|
|
8065
8208
|
});
|
|
8066
|
-
},
|
|
8067
|
-
const
|
|
8068
|
-
k.preventDefault(), (l.trim() || a.length > 0) && (e(l.trim(), a.length > 0 ? a : void 0), o(""), u([]));
|
|
8069
|
-
}, [
|
|
8070
|
-
l,
|
|
8071
|
-
a,
|
|
8072
|
-
e
|
|
8073
|
-
]), s = xe((k) => {
|
|
8074
|
-
k.key === "Enter" && !k.shiftKey && (k.preventDefault(), f(k));
|
|
8075
|
-
}, [f]), h = xe((k) => {
|
|
8076
|
-
const S = Array.from(k.target.files || []);
|
|
8077
|
-
u((d) => [...d, ...S]);
|
|
8078
|
-
}, []), p = xe((k) => {
|
|
8079
|
-
u((S) => S.filter((d, v) => v !== k));
|
|
8080
|
-
}, []), y = l.trim() || a.length > 0;
|
|
8081
|
-
return /* @__PURE__ */ ce("form", {
|
|
8082
|
-
onSubmit: f,
|
|
8083
|
-
className: `ago-chat-input ${i}`,
|
|
8084
|
-
style: {
|
|
8085
|
-
display: "flex",
|
|
8086
|
-
flexDirection: "column",
|
|
8087
|
-
gap: "8px",
|
|
8088
|
-
padding: "12px 16px",
|
|
8089
|
-
borderTop: "1px solid #dee3e8",
|
|
8090
|
-
backgroundColor: "#fff"
|
|
8091
|
-
},
|
|
8092
|
-
children: [a.length > 0 && /* @__PURE__ */ M("div", {
|
|
8093
|
-
className: "ago-chat-input__files",
|
|
8094
|
-
style: {
|
|
8095
|
-
display: "flex",
|
|
8096
|
-
flexWrap: "wrap",
|
|
8097
|
-
gap: "6px"
|
|
8098
|
-
},
|
|
8099
|
-
children: a.map((k, S) => /* @__PURE__ */ ce("div", {
|
|
8100
|
-
style: {
|
|
8101
|
-
display: "flex",
|
|
8102
|
-
alignItems: "center",
|
|
8103
|
-
gap: "6px",
|
|
8104
|
-
padding: "4px 10px",
|
|
8105
|
-
backgroundColor: "#f0f2f5",
|
|
8106
|
-
borderRadius: "6px",
|
|
8107
|
-
fontSize: "12px",
|
|
8108
|
-
color: "#30373e"
|
|
8109
|
-
},
|
|
8110
|
-
children: [/* @__PURE__ */ M("span", {
|
|
8111
|
-
style: {
|
|
8112
|
-
maxWidth: "120px",
|
|
8113
|
-
overflow: "hidden",
|
|
8114
|
-
textOverflow: "ellipsis",
|
|
8115
|
-
whiteSpace: "nowrap"
|
|
8116
|
-
},
|
|
8117
|
-
children: k.name
|
|
8118
|
-
}), /* @__PURE__ */ M("button", {
|
|
8119
|
-
type: "button",
|
|
8120
|
-
onClick: () => p(S),
|
|
8121
|
-
style: {
|
|
8122
|
-
border: "none",
|
|
8123
|
-
background: "none",
|
|
8124
|
-
cursor: "pointer",
|
|
8125
|
-
padding: "0",
|
|
8126
|
-
color: "#6b6d6f",
|
|
8127
|
-
fontSize: "14px",
|
|
8128
|
-
lineHeight: 1
|
|
8129
|
-
},
|
|
8130
|
-
children: "×"
|
|
8131
|
-
})]
|
|
8132
|
-
}, S))
|
|
8133
|
-
}), /* @__PURE__ */ ce("div", {
|
|
8134
|
-
style: {
|
|
8135
|
-
display: "flex",
|
|
8136
|
-
gap: "8px",
|
|
8137
|
-
alignItems: "flex-end"
|
|
8138
|
-
},
|
|
8139
|
-
children: [
|
|
8140
|
-
r && /* @__PURE__ */ ce(Qn, { children: [/* @__PURE__ */ M("button", {
|
|
8141
|
-
type: "button",
|
|
8142
|
-
onClick: () => c.current?.click(),
|
|
8143
|
-
disabled: n,
|
|
8144
|
-
style: {
|
|
8145
|
-
padding: "8px",
|
|
8146
|
-
border: "1px solid #dee3e8",
|
|
8147
|
-
borderRadius: "8px",
|
|
8148
|
-
backgroundColor: "#fff",
|
|
8149
|
-
cursor: n ? "not-allowed" : "pointer",
|
|
8150
|
-
color: "#6b6d6f",
|
|
8151
|
-
fontSize: "16px",
|
|
8152
|
-
lineHeight: 1
|
|
8153
|
-
},
|
|
8154
|
-
children: "+"
|
|
8155
|
-
}), /* @__PURE__ */ M("input", {
|
|
8156
|
-
ref: c,
|
|
8157
|
-
type: "file",
|
|
8158
|
-
multiple: !0,
|
|
8159
|
-
onChange: h,
|
|
8160
|
-
style: { display: "none" }
|
|
8161
|
-
})] }),
|
|
8162
|
-
/* @__PURE__ */ M("textarea", {
|
|
8163
|
-
value: l,
|
|
8164
|
-
onChange: (k) => o(k.target.value),
|
|
8165
|
-
onKeyDown: s,
|
|
8166
|
-
placeholder: t,
|
|
8167
|
-
disabled: n,
|
|
8168
|
-
rows: 1,
|
|
8169
|
-
style: {
|
|
8170
|
-
flex: 1,
|
|
8171
|
-
padding: "10px 14px",
|
|
8172
|
-
border: "1px solid #dee3e8",
|
|
8173
|
-
borderRadius: "20px",
|
|
8174
|
-
resize: "none",
|
|
8175
|
-
outline: "none",
|
|
8176
|
-
fontFamily: "inherit",
|
|
8177
|
-
fontSize: "14px",
|
|
8178
|
-
color: "#30373e",
|
|
8179
|
-
backgroundColor: "#f8f8f8",
|
|
8180
|
-
transition: "border-color 0.15s"
|
|
8181
|
-
},
|
|
8182
|
-
onFocus: (k) => {
|
|
8183
|
-
k.currentTarget.style.borderColor = "#1b5fc4";
|
|
8184
|
-
},
|
|
8185
|
-
onBlur: (k) => {
|
|
8186
|
-
k.currentTarget.style.borderColor = "#dee3e8";
|
|
8187
|
-
}
|
|
8188
|
-
}),
|
|
8189
|
-
/* @__PURE__ */ M("button", {
|
|
8190
|
-
type: "submit",
|
|
8191
|
-
disabled: n || !y,
|
|
8192
|
-
style: {
|
|
8193
|
-
padding: "10px 18px",
|
|
8194
|
-
border: "none",
|
|
8195
|
-
borderRadius: "20px",
|
|
8196
|
-
backgroundColor: n || !y ? "#b5bfc8" : "#03182f",
|
|
8197
|
-
color: "#fff",
|
|
8198
|
-
cursor: n || !y ? "not-allowed" : "pointer",
|
|
8199
|
-
fontWeight: 500,
|
|
8200
|
-
fontSize: "14px",
|
|
8201
|
-
transition: "background-color 0.15s"
|
|
8202
|
-
},
|
|
8203
|
-
children: "Send"
|
|
8204
|
-
})
|
|
8205
|
-
]
|
|
8206
|
-
})]
|
|
8207
|
-
});
|
|
8208
|
-
}, pf = ({ client: e, conversationId: n, title: t = "Chat", welcomeMessage: r = "Hello! How can I help you today?", placeholder: i = "Type a message...", allowFiles: l = !1, height: o = 500, logoUrl: a, showAgentName: u = !1, forms: c, onFollowUpClick: f, className: s = "", onMessageSent: h, onMessageReceived: p }) => {
|
|
8209
|
-
const y = Ne(null), k = st(), S = e ?? k, { messages: d, isLoading: v, error: C, sendMessage: A } = Kn({
|
|
8209
|
+
}, hf = ({ client: e, conversationId: n, title: t = "Chat", welcomeMessage: r = "Hello! How can I help you today?", placeholder: i = "Type a message...", allowFiles: l = !1, height: o = 500, logoUrl: a, showAgentName: u = !1, forms: c, onFollowUpClick: f, className: s = "", onMessageSent: h, onMessageReceived: p }) => {
|
|
8210
|
+
const y = Ne(null), k = ct(), S = e ?? k, { messages: d, isLoading: v, error: C, sendMessage: A } = Kn({
|
|
8210
8211
|
client: e,
|
|
8211
8212
|
conversationId: n
|
|
8212
|
-
}), L =
|
|
8213
|
+
}), L = We(() => (c ?? []).map((F) => Xn(F)), [c ? JSON.stringify(c.map((F) => [
|
|
8213
8214
|
F.name,
|
|
8214
8215
|
F.schema,
|
|
8215
8216
|
F.submit ?? !1,
|
|
@@ -8242,6 +8243,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
8242
8243
|
overflow: "hidden",
|
|
8243
8244
|
backgroundColor: "#fff",
|
|
8244
8245
|
fontFamily: '"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
8246
|
+
textAlign: "left",
|
|
8245
8247
|
boxShadow: "rgba(15, 15, 15, 0.08) 0px 2px 16px 0px"
|
|
8246
8248
|
},
|
|
8247
8249
|
children: [
|
|
@@ -8290,7 +8292,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
8290
8292
|
lineHeight: "1.5"
|
|
8291
8293
|
},
|
|
8292
8294
|
children: r
|
|
8293
|
-
}) : d.map((F) => /* @__PURE__ */ M(
|
|
8295
|
+
}) : d.map((F) => /* @__PURE__ */ M(tf, {
|
|
8294
8296
|
message: F,
|
|
8295
8297
|
showAgentName: u,
|
|
8296
8298
|
onFollowUpClick: N
|
|
@@ -8310,7 +8312,7 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
8310
8312
|
/* @__PURE__ */ M("div", { ref: y })
|
|
8311
8313
|
]
|
|
8312
8314
|
}),
|
|
8313
|
-
/* @__PURE__ */ M(
|
|
8315
|
+
/* @__PURE__ */ M(gi, {
|
|
8314
8316
|
onSend: w,
|
|
8315
8317
|
disabled: v,
|
|
8316
8318
|
placeholder: i,
|
|
@@ -8319,8 +8321,8 @@ var Rc = ({ href: e, children: n, ...t }) => /* @__PURE__ */ M("a", {
|
|
|
8319
8321
|
]
|
|
8320
8322
|
});
|
|
8321
8323
|
};
|
|
8322
|
-
function
|
|
8323
|
-
const t =
|
|
8324
|
+
function nf({ client: e, autoLoad: n = !0 } = {}) {
|
|
8325
|
+
const t = ct(), r = e || t;
|
|
8324
8326
|
if (!r) throw new Error("useConversation requires an AgoClient. Either pass it as options.client or wrap your app in <AgoProvider>.");
|
|
8325
8327
|
const [i, l] = se([]), [o, a] = se(null), [u, c] = se(!1), [f, s] = se(null), h = xe(async () => {
|
|
8326
8328
|
c(!0), s(null);
|
|
@@ -8355,13 +8357,13 @@ function tf({ client: e, autoLoad: n = !0 } = {}) {
|
|
|
8355
8357
|
refreshConversations: h
|
|
8356
8358
|
};
|
|
8357
8359
|
}
|
|
8358
|
-
function
|
|
8359
|
-
const n =
|
|
8360
|
+
function mf(e = {}) {
|
|
8361
|
+
const n = ct(), t = e.client || n;
|
|
8360
8362
|
if (!t) throw new Error("useChat requires an AgoClient. Either pass it as options.client or wrap your app in <AgoProvider>.");
|
|
8361
8363
|
const r = Kn({
|
|
8362
8364
|
client: t,
|
|
8363
8365
|
conversationId: e.conversationId
|
|
8364
|
-
}), i =
|
|
8366
|
+
}), i = nf({
|
|
8365
8367
|
client: t,
|
|
8366
8368
|
autoLoad: e.autoLoad
|
|
8367
8369
|
});
|
|
@@ -8380,8 +8382,8 @@ function hf(e = {}) {
|
|
|
8380
8382
|
refreshConversations: i.refreshConversations
|
|
8381
8383
|
};
|
|
8382
8384
|
}
|
|
8383
|
-
function
|
|
8384
|
-
const t =
|
|
8385
|
+
function gf(e, n) {
|
|
8386
|
+
const t = st(), { name: r, description: i, parameters: l, handler: o } = typeof e == "string" ? {
|
|
8385
8387
|
name: e,
|
|
8386
8388
|
...n
|
|
8387
8389
|
} : e, a = Ne(o);
|
|
@@ -8400,14 +8402,14 @@ function mf(e, n) {
|
|
|
8400
8402
|
l
|
|
8401
8403
|
]);
|
|
8402
8404
|
}
|
|
8403
|
-
function
|
|
8404
|
-
const t =
|
|
8405
|
+
function df(e, n) {
|
|
8406
|
+
const t = st(), r = Ne(e);
|
|
8405
8407
|
r.current = e, te(() => (t.registerNavigationFunction((i) => r.current(i), n), () => {
|
|
8406
8408
|
t.unregisterFunction("navigateToPage");
|
|
8407
8409
|
}), [t, n]);
|
|
8408
8410
|
}
|
|
8409
|
-
function
|
|
8410
|
-
const t =
|
|
8411
|
+
function yf(e, n) {
|
|
8412
|
+
const t = st(), r = pi(), i = n ?? r, l = Ne(e);
|
|
8411
8413
|
l.current = e;
|
|
8412
8414
|
const o = typeof e == "function";
|
|
8413
8415
|
te(() => {
|
|
@@ -8427,39 +8429,43 @@ function df(e, n) {
|
|
|
8427
8429
|
o ? "" : JSON.stringify(e)
|
|
8428
8430
|
]);
|
|
8429
8431
|
}
|
|
8430
|
-
function
|
|
8431
|
-
return
|
|
8432
|
+
function rf(e) {
|
|
8433
|
+
return hi(e.subscribe, e.get, e.get);
|
|
8432
8434
|
}
|
|
8433
|
-
function
|
|
8434
|
-
const n =
|
|
8435
|
+
function xf(e) {
|
|
8436
|
+
const n = st(), t = JSON.stringify(e.schema), r = e.submit, i = r ? typeof r == "string" ? `client:${r}` : r.via === "backend" ? `backend:${r.destination}` : "handler" in r ? "client:handler" : `client:${r.url}` : "none", l = We(() => Xn(e), [
|
|
8435
8437
|
e.name,
|
|
8436
8438
|
t,
|
|
8437
8439
|
i
|
|
8438
8440
|
]);
|
|
8439
8441
|
te(() => l.install(n), [n, l]);
|
|
8440
|
-
const o =
|
|
8442
|
+
const o = rf(l.store), a = We(() => si(e.schema, o.values), [o, e.schema]), u = We(() => ({
|
|
8443
|
+
...o,
|
|
8444
|
+
...a
|
|
8445
|
+
}), [o, a]);
|
|
8441
8446
|
return {
|
|
8442
8447
|
...l,
|
|
8443
|
-
state:
|
|
8448
|
+
state: u
|
|
8444
8449
|
};
|
|
8445
8450
|
}
|
|
8446
8451
|
export {
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
+
pf as AgoProvider,
|
|
8453
|
+
gi as ChatInput,
|
|
8454
|
+
hf as ChatWidget,
|
|
8455
|
+
Jc as Markdown,
|
|
8456
|
+
tf as Message,
|
|
8452
8457
|
Xn as createFormCollector,
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
gf as
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8458
|
+
sf as createMockClient,
|
|
8459
|
+
si as deriveFormStatus,
|
|
8460
|
+
mi as useAgo,
|
|
8461
|
+
st as useAgoClient,
|
|
8462
|
+
yf as useAgoContext,
|
|
8463
|
+
gf as useAgoFunction,
|
|
8464
|
+
df as useAgoNavigation,
|
|
8465
|
+
rf as useAgoStore,
|
|
8466
|
+
mf as useChat,
|
|
8467
|
+
nf as useConversation,
|
|
8468
|
+
xf as useFormCollector,
|
|
8463
8469
|
Kn as useMessages,
|
|
8464
|
-
|
|
8470
|
+
ct as useOptionalAgoClient
|
|
8465
8471
|
};
|