@caseparts-org/caseblocks 0.0.255 → 0.0.256

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,28 +1,29 @@
1
- import { jsxs as Ci, jsx as je, Fragment as Ei } from "react/jsx-runtime";
1
+ import { jsxs as Ci, jsx as De, Fragment as Ei } from "react/jsx-runtime";
2
2
  import { remarkAdmonition as Ii } from "./remarkAdmonition.js";
3
3
  import { Admonition as Ai } from "../Admonition/Admonition.js";
4
- import { usePreprocessedMarkdown as Ti } from "./usePreprocessedMarkdown.js";
4
+ import { Upsell as Ti } from "../Upsell/Upsell.js";
5
+ import { usePreprocessedMarkdown as Pi } from "./usePreprocessedMarkdown.js";
5
6
  import "react";
6
7
  import '../../assets/Markdown.css';var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
8
  function ar(e) {
8
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
10
  }
10
- function Pi(e, t) {
11
+ function vi(e, t) {
11
12
  const n = {};
12
13
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
13
14
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
14
15
  ).trim();
15
16
  }
16
- const vi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Di = {};
17
+ const zi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Di = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Li = {};
17
18
  function ft(e, t) {
18
- return (Di.jsx ? zi : vi).test(e);
19
+ return (Li.jsx ? Di : zi).test(e);
19
20
  }
20
- const Li = /[ \t\n\f\r]/g;
21
- function Fi(e) {
21
+ const Fi = /[ \t\n\f\r]/g;
22
+ function _i(e) {
22
23
  return typeof e == "object" ? e.type === "text" ? ht(e.value) : !1 : ht(e);
23
24
  }
24
25
  function ht(e) {
25
- return e.replace(Li, "") === "";
26
+ return e.replace(Fi, "") === "";
26
27
  }
27
28
  class We {
28
29
  /**
@@ -76,17 +77,17 @@ ee.prototype.overloadedBoolean = !1;
76
77
  ee.prototype.property = "";
77
78
  ee.prototype.spaceSeparated = !1;
78
79
  ee.prototype.space = void 0;
79
- let _i = 0;
80
- const D = Ie(), W = Ie(), zn = Ie(), S = Ie(), V = Ie(), De = Ie(), te = Ie();
80
+ let Ri = 0;
81
+ const D = Ie(), W = Ie(), zn = Ie(), S = Ie(), V = Ie(), Le = Ie(), te = Ie();
81
82
  function Ie() {
82
- return 2 ** ++_i;
83
+ return 2 ** ++Ri;
83
84
  }
84
85
  const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
85
86
  __proto__: null,
86
87
  boolean: D,
87
88
  booleanish: W,
88
89
  commaOrSpaceSeparated: te,
89
- commaSeparated: De,
90
+ commaSeparated: Le,
90
91
  number: S,
91
92
  overloadedBoolean: zn,
92
93
  spaceSeparated: V
@@ -121,7 +122,7 @@ Hn.prototype.defined = !0;
121
122
  function pt(e, t, n) {
122
123
  n && (e[t] = n);
123
124
  }
124
- function Fe(e) {
125
+ function _e(e) {
125
126
  const t = {}, n = {};
126
127
  for (const [r, i] of Object.entries(e.properties)) {
127
128
  const o = new Hn(
@@ -134,7 +135,7 @@ function Fe(e) {
134
135
  }
135
136
  return new We(t, n, e.space);
136
137
  }
137
- const sr = Fe({
138
+ const sr = _e({
138
139
  properties: {
139
140
  ariaActiveDescendant: null,
140
141
  ariaAtomic: W,
@@ -196,7 +197,7 @@ function cr(e, t) {
196
197
  function fr(e, t) {
197
198
  return cr(e, t.toLowerCase());
198
199
  }
199
- const Ri = Fe({
200
+ const Oi = _e({
200
201
  attributes: {
201
202
  acceptcharset: "accept-charset",
202
203
  classname: "class",
@@ -207,7 +208,7 @@ const Ri = Fe({
207
208
  properties: {
208
209
  // Standard Properties.
209
210
  abbr: null,
210
- accept: De,
211
+ accept: Le,
211
212
  acceptCharset: V,
212
213
  accessKey: V,
213
214
  action: null,
@@ -234,7 +235,7 @@ const Ri = Fe({
234
235
  contentEditable: W,
235
236
  controls: D,
236
237
  controlsList: V,
237
- coords: S | De,
238
+ coords: S | Le,
238
239
  crossOrigin: null,
239
240
  data: null,
240
241
  dateTime: null,
@@ -557,7 +558,7 @@ const Ri = Fe({
557
558
  },
558
559
  space: "html",
559
560
  transform: fr
560
- }), Oi = Fe({
561
+ }), Mi = _e({
561
562
  attributes: {
562
563
  accentHeight: "accent-height",
563
564
  alignmentBaseline: "alignment-baseline",
@@ -816,9 +817,9 @@ const Ri = Fe({
816
817
  from: null,
817
818
  fx: null,
818
819
  fy: null,
819
- g1: De,
820
- g2: De,
821
- glyphName: De,
820
+ g1: Le,
821
+ g2: Le,
822
+ glyphName: Le,
822
823
  glyphOrientationHorizontal: null,
823
824
  glyphOrientationVertical: null,
824
825
  glyphRef: null,
@@ -1116,7 +1117,7 @@ const Ri = Fe({
1116
1117
  },
1117
1118
  space: "svg",
1118
1119
  transform: cr
1119
- }), hr = Fe({
1120
+ }), hr = _e({
1120
1121
  properties: {
1121
1122
  xLinkActuate: null,
1122
1123
  xLinkArcRole: null,
@@ -1130,18 +1131,18 @@ const Ri = Fe({
1130
1131
  transform(e, t) {
1131
1132
  return "xlink:" + t.slice(5).toLowerCase();
1132
1133
  }
1133
- }), pr = Fe({
1134
+ }), pr = _e({
1134
1135
  attributes: { xmlnsxlink: "xmlns:xlink" },
1135
1136
  properties: { xmlnsXLink: null, xmlns: null },
1136
1137
  space: "xmlns",
1137
1138
  transform: fr
1138
- }), mr = Fe({
1139
+ }), mr = _e({
1139
1140
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1140
1141
  space: "xml",
1141
1142
  transform(e, t) {
1142
1143
  return "xml:" + t.slice(3).toLowerCase();
1143
1144
  }
1144
- }), Mi = {
1145
+ }), Ni = {
1145
1146
  classId: "classID",
1146
1147
  dataType: "datatype",
1147
1148
  itemId: "itemID",
@@ -1159,20 +1160,20 @@ const Ri = Fe({
1159
1160
  xLinkTitle: "xlinkTitle",
1160
1161
  xLinkType: "xlinkType",
1161
1162
  xmlnsXLink: "xmlnsXlink"
1162
- }, Ni = /[A-Z]/g, mt = /-[a-z]/g, Bi = /^data[-\w.:]+$/i;
1163
- function ji(e, t) {
1163
+ }, Bi = /[A-Z]/g, mt = /-[a-z]/g, ji = /^data[-\w.:]+$/i;
1164
+ function Hi(e, t) {
1164
1165
  const n = vn(t);
1165
1166
  let r = t, i = ee;
1166
1167
  if (n in e.normal)
1167
1168
  return e.property[e.normal[n]];
1168
- if (n.length > 4 && n.slice(0, 4) === "data" && Bi.test(t)) {
1169
+ if (n.length > 4 && n.slice(0, 4) === "data" && ji.test(t)) {
1169
1170
  if (t.charAt(4) === "-") {
1170
- const o = t.slice(5).replace(mt, Ui);
1171
+ const o = t.slice(5).replace(mt, Vi);
1171
1172
  r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
1172
1173
  } else {
1173
1174
  const o = t.slice(4);
1174
1175
  if (!mt.test(o)) {
1175
- let l = o.replace(Ni, Hi);
1176
+ let l = o.replace(Bi, Ui);
1176
1177
  l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
1177
1178
  }
1178
1179
  }
@@ -1180,28 +1181,28 @@ function ji(e, t) {
1180
1181
  }
1181
1182
  return new i(r, t);
1182
1183
  }
1183
- function Hi(e) {
1184
+ function Ui(e) {
1184
1185
  return "-" + e.toLowerCase();
1185
1186
  }
1186
- function Ui(e) {
1187
+ function Vi(e) {
1187
1188
  return e.charAt(1).toUpperCase();
1188
1189
  }
1189
- const Vi = ur([sr, Ri, hr, pr, mr], "html"), Un = ur([sr, Oi, hr, pr, mr], "svg");
1190
- function $i(e) {
1190
+ const $i = ur([sr, Oi, hr, pr, mr], "html"), Un = ur([sr, Mi, hr, pr, mr], "svg");
1191
+ function qi(e) {
1191
1192
  return e.join(" ").trim();
1192
1193
  }
1193
- var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, qi = /\n/g, Wi = /^\s*/, Yi = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Xi = /^:\s*/, Qi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Gi = /^[;\s]*/, Ki = /^\s+|\s+$/g, Ji = `
1194
- `, dt = "/", yt = "*", Ce = "", Zi = "comment", el = "declaration";
1195
- function nl(e, t) {
1194
+ var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Wi = /\n/g, Yi = /^\s*/, Xi = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Qi = /^:\s*/, Gi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ki = /^[;\s]*/, Ji = /^\s+|\s+$/g, Zi = `
1195
+ `, dt = "/", yt = "*", Ce = "", el = "comment", nl = "declaration";
1196
+ function tl(e, t) {
1196
1197
  if (typeof e != "string")
1197
1198
  throw new TypeError("First argument must be a string");
1198
1199
  if (!e) return [];
1199
1200
  t = t || {};
1200
1201
  var n = 1, r = 1;
1201
1202
  function i(d) {
1202
- var x = d.match(qi);
1203
+ var x = d.match(Wi);
1203
1204
  x && (n += x.length);
1204
- var C = d.lastIndexOf(Ji);
1205
+ var C = d.lastIndexOf(Zi);
1205
1206
  r = ~C ? d.length - C : r + d.length;
1206
1207
  }
1207
1208
  function o() {
@@ -1228,7 +1229,7 @@ function nl(e, t) {
1228
1229
  }
1229
1230
  }
1230
1231
  function s() {
1231
- u(Wi);
1232
+ u(Yi);
1232
1233
  }
1233
1234
  function f(d) {
1234
1235
  var x;
@@ -1245,21 +1246,21 @@ function nl(e, t) {
1245
1246
  return a("End of comment missing");
1246
1247
  var C = e.slice(2, x - 2);
1247
1248
  return r += 2, i(C), e = e.slice(x), r += 2, d({
1248
- type: Zi,
1249
+ type: el,
1249
1250
  comment: C
1250
1251
  });
1251
1252
  }
1252
1253
  }
1253
1254
  function p() {
1254
- var d = o(), x = u(Yi);
1255
+ var d = o(), x = u(Xi);
1255
1256
  if (x) {
1256
- if (c(), !u(Xi)) return a("property missing ':'");
1257
- var C = u(Qi), y = d({
1258
- type: el,
1257
+ if (c(), !u(Qi)) return a("property missing ':'");
1258
+ var C = u(Gi), y = d({
1259
+ type: nl,
1259
1260
  property: kt(x[0].replace(gt, Ce)),
1260
1261
  value: C ? kt(C[0].replace(gt, Ce)) : Ce
1261
1262
  });
1262
- return u(Gi), y;
1263
+ return u(Ki), y;
1263
1264
  }
1264
1265
  }
1265
1266
  function h() {
@@ -1272,19 +1273,19 @@ function nl(e, t) {
1272
1273
  return s(), h();
1273
1274
  }
1274
1275
  function kt(e) {
1275
- return e ? e.replace(Ki, Ce) : Ce;
1276
+ return e ? e.replace(Ji, Ce) : Ce;
1276
1277
  }
1277
- var tl = nl, rl = tn && tn.__importDefault || function(e) {
1278
+ var rl = tl, il = tn && tn.__importDefault || function(e) {
1278
1279
  return e && e.__esModule ? e : { default: e };
1279
1280
  };
1280
1281
  Object.defineProperty(Vn, "__esModule", { value: !0 });
1281
- Vn.default = ll;
1282
- const il = rl(tl);
1283
- function ll(e, t) {
1282
+ Vn.default = ol;
1283
+ const ll = il(rl);
1284
+ function ol(e, t) {
1284
1285
  let n = null;
1285
1286
  if (!e || typeof e != "string")
1286
1287
  return n;
1287
- const r = (0, il.default)(e), i = typeof t == "function";
1288
+ const r = (0, ll.default)(e), i = typeof t == "function";
1288
1289
  return r.forEach((o) => {
1289
1290
  if (o.type !== "declaration")
1290
1291
  return;
@@ -1295,28 +1296,28 @@ function ll(e, t) {
1295
1296
  var un = {};
1296
1297
  Object.defineProperty(un, "__esModule", { value: !0 });
1297
1298
  un.camelCase = void 0;
1298
- var ol = /^--[a-zA-Z0-9_-]+$/, al = /-([a-z])/g, ul = /^[^-]+$/, sl = /^-(webkit|moz|ms|o|khtml)-/, cl = /^-(ms)-/, fl = function(e) {
1299
- return !e || ul.test(e) || ol.test(e);
1300
- }, hl = function(e, t) {
1299
+ var al = /^--[a-zA-Z0-9_-]+$/, ul = /-([a-z])/g, sl = /^[^-]+$/, cl = /^-(webkit|moz|ms|o|khtml)-/, fl = /^-(ms)-/, hl = function(e) {
1300
+ return !e || sl.test(e) || al.test(e);
1301
+ }, pl = function(e, t) {
1301
1302
  return t.toUpperCase();
1302
1303
  }, xt = function(e, t) {
1303
1304
  return "".concat(t, "-");
1304
- }, pl = function(e, t) {
1305
- return t === void 0 && (t = {}), fl(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(cl, xt) : e = e.replace(sl, xt), e.replace(al, hl));
1305
+ }, ml = function(e, t) {
1306
+ return t === void 0 && (t = {}), hl(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(fl, xt) : e = e.replace(cl, xt), e.replace(ul, pl));
1306
1307
  };
1307
- un.camelCase = pl;
1308
- var ml = tn && tn.__importDefault || function(e) {
1308
+ un.camelCase = ml;
1309
+ var gl = tn && tn.__importDefault || function(e) {
1309
1310
  return e && e.__esModule ? e : { default: e };
1310
- }, gl = ml(Vn), dl = un;
1311
+ }, dl = gl(Vn), yl = un;
1311
1312
  function Ln(e, t) {
1312
1313
  var n = {};
1313
- return !e || typeof e != "string" || (0, gl.default)(e, function(r, i) {
1314
- r && i && (n[(0, dl.camelCase)(r, t)] = i);
1314
+ return !e || typeof e != "string" || (0, dl.default)(e, function(r, i) {
1315
+ r && i && (n[(0, yl.camelCase)(r, t)] = i);
1315
1316
  }), n;
1316
1317
  }
1317
1318
  Ln.default = Ln;
1318
- var yl = Ln;
1319
- const kl = /* @__PURE__ */ ar(yl), gr = dr("end"), $n = dr("start");
1319
+ var kl = Ln;
1320
+ const xl = /* @__PURE__ */ ar(kl), gr = dr("end"), $n = dr("start");
1320
1321
  function dr(e) {
1321
1322
  return t;
1322
1323
  function t(n) {
@@ -1329,7 +1330,7 @@ function dr(e) {
1329
1330
  };
1330
1331
  }
1331
1332
  }
1332
- function xl(e) {
1333
+ function bl(e) {
1333
1334
  const t = $n(e), n = gr(e);
1334
1335
  if (t && n)
1335
1336
  return { start: t, end: n };
@@ -1433,8 +1434,8 @@ K.prototype.fatal = void 0;
1433
1434
  K.prototype.place = void 0;
1434
1435
  K.prototype.ruleId = void 0;
1435
1436
  K.prototype.source = void 0;
1436
- const qn = {}.hasOwnProperty, bl = /* @__PURE__ */ new Map(), wl = /[A-Z]/g, Sl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Cl = /* @__PURE__ */ new Set(["td", "th"]), yr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1437
- function El(e, t) {
1437
+ const qn = {}.hasOwnProperty, wl = /* @__PURE__ */ new Map(), Sl = /[A-Z]/g, Cl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), El = /* @__PURE__ */ new Set(["td", "th"]), yr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1438
+ function Il(e, t) {
1438
1439
  if (!t || t.Fragment === void 0)
1439
1440
  throw new TypeError("Expected `Fragment` in options");
1440
1441
  const n = t.filePath || void 0;
@@ -1444,13 +1445,13 @@ function El(e, t) {
1444
1445
  throw new TypeError(
1445
1446
  "Expected `jsxDEV` in options when `development: true`"
1446
1447
  );
1447
- r = Ll(n, t.jsxDEV);
1448
+ r = Fl(n, t.jsxDEV);
1448
1449
  } else {
1449
1450
  if (typeof t.jsx != "function")
1450
1451
  throw new TypeError("Expected `jsx` in production options");
1451
1452
  if (typeof t.jsxs != "function")
1452
1453
  throw new TypeError("Expected `jsxs` in production options");
1453
- r = Dl(n, t.jsx, t.jsxs);
1454
+ r = Ll(n, t.jsx, t.jsxs);
1454
1455
  }
1455
1456
  const i = {
1456
1457
  Fragment: t.Fragment,
@@ -1463,7 +1464,7 @@ function El(e, t) {
1463
1464
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
1464
1465
  passKeys: t.passKeys !== !1,
1465
1466
  passNode: t.passNode || !1,
1466
- schema: t.space === "svg" ? Un : Vi,
1467
+ schema: t.space === "svg" ? Un : $i,
1467
1468
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
1468
1469
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
1469
1470
  }, o = kr(i, e, void 0);
@@ -1476,29 +1477,29 @@ function El(e, t) {
1476
1477
  }
1477
1478
  function kr(e, t, n) {
1478
1479
  if (t.type === "element")
1479
- return Il(e, t, n);
1480
+ return Al(e, t, n);
1480
1481
  if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
1481
- return Al(e, t);
1482
+ return Tl(e, t);
1482
1483
  if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
1483
- return Pl(e, t, n);
1484
+ return vl(e, t, n);
1484
1485
  if (t.type === "mdxjsEsm")
1485
- return Tl(e, t);
1486
+ return Pl(e, t);
1486
1487
  if (t.type === "root")
1487
- return vl(e, t, n);
1488
+ return zl(e, t, n);
1488
1489
  if (t.type === "text")
1489
- return zl(e, t);
1490
+ return Dl(e, t);
1490
1491
  }
1491
- function Il(e, t, n) {
1492
+ function Al(e, t, n) {
1492
1493
  const r = e.schema;
1493
1494
  let i = r;
1494
1495
  t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
1495
- const o = br(e, t.tagName, !1), l = Fl(e, t);
1496
+ const o = br(e, t.tagName, !1), l = _l(e, t);
1496
1497
  let a = Yn(e, t);
1497
- return Sl.has(t.tagName) && (a = a.filter(function(u) {
1498
- return typeof u == "string" ? !Fi(u) : !0;
1498
+ return Cl.has(t.tagName) && (a = a.filter(function(u) {
1499
+ return typeof u == "string" ? !_i(u) : !0;
1499
1500
  })), xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1500
1501
  }
1501
- function Al(e, t) {
1502
+ function Tl(e, t) {
1502
1503
  if (t.data && t.data.estree && e.evaluater) {
1503
1504
  const r = t.data.estree.body[0];
1504
1505
  return r.type, /** @type {Child | undefined} */
@@ -1506,7 +1507,7 @@ function Al(e, t) {
1506
1507
  }
1507
1508
  $e(e, t.position);
1508
1509
  }
1509
- function Tl(e, t) {
1510
+ function Pl(e, t) {
1510
1511
  if (t.data && t.data.estree && e.evaluater)
1511
1512
  return (
1512
1513
  /** @type {Child | undefined} */
@@ -1514,18 +1515,18 @@ function Tl(e, t) {
1514
1515
  );
1515
1516
  $e(e, t.position);
1516
1517
  }
1517
- function Pl(e, t, n) {
1518
+ function vl(e, t, n) {
1518
1519
  const r = e.schema;
1519
1520
  let i = r;
1520
1521
  t.name === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
1521
- const o = t.name === null ? e.Fragment : br(e, t.name, !0), l = _l(e, t), a = Yn(e, t);
1522
+ const o = t.name === null ? e.Fragment : br(e, t.name, !0), l = Rl(e, t), a = Yn(e, t);
1522
1523
  return xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
1523
1524
  }
1524
- function vl(e, t, n) {
1525
+ function zl(e, t, n) {
1525
1526
  const r = {};
1526
1527
  return Wn(r, Yn(e, t)), e.create(t, e.Fragment, r, n);
1527
1528
  }
1528
- function zl(e, t) {
1529
+ function Dl(e, t) {
1529
1530
  return t.value;
1530
1531
  }
1531
1532
  function xr(e, t, n, r) {
@@ -1537,14 +1538,14 @@ function Wn(e, t) {
1537
1538
  n && (e.children = n);
1538
1539
  }
1539
1540
  }
1540
- function Dl(e, t, n) {
1541
+ function Ll(e, t, n) {
1541
1542
  return r;
1542
1543
  function r(i, o, l, a) {
1543
1544
  const s = Array.isArray(l.children) ? n : t;
1544
1545
  return a ? s(o, l, a) : s(o, l);
1545
1546
  }
1546
1547
  }
1547
- function Ll(e, t) {
1548
+ function Fl(e, t) {
1548
1549
  return n;
1549
1550
  function n(r, i, o, l) {
1550
1551
  const a = Array.isArray(o.children), u = $n(r);
@@ -1562,15 +1563,15 @@ function Ll(e, t) {
1562
1563
  );
1563
1564
  }
1564
1565
  }
1565
- function Fl(e, t) {
1566
+ function _l(e, t) {
1566
1567
  const n = {};
1567
1568
  let r, i;
1568
1569
  for (i in t.properties)
1569
1570
  if (i !== "children" && qn.call(t.properties, i)) {
1570
- const o = Rl(e, i, t.properties[i]);
1571
+ const o = Ol(e, i, t.properties[i]);
1571
1572
  if (o) {
1572
1573
  const [l, a] = o;
1573
- e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Cl.has(t.tagName) ? r = a : n[l] = a;
1574
+ e.tableCellAlignToStyle && l === "align" && typeof a == "string" && El.has(t.tagName) ? r = a : n[l] = a;
1574
1575
  }
1575
1576
  }
1576
1577
  if (r) {
@@ -1582,7 +1583,7 @@ function Fl(e, t) {
1582
1583
  }
1583
1584
  return n;
1584
1585
  }
1585
- function _l(e, t) {
1586
+ function Rl(e, t) {
1586
1587
  const n = {};
1587
1588
  for (const r of t.attributes)
1588
1589
  if (r.type === "mdxJsxExpressionAttribute")
@@ -1617,7 +1618,7 @@ function _l(e, t) {
1617
1618
  function Yn(e, t) {
1618
1619
  const n = [];
1619
1620
  let r = -1;
1620
- const i = e.passKeys ? /* @__PURE__ */ new Map() : bl;
1621
+ const i = e.passKeys ? /* @__PURE__ */ new Map() : wl;
1621
1622
  for (; ++r < t.children.length; ) {
1622
1623
  const o = t.children[r];
1623
1624
  let l;
@@ -1633,22 +1634,22 @@ function Yn(e, t) {
1633
1634
  }
1634
1635
  return n;
1635
1636
  }
1636
- function Rl(e, t, n) {
1637
- const r = ji(e.schema, t);
1637
+ function Ol(e, t, n) {
1638
+ const r = Hi(e.schema, t);
1638
1639
  if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
1639
- if (Array.isArray(n) && (n = r.commaSeparated ? Pi(n) : $i(n)), r.property === "style") {
1640
- let i = typeof n == "object" ? n : Ol(e, String(n));
1641
- return e.stylePropertyNameCase === "css" && (i = Ml(i)), ["style", i];
1640
+ if (Array.isArray(n) && (n = r.commaSeparated ? vi(n) : qi(n)), r.property === "style") {
1641
+ let i = typeof n == "object" ? n : Ml(e, String(n));
1642
+ return e.stylePropertyNameCase === "css" && (i = Nl(i)), ["style", i];
1642
1643
  }
1643
1644
  return [
1644
- e.elementAttributeNameCase === "react" && r.space ? Mi[r.property] || r.property : r.attribute,
1645
+ e.elementAttributeNameCase === "react" && r.space ? Ni[r.property] || r.property : r.attribute,
1645
1646
  n
1646
1647
  ];
1647
1648
  }
1648
1649
  }
1649
- function Ol(e, t) {
1650
+ function Ml(e, t) {
1650
1651
  try {
1651
- return kl(t, { reactCompat: !0 });
1652
+ return xl(t, { reactCompat: !0 });
1652
1653
  } catch (n) {
1653
1654
  if (e.ignoreInvalidStyle)
1654
1655
  return {};
@@ -1707,18 +1708,18 @@ function $e(e, t) {
1707
1708
  );
1708
1709
  throw n.file = e.filePath || void 0, n.url = yr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
1709
1710
  }
1710
- function Ml(e) {
1711
+ function Nl(e) {
1711
1712
  const t = {};
1712
1713
  let n;
1713
1714
  for (n in e)
1714
- qn.call(e, n) && (t[Nl(n)] = e[n]);
1715
+ qn.call(e, n) && (t[Bl(n)] = e[n]);
1715
1716
  return t;
1716
1717
  }
1717
- function Nl(e) {
1718
- let t = e.replace(wl, Bl);
1718
+ function Bl(e) {
1719
+ let t = e.replace(Sl, jl);
1719
1720
  return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
1720
1721
  }
1721
- function Bl(e) {
1722
+ function jl(e) {
1722
1723
  return "-" + e.toLowerCase();
1723
1724
  }
1724
1725
  const gn = {
@@ -1743,13 +1744,13 @@ const gn = {
1743
1744
  "track",
1744
1745
  "video"
1745
1746
  ]
1746
- }, jl = {};
1747
+ }, Hl = {};
1747
1748
  function Xn(e, t) {
1748
- const n = jl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
1749
+ const n = Hl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
1749
1750
  return wr(e, r, i);
1750
1751
  }
1751
1752
  function wr(e, t, n) {
1752
- if (Hl(e)) {
1753
+ if (Ul(e)) {
1753
1754
  if ("value" in e)
1754
1755
  return e.type === "html" && !n ? "" : e.value;
1755
1756
  if (t && "alt" in e && e.alt)
@@ -1766,7 +1767,7 @@ function St(e, t, n) {
1766
1767
  r[i] = wr(e[i], t, n);
1767
1768
  return r.join("");
1768
1769
  }
1769
- function Hl(e) {
1770
+ function Ul(e) {
1770
1771
  return !!(e && typeof e == "object");
1771
1772
  }
1772
1773
  const Ct = document.createElement("i");
@@ -1793,10 +1794,10 @@ function Sr(e) {
1793
1794
  const t = {};
1794
1795
  let n = -1;
1795
1796
  for (; ++n < e.length; )
1796
- Ul(t, e[n]);
1797
+ Vl(t, e[n]);
1797
1798
  return t;
1798
1799
  }
1799
- function Ul(e, t) {
1800
+ function Vl(e, t) {
1800
1801
  let n;
1801
1802
  for (n in t) {
1802
1803
  const i = (Et.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
@@ -1805,7 +1806,7 @@ function Ul(e, t) {
1805
1806
  for (l in o) {
1806
1807
  Et.call(i, l) || (i[l] = []);
1807
1808
  const a = o[l];
1808
- Vl(
1809
+ $l(
1809
1810
  // @ts-expect-error Looks like a list.
1810
1811
  i[l],
1811
1812
  Array.isArray(a) ? a : a ? [a] : []
@@ -1813,7 +1814,7 @@ function Ul(e, t) {
1813
1814
  }
1814
1815
  }
1815
1816
  }
1816
- function Vl(e, t) {
1817
+ function $l(e, t) {
1817
1818
  let n = -1;
1818
1819
  const r = [];
1819
1820
  for (; ++n < t.length; )
@@ -1836,7 +1837,7 @@ function Cr(e, t) {
1836
1837
  function se(e) {
1837
1838
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
1838
1839
  }
1839
- const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/), $l = xe(/[#-'*+\--9=?A-Z^-~]/);
1840
+ const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/), ql = xe(/[#-'*+\--9=?A-Z^-~]/);
1840
1841
  function rn(e) {
1841
1842
  return (
1842
1843
  // Special whitespace codes (which have negative values), C0 and Control
@@ -1844,7 +1845,7 @@ function rn(e) {
1844
1845
  e !== null && (e < 32 || e === 127)
1845
1846
  );
1846
1847
  }
1847
- const _n = xe(/\d/), ql = xe(/[\dA-Fa-f]/), Wl = xe(/[!-/:-@[-`{-~]/);
1848
+ const _n = xe(/\d/), Wl = xe(/[\dA-Fa-f]/), Yl = xe(/[!-/:-@[-`{-~]/);
1848
1849
  function v(e) {
1849
1850
  return e !== null && e < -2;
1850
1851
  }
@@ -1861,7 +1862,7 @@ function xe(e) {
1861
1862
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
1862
1863
  }
1863
1864
  }
1864
- function _e(e) {
1865
+ function Re(e) {
1865
1866
  const t = [];
1866
1867
  let n = -1, r = 0, i = 0;
1867
1868
  for (; ++n < e.length; ) {
@@ -1891,10 +1892,10 @@ function O(e, t, n, r) {
1891
1892
  return _(u) && o++ < i ? (e.consume(u), a) : (e.exit(n), t(u));
1892
1893
  }
1893
1894
  }
1894
- const Yl = {
1895
- tokenize: Xl
1895
+ const Xl = {
1896
+ tokenize: Ql
1896
1897
  };
1897
- function Xl(e) {
1898
+ function Ql(e) {
1898
1899
  const t = e.attempt(this.parser.constructs.contentInitial, r, i);
1899
1900
  let n;
1900
1901
  return t;
@@ -1923,12 +1924,12 @@ function Xl(e) {
1923
1924
  return v(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
1924
1925
  }
1925
1926
  }
1926
- const Ql = {
1927
- tokenize: Gl
1928
- }, It = {
1927
+ const Gl = {
1929
1928
  tokenize: Kl
1929
+ }, It = {
1930
+ tokenize: Jl
1930
1931
  };
1931
- function Gl(e) {
1932
+ function Kl(e) {
1932
1933
  const t = this, n = [];
1933
1934
  let r = 0, i, o, l;
1934
1935
  return a;
@@ -2040,10 +2041,10 @@ function Gl(e) {
2040
2041
  i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
2041
2042
  }
2042
2043
  }
2043
- function Kl(e, t, n) {
2044
+ function Jl(e, t, n) {
2044
2045
  return O(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
2045
2046
  }
2046
- function Le(e) {
2047
+ function Fe(e) {
2047
2048
  if (e === null || U(e) || Ee(e))
2048
2049
  return 1;
2049
2050
  if (sn(e))
@@ -2060,10 +2061,10 @@ function cn(e, t, n) {
2060
2061
  }
2061
2062
  const Rn = {
2062
2063
  name: "attention",
2063
- resolveAll: Jl,
2064
- tokenize: Zl
2064
+ resolveAll: Zl,
2065
+ tokenize: eo
2065
2066
  };
2066
- function Jl(e, t) {
2067
+ function Zl(e, t) {
2067
2068
  let n = -1, r, i, o, l, a, u, s, f;
2068
2069
  for (; ++n < e.length; )
2069
2070
  if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
@@ -2118,8 +2119,8 @@ function Jl(e, t) {
2118
2119
  e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
2119
2120
  return e;
2120
2121
  }
2121
- function Zl(e, t) {
2122
- const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Le(r);
2122
+ function eo(e, t) {
2123
+ const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Fe(r);
2123
2124
  let o;
2124
2125
  return l;
2125
2126
  function l(u) {
@@ -2128,18 +2129,18 @@ function Zl(e, t) {
2128
2129
  function a(u) {
2129
2130
  if (u === o)
2130
2131
  return e.consume(u), a;
2131
- const s = e.exit("attentionSequence"), f = Le(u), c = !f || f === 2 && i || n.includes(u), p = !i || i === 2 && f || n.includes(r);
2132
+ const s = e.exit("attentionSequence"), f = Fe(u), c = !f || f === 2 && i || n.includes(u), p = !i || i === 2 && f || n.includes(r);
2132
2133
  return s._open = !!(o === 42 ? c : c && (i || !p)), s._close = !!(o === 42 ? p : p && (f || !c)), t(u);
2133
2134
  }
2134
2135
  }
2135
2136
  function At(e, t) {
2136
2137
  e.column += t, e.offset += t, e._bufferIndex += t;
2137
2138
  }
2138
- const eo = {
2139
+ const no = {
2139
2140
  name: "autolink",
2140
- tokenize: no
2141
+ tokenize: to
2141
2142
  };
2142
- function no(e, t, n) {
2143
+ function to(e, t, n) {
2143
2144
  let r = 0;
2144
2145
  return i;
2145
2146
  function i(h) {
@@ -2158,7 +2159,7 @@ function no(e, t, n) {
2158
2159
  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 || rn(h) ? n(h) : (e.consume(h), u);
2159
2160
  }
2160
2161
  function s(h) {
2161
- return h === 64 ? (e.consume(h), f) : $l(h) ? (e.consume(h), s) : n(h);
2162
+ return h === 64 ? (e.consume(h), f) : ql(h) ? (e.consume(h), s) : n(h);
2162
2163
  }
2163
2164
  function f(h) {
2164
2165
  return G(h) ? c(h) : n(h);
@@ -2176,9 +2177,9 @@ function no(e, t, n) {
2176
2177
  }
2177
2178
  const Ye = {
2178
2179
  partial: !0,
2179
- tokenize: to
2180
+ tokenize: ro
2180
2181
  };
2181
- function to(e, t, n) {
2182
+ function ro(e, t, n) {
2182
2183
  return r;
2183
2184
  function r(o) {
2184
2185
  return _(o) ? O(e, i, "linePrefix")(o) : i(o);
@@ -2189,13 +2190,13 @@ function to(e, t, n) {
2189
2190
  }
2190
2191
  const Er = {
2191
2192
  continuation: {
2192
- tokenize: io
2193
+ tokenize: lo
2193
2194
  },
2194
- exit: lo,
2195
+ exit: oo,
2195
2196
  name: "blockQuote",
2196
- tokenize: ro
2197
+ tokenize: io
2197
2198
  };
2198
- function ro(e, t, n) {
2199
+ function io(e, t, n) {
2199
2200
  const r = this;
2200
2201
  return i;
2201
2202
  function i(l) {
@@ -2211,7 +2212,7 @@ function ro(e, t, n) {
2211
2212
  return _(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
2212
2213
  }
2213
2214
  }
2214
- function io(e, t, n) {
2215
+ function lo(e, t, n) {
2215
2216
  const r = this;
2216
2217
  return i;
2217
2218
  function i(l) {
@@ -2221,27 +2222,27 @@ function io(e, t, n) {
2221
2222
  return e.attempt(Er, t, n)(l);
2222
2223
  }
2223
2224
  }
2224
- function lo(e) {
2225
+ function oo(e) {
2225
2226
  e.exit("blockQuote");
2226
2227
  }
2227
2228
  const Ir = {
2228
2229
  name: "characterEscape",
2229
- tokenize: oo
2230
+ tokenize: ao
2230
2231
  };
2231
- function oo(e, t, n) {
2232
+ function ao(e, t, n) {
2232
2233
  return r;
2233
2234
  function r(o) {
2234
2235
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
2235
2236
  }
2236
2237
  function i(o) {
2237
- return Wl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
2238
+ return Yl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
2238
2239
  }
2239
2240
  }
2240
2241
  const Ar = {
2241
2242
  name: "characterReference",
2242
- tokenize: ao
2243
+ tokenize: uo
2243
2244
  };
2244
- function ao(e, t, n) {
2245
+ function uo(e, t, n) {
2245
2246
  const r = this;
2246
2247
  let i = 0, o, l;
2247
2248
  return a;
@@ -2252,7 +2253,7 @@ function ao(e, t, n) {
2252
2253
  return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = G, f(c));
2253
2254
  }
2254
2255
  function s(c) {
2255
- return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = ql, f) : (e.enter("characterReferenceValue"), o = 7, l = _n, f(c));
2256
+ 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 = _n, f(c));
2256
2257
  }
2257
2258
  function f(c) {
2258
2259
  if (c === 59 && i) {
@@ -2264,13 +2265,13 @@ function ao(e, t, n) {
2264
2265
  }
2265
2266
  const Tt = {
2266
2267
  partial: !0,
2267
- tokenize: so
2268
+ tokenize: co
2268
2269
  }, Pt = {
2269
2270
  concrete: !0,
2270
2271
  name: "codeFenced",
2271
- tokenize: uo
2272
+ tokenize: so
2272
2273
  };
2273
- function uo(e, t, n) {
2274
+ function so(e, t, n) {
2274
2275
  const r = this, i = {
2275
2276
  partial: !0,
2276
2277
  tokenize: F
@@ -2341,7 +2342,7 @@ function uo(e, t, n) {
2341
2342
  }
2342
2343
  }
2343
2344
  }
2344
- function so(e, t, n) {
2345
+ function co(e, t, n) {
2345
2346
  const r = this;
2346
2347
  return i;
2347
2348
  function i(l) {
@@ -2353,12 +2354,12 @@ function so(e, t, n) {
2353
2354
  }
2354
2355
  const dn = {
2355
2356
  name: "codeIndented",
2356
- tokenize: fo
2357
- }, co = {
2358
- partial: !0,
2359
2357
  tokenize: ho
2358
+ }, fo = {
2359
+ partial: !0,
2360
+ tokenize: po
2360
2361
  };
2361
- function fo(e, t, n) {
2362
+ function ho(e, t, n) {
2362
2363
  const r = this;
2363
2364
  return i;
2364
2365
  function i(s) {
@@ -2369,7 +2370,7 @@ function fo(e, t, n) {
2369
2370
  return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
2370
2371
  }
2371
2372
  function l(s) {
2372
- return s === null ? u(s) : v(s) ? e.attempt(co, l, u)(s) : (e.enter("codeFlowValue"), a(s));
2373
+ return s === null ? u(s) : v(s) ? e.attempt(fo, l, u)(s) : (e.enter("codeFlowValue"), a(s));
2373
2374
  }
2374
2375
  function a(s) {
2375
2376
  return s === null || v(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), a);
@@ -2378,7 +2379,7 @@ function fo(e, t, n) {
2378
2379
  return e.exit("codeIndented"), t(s);
2379
2380
  }
2380
2381
  }
2381
- function ho(e, t, n) {
2382
+ function po(e, t, n) {
2382
2383
  const r = this;
2383
2384
  return i;
2384
2385
  function i(l) {
@@ -2389,13 +2390,13 @@ function ho(e, t, n) {
2389
2390
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : v(l) ? i(l) : n(l);
2390
2391
  }
2391
2392
  }
2392
- const po = {
2393
+ const mo = {
2393
2394
  name: "codeText",
2394
- previous: go,
2395
- resolve: mo,
2396
- tokenize: yo
2395
+ previous: yo,
2396
+ resolve: go,
2397
+ tokenize: ko
2397
2398
  };
2398
- function mo(e) {
2399
+ function go(e) {
2399
2400
  let t = e.length - 4, n = 3, r, i;
2400
2401
  if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
2401
2402
  for (r = n; ++r < t; )
@@ -2408,10 +2409,10 @@ function mo(e) {
2408
2409
  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);
2409
2410
  return e;
2410
2411
  }
2411
- function go(e) {
2412
+ function yo(e) {
2412
2413
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
2413
2414
  }
2414
- function yo(e, t, n) {
2415
+ function ko(e, t, n) {
2415
2416
  let r = 0, i, o;
2416
2417
  return l;
2417
2418
  function l(c) {
@@ -2430,7 +2431,7 @@ function yo(e, t, n) {
2430
2431
  return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
2431
2432
  }
2432
2433
  }
2433
- class ko {
2434
+ class xo {
2434
2435
  /**
2435
2436
  * @param {ReadonlyArray<T> | null | undefined} [initial]
2436
2437
  * Initial items (optional).
@@ -2510,7 +2511,7 @@ class ko {
2510
2511
  const i = n || 0;
2511
2512
  this.setCursor(Math.trunc(t));
2512
2513
  const o = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
2513
- return r && Ne(this.left, r), o.reverse();
2514
+ return r && Be(this.left, r), o.reverse();
2514
2515
  }
2515
2516
  /**
2516
2517
  * Remove and return the highest-numbered item in the array, so
@@ -2545,7 +2546,7 @@ class ko {
2545
2546
  * Nothing.
2546
2547
  */
2547
2548
  pushMany(t) {
2548
- this.setCursor(Number.POSITIVE_INFINITY), Ne(this.left, t);
2549
+ this.setCursor(Number.POSITIVE_INFINITY), Be(this.left, t);
2549
2550
  }
2550
2551
  /**
2551
2552
  * Inserts a single item to the low-numbered side of the array;
@@ -2569,7 +2570,7 @@ class ko {
2569
2570
  * Nothing.
2570
2571
  */
2571
2572
  unshiftMany(t) {
2572
- this.setCursor(0), Ne(this.right, t.reverse());
2573
+ this.setCursor(0), Be(this.right, t.reverse());
2573
2574
  }
2574
2575
  /**
2575
2576
  * Move the cursor to a specific position in the array. Requires
@@ -2587,14 +2588,14 @@ class ko {
2587
2588
  if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
2588
2589
  if (t < this.left.length) {
2589
2590
  const n = this.left.splice(t, Number.POSITIVE_INFINITY);
2590
- Ne(this.right, n.reverse());
2591
+ Be(this.right, n.reverse());
2591
2592
  } else {
2592
2593
  const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
2593
- Ne(this.left, n.reverse());
2594
+ Be(this.left, n.reverse());
2594
2595
  }
2595
2596
  }
2596
2597
  }
2597
- function Ne(e, t) {
2598
+ function Be(e, t) {
2598
2599
  let n = 0;
2599
2600
  if (t.length < 1e4)
2600
2601
  e.push(...t);
@@ -2605,7 +2606,7 @@ function Ne(e, t) {
2605
2606
  function Tr(e) {
2606
2607
  const t = {};
2607
2608
  let n = -1, r, i, o, l, a, u, s;
2608
- const f = new ko(e);
2609
+ const f = new xo(e);
2609
2610
  for (; ++n < f.length; ) {
2610
2611
  for (; n in t; )
2611
2612
  n = t[n];
@@ -2613,7 +2614,7 @@ function Tr(e) {
2613
2614
  for (; ++o < u.length && u[o][1].type !== "content"; )
2614
2615
  u[o][1].type === "chunkText" && (u[o][1]._isInFirstContentOfListItem = !0, o++);
2615
2616
  if (r[0] === "enter")
2616
- r[1].contentType && (Object.assign(t, xo(f, n)), n = t[n], s = !0);
2617
+ r[1].contentType && (Object.assign(t, bo(f, n)), n = t[n], s = !0);
2617
2618
  else if (r[1]._container) {
2618
2619
  for (o = n, i = void 0; o--; )
2619
2620
  if (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
@@ -2626,7 +2627,7 @@ function Tr(e) {
2626
2627
  }
2627
2628
  return re(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
2628
2629
  }
2629
- function xo(e, t) {
2630
+ function bo(e, t) {
2630
2631
  const n = e.get(t)[1], r = e.get(t)[2];
2631
2632
  let i = t - 1;
2632
2633
  const o = [];
@@ -2651,17 +2652,17 @@ function xo(e, t) {
2651
2652
  s[d + u[p][0]] = d + u[p][1], d += u[p][1] - u[p][0] - 1;
2652
2653
  return s;
2653
2654
  }
2654
- const bo = {
2655
- resolve: So,
2656
- tokenize: Co
2657
- }, wo = {
2658
- partial: !0,
2655
+ const wo = {
2656
+ resolve: Co,
2659
2657
  tokenize: Eo
2658
+ }, So = {
2659
+ partial: !0,
2660
+ tokenize: Io
2660
2661
  };
2661
- function So(e) {
2662
+ function Co(e) {
2662
2663
  return Tr(e), e;
2663
2664
  }
2664
- function Co(e, t) {
2665
+ function Eo(e, t) {
2665
2666
  let n;
2666
2667
  return r;
2667
2668
  function r(a) {
@@ -2670,7 +2671,7 @@ function Co(e, t) {
2670
2671
  }), i(a);
2671
2672
  }
2672
2673
  function i(a) {
2673
- return a === null ? o(a) : v(a) ? e.check(wo, l, o)(a) : (e.consume(a), i);
2674
+ return a === null ? o(a) : v(a) ? e.check(So, l, o)(a) : (e.consume(a), i);
2674
2675
  }
2675
2676
  function o(a) {
2676
2677
  return e.exit("chunkContent"), e.exit("content"), t(a);
@@ -2682,7 +2683,7 @@ function Co(e, t) {
2682
2683
  }), n = n.next, i;
2683
2684
  }
2684
2685
  }
2685
- function Eo(e, t, n) {
2686
+ function Io(e, t, n) {
2686
2687
  const r = this;
2687
2688
  return i;
2688
2689
  function i(l) {
@@ -2774,14 +2775,14 @@ function Ue(e, t) {
2774
2775
  return v(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : _(i) ? O(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
2775
2776
  }
2776
2777
  }
2777
- const Io = {
2778
+ const Ao = {
2778
2779
  name: "definition",
2779
- tokenize: To
2780
- }, Ao = {
2781
- partial: !0,
2782
2780
  tokenize: Po
2781
+ }, To = {
2782
+ partial: !0,
2783
+ tokenize: vo
2783
2784
  };
2784
- function To(e, t, n) {
2785
+ function Po(e, t, n) {
2785
2786
  const r = this;
2786
2787
  let i;
2787
2788
  return o;
@@ -2820,7 +2821,7 @@ function To(e, t, n) {
2820
2821
  )(h);
2821
2822
  }
2822
2823
  function f(h) {
2823
- return e.attempt(Ao, c, c)(h);
2824
+ return e.attempt(To, c, c)(h);
2824
2825
  }
2825
2826
  function c(h) {
2826
2827
  return _(h) ? O(e, p, "whitespace")(h) : p(h);
@@ -2829,7 +2830,7 @@ function To(e, t, n) {
2829
2830
  return h === null || v(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
2830
2831
  }
2831
2832
  }
2832
- function Po(e, t, n) {
2833
+ function vo(e, t, n) {
2833
2834
  return r;
2834
2835
  function r(a) {
2835
2836
  return U(a) ? Ue(e, i)(a) : n(a);
@@ -2844,11 +2845,11 @@ function Po(e, t, n) {
2844
2845
  return a === null || v(a) ? t(a) : n(a);
2845
2846
  }
2846
2847
  }
2847
- const vo = {
2848
+ const zo = {
2848
2849
  name: "hardBreakEscape",
2849
- tokenize: zo
2850
+ tokenize: Do
2850
2851
  };
2851
- function zo(e, t, n) {
2852
+ function Do(e, t, n) {
2852
2853
  return r;
2853
2854
  function r(o) {
2854
2855
  return e.enter("hardBreakEscape"), e.consume(o), i;
@@ -2857,12 +2858,12 @@ function zo(e, t, n) {
2857
2858
  return v(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
2858
2859
  }
2859
2860
  }
2860
- const Do = {
2861
+ const Lo = {
2861
2862
  name: "headingAtx",
2862
- resolve: Lo,
2863
- tokenize: Fo
2863
+ resolve: Fo,
2864
+ tokenize: _o
2864
2865
  };
2865
- function Lo(e, t) {
2866
+ function Fo(e, t) {
2866
2867
  let n = e.length - 2, r = 3, i, o;
2867
2868
  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 = {
2868
2869
  type: "atxHeadingText",
@@ -2875,7 +2876,7 @@ function Lo(e, t) {
2875
2876
  contentType: "text"
2876
2877
  }, re(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
2877
2878
  }
2878
- function Fo(e, t, n) {
2879
+ function _o(e, t, n) {
2879
2880
  let r = 0;
2880
2881
  return i;
2881
2882
  function i(f) {
@@ -2897,7 +2898,7 @@ function Fo(e, t, n) {
2897
2898
  return f === null || f === 35 || U(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
2898
2899
  }
2899
2900
  }
2900
- const _o = [
2901
+ const Ro = [
2901
2902
  "address",
2902
2903
  "article",
2903
2904
  "aside",
@@ -2960,25 +2961,25 @@ const _o = [
2960
2961
  "tr",
2961
2962
  "track",
2962
2963
  "ul"
2963
- ], vt = ["pre", "script", "style", "textarea"], Ro = {
2964
+ ], vt = ["pre", "script", "style", "textarea"], Oo = {
2964
2965
  concrete: !0,
2965
2966
  name: "htmlFlow",
2966
- resolveTo: No,
2967
- tokenize: Bo
2968
- }, Oo = {
2969
- partial: !0,
2970
- tokenize: Ho
2967
+ resolveTo: Bo,
2968
+ tokenize: jo
2971
2969
  }, Mo = {
2972
2970
  partial: !0,
2973
- tokenize: jo
2971
+ tokenize: Uo
2972
+ }, No = {
2973
+ partial: !0,
2974
+ tokenize: Ho
2974
2975
  };
2975
- function No(e) {
2976
+ function Bo(e) {
2976
2977
  let t = e.length;
2977
2978
  for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
2978
2979
  ;
2979
2980
  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;
2980
2981
  }
2981
- function Bo(e, t, n) {
2982
+ function jo(e, t, n) {
2982
2983
  const r = this;
2983
2984
  let i, o, l, a, u;
2984
2985
  return s;
@@ -3007,7 +3008,7 @@ function Bo(e, t, n) {
3007
3008
  function C(g) {
3008
3009
  if (g === null || g === 47 || g === 62 || U(g)) {
3009
3010
  const ae = g === 47, be = l.toLowerCase();
3010
- return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) : _o.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
3011
+ return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) : Ro.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
3011
3012
  }
3012
3013
  return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g), C) : n(g);
3013
3014
  }
@@ -3045,10 +3046,10 @@ function Bo(e, t, n) {
3045
3046
  return g === null || v(g) ? P(g) : _(g) ? (e.consume(g), T) : n(g);
3046
3047
  }
3047
3048
  function P(g) {
3048
- 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) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Oo, pe, j)(g)) : g === null || v(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), P);
3049
+ 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) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Mo, pe, j)(g)) : g === null || v(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), P);
3049
3050
  }
3050
3051
  function j(g) {
3051
- return e.check(Mo, q, pe)(g);
3052
+ return e.check(No, q, pe)(g);
3052
3053
  }
3053
3054
  function q(g) {
3054
3055
  return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), N;
@@ -3082,7 +3083,7 @@ function Bo(e, t, n) {
3082
3083
  return e.exit("htmlFlow"), t(g);
3083
3084
  }
3084
3085
  }
3085
- function jo(e, t, n) {
3086
+ function Ho(e, t, n) {
3086
3087
  const r = this;
3087
3088
  return i;
3088
3089
  function i(l) {
@@ -3092,17 +3093,17 @@ function jo(e, t, n) {
3092
3093
  return r.parser.lazy[r.now().line] ? n(l) : t(l);
3093
3094
  }
3094
3095
  }
3095
- function Ho(e, t, n) {
3096
+ function Uo(e, t, n) {
3096
3097
  return r;
3097
3098
  function r(i) {
3098
3099
  return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ye, t, n);
3099
3100
  }
3100
3101
  }
3101
- const Uo = {
3102
+ const Vo = {
3102
3103
  name: "htmlText",
3103
- tokenize: Vo
3104
+ tokenize: $o
3104
3105
  };
3105
- function Vo(e, t, n) {
3106
+ function $o(e, t, n) {
3106
3107
  const r = this;
3107
3108
  let i, o, l;
3108
3109
  return a;
@@ -3197,17 +3198,17 @@ function Vo(e, t, n) {
3197
3198
  }
3198
3199
  const Gn = {
3199
3200
  name: "labelEnd",
3200
- resolveAll: Yo,
3201
- resolveTo: Xo,
3202
- tokenize: Qo
3203
- }, $o = {
3201
+ resolveAll: Xo,
3202
+ resolveTo: Qo,
3204
3203
  tokenize: Go
3205
3204
  }, qo = {
3206
3205
  tokenize: Ko
3207
3206
  }, Wo = {
3208
3207
  tokenize: Jo
3208
+ }, Yo = {
3209
+ tokenize: Zo
3209
3210
  };
3210
- function Yo(e) {
3211
+ function Xo(e) {
3211
3212
  let t = -1;
3212
3213
  const n = [];
3213
3214
  for (; ++t < e.length; ) {
@@ -3219,7 +3220,7 @@ function Yo(e) {
3219
3220
  }
3220
3221
  return e.length !== n.length && re(e, 0, e.length, n), e;
3221
3222
  }
3222
- function Xo(e, t) {
3223
+ function Qo(e, t) {
3223
3224
  let n = e.length, r = 0, i, o, l, a;
3224
3225
  for (; n--; )
3225
3226
  if (i = e[n][1], o) {
@@ -3259,7 +3260,7 @@ function Xo(e, t) {
3259
3260
  };
3260
3261
  return a = [["enter", u, t], ["enter", s, t]], a = ie(a, e.slice(o + 1, o + r + 3)), a = ie(a, [["enter", f, t]]), a = ie(a, cn(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = ie(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = ie(a, e.slice(l + 1)), a = ie(a, [["exit", u, t]]), re(e, o, e.length, a), e;
3261
3262
  }
3262
- function Qo(e, t, n) {
3263
+ function Go(e, t, n) {
3263
3264
  const r = this;
3264
3265
  let i = r.events.length, o, l;
3265
3266
  for (; i--; )
@@ -3275,10 +3276,10 @@ function Qo(e, t, n) {
3275
3276
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
3276
3277
  }
3277
3278
  function u(p) {
3278
- return p === 40 ? e.attempt($o, f, l ? f : c)(p) : p === 91 ? e.attempt(qo, f, l ? s : c)(p) : l ? f(p) : c(p);
3279
+ return p === 40 ? e.attempt(qo, f, l ? f : c)(p) : p === 91 ? e.attempt(Wo, f, l ? s : c)(p) : l ? f(p) : c(p);
3279
3280
  }
3280
3281
  function s(p) {
3281
- return e.attempt(Wo, f, c)(p);
3282
+ return e.attempt(Yo, f, c)(p);
3282
3283
  }
3283
3284
  function f(p) {
3284
3285
  return t(p);
@@ -3287,7 +3288,7 @@ function Qo(e, t, n) {
3287
3288
  return o._balanced = !0, n(p);
3288
3289
  }
3289
3290
  }
3290
- function Go(e, t, n) {
3291
+ function Ko(e, t, n) {
3291
3292
  return r;
3292
3293
  function r(c) {
3293
3294
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
@@ -3314,7 +3315,7 @@ function Go(e, t, n) {
3314
3315
  return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
3315
3316
  }
3316
3317
  }
3317
- function Ko(e, t, n) {
3318
+ function Jo(e, t, n) {
3318
3319
  const r = this;
3319
3320
  return i;
3320
3321
  function i(a) {
@@ -3327,7 +3328,7 @@ function Ko(e, t, n) {
3327
3328
  return n(a);
3328
3329
  }
3329
3330
  }
3330
- function Jo(e, t, n) {
3331
+ function Zo(e, t, n) {
3331
3332
  return r;
3332
3333
  function r(o) {
3333
3334
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
@@ -3336,12 +3337,12 @@ function Jo(e, t, n) {
3336
3337
  return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
3337
3338
  }
3338
3339
  }
3339
- const Zo = {
3340
+ const ea = {
3340
3341
  name: "labelStartImage",
3341
3342
  resolveAll: Gn.resolveAll,
3342
- tokenize: ea
3343
+ tokenize: na
3343
3344
  };
3344
- function ea(e, t, n) {
3345
+ function na(e, t, n) {
3345
3346
  const r = this;
3346
3347
  return i;
3347
3348
  function i(a) {
@@ -3354,12 +3355,12 @@ function ea(e, t, n) {
3354
3355
  return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
3355
3356
  }
3356
3357
  }
3357
- const na = {
3358
+ const ta = {
3358
3359
  name: "labelStartLink",
3359
3360
  resolveAll: Gn.resolveAll,
3360
- tokenize: ta
3361
+ tokenize: ra
3361
3362
  };
3362
- function ta(e, t, n) {
3363
+ function ra(e, t, n) {
3363
3364
  const r = this;
3364
3365
  return i;
3365
3366
  function i(l) {
@@ -3371,9 +3372,9 @@ function ta(e, t, n) {
3371
3372
  }
3372
3373
  const yn = {
3373
3374
  name: "lineEnding",
3374
- tokenize: ra
3375
+ tokenize: ia
3375
3376
  };
3376
- function ra(e, t) {
3377
+ function ia(e, t) {
3377
3378
  return n;
3378
3379
  function n(r) {
3379
3380
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), O(e, t, "linePrefix");
@@ -3381,9 +3382,9 @@ function ra(e, t) {
3381
3382
  }
3382
3383
  const en = {
3383
3384
  name: "thematicBreak",
3384
- tokenize: ia
3385
+ tokenize: la
3385
3386
  };
3386
- function ia(e, t, n) {
3387
+ function la(e, t, n) {
3387
3388
  let r = 0, i;
3388
3389
  return o;
3389
3390
  function o(s) {
@@ -3401,19 +3402,19 @@ function ia(e, t, n) {
3401
3402
  }
3402
3403
  const Z = {
3403
3404
  continuation: {
3404
- tokenize: ua
3405
+ tokenize: sa
3405
3406
  },
3406
- exit: ca,
3407
+ exit: fa,
3407
3408
  name: "list",
3408
- tokenize: aa
3409
- }, la = {
3410
- partial: !0,
3411
- tokenize: fa
3409
+ tokenize: ua
3412
3410
  }, oa = {
3413
3411
  partial: !0,
3414
- tokenize: sa
3412
+ tokenize: ha
3413
+ }, aa = {
3414
+ partial: !0,
3415
+ tokenize: ca
3415
3416
  };
3416
- function aa(e, t, n) {
3417
+ function ua(e, t, n) {
3417
3418
  const r = this, i = r.events[r.events.length - 1];
3418
3419
  let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
3419
3420
  return a;
@@ -3437,7 +3438,7 @@ function aa(e, t, n) {
3437
3438
  Ye,
3438
3439
  // Can’t be empty when interrupting.
3439
3440
  r.interrupt ? n : f,
3440
- e.attempt(la, p, c)
3441
+ e.attempt(oa, p, c)
3441
3442
  );
3442
3443
  }
3443
3444
  function f(h) {
@@ -3450,20 +3451,20 @@ function aa(e, t, n) {
3450
3451
  return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
3451
3452
  }
3452
3453
  }
3453
- function ua(e, t, n) {
3454
+ function sa(e, t, n) {
3454
3455
  const r = this;
3455
3456
  return r.containerState._closeFlow = void 0, e.check(Ye, i, o);
3456
3457
  function i(a) {
3457
3458
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, O(e, t, "listItemIndent", r.containerState.size + 1)(a);
3458
3459
  }
3459
3460
  function o(a) {
3460
- return r.containerState.furtherBlankLines || !_(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(oa, t, l)(a));
3461
+ return r.containerState.furtherBlankLines || !_(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(aa, t, l)(a));
3461
3462
  }
3462
3463
  function l(a) {
3463
3464
  return r.containerState._closeFlow = !0, r.interrupt = void 0, O(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
3464
3465
  }
3465
3466
  }
3466
- function sa(e, t, n) {
3467
+ function ca(e, t, n) {
3467
3468
  const r = this;
3468
3469
  return O(e, i, "listItemIndent", r.containerState.size + 1);
3469
3470
  function i(o) {
@@ -3471,10 +3472,10 @@ function sa(e, t, n) {
3471
3472
  return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
3472
3473
  }
3473
3474
  }
3474
- function ca(e) {
3475
+ function fa(e) {
3475
3476
  e.exit(this.containerState.type);
3476
3477
  }
3477
- function fa(e, t, n) {
3478
+ function ha(e, t, n) {
3478
3479
  const r = this;
3479
3480
  return O(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3480
3481
  function i(o) {
@@ -3484,10 +3485,10 @@ function fa(e, t, n) {
3484
3485
  }
3485
3486
  const zt = {
3486
3487
  name: "setextUnderline",
3487
- resolveTo: ha,
3488
- tokenize: pa
3488
+ resolveTo: pa,
3489
+ tokenize: ma
3489
3490
  };
3490
- function ha(e, t) {
3491
+ function pa(e, t) {
3491
3492
  let n = e.length, r, i, o;
3492
3493
  for (; n--; )
3493
3494
  if (e[n][0] === "enter") {
@@ -3511,7 +3512,7 @@ function ha(e, t) {
3511
3512
  ...e[o][1].end
3512
3513
  }) : e[r][1] = l, e.push(["exit", l, t]), e;
3513
3514
  }
3514
- function pa(e, t, n) {
3515
+ function ma(e, t, n) {
3515
3516
  const r = this;
3516
3517
  let i;
3517
3518
  return o;
@@ -3534,16 +3535,16 @@ function pa(e, t, n) {
3534
3535
  return s === null || v(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
3535
3536
  }
3536
3537
  }
3537
- const ma = {
3538
- tokenize: ga
3538
+ const ga = {
3539
+ tokenize: da
3539
3540
  };
3540
- function ga(e) {
3541
+ function da(e) {
3541
3542
  const t = this, n = e.attempt(
3542
3543
  // Try to parse a blank line.
3543
3544
  Ye,
3544
3545
  r,
3545
3546
  // Try to parse initial flow (essentially, only code).
3546
- e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(bo, i)), "linePrefix"))
3547
+ e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(wo, i)), "linePrefix"))
3547
3548
  );
3548
3549
  return n;
3549
3550
  function r(o) {
@@ -3561,12 +3562,12 @@ function ga(e) {
3561
3562
  return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
3562
3563
  }
3563
3564
  }
3564
- const da = {
3565
+ const ya = {
3565
3566
  resolveAll: Lr()
3566
- }, ya = Dr("string"), ka = Dr("text");
3567
+ }, ka = Dr("string"), xa = Dr("text");
3567
3568
  function Dr(e) {
3568
3569
  return {
3569
- resolveAll: Lr(e === "text" ? xa : void 0),
3570
+ resolveAll: Lr(e === "text" ? ba : void 0),
3570
3571
  tokenize: t
3571
3572
  };
3572
3573
  function t(n) {
@@ -3609,7 +3610,7 @@ function Lr(e) {
3609
3610
  return e ? e(n, r) : n;
3610
3611
  }
3611
3612
  }
3612
- function xa(e, t) {
3613
+ function ba(e, t) {
3613
3614
  let n = 0;
3614
3615
  for (; ++n <= e.length; )
3615
3616
  if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
@@ -3651,7 +3652,7 @@ function xa(e, t) {
3651
3652
  }
3652
3653
  return e;
3653
3654
  }
3654
- const ba = {
3655
+ const wa = {
3655
3656
  42: Z,
3656
3657
  43: Z,
3657
3658
  45: Z,
@@ -3666,56 +3667,56 @@ const ba = {
3666
3667
  56: Z,
3667
3668
  57: Z,
3668
3669
  62: Er
3669
- }, wa = {
3670
- 91: Io
3671
3670
  }, Sa = {
3671
+ 91: Ao
3672
+ }, Ca = {
3672
3673
  [-2]: dn,
3673
3674
  [-1]: dn,
3674
3675
  32: dn
3675
- }, Ca = {
3676
- 35: Do,
3676
+ }, Ea = {
3677
+ 35: Lo,
3677
3678
  42: en,
3678
3679
  45: [zt, en],
3679
- 60: Ro,
3680
+ 60: Oo,
3680
3681
  61: zt,
3681
3682
  95: en,
3682
3683
  96: Pt,
3683
3684
  126: Pt
3684
- }, Ea = {
3685
+ }, Ia = {
3685
3686
  38: Ar,
3686
3687
  92: Ir
3687
- }, Ia = {
3688
+ }, Aa = {
3688
3689
  [-5]: yn,
3689
3690
  [-4]: yn,
3690
3691
  [-3]: yn,
3691
- 33: Zo,
3692
+ 33: ea,
3692
3693
  38: Ar,
3693
3694
  42: Rn,
3694
- 60: [eo, Uo],
3695
- 91: na,
3696
- 92: [vo, Ir],
3695
+ 60: [no, Vo],
3696
+ 91: ta,
3697
+ 92: [zo, Ir],
3697
3698
  93: Gn,
3698
3699
  95: Rn,
3699
- 96: po
3700
- }, Aa = {
3701
- null: [Rn, da]
3700
+ 96: mo
3702
3701
  }, Ta = {
3703
- null: [42, 95]
3702
+ null: [Rn, ya]
3704
3703
  }, Pa = {
3704
+ null: [42, 95]
3705
+ }, va = {
3705
3706
  null: []
3706
- }, va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3707
+ }, za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3707
3708
  __proto__: null,
3708
- attentionMarkers: Ta,
3709
- contentInitial: wa,
3710
- disable: Pa,
3711
- document: ba,
3712
- flow: Ca,
3713
- flowInitial: Sa,
3714
- insideSpan: Aa,
3715
- string: Ea,
3716
- text: Ia
3709
+ attentionMarkers: Pa,
3710
+ contentInitial: Sa,
3711
+ disable: va,
3712
+ document: wa,
3713
+ flow: Ea,
3714
+ flowInitial: Ca,
3715
+ insideSpan: Ta,
3716
+ string: Ia,
3717
+ text: Aa
3717
3718
  }, Symbol.toStringTag, { value: "Module" }));
3718
- function za(e, t, n) {
3719
+ function Da(e, t, n) {
3719
3720
  let r = {
3720
3721
  _bufferIndex: -1,
3721
3722
  _index: 0,
@@ -3752,10 +3753,10 @@ function za(e, t, n) {
3752
3753
  return l = ie(l, T), C(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events = cn(o, s.events, s), s.events);
3753
3754
  }
3754
3755
  function p(T, P) {
3755
- return La(h(T), P);
3756
+ return Fa(h(T), P);
3756
3757
  }
3757
3758
  function h(T) {
3758
- return Da(l, T);
3759
+ return La(l, T);
3759
3760
  }
3760
3761
  function d() {
3761
3762
  const {
@@ -3825,8 +3826,8 @@ function za(e, t, n) {
3825
3826
  ])
3826
3827
  ) : oe(q);
3827
3828
  function oe(X) {
3828
- return Re;
3829
- function Re(ye) {
3829
+ return Oe;
3830
+ function Oe(ye) {
3830
3831
  const Ae = ye !== null && X[ye], Te = ye !== null && X.null, Qe = [
3831
3832
  // To do: add more extension tests.
3832
3833
  /* c8 ignore next 2 */
@@ -3840,8 +3841,8 @@ function za(e, t, n) {
3840
3841
  return Y = X, le = 0, X.length === 0 ? Q : g(X[le]);
3841
3842
  }
3842
3843
  function g(X) {
3843
- return Re;
3844
- function Re(ye) {
3844
+ return Oe;
3845
+ function Oe(ye) {
3845
3846
  return m = B(), he = X, X.partial || (s.currentConstruct = X), X.name && s.parser.constructs.disable.null.includes(X.name) ? be() : X.tokenize.call(
3846
3847
  // If we do have fields, create an object w/ `context` as its
3847
3848
  // prototype.
@@ -3878,7 +3879,7 @@ function za(e, t, n) {
3878
3879
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
3879
3880
  }
3880
3881
  }
3881
- function Da(e, t) {
3882
+ function La(e, t) {
3882
3883
  const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
3883
3884
  let l;
3884
3885
  if (n === i)
@@ -3892,7 +3893,7 @@ function Da(e, t) {
3892
3893
  }
3893
3894
  return l;
3894
3895
  }
3895
- function La(e, t) {
3896
+ function Fa(e, t) {
3896
3897
  let n = -1;
3897
3898
  const r = [];
3898
3899
  let i;
@@ -3932,35 +3933,35 @@ function La(e, t) {
3932
3933
  }
3933
3934
  return r.join("");
3934
3935
  }
3935
- function Fa(e) {
3936
+ function _a(e) {
3936
3937
  const r = {
3937
3938
  constructs: (
3938
3939
  /** @type {FullNormalizedExtension} */
3939
- Sr([va, ...(e || {}).extensions || []])
3940
+ Sr([za, ...(e || {}).extensions || []])
3940
3941
  ),
3941
- content: i(Yl),
3942
+ content: i(Xl),
3942
3943
  defined: [],
3943
- document: i(Ql),
3944
- flow: i(ma),
3944
+ document: i(Gl),
3945
+ flow: i(ga),
3945
3946
  lazy: {},
3946
- string: i(ya),
3947
- text: i(ka)
3947
+ string: i(ka),
3948
+ text: i(xa)
3948
3949
  };
3949
3950
  return r;
3950
3951
  function i(o) {
3951
3952
  return l;
3952
3953
  function l(a) {
3953
- return za(r, o, a);
3954
+ return Da(r, o, a);
3954
3955
  }
3955
3956
  }
3956
3957
  }
3957
- function _a(e) {
3958
+ function Ra(e) {
3958
3959
  for (; !Tr(e); )
3959
3960
  ;
3960
3961
  return e;
3961
3962
  }
3962
3963
  const Dt = /[\0\t\n\r]/g;
3963
- function Ra() {
3964
+ function Oa() {
3964
3965
  let e = 1, t = "", n = !0, r;
3965
3966
  return i;
3966
3967
  function i(o, l, a) {
@@ -3995,11 +3996,11 @@ function Ra() {
3995
3996
  return a && (r && u.push(-5), t && u.push(t), u.push(null)), u;
3996
3997
  }
3997
3998
  }
3998
- const Oa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
3999
- function Ma(e) {
4000
- return e.replace(Oa, Na);
3999
+ const Ma = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
4000
+ function Na(e) {
4001
+ return e.replace(Ma, Ba);
4001
4002
  }
4002
- function Na(e, t, n) {
4003
+ function Ba(e, t, n) {
4003
4004
  if (t)
4004
4005
  return t;
4005
4006
  if (n.charCodeAt(0) === 35) {
@@ -4009,10 +4010,10 @@ function Na(e, t, n) {
4009
4010
  return Qn(n) || e;
4010
4011
  }
4011
4012
  const Fr = {}.hasOwnProperty;
4012
- function Ba(e, t, n) {
4013
- return typeof t != "string" && (n = t, t = void 0), ja(n)(_a(Fa(n).document().write(Ra()(e, t, !0))));
4013
+ function ja(e, t, n) {
4014
+ return typeof t != "string" && (n = t, t = void 0), Ha(n)(Ra(_a(n).document().write(Oa()(e, t, !0))));
4014
4015
  }
4015
- function ja(e) {
4016
+ function Ha(e) {
4016
4017
  const t = {
4017
4018
  transforms: [],
4018
4019
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
@@ -4070,7 +4071,7 @@ function ja(e) {
4070
4071
  characterReferenceMarkerHexadecimal: be,
4071
4072
  characterReferenceMarkerNumeric: be,
4072
4073
  characterReferenceValue: X,
4073
- characterReference: Re,
4074
+ characterReference: Oe,
4074
4075
  codeFenced: u(C),
4075
4076
  codeFencedFence: x,
4076
4077
  codeFencedFenceInfo: h,
@@ -4164,18 +4165,18 @@ function ja(e) {
4164
4165
  return I;
4165
4166
  }
4166
4167
  function i(b, I, z) {
4167
- let R = I - 1, H = -1, ue = !1, we, me, Oe, Me;
4168
+ let R = I - 1, H = -1, ue = !1, we, me, Me, Ne;
4168
4169
  for (; ++R <= z; ) {
4169
4170
  const ne = b[R];
4170
4171
  switch (ne[1].type) {
4171
4172
  case "listUnordered":
4172
4173
  case "listOrdered":
4173
4174
  case "blockQuote": {
4174
- ne[0] === "enter" ? H++ : H--, Me = void 0;
4175
+ ne[0] === "enter" ? H++ : H--, Ne = void 0;
4175
4176
  break;
4176
4177
  }
4177
4178
  case "lineEndingBlank": {
4178
- ne[0] === "enter" && (we && !Me && !H && !Oe && (Oe = R), Me = void 0);
4179
+ ne[0] === "enter" && (we && !Ne && !H && !Me && (Me = R), Ne = void 0);
4179
4180
  break;
4180
4181
  }
4181
4182
  case "linePrefix":
@@ -4185,7 +4186,7 @@ function ja(e) {
4185
4186
  case "listItemPrefixWhitespace":
4186
4187
  break;
4187
4188
  default:
4188
- Me = void 0;
4189
+ Ne = void 0;
4189
4190
  }
4190
4191
  if (!H && ne[0] === "enter" && ne[1].type === "listItemPrefix" || H === -1 && ne[0] === "exit" && (ne[1].type === "listUnordered" || ne[1].type === "listOrdered")) {
4191
4192
  if (we) {
@@ -4197,7 +4198,7 @@ function ja(e) {
4197
4198
  me && (b[me][1].type = "lineEndingBlank", ue = !0), ge[1].type = "lineEnding", me = Pe;
4198
4199
  } else if (!(ge[1].type === "linePrefix" || ge[1].type === "blockQuotePrefix" || ge[1].type === "blockQuotePrefixWhitespace" || ge[1].type === "blockQuoteMarker" || ge[1].type === "listItemIndent")) break;
4199
4200
  }
4200
- Oe && (!me || Oe < me) && (we._spread = !0), we.end = Object.assign({}, me ? b[me][1].start : ne[1].end), b.splice(me || R, 0, ["exit", we, ne[2]]), R++, z++;
4201
+ Me && (!me || Me < me) && (we._spread = !0), we.end = Object.assign({}, me ? b[me][1].start : ne[1].end), b.splice(me || R, 0, ["exit", we, ne[2]]), R++, z++;
4201
4202
  }
4202
4203
  if (ne[1].type === "listItemPrefix") {
4203
4204
  const Pe = {
@@ -4207,7 +4208,7 @@ function ja(e) {
4207
4208
  // @ts-expect-error: we’ll add `end` in a second.
4208
4209
  end: void 0
4209
4210
  };
4210
- we = Pe, b.splice(R, 0, ["enter", Pe, ne[2]]), R++, z++, Oe = void 0, Me = !0;
4211
+ we = Pe, b.splice(R, 0, ["enter", Pe, ne[2]]), R++, z++, Me = void 0, Ne = !0;
4211
4212
  }
4212
4213
  }
4213
4214
  }
@@ -4365,7 +4366,7 @@ function ja(e) {
4365
4366
  }
4366
4367
  function le(b) {
4367
4368
  const I = this.sliceSerialize(b), z = this.stack[this.stack.length - 2];
4368
- z.label = Ma(I), z.identifier = se(I).toLowerCase();
4369
+ z.label = Na(I), z.identifier = se(I).toLowerCase();
4369
4370
  }
4370
4371
  function he() {
4371
4372
  const b = this.stack[this.stack.length - 1], I = this.resume(), z = this.stack[this.stack.length - 1];
@@ -4403,7 +4404,7 @@ function ja(e) {
4403
4404
  const H = this.stack[this.stack.length - 1];
4404
4405
  H.value += R;
4405
4406
  }
4406
- function Re(b) {
4407
+ function Oe(b) {
4407
4408
  const I = this.stack.pop();
4408
4409
  I.position.end = ke(b.end);
4409
4410
  }
@@ -4539,10 +4540,10 @@ function _r(e, t) {
4539
4540
  let n = -1;
4540
4541
  for (; ++n < t.length; ) {
4541
4542
  const r = t[n];
4542
- Array.isArray(r) ? _r(e, r) : Ha(e, r);
4543
+ Array.isArray(r) ? _r(e, r) : Ua(e, r);
4543
4544
  }
4544
4545
  }
4545
- function Ha(e, t) {
4546
+ function Ua(e, t) {
4546
4547
  let n;
4547
4548
  for (n in t)
4548
4549
  if (Fr.call(t, n))
@@ -4577,11 +4578,11 @@ function Lt(e, t) {
4577
4578
  end: t.end
4578
4579
  }) + ") is still open");
4579
4580
  }
4580
- function Ua(e) {
4581
+ function Va(e) {
4581
4582
  const t = this;
4582
4583
  t.parser = n;
4583
4584
  function n(r) {
4584
- return Ba(r, {
4585
+ return ja(r, {
4585
4586
  ...t.data("settings"),
4586
4587
  ...e,
4587
4588
  // Note: these options are not in the readme.
@@ -4592,7 +4593,7 @@ function Ua(e) {
4592
4593
  });
4593
4594
  }
4594
4595
  }
4595
- function Va(e, t) {
4596
+ function $a(e, t) {
4596
4597
  const n = {
4597
4598
  type: "element",
4598
4599
  tagName: "blockquote",
@@ -4601,12 +4602,12 @@ function Va(e, t) {
4601
4602
  };
4602
4603
  return e.patch(t, n), e.applyData(t, n);
4603
4604
  }
4604
- function $a(e, t) {
4605
+ function qa(e, t) {
4605
4606
  const n = { type: "element", tagName: "br", properties: {}, children: [] };
4606
4607
  return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
4607
4608
  ` }];
4608
4609
  }
4609
- function qa(e, t) {
4610
+ function Wa(e, t) {
4610
4611
  const n = t.value ? t.value + `
4611
4612
  ` : "", r = {}, i = t.lang ? t.lang.split(/\s+/) : [];
4612
4613
  i.length > 0 && (r.className = ["language-" + i[0]]);
@@ -4618,7 +4619,7 @@ function qa(e, t) {
4618
4619
  };
4619
4620
  return t.meta && (o.data = { meta: t.meta }), e.patch(t, o), o = e.applyData(t, o), o = { type: "element", tagName: "pre", properties: {}, children: [o] }, e.patch(t, o), o;
4620
4621
  }
4621
- function Wa(e, t) {
4622
+ function Ya(e, t) {
4622
4623
  const n = {
4623
4624
  type: "element",
4624
4625
  tagName: "del",
@@ -4627,7 +4628,7 @@ function Wa(e, t) {
4627
4628
  };
4628
4629
  return e.patch(t, n), e.applyData(t, n);
4629
4630
  }
4630
- function Ya(e, t) {
4631
+ function Xa(e, t) {
4631
4632
  const n = {
4632
4633
  type: "element",
4633
4634
  tagName: "em",
@@ -4636,8 +4637,8 @@ function Ya(e, t) {
4636
4637
  };
4637
4638
  return e.patch(t, n), e.applyData(t, n);
4638
4639
  }
4639
- function Xa(e, t) {
4640
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = _e(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
4640
+ function Qa(e, t) {
4641
+ 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);
4641
4642
  let l, a = e.footnoteCounts.get(r);
4642
4643
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
4643
4644
  const u = {
@@ -4660,7 +4661,7 @@ function Xa(e, t) {
4660
4661
  };
4661
4662
  return e.patch(t, s), e.applyData(t, s);
4662
4663
  }
4663
- function Qa(e, t) {
4664
+ function Ga(e, t) {
4664
4665
  const n = {
4665
4666
  type: "element",
4666
4667
  tagName: "h" + t.depth,
@@ -4669,7 +4670,7 @@ function Qa(e, t) {
4669
4670
  };
4670
4671
  return e.patch(t, n), e.applyData(t, n);
4671
4672
  }
4672
- function Ga(e, t) {
4673
+ function Ka(e, t) {
4673
4674
  if (e.options.allowDangerousHtml) {
4674
4675
  const n = { type: "raw", value: t.value };
4675
4676
  return e.patch(t, n), e.applyData(t, n);
@@ -4685,22 +4686,22 @@ function Rr(e, t) {
4685
4686
  const l = i[i.length - 1];
4686
4687
  return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
4687
4688
  }
4688
- function Ka(e, t) {
4689
+ function Ja(e, t) {
4689
4690
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
4690
4691
  if (!r)
4691
4692
  return Rr(e, t);
4692
- const i = { src: _e(r.url || ""), alt: t.alt };
4693
+ const i = { src: Re(r.url || ""), alt: t.alt };
4693
4694
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4694
4695
  const o = { type: "element", tagName: "img", properties: i, children: [] };
4695
4696
  return e.patch(t, o), e.applyData(t, o);
4696
4697
  }
4697
- function Ja(e, t) {
4698
- const n = { src: _e(t.url) };
4698
+ function Za(e, t) {
4699
+ const n = { src: Re(t.url) };
4699
4700
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
4700
4701
  const r = { type: "element", tagName: "img", properties: n, children: [] };
4701
4702
  return e.patch(t, r), e.applyData(t, r);
4702
4703
  }
4703
- function Za(e, t) {
4704
+ function eu(e, t) {
4704
4705
  const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
4705
4706
  e.patch(t, n);
4706
4707
  const r = {
@@ -4711,11 +4712,11 @@ function Za(e, t) {
4711
4712
  };
4712
4713
  return e.patch(t, r), e.applyData(t, r);
4713
4714
  }
4714
- function eu(e, t) {
4715
+ function nu(e, t) {
4715
4716
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
4716
4717
  if (!r)
4717
4718
  return Rr(e, t);
4718
- const i = { href: _e(r.url || "") };
4719
+ const i = { href: Re(r.url || "") };
4719
4720
  r.title !== null && r.title !== void 0 && (i.title = r.title);
4720
4721
  const o = {
4721
4722
  type: "element",
@@ -4725,8 +4726,8 @@ function eu(e, t) {
4725
4726
  };
4726
4727
  return e.patch(t, o), e.applyData(t, o);
4727
4728
  }
4728
- function nu(e, t) {
4729
- const n = { href: _e(t.url) };
4729
+ function tu(e, t) {
4730
+ const n = { href: Re(t.url) };
4730
4731
  t.title !== null && t.title !== void 0 && (n.title = t.title);
4731
4732
  const r = {
4732
4733
  type: "element",
@@ -4736,8 +4737,8 @@ function nu(e, t) {
4736
4737
  };
4737
4738
  return e.patch(t, r), e.applyData(t, r);
4738
4739
  }
4739
- function tu(e, t, n) {
4740
- const r = e.all(t), i = n ? ru(n) : Or(t), o = {}, l = [];
4740
+ function ru(e, t, n) {
4741
+ const r = e.all(t), i = n ? iu(n) : Or(t), o = {}, l = [];
4741
4742
  if (typeof t.checked == "boolean") {
4742
4743
  const f = r[0];
4743
4744
  let c;
@@ -4760,7 +4761,7 @@ function tu(e, t, n) {
4760
4761
  const s = { type: "element", tagName: "li", properties: o, children: l };
4761
4762
  return e.patch(t, s), e.applyData(t, s);
4762
4763
  }
4763
- function ru(e) {
4764
+ function iu(e) {
4764
4765
  let t = !1;
4765
4766
  if (e.type === "list") {
4766
4767
  t = e.spread || !1;
@@ -4775,7 +4776,7 @@ function Or(e) {
4775
4776
  const t = e.spread;
4776
4777
  return t ?? e.children.length > 1;
4777
4778
  }
4778
- function iu(e, t) {
4779
+ function lu(e, t) {
4779
4780
  const n = {}, r = e.all(t);
4780
4781
  let i = -1;
4781
4782
  for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
@@ -4793,7 +4794,7 @@ function iu(e, t) {
4793
4794
  };
4794
4795
  return e.patch(t, o), e.applyData(t, o);
4795
4796
  }
4796
- function lu(e, t) {
4797
+ function ou(e, t) {
4797
4798
  const n = {
4798
4799
  type: "element",
4799
4800
  tagName: "p",
@@ -4802,11 +4803,11 @@ function lu(e, t) {
4802
4803
  };
4803
4804
  return e.patch(t, n), e.applyData(t, n);
4804
4805
  }
4805
- function ou(e, t) {
4806
+ function au(e, t) {
4806
4807
  const n = { type: "root", children: e.wrap(e.all(t)) };
4807
4808
  return e.patch(t, n), e.applyData(t, n);
4808
4809
  }
4809
- function au(e, t) {
4810
+ function uu(e, t) {
4810
4811
  const n = {
4811
4812
  type: "element",
4812
4813
  tagName: "strong",
@@ -4815,7 +4816,7 @@ function au(e, t) {
4815
4816
  };
4816
4817
  return e.patch(t, n), e.applyData(t, n);
4817
4818
  }
4818
- function uu(e, t) {
4819
+ function su(e, t) {
4819
4820
  const n = e.all(t), r = n.shift(), i = [];
4820
4821
  if (r) {
4821
4822
  const l = {
@@ -4843,7 +4844,7 @@ function uu(e, t) {
4843
4844
  };
4844
4845
  return e.patch(t, o), e.applyData(t, o);
4845
4846
  }
4846
- function su(e, t, n) {
4847
+ function cu(e, t, n) {
4847
4848
  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;
4848
4849
  let u = -1;
4849
4850
  const s = [];
@@ -4861,7 +4862,7 @@ function su(e, t, n) {
4861
4862
  };
4862
4863
  return e.patch(t, f), e.applyData(t, f);
4863
4864
  }
4864
- function cu(e, t) {
4865
+ function fu(e, t) {
4865
4866
  const n = {
4866
4867
  type: "element",
4867
4868
  tagName: "td",
@@ -4872,7 +4873,7 @@ function cu(e, t) {
4872
4873
  return e.patch(t, n), e.applyData(t, n);
4873
4874
  }
4874
4875
  const Ft = 9, _t = 32;
4875
- function fu(e) {
4876
+ function hu(e) {
4876
4877
  const t = String(e), n = /\r?\n|\r/g;
4877
4878
  let r = n.exec(t), i = 0;
4878
4879
  const o = [];
@@ -4897,11 +4898,11 @@ function Rt(e, t, n) {
4897
4898
  }
4898
4899
  return i > r ? e.slice(r, i) : "";
4899
4900
  }
4900
- function hu(e, t) {
4901
- const n = { type: "text", value: fu(String(t.value)) };
4901
+ function pu(e, t) {
4902
+ const n = { type: "text", value: hu(String(t.value)) };
4902
4903
  return e.patch(t, n), e.applyData(t, n);
4903
4904
  }
4904
- function pu(e, t) {
4905
+ function mu(e, t) {
4905
4906
  const n = {
4906
4907
  type: "element",
4907
4908
  tagName: "hr",
@@ -4910,31 +4911,31 @@ function pu(e, t) {
4910
4911
  };
4911
4912
  return e.patch(t, n), e.applyData(t, n);
4912
4913
  }
4913
- const mu = {
4914
- blockquote: Va,
4915
- break: $a,
4916
- code: qa,
4917
- delete: Wa,
4918
- emphasis: Ya,
4919
- footnoteReference: Xa,
4920
- heading: Qa,
4921
- html: Ga,
4922
- imageReference: Ka,
4923
- image: Ja,
4924
- inlineCode: Za,
4925
- linkReference: eu,
4926
- link: nu,
4927
- listItem: tu,
4928
- list: iu,
4929
- paragraph: lu,
4914
+ const gu = {
4915
+ blockquote: $a,
4916
+ break: qa,
4917
+ code: Wa,
4918
+ delete: Ya,
4919
+ emphasis: Xa,
4920
+ footnoteReference: Qa,
4921
+ heading: Ga,
4922
+ html: Ka,
4923
+ imageReference: Ja,
4924
+ image: Za,
4925
+ inlineCode: eu,
4926
+ linkReference: nu,
4927
+ link: tu,
4928
+ listItem: ru,
4929
+ list: lu,
4930
+ paragraph: ou,
4930
4931
  // @ts-expect-error: root is different, but hard to type.
4931
- root: ou,
4932
- strong: au,
4933
- table: uu,
4934
- tableCell: cu,
4935
- tableRow: su,
4936
- text: hu,
4937
- thematicBreak: pu,
4932
+ root: au,
4933
+ strong: uu,
4934
+ table: su,
4935
+ tableCell: fu,
4936
+ tableRow: cu,
4937
+ text: pu,
4938
+ thematicBreak: mu,
4938
4939
  toml: Ge,
4939
4940
  yaml: Ge,
4940
4941
  definition: Ge,
@@ -4942,7 +4943,7 @@ const mu = {
4942
4943
  };
4943
4944
  function Ge() {
4944
4945
  }
4945
- const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, Br = 8, Ot = typeof self == "object" ? self : globalThis, gu = (e, t) => {
4946
+ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, Br = 8, Ot = typeof self == "object" ? self : globalThis, du = (e, t) => {
4946
4947
  const n = (i, o) => (e.set(o, i), i), r = (i) => {
4947
4948
  if (e.has(i))
4948
4949
  return e.get(i);
@@ -4999,11 +5000,11 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
4999
5000
  return n(new Ot[o](l), i);
5000
5001
  };
5001
5002
  return r;
5002
- }, Mt = (e) => gu(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: du } = {}, { keys: yu } = Object, Be = (e) => {
5003
+ }, Mt = (e) => du(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: yu } = {}, { keys: ku } = Object, je = (e) => {
5003
5004
  const t = typeof e;
5004
5005
  if (t !== "object" || !e)
5005
5006
  return [fn, t];
5006
- const n = du.call(e).slice(8, -1);
5007
+ const n = yu.call(e).slice(8, -1);
5007
5008
  switch (n) {
5008
5009
  case "Array":
5009
5010
  return [Ve, ve];
@@ -5021,14 +5022,14 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5021
5022
  return [Ve, n];
5022
5023
  }
5023
5024
  return n.includes("Array") ? [Ve, n] : n.includes("Error") ? [Nr, n] : [ln, n];
5024
- }, Ke = ([e, t]) => e === fn && (t === "function" || t === "symbol"), ku = (e, t, n, r) => {
5025
+ }, Ke = ([e, t]) => e === fn && (t === "function" || t === "symbol"), xu = (e, t, n, r) => {
5025
5026
  const i = (l, a) => {
5026
5027
  const u = r.push(l) - 1;
5027
5028
  return n.set(a, u), u;
5028
5029
  }, o = (l) => {
5029
5030
  if (n.has(l))
5030
5031
  return n.get(l);
5031
- let [a, u] = Be(l);
5032
+ let [a, u] = je(l);
5032
5033
  switch (a) {
5033
5034
  case fn: {
5034
5035
  let f = l;
@@ -5070,8 +5071,8 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5070
5071
  if (t && "toJSON" in l)
5071
5072
  return o(l.toJSON());
5072
5073
  const f = [], c = i([a, f], l);
5073
- for (const p of yu(l))
5074
- (e || !Ke(Be(l[p]))) && f.push([o(p), o(l[p])]);
5074
+ for (const p of ku(l))
5075
+ (e || !Ke(je(l[p]))) && f.push([o(p), o(l[p])]);
5075
5076
  return c;
5076
5077
  }
5077
5078
  case Kn:
@@ -5083,13 +5084,13 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5083
5084
  case Zn: {
5084
5085
  const f = [], c = i([a, f], l);
5085
5086
  for (const [p, h] of l)
5086
- (e || !(Ke(Be(p)) || Ke(Be(h)))) && f.push([o(p), o(h)]);
5087
+ (e || !(Ke(je(p)) || Ke(je(h)))) && f.push([o(p), o(h)]);
5087
5088
  return c;
5088
5089
  }
5089
5090
  case et: {
5090
5091
  const f = [], c = i([a, f], l);
5091
5092
  for (const p of l)
5092
- (e || !Ke(Be(p))) && f.push(o(p));
5093
+ (e || !Ke(je(p))) && f.push(o(p));
5093
5094
  return c;
5094
5095
  }
5095
5096
  }
@@ -5099,12 +5100,12 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
5099
5100
  return o;
5100
5101
  }, Nt = (e, { json: t, lossy: n } = {}) => {
5101
5102
  const r = [];
5102
- return ku(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5103
+ return xu(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
5103
5104
  }, on = typeof structuredClone == "function" ? (
5104
5105
  /* c8 ignore start */
5105
5106
  (e, t) => t && ("json" in t || "lossy" in t) ? Mt(Nt(e, t)) : structuredClone(e)
5106
5107
  ) : (e, t) => Mt(Nt(e, t));
5107
- function xu(e, t) {
5108
+ function bu(e, t) {
5108
5109
  const n = [{ type: "text", value: "↩" }];
5109
5110
  return t > 1 && n.push({
5110
5111
  type: "element",
@@ -5113,11 +5114,11 @@ function xu(e, t) {
5113
5114
  children: [{ type: "text", value: String(t) }]
5114
5115
  }), n;
5115
5116
  }
5116
- function bu(e, t) {
5117
+ function wu(e, t) {
5117
5118
  return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
5118
5119
  }
5119
- function wu(e) {
5120
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || xu, r = e.options.footnoteBackLabel || bu, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
5120
+ function Su(e) {
5121
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || bu, r = e.options.footnoteBackLabel || wu, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
5121
5122
  className: ["sr-only"]
5122
5123
  }, a = [];
5123
5124
  let u = -1;
@@ -5127,7 +5128,7 @@ function wu(e) {
5127
5128
  );
5128
5129
  if (!s)
5129
5130
  continue;
5130
- const f = e.all(s), c = String(s.identifier).toUpperCase(), p = _e(c.toLowerCase());
5131
+ const f = e.all(s), c = String(s.identifier).toUpperCase(), p = Re(c.toLowerCase());
5131
5132
  let h = 0;
5132
5133
  const d = [], x = e.footnoteCounts.get(c);
5133
5134
  for (; x !== void 0 && ++h <= x; ) {
@@ -5204,24 +5205,24 @@ const hn = (
5204
5205
  */
5205
5206
  function(e) {
5206
5207
  if (e == null)
5207
- return Iu;
5208
+ return Au;
5208
5209
  if (typeof e == "function")
5209
5210
  return pn(e);
5210
5211
  if (typeof e == "object")
5211
- return Array.isArray(e) ? Su(e) : (
5212
+ return Array.isArray(e) ? Cu(e) : (
5212
5213
  // Cast because `ReadonlyArray` goes into the above but `isArray`
5213
5214
  // narrows to `Array`.
5214
- Cu(
5215
+ Eu(
5215
5216
  /** @type {Props} */
5216
5217
  e
5217
5218
  )
5218
5219
  );
5219
5220
  if (typeof e == "string")
5220
- return Eu(e);
5221
+ return Iu(e);
5221
5222
  throw new Error("Expected function, string, or object as test");
5222
5223
  }
5223
5224
  );
5224
- function Su(e) {
5225
+ function Cu(e) {
5225
5226
  const t = [];
5226
5227
  let n = -1;
5227
5228
  for (; ++n < e.length; )
@@ -5234,7 +5235,7 @@ function Su(e) {
5234
5235
  return !1;
5235
5236
  }
5236
5237
  }
5237
- function Cu(e) {
5238
+ function Eu(e) {
5238
5239
  const t = (
5239
5240
  /** @type {Record<string, unknown>} */
5240
5241
  e
@@ -5252,7 +5253,7 @@ function Cu(e) {
5252
5253
  return !0;
5253
5254
  }
5254
5255
  }
5255
- function Eu(e) {
5256
+ function Iu(e) {
5256
5257
  return pn(t);
5257
5258
  function t(n) {
5258
5259
  return n && n.type === e;
@@ -5261,7 +5262,7 @@ function Eu(e) {
5261
5262
  function pn(e) {
5262
5263
  return t;
5263
5264
  function t(n, r, i) {
5264
- return !!(Au(n) && e.call(
5265
+ return !!(Tu(n) && e.call(
5265
5266
  this,
5266
5267
  n,
5267
5268
  typeof r == "number" ? r : void 0,
@@ -5269,13 +5270,13 @@ function pn(e) {
5269
5270
  ));
5270
5271
  }
5271
5272
  }
5272
- function Iu() {
5273
+ function Au() {
5273
5274
  return !0;
5274
5275
  }
5275
- function Au(e) {
5276
+ function Tu(e) {
5276
5277
  return e !== null && typeof e == "object" && "type" in e;
5277
5278
  }
5278
- const jr = [], Tu = !0, On = !1, Pu = "skip";
5279
+ const jr = [], Pu = !0, On = !1, vu = "skip";
5279
5280
  function Hr(e, t, n, r) {
5280
5281
  let i;
5281
5282
  typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
@@ -5301,14 +5302,14 @@ function Hr(e, t, n, r) {
5301
5302
  return p;
5302
5303
  function p() {
5303
5304
  let h = jr, d, x, C;
5304
- if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = vu(n(u, f)), h[0] === On))
5305
+ if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = zu(n(u, f)), h[0] === On))
5305
5306
  return h;
5306
5307
  if ("children" in u && u.children) {
5307
5308
  const y = (
5308
5309
  /** @type {UnistParent} */
5309
5310
  u
5310
5311
  );
5311
- if (y.children && h[0] !== Pu)
5312
+ if (y.children && h[0] !== vu)
5312
5313
  for (x = (r ? y.children.length : -1) + l, C = f.concat(y); x > -1 && x < y.children.length; ) {
5313
5314
  const A = y.children[x];
5314
5315
  if (d = a(A, x, C)(), d[0] === On)
@@ -5320,8 +5321,8 @@ function Hr(e, t, n, r) {
5320
5321
  }
5321
5322
  }
5322
5323
  }
5323
- function vu(e) {
5324
- return Array.isArray(e) ? e : typeof e == "number" ? [Tu, e] : e == null ? jr : [e];
5324
+ function zu(e) {
5325
+ return Array.isArray(e) ? e : typeof e == "number" ? [Pu, e] : e == null ? jr : [e];
5325
5326
  }
5326
5327
  function nt(e, t, n, r) {
5327
5328
  let i, o, l;
@@ -5331,11 +5332,11 @@ function nt(e, t, n, r) {
5331
5332
  return l(u, c, f);
5332
5333
  }
5333
5334
  }
5334
- const Mn = {}.hasOwnProperty, zu = {};
5335
- function Du(e, t) {
5336
- const n = t || zu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...mu, ...n.handlers }, a = {
5335
+ const Mn = {}.hasOwnProperty, Du = {};
5336
+ function Lu(e, t) {
5337
+ const n = t || Du, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...gu, ...n.handlers }, a = {
5337
5338
  all: s,
5338
- applyData: Fu,
5339
+ applyData: _u,
5339
5340
  definitionById: r,
5340
5341
  footnoteById: i,
5341
5342
  footnoteCounts: o,
@@ -5343,8 +5344,8 @@ function Du(e, t) {
5343
5344
  handlers: l,
5344
5345
  one: u,
5345
5346
  options: n,
5346
- patch: Lu,
5347
- wrap: Ru
5347
+ patch: Fu,
5348
+ wrap: Ou
5348
5349
  };
5349
5350
  return nt(e, function(f) {
5350
5351
  if (f.type === "definition" || f.type === "footnoteDefinition") {
@@ -5363,7 +5364,7 @@ function Du(e, t) {
5363
5364
  }
5364
5365
  return on(f);
5365
5366
  }
5366
- return (a.options.unknownHandler || _u)(a, f, c);
5367
+ return (a.options.unknownHandler || Ru)(a, f, c);
5367
5368
  }
5368
5369
  function s(f) {
5369
5370
  const c = [];
@@ -5384,10 +5385,10 @@ function Du(e, t) {
5384
5385
  return c;
5385
5386
  }
5386
5387
  }
5387
- function Lu(e, t) {
5388
- e.position && (t.position = xl(e));
5389
- }
5390
5388
  function Fu(e, t) {
5389
+ e.position && (t.position = bl(e));
5390
+ }
5391
+ function _u(e, t) {
5391
5392
  let n = t;
5392
5393
  if (e && e.data) {
5393
5394
  const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
@@ -5402,7 +5403,7 @@ function Fu(e, t) {
5402
5403
  }
5403
5404
  return n;
5404
5405
  }
5405
- function _u(e, t) {
5406
+ function Ru(e, t) {
5406
5407
  const n = t.data || {}, r = "value" in t && !(Mn.call(n, "hProperties") || Mn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
5407
5408
  type: "element",
5408
5409
  tagName: "div",
@@ -5411,7 +5412,7 @@ function _u(e, t) {
5411
5412
  };
5412
5413
  return e.patch(t, r), e.applyData(t, r);
5413
5414
  }
5414
- function Ru(e, t) {
5415
+ function Ou(e, t) {
5415
5416
  const n = [];
5416
5417
  let r = -1;
5417
5418
  for (t && n.push({ type: "text", value: `
@@ -5428,11 +5429,11 @@ function Bt(e) {
5428
5429
  return e.slice(t);
5429
5430
  }
5430
5431
  function jt(e, t) {
5431
- const n = Du(e, t), r = n.one(e, void 0), i = wu(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5432
+ const n = Lu(e, t), r = n.one(e, void 0), i = Su(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
5432
5433
  return i && o.children.push({ type: "text", value: `
5433
5434
  ` }, i), o;
5434
5435
  }
5435
- function Ou(e, t) {
5436
+ function Mu(e, t) {
5436
5437
  return e && "run" in e ? async function(n, r) {
5437
5438
  const i = (
5438
5439
  /** @type {HastRoot} */
@@ -5476,7 +5477,7 @@ var nn = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
5476
5477
  return Vt(t, n).value;
5477
5478
  } else return;
5478
5479
  return t[n];
5479
- }, Mu = function e() {
5480
+ }, Nu = function e() {
5480
5481
  var t, n, r, i, o, l, a = arguments[0], u = 1, s = arguments.length, f = !1;
5481
5482
  for (typeof a == "boolean" && (f = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < s; ++u)
5482
5483
  if (t = arguments[u], t != null)
@@ -5484,14 +5485,14 @@ var nn = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
5484
5485
  r = Yt(a, n), i = Yt(t, n), a !== i && (f && i && (qt(i) || (o = $t(i))) ? (o ? (o = !1, l = r && $t(r) ? r : []) : l = r && qt(r) ? r : {}, Wt(a, { name: n, newValue: e(f, l, i) })) : typeof i < "u" && Wt(a, { name: n, newValue: i }));
5485
5486
  return a;
5486
5487
  };
5487
- const kn = /* @__PURE__ */ ar(Mu);
5488
+ const kn = /* @__PURE__ */ ar(Nu);
5488
5489
  function Nn(e) {
5489
5490
  if (typeof e != "object" || e === null)
5490
5491
  return !1;
5491
5492
  const t = Object.getPrototypeOf(e);
5492
5493
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5493
5494
  }
5494
- function Nu() {
5495
+ function Bu() {
5495
5496
  const e = [], t = { run: n, use: r };
5496
5497
  return t;
5497
5498
  function n(...i) {
@@ -5509,7 +5510,7 @@ function Nu() {
5509
5510
  }
5510
5511
  for (; ++c < i.length; )
5511
5512
  (s[c] === null || s[c] === void 0) && (s[c] = i[c]);
5512
- i = s, f ? Bu(f, a)(...s) : l(null, ...s);
5513
+ i = s, f ? ju(f, a)(...s) : l(null, ...s);
5513
5514
  }
5514
5515
  }
5515
5516
  function r(i) {
@@ -5520,7 +5521,7 @@ function Nu() {
5520
5521
  return e.push(i), t;
5521
5522
  }
5522
5523
  }
5523
- function Bu(e, t) {
5524
+ function ju(e, t) {
5524
5525
  let n;
5525
5526
  return r;
5526
5527
  function r(...l) {
@@ -5547,8 +5548,8 @@ function Bu(e, t) {
5547
5548
  i(null, l);
5548
5549
  }
5549
5550
  }
5550
- const ce = { basename: ju, dirname: Hu, extname: Uu, join: Vu, sep: "/" };
5551
- function ju(e, t) {
5551
+ const ce = { basename: Hu, dirname: Uu, extname: Vu, join: $u, sep: "/" };
5552
+ function Hu(e, t) {
5552
5553
  if (t !== void 0 && typeof t != "string")
5553
5554
  throw new TypeError('"ext" argument must be a string');
5554
5555
  Xe(e);
@@ -5576,7 +5577,7 @@ function ju(e, t) {
5576
5577
  l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
5577
5578
  return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
5578
5579
  }
5579
- function Hu(e) {
5580
+ function Uu(e) {
5580
5581
  if (Xe(e), e.length === 0)
5581
5582
  return ".";
5582
5583
  let t = -1, n = e.length, r;
@@ -5589,7 +5590,7 @@ function Hu(e) {
5589
5590
  } else r || (r = !0);
5590
5591
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
5591
5592
  }
5592
- function Uu(e) {
5593
+ function Vu(e) {
5593
5594
  Xe(e);
5594
5595
  let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
5595
5596
  for (; t--; ) {
@@ -5607,19 +5608,19 @@ function Uu(e) {
5607
5608
  o === 0 || // The (right-most) trimmed path component is exactly `..`.
5608
5609
  o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
5609
5610
  }
5610
- function Vu(...e) {
5611
+ function $u(...e) {
5611
5612
  let t = -1, n;
5612
5613
  for (; ++t < e.length; )
5613
5614
  Xe(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
5614
- return n === void 0 ? "." : $u(n);
5615
+ return n === void 0 ? "." : qu(n);
5615
5616
  }
5616
- function $u(e) {
5617
+ function qu(e) {
5617
5618
  Xe(e);
5618
5619
  const t = e.codePointAt(0) === 47;
5619
- let n = qu(e, !t);
5620
+ let n = Wu(e, !t);
5620
5621
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
5621
5622
  }
5622
- function qu(e, t) {
5623
+ function Wu(e, t) {
5623
5624
  let n = "", r = 0, i = -1, o = 0, l = -1, a, u;
5624
5625
  for (; ++l <= e.length; ) {
5625
5626
  if (l < e.length)
@@ -5656,15 +5657,15 @@ function Xe(e) {
5656
5657
  "Path must be a string. Received " + JSON.stringify(e)
5657
5658
  );
5658
5659
  }
5659
- const Wu = { cwd: Yu };
5660
- function Yu() {
5660
+ const Yu = { cwd: Xu };
5661
+ function Xu() {
5661
5662
  return "/";
5662
5663
  }
5663
5664
  function Bn(e) {
5664
5665
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
5665
5666
  e.auth === void 0);
5666
5667
  }
5667
- function Xu(e) {
5668
+ function Qu(e) {
5668
5669
  if (typeof e == "string")
5669
5670
  e = new URL(e);
5670
5671
  else if (!Bn(e)) {
@@ -5677,9 +5678,9 @@ function Xu(e) {
5677
5678
  const t = new TypeError("The URL must be of scheme file");
5678
5679
  throw t.code = "ERR_INVALID_URL_SCHEME", t;
5679
5680
  }
5680
- return Qu(e);
5681
+ return Gu(e);
5681
5682
  }
5682
- function Qu(e) {
5683
+ function Gu(e) {
5683
5684
  if (e.hostname !== "") {
5684
5685
  const r = new TypeError(
5685
5686
  'File URL host must be "localhost" or empty on darwin'
@@ -5736,7 +5737,7 @@ class Vr {
5736
5737
  */
5737
5738
  constructor(t) {
5738
5739
  let n;
5739
- t ? Bn(t) ? n = { path: t } : typeof t == "string" || Gu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Wu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5740
+ t ? Bn(t) ? n = { path: t } : typeof t == "string" || Ku(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Yu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5740
5741
  let r = -1;
5741
5742
  for (; ++r < xn.length; ) {
5742
5743
  const o = xn[r];
@@ -5844,7 +5845,7 @@ class Vr {
5844
5845
  * Nothing.
5845
5846
  */
5846
5847
  set path(t) {
5847
- Bn(t) && (t = Xu(t)), wn(t, "path"), this.path !== t && this.history.push(t);
5848
+ Bn(t) && (t = Qu(t)), wn(t, "path"), this.path !== t && this.history.push(t);
5848
5849
  }
5849
5850
  /**
5850
5851
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -6095,10 +6096,10 @@ function Xt(e, t) {
6095
6096
  if (!e)
6096
6097
  throw new Error("Setting `" + t + "` requires `path` to be set too");
6097
6098
  }
6098
- function Gu(e) {
6099
+ function Ku(e) {
6099
6100
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6100
6101
  }
6101
- const Ku = (
6102
+ const Ju = (
6102
6103
  /**
6103
6104
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
6104
6105
  */
@@ -6119,13 +6120,13 @@ const Ku = (
6119
6120
  };
6120
6121
  return Object.setPrototypeOf(o, r), o;
6121
6122
  }
6122
- ), Ju = {}.hasOwnProperty;
6123
- class tt extends Ku {
6123
+ ), Zu = {}.hasOwnProperty;
6124
+ class tt extends Ju {
6124
6125
  /**
6125
6126
  * Create a processor.
6126
6127
  */
6127
6128
  constructor() {
6128
- 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 = Nu();
6129
+ 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 = Bu();
6129
6130
  }
6130
6131
  /**
6131
6132
  * Copy a processor.
@@ -6210,7 +6211,7 @@ class tt extends Ku {
6210
6211
  * the entire dataset when getting without key.
6211
6212
  */
6212
6213
  data(t, n) {
6213
- return typeof t == "string" ? arguments.length === 2 ? (En("data", this.frozen), this.namespace[t] = n, this) : Ju.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (En("data", this.frozen), this.namespace = t, this) : this.namespace;
6214
+ return typeof t == "string" ? arguments.length === 2 ? (En("data", this.frozen), this.namespace[t] = n, this) : Zu.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (En("data", this.frozen), this.namespace = t, this) : this.namespace;
6214
6215
  }
6215
6216
  /**
6216
6217
  * Freeze a processor.
@@ -6325,7 +6326,7 @@ class tt extends Ku {
6325
6326
  /** @type {unknown} */
6326
6327
  c
6327
6328
  ), d = r.stringify(h, p);
6328
- ns(d) ? p.value = d : p.result = d, s(
6329
+ ts(d) ? p.value = d : p.result = d, s(
6329
6330
  f,
6330
6331
  /** @type {VFileWithOutput<CompileResult>} */
6331
6332
  p
@@ -6601,7 +6602,7 @@ class tt extends Ku {
6601
6602
  }
6602
6603
  }
6603
6604
  }
6604
- const Zu = new tt().freeze();
6605
+ const es = new tt().freeze();
6605
6606
  function Sn(e, t) {
6606
6607
  if (typeof t != "function")
6607
6608
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -6627,18 +6628,18 @@ function Gt(e, t, n) {
6627
6628
  );
6628
6629
  }
6629
6630
  function Je(e) {
6630
- return es(e) ? e : new Vr(e);
6631
- }
6632
- function es(e) {
6633
- return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6631
+ return ns(e) ? e : new Vr(e);
6634
6632
  }
6635
6633
  function ns(e) {
6636
- return typeof e == "string" || ts(e);
6634
+ return !!(e && typeof e == "object" && "message" in e && "messages" in e);
6637
6635
  }
6638
6636
  function ts(e) {
6637
+ return typeof e == "string" || rs(e);
6638
+ }
6639
+ function rs(e) {
6639
6640
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
6640
6641
  }
6641
- const rs = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Kt = [], Jt = { allowDangerousHtml: !0 }, is = /^(https?|ircs?|mailto|xmpp)$/i, ls = [
6642
+ const is = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Kt = [], Jt = { allowDangerousHtml: !0 }, ls = /^(https?|ircs?|mailto|xmpp)$/i, os = [
6642
6643
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
6643
6644
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
6644
6645
  {
@@ -6672,27 +6673,27 @@ const rs = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
6672
6673
  { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
6673
6674
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
6674
6675
  ];
6675
- function os(e) {
6676
- const t = as(e), n = us(e);
6677
- return ss(t.runSync(t.parse(n), n), e);
6678
- }
6679
6676
  function as(e) {
6680
- const t = e.rehypePlugins || Kt, n = e.remarkPlugins || Kt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Jt } : Jt;
6681
- return Zu().use(Ua).use(n).use(Ou, r).use(t);
6677
+ const t = us(e), n = ss(e);
6678
+ return cs(t.runSync(t.parse(n), n), e);
6682
6679
  }
6683
6680
  function us(e) {
6681
+ const t = e.rehypePlugins || Kt, n = e.remarkPlugins || Kt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Jt } : Jt;
6682
+ return es().use(Va).use(n).use(Mu, r).use(t);
6683
+ }
6684
+ function ss(e) {
6684
6685
  const t = e.children || "", n = new Vr();
6685
6686
  return typeof t == "string" && (n.value = t), n;
6686
6687
  }
6687
- function ss(e, t) {
6688
- const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform || cs;
6689
- for (const f of ls)
6690
- Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + rs + f.id, void 0);
6691
- return nt(e, s), El(e, {
6688
+ function cs(e, t) {
6689
+ const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform || fs;
6690
+ for (const f of os)
6691
+ Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + is + f.id, void 0);
6692
+ return nt(e, s), Il(e, {
6692
6693
  Fragment: Ei,
6693
6694
  components: i,
6694
6695
  ignoreInvalidStyle: !0,
6695
- jsx: je,
6696
+ jsx: De,
6696
6697
  jsxs: Ci,
6697
6698
  passKeys: !0,
6698
6699
  passNode: !0
@@ -6715,13 +6716,13 @@ function ss(e, t) {
6715
6716
  }
6716
6717
  }
6717
6718
  }
6718
- function cs(e) {
6719
+ function fs(e) {
6719
6720
  const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
6720
6721
  return (
6721
6722
  // If there is no protocol, it’s relative.
6722
6723
  t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
6723
6724
  i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
6724
- is.test(e.slice(0, t)) ? e : ""
6725
+ ls.test(e.slice(0, t)) ? e : ""
6725
6726
  );
6726
6727
  }
6727
6728
  function Zt(e, t) {
@@ -6733,13 +6734,13 @@ function Zt(e, t) {
6733
6734
  r++, i = n.indexOf(t, i + t.length);
6734
6735
  return r;
6735
6736
  }
6736
- function fs(e) {
6737
+ function hs(e) {
6737
6738
  if (typeof e != "string")
6738
6739
  throw new TypeError("Expected a string");
6739
6740
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
6740
6741
  }
6741
6742
  function $r(e, t, n) {
6742
- const i = hn((n || {}).ignore || []), o = hs(t);
6743
+ const i = hn((n || {}).ignore || []), o = ps(t);
6743
6744
  let l = -1;
6744
6745
  for (; ++l < o.length; )
6745
6746
  Hr(e, "text", a);
@@ -6782,7 +6783,7 @@ function $r(e, t, n) {
6782
6783
  return y ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(C, 1, ...A)) : A = [s], C + A.length;
6783
6784
  }
6784
6785
  }
6785
- function hs(e) {
6786
+ function ps(e) {
6786
6787
  const t = [];
6787
6788
  if (!Array.isArray(e))
6788
6789
  throw new TypeError("Expected find and replace tuple or list of tuples");
@@ -6790,37 +6791,37 @@ function hs(e) {
6790
6791
  let r = -1;
6791
6792
  for (; ++r < n.length; ) {
6792
6793
  const i = n[r];
6793
- t.push([ps(i[0]), ms(i[1])]);
6794
+ t.push([ms(i[0]), gs(i[1])]);
6794
6795
  }
6795
6796
  return t;
6796
6797
  }
6797
- function ps(e) {
6798
- return typeof e == "string" ? new RegExp(fs(e), "g") : e;
6799
- }
6800
6798
  function ms(e) {
6799
+ return typeof e == "string" ? new RegExp(hs(e), "g") : e;
6800
+ }
6801
+ function gs(e) {
6801
6802
  return typeof e == "function" ? e : function() {
6802
6803
  return e;
6803
6804
  };
6804
6805
  }
6805
6806
  const In = "phrasing", An = ["autolink", "link", "image", "label"];
6806
- function gs() {
6807
+ function ds() {
6807
6808
  return {
6808
- transforms: [Ss],
6809
+ transforms: [Cs],
6809
6810
  enter: {
6810
- literalAutolink: ys,
6811
+ literalAutolink: ks,
6811
6812
  literalAutolinkEmail: Tn,
6812
6813
  literalAutolinkHttp: Tn,
6813
6814
  literalAutolinkWww: Tn
6814
6815
  },
6815
6816
  exit: {
6816
- literalAutolink: ws,
6817
- literalAutolinkEmail: bs,
6818
- literalAutolinkHttp: ks,
6819
- literalAutolinkWww: xs
6817
+ literalAutolink: Ss,
6818
+ literalAutolinkEmail: ws,
6819
+ literalAutolinkHttp: xs,
6820
+ literalAutolinkWww: bs
6820
6821
  }
6821
6822
  };
6822
6823
  }
6823
- function ds() {
6824
+ function ys() {
6824
6825
  return {
6825
6826
  unsafe: [
6826
6827
  {
@@ -6847,41 +6848,41 @@ function ds() {
6847
6848
  ]
6848
6849
  };
6849
6850
  }
6850
- function ys(e) {
6851
+ function ks(e) {
6851
6852
  this.enter({ type: "link", title: null, url: "", children: [] }, e);
6852
6853
  }
6853
6854
  function Tn(e) {
6854
6855
  this.config.enter.autolinkProtocol.call(this, e);
6855
6856
  }
6856
- function ks(e) {
6857
+ function xs(e) {
6857
6858
  this.config.exit.autolinkProtocol.call(this, e);
6858
6859
  }
6859
- function xs(e) {
6860
+ function bs(e) {
6860
6861
  this.config.exit.data.call(this, e);
6861
6862
  const t = this.stack[this.stack.length - 1];
6862
6863
  t.type, t.url = "http://" + this.sliceSerialize(e);
6863
6864
  }
6864
- function bs(e) {
6865
+ function ws(e) {
6865
6866
  this.config.exit.autolinkEmail.call(this, e);
6866
6867
  }
6867
- function ws(e) {
6868
+ function Ss(e) {
6868
6869
  this.exit(e);
6869
6870
  }
6870
- function Ss(e) {
6871
+ function Cs(e) {
6871
6872
  $r(
6872
6873
  e,
6873
6874
  [
6874
- [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Cs],
6875
- [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Es]
6875
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Es],
6876
+ [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Is]
6876
6877
  ],
6877
6878
  { ignore: ["link", "linkReference"] }
6878
6879
  );
6879
6880
  }
6880
- function Cs(e, t, n, r, i) {
6881
+ function Es(e, t, n, r, i) {
6881
6882
  let o = "";
6882
- if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Is(n)))
6883
+ if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !As(n)))
6883
6884
  return !1;
6884
- const l = As(n + r);
6885
+ const l = Ts(n + r);
6885
6886
  if (!l[0]) return !1;
6886
6887
  const a = {
6887
6888
  type: "link",
@@ -6891,7 +6892,7 @@ function Cs(e, t, n, r, i) {
6891
6892
  };
6892
6893
  return l[1] ? [a, { type: "text", value: l[1] }] : a;
6893
6894
  }
6894
- function Es(e, t, n, r) {
6895
+ function Is(e, t, n, r) {
6895
6896
  return (
6896
6897
  // Not an expected previous character.
6897
6898
  !qr(r, !0) || // Label ends in not allowed character.
@@ -6903,11 +6904,11 @@ function Es(e, t, n, r) {
6903
6904
  }
6904
6905
  );
6905
6906
  }
6906
- function Is(e) {
6907
+ function As(e) {
6907
6908
  const t = e.split(".");
6908
6909
  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])));
6909
6910
  }
6910
- function As(e) {
6911
+ function Ts(e) {
6911
6912
  const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
6912
6913
  if (!t)
6913
6914
  return [e, void 0];
@@ -6924,41 +6925,41 @@ function qr(e, t) {
6924
6925
  return (e.index === 0 || Ee(n) || sn(n)) && // If it’s an email, the previous character should not be a slash.
6925
6926
  (!t || n !== 47);
6926
6927
  }
6927
- Wr.peek = Rs;
6928
- function Ts() {
6928
+ Wr.peek = Os;
6929
+ function Ps() {
6929
6930
  this.buffer();
6930
6931
  }
6931
- function Ps(e) {
6932
+ function vs(e) {
6932
6933
  this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
6933
6934
  }
6934
- function vs() {
6935
+ function zs() {
6935
6936
  this.buffer();
6936
6937
  }
6937
- function zs(e) {
6938
+ function Ds(e) {
6938
6939
  this.enter(
6939
6940
  { type: "footnoteDefinition", identifier: "", label: "", children: [] },
6940
6941
  e
6941
6942
  );
6942
6943
  }
6943
- function Ds(e) {
6944
+ function Ls(e) {
6944
6945
  const t = this.resume(), n = this.stack[this.stack.length - 1];
6945
6946
  n.type, n.identifier = se(
6946
6947
  this.sliceSerialize(e)
6947
6948
  ).toLowerCase(), n.label = t;
6948
6949
  }
6949
- function Ls(e) {
6950
+ function Fs(e) {
6950
6951
  this.exit(e);
6951
6952
  }
6952
- function Fs(e) {
6953
+ function _s(e) {
6953
6954
  const t = this.resume(), n = this.stack[this.stack.length - 1];
6954
6955
  n.type, n.identifier = se(
6955
6956
  this.sliceSerialize(e)
6956
6957
  ).toLowerCase(), n.label = t;
6957
6958
  }
6958
- function _s(e) {
6959
+ function Rs(e) {
6959
6960
  this.exit(e);
6960
6961
  }
6961
- function Rs() {
6962
+ function Os() {
6962
6963
  return "[";
6963
6964
  }
6964
6965
  function Wr(e, t, n, r) {
@@ -6969,23 +6970,23 @@ function Wr(e, t, n, r) {
6969
6970
  n.safe(n.associationId(e), { after: "]", before: o })
6970
6971
  ), a(), l(), o += i.move("]"), o;
6971
6972
  }
6972
- function Os() {
6973
+ function Ms() {
6973
6974
  return {
6974
6975
  enter: {
6975
- gfmFootnoteCallString: Ts,
6976
- gfmFootnoteCall: Ps,
6977
- gfmFootnoteDefinitionLabelString: vs,
6978
- gfmFootnoteDefinition: zs
6976
+ gfmFootnoteCallString: Ps,
6977
+ gfmFootnoteCall: vs,
6978
+ gfmFootnoteDefinitionLabelString: zs,
6979
+ gfmFootnoteDefinition: Ds
6979
6980
  },
6980
6981
  exit: {
6981
- gfmFootnoteCallString: Ds,
6982
- gfmFootnoteCall: Ls,
6983
- gfmFootnoteDefinitionLabelString: Fs,
6984
- gfmFootnoteDefinition: _s
6982
+ gfmFootnoteCallString: Ls,
6983
+ gfmFootnoteCall: Fs,
6984
+ gfmFootnoteDefinitionLabelString: _s,
6985
+ gfmFootnoteDefinition: Rs
6985
6986
  }
6986
6987
  };
6987
6988
  }
6988
- function Ms(e) {
6989
+ function Ns(e) {
6989
6990
  let t = !1;
6990
6991
  return e && e.firstLineBlank && (t = !0), {
6991
6992
  handlers: { footnoteDefinition: n, footnoteReference: Wr },
@@ -7002,18 +7003,18 @@ function Ms(e) {
7002
7003
  (t ? `
7003
7004
  ` : " ") + o.indentLines(
7004
7005
  o.containerFlow(r, a.current()),
7005
- t ? Yr : Ns
7006
+ t ? Yr : Bs
7006
7007
  )
7007
7008
  )), s(), u;
7008
7009
  }
7009
7010
  }
7010
- function Ns(e, t, n) {
7011
+ function Bs(e, t, n) {
7011
7012
  return t === 0 ? e : Yr(e, t, n);
7012
7013
  }
7013
7014
  function Yr(e, t, n) {
7014
7015
  return (n ? "" : " ") + e;
7015
7016
  }
7016
- const Bs = [
7017
+ const js = [
7017
7018
  "autolink",
7018
7019
  "destinationLiteral",
7019
7020
  "destinationRaw",
@@ -7021,30 +7022,30 @@ const Bs = [
7021
7022
  "titleQuote",
7022
7023
  "titleApostrophe"
7023
7024
  ];
7024
- Xr.peek = $s;
7025
- function js() {
7025
+ Xr.peek = qs;
7026
+ function Hs() {
7026
7027
  return {
7027
7028
  canContainEols: ["delete"],
7028
- enter: { strikethrough: Us },
7029
- exit: { strikethrough: Vs }
7029
+ enter: { strikethrough: Vs },
7030
+ exit: { strikethrough: $s }
7030
7031
  };
7031
7032
  }
7032
- function Hs() {
7033
+ function Us() {
7033
7034
  return {
7034
7035
  unsafe: [
7035
7036
  {
7036
7037
  character: "~",
7037
7038
  inConstruct: "phrasing",
7038
- notInConstruct: Bs
7039
+ notInConstruct: js
7039
7040
  }
7040
7041
  ],
7041
7042
  handlers: { delete: Xr }
7042
7043
  };
7043
7044
  }
7044
- function Us(e) {
7045
+ function Vs(e) {
7045
7046
  this.enter({ type: "delete", children: [] }, e);
7046
7047
  }
7047
- function Vs(e) {
7048
+ function $s(e) {
7048
7049
  this.exit(e);
7049
7050
  }
7050
7051
  function Xr(e, t, n, r) {
@@ -7056,20 +7057,20 @@ function Xr(e, t, n, r) {
7056
7057
  after: "~"
7057
7058
  }), l += i.move("~~"), o(), l;
7058
7059
  }
7059
- function $s() {
7060
+ function qs() {
7060
7061
  return "~";
7061
7062
  }
7062
- function qs(e) {
7063
+ function Ws(e) {
7063
7064
  return e.length;
7064
7065
  }
7065
- function Ws(e, t) {
7066
- const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || qs, o = [], l = [], a = [], u = [];
7066
+ function Ys(e, t) {
7067
+ const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Ws, o = [], l = [], a = [], u = [];
7067
7068
  let s = 0, f = -1;
7068
7069
  for (; ++f < e.length; ) {
7069
7070
  const x = [], C = [];
7070
7071
  let y = -1;
7071
7072
  for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
7072
- const A = Ys(e[f][y]);
7073
+ const A = Xs(e[f][y]);
7073
7074
  if (n.alignDelimiters !== !1) {
7074
7075
  const E = i(A);
7075
7076
  C[y] = E, (u[y] === void 0 || E > u[y]) && (u[y] = E);
@@ -7124,26 +7125,26 @@ function Ws(e, t) {
7124
7125
  return d.join(`
7125
7126
  `);
7126
7127
  }
7127
- function Ys(e) {
7128
+ function Xs(e) {
7128
7129
  return e == null ? "" : String(e);
7129
7130
  }
7130
7131
  function er(e) {
7131
7132
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
7132
7133
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
7133
7134
  }
7134
- function Xs(e, t, n, r) {
7135
+ function Qs(e, t, n, r) {
7135
7136
  const i = n.enter("blockquote"), o = n.createTracker(r);
7136
7137
  o.move("> "), o.shift(2);
7137
7138
  const l = n.indentLines(
7138
7139
  n.containerFlow(e, o.current()),
7139
- Qs
7140
+ Gs
7140
7141
  );
7141
7142
  return i(), l;
7142
7143
  }
7143
- function Qs(e, t, n) {
7144
+ function Gs(e, t, n) {
7144
7145
  return ">" + (n ? "" : " ") + e;
7145
7146
  }
7146
- function Gs(e, t) {
7147
+ function Ks(e, t) {
7147
7148
  return nr(e, t.inConstruct, !0) && !nr(e, t.notInConstruct, !1);
7148
7149
  }
7149
7150
  function nr(e, t, n) {
@@ -7159,12 +7160,12 @@ function tr(e, t, n, r) {
7159
7160
  let i = -1;
7160
7161
  for (; ++i < n.unsafe.length; )
7161
7162
  if (n.unsafe[i].character === `
7162
- ` && Gs(n.stack, n.unsafe[i]))
7163
+ ` && Ks(n.stack, n.unsafe[i]))
7163
7164
  return /[ \t]/.test(r.before) ? "" : " ";
7164
7165
  return `\\
7165
7166
  `;
7166
7167
  }
7167
- function Ks(e, t) {
7168
+ function Js(e, t) {
7168
7169
  const n = String(e);
7169
7170
  let r = n.indexOf(t), i = r, o = 0, l = 0;
7170
7171
  if (typeof t != "string")
@@ -7173,13 +7174,13 @@ function Ks(e, t) {
7173
7174
  r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
7174
7175
  return l;
7175
7176
  }
7176
- function Js(e, t) {
7177
+ function Zs(e, t) {
7177
7178
  return !!(t.options.fences === !1 && e.value && // If there’s no info…
7178
7179
  !e.lang && // And there’s a non-whitespace character…
7179
7180
  /[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
7180
7181
  !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
7181
7182
  }
7182
- function Zs(e) {
7183
+ function ec(e) {
7183
7184
  const t = e.options.fence || "`";
7184
7185
  if (t !== "`" && t !== "~")
7185
7186
  throw new Error(
@@ -7187,13 +7188,13 @@ function Zs(e) {
7187
7188
  );
7188
7189
  return t;
7189
7190
  }
7190
- function ec(e, t, n, r) {
7191
- const i = Zs(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
7192
- if (Js(e, n)) {
7193
- const c = n.enter("codeIndented"), p = n.indentLines(o, nc);
7191
+ function nc(e, t, n, r) {
7192
+ const i = ec(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
7193
+ if (Zs(e, n)) {
7194
+ const c = n.enter("codeIndented"), p = n.indentLines(o, tc);
7194
7195
  return c(), p;
7195
7196
  }
7196
- const a = n.createTracker(r), u = i.repeat(Math.max(Ks(o, i) + 1, 3)), s = n.enter("codeFenced");
7197
+ const a = n.createTracker(r), u = i.repeat(Math.max(Js(o, i) + 1, 3)), s = n.enter("codeFenced");
7197
7198
  let f = a.move(u);
7198
7199
  if (e.lang) {
7199
7200
  const c = n.enter(`codeFencedLang${l}`);
@@ -7222,7 +7223,7 @@ function ec(e, t, n, r) {
7222
7223
  `), o && (f += a.move(o + `
7223
7224
  `)), f += a.move(u), s(), f;
7224
7225
  }
7225
- function nc(e, t, n) {
7226
+ function tc(e, t, n) {
7226
7227
  return (n ? "" : " ") + e;
7227
7228
  }
7228
7229
  function rt(e) {
@@ -7233,7 +7234,7 @@ function rt(e) {
7233
7234
  );
7234
7235
  return t;
7235
7236
  }
7236
- function tc(e, t, n, r) {
7237
+ function rc(e, t, n, r) {
7237
7238
  const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
7238
7239
  let a = n.enter("label");
7239
7240
  const u = n.createTracker(r);
@@ -7263,7 +7264,7 @@ function tc(e, t, n, r) {
7263
7264
  })
7264
7265
  ), s += u.move(i), a()), l(), s;
7265
7266
  }
7266
- function rc(e) {
7267
+ function ic(e) {
7267
7268
  const t = e.options.emphasis || "*";
7268
7269
  if (t !== "*" && t !== "_")
7269
7270
  throw new Error(
@@ -7275,7 +7276,7 @@ function qe(e) {
7275
7276
  return "&#x" + e.toString(16).toUpperCase() + ";";
7276
7277
  }
7277
7278
  function an(e, t, n) {
7278
- const r = Le(e), i = Le(t);
7279
+ const r = Fe(e), i = Fe(t);
7279
7280
  return r === void 0 ? i === void 0 ? (
7280
7281
  // Letter inside:
7281
7282
  // we have to encode *both* letters for `_` as it is looser.
@@ -7307,9 +7308,9 @@ function an(e, t, n) {
7307
7308
  { inside: !1, outside: !1 }
7308
7309
  );
7309
7310
  }
7310
- Qr.peek = ic;
7311
+ Qr.peek = lc;
7311
7312
  function Qr(e, t, n, r) {
7312
- const i = rc(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
7313
+ const i = ic(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
7313
7314
  let u = l.move(
7314
7315
  n.containerPhrasing(e, {
7315
7316
  after: i,
@@ -7331,19 +7332,19 @@ function Qr(e, t, n, r) {
7331
7332
  before: f.outside
7332
7333
  }, a + u + h;
7333
7334
  }
7334
- function ic(e, t, n) {
7335
+ function lc(e, t, n) {
7335
7336
  return n.options.emphasis || "*";
7336
7337
  }
7337
- function lc(e, t) {
7338
+ function oc(e, t) {
7338
7339
  let n = !1;
7339
7340
  return nt(e, function(r) {
7340
7341
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
7341
7342
  return n = !0, On;
7342
7343
  }), !!((!e.depth || e.depth < 3) && Xn(e) && (t.options.setext || n));
7343
7344
  }
7344
- function oc(e, t, n, r) {
7345
+ function ac(e, t, n, r) {
7345
7346
  const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
7346
- if (lc(e, n)) {
7347
+ if (oc(e, n)) {
7347
7348
  const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
7348
7349
  ...o.current(),
7349
7350
  before: `
@@ -7370,14 +7371,14 @@ function oc(e, t, n, r) {
7370
7371
  });
7371
7372
  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;
7372
7373
  }
7373
- Gr.peek = ac;
7374
+ Gr.peek = uc;
7374
7375
  function Gr(e) {
7375
7376
  return e.value || "";
7376
7377
  }
7377
- function ac() {
7378
+ function uc() {
7378
7379
  return "<";
7379
7380
  }
7380
- Kr.peek = uc;
7381
+ Kr.peek = sc;
7381
7382
  function Kr(e, t, n, r) {
7382
7383
  const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
7383
7384
  let a = n.enter("label");
@@ -7403,10 +7404,10 @@ function Kr(e, t, n, r) {
7403
7404
  })
7404
7405
  ), s += u.move(i), a()), s += u.move(")"), l(), s;
7405
7406
  }
7406
- function uc() {
7407
+ function sc() {
7407
7408
  return "!";
7408
7409
  }
7409
- Jr.peek = sc;
7410
+ Jr.peek = cc;
7410
7411
  function Jr(e, t, n, r) {
7411
7412
  const i = e.referenceType, o = n.enter("imageReference");
7412
7413
  let l = n.enter("label");
@@ -7427,10 +7428,10 @@ function Jr(e, t, n, r) {
7427
7428
  });
7428
7429
  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;
7429
7430
  }
7430
- function sc() {
7431
+ function cc() {
7431
7432
  return "!";
7432
7433
  }
7433
- Zr.peek = cc;
7434
+ Zr.peek = fc;
7434
7435
  function Zr(e, t, n) {
7435
7436
  let r = e.value || "", i = "`", o = -1;
7436
7437
  for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
@@ -7446,7 +7447,7 @@ function Zr(e, t, n) {
7446
7447
  }
7447
7448
  return i + r + i;
7448
7449
  }
7449
- function cc() {
7450
+ function fc() {
7450
7451
  return "`";
7451
7452
  }
7452
7453
  function ei(e, t) {
@@ -7460,7 +7461,7 @@ function ei(e, t) {
7460
7461
  // references don’t work), space, or angle brackets…
7461
7462
  !/[\0- <>\u007F]/.test(e.url));
7462
7463
  }
7463
- ni.peek = fc;
7464
+ ni.peek = hc;
7464
7465
  function ni(e, t, n, r) {
7465
7466
  const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
7466
7467
  let a, u;
@@ -7502,10 +7503,10 @@ function ni(e, t, n, r) {
7502
7503
  })
7503
7504
  ), s += l.move(i), u()), s += l.move(")"), a(), s;
7504
7505
  }
7505
- function fc(e, t, n) {
7506
+ function hc(e, t, n) {
7506
7507
  return ei(e, n) ? "<" : "[";
7507
7508
  }
7508
- ti.peek = hc;
7509
+ ti.peek = pc;
7509
7510
  function ti(e, t, n, r) {
7510
7511
  const i = e.referenceType, o = n.enter("linkReference");
7511
7512
  let l = n.enter("label");
@@ -7526,7 +7527,7 @@ function ti(e, t, n, r) {
7526
7527
  });
7527
7528
  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;
7528
7529
  }
7529
- function hc() {
7530
+ function pc() {
7530
7531
  return "[";
7531
7532
  }
7532
7533
  function it(e) {
@@ -7537,7 +7538,7 @@ function it(e) {
7537
7538
  );
7538
7539
  return t;
7539
7540
  }
7540
- function pc(e) {
7541
+ function mc(e) {
7541
7542
  const t = it(e), n = e.options.bulletOther;
7542
7543
  if (!n)
7543
7544
  return t === "*" ? "-" : "*";
@@ -7551,7 +7552,7 @@ function pc(e) {
7551
7552
  );
7552
7553
  return n;
7553
7554
  }
7554
- function mc(e) {
7555
+ function gc(e) {
7555
7556
  const t = e.options.bulletOrdered || ".";
7556
7557
  if (t !== "." && t !== ")")
7557
7558
  throw new Error(
@@ -7567,10 +7568,10 @@ function ri(e) {
7567
7568
  );
7568
7569
  return t;
7569
7570
  }
7570
- function gc(e, t, n, r) {
7571
+ function dc(e, t, n, r) {
7571
7572
  const i = n.enter("list"), o = n.bulletCurrent;
7572
- let l = e.ordered ? mc(n) : it(n);
7573
- const a = e.ordered ? l === "." ? ")" : "." : pc(n);
7573
+ let l = e.ordered ? gc(n) : it(n);
7574
+ const a = e.ordered ? l === "." ? ")" : "." : mc(n);
7574
7575
  let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
7575
7576
  if (!e.ordered) {
7576
7577
  const f = e.children ? e.children[0] : void 0;
@@ -7595,7 +7596,7 @@ function gc(e, t, n, r) {
7595
7596
  const s = n.containerFlow(e, r);
7596
7597
  return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
7597
7598
  }
7598
- function dc(e) {
7599
+ function yc(e) {
7599
7600
  const t = e.options.listItemIndent || "one";
7600
7601
  if (t !== "tab" && t !== "one" && t !== "mixed")
7601
7602
  throw new Error(
@@ -7603,8 +7604,8 @@ function dc(e) {
7603
7604
  );
7604
7605
  return t;
7605
7606
  }
7606
- function yc(e, t, n, r) {
7607
- const i = dc(n);
7607
+ function kc(e, t, n, r) {
7608
+ const i = yc(n);
7608
7609
  let o = n.bulletCurrent || it(n);
7609
7610
  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);
7610
7611
  let l = o.length + 1;
@@ -7620,11 +7621,11 @@ function yc(e, t, n, r) {
7620
7621
  return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
7621
7622
  }
7622
7623
  }
7623
- function kc(e, t, n, r) {
7624
+ function xc(e, t, n, r) {
7624
7625
  const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
7625
7626
  return o(), i(), l;
7626
7627
  }
7627
- const xc = (
7628
+ const bc = (
7628
7629
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
7629
7630
  hn([
7630
7631
  "break",
@@ -7650,12 +7651,12 @@ const xc = (
7650
7651
  "textDirective"
7651
7652
  ])
7652
7653
  );
7653
- function bc(e, t, n, r) {
7654
+ function wc(e, t, n, r) {
7654
7655
  return (e.children.some(function(l) {
7655
- return xc(l);
7656
+ return bc(l);
7656
7657
  }) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
7657
7658
  }
7658
- function wc(e) {
7659
+ function Sc(e) {
7659
7660
  const t = e.options.strong || "*";
7660
7661
  if (t !== "*" && t !== "_")
7661
7662
  throw new Error(
@@ -7663,9 +7664,9 @@ function wc(e) {
7663
7664
  );
7664
7665
  return t;
7665
7666
  }
7666
- ii.peek = Sc;
7667
+ ii.peek = Cc;
7667
7668
  function ii(e, t, n, r) {
7668
- const i = wc(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
7669
+ const i = Sc(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
7669
7670
  let u = l.move(
7670
7671
  n.containerPhrasing(e, {
7671
7672
  after: i,
@@ -7687,13 +7688,13 @@ function ii(e, t, n, r) {
7687
7688
  before: f.outside
7688
7689
  }, a + u + h;
7689
7690
  }
7690
- function Sc(e, t, n) {
7691
+ function Cc(e, t, n) {
7691
7692
  return n.options.strong || "*";
7692
7693
  }
7693
- function Cc(e, t, n, r) {
7694
+ function Ec(e, t, n, r) {
7694
7695
  return n.safe(e.value, r);
7695
7696
  }
7696
- function Ec(e) {
7697
+ function Ic(e) {
7697
7698
  const t = e.options.ruleRepetition || 3;
7698
7699
  if (t < 3)
7699
7700
  throw new Error(
@@ -7701,50 +7702,50 @@ function Ec(e) {
7701
7702
  );
7702
7703
  return t;
7703
7704
  }
7704
- function Ic(e, t, n) {
7705
- const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(Ec(n));
7705
+ function Ac(e, t, n) {
7706
+ const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(Ic(n));
7706
7707
  return n.options.ruleSpaces ? r.slice(0, -1) : r;
7707
7708
  }
7708
7709
  const li = {
7709
- blockquote: Xs,
7710
+ blockquote: Qs,
7710
7711
  break: tr,
7711
- code: ec,
7712
- definition: tc,
7712
+ code: nc,
7713
+ definition: rc,
7713
7714
  emphasis: Qr,
7714
7715
  hardBreak: tr,
7715
- heading: oc,
7716
+ heading: ac,
7716
7717
  html: Gr,
7717
7718
  image: Kr,
7718
7719
  imageReference: Jr,
7719
7720
  inlineCode: Zr,
7720
7721
  link: ni,
7721
7722
  linkReference: ti,
7722
- list: gc,
7723
- listItem: yc,
7724
- paragraph: kc,
7725
- root: bc,
7723
+ list: dc,
7724
+ listItem: kc,
7725
+ paragraph: xc,
7726
+ root: wc,
7726
7727
  strong: ii,
7727
- text: Cc,
7728
- thematicBreak: Ic
7728
+ text: Ec,
7729
+ thematicBreak: Ac
7729
7730
  };
7730
- function Ac() {
7731
+ function Tc() {
7731
7732
  return {
7732
7733
  enter: {
7733
- table: Tc,
7734
+ table: Pc,
7734
7735
  tableData: rr,
7735
7736
  tableHeader: rr,
7736
- tableRow: vc
7737
+ tableRow: zc
7737
7738
  },
7738
7739
  exit: {
7739
- codeText: zc,
7740
- table: Pc,
7740
+ codeText: Dc,
7741
+ table: vc,
7741
7742
  tableData: Pn,
7742
7743
  tableHeader: Pn,
7743
7744
  tableRow: Pn
7744
7745
  }
7745
7746
  };
7746
7747
  }
7747
- function Tc(e) {
7748
+ function Pc(e) {
7748
7749
  const t = e._align;
7749
7750
  this.enter(
7750
7751
  {
@@ -7757,10 +7758,10 @@ function Tc(e) {
7757
7758
  e
7758
7759
  ), this.data.inTable = !0;
7759
7760
  }
7760
- function Pc(e) {
7761
+ function vc(e) {
7761
7762
  this.exit(e), this.data.inTable = void 0;
7762
7763
  }
7763
- function vc(e) {
7764
+ function zc(e) {
7764
7765
  this.enter({ type: "tableRow", children: [] }, e);
7765
7766
  }
7766
7767
  function Pn(e) {
@@ -7769,16 +7770,16 @@ function Pn(e) {
7769
7770
  function rr(e) {
7770
7771
  this.enter({ type: "tableCell", children: [] }, e);
7771
7772
  }
7772
- function zc(e) {
7773
+ function Dc(e) {
7773
7774
  let t = this.resume();
7774
- this.data.inTable && (t = t.replace(/\\([\\|])/g, Dc));
7775
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, Lc));
7775
7776
  const n = this.stack[this.stack.length - 1];
7776
7777
  n.type, n.value = t, this.exit(e);
7777
7778
  }
7778
- function Dc(e, t) {
7779
+ function Lc(e, t) {
7779
7780
  return t === "|" ? t : e;
7780
7781
  }
7781
- function Lc(e) {
7782
+ function Fc(e) {
7782
7783
  const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
7783
7784
  return {
7784
7785
  unsafe: [
@@ -7824,7 +7825,7 @@ function Lc(e) {
7824
7825
  return A(), y(), E;
7825
7826
  }
7826
7827
  function s(h, d) {
7827
- return Ws(h, {
7828
+ return Ys(h, {
7828
7829
  align: d,
7829
7830
  // @ts-expect-error: `markdown-table` types should support `null`.
7830
7831
  alignDelimiters: r,
@@ -7855,26 +7856,26 @@ function Lc(e) {
7855
7856
  return x.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
7856
7857
  }
7857
7858
  }
7858
- function Fc() {
7859
+ function _c() {
7859
7860
  return {
7860
7861
  exit: {
7861
7862
  taskListCheckValueChecked: ir,
7862
7863
  taskListCheckValueUnchecked: ir,
7863
- paragraph: Rc
7864
+ paragraph: Oc
7864
7865
  }
7865
7866
  };
7866
7867
  }
7867
- function _c() {
7868
+ function Rc() {
7868
7869
  return {
7869
7870
  unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
7870
- handlers: { listItem: Oc }
7871
+ handlers: { listItem: Mc }
7871
7872
  };
7872
7873
  }
7873
7874
  function ir(e) {
7874
7875
  const t = this.stack[this.stack.length - 2];
7875
7876
  t.type, t.checked = e.type === "taskListCheckValueChecked";
7876
7877
  }
7877
- function Rc(e) {
7878
+ function Oc(e) {
7878
7879
  const t = this.stack[this.stack.length - 2];
7879
7880
  if (t && t.type === "listItem" && typeof t.checked == "boolean") {
7880
7881
  const n = this.stack[this.stack.length - 1];
@@ -7895,7 +7896,7 @@ function Rc(e) {
7895
7896
  }
7896
7897
  this.exit(e);
7897
7898
  }
7898
- function Oc(e, t, n, r) {
7899
+ function Mc(e, t, n, r) {
7899
7900
  const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
7900
7901
  o && a.move(l);
7901
7902
  let u = li.listItem(e, t, n, {
@@ -7907,55 +7908,55 @@ function Oc(e, t, n, r) {
7907
7908
  return f + l;
7908
7909
  }
7909
7910
  }
7910
- function Mc() {
7911
+ function Nc() {
7911
7912
  return [
7912
- gs(),
7913
- Os(),
7914
- js(),
7915
- Ac(),
7916
- Fc()
7913
+ ds(),
7914
+ Ms(),
7915
+ Hs(),
7916
+ Tc(),
7917
+ _c()
7917
7918
  ];
7918
7919
  }
7919
- function Nc(e) {
7920
+ function Bc(e) {
7920
7921
  return {
7921
7922
  extensions: [
7922
- ds(),
7923
- Ms(e),
7924
- Hs(),
7925
- Lc(e),
7926
- _c()
7923
+ ys(),
7924
+ Ns(e),
7925
+ Us(),
7926
+ Fc(e),
7927
+ Rc()
7927
7928
  ]
7928
7929
  };
7929
7930
  }
7930
- const Bc = {
7931
- tokenize: qc,
7932
- partial: !0
7933
- }, oi = {
7931
+ const jc = {
7934
7932
  tokenize: Wc,
7935
7933
  partial: !0
7936
- }, ai = {
7934
+ }, oi = {
7937
7935
  tokenize: Yc,
7938
7936
  partial: !0
7939
- }, ui = {
7937
+ }, ai = {
7940
7938
  tokenize: Xc,
7941
7939
  partial: !0
7942
- }, jc = {
7940
+ }, ui = {
7943
7941
  tokenize: Qc,
7944
7942
  partial: !0
7943
+ }, Hc = {
7944
+ tokenize: Gc,
7945
+ partial: !0
7945
7946
  }, si = {
7946
7947
  name: "wwwAutolink",
7947
- tokenize: Vc,
7948
+ tokenize: $c,
7948
7949
  previous: fi
7949
7950
  }, ci = {
7950
7951
  name: "protocolAutolink",
7951
- tokenize: $c,
7952
+ tokenize: qc,
7952
7953
  previous: hi
7953
7954
  }, de = {
7954
7955
  name: "emailAutolink",
7955
- tokenize: Uc,
7956
+ tokenize: Vc,
7956
7957
  previous: pi
7957
7958
  }, fe = {};
7958
- function Hc() {
7959
+ function Uc() {
7959
7960
  return {
7960
7961
  text: fe
7961
7962
  };
@@ -7971,7 +7972,7 @@ fe[72] = [de, ci];
7971
7972
  fe[104] = [de, ci];
7972
7973
  fe[87] = [de, si];
7973
7974
  fe[119] = [de, si];
7974
- function Uc(e, t, n) {
7975
+ function Vc(e, t, n) {
7975
7976
  const r = this;
7976
7977
  let i, o;
7977
7978
  return l;
@@ -7982,7 +7983,7 @@ function Uc(e, t, n) {
7982
7983
  return jn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
7983
7984
  }
7984
7985
  function u(c) {
7985
- return c === 46 ? e.check(jc, f, s)(c) : c === 45 || c === 95 || G(c) ? (o = !0, e.consume(c), u) : f(c);
7986
+ return c === 46 ? e.check(Hc, f, s)(c) : c === 45 || c === 95 || G(c) ? (o = !0, e.consume(c), u) : f(c);
7986
7987
  }
7987
7988
  function s(c) {
7988
7989
  return e.consume(c), i = !0, u;
@@ -7991,17 +7992,17 @@ function Uc(e, t, n) {
7991
7992
  return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
7992
7993
  }
7993
7994
  }
7994
- function Vc(e, t, n) {
7995
+ function $c(e, t, n) {
7995
7996
  const r = this;
7996
7997
  return i;
7997
7998
  function i(l) {
7998
- return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Bc, e.attempt(oi, e.attempt(ai, o), n), n)(l));
7999
+ return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(jc, e.attempt(oi, e.attempt(ai, o), n), n)(l));
7999
8000
  }
8000
8001
  function o(l) {
8001
8002
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
8002
8003
  }
8003
8004
  }
8004
- function $c(e, t, n) {
8005
+ function qc(e, t, n) {
8005
8006
  const r = this;
8006
8007
  let i = "", o = !1;
8007
8008
  return l;
@@ -8028,7 +8029,7 @@ function $c(e, t, n) {
8028
8029
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
8029
8030
  }
8030
8031
  }
8031
- function qc(e, t, n) {
8032
+ function Wc(e, t, n) {
8032
8033
  let r = 0;
8033
8034
  return i;
8034
8035
  function i(l) {
@@ -8038,7 +8039,7 @@ function qc(e, t, n) {
8038
8039
  return l === null ? n(l) : t(l);
8039
8040
  }
8040
8041
  }
8041
- function Wc(e, t, n) {
8042
+ function Yc(e, t, n) {
8042
8043
  let r, i, o;
8043
8044
  return l;
8044
8045
  function l(s) {
@@ -8051,7 +8052,7 @@ function Wc(e, t, n) {
8051
8052
  return i || r || !o ? n(s) : t(s);
8052
8053
  }
8053
8054
  }
8054
- function Yc(e, t) {
8055
+ function Xc(e, t) {
8055
8056
  let n = 0, r = 0;
8056
8057
  return i;
8057
8058
  function i(l) {
@@ -8061,7 +8062,7 @@ function Yc(e, t) {
8061
8062
  return l === 41 && r++, e.consume(l), i;
8062
8063
  }
8063
8064
  }
8064
- function Xc(e, t, n) {
8065
+ function Qc(e, t, n) {
8065
8066
  return r;
8066
8067
  function r(a) {
8067
8068
  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) : (
@@ -8080,7 +8081,7 @@ function Xc(e, t, n) {
8080
8081
  return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
8081
8082
  }
8082
8083
  }
8083
- function Qc(e, t, n) {
8084
+ function Gc(e, t, n) {
8084
8085
  return r;
8085
8086
  function r(o) {
8086
8087
  return e.consume(o), i;
@@ -8116,37 +8117,37 @@ function lt(e) {
8116
8117
  }
8117
8118
  return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
8118
8119
  }
8119
- const Gc = {
8120
- tokenize: lf,
8120
+ const Kc = {
8121
+ tokenize: of,
8121
8122
  partial: !0
8122
8123
  };
8123
- function Kc() {
8124
+ function Jc() {
8124
8125
  return {
8125
8126
  document: {
8126
8127
  91: {
8127
8128
  name: "gfmFootnoteDefinition",
8128
- tokenize: nf,
8129
+ tokenize: tf,
8129
8130
  continuation: {
8130
- tokenize: tf
8131
+ tokenize: rf
8131
8132
  },
8132
- exit: rf
8133
+ exit: lf
8133
8134
  }
8134
8135
  },
8135
8136
  text: {
8136
8137
  91: {
8137
8138
  name: "gfmFootnoteCall",
8138
- tokenize: ef
8139
+ tokenize: nf
8139
8140
  },
8140
8141
  93: {
8141
8142
  name: "gfmPotentialFootnoteCall",
8142
8143
  add: "after",
8143
- tokenize: Jc,
8144
- resolveTo: Zc
8144
+ tokenize: Zc,
8145
+ resolveTo: ef
8145
8146
  }
8146
8147
  }
8147
8148
  };
8148
8149
  }
8149
- function Jc(e, t, n) {
8150
+ function Zc(e, t, n) {
8150
8151
  const r = this;
8151
8152
  let i = r.events.length;
8152
8153
  const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
@@ -8171,7 +8172,7 @@ function Jc(e, t, n) {
8171
8172
  return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
8172
8173
  }
8173
8174
  }
8174
- function Zc(e, t) {
8175
+ function ef(e, t) {
8175
8176
  let n = e.length;
8176
8177
  for (; n--; )
8177
8178
  if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
@@ -8221,7 +8222,7 @@ function Zc(e, t) {
8221
8222
  ];
8222
8223
  return e.splice(n, e.length - n + 1, ...a), e;
8223
8224
  }
8224
- function ef(e, t, n) {
8225
+ function nf(e, t, n) {
8225
8226
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
8226
8227
  let o = 0, l;
8227
8228
  return a;
@@ -8251,7 +8252,7 @@ function ef(e, t, n) {
8251
8252
  return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
8252
8253
  }
8253
8254
  }
8254
- function nf(e, t, n) {
8255
+ function tf(e, t, n) {
8255
8256
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
8256
8257
  let o, l = 0, a;
8257
8258
  return u;
@@ -8287,13 +8288,13 @@ function nf(e, t, n) {
8287
8288
  return t(d);
8288
8289
  }
8289
8290
  }
8290
- function tf(e, t, n) {
8291
- return e.check(Ye, t, e.attempt(Gc, t, n));
8291
+ function rf(e, t, n) {
8292
+ return e.check(Ye, t, e.attempt(Kc, t, n));
8292
8293
  }
8293
- function rf(e) {
8294
+ function lf(e) {
8294
8295
  e.exit("gfmFootnoteDefinition");
8295
8296
  }
8296
- function lf(e, t, n) {
8297
+ function of(e, t, n) {
8297
8298
  const r = this;
8298
8299
  return O(e, i, "gfmFootnoteDefinitionIndent", 5);
8299
8300
  function i(o) {
@@ -8301,7 +8302,7 @@ function lf(e, t, n) {
8301
8302
  return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
8302
8303
  }
8303
8304
  }
8304
- function of(e) {
8305
+ function af(e) {
8305
8306
  let n = (e || {}).singleTilde;
8306
8307
  const r = {
8307
8308
  name: "strikethrough",
@@ -8353,16 +8354,16 @@ function of(e) {
8353
8354
  return s === 126 && f[f.length - 1][1].type !== "characterEscape" ? u(d) : (l.enter("strikethroughSequenceTemporary"), h(d));
8354
8355
  }
8355
8356
  function h(d) {
8356
- const x = Le(s);
8357
+ const x = Fe(s);
8357
8358
  if (d === 126)
8358
8359
  return c > 1 ? u(d) : (l.consume(d), c++, h);
8359
8360
  if (c < 2 && !n) return u(d);
8360
- const C = l.exit("strikethroughSequenceTemporary"), y = Le(d);
8361
+ const C = l.exit("strikethroughSequenceTemporary"), y = Fe(d);
8361
8362
  return C._open = !y || y === 2 && !!x, C._close = !x || x === 2 && !!y, a(d);
8362
8363
  }
8363
8364
  }
8364
8365
  }
8365
- class af {
8366
+ class uf {
8366
8367
  /**
8367
8368
  * Create a new edit map.
8368
8369
  */
@@ -8378,7 +8379,7 @@ class af {
8378
8379
  * @returns {undefined}
8379
8380
  */
8380
8381
  add(t, n, r) {
8381
- uf(this, t, n, r);
8382
+ sf(this, t, n, r);
8382
8383
  }
8383
8384
  // To do: add this when moving to `micromark`.
8384
8385
  // /**
@@ -8417,7 +8418,7 @@ class af {
8417
8418
  this.map.length = 0;
8418
8419
  }
8419
8420
  }
8420
- function uf(e, t, n, r) {
8421
+ function sf(e, t, n, r) {
8421
8422
  let i = 0;
8422
8423
  if (!(n === 0 && r.length === 0)) {
8423
8424
  for (; i < e.map.length; ) {
@@ -8430,7 +8431,7 @@ function uf(e, t, n, r) {
8430
8431
  e.map.push([t, n, r]);
8431
8432
  }
8432
8433
  }
8433
- function sf(e, t) {
8434
+ function cf(e, t) {
8434
8435
  let n = !1;
8435
8436
  const r = [];
8436
8437
  for (; t < e.length; ) {
@@ -8450,18 +8451,18 @@ function sf(e, t) {
8450
8451
  }
8451
8452
  return r;
8452
8453
  }
8453
- function cf() {
8454
+ function ff() {
8454
8455
  return {
8455
8456
  flow: {
8456
8457
  null: {
8457
8458
  name: "table",
8458
- tokenize: ff,
8459
- resolveAll: hf
8459
+ tokenize: hf,
8460
+ resolveAll: pf
8460
8461
  }
8461
8462
  }
8462
8463
  };
8463
8464
  }
8464
- function ff(e, t, n) {
8465
+ function hf(e, t, n) {
8465
8466
  const r = this;
8466
8467
  let i = 0, o = 0, l;
8467
8468
  return a;
@@ -8531,9 +8532,9 @@ function ff(e, t, n) {
8531
8532
  return k === 92 || k === 124 ? (e.consume(k), $) : $(k);
8532
8533
  }
8533
8534
  }
8534
- function hf(e, t) {
8535
+ function pf(e, t) {
8535
8536
  let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
8536
- const p = new af();
8537
+ const p = new uf();
8537
8538
  for (; ++n < e.length; ) {
8538
8539
  const h = e[n], d = h[1];
8539
8540
  h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (lr(p, t, u, s, f), f = void 0, u = 0), s = {
@@ -8550,7 +8551,7 @@ function hf(e, t) {
8550
8551
  }
8551
8552
  for (u !== 0 && lr(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
8552
8553
  const h = t.events[n];
8553
- h[0] === "enter" && h[1].type === "table" && (h[1]._align = sf(t.events, n));
8554
+ h[0] === "enter" && h[1].type === "table" && (h[1]._align = cf(t.events, n));
8554
8555
  }
8555
8556
  return e;
8556
8557
  }
@@ -8588,18 +8589,18 @@ function ze(e, t) {
8588
8589
  const n = e[t], r = n[0] === "enter" ? "start" : "end";
8589
8590
  return n[1][r];
8590
8591
  }
8591
- const pf = {
8592
+ const mf = {
8592
8593
  name: "tasklistCheck",
8593
- tokenize: gf
8594
+ tokenize: df
8594
8595
  };
8595
- function mf() {
8596
+ function gf() {
8596
8597
  return {
8597
8598
  text: {
8598
- 91: pf
8599
+ 91: mf
8599
8600
  }
8600
8601
  };
8601
8602
  }
8602
- function gf(e, t, n) {
8603
+ function df(e, t, n) {
8603
8604
  const r = this;
8604
8605
  return i;
8605
8606
  function i(u) {
@@ -8618,50 +8619,59 @@ function gf(e, t, n) {
8618
8619
  }
8619
8620
  function a(u) {
8620
8621
  return v(u) ? t(u) : _(u) ? e.check({
8621
- tokenize: df
8622
+ tokenize: yf
8622
8623
  }, t, n)(u) : n(u);
8623
8624
  }
8624
8625
  }
8625
- function df(e, t, n) {
8626
+ function yf(e, t, n) {
8626
8627
  return O(e, r, "whitespace");
8627
8628
  function r(i) {
8628
8629
  return i === null ? n(i) : t(i);
8629
8630
  }
8630
8631
  }
8631
- function yf(e) {
8632
+ function kf(e) {
8632
8633
  return Sr([
8633
- Hc(),
8634
- Kc(),
8635
- of(e),
8636
- cf(),
8637
- mf()
8634
+ Uc(),
8635
+ Jc(),
8636
+ af(e),
8637
+ ff(),
8638
+ gf()
8638
8639
  ]);
8639
8640
  }
8640
- const kf = {};
8641
- function xf(e) {
8641
+ const xf = {};
8642
+ function bf(e) {
8642
8643
  const t = (
8643
8644
  /** @type {Processor<Root>} */
8644
8645
  this
8645
- ), n = e || kf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8646
- i.push(yf(n)), o.push(Mc()), l.push(Nc(n));
8646
+ ), n = e || xf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8647
+ i.push(kf(n)), o.push(Nc()), l.push(Bc(n));
8647
8648
  }
8648
- function bf(e) {
8649
- $r(e, [/\r?\n|\r/g, wf]);
8649
+ function wf(e) {
8650
+ $r(e, [/\r?\n|\r/g, Sf]);
8650
8651
  }
8651
- function wf() {
8652
+ function Sf() {
8652
8653
  return { type: "break" };
8653
8654
  }
8654
- function Sf() {
8655
+ function Cf() {
8655
8656
  return function(e) {
8656
- bf(e);
8657
+ wf(e);
8657
8658
  };
8658
8659
  }
8659
- const Cf = "_markdown_1kgcy_1", or = {
8660
- markdown: Cf
8661
- }, Ef = {
8660
+ const Ef = "_markdown_1kgcy_1", or = {
8661
+ markdown: Ef
8662
+ }, If = {
8662
8663
  aside: ({ node: e, className: t, children: n, ...r }) => {
8663
8664
  const i = (e == null ? void 0 : e.properties) ?? {}, o = typeof i["data-admonition"] == "string" ? i["data-admonition"] : "note", l = typeof i["data-admonition-variant"] == "string" ? i["data-admonition-variant"] : "unknown", a = typeof i["data-admonition-icon"] == "string" ? i["data-admonition-icon"] : void 0, u = typeof i["data-admonition-title"] == "string" ? i["data-admonition-title"] : void 0;
8664
- return /* @__PURE__ */ je(
8665
+ return o === "upsell" ? /* @__PURE__ */ De(
8666
+ Ti,
8667
+ {
8668
+ ...r,
8669
+ className: t,
8670
+ icon: a,
8671
+ title: u ?? "Upsell",
8672
+ subtext: n
8673
+ }
8674
+ ) : /* @__PURE__ */ De(
8665
8675
  Ai,
8666
8676
  {
8667
8677
  ...r,
@@ -8675,7 +8685,7 @@ const Cf = "_markdown_1kgcy_1", or = {
8675
8685
  );
8676
8686
  }
8677
8687
  };
8678
- function zf({
8688
+ function Lf({
8679
8689
  children: e,
8680
8690
  className: t,
8681
8691
  components: n,
@@ -8685,7 +8695,7 @@ function zf({
8685
8695
  batchValidate: l,
8686
8696
  debug: a = !1
8687
8697
  }) {
8688
- const u = e ?? "", { output: s } = Ti(
8698
+ const u = e ?? "", { output: s } = Pi(
8689
8699
  u,
8690
8700
  r,
8691
8701
  i,
@@ -8695,17 +8705,17 @@ function zf({
8695
8705
  );
8696
8706
  if (!u) return null;
8697
8707
  const f = r || i ? {
8698
- a: ({ node: h, ...d }) => /* @__PURE__ */ je("a", { ...d, target: "_blank", rel: "noopener noreferrer" })
8699
- } : {}, c = t ? `${or.markdown} ${t}` : or.markdown, p = { ...Ef, ...f, ...n };
8700
- return /* @__PURE__ */ je("div", { className: c, children: /* @__PURE__ */ je(
8701
- os,
8708
+ a: ({ node: h, ...d }) => /* @__PURE__ */ De("a", { ...d, target: "_blank", rel: "noopener noreferrer" })
8709
+ } : {}, c = t ? `${or.markdown} ${t}` : or.markdown, p = { ...If, ...f, ...n };
8710
+ return /* @__PURE__ */ De("div", { className: c, children: /* @__PURE__ */ De(
8711
+ as,
8702
8712
  {
8703
- remarkPlugins: [xf, Sf, Ii],
8713
+ remarkPlugins: [bf, Cf, Ii],
8704
8714
  components: p,
8705
8715
  children: s
8706
8716
  }
8707
8717
  ) });
8708
8718
  }
8709
8719
  export {
8710
- zf as Markdown
8720
+ Lf as Markdown
8711
8721
  };