@versini/sassysaint 7.3.2 → 8.0.0

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.
@@ -1,11 +1,8 @@
1
1
  import { Fragment as mi, jsx as xe, jsxs as Zt } from "react/jsx-runtime";
2
- import { ChatContext as gi, E as di, Re as ut } from "./App.bKrYRgTj.js";
2
+ import { getDefaultExportFromCjs as er, ChatContext as gi, E as di, Re as at } from "./App.fV4ZQ-s5.js";
3
3
  import { lazy as yi, useContext as ki, Suspense as xi } from "react";
4
- import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, ROLE_INTERNAL as Si, durationFormatter as Ci, numberFormatter as Ei } from "./index.7sz3uXvc.js";
5
- function er(e) {
6
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
- }
8
- function Zc(e) {
4
+ import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, convertCamelCaseToReadable as Si, ROLE_INTERNAL as Ci } from "./index.qsG-2ad0.js";
5
+ function Kc(e) {
9
6
  const t = [], n = String(e || "");
10
7
  let r = n.indexOf(","), i = 0, o = !1;
11
8
  for (; !o; ) {
@@ -15,22 +12,22 @@ function Zc(e) {
15
12
  }
16
13
  return t;
17
14
  }
18
- function Ii(e, t) {
15
+ function Ei(e, t) {
19
16
  const n = {};
20
17
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
21
18
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
22
19
  ).trim();
23
20
  }
24
- const Ai = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ti = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pi = {};
25
- function st(e, t) {
26
- return (Pi.jsx ? Ti : Ai).test(e);
21
+ const Ii = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ai = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ti = {};
22
+ function ut(e, t) {
23
+ return (Ti.jsx ? Ai : Ii).test(e);
27
24
  }
28
- const Li = /[ \t\n\f\r]/g;
29
- function vi(e) {
30
- return typeof e == "object" ? e.type === "text" ? ct(e.value) : !1 : ct(e);
25
+ const Pi = /[ \t\n\f\r]/g;
26
+ function Li(e) {
27
+ return typeof e == "object" ? e.type === "text" ? st(e.value) : !1 : st(e);
31
28
  }
32
- function ct(e) {
33
- return e.replace(Li, "") === "";
29
+ function st(e) {
30
+ return e.replace(Pi, "") === "";
34
31
  }
35
32
  class Ve {
36
33
  /**
@@ -53,7 +50,7 @@ function nr(e, t) {
53
50
  Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
54
51
  return new Ve(n, r, t);
55
52
  }
56
- function Ln(e) {
53
+ function Pn(e) {
57
54
  return e.toLowerCase();
58
55
  }
59
56
  class ie {
@@ -76,13 +73,13 @@ ie.prototype.spaceSeparated = !1;
76
73
  ie.prototype.commaOrSpaceSeparated = !1;
77
74
  ie.prototype.mustUseProperty = !1;
78
75
  ie.prototype.defined = !1;
79
- let zi = 0;
76
+ let vi = 0;
80
77
  const M = Ie(), W = Ie(), tr = Ie(), I = Ie(), V = Ie(), ze = Ie(), ne = Ie();
81
78
  function Ie() {
82
- return 2 ** ++zi;
79
+ return 2 ** ++vi;
83
80
  }
84
- const vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: M, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: I, overloadedBoolean: tr, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), fn = Object.keys(vn);
85
- class Bn extends ie {
81
+ const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: M, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: I, overloadedBoolean: tr, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), fn = Object.keys(Ln);
82
+ class Nn extends ie {
86
83
  /**
87
84
  * @constructor
88
85
  * @param {string} property
@@ -92,30 +89,30 @@ class Bn extends ie {
92
89
  */
93
90
  constructor(t, n, r, i) {
94
91
  let o = -1;
95
- if (super(t, n), ft(this, "space", i), typeof r == "number")
92
+ if (super(t, n), ct(this, "space", i), typeof r == "number")
96
93
  for (; ++o < fn.length; ) {
97
94
  const l = fn[o];
98
- ft(this, fn[o], (r & vn[l]) === vn[l]);
95
+ ct(this, fn[o], (r & Ln[l]) === Ln[l]);
99
96
  }
100
97
  }
101
98
  }
102
- Bn.prototype.defined = !0;
103
- function ft(e, t, n) {
99
+ Nn.prototype.defined = !0;
100
+ function ct(e, t, n) {
104
101
  n && (e[t] = n);
105
102
  }
106
- const Di = {}.hasOwnProperty;
103
+ const zi = {}.hasOwnProperty;
107
104
  function Fe(e) {
108
105
  const t = {}, n = {};
109
106
  let r;
110
107
  for (r in e.properties)
111
- if (Di.call(e.properties, r)) {
112
- const i = e.properties[r], o = new Bn(
108
+ if (zi.call(e.properties, r)) {
109
+ const i = e.properties[r], o = new Nn(
113
110
  r,
114
111
  e.transform(e.attributes || {}, r),
115
112
  i,
116
113
  e.space
117
114
  );
118
- e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Ln(r)] = r, n[Ln(o.attribute)] = r;
115
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Pn(r)] = r, n[Pn(o.attribute)] = r;
119
116
  }
120
117
  return new Ve(t, n, e.space);
121
118
  }
@@ -206,7 +203,7 @@ const ar = Fe({
206
203
  ariaValueText: null,
207
204
  role: null
208
205
  }
209
- }), Fi = Fe({
206
+ }), Di = Fe({
210
207
  space: "html",
211
208
  attributes: {
212
209
  acceptcharset: "accept-charset",
@@ -567,7 +564,7 @@ const ar = Fe({
567
564
  security: null,
568
565
  unselectable: null
569
566
  }
570
- }), Oi = Fe({
567
+ }), Fi = Fe({
571
568
  space: "svg",
572
569
  attributes: {
573
570
  accentHeight: "accent-height",
@@ -1126,34 +1123,34 @@ const ar = Fe({
1126
1123
  z: null,
1127
1124
  zoomAndPan: null
1128
1125
  }
1129
- }), Ri = /^data[-\w.:]+$/i, ht = /-[a-z]/g, _i = /[A-Z]/g;
1130
- function Mi(e, t) {
1131
- const n = Ln(t);
1126
+ }), Ri = /^data[-\w.:]+$/i, ft = /-[a-z]/g, Oi = /[A-Z]/g;
1127
+ function _i(e, t) {
1128
+ const n = Pn(t);
1132
1129
  let r = t, i = ie;
1133
1130
  if (n in e.normal)
1134
1131
  return e.property[e.normal[n]];
1135
1132
  if (n.length > 4 && n.slice(0, 4) === "data" && Ri.test(t)) {
1136
1133
  if (t.charAt(4) === "-") {
1137
- const o = t.slice(5).replace(ht, Bi);
1134
+ const o = t.slice(5).replace(ft, Ni);
1138
1135
  r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
1139
1136
  } else {
1140
1137
  const o = t.slice(4);
1141
- if (!ht.test(o)) {
1142
- let l = o.replace(_i, Ni);
1138
+ if (!ft.test(o)) {
1139
+ let l = o.replace(Oi, Mi);
1143
1140
  l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
1144
1141
  }
1145
1142
  }
1146
- i = Bn;
1143
+ i = Nn;
1147
1144
  }
1148
1145
  return new i(r, t);
1149
1146
  }
1150
- function Ni(e) {
1147
+ function Mi(e) {
1151
1148
  return "-" + e.toLowerCase();
1152
1149
  }
1153
- function Bi(e) {
1150
+ function Ni(e) {
1154
1151
  return e.charAt(1).toUpperCase();
1155
1152
  }
1156
- const ji = {
1153
+ const Bi = {
1157
1154
  classId: "classID",
1158
1155
  dataType: "datatype",
1159
1156
  itemId: "itemID",
@@ -1171,18 +1168,18 @@ const ji = {
1171
1168
  xLinkTitle: "xlinkTitle",
1172
1169
  xLinkType: "xlinkType",
1173
1170
  xmlnsXLink: "xmlnsXlink"
1174
- }, Hi = nr([ir, rr, ar, ur, Fi], "html"), jn = nr([ir, rr, ar, ur, Oi], "svg");
1175
- function ef(e) {
1171
+ }, ji = nr([ir, rr, ar, ur, Di], "html"), Bn = nr([ir, rr, ar, ur, Fi], "svg");
1172
+ function Jc(e) {
1176
1173
  const t = String(e || "").trim();
1177
1174
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
1178
1175
  }
1179
- function Ui(e) {
1176
+ function Hi(e) {
1180
1177
  return e.join(" ").trim();
1181
1178
  }
1182
- var Ne = {}, hn, pt;
1183
- function $i() {
1184
- if (pt) return hn;
1185
- pt = 1;
1179
+ var Ne = {}, hn, ht;
1180
+ function Ui() {
1181
+ if (ht) return hn;
1182
+ ht = 1;
1186
1183
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, a = /^\s+|\s+$/g, u = `
1187
1184
  `, s = "/", f = "*", c = "", p = "comment", h = "declaration";
1188
1185
  hn = function(x, E) {
@@ -1194,8 +1191,8 @@ function $i() {
1194
1191
  function C(v) {
1195
1192
  var T = v.match(t);
1196
1193
  T && (y += T.length);
1197
- var O = v.lastIndexOf(u);
1198
- S = ~O ? v.length - O : S + v.length;
1194
+ var R = v.lastIndexOf(u);
1195
+ S = ~R ? v.length - R : S + v.length;
1199
1196
  }
1200
1197
  function F() {
1201
1198
  var v = { line: y, column: S };
@@ -1216,8 +1213,8 @@ function $i() {
1216
1213
  function _(v) {
1217
1214
  var T = v.exec(x);
1218
1215
  if (T) {
1219
- var O = T[0];
1220
- return C(O), x = x.slice(O.length), T;
1216
+ var R = T[0];
1217
+ return C(R), x = x.slice(R.length), T;
1221
1218
  }
1222
1219
  }
1223
1220
  function U() {
@@ -1236,10 +1233,10 @@ function $i() {
1236
1233
  ++T;
1237
1234
  if (T += 2, c === x.charAt(T - 1))
1238
1235
  return w("End of comment missing");
1239
- var O = x.slice(2, T - 2);
1240
- return S += 2, C(O), x = x.slice(T), S += 2, v({
1236
+ var R = x.slice(2, T - 2);
1237
+ return S += 2, C(R), x = x.slice(T), S += 2, v({
1241
1238
  type: p,
1242
- comment: O
1239
+ comment: R
1243
1240
  });
1244
1241
  }
1245
1242
  }
@@ -1247,10 +1244,10 @@ function $i() {
1247
1244
  var v = F(), T = _(r);
1248
1245
  if (T) {
1249
1246
  if (k(), !_(i)) return w("property missing ':'");
1250
- var O = _(o), Q = v({
1247
+ var R = _(o), Q = v({
1251
1248
  type: h,
1252
1249
  property: d(T[0].replace(e, c)),
1253
- value: O ? d(O[0].replace(e, c)) : c
1250
+ value: R ? d(R[0].replace(e, c)) : c
1254
1251
  });
1255
1252
  return _(l), Q;
1256
1253
  }
@@ -1269,15 +1266,15 @@ function $i() {
1269
1266
  }
1270
1267
  return hn;
1271
1268
  }
1272
- var mt;
1269
+ var pt;
1273
1270
  function qi() {
1274
- if (mt) return Ne;
1275
- mt = 1;
1271
+ if (pt) return Ne;
1272
+ pt = 1;
1276
1273
  var e = Ne.__importDefault || function(r) {
1277
1274
  return r && r.__esModule ? r : { default: r };
1278
1275
  };
1279
1276
  Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.default = n;
1280
- var t = e(/* @__PURE__ */ $i());
1277
+ var t = e(/* @__PURE__ */ Ui());
1281
1278
  function n(r, i) {
1282
1279
  var o = null;
1283
1280
  if (!r || typeof r != "string")
@@ -1292,8 +1289,8 @@ function qi() {
1292
1289
  }
1293
1290
  return Ne;
1294
1291
  }
1295
- var Vi = /* @__PURE__ */ qi();
1296
- const gt = /* @__PURE__ */ er(Vi), Wi = gt.default || gt, sr = cr("end"), Hn = cr("start");
1292
+ var $i = /* @__PURE__ */ qi();
1293
+ const mt = /* @__PURE__ */ er($i), Vi = mt.default || mt, sr = cr("end"), jn = cr("start");
1297
1294
  function cr(e) {
1298
1295
  return t;
1299
1296
  function t(n) {
@@ -1306,21 +1303,21 @@ function cr(e) {
1306
1303
  };
1307
1304
  }
1308
1305
  }
1309
- function Qi(e) {
1310
- const t = Hn(e), n = sr(e);
1306
+ function Wi(e) {
1307
+ const t = jn(e), n = sr(e);
1311
1308
  if (t && n)
1312
1309
  return { start: t, end: n };
1313
1310
  }
1314
1311
  function He(e) {
1315
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? dt(e.position) : "start" in e || "end" in e ? dt(e) : "line" in e || "column" in e ? zn(e) : "";
1312
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? gt(e.position) : "start" in e || "end" in e ? gt(e) : "line" in e || "column" in e ? vn(e) : "";
1316
1313
  }
1317
- function zn(e) {
1318
- return yt(e && e.line) + ":" + yt(e && e.column);
1314
+ function vn(e) {
1315
+ return dt(e && e.line) + ":" + dt(e && e.column);
1319
1316
  }
1320
- function dt(e) {
1321
- return zn(e && e.start) + "-" + zn(e && e.end);
1317
+ function gt(e) {
1318
+ return vn(e && e.start) + "-" + vn(e && e.end);
1322
1319
  }
1323
- function yt(e) {
1320
+ function dt(e) {
1324
1321
  return e && typeof e == "number" ? e : 1;
1325
1322
  }
1326
1323
  class K extends Error {
@@ -1410,8 +1407,8 @@ K.prototype.fatal = void 0;
1410
1407
  K.prototype.place = void 0;
1411
1408
  K.prototype.ruleId = void 0;
1412
1409
  K.prototype.source = void 0;
1413
- const Un = {}.hasOwnProperty, Yi = /* @__PURE__ */ new Map(), Gi = /[A-Z]/g, Xi = /-([a-z])/g, Ki = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ji = /* @__PURE__ */ new Set(["td", "th"]), fr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1414
- function Zi(e, t) {
1410
+ const Hn = {}.hasOwnProperty, Qi = /* @__PURE__ */ new Map(), Yi = /[A-Z]/g, Gi = /-([a-z])/g, Xi = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ki = /* @__PURE__ */ new Set(["td", "th"]), fr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1411
+ function Ji(e, t) {
1415
1412
  if (!t || t.Fragment === void 0)
1416
1413
  throw new TypeError("Expected `Fragment` in options");
1417
1414
  const n = t.filePath || void 0;
@@ -1421,13 +1418,13 @@ function Zi(e, t) {
1421
1418
  throw new TypeError(
1422
1419
  "Expected `jsxDEV` in options when `development: true`"
1423
1420
  );
1424
- r = al(n, t.jsxDEV);
1421
+ r = ol(n, t.jsxDEV);
1425
1422
  } else {
1426
1423
  if (typeof t.jsx != "function")
1427
1424
  throw new TypeError("Expected `jsx` in production options");
1428
1425
  if (typeof t.jsxs != "function")
1429
1426
  throw new TypeError("Expected `jsxs` in production options");
1430
- r = ol(n, t.jsx, t.jsxs);
1427
+ r = ll(n, t.jsx, t.jsxs);
1431
1428
  }
1432
1429
  const i = {
1433
1430
  Fragment: t.Fragment,
@@ -1440,7 +1437,7 @@ function Zi(e, t) {
1440
1437
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
1441
1438
  passKeys: t.passKeys !== !1,
1442
1439
  passNode: t.passNode || !1,
1443
- schema: t.space === "svg" ? jn : Hi,
1440
+ schema: t.space === "svg" ? Bn : ji,
1444
1441
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
1445
1442
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
1446
1443
  }, o = hr(i, e, void 0);
@@ -1453,29 +1450,29 @@ function Zi(e, t) {
1453
1450
  }
1454
1451
  function hr(e, t, n) {
1455
1452
  if (t.type === "element")
1456
- return el(e, t, n);
1453
+ return Zi(e, t, n);
1457
1454
  if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
1458
- return nl(e, t);
1455
+ return el(e, t);
1459
1456
  if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
1460
- return rl(e, t, n);
1457
+ return tl(e, t, n);
1461
1458
  if (t.type === "mdxjsEsm")
1462
- return tl(e, t);
1459
+ return nl(e, t);
1463
1460
  if (t.type === "root")
1464
- return il(e, t, n);
1461
+ return rl(e, t, n);
1465
1462
  if (t.type === "text")
1466
- return ll(e, t);
1463
+ return il(e, t);
1467
1464
  }
1468
- function el(e, t, n) {
1465
+ function Zi(e, t, n) {
1469
1466
  const r = e.schema;
1470
1467
  let i = r;
1471
- t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = jn, e.schema = i), e.ancestors.push(t);
1472
- const o = mr(e, t.tagName, !1), l = ul(e, t);
1468
+ t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Bn, e.schema = i), e.ancestors.push(t);
1469
+ const o = mr(e, t.tagName, !1), l = al(e, t);
1473
1470
  let a = qn(e, t);
1474
- return Ki.has(t.tagName) && (a = a.filter(function(u) {
1475
- return typeof u == "string" ? !vi(u) : !0;
1476
- })), pr(e, l, o, t), $n(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1471
+ return Xi.has(t.tagName) && (a = a.filter(function(u) {
1472
+ return typeof u == "string" ? !Li(u) : !0;
1473
+ })), pr(e, l, o, t), Un(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1477
1474
  }
1478
- function nl(e, t) {
1475
+ function el(e, t) {
1479
1476
  if (t.data && t.data.estree && e.evaluater) {
1480
1477
  const r = t.data.estree.body[0];
1481
1478
  return (
@@ -1483,50 +1480,50 @@ function nl(e, t) {
1483
1480
  e.evaluater.evaluateExpression(r.expression)
1484
1481
  );
1485
1482
  }
1486
- $e(e, t.position);
1483
+ qe(e, t.position);
1487
1484
  }
1488
- function tl(e, t) {
1485
+ function nl(e, t) {
1489
1486
  if (t.data && t.data.estree && e.evaluater)
1490
1487
  return (
1491
1488
  /** @type {Child | undefined} */
1492
1489
  e.evaluater.evaluateProgram(t.data.estree)
1493
1490
  );
1494
- $e(e, t.position);
1491
+ qe(e, t.position);
1495
1492
  }
1496
- function rl(e, t, n) {
1493
+ function tl(e, t, n) {
1497
1494
  const r = e.schema;
1498
1495
  let i = r;
1499
- t.name === "svg" && r.space === "html" && (i = jn, e.schema = i), e.ancestors.push(t);
1500
- const o = t.name === null ? e.Fragment : mr(e, t.name, !0), l = sl(e, t), a = qn(e, t);
1501
- return pr(e, l, o, t), $n(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1496
+ t.name === "svg" && r.space === "html" && (i = Bn, e.schema = i), e.ancestors.push(t);
1497
+ const o = t.name === null ? e.Fragment : mr(e, t.name, !0), l = ul(e, t), a = qn(e, t);
1498
+ return pr(e, l, o, t), Un(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1502
1499
  }
1503
- function il(e, t, n) {
1500
+ function rl(e, t, n) {
1504
1501
  const r = {};
1505
- return $n(r, qn(e, t)), e.create(t, e.Fragment, r, n);
1502
+ return Un(r, qn(e, t)), e.create(t, e.Fragment, r, n);
1506
1503
  }
1507
- function ll(e, t) {
1504
+ function il(e, t) {
1508
1505
  return t.value;
1509
1506
  }
1510
1507
  function pr(e, t, n, r) {
1511
1508
  typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
1512
1509
  }
1513
- function $n(e, t) {
1510
+ function Un(e, t) {
1514
1511
  if (t.length > 0) {
1515
1512
  const n = t.length > 1 ? t : t[0];
1516
1513
  n && (e.children = n);
1517
1514
  }
1518
1515
  }
1519
- function ol(e, t, n) {
1516
+ function ll(e, t, n) {
1520
1517
  return r;
1521
1518
  function r(i, o, l, a) {
1522
1519
  const s = Array.isArray(l.children) ? n : t;
1523
1520
  return a ? s(o, l, a) : s(o, l);
1524
1521
  }
1525
1522
  }
1526
- function al(e, t) {
1523
+ function ol(e, t) {
1527
1524
  return n;
1528
1525
  function n(r, i, o, l) {
1529
- const a = Array.isArray(o.children), u = Hn(r);
1526
+ const a = Array.isArray(o.children), u = jn(r);
1530
1527
  return t(
1531
1528
  i,
1532
1529
  o,
@@ -1541,15 +1538,15 @@ function al(e, t) {
1541
1538
  );
1542
1539
  }
1543
1540
  }
1544
- function ul(e, t) {
1541
+ function al(e, t) {
1545
1542
  const n = {};
1546
1543
  let r, i;
1547
1544
  for (i in t.properties)
1548
- if (i !== "children" && Un.call(t.properties, i)) {
1549
- const o = cl(e, i, t.properties[i]);
1545
+ if (i !== "children" && Hn.call(t.properties, i)) {
1546
+ const o = sl(e, i, t.properties[i]);
1550
1547
  if (o) {
1551
1548
  const [l, a] = o;
1552
- e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Ji.has(t.tagName) ? r = a : n[l] = a;
1549
+ e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Ki.has(t.tagName) ? r = a : n[l] = a;
1553
1550
  }
1554
1551
  }
1555
1552
  if (r) {
@@ -1561,7 +1558,7 @@ function ul(e, t) {
1561
1558
  }
1562
1559
  return n;
1563
1560
  }
1564
- function sl(e, t) {
1561
+ function ul(e, t) {
1565
1562
  const n = {};
1566
1563
  for (const r of t.attributes)
1567
1564
  if (r.type === "mdxJsxExpressionAttribute")
@@ -1572,7 +1569,7 @@ function sl(e, t) {
1572
1569
  e.evaluater.evaluateExpression(a.argument)
1573
1570
  );
1574
1571
  } else
1575
- $e(e, t.position);
1572
+ qe(e, t.position);
1576
1573
  else {
1577
1574
  const i = r.name;
1578
1575
  let o;
@@ -1581,7 +1578,7 @@ function sl(e, t) {
1581
1578
  const a = r.value.data.estree.body[0];
1582
1579
  o = e.evaluater.evaluateExpression(a.expression);
1583
1580
  } else
1584
- $e(e, t.position);
1581
+ qe(e, t.position);
1585
1582
  else
1586
1583
  o = r.value === null ? !0 : r.value;
1587
1584
  n[i] = /** @type {Props[keyof Props]} */
@@ -1592,7 +1589,7 @@ function sl(e, t) {
1592
1589
  function qn(e, t) {
1593
1590
  const n = [];
1594
1591
  let r = -1;
1595
- const i = e.passKeys ? /* @__PURE__ */ new Map() : Yi;
1592
+ const i = e.passKeys ? /* @__PURE__ */ new Map() : Qi;
1596
1593
  for (; ++r < t.children.length; ) {
1597
1594
  const o = t.children[r];
1598
1595
  let l;
@@ -1608,23 +1605,23 @@ function qn(e, t) {
1608
1605
  }
1609
1606
  return n;
1610
1607
  }
1611
- function cl(e, t, n) {
1612
- const r = Mi(e.schema, t);
1608
+ function sl(e, t, n) {
1609
+ const r = _i(e.schema, t);
1613
1610
  if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
1614
- if (Array.isArray(n) && (n = r.commaSeparated ? Ii(n) : Ui(n)), r.property === "style") {
1615
- let i = typeof n == "object" ? n : fl(e, String(n));
1616
- return e.stylePropertyNameCase === "css" && (i = hl(i)), ["style", i];
1611
+ if (Array.isArray(n) && (n = r.commaSeparated ? Ei(n) : Hi(n)), r.property === "style") {
1612
+ let i = typeof n == "object" ? n : cl(e, String(n));
1613
+ return e.stylePropertyNameCase === "css" && (i = fl(i)), ["style", i];
1617
1614
  }
1618
1615
  return [
1619
- e.elementAttributeNameCase === "react" && r.space ? ji[r.property] || r.property : r.attribute,
1616
+ e.elementAttributeNameCase === "react" && r.space ? Bi[r.property] || r.property : r.attribute,
1620
1617
  n
1621
1618
  ];
1622
1619
  }
1623
1620
  }
1624
- function fl(e, t) {
1621
+ function cl(e, t) {
1625
1622
  const n = {};
1626
1623
  try {
1627
- Wi(t, r);
1624
+ Vi(t, r);
1628
1625
  } catch (i) {
1629
1626
  if (!e.ignoreInvalidStyle) {
1630
1627
  const o = (
@@ -1642,7 +1639,7 @@ function fl(e, t) {
1642
1639
  return n;
1643
1640
  function r(i, o) {
1644
1641
  let l = i;
1645
- l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(Xi, ml)), n[l] = o;
1642
+ l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(Gi, pl)), n[l] = o;
1646
1643
  }
1647
1644
  }
1648
1645
  function mr(e, t, n) {
@@ -1653,7 +1650,7 @@ function mr(e, t, n) {
1653
1650
  const i = t.split(".");
1654
1651
  let o = -1, l;
1655
1652
  for (; ++o < i.length; ) {
1656
- const a = st(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] };
1653
+ const a = ut(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] };
1657
1654
  l = l ? {
1658
1655
  type: "MemberExpression",
1659
1656
  object: l,
@@ -1664,19 +1661,19 @@ function mr(e, t, n) {
1664
1661
  }
1665
1662
  r = l;
1666
1663
  } else
1667
- r = st(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
1664
+ r = ut(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
1668
1665
  if (r.type === "Literal") {
1669
1666
  const i = (
1670
1667
  /** @type {keyof JSX.IntrinsicElements} */
1671
1668
  r.value
1672
1669
  );
1673
- return Un.call(e.components, i) ? e.components[i] : i;
1670
+ return Hn.call(e.components, i) ? e.components[i] : i;
1674
1671
  }
1675
1672
  if (e.evaluater)
1676
1673
  return e.evaluater.evaluateExpression(r);
1677
- $e(e);
1674
+ qe(e);
1678
1675
  }
1679
- function $e(e, t) {
1676
+ function qe(e, t) {
1680
1677
  const n = new K(
1681
1678
  "Cannot handle MDX estrees without `createEvaluater`",
1682
1679
  {
@@ -1688,21 +1685,21 @@ function $e(e, t) {
1688
1685
  );
1689
1686
  throw n.file = e.filePath || void 0, n.url = fr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
1690
1687
  }
1691
- function hl(e) {
1688
+ function fl(e) {
1692
1689
  const t = {};
1693
1690
  let n;
1694
1691
  for (n in e)
1695
- Un.call(e, n) && (t[pl(n)] = e[n]);
1692
+ Hn.call(e, n) && (t[hl(n)] = e[n]);
1696
1693
  return t;
1697
1694
  }
1698
- function pl(e) {
1699
- let t = e.replace(Gi, gl);
1695
+ function hl(e) {
1696
+ let t = e.replace(Yi, ml);
1700
1697
  return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
1701
1698
  }
1702
- function ml(e, t) {
1699
+ function pl(e, t) {
1703
1700
  return t.toUpperCase();
1704
1701
  }
1705
- function gl(e) {
1702
+ function ml(e) {
1706
1703
  return "-" + e.toLowerCase();
1707
1704
  }
1708
1705
  const pn = {
@@ -1727,37 +1724,37 @@ const pn = {
1727
1724
  "track",
1728
1725
  "video"
1729
1726
  ]
1730
- }, dl = {};
1731
- function Vn(e, t) {
1732
- const n = dl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
1727
+ }, gl = {};
1728
+ function $n(e, t) {
1729
+ const n = gl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
1733
1730
  return gr(e, r, i);
1734
1731
  }
1735
1732
  function gr(e, t, n) {
1736
- if (yl(e)) {
1733
+ if (dl(e)) {
1737
1734
  if ("value" in e)
1738
1735
  return e.type === "html" && !n ? "" : e.value;
1739
1736
  if (t && "alt" in e && e.alt)
1740
1737
  return e.alt;
1741
1738
  if ("children" in e)
1742
- return kt(e.children, t, n);
1739
+ return yt(e.children, t, n);
1743
1740
  }
1744
- return Array.isArray(e) ? kt(e, t, n) : "";
1741
+ return Array.isArray(e) ? yt(e, t, n) : "";
1745
1742
  }
1746
- function kt(e, t, n) {
1743
+ function yt(e, t, n) {
1747
1744
  const r = [];
1748
1745
  let i = -1;
1749
1746
  for (; ++i < e.length; )
1750
1747
  r[i] = gr(e[i], t, n);
1751
1748
  return r.join("");
1752
1749
  }
1753
- function yl(e) {
1750
+ function dl(e) {
1754
1751
  return !!(e && typeof e == "object");
1755
1752
  }
1756
- const xt = document.createElement("i");
1757
- function Wn(e) {
1753
+ const kt = document.createElement("i");
1754
+ function Vn(e) {
1758
1755
  const t = "&" + e + ";";
1759
- xt.innerHTML = t;
1760
- const n = xt.textContent;
1756
+ kt.innerHTML = t;
1757
+ const n = kt.textContent;
1761
1758
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
1762
1759
  }
1763
1760
  function te(e, t, n, r) {
@@ -1772,24 +1769,24 @@ function te(e, t, n, r) {
1772
1769
  function re(e, t) {
1773
1770
  return e.length > 0 ? (te(e, e.length, 0, t), e) : t;
1774
1771
  }
1775
- const bt = {}.hasOwnProperty;
1772
+ const xt = {}.hasOwnProperty;
1776
1773
  function dr(e) {
1777
1774
  const t = {};
1778
1775
  let n = -1;
1779
1776
  for (; ++n < e.length; )
1780
- kl(t, e[n]);
1777
+ yl(t, e[n]);
1781
1778
  return t;
1782
1779
  }
1783
- function kl(e, t) {
1780
+ function yl(e, t) {
1784
1781
  let n;
1785
1782
  for (n in t) {
1786
- const i = (bt.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
1783
+ const i = (xt.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
1787
1784
  let l;
1788
1785
  if (o)
1789
1786
  for (l in o) {
1790
- bt.call(i, l) || (i[l] = []);
1787
+ xt.call(i, l) || (i[l] = []);
1791
1788
  const a = o[l];
1792
- xl(
1789
+ kl(
1793
1790
  // @ts-expect-error Looks like a list.
1794
1791
  i[l],
1795
1792
  Array.isArray(a) ? a : a ? [a] : []
@@ -1797,7 +1794,7 @@ function kl(e, t) {
1797
1794
  }
1798
1795
  }
1799
1796
  }
1800
- function xl(e, t) {
1797
+ function kl(e, t) {
1801
1798
  let n = -1;
1802
1799
  const r = [];
1803
1800
  for (; ++n < t.length; )
@@ -1820,7 +1817,7 @@ function yr(e, t) {
1820
1817
  function se(e) {
1821
1818
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
1822
1819
  }
1823
- const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/), bl = be(/[#-'*+\--9=?A-Z^-~]/);
1820
+ const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/), xl = be(/[#-'*+\--9=?A-Z^-~]/);
1824
1821
  function en(e) {
1825
1822
  return (
1826
1823
  // Special whitespace codes (which have negative values), C0 and Control
@@ -1828,11 +1825,11 @@ function en(e) {
1828
1825
  e !== null && (e < 32 || e === 127)
1829
1826
  );
1830
1827
  }
1831
- const Dn = be(/\d/), wl = be(/[\dA-Fa-f]/), Sl = be(/[!-/:-@[-`{-~]/);
1828
+ const zn = be(/\d/), bl = be(/[\dA-Fa-f]/), wl = be(/[!-/:-@[-`{-~]/);
1832
1829
  function D(e) {
1833
1830
  return e !== null && e < -2;
1834
1831
  }
1835
- function q(e) {
1832
+ function $(e) {
1836
1833
  return e !== null && (e < 0 || e === 32);
1837
1834
  }
1838
1835
  function N(e) {
@@ -1845,7 +1842,7 @@ function be(e) {
1845
1842
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
1846
1843
  }
1847
1844
  }
1848
- function Oe(e) {
1845
+ function Re(e) {
1849
1846
  const t = [];
1850
1847
  let n = -1, r = 0, i = 0;
1851
1848
  for (; ++n < e.length; ) {
@@ -1875,10 +1872,10 @@ function j(e, t, n, r) {
1875
1872
  return N(u) && o++ < i ? (e.consume(u), a) : (e.exit(n), t(u));
1876
1873
  }
1877
1874
  }
1878
- const Cl = {
1879
- tokenize: El
1875
+ const Sl = {
1876
+ tokenize: Cl
1880
1877
  };
1881
- function El(e) {
1878
+ function Cl(e) {
1882
1879
  const t = e.attempt(this.parser.constructs.contentInitial, r, i);
1883
1880
  let n;
1884
1881
  return t;
@@ -1907,12 +1904,12 @@ function El(e) {
1907
1904
  return D(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
1908
1905
  }
1909
1906
  }
1910
- const Il = {
1907
+ const El = {
1908
+ tokenize: Il
1909
+ }, bt = {
1911
1910
  tokenize: Al
1912
- }, wt = {
1913
- tokenize: Tl
1914
1911
  };
1915
- function Al(e) {
1912
+ function Il(e) {
1916
1913
  const t = this, n = [];
1917
1914
  let r = 0, i, o, l;
1918
1915
  return a;
@@ -1951,7 +1948,7 @@ function Al(e) {
1951
1948
  return d(C);
1952
1949
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
1953
1950
  }
1954
- return t.containerState = {}, e.check(wt, f, c)(C);
1951
+ return t.containerState = {}, e.check(bt, f, c)(C);
1955
1952
  }
1956
1953
  function f(C) {
1957
1954
  return i && S(), y(r), p(C);
@@ -1960,7 +1957,7 @@ function Al(e) {
1960
1957
  return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, d(C);
1961
1958
  }
1962
1959
  function p(C) {
1963
- return t.containerState = {}, e.attempt(wt, h, d)(C);
1960
+ return t.containerState = {}, e.attempt(bt, h, d)(C);
1964
1961
  }
1965
1962
  function h(C) {
1966
1963
  return r++, n.push([t.currentConstruct, t.containerState]), p(C);
@@ -2024,11 +2021,11 @@ function Al(e) {
2024
2021
  i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
2025
2022
  }
2026
2023
  }
2027
- function Tl(e, t, n) {
2024
+ function Al(e, t, n) {
2028
2025
  return j(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2029
2026
  }
2030
2027
  function De(e) {
2031
- if (e === null || q(e) || Ee(e))
2028
+ if (e === null || $(e) || Ee(e))
2032
2029
  return 1;
2033
2030
  if (on(e))
2034
2031
  return 2;
@@ -2042,12 +2039,12 @@ function an(e, t, n) {
2042
2039
  }
2043
2040
  return t;
2044
2041
  }
2045
- const Fn = {
2042
+ const Dn = {
2046
2043
  name: "attention",
2047
- resolveAll: Pl,
2048
- tokenize: Ll
2044
+ resolveAll: Tl,
2045
+ tokenize: Pl
2049
2046
  };
2050
- function Pl(e, t) {
2047
+ function Tl(e, t) {
2051
2048
  let n = -1, r, i, o, l, a, u, s, f;
2052
2049
  for (; ++n < e.length; )
2053
2050
  if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
@@ -2062,7 +2059,7 @@ function Pl(e, t) {
2062
2059
  }, p = {
2063
2060
  ...e[n][1].start
2064
2061
  };
2065
- St(c, -u), St(p, u), l = {
2062
+ wt(c, -u), wt(p, u), l = {
2066
2063
  type: u > 1 ? "strongSequence" : "emphasisSequence",
2067
2064
  start: c,
2068
2065
  end: {
@@ -2102,7 +2099,7 @@ function Pl(e, t) {
2102
2099
  e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
2103
2100
  return e;
2104
2101
  }
2105
- function Ll(e, t) {
2102
+ function Pl(e, t) {
2106
2103
  const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = De(r);
2107
2104
  let o;
2108
2105
  return l;
@@ -2116,14 +2113,14 @@ function Ll(e, t) {
2116
2113
  return s._open = !!(o === 42 ? c : c && (i || !p)), s._close = !!(o === 42 ? p : p && (f || !c)), t(u);
2117
2114
  }
2118
2115
  }
2119
- function St(e, t) {
2116
+ function wt(e, t) {
2120
2117
  e.column += t, e.offset += t, e._bufferIndex += t;
2121
2118
  }
2122
- const vl = {
2119
+ const Ll = {
2123
2120
  name: "autolink",
2124
- tokenize: zl
2121
+ tokenize: vl
2125
2122
  };
2126
- function zl(e, t, n) {
2123
+ function vl(e, t, n) {
2127
2124
  let r = 0;
2128
2125
  return i;
2129
2126
  function i(h) {
@@ -2142,7 +2139,7 @@ function zl(e, t, n) {
2142
2139
  return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || en(h) ? n(h) : (e.consume(h), u);
2143
2140
  }
2144
2141
  function s(h) {
2145
- return h === 64 ? (e.consume(h), f) : bl(h) ? (e.consume(h), s) : n(h);
2142
+ return h === 64 ? (e.consume(h), f) : xl(h) ? (e.consume(h), s) : n(h);
2146
2143
  }
2147
2144
  function f(h) {
2148
2145
  return X(h) ? c(h) : n(h);
@@ -2160,9 +2157,9 @@ function zl(e, t, n) {
2160
2157
  }
2161
2158
  const We = {
2162
2159
  partial: !0,
2163
- tokenize: Dl
2160
+ tokenize: zl
2164
2161
  };
2165
- function Dl(e, t, n) {
2162
+ function zl(e, t, n) {
2166
2163
  return r;
2167
2164
  function r(o) {
2168
2165
  return N(o) ? j(e, i, "linePrefix")(o) : i(o);
@@ -2173,13 +2170,13 @@ function Dl(e, t, n) {
2173
2170
  }
2174
2171
  const kr = {
2175
2172
  continuation: {
2176
- tokenize: Ol
2173
+ tokenize: Fl
2177
2174
  },
2178
2175
  exit: Rl,
2179
2176
  name: "blockQuote",
2180
- tokenize: Fl
2177
+ tokenize: Dl
2181
2178
  };
2182
- function Fl(e, t, n) {
2179
+ function Dl(e, t, n) {
2183
2180
  const r = this;
2184
2181
  return i;
2185
2182
  function i(l) {
@@ -2195,7 +2192,7 @@ function Fl(e, t, n) {
2195
2192
  return N(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
2196
2193
  }
2197
2194
  }
2198
- function Ol(e, t, n) {
2195
+ function Fl(e, t, n) {
2199
2196
  const r = this;
2200
2197
  return i;
2201
2198
  function i(l) {
@@ -2210,22 +2207,22 @@ function Rl(e) {
2210
2207
  }
2211
2208
  const xr = {
2212
2209
  name: "characterEscape",
2213
- tokenize: _l
2210
+ tokenize: Ol
2214
2211
  };
2215
- function _l(e, t, n) {
2212
+ function Ol(e, t, n) {
2216
2213
  return r;
2217
2214
  function r(o) {
2218
2215
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
2219
2216
  }
2220
2217
  function i(o) {
2221
- return Sl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
2218
+ return wl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
2222
2219
  }
2223
2220
  }
2224
2221
  const br = {
2225
2222
  name: "characterReference",
2226
- tokenize: Ml
2223
+ tokenize: _l
2227
2224
  };
2228
- function Ml(e, t, n) {
2225
+ function _l(e, t, n) {
2229
2226
  const r = this;
2230
2227
  let i = 0, o, l;
2231
2228
  return a;
@@ -2236,25 +2233,25 @@ function Ml(e, t, n) {
2236
2233
  return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = X, f(c));
2237
2234
  }
2238
2235
  function s(c) {
2239
- return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = wl, f) : (e.enter("characterReferenceValue"), o = 7, l = Dn, f(c));
2236
+ return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = bl, f) : (e.enter("characterReferenceValue"), o = 7, l = zn, f(c));
2240
2237
  }
2241
2238
  function f(c) {
2242
2239
  if (c === 59 && i) {
2243
2240
  const p = e.exit("characterReferenceValue");
2244
- return l === X && !Wn(r.sliceSerialize(p)) ? n(c) : (e.enter("characterReferenceMarker"), e.consume(c), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
2241
+ return l === X && !Vn(r.sliceSerialize(p)) ? n(c) : (e.enter("characterReferenceMarker"), e.consume(c), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
2245
2242
  }
2246
2243
  return l(c) && i++ < o ? (e.consume(c), f) : n(c);
2247
2244
  }
2248
2245
  }
2249
- const Ct = {
2246
+ const St = {
2250
2247
  partial: !0,
2251
- tokenize: Bl
2252
- }, Et = {
2248
+ tokenize: Nl
2249
+ }, Ct = {
2253
2250
  concrete: !0,
2254
2251
  name: "codeFenced",
2255
- tokenize: Nl
2252
+ tokenize: Ml
2256
2253
  };
2257
- function Nl(e, t, n) {
2254
+ function Ml(e, t, n) {
2258
2255
  const r = this, i = {
2259
2256
  partial: !0,
2260
2257
  tokenize: z
@@ -2272,7 +2269,7 @@ function Nl(e, t, n) {
2272
2269
  return w === a ? (l++, e.consume(w), f) : l < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), N(w) ? j(e, c, "whitespace")(w) : c(w));
2273
2270
  }
2274
2271
  function c(w) {
2275
- return w === null || D(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(Ct, x, F)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2272
+ return w === null || D(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(St, x, F)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2276
2273
  contentType: "string"
2277
2274
  }), p(w));
2278
2275
  }
@@ -2297,7 +2294,7 @@ function Nl(e, t, n) {
2297
2294
  return o > 0 && N(w) ? j(e, S, "linePrefix", o + 1)(w) : S(w);
2298
2295
  }
2299
2296
  function S(w) {
2300
- return w === null || D(w) ? e.check(Ct, x, F)(w) : (e.enter("codeFlowValue"), C(w));
2297
+ return w === null || D(w) ? e.check(St, x, F)(w) : (e.enter("codeFlowValue"), C(w));
2301
2298
  }
2302
2299
  function C(w) {
2303
2300
  return w === null || D(w) ? (e.exit("codeFlowValue"), S(w)) : (e.consume(w), C);
@@ -2308,24 +2305,24 @@ function Nl(e, t, n) {
2308
2305
  function z(w, _, U) {
2309
2306
  let H = 0;
2310
2307
  return k;
2311
- function k(O) {
2312
- return w.enter("lineEnding"), w.consume(O), w.exit("lineEnding"), P;
2308
+ function k(R) {
2309
+ return w.enter("lineEnding"), w.consume(R), w.exit("lineEnding"), P;
2313
2310
  }
2314
- function P(O) {
2315
- return w.enter("codeFencedFence"), N(O) ? j(w, L, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : L(O);
2311
+ function P(R) {
2312
+ return w.enter("codeFencedFence"), N(R) ? j(w, L, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(R) : L(R);
2316
2313
  }
2317
- function L(O) {
2318
- return O === a ? (w.enter("codeFencedFenceSequence"), v(O)) : U(O);
2314
+ function L(R) {
2315
+ return R === a ? (w.enter("codeFencedFenceSequence"), v(R)) : U(R);
2319
2316
  }
2320
- function v(O) {
2321
- return O === a ? (H++, w.consume(O), v) : H >= l ? (w.exit("codeFencedFenceSequence"), N(O) ? j(w, T, "whitespace")(O) : T(O)) : U(O);
2317
+ function v(R) {
2318
+ return R === a ? (H++, w.consume(R), v) : H >= l ? (w.exit("codeFencedFenceSequence"), N(R) ? j(w, T, "whitespace")(R) : T(R)) : U(R);
2322
2319
  }
2323
- function T(O) {
2324
- return O === null || D(O) ? (w.exit("codeFencedFence"), _(O)) : U(O);
2320
+ function T(R) {
2321
+ return R === null || D(R) ? (w.exit("codeFencedFence"), _(R)) : U(R);
2325
2322
  }
2326
2323
  }
2327
2324
  }
2328
- function Bl(e, t, n) {
2325
+ function Nl(e, t, n) {
2329
2326
  const r = this;
2330
2327
  return i;
2331
2328
  function i(l) {
@@ -2337,12 +2334,12 @@ function Bl(e, t, n) {
2337
2334
  }
2338
2335
  const mn = {
2339
2336
  name: "codeIndented",
2340
- tokenize: Hl
2341
- }, jl = {
2337
+ tokenize: jl
2338
+ }, Bl = {
2342
2339
  partial: !0,
2343
- tokenize: Ul
2340
+ tokenize: Hl
2344
2341
  };
2345
- function Hl(e, t, n) {
2342
+ function jl(e, t, n) {
2346
2343
  const r = this;
2347
2344
  return i;
2348
2345
  function i(s) {
@@ -2353,7 +2350,7 @@ function Hl(e, t, n) {
2353
2350
  return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
2354
2351
  }
2355
2352
  function l(s) {
2356
- return s === null ? u(s) : D(s) ? e.attempt(jl, l, u)(s) : (e.enter("codeFlowValue"), a(s));
2353
+ return s === null ? u(s) : D(s) ? e.attempt(Bl, l, u)(s) : (e.enter("codeFlowValue"), a(s));
2357
2354
  }
2358
2355
  function a(s) {
2359
2356
  return s === null || D(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), a);
@@ -2362,7 +2359,7 @@ function Hl(e, t, n) {
2362
2359
  return e.exit("codeIndented"), t(s);
2363
2360
  }
2364
2361
  }
2365
- function Ul(e, t, n) {
2362
+ function Hl(e, t, n) {
2366
2363
  const r = this;
2367
2364
  return i;
2368
2365
  function i(l) {
@@ -2373,11 +2370,11 @@ function Ul(e, t, n) {
2373
2370
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : D(l) ? i(l) : n(l);
2374
2371
  }
2375
2372
  }
2376
- const $l = {
2373
+ const Ul = {
2377
2374
  name: "codeText",
2378
- previous: Vl,
2375
+ previous: $l,
2379
2376
  resolve: ql,
2380
- tokenize: Wl
2377
+ tokenize: Vl
2381
2378
  };
2382
2379
  function ql(e) {
2383
2380
  let t = e.length - 4, n = 3, r, i;
@@ -2392,10 +2389,10 @@ function ql(e) {
2392
2389
  i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
2393
2390
  return e;
2394
2391
  }
2395
- function Vl(e) {
2392
+ function $l(e) {
2396
2393
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
2397
2394
  }
2398
- function Wl(e, t, n) {
2395
+ function Vl(e, t, n) {
2399
2396
  let r = 0, i, o;
2400
2397
  return l;
2401
2398
  function l(c) {
@@ -2414,7 +2411,7 @@ function Wl(e, t, n) {
2414
2411
  return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
2415
2412
  }
2416
2413
  }
2417
- class Ql {
2414
+ class Wl {
2418
2415
  /**
2419
2416
  * @param {ReadonlyArray<T> | null | undefined} [initial]
2420
2417
  * Initial items (optional).
@@ -2589,7 +2586,7 @@ function Be(e, t) {
2589
2586
  function wr(e) {
2590
2587
  const t = {};
2591
2588
  let n = -1, r, i, o, l, a, u, s;
2592
- const f = new Ql(e);
2589
+ const f = new Wl(e);
2593
2590
  for (; ++n < f.length; ) {
2594
2591
  for (; n in t; )
2595
2592
  n = t[n];
@@ -2597,7 +2594,7 @@ function wr(e) {
2597
2594
  for (; ++o < u.length && u[o][1].type !== "content"; )
2598
2595
  u[o][1].type === "chunkText" && (u[o][1]._isInFirstContentOfListItem = !0, o++);
2599
2596
  if (r[0] === "enter")
2600
- r[1].contentType && (Object.assign(t, Yl(f, n)), n = t[n], s = !0);
2597
+ r[1].contentType && (Object.assign(t, Ql(f, n)), n = t[n], s = !0);
2601
2598
  else if (r[1]._container) {
2602
2599
  for (o = n, i = void 0; o-- && (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
2603
2600
  l[0] === "enter" && (i && (f.get(i)[1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
@@ -2608,7 +2605,7 @@ function wr(e) {
2608
2605
  }
2609
2606
  return te(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
2610
2607
  }
2611
- function Yl(e, t) {
2608
+ function Ql(e, t) {
2612
2609
  const n = e.get(t)[1], r = e.get(t)[2];
2613
2610
  let i = t - 1;
2614
2611
  const o = [], l = n._tokenizer || r.parser[n.contentType](n.start), a = l.events, u = [], s = {};
@@ -2630,17 +2627,17 @@ function Yl(e, t) {
2630
2627
  s[d + u[p][0]] = d + u[p][1], d += u[p][1] - u[p][0] - 1;
2631
2628
  return s;
2632
2629
  }
2633
- const Gl = {
2634
- resolve: Kl,
2635
- tokenize: Jl
2636
- }, Xl = {
2630
+ const Yl = {
2631
+ resolve: Xl,
2632
+ tokenize: Kl
2633
+ }, Gl = {
2637
2634
  partial: !0,
2638
- tokenize: Zl
2635
+ tokenize: Jl
2639
2636
  };
2640
- function Kl(e) {
2637
+ function Xl(e) {
2641
2638
  return wr(e), e;
2642
2639
  }
2643
- function Jl(e, t) {
2640
+ function Kl(e, t) {
2644
2641
  let n;
2645
2642
  return r;
2646
2643
  function r(a) {
@@ -2649,7 +2646,7 @@ function Jl(e, t) {
2649
2646
  }), i(a);
2650
2647
  }
2651
2648
  function i(a) {
2652
- return a === null ? o(a) : D(a) ? e.check(Xl, l, o)(a) : (e.consume(a), i);
2649
+ return a === null ? o(a) : D(a) ? e.check(Gl, l, o)(a) : (e.consume(a), i);
2653
2650
  }
2654
2651
  function o(a) {
2655
2652
  return e.exit("chunkContent"), e.exit("content"), t(a);
@@ -2661,7 +2658,7 @@ function Jl(e, t) {
2661
2658
  }), n = n.next, i;
2662
2659
  }
2663
2660
  }
2664
- function Zl(e, t, n) {
2661
+ function Jl(e, t, n) {
2665
2662
  const r = this;
2666
2663
  return i;
2667
2664
  function i(l) {
@@ -2695,7 +2692,7 @@ function Sr(e, t, n, r, i, o, l, a, u) {
2695
2692
  return y === 60 || y === 62 || y === 92 ? (e.consume(y), h) : h(y);
2696
2693
  }
2697
2694
  function x(y) {
2698
- return !f && (y === null || y === 41 || q(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 || en(y) ? n(y) : (e.consume(y), y === 92 ? E : x);
2695
+ return !f && (y === null || y === 41 || $(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 || en(y) ? n(y) : (e.consume(y), y === 92 ? E : x);
2699
2696
  }
2700
2697
  function E(y) {
2701
2698
  return y === 40 || y === 41 || y === 92 ? (e.consume(y), x) : x(y);
@@ -2753,14 +2750,14 @@ function Ue(e, t) {
2753
2750
  return D(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : N(i) ? j(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
2754
2751
  }
2755
2752
  }
2756
- const eo = {
2753
+ const Zl = {
2757
2754
  name: "definition",
2758
- tokenize: to
2759
- }, no = {
2755
+ tokenize: no
2756
+ }, eo = {
2760
2757
  partial: !0,
2761
- tokenize: ro
2758
+ tokenize: to
2762
2759
  };
2763
- function to(e, t, n) {
2760
+ function no(e, t, n) {
2764
2761
  const r = this;
2765
2762
  let i;
2766
2763
  return o;
@@ -2783,7 +2780,7 @@ function to(e, t, n) {
2783
2780
  return i = se(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), u) : n(h);
2784
2781
  }
2785
2782
  function u(h) {
2786
- return q(h) ? Ue(e, s)(h) : s(h);
2783
+ return $(h) ? Ue(e, s)(h) : s(h);
2787
2784
  }
2788
2785
  function s(h) {
2789
2786
  return Sr(
@@ -2799,7 +2796,7 @@ function to(e, t, n) {
2799
2796
  )(h);
2800
2797
  }
2801
2798
  function f(h) {
2802
- return e.attempt(no, c, c)(h);
2799
+ return e.attempt(eo, c, c)(h);
2803
2800
  }
2804
2801
  function c(h) {
2805
2802
  return N(h) ? j(e, p, "whitespace")(h) : p(h);
@@ -2808,10 +2805,10 @@ function to(e, t, n) {
2808
2805
  return h === null || D(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
2809
2806
  }
2810
2807
  }
2811
- function ro(e, t, n) {
2808
+ function to(e, t, n) {
2812
2809
  return r;
2813
2810
  function r(a) {
2814
- return q(a) ? Ue(e, i)(a) : n(a);
2811
+ return $(a) ? Ue(e, i)(a) : n(a);
2815
2812
  }
2816
2813
  function i(a) {
2817
2814
  return Er(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
@@ -2823,11 +2820,11 @@ function ro(e, t, n) {
2823
2820
  return a === null || D(a) ? t(a) : n(a);
2824
2821
  }
2825
2822
  }
2826
- const io = {
2823
+ const ro = {
2827
2824
  name: "hardBreakEscape",
2828
- tokenize: lo
2825
+ tokenize: io
2829
2826
  };
2830
- function lo(e, t, n) {
2827
+ function io(e, t, n) {
2831
2828
  return r;
2832
2829
  function r(o) {
2833
2830
  return e.enter("hardBreakEscape"), e.consume(o), i;
@@ -2836,12 +2833,12 @@ function lo(e, t, n) {
2836
2833
  return D(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
2837
2834
  }
2838
2835
  }
2839
- const oo = {
2836
+ const lo = {
2840
2837
  name: "headingAtx",
2841
- resolve: ao,
2842
- tokenize: uo
2838
+ resolve: oo,
2839
+ tokenize: ao
2843
2840
  };
2844
- function ao(e, t) {
2841
+ function oo(e, t) {
2845
2842
  let n = e.length - 2, r = 3, i, o;
2846
2843
  return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
2847
2844
  type: "atxHeadingText",
@@ -2854,7 +2851,7 @@ function ao(e, t) {
2854
2851
  contentType: "text"
2855
2852
  }, te(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
2856
2853
  }
2857
- function uo(e, t, n) {
2854
+ function ao(e, t, n) {
2858
2855
  let r = 0;
2859
2856
  return i;
2860
2857
  function i(f) {
@@ -2864,7 +2861,7 @@ function uo(e, t, n) {
2864
2861
  return e.enter("atxHeadingSequence"), l(f);
2865
2862
  }
2866
2863
  function l(f) {
2867
- return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || q(f) ? (e.exit("atxHeadingSequence"), a(f)) : n(f);
2864
+ return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || $(f) ? (e.exit("atxHeadingSequence"), a(f)) : n(f);
2868
2865
  }
2869
2866
  function a(f) {
2870
2867
  return f === 35 ? (e.enter("atxHeadingSequence"), u(f)) : f === null || D(f) ? (e.exit("atxHeading"), t(f)) : N(f) ? j(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), s(f));
@@ -2873,10 +2870,10 @@ function uo(e, t, n) {
2873
2870
  return f === 35 ? (e.consume(f), u) : (e.exit("atxHeadingSequence"), a(f));
2874
2871
  }
2875
2872
  function s(f) {
2876
- return f === null || f === 35 || q(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
2873
+ return f === null || f === 35 || $(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
2877
2874
  }
2878
2875
  }
2879
- const so = [
2876
+ const uo = [
2880
2877
  "address",
2881
2878
  "article",
2882
2879
  "aside",
@@ -2939,25 +2936,25 @@ const so = [
2939
2936
  "tr",
2940
2937
  "track",
2941
2938
  "ul"
2942
- ], It = ["pre", "script", "style", "textarea"], co = {
2939
+ ], Et = ["pre", "script", "style", "textarea"], so = {
2943
2940
  concrete: !0,
2944
2941
  name: "htmlFlow",
2945
- resolveTo: po,
2946
- tokenize: mo
2947
- }, fo = {
2948
- partial: !0,
2949
- tokenize: yo
2950
- }, ho = {
2942
+ resolveTo: ho,
2943
+ tokenize: po
2944
+ }, co = {
2951
2945
  partial: !0,
2952
2946
  tokenize: go
2947
+ }, fo = {
2948
+ partial: !0,
2949
+ tokenize: mo
2953
2950
  };
2954
- function po(e) {
2951
+ function ho(e) {
2955
2952
  let t = e.length;
2956
2953
  for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
2957
2954
  ;
2958
2955
  return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
2959
2956
  }
2960
- function mo(e, t, n) {
2957
+ function po(e, t, n) {
2961
2958
  const r = this;
2962
2959
  let i, o, l, a, u;
2963
2960
  return s;
@@ -2984,9 +2981,9 @@ function mo(e, t, n) {
2984
2981
  return J(g) ? (e.consume(g), l = String.fromCharCode(g), E) : n(g);
2985
2982
  }
2986
2983
  function E(g) {
2987
- if (g === null || g === 47 || g === 62 || q(g)) {
2984
+ if (g === null || g === 47 || g === 62 || $(g)) {
2988
2985
  const ae = g === 47, we = l.toLowerCase();
2989
- return !ae && !o && It.includes(we) ? (i = 1, r.interrupt ? t(g) : L(g)) : so.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : L(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? S(g) : C(g));
2986
+ return !ae && !o && Et.includes(we) ? (i = 1, r.interrupt ? t(g) : L(g)) : uo.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : L(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? S(g) : C(g));
2990
2987
  }
2991
2988
  return g === 45 || X(g) ? (e.consume(g), l += String.fromCharCode(g), E) : n(g);
2992
2989
  }
@@ -3012,7 +3009,7 @@ function mo(e, t, n) {
3012
3009
  return g === u ? (e.consume(g), u = null, H) : g === null || D(g) ? n(g) : (e.consume(g), _);
3013
3010
  }
3014
3011
  function U(g) {
3015
- return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || q(g) ? z(g) : (e.consume(g), U);
3012
+ return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || $(g) ? z(g) : (e.consume(g), U);
3016
3013
  }
3017
3014
  function H(g) {
3018
3015
  return g === 47 || g === 62 || N(g) ? C(g) : n(g);
@@ -3024,15 +3021,15 @@ function mo(e, t, n) {
3024
3021
  return g === null || D(g) ? L(g) : N(g) ? (e.consume(g), P) : n(g);
3025
3022
  }
3026
3023
  function L(g) {
3027
- return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(fo, pe, v)(g)) : g === null || D(g) ? (e.exit("htmlFlowData"), v(g)) : (e.consume(g), L);
3024
+ return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(co, pe, v)(g)) : g === null || D(g) ? (e.exit("htmlFlowData"), v(g)) : (e.consume(g), L);
3028
3025
  }
3029
3026
  function v(g) {
3030
- return e.check(ho, T, pe)(g);
3027
+ return e.check(fo, T, pe)(g);
3031
3028
  }
3032
3029
  function T(g) {
3033
- return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), O;
3030
+ return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), R;
3034
3031
  }
3035
- function O(g) {
3032
+ function R(g) {
3036
3033
  return g === null || D(g) ? v(g) : (e.enter("htmlFlowData"), L(g));
3037
3034
  }
3038
3035
  function Q(g) {
@@ -3044,7 +3041,7 @@ function mo(e, t, n) {
3044
3041
  function le(g) {
3045
3042
  if (g === 62) {
3046
3043
  const ae = l.toLowerCase();
3047
- return It.includes(ae) ? (e.consume(g), oe) : L(g);
3044
+ return Et.includes(ae) ? (e.consume(g), oe) : L(g);
3048
3045
  }
3049
3046
  return J(g) && l.length < 8 ? (e.consume(g), l += String.fromCharCode(g), le) : L(g);
3050
3047
  }
@@ -3061,7 +3058,7 @@ function mo(e, t, n) {
3061
3058
  return e.exit("htmlFlow"), t(g);
3062
3059
  }
3063
3060
  }
3064
- function go(e, t, n) {
3061
+ function mo(e, t, n) {
3065
3062
  const r = this;
3066
3063
  return i;
3067
3064
  function i(l) {
@@ -3071,17 +3068,17 @@ function go(e, t, n) {
3071
3068
  return r.parser.lazy[r.now().line] ? n(l) : t(l);
3072
3069
  }
3073
3070
  }
3074
- function yo(e, t, n) {
3071
+ function go(e, t, n) {
3075
3072
  return r;
3076
3073
  function r(i) {
3077
3074
  return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(We, t, n);
3078
3075
  }
3079
3076
  }
3080
- const ko = {
3077
+ const yo = {
3081
3078
  name: "htmlText",
3082
- tokenize: xo
3079
+ tokenize: ko
3083
3080
  };
3084
- function xo(e, t, n) {
3081
+ function ko(e, t, n) {
3085
3082
  const r = this;
3086
3083
  let i, o, l;
3087
3084
  return a;
@@ -3138,7 +3135,7 @@ function xo(e, t, n) {
3138
3135
  return D(m) ? (l = _, Y(m)) : N(m) ? (e.consume(m), _) : Q(m);
3139
3136
  }
3140
3137
  function U(m) {
3141
- return m === 45 || X(m) ? (e.consume(m), U) : m === 47 || m === 62 || q(m) ? H(m) : n(m);
3138
+ return m === 45 || X(m) ? (e.consume(m), U) : m === 47 || m === 62 || $(m) ? H(m) : n(m);
3142
3139
  }
3143
3140
  function H(m) {
3144
3141
  return m === 47 ? (e.consume(m), Q) : m === 58 || m === 95 || J(m) ? (e.consume(m), k) : D(m) ? (l = H, Y(m)) : N(m) ? (e.consume(m), H) : Q(m);
@@ -3153,13 +3150,13 @@ function xo(e, t, n) {
3153
3150
  return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, v) : D(m) ? (l = L, Y(m)) : N(m) ? (e.consume(m), L) : (e.consume(m), T);
3154
3151
  }
3155
3152
  function v(m) {
3156
- return m === i ? (e.consume(m), i = void 0, O) : m === null ? n(m) : D(m) ? (l = v, Y(m)) : (e.consume(m), v);
3153
+ return m === i ? (e.consume(m), i = void 0, R) : m === null ? n(m) : D(m) ? (l = v, Y(m)) : (e.consume(m), v);
3157
3154
  }
3158
3155
  function T(m) {
3159
- return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || q(m) ? H(m) : (e.consume(m), T);
3156
+ return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || $(m) ? H(m) : (e.consume(m), T);
3160
3157
  }
3161
- function O(m) {
3162
- return m === 47 || m === 62 || q(m) ? H(m) : n(m);
3158
+ function R(m) {
3159
+ return m === 47 || m === 62 || $(m) ? H(m) : n(m);
3163
3160
  }
3164
3161
  function Q(m) {
3165
3162
  return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
@@ -3174,19 +3171,19 @@ function xo(e, t, n) {
3174
3171
  return e.enter("htmlTextData"), l(m);
3175
3172
  }
3176
3173
  }
3177
- const Qn = {
3174
+ const Wn = {
3178
3175
  name: "labelEnd",
3179
- resolveAll: Co,
3180
- resolveTo: Eo,
3176
+ resolveAll: So,
3177
+ resolveTo: Co,
3178
+ tokenize: Eo
3179
+ }, xo = {
3181
3180
  tokenize: Io
3182
3181
  }, bo = {
3183
3182
  tokenize: Ao
3184
3183
  }, wo = {
3185
3184
  tokenize: To
3186
- }, So = {
3187
- tokenize: Po
3188
3185
  };
3189
- function Co(e) {
3186
+ function So(e) {
3190
3187
  let t = -1;
3191
3188
  const n = [];
3192
3189
  for (; ++t < e.length; ) {
@@ -3198,7 +3195,7 @@ function Co(e) {
3198
3195
  }
3199
3196
  return e.length !== n.length && te(e, 0, e.length, n), e;
3200
3197
  }
3201
- function Eo(e, t) {
3198
+ function Co(e, t) {
3202
3199
  let n = e.length, r = 0, i, o, l, a;
3203
3200
  for (; n--; )
3204
3201
  if (i = e[n][1], o) {
@@ -3238,7 +3235,7 @@ function Eo(e, t) {
3238
3235
  };
3239
3236
  return a = [["enter", u, t], ["enter", s, t]], a = re(a, e.slice(o + 1, o + r + 3)), a = re(a, [["enter", f, t]]), a = re(a, an(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = re(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = re(a, e.slice(l + 1)), a = re(a, [["exit", u, t]]), te(e, o, e.length, a), e;
3240
3237
  }
3241
- function Io(e, t, n) {
3238
+ function Eo(e, t, n) {
3242
3239
  const r = this;
3243
3240
  let i = r.events.length, o, l;
3244
3241
  for (; i--; )
@@ -3254,10 +3251,10 @@ function Io(e, t, n) {
3254
3251
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
3255
3252
  }
3256
3253
  function u(p) {
3257
- return p === 40 ? e.attempt(bo, f, l ? f : c)(p) : p === 91 ? e.attempt(wo, f, l ? s : c)(p) : l ? f(p) : c(p);
3254
+ return p === 40 ? e.attempt(xo, f, l ? f : c)(p) : p === 91 ? e.attempt(bo, f, l ? s : c)(p) : l ? f(p) : c(p);
3258
3255
  }
3259
3256
  function s(p) {
3260
- return e.attempt(So, f, c)(p);
3257
+ return e.attempt(wo, f, c)(p);
3261
3258
  }
3262
3259
  function f(p) {
3263
3260
  return t(p);
@@ -3266,19 +3263,19 @@ function Io(e, t, n) {
3266
3263
  return o._balanced = !0, n(p);
3267
3264
  }
3268
3265
  }
3269
- function Ao(e, t, n) {
3266
+ function Io(e, t, n) {
3270
3267
  return r;
3271
3268
  function r(c) {
3272
3269
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
3273
3270
  }
3274
3271
  function i(c) {
3275
- return q(c) ? Ue(e, o)(c) : o(c);
3272
+ return $(c) ? Ue(e, o)(c) : o(c);
3276
3273
  }
3277
3274
  function o(c) {
3278
3275
  return c === 41 ? f(c) : Sr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
3279
3276
  }
3280
3277
  function l(c) {
3281
- return q(c) ? Ue(e, u)(c) : f(c);
3278
+ return $(c) ? Ue(e, u)(c) : f(c);
3282
3279
  }
3283
3280
  function a(c) {
3284
3281
  return n(c);
@@ -3287,13 +3284,13 @@ function Ao(e, t, n) {
3287
3284
  return c === 34 || c === 39 || c === 40 ? Er(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
3288
3285
  }
3289
3286
  function s(c) {
3290
- return q(c) ? Ue(e, f)(c) : f(c);
3287
+ return $(c) ? Ue(e, f)(c) : f(c);
3291
3288
  }
3292
3289
  function f(c) {
3293
3290
  return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
3294
3291
  }
3295
3292
  }
3296
- function To(e, t, n) {
3293
+ function Ao(e, t, n) {
3297
3294
  const r = this;
3298
3295
  return i;
3299
3296
  function i(a) {
@@ -3306,7 +3303,7 @@ function To(e, t, n) {
3306
3303
  return n(a);
3307
3304
  }
3308
3305
  }
3309
- function Po(e, t, n) {
3306
+ function To(e, t, n) {
3310
3307
  return r;
3311
3308
  function r(o) {
3312
3309
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
@@ -3315,12 +3312,12 @@ function Po(e, t, n) {
3315
3312
  return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
3316
3313
  }
3317
3314
  }
3318
- const Lo = {
3315
+ const Po = {
3319
3316
  name: "labelStartImage",
3320
- resolveAll: Qn.resolveAll,
3321
- tokenize: vo
3317
+ resolveAll: Wn.resolveAll,
3318
+ tokenize: Lo
3322
3319
  };
3323
- function vo(e, t, n) {
3320
+ function Lo(e, t, n) {
3324
3321
  const r = this;
3325
3322
  return i;
3326
3323
  function i(a) {
@@ -3333,12 +3330,12 @@ function vo(e, t, n) {
3333
3330
  return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
3334
3331
  }
3335
3332
  }
3336
- const zo = {
3333
+ const vo = {
3337
3334
  name: "labelStartLink",
3338
- resolveAll: Qn.resolveAll,
3339
- tokenize: Do
3335
+ resolveAll: Wn.resolveAll,
3336
+ tokenize: zo
3340
3337
  };
3341
- function Do(e, t, n) {
3338
+ function zo(e, t, n) {
3342
3339
  const r = this;
3343
3340
  return i;
3344
3341
  function i(l) {
@@ -3350,9 +3347,9 @@ function Do(e, t, n) {
3350
3347
  }
3351
3348
  const gn = {
3352
3349
  name: "lineEnding",
3353
- tokenize: Fo
3350
+ tokenize: Do
3354
3351
  };
3355
- function Fo(e, t) {
3352
+ function Do(e, t) {
3356
3353
  return n;
3357
3354
  function n(r) {
3358
3355
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), j(e, t, "linePrefix");
@@ -3360,9 +3357,9 @@ function Fo(e, t) {
3360
3357
  }
3361
3358
  const Ze = {
3362
3359
  name: "thematicBreak",
3363
- tokenize: Oo
3360
+ tokenize: Fo
3364
3361
  };
3365
- function Oo(e, t, n) {
3362
+ function Fo(e, t, n) {
3366
3363
  let r = 0, i;
3367
3364
  return o;
3368
3365
  function o(s) {
@@ -3380,25 +3377,25 @@ function Oo(e, t, n) {
3380
3377
  }
3381
3378
  const Z = {
3382
3379
  continuation: {
3383
- tokenize: No
3380
+ tokenize: Mo
3384
3381
  },
3385
- exit: jo,
3382
+ exit: Bo,
3386
3383
  name: "list",
3387
- tokenize: Mo
3384
+ tokenize: _o
3388
3385
  }, Ro = {
3389
3386
  partial: !0,
3390
- tokenize: Ho
3391
- }, _o = {
3387
+ tokenize: jo
3388
+ }, Oo = {
3392
3389
  partial: !0,
3393
- tokenize: Bo
3390
+ tokenize: No
3394
3391
  };
3395
- function Mo(e, t, n) {
3392
+ function _o(e, t, n) {
3396
3393
  const r = this, i = r.events[r.events.length - 1];
3397
3394
  let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
3398
3395
  return a;
3399
3396
  function a(h) {
3400
3397
  const d = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
3401
- if (d === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Dn(h)) {
3398
+ if (d === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : zn(h)) {
3402
3399
  if (r.containerState.type || (r.containerState.type = d, e.enter(d, {
3403
3400
  _container: !0
3404
3401
  })), d === "listUnordered")
@@ -3409,7 +3406,7 @@ function Mo(e, t, n) {
3409
3406
  return n(h);
3410
3407
  }
3411
3408
  function u(h) {
3412
- return Dn(h) && ++l < 10 ? (e.consume(h), u) : (!r.interrupt || l < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), s(h)) : n(h);
3409
+ return zn(h) && ++l < 10 ? (e.consume(h), u) : (!r.interrupt || l < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), s(h)) : n(h);
3413
3410
  }
3414
3411
  function s(h) {
3415
3412
  return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
@@ -3429,20 +3426,20 @@ function Mo(e, t, n) {
3429
3426
  return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
3430
3427
  }
3431
3428
  }
3432
- function No(e, t, n) {
3429
+ function Mo(e, t, n) {
3433
3430
  const r = this;
3434
3431
  return r.containerState._closeFlow = void 0, e.check(We, i, o);
3435
3432
  function i(a) {
3436
3433
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, j(e, t, "listItemIndent", r.containerState.size + 1)(a);
3437
3434
  }
3438
3435
  function o(a) {
3439
- return r.containerState.furtherBlankLines || !N(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(_o, t, l)(a));
3436
+ return r.containerState.furtherBlankLines || !N(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Oo, t, l)(a));
3440
3437
  }
3441
3438
  function l(a) {
3442
3439
  return r.containerState._closeFlow = !0, r.interrupt = void 0, j(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
3443
3440
  }
3444
3441
  }
3445
- function Bo(e, t, n) {
3442
+ function No(e, t, n) {
3446
3443
  const r = this;
3447
3444
  return j(e, i, "listItemIndent", r.containerState.size + 1);
3448
3445
  function i(o) {
@@ -3450,10 +3447,10 @@ function Bo(e, t, n) {
3450
3447
  return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
3451
3448
  }
3452
3449
  }
3453
- function jo(e) {
3450
+ function Bo(e) {
3454
3451
  e.exit(this.containerState.type);
3455
3452
  }
3456
- function Ho(e, t, n) {
3453
+ function jo(e, t, n) {
3457
3454
  const r = this;
3458
3455
  return j(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3459
3456
  function i(o) {
@@ -3461,12 +3458,12 @@ function Ho(e, t, n) {
3461
3458
  return !N(o) && l && l[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
3462
3459
  }
3463
3460
  }
3464
- const At = {
3461
+ const It = {
3465
3462
  name: "setextUnderline",
3466
- resolveTo: Uo,
3467
- tokenize: $o
3463
+ resolveTo: Ho,
3464
+ tokenize: Uo
3468
3465
  };
3469
- function Uo(e, t) {
3466
+ function Ho(e, t) {
3470
3467
  let n = e.length, r, i, o;
3471
3468
  for (; n--; )
3472
3469
  if (e[n][0] === "enter") {
@@ -3490,7 +3487,7 @@ function Uo(e, t) {
3490
3487
  ...e[o][1].end
3491
3488
  }) : e[r][1] = l, e.push(["exit", l, t]), e;
3492
3489
  }
3493
- function $o(e, t, n) {
3490
+ function Uo(e, t, n) {
3494
3491
  const r = this;
3495
3492
  let i;
3496
3493
  return o;
@@ -3514,15 +3511,15 @@ function $o(e, t, n) {
3514
3511
  }
3515
3512
  }
3516
3513
  const qo = {
3517
- tokenize: Vo
3514
+ tokenize: $o
3518
3515
  };
3519
- function Vo(e) {
3516
+ function $o(e) {
3520
3517
  const t = this, n = e.attempt(
3521
3518
  // Try to parse a blank line.
3522
3519
  We,
3523
3520
  r,
3524
3521
  // Try to parse initial flow (essentially, only code).
3525
- e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Gl, i)), "linePrefix"))
3522
+ e.attempt(this.parser.constructs.flowInitial, i, j(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Yl, i)), "linePrefix"))
3526
3523
  );
3527
3524
  return n;
3528
3525
  function r(o) {
@@ -3540,12 +3537,12 @@ function Vo(e) {
3540
3537
  return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
3541
3538
  }
3542
3539
  }
3543
- const Wo = {
3540
+ const Vo = {
3544
3541
  resolveAll: Ar()
3545
- }, Qo = Ir("string"), Yo = Ir("text");
3542
+ }, Wo = Ir("string"), Qo = Ir("text");
3546
3543
  function Ir(e) {
3547
3544
  return {
3548
- resolveAll: Ar(e === "text" ? Go : void 0),
3545
+ resolveAll: Ar(e === "text" ? Yo : void 0),
3549
3546
  tokenize: t
3550
3547
  };
3551
3548
  function t(n) {
@@ -3588,7 +3585,7 @@ function Ar(e) {
3588
3585
  return e ? e(n, r) : n;
3589
3586
  }
3590
3587
  }
3591
- function Go(e, t) {
3588
+ function Yo(e, t) {
3592
3589
  let n = 0;
3593
3590
  for (; ++n <= e.length; )
3594
3591
  if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
@@ -3630,7 +3627,7 @@ function Go(e, t) {
3630
3627
  }
3631
3628
  return e;
3632
3629
  }
3633
- const Xo = {
3630
+ const Go = {
3634
3631
  42: Z,
3635
3632
  43: Z,
3636
3633
  45: Z,
@@ -3645,45 +3642,45 @@ const Xo = {
3645
3642
  56: Z,
3646
3643
  57: Z,
3647
3644
  62: kr
3645
+ }, Xo = {
3646
+ 91: Zl
3648
3647
  }, Ko = {
3649
- 91: eo
3650
- }, Jo = {
3651
3648
  [-2]: mn,
3652
3649
  [-1]: mn,
3653
3650
  32: mn
3654
- }, Zo = {
3655
- 35: oo,
3651
+ }, Jo = {
3652
+ 35: lo,
3656
3653
  42: Ze,
3657
- 45: [At, Ze],
3658
- 60: co,
3659
- 61: At,
3654
+ 45: [It, Ze],
3655
+ 60: so,
3656
+ 61: It,
3660
3657
  95: Ze,
3661
- 96: Et,
3662
- 126: Et
3663
- }, ea = {
3658
+ 96: Ct,
3659
+ 126: Ct
3660
+ }, Zo = {
3664
3661
  38: br,
3665
3662
  92: xr
3666
- }, na = {
3663
+ }, ea = {
3667
3664
  [-5]: gn,
3668
3665
  [-4]: gn,
3669
3666
  [-3]: gn,
3670
- 33: Lo,
3667
+ 33: Po,
3671
3668
  38: br,
3672
- 42: Fn,
3673
- 60: [vl, ko],
3674
- 91: zo,
3675
- 92: [io, xr],
3676
- 93: Qn,
3677
- 95: Fn,
3678
- 96: $l
3669
+ 42: Dn,
3670
+ 60: [Ll, yo],
3671
+ 91: vo,
3672
+ 92: [ro, xr],
3673
+ 93: Wn,
3674
+ 95: Dn,
3675
+ 96: Ul
3676
+ }, na = {
3677
+ null: [Dn, Vo]
3679
3678
  }, ta = {
3680
- null: [Fn, Wo]
3681
- }, ra = {
3682
3679
  null: [42, 95]
3683
- }, ia = {
3680
+ }, ra = {
3684
3681
  null: []
3685
- }, la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: ra, contentInitial: Ko, disable: ia, document: Xo, flow: Zo, flowInitial: Jo, insideSpan: ta, string: ea, text: na }, Symbol.toStringTag, { value: "Module" }));
3686
- function oa(e, t, n) {
3682
+ }, ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: ta, contentInitial: Xo, disable: ra, document: Go, flow: Jo, flowInitial: Ko, insideSpan: na, string: Zo, text: ea }, Symbol.toStringTag, { value: "Module" }));
3683
+ function la(e, t, n) {
3687
3684
  let r = {
3688
3685
  _bufferIndex: -1,
3689
3686
  _index: 0,
@@ -3720,10 +3717,10 @@ function oa(e, t, n) {
3720
3717
  return l = re(l, P), E(), l[l.length - 1] !== null ? [] : (U(t, 0), s.events = an(o, s.events, s), s.events);
3721
3718
  }
3722
3719
  function p(P, L) {
3723
- return ua(h(P), L);
3720
+ return aa(h(P), L);
3724
3721
  }
3725
3722
  function h(P) {
3726
- return aa(l, P);
3723
+ return oa(l, P);
3727
3724
  }
3728
3725
  function d() {
3729
3726
  const {
@@ -3731,14 +3728,14 @@ function oa(e, t, n) {
3731
3728
  _index: L,
3732
3729
  line: v,
3733
3730
  column: T,
3734
- offset: O
3731
+ offset: R
3735
3732
  } = r;
3736
3733
  return {
3737
3734
  _bufferIndex: P,
3738
3735
  _index: L,
3739
3736
  line: v,
3740
3737
  column: T,
3741
- offset: O
3738
+ offset: R
3742
3739
  };
3743
3740
  }
3744
3741
  function x(P) {
@@ -3780,7 +3777,7 @@ function oa(e, t, n) {
3780
3777
  }
3781
3778
  function _(P, L) {
3782
3779
  return v;
3783
- function v(T, O, Q) {
3780
+ function v(T, R, Q) {
3784
3781
  let Y, le, he, m;
3785
3782
  return Array.isArray(T) ? (
3786
3783
  /* c8 ignore next 1 */
@@ -3793,8 +3790,8 @@ function oa(e, t, n) {
3793
3790
  ])
3794
3791
  ) : oe(T);
3795
3792
  function oe(G) {
3796
- return Re;
3797
- function Re(ye) {
3793
+ return Oe;
3794
+ function Oe(ye) {
3798
3795
  const Ae = ye !== null && G[ye], Te = ye !== null && G.null, Ye = [
3799
3796
  // To do: add more extension tests.
3800
3797
  /* c8 ignore next 2 */
@@ -3808,8 +3805,8 @@ function oa(e, t, n) {
3808
3805
  return Y = G, le = 0, G.length === 0 ? Q : g(G[le]);
3809
3806
  }
3810
3807
  function g(G) {
3811
- return Re;
3812
- function Re(ye) {
3808
+ return Oe;
3809
+ function Oe(ye) {
3813
3810
  return m = H(), he = G, G.partial || (s.currentConstruct = G), G.name && s.parser.constructs.disable.null.includes(G.name) ? we() : G.tokenize.call(
3814
3811
  // If we do have fields, create an object w/ `context` as its
3815
3812
  // prototype.
@@ -3822,7 +3819,7 @@ function oa(e, t, n) {
3822
3819
  }
3823
3820
  }
3824
3821
  function ae(G) {
3825
- return P(he, m), O;
3822
+ return P(he, m), R;
3826
3823
  }
3827
3824
  function we(G) {
3828
3825
  return m.restore(), ++le < Y.length ? g(Y[le]) : Q;
@@ -3833,20 +3830,20 @@ function oa(e, t, n) {
3833
3830
  P.resolveAll && !o.includes(P) && o.push(P), P.resolve && te(s.events, L, s.events.length - L, P.resolve(s.events.slice(L), s)), P.resolveTo && (s.events = P.resolveTo(s.events, s));
3834
3831
  }
3835
3832
  function H() {
3836
- const P = d(), L = s.previous, v = s.currentConstruct, T = s.events.length, O = Array.from(a);
3833
+ const P = d(), L = s.previous, v = s.currentConstruct, T = s.events.length, R = Array.from(a);
3837
3834
  return {
3838
3835
  from: T,
3839
3836
  restore: Q
3840
3837
  };
3841
3838
  function Q() {
3842
- r = P, s.previous = L, s.currentConstruct = v, s.events.length = T, a = O, k();
3839
+ r = P, s.previous = L, s.currentConstruct = v, s.events.length = T, a = R, k();
3843
3840
  }
3844
3841
  }
3845
3842
  function k() {
3846
3843
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
3847
3844
  }
3848
3845
  }
3849
- function aa(e, t) {
3846
+ function oa(e, t) {
3850
3847
  const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
3851
3848
  let l;
3852
3849
  if (n === i)
@@ -3860,7 +3857,7 @@ function aa(e, t) {
3860
3857
  }
3861
3858
  return l;
3862
3859
  }
3863
- function ua(e, t) {
3860
+ function aa(e, t) {
3864
3861
  let n = -1;
3865
3862
  const r = [];
3866
3863
  let i;
@@ -3900,42 +3897,42 @@ function ua(e, t) {
3900
3897
  }
3901
3898
  return r.join("");
3902
3899
  }
3903
- function sa(e) {
3900
+ function ua(e) {
3904
3901
  const r = {
3905
3902
  constructs: (
3906
3903
  /** @type {FullNormalizedExtension} */
3907
- dr([la, ...(e || {}).extensions || []])
3904
+ dr([ia, ...(e || {}).extensions || []])
3908
3905
  ),
3909
- content: i(Cl),
3906
+ content: i(Sl),
3910
3907
  defined: [],
3911
- document: i(Il),
3908
+ document: i(El),
3912
3909
  flow: i(qo),
3913
3910
  lazy: {},
3914
- string: i(Qo),
3915
- text: i(Yo)
3911
+ string: i(Wo),
3912
+ text: i(Qo)
3916
3913
  };
3917
3914
  return r;
3918
3915
  function i(o) {
3919
3916
  return l;
3920
3917
  function l(a) {
3921
- return oa(r, o, a);
3918
+ return la(r, o, a);
3922
3919
  }
3923
3920
  }
3924
3921
  }
3925
- function ca(e) {
3922
+ function sa(e) {
3926
3923
  for (; !wr(e); )
3927
3924
  ;
3928
3925
  return e;
3929
3926
  }
3930
- const Tt = /[\0\t\n\r]/g;
3931
- function fa() {
3927
+ const At = /[\0\t\n\r]/g;
3928
+ function ca() {
3932
3929
  let e = 1, t = "", n = !0, r;
3933
3930
  return i;
3934
3931
  function i(o, l, a) {
3935
3932
  const u = [];
3936
3933
  let s, f, c, p, h;
3937
3934
  for (o = t + (typeof o == "string" ? o.toString() : new TextDecoder(l || void 0).decode(o)), c = 0, t = "", n && (o.charCodeAt(0) === 65279 && c++, n = void 0); c < o.length; ) {
3938
- if (Tt.lastIndex = c, s = Tt.exec(o), p = s && s.index !== void 0 ? s.index : o.length, h = o.charCodeAt(p), !s) {
3935
+ if (At.lastIndex = c, s = At.exec(o), p = s && s.index !== void 0 ? s.index : o.length, h = o.charCodeAt(p), !s) {
3939
3936
  t = o.slice(c);
3940
3937
  break;
3941
3938
  }
@@ -3963,32 +3960,32 @@ function fa() {
3963
3960
  return a && (r && u.push(-5), t && u.push(t), u.push(null)), u;
3964
3961
  }
3965
3962
  }
3966
- const ha = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
3967
- function pa(e) {
3968
- return e.replace(ha, ma);
3963
+ const fa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
3964
+ function ha(e) {
3965
+ return e.replace(fa, pa);
3969
3966
  }
3970
- function ma(e, t, n) {
3967
+ function pa(e, t, n) {
3971
3968
  if (t)
3972
3969
  return t;
3973
3970
  if (n.charCodeAt(0) === 35) {
3974
3971
  const i = n.charCodeAt(1), o = i === 120 || i === 88;
3975
3972
  return yr(n.slice(o ? 2 : 1), o ? 16 : 10);
3976
3973
  }
3977
- return Wn(n) || e;
3974
+ return Vn(n) || e;
3978
3975
  }
3979
3976
  const Tr = {}.hasOwnProperty;
3980
- function ga(e, t, n) {
3981
- return typeof t != "string" && (n = t, t = void 0), da(n)(ca(sa(n).document().write(fa()(e, t, !0))));
3977
+ function ma(e, t, n) {
3978
+ return typeof t != "string" && (n = t, t = void 0), ga(n)(sa(ua(n).document().write(ca()(e, t, !0))));
3982
3979
  }
3983
- function da(e) {
3980
+ function ga(e) {
3984
3981
  const t = {
3985
3982
  transforms: [],
3986
3983
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
3987
3984
  enter: {
3988
- autolink: o(ot),
3985
+ autolink: o(lt),
3989
3986
  autolinkProtocol: H,
3990
3987
  autolinkEmail: H,
3991
- atxHeading: o(rt),
3988
+ atxHeading: o(tt),
3992
3989
  blockQuote: o(Te),
3993
3990
  characterEscape: H,
3994
3991
  characterReference: H,
@@ -4005,25 +4002,25 @@ function da(e) {
4005
4002
  definitionLabelString: l,
4006
4003
  definitionTitleString: l,
4007
4004
  emphasis: o(ai),
4008
- hardBreakEscape: o(it),
4009
- hardBreakTrailing: o(it),
4010
- htmlFlow: o(lt, l),
4005
+ hardBreakEscape: o(rt),
4006
+ hardBreakTrailing: o(rt),
4007
+ htmlFlow: o(it, l),
4011
4008
  htmlFlowData: H,
4012
- htmlText: o(lt, l),
4009
+ htmlText: o(it, l),
4013
4010
  htmlTextData: H,
4014
4011
  image: o(ui),
4015
4012
  label: l,
4016
- link: o(ot),
4013
+ link: o(lt),
4017
4014
  listItem: o(si),
4018
4015
  listItemValue: p,
4019
- listOrdered: o(at, c),
4020
- listUnordered: o(at),
4016
+ listOrdered: o(ot, c),
4017
+ listUnordered: o(ot),
4021
4018
  paragraph: o(ci),
4022
4019
  reference: g,
4023
4020
  referenceString: l,
4024
4021
  resourceDestinationString: l,
4025
4022
  resourceTitleString: l,
4026
- setextHeading: o(rt),
4023
+ setextHeading: o(tt),
4027
4024
  strong: o(fi),
4028
4025
  thematicBreak: o(pi)
4029
4026
  },
@@ -4038,14 +4035,14 @@ function da(e) {
4038
4035
  characterReferenceMarkerHexadecimal: we,
4039
4036
  characterReferenceMarkerNumeric: we,
4040
4037
  characterReferenceValue: G,
4041
- characterReference: Re,
4038
+ characterReference: Oe,
4042
4039
  codeFenced: u(E),
4043
4040
  codeFencedFence: x,
4044
4041
  codeFencedFenceInfo: h,
4045
4042
  codeFencedFenceMeta: d,
4046
4043
  codeFlowValue: k,
4047
4044
  codeIndented: u(y),
4048
- codeText: u(O),
4045
+ codeText: u(R),
4049
4046
  codeTextData: k,
4050
4047
  data: k,
4051
4048
  definition: u(),
@@ -4087,7 +4084,7 @@ function da(e) {
4087
4084
  type: "root",
4088
4085
  children: []
4089
4086
  };
4090
- const R = {
4087
+ const O = {
4091
4088
  stack: [A],
4092
4089
  tokenStack: [],
4093
4090
  config: t,
@@ -4097,24 +4094,24 @@ function da(e) {
4097
4094
  resume: f,
4098
4095
  data: n
4099
4096
  }, B = [];
4100
- let $ = -1;
4101
- for (; ++$ < b.length; )
4102
- if (b[$][1].type === "listOrdered" || b[$][1].type === "listUnordered")
4103
- if (b[$][0] === "enter")
4104
- B.push($);
4097
+ let q = -1;
4098
+ for (; ++q < b.length; )
4099
+ if (b[q][1].type === "listOrdered" || b[q][1].type === "listUnordered")
4100
+ if (b[q][0] === "enter")
4101
+ B.push(q);
4105
4102
  else {
4106
4103
  const ue = B.pop();
4107
- $ = i(b, ue, $);
4104
+ q = i(b, ue, q);
4108
4105
  }
4109
- for ($ = -1; ++$ < b.length; ) {
4110
- const ue = t[b[$][0]];
4111
- Tr.call(ue, b[$][1].type) && ue[b[$][1].type].call(Object.assign({
4112
- sliceSerialize: b[$][2].sliceSerialize
4113
- }, R), b[$][1]);
4106
+ for (q = -1; ++q < b.length; ) {
4107
+ const ue = t[b[q][0]];
4108
+ Tr.call(ue, b[q][1].type) && ue[b[q][1].type].call(Object.assign({
4109
+ sliceSerialize: b[q][2].sliceSerialize
4110
+ }, O), b[q][1]);
4114
4111
  }
4115
- if (R.tokenStack.length > 0) {
4116
- const ue = R.tokenStack[R.tokenStack.length - 1];
4117
- (ue[1] || Pt).call(R, void 0, ue[0]);
4112
+ if (O.tokenStack.length > 0) {
4113
+ const ue = O.tokenStack[O.tokenStack.length - 1];
4114
+ (ue[1] || Tt).call(O, void 0, ue[0]);
4118
4115
  }
4119
4116
  for (A.position = {
4120
4117
  start: ke(b.length > 0 ? b[0][1].start : {
@@ -4127,23 +4124,23 @@ function da(e) {
4127
4124
  column: 1,
4128
4125
  offset: 0
4129
4126
  })
4130
- }, $ = -1; ++$ < t.transforms.length; )
4131
- A = t.transforms[$](A) || A;
4127
+ }, q = -1; ++q < t.transforms.length; )
4128
+ A = t.transforms[q](A) || A;
4132
4129
  return A;
4133
4130
  }
4134
- function i(b, A, R) {
4135
- let B = A - 1, $ = -1, ue = !1, Se, me, _e, Me;
4136
- for (; ++B <= R; ) {
4131
+ function i(b, A, O) {
4132
+ let B = A - 1, q = -1, ue = !1, Se, me, _e, Me;
4133
+ for (; ++B <= O; ) {
4137
4134
  const ee = b[B];
4138
4135
  switch (ee[1].type) {
4139
4136
  case "listUnordered":
4140
4137
  case "listOrdered":
4141
4138
  case "blockQuote": {
4142
- ee[0] === "enter" ? $++ : $--, Me = void 0;
4139
+ ee[0] === "enter" ? q++ : q--, Me = void 0;
4143
4140
  break;
4144
4141
  }
4145
4142
  case "lineEndingBlank": {
4146
- ee[0] === "enter" && (Se && !Me && !$ && !_e && (_e = B), Me = void 0);
4143
+ ee[0] === "enter" && (Se && !Me && !q && !_e && (_e = B), Me = void 0);
4147
4144
  break;
4148
4145
  }
4149
4146
  case "linePrefix":
@@ -4155,7 +4152,7 @@ function da(e) {
4155
4152
  default:
4156
4153
  Me = void 0;
4157
4154
  }
4158
- if (!$ && ee[0] === "enter" && ee[1].type === "listItemPrefix" || $ === -1 && ee[0] === "exit" && (ee[1].type === "listUnordered" || ee[1].type === "listOrdered")) {
4155
+ if (!q && ee[0] === "enter" && ee[1].type === "listItemPrefix" || q === -1 && ee[0] === "exit" && (ee[1].type === "listUnordered" || ee[1].type === "listOrdered")) {
4159
4156
  if (Se) {
4160
4157
  let Pe = B;
4161
4158
  for (me = void 0; Pe--; ) {
@@ -4165,7 +4162,7 @@ function da(e) {
4165
4162
  me && (b[me][1].type = "lineEndingBlank", ue = !0), ge[1].type = "lineEnding", me = Pe;
4166
4163
  } else if (!(ge[1].type === "linePrefix" || ge[1].type === "blockQuotePrefix" || ge[1].type === "blockQuotePrefixWhitespace" || ge[1].type === "blockQuoteMarker" || ge[1].type === "listItemIndent")) break;
4167
4164
  }
4168
- _e && (!me || _e < me) && (Se._spread = !0), Se.end = Object.assign({}, me ? b[me][1].start : ee[1].end), b.splice(me || B, 0, ["exit", Se, ee[2]]), B++, R++;
4165
+ _e && (!me || _e < me) && (Se._spread = !0), Se.end = Object.assign({}, me ? b[me][1].start : ee[1].end), b.splice(me || B, 0, ["exit", Se, ee[2]]), B++, O++;
4169
4166
  }
4170
4167
  if (ee[1].type === "listItemPrefix") {
4171
4168
  const Pe = {
@@ -4175,15 +4172,15 @@ function da(e) {
4175
4172
  // @ts-expect-error: we’ll add `end` in a second.
4176
4173
  end: void 0
4177
4174
  };
4178
- Se = Pe, b.splice(B, 0, ["enter", Pe, ee[2]]), B++, R++, _e = void 0, Me = !0;
4175
+ Se = Pe, b.splice(B, 0, ["enter", Pe, ee[2]]), B++, O++, _e = void 0, Me = !0;
4179
4176
  }
4180
4177
  }
4181
4178
  }
4182
- return b[A][1]._spread = ue, R;
4179
+ return b[A][1]._spread = ue, O;
4183
4180
  }
4184
4181
  function o(b, A) {
4185
- return R;
4186
- function R(B) {
4182
+ return O;
4183
+ function O(B) {
4187
4184
  a.call(this, b(B), B), A && A.call(this, B);
4188
4185
  }
4189
4186
  }
@@ -4193,8 +4190,8 @@ function da(e) {
4193
4190
  children: []
4194
4191
  });
4195
4192
  }
4196
- function a(b, A, R) {
4197
- this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([A, R || void 0]), b.position = {
4193
+ function a(b, A, O) {
4194
+ this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([A, O || void 0]), b.position = {
4198
4195
  start: ke(A.start),
4199
4196
  // @ts-expect-error: `end` will be patched later.
4200
4197
  end: void 0
@@ -4202,22 +4199,22 @@ function da(e) {
4202
4199
  }
4203
4200
  function u(b) {
4204
4201
  return A;
4205
- function A(R) {
4206
- b && b.call(this, R), s.call(this, R);
4202
+ function A(O) {
4203
+ b && b.call(this, O), s.call(this, O);
4207
4204
  }
4208
4205
  }
4209
4206
  function s(b, A) {
4210
- const R = this.stack.pop(), B = this.tokenStack.pop();
4207
+ const O = this.stack.pop(), B = this.tokenStack.pop();
4211
4208
  if (B)
4212
- B[0].type !== b.type && (A ? A.call(this, b, B[0]) : (B[1] || Pt).call(this, b, B[0]));
4209
+ B[0].type !== b.type && (A ? A.call(this, b, B[0]) : (B[1] || Tt).call(this, b, B[0]));
4213
4210
  else throw new Error("Cannot close `" + b.type + "` (" + He({
4214
4211
  start: b.start,
4215
4212
  end: b.end
4216
4213
  }) + "): it’s not open");
4217
- R.position.end = ke(b.end);
4214
+ O.position.end = ke(b.end);
4218
4215
  }
4219
4216
  function f() {
4220
- return Vn(this.stack.pop());
4217
+ return $n(this.stack.pop());
4221
4218
  }
4222
4219
  function c() {
4223
4220
  this.data.expectingFirstListItemValue = !0;
@@ -4248,8 +4245,8 @@ function da(e) {
4248
4245
  A.value = b.replace(/(\r?\n|\r)$/g, "");
4249
4246
  }
4250
4247
  function S(b) {
4251
- const A = this.resume(), R = this.stack[this.stack.length - 1];
4252
- R.label = A, R.identifier = se(this.sliceSerialize(b)).toLowerCase();
4248
+ const A = this.resume(), O = this.stack[this.stack.length - 1];
4249
+ O.label = A, O.identifier = se(this.sliceSerialize(b)).toLowerCase();
4253
4250
  }
4254
4251
  function C() {
4255
4252
  const b = this.resume(), A = this.stack[this.stack.length - 1];
@@ -4262,8 +4259,8 @@ function da(e) {
4262
4259
  function z(b) {
4263
4260
  const A = this.stack[this.stack.length - 1];
4264
4261
  if (!A.depth) {
4265
- const R = this.sliceSerialize(b).length;
4266
- A.depth = R;
4262
+ const O = this.sliceSerialize(b).length;
4263
+ A.depth = O;
4267
4264
  }
4268
4265
  }
4269
4266
  function w() {
@@ -4277,13 +4274,13 @@ function da(e) {
4277
4274
  this.data.setextHeadingSlurpLineEnding = void 0;
4278
4275
  }
4279
4276
  function H(b) {
4280
- const R = this.stack[this.stack.length - 1].children;
4281
- let B = R[R.length - 1];
4277
+ const O = this.stack[this.stack.length - 1].children;
4278
+ let B = O[O.length - 1];
4282
4279
  (!B || B.type !== "text") && (B = hi(), B.position = {
4283
4280
  start: ke(b.start),
4284
4281
  // @ts-expect-error: we’ll add `end` later.
4285
4282
  end: void 0
4286
- }, R.push(B)), this.stack.push(B);
4283
+ }, O.push(B)), this.stack.push(B);
4287
4284
  }
4288
4285
  function k(b) {
4289
4286
  const A = this.stack.pop();
@@ -4292,8 +4289,8 @@ function da(e) {
4292
4289
  function P(b) {
4293
4290
  const A = this.stack[this.stack.length - 1];
4294
4291
  if (this.data.atHardBreak) {
4295
- const R = A.children[A.children.length - 1];
4296
- R.position.end = ke(b.end), this.data.atHardBreak = void 0;
4292
+ const O = A.children[A.children.length - 1];
4293
+ O.position.end = ke(b.end), this.data.atHardBreak = void 0;
4297
4294
  return;
4298
4295
  }
4299
4296
  !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(A.type) && (H.call(this, b), k.call(this, b));
@@ -4309,7 +4306,7 @@ function da(e) {
4309
4306
  const b = this.resume(), A = this.stack[this.stack.length - 1];
4310
4307
  A.value = b;
4311
4308
  }
4312
- function O() {
4309
+ function R() {
4313
4310
  const b = this.resume(), A = this.stack[this.stack.length - 1];
4314
4311
  A.value = b;
4315
4312
  }
@@ -4332,16 +4329,16 @@ function da(e) {
4332
4329
  this.data.referenceType = void 0;
4333
4330
  }
4334
4331
  function le(b) {
4335
- const A = this.sliceSerialize(b), R = this.stack[this.stack.length - 2];
4336
- R.label = pa(A), R.identifier = se(A).toLowerCase();
4332
+ const A = this.sliceSerialize(b), O = this.stack[this.stack.length - 2];
4333
+ O.label = ha(A), O.identifier = se(A).toLowerCase();
4337
4334
  }
4338
4335
  function he() {
4339
- const b = this.stack[this.stack.length - 1], A = this.resume(), R = this.stack[this.stack.length - 1];
4340
- if (this.data.inReference = !0, R.type === "link") {
4336
+ const b = this.stack[this.stack.length - 1], A = this.resume(), O = this.stack[this.stack.length - 1];
4337
+ if (this.data.inReference = !0, O.type === "link") {
4341
4338
  const B = b.children;
4342
- R.children = B;
4339
+ O.children = B;
4343
4340
  } else
4344
- R.alt = A;
4341
+ O.alt = A;
4345
4342
  }
4346
4343
  function m() {
4347
4344
  const b = this.resume(), A = this.stack[this.stack.length - 1];
@@ -4358,20 +4355,20 @@ function da(e) {
4358
4355
  this.data.referenceType = "collapsed";
4359
4356
  }
4360
4357
  function ae(b) {
4361
- const A = this.resume(), R = this.stack[this.stack.length - 1];
4362
- R.label = A, R.identifier = se(this.sliceSerialize(b)).toLowerCase(), this.data.referenceType = "full";
4358
+ const A = this.resume(), O = this.stack[this.stack.length - 1];
4359
+ O.label = A, O.identifier = se(this.sliceSerialize(b)).toLowerCase(), this.data.referenceType = "full";
4363
4360
  }
4364
4361
  function we(b) {
4365
4362
  this.data.characterReferenceType = b.type;
4366
4363
  }
4367
4364
  function G(b) {
4368
- const A = this.sliceSerialize(b), R = this.data.characterReferenceType;
4365
+ const A = this.sliceSerialize(b), O = this.data.characterReferenceType;
4369
4366
  let B;
4370
- R ? (B = yr(A, R === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : B = Wn(A);
4371
- const $ = this.stack[this.stack.length - 1];
4372
- $.value += B;
4367
+ O ? (B = yr(A, O === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : B = Vn(A);
4368
+ const q = this.stack[this.stack.length - 1];
4369
+ q.value += B;
4373
4370
  }
4374
- function Re(b) {
4371
+ function Oe(b) {
4375
4372
  const A = this.stack.pop();
4376
4373
  A.position.end = ke(b.end);
4377
4374
  }
@@ -4420,7 +4417,7 @@ function da(e) {
4420
4417
  children: []
4421
4418
  };
4422
4419
  }
4423
- function rt() {
4420
+ function tt() {
4424
4421
  return {
4425
4422
  type: "heading",
4426
4423
  // @ts-expect-error `depth` will be set later.
@@ -4428,12 +4425,12 @@ function da(e) {
4428
4425
  children: []
4429
4426
  };
4430
4427
  }
4431
- function it() {
4428
+ function rt() {
4432
4429
  return {
4433
4430
  type: "break"
4434
4431
  };
4435
4432
  }
4436
- function lt() {
4433
+ function it() {
4437
4434
  return {
4438
4435
  type: "html",
4439
4436
  value: ""
@@ -4447,7 +4444,7 @@ function da(e) {
4447
4444
  alt: null
4448
4445
  };
4449
4446
  }
4450
- function ot() {
4447
+ function lt() {
4451
4448
  return {
4452
4449
  type: "link",
4453
4450
  title: null,
@@ -4455,7 +4452,7 @@ function da(e) {
4455
4452
  children: []
4456
4453
  };
4457
4454
  }
4458
- function at(b) {
4455
+ function ot(b) {
4459
4456
  return {
4460
4457
  type: "list",
4461
4458
  ordered: b.type === "listOrdered",
@@ -4507,10 +4504,10 @@ function Pr(e, t) {
4507
4504
  let n = -1;
4508
4505
  for (; ++n < t.length; ) {
4509
4506
  const r = t[n];
4510
- Array.isArray(r) ? Pr(e, r) : ya(e, r);
4507
+ Array.isArray(r) ? Pr(e, r) : da(e, r);
4511
4508
  }
4512
4509
  }
4513
- function ya(e, t) {
4510
+ function da(e, t) {
4514
4511
  let n;
4515
4512
  for (n in t)
4516
4513
  if (Tr.call(t, n))
@@ -4533,7 +4530,7 @@ function ya(e, t) {
4533
4530
  }
4534
4531
  }
4535
4532
  }
4536
- function Pt(e, t) {
4533
+ function Tt(e, t) {
4537
4534
  throw e ? new Error("Cannot close `" + e.type + "` (" + He({
4538
4535
  start: e.start,
4539
4536
  end: e.end
@@ -4545,11 +4542,11 @@ function Pt(e, t) {
4545
4542
  end: t.end
4546
4543
  }) + ") is still open");
4547
4544
  }
4548
- function ka(e) {
4545
+ function ya(e) {
4549
4546
  const t = this;
4550
4547
  t.parser = n;
4551
4548
  function n(r) {
4552
- return ga(r, {
4549
+ return ma(r, {
4553
4550
  ...t.data("settings"),
4554
4551
  ...e,
4555
4552
  // Note: these options are not in the readme.
@@ -4560,7 +4557,7 @@ function ka(e) {
4560
4557
  });
4561
4558
  }
4562
4559
  }
4563
- function xa(e, t) {
4560
+ function ka(e, t) {
4564
4561
  const n = {
4565
4562
  type: "element",
4566
4563
  tagName: "blockquote",
@@ -4569,12 +4566,12 @@ function xa(e, t) {
4569
4566
  };
4570
4567
  return e.patch(t, n), e.applyData(t, n);
4571
4568
  }
4572
- function ba(e, t) {
4569
+ function xa(e, t) {
4573
4570
  const n = { type: "element", tagName: "br", properties: {}, children: [] };
4574
4571
  return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
4575
4572
  ` }];
4576
4573
  }
4577
- function wa(e, t) {
4574
+ function ba(e, t) {
4578
4575
  const n = t.value ? t.value + `
4579
4576
  ` : "", r = {};
4580
4577
  t.lang && (r.className = ["language-" + t.lang]);
@@ -4586,7 +4583,7 @@ function wa(e, t) {
4586
4583
  };
4587
4584
  return t.meta && (i.data = { meta: t.meta }), e.patch(t, i), i = e.applyData(t, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(t, i), i;
4588
4585
  }
4589
- function Sa(e, t) {
4586
+ function wa(e, t) {
4590
4587
  const n = {
4591
4588
  type: "element",
4592
4589
  tagName: "del",
@@ -4595,7 +4592,7 @@ function Sa(e, t) {
4595
4592
  };
4596
4593
  return e.patch(t, n), e.applyData(t, n);
4597
4594
  }
4598
- function Ca(e, t) {
4595
+ function Sa(e, t) {
4599
4596
  const n = {
4600
4597
  type: "element",
4601
4598
  tagName: "em",
@@ -4604,8 +4601,8 @@ function Ca(e, t) {
4604
4601
  };
4605
4602
  return e.patch(t, n), e.applyData(t, n);
4606
4603
  }
4607
- function Ea(e, t) {
4608
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = Oe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
4604
+ function Ca(e, t) {
4605
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = Re(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
4609
4606
  let l, a = e.footnoteCounts.get(r);
4610
4607
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
4611
4608
  const u = {
@@ -4628,7 +4625,7 @@ function Ea(e, t) {
4628
4625
  };
4629
4626
  return e.patch(t, s), e.applyData(t, s);
4630
4627
  }
4631
- function Ia(e, t) {
4628
+ function Ea(e, t) {
4632
4629
  const n = {
4633
4630
  type: "element",
4634
4631
  tagName: "h" + t.depth,
@@ -4637,7 +4634,7 @@ function Ia(e, t) {
4637
4634
  };
4638
4635
  return e.patch(t, n), e.applyData(t, n);
4639
4636
  }
4640
- function Aa(e, t) {
4637
+ function Ia(e, t) {
4641
4638
  if (e.options.allowDangerousHtml) {
4642
4639
  const n = { type: "raw", value: t.value };
4643
4640
  return e.patch(t, n), e.applyData(t, n);
@@ -4653,22 +4650,22 @@ function Lr(e, t) {
4653
4650
  const l = i[i.length - 1];
4654
4651
  return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
4655
4652
  }
4656
- function Ta(e, t) {
4653
+ function Aa(e, t) {
4657
4654
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
4658
4655
  if (!r)
4659
4656
  return Lr(e, t);
4660
- const i = { src: Oe(r.url || ""), alt: t.alt };
4657
+ const i = { src: Re(r.url || ""), alt: t.alt };
4661
4658
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4662
4659
  const o = { type: "element", tagName: "img", properties: i, children: [] };
4663
4660
  return e.patch(t, o), e.applyData(t, o);
4664
4661
  }
4665
- function Pa(e, t) {
4666
- const n = { src: Oe(t.url) };
4662
+ function Ta(e, t) {
4663
+ const n = { src: Re(t.url) };
4667
4664
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
4668
4665
  const r = { type: "element", tagName: "img", properties: n, children: [] };
4669
4666
  return e.patch(t, r), e.applyData(t, r);
4670
4667
  }
4671
- function La(e, t) {
4668
+ function Pa(e, t) {
4672
4669
  const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
4673
4670
  e.patch(t, n);
4674
4671
  const r = {
@@ -4679,11 +4676,11 @@ function La(e, t) {
4679
4676
  };
4680
4677
  return e.patch(t, r), e.applyData(t, r);
4681
4678
  }
4682
- function va(e, t) {
4679
+ function La(e, t) {
4683
4680
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
4684
4681
  if (!r)
4685
4682
  return Lr(e, t);
4686
- const i = { href: Oe(r.url || "") };
4683
+ const i = { href: Re(r.url || "") };
4687
4684
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4688
4685
  const o = {
4689
4686
  type: "element",
@@ -4693,8 +4690,8 @@ function va(e, t) {
4693
4690
  };
4694
4691
  return e.patch(t, o), e.applyData(t, o);
4695
4692
  }
4696
- function za(e, t) {
4697
- const n = { href: Oe(t.url) };
4693
+ function va(e, t) {
4694
+ const n = { href: Re(t.url) };
4698
4695
  t.title !== null && t.title !== void 0 && (n.title = t.title);
4699
4696
  const r = {
4700
4697
  type: "element",
@@ -4704,8 +4701,8 @@ function za(e, t) {
4704
4701
  };
4705
4702
  return e.patch(t, r), e.applyData(t, r);
4706
4703
  }
4707
- function Da(e, t, n) {
4708
- const r = e.all(t), i = n ? Fa(n) : vr(t), o = {}, l = [];
4704
+ function za(e, t, n) {
4705
+ const r = e.all(t), i = n ? Da(n) : vr(t), o = {}, l = [];
4709
4706
  if (typeof t.checked == "boolean") {
4710
4707
  const f = r[0];
4711
4708
  let c;
@@ -4728,7 +4725,7 @@ function Da(e, t, n) {
4728
4725
  const s = { type: "element", tagName: "li", properties: o, children: l };
4729
4726
  return e.patch(t, s), e.applyData(t, s);
4730
4727
  }
4731
- function Fa(e) {
4728
+ function Da(e) {
4732
4729
  let t = !1;
4733
4730
  if (e.type === "list") {
4734
4731
  t = e.spread || !1;
@@ -4743,7 +4740,7 @@ function vr(e) {
4743
4740
  const t = e.spread;
4744
4741
  return t ?? e.children.length > 1;
4745
4742
  }
4746
- function Oa(e, t) {
4743
+ function Fa(e, t) {
4747
4744
  const n = {}, r = e.all(t);
4748
4745
  let i = -1;
4749
4746
  for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
@@ -4770,11 +4767,11 @@ function Ra(e, t) {
4770
4767
  };
4771
4768
  return e.patch(t, n), e.applyData(t, n);
4772
4769
  }
4773
- function _a(e, t) {
4770
+ function Oa(e, t) {
4774
4771
  const n = { type: "root", children: e.wrap(e.all(t)) };
4775
4772
  return e.patch(t, n), e.applyData(t, n);
4776
4773
  }
4777
- function Ma(e, t) {
4774
+ function _a(e, t) {
4778
4775
  const n = {
4779
4776
  type: "element",
4780
4777
  tagName: "strong",
@@ -4783,7 +4780,7 @@ function Ma(e, t) {
4783
4780
  };
4784
4781
  return e.patch(t, n), e.applyData(t, n);
4785
4782
  }
4786
- function Na(e, t) {
4783
+ function Ma(e, t) {
4787
4784
  const n = e.all(t), r = n.shift(), i = [];
4788
4785
  if (r) {
4789
4786
  const l = {
@@ -4800,7 +4797,7 @@ function Na(e, t) {
4800
4797
  tagName: "tbody",
4801
4798
  properties: {},
4802
4799
  children: e.wrap(n, !0)
4803
- }, a = Hn(t.children[1]), u = sr(t.children[t.children.length - 1]);
4800
+ }, a = jn(t.children[1]), u = sr(t.children[t.children.length - 1]);
4804
4801
  a && u && (l.position = { start: a, end: u }), i.push(l);
4805
4802
  }
4806
4803
  const o = {
@@ -4811,7 +4808,7 @@ function Na(e, t) {
4811
4808
  };
4812
4809
  return e.patch(t, o), e.applyData(t, o);
4813
4810
  }
4814
- function Ba(e, t, n) {
4811
+ function Na(e, t, n) {
4815
4812
  const r = n ? n.children : void 0, o = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", l = n && n.type === "table" ? n.align : void 0, a = l ? l.length : t.children.length;
4816
4813
  let u = -1;
4817
4814
  const s = [];
@@ -4829,7 +4826,7 @@ function Ba(e, t, n) {
4829
4826
  };
4830
4827
  return e.patch(t, f), e.applyData(t, f);
4831
4828
  }
4832
- function ja(e, t) {
4829
+ function Ba(e, t) {
4833
4830
  const n = {
4834
4831
  type: "element",
4835
4832
  tagName: "td",
@@ -4839,37 +4836,37 @@ function ja(e, t) {
4839
4836
  };
4840
4837
  return e.patch(t, n), e.applyData(t, n);
4841
4838
  }
4842
- const Lt = 9, vt = 32;
4843
- function Ha(e) {
4839
+ const Pt = 9, Lt = 32;
4840
+ function ja(e) {
4844
4841
  const t = String(e), n = /\r?\n|\r/g;
4845
4842
  let r = n.exec(t), i = 0;
4846
4843
  const o = [];
4847
4844
  for (; r; )
4848
4845
  o.push(
4849
- zt(t.slice(i, r.index), i > 0, !0),
4846
+ vt(t.slice(i, r.index), i > 0, !0),
4850
4847
  r[0]
4851
4848
  ), i = r.index + r[0].length, r = n.exec(t);
4852
- return o.push(zt(t.slice(i), i > 0, !1)), o.join("");
4849
+ return o.push(vt(t.slice(i), i > 0, !1)), o.join("");
4853
4850
  }
4854
- function zt(e, t, n) {
4851
+ function vt(e, t, n) {
4855
4852
  let r = 0, i = e.length;
4856
4853
  if (t) {
4857
4854
  let o = e.codePointAt(r);
4858
- for (; o === Lt || o === vt; )
4855
+ for (; o === Pt || o === Lt; )
4859
4856
  r++, o = e.codePointAt(r);
4860
4857
  }
4861
4858
  if (n) {
4862
4859
  let o = e.codePointAt(i - 1);
4863
- for (; o === Lt || o === vt; )
4860
+ for (; o === Pt || o === Lt; )
4864
4861
  i--, o = e.codePointAt(i - 1);
4865
4862
  }
4866
4863
  return i > r ? e.slice(r, i) : "";
4867
4864
  }
4868
- function Ua(e, t) {
4869
- const n = { type: "text", value: Ha(String(t.value)) };
4865
+ function Ha(e, t) {
4866
+ const n = { type: "text", value: ja(String(t.value)) };
4870
4867
  return e.patch(t, n), e.applyData(t, n);
4871
4868
  }
4872
- function $a(e, t) {
4869
+ function Ua(e, t) {
4873
4870
  const n = {
4874
4871
  type: "element",
4875
4872
  tagName: "hr",
@@ -4879,30 +4876,30 @@ function $a(e, t) {
4879
4876
  return e.patch(t, n), e.applyData(t, n);
4880
4877
  }
4881
4878
  const qa = {
4882
- blockquote: xa,
4883
- break: ba,
4884
- code: wa,
4885
- delete: Sa,
4886
- emphasis: Ca,
4887
- footnoteReference: Ea,
4888
- heading: Ia,
4889
- html: Aa,
4890
- imageReference: Ta,
4891
- image: Pa,
4892
- inlineCode: La,
4893
- linkReference: va,
4894
- link: za,
4895
- listItem: Da,
4896
- list: Oa,
4879
+ blockquote: ka,
4880
+ break: xa,
4881
+ code: ba,
4882
+ delete: wa,
4883
+ emphasis: Sa,
4884
+ footnoteReference: Ca,
4885
+ heading: Ea,
4886
+ html: Ia,
4887
+ imageReference: Aa,
4888
+ image: Ta,
4889
+ inlineCode: Pa,
4890
+ linkReference: La,
4891
+ link: va,
4892
+ listItem: za,
4893
+ list: Fa,
4897
4894
  paragraph: Ra,
4898
4895
  // @ts-expect-error: root is different, but hard to type.
4899
- root: _a,
4900
- strong: Ma,
4901
- table: Na,
4902
- tableCell: ja,
4903
- tableRow: Ba,
4904
- text: Ua,
4905
- thematicBreak: $a,
4896
+ root: Oa,
4897
+ strong: _a,
4898
+ table: Ma,
4899
+ tableCell: Ba,
4900
+ tableRow: Na,
4901
+ text: Ha,
4902
+ thematicBreak: Ua,
4906
4903
  toml: Ge,
4907
4904
  yaml: Ge,
4908
4905
  definition: Ge,
@@ -4910,7 +4907,7 @@ const qa = {
4910
4907
  };
4911
4908
  function Ge() {
4912
4909
  }
4913
- const zr = -1, un = 0, nn = 1, tn = 2, Yn = 3, Gn = 4, Xn = 5, Kn = 6, Dr = 7, Fr = 8, Dt = typeof self == "object" ? self : globalThis, Va = (e, t) => {
4910
+ const zr = -1, un = 0, nn = 1, tn = 2, Qn = 3, Yn = 4, Gn = 5, Xn = 6, Dr = 7, Fr = 8, zt = typeof self == "object" ? self : globalThis, $a = (e, t) => {
4914
4911
  const n = (i, o) => (e.set(o, i), i), r = (i) => {
4915
4912
  if (e.has(i))
4916
4913
  return e.get(i);
@@ -4931,19 +4928,19 @@ const zr = -1, un = 0, nn = 1, tn = 2, Yn = 3, Gn = 4, Xn = 5, Kn = 6, Dr = 7, F
4931
4928
  a[r(u)] = r(s);
4932
4929
  return a;
4933
4930
  }
4934
- case Yn:
4931
+ case Qn:
4935
4932
  return n(new Date(l), i);
4936
- case Gn: {
4933
+ case Yn: {
4937
4934
  const { source: a, flags: u } = l;
4938
4935
  return n(new RegExp(a, u), i);
4939
4936
  }
4940
- case Xn: {
4937
+ case Gn: {
4941
4938
  const a = n(/* @__PURE__ */ new Map(), i);
4942
4939
  for (const [u, s] of l)
4943
4940
  a.set(r(u), r(s));
4944
4941
  return a;
4945
4942
  }
4946
- case Kn: {
4943
+ case Xn: {
4947
4944
  const a = n(/* @__PURE__ */ new Set(), i);
4948
4945
  for (const u of l)
4949
4946
  a.add(r(u));
@@ -4951,37 +4948,37 @@ const zr = -1, un = 0, nn = 1, tn = 2, Yn = 3, Gn = 4, Xn = 5, Kn = 6, Dr = 7, F
4951
4948
  }
4952
4949
  case Dr: {
4953
4950
  const { name: a, message: u } = l;
4954
- return n(new Dt[a](u), i);
4951
+ return n(new zt[a](u), i);
4955
4952
  }
4956
4953
  case Fr:
4957
4954
  return n(BigInt(l), i);
4958
4955
  case "BigInt":
4959
4956
  return n(Object(BigInt(l)), i);
4960
4957
  }
4961
- return n(new Dt[o](l), i);
4958
+ return n(new zt[o](l), i);
4962
4959
  };
4963
4960
  return r;
4964
- }, Ft = (e) => Va(/* @__PURE__ */ new Map(), e)(0), Le = "", { toString: Wa } = {}, { keys: Qa } = Object, je = (e) => {
4961
+ }, Dt = (e) => $a(/* @__PURE__ */ new Map(), e)(0), Le = "", { toString: Va } = {}, { keys: Wa } = Object, je = (e) => {
4965
4962
  const t = typeof e;
4966
4963
  if (t !== "object" || !e)
4967
4964
  return [un, t];
4968
- const n = Wa.call(e).slice(8, -1);
4965
+ const n = Va.call(e).slice(8, -1);
4969
4966
  switch (n) {
4970
4967
  case "Array":
4971
4968
  return [nn, Le];
4972
4969
  case "Object":
4973
4970
  return [tn, Le];
4974
4971
  case "Date":
4975
- return [Yn, Le];
4972
+ return [Qn, Le];
4976
4973
  case "RegExp":
4977
- return [Gn, Le];
4974
+ return [Yn, Le];
4978
4975
  case "Map":
4979
- return [Xn, Le];
4976
+ return [Gn, Le];
4980
4977
  case "Set":
4981
- return [Kn, Le];
4978
+ return [Xn, Le];
4982
4979
  }
4983
4980
  return n.includes("Array") ? [nn, n] : n.includes("Error") ? [Dr, n] : [tn, n];
4984
- }, Xe = ([e, t]) => e === un && (t === "function" || t === "symbol"), Ya = (e, t, n, r) => {
4981
+ }, Xe = ([e, t]) => e === un && (t === "function" || t === "symbol"), Qa = (e, t, n, r) => {
4985
4982
  const i = (l, a) => {
4986
4983
  const u = r.push(l) - 1;
4987
4984
  return n.set(a, u), u;
@@ -5028,23 +5025,23 @@ const zr = -1, un = 0, nn = 1, tn = 2, Yn = 3, Gn = 4, Xn = 5, Kn = 6, Dr = 7, F
5028
5025
  if (t && "toJSON" in l)
5029
5026
  return o(l.toJSON());
5030
5027
  const f = [], c = i([a, f], l);
5031
- for (const p of Qa(l))
5028
+ for (const p of Wa(l))
5032
5029
  (e || !Xe(je(l[p]))) && f.push([o(p), o(l[p])]);
5033
5030
  return c;
5034
5031
  }
5035
- case Yn:
5032
+ case Qn:
5036
5033
  return i([a, l.toISOString()], l);
5037
- case Gn: {
5034
+ case Yn: {
5038
5035
  const { source: f, flags: c } = l;
5039
5036
  return i([a, { source: f, flags: c }], l);
5040
5037
  }
5041
- case Xn: {
5038
+ case Gn: {
5042
5039
  const f = [], c = i([a, f], l);
5043
5040
  for (const [p, h] of l)
5044
5041
  (e || !(Xe(je(p)) || Xe(je(h)))) && f.push([o(p), o(h)]);
5045
5042
  return c;
5046
5043
  }
5047
- case Kn: {
5044
+ case Xn: {
5048
5045
  const f = [], c = i([a, f], l);
5049
5046
  for (const p of l)
5050
5047
  (e || !Xe(je(p))) && f.push(o(p));
@@ -5055,14 +5052,14 @@ const zr = -1, un = 0, nn = 1, tn = 2, Yn = 3, Gn = 4, Xn = 5, Kn = 6, Dr = 7, F
5055
5052
  return i([a, { name: u, message: s }], l);
5056
5053
  };
5057
5054
  return o;
5058
- }, Ot = (e, { json: t, lossy: n } = {}) => {
5055
+ }, Ft = (e, { json: t, lossy: n } = {}) => {
5059
5056
  const r = [];
5060
- return Ya(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5057
+ return Qa(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5061
5058
  }, rn = typeof structuredClone == "function" ? (
5062
5059
  /* c8 ignore start */
5063
- (e, t) => t && ("json" in t || "lossy" in t) ? Ft(Ot(e, t)) : structuredClone(e)
5064
- ) : (e, t) => Ft(Ot(e, t));
5065
- function Ga(e, t) {
5060
+ (e, t) => t && ("json" in t || "lossy" in t) ? Dt(Ft(e, t)) : structuredClone(e)
5061
+ ) : (e, t) => Dt(Ft(e, t));
5062
+ function Ya(e, t) {
5066
5063
  const n = [{ type: "text", value: "↩" }];
5067
5064
  return t > 1 && n.push({
5068
5065
  type: "element",
@@ -5071,11 +5068,11 @@ function Ga(e, t) {
5071
5068
  children: [{ type: "text", value: String(t) }]
5072
5069
  }), n;
5073
5070
  }
5074
- function Xa(e, t) {
5071
+ function Ga(e, t) {
5075
5072
  return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
5076
5073
  }
5077
- function Ka(e) {
5078
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || Ga, r = e.options.footnoteBackLabel || Xa, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
5074
+ function Xa(e) {
5075
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || Ya, r = e.options.footnoteBackLabel || Ga, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
5079
5076
  className: ["sr-only"]
5080
5077
  }, a = [];
5081
5078
  let u = -1;
@@ -5085,7 +5082,7 @@ function Ka(e) {
5085
5082
  );
5086
5083
  if (!s)
5087
5084
  continue;
5088
- const f = e.all(s), c = String(s.identifier).toUpperCase(), p = Oe(c.toLowerCase());
5085
+ const f = e.all(s), c = String(s.identifier).toUpperCase(), p = Re(c.toLowerCase());
5089
5086
  let h = 0;
5090
5087
  const d = [], x = e.footnoteCounts.get(c);
5091
5088
  for (; x !== void 0 && ++h <= x; ) {
@@ -5162,17 +5159,17 @@ const sn = (
5162
5159
  */
5163
5160
  function(e) {
5164
5161
  if (e == null)
5165
- return nu;
5162
+ return eu;
5166
5163
  if (typeof e == "function")
5167
5164
  return cn(e);
5168
5165
  if (typeof e == "object")
5169
- return Array.isArray(e) ? Ja(e) : Za(e);
5166
+ return Array.isArray(e) ? Ka(e) : Ja(e);
5170
5167
  if (typeof e == "string")
5171
- return eu(e);
5168
+ return Za(e);
5172
5169
  throw new Error("Expected function, string, or object as test");
5173
5170
  }
5174
5171
  );
5175
- function Ja(e) {
5172
+ function Ka(e) {
5176
5173
  const t = [];
5177
5174
  let n = -1;
5178
5175
  for (; ++n < e.length; )
@@ -5185,7 +5182,7 @@ function Ja(e) {
5185
5182
  return !1;
5186
5183
  }
5187
5184
  }
5188
- function Za(e) {
5185
+ function Ja(e) {
5189
5186
  const t = (
5190
5187
  /** @type {Record<string, unknown>} */
5191
5188
  e
@@ -5203,7 +5200,7 @@ function Za(e) {
5203
5200
  return !0;
5204
5201
  }
5205
5202
  }
5206
- function eu(e) {
5203
+ function Za(e) {
5207
5204
  return cn(t);
5208
5205
  function t(n) {
5209
5206
  return n && n.type === e;
@@ -5212,7 +5209,7 @@ function eu(e) {
5212
5209
  function cn(e) {
5213
5210
  return t;
5214
5211
  function t(n, r, i) {
5215
- return !!(tu(n) && e.call(
5212
+ return !!(nu(n) && e.call(
5216
5213
  this,
5217
5214
  n,
5218
5215
  typeof r == "number" ? r : void 0,
@@ -5220,14 +5217,14 @@ function cn(e) {
5220
5217
  ));
5221
5218
  }
5222
5219
  }
5223
- function nu() {
5220
+ function eu() {
5224
5221
  return !0;
5225
5222
  }
5226
- function tu(e) {
5223
+ function nu(e) {
5227
5224
  return e !== null && typeof e == "object" && "type" in e;
5228
5225
  }
5229
- const Or = [], ru = !0, On = !1, iu = "skip";
5230
- function Rr(e, t, n, r) {
5226
+ const Rr = [], tu = !0, Fn = !1, ru = "skip";
5227
+ function Or(e, t, n, r) {
5231
5228
  let i;
5232
5229
  typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
5233
5230
  const o = sn(i), l = r ? -1 : 1;
@@ -5251,18 +5248,18 @@ function Rr(e, t, n, r) {
5251
5248
  }
5252
5249
  return p;
5253
5250
  function p() {
5254
- let h = Or, d, x, E;
5255
- if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = lu(n(u, f)), h[0] === On))
5251
+ let h = Rr, d, x, E;
5252
+ if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = iu(n(u, f)), h[0] === Fn))
5256
5253
  return h;
5257
5254
  if ("children" in u && u.children) {
5258
5255
  const y = (
5259
5256
  /** @type {UnistParent} */
5260
5257
  u
5261
5258
  );
5262
- if (y.children && h[0] !== iu)
5259
+ if (y.children && h[0] !== ru)
5263
5260
  for (x = (r ? y.children.length : -1) + l, E = f.concat(y); x > -1 && x < y.children.length; ) {
5264
5261
  const S = y.children[x];
5265
- if (d = a(S, x, E)(), d[0] === On)
5262
+ if (d = a(S, x, E)(), d[0] === Fn)
5266
5263
  return d;
5267
5264
  x = typeof d[1] == "number" ? d[1] : x + l;
5268
5265
  }
@@ -5271,22 +5268,22 @@ function Rr(e, t, n, r) {
5271
5268
  }
5272
5269
  }
5273
5270
  }
5274
- function lu(e) {
5275
- return Array.isArray(e) ? e : typeof e == "number" ? [ru, e] : e == null ? Or : [e];
5271
+ function iu(e) {
5272
+ return Array.isArray(e) ? e : typeof e == "number" ? [tu, e] : e == null ? Rr : [e];
5276
5273
  }
5277
- function Jn(e, t, n, r) {
5274
+ function Kn(e, t, n, r) {
5278
5275
  let i, o, l;
5279
- typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r), Rr(e, o, a, i);
5276
+ typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r), Or(e, o, a, i);
5280
5277
  function a(u, s) {
5281
5278
  const f = s[s.length - 1], c = f ? f.children.indexOf(u) : void 0;
5282
5279
  return l(u, c, f);
5283
5280
  }
5284
5281
  }
5285
- const Rn = {}.hasOwnProperty, ou = {};
5286
- function au(e, t) {
5287
- const n = t || ou, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...qa, ...n.handlers }, a = {
5282
+ const Rn = {}.hasOwnProperty, lu = {};
5283
+ function ou(e, t) {
5284
+ const n = t || lu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...qa, ...n.handlers }, a = {
5288
5285
  all: s,
5289
- applyData: su,
5286
+ applyData: uu,
5290
5287
  definitionById: r,
5291
5288
  footnoteById: i,
5292
5289
  footnoteCounts: o,
@@ -5294,10 +5291,10 @@ function au(e, t) {
5294
5291
  handlers: l,
5295
5292
  one: u,
5296
5293
  options: n,
5297
- patch: uu,
5298
- wrap: fu
5294
+ patch: au,
5295
+ wrap: cu
5299
5296
  };
5300
- return Jn(e, function(f) {
5297
+ return Kn(e, function(f) {
5301
5298
  if (f.type === "definition" || f.type === "footnoteDefinition") {
5302
5299
  const c = f.type === "definition" ? r : i, p = String(f.identifier).toUpperCase();
5303
5300
  c.has(p) || c.set(p, f);
@@ -5314,7 +5311,7 @@ function au(e, t) {
5314
5311
  }
5315
5312
  return rn(f);
5316
5313
  }
5317
- return (a.options.unknownHandler || cu)(a, f, c);
5314
+ return (a.options.unknownHandler || su)(a, f, c);
5318
5315
  }
5319
5316
  function s(f) {
5320
5317
  const c = [];
@@ -5335,10 +5332,10 @@ function au(e, t) {
5335
5332
  return c;
5336
5333
  }
5337
5334
  }
5338
- function uu(e, t) {
5339
- e.position && (t.position = Qi(e));
5335
+ function au(e, t) {
5336
+ e.position && (t.position = Wi(e));
5340
5337
  }
5341
- function su(e, t) {
5338
+ function uu(e, t) {
5342
5339
  let n = t;
5343
5340
  if (e && e.data) {
5344
5341
  const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
@@ -5353,7 +5350,7 @@ function su(e, t) {
5353
5350
  }
5354
5351
  return n;
5355
5352
  }
5356
- function cu(e, t) {
5353
+ function su(e, t) {
5357
5354
  const n = t.data || {}, r = "value" in t && !(Rn.call(n, "hProperties") || Rn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
5358
5355
  type: "element",
5359
5356
  tagName: "div",
@@ -5362,7 +5359,7 @@ function cu(e, t) {
5362
5359
  };
5363
5360
  return e.patch(t, r), e.applyData(t, r);
5364
5361
  }
5365
- function fu(e, t) {
5362
+ function cu(e, t) {
5366
5363
  const n = [];
5367
5364
  let r = -1;
5368
5365
  for (t && n.push({ type: "text", value: `
@@ -5378,33 +5375,33 @@ function Rt(e) {
5378
5375
  t++, n = e.charCodeAt(t);
5379
5376
  return e.slice(t);
5380
5377
  }
5381
- function _t(e, t) {
5382
- const n = au(e, t), r = n.one(e, void 0), i = Ka(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5378
+ function Ot(e, t) {
5379
+ const n = ou(e, t), r = n.one(e, void 0), i = Xa(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5383
5380
  return i && o.children.push({ type: "text", value: `
5384
5381
  ` }, i), o;
5385
5382
  }
5386
- function hu(e, t) {
5383
+ function fu(e, t) {
5387
5384
  return e && "run" in e ? async function(n, r) {
5388
5385
  const i = (
5389
5386
  /** @type {HastRoot} */
5390
- _t(n, { file: r, ...t })
5387
+ Ot(n, { file: r, ...t })
5391
5388
  );
5392
5389
  await e.run(i, r);
5393
5390
  } : function(n, r) {
5394
5391
  return (
5395
5392
  /** @type {HastRoot} */
5396
- _t(n, { file: r, ...e || t })
5393
+ Ot(n, { file: r, ...e || t })
5397
5394
  );
5398
5395
  };
5399
5396
  }
5400
- function Mt(e) {
5397
+ function _t(e) {
5401
5398
  if (e)
5402
5399
  throw e;
5403
5400
  }
5404
- var dn, Nt;
5405
- function pu() {
5406
- if (Nt) return dn;
5407
- Nt = 1;
5401
+ var dn, Mt;
5402
+ function hu() {
5403
+ if (Mt) return dn;
5404
+ Mt = 1;
5408
5405
  var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(s) {
5409
5406
  return typeof Array.isArray == "function" ? Array.isArray(s) : t.call(s) === "[object Array]";
5410
5407
  }, o = function(s) {
@@ -5441,15 +5438,15 @@ function pu() {
5441
5438
  return x;
5442
5439
  }, dn;
5443
5440
  }
5444
- var mu = /* @__PURE__ */ pu();
5445
- const yn = /* @__PURE__ */ er(mu);
5446
- function _n(e) {
5441
+ var pu = /* @__PURE__ */ hu();
5442
+ const yn = /* @__PURE__ */ er(pu);
5443
+ function On(e) {
5447
5444
  if (typeof e != "object" || e === null)
5448
5445
  return !1;
5449
5446
  const t = Object.getPrototypeOf(e);
5450
5447
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5451
5448
  }
5452
- function gu() {
5449
+ function mu() {
5453
5450
  const e = [], t = { run: n, use: r };
5454
5451
  return t;
5455
5452
  function n(...i) {
@@ -5467,7 +5464,7 @@ function gu() {
5467
5464
  }
5468
5465
  for (; ++c < i.length; )
5469
5466
  (s[c] === null || s[c] === void 0) && (s[c] = i[c]);
5470
- i = s, f ? du(f, a)(...s) : l(null, ...s);
5467
+ i = s, f ? gu(f, a)(...s) : l(null, ...s);
5471
5468
  }
5472
5469
  }
5473
5470
  function r(i) {
@@ -5478,7 +5475,7 @@ function gu() {
5478
5475
  return e.push(i), t;
5479
5476
  }
5480
5477
  }
5481
- function du(e, t) {
5478
+ function gu(e, t) {
5482
5479
  let n;
5483
5480
  return r;
5484
5481
  function r(...l) {
@@ -5505,8 +5502,8 @@ function du(e, t) {
5505
5502
  i(null, l);
5506
5503
  }
5507
5504
  }
5508
- const ce = { basename: yu, dirname: ku, extname: xu, join: bu, sep: "/" };
5509
- function yu(e, t) {
5505
+ const ce = { basename: du, dirname: yu, extname: ku, join: xu, sep: "/" };
5506
+ function du(e, t) {
5510
5507
  if (t !== void 0 && typeof t != "string")
5511
5508
  throw new TypeError('"ext" argument must be a string');
5512
5509
  Qe(e);
@@ -5534,7 +5531,7 @@ function yu(e, t) {
5534
5531
  l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
5535
5532
  return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
5536
5533
  }
5537
- function ku(e) {
5534
+ function yu(e) {
5538
5535
  if (Qe(e), e.length === 0)
5539
5536
  return ".";
5540
5537
  let t = -1, n = e.length, r;
@@ -5547,7 +5544,7 @@ function ku(e) {
5547
5544
  } else r || (r = !0);
5548
5545
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
5549
5546
  }
5550
- function xu(e) {
5547
+ function ku(e) {
5551
5548
  Qe(e);
5552
5549
  let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
5553
5550
  for (; t--; ) {
@@ -5565,19 +5562,19 @@ function xu(e) {
5565
5562
  o === 0 || // The (right-most) trimmed path component is exactly `..`.
5566
5563
  o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
5567
5564
  }
5568
- function bu(...e) {
5565
+ function xu(...e) {
5569
5566
  let t = -1, n;
5570
5567
  for (; ++t < e.length; )
5571
5568
  Qe(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
5572
- return n === void 0 ? "." : wu(n);
5569
+ return n === void 0 ? "." : bu(n);
5573
5570
  }
5574
- function wu(e) {
5571
+ function bu(e) {
5575
5572
  Qe(e);
5576
5573
  const t = e.codePointAt(0) === 47;
5577
- let n = Su(e, !t);
5574
+ let n = wu(e, !t);
5578
5575
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
5579
5576
  }
5580
- function Su(e, t) {
5577
+ function wu(e, t) {
5581
5578
  let n = "", r = 0, i = -1, o = 0, l = -1, a, u;
5582
5579
  for (; ++l <= e.length; ) {
5583
5580
  if (l < e.length)
@@ -5614,18 +5611,18 @@ function Qe(e) {
5614
5611
  "Path must be a string. Received " + JSON.stringify(e)
5615
5612
  );
5616
5613
  }
5617
- const Cu = { cwd: Eu };
5618
- function Eu() {
5614
+ const Su = { cwd: Cu };
5615
+ function Cu() {
5619
5616
  return "/";
5620
5617
  }
5621
- function Mn(e) {
5618
+ function _n(e) {
5622
5619
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5623
5620
  e.auth === void 0);
5624
5621
  }
5625
- function Iu(e) {
5622
+ function Eu(e) {
5626
5623
  if (typeof e == "string")
5627
5624
  e = new URL(e);
5628
- else if (!Mn(e)) {
5625
+ else if (!_n(e)) {
5629
5626
  const t = new TypeError(
5630
5627
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
5631
5628
  );
@@ -5635,9 +5632,9 @@ function Iu(e) {
5635
5632
  const t = new TypeError("The URL must be of scheme file");
5636
5633
  throw t.code = "ERR_INVALID_URL_SCHEME", t;
5637
5634
  }
5638
- return Au(e);
5635
+ return Iu(e);
5639
5636
  }
5640
- function Au(e) {
5637
+ function Iu(e) {
5641
5638
  if (e.hostname !== "") {
5642
5639
  const r = new TypeError(
5643
5640
  'File URL host must be "localhost" or empty on darwin'
@@ -5694,7 +5691,7 @@ class _r {
5694
5691
  */
5695
5692
  constructor(t) {
5696
5693
  let n;
5697
- t ? Mn(t) ? n = { path: t } : typeof t == "string" || Tu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Cu.cwd(), this.data = {}, this.history = [], this.messages = [];
5694
+ t ? _n(t) ? n = { path: t } : typeof t == "string" || Au(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Su.cwd(), this.data = {}, this.history = [], this.messages = [];
5698
5695
  let r = -1;
5699
5696
  for (; ++r < kn.length; ) {
5700
5697
  const o = kn[r];
@@ -5748,7 +5745,7 @@ class _r {
5748
5745
  * Nothing.
5749
5746
  */
5750
5747
  set dirname(t) {
5751
- Bt(this.basename, "dirname"), this.path = ce.join(t || "", this.basename);
5748
+ Nt(this.basename, "dirname"), this.path = ce.join(t || "", this.basename);
5752
5749
  }
5753
5750
  /**
5754
5751
  * Get the extname (including dot) (example: `'.js'`).
@@ -5772,7 +5769,7 @@ class _r {
5772
5769
  * Nothing.
5773
5770
  */
5774
5771
  set extname(t) {
5775
- if (xn(t, "extname"), Bt(this.dirname, "extname"), t) {
5772
+ if (xn(t, "extname"), Nt(this.dirname, "extname"), t) {
5776
5773
  if (t.codePointAt(0) !== 46)
5777
5774
  throw new Error("`extname` must start with `.`");
5778
5775
  if (t.includes(".", 1))
@@ -5802,7 +5799,7 @@ class _r {
5802
5799
  * Nothing.
5803
5800
  */
5804
5801
  set path(t) {
5805
- Mn(t) && (t = Iu(t)), bn(t, "path"), this.path !== t && this.history.push(t);
5802
+ _n(t) && (t = Eu(t)), bn(t, "path"), this.path !== t && this.history.push(t);
5806
5803
  }
5807
5804
  /**
5808
5805
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -6049,14 +6046,14 @@ function bn(e, t) {
6049
6046
  if (!e)
6050
6047
  throw new Error("`" + t + "` cannot be empty");
6051
6048
  }
6052
- function Bt(e, t) {
6049
+ function Nt(e, t) {
6053
6050
  if (!e)
6054
6051
  throw new Error("Setting `" + t + "` requires `path` to be set too");
6055
6052
  }
6056
- function Tu(e) {
6053
+ function Au(e) {
6057
6054
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6058
6055
  }
6059
- const Pu = (
6056
+ const Tu = (
6060
6057
  /**
6061
6058
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
6062
6059
  */
@@ -6077,13 +6074,13 @@ const Pu = (
6077
6074
  };
6078
6075
  return Object.setPrototypeOf(o, r), o;
6079
6076
  }
6080
- ), Lu = {}.hasOwnProperty;
6081
- class Zn extends Pu {
6077
+ ), Pu = {}.hasOwnProperty;
6078
+ class Jn extends Tu {
6082
6079
  /**
6083
6080
  * Create a processor.
6084
6081
  */
6085
6082
  constructor() {
6086
- 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 = gu();
6083
+ super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = mu();
6087
6084
  }
6088
6085
  /**
6089
6086
  * Copy a processor.
@@ -6099,7 +6096,7 @@ class Zn extends Pu {
6099
6096
  copy() {
6100
6097
  const t = (
6101
6098
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
6102
- new Zn()
6099
+ new Jn()
6103
6100
  );
6104
6101
  let n = -1;
6105
6102
  for (; ++n < this.attachers.length; ) {
@@ -6168,7 +6165,7 @@ class Zn extends Pu {
6168
6165
  * the entire dataset when getting without key.
6169
6166
  */
6170
6167
  data(t, n) {
6171
- return typeof t == "string" ? arguments.length === 2 ? (Cn("data", this.frozen), this.namespace[t] = n, this) : Lu.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Cn("data", this.frozen), this.namespace = t, this) : this.namespace;
6168
+ return typeof t == "string" ? arguments.length === 2 ? (Cn("data", this.frozen), this.namespace[t] = n, this) : Pu.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Cn("data", this.frozen), this.namespace = t, this) : this.namespace;
6172
6169
  }
6173
6170
  /**
6174
6171
  * Freeze a processor.
@@ -6283,7 +6280,7 @@ class Zn extends Pu {
6283
6280
  /** @type {unknown} */
6284
6281
  c
6285
6282
  ), d = r.stringify(h, p);
6286
- Du(d) ? p.value = d : p.result = d, s(
6283
+ zu(d) ? p.value = d : p.result = d, s(
6287
6284
  f,
6288
6285
  /** @type {VFileWithOutput<CompileResult>} */
6289
6286
  p
@@ -6327,9 +6324,9 @@ class Zn extends Pu {
6327
6324
  */
6328
6325
  processSync(t) {
6329
6326
  let n = !1, r;
6330
- return this.freeze(), wn("processSync", this.parser || this.Parser), Sn("processSync", this.compiler || this.Compiler), this.process(t, i), Ht("processSync", "process", n), r;
6327
+ return this.freeze(), wn("processSync", this.parser || this.Parser), Sn("processSync", this.compiler || this.Compiler), this.process(t, i), jt("processSync", "process", n), r;
6331
6328
  function i(o, l) {
6332
- n = !0, Mt(o), r = l;
6329
+ n = !0, _t(o), r = l;
6333
6330
  }
6334
6331
  }
6335
6332
  /**
@@ -6371,7 +6368,7 @@ class Zn extends Pu {
6371
6368
  * transformed tree.
6372
6369
  */
6373
6370
  run(t, n, r) {
6374
- jt(t), this.freeze();
6371
+ Bt(t), this.freeze();
6375
6372
  const i = this.transformers;
6376
6373
  return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
6377
6374
  function o(l, a) {
@@ -6405,9 +6402,9 @@ class Zn extends Pu {
6405
6402
  */
6406
6403
  runSync(t, n) {
6407
6404
  let r = !1, i;
6408
- return this.run(t, n, o), Ht("runSync", "run", r), i;
6405
+ return this.run(t, n, o), jt("runSync", "run", r), i;
6409
6406
  function o(l, a) {
6410
- Mt(l), i = a, r = !0;
6407
+ _t(l), i = a, r = !0;
6411
6408
  }
6412
6409
  }
6413
6410
  /**
@@ -6442,7 +6439,7 @@ class Zn extends Pu {
6442
6439
  stringify(t, n) {
6443
6440
  this.freeze();
6444
6441
  const r = Ke(n), i = this.compiler || this.Compiler;
6445
- return Sn("stringify", i), jt(t), i(t, r);
6442
+ return Sn("stringify", i), Bt(t), i(t, r);
6446
6443
  }
6447
6444
  /**
6448
6445
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -6554,12 +6551,12 @@ class Zn extends Pu {
6554
6551
  else if (f.length > 0) {
6555
6552
  let [h, ...d] = f;
6556
6553
  const x = r[p][1];
6557
- _n(x) && _n(h) && (h = yn(!0, x, h)), r[p] = [s, h, ...d];
6554
+ On(x) && On(h) && (h = yn(!0, x, h)), r[p] = [s, h, ...d];
6558
6555
  }
6559
6556
  }
6560
6557
  }
6561
6558
  }
6562
- const vu = new Zn().freeze();
6559
+ const Lu = new Jn().freeze();
6563
6560
  function wn(e, t) {
6564
6561
  if (typeof t != "function")
6565
6562
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -6574,29 +6571,29 @@ function Cn(e, t) {
6574
6571
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
6575
6572
  );
6576
6573
  }
6577
- function jt(e) {
6578
- if (!_n(e) || typeof e.type != "string")
6574
+ function Bt(e) {
6575
+ if (!On(e) || typeof e.type != "string")
6579
6576
  throw new TypeError("Expected node, got `" + e + "`");
6580
6577
  }
6581
- function Ht(e, t, n) {
6578
+ function jt(e, t, n) {
6582
6579
  if (!n)
6583
6580
  throw new Error(
6584
6581
  "`" + e + "` finished async. Use `" + t + "` instead"
6585
6582
  );
6586
6583
  }
6587
6584
  function Ke(e) {
6588
- return zu(e) ? e : new _r(e);
6585
+ return vu(e) ? e : new _r(e);
6589
6586
  }
6590
- function zu(e) {
6587
+ function vu(e) {
6591
6588
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6592
6589
  }
6593
- function Du(e) {
6594
- return typeof e == "string" || Fu(e);
6590
+ function zu(e) {
6591
+ return typeof e == "string" || Du(e);
6595
6592
  }
6596
- function Fu(e) {
6593
+ function Du(e) {
6597
6594
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6598
6595
  }
6599
- const Ut = [], $t = { allowDangerousHtml: !0 }, Ou = /^(https?|ircs?|mailto|xmpp)$/i, Ru = [
6596
+ const Ht = [], Ut = { allowDangerousHtml: !0 }, Fu = /^(https?|ircs?|mailto|xmpp)$/i, Ru = [
6600
6597
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
6601
6598
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
6602
6599
  {
@@ -6630,7 +6627,7 @@ const Ut = [], $t = { allowDangerousHtml: !0 }, Ou = /^(https?|ircs?|mailto|xmpp
6630
6627
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
6631
6628
  ];
6632
6629
  function qt(e) {
6633
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Ut, u = e.remarkPlugins || Ut, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...$t } : $t, f = e.skipHtml, c = e.unwrapDisallowed, p = e.urlTransform || _u, h = vu().use(ka).use(u).use(hu, s).use(a), d = new _r();
6630
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Ht, u = e.remarkPlugins || Ht, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ut } : Ut, f = e.skipHtml, c = e.unwrapDisallowed, p = e.urlTransform || Ou, h = Lu().use(ya).use(u).use(fu, s).use(a), d = new _r();
6634
6631
  typeof r == "string" && (d.value = r);
6635
6632
  for (const S of Ru)
6636
6633
  ;
@@ -6645,7 +6642,7 @@ function qt(e) {
6645
6642
  /** @type {Array<ElementContent>} */
6646
6643
  E.type === "root" ? E.children : [E]
6647
6644
  )
6648
- }), Jn(E, y), Zi(E, {
6645
+ }), Kn(E, y), Ji(E, {
6649
6646
  Fragment: mi,
6650
6647
  // @ts-expect-error
6651
6648
  // React components are allowed to return numbers,
@@ -6675,16 +6672,16 @@ function qt(e) {
6675
6672
  }
6676
6673
  }
6677
6674
  }
6678
- function _u(e) {
6675
+ function Ou(e) {
6679
6676
  const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
6680
6677
  return (
6681
6678
  // If there is no protocol, it’s relative.
6682
6679
  t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
6683
6680
  i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
6684
- Ou.test(e.slice(0, t)) ? e : ""
6681
+ Fu.test(e.slice(0, t)) ? e : ""
6685
6682
  );
6686
6683
  }
6687
- function Vt(e, t) {
6684
+ function $t(e, t) {
6688
6685
  const n = String(e);
6689
6686
  if (typeof t != "string")
6690
6687
  throw new TypeError("Expected character");
@@ -6693,16 +6690,16 @@ function Vt(e, t) {
6693
6690
  r++, i = n.indexOf(t, i + t.length);
6694
6691
  return r;
6695
6692
  }
6696
- function Mu(e) {
6693
+ function _u(e) {
6697
6694
  if (typeof e != "string")
6698
6695
  throw new TypeError("Expected a string");
6699
6696
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
6700
6697
  }
6701
- function Nu(e, t, n) {
6702
- const i = sn(n.ignore || []), o = Bu(t);
6698
+ function Mu(e, t, n) {
6699
+ const i = sn(n.ignore || []), o = Nu(t);
6703
6700
  let l = -1;
6704
6701
  for (; ++l < o.length; )
6705
- Rr(e, "text", a);
6702
+ Or(e, "text", a);
6706
6703
  function a(s, f) {
6707
6704
  let c = -1, p;
6708
6705
  for (; ++c < f.length; ) {
@@ -6742,7 +6739,7 @@ function Nu(e, t, n) {
6742
6739
  return y ? (d < s.value.length && S.push({ type: "text", value: s.value.slice(d) }), c.children.splice(E, 1, ...S)) : S = [s], E + S.length;
6743
6740
  }
6744
6741
  }
6745
- function Bu(e) {
6742
+ function Nu(e) {
6746
6743
  const t = [];
6747
6744
  if (!Array.isArray(e))
6748
6745
  throw new TypeError("Expected find and replace tuple or list of tuples");
@@ -6750,22 +6747,22 @@ function Bu(e) {
6750
6747
  let r = -1;
6751
6748
  for (; ++r < n.length; ) {
6752
6749
  const i = n[r];
6753
- t.push([ju(i[0]), Hu(i[1])]);
6750
+ t.push([Bu(i[0]), ju(i[1])]);
6754
6751
  }
6755
6752
  return t;
6756
6753
  }
6757
- function ju(e) {
6758
- return typeof e == "string" ? new RegExp(Mu(e), "g") : e;
6754
+ function Bu(e) {
6755
+ return typeof e == "string" ? new RegExp(_u(e), "g") : e;
6759
6756
  }
6760
- function Hu(e) {
6757
+ function ju(e) {
6761
6758
  return typeof e == "function" ? e : function() {
6762
6759
  return e;
6763
6760
  };
6764
6761
  }
6765
6762
  const En = "phrasing", In = ["autolink", "link", "image", "label"];
6766
- function Uu() {
6763
+ function Hu() {
6767
6764
  return {
6768
- transforms: [Gu],
6765
+ transforms: [Yu],
6769
6766
  enter: {
6770
6767
  literalAutolink: qu,
6771
6768
  literalAutolinkEmail: An,
@@ -6773,14 +6770,14 @@ function Uu() {
6773
6770
  literalAutolinkWww: An
6774
6771
  },
6775
6772
  exit: {
6776
- literalAutolink: Yu,
6777
- literalAutolinkEmail: Qu,
6778
- literalAutolinkHttp: Vu,
6779
- literalAutolinkWww: Wu
6773
+ literalAutolink: Qu,
6774
+ literalAutolinkEmail: Wu,
6775
+ literalAutolinkHttp: $u,
6776
+ literalAutolinkWww: Vu
6780
6777
  }
6781
6778
  };
6782
6779
  }
6783
- function $u() {
6780
+ function Uu() {
6784
6781
  return {
6785
6782
  unsafe: [
6786
6783
  {
@@ -6813,35 +6810,35 @@ function qu(e) {
6813
6810
  function An(e) {
6814
6811
  this.config.enter.autolinkProtocol.call(this, e);
6815
6812
  }
6816
- function Vu(e) {
6813
+ function $u(e) {
6817
6814
  this.config.exit.autolinkProtocol.call(this, e);
6818
6815
  }
6819
- function Wu(e) {
6816
+ function Vu(e) {
6820
6817
  this.config.exit.data.call(this, e);
6821
6818
  const t = this.stack[this.stack.length - 1];
6822
6819
  t.url = "http://" + this.sliceSerialize(e);
6823
6820
  }
6824
- function Qu(e) {
6821
+ function Wu(e) {
6825
6822
  this.config.exit.autolinkEmail.call(this, e);
6826
6823
  }
6827
- function Yu(e) {
6824
+ function Qu(e) {
6828
6825
  this.exit(e);
6829
6826
  }
6830
- function Gu(e) {
6831
- Nu(
6827
+ function Yu(e) {
6828
+ Mu(
6832
6829
  e,
6833
6830
  [
6834
- [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Xu],
6835
- [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Ku]
6831
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Gu],
6832
+ [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Xu]
6836
6833
  ],
6837
6834
  { ignore: ["link", "linkReference"] }
6838
6835
  );
6839
6836
  }
6840
- function Xu(e, t, n, r, i) {
6837
+ function Gu(e, t, n, r, i) {
6841
6838
  let o = "";
6842
- if (!Mr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Ju(n)))
6839
+ if (!Mr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Ku(n)))
6843
6840
  return !1;
6844
- const l = Zu(n + r);
6841
+ const l = Ju(n + r);
6845
6842
  if (!l[0]) return !1;
6846
6843
  const a = {
6847
6844
  type: "link",
@@ -6851,7 +6848,7 @@ function Xu(e, t, n, r, i) {
6851
6848
  };
6852
6849
  return l[1] ? [a, { type: "text", value: l[1] }] : a;
6853
6850
  }
6854
- function Ku(e, t, n, r) {
6851
+ function Xu(e, t, n, r) {
6855
6852
  return (
6856
6853
  // Not an expected previous character.
6857
6854
  !Mr(r, !0) || // Label ends in not allowed character.
@@ -6863,18 +6860,18 @@ function Ku(e, t, n, r) {
6863
6860
  }
6864
6861
  );
6865
6862
  }
6866
- function Ju(e) {
6863
+ function Ku(e) {
6867
6864
  const t = e.split(".");
6868
6865
  return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
6869
6866
  }
6870
- function Zu(e) {
6867
+ function Ju(e) {
6871
6868
  const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
6872
6869
  if (!t)
6873
6870
  return [e, void 0];
6874
6871
  e = e.slice(0, t.index);
6875
6872
  let n = t[0], r = n.indexOf(")");
6876
- const i = Vt(e, "(");
6877
- let o = Vt(e, ")");
6873
+ const i = $t(e, "(");
6874
+ let o = $t(e, ")");
6878
6875
  for (; r !== -1 && i > o; )
6879
6876
  e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), o++;
6880
6877
  return [e, n];
@@ -6884,61 +6881,61 @@ function Mr(e, t) {
6884
6881
  return (e.index === 0 || Ee(n) || on(n)) && // If it’s an email, the previous character should not be a slash.
6885
6882
  (!t || n !== 47);
6886
6883
  }
6887
- Nr.peek = cs;
6888
- function es() {
6884
+ Nr.peek = ss;
6885
+ function Zu() {
6889
6886
  return {
6890
6887
  enter: {
6891
- gfmFootnoteDefinition: ts,
6892
- gfmFootnoteDefinitionLabelString: rs,
6893
- gfmFootnoteCall: os,
6894
- gfmFootnoteCallString: as
6888
+ gfmFootnoteDefinition: ns,
6889
+ gfmFootnoteDefinitionLabelString: ts,
6890
+ gfmFootnoteCall: ls,
6891
+ gfmFootnoteCallString: os
6895
6892
  },
6896
6893
  exit: {
6897
- gfmFootnoteDefinition: ls,
6898
- gfmFootnoteDefinitionLabelString: is,
6899
- gfmFootnoteCall: ss,
6900
- gfmFootnoteCallString: us
6894
+ gfmFootnoteDefinition: is,
6895
+ gfmFootnoteDefinitionLabelString: rs,
6896
+ gfmFootnoteCall: us,
6897
+ gfmFootnoteCallString: as
6901
6898
  }
6902
6899
  };
6903
6900
  }
6904
- function ns() {
6901
+ function es() {
6905
6902
  return {
6906
6903
  // This is on by default already.
6907
6904
  unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
6908
- handlers: { footnoteDefinition: fs, footnoteReference: Nr }
6905
+ handlers: { footnoteDefinition: cs, footnoteReference: Nr }
6909
6906
  };
6910
6907
  }
6911
- function ts(e) {
6908
+ function ns(e) {
6912
6909
  this.enter(
6913
6910
  { type: "footnoteDefinition", identifier: "", label: "", children: [] },
6914
6911
  e
6915
6912
  );
6916
6913
  }
6917
- function rs() {
6914
+ function ts() {
6918
6915
  this.buffer();
6919
6916
  }
6920
- function is(e) {
6917
+ function rs(e) {
6921
6918
  const t = this.resume(), n = this.stack[this.stack.length - 1];
6922
6919
  n.label = t, n.identifier = se(
6923
6920
  this.sliceSerialize(e)
6924
6921
  ).toLowerCase();
6925
6922
  }
6926
- function ls(e) {
6923
+ function is(e) {
6927
6924
  this.exit(e);
6928
6925
  }
6929
- function os(e) {
6926
+ function ls(e) {
6930
6927
  this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
6931
6928
  }
6932
- function as() {
6929
+ function os() {
6933
6930
  this.buffer();
6934
6931
  }
6935
- function us(e) {
6932
+ function as(e) {
6936
6933
  const t = this.resume(), n = this.stack[this.stack.length - 1];
6937
6934
  n.label = t, n.identifier = se(
6938
6935
  this.sliceSerialize(e)
6939
6936
  ).toLowerCase();
6940
6937
  }
6941
- function ss(e) {
6938
+ function us(e) {
6942
6939
  this.exit(e);
6943
6940
  }
6944
6941
  function Nr(e, t, n, r) {
@@ -6953,10 +6950,10 @@ function Nr(e, t, n, r) {
6953
6950
  })
6954
6951
  ), a(), l(), o += i.move("]"), o;
6955
6952
  }
6956
- function cs() {
6953
+ function ss() {
6957
6954
  return "[";
6958
6955
  }
6959
- function fs(e, t, n, r) {
6956
+ function cs(e, t, n, r) {
6960
6957
  const i = n.createTracker(r);
6961
6958
  let o = i.move("[^");
6962
6959
  const l = n.enter("footnoteDefinition"), a = n.enter("label");
@@ -6969,13 +6966,13 @@ function fs(e, t, n, r) {
6969
6966
  ), a(), o += i.move(
6970
6967
  "]:" + (e.children && e.children.length > 0 ? " " : "")
6971
6968
  ), i.shift(4), o += i.move(
6972
- n.indentLines(n.containerFlow(e, i.current()), hs)
6969
+ n.indentLines(n.containerFlow(e, i.current()), fs)
6973
6970
  ), l(), o;
6974
6971
  }
6975
- function hs(e, t, n) {
6972
+ function fs(e, t, n) {
6976
6973
  return t === 0 ? e : (n ? "" : " ") + e;
6977
6974
  }
6978
- const ps = [
6975
+ const hs = [
6979
6976
  "autolink",
6980
6977
  "destinationLiteral",
6981
6978
  "destinationRaw",
@@ -6983,30 +6980,30 @@ const ps = [
6983
6980
  "titleQuote",
6984
6981
  "titleApostrophe"
6985
6982
  ];
6986
- Br.peek = ks;
6987
- function ms() {
6983
+ Br.peek = ys;
6984
+ function ps() {
6988
6985
  return {
6989
6986
  canContainEols: ["delete"],
6990
- enter: { strikethrough: ds },
6991
- exit: { strikethrough: ys }
6987
+ enter: { strikethrough: gs },
6988
+ exit: { strikethrough: ds }
6992
6989
  };
6993
6990
  }
6994
- function gs() {
6991
+ function ms() {
6995
6992
  return {
6996
6993
  unsafe: [
6997
6994
  {
6998
6995
  character: "~",
6999
6996
  inConstruct: "phrasing",
7000
- notInConstruct: ps
6997
+ notInConstruct: hs
7001
6998
  }
7002
6999
  ],
7003
7000
  handlers: { delete: Br }
7004
7001
  };
7005
7002
  }
7006
- function ds(e) {
7003
+ function gs(e) {
7007
7004
  this.enter({ type: "delete", children: [] }, e);
7008
7005
  }
7009
- function ys(e) {
7006
+ function ds(e) {
7010
7007
  this.exit(e);
7011
7008
  }
7012
7009
  function Br(e, t, n, r) {
@@ -7018,20 +7015,20 @@ function Br(e, t, n, r) {
7018
7015
  after: "~"
7019
7016
  }), l += i.move("~~"), o(), l;
7020
7017
  }
7021
- function ks() {
7018
+ function ys() {
7022
7019
  return "~";
7023
7020
  }
7024
- function xs(e) {
7021
+ function ks(e) {
7025
7022
  return e.length;
7026
7023
  }
7027
- function bs(e, t) {
7028
- const n = t, r = (n.align || []).concat(), i = n.stringLength || xs, o = [], l = [], a = [], u = [];
7024
+ function xs(e, t) {
7025
+ const n = t, r = (n.align || []).concat(), i = n.stringLength || ks, o = [], l = [], a = [], u = [];
7029
7026
  let s = 0, f = -1;
7030
7027
  for (; ++f < e.length; ) {
7031
7028
  const x = [], E = [];
7032
7029
  let y = -1;
7033
7030
  for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
7034
- const S = ws(e[f][y]);
7031
+ const S = bs(e[f][y]);
7035
7032
  if (n.alignDelimiters !== !1) {
7036
7033
  const C = i(S);
7037
7034
  E[y] = C, (u[y] === void 0 || C > u[y]) && (u[y] = C);
@@ -7043,9 +7040,9 @@ function bs(e, t) {
7043
7040
  let c = -1;
7044
7041
  if (typeof r == "object" && "length" in r)
7045
7042
  for (; ++c < s; )
7046
- o[c] = Wt(r[c]);
7043
+ o[c] = Vt(r[c]);
7047
7044
  else {
7048
- const x = Wt(r);
7045
+ const x = Vt(r);
7049
7046
  for (; ++c < s; )
7050
7047
  o[c] = x;
7051
7048
  }
@@ -7086,29 +7083,29 @@ function bs(e, t) {
7086
7083
  return d.join(`
7087
7084
  `);
7088
7085
  }
7089
- function ws(e) {
7086
+ function bs(e) {
7090
7087
  return e == null ? "" : String(e);
7091
7088
  }
7092
- function Wt(e) {
7089
+ function Vt(e) {
7093
7090
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
7094
7091
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
7095
7092
  }
7096
- function Ss(e, t, n, r) {
7093
+ function ws(e, t, n, r) {
7097
7094
  const i = n.enter("blockquote"), o = n.createTracker(r);
7098
7095
  o.move("> "), o.shift(2);
7099
7096
  const l = n.indentLines(
7100
7097
  n.containerFlow(e, o.current()),
7101
- Cs
7098
+ Ss
7102
7099
  );
7103
7100
  return i(), l;
7104
7101
  }
7105
- function Cs(e, t, n) {
7102
+ function Ss(e, t, n) {
7106
7103
  return ">" + (n ? "" : " ") + e;
7107
7104
  }
7108
- function Es(e, t) {
7109
- return Qt(e, t.inConstruct, !0) && !Qt(e, t.notInConstruct, !1);
7105
+ function Cs(e, t) {
7106
+ return Wt(e, t.inConstruct, !0) && !Wt(e, t.notInConstruct, !1);
7110
7107
  }
7111
- function Qt(e, t, n) {
7108
+ function Wt(e, t, n) {
7112
7109
  if (typeof t == "string" && (t = [t]), !t || t.length === 0)
7113
7110
  return n;
7114
7111
  let r = -1;
@@ -7117,16 +7114,16 @@ function Qt(e, t, n) {
7117
7114
  return !0;
7118
7115
  return !1;
7119
7116
  }
7120
- function Yt(e, t, n, r) {
7117
+ function Qt(e, t, n, r) {
7121
7118
  let i = -1;
7122
7119
  for (; ++i < n.unsafe.length; )
7123
7120
  if (n.unsafe[i].character === `
7124
- ` && Es(n.stack, n.unsafe[i]))
7121
+ ` && Cs(n.stack, n.unsafe[i]))
7125
7122
  return /[ \t]/.test(r.before) ? "" : " ";
7126
7123
  return `\\
7127
7124
  `;
7128
7125
  }
7129
- function Is(e, t) {
7126
+ function Es(e, t) {
7130
7127
  const n = String(e);
7131
7128
  let r = n.indexOf(t), i = r, o = 0, l = 0;
7132
7129
  if (typeof t != "string")
@@ -7135,13 +7132,13 @@ function Is(e, t) {
7135
7132
  r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
7136
7133
  return l;
7137
7134
  }
7138
- function As(e, t) {
7135
+ function Is(e, t) {
7139
7136
  return !!(t.options.fences === !1 && e.value && // If there’s no info…
7140
7137
  !e.lang && // And there’s a non-whitespace character…
7141
7138
  /[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
7142
7139
  !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
7143
7140
  }
7144
- function Ts(e) {
7141
+ function As(e) {
7145
7142
  const t = e.options.fence || "`";
7146
7143
  if (t !== "`" && t !== "~")
7147
7144
  throw new Error(
@@ -7149,13 +7146,13 @@ function Ts(e) {
7149
7146
  );
7150
7147
  return t;
7151
7148
  }
7152
- function Ps(e, t, n, r) {
7153
- const i = Ts(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
7154
- if (As(e, n)) {
7155
- const c = n.enter("codeIndented"), p = n.indentLines(o, Ls);
7149
+ function Ts(e, t, n, r) {
7150
+ const i = As(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
7151
+ if (Is(e, n)) {
7152
+ const c = n.enter("codeIndented"), p = n.indentLines(o, Ps);
7156
7153
  return c(), p;
7157
7154
  }
7158
- const a = n.createTracker(r), u = i.repeat(Math.max(Is(o, i) + 1, 3)), s = n.enter("codeFenced");
7155
+ const a = n.createTracker(r), u = i.repeat(Math.max(Es(o, i) + 1, 3)), s = n.enter("codeFenced");
7159
7156
  let f = a.move(u);
7160
7157
  if (e.lang) {
7161
7158
  const c = n.enter(`codeFencedLang${l}`);
@@ -7184,10 +7181,10 @@ function Ps(e, t, n, r) {
7184
7181
  `), o && (f += a.move(o + `
7185
7182
  `)), f += a.move(u), s(), f;
7186
7183
  }
7187
- function Ls(e, t, n) {
7184
+ function Ps(e, t, n) {
7188
7185
  return (n ? "" : " ") + e;
7189
7186
  }
7190
- function et(e) {
7187
+ function Zn(e) {
7191
7188
  const t = e.options.quote || '"';
7192
7189
  if (t !== '"' && t !== "'")
7193
7190
  throw new Error(
@@ -7195,8 +7192,8 @@ function et(e) {
7195
7192
  );
7196
7193
  return t;
7197
7194
  }
7198
- function vs(e, t, n, r) {
7199
- const i = et(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
7195
+ function Ls(e, t, n, r) {
7196
+ const i = Zn(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
7200
7197
  let a = n.enter("label");
7201
7198
  const u = n.createTracker(r);
7202
7199
  let s = u.move("[");
@@ -7225,7 +7222,7 @@ function vs(e, t, n, r) {
7225
7222
  })
7226
7223
  ), s += u.move(i), a()), l(), s;
7227
7224
  }
7228
- function zs(e) {
7225
+ function vs(e) {
7229
7226
  const t = e.options.emphasis || "*";
7230
7227
  if (t !== "*" && t !== "_")
7231
7228
  throw new Error(
@@ -7233,7 +7230,7 @@ function zs(e) {
7233
7230
  );
7234
7231
  return t;
7235
7232
  }
7236
- function qe(e) {
7233
+ function $e(e) {
7237
7234
  return "&#x" + e.toString(16).toUpperCase() + ";";
7238
7235
  }
7239
7236
  function ln(e, t, n) {
@@ -7269,9 +7266,9 @@ function ln(e, t, n) {
7269
7266
  { inside: !1, outside: !1 }
7270
7267
  );
7271
7268
  }
7272
- jr.peek = Ds;
7269
+ jr.peek = zs;
7273
7270
  function jr(e, t, n, r) {
7274
- const i = zs(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
7271
+ const i = vs(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
7275
7272
  let u = l.move(
7276
7273
  n.containerPhrasing(e, {
7277
7274
  after: i,
@@ -7284,28 +7281,28 @@ function jr(e, t, n, r) {
7284
7281
  s,
7285
7282
  i
7286
7283
  );
7287
- f.inside && (u = qe(s) + u.slice(1));
7284
+ f.inside && (u = $e(s) + u.slice(1));
7288
7285
  const c = u.charCodeAt(u.length - 1), p = ln(r.after.charCodeAt(0), c, i);
7289
- p.inside && (u = u.slice(0, -1) + qe(c));
7286
+ p.inside && (u = u.slice(0, -1) + $e(c));
7290
7287
  const h = l.move(i);
7291
7288
  return o(), n.attentionEncodeSurroundingInfo = {
7292
7289
  after: p.outside,
7293
7290
  before: f.outside
7294
7291
  }, a + u + h;
7295
7292
  }
7296
- function Ds(e, t, n) {
7293
+ function zs(e, t, n) {
7297
7294
  return n.options.emphasis || "*";
7298
7295
  }
7299
- function Fs(e, t) {
7296
+ function Ds(e, t) {
7300
7297
  let n = !1;
7301
- return Jn(e, function(r) {
7298
+ return Kn(e, function(r) {
7302
7299
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
7303
- return n = !0, On;
7304
- }), !!((!e.depth || e.depth < 3) && Vn(e) && (t.options.setext || n));
7300
+ return n = !0, Fn;
7301
+ }), !!((!e.depth || e.depth < 3) && $n(e) && (t.options.setext || n));
7305
7302
  }
7306
- function Os(e, t, n, r) {
7303
+ function Fs(e, t, n, r) {
7307
7304
  const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
7308
- if (Fs(e, n)) {
7305
+ if (Ds(e, n)) {
7309
7306
  const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
7310
7307
  ...o.current(),
7311
7308
  before: `
@@ -7330,7 +7327,7 @@ function Os(e, t, n, r) {
7330
7327
  `,
7331
7328
  ...o.current()
7332
7329
  });
7333
- return /^[\t ]/.test(s) && (s = qe(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), u(), a(), s;
7330
+ return /^[\t ]/.test(s) && (s = $e(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), u(), a(), s;
7334
7331
  }
7335
7332
  Hr.peek = Rs;
7336
7333
  function Hr(e) {
@@ -7339,9 +7336,9 @@ function Hr(e) {
7339
7336
  function Rs() {
7340
7337
  return "<";
7341
7338
  }
7342
- Ur.peek = _s;
7339
+ Ur.peek = Os;
7343
7340
  function Ur(e, t, n, r) {
7344
- const i = et(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
7341
+ const i = Zn(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
7345
7342
  let a = n.enter("label");
7346
7343
  const u = n.createTracker(r);
7347
7344
  let s = u.move("![");
@@ -7365,11 +7362,11 @@ function Ur(e, t, n, r) {
7365
7362
  })
7366
7363
  ), s += u.move(i), a()), s += u.move(")"), l(), s;
7367
7364
  }
7368
- function _s() {
7365
+ function Os() {
7369
7366
  return "!";
7370
7367
  }
7371
- $r.peek = Ms;
7372
- function $r(e, t, n, r) {
7368
+ qr.peek = _s;
7369
+ function qr(e, t, n, r) {
7373
7370
  const i = e.referenceType, o = n.enter("imageReference");
7374
7371
  let l = n.enter("label");
7375
7372
  const a = n.createTracker(r);
@@ -7389,11 +7386,11 @@ function $r(e, t, n, r) {
7389
7386
  });
7390
7387
  return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
7391
7388
  }
7392
- function Ms() {
7389
+ function _s() {
7393
7390
  return "!";
7394
7391
  }
7395
- qr.peek = Ns;
7396
- function qr(e, t, n) {
7392
+ $r.peek = Ms;
7393
+ function $r(e, t, n) {
7397
7394
  let r = e.value || "", i = "`", o = -1;
7398
7395
  for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
7399
7396
  i += "`";
@@ -7408,11 +7405,11 @@ function qr(e, t, n) {
7408
7405
  }
7409
7406
  return i + r + i;
7410
7407
  }
7411
- function Ns() {
7408
+ function Ms() {
7412
7409
  return "`";
7413
7410
  }
7414
7411
  function Vr(e, t) {
7415
- const n = Vn(e);
7412
+ const n = $n(e);
7416
7413
  return !!(!t.options.resourceLink && // If there’s a url…
7417
7414
  e.url && // And there’s a no title…
7418
7415
  !e.title && // And the content of `node` is a single text node…
@@ -7422,9 +7419,9 @@ function Vr(e, t) {
7422
7419
  // references don’t work), space, or angle brackets…
7423
7420
  !/[\0- <>\u007F]/.test(e.url));
7424
7421
  }
7425
- Wr.peek = Bs;
7422
+ Wr.peek = Ns;
7426
7423
  function Wr(e, t, n, r) {
7427
- const i = et(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
7424
+ const i = Zn(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
7428
7425
  let a, u;
7429
7426
  if (Vr(e, n)) {
7430
7427
  const f = n.stack;
@@ -7464,10 +7461,10 @@ function Wr(e, t, n, r) {
7464
7461
  })
7465
7462
  ), s += l.move(i), u()), s += l.move(")"), a(), s;
7466
7463
  }
7467
- function Bs(e, t, n) {
7464
+ function Ns(e, t, n) {
7468
7465
  return Vr(e, n) ? "<" : "[";
7469
7466
  }
7470
- Qr.peek = js;
7467
+ Qr.peek = Bs;
7471
7468
  function Qr(e, t, n, r) {
7472
7469
  const i = e.referenceType, o = n.enter("linkReference");
7473
7470
  let l = n.enter("label");
@@ -7488,10 +7485,10 @@ function Qr(e, t, n, r) {
7488
7485
  });
7489
7486
  return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
7490
7487
  }
7491
- function js() {
7488
+ function Bs() {
7492
7489
  return "[";
7493
7490
  }
7494
- function nt(e) {
7491
+ function et(e) {
7495
7492
  const t = e.options.bullet || "*";
7496
7493
  if (t !== "*" && t !== "+" && t !== "-")
7497
7494
  throw new Error(
@@ -7499,8 +7496,8 @@ function nt(e) {
7499
7496
  );
7500
7497
  return t;
7501
7498
  }
7502
- function Hs(e) {
7503
- const t = nt(e), n = e.options.bulletOther;
7499
+ function js(e) {
7500
+ const t = et(e), n = e.options.bulletOther;
7504
7501
  if (!n)
7505
7502
  return t === "*" ? "-" : "*";
7506
7503
  if (n !== "*" && n !== "+" && n !== "-")
@@ -7513,7 +7510,7 @@ function Hs(e) {
7513
7510
  );
7514
7511
  return n;
7515
7512
  }
7516
- function Us(e) {
7513
+ function Hs(e) {
7517
7514
  const t = e.options.bulletOrdered || ".";
7518
7515
  if (t !== "." && t !== ")")
7519
7516
  throw new Error(
@@ -7529,10 +7526,10 @@ function Yr(e) {
7529
7526
  );
7530
7527
  return t;
7531
7528
  }
7532
- function $s(e, t, n, r) {
7529
+ function Us(e, t, n, r) {
7533
7530
  const i = n.enter("list"), o = n.bulletCurrent;
7534
- let l = e.ordered ? Us(n) : nt(n);
7535
- const a = e.ordered ? l === "." ? ")" : "." : Hs(n);
7531
+ let l = e.ordered ? Hs(n) : et(n);
7532
+ const a = e.ordered ? l === "." ? ")" : "." : js(n);
7536
7533
  let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
7537
7534
  if (!e.ordered) {
7538
7535
  const f = e.children ? e.children[0] : void 0;
@@ -7565,9 +7562,9 @@ function qs(e) {
7565
7562
  );
7566
7563
  return t;
7567
7564
  }
7568
- function Vs(e, t, n, r) {
7565
+ function $s(e, t, n, r) {
7569
7566
  const i = qs(n);
7570
- let o = n.bulletCurrent || nt(n);
7567
+ let o = n.bulletCurrent || et(n);
7571
7568
  t && t.type === "list" && t.ordered && (o = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + o);
7572
7569
  let l = o.length + 1;
7573
7570
  (i === "tab" || i === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (l = Math.ceil(l / 4) * 4);
@@ -7582,11 +7579,11 @@ function Vs(e, t, n, r) {
7582
7579
  return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
7583
7580
  }
7584
7581
  }
7585
- function Ws(e, t, n, r) {
7582
+ function Vs(e, t, n, r) {
7586
7583
  const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
7587
7584
  return o(), i(), l;
7588
7585
  }
7589
- const Qs = (
7586
+ const Ws = (
7590
7587
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
7591
7588
  sn([
7592
7589
  "break",
@@ -7612,12 +7609,12 @@ const Qs = (
7612
7609
  "textDirective"
7613
7610
  ])
7614
7611
  );
7615
- function Ys(e, t, n, r) {
7612
+ function Qs(e, t, n, r) {
7616
7613
  return (e.children.some(function(l) {
7617
- return Qs(l);
7614
+ return Ws(l);
7618
7615
  }) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
7619
7616
  }
7620
- function Gs(e) {
7617
+ function Ys(e) {
7621
7618
  const t = e.options.strong || "*";
7622
7619
  if (t !== "*" && t !== "_")
7623
7620
  throw new Error(
@@ -7625,9 +7622,9 @@ function Gs(e) {
7625
7622
  );
7626
7623
  return t;
7627
7624
  }
7628
- Gr.peek = Xs;
7625
+ Gr.peek = Gs;
7629
7626
  function Gr(e, t, n, r) {
7630
- const i = Gs(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
7627
+ const i = Ys(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
7631
7628
  let u = l.move(
7632
7629
  n.containerPhrasing(e, {
7633
7630
  after: i,
@@ -7640,22 +7637,22 @@ function Gr(e, t, n, r) {
7640
7637
  s,
7641
7638
  i
7642
7639
  );
7643
- f.inside && (u = qe(s) + u.slice(1));
7640
+ f.inside && (u = $e(s) + u.slice(1));
7644
7641
  const c = u.charCodeAt(u.length - 1), p = ln(r.after.charCodeAt(0), c, i);
7645
- p.inside && (u = u.slice(0, -1) + qe(c));
7642
+ p.inside && (u = u.slice(0, -1) + $e(c));
7646
7643
  const h = l.move(i + i);
7647
7644
  return o(), n.attentionEncodeSurroundingInfo = {
7648
7645
  after: p.outside,
7649
7646
  before: f.outside
7650
7647
  }, a + u + h;
7651
7648
  }
7652
- function Xs(e, t, n) {
7649
+ function Gs(e, t, n) {
7653
7650
  return n.options.strong || "*";
7654
7651
  }
7655
- function Ks(e, t, n, r) {
7652
+ function Xs(e, t, n, r) {
7656
7653
  return n.safe(e.value, r);
7657
7654
  }
7658
- function Js(e) {
7655
+ function Ks(e) {
7659
7656
  const t = e.options.ruleRepetition || 3;
7660
7657
  if (t < 3)
7661
7658
  throw new Error(
@@ -7663,50 +7660,50 @@ function Js(e) {
7663
7660
  );
7664
7661
  return t;
7665
7662
  }
7666
- function Zs(e, t, n) {
7667
- const r = (Yr(n) + (n.options.ruleSpaces ? " " : "")).repeat(Js(n));
7663
+ function Js(e, t, n) {
7664
+ const r = (Yr(n) + (n.options.ruleSpaces ? " " : "")).repeat(Ks(n));
7668
7665
  return n.options.ruleSpaces ? r.slice(0, -1) : r;
7669
7666
  }
7670
7667
  const Xr = {
7671
- blockquote: Ss,
7672
- break: Yt,
7673
- code: Ps,
7674
- definition: vs,
7668
+ blockquote: ws,
7669
+ break: Qt,
7670
+ code: Ts,
7671
+ definition: Ls,
7675
7672
  emphasis: jr,
7676
- hardBreak: Yt,
7677
- heading: Os,
7673
+ hardBreak: Qt,
7674
+ heading: Fs,
7678
7675
  html: Hr,
7679
7676
  image: Ur,
7680
- imageReference: $r,
7681
- inlineCode: qr,
7677
+ imageReference: qr,
7678
+ inlineCode: $r,
7682
7679
  link: Wr,
7683
7680
  linkReference: Qr,
7684
- list: $s,
7685
- listItem: Vs,
7686
- paragraph: Ws,
7687
- root: Ys,
7681
+ list: Us,
7682
+ listItem: $s,
7683
+ paragraph: Vs,
7684
+ root: Qs,
7688
7685
  strong: Gr,
7689
- text: Ks,
7690
- thematicBreak: Zs
7686
+ text: Xs,
7687
+ thematicBreak: Js
7691
7688
  };
7692
- function ec() {
7689
+ function Zs() {
7693
7690
  return {
7694
7691
  enter: {
7695
- table: nc,
7696
- tableData: Gt,
7697
- tableHeader: Gt,
7698
- tableRow: rc
7692
+ table: ec,
7693
+ tableData: Yt,
7694
+ tableHeader: Yt,
7695
+ tableRow: tc
7699
7696
  },
7700
7697
  exit: {
7701
- codeText: ic,
7702
- table: tc,
7698
+ codeText: rc,
7699
+ table: nc,
7703
7700
  tableData: Tn,
7704
7701
  tableHeader: Tn,
7705
7702
  tableRow: Tn
7706
7703
  }
7707
7704
  };
7708
7705
  }
7709
- function nc(e) {
7706
+ function ec(e) {
7710
7707
  const t = e._align;
7711
7708
  this.enter(
7712
7709
  {
@@ -7719,28 +7716,28 @@ function nc(e) {
7719
7716
  e
7720
7717
  ), this.data.inTable = !0;
7721
7718
  }
7722
- function tc(e) {
7719
+ function nc(e) {
7723
7720
  this.exit(e), this.data.inTable = void 0;
7724
7721
  }
7725
- function rc(e) {
7722
+ function tc(e) {
7726
7723
  this.enter({ type: "tableRow", children: [] }, e);
7727
7724
  }
7728
7725
  function Tn(e) {
7729
7726
  this.exit(e);
7730
7727
  }
7731
- function Gt(e) {
7728
+ function Yt(e) {
7732
7729
  this.enter({ type: "tableCell", children: [] }, e);
7733
7730
  }
7734
- function ic(e) {
7731
+ function rc(e) {
7735
7732
  let t = this.resume();
7736
- this.data.inTable && (t = t.replace(/\\([\\|])/g, lc));
7733
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, ic));
7737
7734
  const n = this.stack[this.stack.length - 1];
7738
7735
  n.value = t, this.exit(e);
7739
7736
  }
7740
- function lc(e, t) {
7737
+ function ic(e, t) {
7741
7738
  return t === "|" ? t : e;
7742
7739
  }
7743
- function oc(e) {
7740
+ function lc(e) {
7744
7741
  const t = e, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
7745
7742
  return {
7746
7743
  unsafe: [
@@ -7786,7 +7783,7 @@ function oc(e) {
7786
7783
  return S(), y(), C;
7787
7784
  }
7788
7785
  function s(h, d) {
7789
- return bs(h, {
7786
+ return xs(h, {
7790
7787
  align: d,
7791
7788
  // @ts-expect-error: `markdown-table` types should support `null`.
7792
7789
  alignDelimiters: r,
@@ -7817,26 +7814,26 @@ function oc(e) {
7817
7814
  return x.stack.includes("tableCell") && (E = E.replace(/\|/g, "\\$&")), E;
7818
7815
  }
7819
7816
  }
7820
- function ac() {
7817
+ function oc() {
7821
7818
  return {
7822
7819
  exit: {
7823
- taskListCheckValueChecked: Xt,
7824
- taskListCheckValueUnchecked: Xt,
7825
- paragraph: sc
7820
+ taskListCheckValueChecked: Gt,
7821
+ taskListCheckValueUnchecked: Gt,
7822
+ paragraph: uc
7826
7823
  }
7827
7824
  };
7828
7825
  }
7829
- function uc() {
7826
+ function ac() {
7830
7827
  return {
7831
7828
  unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
7832
- handlers: { listItem: cc }
7829
+ handlers: { listItem: sc }
7833
7830
  };
7834
7831
  }
7835
- function Xt(e) {
7832
+ function Gt(e) {
7836
7833
  const t = this.stack[this.stack.length - 2];
7837
7834
  t.checked = e.type === "taskListCheckValueChecked";
7838
7835
  }
7839
- function sc(e) {
7836
+ function uc(e) {
7840
7837
  const t = this.stack[this.stack.length - 2];
7841
7838
  if (t && t.type === "listItem" && typeof t.checked == "boolean") {
7842
7839
  const n = this.stack[this.stack.length - 1], r = n.children[0];
@@ -7855,7 +7852,7 @@ function sc(e) {
7855
7852
  }
7856
7853
  this.exit(e);
7857
7854
  }
7858
- function cc(e, t, n, r) {
7855
+ function sc(e, t, n, r) {
7859
7856
  const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
7860
7857
  o && a.move(l);
7861
7858
  let u = Xr.listItem(e, t, n, {
@@ -7867,55 +7864,55 @@ function cc(e, t, n, r) {
7867
7864
  return f + l;
7868
7865
  }
7869
7866
  }
7870
- function fc() {
7867
+ function cc() {
7871
7868
  return [
7872
- Uu(),
7873
- es(),
7874
- ms(),
7875
- ec(),
7876
- ac()
7869
+ Hu(),
7870
+ Zu(),
7871
+ ps(),
7872
+ Zs(),
7873
+ oc()
7877
7874
  ];
7878
7875
  }
7879
- function hc(e) {
7876
+ function fc(e) {
7880
7877
  return {
7881
7878
  extensions: [
7882
- $u(),
7883
- ns(),
7884
- gs(),
7885
- oc(e),
7886
- uc()
7879
+ Uu(),
7880
+ es(),
7881
+ ms(),
7882
+ lc(e),
7883
+ ac()
7887
7884
  ]
7888
7885
  };
7889
7886
  }
7890
- const pc = {
7891
- tokenize: xc,
7887
+ const hc = {
7888
+ tokenize: kc,
7892
7889
  partial: !0
7893
7890
  }, Kr = {
7894
- tokenize: bc,
7891
+ tokenize: xc,
7895
7892
  partial: !0
7896
7893
  }, Jr = {
7897
- tokenize: wc,
7894
+ tokenize: bc,
7898
7895
  partial: !0
7899
7896
  }, Zr = {
7900
- tokenize: Sc,
7897
+ tokenize: wc,
7901
7898
  partial: !0
7902
- }, mc = {
7903
- tokenize: Cc,
7899
+ }, pc = {
7900
+ tokenize: Sc,
7904
7901
  partial: !0
7905
7902
  }, ei = {
7906
7903
  name: "wwwAutolink",
7907
- tokenize: yc,
7904
+ tokenize: dc,
7908
7905
  previous: ti
7909
7906
  }, ni = {
7910
7907
  name: "protocolAutolink",
7911
- tokenize: kc,
7908
+ tokenize: yc,
7912
7909
  previous: ri
7913
7910
  }, de = {
7914
7911
  name: "emailAutolink",
7915
- tokenize: dc,
7912
+ tokenize: gc,
7916
7913
  previous: ii
7917
7914
  }, fe = {};
7918
- function gc() {
7915
+ function mc() {
7919
7916
  return {
7920
7917
  text: fe
7921
7918
  };
@@ -7931,18 +7928,18 @@ fe[72] = [de, ni];
7931
7928
  fe[104] = [de, ni];
7932
7929
  fe[87] = [de, ei];
7933
7930
  fe[119] = [de, ei];
7934
- function dc(e, t, n) {
7931
+ function gc(e, t, n) {
7935
7932
  const r = this;
7936
7933
  let i, o;
7937
7934
  return l;
7938
7935
  function l(c) {
7939
- return !Nn(c) || !ii.call(r, r.previous) || tt(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
7936
+ return !Mn(c) || !ii.call(r, r.previous) || nt(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
7940
7937
  }
7941
7938
  function a(c) {
7942
- return Nn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
7939
+ return Mn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
7943
7940
  }
7944
7941
  function u(c) {
7945
- return c === 46 ? e.check(mc, f, s)(c) : c === 45 || c === 95 || X(c) ? (o = !0, e.consume(c), u) : f(c);
7942
+ return c === 46 ? e.check(pc, f, s)(c) : c === 45 || c === 95 || X(c) ? (o = !0, e.consume(c), u) : f(c);
7946
7943
  }
7947
7944
  function s(c) {
7948
7945
  return e.consume(c), i = !0, u;
@@ -7951,22 +7948,22 @@ function dc(e, t, n) {
7951
7948
  return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
7952
7949
  }
7953
7950
  }
7954
- function yc(e, t, n) {
7951
+ function dc(e, t, n) {
7955
7952
  const r = this;
7956
7953
  return i;
7957
7954
  function i(l) {
7958
- return l !== 87 && l !== 119 || !ti.call(r, r.previous) || tt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(pc, e.attempt(Kr, e.attempt(Jr, o), n), n)(l));
7955
+ return l !== 87 && l !== 119 || !ti.call(r, r.previous) || nt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(hc, e.attempt(Kr, e.attempt(Jr, o), n), n)(l));
7959
7956
  }
7960
7957
  function o(l) {
7961
7958
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
7962
7959
  }
7963
7960
  }
7964
- function kc(e, t, n) {
7961
+ function yc(e, t, n) {
7965
7962
  const r = this;
7966
7963
  let i = "", o = !1;
7967
7964
  return l;
7968
7965
  function l(c) {
7969
- return (c === 72 || c === 104) && ri.call(r, r.previous) && !tt(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : n(c);
7966
+ return (c === 72 || c === 104) && ri.call(r, r.previous) && !nt(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : n(c);
7970
7967
  }
7971
7968
  function a(c) {
7972
7969
  if (J(c) && i.length < 5)
@@ -7982,13 +7979,13 @@ function kc(e, t, n) {
7982
7979
  return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
7983
7980
  }
7984
7981
  function s(c) {
7985
- return c === null || en(c) || q(c) || Ee(c) || on(c) ? n(c) : e.attempt(Kr, e.attempt(Jr, f), n)(c);
7982
+ return c === null || en(c) || $(c) || Ee(c) || on(c) ? n(c) : e.attempt(Kr, e.attempt(Jr, f), n)(c);
7986
7983
  }
7987
7984
  function f(c) {
7988
7985
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
7989
7986
  }
7990
7987
  }
7991
- function xc(e, t, n) {
7988
+ function kc(e, t, n) {
7992
7989
  let r = 0;
7993
7990
  return i;
7994
7991
  function i(l) {
@@ -7998,11 +7995,11 @@ function xc(e, t, n) {
7998
7995
  return l === null ? n(l) : t(l);
7999
7996
  }
8000
7997
  }
8001
- function bc(e, t, n) {
7998
+ function xc(e, t, n) {
8002
7999
  let r, i, o;
8003
8000
  return l;
8004
8001
  function l(s) {
8005
- return s === 46 || s === 95 ? e.check(Zr, u, a)(s) : s === null || q(s) || Ee(s) || s !== 45 && on(s) ? u(s) : (o = !0, e.consume(s), l);
8002
+ return s === 46 || s === 95 ? e.check(Zr, u, a)(s) : s === null || $(s) || Ee(s) || s !== 45 && on(s) ? u(s) : (o = !0, e.consume(s), l);
8006
8003
  }
8007
8004
  function a(s) {
8008
8005
  return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
@@ -8011,27 +8008,27 @@ function bc(e, t, n) {
8011
8008
  return i || r || !o ? n(s) : t(s);
8012
8009
  }
8013
8010
  }
8014
- function wc(e, t) {
8011
+ function bc(e, t) {
8015
8012
  let n = 0, r = 0;
8016
8013
  return i;
8017
8014
  function i(l) {
8018
- return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Zr, t, o)(l) : l === null || q(l) || Ee(l) ? t(l) : (e.consume(l), i);
8015
+ return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Zr, t, o)(l) : l === null || $(l) || Ee(l) ? t(l) : (e.consume(l), i);
8019
8016
  }
8020
8017
  function o(l) {
8021
8018
  return l === 41 && r++, e.consume(l), i;
8022
8019
  }
8023
8020
  }
8024
- function Sc(e, t, n) {
8021
+ function wc(e, t, n) {
8025
8022
  return r;
8026
8023
  function r(a) {
8027
8024
  return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
8028
8025
  // `<` is an end.
8029
8026
  a === 60 || // So is whitespace.
8030
- a === null || q(a) || Ee(a) ? t(a) : n(a)
8027
+ a === null || $(a) || Ee(a) ? t(a) : n(a)
8031
8028
  );
8032
8029
  }
8033
8030
  function i(a) {
8034
- return a === null || a === 40 || a === 91 || q(a) || Ee(a) ? t(a) : r(a);
8031
+ return a === null || a === 40 || a === 91 || $(a) || Ee(a) ? t(a) : r(a);
8035
8032
  }
8036
8033
  function o(a) {
8037
8034
  return J(a) ? l(a) : n(a);
@@ -8040,7 +8037,7 @@ function Sc(e, t, n) {
8040
8037
  return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
8041
8038
  }
8042
8039
  }
8043
- function Cc(e, t, n) {
8040
+ function Sc(e, t, n) {
8044
8041
  return r;
8045
8042
  function r(o) {
8046
8043
  return e.consume(o), i;
@@ -8050,18 +8047,18 @@ function Cc(e, t, n) {
8050
8047
  }
8051
8048
  }
8052
8049
  function ti(e) {
8053
- return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || q(e);
8050
+ return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || $(e);
8054
8051
  }
8055
8052
  function ri(e) {
8056
8053
  return !J(e);
8057
8054
  }
8058
8055
  function ii(e) {
8059
- return !(e === 47 || Nn(e));
8056
+ return !(e === 47 || Mn(e));
8060
8057
  }
8061
- function Nn(e) {
8058
+ function Mn(e) {
8062
8059
  return e === 43 || e === 45 || e === 46 || e === 95 || X(e);
8063
8060
  }
8064
- function tt(e) {
8061
+ function nt(e) {
8065
8062
  let t = e.length, n = !1;
8066
8063
  for (; t--; ) {
8067
8064
  const r = e[t][1];
@@ -8076,37 +8073,37 @@ function tt(e) {
8076
8073
  }
8077
8074
  return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
8078
8075
  }
8079
- const Ec = {
8080
- tokenize: Dc,
8076
+ const Cc = {
8077
+ tokenize: zc,
8081
8078
  partial: !0
8082
8079
  };
8083
- function Ic() {
8080
+ function Ec() {
8084
8081
  return {
8085
8082
  document: {
8086
8083
  91: {
8087
8084
  name: "gfmFootnoteDefinition",
8088
- tokenize: Lc,
8085
+ tokenize: Pc,
8089
8086
  continuation: {
8090
- tokenize: vc
8087
+ tokenize: Lc
8091
8088
  },
8092
- exit: zc
8089
+ exit: vc
8093
8090
  }
8094
8091
  },
8095
8092
  text: {
8096
8093
  91: {
8097
8094
  name: "gfmFootnoteCall",
8098
- tokenize: Pc
8095
+ tokenize: Tc
8099
8096
  },
8100
8097
  93: {
8101
8098
  name: "gfmPotentialFootnoteCall",
8102
8099
  add: "after",
8103
- tokenize: Ac,
8104
- resolveTo: Tc
8100
+ tokenize: Ic,
8101
+ resolveTo: Ac
8105
8102
  }
8106
8103
  }
8107
8104
  };
8108
8105
  }
8109
- function Ac(e, t, n) {
8106
+ function Ic(e, t, n) {
8110
8107
  const r = this;
8111
8108
  let i = r.events.length;
8112
8109
  const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
@@ -8131,7 +8128,7 @@ function Ac(e, t, n) {
8131
8128
  return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
8132
8129
  }
8133
8130
  }
8134
- function Tc(e, t) {
8131
+ function Ac(e, t) {
8135
8132
  let n = e.length;
8136
8133
  for (; n-- && !(e[n][1].type === "labelImage" && e[n][0] === "enter"); )
8137
8134
  ;
@@ -8178,7 +8175,7 @@ function Tc(e, t) {
8178
8175
  ];
8179
8176
  return e.splice(n, e.length - n + 1, ...a), e;
8180
8177
  }
8181
- function Pc(e, t, n) {
8178
+ function Tc(e, t, n) {
8182
8179
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
8183
8180
  let o = 0, l;
8184
8181
  return a;
@@ -8194,7 +8191,7 @@ function Pc(e, t, n) {
8194
8191
  o > 999 || // Closing brace with nothing.
8195
8192
  c === 93 && !l || // Space or tab is not supported by GFM for some reason.
8196
8193
  // `\n` and `[` not being supported makes sense.
8197
- c === null || c === 91 || q(c)
8194
+ c === null || c === 91 || $(c)
8198
8195
  )
8199
8196
  return n(c);
8200
8197
  if (c === 93) {
@@ -8202,13 +8199,13 @@ function Pc(e, t, n) {
8202
8199
  const p = e.exit("gfmFootnoteCallString");
8203
8200
  return i.includes(se(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(c), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(c);
8204
8201
  }
8205
- return q(c) || (l = !0), o++, e.consume(c), c === 92 ? f : s;
8202
+ return $(c) || (l = !0), o++, e.consume(c), c === 92 ? f : s;
8206
8203
  }
8207
8204
  function f(c) {
8208
8205
  return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
8209
8206
  }
8210
8207
  }
8211
- function Lc(e, t, n) {
8208
+ function Pc(e, t, n) {
8212
8209
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
8213
8210
  let o, l = 0, a;
8214
8211
  return u;
@@ -8224,7 +8221,7 @@ function Lc(e, t, n) {
8224
8221
  l > 999 || // Closing brace with nothing.
8225
8222
  d === 93 && !a || // Space or tab is not supported by GFM for some reason.
8226
8223
  // `\n` and `[` not being supported makes sense.
8227
- d === null || d === 91 || q(d)
8224
+ d === null || d === 91 || $(d)
8228
8225
  )
8229
8226
  return n(d);
8230
8227
  if (d === 93) {
@@ -8232,7 +8229,7 @@ function Lc(e, t, n) {
8232
8229
  const x = e.exit("gfmFootnoteDefinitionLabelString");
8233
8230
  return o = se(r.sliceSerialize(x)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(d), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
8234
8231
  }
8235
- return q(d) || (a = !0), l++, e.consume(d), d === 92 ? c : f;
8232
+ return $(d) || (a = !0), l++, e.consume(d), d === 92 ? c : f;
8236
8233
  }
8237
8234
  function c(d) {
8238
8235
  return d === 91 || d === 92 || d === 93 ? (e.consume(d), l++, f) : f(d);
@@ -8244,13 +8241,13 @@ function Lc(e, t, n) {
8244
8241
  return t(d);
8245
8242
  }
8246
8243
  }
8247
- function vc(e, t, n) {
8248
- return e.check(We, t, e.attempt(Ec, t, n));
8244
+ function Lc(e, t, n) {
8245
+ return e.check(We, t, e.attempt(Cc, t, n));
8249
8246
  }
8250
- function zc(e) {
8247
+ function vc(e) {
8251
8248
  e.exit("gfmFootnoteDefinition");
8252
8249
  }
8253
- function Dc(e, t, n) {
8250
+ function zc(e, t, n) {
8254
8251
  const r = this;
8255
8252
  return j(e, i, "gfmFootnoteDefinitionIndent", 5);
8256
8253
  function i(o) {
@@ -8258,7 +8255,7 @@ function Dc(e, t, n) {
8258
8255
  return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
8259
8256
  }
8260
8257
  }
8261
- function Fc(e) {
8258
+ function Dc(e) {
8262
8259
  let n = e.singleTilde;
8263
8260
  const r = {
8264
8261
  name: "strikethrough",
@@ -8319,7 +8316,7 @@ function Fc(e) {
8319
8316
  }
8320
8317
  }
8321
8318
  }
8322
- class Oc {
8319
+ class Fc {
8323
8320
  /**
8324
8321
  * Create a new edit map.
8325
8322
  */
@@ -8387,7 +8384,7 @@ function Rc(e, t, n, r) {
8387
8384
  e.map.push([t, n, r]);
8388
8385
  }
8389
8386
  }
8390
- function _c(e, t) {
8387
+ function Oc(e, t) {
8391
8388
  let n = !1;
8392
8389
  const r = [];
8393
8390
  for (; t < e.length; ) {
@@ -8407,18 +8404,18 @@ function _c(e, t) {
8407
8404
  }
8408
8405
  return r;
8409
8406
  }
8410
- function Mc() {
8407
+ function _c() {
8411
8408
  return {
8412
8409
  flow: {
8413
8410
  null: {
8414
8411
  name: "table",
8415
- tokenize: Nc,
8416
- resolveAll: Bc
8412
+ tokenize: Mc,
8413
+ resolveAll: Nc
8417
8414
  }
8418
8415
  }
8419
8416
  };
8420
8417
  }
8421
- function Nc(e, t, n) {
8418
+ function Mc(e, t, n) {
8422
8419
  const r = this;
8423
8420
  let i = 0, o = 0, l;
8424
8421
  return a;
@@ -8443,7 +8440,7 @@ function Nc(e, t, n) {
8443
8440
  return k === null ? n(k) : D(k) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), h) : n(k) : N(k) ? j(e, f, "whitespace")(k) : (o += 1, l && (l = !1, i += 1), k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(k)));
8444
8441
  }
8445
8442
  function c(k) {
8446
- return k === null || k === 124 || q(k) ? (e.exit("data"), f(k)) : (e.consume(k), k === 92 ? p : c);
8443
+ return k === null || k === 124 || $(k) ? (e.exit("data"), f(k)) : (e.consume(k), k === 92 ? p : c);
8447
8444
  }
8448
8445
  function p(k) {
8449
8446
  return k === 92 || k === 124 ? (e.consume(k), c) : c(k);
@@ -8482,18 +8479,18 @@ function Nc(e, t, n) {
8482
8479
  return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), _) : k === null || D(k) ? (e.exit("tableRow"), t(k)) : N(k) ? j(e, _, "whitespace")(k) : (e.enter("data"), U(k));
8483
8480
  }
8484
8481
  function U(k) {
8485
- return k === null || k === 124 || q(k) ? (e.exit("data"), _(k)) : (e.consume(k), k === 92 ? H : U);
8482
+ return k === null || k === 124 || $(k) ? (e.exit("data"), _(k)) : (e.consume(k), k === 92 ? H : U);
8486
8483
  }
8487
8484
  function H(k) {
8488
8485
  return k === 92 || k === 124 ? (e.consume(k), U) : U(k);
8489
8486
  }
8490
8487
  }
8491
- function Bc(e, t) {
8488
+ function Nc(e, t) {
8492
8489
  let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
8493
- const p = new Oc();
8490
+ const p = new Fc();
8494
8491
  for (; ++n < e.length; ) {
8495
8492
  const h = e[n], d = h[1];
8496
- h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (Kt(p, t, u, s, f), f = void 0, u = 0), s = {
8493
+ h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (Xt(p, t, u, s, f), f = void 0, u = 0), s = {
8497
8494
  type: "table",
8498
8495
  start: Object.assign({}, d.start),
8499
8496
  // Note: correct end is set later.
@@ -8505,9 +8502,9 @@ function Bc(e, t) {
8505
8502
  end: Object.assign({}, d.end)
8506
8503
  }, p.add(n, 0, [["enter", f, t]])), i = d.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c = Je(p, t, o, i, void 0, c), o = [0, 0, 0, 0]), l[2] = n)) : d.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (l[0] = l[1], c = Je(p, t, o, i, void 0, c)), o = l, l = [o[1], n, 0, 0])) : d.type === "tableHead" ? (a = !0, u = n) : d.type === "tableRow" || d.type === "tableDelimiterRow" ? (u = n, o[1] !== 0 ? (l[0] = l[1], c = Je(p, t, o, i, n, c)) : l[1] !== 0 && (c = Je(p, t, l, i, n, c)), i = 0) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") && (l[3] = n);
8507
8504
  }
8508
- for (u !== 0 && Kt(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
8505
+ for (u !== 0 && Xt(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
8509
8506
  const h = t.events[n];
8510
- h[0] === "enter" && h[1].type === "table" && (h[1]._align = _c(t.events, n));
8507
+ h[0] === "enter" && h[1].type === "table" && (h[1]._align = Oc(t.events, n));
8511
8508
  }
8512
8509
  return e;
8513
8510
  }
@@ -8537,7 +8534,7 @@ function Je(e, t, n, r, i, o) {
8537
8534
  }
8538
8535
  return i !== void 0 && (o.end = Object.assign({}, ve(t.events, i)), e.add(i, 0, [["exit", o, t]]), o = void 0), o;
8539
8536
  }
8540
- function Kt(e, t, n, r, i) {
8537
+ function Xt(e, t, n, r, i) {
8541
8538
  const o = [], l = ve(t.events, n);
8542
8539
  i && (i.end = Object.assign({}, l), o.push(["exit", i, t])), r.end = Object.assign({}, l), o.push(["exit", r, t]), e.add(n + 1, 0, o);
8543
8540
  }
@@ -8545,18 +8542,18 @@ function ve(e, t) {
8545
8542
  const n = e[t], r = n[0] === "enter" ? "start" : "end";
8546
8543
  return n[1][r];
8547
8544
  }
8548
- const jc = {
8545
+ const Bc = {
8549
8546
  name: "tasklistCheck",
8550
- tokenize: Uc
8547
+ tokenize: Hc
8551
8548
  };
8552
- function Hc() {
8549
+ function jc() {
8553
8550
  return {
8554
8551
  text: {
8555
- 91: jc
8552
+ 91: Bc
8556
8553
  }
8557
8554
  };
8558
8555
  }
8559
- function Uc(e, t, n) {
8556
+ function Hc(e, t, n) {
8560
8557
  const r = this;
8561
8558
  return i;
8562
8559
  function i(u) {
@@ -8568,18 +8565,18 @@ function Uc(e, t, n) {
8568
8565
  );
8569
8566
  }
8570
8567
  function o(u) {
8571
- return q(u) ? (e.enter("taskListCheckValueUnchecked"), e.consume(u), e.exit("taskListCheckValueUnchecked"), l) : u === 88 || u === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(u), e.exit("taskListCheckValueChecked"), l) : n(u);
8568
+ return $(u) ? (e.enter("taskListCheckValueUnchecked"), e.consume(u), e.exit("taskListCheckValueUnchecked"), l) : u === 88 || u === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(u), e.exit("taskListCheckValueChecked"), l) : n(u);
8572
8569
  }
8573
8570
  function l(u) {
8574
8571
  return u === 93 ? (e.enter("taskListCheckMarker"), e.consume(u), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : n(u);
8575
8572
  }
8576
8573
  function a(u) {
8577
8574
  return D(u) ? t(u) : N(u) ? e.check({
8578
- tokenize: $c
8575
+ tokenize: Uc
8579
8576
  }, t, n)(u) : n(u);
8580
8577
  }
8581
8578
  }
8582
- function $c(e, t, n) {
8579
+ function Uc(e, t, n) {
8583
8580
  return j(e, r, "whitespace");
8584
8581
  function r(i) {
8585
8582
  return i === null ? n(i) : t(i);
@@ -8587,87 +8584,75 @@ function $c(e, t, n) {
8587
8584
  }
8588
8585
  function qc(e) {
8589
8586
  return dr([
8590
- gc(),
8591
- Ic(),
8592
- Fc(e),
8593
- Mc(),
8594
- Hc()
8587
+ mc(),
8588
+ Ec(),
8589
+ Dc(e),
8590
+ _c(),
8591
+ jc()
8595
8592
  ]);
8596
8593
  }
8597
- const Vc = {};
8598
- function Jt(e) {
8594
+ const $c = {};
8595
+ function Kt(e) {
8599
8596
  const t = (
8600
8597
  /** @type {Processor<Root>} */
8601
8598
  this
8602
- ), n = e || Vc, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8603
- i.push(qc(n)), o.push(fc()), l.push(hc(n));
8599
+ ), n = e || $c, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8600
+ i.push(qc(n)), o.push(cc()), l.push(fc(n));
8604
8601
  }
8605
- const Wc = yi(
8602
+ const Vc = yi(
8606
8603
  () => import(
8607
8604
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8608
- "./MarkdownWithExtra.B3Uz9lAW.js"
8605
+ "./MarkdownWithExtra.WrbxCPUY.js"
8609
8606
  )
8610
- ), Pn = {
8607
+ ), Jt = {
8611
8608
  MODEL: "Model",
8612
8609
  PLUGIN: "Plugin",
8613
- PROCESSING_TIME: "Processing time"
8614
- }, Qc = (e, t) => {
8615
- if (e) {
8616
- const n = Ci(e);
8617
- return t ? `${n} (${Ei.format(t)} tokens)` : `${n}`;
8618
- }
8619
- return null;
8620
- }, Yc = ({
8610
+ USAGE: "Usage"
8611
+ }, Wc = ({
8621
8612
  content: e,
8622
- name: t,
8623
- processingTime: n,
8624
- usage: r,
8625
- role: i
8613
+ annotations: t,
8614
+ toolName: n,
8615
+ role: r
8626
8616
  }) => {
8627
8617
  const {
8628
- state: { streaming: o, model: l }
8629
- } = ki(gi), [a] = di({
8618
+ state: { streaming: i }
8619
+ } = ki(gi), o = t == null ? void 0 : t.model, [l] = di({
8630
8620
  key: bi + wi,
8631
8621
  initialValue: !1
8632
- }), u = a && {
8633
- [Pn.MODEL]: l || null,
8634
- [Pn.PLUGIN]: t || null,
8635
- [Pn.PROCESSING_TIME]: Qc(
8636
- n,
8637
- r
8638
- )
8622
+ }), a = l && {
8623
+ [Jt.MODEL]: o || null,
8624
+ [Jt.PLUGIN]: n ? Si(n) : null
8639
8625
  };
8640
- return i === Si ? /* @__PURE__ */ xe(ut, { className: "mt-3", children: /* @__PURE__ */ xe("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ xe(qt, { remarkPlugins: [Jt], children: e }) }) }) : /* @__PURE__ */ Zt(
8641
- ut,
8626
+ return r === Ci ? /* @__PURE__ */ xe(at, { className: "mt-3", children: /* @__PURE__ */ xe("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ xe(qt, { remarkPlugins: [Kt], children: e }) }) }) : /* @__PURE__ */ Zt(
8627
+ at,
8642
8628
  {
8643
- copyToClipboard: o ? "loading..." : e,
8629
+ copyToClipboard: i ? "loading..." : e,
8644
8630
  copyToClipboardFocusMode: "light",
8645
- footer: u,
8631
+ footer: a,
8646
8632
  noMaxWidth: !0,
8647
8633
  className: "max-w-[95cqw] @container mt-3",
8648
8634
  children: [
8649
- e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ xe(xi, { fallback: /* @__PURE__ */ xe("div", {}), children: /* @__PURE__ */ xe(Wc, { content: e }) }),
8650
- e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ xe(qt, { remarkPlugins: [Jt], children: e })
8635
+ e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ xe(xi, { fallback: /* @__PURE__ */ xe("div", {}), children: /* @__PURE__ */ xe(Vc, { content: e }) }),
8636
+ e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ xe(qt, { remarkPlugins: [Kt], children: e })
8651
8637
  ]
8652
8638
  }
8653
8639
  );
8654
- }, nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Yc }, Symbol.toStringTag, { value: "Module" }));
8640
+ }, Zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Wc }, Symbol.toStringTag, { value: "Module" }));
8655
8641
  export {
8656
- nf as ChatBubbleAssistant,
8642
+ Zc as ChatBubbleAssistant,
8657
8643
  qt as Markdown,
8658
- iu as SKIP,
8644
+ ru as SKIP,
8659
8645
  sn as convert,
8660
8646
  j as factorySpace,
8661
- Mi as find,
8662
- er as getDefaultExportFromCjs,
8663
- Hi as html,
8664
- Is as longestStreak,
8647
+ _i as find,
8648
+ ji as html,
8649
+ Es as longestStreak,
8665
8650
  D as markdownLineEnding,
8666
- Ln as normalize,
8667
- ef as parse,
8668
- Zc as parse$1,
8669
- Jt as remarkGfm,
8670
- jn as svg,
8671
- Jn as visit,
8672
- Rr as visitParents
8651
+ Pn as normalize,
8652
+ Jc as parse,
8653
+ Kc as parse$1,
8654
+ Kt as remarkGfm,
8655
+ Bn as svg,
8656
+ Kn as visit,
8657
+ Or as visitParents
8673
8658
  };