juneau 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,14 @@
1
- import { useState as st, useRef as yr, useCallback as me, useContext as Mi, createContext as Ri, useEffect as Ni } from "react";
1
+ import { useState as Qe, useRef as yr, useCallback as me, useContext as Fi, createContext as Ri, useEffect as Ni } from "react";
2
2
  import { jsx as E, jsxs as Y, Fragment as Oi } from "react/jsx-runtime";
3
3
  const re = (e) => new Promise((n) => setTimeout(n, e));
4
+ function $p(e) {
5
+ return e.parts.filter((n) => n.type === "text").map((n) => n.text).join("");
6
+ }
4
7
  async function An(e, n, t) {
5
8
  for await (const r of e)
6
9
  if (t?.aborted || (n(r), r.type === "done" || r.type === "error")) break;
7
10
  }
8
- const Hp = {
11
+ const qp = {
9
12
  async *sendMessage(e) {
10
13
  const t = [...e.messages].reverse().find((i) => i.role === "user")?.parts.find((i) => i.type === "text"), r = t?.type === "text" ? t.text.toLowerCase() : "";
11
14
  r.includes("table") || r.includes("data") || r.includes("list") || r.includes("show") ? yield* Bi() : r.includes("proposal") || r.includes("suggest") || r.includes("recommend") ? yield* ji() : r.includes("help") || r.includes("what can") || r.includes("how do") ? yield* Hi() : r.includes("error") || r.includes("fail") || r.includes("break") ? yield* $i() : yield* qi(r);
@@ -75,7 +78,7 @@ async function* ee(e, n) {
75
78
  for (let r = 0; r < e.length; r += 3)
76
79
  yield { type: "text", text: e.slice(r, r + 3) }, await re(n);
77
80
  }
78
- function $p(e, n = {}) {
81
+ function Vp(e, n = {}) {
79
82
  const {
80
83
  method: t = "POST",
81
84
  headers: r = {},
@@ -148,7 +151,7 @@ const Ui = (e) => {
148
151
  return [];
149
152
  }
150
153
  };
151
- function qp(e, n = {}) {
154
+ function Up(e, n = {}) {
152
155
  const {
153
156
  method: t = "POST",
154
157
  headers: r = {},
@@ -218,143 +221,144 @@ const Qi = (e) => {
218
221
  }
219
222
  };
220
223
  let Yi = 0;
221
- const ut = () => `msg-${++Yi}-${Date.now()}`;
224
+ const ct = () => `msg-${++Yi}-${Date.now()}`;
222
225
  function Xi({
223
226
  adapter: e,
224
227
  context: n,
225
228
  onProposalConfirm: t,
226
229
  onProposalCancel: r
227
230
  }) {
228
- const [i, o] = st([]), [l, a] = st(""), [s, u] = st(!1), [f, c] = st(null), h = yr(null), p = me((z) => {
229
- o((M) => {
230
- const F = M[M.length - 1];
231
- return !F || F.role !== "assistant" ? M : [
232
- ...M.slice(0, -1),
233
- { ...F, parts: [...F.parts, z] }
231
+ const [i, o] = Qe([]), [l, a] = Qe(""), [s, u] = Qe(!1), [f, c] = Qe(!1), [h, p] = Qe(null), g = yr(null), b = me((D) => {
232
+ o((y) => {
233
+ const T = y[y.length - 1];
234
+ return !T || T.role !== "assistant" ? y : [
235
+ ...y.slice(0, -1),
236
+ { ...T, parts: [...T.parts, D] }
234
237
  ];
235
238
  });
236
- }, []), g = me((z) => {
237
- o((M) => {
238
- const F = M[M.length - 1];
239
- if (!F || F.role !== "assistant") return M;
240
- const y = [...F.parts], _ = y[y.length - 1];
241
- return _?.type === "text" ? y[y.length - 1] = { type: "text", text: _.text + z } : y.push({ type: "text", text: z }), [...M.slice(0, -1), { ...F, parts: y }];
239
+ }, []), C = me((D) => {
240
+ o((y) => {
241
+ const T = y[y.length - 1];
242
+ if (!T || T.role !== "assistant") return y;
243
+ const P = [...T.parts], B = P[P.length - 1];
244
+ return B?.type === "text" ? P[P.length - 1] = { type: "text", text: B.text + D } : P.push({ type: "text", text: D }), [...y.slice(0, -1), { ...T, parts: P }];
242
245
  });
243
- }, []), w = me(async (z, M) => {
244
- c(null);
245
- const F = {
246
- id: ut(),
246
+ }, []), k = me(async (D, y) => {
247
+ p(null);
248
+ const T = {
249
+ id: ct(),
247
250
  role: "user",
248
- parts: [{ type: "text", text: z }],
251
+ parts: [{ type: "text", text: D }],
249
252
  createdAt: /* @__PURE__ */ new Date()
250
- }, y = {
251
- id: ut(),
253
+ }, P = {
254
+ id: ct(),
252
255
  role: "assistant",
253
256
  parts: [],
254
257
  createdAt: /* @__PURE__ */ new Date()
255
258
  };
256
- o((T) => [...T, F, y]), u(!0), h.current?.abort();
257
- const _ = new AbortController();
258
- h.current = _;
259
+ o((z) => [...z, T, P]), u(!0), c(!0), g.current?.abort();
260
+ const B = new AbortController();
261
+ g.current = B;
259
262
  try {
260
- const T = e.sendMessage({ messages: [...M, F], context: n });
263
+ const z = e.sendMessage({ messages: [...y, T], context: n });
261
264
  await An(
262
- T,
263
- (j) => {
264
- switch (j.type) {
265
+ z,
266
+ (A) => {
267
+ switch (c(!1), A.type) {
265
268
  case "text":
266
- g(j.text);
269
+ C(A.text);
267
270
  break;
268
271
  case "part":
269
- p(j.part);
272
+ b(A.part);
270
273
  break;
271
274
  case "error":
272
- p({ type: "error", message: j.message }), c(j.message);
275
+ b({ type: "error", message: A.message }), p(A.message);
273
276
  break;
274
277
  case "done":
275
278
  break;
276
279
  }
277
280
  },
278
- _.signal
281
+ B.signal
279
282
  );
280
- } catch (T) {
281
- const j = T instanceof Error ? T.message : "Unknown error occurred";
282
- c(j), p({ type: "error", message: j });
283
+ } catch (z) {
284
+ const A = z instanceof Error ? z.message : "Unknown error occurred";
285
+ p(A), b({ type: "error", message: A });
283
286
  } finally {
284
- u(!1);
285
- }
286
- }, [e, n, g, p]), C = me(async () => {
287
- const z = l.trim();
288
- !z || s || (a(""), await w(z, i));
289
- }, [l, s, i, w]), k = me(async (z) => {
290
- !z.trim() || s || await w(z, i);
291
- }, [s, i, w]), I = me(async (z) => {
287
+ u(!1), c(!1);
288
+ }
289
+ }, [e, n, C, b]), I = me(async () => {
290
+ const D = l.trim();
291
+ !D || s || (a(""), await k(D, i));
292
+ }, [l, s, i, k]), S = me(async (D) => {
293
+ !D.trim() || s || await k(D, i);
294
+ }, [s, i, k]), M = me(async (D) => {
292
295
  if (s) return;
293
- c(null), u(!0);
294
- const M = {
295
- id: ut(),
296
+ p(null), u(!0), c(!0);
297
+ const y = {
298
+ id: ct(),
296
299
  role: "assistant",
297
300
  parts: [],
298
301
  createdAt: /* @__PURE__ */ new Date()
299
302
  };
300
- o((_) => [..._, M]), h.current?.abort();
301
- const F = new AbortController();
302
- h.current = F;
303
- const y = {
304
- id: ut(),
303
+ o((B) => [...B, y]), g.current?.abort();
304
+ const T = new AbortController();
305
+ g.current = T;
306
+ const P = {
307
+ id: ct(),
305
308
  role: "system",
306
- parts: [{ type: "text", text: z }],
309
+ parts: [{ type: "text", text: D }],
307
310
  createdAt: /* @__PURE__ */ new Date()
308
311
  };
309
312
  try {
310
- const _ = e.sendMessage({ messages: [y], context: n });
313
+ const B = e.sendMessage({ messages: [P], context: n });
311
314
  await An(
312
- _,
313
- (T) => {
314
- switch (T.type) {
315
+ B,
316
+ (z) => {
317
+ switch (c(!1), z.type) {
315
318
  case "text":
316
- g(T.text);
319
+ C(z.text);
317
320
  break;
318
321
  case "part":
319
- p(T.part);
322
+ b(z.part);
320
323
  break;
321
324
  case "error":
322
- p({ type: "error", message: T.message }), c(T.message);
325
+ b({ type: "error", message: z.message }), p(z.message);
323
326
  break;
324
327
  case "done":
325
328
  break;
326
329
  }
327
330
  },
328
- F.signal
331
+ T.signal
329
332
  );
330
- } catch (_) {
331
- const T = _ instanceof Error ? _.message : "Unknown error occurred";
332
- c(T), p({ type: "error", message: T });
333
+ } catch (B) {
334
+ const z = B instanceof Error ? B.message : "Unknown error occurred";
335
+ p(z), b({ type: "error", message: z });
333
336
  } finally {
334
- u(!1);
335
- }
336
- }, [s, e, n, g, p]), S = me(() => {
337
- h.current?.abort(), u(!1);
338
- }, []), R = me(() => {
339
- h.current?.abort(), o([]), a(""), c(null), u(!1);
340
- }, []), N = me((z, M) => {
341
- t?.(z, M);
342
- }, [t]), x = me((z) => {
343
- r?.(z);
337
+ u(!1), c(!1);
338
+ }
339
+ }, [s, e, n, C, b]), F = me(() => {
340
+ g.current?.abort(), u(!1), c(!1);
341
+ }, []), x = me(() => {
342
+ g.current?.abort(), o([]), a(""), p(null), u(!1), c(!1);
343
+ }, []), O = me((D, y) => {
344
+ t?.(D, y);
345
+ }, [t]), H = me((D) => {
346
+ r?.(D);
344
347
  }, [r]);
345
348
  return {
346
349
  messages: i,
347
350
  input: l,
348
351
  setInput: a,
349
- sendMessage: C,
350
- sendMessageWithText: k,
351
- sendGreeting: I,
352
- stop: S,
352
+ sendMessage: I,
353
+ sendMessageWithText: S,
354
+ sendGreeting: M,
355
+ stop: F,
353
356
  isLoading: s,
354
- error: f,
355
- reset: R,
356
- confirmProposal: N,
357
- cancelProposal: x
357
+ isConnecting: f,
358
+ error: h,
359
+ reset: x,
360
+ confirmProposal: O,
361
+ cancelProposal: H
358
362
  };
359
363
  }
360
364
  const Ut = {
@@ -363,6 +367,8 @@ const Ut = {
363
367
  inputPlaceholder: "Ask a question… (Enter to send)",
364
368
  sendMessage: "Send message",
365
369
  stopMessage: "Stop",
370
+ typingMessage: "Assistant is typing",
371
+ connectingMessage: "Connecting…",
366
372
  emptyStateText: "How can I help you today?",
367
373
  emptyStateHint: 'Try: "Show me the data" or "Can you suggest something?"',
368
374
  proposalConfirm: "Confirm",
@@ -374,13 +380,13 @@ const Ut = {
374
380
  actionHistory: "History",
375
381
  actionRules: "Rules"
376
382
  }, kr = Ri(Ut);
377
- function rt() {
378
- return Mi(kr);
383
+ function He() {
384
+ return Fi(kr);
379
385
  }
380
386
  const Gi = "_root_14q8g_1", Ji = {
381
387
  root: Gi
382
388
  };
383
- function Vp({ children: e, theme: n, labels: t, className: r, style: i }) {
389
+ function Wp({ children: e, theme: n, labels: t, className: r, style: i }) {
384
390
  const o = t ? { ...Ut, ...t } : Ut, l = n ? Ki(n) : void 0;
385
391
  return /* @__PURE__ */ E(kr.Provider, { value: o, children: /* @__PURE__ */ E(
386
392
  "div",
@@ -421,12 +427,14 @@ function Ki(e) {
421
427
  Object.entries(n).filter(([, t]) => t !== void 0)
422
428
  );
423
429
  }
424
- const Up = {
430
+ const Qp = {
425
431
  sidebarTitle: "AI Asistent",
426
432
  clearConversation: "Vymazat konverzaci",
427
433
  inputPlaceholder: "Zeptejte se na cokoliv… (Enter pro odeslání)",
428
434
  sendMessage: "Odeslat zprávu",
429
435
  stopMessage: "Zastavit",
436
+ typingMessage: "Asistent píše",
437
+ connectingMessage: "Připojování…",
430
438
  emptyStateText: "Jak vám mohu dnes pomoci?",
431
439
  emptyStateHint: 'Zkuste: „Ukáž mi data" nebo „Máš nějaký návrh?"',
432
440
  proposalConfirm: "Potvrdit",
@@ -571,17 +579,17 @@ function al(e, n) {
571
579
  ).trim();
572
580
  }
573
581
  const sl = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, ul = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, cl = {};
574
- function Tn(e, n) {
582
+ function _n(e, n) {
575
583
  return (cl.jsx ? ul : sl).test(e);
576
584
  }
577
585
  const fl = /[ \t\n\f\r]/g;
578
586
  function pl(e) {
579
- return typeof e == "object" ? e.type === "text" ? _n(e.value) : !1 : _n(e);
587
+ return typeof e == "object" ? e.type === "text" ? Tn(e.value) : !1 : Tn(e);
580
588
  }
581
- function _n(e) {
589
+ function Tn(e) {
582
590
  return e.replace(fl, "") === "";
583
591
  }
584
- class it {
592
+ class ot {
585
593
  /**
586
594
  * @param {SchemaType['property']} property
587
595
  * Property.
@@ -596,14 +604,14 @@ class it {
596
604
  this.normal = t, this.property = n, r && (this.space = r);
597
605
  }
598
606
  }
599
- it.prototype.normal = {};
600
- it.prototype.property = {};
601
- it.prototype.space = void 0;
607
+ ot.prototype.normal = {};
608
+ ot.prototype.property = {};
609
+ ot.prototype.space = void 0;
602
610
  function br(e, n) {
603
611
  const t = {}, r = {};
604
612
  for (const i of e)
605
613
  Object.assign(t, i.property), Object.assign(r, i.normal);
606
- return new it(t, r, n);
614
+ return new ot(t, r, n);
607
615
  }
608
616
  function Wt(e) {
609
617
  return e.toLowerCase();
@@ -634,13 +642,13 @@ ie.prototype.property = "";
634
642
  ie.prototype.spaceSeparated = !1;
635
643
  ie.prototype.space = void 0;
636
644
  let hl = 0;
637
- const O = Fe(), X = Fe(), Qt = Fe(), v = Fe(), W = Fe(), Le = Fe(), oe = Fe();
638
- function Fe() {
645
+ const R = Me(), X = Me(), Qt = Me(), v = Me(), W = Me(), Le = Me(), oe = Me();
646
+ function Me() {
639
647
  return 2 ** ++hl;
640
648
  }
641
649
  const Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
642
650
  __proto__: null,
643
- boolean: O,
651
+ boolean: R,
644
652
  booleanish: X,
645
653
  commaOrSpaceSeparated: oe,
646
654
  commaSeparated: Le,
@@ -678,7 +686,7 @@ rn.prototype.defined = !0;
678
686
  function Pn(e, n, t) {
679
687
  t && (e[n] = t);
680
688
  }
681
- function He(e) {
689
+ function $e(e) {
682
690
  const n = {}, t = {};
683
691
  for (const [r, i] of Object.entries(e.properties)) {
684
692
  const o = new rn(
@@ -689,9 +697,9 @@ function He(e) {
689
697
  );
690
698
  e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), n[r] = o, t[Wt(r)] = r, t[Wt(o.attribute)] = r;
691
699
  }
692
- return new it(n, t, e.space);
700
+ return new ot(n, t, e.space);
693
701
  }
694
- const wr = He({
702
+ const wr = $e({
695
703
  properties: {
696
704
  ariaActiveDescendant: null,
697
705
  ariaAtomic: X,
@@ -753,7 +761,7 @@ function Cr(e, n) {
753
761
  function Sr(e, n) {
754
762
  return Cr(e, n.toLowerCase());
755
763
  }
756
- const ml = He({
764
+ const ml = $e({
757
765
  attributes: {
758
766
  acceptcharset: "accept-charset",
759
767
  classname: "class",
@@ -769,21 +777,21 @@ const ml = He({
769
777
  accessKey: W,
770
778
  action: null,
771
779
  allow: null,
772
- allowFullScreen: O,
773
- allowPaymentRequest: O,
774
- allowUserMedia: O,
775
- alpha: O,
780
+ allowFullScreen: R,
781
+ allowPaymentRequest: R,
782
+ allowUserMedia: R,
783
+ alpha: R,
776
784
  alt: null,
777
785
  as: null,
778
- async: O,
786
+ async: R,
779
787
  autoCapitalize: null,
780
788
  autoComplete: W,
781
- autoFocus: O,
782
- autoPlay: O,
789
+ autoFocus: R,
790
+ autoPlay: R,
783
791
  blocking: W,
784
792
  capture: null,
785
793
  charSet: null,
786
- checked: O,
794
+ checked: R,
787
795
  cite: null,
788
796
  className: W,
789
797
  closedBy: null,
@@ -794,18 +802,18 @@ const ml = He({
794
802
  commandFor: null,
795
803
  content: null,
796
804
  contentEditable: X,
797
- controls: O,
805
+ controls: R,
798
806
  controlsList: W,
799
807
  coords: v | Le,
800
808
  crossOrigin: null,
801
809
  data: null,
802
810
  dateTime: null,
803
811
  decoding: null,
804
- default: O,
805
- defer: O,
812
+ default: R,
813
+ defer: R,
806
814
  dir: null,
807
815
  dirName: null,
808
- disabled: O,
816
+ disabled: R,
809
817
  download: Qt,
810
818
  draggable: X,
811
819
  encType: null,
@@ -815,7 +823,7 @@ const ml = He({
815
823
  formAction: null,
816
824
  formEncType: null,
817
825
  formMethod: null,
818
- formNoValidate: O,
826
+ formNoValidate: R,
819
827
  formTarget: null,
820
828
  headers: W,
821
829
  height: v,
@@ -828,15 +836,15 @@ const ml = He({
828
836
  id: null,
829
837
  imageSizes: null,
830
838
  imageSrcSet: null,
831
- inert: O,
839
+ inert: R,
832
840
  inputMode: null,
833
841
  integrity: null,
834
842
  is: null,
835
- isMap: O,
843
+ isMap: R,
836
844
  itemId: null,
837
845
  itemProp: W,
838
846
  itemRef: W,
839
- itemScope: O,
847
+ itemScope: R,
840
848
  itemType: W,
841
849
  kind: null,
842
850
  label: null,
@@ -844,7 +852,7 @@ const ml = He({
844
852
  language: null,
845
853
  list: null,
846
854
  loading: null,
847
- loop: O,
855
+ loop: R,
848
856
  low: v,
849
857
  manifest: null,
850
858
  max: null,
@@ -853,12 +861,12 @@ const ml = He({
853
861
  method: null,
854
862
  min: null,
855
863
  minLength: v,
856
- multiple: O,
857
- muted: O,
864
+ multiple: R,
865
+ muted: R,
858
866
  name: null,
859
867
  nonce: null,
860
- noModule: O,
861
- noValidate: O,
868
+ noModule: R,
869
+ noValidate: R,
862
870
  onAbort: null,
863
871
  onAfterPrint: null,
864
872
  onAuxClick: null,
@@ -947,34 +955,34 @@ const ml = He({
947
955
  onVolumeChange: null,
948
956
  onWaiting: null,
949
957
  onWheel: null,
950
- open: O,
958
+ open: R,
951
959
  optimum: v,
952
960
  pattern: null,
953
961
  ping: W,
954
962
  placeholder: null,
955
- playsInline: O,
963
+ playsInline: R,
956
964
  popover: null,
957
965
  popoverTarget: null,
958
966
  popoverTargetAction: null,
959
967
  poster: null,
960
968
  preload: null,
961
- readOnly: O,
969
+ readOnly: R,
962
970
  referrerPolicy: null,
963
971
  rel: W,
964
- required: O,
965
- reversed: O,
972
+ required: R,
973
+ reversed: R,
966
974
  rows: v,
967
975
  rowSpan: v,
968
976
  sandbox: W,
969
977
  scope: null,
970
- scoped: O,
971
- seamless: O,
972
- selected: O,
973
- shadowRootClonable: O,
974
- shadowRootCustomElementRegistry: O,
975
- shadowRootDelegatesFocus: O,
978
+ scoped: R,
979
+ seamless: R,
980
+ selected: R,
981
+ shadowRootClonable: R,
982
+ shadowRootCustomElementRegistry: R,
983
+ shadowRootDelegatesFocus: R,
976
984
  shadowRootMode: null,
977
- shadowRootSerializable: O,
985
+ shadowRootSerializable: R,
978
986
  shape: null,
979
987
  size: v,
980
988
  sizes: null,
@@ -993,7 +1001,7 @@ const ml = He({
993
1001
  title: null,
994
1002
  translate: null,
995
1003
  type: null,
996
- typeMustMatch: O,
1004
+ typeMustMatch: R,
997
1005
  useMap: null,
998
1006
  value: X,
999
1007
  width: v,
@@ -1039,9 +1047,9 @@ const ml = He({
1039
1047
  // `<object>`
1040
1048
  color: null,
1041
1049
  // `<font>` and `<hr>`. Use CSS instead
1042
- compact: O,
1050
+ compact: R,
1043
1051
  // Lists. Use CSS to reduce space between items instead
1044
- declare: O,
1052
+ declare: R,
1045
1053
  // `<object>`
1046
1054
  event: null,
1047
1055
  // `<script>`
@@ -1065,13 +1073,13 @@ const ml = He({
1065
1073
  // `<body>`
1066
1074
  marginWidth: v,
1067
1075
  // `<body>`
1068
- noResize: O,
1076
+ noResize: R,
1069
1077
  // `<frame>`
1070
- noHref: O,
1078
+ noHref: R,
1071
1079
  // `<area>`. Use no href instead of an explicit `nohref`
1072
- noShade: O,
1080
+ noShade: R,
1073
1081
  // `<hr>`. Use background-color and height instead of borders
1074
- noWrap: O,
1082
+ noWrap: R,
1075
1083
  // `<td>` and `<th>`
1076
1084
  object: null,
1077
1085
  // `<applet>`
@@ -1111,9 +1119,9 @@ const ml = He({
1111
1119
  allowTransparency: null,
1112
1120
  autoCorrect: null,
1113
1121
  autoSave: null,
1114
- credentialless: O,
1115
- disablePictureInPicture: O,
1116
- disableRemotePlayback: O,
1122
+ credentialless: R,
1123
+ disablePictureInPicture: R,
1124
+ disableRemotePlayback: R,
1117
1125
  exportParts: Le,
1118
1126
  part: W,
1119
1127
  prefix: null,
@@ -1124,7 +1132,7 @@ const ml = He({
1124
1132
  },
1125
1133
  space: "html",
1126
1134
  transform: Sr
1127
- }), dl = He({
1135
+ }), dl = $e({
1128
1136
  attributes: {
1129
1137
  accentHeight: "accent-height",
1130
1138
  alignmentBaseline: "alignment-baseline",
@@ -1351,7 +1359,7 @@ const ml = He({
1351
1359
  dur: null,
1352
1360
  divisor: v,
1353
1361
  dominantBaseline: null,
1354
- download: O,
1362
+ download: R,
1355
1363
  dx: null,
1356
1364
  dy: null,
1357
1365
  edgeMode: null,
@@ -1685,7 +1693,7 @@ const ml = He({
1685
1693
  },
1686
1694
  space: "svg",
1687
1695
  transform: Cr
1688
- }), vr = He({
1696
+ }), vr = $e({
1689
1697
  properties: {
1690
1698
  xLinkActuate: null,
1691
1699
  xLinkArcRole: null,
@@ -1699,12 +1707,12 @@ const ml = He({
1699
1707
  transform(e, n) {
1700
1708
  return "xlink:" + n.slice(5).toLowerCase();
1701
1709
  }
1702
- }), Er = He({
1710
+ }), Er = $e({
1703
1711
  attributes: { xmlnsxlink: "xmlns:xlink" },
1704
1712
  properties: { xmlnsXLink: null, xmlns: null },
1705
1713
  space: "xmlns",
1706
1714
  transform: Sr
1707
- }), Ir = He({
1715
+ }), Ir = $e({
1708
1716
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1709
1717
  space: "xml",
1710
1718
  transform(e, n) {
@@ -1762,9 +1770,9 @@ function Sl(e) {
1762
1770
  function Ar(e) {
1763
1771
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1764
1772
  }
1765
- var Oe = {}, Tt, Ln;
1773
+ var Oe = {}, _t, Ln;
1766
1774
  function vl() {
1767
- if (Ln) return Tt;
1775
+ if (Ln) return _t;
1768
1776
  Ln = 1;
1769
1777
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
1770
1778
  `, u = "/", f = "*", c = "", h = "comment", p = "declaration";
@@ -1774,83 +1782,83 @@ function vl() {
1774
1782
  if (!C) return [];
1775
1783
  k = k || {};
1776
1784
  var I = 1, S = 1;
1777
- function R(D) {
1778
- var P = D.match(n);
1779
- P && (I += P.length);
1780
- var V = D.lastIndexOf(s);
1781
- S = ~V ? D.length - V : S + D.length;
1782
- }
1783
- function N() {
1784
- var D = { line: I, column: S };
1785
- return function(P) {
1786
- return P.position = new x(D), F(), P;
1785
+ function M(z) {
1786
+ var A = z.match(n);
1787
+ A && (I += A.length);
1788
+ var V = z.lastIndexOf(s);
1789
+ S = ~V ? z.length - V : S + z.length;
1790
+ }
1791
+ function F() {
1792
+ var z = { line: I, column: S };
1793
+ return function(A) {
1794
+ return A.position = new x(z), D(), A;
1787
1795
  };
1788
1796
  }
1789
- function x(D) {
1790
- this.start = D, this.end = { line: I, column: S }, this.source = k.source;
1797
+ function x(z) {
1798
+ this.start = z, this.end = { line: I, column: S }, this.source = k.source;
1791
1799
  }
1792
1800
  x.prototype.content = C;
1793
- function z(D) {
1794
- var P = new Error(
1795
- k.source + ":" + I + ":" + S + ": " + D
1801
+ function O(z) {
1802
+ var A = new Error(
1803
+ k.source + ":" + I + ":" + S + ": " + z
1796
1804
  );
1797
- if (P.reason = D, P.filename = k.source, P.line = I, P.column = S, P.source = C, !k.silent) throw P;
1805
+ if (A.reason = z, A.filename = k.source, A.line = I, A.column = S, A.source = C, !k.silent) throw A;
1798
1806
  }
1799
- function M(D) {
1800
- var P = D.exec(C);
1801
- if (P) {
1802
- var V = P[0];
1803
- return R(V), C = C.slice(V.length), P;
1807
+ function H(z) {
1808
+ var A = z.exec(C);
1809
+ if (A) {
1810
+ var V = A[0];
1811
+ return M(V), C = C.slice(V.length), A;
1804
1812
  }
1805
1813
  }
1806
- function F() {
1807
- M(t);
1814
+ function D() {
1815
+ H(t);
1808
1816
  }
1809
- function y(D) {
1810
- var P;
1811
- for (D = D || []; P = _(); )
1812
- P !== !1 && D.push(P);
1813
- return D;
1817
+ function y(z) {
1818
+ var A;
1819
+ for (z = z || []; A = T(); )
1820
+ A !== !1 && z.push(A);
1821
+ return z;
1814
1822
  }
1815
- function _() {
1816
- var D = N();
1823
+ function T() {
1824
+ var z = F();
1817
1825
  if (!(u != C.charAt(0) || f != C.charAt(1))) {
1818
- for (var P = 2; c != C.charAt(P) && (f != C.charAt(P) || u != C.charAt(P + 1)); )
1819
- ++P;
1820
- if (P += 2, c === C.charAt(P - 1))
1821
- return z("End of comment missing");
1822
- var V = C.slice(2, P - 2);
1823
- return S += 2, R(V), C = C.slice(P), S += 2, D({
1826
+ for (var A = 2; c != C.charAt(A) && (f != C.charAt(A) || u != C.charAt(A + 1)); )
1827
+ ++A;
1828
+ if (A += 2, c === C.charAt(A - 1))
1829
+ return O("End of comment missing");
1830
+ var V = C.slice(2, A - 2);
1831
+ return S += 2, M(V), C = C.slice(A), S += 2, z({
1824
1832
  type: h,
1825
1833
  comment: V
1826
1834
  });
1827
1835
  }
1828
1836
  }
1829
- function T() {
1830
- var D = N(), P = M(r);
1831
- if (P) {
1832
- if (_(), !M(i)) return z("property missing ':'");
1833
- var V = M(o), G = D({
1837
+ function P() {
1838
+ var z = F(), A = H(r);
1839
+ if (A) {
1840
+ if (T(), !H(i)) return O("property missing ':'");
1841
+ var V = H(o), G = z({
1834
1842
  type: p,
1835
- property: w(P[0].replace(e, c)),
1836
- value: V ? w(V[0].replace(e, c)) : c
1843
+ property: b(A[0].replace(e, c)),
1844
+ value: V ? b(V[0].replace(e, c)) : c
1837
1845
  });
1838
- return M(l), G;
1846
+ return H(l), G;
1839
1847
  }
1840
1848
  }
1841
- function j() {
1842
- var D = [];
1843
- y(D);
1844
- for (var P; P = T(); )
1845
- P !== !1 && (D.push(P), y(D));
1846
- return D;
1849
+ function B() {
1850
+ var z = [];
1851
+ y(z);
1852
+ for (var A; A = P(); )
1853
+ A !== !1 && (z.push(A), y(z));
1854
+ return z;
1847
1855
  }
1848
- return F(), j();
1856
+ return D(), B();
1849
1857
  }
1850
- function w(C) {
1858
+ function b(C) {
1851
1859
  return C ? C.replace(a, c) : c;
1852
1860
  }
1853
- return Tt = g, Tt;
1861
+ return _t = g, _t;
1854
1862
  }
1855
1863
  var Dn;
1856
1864
  function El() {
@@ -1875,10 +1883,10 @@ function El() {
1875
1883
  }
1876
1884
  return Oe;
1877
1885
  }
1878
- var We = {}, Fn;
1886
+ var Ye = {}, Mn;
1879
1887
  function Il() {
1880
- if (Fn) return We;
1881
- Fn = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.camelCase = void 0;
1888
+ if (Mn) return Ye;
1889
+ Mn = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.camelCase = void 0;
1882
1890
  var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, o = function(u) {
1883
1891
  return !u || t.test(u) || e.test(u);
1884
1892
  }, l = function(u, f) {
@@ -1888,13 +1896,13 @@ function Il() {
1888
1896
  }, s = function(u, f) {
1889
1897
  return f === void 0 && (f = {}), o(u) ? u : (u = u.toLowerCase(), f.reactCompat ? u = u.replace(i, a) : u = u.replace(r, a), u.replace(n, l));
1890
1898
  };
1891
- return We.camelCase = s, We;
1899
+ return Ye.camelCase = s, Ye;
1892
1900
  }
1893
- var Qe, Mn;
1901
+ var Xe, Fn;
1894
1902
  function Al() {
1895
- if (Mn) return Qe;
1896
- Mn = 1;
1897
- var e = Qe && Qe.__importDefault || function(i) {
1903
+ if (Fn) return Xe;
1904
+ Fn = 1;
1905
+ var e = Xe && Xe.__importDefault || function(i) {
1898
1906
  return i && i.__esModule ? i : { default: i };
1899
1907
  }, n = e(El()), t = Il();
1900
1908
  function r(i, o) {
@@ -1903,11 +1911,11 @@ function Al() {
1903
1911
  a && s && (l[(0, t.camelCase)(a, o)] = s);
1904
1912
  }), l;
1905
1913
  }
1906
- return r.default = r, Qe = r, Qe;
1914
+ return r.default = r, Xe = r, Xe;
1907
1915
  }
1908
- var Tl = Al();
1909
- const _l = /* @__PURE__ */ Ar(Tl), Tr = _r("end"), on = _r("start");
1910
- function _r(e) {
1916
+ var _l = Al();
1917
+ const Tl = /* @__PURE__ */ Ar(_l), _r = Tr("end"), on = Tr("start");
1918
+ function Tr(e) {
1911
1919
  return n;
1912
1920
  function n(t) {
1913
1921
  const r = t && t.position && t.position[e] || {};
@@ -1920,11 +1928,11 @@ function _r(e) {
1920
1928
  }
1921
1929
  }
1922
1930
  function Pl(e) {
1923
- const n = on(e), t = Tr(e);
1931
+ const n = on(e), t = _r(e);
1924
1932
  if (n && t)
1925
1933
  return { start: n, end: t };
1926
1934
  }
1927
- function Ke(e) {
1935
+ function tt(e) {
1928
1936
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Rn(e.position) : "start" in e || "end" in e ? Rn(e) : "line" in e || "column" in e ? Xt(e) : "";
1929
1937
  }
1930
1938
  function Xt(e) {
@@ -2007,7 +2015,7 @@ class Z extends Error {
2007
2015
  s && (o.place = s.position);
2008
2016
  }
2009
2017
  const a = o.place && "start" in o.place ? o.place.start : o.place;
2010
- this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = Ke(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
2018
+ this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = tt(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
2011
2019
  }
2012
2020
  }
2013
2021
  Z.prototype.file = "";
@@ -2023,8 +2031,8 @@ Z.prototype.fatal = void 0;
2023
2031
  Z.prototype.place = void 0;
2024
2032
  Z.prototype.ruleId = void 0;
2025
2033
  Z.prototype.source = void 0;
2026
- const an = {}.hasOwnProperty, zl = /* @__PURE__ */ new Map(), Ll = /[A-Z]/g, Dl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Fl = /* @__PURE__ */ new Set(["td", "th"]), Pr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
2027
- function Ml(e, n) {
2034
+ const an = {}.hasOwnProperty, zl = /* @__PURE__ */ new Map(), Ll = /[A-Z]/g, Dl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ml = /* @__PURE__ */ new Set(["td", "th"]), Pr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
2035
+ function Fl(e, n) {
2028
2036
  if (!n || n.Fragment === void 0)
2029
2037
  throw new TypeError("Expected `Fragment` in options");
2030
2038
  const t = n.filePath || void 0;
@@ -2094,7 +2102,7 @@ function Nl(e, n) {
2094
2102
  return r.type, /** @type {Child | undefined} */
2095
2103
  e.evaluater.evaluateExpression(r.expression);
2096
2104
  }
2097
- tt(e, n.position);
2105
+ it(e, n.position);
2098
2106
  }
2099
2107
  function Ol(e, n) {
2100
2108
  if (n.data && n.data.estree && e.evaluater)
@@ -2102,7 +2110,7 @@ function Ol(e, n) {
2102
2110
  /** @type {Child | undefined} */
2103
2111
  e.evaluater.evaluateProgram(n.data.estree)
2104
2112
  );
2105
- tt(e, n.position);
2113
+ it(e, n.position);
2106
2114
  }
2107
2115
  function Bl(e, n, t) {
2108
2116
  const r = e.schema;
@@ -2160,7 +2168,7 @@ function Vl(e, n) {
2160
2168
  const o = Wl(e, i, n.properties[i]);
2161
2169
  if (o) {
2162
2170
  const [l, a] = o;
2163
- e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Fl.has(n.tagName) ? r = a : t[l] = a;
2171
+ e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Ml.has(n.tagName) ? r = a : t[l] = a;
2164
2172
  }
2165
2173
  }
2166
2174
  if (r) {
@@ -2187,7 +2195,7 @@ function Ul(e, n) {
2187
2195
  e.evaluater.evaluateExpression(a.argument)
2188
2196
  );
2189
2197
  } else
2190
- tt(e, n.position);
2198
+ it(e, n.position);
2191
2199
  else {
2192
2200
  const i = r.name;
2193
2201
  let o;
@@ -2196,7 +2204,7 @@ function Ul(e, n) {
2196
2204
  const a = r.value.data.estree.body[0];
2197
2205
  a.type, o = e.evaluater.evaluateExpression(a.expression);
2198
2206
  } else
2199
- tt(e, n.position);
2207
+ it(e, n.position);
2200
2208
  else
2201
2209
  o = r.value === null ? !0 : r.value;
2202
2210
  t[i] = /** @type {Props[keyof Props]} */
@@ -2238,7 +2246,7 @@ function Wl(e, n, t) {
2238
2246
  }
2239
2247
  function Ql(e, n) {
2240
2248
  try {
2241
- return _l(n, { reactCompat: !0 });
2249
+ return Tl(n, { reactCompat: !0 });
2242
2250
  } catch (t) {
2243
2251
  if (e.ignoreInvalidStyle)
2244
2252
  return {};
@@ -2262,7 +2270,7 @@ function Dr(e, n, t) {
2262
2270
  const i = n.split(".");
2263
2271
  let o = -1, l;
2264
2272
  for (; ++o < i.length; ) {
2265
- const a = Tn(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] };
2273
+ const a = _n(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] };
2266
2274
  l = l ? {
2267
2275
  type: "MemberExpression",
2268
2276
  object: l,
@@ -2273,7 +2281,7 @@ function Dr(e, n, t) {
2273
2281
  }
2274
2282
  r = l;
2275
2283
  } else
2276
- r = Tn(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
2284
+ r = _n(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
2277
2285
  if (r.type === "Literal") {
2278
2286
  const i = (
2279
2287
  /** @type {string | number} */
@@ -2283,9 +2291,9 @@ function Dr(e, n, t) {
2283
2291
  }
2284
2292
  if (e.evaluater)
2285
2293
  return e.evaluater.evaluateExpression(r);
2286
- tt(e);
2294
+ it(e);
2287
2295
  }
2288
- function tt(e, n) {
2296
+ function it(e, n) {
2289
2297
  const t = new Z(
2290
2298
  "Cannot handle MDX estrees without `createEvaluater`",
2291
2299
  {
@@ -2311,7 +2319,7 @@ function Xl(e) {
2311
2319
  function Gl(e) {
2312
2320
  return "-" + e.toLowerCase();
2313
2321
  }
2314
- const _t = {
2322
+ const Tt = {
2315
2323
  action: ["form"],
2316
2324
  cite: ["blockquote", "del", "ins", "q"],
2317
2325
  data: ["object"],
@@ -2336,9 +2344,9 @@ const _t = {
2336
2344
  }, Jl = {};
2337
2345
  function cn(e, n) {
2338
2346
  const t = Jl, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
2339
- return Fr(e, r, i);
2347
+ return Mr(e, r, i);
2340
2348
  }
2341
- function Fr(e, n, t) {
2349
+ function Mr(e, n, t) {
2342
2350
  if (Kl(e)) {
2343
2351
  if ("value" in e)
2344
2352
  return e.type === "html" && !t ? "" : e.value;
@@ -2353,7 +2361,7 @@ function On(e, n, t) {
2353
2361
  const r = [];
2354
2362
  let i = -1;
2355
2363
  for (; ++i < e.length; )
2356
- r[i] = Fr(e[i], n, t);
2364
+ r[i] = Mr(e[i], n, t);
2357
2365
  return r.join("");
2358
2366
  }
2359
2367
  function Kl(e) {
@@ -2379,7 +2387,7 @@ function se(e, n) {
2379
2387
  return e.length > 0 ? (ae(e, e.length, 0, n), e) : n;
2380
2388
  }
2381
2389
  const jn = {}.hasOwnProperty;
2382
- function Mr(e) {
2390
+ function Fr(e) {
2383
2391
  const n = {};
2384
2392
  let t = -1;
2385
2393
  for (; ++t < e.length; )
@@ -2441,7 +2449,7 @@ function L(e) {
2441
2449
  function Q(e) {
2442
2450
  return e !== null && (e < 0 || e === 32);
2443
2451
  }
2444
- function H(e) {
2452
+ function j(e) {
2445
2453
  return e === -2 || e === -1 || e === 32;
2446
2454
  }
2447
2455
  const Ct = Ie(/\p{P}|\p{S}/u), De = Ie(/\s/);
@@ -2451,7 +2459,7 @@ function Ie(e) {
2451
2459
  return t !== null && t > -1 && e.test(String.fromCharCode(t));
2452
2460
  }
2453
2461
  }
2454
- function $e(e) {
2462
+ function qe(e) {
2455
2463
  const n = [];
2456
2464
  let t = -1, r = 0, i = 0;
2457
2465
  for (; ++t < e.length; ) {
@@ -2475,10 +2483,10 @@ function q(e, n, t, r) {
2475
2483
  let o = 0;
2476
2484
  return l;
2477
2485
  function l(s) {
2478
- return H(s) ? (e.enter(t), a(s)) : n(s);
2486
+ return j(s) ? (e.enter(t), a(s)) : n(s);
2479
2487
  }
2480
2488
  function a(s) {
2481
- return H(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2489
+ return j(s) && o++ < i ? (e.consume(s), a) : (e.exit(t), n(s));
2482
2490
  }
2483
2491
  }
2484
2492
  const io = {
@@ -2524,28 +2532,28 @@ function ao(e) {
2524
2532
  return a;
2525
2533
  function a(S) {
2526
2534
  if (r < t.length) {
2527
- const R = t[r];
2528
- return n.containerState = R[1], e.attempt(R[0].continuation, s, u)(S);
2535
+ const M = t[r];
2536
+ return n.containerState = M[1], e.attempt(M[0].continuation, s, u)(S);
2529
2537
  }
2530
2538
  return u(S);
2531
2539
  }
2532
2540
  function s(S) {
2533
2541
  if (r++, n.containerState._closeFlow) {
2534
2542
  n.containerState._closeFlow = void 0, i && I();
2535
- const R = n.events.length;
2536
- let N = R, x;
2537
- for (; N--; )
2538
- if (n.events[N][0] === "exit" && n.events[N][1].type === "chunkFlow") {
2539
- x = n.events[N][1].end;
2543
+ const M = n.events.length;
2544
+ let F = M, x;
2545
+ for (; F--; )
2546
+ if (n.events[F][0] === "exit" && n.events[F][1].type === "chunkFlow") {
2547
+ x = n.events[F][1].end;
2540
2548
  break;
2541
2549
  }
2542
2550
  k(r);
2543
- let z = R;
2544
- for (; z < n.events.length; )
2545
- n.events[z][1].end = {
2551
+ let O = M;
2552
+ for (; O < n.events.length; )
2553
+ n.events[O][1].end = {
2546
2554
  ...x
2547
- }, z++;
2548
- return ae(n.events, N + 1, 0, n.events.slice(R)), n.events.length = z, u(S);
2555
+ }, O++;
2556
+ return ae(n.events, F + 1, 0, n.events.slice(M)), n.events.length = O, u(S);
2549
2557
  }
2550
2558
  return a(S);
2551
2559
  }
@@ -2580,18 +2588,18 @@ function ao(e) {
2580
2588
  _tokenizer: i,
2581
2589
  contentType: "flow",
2582
2590
  previous: o
2583
- }), w(S);
2591
+ }), b(S);
2584
2592
  }
2585
- function w(S) {
2593
+ function b(S) {
2586
2594
  if (S === null) {
2587
2595
  C(e.exit("chunkFlow"), !0), k(0), e.consume(S);
2588
2596
  return;
2589
2597
  }
2590
- return L(S) ? (e.consume(S), C(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(S), w);
2598
+ return L(S) ? (e.consume(S), C(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(S), b);
2591
2599
  }
2592
- function C(S, R) {
2593
- const N = n.sliceStream(S);
2594
- if (R && N.push(null), S.previous = o, o && (o.next = S), o = S, i.defineSkip(S.start), i.write(N), n.parser.lazy[S.start.line]) {
2600
+ function C(S, M) {
2601
+ const F = n.sliceStream(S);
2602
+ if (M && F.push(null), S.previous = o, o && (o.next = S), o = S, i.defineSkip(S.start), i.write(F), n.parser.lazy[S.start.line]) {
2595
2603
  let x = i.events.length;
2596
2604
  for (; x--; )
2597
2605
  if (
@@ -2601,28 +2609,28 @@ function ao(e) {
2601
2609
  i.events[x][1].end.offset > l)
2602
2610
  )
2603
2611
  return;
2604
- const z = n.events.length;
2605
- let M = z, F, y;
2606
- for (; M--; )
2607
- if (n.events[M][0] === "exit" && n.events[M][1].type === "chunkFlow") {
2608
- if (F) {
2609
- y = n.events[M][1].end;
2612
+ const O = n.events.length;
2613
+ let H = O, D, y;
2614
+ for (; H--; )
2615
+ if (n.events[H][0] === "exit" && n.events[H][1].type === "chunkFlow") {
2616
+ if (D) {
2617
+ y = n.events[H][1].end;
2610
2618
  break;
2611
2619
  }
2612
- F = !0;
2620
+ D = !0;
2613
2621
  }
2614
- for (k(r), x = z; x < n.events.length; )
2622
+ for (k(r), x = O; x < n.events.length; )
2615
2623
  n.events[x][1].end = {
2616
2624
  ...y
2617
2625
  }, x++;
2618
- ae(n.events, M + 1, 0, n.events.slice(z)), n.events.length = x;
2626
+ ae(n.events, H + 1, 0, n.events.slice(O)), n.events.length = x;
2619
2627
  }
2620
2628
  }
2621
2629
  function k(S) {
2622
- let R = t.length;
2623
- for (; R-- > S; ) {
2624
- const N = t[R];
2625
- n.containerState = N[1], N[0].exit.call(n, e);
2630
+ let M = t.length;
2631
+ for (; M-- > S; ) {
2632
+ const F = t[M];
2633
+ n.containerState = F[1], F[0].exit.call(n, e);
2626
2634
  }
2627
2635
  t.length = S;
2628
2636
  }
@@ -2764,14 +2772,14 @@ function po(e, n, t) {
2764
2772
  return t(p);
2765
2773
  }
2766
2774
  }
2767
- const lt = {
2775
+ const at = {
2768
2776
  partial: !0,
2769
2777
  tokenize: ho
2770
2778
  };
2771
2779
  function ho(e, n, t) {
2772
2780
  return r;
2773
2781
  function r(o) {
2774
- return H(o) ? q(e, i, "linePrefix")(o) : i(o);
2782
+ return j(o) ? q(e, i, "linePrefix")(o) : i(o);
2775
2783
  }
2776
2784
  function i(o) {
2777
2785
  return o === null || L(o) ? n(o) : t(o);
@@ -2798,14 +2806,14 @@ function mo(e, n, t) {
2798
2806
  return t(l);
2799
2807
  }
2800
2808
  function o(l) {
2801
- return H(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
2809
+ return j(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(l));
2802
2810
  }
2803
2811
  }
2804
2812
  function go(e, n, t) {
2805
2813
  const r = this;
2806
2814
  return i;
2807
2815
  function i(l) {
2808
- return H(l) ? q(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
2816
+ return j(l) ? q(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
2809
2817
  }
2810
2818
  function o(l) {
2811
2819
  return e.attempt(Nr, n, t)(l);
@@ -2863,7 +2871,7 @@ const qn = {
2863
2871
  function bo(e, n, t) {
2864
2872
  const r = this, i = {
2865
2873
  partial: !0,
2866
- tokenize: N
2874
+ tokenize: F
2867
2875
  };
2868
2876
  let o = 0, l = 0, a;
2869
2877
  return s;
@@ -2871,19 +2879,19 @@ function bo(e, n, t) {
2871
2879
  return u(x);
2872
2880
  }
2873
2881
  function u(x) {
2874
- const z = r.events[r.events.length - 1];
2875
- return o = z && z[1].type === "linePrefix" ? z[2].sliceSerialize(z[1], !0).length : 0, a = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(x);
2882
+ const O = r.events[r.events.length - 1];
2883
+ return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(x);
2876
2884
  }
2877
2885
  function f(x) {
2878
- return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), H(x) ? q(e, c, "whitespace")(x) : c(x));
2886
+ return x === a ? (l++, e.consume(x), f) : l < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), j(x) ? q(e, c, "whitespace")(x) : c(x));
2879
2887
  }
2880
2888
  function c(x) {
2881
- return x === null || L(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(qn, w, R)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2889
+ return x === null || L(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(qn, b, M)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
2882
2890
  contentType: "string"
2883
2891
  }), h(x));
2884
2892
  }
2885
2893
  function h(x) {
2886
- return x === null || L(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) : H(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(x)) : x === 96 && x === a ? t(x) : (e.consume(x), h);
2894
+ return x === null || L(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(x)) : j(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), q(e, p, "whitespace")(x)) : x === 96 && x === a ? t(x) : (e.consume(x), h);
2887
2895
  }
2888
2896
  function p(x) {
2889
2897
  return x === null || L(x) ? c(x) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -2893,41 +2901,41 @@ function bo(e, n, t) {
2893
2901
  function g(x) {
2894
2902
  return x === null || L(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(x)) : x === 96 && x === a ? t(x) : (e.consume(x), g);
2895
2903
  }
2896
- function w(x) {
2897
- return e.attempt(i, R, C)(x);
2904
+ function b(x) {
2905
+ return e.attempt(i, M, C)(x);
2898
2906
  }
2899
2907
  function C(x) {
2900
2908
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), k;
2901
2909
  }
2902
2910
  function k(x) {
2903
- return o > 0 && H(x) ? q(e, I, "linePrefix", o + 1)(x) : I(x);
2911
+ return o > 0 && j(x) ? q(e, I, "linePrefix", o + 1)(x) : I(x);
2904
2912
  }
2905
2913
  function I(x) {
2906
- return x === null || L(x) ? e.check(qn, w, R)(x) : (e.enter("codeFlowValue"), S(x));
2914
+ return x === null || L(x) ? e.check(qn, b, M)(x) : (e.enter("codeFlowValue"), S(x));
2907
2915
  }
2908
2916
  function S(x) {
2909
2917
  return x === null || L(x) ? (e.exit("codeFlowValue"), I(x)) : (e.consume(x), S);
2910
2918
  }
2911
- function R(x) {
2919
+ function M(x) {
2912
2920
  return e.exit("codeFenced"), n(x);
2913
2921
  }
2914
- function N(x, z, M) {
2915
- let F = 0;
2922
+ function F(x, O, H) {
2923
+ let D = 0;
2916
2924
  return y;
2917
- function y(P) {
2918
- return x.enter("lineEnding"), x.consume(P), x.exit("lineEnding"), _;
2925
+ function y(A) {
2926
+ return x.enter("lineEnding"), x.consume(A), x.exit("lineEnding"), T;
2919
2927
  }
2920
- function _(P) {
2921
- return x.enter("codeFencedFence"), H(P) ? q(x, T, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(P) : T(P);
2928
+ function T(A) {
2929
+ return x.enter("codeFencedFence"), j(A) ? q(x, P, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : P(A);
2922
2930
  }
2923
- function T(P) {
2924
- return P === a ? (x.enter("codeFencedFenceSequence"), j(P)) : M(P);
2931
+ function P(A) {
2932
+ return A === a ? (x.enter("codeFencedFenceSequence"), B(A)) : H(A);
2925
2933
  }
2926
- function j(P) {
2927
- return P === a ? (F++, x.consume(P), j) : F >= l ? (x.exit("codeFencedFenceSequence"), H(P) ? q(x, D, "whitespace")(P) : D(P)) : M(P);
2934
+ function B(A) {
2935
+ return A === a ? (D++, x.consume(A), B) : D >= l ? (x.exit("codeFencedFenceSequence"), j(A) ? q(x, z, "whitespace")(A) : z(A)) : H(A);
2928
2936
  }
2929
- function D(P) {
2930
- return P === null || L(P) ? (x.exit("codeFencedFence"), z(P)) : M(P);
2937
+ function z(A) {
2938
+ return A === null || L(A) ? (x.exit("codeFencedFence"), O(A)) : H(A);
2931
2939
  }
2932
2940
  }
2933
2941
  }
@@ -2983,7 +2991,7 @@ const Eo = {
2983
2991
  name: "codeText",
2984
2992
  previous: Ao,
2985
2993
  resolve: Io,
2986
- tokenize: To
2994
+ tokenize: _o
2987
2995
  };
2988
2996
  function Io(e) {
2989
2997
  let n = e.length - 4, t = 3, r, i;
@@ -3001,7 +3009,7 @@ function Io(e) {
3001
3009
  function Ao(e) {
3002
3010
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
3003
3011
  }
3004
- function To(e, n, t) {
3012
+ function _o(e, n, t) {
3005
3013
  let r = 0, i, o;
3006
3014
  return l;
3007
3015
  function l(c) {
@@ -3020,7 +3028,7 @@ function To(e, n, t) {
3020
3028
  return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(c)) : (o.type = "codeTextData", u(c));
3021
3029
  }
3022
3030
  }
3023
- class _o {
3031
+ class To {
3024
3032
  /**
3025
3033
  * @param {ReadonlyArray<T> | null | undefined} [initial]
3026
3034
  * Initial items (optional).
@@ -3100,7 +3108,7 @@ class _o {
3100
3108
  const i = t || 0;
3101
3109
  this.setCursor(Math.trunc(n));
3102
3110
  const o = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
3103
- return r && Ye(this.left, r), o.reverse();
3111
+ return r && Ge(this.left, r), o.reverse();
3104
3112
  }
3105
3113
  /**
3106
3114
  * Remove and return the highest-numbered item in the array, so
@@ -3135,7 +3143,7 @@ class _o {
3135
3143
  * Nothing.
3136
3144
  */
3137
3145
  pushMany(n) {
3138
- this.setCursor(Number.POSITIVE_INFINITY), Ye(this.left, n);
3146
+ this.setCursor(Number.POSITIVE_INFINITY), Ge(this.left, n);
3139
3147
  }
3140
3148
  /**
3141
3149
  * Inserts a single item to the low-numbered side of the array;
@@ -3159,7 +3167,7 @@ class _o {
3159
3167
  * Nothing.
3160
3168
  */
3161
3169
  unshiftMany(n) {
3162
- this.setCursor(0), Ye(this.right, n.reverse());
3170
+ this.setCursor(0), Ge(this.right, n.reverse());
3163
3171
  }
3164
3172
  /**
3165
3173
  * Move the cursor to a specific position in the array. Requires
@@ -3177,14 +3185,14 @@ class _o {
3177
3185
  if (!(n === this.left.length || n > this.left.length && this.right.length === 0 || n < 0 && this.left.length === 0))
3178
3186
  if (n < this.left.length) {
3179
3187
  const t = this.left.splice(n, Number.POSITIVE_INFINITY);
3180
- Ye(this.right, t.reverse());
3188
+ Ge(this.right, t.reverse());
3181
3189
  } else {
3182
3190
  const t = this.right.splice(this.left.length + this.right.length - n, Number.POSITIVE_INFINITY);
3183
- Ye(this.left, t.reverse());
3191
+ Ge(this.left, t.reverse());
3184
3192
  }
3185
3193
  }
3186
3194
  }
3187
- function Ye(e, n) {
3195
+ function Ge(e, n) {
3188
3196
  let t = 0;
3189
3197
  if (n.length < 1e4)
3190
3198
  e.push(...n);
@@ -3195,7 +3203,7 @@ function Ye(e, n) {
3195
3203
  function jr(e) {
3196
3204
  const n = {};
3197
3205
  let t = -1, r, i, o, l, a, s, u;
3198
- const f = new _o(e);
3206
+ const f = new To(e);
3199
3207
  for (; ++t < f.length; ) {
3200
3208
  for (; t in n; )
3201
3209
  t = n[t];
@@ -3223,8 +3231,8 @@ function Po(e, n) {
3223
3231
  let l = t._tokenizer;
3224
3232
  l || (l = r.parser[t.contentType](t.start), t._contentTypeTextTrailing && (l._contentTypeTextTrailing = !0));
3225
3233
  const a = l.events, s = [], u = {};
3226
- let f, c, h = -1, p = t, g = 0, w = 0;
3227
- const C = [w];
3234
+ let f, c, h = -1, p = t, g = 0, b = 0;
3235
+ const C = [b];
3228
3236
  for (; p; ) {
3229
3237
  for (; e.get(++i)[1] !== p; )
3230
3238
  ;
@@ -3232,7 +3240,7 @@ function Po(e, n) {
3232
3240
  }
3233
3241
  for (p = t; ++h < a.length; )
3234
3242
  // Find a void token that includes a break.
3235
- a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (w = h + 1, C.push(w), p._tokenizer = void 0, p.previous = void 0, p = p.next);
3243
+ a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (b = h + 1, C.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
3236
3244
  for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : C.pop(), h = C.length; h--; ) {
3237
3245
  const k = a.slice(C[h], C[h + 1]), I = o.pop();
3238
3246
  s.push([I, I + k.length - 1]), e.splice(I, 2, k);
@@ -3243,15 +3251,15 @@ function Po(e, n) {
3243
3251
  }
3244
3252
  const zo = {
3245
3253
  resolve: Do,
3246
- tokenize: Fo
3254
+ tokenize: Mo
3247
3255
  }, Lo = {
3248
3256
  partial: !0,
3249
- tokenize: Mo
3257
+ tokenize: Fo
3250
3258
  };
3251
3259
  function Do(e) {
3252
3260
  return jr(e), e;
3253
3261
  }
3254
- function Fo(e, n) {
3262
+ function Mo(e, n) {
3255
3263
  let t;
3256
3264
  return r;
3257
3265
  function r(a) {
@@ -3272,7 +3280,7 @@ function Fo(e, n) {
3272
3280
  }), t = t.next, i;
3273
3281
  }
3274
3282
  }
3275
- function Mo(e, n, t) {
3283
+ function Fo(e, n, t) {
3276
3284
  const r = this;
3277
3285
  return i;
3278
3286
  function i(l) {
@@ -3292,7 +3300,7 @@ function Hr(e, n, t, r, i, o, l, a, s) {
3292
3300
  function c(k) {
3293
3301
  return k === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(k), e.exit(o), h) : k === null || k === 32 || k === 41 || kt(k) ? t(k) : (e.enter(r), e.enter(l), e.enter(a), e.enter("chunkString", {
3294
3302
  contentType: "string"
3295
- }), w(k));
3303
+ }), b(k));
3296
3304
  }
3297
3305
  function h(k) {
3298
3306
  return k === 62 ? (e.enter(o), e.consume(k), e.exit(o), e.exit(i), e.exit(r), n) : (e.enter(a), e.enter("chunkString", {
@@ -3305,11 +3313,11 @@ function Hr(e, n, t, r, i, o, l, a, s) {
3305
3313
  function g(k) {
3306
3314
  return k === 60 || k === 62 || k === 92 ? (e.consume(k), p) : p(k);
3307
3315
  }
3308
- function w(k) {
3309
- return !f && (k === null || k === 41 || Q(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), n(k)) : f < u && k === 40 ? (e.consume(k), f++, w) : k === 41 ? (e.consume(k), f--, w) : k === null || k === 32 || k === 40 || kt(k) ? t(k) : (e.consume(k), k === 92 ? C : w);
3316
+ function b(k) {
3317
+ return !f && (k === null || k === 41 || Q(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), n(k)) : f < u && k === 40 ? (e.consume(k), f++, b) : k === 41 ? (e.consume(k), f--, b) : k === null || k === 32 || k === 40 || kt(k) ? t(k) : (e.consume(k), k === 92 ? C : b);
3310
3318
  }
3311
3319
  function C(k) {
3312
- return k === 40 || k === 41 || k === 92 ? (e.consume(k), w) : w(k);
3320
+ return k === 40 || k === 41 || k === 92 ? (e.consume(k), b) : b(k);
3313
3321
  }
3314
3322
  }
3315
3323
  function $r(e, n, t, r, i, o) {
@@ -3330,7 +3338,7 @@ function $r(e, n, t, r, i, o) {
3330
3338
  }), c(p));
3331
3339
  }
3332
3340
  function c(p) {
3333
- return p === null || p === 91 || p === 93 || L(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s = !H(p)), p === 92 ? h : c);
3341
+ return p === null || p === 91 || p === 93 || L(p) || a++ > 999 ? (e.exit("chunkString"), f(p)) : (e.consume(p), s || (s = !j(p)), p === 92 ? h : c);
3334
3342
  }
3335
3343
  function h(p) {
3336
3344
  return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, c) : c(p);
@@ -3357,11 +3365,11 @@ function qr(e, n, t, r, i, o) {
3357
3365
  return h === l || h === 92 ? (e.consume(h), f) : f(h);
3358
3366
  }
3359
3367
  }
3360
- function Ze(e, n) {
3368
+ function nt(e, n) {
3361
3369
  let t;
3362
3370
  return r;
3363
3371
  function r(i) {
3364
- return L(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : H(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3372
+ return L(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : j(i) ? q(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
3365
3373
  }
3366
3374
  }
3367
3375
  const Ro = {
@@ -3394,7 +3402,7 @@ function Oo(e, n, t) {
3394
3402
  return i = he(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), s) : t(p);
3395
3403
  }
3396
3404
  function s(p) {
3397
- return Q(p) ? Ze(e, u)(p) : u(p);
3405
+ return Q(p) ? nt(e, u)(p) : u(p);
3398
3406
  }
3399
3407
  function u(p) {
3400
3408
  return Hr(
@@ -3413,7 +3421,7 @@ function Oo(e, n, t) {
3413
3421
  return e.attempt(No, c, c)(p);
3414
3422
  }
3415
3423
  function c(p) {
3416
- return H(p) ? q(e, h, "whitespace")(p) : h(p);
3424
+ return j(p) ? q(e, h, "whitespace")(p) : h(p);
3417
3425
  }
3418
3426
  function h(p) {
3419
3427
  return p === null || L(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
@@ -3422,13 +3430,13 @@ function Oo(e, n, t) {
3422
3430
  function Bo(e, n, t) {
3423
3431
  return r;
3424
3432
  function r(a) {
3425
- return Q(a) ? Ze(e, i)(a) : t(a);
3433
+ return Q(a) ? nt(e, i)(a) : t(a);
3426
3434
  }
3427
3435
  function i(a) {
3428
3436
  return qr(e, o, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
3429
3437
  }
3430
3438
  function o(a) {
3431
- return H(a) ? q(e, l, "whitespace")(a) : l(a);
3439
+ return j(a) ? q(e, l, "whitespace")(a) : l(a);
3432
3440
  }
3433
3441
  function l(a) {
3434
3442
  return a === null || L(a) ? n(a) : t(a);
@@ -3478,7 +3486,7 @@ function Vo(e, n, t) {
3478
3486
  return f === 35 && r++ < 6 ? (e.consume(f), l) : f === null || Q(f) ? (e.exit("atxHeadingSequence"), a(f)) : t(f);
3479
3487
  }
3480
3488
  function a(f) {
3481
- return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || L(f) ? (e.exit("atxHeading"), n(f)) : H(f) ? q(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3489
+ return f === 35 ? (e.enter("atxHeadingSequence"), s(f)) : f === null || L(f) ? (e.exit("atxHeading"), n(f)) : j(f) ? q(e, a, "whitespace")(f) : (e.enter("atxHeadingText"), u(f));
3482
3490
  }
3483
3491
  function s(f) {
3484
3492
  return f === 35 ? (e.consume(f), s) : (e.exit("atxHeadingSequence"), a(f));
@@ -3579,7 +3587,7 @@ function Go(e, n, t) {
3579
3587
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(d), c;
3580
3588
  }
3581
3589
  function c(d) {
3582
- return d === 33 ? (e.consume(d), h) : d === 47 ? (e.consume(d), o = !0, w) : d === 63 ? (e.consume(d), i = 3, r.interrupt ? n : m) : te(d) ? (e.consume(d), l = String.fromCharCode(d), C) : t(d);
3590
+ return d === 33 ? (e.consume(d), h) : d === 47 ? (e.consume(d), o = !0, b) : d === 63 ? (e.consume(d), i = 3, r.interrupt ? n : m) : te(d) ? (e.consume(d), l = String.fromCharCode(d), C) : t(d);
3583
3591
  }
3584
3592
  function h(d) {
3585
3593
  return d === 45 ? (e.consume(d), i = 2, p) : d === 91 ? (e.consume(d), i = 5, a = 0, g) : te(d) ? (e.consume(d), i = 4, r.interrupt ? n : m) : t(d);
@@ -3589,81 +3597,81 @@ function Go(e, n, t) {
3589
3597
  }
3590
3598
  function g(d) {
3591
3599
  const fe = "CDATA[";
3592
- return d === fe.charCodeAt(a++) ? (e.consume(d), a === fe.length ? r.interrupt ? n : T : g) : t(d);
3600
+ return d === fe.charCodeAt(a++) ? (e.consume(d), a === fe.length ? r.interrupt ? n : P : g) : t(d);
3593
3601
  }
3594
- function w(d) {
3602
+ function b(d) {
3595
3603
  return te(d) ? (e.consume(d), l = String.fromCharCode(d), C) : t(d);
3596
3604
  }
3597
3605
  function C(d) {
3598
3606
  if (d === null || d === 47 || d === 62 || Q(d)) {
3599
3607
  const fe = d === 47, Ae = l.toLowerCase();
3600
- return !fe && !o && Un.includes(Ae) ? (i = 1, r.interrupt ? n(d) : T(d)) : Uo.includes(l.toLowerCase()) ? (i = 6, fe ? (e.consume(d), k) : r.interrupt ? n(d) : T(d)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(d) : o ? I(d) : S(d));
3608
+ return !fe && !o && Un.includes(Ae) ? (i = 1, r.interrupt ? n(d) : P(d)) : Uo.includes(l.toLowerCase()) ? (i = 6, fe ? (e.consume(d), k) : r.interrupt ? n(d) : P(d)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(d) : o ? I(d) : S(d));
3601
3609
  }
3602
3610
  return d === 45 || K(d) ? (e.consume(d), l += String.fromCharCode(d), C) : t(d);
3603
3611
  }
3604
3612
  function k(d) {
3605
- return d === 62 ? (e.consume(d), r.interrupt ? n : T) : t(d);
3613
+ return d === 62 ? (e.consume(d), r.interrupt ? n : P) : t(d);
3606
3614
  }
3607
3615
  function I(d) {
3608
- return H(d) ? (e.consume(d), I) : y(d);
3616
+ return j(d) ? (e.consume(d), I) : y(d);
3609
3617
  }
3610
3618
  function S(d) {
3611
- return d === 47 ? (e.consume(d), y) : d === 58 || d === 95 || te(d) ? (e.consume(d), R) : H(d) ? (e.consume(d), S) : y(d);
3619
+ return d === 47 ? (e.consume(d), y) : d === 58 || d === 95 || te(d) ? (e.consume(d), M) : j(d) ? (e.consume(d), S) : y(d);
3612
3620
  }
3613
- function R(d) {
3614
- return d === 45 || d === 46 || d === 58 || d === 95 || K(d) ? (e.consume(d), R) : N(d);
3621
+ function M(d) {
3622
+ return d === 45 || d === 46 || d === 58 || d === 95 || K(d) ? (e.consume(d), M) : F(d);
3615
3623
  }
3616
- function N(d) {
3617
- return d === 61 ? (e.consume(d), x) : H(d) ? (e.consume(d), N) : S(d);
3624
+ function F(d) {
3625
+ return d === 61 ? (e.consume(d), x) : j(d) ? (e.consume(d), F) : S(d);
3618
3626
  }
3619
3627
  function x(d) {
3620
- return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), s = d, z) : H(d) ? (e.consume(d), x) : M(d);
3628
+ return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? t(d) : d === 34 || d === 39 ? (e.consume(d), s = d, O) : j(d) ? (e.consume(d), x) : H(d);
3621
3629
  }
3622
- function z(d) {
3623
- return d === s ? (e.consume(d), s = null, F) : d === null || L(d) ? t(d) : (e.consume(d), z);
3630
+ function O(d) {
3631
+ return d === s ? (e.consume(d), s = null, D) : d === null || L(d) ? t(d) : (e.consume(d), O);
3624
3632
  }
3625
- function M(d) {
3626
- return d === null || d === 34 || d === 39 || d === 47 || d === 60 || d === 61 || d === 62 || d === 96 || Q(d) ? N(d) : (e.consume(d), M);
3633
+ function H(d) {
3634
+ return d === null || d === 34 || d === 39 || d === 47 || d === 60 || d === 61 || d === 62 || d === 96 || Q(d) ? F(d) : (e.consume(d), H);
3627
3635
  }
3628
- function F(d) {
3629
- return d === 47 || d === 62 || H(d) ? S(d) : t(d);
3636
+ function D(d) {
3637
+ return d === 47 || d === 62 || j(d) ? S(d) : t(d);
3630
3638
  }
3631
3639
  function y(d) {
3632
- return d === 62 ? (e.consume(d), _) : t(d);
3633
- }
3634
- function _(d) {
3635
- return d === null || L(d) ? T(d) : H(d) ? (e.consume(d), _) : t(d);
3640
+ return d === 62 ? (e.consume(d), T) : t(d);
3636
3641
  }
3637
3642
  function T(d) {
3638
- return d === 45 && i === 2 ? (e.consume(d), V) : d === 60 && i === 1 ? (e.consume(d), G) : d === 62 && i === 4 ? (e.consume(d), ce) : d === 63 && i === 3 ? (e.consume(d), m) : d === 93 && i === 5 ? (e.consume(d), ye) : L(d) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Qo, ke, j)(d)) : d === null || L(d) ? (e.exit("htmlFlowData"), j(d)) : (e.consume(d), T);
3643
+ return d === null || L(d) ? P(d) : j(d) ? (e.consume(d), T) : t(d);
3639
3644
  }
3640
- function j(d) {
3641
- return e.check(Yo, D, ke)(d);
3645
+ function P(d) {
3646
+ return d === 45 && i === 2 ? (e.consume(d), V) : d === 60 && i === 1 ? (e.consume(d), G) : d === 62 && i === 4 ? (e.consume(d), ce) : d === 63 && i === 3 ? (e.consume(d), m) : d === 93 && i === 5 ? (e.consume(d), ye) : L(d) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Qo, ke, B)(d)) : d === null || L(d) ? (e.exit("htmlFlowData"), B(d)) : (e.consume(d), P);
3642
3647
  }
3643
- function D(d) {
3644
- return e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), P;
3648
+ function B(d) {
3649
+ return e.check(Yo, z, ke)(d);
3645
3650
  }
3646
- function P(d) {
3647
- return d === null || L(d) ? j(d) : (e.enter("htmlFlowData"), T(d));
3651
+ function z(d) {
3652
+ return e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), A;
3653
+ }
3654
+ function A(d) {
3655
+ return d === null || L(d) ? B(d) : (e.enter("htmlFlowData"), P(d));
3648
3656
  }
3649
3657
  function V(d) {
3650
- return d === 45 ? (e.consume(d), m) : T(d);
3658
+ return d === 45 ? (e.consume(d), m) : P(d);
3651
3659
  }
3652
3660
  function G(d) {
3653
- return d === 47 ? (e.consume(d), l = "", ue) : T(d);
3661
+ return d === 47 ? (e.consume(d), l = "", ue) : P(d);
3654
3662
  }
3655
3663
  function ue(d) {
3656
3664
  if (d === 62) {
3657
3665
  const fe = l.toLowerCase();
3658
- return Un.includes(fe) ? (e.consume(d), ce) : T(d);
3666
+ return Un.includes(fe) ? (e.consume(d), ce) : P(d);
3659
3667
  }
3660
- return te(d) && l.length < 8 ? (e.consume(d), l += String.fromCharCode(d), ue) : T(d);
3668
+ return te(d) && l.length < 8 ? (e.consume(d), l += String.fromCharCode(d), ue) : P(d);
3661
3669
  }
3662
3670
  function ye(d) {
3663
- return d === 93 ? (e.consume(d), m) : T(d);
3671
+ return d === 93 ? (e.consume(d), m) : P(d);
3664
3672
  }
3665
3673
  function m(d) {
3666
- return d === 62 ? (e.consume(d), ce) : d === 45 && i === 2 ? (e.consume(d), m) : T(d);
3674
+ return d === 62 ? (e.consume(d), ce) : d === 45 && i === 2 ? (e.consume(d), m) : P(d);
3667
3675
  }
3668
3676
  function ce(d) {
3669
3677
  return d === null || L(d) ? (e.exit("htmlFlowData"), ke(d)) : (e.consume(d), ce);
@@ -3685,7 +3693,7 @@ function Jo(e, n, t) {
3685
3693
  function Ko(e, n, t) {
3686
3694
  return r;
3687
3695
  function r(i) {
3688
- return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(lt, n, t);
3696
+ return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(at, n, t);
3689
3697
  }
3690
3698
  }
3691
3699
  const Zo = {
@@ -3700,7 +3708,7 @@ function ea(e, n, t) {
3700
3708
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), s;
3701
3709
  }
3702
3710
  function s(m) {
3703
- return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), N) : m === 63 ? (e.consume(m), S) : te(m) ? (e.consume(m), M) : t(m);
3711
+ return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), S) : te(m) ? (e.consume(m), H) : t(m);
3704
3712
  }
3705
3713
  function u(m) {
3706
3714
  return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), o = 0, g) : te(m) ? (e.consume(m), I) : t(m);
@@ -3719,58 +3727,58 @@ function ea(e, n, t) {
3719
3727
  }
3720
3728
  function g(m) {
3721
3729
  const ce = "CDATA[";
3722
- return m === ce.charCodeAt(o++) ? (e.consume(m), o === ce.length ? w : g) : t(m);
3730
+ return m === ce.charCodeAt(o++) ? (e.consume(m), o === ce.length ? b : g) : t(m);
3723
3731
  }
3724
- function w(m) {
3725
- return m === null ? t(m) : m === 93 ? (e.consume(m), C) : L(m) ? (l = w, G(m)) : (e.consume(m), w);
3732
+ function b(m) {
3733
+ return m === null ? t(m) : m === 93 ? (e.consume(m), C) : L(m) ? (l = b, G(m)) : (e.consume(m), b);
3726
3734
  }
3727
3735
  function C(m) {
3728
- return m === 93 ? (e.consume(m), k) : w(m);
3736
+ return m === 93 ? (e.consume(m), k) : b(m);
3729
3737
  }
3730
3738
  function k(m) {
3731
- return m === 62 ? V(m) : m === 93 ? (e.consume(m), k) : w(m);
3739
+ return m === 62 ? V(m) : m === 93 ? (e.consume(m), k) : b(m);
3732
3740
  }
3733
3741
  function I(m) {
3734
3742
  return m === null || m === 62 ? V(m) : L(m) ? (l = I, G(m)) : (e.consume(m), I);
3735
3743
  }
3736
3744
  function S(m) {
3737
- return m === null ? t(m) : m === 63 ? (e.consume(m), R) : L(m) ? (l = S, G(m)) : (e.consume(m), S);
3745
+ return m === null ? t(m) : m === 63 ? (e.consume(m), M) : L(m) ? (l = S, G(m)) : (e.consume(m), S);
3738
3746
  }
3739
- function R(m) {
3747
+ function M(m) {
3740
3748
  return m === 62 ? V(m) : S(m);
3741
3749
  }
3742
- function N(m) {
3750
+ function F(m) {
3743
3751
  return te(m) ? (e.consume(m), x) : t(m);
3744
3752
  }
3745
3753
  function x(m) {
3746
- return m === 45 || K(m) ? (e.consume(m), x) : z(m);
3754
+ return m === 45 || K(m) ? (e.consume(m), x) : O(m);
3747
3755
  }
3748
- function z(m) {
3749
- return L(m) ? (l = z, G(m)) : H(m) ? (e.consume(m), z) : V(m);
3756
+ function O(m) {
3757
+ return L(m) ? (l = O, G(m)) : j(m) ? (e.consume(m), O) : V(m);
3750
3758
  }
3751
- function M(m) {
3752
- return m === 45 || K(m) ? (e.consume(m), M) : m === 47 || m === 62 || Q(m) ? F(m) : t(m);
3759
+ function H(m) {
3760
+ return m === 45 || K(m) ? (e.consume(m), H) : m === 47 || m === 62 || Q(m) ? D(m) : t(m);
3753
3761
  }
3754
- function F(m) {
3755
- return m === 47 ? (e.consume(m), V) : m === 58 || m === 95 || te(m) ? (e.consume(m), y) : L(m) ? (l = F, G(m)) : H(m) ? (e.consume(m), F) : V(m);
3762
+ function D(m) {
3763
+ return m === 47 ? (e.consume(m), V) : m === 58 || m === 95 || te(m) ? (e.consume(m), y) : L(m) ? (l = D, G(m)) : j(m) ? (e.consume(m), D) : V(m);
3756
3764
  }
3757
3765
  function y(m) {
3758
- return m === 45 || m === 46 || m === 58 || m === 95 || K(m) ? (e.consume(m), y) : _(m);
3759
- }
3760
- function _(m) {
3761
- return m === 61 ? (e.consume(m), T) : L(m) ? (l = _, G(m)) : H(m) ? (e.consume(m), _) : F(m);
3766
+ return m === 45 || m === 46 || m === 58 || m === 95 || K(m) ? (e.consume(m), y) : T(m);
3762
3767
  }
3763
3768
  function T(m) {
3764
- return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), i = m, j) : L(m) ? (l = T, G(m)) : H(m) ? (e.consume(m), T) : (e.consume(m), D);
3769
+ return m === 61 ? (e.consume(m), P) : L(m) ? (l = T, G(m)) : j(m) ? (e.consume(m), T) : D(m);
3765
3770
  }
3766
- function j(m) {
3767
- return m === i ? (e.consume(m), i = void 0, P) : m === null ? t(m) : L(m) ? (l = j, G(m)) : (e.consume(m), j);
3771
+ function P(m) {
3772
+ return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), i = m, B) : L(m) ? (l = P, G(m)) : j(m) ? (e.consume(m), P) : (e.consume(m), z);
3768
3773
  }
3769
- function D(m) {
3770
- return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? t(m) : m === 47 || m === 62 || Q(m) ? F(m) : (e.consume(m), D);
3774
+ function B(m) {
3775
+ return m === i ? (e.consume(m), i = void 0, A) : m === null ? t(m) : L(m) ? (l = B, G(m)) : (e.consume(m), B);
3771
3776
  }
3772
- function P(m) {
3773
- return m === 47 || m === 62 || Q(m) ? F(m) : t(m);
3777
+ function z(m) {
3778
+ return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? t(m) : m === 47 || m === 62 || Q(m) ? D(m) : (e.consume(m), z);
3779
+ }
3780
+ function A(m) {
3781
+ return m === 47 || m === 62 || Q(m) ? D(m) : t(m);
3774
3782
  }
3775
3783
  function V(m) {
3776
3784
  return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(m);
@@ -3779,7 +3787,7 @@ function ea(e, n, t) {
3779
3787
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ue;
3780
3788
  }
3781
3789
  function ue(m) {
3782
- return H(m) ? q(e, ye, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(m) : ye(m);
3790
+ return j(m) ? q(e, ye, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(m) : ye(m);
3783
3791
  }
3784
3792
  function ye(m) {
3785
3793
  return e.enter("htmlTextData"), l(m);
@@ -3883,13 +3891,13 @@ function aa(e, n, t) {
3883
3891
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
3884
3892
  }
3885
3893
  function i(c) {
3886
- return Q(c) ? Ze(e, o)(c) : o(c);
3894
+ return Q(c) ? nt(e, o)(c) : o(c);
3887
3895
  }
3888
3896
  function o(c) {
3889
3897
  return c === 41 ? f(c) : Hr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
3890
3898
  }
3891
3899
  function l(c) {
3892
- return Q(c) ? Ze(e, s)(c) : f(c);
3900
+ return Q(c) ? nt(e, s)(c) : f(c);
3893
3901
  }
3894
3902
  function a(c) {
3895
3903
  return t(c);
@@ -3898,7 +3906,7 @@ function aa(e, n, t) {
3898
3906
  return c === 34 || c === 39 || c === 40 ? qr(e, u, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
3899
3907
  }
3900
3908
  function u(c) {
3901
- return Q(c) ? Ze(e, f)(c) : f(c);
3909
+ return Q(c) ? nt(e, f)(c) : f(c);
3902
3910
  }
3903
3911
  function f(c) {
3904
3912
  return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), n) : t(c);
@@ -3986,7 +3994,7 @@ function da(e, n, t) {
3986
3994
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || L(u)) ? (e.exit("thematicBreak"), n(u)) : t(u);
3987
3995
  }
3988
3996
  function s(u) {
3989
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), H(u) ? q(e, a, "whitespace")(u) : a(u));
3997
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), j(u) ? q(e, a, "whitespace")(u) : a(u));
3990
3998
  }
3991
3999
  }
3992
4000
  const ne = {
@@ -4024,7 +4032,7 @@ function ka(e, n, t) {
4024
4032
  }
4025
4033
  function u(p) {
4026
4034
  return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
4027
- lt,
4035
+ at,
4028
4036
  // Can’t be empty when interrupting.
4029
4037
  r.interrupt ? t : f,
4030
4038
  e.attempt(ga, h, c)
@@ -4034,7 +4042,7 @@ function ka(e, n, t) {
4034
4042
  return r.containerState.initialBlankLine = !0, o++, h(p);
4035
4043
  }
4036
4044
  function c(p) {
4037
- return H(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), h) : t(p);
4045
+ return j(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), h) : t(p);
4038
4046
  }
4039
4047
  function h(p) {
4040
4048
  return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
@@ -4042,12 +4050,12 @@ function ka(e, n, t) {
4042
4050
  }
4043
4051
  function xa(e, n, t) {
4044
4052
  const r = this;
4045
- return r.containerState._closeFlow = void 0, e.check(lt, i, o);
4053
+ return r.containerState._closeFlow = void 0, e.check(at, i, o);
4046
4054
  function i(a) {
4047
4055
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, q(e, n, "listItemIndent", r.containerState.size + 1)(a);
4048
4056
  }
4049
4057
  function o(a) {
4050
- return r.containerState.furtherBlankLines || !H(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(ya, n, l)(a));
4058
+ return r.containerState.furtherBlankLines || !j(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(ya, n, l)(a));
4051
4059
  }
4052
4060
  function l(a) {
4053
4061
  return r.containerState._closeFlow = !0, r.interrupt = void 0, q(e, e.attempt(ne, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
@@ -4069,7 +4077,7 @@ function Ca(e, n, t) {
4069
4077
  return q(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
4070
4078
  function i(o) {
4071
4079
  const l = r.events[r.events.length - 1];
4072
- return !H(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
4080
+ return !j(o) && l && l[1].type === "listItemPrefixWhitespace" ? n(o) : t(o);
4073
4081
  }
4074
4082
  }
4075
4083
  const Wn = {
@@ -4118,7 +4126,7 @@ function va(e, n, t) {
4118
4126
  return e.enter("setextHeadingLineSequence"), a(u);
4119
4127
  }
4120
4128
  function a(u) {
4121
- return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), H(u) ? q(e, s, "lineSuffix")(u) : s(u));
4129
+ return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), j(u) ? q(e, s, "lineSuffix")(u) : s(u));
4122
4130
  }
4123
4131
  function s(u) {
4124
4132
  return u === null || L(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
@@ -4130,7 +4138,7 @@ const Ea = {
4130
4138
  function Ia(e) {
4131
4139
  const n = this, t = e.attempt(
4132
4140
  // Try to parse a blank line.
4133
- lt,
4141
+ at,
4134
4142
  r,
4135
4143
  // Try to parse initial flow (essentially, only code).
4136
4144
  e.attempt(this.parser.constructs.flowInitial, i, q(e, e.attempt(this.parser.constructs.flow, i, e.attempt(zo, i)), "linePrefix"))
@@ -4153,7 +4161,7 @@ function Ia(e) {
4153
4161
  }
4154
4162
  const Aa = {
4155
4163
  resolveAll: Ur()
4156
- }, Ta = Vr("string"), _a = Vr("text");
4164
+ }, _a = Vr("string"), Ta = Vr("text");
4157
4165
  function Vr(e) {
4158
4166
  return {
4159
4167
  resolveAll: Ur(e === "text" ? Pa : void 0),
@@ -4262,7 +4270,7 @@ const za = {
4262
4270
  [-2]: Pt,
4263
4271
  [-1]: Pt,
4264
4272
  32: Pt
4265
- }, Fa = {
4273
+ }, Ma = {
4266
4274
  35: $o,
4267
4275
  42: yt,
4268
4276
  45: [Wn, yt],
@@ -4271,7 +4279,7 @@ const za = {
4271
4279
  95: yt,
4272
4280
  96: Vn,
4273
4281
  126: Vn
4274
- }, Ma = {
4282
+ }, Fa = {
4275
4283
  38: Br,
4276
4284
  92: Or
4277
4285
  }, Ra = {
@@ -4299,10 +4307,10 @@ const za = {
4299
4307
  contentInitial: La,
4300
4308
  disable: Ba,
4301
4309
  document: za,
4302
- flow: Fa,
4310
+ flow: Ma,
4303
4311
  flowInitial: Da,
4304
4312
  insideSpan: Na,
4305
- string: Ma,
4313
+ string: Fa,
4306
4314
  text: Ra
4307
4315
  }, Symbol.toStringTag, { value: "Module" }));
4308
4316
  function Ha(e, n, t) {
@@ -4316,18 +4324,18 @@ function Ha(e, n, t) {
4316
4324
  const i = {}, o = [];
4317
4325
  let l = [], a = [];
4318
4326
  const s = {
4319
- attempt: z(N),
4320
- check: z(x),
4327
+ attempt: O(F),
4328
+ check: O(x),
4321
4329
  consume: I,
4322
4330
  enter: S,
4323
- exit: R,
4324
- interrupt: z(x, {
4331
+ exit: M,
4332
+ interrupt: O(x, {
4325
4333
  interrupt: !0
4326
4334
  })
4327
4335
  }, u = {
4328
4336
  code: null,
4329
4337
  containerState: {},
4330
- defineSkip: w,
4338
+ defineSkip: b,
4331
4339
  events: [],
4332
4340
  now: g,
4333
4341
  parser: e,
@@ -4338,105 +4346,105 @@ function Ha(e, n, t) {
4338
4346
  };
4339
4347
  let f = n.tokenize.call(u, s);
4340
4348
  return n.resolveAll && o.push(n), u;
4341
- function c(_) {
4342
- return l = se(l, _), C(), l[l.length - 1] !== null ? [] : (M(n, 0), u.events = St(o, u.events, u), u.events);
4349
+ function c(T) {
4350
+ return l = se(l, T), C(), l[l.length - 1] !== null ? [] : (H(n, 0), u.events = St(o, u.events, u), u.events);
4343
4351
  }
4344
- function h(_, T) {
4345
- return qa(p(_), T);
4352
+ function h(T, P) {
4353
+ return qa(p(T), P);
4346
4354
  }
4347
- function p(_) {
4348
- return $a(l, _);
4355
+ function p(T) {
4356
+ return $a(l, T);
4349
4357
  }
4350
4358
  function g() {
4351
4359
  const {
4352
- _bufferIndex: _,
4353
- _index: T,
4354
- line: j,
4355
- column: D,
4356
- offset: P
4360
+ _bufferIndex: T,
4361
+ _index: P,
4362
+ line: B,
4363
+ column: z,
4364
+ offset: A
4357
4365
  } = r;
4358
4366
  return {
4359
- _bufferIndex: _,
4360
- _index: T,
4361
- line: j,
4362
- column: D,
4363
- offset: P
4367
+ _bufferIndex: T,
4368
+ _index: P,
4369
+ line: B,
4370
+ column: z,
4371
+ offset: A
4364
4372
  };
4365
4373
  }
4366
- function w(_) {
4367
- i[_.line] = _.column, y();
4374
+ function b(T) {
4375
+ i[T.line] = T.column, y();
4368
4376
  }
4369
4377
  function C() {
4370
- let _;
4378
+ let T;
4371
4379
  for (; r._index < l.length; ) {
4372
- const T = l[r._index];
4373
- if (typeof T == "string")
4374
- for (_ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === _ && r._bufferIndex < T.length; )
4375
- k(T.charCodeAt(r._bufferIndex));
4380
+ const P = l[r._index];
4381
+ if (typeof P == "string")
4382
+ for (T = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === T && r._bufferIndex < P.length; )
4383
+ k(P.charCodeAt(r._bufferIndex));
4376
4384
  else
4377
- k(T);
4385
+ k(P);
4378
4386
  }
4379
4387
  }
4380
- function k(_) {
4381
- f = f(_);
4388
+ function k(T) {
4389
+ f = f(T);
4382
4390
  }
4383
- function I(_) {
4384
- L(_) ? (r.line++, r.column = 1, r.offset += _ === -3 ? 2 : 1, y()) : _ !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4391
+ function I(T) {
4392
+ L(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, y()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
4385
4393
  // strings.
4386
4394
  /** @type {string} */
4387
- l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = _;
4395
+ l[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
4388
4396
  }
4389
- function S(_, T) {
4390
- const j = T || {};
4391
- return j.type = _, j.start = g(), u.events.push(["enter", j, u]), a.push(j), j;
4397
+ function S(T, P) {
4398
+ const B = P || {};
4399
+ return B.type = T, B.start = g(), u.events.push(["enter", B, u]), a.push(B), B;
4392
4400
  }
4393
- function R(_) {
4394
- const T = a.pop();
4395
- return T.end = g(), u.events.push(["exit", T, u]), T;
4401
+ function M(T) {
4402
+ const P = a.pop();
4403
+ return P.end = g(), u.events.push(["exit", P, u]), P;
4396
4404
  }
4397
- function N(_, T) {
4398
- M(_, T.from);
4405
+ function F(T, P) {
4406
+ H(T, P.from);
4399
4407
  }
4400
- function x(_, T) {
4401
- T.restore();
4408
+ function x(T, P) {
4409
+ P.restore();
4402
4410
  }
4403
- function z(_, T) {
4404
- return j;
4405
- function j(D, P, V) {
4411
+ function O(T, P) {
4412
+ return B;
4413
+ function B(z, A, V) {
4406
4414
  let G, ue, ye, m;
4407
- return Array.isArray(D) ? (
4415
+ return Array.isArray(z) ? (
4408
4416
  /* c8 ignore next 1 */
4409
- ke(D)
4410
- ) : "tokenize" in D ? (
4417
+ ke(z)
4418
+ ) : "tokenize" in z ? (
4411
4419
  // Looks like a construct.
4412
4420
  ke([
4413
4421
  /** @type {Construct} */
4414
- D
4422
+ z
4415
4423
  ])
4416
- ) : ce(D);
4424
+ ) : ce(z);
4417
4425
  function ce(J) {
4418
- return qe;
4419
- function qe(Se) {
4420
- const Me = Se !== null && J[Se], Re = Se !== null && J.null, at = [
4426
+ return Ve;
4427
+ function Ve(Se) {
4428
+ const Fe = Se !== null && J[Se], Re = Se !== null && J.null, ut = [
4421
4429
  // To do: add more extension tests.
4422
4430
  /* c8 ignore next 2 */
4423
- ...Array.isArray(Me) ? Me : Me ? [Me] : [],
4431
+ ...Array.isArray(Fe) ? Fe : Fe ? [Fe] : [],
4424
4432
  ...Array.isArray(Re) ? Re : Re ? [Re] : []
4425
4433
  ];
4426
- return ke(at)(Se);
4434
+ return ke(ut)(Se);
4427
4435
  }
4428
4436
  }
4429
4437
  function ke(J) {
4430
4438
  return G = J, ue = 0, J.length === 0 ? V : d(J[ue]);
4431
4439
  }
4432
4440
  function d(J) {
4433
- return qe;
4434
- function qe(Se) {
4435
- return m = F(), ye = J, J.partial || (u.currentConstruct = J), J.name && u.parser.constructs.disable.null.includes(J.name) ? Ae() : J.tokenize.call(
4441
+ return Ve;
4442
+ function Ve(Se) {
4443
+ return m = D(), ye = J, J.partial || (u.currentConstruct = J), J.name && u.parser.constructs.disable.null.includes(J.name) ? Ae() : J.tokenize.call(
4436
4444
  // If we do have fields, create an object w/ `context` as its
4437
4445
  // prototype.
4438
4446
  // This allows a “live binding”, which is needed for `interrupt`.
4439
- T ? Object.assign(Object.create(u), T) : u,
4447
+ P ? Object.assign(Object.create(u), P) : u,
4440
4448
  s,
4441
4449
  fe,
4442
4450
  Ae
@@ -4444,24 +4452,24 @@ function Ha(e, n, t) {
4444
4452
  }
4445
4453
  }
4446
4454
  function fe(J) {
4447
- return _(ye, m), P;
4455
+ return T(ye, m), A;
4448
4456
  }
4449
4457
  function Ae(J) {
4450
4458
  return m.restore(), ++ue < G.length ? d(G[ue]) : V;
4451
4459
  }
4452
4460
  }
4453
4461
  }
4454
- function M(_, T) {
4455
- _.resolveAll && !o.includes(_) && o.push(_), _.resolve && ae(u.events, T, u.events.length - T, _.resolve(u.events.slice(T), u)), _.resolveTo && (u.events = _.resolveTo(u.events, u));
4462
+ function H(T, P) {
4463
+ T.resolveAll && !o.includes(T) && o.push(T), T.resolve && ae(u.events, P, u.events.length - P, T.resolve(u.events.slice(P), u)), T.resolveTo && (u.events = T.resolveTo(u.events, u));
4456
4464
  }
4457
- function F() {
4458
- const _ = g(), T = u.previous, j = u.currentConstruct, D = u.events.length, P = Array.from(a);
4465
+ function D() {
4466
+ const T = g(), P = u.previous, B = u.currentConstruct, z = u.events.length, A = Array.from(a);
4459
4467
  return {
4460
- from: D,
4468
+ from: z,
4461
4469
  restore: V
4462
4470
  };
4463
4471
  function V() {
4464
- r = _, u.previous = T, u.currentConstruct = j, u.events.length = D, a = P, y();
4472
+ r = T, u.previous = P, u.currentConstruct = B, u.events.length = z, a = A, y();
4465
4473
  }
4466
4474
  }
4467
4475
  function y() {
@@ -4526,15 +4534,15 @@ function Va(e) {
4526
4534
  const r = {
4527
4535
  constructs: (
4528
4536
  /** @type {FullNormalizedExtension} */
4529
- Mr([ja, ...(e || {}).extensions || []])
4537
+ Fr([ja, ...(e || {}).extensions || []])
4530
4538
  ),
4531
4539
  content: i(io),
4532
4540
  defined: [],
4533
4541
  document: i(oo),
4534
4542
  flow: i(Ea),
4535
4543
  lazy: {},
4536
- string: i(Ta),
4537
- text: i(_a)
4544
+ string: i(_a),
4545
+ text: i(Ta)
4538
4546
  };
4539
4547
  return r;
4540
4548
  function i(o) {
@@ -4608,32 +4616,32 @@ function Ja(e) {
4608
4616
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
4609
4617
  enter: {
4610
4618
  autolink: o(En),
4611
- autolinkProtocol: F,
4612
- autolinkEmail: F,
4619
+ autolinkProtocol: D,
4620
+ autolinkEmail: D,
4613
4621
  atxHeading: o(Cn),
4614
4622
  blockQuote: o(Re),
4615
- characterEscape: F,
4616
- characterReference: F,
4617
- codeFenced: o(at),
4623
+ characterEscape: D,
4624
+ characterReference: D,
4625
+ codeFenced: o(ut),
4618
4626
  codeFencedFenceInfo: l,
4619
4627
  codeFencedFenceMeta: l,
4620
- codeIndented: o(at, l),
4628
+ codeIndented: o(ut, l),
4621
4629
  codeText: o(Ii, l),
4622
- codeTextData: F,
4623
- data: F,
4624
- codeFlowValue: F,
4630
+ codeTextData: D,
4631
+ data: D,
4632
+ codeFlowValue: D,
4625
4633
  definition: o(Ai),
4626
4634
  definitionDestinationString: l,
4627
4635
  definitionLabelString: l,
4628
4636
  definitionTitleString: l,
4629
- emphasis: o(Ti),
4637
+ emphasis: o(_i),
4630
4638
  hardBreakEscape: o(Sn),
4631
4639
  hardBreakTrailing: o(Sn),
4632
4640
  htmlFlow: o(vn, l),
4633
- htmlFlowData: F,
4641
+ htmlFlowData: D,
4634
4642
  htmlText: o(vn, l),
4635
- htmlTextData: F,
4636
- image: o(_i),
4643
+ htmlTextData: D,
4644
+ image: o(Ti),
4637
4645
  label: l,
4638
4646
  link: o(En),
4639
4647
  listItem: o(Pi),
@@ -4647,44 +4655,44 @@ function Ja(e) {
4647
4655
  resourceTitleString: l,
4648
4656
  setextHeading: o(Cn),
4649
4657
  strong: o(Li),
4650
- thematicBreak: o(Fi)
4658
+ thematicBreak: o(Mi)
4651
4659
  },
4652
4660
  exit: {
4653
4661
  atxHeading: s(),
4654
- atxHeadingSequence: N,
4662
+ atxHeadingSequence: F,
4655
4663
  autolink: s(),
4656
- autolinkEmail: Me,
4664
+ autolinkEmail: Fe,
4657
4665
  autolinkProtocol: Se,
4658
4666
  blockQuote: s(),
4659
4667
  characterEscapeValue: y,
4660
4668
  characterReferenceMarkerHexadecimal: Ae,
4661
4669
  characterReferenceMarkerNumeric: Ae,
4662
4670
  characterReferenceValue: J,
4663
- characterReference: qe,
4671
+ characterReference: Ve,
4664
4672
  codeFenced: s(C),
4665
- codeFencedFence: w,
4673
+ codeFencedFence: b,
4666
4674
  codeFencedFenceInfo: p,
4667
4675
  codeFencedFenceMeta: g,
4668
4676
  codeFlowValue: y,
4669
4677
  codeIndented: s(k),
4670
- codeText: s(P),
4678
+ codeText: s(A),
4671
4679
  codeTextData: y,
4672
4680
  data: y,
4673
4681
  definition: s(),
4674
- definitionDestinationString: R,
4682
+ definitionDestinationString: M,
4675
4683
  definitionLabelString: I,
4676
4684
  definitionTitleString: S,
4677
4685
  emphasis: s(),
4678
- hardBreakEscape: s(T),
4679
- hardBreakTrailing: s(T),
4680
- htmlFlow: s(j),
4686
+ hardBreakEscape: s(P),
4687
+ hardBreakTrailing: s(P),
4688
+ htmlFlow: s(B),
4681
4689
  htmlFlowData: y,
4682
- htmlText: s(D),
4690
+ htmlText: s(z),
4683
4691
  htmlTextData: y,
4684
4692
  image: s(G),
4685
4693
  label: ye,
4686
4694
  labelText: ue,
4687
- lineEnding: _,
4695
+ lineEnding: T,
4688
4696
  link: s(V),
4689
4697
  listItem: s(),
4690
4698
  listOrdered: s(),
@@ -4694,8 +4702,8 @@ function Ja(e) {
4694
4702
  resourceDestinationString: m,
4695
4703
  resourceTitleString: ce,
4696
4704
  resource: ke,
4697
- setextHeading: s(M),
4698
- setextHeadingLineSequence: z,
4705
+ setextHeading: s(H),
4706
+ setextHeadingLineSequence: O,
4699
4707
  setextHeadingText: x,
4700
4708
  strong: s(),
4701
4709
  thematicBreak: s()
@@ -4704,13 +4712,13 @@ function Ja(e) {
4704
4712
  Qr(n, (e || {}).mdastExtensions || []);
4705
4713
  const t = {};
4706
4714
  return r;
4707
- function r(b) {
4708
- let A = {
4715
+ function r(w) {
4716
+ let _ = {
4709
4717
  type: "root",
4710
4718
  children: []
4711
4719
  };
4712
- const B = {
4713
- stack: [A],
4720
+ const N = {
4721
+ stack: [_],
4714
4722
  tokenStack: [],
4715
4723
  config: n,
4716
4724
  enter: a,
@@ -4720,52 +4728,52 @@ function Ja(e) {
4720
4728
  data: t
4721
4729
  }, $ = [];
4722
4730
  let U = -1;
4723
- for (; ++U < b.length; )
4724
- if (b[U][1].type === "listOrdered" || b[U][1].type === "listUnordered")
4725
- if (b[U][0] === "enter")
4731
+ for (; ++U < w.length; )
4732
+ if (w[U][1].type === "listOrdered" || w[U][1].type === "listUnordered")
4733
+ if (w[U][0] === "enter")
4726
4734
  $.push(U);
4727
4735
  else {
4728
4736
  const pe = $.pop();
4729
- U = i(b, pe, U);
4737
+ U = i(w, pe, U);
4730
4738
  }
4731
- for (U = -1; ++U < b.length; ) {
4732
- const pe = n[b[U][0]];
4733
- Wr.call(pe, b[U][1].type) && pe[b[U][1].type].call(Object.assign({
4734
- sliceSerialize: b[U][2].sliceSerialize
4735
- }, B), b[U][1]);
4736
- }
4737
- if (B.tokenStack.length > 0) {
4738
- const pe = B.tokenStack[B.tokenStack.length - 1];
4739
- (pe[1] || Yn).call(B, void 0, pe[0]);
4740
- }
4741
- for (A.position = {
4742
- start: ve(b.length > 0 ? b[0][1].start : {
4739
+ for (U = -1; ++U < w.length; ) {
4740
+ const pe = n[w[U][0]];
4741
+ Wr.call(pe, w[U][1].type) && pe[w[U][1].type].call(Object.assign({
4742
+ sliceSerialize: w[U][2].sliceSerialize
4743
+ }, N), w[U][1]);
4744
+ }
4745
+ if (N.tokenStack.length > 0) {
4746
+ const pe = N.tokenStack[N.tokenStack.length - 1];
4747
+ (pe[1] || Yn).call(N, void 0, pe[0]);
4748
+ }
4749
+ for (_.position = {
4750
+ start: ve(w.length > 0 ? w[0][1].start : {
4743
4751
  line: 1,
4744
4752
  column: 1,
4745
4753
  offset: 0
4746
4754
  }),
4747
- end: ve(b.length > 0 ? b[b.length - 2][1].end : {
4755
+ end: ve(w.length > 0 ? w[w.length - 2][1].end : {
4748
4756
  line: 1,
4749
4757
  column: 1,
4750
4758
  offset: 0
4751
4759
  })
4752
4760
  }, U = -1; ++U < n.transforms.length; )
4753
- A = n.transforms[U](A) || A;
4754
- return A;
4761
+ _ = n.transforms[U](_) || _;
4762
+ return _;
4755
4763
  }
4756
- function i(b, A, B) {
4757
- let $ = A - 1, U = -1, pe = !1, Te, xe, Ve, Ue;
4758
- for (; ++$ <= B; ) {
4759
- const le = b[$];
4764
+ function i(w, _, N) {
4765
+ let $ = _ - 1, U = -1, pe = !1, _e, xe, Ue, We;
4766
+ for (; ++$ <= N; ) {
4767
+ const le = w[$];
4760
4768
  switch (le[1].type) {
4761
4769
  case "listUnordered":
4762
4770
  case "listOrdered":
4763
4771
  case "blockQuote": {
4764
- le[0] === "enter" ? U++ : U--, Ue = void 0;
4772
+ le[0] === "enter" ? U++ : U--, We = void 0;
4765
4773
  break;
4766
4774
  }
4767
4775
  case "lineEndingBlank": {
4768
- le[0] === "enter" && (Te && !Ue && !U && !Ve && (Ve = $), Ue = void 0);
4776
+ le[0] === "enter" && (_e && !We && !U && !Ue && (Ue = $), We = void 0);
4769
4777
  break;
4770
4778
  }
4771
4779
  case "linePrefix":
@@ -4775,19 +4783,19 @@ function Ja(e) {
4775
4783
  case "listItemPrefixWhitespace":
4776
4784
  break;
4777
4785
  default:
4778
- Ue = void 0;
4786
+ We = void 0;
4779
4787
  }
4780
4788
  if (!U && le[0] === "enter" && le[1].type === "listItemPrefix" || U === -1 && le[0] === "exit" && (le[1].type === "listUnordered" || le[1].type === "listOrdered")) {
4781
- if (Te) {
4789
+ if (_e) {
4782
4790
  let Ne = $;
4783
4791
  for (xe = void 0; Ne--; ) {
4784
- const be = b[Ne];
4792
+ const be = w[Ne];
4785
4793
  if (be[1].type === "lineEnding" || be[1].type === "lineEndingBlank") {
4786
4794
  if (be[0] === "exit") continue;
4787
- xe && (b[xe][1].type = "lineEndingBlank", pe = !0), be[1].type = "lineEnding", xe = Ne;
4795
+ xe && (w[xe][1].type = "lineEndingBlank", pe = !0), be[1].type = "lineEnding", xe = Ne;
4788
4796
  } else if (!(be[1].type === "linePrefix" || be[1].type === "blockQuotePrefix" || be[1].type === "blockQuotePrefixWhitespace" || be[1].type === "blockQuoteMarker" || be[1].type === "listItemIndent")) break;
4789
4797
  }
4790
- Ve && (!xe || Ve < xe) && (Te._spread = !0), Te.end = Object.assign({}, xe ? b[xe][1].start : le[1].end), b.splice(xe || $, 0, ["exit", Te, le[2]]), $++, B++;
4798
+ Ue && (!xe || Ue < xe) && (_e._spread = !0), _e.end = Object.assign({}, xe ? w[xe][1].start : le[1].end), w.splice(xe || $, 0, ["exit", _e, le[2]]), $++, N++;
4791
4799
  }
4792
4800
  if (le[1].type === "listItemPrefix") {
4793
4801
  const Ne = {
@@ -4797,16 +4805,16 @@ function Ja(e) {
4797
4805
  // @ts-expect-error: we’ll add `end` in a second.
4798
4806
  end: void 0
4799
4807
  };
4800
- Te = Ne, b.splice($, 0, ["enter", Ne, le[2]]), $++, B++, Ve = void 0, Ue = !0;
4808
+ _e = Ne, w.splice($, 0, ["enter", Ne, le[2]]), $++, N++, Ue = void 0, We = !0;
4801
4809
  }
4802
4810
  }
4803
4811
  }
4804
- return b[A][1]._spread = pe, B;
4812
+ return w[_][1]._spread = pe, N;
4805
4813
  }
4806
- function o(b, A) {
4807
- return B;
4808
- function B($) {
4809
- a.call(this, b($), $), A && A.call(this, $);
4814
+ function o(w, _) {
4815
+ return N;
4816
+ function N($) {
4817
+ a.call(this, w($), $), _ && _.call(this, $);
4810
4818
  }
4811
4819
  }
4812
4820
  function l() {
@@ -4815,28 +4823,28 @@ function Ja(e) {
4815
4823
  children: []
4816
4824
  });
4817
4825
  }
4818
- function a(b, A, B) {
4819
- this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([A, B || void 0]), b.position = {
4820
- start: ve(A.start),
4826
+ function a(w, _, N) {
4827
+ this.stack[this.stack.length - 1].children.push(w), this.stack.push(w), this.tokenStack.push([_, N || void 0]), w.position = {
4828
+ start: ve(_.start),
4821
4829
  // @ts-expect-error: `end` will be patched later.
4822
4830
  end: void 0
4823
4831
  };
4824
4832
  }
4825
- function s(b) {
4826
- return A;
4827
- function A(B) {
4828
- b && b.call(this, B), u.call(this, B);
4833
+ function s(w) {
4834
+ return _;
4835
+ function _(N) {
4836
+ w && w.call(this, N), u.call(this, N);
4829
4837
  }
4830
4838
  }
4831
- function u(b, A) {
4832
- const B = this.stack.pop(), $ = this.tokenStack.pop();
4839
+ function u(w, _) {
4840
+ const N = this.stack.pop(), $ = this.tokenStack.pop();
4833
4841
  if ($)
4834
- $[0].type !== b.type && (A ? A.call(this, b, $[0]) : ($[1] || Yn).call(this, b, $[0]));
4835
- else throw new Error("Cannot close `" + b.type + "` (" + Ke({
4836
- start: b.start,
4837
- end: b.end
4842
+ $[0].type !== w.type && (_ ? _.call(this, w, $[0]) : ($[1] || Yn).call(this, w, $[0]));
4843
+ else throw new Error("Cannot close `" + w.type + "` (" + tt({
4844
+ start: w.start,
4845
+ end: w.end
4838
4846
  }) + "): it’s not open");
4839
- B.position.end = ve(b.end);
4847
+ N.position.end = ve(w.end);
4840
4848
  }
4841
4849
  function f() {
4842
4850
  return cn(this.stack.pop());
@@ -4844,134 +4852,134 @@ function Ja(e) {
4844
4852
  function c() {
4845
4853
  this.data.expectingFirstListItemValue = !0;
4846
4854
  }
4847
- function h(b) {
4855
+ function h(w) {
4848
4856
  if (this.data.expectingFirstListItemValue) {
4849
- const A = this.stack[this.stack.length - 2];
4850
- A.start = Number.parseInt(this.sliceSerialize(b), 10), this.data.expectingFirstListItemValue = void 0;
4857
+ const _ = this.stack[this.stack.length - 2];
4858
+ _.start = Number.parseInt(this.sliceSerialize(w), 10), this.data.expectingFirstListItemValue = void 0;
4851
4859
  }
4852
4860
  }
4853
4861
  function p() {
4854
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4855
- A.lang = b;
4862
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4863
+ _.lang = w;
4856
4864
  }
4857
4865
  function g() {
4858
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4859
- A.meta = b;
4866
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4867
+ _.meta = w;
4860
4868
  }
4861
- function w() {
4869
+ function b() {
4862
4870
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
4863
4871
  }
4864
4872
  function C() {
4865
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4866
- A.value = b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
4873
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4874
+ _.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
4867
4875
  }
4868
4876
  function k() {
4869
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4870
- A.value = b.replace(/(\r?\n|\r)$/g, "");
4877
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4878
+ _.value = w.replace(/(\r?\n|\r)$/g, "");
4871
4879
  }
4872
- function I(b) {
4873
- const A = this.resume(), B = this.stack[this.stack.length - 1];
4874
- B.label = A, B.identifier = he(this.sliceSerialize(b)).toLowerCase();
4880
+ function I(w) {
4881
+ const _ = this.resume(), N = this.stack[this.stack.length - 1];
4882
+ N.label = _, N.identifier = he(this.sliceSerialize(w)).toLowerCase();
4875
4883
  }
4876
4884
  function S() {
4877
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4878
- A.title = b;
4885
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4886
+ _.title = w;
4879
4887
  }
4880
- function R() {
4881
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4882
- A.url = b;
4888
+ function M() {
4889
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4890
+ _.url = w;
4883
4891
  }
4884
- function N(b) {
4885
- const A = this.stack[this.stack.length - 1];
4886
- if (!A.depth) {
4887
- const B = this.sliceSerialize(b).length;
4888
- A.depth = B;
4892
+ function F(w) {
4893
+ const _ = this.stack[this.stack.length - 1];
4894
+ if (!_.depth) {
4895
+ const N = this.sliceSerialize(w).length;
4896
+ _.depth = N;
4889
4897
  }
4890
4898
  }
4891
4899
  function x() {
4892
4900
  this.data.setextHeadingSlurpLineEnding = !0;
4893
4901
  }
4894
- function z(b) {
4895
- const A = this.stack[this.stack.length - 1];
4896
- A.depth = this.sliceSerialize(b).codePointAt(0) === 61 ? 1 : 2;
4902
+ function O(w) {
4903
+ const _ = this.stack[this.stack.length - 1];
4904
+ _.depth = this.sliceSerialize(w).codePointAt(0) === 61 ? 1 : 2;
4897
4905
  }
4898
- function M() {
4906
+ function H() {
4899
4907
  this.data.setextHeadingSlurpLineEnding = void 0;
4900
4908
  }
4901
- function F(b) {
4902
- const B = this.stack[this.stack.length - 1].children;
4903
- let $ = B[B.length - 1];
4909
+ function D(w) {
4910
+ const N = this.stack[this.stack.length - 1].children;
4911
+ let $ = N[N.length - 1];
4904
4912
  (!$ || $.type !== "text") && ($ = Di(), $.position = {
4905
- start: ve(b.start),
4913
+ start: ve(w.start),
4906
4914
  // @ts-expect-error: we’ll add `end` later.
4907
4915
  end: void 0
4908
- }, B.push($)), this.stack.push($);
4916
+ }, N.push($)), this.stack.push($);
4909
4917
  }
4910
- function y(b) {
4911
- const A = this.stack.pop();
4912
- A.value += this.sliceSerialize(b), A.position.end = ve(b.end);
4918
+ function y(w) {
4919
+ const _ = this.stack.pop();
4920
+ _.value += this.sliceSerialize(w), _.position.end = ve(w.end);
4913
4921
  }
4914
- function _(b) {
4915
- const A = this.stack[this.stack.length - 1];
4922
+ function T(w) {
4923
+ const _ = this.stack[this.stack.length - 1];
4916
4924
  if (this.data.atHardBreak) {
4917
- const B = A.children[A.children.length - 1];
4918
- B.position.end = ve(b.end), this.data.atHardBreak = void 0;
4925
+ const N = _.children[_.children.length - 1];
4926
+ N.position.end = ve(w.end), this.data.atHardBreak = void 0;
4919
4927
  return;
4920
4928
  }
4921
- !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(A.type) && (F.call(this, b), y.call(this, b));
4929
+ !this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(_.type) && (D.call(this, w), y.call(this, w));
4922
4930
  }
4923
- function T() {
4931
+ function P() {
4924
4932
  this.data.atHardBreak = !0;
4925
4933
  }
4926
- function j() {
4927
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4928
- A.value = b;
4934
+ function B() {
4935
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4936
+ _.value = w;
4929
4937
  }
4930
- function D() {
4931
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4932
- A.value = b;
4938
+ function z() {
4939
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4940
+ _.value = w;
4933
4941
  }
4934
- function P() {
4935
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4936
- A.value = b;
4942
+ function A() {
4943
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4944
+ _.value = w;
4937
4945
  }
4938
4946
  function V() {
4939
- const b = this.stack[this.stack.length - 1];
4947
+ const w = this.stack[this.stack.length - 1];
4940
4948
  if (this.data.inReference) {
4941
- const A = this.data.referenceType || "shortcut";
4942
- b.type += "Reference", b.referenceType = A, delete b.url, delete b.title;
4949
+ const _ = this.data.referenceType || "shortcut";
4950
+ w.type += "Reference", w.referenceType = _, delete w.url, delete w.title;
4943
4951
  } else
4944
- delete b.identifier, delete b.label;
4952
+ delete w.identifier, delete w.label;
4945
4953
  this.data.referenceType = void 0;
4946
4954
  }
4947
4955
  function G() {
4948
- const b = this.stack[this.stack.length - 1];
4956
+ const w = this.stack[this.stack.length - 1];
4949
4957
  if (this.data.inReference) {
4950
- const A = this.data.referenceType || "shortcut";
4951
- b.type += "Reference", b.referenceType = A, delete b.url, delete b.title;
4958
+ const _ = this.data.referenceType || "shortcut";
4959
+ w.type += "Reference", w.referenceType = _, delete w.url, delete w.title;
4952
4960
  } else
4953
- delete b.identifier, delete b.label;
4961
+ delete w.identifier, delete w.label;
4954
4962
  this.data.referenceType = void 0;
4955
4963
  }
4956
- function ue(b) {
4957
- const A = this.sliceSerialize(b), B = this.stack[this.stack.length - 2];
4958
- B.label = Ya(A), B.identifier = he(A).toLowerCase();
4964
+ function ue(w) {
4965
+ const _ = this.sliceSerialize(w), N = this.stack[this.stack.length - 2];
4966
+ N.label = Ya(_), N.identifier = he(_).toLowerCase();
4959
4967
  }
4960
4968
  function ye() {
4961
- const b = this.stack[this.stack.length - 1], A = this.resume(), B = this.stack[this.stack.length - 1];
4962
- if (this.data.inReference = !0, B.type === "link") {
4963
- const $ = b.children;
4964
- B.children = $;
4969
+ const w = this.stack[this.stack.length - 1], _ = this.resume(), N = this.stack[this.stack.length - 1];
4970
+ if (this.data.inReference = !0, N.type === "link") {
4971
+ const $ = w.children;
4972
+ N.children = $;
4965
4973
  } else
4966
- B.alt = A;
4974
+ N.alt = _;
4967
4975
  }
4968
4976
  function m() {
4969
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4970
- A.url = b;
4977
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4978
+ _.url = w;
4971
4979
  }
4972
4980
  function ce() {
4973
- const b = this.resume(), A = this.stack[this.stack.length - 1];
4974
- A.title = b;
4981
+ const w = this.resume(), _ = this.stack[this.stack.length - 1];
4982
+ _.title = w;
4975
4983
  }
4976
4984
  function ke() {
4977
4985
  this.data.inReference = void 0;
@@ -4979,33 +4987,33 @@ function Ja(e) {
4979
4987
  function d() {
4980
4988
  this.data.referenceType = "collapsed";
4981
4989
  }
4982
- function fe(b) {
4983
- const A = this.resume(), B = this.stack[this.stack.length - 1];
4984
- B.label = A, B.identifier = he(this.sliceSerialize(b)).toLowerCase(), this.data.referenceType = "full";
4990
+ function fe(w) {
4991
+ const _ = this.resume(), N = this.stack[this.stack.length - 1];
4992
+ N.label = _, N.identifier = he(this.sliceSerialize(w)).toLowerCase(), this.data.referenceType = "full";
4985
4993
  }
4986
- function Ae(b) {
4987
- this.data.characterReferenceType = b.type;
4994
+ function Ae(w) {
4995
+ this.data.characterReferenceType = w.type;
4988
4996
  }
4989
- function J(b) {
4990
- const A = this.sliceSerialize(b), B = this.data.characterReferenceType;
4997
+ function J(w) {
4998
+ const _ = this.sliceSerialize(w), N = this.data.characterReferenceType;
4991
4999
  let $;
4992
- B ? ($ = Rr(A, B === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : $ = fn(A);
5000
+ N ? ($ = Rr(_, N === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : $ = fn(_);
4993
5001
  const U = this.stack[this.stack.length - 1];
4994
5002
  U.value += $;
4995
5003
  }
4996
- function qe(b) {
4997
- const A = this.stack.pop();
4998
- A.position.end = ve(b.end);
5004
+ function Ve(w) {
5005
+ const _ = this.stack.pop();
5006
+ _.position.end = ve(w.end);
4999
5007
  }
5000
- function Se(b) {
5001
- y.call(this, b);
5002
- const A = this.stack[this.stack.length - 1];
5003
- A.url = this.sliceSerialize(b);
5008
+ function Se(w) {
5009
+ y.call(this, w);
5010
+ const _ = this.stack[this.stack.length - 1];
5011
+ _.url = this.sliceSerialize(w);
5004
5012
  }
5005
- function Me(b) {
5006
- y.call(this, b);
5007
- const A = this.stack[this.stack.length - 1];
5008
- A.url = "mailto:" + this.sliceSerialize(b);
5013
+ function Fe(w) {
5014
+ y.call(this, w);
5015
+ const _ = this.stack[this.stack.length - 1];
5016
+ _.url = "mailto:" + this.sliceSerialize(w);
5009
5017
  }
5010
5018
  function Re() {
5011
5019
  return {
@@ -5013,7 +5021,7 @@ function Ja(e) {
5013
5021
  children: []
5014
5022
  };
5015
5023
  }
5016
- function at() {
5024
+ function ut() {
5017
5025
  return {
5018
5026
  type: "code",
5019
5027
  lang: null,
@@ -5036,7 +5044,7 @@ function Ja(e) {
5036
5044
  url: ""
5037
5045
  };
5038
5046
  }
5039
- function Ti() {
5047
+ function _i() {
5040
5048
  return {
5041
5049
  type: "emphasis",
5042
5050
  children: []
@@ -5061,7 +5069,7 @@ function Ja(e) {
5061
5069
  value: ""
5062
5070
  };
5063
5071
  }
5064
- function _i() {
5072
+ function Ti() {
5065
5073
  return {
5066
5074
  type: "image",
5067
5075
  title: null,
@@ -5077,19 +5085,19 @@ function Ja(e) {
5077
5085
  children: []
5078
5086
  };
5079
5087
  }
5080
- function In(b) {
5088
+ function In(w) {
5081
5089
  return {
5082
5090
  type: "list",
5083
- ordered: b.type === "listOrdered",
5091
+ ordered: w.type === "listOrdered",
5084
5092
  start: null,
5085
- spread: b._spread,
5093
+ spread: w._spread,
5086
5094
  children: []
5087
5095
  };
5088
5096
  }
5089
- function Pi(b) {
5097
+ function Pi(w) {
5090
5098
  return {
5091
5099
  type: "listItem",
5092
- spread: b._spread,
5100
+ spread: w._spread,
5093
5101
  checked: null,
5094
5102
  children: []
5095
5103
  };
@@ -5112,7 +5120,7 @@ function Ja(e) {
5112
5120
  value: ""
5113
5121
  };
5114
5122
  }
5115
- function Fi() {
5123
+ function Mi() {
5116
5124
  return {
5117
5125
  type: "thematicBreak"
5118
5126
  };
@@ -5156,13 +5164,13 @@ function Ka(e, n) {
5156
5164
  }
5157
5165
  }
5158
5166
  function Yn(e, n) {
5159
- throw e ? new Error("Cannot close `" + e.type + "` (" + Ke({
5167
+ throw e ? new Error("Cannot close `" + e.type + "` (" + tt({
5160
5168
  start: e.start,
5161
5169
  end: e.end
5162
- }) + "): a different token (`" + n.type + "`, " + Ke({
5170
+ }) + "): a different token (`" + n.type + "`, " + tt({
5163
5171
  start: n.start,
5164
5172
  end: n.end
5165
- }) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " + Ke({
5173
+ }) + ") is open") : new Error("Cannot close document, a token (`" + n.type + "`, " + tt({
5166
5174
  start: n.start,
5167
5175
  end: n.end
5168
5176
  }) + ") is still open");
@@ -5227,7 +5235,7 @@ function is(e, n) {
5227
5235
  return e.patch(n, t), e.applyData(n, t);
5228
5236
  }
5229
5237
  function ls(e, n) {
5230
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = $e(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
5238
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = qe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
5231
5239
  let l, a = e.footnoteCounts.get(r);
5232
5240
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
5233
5241
  const s = {
@@ -5279,13 +5287,13 @@ function ss(e, n) {
5279
5287
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5280
5288
  if (!r)
5281
5289
  return Yr(e, n);
5282
- const i = { src: $e(r.url || ""), alt: n.alt };
5290
+ const i = { src: qe(r.url || ""), alt: n.alt };
5283
5291
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5284
5292
  const o = { type: "element", tagName: "img", properties: i, children: [] };
5285
5293
  return e.patch(n, o), e.applyData(n, o);
5286
5294
  }
5287
5295
  function us(e, n) {
5288
- const t = { src: $e(n.url) };
5296
+ const t = { src: qe(n.url) };
5289
5297
  n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
5290
5298
  const r = { type: "element", tagName: "img", properties: t, children: [] };
5291
5299
  return e.patch(n, r), e.applyData(n, r);
@@ -5305,7 +5313,7 @@ function fs(e, n) {
5305
5313
  const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
5306
5314
  if (!r)
5307
5315
  return Yr(e, n);
5308
- const i = { href: $e(r.url || "") };
5316
+ const i = { href: qe(r.url || "") };
5309
5317
  r.title !== null && r.title !== void 0 && (i.title = r.title);
5310
5318
  const o = {
5311
5319
  type: "element",
@@ -5316,7 +5324,7 @@ function fs(e, n) {
5316
5324
  return e.patch(n, o), e.applyData(n, o);
5317
5325
  }
5318
5326
  function ps(e, n) {
5319
- const t = { href: $e(n.url) };
5327
+ const t = { href: qe(n.url) };
5320
5328
  n.title !== null && n.title !== void 0 && (t.title = n.title);
5321
5329
  const r = {
5322
5330
  type: "element",
@@ -5422,7 +5430,7 @@ function xs(e, n) {
5422
5430
  tagName: "tbody",
5423
5431
  properties: {},
5424
5432
  children: e.wrap(t, !0)
5425
- }, a = on(n.children[1]), s = Tr(n.children[n.children.length - 1]);
5433
+ }, a = on(n.children[1]), s = _r(n.children[n.children.length - 1]);
5426
5434
  a && s && (l.position = { start: a, end: s }), i.push(l);
5427
5435
  }
5428
5436
  const o = {
@@ -5525,14 +5533,14 @@ const Es = {
5525
5533
  tableRow: bs,
5526
5534
  text: Ss,
5527
5535
  thematicBreak: vs,
5528
- toml: ct,
5529
- yaml: ct,
5530
- definition: ct,
5531
- footnoteDefinition: ct
5536
+ toml: ft,
5537
+ yaml: ft,
5538
+ definition: ft,
5539
+ footnoteDefinition: ft
5532
5540
  };
5533
- function ct() {
5541
+ function ft() {
5534
5542
  }
5535
- const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, Kr = 8, Zr = typeof self == "object" ? self : globalThis, Kn = (e, n) => {
5543
+ const Gr = -1, vt = 0, rt = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, Kr = 8, Zr = typeof self == "object" ? self : globalThis, Kn = (e, n) => {
5536
5544
  switch (e) {
5537
5545
  case "Function":
5538
5546
  case "SharedWorker":
@@ -5552,7 +5560,7 @@ const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, K
5552
5560
  case vt:
5553
5561
  case Gr:
5554
5562
  return t(l, i);
5555
- case et: {
5563
+ case rt: {
5556
5564
  const a = t([], i);
5557
5565
  for (const s of l)
5558
5566
  a.push(r(s));
@@ -5603,14 +5611,14 @@ const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, K
5603
5611
  return t(Kn(o, l), i);
5604
5612
  };
5605
5613
  return r;
5606
- }, Zn = (e) => Is(/* @__PURE__ */ new Map(), e)(0), ze = "", { toString: As } = {}, { keys: Ts } = Object, Xe = (e) => {
5614
+ }, Zn = (e) => Is(/* @__PURE__ */ new Map(), e)(0), ze = "", { toString: As } = {}, { keys: _s } = Object, Je = (e) => {
5607
5615
  const n = typeof e;
5608
5616
  if (n !== "object" || !e)
5609
5617
  return [vt, n];
5610
5618
  const t = As.call(e).slice(8, -1);
5611
5619
  switch (t) {
5612
5620
  case "Array":
5613
- return [et, ze];
5621
+ return [rt, ze];
5614
5622
  case "Object":
5615
5623
  return [xt, ze];
5616
5624
  case "Date":
@@ -5622,17 +5630,17 @@ const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, K
5622
5630
  case "Set":
5623
5631
  return [gn, ze];
5624
5632
  case "DataView":
5625
- return [et, t];
5633
+ return [rt, t];
5626
5634
  }
5627
- return t.includes("Array") ? [et, t] : e instanceof Error ? [Jr, e.name || "Error"] : [xt, t];
5628
- }, ft = ([e, n]) => e === vt && (n === "function" || n === "symbol"), _s = (e, n, t, r) => {
5635
+ return t.includes("Array") ? [rt, t] : e instanceof Error ? [Jr, e.name || "Error"] : [xt, t];
5636
+ }, pt = ([e, n]) => e === vt && (n === "function" || n === "symbol"), Ts = (e, n, t, r) => {
5629
5637
  const i = (l, a) => {
5630
5638
  const s = r.push(l) - 1;
5631
5639
  return t.set(a, s), s;
5632
5640
  }, o = (l) => {
5633
5641
  if (t.has(l))
5634
5642
  return t.get(l);
5635
- let [a, s] = Xe(l);
5643
+ let [a, s] = Je(l);
5636
5644
  switch (a) {
5637
5645
  case vt: {
5638
5646
  let f = l;
@@ -5651,7 +5659,7 @@ const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, K
5651
5659
  }
5652
5660
  return i([a, f], l);
5653
5661
  }
5654
- case et: {
5662
+ case rt: {
5655
5663
  if (s) {
5656
5664
  let h = l;
5657
5665
  return s === "DataView" ? h = new Uint8Array(l.buffer) : s === "ArrayBuffer" && (h = new Uint8Array(l)), i([s, [...h]], l);
@@ -5674,8 +5682,8 @@ const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, K
5674
5682
  if (n && "toJSON" in l)
5675
5683
  return o(l.toJSON());
5676
5684
  const f = [], c = i([a, f], l);
5677
- for (const h of Ts(l))
5678
- (e || !ft(Xe(l[h]))) && f.push([o(h), o(l[h])]);
5685
+ for (const h of _s(l))
5686
+ (e || !pt(Je(l[h]))) && f.push([o(h), o(l[h])]);
5679
5687
  return c;
5680
5688
  }
5681
5689
  case hn:
@@ -5687,13 +5695,13 @@ const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, K
5687
5695
  case dn: {
5688
5696
  const f = [], c = i([a, f], l);
5689
5697
  for (const [h, p] of l)
5690
- (e || !(ft(Xe(h)) || ft(Xe(p)))) && f.push([o(h), o(p)]);
5698
+ (e || !(pt(Je(h)) || pt(Je(p)))) && f.push([o(h), o(p)]);
5691
5699
  return c;
5692
5700
  }
5693
5701
  case gn: {
5694
5702
  const f = [], c = i([a, f], l);
5695
5703
  for (const h of l)
5696
- (e || !ft(Xe(h))) && f.push(o(h));
5704
+ (e || !pt(Je(h))) && f.push(o(h));
5697
5705
  return c;
5698
5706
  }
5699
5707
  }
@@ -5703,7 +5711,7 @@ const Gr = -1, vt = 0, et = 1, xt = 2, hn = 3, mn = 4, dn = 5, gn = 6, Jr = 7, K
5703
5711
  return o;
5704
5712
  }, er = (e, { json: n, lossy: t } = {}) => {
5705
5713
  const r = [];
5706
- return _s(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5714
+ return Ts(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
5707
5715
  }, bt = typeof structuredClone == "function" ? (
5708
5716
  /* c8 ignore start */
5709
5717
  (e, n) => n && ("json" in n || "lossy" in n) ? Zn(er(e, n)) : structuredClone(e)
@@ -5731,10 +5739,10 @@ function Ls(e) {
5731
5739
  );
5732
5740
  if (!u)
5733
5741
  continue;
5734
- const f = e.all(u), c = String(u.identifier).toUpperCase(), h = $e(c.toLowerCase());
5742
+ const f = e.all(u), c = String(u.identifier).toUpperCase(), h = qe(c.toLowerCase());
5735
5743
  let p = 0;
5736
- const g = [], w = e.footnoteCounts.get(c);
5737
- for (; w !== void 0 && ++p <= w; ) {
5744
+ const g = [], b = e.footnoteCounts.get(c);
5745
+ for (; b !== void 0 && ++p <= b; ) {
5738
5746
  g.length > 0 && g.push({ type: "text", value: " " });
5739
5747
  let I = typeof t == "string" ? t : t(s, p);
5740
5748
  typeof I == "string" && (I = { type: "text", value: I }), g.push({
@@ -5815,13 +5823,13 @@ const Et = (
5815
5823
  return Array.isArray(e) ? Ds(e) : (
5816
5824
  // Cast because `ReadonlyArray` goes into the above but `isArray`
5817
5825
  // narrows to `Array`.
5818
- Fs(
5826
+ Ms(
5819
5827
  /** @type {Props} */
5820
5828
  e
5821
5829
  )
5822
5830
  );
5823
5831
  if (typeof e == "string")
5824
- return Ms(e);
5832
+ return Fs(e);
5825
5833
  throw new Error("Expected function, string, or object as test");
5826
5834
  })
5827
5835
  );
@@ -5838,7 +5846,7 @@ function Ds(e) {
5838
5846
  return !1;
5839
5847
  }
5840
5848
  }
5841
- function Fs(e) {
5849
+ function Ms(e) {
5842
5850
  const n = (
5843
5851
  /** @type {Record<string, unknown>} */
5844
5852
  e
@@ -5856,7 +5864,7 @@ function Fs(e) {
5856
5864
  return !0;
5857
5865
  }
5858
5866
  }
5859
- function Ms(e) {
5867
+ function Fs(e) {
5860
5868
  return It(n);
5861
5869
  function n(t) {
5862
5870
  return t && t.type === e;
@@ -5904,7 +5912,7 @@ function ti(e, n, t, r) {
5904
5912
  }
5905
5913
  return h;
5906
5914
  function h() {
5907
- let p = ei, g, w, C;
5915
+ let p = ei, g, b, C;
5908
5916
  if ((!n || o(s, u, f[f.length - 1] || void 0)) && (p = js(t(s, f)), p[0] === Kt))
5909
5917
  return p;
5910
5918
  if ("children" in s && s.children) {
@@ -5913,11 +5921,11 @@ function ti(e, n, t, r) {
5913
5921
  s
5914
5922
  );
5915
5923
  if (k.children && p[0] !== Bs)
5916
- for (w = (r ? k.children.length : -1) + l, C = f.concat(k); w > -1 && w < k.children.length; ) {
5917
- const I = k.children[w];
5918
- if (g = a(I, w, C)(), g[0] === Kt)
5924
+ for (b = (r ? k.children.length : -1) + l, C = f.concat(k); b > -1 && b < k.children.length; ) {
5925
+ const I = k.children[b];
5926
+ if (g = a(I, b, C)(), g[0] === Kt)
5919
5927
  return g;
5920
- w = typeof g[1] == "number" ? g[1] : w + l;
5928
+ b = typeof g[1] == "number" ? g[1] : b + l;
5921
5929
  }
5922
5930
  }
5923
5931
  return p;
@@ -5962,7 +5970,7 @@ function $s(e, n) {
5962
5970
  return p(a, f, c);
5963
5971
  if (a.options.passThrough && a.options.passThrough.includes(h)) {
5964
5972
  if ("children" in f) {
5965
- const { children: w, ...C } = f, k = bt(C);
5973
+ const { children: b, ...C } = f, k = bt(C);
5966
5974
  return k.children = a.all(f), k;
5967
5975
  }
5968
5976
  return bt(f);
@@ -5978,8 +5986,8 @@ function $s(e, n) {
5978
5986
  const g = a.one(h[p], f);
5979
5987
  if (g) {
5980
5988
  if (p && h[p - 1].type === "break" && (!Array.isArray(g) && g.type === "text" && (g.value = tr(g.value)), !Array.isArray(g) && g.type === "element")) {
5981
- const w = g.children[0];
5982
- w && w.type === "text" && (w.value = tr(w.value));
5989
+ const b = g.children[0];
5990
+ b && b.type === "text" && (b.value = tr(b.value));
5983
5991
  }
5984
5992
  Array.isArray(g) ? c.push(...g) : c.push(g);
5985
5993
  }
@@ -6086,12 +6094,12 @@ function Ys() {
6086
6094
  return u[f];
6087
6095
  };
6088
6096
  return Lt = function s() {
6089
- var u, f, c, h, p, g, w = arguments[0], C = 1, k = arguments.length, I = !1;
6090
- for (typeof w == "boolean" && (I = w, w = arguments[1] || {}, C = 2), (w == null || typeof w != "object" && typeof w != "function") && (w = {}); C < k; ++C)
6097
+ var u, f, c, h, p, g, b = arguments[0], C = 1, k = arguments.length, I = !1;
6098
+ for (typeof b == "boolean" && (I = b, b = arguments[1] || {}, C = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); C < k; ++C)
6091
6099
  if (u = arguments[C], u != null)
6092
6100
  for (f in u)
6093
- c = a(w, f), h = a(u, f), w !== h && (I && h && (o(h) || (p = i(h))) ? (p ? (p = !1, g = c && i(c) ? c : []) : g = c && o(c) ? c : {}, l(w, { name: f, newValue: s(I, g, h) })) : typeof h < "u" && l(w, { name: f, newValue: h }));
6094
- return w;
6101
+ c = a(b, f), h = a(u, f), b !== h && (I && h && (o(h) || (p = i(h))) ? (p ? (p = !1, g = c && i(c) ? c : []) : g = c && o(c) ? c : {}, l(b, { name: f, newValue: s(I, g, h) })) : typeof h < "u" && l(b, { name: f, newValue: h }));
6102
+ return b;
6095
6103
  }, Lt;
6096
6104
  }
6097
6105
  var Xs = Ys();
@@ -6162,7 +6170,7 @@ const de = { basename: Ks, dirname: Zs, extname: eu, join: tu, sep: "/" };
6162
6170
  function Ks(e, n) {
6163
6171
  if (n !== void 0 && typeof n != "string")
6164
6172
  throw new TypeError('"ext" argument must be a string');
6165
- ot(e);
6173
+ st(e);
6166
6174
  let t = 0, r = -1, i = e.length, o;
6167
6175
  if (n === void 0 || n.length === 0 || n.length > e.length) {
6168
6176
  for (; i--; )
@@ -6188,7 +6196,7 @@ function Ks(e, n) {
6188
6196
  return t === r ? r = l : r < 0 && (r = e.length), e.slice(t, r);
6189
6197
  }
6190
6198
  function Zs(e) {
6191
- if (ot(e), e.length === 0)
6199
+ if (st(e), e.length === 0)
6192
6200
  return ".";
6193
6201
  let n = -1, t = e.length, r;
6194
6202
  for (; --t; )
@@ -6201,7 +6209,7 @@ function Zs(e) {
6201
6209
  return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
6202
6210
  }
6203
6211
  function eu(e) {
6204
- ot(e);
6212
+ st(e);
6205
6213
  let n = e.length, t = -1, r = 0, i = -1, o = 0, l;
6206
6214
  for (; n--; ) {
6207
6215
  const a = e.codePointAt(n);
@@ -6221,11 +6229,11 @@ function eu(e) {
6221
6229
  function tu(...e) {
6222
6230
  let n = -1, t;
6223
6231
  for (; ++n < e.length; )
6224
- ot(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
6232
+ st(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
6225
6233
  return t === void 0 ? "." : nu(t);
6226
6234
  }
6227
6235
  function nu(e) {
6228
- ot(e);
6236
+ st(e);
6229
6237
  const n = e.codePointAt(0) === 47;
6230
6238
  let t = ru(e, !n);
6231
6239
  return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
@@ -6261,7 +6269,7 @@ function ru(e, n) {
6261
6269
  }
6262
6270
  return t;
6263
6271
  }
6264
- function ot(e) {
6272
+ function st(e) {
6265
6273
  if (typeof e != "string")
6266
6274
  throw new TypeError(
6267
6275
  "Path must be a string. Received " + JSON.stringify(e)
@@ -6311,7 +6319,7 @@ function au(e) {
6311
6319
  }
6312
6320
  return decodeURIComponent(n);
6313
6321
  }
6314
- const Ft = (
6322
+ const Mt = (
6315
6323
  /** @type {const} */
6316
6324
  [
6317
6325
  "history",
@@ -6349,13 +6357,13 @@ class ni {
6349
6357
  let t;
6350
6358
  n ? tn(n) ? t = { path: n } : typeof n == "string" || su(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : iu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
6351
6359
  let r = -1;
6352
- for (; ++r < Ft.length; ) {
6353
- const o = Ft[r];
6360
+ for (; ++r < Mt.length; ) {
6361
+ const o = Mt[r];
6354
6362
  o in t && t[o] !== void 0 && t[o] !== null && (this[o] = o === "history" ? [...t[o]] : t[o]);
6355
6363
  }
6356
6364
  let i;
6357
6365
  for (i in t)
6358
- Ft.includes(i) || (this[i] = t[i]);
6366
+ Mt.includes(i) || (this[i] = t[i]);
6359
6367
  }
6360
6368
  /**
6361
6369
  * Get the basename (including extname) (example: `'index.min.js'`).
@@ -6379,7 +6387,7 @@ class ni {
6379
6387
  * Nothing.
6380
6388
  */
6381
6389
  set basename(n) {
6382
- Rt(n, "basename"), Mt(n, "basename"), this.path = de.join(this.dirname || "", n);
6390
+ Rt(n, "basename"), Ft(n, "basename"), this.path = de.join(this.dirname || "", n);
6383
6391
  }
6384
6392
  /**
6385
6393
  * Get the parent path (example: `'~'`).
@@ -6425,7 +6433,7 @@ class ni {
6425
6433
  * Nothing.
6426
6434
  */
6427
6435
  set extname(n) {
6428
- if (Mt(n, "extname"), lr(this.dirname, "extname"), n) {
6436
+ if (Ft(n, "extname"), lr(this.dirname, "extname"), n) {
6429
6437
  if (n.codePointAt(0) !== 46)
6430
6438
  throw new Error("`extname` must start with `.`");
6431
6439
  if (n.includes(".", 1))
@@ -6479,7 +6487,7 @@ class ni {
6479
6487
  * Nothing.
6480
6488
  */
6481
6489
  set stem(n) {
6482
- Rt(n, "stem"), Mt(n, "stem"), this.path = de.join(this.dirname || "", n + (this.extname || ""));
6490
+ Rt(n, "stem"), Ft(n, "stem"), this.path = de.join(this.dirname || "", n + (this.extname || ""));
6483
6491
  }
6484
6492
  // Normal prototypal methods.
6485
6493
  /**
@@ -6692,7 +6700,7 @@ class ni {
6692
6700
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
6693
6701
  }
6694
6702
  }
6695
- function Mt(e, n) {
6703
+ function Ft(e, n) {
6696
6704
  if (e && e.includes(de.sep))
6697
6705
  throw new Error(
6698
6706
  "`" + n + "` cannot be a path: did not expect `" + de.sep + "`"
@@ -6874,7 +6882,7 @@ class kn extends uu {
6874
6882
  */
6875
6883
  parse(n) {
6876
6884
  this.freeze();
6877
- const t = pt(n), r = this.parser || this.Parser;
6885
+ const t = ht(n), r = this.parser || this.Parser;
6878
6886
  return Nt("parse", r), r(String(t), t);
6879
6887
  }
6880
6888
  /**
@@ -6923,7 +6931,7 @@ class kn extends uu {
6923
6931
  const r = this;
6924
6932
  return this.freeze(), Nt("process", this.parser || this.Parser), Ot("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
6925
6933
  function i(o, l) {
6926
- const a = pt(n), s = (
6934
+ const a = ht(n), s = (
6927
6935
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
6928
6936
  /** @type {unknown} */
6929
6937
  r.parse(a)
@@ -7028,7 +7036,7 @@ class kn extends uu {
7028
7036
  const i = this.transformers;
7029
7037
  return !r && typeof t == "function" && (r = t, t = void 0), r ? o(void 0, r) : new Promise(o);
7030
7038
  function o(l, a) {
7031
- const s = pt(t);
7039
+ const s = ht(t);
7032
7040
  i.run(n, s, u);
7033
7041
  function u(f, c, h) {
7034
7042
  const p = (
@@ -7094,7 +7102,7 @@ class kn extends uu {
7094
7102
  */
7095
7103
  stringify(n, t) {
7096
7104
  this.freeze();
7097
- const r = pt(t), i = this.compiler || this.Compiler;
7105
+ const r = ht(t), i = this.compiler || this.Compiler;
7098
7106
  return Ot("stringify", i), or(n), i(n, r);
7099
7107
  }
7100
7108
  /**
@@ -7206,8 +7214,8 @@ class kn extends uu {
7206
7214
  r.push([u, ...f]);
7207
7215
  else if (f.length > 0) {
7208
7216
  let [p, ...g] = f;
7209
- const w = r[h][1];
7210
- en(w) && en(p) && (p = Dt(!0, w, p)), r[h] = [u, p, ...g];
7217
+ const b = r[h][1];
7218
+ en(b) && en(p) && (p = Dt(!0, b, p)), r[h] = [u, p, ...g];
7211
7219
  }
7212
7220
  }
7213
7221
  }
@@ -7237,7 +7245,7 @@ function ar(e, n, t) {
7237
7245
  "`" + e + "` finished async. Use `" + n + "` instead"
7238
7246
  );
7239
7247
  }
7240
- function pt(e) {
7248
+ function ht(e) {
7241
7249
  return pu(e) ? e : new ni(e);
7242
7250
  }
7243
7251
  function pu(e) {
@@ -7299,7 +7307,7 @@ function wu(e, n) {
7299
7307
  const t = n.allowedElements, r = n.allowElement, i = n.components, o = n.disallowedElements, l = n.skipHtml, a = n.unwrapDisallowed, s = n.urlTransform || Cu;
7300
7308
  for (const f of yu)
7301
7309
  Object.hasOwn(n, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + du + f.id, void 0);
7302
- return yn(e, u), Ml(e, {
7310
+ return yn(e, u), Fl(e, {
7303
7311
  Fragment: Oi,
7304
7312
  components: i,
7305
7313
  ignoreInvalidStyle: !0,
@@ -7313,10 +7321,10 @@ function wu(e, n) {
7313
7321
  return l ? h.children.splice(c, 1) : h.children[c] = { type: "text", value: f.value }, c;
7314
7322
  if (f.type === "element") {
7315
7323
  let p;
7316
- for (p in _t)
7317
- if (Object.hasOwn(_t, p) && Object.hasOwn(f.properties, p)) {
7318
- const g = f.properties[p], w = _t[p];
7319
- (w === null || w.includes(f.tagName)) && (f.properties[p] = s(String(g || ""), p, f));
7324
+ for (p in Tt)
7325
+ if (Object.hasOwn(Tt, p) && Object.hasOwn(f.properties, p)) {
7326
+ const g = f.properties[p], b = Tt[p];
7327
+ (b === null || b.includes(f.tagName)) && (f.properties[p] = s(String(g || ""), p, f));
7320
7328
  }
7321
7329
  }
7322
7330
  if (f.type === "element") {
@@ -7377,16 +7385,16 @@ function vu(e, n, t) {
7377
7385
  h.lastIndex = 0;
7378
7386
  let S = h.exec(u.value);
7379
7387
  for (; S; ) {
7380
- const R = S.index, N = {
7388
+ const M = S.index, F = {
7381
7389
  index: S.index,
7382
7390
  input: S.input,
7383
7391
  stack: [...f, u]
7384
7392
  };
7385
- let x = p(...S, N);
7386
- if (typeof x == "string" && (x = x.length > 0 ? { type: "text", value: x } : void 0), x === !1 ? h.lastIndex = R + 1 : (g !== R && I.push({
7393
+ let x = p(...S, F);
7394
+ if (typeof x == "string" && (x = x.length > 0 ? { type: "text", value: x } : void 0), x === !1 ? h.lastIndex = M + 1 : (g !== M && I.push({
7387
7395
  type: "text",
7388
- value: u.value.slice(g, R)
7389
- }), Array.isArray(x) ? I.push(...x) : x && I.push(x), g = R + S[0].length, k = !0), !h.global)
7396
+ value: u.value.slice(g, M)
7397
+ }), Array.isArray(x) ? I.push(...x) : x && I.push(x), g = M + S[0].length, k = !0), !h.global)
7390
7398
  break;
7391
7399
  S = h.exec(u.value);
7392
7400
  }
@@ -7414,9 +7422,9 @@ function Au(e) {
7414
7422
  };
7415
7423
  }
7416
7424
  const jt = "phrasing", Ht = ["autolink", "link", "image", "label"];
7417
- function Tu() {
7425
+ function _u() {
7418
7426
  return {
7419
- transforms: [Mu],
7427
+ transforms: [Fu],
7420
7428
  enter: {
7421
7429
  literalAutolink: Pu,
7422
7430
  literalAutolinkEmail: $t,
@@ -7424,14 +7432,14 @@ function Tu() {
7424
7432
  literalAutolinkWww: $t
7425
7433
  },
7426
7434
  exit: {
7427
- literalAutolink: Fu,
7435
+ literalAutolink: Mu,
7428
7436
  literalAutolinkEmail: Du,
7429
7437
  literalAutolinkHttp: zu,
7430
7438
  literalAutolinkWww: Lu
7431
7439
  }
7432
7440
  };
7433
7441
  }
7434
- function _u() {
7442
+ function Tu() {
7435
7443
  return {
7436
7444
  unsafe: [
7437
7445
  {
@@ -7475,10 +7483,10 @@ function Lu(e) {
7475
7483
  function Du(e) {
7476
7484
  this.config.exit.autolinkEmail.call(this, e);
7477
7485
  }
7478
- function Fu(e) {
7486
+ function Mu(e) {
7479
7487
  this.exit(e);
7480
7488
  }
7481
- function Mu(e) {
7489
+ function Fu(e) {
7482
7490
  vu(
7483
7491
  e,
7484
7492
  [
@@ -7677,7 +7685,7 @@ function lc(e, n) {
7677
7685
  const t = n || {}, r = (t.align || []).concat(), i = t.stringLength || ic, o = [], l = [], a = [], s = [];
7678
7686
  let u = 0, f = -1;
7679
7687
  for (; ++f < e.length; ) {
7680
- const w = [], C = [];
7688
+ const b = [], C = [];
7681
7689
  let k = -1;
7682
7690
  for (e[f].length > u && (u = e[f].length); ++k < e[f].length; ) {
7683
7691
  const I = oc(e[f][k]);
@@ -7685,25 +7693,25 @@ function lc(e, n) {
7685
7693
  const S = i(I);
7686
7694
  C[k] = S, (s[k] === void 0 || S > s[k]) && (s[k] = S);
7687
7695
  }
7688
- w.push(I);
7696
+ b.push(I);
7689
7697
  }
7690
- l[f] = w, a[f] = C;
7698
+ l[f] = b, a[f] = C;
7691
7699
  }
7692
7700
  let c = -1;
7693
7701
  if (typeof r == "object" && "length" in r)
7694
7702
  for (; ++c < u; )
7695
7703
  o[c] = fr(r[c]);
7696
7704
  else {
7697
- const w = fr(r);
7705
+ const b = fr(r);
7698
7706
  for (; ++c < u; )
7699
- o[c] = w;
7707
+ o[c] = b;
7700
7708
  }
7701
7709
  c = -1;
7702
7710
  const h = [], p = [];
7703
7711
  for (; ++c < u; ) {
7704
- const w = o[c];
7712
+ const b = o[c];
7705
7713
  let C = "", k = "";
7706
- w === 99 ? (C = ":", k = ":") : w === 108 ? C = ":" : w === 114 && (k = ":");
7714
+ b === 99 ? (C = ":", k = ":") : b === 108 ? C = ":" : b === 114 && (k = ":");
7707
7715
  let I = t.alignDelimiters === !1 ? 1 : Math.max(
7708
7716
  1,
7709
7717
  s[c] - C.length - k.length
@@ -7714,19 +7722,19 @@ function lc(e, n) {
7714
7722
  l.splice(1, 0, h), a.splice(1, 0, p), f = -1;
7715
7723
  const g = [];
7716
7724
  for (; ++f < l.length; ) {
7717
- const w = l[f], C = a[f];
7725
+ const b = l[f], C = a[f];
7718
7726
  c = -1;
7719
7727
  const k = [];
7720
7728
  for (; ++c < u; ) {
7721
- const I = w[c] || "";
7722
- let S = "", R = "";
7729
+ const I = b[c] || "";
7730
+ let S = "", M = "";
7723
7731
  if (t.alignDelimiters !== !1) {
7724
- const N = s[c] - (C[c] || 0), x = o[c];
7725
- x === 114 ? S = " ".repeat(N) : x === 99 ? N % 2 ? (S = " ".repeat(N / 2 + 0.5), R = " ".repeat(N / 2 - 0.5)) : (S = " ".repeat(N / 2), R = S) : R = " ".repeat(N);
7732
+ const F = s[c] - (C[c] || 0), x = o[c];
7733
+ x === 114 ? S = " ".repeat(F) : x === 99 ? F % 2 ? (S = " ".repeat(F / 2 + 0.5), M = " ".repeat(F / 2 - 0.5)) : (S = " ".repeat(F / 2), M = S) : M = " ".repeat(F);
7726
7734
  }
7727
7735
  t.delimiterStart !== !1 && !c && k.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
7728
7736
  // empty: there will be a closing space.
7729
- !(t.alignDelimiters === !1 && I === "") && (t.delimiterStart !== !1 || c) && k.push(" "), t.alignDelimiters !== !1 && k.push(S), k.push(I), t.alignDelimiters !== !1 && k.push(R), t.padding !== !1 && k.push(" "), (t.delimiterEnd !== !1 || c !== u - 1) && k.push("|");
7737
+ !(t.alignDelimiters === !1 && I === "") && (t.delimiterStart !== !1 || c) && k.push(" "), t.alignDelimiters !== !1 && k.push(S), k.push(I), t.alignDelimiters !== !1 && k.push(M), t.padding !== !1 && k.push(" "), (t.delimiterEnd !== !1 || c !== u - 1) && k.push("|");
7730
7738
  }
7731
7739
  g.push(
7732
7740
  t.delimiterEnd === !1 ? k.join("").replace(/ +$/, "") : k.join("")
@@ -7882,7 +7890,7 @@ function gc(e) {
7882
7890
  );
7883
7891
  return n;
7884
7892
  }
7885
- function nt(e) {
7893
+ function lt(e) {
7886
7894
  return "&#x" + e.toString(16).toUpperCase() + ";";
7887
7895
  }
7888
7896
  function wt(e, n, t) {
@@ -7933,9 +7941,9 @@ function ai(e, n, t, r) {
7933
7941
  u,
7934
7942
  i
7935
7943
  );
7936
- f.inside && (s = nt(u) + s.slice(1));
7944
+ f.inside && (s = lt(u) + s.slice(1));
7937
7945
  const c = s.charCodeAt(s.length - 1), h = wt(r.after.charCodeAt(0), c, i);
7938
- h.inside && (s = s.slice(0, -1) + nt(c));
7946
+ h.inside && (s = s.slice(0, -1) + lt(c));
7939
7947
  const p = l.move(i);
7940
7948
  return o(), t.attentionEncodeSurroundingInfo = {
7941
7949
  after: h.outside,
@@ -7979,7 +7987,7 @@ function xc(e, n, t, r) {
7979
7987
  `,
7980
7988
  ...o.current()
7981
7989
  });
7982
- return /^[\t ]/.test(u) && (u = nt(u.charCodeAt(0)) + u.slice(1)), u = u ? l + " " + u : l, t.options.closeAtx && (u += " " + l), s(), a(), u;
7990
+ return /^[\t ]/.test(u) && (u = lt(u.charCodeAt(0)) + u.slice(1)), u = u ? l + " " + u : l, t.options.closeAtx && (u += " " + l), s(), a(), u;
7983
7991
  }
7984
7992
  si.peek = bc;
7985
7993
  function si(e) {
@@ -8178,7 +8186,7 @@ function di(e) {
8178
8186
  );
8179
8187
  return n;
8180
8188
  }
8181
- function Tc(e, n, t, r) {
8189
+ function _c(e, n, t, r) {
8182
8190
  const i = t.enter("list"), o = t.bulletCurrent;
8183
8191
  let l = e.ordered ? Ac(t) : bn(t);
8184
8192
  const a = e.ordered ? l === "." ? ")" : "." : Ic(t);
@@ -8206,7 +8214,7 @@ function Tc(e, n, t, r) {
8206
8214
  const u = t.containerFlow(e, r);
8207
8215
  return t.bulletLastUsed = l, t.bulletCurrent = o, i(), u;
8208
8216
  }
8209
- function _c(e) {
8217
+ function Tc(e) {
8210
8218
  const n = e.options.listItemIndent || "one";
8211
8219
  if (n !== "tab" && n !== "one" && n !== "mixed")
8212
8220
  throw new Error(
@@ -8215,7 +8223,7 @@ function _c(e) {
8215
8223
  return n;
8216
8224
  }
8217
8225
  function Pc(e, n, t, r) {
8218
- const i = _c(t);
8226
+ const i = Tc(t);
8219
8227
  let o = t.bulletCurrent || bn(t);
8220
8228
  n && n.type === "list" && n.ordered && (o = (typeof n.start == "number" && n.start > -1 ? n.start : 1) + (t.options.incrementListMarker === !1 ? 0 : n.children.indexOf(e)) + o);
8221
8229
  let l = o.length + 1;
@@ -8266,7 +8274,7 @@ function Dc(e, n, t, r) {
8266
8274
  return Lc(l);
8267
8275
  }) ? t.containerPhrasing : t.containerFlow).call(t, e, r);
8268
8276
  }
8269
- function Fc(e) {
8277
+ function Mc(e) {
8270
8278
  const n = e.options.strong || "*";
8271
8279
  if (n !== "*" && n !== "_")
8272
8280
  throw new Error(
@@ -8274,9 +8282,9 @@ function Fc(e) {
8274
8282
  );
8275
8283
  return n;
8276
8284
  }
8277
- gi.peek = Mc;
8285
+ gi.peek = Fc;
8278
8286
  function gi(e, n, t, r) {
8279
- const i = Fc(t), o = t.enter("strong"), l = t.createTracker(r), a = l.move(i + i);
8287
+ const i = Mc(t), o = t.enter("strong"), l = t.createTracker(r), a = l.move(i + i);
8280
8288
  let s = l.move(
8281
8289
  t.containerPhrasing(e, {
8282
8290
  after: i,
@@ -8289,16 +8297,16 @@ function gi(e, n, t, r) {
8289
8297
  u,
8290
8298
  i
8291
8299
  );
8292
- f.inside && (s = nt(u) + s.slice(1));
8300
+ f.inside && (s = lt(u) + s.slice(1));
8293
8301
  const c = s.charCodeAt(s.length - 1), h = wt(r.after.charCodeAt(0), c, i);
8294
- h.inside && (s = s.slice(0, -1) + nt(c));
8302
+ h.inside && (s = s.slice(0, -1) + lt(c));
8295
8303
  const p = l.move(i + i);
8296
8304
  return o(), t.attentionEncodeSurroundingInfo = {
8297
8305
  after: h.outside,
8298
8306
  before: f.outside
8299
8307
  }, a + s + p;
8300
8308
  }
8301
- function Mc(e, n, t) {
8309
+ function Fc(e, n, t) {
8302
8310
  return t.options.strong || "*";
8303
8311
  }
8304
8312
  function Rc(e, n, t, r) {
@@ -8330,7 +8338,7 @@ const yi = {
8330
8338
  inlineCode: fi,
8331
8339
  link: hi,
8332
8340
  linkReference: mi,
8333
- list: Tc,
8341
+ list: _c,
8334
8342
  listItem: Pc,
8335
8343
  paragraph: zc,
8336
8344
  root: Dc,
@@ -8418,16 +8426,16 @@ function Uc(e) {
8418
8426
  tableRow: a
8419
8427
  }
8420
8428
  };
8421
- function l(p, g, w, C) {
8422
- return u(f(p, w, C), p.align);
8429
+ function l(p, g, b, C) {
8430
+ return u(f(p, b, C), p.align);
8423
8431
  }
8424
- function a(p, g, w, C) {
8425
- const k = c(p, w, C), I = u([k]);
8432
+ function a(p, g, b, C) {
8433
+ const k = c(p, b, C), I = u([k]);
8426
8434
  return I.slice(0, I.indexOf(`
8427
8435
  `));
8428
8436
  }
8429
- function s(p, g, w, C) {
8430
- const k = w.enter("tableCell"), I = w.enter("phrasing"), S = w.containerPhrasing(p, {
8437
+ function s(p, g, b, C) {
8438
+ const k = b.enter("tableCell"), I = b.enter("phrasing"), S = b.containerPhrasing(p, {
8431
8439
  ...C,
8432
8440
  before: o,
8433
8441
  after: o
@@ -8445,25 +8453,25 @@ function Uc(e) {
8445
8453
  stringLength: i
8446
8454
  });
8447
8455
  }
8448
- function f(p, g, w) {
8456
+ function f(p, g, b) {
8449
8457
  const C = p.children;
8450
8458
  let k = -1;
8451
8459
  const I = [], S = g.enter("table");
8452
8460
  for (; ++k < C.length; )
8453
- I[k] = c(C[k], g, w);
8461
+ I[k] = c(C[k], g, b);
8454
8462
  return S(), I;
8455
8463
  }
8456
- function c(p, g, w) {
8464
+ function c(p, g, b) {
8457
8465
  const C = p.children;
8458
8466
  let k = -1;
8459
8467
  const I = [], S = g.enter("tableRow");
8460
8468
  for (; ++k < C.length; )
8461
- I[k] = s(C[k], p, g, w);
8469
+ I[k] = s(C[k], p, g, b);
8462
8470
  return S(), I;
8463
8471
  }
8464
- function h(p, g, w) {
8465
- let C = yi.inlineCode(p, g, w);
8466
- return w.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
8472
+ function h(p, g, b) {
8473
+ let C = yi.inlineCode(p, g, b);
8474
+ return b.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
8467
8475
  }
8468
8476
  }
8469
8477
  function Wc() {
@@ -8520,7 +8528,7 @@ function Xc(e, n, t, r) {
8520
8528
  }
8521
8529
  function Gc() {
8522
8530
  return [
8523
- Tu(),
8531
+ _u(),
8524
8532
  Xu(),
8525
8533
  Zu(),
8526
8534
  Bc(),
@@ -8530,7 +8538,7 @@ function Gc() {
8530
8538
  function Jc(e) {
8531
8539
  return {
8532
8540
  extensions: [
8533
- _u(),
8541
+ Tu(),
8534
8542
  Gu(e),
8535
8543
  ec(),
8536
8544
  Uc(e),
@@ -8571,9 +8579,9 @@ function ef() {
8571
8579
  text: ge
8572
8580
  };
8573
8581
  }
8574
- let _e = 48;
8575
- for (; _e < 123; )
8576
- ge[_e] = Ce, _e++, _e === 58 ? _e = 65 : _e === 91 && (_e = 97);
8582
+ let Te = 48;
8583
+ for (; Te < 123; )
8584
+ ge[Te] = Ce, Te++, Te === 58 ? Te = 65 : Te === 91 && (Te = 97);
8577
8585
  ge[43] = Ce;
8578
8586
  ge[45] = Ce;
8579
8587
  ge[46] = Ce;
@@ -8883,8 +8891,8 @@ function df(e, n, t) {
8883
8891
  return t(g);
8884
8892
  if (g === 93) {
8885
8893
  e.exit("chunkString");
8886
- const w = e.exit("gfmFootnoteDefinitionLabelString");
8887
- return o = he(r.sliceSerialize(w)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
8894
+ const b = e.exit("gfmFootnoteDefinitionLabelString");
8895
+ return o = he(r.sliceSerialize(b)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
8888
8896
  }
8889
8897
  return Q(g) || (a = !0), l++, e.consume(g), g === 92 ? c : f;
8890
8898
  }
@@ -8899,7 +8907,7 @@ function df(e, n, t) {
8899
8907
  }
8900
8908
  }
8901
8909
  function gf(e, n, t) {
8902
- return e.check(lt, n, e.attempt(cf, n, t));
8910
+ return e.check(at, n, e.attempt(cf, n, t));
8903
8911
  }
8904
8912
  function yf(e) {
8905
8913
  e.exit("gfmFootnoteDefinition");
@@ -8964,12 +8972,12 @@ function xf(e) {
8964
8972
  return u === 126 && f[f.length - 1][1].type !== "characterEscape" ? s(g) : (l.enter("strikethroughSequenceTemporary"), p(g));
8965
8973
  }
8966
8974
  function p(g) {
8967
- const w = je(u);
8975
+ const b = je(u);
8968
8976
  if (g === 126)
8969
8977
  return c > 1 ? s(g) : (l.consume(g), c++, p);
8970
8978
  if (c < 2 && !t) return s(g);
8971
8979
  const C = l.exit("strikethroughSequenceTemporary"), k = je(g);
8972
- return C._open = !k || k === 2 && !!w, C._close = !w || w === 2 && !!k, a(g);
8980
+ return C._open = !k || k === 2 && !!b, C._close = !b || b === 2 && !!k, a(g);
8973
8981
  }
8974
8982
  }
8975
8983
  }
@@ -9077,15 +9085,15 @@ function vf(e, n, t) {
9077
9085
  let i = 0, o = 0, l;
9078
9086
  return a;
9079
9087
  function a(y) {
9080
- let _ = r.events.length - 1;
9081
- for (; _ > -1; ) {
9082
- const D = r.events[_][1].type;
9083
- if (D === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9084
- D === "linePrefix") _--;
9088
+ let T = r.events.length - 1;
9089
+ for (; T > -1; ) {
9090
+ const z = r.events[T][1].type;
9091
+ if (z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
9092
+ z === "linePrefix") T--;
9085
9093
  else break;
9086
9094
  }
9087
- const T = _ > -1 ? r.events[_][1].type : null, j = T === "tableHead" || T === "tableRow" ? x : s;
9088
- return j === x && r.parser.lazy[r.now().line] ? t(y) : j(y);
9095
+ const P = T > -1 ? r.events[T][1].type : null, B = P === "tableHead" || P === "tableRow" ? x : s;
9096
+ return B === x && r.parser.lazy[r.now().line] ? t(y) : B(y);
9089
9097
  }
9090
9098
  function s(y) {
9091
9099
  return e.enter("tableHead"), e.enter("tableRow"), u(y);
@@ -9094,7 +9102,7 @@ function vf(e, n, t) {
9094
9102
  return y === 124 || (l = !0, o += 1), f(y);
9095
9103
  }
9096
9104
  function f(y) {
9097
- return y === null ? t(y) : L(y) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), p) : t(y) : H(y) ? q(e, f, "whitespace")(y) : (o += 1, l && (l = !1, i += 1), y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(y)));
9105
+ return y === null ? t(y) : L(y) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), p) : t(y) : j(y) ? q(e, f, "whitespace")(y) : (o += 1, l && (l = !1, i += 1), y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), l = !0, f) : (e.enter("data"), c(y)));
9098
9106
  }
9099
9107
  function c(y) {
9100
9108
  return y === null || y === 124 || Q(y) ? (e.exit("data"), f(y)) : (e.consume(y), y === 92 ? h : c);
@@ -9103,43 +9111,43 @@ function vf(e, n, t) {
9103
9111
  return y === 92 || y === 124 ? (e.consume(y), c) : c(y);
9104
9112
  }
9105
9113
  function p(y) {
9106
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(y) : (e.enter("tableDelimiterRow"), l = !1, H(y) ? q(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : g(y));
9114
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? t(y) : (e.enter("tableDelimiterRow"), l = !1, j(y) ? q(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(y) : g(y));
9107
9115
  }
9108
9116
  function g(y) {
9109
- return y === 45 || y === 58 ? C(y) : y === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), w) : N(y);
9117
+ return y === 45 || y === 58 ? C(y) : y === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), b) : F(y);
9110
9118
  }
9111
- function w(y) {
9112
- return H(y) ? q(e, C, "whitespace")(y) : C(y);
9119
+ function b(y) {
9120
+ return j(y) ? q(e, C, "whitespace")(y) : C(y);
9113
9121
  }
9114
9122
  function C(y) {
9115
- return y === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), k) : y === 45 ? (o += 1, k(y)) : y === null || L(y) ? R(y) : N(y);
9123
+ return y === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), k) : y === 45 ? (o += 1, k(y)) : y === null || L(y) ? M(y) : F(y);
9116
9124
  }
9117
9125
  function k(y) {
9118
- return y === 45 ? (e.enter("tableDelimiterFiller"), I(y)) : N(y);
9126
+ return y === 45 ? (e.enter("tableDelimiterFiller"), I(y)) : F(y);
9119
9127
  }
9120
9128
  function I(y) {
9121
9129
  return y === 45 ? (e.consume(y), I) : y === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(y), e.exit("tableDelimiterMarker"), S) : (e.exit("tableDelimiterFiller"), S(y));
9122
9130
  }
9123
9131
  function S(y) {
9124
- return H(y) ? q(e, R, "whitespace")(y) : R(y);
9132
+ return j(y) ? q(e, M, "whitespace")(y) : M(y);
9125
9133
  }
9126
- function R(y) {
9127
- return y === 124 ? g(y) : y === null || L(y) ? !l || i !== o ? N(y) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(y)) : N(y);
9134
+ function M(y) {
9135
+ return y === 124 ? g(y) : y === null || L(y) ? !l || i !== o ? F(y) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(y)) : F(y);
9128
9136
  }
9129
- function N(y) {
9137
+ function F(y) {
9130
9138
  return t(y);
9131
9139
  }
9132
9140
  function x(y) {
9133
- return e.enter("tableRow"), z(y);
9141
+ return e.enter("tableRow"), O(y);
9134
9142
  }
9135
- function z(y) {
9136
- return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), z) : y === null || L(y) ? (e.exit("tableRow"), n(y)) : H(y) ? q(e, z, "whitespace")(y) : (e.enter("data"), M(y));
9143
+ function O(y) {
9144
+ return y === 124 ? (e.enter("tableCellDivider"), e.consume(y), e.exit("tableCellDivider"), O) : y === null || L(y) ? (e.exit("tableRow"), n(y)) : j(y) ? q(e, O, "whitespace")(y) : (e.enter("data"), H(y));
9137
9145
  }
9138
- function M(y) {
9139
- return y === null || y === 124 || Q(y) ? (e.exit("data"), z(y)) : (e.consume(y), y === 92 ? F : M);
9146
+ function H(y) {
9147
+ return y === null || y === 124 || Q(y) ? (e.exit("data"), O(y)) : (e.consume(y), y === 92 ? D : H);
9140
9148
  }
9141
- function F(y) {
9142
- return y === 92 || y === 124 ? (e.consume(y), M) : M(y);
9149
+ function D(y) {
9150
+ return y === 92 || y === 124 ? (e.consume(y), H) : H(y);
9143
9151
  }
9144
9152
  }
9145
9153
  function Ef(e, n) {
@@ -9157,7 +9165,7 @@ function Ef(e, n) {
9157
9165
  start: Object.assign({}, g.start),
9158
9166
  // Note: correct end is set later.
9159
9167
  end: Object.assign({}, g.end)
9160
- }, h.add(t, 0, [["enter", f, n]])), i = g.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c = ht(h, n, o, i, void 0, c), o = [0, 0, 0, 0]), l[2] = t)) : g.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (l[0] = l[1], c = ht(h, n, o, i, void 0, c)), o = l, l = [o[1], t, 0, 0])) : g.type === "tableHead" ? (a = !0, s = t) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (s = t, o[1] !== 0 ? (l[0] = l[1], c = ht(h, n, o, i, t, c)) : l[1] !== 0 && (c = ht(h, n, l, i, t, c)), i = 0) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") && (l[3] = t);
9168
+ }, h.add(t, 0, [["enter", f, n]])), i = g.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c = mt(h, n, o, i, void 0, c), o = [0, 0, 0, 0]), l[2] = t)) : g.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (l[0] = l[1], c = mt(h, n, o, i, void 0, c)), o = l, l = [o[1], t, 0, 0])) : g.type === "tableHead" ? (a = !0, s = t) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (s = t, o[1] !== 0 ? (l[0] = l[1], c = mt(h, n, o, i, t, c)) : l[1] !== 0 && (c = mt(h, n, l, i, t, c)), i = 0) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") && (l[3] = t);
9161
9169
  }
9162
9170
  for (s !== 0 && gr(h, n, s, u, f), h.consume(n.events), t = -1; ++t < n.events.length; ) {
9163
9171
  const p = n.events[t];
@@ -9165,7 +9173,7 @@ function Ef(e, n) {
9165
9173
  }
9166
9174
  return e;
9167
9175
  }
9168
- function ht(e, n, t, r, i, o) {
9176
+ function mt(e, n, t, r, i, o) {
9169
9177
  const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
9170
9178
  t[0] !== 0 && (o.end = Object.assign({}, Be(n.events, t[0])), e.add(t[0], 0, [["exit", o, n]]));
9171
9179
  const s = Be(n.events, t[1]);
@@ -9183,8 +9191,8 @@ function ht(e, n, t, r, i, o) {
9183
9191
  if (e.add(t[2], 0, [["enter", c, n]]), r !== 2) {
9184
9192
  const h = n.events[t[2]], p = n.events[t[3]];
9185
9193
  if (h[1].end = Object.assign({}, p[1].end), h[1].type = "chunkText", h[1].contentType = "text", t[3] > t[2] + 1) {
9186
- const g = t[2] + 1, w = t[3] - t[2] - 1;
9187
- e.add(g, w, []);
9194
+ const g = t[2] + 1, b = t[3] - t[2] - 1;
9195
+ e.add(g, b, []);
9188
9196
  }
9189
9197
  }
9190
9198
  e.add(t[3] + 1, 0, [["exit", c, n]]);
@@ -9201,7 +9209,7 @@ function Be(e, n) {
9201
9209
  }
9202
9210
  const If = {
9203
9211
  name: "tasklistCheck",
9204
- tokenize: Tf
9212
+ tokenize: _f
9205
9213
  };
9206
9214
  function Af() {
9207
9215
  return {
@@ -9210,7 +9218,7 @@ function Af() {
9210
9218
  }
9211
9219
  };
9212
9220
  }
9213
- function Tf(e, n, t) {
9221
+ function _f(e, n, t) {
9214
9222
  const r = this;
9215
9223
  return i;
9216
9224
  function i(s) {
@@ -9228,19 +9236,19 @@ function Tf(e, n, t) {
9228
9236
  return s === 93 ? (e.enter("taskListCheckMarker"), e.consume(s), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), a) : t(s);
9229
9237
  }
9230
9238
  function a(s) {
9231
- return L(s) ? n(s) : H(s) ? e.check({
9232
- tokenize: _f
9239
+ return L(s) ? n(s) : j(s) ? e.check({
9240
+ tokenize: Tf
9233
9241
  }, n, t)(s) : t(s);
9234
9242
  }
9235
9243
  }
9236
- function _f(e, n, t) {
9244
+ function Tf(e, n, t) {
9237
9245
  return q(e, r, "whitespace");
9238
9246
  function r(i) {
9239
9247
  return i === null ? t(i) : n(i);
9240
9248
  }
9241
9249
  }
9242
9250
  function Pf(e) {
9243
- return Mr([
9251
+ return Fr([
9244
9252
  ef(),
9245
9253
  ff(),
9246
9254
  xf(e),
@@ -9256,17 +9264,17 @@ function Lf(e) {
9256
9264
  ), t = e || zf, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
9257
9265
  i.push(Pf(t)), o.push(Gc()), l.push(Jc(t));
9258
9266
  }
9259
- const Df = "_wrapper_v5oy7_1", Ff = "_table_v5oy7_8", Mf = "_th_v5oy7_14", Rf = "_tr_v5oy7_24", Nf = "_td_v5oy7_32", Ge = {
9267
+ const Df = "_wrapper_v5oy7_1", Mf = "_table_v5oy7_8", Ff = "_th_v5oy7_14", Rf = "_tr_v5oy7_24", Nf = "_td_v5oy7_32", Ke = {
9260
9268
  wrapper: Df,
9261
- table: Ff,
9262
- th: Mf,
9269
+ table: Mf,
9270
+ th: Ff,
9263
9271
  tr: Rf,
9264
9272
  td: Nf
9265
9273
  };
9266
9274
  function Of({ part: e }) {
9267
- return /* @__PURE__ */ E("div", { className: Ge.wrapper, children: /* @__PURE__ */ Y("table", { className: Ge.table, children: [
9268
- /* @__PURE__ */ E("thead", { children: /* @__PURE__ */ E("tr", { children: e.columns.map((n) => /* @__PURE__ */ E("th", { className: Ge.th, children: n }, n)) }) }),
9269
- /* @__PURE__ */ E("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ E("tr", { className: Ge.tr, children: e.columns.map((r) => /* @__PURE__ */ E("td", { className: Ge.td, children: String(n[r] ?? "") }, r)) }, t)) })
9275
+ return /* @__PURE__ */ E("div", { className: Ke.wrapper, children: /* @__PURE__ */ Y("table", { className: Ke.table, children: [
9276
+ /* @__PURE__ */ E("thead", { children: /* @__PURE__ */ E("tr", { children: e.columns.map((n) => /* @__PURE__ */ E("th", { className: Ke.th, children: n }, n)) }) }),
9277
+ /* @__PURE__ */ E("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ E("tr", { className: Ke.tr, children: e.columns.map((r) => /* @__PURE__ */ E("td", { className: Ke.td, children: String(n[r] ?? "") }, r)) }, t)) })
9270
9278
  ] }) });
9271
9279
  }
9272
9280
  const Bf = "_card_q8nsq_1", jf = "_header_q8nsq_9", Hf = "_icon_q8nsq_16", $f = "_title_q8nsq_23", qf = "_description_q8nsq_29", Vf = "_actions_q8nsq_36", Uf = "_confirm_q8nsq_41", Wf = "_cancel_q8nsq_57", Ee = {
@@ -9280,7 +9288,7 @@ const Bf = "_card_q8nsq_1", jf = "_header_q8nsq_9", Hf = "_icon_q8nsq_16", $f =
9280
9288
  cancel: Wf
9281
9289
  };
9282
9290
  function Qf({ part: e, onConfirm: n, onCancel: t }) {
9283
- const r = rt(), { proposal: i } = e;
9291
+ const r = He(), { proposal: i } = e;
9284
9292
  return /* @__PURE__ */ Y("div", { className: Ee.card, children: [
9285
9293
  /* @__PURE__ */ Y("div", { className: Ee.header, children: [
9286
9294
  /* @__PURE__ */ E("svg", { className: Ee.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ E("path", { d: "M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z" }) }),
@@ -9361,59 +9369,69 @@ function ip({ message: e, onProposalConfirm: n, onProposalCancel: t, assistantIc
9361
9369
  i && /* @__PURE__ */ E("div", { className: Pe.avatar, children: "You" })
9362
9370
  ] });
9363
9371
  }
9364
- const lp = "_wrapper_c5015_1", op = "_dot_c5015_8", mt = {
9372
+ const lp = "_wrapper_1dvvu_1", op = "_dot_1dvvu_8", ap = "_connectingLabel_1dvvu_19", Ze = {
9365
9373
  wrapper: lp,
9366
- dot: op
9374
+ dot: op,
9375
+ connectingLabel: ap
9367
9376
  };
9368
- function ap() {
9369
- return /* @__PURE__ */ Y("div", { className: mt.wrapper, "aria-label": "Assistant is typing", children: [
9370
- /* @__PURE__ */ E("span", { className: mt.dot }),
9371
- /* @__PURE__ */ E("span", { className: mt.dot }),
9372
- /* @__PURE__ */ E("span", { className: mt.dot })
9373
- ] });
9377
+ function sp({ connecting: e = !1 }) {
9378
+ const n = He();
9379
+ return /* @__PURE__ */ Y(
9380
+ "div",
9381
+ {
9382
+ className: Ze.wrapper,
9383
+ "aria-label": e ? n.connectingMessage : n.typingMessage,
9384
+ children: [
9385
+ /* @__PURE__ */ E("span", { className: Ze.dot }),
9386
+ /* @__PURE__ */ E("span", { className: Ze.dot }),
9387
+ /* @__PURE__ */ E("span", { className: Ze.dot }),
9388
+ e && /* @__PURE__ */ E("span", { className: Ze.connectingLabel, children: n.connectingMessage })
9389
+ ]
9390
+ }
9391
+ );
9374
9392
  }
9375
- const sp = "_list_1f8gn_1", up = "_empty_1f8gn_11", cp = "_hint_1f8gn_24", fp = "_typing_1f8gn_31", dt = {
9376
- list: sp,
9377
- empty: up,
9378
- hint: cp,
9379
- typing: fp
9393
+ const up = "_list_1f8gn_1", cp = "_empty_1f8gn_11", fp = "_hint_1f8gn_24", pp = "_typing_1f8gn_31", dt = {
9394
+ list: up,
9395
+ empty: cp,
9396
+ hint: fp,
9397
+ typing: pp
9380
9398
  };
9381
- function pp({ messages: e, isLoading: n, onProposalConfirm: t, onProposalCancel: r, assistantIcon: i }) {
9382
- const o = rt(), l = yr(null);
9399
+ function hp({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r, onProposalCancel: i, assistantIcon: o }) {
9400
+ const l = He(), a = yr(null);
9383
9401
  return Ni(() => {
9384
- l.current?.scrollIntoView({ behavior: "smooth" });
9402
+ a.current?.scrollIntoView({ behavior: "smooth" });
9385
9403
  }, [e, n]), /* @__PURE__ */ Y("div", { className: dt.list, children: [
9386
9404
  e.length === 0 && /* @__PURE__ */ Y("div", { className: dt.empty, children: [
9387
- /* @__PURE__ */ E("p", { children: o.emptyStateText }),
9388
- /* @__PURE__ */ E("p", { className: dt.hint, children: /* @__PURE__ */ E("em", { children: o.emptyStateHint }) })
9405
+ /* @__PURE__ */ E("p", { children: l.emptyStateText }),
9406
+ /* @__PURE__ */ E("p", { className: dt.hint, children: /* @__PURE__ */ E("em", { children: l.emptyStateHint }) })
9389
9407
  ] }),
9390
- e.map((a) => /* @__PURE__ */ E(
9408
+ e.map((s) => /* @__PURE__ */ E(
9391
9409
  ip,
9392
9410
  {
9393
- message: a,
9394
- onProposalConfirm: t,
9395
- onProposalCancel: r,
9396
- assistantIcon: i
9411
+ message: s,
9412
+ onProposalConfirm: r,
9413
+ onProposalCancel: i,
9414
+ assistantIcon: o
9397
9415
  },
9398
- a.id
9416
+ s.id
9399
9417
  )),
9400
- n && /* @__PURE__ */ E("div", { className: dt.typing, children: /* @__PURE__ */ E(ap, {}) }),
9401
- /* @__PURE__ */ E("div", { ref: l })
9418
+ n && /* @__PURE__ */ E("div", { className: dt.typing, children: /* @__PURE__ */ E(sp, { connecting: t }) }),
9419
+ /* @__PURE__ */ E("div", { ref: a })
9402
9420
  ] });
9403
9421
  }
9404
- const hp = "_wrapper_v8iyr_1", mp = "_textarea_v8iyr_11", dp = "_toolbar_v8iyr_35", gp = "_actions_v8iyr_45", yp = "_actionBtn_v8iyr_52", kp = "_sendBtn_v8iyr_85", xp = "_spinnerIcon_v8iyr_116", bp = "_stopBtn_v8iyr_126", wp = "_stopIcon_v8iyr_149", we = {
9405
- wrapper: hp,
9406
- textarea: mp,
9407
- toolbar: dp,
9408
- actions: gp,
9409
- actionBtn: yp,
9410
- sendBtn: kp,
9411
- spinnerIcon: xp,
9412
- stopBtn: bp,
9413
- stopIcon: wp
9422
+ const mp = "_wrapper_v8iyr_1", dp = "_textarea_v8iyr_11", gp = "_toolbar_v8iyr_35", yp = "_actions_v8iyr_45", kp = "_actionBtn_v8iyr_52", xp = "_sendBtn_v8iyr_85", bp = "_spinnerIcon_v8iyr_116", wp = "_stopBtn_v8iyr_126", Cp = "_stopIcon_v8iyr_149", we = {
9423
+ wrapper: mp,
9424
+ textarea: dp,
9425
+ toolbar: gp,
9426
+ actions: yp,
9427
+ actionBtn: kp,
9428
+ sendBtn: xp,
9429
+ spinnerIcon: bp,
9430
+ stopBtn: wp,
9431
+ stopIcon: Cp
9414
9432
  };
9415
- function Cp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
9416
- const s = rt(), u = [
9433
+ function Sp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeholder: o, actions: l, sendIcon: a }) {
9434
+ const s = He(), u = [
9417
9435
  { icon: /* @__PURE__ */ E(el, {}), label: s.actionAddFile },
9418
9436
  { icon: /* @__PURE__ */ E(tl, {}), label: s.actionQuickActions },
9419
9437
  { icon: /* @__PURE__ */ E(nl, {}), label: s.actionNew },
@@ -9481,92 +9499,94 @@ function Cp({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9481
9499
  ] })
9482
9500
  ] });
9483
9501
  }
9484
- const Sp = "_wrapper_1kefv_1", vp = "_icon_1kefv_14", Ep = "_message_1kefv_20", Ip = "_dismiss_1kefv_24", gt = {
9485
- wrapper: Sp,
9486
- icon: vp,
9487
- message: Ep,
9488
- dismiss: Ip
9502
+ const vp = "_wrapper_1kefv_1", Ep = "_icon_1kefv_14", Ip = "_message_1kefv_20", Ap = "_dismiss_1kefv_24", gt = {
9503
+ wrapper: vp,
9504
+ icon: Ep,
9505
+ message: Ip,
9506
+ dismiss: Ap
9489
9507
  };
9490
- function Ap({ message: e, onDismiss: n }) {
9491
- const t = rt();
9508
+ function _p({ message: e, onDismiss: n }) {
9509
+ const t = He();
9492
9510
  return /* @__PURE__ */ Y("div", { className: gt.wrapper, role: "alert", children: [
9493
9511
  /* @__PURE__ */ E("svg", { className: gt.icon, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ E("path", { fillRule: "evenodd", d: "M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }) }),
9494
9512
  /* @__PURE__ */ E("span", { className: gt.message, children: e }),
9495
9513
  n && /* @__PURE__ */ E("button", { className: gt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ E("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ E("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
9496
9514
  ] });
9497
9515
  }
9498
- const Tp = "_chat_1acbe_1", _p = {
9516
+ const Tp = "_chat_1acbe_1", Pp = {
9499
9517
  chat: Tp
9500
9518
  };
9501
- function Pp({
9519
+ function zp({
9502
9520
  messages: e,
9503
9521
  input: n,
9504
9522
  isLoading: t,
9505
- error: r,
9506
- onInputChange: i,
9507
- onSend: o,
9508
- onStop: l,
9509
- onProposalConfirm: a,
9510
- onProposalCancel: s,
9511
- placeholder: u,
9512
- assistantIcon: f,
9513
- actions: c,
9514
- sendIcon: h,
9515
- className: p,
9516
- style: g
9523
+ isConnecting: r,
9524
+ error: i,
9525
+ onInputChange: o,
9526
+ onSend: l,
9527
+ onStop: a,
9528
+ onProposalConfirm: s,
9529
+ onProposalCancel: u,
9530
+ placeholder: f,
9531
+ assistantIcon: c,
9532
+ actions: h,
9533
+ sendIcon: p,
9534
+ className: g,
9535
+ style: b
9517
9536
  }) {
9518
9537
  return /* @__PURE__ */ Y(
9519
9538
  "div",
9520
9539
  {
9521
- className: [_p.chat, p].filter(Boolean).join(" "),
9522
- style: g,
9540
+ className: [Pp.chat, g].filter(Boolean).join(" "),
9541
+ style: b,
9523
9542
  children: [
9524
9543
  /* @__PURE__ */ E(
9525
- pp,
9544
+ hp,
9526
9545
  {
9527
9546
  messages: e,
9528
9547
  isLoading: t,
9529
- onProposalConfirm: a,
9530
- onProposalCancel: s,
9531
- assistantIcon: f
9548
+ isConnecting: r,
9549
+ onProposalConfirm: s,
9550
+ onProposalCancel: u,
9551
+ assistantIcon: c
9532
9552
  }
9533
9553
  ),
9534
- r && /* @__PURE__ */ E(Ap, { message: r }),
9554
+ i && /* @__PURE__ */ E(_p, { message: i }),
9535
9555
  /* @__PURE__ */ E(
9536
- Cp,
9556
+ Sp,
9537
9557
  {
9538
9558
  value: n,
9539
- onChange: i,
9540
- onSend: o,
9541
- onStop: l,
9559
+ onChange: o,
9560
+ onSend: l,
9561
+ onStop: a,
9542
9562
  isLoading: t,
9543
- placeholder: u,
9544
- actions: c,
9545
- sendIcon: h
9563
+ placeholder: f,
9564
+ actions: h,
9565
+ sendIcon: p
9546
9566
  }
9547
9567
  )
9548
9568
  ]
9549
9569
  }
9550
9570
  );
9551
9571
  }
9552
- const zp = "_header_3rkjl_1", Lp = "_left_3rkjl_12", Dp = "_icon_3rkjl_18", Fp = "_title_3rkjl_23", Mp = "_resetBtn_3rkjl_29", Je = {
9553
- header: zp,
9554
- left: Lp,
9555
- icon: Dp,
9572
+ const Lp = "_header_3rkjl_1", Dp = "_left_3rkjl_12", Mp = "_icon_3rkjl_18", Fp = "_title_3rkjl_23", Rp = "_resetBtn_3rkjl_29", et = {
9573
+ header: Lp,
9574
+ left: Dp,
9575
+ icon: Mp,
9556
9576
  title: Fp,
9557
- resetBtn: Mp
9577
+ resetBtn: Rp
9558
9578
  };
9559
- function Rp({ title: e, onReset: n, icon: t }) {
9560
- const r = rt();
9561
- return /* @__PURE__ */ Y("div", { className: Je.header, children: [
9562
- /* @__PURE__ */ Y("div", { className: Je.left, children: [
9563
- /* @__PURE__ */ E("span", { className: Je.icon, "aria-hidden": "true", children: t ?? /* @__PURE__ */ E(xr, {}) }),
9564
- /* @__PURE__ */ E("span", { className: Je.title, children: e ?? r.sidebarTitle })
9579
+ function Np({ title: e, onReset: n, icon: t }) {
9580
+ const r = He();
9581
+ return /* @__PURE__ */ Y("div", { className: et.header, children: [
9582
+ /* @__PURE__ */ Y("div", { className: et.left, children: [
9583
+ /* @__PURE__ */ E("span", { className: et.icon, "aria-hidden": "true", children: t ?? /* @__PURE__ */ E(xr, {}) }),
9584
+ /* @__PURE__ */ E("span", { className: et.title, children: e ?? r.sidebarTitle })
9565
9585
  ] }),
9566
9586
  n && /* @__PURE__ */ E(
9567
9587
  "button",
9568
9588
  {
9569
- className: Je.resetBtn,
9589
+ className: et.resetBtn,
9570
9590
  onClick: n,
9571
9591
  title: r.clearConversation,
9572
9592
  "aria-label": r.clearConversation,
@@ -9575,10 +9595,10 @@ function Rp({ title: e, onReset: n, icon: t }) {
9575
9595
  )
9576
9596
  ] });
9577
9597
  }
9578
- const Np = "_sidebar_1ukfc_1", Op = {
9579
- sidebar: Np
9598
+ const Op = "_sidebar_1ukfc_1", Bp = {
9599
+ sidebar: Op
9580
9600
  };
9581
- function Wp({
9601
+ function Yp({
9582
9602
  adapter: e,
9583
9603
  title: n,
9584
9604
  context: t,
@@ -9596,35 +9616,37 @@ function Wp({
9596
9616
  setInput: h,
9597
9617
  sendMessage: p,
9598
9618
  stop: g,
9599
- isLoading: w,
9600
- error: C,
9601
- reset: k,
9602
- confirmProposal: I,
9603
- cancelProposal: S
9604
- } = Xi({ adapter: e, context: t, onProposalConfirm: r, onProposalCancel: i }), R = (x, z) => {
9605
- I(x, z);
9606
- }, N = (x) => {
9607
- S(x);
9619
+ isLoading: b,
9620
+ isConnecting: C,
9621
+ error: k,
9622
+ reset: I,
9623
+ confirmProposal: S,
9624
+ cancelProposal: M
9625
+ } = Xi({ adapter: e, context: t, onProposalConfirm: r, onProposalCancel: i }), F = (O, H) => {
9626
+ S(O, H);
9627
+ }, x = (O) => {
9628
+ M(O);
9608
9629
  };
9609
9630
  return /* @__PURE__ */ Y(
9610
9631
  "aside",
9611
9632
  {
9612
- className: [Op.sidebar, s].filter(Boolean).join(" "),
9633
+ className: [Bp.sidebar, s].filter(Boolean).join(" "),
9613
9634
  style: u,
9614
9635
  children: [
9615
- /* @__PURE__ */ E(Rp, { title: n, onReset: k, icon: o }),
9636
+ /* @__PURE__ */ E(Np, { title: n, onReset: I, icon: o }),
9616
9637
  /* @__PURE__ */ E(
9617
- Pp,
9638
+ zp,
9618
9639
  {
9619
9640
  messages: f,
9620
9641
  input: c,
9621
- isLoading: w,
9622
- error: C,
9642
+ isLoading: b,
9643
+ isConnecting: C,
9644
+ error: k,
9623
9645
  onInputChange: h,
9624
9646
  onSend: p,
9625
9647
  onStop: g,
9626
- onProposalConfirm: R,
9627
- onProposalCancel: N,
9648
+ onProposalConfirm: F,
9649
+ onProposalCancel: x,
9628
9650
  assistantIcon: o,
9629
9651
  actions: l,
9630
9652
  sendIcon: a
@@ -9635,23 +9657,24 @@ function Wp({
9635
9657
  );
9636
9658
  }
9637
9659
  export {
9638
- Ap as AiError,
9639
- Cp as AiInput,
9660
+ _p as AiError,
9661
+ Sp as AiInput,
9640
9662
  ip as AiMessageBubble,
9641
- pp as AiMessageList,
9663
+ hp as AiMessageList,
9642
9664
  Jf as AiMessagePartRenderer,
9643
9665
  Qf as AiProposalCard,
9644
- Wp as AiSidebar,
9666
+ Yp as AiSidebar,
9645
9667
  Of as AiTablePart,
9646
- ap as AiTypingIndicator,
9647
- Vp as JuneauProvider,
9668
+ sp as AiTypingIndicator,
9669
+ Wp as JuneauProvider,
9648
9670
  An as consumeStream,
9649
- qp as createFetchStreamAdapter,
9650
- $p as createSseAdapter,
9671
+ Up as createFetchStreamAdapter,
9672
+ Vp as createSseAdapter,
9651
9673
  re as delay,
9652
- Up as juneauCs,
9674
+ $p as getMessageText,
9675
+ Qp as juneauCs,
9653
9676
  Ut as juneauEn,
9654
- Hp as mockAdapter,
9677
+ qp as mockAdapter,
9655
9678
  Xi as useAiChat
9656
9679
  };
9657
9680
  //# sourceMappingURL=index.js.map