zudoku 0.3.0-dev.68 → 0.3.0-dev.69

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.
Files changed (85) hide show
  1. package/dist/app/main.js +1 -0
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/validate.d.ts +3 -0
  4. package/dist/config/validators/validate.js +1 -0
  5. package/dist/config/validators/validate.js.map +1 -1
  6. package/dist/lib/components/DevPortal.d.ts +1 -0
  7. package/dist/lib/components/DevPortal.js +3 -1
  8. package/dist/lib/components/DevPortal.js.map +1 -1
  9. package/dist/lib/components/Layout.js +2 -1
  10. package/dist/lib/components/Layout.js.map +1 -1
  11. package/dist/lib/components/SlotletProvider.d.ts +9 -0
  12. package/dist/lib/components/SlotletProvider.js +11 -0
  13. package/dist/lib/components/SlotletProvider.js.map +1 -0
  14. package/dist/lib/components/context/ViewportAnchorContext.js +1 -2
  15. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  16. package/dist/lib/components/navigation/SideNavigation.js +3 -2
  17. package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
  18. package/dist/lib/core/DevPortalContext.d.ts +2 -0
  19. package/dist/lib/core/DevPortalContext.js.map +1 -1
  20. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +2 -1
  21. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  22. package/dist/lib/plugins/api-keys/index.js +1 -1
  23. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  24. package/dist/lib/plugins/markdown/Toc.js +1 -2
  25. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  26. package/dist/lib/plugins/openapi/StaggeredRender.js +2 -3
  27. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -1
  28. package/dist/lib/util/invariant.d.ts +6 -0
  29. package/dist/lib/util/invariant.js +21 -0
  30. package/dist/lib/util/invariant.js.map +1 -0
  31. package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
  32. package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
  33. package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
  34. package/dist/lib/util/useScrollToAnchor.js +2 -3
  35. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  36. package/lib/{AnchorLink-61IZfWrS.js → AnchorLink-C_pYhuZi.js} +2 -2
  37. package/lib/{AnchorLink-61IZfWrS.js.map → AnchorLink-C_pYhuZi.js.map} +1 -1
  38. package/lib/{CategoryHeading-aW8CL0KA.js → CategoryHeading-D5Q-X6lE.js} +2 -2
  39. package/lib/{CategoryHeading-aW8CL0KA.js.map → CategoryHeading-D5Q-X6lE.js.map} +1 -1
  40. package/lib/{Combination-BbWKjDLe.js → Combination-Cq0UkOXq.js} +2 -2
  41. package/lib/{Combination-BbWKjDLe.js.map → Combination-Cq0UkOXq.js.map} +1 -1
  42. package/lib/{Input-BY0B_0qy.js → Input-DdAxw3vC.js} +3 -3
  43. package/lib/{Input-BY0B_0qy.js.map → Input-DdAxw3vC.js.map} +1 -1
  44. package/lib/{Markdown-BO5EsS-C.js → Markdown-DsCvZnhw.js} +746 -748
  45. package/lib/Markdown-DsCvZnhw.js.map +1 -0
  46. package/lib/{MdxPage-DEfyHwSx.js → MdxPage-B_7x36CA.js} +28 -28
  47. package/lib/MdxPage-B_7x36CA.js.map +1 -0
  48. package/lib/{OperationList-VK1_1rzp.js → OperationList-i6FGZUu4.js} +7 -7
  49. package/lib/{OperationList-VK1_1rzp.js.map → OperationList-i6FGZUu4.js.map} +1 -1
  50. package/lib/{hook-gOGk1OUF.js → SlotletProvider-CpNYmq6S.js} +42 -33
  51. package/lib/SlotletProvider-CpNYmq6S.js.map +1 -0
  52. package/lib/{Spinner-6NfpF1CA.js → Spinner-BBPlEab_.js} +48 -48
  53. package/lib/Spinner-BBPlEab_.js.map +1 -0
  54. package/lib/{index-7W7DUZbY.js → index-DT-cf5tv.js} +4 -4
  55. package/lib/{index-7W7DUZbY.js.map → index-DT-cf5tv.js.map} +1 -1
  56. package/lib/zudoku.components.js +544 -534
  57. package/lib/zudoku.components.js.map +1 -1
  58. package/lib/zudoku.plugin-api-keys.js +49 -46
  59. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  60. package/lib/zudoku.plugin-custom-page.js +1 -1
  61. package/lib/zudoku.plugin-markdown.js +1 -1
  62. package/lib/zudoku.plugin-openapi.js +2 -2
  63. package/package.json +1 -2
  64. package/src/app/main.tsx +1 -0
  65. package/src/lib/components/DevPortal.tsx +5 -1
  66. package/src/lib/components/Layout.tsx +3 -0
  67. package/src/lib/components/SlotletProvider.tsx +25 -0
  68. package/src/lib/components/context/ViewportAnchorContext.tsx +1 -2
  69. package/src/lib/components/navigation/SideNavigation.tsx +3 -0
  70. package/src/lib/core/DevPortalContext.ts +2 -0
  71. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +3 -0
  72. package/src/lib/plugins/api-keys/index.tsx +1 -1
  73. package/src/lib/plugins/markdown/Toc.tsx +1 -2
  74. package/src/lib/plugins/openapi/StaggeredRender.tsx +2 -3
  75. package/src/lib/util/invariant.ts +26 -0
  76. package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
  77. package/src/lib/util/useScrollToAnchor.ts +2 -3
  78. package/dist/lib/util/requestIdle.d.ts +0 -2
  79. package/dist/lib/util/requestIdle.js +0 -3
  80. package/dist/lib/util/requestIdle.js.map +0 -1
  81. package/lib/Markdown-BO5EsS-C.js.map +0 -1
  82. package/lib/MdxPage-DEfyHwSx.js.map +0 -1
  83. package/lib/Spinner-6NfpF1CA.js.map +0 -1
  84. package/lib/hook-gOGk1OUF.js.map +0 -1
  85. package/src/lib/util/requestIdle.ts +0 -4
@@ -828,7 +828,7 @@ function Gi(e, t) {
828
828
  let a = Ue(n.currentLocation.pathname, r) || n.currentLocation.pathname, o = Ue(n.nextLocation.pathname, r) || n.nextLocation.pathname;
829
829
  return Sn(i.pathname, o) != null || Sn(i.pathname, a) != null;
830
830
  }
831
- const Tm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
831
+ const Am = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
832
832
  __proto__: null,
833
833
  AbortedDeferredError: Ka,
834
834
  Await: Sa,
@@ -3509,17 +3509,17 @@ const Fs = {
3509
3509
  ]
3510
3510
  }
3511
3511
  );
3512
- }, Ls = requestIdleCallback ?? ((e) => setTimeout(e, 1)), Im = cancelIdleCallback ?? clearTimeout, to = Fi(
3512
+ }, to = Fi(
3513
3513
  void 0
3514
- ), Ps = () => {
3514
+ ), Ls = () => {
3515
3515
  const e = Li(to);
3516
3516
  if (!e)
3517
3517
  throw new Error(
3518
3518
  "useViewportAnchor must be used within a CurrentAnchorProvider"
3519
3519
  );
3520
3520
  return e;
3521
- }, Os = () => {
3522
- const e = Xe(null), { observe: t, unobserve: n } = Ps();
3521
+ }, Ps = () => {
3522
+ const e = Xe(null), { observe: t, unobserve: n } = Ls();
3523
3523
  return dt(() => {
3524
3524
  const i = e.current;
3525
3525
  if (i)
@@ -3527,7 +3527,7 @@ const Fs = {
3527
3527
  }, [t, n]), { ref: ht((i) => {
3528
3528
  i && (e.current = i);
3529
3529
  }, []) };
3530
- }, _m = ({
3530
+ }, Tm = ({
3531
3531
  children: e
3532
3532
  }) => {
3533
3533
  const [t, n] = Ht(""), r = Xe(null), i = Xe(/* @__PURE__ */ new Set());
@@ -3548,7 +3548,7 @@ const Fs = {
3548
3548
  }), []), dt(() => {
3549
3549
  const l = i.current, s = () => {
3550
3550
  const u = window.scrollY === 0, p = window.innerHeight + window.scrollY >= document.body.scrollHeight;
3551
- u ? n("") : p && Ls(() => {
3551
+ u ? n("") : p && requestIdleCallback(() => {
3552
3552
  const c = Array.from(l).pop();
3553
3553
  n((c == null ? void 0 : c.id) ?? "");
3554
3554
  });
@@ -3569,7 +3569,7 @@ const Fs = {
3569
3569
  [t, n, a]
3570
3570
  );
3571
3571
  return /* @__PURE__ */ $.jsx(to.Provider, { value: o, children: e });
3572
- }, Ds = Ql("group relative", {
3572
+ }, Os = Ql("group relative", {
3573
3573
  variants: {
3574
3574
  level: {
3575
3575
  6: "text-md",
@@ -3583,7 +3583,7 @@ const Fs = {
3583
3583
  defaultVariants: {
3584
3584
  level: 1
3585
3585
  }
3586
- }), zs = (e) => {
3586
+ }), Ds = (e) => {
3587
3587
  switch (e) {
3588
3588
  case 1:
3589
3589
  return "h1";
@@ -3607,11 +3607,11 @@ const Fs = {
3607
3607
  className: r,
3608
3608
  registerSidebarAnchor: i
3609
3609
  }) => {
3610
- const a = zs(e ?? 1), { ref: o } = Os();
3610
+ const a = Ds(e ?? 1), { ref: o } = Ps();
3611
3611
  return /* @__PURE__ */ $.jsxs(
3612
3612
  a,
3613
3613
  {
3614
- className: Ds({ className: r, level: e }),
3614
+ className: Os({ className: r, level: e }),
3615
3615
  ref: i ? o : void 0,
3616
3616
  id: n,
3617
3617
  children: [
@@ -3629,22 +3629,22 @@ const Fs = {
3629
3629
  }
3630
3630
  );
3631
3631
  };
3632
- function Ns(e, t) {
3632
+ function zs(e, t) {
3633
3633
  const n = {};
3634
3634
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
3635
3635
  (n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
3636
3636
  ).trim();
3637
3637
  }
3638
- const Ms = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Bs = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, js = {};
3638
+ const Ns = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ms = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Bs = {};
3639
3639
  function Er(e, t) {
3640
- return (js.jsx ? Bs : Ms).test(e);
3640
+ return (Bs.jsx ? Ms : Ns).test(e);
3641
3641
  }
3642
- const $s = /[ \t\n\f\r]/g;
3643
- function Us(e) {
3642
+ const js = /[ \t\n\f\r]/g;
3643
+ function $s(e) {
3644
3644
  return typeof e == "object" ? e.type === "text" ? Cr(e.value) : !1 : Cr(e);
3645
3645
  }
3646
3646
  function Cr(e) {
3647
- return e.replace($s, "") === "";
3647
+ return e.replace(js, "") === "";
3648
3648
  }
3649
3649
  class kt {
3650
3650
  /**
@@ -3690,10 +3690,10 @@ ye.prototype.spaceSeparated = !1;
3690
3690
  ye.prototype.commaOrSpaceSeparated = !1;
3691
3691
  ye.prototype.mustUseProperty = !1;
3692
3692
  ye.prototype.defined = !1;
3693
- let Vs = 0;
3693
+ let Us = 0;
3694
3694
  const j = He(), ne = He(), ro = He(), I = He(), X = He(), Ye = He(), he = He();
3695
3695
  function He() {
3696
- return 2 ** ++Vs;
3696
+ return 2 ** ++Us;
3697
3697
  }
3698
3698
  const An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3699
3699
  __proto__: null,
@@ -3726,12 +3726,12 @@ qn.prototype.defined = !0;
3726
3726
  function Ar(e, t, n) {
3727
3727
  n && (e[t] = n);
3728
3728
  }
3729
- const Hs = {}.hasOwnProperty;
3729
+ const Vs = {}.hasOwnProperty;
3730
3730
  function rt(e) {
3731
3731
  const t = {}, n = {};
3732
3732
  let r;
3733
3733
  for (r in e.properties)
3734
- if (Hs.call(e.properties, r)) {
3734
+ if (Vs.call(e.properties, r)) {
3735
3735
  const i = e.properties[r], a = new qn(
3736
3736
  r,
3737
3737
  e.transform(e.attributes || {}, r),
@@ -3829,7 +3829,7 @@ const so = rt({
3829
3829
  ariaValueText: null,
3830
3830
  role: null
3831
3831
  }
3832
- }), qs = rt({
3832
+ }), Hs = rt({
3833
3833
  space: "html",
3834
3834
  attributes: {
3835
3835
  acceptcharset: "accept-charset",
@@ -4190,7 +4190,7 @@ const so = rt({
4190
4190
  security: null,
4191
4191
  unselectable: null
4192
4192
  }
4193
- }), Gs = rt({
4193
+ }), qs = rt({
4194
4194
  space: "svg",
4195
4195
  attributes: {
4196
4196
  accentHeight: "accent-height",
@@ -4749,20 +4749,20 @@ const so = rt({
4749
4749
  z: null,
4750
4750
  zoomAndPan: null
4751
4751
  }
4752
- }), Ws = /^data[-\w.:]+$/i, Tr = /-[a-z]/g, Zs = /[A-Z]/g;
4753
- function Ks(e, t) {
4752
+ }), Gs = /^data[-\w.:]+$/i, Tr = /-[a-z]/g, Ws = /[A-Z]/g;
4753
+ function Zs(e, t) {
4754
4754
  const n = Cn(t);
4755
4755
  let r = t, i = ye;
4756
4756
  if (n in e.normal)
4757
4757
  return e.property[e.normal[n]];
4758
- if (n.length > 4 && n.slice(0, 4) === "data" && Ws.test(t)) {
4758
+ if (n.length > 4 && n.slice(0, 4) === "data" && Gs.test(t)) {
4759
4759
  if (t.charAt(4) === "-") {
4760
- const a = t.slice(5).replace(Tr, Xs);
4760
+ const a = t.slice(5).replace(Tr, Ys);
4761
4761
  r = "data" + a.charAt(0).toUpperCase() + a.slice(1);
4762
4762
  } else {
4763
4763
  const a = t.slice(4);
4764
4764
  if (!Tr.test(a)) {
4765
- let o = a.replace(Zs, Ys);
4765
+ let o = a.replace(Ws, Ks);
4766
4766
  o.charAt(0) !== "-" && (o = "-" + o), t = "data" + o;
4767
4767
  }
4768
4768
  }
@@ -4770,13 +4770,13 @@ function Ks(e, t) {
4770
4770
  }
4771
4771
  return new i(r, t);
4772
4772
  }
4773
- function Ys(e) {
4773
+ function Ks(e) {
4774
4774
  return "-" + e.toLowerCase();
4775
4775
  }
4776
- function Xs(e) {
4776
+ function Ys(e) {
4777
4777
  return e.charAt(1).toUpperCase();
4778
4778
  }
4779
- const Qs = {
4779
+ const Xs = {
4780
4780
  classId: "classID",
4781
4781
  dataType: "datatype",
4782
4782
  itemId: "itemID",
@@ -4794,21 +4794,21 @@ const Qs = {
4794
4794
  xLinkTitle: "xlinkTitle",
4795
4795
  xLinkType: "xlinkType",
4796
4796
  xmlnsXLink: "xmlnsXlink"
4797
- }, Js = no([oo, io, so, uo, qs], "html"), Gn = no([oo, io, so, uo, Gs], "svg");
4798
- function eu(e) {
4797
+ }, Qs = no([oo, io, so, uo, Hs], "html"), Gn = no([oo, io, so, uo, qs], "svg");
4798
+ function Js(e) {
4799
4799
  return e.join(" ").trim();
4800
4800
  }
4801
- var co = {}, Ir = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tu = /\n/g, nu = /^\s*/, ru = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, iu = /^:\s*/, ou = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, au = /^[;\s]*/, lu = /^\s+|\s+$/g, su = `
4802
- `, _r = "/", Rr = "*", je = "", uu = "comment", cu = "declaration", pu = function(e, t) {
4801
+ var co = {}, Ir = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, eu = /\n/g, tu = /^\s*/, nu = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, ru = /^:\s*/, iu = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, ou = /^[;\s]*/, au = /^\s+|\s+$/g, lu = `
4802
+ `, _r = "/", Rr = "*", je = "", su = "comment", uu = "declaration", cu = function(e, t) {
4803
4803
  if (typeof e != "string")
4804
4804
  throw new TypeError("First argument must be a string");
4805
4805
  if (!e) return [];
4806
4806
  t = t || {};
4807
4807
  var n = 1, r = 1;
4808
4808
  function i(f) {
4809
- var g = f.match(tu);
4809
+ var g = f.match(eu);
4810
4810
  g && (n += g.length);
4811
- var m = f.lastIndexOf(su);
4811
+ var m = f.lastIndexOf(lu);
4812
4812
  r = ~m ? f.length - m : r + f.length;
4813
4813
  }
4814
4814
  function a() {
@@ -4835,7 +4835,7 @@ var co = {}, Ir = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tu = /\n/g, nu = /^\s*/, ru
4835
4835
  }
4836
4836
  }
4837
4837
  function u() {
4838
- s(nu);
4838
+ s(tu);
4839
4839
  }
4840
4840
  function p(f) {
4841
4841
  var g;
@@ -4852,21 +4852,21 @@ var co = {}, Ir = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tu = /\n/g, nu = /^\s*/, ru
4852
4852
  return l("End of comment missing");
4853
4853
  var m = e.slice(2, g - 2);
4854
4854
  return r += 2, i(m), e = e.slice(g), r += 2, f({
4855
- type: uu,
4855
+ type: su,
4856
4856
  comment: m
4857
4857
  });
4858
4858
  }
4859
4859
  }
4860
4860
  function h() {
4861
- var f = a(), g = s(ru);
4861
+ var f = a(), g = s(nu);
4862
4862
  if (g) {
4863
- if (c(), !s(iu)) return l("property missing ':'");
4864
- var m = s(ou), x = f({
4865
- type: cu,
4863
+ if (c(), !s(ru)) return l("property missing ':'");
4864
+ var m = s(iu), x = f({
4865
+ type: uu,
4866
4866
  property: Fr(g[0].replace(Ir, je)),
4867
4867
  value: m ? Fr(m[0].replace(Ir, je)) : je
4868
4868
  });
4869
- return s(au), x;
4869
+ return s(ou), x;
4870
4870
  }
4871
4871
  }
4872
4872
  function d() {
@@ -4879,18 +4879,18 @@ var co = {}, Ir = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tu = /\n/g, nu = /^\s*/, ru
4879
4879
  return u(), d();
4880
4880
  };
4881
4881
  function Fr(e) {
4882
- return e ? e.replace(lu, je) : je;
4882
+ return e ? e.replace(au, je) : je;
4883
4883
  }
4884
- var fu = gr && gr.__importDefault || function(e) {
4884
+ var pu = gr && gr.__importDefault || function(e) {
4885
4885
  return e && e.__esModule ? e : { default: e };
4886
4886
  };
4887
4887
  Object.defineProperty(co, "__esModule", { value: !0 });
4888
- var du = fu(pu);
4889
- function hu(e, t) {
4888
+ var fu = pu(cu);
4889
+ function du(e, t) {
4890
4890
  var n = null;
4891
4891
  if (!e || typeof e != "string")
4892
4892
  return n;
4893
- var r = (0, du.default)(e), i = typeof t == "function";
4893
+ var r = (0, fu.default)(e), i = typeof t == "function";
4894
4894
  return r.forEach(function(a) {
4895
4895
  if (a.type === "declaration") {
4896
4896
  var o = a.property, l = a.value;
@@ -4898,8 +4898,8 @@ function hu(e, t) {
4898
4898
  }
4899
4899
  }), n;
4900
4900
  }
4901
- var Lr = co.default = hu;
4902
- const gu = Lr.default || Lr, po = fo("end"), Wn = fo("start");
4901
+ var Lr = co.default = du;
4902
+ const hu = Lr.default || Lr, po = fo("end"), Wn = fo("start");
4903
4903
  function fo(e) {
4904
4904
  return t;
4905
4905
  function t(n) {
@@ -4912,7 +4912,7 @@ function fo(e) {
4912
4912
  };
4913
4913
  }
4914
4914
  }
4915
- function mu(e) {
4915
+ function gu(e) {
4916
4916
  const t = Wn(e), n = po(e);
4917
4917
  if (t && n)
4918
4918
  return { start: t, end: n };
@@ -5016,8 +5016,8 @@ le.prototype.fatal = void 0;
5016
5016
  le.prototype.place = void 0;
5017
5017
  le.prototype.ruleId = void 0;
5018
5018
  le.prototype.source = void 0;
5019
- const Zn = {}.hasOwnProperty, yu = /* @__PURE__ */ new Map(), bu = /[A-Z]/g, xu = /-([a-z])/g, ku = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), wu = /* @__PURE__ */ new Set(["td", "th"]), ho = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
5020
- function vu(e, t) {
5019
+ const Zn = {}.hasOwnProperty, mu = /* @__PURE__ */ new Map(), yu = /[A-Z]/g, bu = /-([a-z])/g, xu = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), ku = /* @__PURE__ */ new Set(["td", "th"]), ho = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
5020
+ function wu(e, t) {
5021
5021
  if (!t || t.Fragment === void 0)
5022
5022
  throw new TypeError("Expected `Fragment` in options");
5023
5023
  const n = t.filePath || void 0;
@@ -5027,13 +5027,13 @@ function vu(e, t) {
5027
5027
  throw new TypeError(
5028
5028
  "Expected `jsxDEV` in options when `development: true`"
5029
5029
  );
5030
- r = Ru(n, t.jsxDEV);
5030
+ r = _u(n, t.jsxDEV);
5031
5031
  } else {
5032
5032
  if (typeof t.jsx != "function")
5033
5033
  throw new TypeError("Expected `jsx` in production options");
5034
5034
  if (typeof t.jsxs != "function")
5035
5035
  throw new TypeError("Expected `jsxs` in production options");
5036
- r = _u(n, t.jsx, t.jsxs);
5036
+ r = Iu(n, t.jsx, t.jsxs);
5037
5037
  }
5038
5038
  const i = {
5039
5039
  Fragment: t.Fragment,
@@ -5046,7 +5046,7 @@ function vu(e, t) {
5046
5046
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
5047
5047
  passKeys: t.passKeys !== !1,
5048
5048
  passNode: t.passNode || !1,
5049
- schema: t.space === "svg" ? Gn : Js,
5049
+ schema: t.space === "svg" ? Gn : Qs,
5050
5050
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
5051
5051
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
5052
5052
  }, a = go(i, e, void 0);
@@ -5059,29 +5059,29 @@ function vu(e, t) {
5059
5059
  }
5060
5060
  function go(e, t, n) {
5061
5061
  if (t.type === "element")
5062
- return Su(e, t, n);
5062
+ return vu(e, t, n);
5063
5063
  if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
5064
- return Eu(e, t);
5064
+ return Su(e, t);
5065
5065
  if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
5066
- return Au(e, t, n);
5066
+ return Cu(e, t, n);
5067
5067
  if (t.type === "mdxjsEsm")
5068
- return Cu(e, t);
5068
+ return Eu(e, t);
5069
5069
  if (t.type === "root")
5070
- return Tu(e, t, n);
5070
+ return Au(e, t, n);
5071
5071
  if (t.type === "text")
5072
- return Iu(e, t);
5072
+ return Tu(e, t);
5073
5073
  }
5074
- function Su(e, t, n) {
5074
+ function vu(e, t, n) {
5075
5075
  const r = e.schema;
5076
5076
  let i = r;
5077
5077
  t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Gn, e.schema = i), e.ancestors.push(t);
5078
- const a = yo(e, t.tagName, !1), o = Fu(e, t);
5078
+ const a = yo(e, t.tagName, !1), o = Ru(e, t);
5079
5079
  let l = Yn(e, t);
5080
- return ku.has(t.tagName) && (l = l.filter(function(s) {
5081
- return typeof s == "string" ? !Us(s) : !0;
5080
+ return xu.has(t.tagName) && (l = l.filter(function(s) {
5081
+ return typeof s == "string" ? !$s(s) : !0;
5082
5082
  })), mo(e, o, a, t), Kn(o, l), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
5083
5083
  }
5084
- function Eu(e, t) {
5084
+ function Su(e, t) {
5085
5085
  if (t.data && t.data.estree && e.evaluater) {
5086
5086
  const r = t.data.estree.body[0];
5087
5087
  return r.type, /** @type {Child | undefined} */
@@ -5089,7 +5089,7 @@ function Eu(e, t) {
5089
5089
  }
5090
5090
  mt(e, t.position);
5091
5091
  }
5092
- function Cu(e, t) {
5092
+ function Eu(e, t) {
5093
5093
  if (t.data && t.data.estree && e.evaluater)
5094
5094
  return (
5095
5095
  /** @type {Child | undefined} */
@@ -5097,18 +5097,18 @@ function Cu(e, t) {
5097
5097
  );
5098
5098
  mt(e, t.position);
5099
5099
  }
5100
- function Au(e, t, n) {
5100
+ function Cu(e, t, n) {
5101
5101
  const r = e.schema;
5102
5102
  let i = r;
5103
5103
  t.name === "svg" && r.space === "html" && (i = Gn, e.schema = i), e.ancestors.push(t);
5104
- const a = t.name === null ? e.Fragment : yo(e, t.name, !0), o = Lu(e, t), l = Yn(e, t);
5104
+ const a = t.name === null ? e.Fragment : yo(e, t.name, !0), o = Fu(e, t), l = Yn(e, t);
5105
5105
  return mo(e, o, a, t), Kn(o, l), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
5106
5106
  }
5107
- function Tu(e, t, n) {
5107
+ function Au(e, t, n) {
5108
5108
  const r = {};
5109
5109
  return Kn(r, Yn(e, t)), e.create(t, e.Fragment, r, n);
5110
5110
  }
5111
- function Iu(e, t) {
5111
+ function Tu(e, t) {
5112
5112
  return t.value;
5113
5113
  }
5114
5114
  function mo(e, t, n, r) {
@@ -5120,14 +5120,14 @@ function Kn(e, t) {
5120
5120
  n && (e.children = n);
5121
5121
  }
5122
5122
  }
5123
- function _u(e, t, n) {
5123
+ function Iu(e, t, n) {
5124
5124
  return r;
5125
5125
  function r(i, a, o, l) {
5126
5126
  const u = Array.isArray(o.children) ? n : t;
5127
5127
  return l ? u(a, o, l) : u(a, o);
5128
5128
  }
5129
5129
  }
5130
- function Ru(e, t) {
5130
+ function _u(e, t) {
5131
5131
  return n;
5132
5132
  function n(r, i, a, o) {
5133
5133
  const l = Array.isArray(a.children), s = Wn(r);
@@ -5145,15 +5145,15 @@ function Ru(e, t) {
5145
5145
  );
5146
5146
  }
5147
5147
  }
5148
- function Fu(e, t) {
5148
+ function Ru(e, t) {
5149
5149
  const n = {};
5150
5150
  let r, i;
5151
5151
  for (i in t.properties)
5152
5152
  if (i !== "children" && Zn.call(t.properties, i)) {
5153
- const a = Pu(e, i, t.properties[i]);
5153
+ const a = Lu(e, i, t.properties[i]);
5154
5154
  if (a) {
5155
5155
  const [o, l] = a;
5156
- e.tableCellAlignToStyle && o === "align" && typeof l == "string" && wu.has(t.tagName) ? r = l : n[o] = l;
5156
+ e.tableCellAlignToStyle && o === "align" && typeof l == "string" && ku.has(t.tagName) ? r = l : n[o] = l;
5157
5157
  }
5158
5158
  }
5159
5159
  if (r) {
@@ -5165,7 +5165,7 @@ function Fu(e, t) {
5165
5165
  }
5166
5166
  return n;
5167
5167
  }
5168
- function Lu(e, t) {
5168
+ function Fu(e, t) {
5169
5169
  const n = {};
5170
5170
  for (const r of t.attributes)
5171
5171
  if (r.type === "mdxJsxExpressionAttribute")
@@ -5200,7 +5200,7 @@ function Lu(e, t) {
5200
5200
  function Yn(e, t) {
5201
5201
  const n = [];
5202
5202
  let r = -1;
5203
- const i = e.passKeys ? /* @__PURE__ */ new Map() : yu;
5203
+ const i = e.passKeys ? /* @__PURE__ */ new Map() : mu;
5204
5204
  for (; ++r < t.children.length; ) {
5205
5205
  const a = t.children[r];
5206
5206
  let o;
@@ -5216,23 +5216,23 @@ function Yn(e, t) {
5216
5216
  }
5217
5217
  return n;
5218
5218
  }
5219
- function Pu(e, t, n) {
5220
- const r = Ks(e.schema, t);
5219
+ function Lu(e, t, n) {
5220
+ const r = Zs(e.schema, t);
5221
5221
  if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
5222
- if (Array.isArray(n) && (n = r.commaSeparated ? Ns(n) : eu(n)), r.property === "style") {
5223
- let i = typeof n == "object" ? n : Ou(e, String(n));
5224
- return e.stylePropertyNameCase === "css" && (i = Du(i)), ["style", i];
5222
+ if (Array.isArray(n) && (n = r.commaSeparated ? zs(n) : Js(n)), r.property === "style") {
5223
+ let i = typeof n == "object" ? n : Pu(e, String(n));
5224
+ return e.stylePropertyNameCase === "css" && (i = Ou(i)), ["style", i];
5225
5225
  }
5226
5226
  return [
5227
- e.elementAttributeNameCase === "react" && r.space ? Qs[r.property] || r.property : r.attribute,
5227
+ e.elementAttributeNameCase === "react" && r.space ? Xs[r.property] || r.property : r.attribute,
5228
5228
  n
5229
5229
  ];
5230
5230
  }
5231
5231
  }
5232
- function Ou(e, t) {
5232
+ function Pu(e, t) {
5233
5233
  const n = {};
5234
5234
  try {
5235
- gu(t, r);
5235
+ hu(t, r);
5236
5236
  } catch (i) {
5237
5237
  if (!e.ignoreInvalidStyle) {
5238
5238
  const a = (
@@ -5250,7 +5250,7 @@ function Ou(e, t) {
5250
5250
  return n;
5251
5251
  function r(i, a) {
5252
5252
  let o = i;
5253
- o.slice(0, 2) !== "--" && (o.slice(0, 4) === "-ms-" && (o = "ms-" + o.slice(4)), o = o.replace(xu, Nu)), n[o] = a;
5253
+ o.slice(0, 2) !== "--" && (o.slice(0, 4) === "-ms-" && (o = "ms-" + o.slice(4)), o = o.replace(bu, zu)), n[o] = a;
5254
5254
  }
5255
5255
  }
5256
5256
  function yo(e, t, n) {
@@ -5296,21 +5296,21 @@ function mt(e, t) {
5296
5296
  );
5297
5297
  throw n.file = e.filePath || void 0, n.url = ho + "#cannot-handle-mdx-estrees-without-createevaluater", n;
5298
5298
  }
5299
- function Du(e) {
5299
+ function Ou(e) {
5300
5300
  const t = {};
5301
5301
  let n;
5302
5302
  for (n in e)
5303
- Zn.call(e, n) && (t[zu(n)] = e[n]);
5303
+ Zn.call(e, n) && (t[Du(n)] = e[n]);
5304
5304
  return t;
5305
5305
  }
5306
- function zu(e) {
5307
- let t = e.replace(bu, Mu);
5306
+ function Du(e) {
5307
+ let t = e.replace(yu, Nu);
5308
5308
  return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
5309
5309
  }
5310
- function Nu(e, t) {
5310
+ function zu(e, t) {
5311
5311
  return t.toUpperCase();
5312
5312
  }
5313
- function Mu(e) {
5313
+ function Nu(e) {
5314
5314
  return "-" + e.toLowerCase();
5315
5315
  }
5316
5316
  const sn = {
@@ -5335,13 +5335,13 @@ const sn = {
5335
5335
  "track",
5336
5336
  "video"
5337
5337
  ]
5338
- }, Bu = {};
5338
+ }, Mu = {};
5339
5339
  function Xn(e, t) {
5340
- const n = Bu, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
5340
+ const n = Mu, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
5341
5341
  return bo(e, r, i);
5342
5342
  }
5343
5343
  function bo(e, t, n) {
5344
- if (ju(e)) {
5344
+ if (Bu(e)) {
5345
5345
  if ("value" in e)
5346
5346
  return e.type === "html" && !n ? "" : e.value;
5347
5347
  if (t && "alt" in e && e.alt)
@@ -5358,7 +5358,7 @@ function Dr(e, t, n) {
5358
5358
  r[i] = bo(e[i], t, n);
5359
5359
  return r.join("");
5360
5360
  }
5361
- function ju(e) {
5361
+ function Bu(e) {
5362
5362
  return !!(e && typeof e == "object");
5363
5363
  }
5364
5364
  const zr = typeof document < "u" && document.createElement("i");
@@ -5385,10 +5385,10 @@ function xo(e) {
5385
5385
  const t = {};
5386
5386
  let n = -1;
5387
5387
  for (; ++n < e.length; )
5388
- $u(t, e[n]);
5388
+ ju(t, e[n]);
5389
5389
  return t;
5390
5390
  }
5391
- function $u(e, t) {
5391
+ function ju(e, t) {
5392
5392
  let n;
5393
5393
  for (n in t) {
5394
5394
  const i = (Nr.call(e, n) ? e[n] : void 0) || (e[n] = {}), a = t[n];
@@ -5397,7 +5397,7 @@ function $u(e, t) {
5397
5397
  for (o in a) {
5398
5398
  Nr.call(i, o) || (i[o] = []);
5399
5399
  const l = a[o];
5400
- Uu(
5400
+ $u(
5401
5401
  // @ts-expect-error Looks like a list.
5402
5402
  i[o],
5403
5403
  Array.isArray(l) ? l : l ? [l] : []
@@ -5405,7 +5405,7 @@ function $u(e, t) {
5405
5405
  }
5406
5406
  }
5407
5407
  }
5408
- function Uu(e, t) {
5408
+ function $u(e, t) {
5409
5409
  let n = -1;
5410
5410
  const r = [];
5411
5411
  for (; ++n < t.length; )
@@ -5428,7 +5428,7 @@ function ko(e, t) {
5428
5428
  function xe(e) {
5429
5429
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
5430
5430
  }
5431
- const ue = De(/[A-Za-z]/), ae = De(/[\dA-Za-z]/), Vu = De(/[#-'*+\--9=?A-Z^-~]/);
5431
+ const ue = De(/[A-Za-z]/), ae = De(/[\dA-Za-z]/), Uu = De(/[#-'*+\--9=?A-Z^-~]/);
5432
5432
  function Nt(e) {
5433
5433
  return (
5434
5434
  // Special whitespace codes (which have negative values), C0 and Control
@@ -5436,7 +5436,7 @@ function Nt(e) {
5436
5436
  e !== null && (e < 32 || e === 127)
5437
5437
  );
5438
5438
  }
5439
- const In = De(/\d/), Hu = De(/[\dA-Fa-f]/), qu = De(/[!-/:-@[-`{-~]/);
5439
+ const In = De(/\d/), Vu = De(/[\dA-Fa-f]/), Hu = De(/[!-/:-@[-`{-~]/);
5440
5440
  function N(e) {
5441
5441
  return e !== null && e < -2;
5442
5442
  }
@@ -5483,10 +5483,10 @@ function G(e, t, n, r) {
5483
5483
  return V(s) && a++ < i ? (e.consume(s), l) : (e.exit(n), t(s));
5484
5484
  }
5485
5485
  }
5486
- const Gu = {
5487
- tokenize: Wu
5486
+ const qu = {
5487
+ tokenize: Gu
5488
5488
  };
5489
- function Wu(e) {
5489
+ function Gu(e) {
5490
5490
  const t = e.attempt(
5491
5491
  this.parser.constructs.contentInitial,
5492
5492
  r,
@@ -5519,12 +5519,12 @@ function Wu(e) {
5519
5519
  return N(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
5520
5520
  }
5521
5521
  }
5522
- const Zu = {
5523
- tokenize: Ku
5522
+ const Wu = {
5523
+ tokenize: Zu
5524
5524
  }, Mr = {
5525
- tokenize: Yu
5525
+ tokenize: Ku
5526
5526
  };
5527
- function Ku(e) {
5527
+ function Zu(e) {
5528
5528
  const t = this, n = [];
5529
5529
  let r = 0, i, a, o;
5530
5530
  return l;
@@ -5654,7 +5654,7 @@ function Ku(e) {
5654
5654
  i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
5655
5655
  }
5656
5656
  }
5657
- function Yu(e, t, n) {
5657
+ function Ku(e, t, n) {
5658
5658
  return G(
5659
5659
  e,
5660
5660
  e.attempt(this.parser.constructs.document, t, n),
@@ -5679,10 +5679,10 @@ function Xt(e, t, n) {
5679
5679
  }
5680
5680
  const _n = {
5681
5681
  name: "attention",
5682
- tokenize: Qu,
5683
- resolveAll: Xu
5682
+ tokenize: Xu,
5683
+ resolveAll: Yu
5684
5684
  };
5685
- function Xu(e, t) {
5685
+ function Yu(e, t) {
5686
5686
  let n = -1, r, i, a, o, l, s, u, p;
5687
5687
  for (; ++n < e.length; )
5688
5688
  if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
@@ -5740,7 +5740,7 @@ function Xu(e, t) {
5740
5740
  e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
5741
5741
  return e;
5742
5742
  }
5743
- function Qu(e, t) {
5743
+ function Xu(e, t) {
5744
5744
  const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Mt(r);
5745
5745
  let a;
5746
5746
  return o;
@@ -5757,11 +5757,11 @@ function Qu(e, t) {
5757
5757
  function Br(e, t) {
5758
5758
  e.column += t, e.offset += t, e._bufferIndex += t;
5759
5759
  }
5760
- const Ju = {
5760
+ const Qu = {
5761
5761
  name: "autolink",
5762
- tokenize: ec
5762
+ tokenize: Ju
5763
5763
  };
5764
- function ec(e, t, n) {
5764
+ function Ju(e, t, n) {
5765
5765
  let r = 0;
5766
5766
  return i;
5767
5767
  function i(d) {
@@ -5780,7 +5780,7 @@ function ec(e, t, n) {
5780
5780
  return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 || Nt(d) ? n(d) : (e.consume(d), s);
5781
5781
  }
5782
5782
  function u(d) {
5783
- return d === 64 ? (e.consume(d), p) : Vu(d) ? (e.consume(d), u) : n(d);
5783
+ return d === 64 ? (e.consume(d), p) : Uu(d) ? (e.consume(d), u) : n(d);
5784
5784
  }
5785
5785
  function p(d) {
5786
5786
  return ae(d) ? c(d) : n(d);
@@ -5797,10 +5797,10 @@ function ec(e, t, n) {
5797
5797
  }
5798
5798
  }
5799
5799
  const wt = {
5800
- tokenize: tc,
5800
+ tokenize: ec,
5801
5801
  partial: !0
5802
5802
  };
5803
- function tc(e, t, n) {
5803
+ function ec(e, t, n) {
5804
5804
  return r;
5805
5805
  function r(a) {
5806
5806
  return V(a) ? G(e, i, "linePrefix")(a) : i(a);
@@ -5811,13 +5811,13 @@ function tc(e, t, n) {
5811
5811
  }
5812
5812
  const wo = {
5813
5813
  name: "blockQuote",
5814
- tokenize: nc,
5814
+ tokenize: tc,
5815
5815
  continuation: {
5816
- tokenize: rc
5816
+ tokenize: nc
5817
5817
  },
5818
- exit: ic
5818
+ exit: rc
5819
5819
  };
5820
- function nc(e, t, n) {
5820
+ function tc(e, t, n) {
5821
5821
  const r = this;
5822
5822
  return i;
5823
5823
  function i(o) {
@@ -5833,7 +5833,7 @@ function nc(e, t, n) {
5833
5833
  return V(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(o));
5834
5834
  }
5835
5835
  }
5836
- function rc(e, t, n) {
5836
+ function nc(e, t, n) {
5837
5837
  const r = this;
5838
5838
  return i;
5839
5839
  function i(o) {
@@ -5848,27 +5848,27 @@ function rc(e, t, n) {
5848
5848
  return e.attempt(wo, t, n)(o);
5849
5849
  }
5850
5850
  }
5851
- function ic(e) {
5851
+ function rc(e) {
5852
5852
  e.exit("blockQuote");
5853
5853
  }
5854
5854
  const vo = {
5855
5855
  name: "characterEscape",
5856
- tokenize: oc
5856
+ tokenize: ic
5857
5857
  };
5858
- function oc(e, t, n) {
5858
+ function ic(e, t, n) {
5859
5859
  return r;
5860
5860
  function r(a) {
5861
5861
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(a), e.exit("escapeMarker"), i;
5862
5862
  }
5863
5863
  function i(a) {
5864
- return qu(a) ? (e.enter("characterEscapeValue"), e.consume(a), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(a);
5864
+ return Hu(a) ? (e.enter("characterEscapeValue"), e.consume(a), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(a);
5865
5865
  }
5866
5866
  }
5867
5867
  const So = {
5868
5868
  name: "characterReference",
5869
- tokenize: ac
5869
+ tokenize: oc
5870
5870
  };
5871
- function ac(e, t, n) {
5871
+ function oc(e, t, n) {
5872
5872
  const r = this;
5873
5873
  let i = 0, a, o;
5874
5874
  return l;
@@ -5879,7 +5879,7 @@ function ac(e, t, n) {
5879
5879
  return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, o = ae, p(c));
5880
5880
  }
5881
5881
  function u(c) {
5882
- return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = Hu, p) : (e.enter("characterReferenceValue"), a = 7, o = In, p(c));
5882
+ return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = Vu, p) : (e.enter("characterReferenceValue"), a = 7, o = In, p(c));
5883
5883
  }
5884
5884
  function p(c) {
5885
5885
  if (c === 59 && i) {
@@ -5890,14 +5890,14 @@ function ac(e, t, n) {
5890
5890
  }
5891
5891
  }
5892
5892
  const jr = {
5893
- tokenize: sc,
5893
+ tokenize: lc,
5894
5894
  partial: !0
5895
5895
  }, $r = {
5896
5896
  name: "codeFenced",
5897
- tokenize: lc,
5897
+ tokenize: ac,
5898
5898
  concrete: !0
5899
5899
  };
5900
- function lc(e, t, n) {
5900
+ function ac(e, t, n) {
5901
5901
  const r = this, i = {
5902
5902
  tokenize: _,
5903
5903
  partial: !0
@@ -5978,7 +5978,7 @@ function lc(e, t, n) {
5978
5978
  }
5979
5979
  }
5980
5980
  }
5981
- function sc(e, t, n) {
5981
+ function lc(e, t, n) {
5982
5982
  const r = this;
5983
5983
  return i;
5984
5984
  function i(o) {
@@ -5990,12 +5990,12 @@ function sc(e, t, n) {
5990
5990
  }
5991
5991
  const un = {
5992
5992
  name: "codeIndented",
5993
- tokenize: cc
5994
- }, uc = {
5995
- tokenize: pc,
5993
+ tokenize: uc
5994
+ }, sc = {
5995
+ tokenize: cc,
5996
5996
  partial: !0
5997
5997
  };
5998
- function cc(e, t, n) {
5998
+ function uc(e, t, n) {
5999
5999
  const r = this;
6000
6000
  return i;
6001
6001
  function i(u) {
@@ -6006,7 +6006,7 @@ function cc(e, t, n) {
6006
6006
  return p && p[1].type === "linePrefix" && p[2].sliceSerialize(p[1], !0).length >= 4 ? o(u) : n(u);
6007
6007
  }
6008
6008
  function o(u) {
6009
- return u === null ? s(u) : N(u) ? e.attempt(uc, o, s)(u) : (e.enter("codeFlowValue"), l(u));
6009
+ return u === null ? s(u) : N(u) ? e.attempt(sc, o, s)(u) : (e.enter("codeFlowValue"), l(u));
6010
6010
  }
6011
6011
  function l(u) {
6012
6012
  return u === null || N(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), l);
@@ -6015,7 +6015,7 @@ function cc(e, t, n) {
6015
6015
  return e.exit("codeIndented"), t(u);
6016
6016
  }
6017
6017
  }
6018
- function pc(e, t, n) {
6018
+ function cc(e, t, n) {
6019
6019
  const r = this;
6020
6020
  return i;
6021
6021
  function i(o) {
@@ -6026,13 +6026,13 @@ function pc(e, t, n) {
6026
6026
  return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : N(o) ? i(o) : n(o);
6027
6027
  }
6028
6028
  }
6029
- const fc = {
6029
+ const pc = {
6030
6030
  name: "codeText",
6031
- tokenize: gc,
6032
- resolve: dc,
6033
- previous: hc
6031
+ tokenize: hc,
6032
+ resolve: fc,
6033
+ previous: dc
6034
6034
  };
6035
- function dc(e) {
6035
+ function fc(e) {
6036
6036
  let t = e.length - 4, n = 3, r, i;
6037
6037
  if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
6038
6038
  for (r = n; ++r < t; )
@@ -6045,10 +6045,10 @@ function dc(e) {
6045
6045
  i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
6046
6046
  return e;
6047
6047
  }
6048
- function hc(e) {
6048
+ function dc(e) {
6049
6049
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
6050
6050
  }
6051
- function gc(e, t, n) {
6051
+ function hc(e, t, n) {
6052
6052
  let r = 0, i, a;
6053
6053
  return o;
6054
6054
  function o(c) {
@@ -6077,7 +6077,7 @@ function Eo(e) {
6077
6077
  for (; ++a < s.length && s[a][1].type !== "content"; )
6078
6078
  s[a][1].type === "chunkText" && (s[a][1]._isInFirstContentOfListItem = !0, a++);
6079
6079
  if (r[0] === "enter")
6080
- r[1].contentType && (Object.assign(t, mc(e, n)), n = t[n], u = !0);
6080
+ r[1].contentType && (Object.assign(t, gc(e, n)), n = t[n], u = !0);
6081
6081
  else if (r[1]._container) {
6082
6082
  for (a = n, i = void 0; a-- && (o = e[a], o[1].type === "lineEnding" || o[1].type === "lineEndingBlank"); )
6083
6083
  o[0] === "enter" && (i && (e[i][1].type = "lineEndingBlank"), o[1].type = "lineEnding", i = a);
@@ -6086,7 +6086,7 @@ function Eo(e) {
6086
6086
  }
6087
6087
  return !u;
6088
6088
  }
6089
- function mc(e, t) {
6089
+ function gc(e, t) {
6090
6090
  const n = e[t][1], r = e[t][2];
6091
6091
  let i = t - 1;
6092
6092
  const a = [], o = n._tokenizer || r.parser[n.contentType](n.start), l = o.events, s = [], u = {};
@@ -6108,17 +6108,17 @@ function mc(e, t) {
6108
6108
  u[f + s[h][0]] = f + s[h][1], f += s[h][1] - s[h][0] - 1;
6109
6109
  return u;
6110
6110
  }
6111
- const yc = {
6111
+ const mc = {
6112
+ tokenize: xc,
6113
+ resolve: bc
6114
+ }, yc = {
6112
6115
  tokenize: kc,
6113
- resolve: xc
6114
- }, bc = {
6115
- tokenize: wc,
6116
6116
  partial: !0
6117
6117
  };
6118
- function xc(e) {
6118
+ function bc(e) {
6119
6119
  return Eo(e), e;
6120
6120
  }
6121
- function kc(e, t) {
6121
+ function xc(e, t) {
6122
6122
  let n;
6123
6123
  return r;
6124
6124
  function r(l) {
@@ -6128,7 +6128,7 @@ function kc(e, t) {
6128
6128
  }
6129
6129
  function i(l) {
6130
6130
  return l === null ? a(l) : N(l) ? e.check(
6131
- bc,
6131
+ yc,
6132
6132
  o,
6133
6133
  a
6134
6134
  )(l) : (e.consume(l), i);
@@ -6143,7 +6143,7 @@ function kc(e, t) {
6143
6143
  }), n = n.next, i;
6144
6144
  }
6145
6145
  }
6146
- function wc(e, t, n) {
6146
+ function kc(e, t, n) {
6147
6147
  const r = this;
6148
6148
  return i;
6149
6149
  function i(o) {
@@ -6239,14 +6239,14 @@ function ft(e, t) {
6239
6239
  )(i) : t(i);
6240
6240
  }
6241
6241
  }
6242
- const vc = {
6242
+ const wc = {
6243
6243
  name: "definition",
6244
- tokenize: Ec
6245
- }, Sc = {
6246
- tokenize: Cc,
6244
+ tokenize: Sc
6245
+ }, vc = {
6246
+ tokenize: Ec,
6247
6247
  partial: !0
6248
6248
  };
6249
- function Ec(e, t, n) {
6249
+ function Sc(e, t, n) {
6250
6250
  const r = this;
6251
6251
  let i;
6252
6252
  return a;
@@ -6287,7 +6287,7 @@ function Ec(e, t, n) {
6287
6287
  )(d);
6288
6288
  }
6289
6289
  function p(d) {
6290
- return e.attempt(Sc, c, c)(d);
6290
+ return e.attempt(vc, c, c)(d);
6291
6291
  }
6292
6292
  function c(d) {
6293
6293
  return V(d) ? G(e, h, "whitespace")(d) : h(d);
@@ -6296,7 +6296,7 @@ function Ec(e, t, n) {
6296
6296
  return d === null || N(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
6297
6297
  }
6298
6298
  }
6299
- function Cc(e, t, n) {
6299
+ function Ec(e, t, n) {
6300
6300
  return r;
6301
6301
  function r(l) {
6302
6302
  return Y(l) ? ft(e, i)(l) : n(l);
@@ -6318,11 +6318,11 @@ function Cc(e, t, n) {
6318
6318
  return l === null || N(l) ? t(l) : n(l);
6319
6319
  }
6320
6320
  }
6321
- const Ac = {
6321
+ const Cc = {
6322
6322
  name: "hardBreakEscape",
6323
- tokenize: Tc
6323
+ tokenize: Ac
6324
6324
  };
6325
- function Tc(e, t, n) {
6325
+ function Ac(e, t, n) {
6326
6326
  return r;
6327
6327
  function r(a) {
6328
6328
  return e.enter("hardBreakEscape"), e.consume(a), i;
@@ -6331,12 +6331,12 @@ function Tc(e, t, n) {
6331
6331
  return N(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
6332
6332
  }
6333
6333
  }
6334
- const Ic = {
6334
+ const Tc = {
6335
6335
  name: "headingAtx",
6336
- tokenize: Rc,
6337
- resolve: _c
6336
+ tokenize: _c,
6337
+ resolve: Ic
6338
6338
  };
6339
- function _c(e, t) {
6339
+ function Ic(e, t) {
6340
6340
  let n = e.length - 2, r = 3, i, a;
6341
6341
  return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
6342
6342
  type: "atxHeadingText",
@@ -6354,7 +6354,7 @@ function _c(e, t) {
6354
6354
  ["exit", i, t]
6355
6355
  ])), e;
6356
6356
  }
6357
- function Rc(e, t, n) {
6357
+ function _c(e, t, n) {
6358
6358
  let r = 0;
6359
6359
  return i;
6360
6360
  function i(p) {
@@ -6376,7 +6376,7 @@ function Rc(e, t, n) {
6376
6376
  return p === null || p === 35 || Y(p) ? (e.exit("atxHeadingText"), l(p)) : (e.consume(p), u);
6377
6377
  }
6378
6378
  }
6379
- const Fc = [
6379
+ const Rc = [
6380
6380
  "address",
6381
6381
  "article",
6382
6382
  "aside",
@@ -6439,25 +6439,25 @@ const Fc = [
6439
6439
  "tr",
6440
6440
  "track",
6441
6441
  "ul"
6442
- ], Ur = ["pre", "script", "style", "textarea"], Lc = {
6442
+ ], Ur = ["pre", "script", "style", "textarea"], Fc = {
6443
6443
  name: "htmlFlow",
6444
- tokenize: zc,
6445
- resolveTo: Dc,
6444
+ tokenize: Dc,
6445
+ resolveTo: Oc,
6446
6446
  concrete: !0
6447
- }, Pc = {
6448
- tokenize: Mc,
6449
- partial: !0
6450
- }, Oc = {
6447
+ }, Lc = {
6451
6448
  tokenize: Nc,
6452
6449
  partial: !0
6450
+ }, Pc = {
6451
+ tokenize: zc,
6452
+ partial: !0
6453
6453
  };
6454
- function Dc(e) {
6454
+ function Oc(e) {
6455
6455
  let t = e.length;
6456
6456
  for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
6457
6457
  ;
6458
6458
  return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
6459
6459
  }
6460
- function zc(e, t, n) {
6460
+ function Dc(e, t, n) {
6461
6461
  const r = this;
6462
6462
  let i, a, o, l, s;
6463
6463
  return u;
@@ -6486,7 +6486,7 @@ function zc(e, t, n) {
6486
6486
  function m(k) {
6487
6487
  if (k === null || k === 47 || k === 62 || Y(k)) {
6488
6488
  const se = k === 47, ke = o.toLowerCase();
6489
- return !se && !a && Ur.includes(ke) ? (i = 1, r.interrupt ? t(k) : T(k)) : Fc.includes(o.toLowerCase()) ? (i = 6, se ? (e.consume(k), x) : r.interrupt ? t(k) : T(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? y(k) : w(k));
6489
+ return !se && !a && Ur.includes(ke) ? (i = 1, r.interrupt ? t(k) : T(k)) : Rc.includes(o.toLowerCase()) ? (i = 6, se ? (e.consume(k), x) : r.interrupt ? t(k) : T(k)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : a ? y(k) : w(k));
6490
6490
  }
6491
6491
  return k === 45 || ae(k) ? (e.consume(k), o += String.fromCharCode(k), m) : n(k);
6492
6492
  }
@@ -6525,14 +6525,14 @@ function zc(e, t, n) {
6525
6525
  }
6526
6526
  function T(k) {
6527
6527
  return k === 45 && i === 2 ? (e.consume(k), W) : k === 60 && i === 1 ? (e.consume(k), Q) : k === 62 && i === 4 ? (e.consume(k), ee) : k === 63 && i === 3 ? (e.consume(k), b) : k === 93 && i === 5 ? (e.consume(k), ie) : N(k) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6528
- Pc,
6528
+ Lc,
6529
6529
  re,
6530
6530
  H
6531
6531
  )(k)) : k === null || N(k) ? (e.exit("htmlFlowData"), H(k)) : (e.consume(k), T);
6532
6532
  }
6533
6533
  function H(k) {
6534
6534
  return e.check(
6535
- Oc,
6535
+ Pc,
6536
6536
  z,
6537
6537
  re
6538
6538
  )(k);
@@ -6569,7 +6569,7 @@ function zc(e, t, n) {
6569
6569
  return e.exit("htmlFlow"), t(k);
6570
6570
  }
6571
6571
  }
6572
- function Nc(e, t, n) {
6572
+ function zc(e, t, n) {
6573
6573
  const r = this;
6574
6574
  return i;
6575
6575
  function i(o) {
@@ -6579,17 +6579,17 @@ function Nc(e, t, n) {
6579
6579
  return r.parser.lazy[r.now().line] ? n(o) : t(o);
6580
6580
  }
6581
6581
  }
6582
- function Mc(e, t, n) {
6582
+ function Nc(e, t, n) {
6583
6583
  return r;
6584
6584
  function r(i) {
6585
6585
  return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(wt, t, n);
6586
6586
  }
6587
6587
  }
6588
- const Bc = {
6588
+ const Mc = {
6589
6589
  name: "htmlText",
6590
- tokenize: jc
6590
+ tokenize: Bc
6591
6591
  };
6592
- function jc(e, t, n) {
6592
+ function Bc(e, t, n) {
6593
6593
  const r = this;
6594
6594
  let i, a, o;
6595
6595
  return l;
@@ -6689,17 +6689,17 @@ function jc(e, t, n) {
6689
6689
  }
6690
6690
  const Jn = {
6691
6691
  name: "labelEnd",
6692
- tokenize: Gc,
6693
- resolveTo: qc,
6694
- resolveAll: Hc
6692
+ tokenize: qc,
6693
+ resolveTo: Hc,
6694
+ resolveAll: Vc
6695
+ }, jc = {
6696
+ tokenize: Gc
6695
6697
  }, $c = {
6696
6698
  tokenize: Wc
6697
6699
  }, Uc = {
6698
6700
  tokenize: Zc
6699
- }, Vc = {
6700
- tokenize: Kc
6701
6701
  };
6702
- function Hc(e) {
6702
+ function Vc(e) {
6703
6703
  let t = -1;
6704
6704
  for (; ++t < e.length; ) {
6705
6705
  const n = e[t][1];
@@ -6707,7 +6707,7 @@ function Hc(e) {
6707
6707
  }
6708
6708
  return e;
6709
6709
  }
6710
- function qc(e, t) {
6710
+ function Hc(e, t) {
6711
6711
  let n = e.length, r = 0, i, a, o, l;
6712
6712
  for (; n--; )
6713
6713
  if (i = e[n][1], a) {
@@ -6750,7 +6750,7 @@ function qc(e, t) {
6750
6750
  ["exit", u, t]
6751
6751
  ]), l = me(l, e.slice(o + 1)), l = me(l, [["exit", s, t]]), ge(e, a, e.length, l), e;
6752
6752
  }
6753
- function Gc(e, t, n) {
6753
+ function qc(e, t, n) {
6754
6754
  const r = this;
6755
6755
  let i = r.events.length, a, o;
6756
6756
  for (; i--; )
@@ -6771,18 +6771,18 @@ function Gc(e, t, n) {
6771
6771
  }
6772
6772
  function s(h) {
6773
6773
  return h === 40 ? e.attempt(
6774
- $c,
6774
+ jc,
6775
6775
  p,
6776
6776
  o ? p : c
6777
6777
  )(h) : h === 91 ? e.attempt(
6778
- Uc,
6778
+ $c,
6779
6779
  p,
6780
6780
  o ? u : c
6781
6781
  )(h) : o ? p(h) : c(h);
6782
6782
  }
6783
6783
  function u(h) {
6784
6784
  return e.attempt(
6785
- Vc,
6785
+ Uc,
6786
6786
  p,
6787
6787
  c
6788
6788
  )(h);
@@ -6794,7 +6794,7 @@ function Gc(e, t, n) {
6794
6794
  return a._balanced = !0, n(h);
6795
6795
  }
6796
6796
  }
6797
- function Wc(e, t, n) {
6797
+ function Gc(e, t, n) {
6798
6798
  return r;
6799
6799
  function r(c) {
6800
6800
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
@@ -6838,7 +6838,7 @@ function Wc(e, t, n) {
6838
6838
  return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
6839
6839
  }
6840
6840
  }
6841
- function Zc(e, t, n) {
6841
+ function Wc(e, t, n) {
6842
6842
  const r = this;
6843
6843
  return i;
6844
6844
  function i(l) {
@@ -6863,7 +6863,7 @@ function Zc(e, t, n) {
6863
6863
  return n(l);
6864
6864
  }
6865
6865
  }
6866
- function Kc(e, t, n) {
6866
+ function Zc(e, t, n) {
6867
6867
  return r;
6868
6868
  function r(a) {
6869
6869
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(a), e.exit("referenceMarker"), i;
@@ -6872,12 +6872,12 @@ function Kc(e, t, n) {
6872
6872
  return a === 93 ? (e.enter("referenceMarker"), e.consume(a), e.exit("referenceMarker"), e.exit("reference"), t) : n(a);
6873
6873
  }
6874
6874
  }
6875
- const Yc = {
6875
+ const Kc = {
6876
6876
  name: "labelStartImage",
6877
- tokenize: Xc,
6877
+ tokenize: Yc,
6878
6878
  resolveAll: Jn.resolveAll
6879
6879
  };
6880
- function Xc(e, t, n) {
6880
+ function Yc(e, t, n) {
6881
6881
  const r = this;
6882
6882
  return i;
6883
6883
  function i(l) {
@@ -6890,12 +6890,12 @@ function Xc(e, t, n) {
6890
6890
  return l === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(l) : t(l);
6891
6891
  }
6892
6892
  }
6893
- const Qc = {
6893
+ const Xc = {
6894
6894
  name: "labelStartLink",
6895
- tokenize: Jc,
6895
+ tokenize: Qc,
6896
6896
  resolveAll: Jn.resolveAll
6897
6897
  };
6898
- function Jc(e, t, n) {
6898
+ function Qc(e, t, n) {
6899
6899
  const r = this;
6900
6900
  return i;
6901
6901
  function i(o) {
@@ -6907,9 +6907,9 @@ function Jc(e, t, n) {
6907
6907
  }
6908
6908
  const cn = {
6909
6909
  name: "lineEnding",
6910
- tokenize: ep
6910
+ tokenize: Jc
6911
6911
  };
6912
- function ep(e, t) {
6912
+ function Jc(e, t) {
6913
6913
  return n;
6914
6914
  function n(r) {
6915
6915
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), G(e, t, "linePrefix");
@@ -6917,9 +6917,9 @@ function ep(e, t) {
6917
6917
  }
6918
6918
  const Lt = {
6919
6919
  name: "thematicBreak",
6920
- tokenize: tp
6920
+ tokenize: ep
6921
6921
  };
6922
- function tp(e, t, n) {
6922
+ function ep(e, t, n) {
6923
6923
  let r = 0, i;
6924
6924
  return a;
6925
6925
  function a(u) {
@@ -6937,19 +6937,19 @@ function tp(e, t, n) {
6937
6937
  }
6938
6938
  const ce = {
6939
6939
  name: "list",
6940
- tokenize: ip,
6940
+ tokenize: rp,
6941
6941
  continuation: {
6942
- tokenize: op
6942
+ tokenize: ip
6943
6943
  },
6944
- exit: lp
6945
- }, np = {
6946
- tokenize: sp,
6944
+ exit: ap
6945
+ }, tp = {
6946
+ tokenize: lp,
6947
6947
  partial: !0
6948
- }, rp = {
6949
- tokenize: ap,
6948
+ }, np = {
6949
+ tokenize: op,
6950
6950
  partial: !0
6951
6951
  };
6952
- function ip(e, t, n) {
6952
+ function rp(e, t, n) {
6953
6953
  const r = this, i = r.events[r.events.length - 1];
6954
6954
  let a = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
6955
6955
  return l;
@@ -6974,7 +6974,7 @@ function ip(e, t, n) {
6974
6974
  // Can’t be empty when interrupting.
6975
6975
  r.interrupt ? n : p,
6976
6976
  e.attempt(
6977
- np,
6977
+ tp,
6978
6978
  h,
6979
6979
  c
6980
6980
  )
@@ -6990,7 +6990,7 @@ function ip(e, t, n) {
6990
6990
  return r.containerState.size = a + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(d);
6991
6991
  }
6992
6992
  }
6993
- function op(e, t, n) {
6993
+ function ip(e, t, n) {
6994
6994
  const r = this;
6995
6995
  return r.containerState._closeFlow = void 0, e.check(wt, i, a);
6996
6996
  function i(l) {
@@ -7002,7 +7002,7 @@ function op(e, t, n) {
7002
7002
  )(l);
7003
7003
  }
7004
7004
  function a(l) {
7005
- return r.containerState.furtherBlankLines || !V(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(rp, t, o)(l));
7005
+ return r.containerState.furtherBlankLines || !V(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(np, t, o)(l));
7006
7006
  }
7007
7007
  function o(l) {
7008
7008
  return r.containerState._closeFlow = !0, r.interrupt = void 0, G(
@@ -7013,7 +7013,7 @@ function op(e, t, n) {
7013
7013
  )(l);
7014
7014
  }
7015
7015
  }
7016
- function ap(e, t, n) {
7016
+ function op(e, t, n) {
7017
7017
  const r = this;
7018
7018
  return G(
7019
7019
  e,
@@ -7026,10 +7026,10 @@ function ap(e, t, n) {
7026
7026
  return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? t(a) : n(a);
7027
7027
  }
7028
7028
  }
7029
- function lp(e) {
7029
+ function ap(e) {
7030
7030
  e.exit(this.containerState.type);
7031
7031
  }
7032
- function sp(e, t, n) {
7032
+ function lp(e, t, n) {
7033
7033
  const r = this;
7034
7034
  return G(
7035
7035
  e,
@@ -7044,10 +7044,10 @@ function sp(e, t, n) {
7044
7044
  }
7045
7045
  const Vr = {
7046
7046
  name: "setextUnderline",
7047
- tokenize: cp,
7048
- resolveTo: up
7047
+ tokenize: up,
7048
+ resolveTo: sp
7049
7049
  };
7050
- function up(e, t) {
7050
+ function sp(e, t) {
7051
7051
  let n = e.length, r, i, a;
7052
7052
  for (; n--; )
7053
7053
  if (e[n][0] === "enter") {
@@ -7065,7 +7065,7 @@ function up(e, t) {
7065
7065
  };
7066
7066
  return e[i][1].type = "setextHeadingText", a ? (e.splice(i, 0, ["enter", o, t]), e.splice(a + 1, 0, ["exit", e[r][1], t]), e[r][1].end = Object.assign({}, e[a][1].end)) : e[r][1] = o, e.push(["exit", o, t]), e;
7067
7067
  }
7068
- function cp(e, t, n) {
7068
+ function up(e, t, n) {
7069
7069
  const r = this;
7070
7070
  let i;
7071
7071
  return a;
@@ -7088,10 +7088,10 @@ function cp(e, t, n) {
7088
7088
  return u === null || N(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
7089
7089
  }
7090
7090
  }
7091
- const pp = {
7092
- tokenize: fp
7091
+ const cp = {
7092
+ tokenize: pp
7093
7093
  };
7094
- function fp(e) {
7094
+ function pp(e) {
7095
7095
  const t = this, n = e.attempt(
7096
7096
  // Try to parse a blank line.
7097
7097
  wt,
@@ -7105,7 +7105,7 @@ function fp(e) {
7105
7105
  e.attempt(
7106
7106
  this.parser.constructs.flow,
7107
7107
  i,
7108
- e.attempt(yc, i)
7108
+ e.attempt(mc, i)
7109
7109
  ),
7110
7110
  "linePrefix"
7111
7111
  )
@@ -7127,14 +7127,14 @@ function fp(e) {
7127
7127
  return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), t.currentConstruct = void 0, n;
7128
7128
  }
7129
7129
  }
7130
- const dp = {
7130
+ const fp = {
7131
7131
  resolveAll: _o()
7132
- }, hp = Io("string"), gp = Io("text");
7132
+ }, dp = Io("string"), hp = Io("text");
7133
7133
  function Io(e) {
7134
7134
  return {
7135
7135
  tokenize: t,
7136
7136
  resolveAll: _o(
7137
- e === "text" ? mp : void 0
7137
+ e === "text" ? gp : void 0
7138
7138
  )
7139
7139
  };
7140
7140
  function t(n) {
@@ -7177,7 +7177,7 @@ function _o(e) {
7177
7177
  return e ? e(n, r) : n;
7178
7178
  }
7179
7179
  }
7180
- function mp(e, t) {
7180
+ function gp(e, t) {
7181
7181
  let n = 0;
7182
7182
  for (; ++n <= e.length; )
7183
7183
  if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
@@ -7220,7 +7220,7 @@ function mp(e, t) {
7220
7220
  }
7221
7221
  return e;
7222
7222
  }
7223
- function yp(e, t, n) {
7223
+ function mp(e, t, n) {
7224
7224
  let r = Object.assign(
7225
7225
  n ? Object.assign({}, n) : {
7226
7226
  line: 1,
@@ -7261,10 +7261,10 @@ function yp(e, t, n) {
7261
7261
  return o = me(o, L), m(), o[o.length - 1] !== null ? [] : (P(t, 0), u.events = Xt(a, u.events, u), u.events);
7262
7262
  }
7263
7263
  function h(L, T) {
7264
- return xp(d(L), T);
7264
+ return bp(d(L), T);
7265
7265
  }
7266
7266
  function d(L) {
7267
- return bp(o, L);
7267
+ return yp(o, L);
7268
7268
  }
7269
7269
  function f() {
7270
7270
  const { line: L, column: T, offset: H, _index: z, _bufferIndex: M } = r;
@@ -7377,7 +7377,7 @@ function yp(e, t, n) {
7377
7377
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
7378
7378
  }
7379
7379
  }
7380
- function bp(e, t) {
7380
+ function yp(e, t) {
7381
7381
  const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, a = t.end._bufferIndex;
7382
7382
  let o;
7383
7383
  if (n === i)
@@ -7391,7 +7391,7 @@ function bp(e, t) {
7391
7391
  }
7392
7392
  return o;
7393
7393
  }
7394
- function xp(e, t) {
7394
+ function bp(e, t) {
7395
7395
  let n = -1;
7396
7396
  const r = [];
7397
7397
  let i;
@@ -7432,7 +7432,7 @@ function xp(e, t) {
7432
7432
  }
7433
7433
  return r.join("");
7434
7434
  }
7435
- const kp = {
7435
+ const xp = {
7436
7436
  42: ce,
7437
7437
  43: ce,
7438
7438
  45: ce,
@@ -7447,84 +7447,84 @@ const kp = {
7447
7447
  56: ce,
7448
7448
  57: ce,
7449
7449
  62: wo
7450
+ }, kp = {
7451
+ 91: wc
7450
7452
  }, wp = {
7451
- 91: vc
7452
- }, vp = {
7453
7453
  [-2]: un,
7454
7454
  [-1]: un,
7455
7455
  32: un
7456
- }, Sp = {
7457
- 35: Ic,
7456
+ }, vp = {
7457
+ 35: Tc,
7458
7458
  42: Lt,
7459
7459
  45: [Vr, Lt],
7460
- 60: Lc,
7460
+ 60: Fc,
7461
7461
  61: Vr,
7462
7462
  95: Lt,
7463
7463
  96: $r,
7464
7464
  126: $r
7465
- }, Ep = {
7465
+ }, Sp = {
7466
7466
  38: So,
7467
7467
  92: vo
7468
- }, Cp = {
7468
+ }, Ep = {
7469
7469
  [-5]: cn,
7470
7470
  [-4]: cn,
7471
7471
  [-3]: cn,
7472
- 33: Yc,
7472
+ 33: Kc,
7473
7473
  38: So,
7474
7474
  42: _n,
7475
- 60: [Ju, Bc],
7476
- 91: Qc,
7477
- 92: [Ac, vo],
7475
+ 60: [Qu, Mc],
7476
+ 91: Xc,
7477
+ 92: [Cc, vo],
7478
7478
  93: Jn,
7479
7479
  95: _n,
7480
- 96: fc
7480
+ 96: pc
7481
+ }, Cp = {
7482
+ null: [_n, fp]
7481
7483
  }, Ap = {
7482
- null: [_n, dp]
7483
- }, Tp = {
7484
7484
  null: [42, 95]
7485
- }, Ip = {
7485
+ }, Tp = {
7486
7486
  null: []
7487
- }, _p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7487
+ }, Ip = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7488
7488
  __proto__: null,
7489
- attentionMarkers: Tp,
7490
- contentInitial: wp,
7491
- disable: Ip,
7492
- document: kp,
7493
- flow: Sp,
7494
- flowInitial: vp,
7495
- insideSpan: Ap,
7496
- string: Ep,
7497
- text: Cp
7489
+ attentionMarkers: Ap,
7490
+ contentInitial: kp,
7491
+ disable: Tp,
7492
+ document: xp,
7493
+ flow: vp,
7494
+ flowInitial: wp,
7495
+ insideSpan: Cp,
7496
+ string: Sp,
7497
+ text: Ep
7498
7498
  }, Symbol.toStringTag, { value: "Module" }));
7499
- function Rp(e) {
7499
+ function _p(e) {
7500
7500
  const n = (
7501
7501
  /** @type {FullNormalizedExtension} */
7502
- xo([_p, ...(e || {}).extensions || []])
7502
+ xo([Ip, ...(e || {}).extensions || []])
7503
7503
  ), r = {
7504
7504
  defined: [],
7505
7505
  lazy: {},
7506
7506
  constructs: n,
7507
- content: i(Gu),
7508
- document: i(Zu),
7509
- flow: i(pp),
7510
- string: i(hp),
7511
- text: i(gp)
7507
+ content: i(qu),
7508
+ document: i(Wu),
7509
+ flow: i(cp),
7510
+ string: i(dp),
7511
+ text: i(hp)
7512
7512
  };
7513
7513
  return r;
7514
7514
  function i(a) {
7515
7515
  return o;
7516
7516
  function o(l) {
7517
- return yp(r, a, l);
7517
+ return mp(r, a, l);
7518
7518
  }
7519
7519
  }
7520
7520
  }
7521
- function Fp(e) {
7521
+ function Rp(e) {
7522
7522
  for (; !Eo(e); )
7523
7523
  ;
7524
7524
  return e;
7525
7525
  }
7526
7526
  const Hr = /[\0\t\n\r]/g;
7527
- function Lp() {
7527
+ function Fp() {
7528
7528
  let e = 1, t = "", n = !0, r;
7529
7529
  return i;
7530
7530
  function i(a, o, l) {
@@ -7559,11 +7559,11 @@ function Lp() {
7559
7559
  return l && (r && s.push(-5), t && s.push(t), s.push(null)), s;
7560
7560
  }
7561
7561
  }
7562
- const Pp = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
7563
- function Op(e) {
7564
- return e.replace(Pp, Dp);
7562
+ const Lp = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
7563
+ function Pp(e) {
7564
+ return e.replace(Lp, Op);
7565
7565
  }
7566
- function Dp(e, t, n) {
7566
+ function Op(e, t, n) {
7567
7567
  if (t)
7568
7568
  return t;
7569
7569
  if (n.charCodeAt(0) === 35) {
@@ -7573,14 +7573,14 @@ function Dp(e, t, n) {
7573
7573
  return Qn(n) || e;
7574
7574
  }
7575
7575
  const Ro = {}.hasOwnProperty;
7576
- function zp(e, t, n) {
7577
- return typeof t != "string" && (n = t, t = void 0), Np(n)(
7578
- Fp(
7579
- Rp(n).document().write(Lp()(e, t, !0))
7576
+ function Dp(e, t, n) {
7577
+ return typeof t != "string" && (n = t, t = void 0), zp(n)(
7578
+ Rp(
7579
+ _p(n).document().write(Fp()(e, t, !0))
7580
7580
  )
7581
7581
  );
7582
7582
  }
7583
- function Np(e) {
7583
+ function zp(e) {
7584
7584
  const t = {
7585
7585
  transforms: [],
7586
7586
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
@@ -7949,7 +7949,7 @@ function Np(e) {
7949
7949
  }
7950
7950
  function K(E) {
7951
7951
  const F = this.sliceSerialize(E), B = this.stack[this.stack.length - 2];
7952
- B.label = Op(F), B.identifier = xe(F).toLowerCase();
7952
+ B.label = Pp(F), B.identifier = xe(F).toLowerCase();
7953
7953
  }
7954
7954
  function ie() {
7955
7955
  const E = this.stack[this.stack.length - 1], F = this.resume(), B = this.stack[this.stack.length - 1];
@@ -8124,10 +8124,10 @@ function Fo(e, t) {
8124
8124
  let n = -1;
8125
8125
  for (; ++n < t.length; ) {
8126
8126
  const r = t[n];
8127
- Array.isArray(r) ? Fo(e, r) : Mp(e, r);
8127
+ Array.isArray(r) ? Fo(e, r) : Np(e, r);
8128
8128
  }
8129
8129
  }
8130
- function Mp(e, t) {
8130
+ function Np(e, t) {
8131
8131
  let n;
8132
8132
  for (n in t)
8133
8133
  if (Ro.call(t, n))
@@ -8166,11 +8166,11 @@ function qr(e, t) {
8166
8166
  }) + ") is still open"
8167
8167
  );
8168
8168
  }
8169
- function Bp(e) {
8169
+ function Mp(e) {
8170
8170
  const t = this;
8171
8171
  t.parser = n;
8172
8172
  function n(r) {
8173
- return zp(r, {
8173
+ return Dp(r, {
8174
8174
  ...t.data("settings"),
8175
8175
  ...e,
8176
8176
  // Note: these options are not in the readme.
@@ -8181,7 +8181,7 @@ function Bp(e) {
8181
8181
  });
8182
8182
  }
8183
8183
  }
8184
- function jp(e, t) {
8184
+ function Bp(e, t) {
8185
8185
  const n = {
8186
8186
  type: "element",
8187
8187
  tagName: "blockquote",
@@ -8190,12 +8190,12 @@ function jp(e, t) {
8190
8190
  };
8191
8191
  return e.patch(t, n), e.applyData(t, n);
8192
8192
  }
8193
- function $p(e, t) {
8193
+ function jp(e, t) {
8194
8194
  const n = { type: "element", tagName: "br", properties: {}, children: [] };
8195
8195
  return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
8196
8196
  ` }];
8197
8197
  }
8198
- function Up(e, t) {
8198
+ function $p(e, t) {
8199
8199
  const n = t.value ? t.value + `
8200
8200
  ` : "", r = {};
8201
8201
  t.lang && (r.className = ["language-" + t.lang]);
@@ -8207,7 +8207,7 @@ function Up(e, t) {
8207
8207
  };
8208
8208
  return t.meta && (i.data = { meta: t.meta }), e.patch(t, i), i = e.applyData(t, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(t, i), i;
8209
8209
  }
8210
- function Vp(e, t) {
8210
+ function Up(e, t) {
8211
8211
  const n = {
8212
8212
  type: "element",
8213
8213
  tagName: "del",
@@ -8216,7 +8216,7 @@ function Vp(e, t) {
8216
8216
  };
8217
8217
  return e.patch(t, n), e.applyData(t, n);
8218
8218
  }
8219
- function Hp(e, t) {
8219
+ function Vp(e, t) {
8220
8220
  const n = {
8221
8221
  type: "element",
8222
8222
  tagName: "em",
@@ -8225,7 +8225,7 @@ function Hp(e, t) {
8225
8225
  };
8226
8226
  return e.patch(t, n), e.applyData(t, n);
8227
8227
  }
8228
- function qp(e, t) {
8228
+ function Hp(e, t) {
8229
8229
  const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = it(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
8230
8230
  let o, l = e.footnoteCounts.get(r);
8231
8231
  l === void 0 ? (l = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = a + 1, l += 1, e.footnoteCounts.set(r, l);
@@ -8249,7 +8249,7 @@ function qp(e, t) {
8249
8249
  };
8250
8250
  return e.patch(t, u), e.applyData(t, u);
8251
8251
  }
8252
- function Gp(e, t) {
8252
+ function qp(e, t) {
8253
8253
  const n = {
8254
8254
  type: "element",
8255
8255
  tagName: "h" + t.depth,
@@ -8258,7 +8258,7 @@ function Gp(e, t) {
8258
8258
  };
8259
8259
  return e.patch(t, n), e.applyData(t, n);
8260
8260
  }
8261
- function Wp(e, t) {
8261
+ function Gp(e, t) {
8262
8262
  if (e.options.allowDangerousHtml) {
8263
8263
  const n = { type: "raw", value: t.value };
8264
8264
  return e.patch(t, n), e.applyData(t, n);
@@ -8274,7 +8274,7 @@ function Lo(e, t) {
8274
8274
  const o = i[i.length - 1];
8275
8275
  return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
8276
8276
  }
8277
- function Zp(e, t) {
8277
+ function Wp(e, t) {
8278
8278
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
8279
8279
  if (!r)
8280
8280
  return Lo(e, t);
@@ -8283,13 +8283,13 @@ function Zp(e, t) {
8283
8283
  const a = { type: "element", tagName: "img", properties: i, children: [] };
8284
8284
  return e.patch(t, a), e.applyData(t, a);
8285
8285
  }
8286
- function Kp(e, t) {
8286
+ function Zp(e, t) {
8287
8287
  const n = { src: it(t.url) };
8288
8288
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
8289
8289
  const r = { type: "element", tagName: "img", properties: n, children: [] };
8290
8290
  return e.patch(t, r), e.applyData(t, r);
8291
8291
  }
8292
- function Yp(e, t) {
8292
+ function Kp(e, t) {
8293
8293
  const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
8294
8294
  e.patch(t, n);
8295
8295
  const r = {
@@ -8300,7 +8300,7 @@ function Yp(e, t) {
8300
8300
  };
8301
8301
  return e.patch(t, r), e.applyData(t, r);
8302
8302
  }
8303
- function Xp(e, t) {
8303
+ function Yp(e, t) {
8304
8304
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
8305
8305
  if (!r)
8306
8306
  return Lo(e, t);
@@ -8314,7 +8314,7 @@ function Xp(e, t) {
8314
8314
  };
8315
8315
  return e.patch(t, a), e.applyData(t, a);
8316
8316
  }
8317
- function Qp(e, t) {
8317
+ function Xp(e, t) {
8318
8318
  const n = { href: it(t.url) };
8319
8319
  t.title !== null && t.title !== void 0 && (n.title = t.title);
8320
8320
  const r = {
@@ -8325,8 +8325,8 @@ function Qp(e, t) {
8325
8325
  };
8326
8326
  return e.patch(t, r), e.applyData(t, r);
8327
8327
  }
8328
- function Jp(e, t, n) {
8329
- const r = e.all(t), i = n ? ef(n) : Po(t), a = {}, o = [];
8328
+ function Qp(e, t, n) {
8329
+ const r = e.all(t), i = n ? Jp(n) : Po(t), a = {}, o = [];
8330
8330
  if (typeof t.checked == "boolean") {
8331
8331
  const p = r[0];
8332
8332
  let c;
@@ -8349,7 +8349,7 @@ function Jp(e, t, n) {
8349
8349
  const u = { type: "element", tagName: "li", properties: a, children: o };
8350
8350
  return e.patch(t, u), e.applyData(t, u);
8351
8351
  }
8352
- function ef(e) {
8352
+ function Jp(e) {
8353
8353
  let t = !1;
8354
8354
  if (e.type === "list") {
8355
8355
  t = e.spread || !1;
@@ -8364,7 +8364,7 @@ function Po(e) {
8364
8364
  const t = e.spread;
8365
8365
  return t ?? e.children.length > 1;
8366
8366
  }
8367
- function tf(e, t) {
8367
+ function ef(e, t) {
8368
8368
  const n = {}, r = e.all(t);
8369
8369
  let i = -1;
8370
8370
  for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
@@ -8382,7 +8382,7 @@ function tf(e, t) {
8382
8382
  };
8383
8383
  return e.patch(t, a), e.applyData(t, a);
8384
8384
  }
8385
- function nf(e, t) {
8385
+ function tf(e, t) {
8386
8386
  const n = {
8387
8387
  type: "element",
8388
8388
  tagName: "p",
@@ -8391,11 +8391,11 @@ function nf(e, t) {
8391
8391
  };
8392
8392
  return e.patch(t, n), e.applyData(t, n);
8393
8393
  }
8394
- function rf(e, t) {
8394
+ function nf(e, t) {
8395
8395
  const n = { type: "root", children: e.wrap(e.all(t)) };
8396
8396
  return e.patch(t, n), e.applyData(t, n);
8397
8397
  }
8398
- function of(e, t) {
8398
+ function rf(e, t) {
8399
8399
  const n = {
8400
8400
  type: "element",
8401
8401
  tagName: "strong",
@@ -8404,7 +8404,7 @@ function of(e, t) {
8404
8404
  };
8405
8405
  return e.patch(t, n), e.applyData(t, n);
8406
8406
  }
8407
- function af(e, t) {
8407
+ function of(e, t) {
8408
8408
  const n = e.all(t), r = n.shift(), i = [];
8409
8409
  if (r) {
8410
8410
  const o = {
@@ -8432,7 +8432,7 @@ function af(e, t) {
8432
8432
  };
8433
8433
  return e.patch(t, a), e.applyData(t, a);
8434
8434
  }
8435
- function lf(e, t, n) {
8435
+ function af(e, t, n) {
8436
8436
  const r = n ? n.children : void 0, a = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", o = n && n.type === "table" ? n.align : void 0, l = o ? o.length : t.children.length;
8437
8437
  let s = -1;
8438
8438
  const u = [];
@@ -8450,7 +8450,7 @@ function lf(e, t, n) {
8450
8450
  };
8451
8451
  return e.patch(t, p), e.applyData(t, p);
8452
8452
  }
8453
- function sf(e, t) {
8453
+ function lf(e, t) {
8454
8454
  const n = {
8455
8455
  type: "element",
8456
8456
  tagName: "td",
@@ -8461,7 +8461,7 @@ function sf(e, t) {
8461
8461
  return e.patch(t, n), e.applyData(t, n);
8462
8462
  }
8463
8463
  const Gr = 9, Wr = 32;
8464
- function uf(e) {
8464
+ function sf(e) {
8465
8465
  const t = String(e), n = /\r?\n|\r/g;
8466
8466
  let r = n.exec(t), i = 0;
8467
8467
  const a = [];
@@ -8486,11 +8486,11 @@ function Zr(e, t, n) {
8486
8486
  }
8487
8487
  return i > r ? e.slice(r, i) : "";
8488
8488
  }
8489
- function cf(e, t) {
8490
- const n = { type: "text", value: uf(String(t.value)) };
8489
+ function uf(e, t) {
8490
+ const n = { type: "text", value: sf(String(t.value)) };
8491
8491
  return e.patch(t, n), e.applyData(t, n);
8492
8492
  }
8493
- function pf(e, t) {
8493
+ function cf(e, t) {
8494
8494
  const n = {
8495
8495
  type: "element",
8496
8496
  tagName: "hr",
@@ -8499,31 +8499,31 @@ function pf(e, t) {
8499
8499
  };
8500
8500
  return e.patch(t, n), e.applyData(t, n);
8501
8501
  }
8502
- const ff = {
8503
- blockquote: jp,
8504
- break: $p,
8505
- code: Up,
8506
- delete: Vp,
8507
- emphasis: Hp,
8508
- footnoteReference: qp,
8509
- heading: Gp,
8510
- html: Wp,
8511
- imageReference: Zp,
8512
- image: Kp,
8513
- inlineCode: Yp,
8514
- linkReference: Xp,
8515
- link: Qp,
8516
- listItem: Jp,
8517
- list: tf,
8518
- paragraph: nf,
8502
+ const pf = {
8503
+ blockquote: Bp,
8504
+ break: jp,
8505
+ code: $p,
8506
+ delete: Up,
8507
+ emphasis: Vp,
8508
+ footnoteReference: Hp,
8509
+ heading: qp,
8510
+ html: Gp,
8511
+ imageReference: Wp,
8512
+ image: Zp,
8513
+ inlineCode: Kp,
8514
+ linkReference: Yp,
8515
+ link: Xp,
8516
+ listItem: Qp,
8517
+ list: ef,
8518
+ paragraph: tf,
8519
8519
  // @ts-expect-error: root is different, but hard to type.
8520
- root: rf,
8521
- strong: of,
8522
- table: af,
8523
- tableCell: sf,
8524
- tableRow: lf,
8525
- text: cf,
8526
- thematicBreak: pf,
8520
+ root: nf,
8521
+ strong: rf,
8522
+ table: of,
8523
+ tableCell: lf,
8524
+ tableRow: af,
8525
+ text: uf,
8526
+ thematicBreak: cf,
8527
8527
  toml: At,
8528
8528
  yaml: At,
8529
8529
  definition: At,
@@ -8531,7 +8531,7 @@ const ff = {
8531
8531
  };
8532
8532
  function At() {
8533
8533
  }
8534
- const Oo = -1, Qt = 0, Bt = 1, jt = 2, er = 3, tr = 4, nr = 5, rr = 6, Do = 7, zo = 8, Kr = typeof self == "object" ? self : globalThis, df = (e, t) => {
8534
+ const Oo = -1, Qt = 0, Bt = 1, jt = 2, er = 3, tr = 4, nr = 5, rr = 6, Do = 7, zo = 8, Kr = typeof self == "object" ? self : globalThis, ff = (e, t) => {
8535
8535
  const n = (i, a) => (e.set(a, i), i), r = (i) => {
8536
8536
  if (e.has(i))
8537
8537
  return e.get(i);
@@ -8582,11 +8582,11 @@ const Oo = -1, Qt = 0, Bt = 1, jt = 2, er = 3, tr = 4, nr = 5, rr = 6, Do = 7, z
8582
8582
  return n(new Kr[a](o), i);
8583
8583
  };
8584
8584
  return r;
8585
- }, Yr = (e) => df(/* @__PURE__ */ new Map(), e)(0), We = "", { toString: hf } = {}, { keys: gf } = Object, ct = (e) => {
8585
+ }, Yr = (e) => ff(/* @__PURE__ */ new Map(), e)(0), We = "", { toString: df } = {}, { keys: hf } = Object, ct = (e) => {
8586
8586
  const t = typeof e;
8587
8587
  if (t !== "object" || !e)
8588
8588
  return [Qt, t];
8589
- const n = hf.call(e).slice(8, -1);
8589
+ const n = df.call(e).slice(8, -1);
8590
8590
  switch (n) {
8591
8591
  case "Array":
8592
8592
  return [Bt, We];
@@ -8602,7 +8602,7 @@ const Oo = -1, Qt = 0, Bt = 1, jt = 2, er = 3, tr = 4, nr = 5, rr = 6, Do = 7, z
8602
8602
  return [rr, We];
8603
8603
  }
8604
8604
  return n.includes("Array") ? [Bt, n] : n.includes("Error") ? [Do, n] : [jt, n];
8605
- }, Tt = ([e, t]) => e === Qt && (t === "function" || t === "symbol"), mf = (e, t, n, r) => {
8605
+ }, Tt = ([e, t]) => e === Qt && (t === "function" || t === "symbol"), gf = (e, t, n, r) => {
8606
8606
  const i = (o, l) => {
8607
8607
  const s = r.push(o) - 1;
8608
8608
  return n.set(l, s), s;
@@ -8649,7 +8649,7 @@ const Oo = -1, Qt = 0, Bt = 1, jt = 2, er = 3, tr = 4, nr = 5, rr = 6, Do = 7, z
8649
8649
  if (t && "toJSON" in o)
8650
8650
  return a(o.toJSON());
8651
8651
  const p = [], c = i([l, p], o);
8652
- for (const h of gf(o))
8652
+ for (const h of hf(o))
8653
8653
  (e || !Tt(ct(o[h]))) && p.push([a(h), a(o[h])]);
8654
8654
  return c;
8655
8655
  }
@@ -8678,12 +8678,12 @@ const Oo = -1, Qt = 0, Bt = 1, jt = 2, er = 3, tr = 4, nr = 5, rr = 6, Do = 7, z
8678
8678
  return a;
8679
8679
  }, Xr = (e, { json: t, lossy: n } = {}) => {
8680
8680
  const r = [];
8681
- return mf(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
8681
+ return gf(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
8682
8682
  }, $t = typeof structuredClone == "function" ? (
8683
8683
  /* c8 ignore start */
8684
8684
  (e, t) => t && ("json" in t || "lossy" in t) ? Yr(Xr(e, t)) : structuredClone(e)
8685
8685
  ) : (e, t) => Yr(Xr(e, t));
8686
- function yf(e, t) {
8686
+ function mf(e, t) {
8687
8687
  const n = [{ type: "text", value: "↩" }];
8688
8688
  return t > 1 && n.push({
8689
8689
  type: "element",
@@ -8692,11 +8692,11 @@ function yf(e, t) {
8692
8692
  children: [{ type: "text", value: String(t) }]
8693
8693
  }), n;
8694
8694
  }
8695
- function bf(e, t) {
8695
+ function yf(e, t) {
8696
8696
  return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
8697
8697
  }
8698
- function xf(e) {
8699
- const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || yf, r = e.options.footnoteBackLabel || bf, i = e.options.footnoteLabel || "Footnotes", a = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
8698
+ function bf(e) {
8699
+ const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || mf, r = e.options.footnoteBackLabel || yf, i = e.options.footnoteLabel || "Footnotes", a = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
8700
8700
  className: ["sr-only"]
8701
8701
  }, l = [];
8702
8702
  let s = -1;
@@ -8781,17 +8781,17 @@ const Jt = (
8781
8781
  */
8782
8782
  function(e) {
8783
8783
  if (e == null)
8784
- return Sf;
8784
+ return vf;
8785
8785
  if (typeof e == "function")
8786
8786
  return en(e);
8787
8787
  if (typeof e == "object")
8788
- return Array.isArray(e) ? kf(e) : wf(e);
8788
+ return Array.isArray(e) ? xf(e) : kf(e);
8789
8789
  if (typeof e == "string")
8790
- return vf(e);
8790
+ return wf(e);
8791
8791
  throw new Error("Expected function, string, or object as test");
8792
8792
  }
8793
8793
  );
8794
- function kf(e) {
8794
+ function xf(e) {
8795
8795
  const t = [];
8796
8796
  let n = -1;
8797
8797
  for (; ++n < e.length; )
@@ -8804,7 +8804,7 @@ function kf(e) {
8804
8804
  return !1;
8805
8805
  }
8806
8806
  }
8807
- function wf(e) {
8807
+ function kf(e) {
8808
8808
  const t = (
8809
8809
  /** @type {Record<string, unknown>} */
8810
8810
  e
@@ -8822,7 +8822,7 @@ function wf(e) {
8822
8822
  return !0;
8823
8823
  }
8824
8824
  }
8825
- function vf(e) {
8825
+ function wf(e) {
8826
8826
  return en(t);
8827
8827
  function t(n) {
8828
8828
  return n && n.type === e;
@@ -8831,7 +8831,7 @@ function vf(e) {
8831
8831
  function en(e) {
8832
8832
  return t;
8833
8833
  function t(n, r, i) {
8834
- return !!(Ef(n) && e.call(
8834
+ return !!(Sf(n) && e.call(
8835
8835
  this,
8836
8836
  n,
8837
8837
  typeof r == "number" ? r : void 0,
@@ -8839,13 +8839,13 @@ function en(e) {
8839
8839
  ));
8840
8840
  }
8841
8841
  }
8842
- function Sf() {
8842
+ function vf() {
8843
8843
  return !0;
8844
8844
  }
8845
- function Ef(e) {
8845
+ function Sf(e) {
8846
8846
  return e !== null && typeof e == "object" && "type" in e;
8847
8847
  }
8848
- const No = [], Cf = !0, Rn = !1, Af = "skip";
8848
+ const No = [], Ef = !0, Rn = !1, Cf = "skip";
8849
8849
  function Mo(e, t, n, r) {
8850
8850
  let i;
8851
8851
  typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
@@ -8871,14 +8871,14 @@ function Mo(e, t, n, r) {
8871
8871
  return h;
8872
8872
  function h() {
8873
8873
  let d = No, f, g, m;
8874
- if ((!t || a(s, u, p[p.length - 1] || void 0)) && (d = Tf(n(s, p)), d[0] === Rn))
8874
+ if ((!t || a(s, u, p[p.length - 1] || void 0)) && (d = Af(n(s, p)), d[0] === Rn))
8875
8875
  return d;
8876
8876
  if ("children" in s && s.children) {
8877
8877
  const x = (
8878
8878
  /** @type {UnistParent} */
8879
8879
  s
8880
8880
  );
8881
- if (x.children && d[0] !== Af)
8881
+ if (x.children && d[0] !== Cf)
8882
8882
  for (g = (r ? x.children.length : -1) + o, m = p.concat(x); g > -1 && g < x.children.length; ) {
8883
8883
  const y = x.children[g];
8884
8884
  if (f = l(y, g, m)(), f[0] === Rn)
@@ -8890,8 +8890,8 @@ function Mo(e, t, n, r) {
8890
8890
  }
8891
8891
  }
8892
8892
  }
8893
- function Tf(e) {
8894
- return Array.isArray(e) ? e : typeof e == "number" ? [Cf, e] : e == null ? No : [e];
8893
+ function Af(e) {
8894
+ return Array.isArray(e) ? e : typeof e == "number" ? [Ef, e] : e == null ? No : [e];
8895
8895
  }
8896
8896
  function tn(e, t, n, r) {
8897
8897
  let i, a, o;
@@ -8901,11 +8901,11 @@ function tn(e, t, n, r) {
8901
8901
  return o(s, c, p);
8902
8902
  }
8903
8903
  }
8904
- const Fn = {}.hasOwnProperty, If = {};
8905
- function _f(e, t) {
8906
- const n = t || If, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = { ...ff, ...n.handlers }, l = {
8904
+ const Fn = {}.hasOwnProperty, Tf = {};
8905
+ function If(e, t) {
8906
+ const n = t || Tf, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = { ...pf, ...n.handlers }, l = {
8907
8907
  all: u,
8908
- applyData: Ff,
8908
+ applyData: Rf,
8909
8909
  definitionById: r,
8910
8910
  footnoteById: i,
8911
8911
  footnoteCounts: a,
@@ -8913,8 +8913,8 @@ function _f(e, t) {
8913
8913
  handlers: o,
8914
8914
  one: s,
8915
8915
  options: n,
8916
- patch: Rf,
8917
- wrap: Pf
8916
+ patch: _f,
8917
+ wrap: Lf
8918
8918
  };
8919
8919
  return tn(e, function(p) {
8920
8920
  if (p.type === "definition" || p.type === "footnoteDefinition") {
@@ -8933,7 +8933,7 @@ function _f(e, t) {
8933
8933
  }
8934
8934
  return $t(p);
8935
8935
  }
8936
- return (l.options.unknownHandler || Lf)(l, p, c);
8936
+ return (l.options.unknownHandler || Ff)(l, p, c);
8937
8937
  }
8938
8938
  function u(p) {
8939
8939
  const c = [];
@@ -8954,10 +8954,10 @@ function _f(e, t) {
8954
8954
  return c;
8955
8955
  }
8956
8956
  }
8957
- function Rf(e, t) {
8958
- e.position && (t.position = mu(e));
8957
+ function _f(e, t) {
8958
+ e.position && (t.position = gu(e));
8959
8959
  }
8960
- function Ff(e, t) {
8960
+ function Rf(e, t) {
8961
8961
  let n = t;
8962
8962
  if (e && e.data) {
8963
8963
  const r = e.data.hName, i = e.data.hChildren, a = e.data.hProperties;
@@ -8972,7 +8972,7 @@ function Ff(e, t) {
8972
8972
  }
8973
8973
  return n;
8974
8974
  }
8975
- function Lf(e, t) {
8975
+ function Ff(e, t) {
8976
8976
  const n = t.data || {}, r = "value" in t && !(Fn.call(n, "hProperties") || Fn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
8977
8977
  type: "element",
8978
8978
  tagName: "div",
@@ -8981,7 +8981,7 @@ function Lf(e, t) {
8981
8981
  };
8982
8982
  return e.patch(t, r), e.applyData(t, r);
8983
8983
  }
8984
- function Pf(e, t) {
8984
+ function Lf(e, t) {
8985
8985
  const n = [];
8986
8986
  let r = -1;
8987
8987
  for (t && n.push({ type: "text", value: `
@@ -8998,11 +8998,11 @@ function Qr(e) {
8998
8998
  return e.slice(t);
8999
8999
  }
9000
9000
  function Jr(e, t) {
9001
- const n = _f(e, t), r = n.one(e, void 0), i = xf(n), a = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
9001
+ const n = If(e, t), r = n.one(e, void 0), i = bf(n), a = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
9002
9002
  return i && a.children.push({ type: "text", value: `
9003
9003
  ` }, i), a;
9004
9004
  }
9005
- function Of(e, t) {
9005
+ function Pf(e, t) {
9006
9006
  return e && "run" in e ? async function(n, r) {
9007
9007
  const i = (
9008
9008
  /** @type {HastRoot} */
@@ -9046,7 +9046,7 @@ var Pt = Object.prototype.hasOwnProperty, Bo = Object.prototype.toString, ti = O
9046
9046
  return ni(t, n).value;
9047
9047
  } else return;
9048
9048
  return t[n];
9049
- }, Df = function e() {
9049
+ }, Of = function e() {
9050
9050
  var t, n, r, i, a, o, l = arguments[0], s = 1, u = arguments.length, p = !1;
9051
9051
  for (typeof l == "boolean" && (p = l, l = arguments[1] || {}, s = 2), (l == null || typeof l != "object" && typeof l != "function") && (l = {}); s < u; ++s)
9052
9052
  if (t = arguments[s], t != null)
@@ -9054,14 +9054,14 @@ var Pt = Object.prototype.hasOwnProperty, Bo = Object.prototype.toString, ti = O
9054
9054
  r = ai(l, n), i = ai(t, n), l !== i && (p && i && (ii(i) || (a = ri(i))) ? (a ? (a = !1, o = r && ri(r) ? r : []) : o = r && ii(r) ? r : {}, oi(l, { name: n, newValue: e(p, o, i) })) : typeof i < "u" && oi(l, { name: n, newValue: i }));
9055
9055
  return l;
9056
9056
  };
9057
- const pn = /* @__PURE__ */ al(Df);
9057
+ const pn = /* @__PURE__ */ al(Of);
9058
9058
  function Ln(e) {
9059
9059
  if (typeof e != "object" || e === null)
9060
9060
  return !1;
9061
9061
  const t = Object.getPrototypeOf(e);
9062
9062
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
9063
9063
  }
9064
- function zf() {
9064
+ function Df() {
9065
9065
  const e = [], t = { run: n, use: r };
9066
9066
  return t;
9067
9067
  function n(...i) {
@@ -9079,7 +9079,7 @@ function zf() {
9079
9079
  }
9080
9080
  for (; ++c < i.length; )
9081
9081
  (u[c] === null || u[c] === void 0) && (u[c] = i[c]);
9082
- i = u, p ? Nf(p, l)(...u) : o(null, ...u);
9082
+ i = u, p ? zf(p, l)(...u) : o(null, ...u);
9083
9083
  }
9084
9084
  }
9085
9085
  function r(i) {
@@ -9090,7 +9090,7 @@ function zf() {
9090
9090
  return e.push(i), t;
9091
9091
  }
9092
9092
  }
9093
- function Nf(e, t) {
9093
+ function zf(e, t) {
9094
9094
  let n;
9095
9095
  return r;
9096
9096
  function r(...o) {
@@ -9117,8 +9117,8 @@ function Nf(e, t) {
9117
9117
  i(null, o);
9118
9118
  }
9119
9119
  }
9120
- const Ee = { basename: Mf, dirname: Bf, extname: jf, join: $f, sep: "/" };
9121
- function Mf(e, t) {
9120
+ const Ee = { basename: Nf, dirname: Mf, extname: Bf, join: jf, sep: "/" };
9121
+ function Nf(e, t) {
9122
9122
  if (t !== void 0 && typeof t != "string")
9123
9123
  throw new TypeError('"ext" argument must be a string');
9124
9124
  vt(e);
@@ -9146,7 +9146,7 @@ function Mf(e, t) {
9146
9146
  o < 0 && (a = !0, o = i + 1), l > -1 && (e.codePointAt(i) === t.codePointAt(l--) ? l < 0 && (r = i) : (l = -1, r = o));
9147
9147
  return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
9148
9148
  }
9149
- function Bf(e) {
9149
+ function Mf(e) {
9150
9150
  if (vt(e), e.length === 0)
9151
9151
  return ".";
9152
9152
  let t = -1, n = e.length, r;
@@ -9159,7 +9159,7 @@ function Bf(e) {
9159
9159
  } else r || (r = !0);
9160
9160
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
9161
9161
  }
9162
- function jf(e) {
9162
+ function Bf(e) {
9163
9163
  vt(e);
9164
9164
  let t = e.length, n = -1, r = 0, i = -1, a = 0, o;
9165
9165
  for (; t--; ) {
@@ -9177,19 +9177,19 @@ function jf(e) {
9177
9177
  a === 0 || // The (right-most) trimmed path component is exactly `..`.
9178
9178
  a === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
9179
9179
  }
9180
- function $f(...e) {
9180
+ function jf(...e) {
9181
9181
  let t = -1, n;
9182
9182
  for (; ++t < e.length; )
9183
9183
  vt(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
9184
- return n === void 0 ? "." : Uf(n);
9184
+ return n === void 0 ? "." : $f(n);
9185
9185
  }
9186
- function Uf(e) {
9186
+ function $f(e) {
9187
9187
  vt(e);
9188
9188
  const t = e.codePointAt(0) === 47;
9189
- let n = Vf(e, !t);
9189
+ let n = Uf(e, !t);
9190
9190
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
9191
9191
  }
9192
- function Vf(e, t) {
9192
+ function Uf(e, t) {
9193
9193
  let n = "", r = 0, i = -1, a = 0, o = -1, l, s;
9194
9194
  for (; ++o <= e.length; ) {
9195
9195
  if (o < e.length)
@@ -9226,15 +9226,15 @@ function vt(e) {
9226
9226
  "Path must be a string. Received " + JSON.stringify(e)
9227
9227
  );
9228
9228
  }
9229
- const Hf = { cwd: qf };
9230
- function qf() {
9229
+ const Vf = { cwd: Hf };
9230
+ function Hf() {
9231
9231
  return "/";
9232
9232
  }
9233
9233
  function Pn(e) {
9234
9234
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
9235
9235
  e.auth === void 0);
9236
9236
  }
9237
- function Gf(e) {
9237
+ function qf(e) {
9238
9238
  if (typeof e == "string")
9239
9239
  e = new URL(e);
9240
9240
  else if (!Pn(e)) {
@@ -9247,9 +9247,9 @@ function Gf(e) {
9247
9247
  const t = new TypeError("The URL must be of scheme file");
9248
9248
  throw t.code = "ERR_INVALID_URL_SCHEME", t;
9249
9249
  }
9250
- return Wf(e);
9250
+ return Gf(e);
9251
9251
  }
9252
- function Wf(e) {
9252
+ function Gf(e) {
9253
9253
  if (e.hostname !== "") {
9254
9254
  const r = new TypeError(
9255
9255
  'File URL host must be "localhost" or empty on darwin'
@@ -9306,7 +9306,7 @@ class jo {
9306
9306
  */
9307
9307
  constructor(t) {
9308
9308
  let n;
9309
- t ? Pn(t) ? n = { path: t } : typeof t == "string" || Zf(t) ? n = { value: t } : n = t : n = {}, this.cwd = Hf.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
9309
+ t ? Pn(t) ? n = { path: t } : typeof t == "string" || Wf(t) ? n = { value: t } : n = t : n = {}, this.cwd = Vf.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
9310
9310
  let r = -1;
9311
9311
  for (; ++r < fn.length; ) {
9312
9312
  const a = fn[r];
@@ -9414,7 +9414,7 @@ class jo {
9414
9414
  * Nothing.
9415
9415
  */
9416
9416
  set path(t) {
9417
- Pn(t) && (t = Gf(t)), hn(t, "path"), this.path !== t && this.history.push(t);
9417
+ Pn(t) && (t = qf(t)), hn(t, "path"), this.path !== t && this.history.push(t);
9418
9418
  }
9419
9419
  /**
9420
9420
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -9665,10 +9665,10 @@ function li(e, t) {
9665
9665
  if (!e)
9666
9666
  throw new Error("Setting `" + t + "` requires `path` to be set too");
9667
9667
  }
9668
- function Zf(e) {
9668
+ function Wf(e) {
9669
9669
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
9670
9670
  }
9671
- const Kf = (
9671
+ const Zf = (
9672
9672
  /**
9673
9673
  * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
9674
9674
  */
@@ -9695,13 +9695,13 @@ const Kf = (
9695
9695
  }
9696
9696
  return a;
9697
9697
  }
9698
- ), Yf = {}.hasOwnProperty;
9699
- class ir extends Kf {
9698
+ ), Kf = {}.hasOwnProperty;
9699
+ class ir extends Zf {
9700
9700
  /**
9701
9701
  * Create a processor.
9702
9702
  */
9703
9703
  constructor() {
9704
- super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = zf();
9704
+ super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Df();
9705
9705
  }
9706
9706
  /**
9707
9707
  * Copy a processor.
@@ -9786,7 +9786,7 @@ class ir extends Kf {
9786
9786
  * the entire dataset when getting without key.
9787
9787
  */
9788
9788
  data(t, n) {
9789
- return typeof t == "string" ? arguments.length === 2 ? (yn("data", this.frozen), this.namespace[t] = n, this) : Yf.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (yn("data", this.frozen), this.namespace = t, this) : this.namespace;
9789
+ return typeof t == "string" ? arguments.length === 2 ? (yn("data", this.frozen), this.namespace[t] = n, this) : Kf.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (yn("data", this.frozen), this.namespace = t, this) : this.namespace;
9790
9790
  }
9791
9791
  /**
9792
9792
  * Freeze a processor.
@@ -9901,7 +9901,7 @@ class ir extends Kf {
9901
9901
  /** @type {unknown} */
9902
9902
  c
9903
9903
  ), f = r.stringify(d, h);
9904
- Jf(f) ? h.value = f : h.result = f, u(
9904
+ Qf(f) ? h.value = f : h.result = f, u(
9905
9905
  p,
9906
9906
  /** @type {VFileWithOutput<CompileResult>} */
9907
9907
  h
@@ -10177,7 +10177,7 @@ class ir extends Kf {
10177
10177
  }
10178
10178
  }
10179
10179
  }
10180
- const Xf = new ir().freeze();
10180
+ const Yf = new ir().freeze();
10181
10181
  function gn(e, t) {
10182
10182
  if (typeof t != "function")
10183
10183
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -10203,18 +10203,18 @@ function ui(e, t, n) {
10203
10203
  );
10204
10204
  }
10205
10205
  function It(e) {
10206
- return Qf(e) ? e : new jo(e);
10206
+ return Xf(e) ? e : new jo(e);
10207
10207
  }
10208
- function Qf(e) {
10208
+ function Xf(e) {
10209
10209
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
10210
10210
  }
10211
- function Jf(e) {
10212
- return typeof e == "string" || ed(e);
10211
+ function Qf(e) {
10212
+ return typeof e == "string" || Jf(e);
10213
10213
  }
10214
- function ed(e) {
10214
+ function Jf(e) {
10215
10215
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
10216
10216
  }
10217
- const td = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", ci = [], pi = { allowDangerousHtml: !0 }, nd = /^(https?|ircs?|mailto|xmpp)$/i, rd = [
10217
+ const ed = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", ci = [], pi = { allowDangerousHtml: !0 }, td = /^(https?|ircs?|mailto|xmpp)$/i, nd = [
10218
10218
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
10219
10219
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
10220
10220
  {
@@ -10247,11 +10247,11 @@ const td = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
10247
10247
  { from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
10248
10248
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
10249
10249
  ];
10250
- function id(e) {
10251
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, a = e.components, o = e.disallowedElements, l = e.rehypePlugins || ci, s = e.remarkPlugins || ci, u = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...pi } : pi, p = e.skipHtml, c = e.unwrapDisallowed, h = e.urlTransform || od, d = Xf().use(Bp).use(s).use(Of, u).use(l), f = new jo();
10250
+ function rd(e) {
10251
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, a = e.components, o = e.disallowedElements, l = e.rehypePlugins || ci, s = e.remarkPlugins || ci, u = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...pi } : pi, p = e.skipHtml, c = e.unwrapDisallowed, h = e.urlTransform || id, d = Yf().use(Mp).use(s).use(Pf, u).use(l), f = new jo();
10252
10252
  typeof r == "string" && (f.value = r);
10253
- for (const y of rd)
10254
- Object.hasOwn(e, y.from) && ("" + y.from + (y.to ? "use `" + y.to + "` instead" : "remove it") + td + y.id, void 0);
10253
+ for (const y of nd)
10254
+ Object.hasOwn(e, y.from) && ("" + y.from + (y.to ? "use `" + y.to + "` instead" : "remove it") + ed + y.id, void 0);
10255
10255
  const g = d.parse(f);
10256
10256
  let m = d.runSync(g, f);
10257
10257
  return i && (m = {
@@ -10263,7 +10263,7 @@ function id(e) {
10263
10263
  /** @type {Array<ElementContent>} */
10264
10264
  m.type === "root" ? m.children : [m]
10265
10265
  )
10266
- }), tn(m, x), vu(m, {
10266
+ }), tn(m, x), wu(m, {
10267
10267
  Fragment: $.Fragment,
10268
10268
  components: a,
10269
10269
  ignoreInvalidStyle: !0,
@@ -10290,13 +10290,13 @@ function id(e) {
10290
10290
  }
10291
10291
  }
10292
10292
  }
10293
- function od(e) {
10293
+ function id(e) {
10294
10294
  const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
10295
10295
  return (
10296
10296
  // If there is no protocol, it’s relative.
10297
10297
  t < 0 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
10298
10298
  i > -1 && t > i || n > -1 && t > n || r > -1 && t > r || // It is a protocol, it should be allowed.
10299
- nd.test(e.slice(0, t)) ? e : ""
10299
+ td.test(e.slice(0, t)) ? e : ""
10300
10300
  );
10301
10301
  }
10302
10302
  function fi(e, t) {
@@ -10308,13 +10308,13 @@ function fi(e, t) {
10308
10308
  r++, i = n.indexOf(t, i + t.length);
10309
10309
  return r;
10310
10310
  }
10311
- function ad(e) {
10311
+ function od(e) {
10312
10312
  if (typeof e != "string")
10313
10313
  throw new TypeError("Expected a string");
10314
10314
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
10315
10315
  }
10316
- function ld(e, t, n) {
10317
- const i = Jt((n || {}).ignore || []), a = sd(t);
10316
+ function ad(e, t, n) {
10317
+ const i = Jt((n || {}).ignore || []), a = ld(t);
10318
10318
  let o = -1;
10319
10319
  for (; ++o < a.length; )
10320
10320
  Mo(e, "text", l);
@@ -10357,7 +10357,7 @@ function ld(e, t, n) {
10357
10357
  return x ? (f < u.value.length && y.push({ type: "text", value: u.value.slice(f) }), c.children.splice(m, 1, ...y)) : y = [u], m + y.length;
10358
10358
  }
10359
10359
  }
10360
- function sd(e) {
10360
+ function ld(e) {
10361
10361
  const t = [];
10362
10362
  if (!Array.isArray(e))
10363
10363
  throw new TypeError("Expected find and replace tuple or list of tuples");
@@ -10365,37 +10365,37 @@ function sd(e) {
10365
10365
  let r = -1;
10366
10366
  for (; ++r < n.length; ) {
10367
10367
  const i = n[r];
10368
- t.push([ud(i[0]), cd(i[1])]);
10368
+ t.push([sd(i[0]), ud(i[1])]);
10369
10369
  }
10370
10370
  return t;
10371
10371
  }
10372
- function ud(e) {
10373
- return typeof e == "string" ? new RegExp(ad(e), "g") : e;
10372
+ function sd(e) {
10373
+ return typeof e == "string" ? new RegExp(od(e), "g") : e;
10374
10374
  }
10375
- function cd(e) {
10375
+ function ud(e) {
10376
10376
  return typeof e == "function" ? e : function() {
10377
10377
  return e;
10378
10378
  };
10379
10379
  }
10380
10380
  const bn = "phrasing", xn = ["autolink", "link", "image", "label"];
10381
- function pd() {
10381
+ function cd() {
10382
10382
  return {
10383
- transforms: [bd],
10383
+ transforms: [yd],
10384
10384
  enter: {
10385
- literalAutolink: dd,
10385
+ literalAutolink: fd,
10386
10386
  literalAutolinkEmail: kn,
10387
10387
  literalAutolinkHttp: kn,
10388
10388
  literalAutolinkWww: kn
10389
10389
  },
10390
10390
  exit: {
10391
- literalAutolink: yd,
10392
- literalAutolinkEmail: md,
10393
- literalAutolinkHttp: hd,
10394
- literalAutolinkWww: gd
10391
+ literalAutolink: md,
10392
+ literalAutolinkEmail: gd,
10393
+ literalAutolinkHttp: dd,
10394
+ literalAutolinkWww: hd
10395
10395
  }
10396
10396
  };
10397
10397
  }
10398
- function fd() {
10398
+ function pd() {
10399
10399
  return {
10400
10400
  unsafe: [
10401
10401
  {
@@ -10422,41 +10422,41 @@ function fd() {
10422
10422
  ]
10423
10423
  };
10424
10424
  }
10425
- function dd(e) {
10425
+ function fd(e) {
10426
10426
  this.enter({ type: "link", title: null, url: "", children: [] }, e);
10427
10427
  }
10428
10428
  function kn(e) {
10429
10429
  this.config.enter.autolinkProtocol.call(this, e);
10430
10430
  }
10431
- function hd(e) {
10431
+ function dd(e) {
10432
10432
  this.config.exit.autolinkProtocol.call(this, e);
10433
10433
  }
10434
- function gd(e) {
10434
+ function hd(e) {
10435
10435
  this.config.exit.data.call(this, e);
10436
10436
  const t = this.stack[this.stack.length - 1];
10437
10437
  t.type, t.url = "http://" + this.sliceSerialize(e);
10438
10438
  }
10439
- function md(e) {
10439
+ function gd(e) {
10440
10440
  this.config.exit.autolinkEmail.call(this, e);
10441
10441
  }
10442
- function yd(e) {
10442
+ function md(e) {
10443
10443
  this.exit(e);
10444
10444
  }
10445
- function bd(e) {
10446
- ld(
10445
+ function yd(e) {
10446
+ ad(
10447
10447
  e,
10448
10448
  [
10449
- [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, xd],
10450
- [/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, kd]
10449
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, bd],
10450
+ [/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, xd]
10451
10451
  ],
10452
10452
  { ignore: ["link", "linkReference"] }
10453
10453
  );
10454
10454
  }
10455
- function xd(e, t, n, r, i) {
10455
+ function bd(e, t, n, r, i) {
10456
10456
  let a = "";
10457
- if (!$o(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !wd(n)))
10457
+ if (!$o(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !kd(n)))
10458
10458
  return !1;
10459
- const o = vd(n + r);
10459
+ const o = wd(n + r);
10460
10460
  if (!o[0]) return !1;
10461
10461
  const l = {
10462
10462
  type: "link",
@@ -10466,7 +10466,7 @@ function xd(e, t, n, r, i) {
10466
10466
  };
10467
10467
  return o[1] ? [l, { type: "text", value: o[1] }] : l;
10468
10468
  }
10469
- function kd(e, t, n, r) {
10469
+ function xd(e, t, n, r) {
10470
10470
  return (
10471
10471
  // Not an expected previous character.
10472
10472
  !$o(r, !0) || // Label ends in not allowed character.
@@ -10478,11 +10478,11 @@ function kd(e, t, n, r) {
10478
10478
  }
10479
10479
  );
10480
10480
  }
10481
- function wd(e) {
10481
+ function kd(e) {
10482
10482
  const t = e.split(".");
10483
10483
  return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
10484
10484
  }
10485
- function vd(e) {
10485
+ function wd(e) {
10486
10486
  const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
10487
10487
  if (!t)
10488
10488
  return [e, void 0];
@@ -10498,61 +10498,61 @@ function $o(e, t) {
10498
10498
  const n = e.input.charCodeAt(e.index - 1);
10499
10499
  return (e.index === 0 || Ve(n) || Yt(n)) && (!t || n !== 47);
10500
10500
  }
10501
- Uo.peek = Pd;
10502
- function Sd() {
10501
+ Uo.peek = Ld;
10502
+ function vd() {
10503
10503
  return {
10504
10504
  enter: {
10505
- gfmFootnoteDefinition: Cd,
10506
- gfmFootnoteDefinitionLabelString: Ad,
10507
- gfmFootnoteCall: _d,
10508
- gfmFootnoteCallString: Rd
10505
+ gfmFootnoteDefinition: Ed,
10506
+ gfmFootnoteDefinitionLabelString: Cd,
10507
+ gfmFootnoteCall: Id,
10508
+ gfmFootnoteCallString: _d
10509
10509
  },
10510
10510
  exit: {
10511
- gfmFootnoteDefinition: Id,
10512
- gfmFootnoteDefinitionLabelString: Td,
10513
- gfmFootnoteCall: Ld,
10514
- gfmFootnoteCallString: Fd
10511
+ gfmFootnoteDefinition: Td,
10512
+ gfmFootnoteDefinitionLabelString: Ad,
10513
+ gfmFootnoteCall: Fd,
10514
+ gfmFootnoteCallString: Rd
10515
10515
  }
10516
10516
  };
10517
10517
  }
10518
- function Ed() {
10518
+ function Sd() {
10519
10519
  return {
10520
10520
  // This is on by default already.
10521
10521
  unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
10522
- handlers: { footnoteDefinition: Od, footnoteReference: Uo }
10522
+ handlers: { footnoteDefinition: Pd, footnoteReference: Uo }
10523
10523
  };
10524
10524
  }
10525
- function Cd(e) {
10525
+ function Ed(e) {
10526
10526
  this.enter(
10527
10527
  { type: "footnoteDefinition", identifier: "", label: "", children: [] },
10528
10528
  e
10529
10529
  );
10530
10530
  }
10531
- function Ad() {
10531
+ function Cd() {
10532
10532
  this.buffer();
10533
10533
  }
10534
- function Td(e) {
10534
+ function Ad(e) {
10535
10535
  const t = this.resume(), n = this.stack[this.stack.length - 1];
10536
10536
  n.type, n.label = t, n.identifier = xe(
10537
10537
  this.sliceSerialize(e)
10538
10538
  ).toLowerCase();
10539
10539
  }
10540
- function Id(e) {
10540
+ function Td(e) {
10541
10541
  this.exit(e);
10542
10542
  }
10543
- function _d(e) {
10543
+ function Id(e) {
10544
10544
  this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
10545
10545
  }
10546
- function Rd() {
10546
+ function _d() {
10547
10547
  this.buffer();
10548
10548
  }
10549
- function Fd(e) {
10549
+ function Rd(e) {
10550
10550
  const t = this.resume(), n = this.stack[this.stack.length - 1];
10551
10551
  n.type, n.label = t, n.identifier = xe(
10552
10552
  this.sliceSerialize(e)
10553
10553
  ).toLowerCase();
10554
10554
  }
10555
- function Ld(e) {
10555
+ function Fd(e) {
10556
10556
  this.exit(e);
10557
10557
  }
10558
10558
  function Uo(e, t, n, r) {
@@ -10567,10 +10567,10 @@ function Uo(e, t, n, r) {
10567
10567
  })
10568
10568
  ), l(), o(), a += i.move("]"), a;
10569
10569
  }
10570
- function Pd() {
10570
+ function Ld() {
10571
10571
  return "[";
10572
10572
  }
10573
- function Od(e, t, n, r) {
10573
+ function Pd(e, t, n, r) {
10574
10574
  const i = n.createTracker(r);
10575
10575
  let a = i.move("[^");
10576
10576
  const o = n.enter("footnoteDefinition"), l = n.enter("label");
@@ -10583,13 +10583,13 @@ function Od(e, t, n, r) {
10583
10583
  ), l(), a += i.move(
10584
10584
  "]:" + (e.children && e.children.length > 0 ? " " : "")
10585
10585
  ), i.shift(4), a += i.move(
10586
- n.indentLines(n.containerFlow(e, i.current()), Dd)
10586
+ n.indentLines(n.containerFlow(e, i.current()), Od)
10587
10587
  ), o(), a;
10588
10588
  }
10589
- function Dd(e, t, n) {
10589
+ function Od(e, t, n) {
10590
10590
  return t === 0 ? e : (n ? "" : " ") + e;
10591
10591
  }
10592
- const zd = [
10592
+ const Dd = [
10593
10593
  "autolink",
10594
10594
  "destinationLiteral",
10595
10595
  "destinationRaw",
@@ -10597,30 +10597,30 @@ const zd = [
10597
10597
  "titleQuote",
10598
10598
  "titleApostrophe"
10599
10599
  ];
10600
- Vo.peek = $d;
10601
- function Nd() {
10600
+ Vo.peek = jd;
10601
+ function zd() {
10602
10602
  return {
10603
10603
  canContainEols: ["delete"],
10604
- enter: { strikethrough: Bd },
10605
- exit: { strikethrough: jd }
10604
+ enter: { strikethrough: Md },
10605
+ exit: { strikethrough: Bd }
10606
10606
  };
10607
10607
  }
10608
- function Md() {
10608
+ function Nd() {
10609
10609
  return {
10610
10610
  unsafe: [
10611
10611
  {
10612
10612
  character: "~",
10613
10613
  inConstruct: "phrasing",
10614
- notInConstruct: zd
10614
+ notInConstruct: Dd
10615
10615
  }
10616
10616
  ],
10617
10617
  handlers: { delete: Vo }
10618
10618
  };
10619
10619
  }
10620
- function Bd(e) {
10620
+ function Md(e) {
10621
10621
  this.enter({ type: "delete", children: [] }, e);
10622
10622
  }
10623
- function jd(e) {
10623
+ function Bd(e) {
10624
10624
  this.exit(e);
10625
10625
  }
10626
10626
  function Vo(e, t, n, r) {
@@ -10632,17 +10632,17 @@ function Vo(e, t, n, r) {
10632
10632
  after: "~"
10633
10633
  }), o += i.move("~~"), a(), o;
10634
10634
  }
10635
- function $d() {
10635
+ function jd() {
10636
10636
  return "~";
10637
10637
  }
10638
- function Ud(e, t = {}) {
10639
- const n = (t.align || []).concat(), r = t.stringLength || Hd, i = [], a = [], o = [], l = [];
10638
+ function $d(e, t = {}) {
10639
+ const n = (t.align || []).concat(), r = t.stringLength || Vd, i = [], a = [], o = [], l = [];
10640
10640
  let s = 0, u = -1;
10641
10641
  for (; ++u < e.length; ) {
10642
10642
  const f = [], g = [];
10643
10643
  let m = -1;
10644
10644
  for (e[u].length > s && (s = e[u].length); ++m < e[u].length; ) {
10645
- const x = Vd(e[u][m]);
10645
+ const x = Ud(e[u][m]);
10646
10646
  if (t.alignDelimiters !== !1) {
10647
10647
  const y = r(x);
10648
10648
  g[m] = y, (l[m] === void 0 || y > l[m]) && (l[m] = y);
@@ -10697,29 +10697,29 @@ function Ud(e, t = {}) {
10697
10697
  return d.join(`
10698
10698
  `);
10699
10699
  }
10700
- function Vd(e) {
10700
+ function Ud(e) {
10701
10701
  return e == null ? "" : String(e);
10702
10702
  }
10703
- function Hd(e) {
10703
+ function Vd(e) {
10704
10704
  return e.length;
10705
10705
  }
10706
10706
  function di(e) {
10707
10707
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
10708
10708
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
10709
10709
  }
10710
- function qd(e, t, n, r) {
10710
+ function Hd(e, t, n, r) {
10711
10711
  const i = n.enter("blockquote"), a = n.createTracker(r);
10712
10712
  a.move("> "), a.shift(2);
10713
10713
  const o = n.indentLines(
10714
10714
  n.containerFlow(e, a.current()),
10715
- Gd
10715
+ qd
10716
10716
  );
10717
10717
  return i(), o;
10718
10718
  }
10719
- function Gd(e, t, n) {
10719
+ function qd(e, t, n) {
10720
10720
  return ">" + (n ? "" : " ") + e;
10721
10721
  }
10722
- function Wd(e, t) {
10722
+ function Gd(e, t) {
10723
10723
  return hi(e, t.inConstruct, !0) && !hi(e, t.notInConstruct, !1);
10724
10724
  }
10725
10725
  function hi(e, t, n) {
@@ -10735,12 +10735,12 @@ function gi(e, t, n, r) {
10735
10735
  let i = -1;
10736
10736
  for (; ++i < n.unsafe.length; )
10737
10737
  if (n.unsafe[i].character === `
10738
- ` && Wd(n.stack, n.unsafe[i]))
10738
+ ` && Gd(n.stack, n.unsafe[i]))
10739
10739
  return /[ \t]/.test(r.before) ? "" : " ";
10740
10740
  return `\\
10741
10741
  `;
10742
10742
  }
10743
- function Zd(e, t) {
10743
+ function Wd(e, t) {
10744
10744
  const n = String(e);
10745
10745
  let r = n.indexOf(t), i = r, a = 0, o = 0;
10746
10746
  if (typeof t != "string")
@@ -10749,13 +10749,13 @@ function Zd(e, t) {
10749
10749
  r === i ? ++a > o && (o = a) : a = 1, i = r + t.length, r = n.indexOf(t, i);
10750
10750
  return o;
10751
10751
  }
10752
- function Kd(e, t) {
10752
+ function Zd(e, t) {
10753
10753
  return !!(t.options.fences === !1 && e.value && // If there’s no info…
10754
10754
  !e.lang && // And there’s a non-whitespace character…
10755
10755
  /[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
10756
10756
  !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
10757
10757
  }
10758
- function Yd(e) {
10758
+ function Kd(e) {
10759
10759
  const t = e.options.fence || "`";
10760
10760
  if (t !== "`" && t !== "~")
10761
10761
  throw new Error(
@@ -10763,13 +10763,13 @@ function Yd(e) {
10763
10763
  );
10764
10764
  return t;
10765
10765
  }
10766
- function Xd(e, t, n, r) {
10767
- const i = Yd(n), a = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
10768
- if (Kd(e, n)) {
10769
- const c = n.enter("codeIndented"), h = n.indentLines(a, Qd);
10766
+ function Yd(e, t, n, r) {
10767
+ const i = Kd(n), a = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
10768
+ if (Zd(e, n)) {
10769
+ const c = n.enter("codeIndented"), h = n.indentLines(a, Xd);
10770
10770
  return c(), h;
10771
10771
  }
10772
- const l = n.createTracker(r), s = i.repeat(Math.max(Zd(a, i) + 1, 3)), u = n.enter("codeFenced");
10772
+ const l = n.createTracker(r), s = i.repeat(Math.max(Wd(a, i) + 1, 3)), u = n.enter("codeFenced");
10773
10773
  let p = l.move(s);
10774
10774
  if (e.lang) {
10775
10775
  const c = n.enter(`codeFencedLang${o}`);
@@ -10798,7 +10798,7 @@ function Xd(e, t, n, r) {
10798
10798
  `), a && (p += l.move(a + `
10799
10799
  `)), p += l.move(s), u(), p;
10800
10800
  }
10801
- function Qd(e, t, n) {
10801
+ function Xd(e, t, n) {
10802
10802
  return (n ? "" : " ") + e;
10803
10803
  }
10804
10804
  function or(e) {
@@ -10809,7 +10809,7 @@ function or(e) {
10809
10809
  );
10810
10810
  return t;
10811
10811
  }
10812
- function Jd(e, t, n, r) {
10812
+ function Qd(e, t, n, r) {
10813
10813
  const i = or(n), a = i === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
10814
10814
  let l = n.enter("label");
10815
10815
  const s = n.createTracker(r);
@@ -10839,7 +10839,7 @@ function Jd(e, t, n, r) {
10839
10839
  })
10840
10840
  ), u += s.move(i), l()), o(), u;
10841
10841
  }
10842
- function eh(e) {
10842
+ function Jd(e) {
10843
10843
  const t = e.options.emphasis || "*";
10844
10844
  if (t !== "*" && t !== "_")
10845
10845
  throw new Error(
@@ -10847,9 +10847,9 @@ function eh(e) {
10847
10847
  );
10848
10848
  return t;
10849
10849
  }
10850
- Ho.peek = th;
10850
+ Ho.peek = eh;
10851
10851
  function Ho(e, t, n, r) {
10852
- const i = eh(n), a = n.enter("emphasis"), o = n.createTracker(r);
10852
+ const i = Jd(n), a = n.enter("emphasis"), o = n.createTracker(r);
10853
10853
  let l = o.move(i);
10854
10854
  return l += o.move(
10855
10855
  n.containerPhrasing(e, {
@@ -10859,19 +10859,19 @@ function Ho(e, t, n, r) {
10859
10859
  })
10860
10860
  ), l += o.move(i), a(), l;
10861
10861
  }
10862
- function th(e, t, n) {
10862
+ function eh(e, t, n) {
10863
10863
  return n.options.emphasis || "*";
10864
10864
  }
10865
- function nh(e, t) {
10865
+ function th(e, t) {
10866
10866
  let n = !1;
10867
10867
  return tn(e, function(r) {
10868
10868
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
10869
10869
  return n = !0, Rn;
10870
10870
  }), !!((!e.depth || e.depth < 3) && Xn(e) && (t.options.setext || n));
10871
10871
  }
10872
- function rh(e, t, n, r) {
10872
+ function nh(e, t, n, r) {
10873
10873
  const i = Math.max(Math.min(6, e.depth || 1), 1), a = n.createTracker(r);
10874
- if (nh(e, n)) {
10874
+ if (th(e, n)) {
10875
10875
  const p = n.enter("headingSetext"), c = n.enter("phrasing"), h = n.containerPhrasing(e, {
10876
10876
  ...a.current(),
10877
10877
  before: `
@@ -10898,14 +10898,14 @@ function rh(e, t, n, r) {
10898
10898
  });
10899
10899
  return /^[\t ]/.test(u) && (u = "&#x" + u.charCodeAt(0).toString(16).toUpperCase() + ";" + u.slice(1)), u = u ? o + " " + u : o, n.options.closeAtx && (u += " " + o), s(), l(), u;
10900
10900
  }
10901
- qo.peek = ih;
10901
+ qo.peek = rh;
10902
10902
  function qo(e) {
10903
10903
  return e.value || "";
10904
10904
  }
10905
- function ih() {
10905
+ function rh() {
10906
10906
  return "<";
10907
10907
  }
10908
- Go.peek = oh;
10908
+ Go.peek = ih;
10909
10909
  function Go(e, t, n, r) {
10910
10910
  const i = or(n), a = i === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
10911
10911
  let l = n.enter("label");
@@ -10931,10 +10931,10 @@ function Go(e, t, n, r) {
10931
10931
  })
10932
10932
  ), u += s.move(i), l()), u += s.move(")"), o(), u;
10933
10933
  }
10934
- function oh() {
10934
+ function ih() {
10935
10935
  return "!";
10936
10936
  }
10937
- Wo.peek = ah;
10937
+ Wo.peek = oh;
10938
10938
  function Wo(e, t, n, r) {
10939
10939
  const i = e.referenceType, a = n.enter("imageReference");
10940
10940
  let o = n.enter("label");
@@ -10955,10 +10955,10 @@ function Wo(e, t, n, r) {
10955
10955
  });
10956
10956
  return o(), n.stack = p, a(), i === "full" || !u || u !== c ? s += l.move(c + "]") : i === "shortcut" ? s = s.slice(0, -1) : s += l.move("]"), s;
10957
10957
  }
10958
- function ah() {
10958
+ function oh() {
10959
10959
  return "!";
10960
10960
  }
10961
- Zo.peek = lh;
10961
+ Zo.peek = ah;
10962
10962
  function Zo(e, t, n) {
10963
10963
  let r = e.value || "", i = "`", a = -1;
10964
10964
  for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
@@ -10974,7 +10974,7 @@ function Zo(e, t, n) {
10974
10974
  }
10975
10975
  return i + r + i;
10976
10976
  }
10977
- function lh() {
10977
+ function ah() {
10978
10978
  return "`";
10979
10979
  }
10980
10980
  function Ko(e, t) {
@@ -10988,7 +10988,7 @@ function Ko(e, t) {
10988
10988
  // references don’t work), space, or angle brackets…
10989
10989
  !/[\0- <>\u007F]/.test(e.url));
10990
10990
  }
10991
- Yo.peek = sh;
10991
+ Yo.peek = lh;
10992
10992
  function Yo(e, t, n, r) {
10993
10993
  const i = or(n), a = i === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
10994
10994
  let l, s;
@@ -11030,10 +11030,10 @@ function Yo(e, t, n, r) {
11030
11030
  })
11031
11031
  ), u += o.move(i), s()), u += o.move(")"), l(), u;
11032
11032
  }
11033
- function sh(e, t, n) {
11033
+ function lh(e, t, n) {
11034
11034
  return Ko(e, n) ? "<" : "[";
11035
11035
  }
11036
- Xo.peek = uh;
11036
+ Xo.peek = sh;
11037
11037
  function Xo(e, t, n, r) {
11038
11038
  const i = e.referenceType, a = n.enter("linkReference");
11039
11039
  let o = n.enter("label");
@@ -11054,7 +11054,7 @@ function Xo(e, t, n, r) {
11054
11054
  });
11055
11055
  return o(), n.stack = p, a(), i === "full" || !u || u !== c ? s += l.move(c + "]") : i === "shortcut" ? s = s.slice(0, -1) : s += l.move("]"), s;
11056
11056
  }
11057
- function uh() {
11057
+ function sh() {
11058
11058
  return "[";
11059
11059
  }
11060
11060
  function ar(e) {
@@ -11065,7 +11065,7 @@ function ar(e) {
11065
11065
  );
11066
11066
  return t;
11067
11067
  }
11068
- function ch(e) {
11068
+ function uh(e) {
11069
11069
  const t = ar(e), n = e.options.bulletOther;
11070
11070
  if (!n)
11071
11071
  return t === "*" ? "-" : "*";
@@ -11079,7 +11079,7 @@ function ch(e) {
11079
11079
  );
11080
11080
  return n;
11081
11081
  }
11082
- function ph(e) {
11082
+ function ch(e) {
11083
11083
  const t = e.options.bulletOrdered || ".";
11084
11084
  if (t !== "." && t !== ")")
11085
11085
  throw new Error(
@@ -11095,10 +11095,10 @@ function Qo(e) {
11095
11095
  );
11096
11096
  return t;
11097
11097
  }
11098
- function fh(e, t, n, r) {
11098
+ function ph(e, t, n, r) {
11099
11099
  const i = n.enter("list"), a = n.bulletCurrent;
11100
- let o = e.ordered ? ph(n) : ar(n);
11101
- const l = e.ordered ? o === "." ? ")" : "." : ch(n);
11100
+ let o = e.ordered ? ch(n) : ar(n);
11101
+ const l = e.ordered ? o === "." ? ")" : "." : uh(n);
11102
11102
  let s = t && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
11103
11103
  if (!e.ordered) {
11104
11104
  const p = e.children ? e.children[0] : void 0;
@@ -11123,7 +11123,7 @@ function fh(e, t, n, r) {
11123
11123
  const u = n.containerFlow(e, r);
11124
11124
  return n.bulletLastUsed = o, n.bulletCurrent = a, i(), u;
11125
11125
  }
11126
- function dh(e) {
11126
+ function fh(e) {
11127
11127
  const t = e.options.listItemIndent || "one";
11128
11128
  if (t !== "tab" && t !== "one" && t !== "mixed")
11129
11129
  throw new Error(
@@ -11131,8 +11131,8 @@ function dh(e) {
11131
11131
  );
11132
11132
  return t;
11133
11133
  }
11134
- function hh(e, t, n, r) {
11135
- const i = dh(n);
11134
+ function dh(e, t, n, r) {
11135
+ const i = fh(n);
11136
11136
  let a = n.bulletCurrent || ar(n);
11137
11137
  t && t.type === "list" && t.ordered && (a = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + a);
11138
11138
  let o = a.length + 1;
@@ -11148,11 +11148,11 @@ function hh(e, t, n, r) {
11148
11148
  return h ? (d ? "" : " ".repeat(o)) + c : (d ? a : a + " ".repeat(o - a.length)) + c;
11149
11149
  }
11150
11150
  }
11151
- function gh(e, t, n, r) {
11151
+ function hh(e, t, n, r) {
11152
11152
  const i = n.enter("paragraph"), a = n.enter("phrasing"), o = n.containerPhrasing(e, r);
11153
11153
  return a(), i(), o;
11154
11154
  }
11155
- const mh = (
11155
+ const gh = (
11156
11156
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
11157
11157
  Jt([
11158
11158
  "break",
@@ -11178,12 +11178,12 @@ const mh = (
11178
11178
  "textDirective"
11179
11179
  ])
11180
11180
  );
11181
- function yh(e, t, n, r) {
11181
+ function mh(e, t, n, r) {
11182
11182
  return (e.children.some(function(o) {
11183
- return mh(o);
11183
+ return gh(o);
11184
11184
  }) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
11185
11185
  }
11186
- function bh(e) {
11186
+ function yh(e) {
11187
11187
  const t = e.options.strong || "*";
11188
11188
  if (t !== "*" && t !== "_")
11189
11189
  throw new Error(
@@ -11191,9 +11191,9 @@ function bh(e) {
11191
11191
  );
11192
11192
  return t;
11193
11193
  }
11194
- Jo.peek = xh;
11194
+ Jo.peek = bh;
11195
11195
  function Jo(e, t, n, r) {
11196
- const i = bh(n), a = n.enter("strong"), o = n.createTracker(r);
11196
+ const i = yh(n), a = n.enter("strong"), o = n.createTracker(r);
11197
11197
  let l = o.move(i + i);
11198
11198
  return l += o.move(
11199
11199
  n.containerPhrasing(e, {
@@ -11203,13 +11203,13 @@ function Jo(e, t, n, r) {
11203
11203
  })
11204
11204
  ), l += o.move(i + i), a(), l;
11205
11205
  }
11206
- function xh(e, t, n) {
11206
+ function bh(e, t, n) {
11207
11207
  return n.options.strong || "*";
11208
11208
  }
11209
- function kh(e, t, n, r) {
11209
+ function xh(e, t, n, r) {
11210
11210
  return n.safe(e.value, r);
11211
11211
  }
11212
- function wh(e) {
11212
+ function kh(e) {
11213
11213
  const t = e.options.ruleRepetition || 3;
11214
11214
  if (t < 3)
11215
11215
  throw new Error(
@@ -11217,50 +11217,50 @@ function wh(e) {
11217
11217
  );
11218
11218
  return t;
11219
11219
  }
11220
- function vh(e, t, n) {
11221
- const r = (Qo(n) + (n.options.ruleSpaces ? " " : "")).repeat(wh(n));
11220
+ function wh(e, t, n) {
11221
+ const r = (Qo(n) + (n.options.ruleSpaces ? " " : "")).repeat(kh(n));
11222
11222
  return n.options.ruleSpaces ? r.slice(0, -1) : r;
11223
11223
  }
11224
11224
  const ea = {
11225
- blockquote: qd,
11225
+ blockquote: Hd,
11226
11226
  break: gi,
11227
- code: Xd,
11228
- definition: Jd,
11227
+ code: Yd,
11228
+ definition: Qd,
11229
11229
  emphasis: Ho,
11230
11230
  hardBreak: gi,
11231
- heading: rh,
11231
+ heading: nh,
11232
11232
  html: qo,
11233
11233
  image: Go,
11234
11234
  imageReference: Wo,
11235
11235
  inlineCode: Zo,
11236
11236
  link: Yo,
11237
11237
  linkReference: Xo,
11238
- list: fh,
11239
- listItem: hh,
11240
- paragraph: gh,
11241
- root: yh,
11238
+ list: ph,
11239
+ listItem: dh,
11240
+ paragraph: hh,
11241
+ root: mh,
11242
11242
  strong: Jo,
11243
- text: kh,
11244
- thematicBreak: vh
11243
+ text: xh,
11244
+ thematicBreak: wh
11245
11245
  };
11246
- function Sh() {
11246
+ function vh() {
11247
11247
  return {
11248
11248
  enter: {
11249
- table: Eh,
11249
+ table: Sh,
11250
11250
  tableData: mi,
11251
11251
  tableHeader: mi,
11252
- tableRow: Ah
11252
+ tableRow: Ch
11253
11253
  },
11254
11254
  exit: {
11255
- codeText: Th,
11256
- table: Ch,
11255
+ codeText: Ah,
11256
+ table: Eh,
11257
11257
  tableData: wn,
11258
11258
  tableHeader: wn,
11259
11259
  tableRow: wn
11260
11260
  }
11261
11261
  };
11262
11262
  }
11263
- function Eh(e) {
11263
+ function Sh(e) {
11264
11264
  const t = e._align;
11265
11265
  this.enter(
11266
11266
  {
@@ -11273,10 +11273,10 @@ function Eh(e) {
11273
11273
  e
11274
11274
  ), this.data.inTable = !0;
11275
11275
  }
11276
- function Ch(e) {
11276
+ function Eh(e) {
11277
11277
  this.exit(e), this.data.inTable = void 0;
11278
11278
  }
11279
- function Ah(e) {
11279
+ function Ch(e) {
11280
11280
  this.enter({ type: "tableRow", children: [] }, e);
11281
11281
  }
11282
11282
  function wn(e) {
@@ -11285,16 +11285,16 @@ function wn(e) {
11285
11285
  function mi(e) {
11286
11286
  this.enter({ type: "tableCell", children: [] }, e);
11287
11287
  }
11288
- function Th(e) {
11288
+ function Ah(e) {
11289
11289
  let t = this.resume();
11290
- this.data.inTable && (t = t.replace(/\\([\\|])/g, Ih));
11290
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, Th));
11291
11291
  const n = this.stack[this.stack.length - 1];
11292
11292
  n.type, n.value = t, this.exit(e);
11293
11293
  }
11294
- function Ih(e, t) {
11294
+ function Th(e, t) {
11295
11295
  return t === "|" ? t : e;
11296
11296
  }
11297
- function _h(e) {
11297
+ function Ih(e) {
11298
11298
  const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, a = n ? " " : "|";
11299
11299
  return {
11300
11300
  unsafe: [
@@ -11340,7 +11340,7 @@ function _h(e) {
11340
11340
  return y(), x(), w;
11341
11341
  }
11342
11342
  function u(d, f) {
11343
- return Ud(d, {
11343
+ return $d(d, {
11344
11344
  align: f,
11345
11345
  // @ts-expect-error: `markdown-table` types should support `null`.
11346
11346
  alignDelimiters: r,
@@ -11371,26 +11371,26 @@ function _h(e) {
11371
11371
  return g.stack.includes("tableCell") && (m = m.replace(/\|/g, "\\$&")), m;
11372
11372
  }
11373
11373
  }
11374
- function Rh() {
11374
+ function _h() {
11375
11375
  return {
11376
11376
  exit: {
11377
11377
  taskListCheckValueChecked: yi,
11378
11378
  taskListCheckValueUnchecked: yi,
11379
- paragraph: Lh
11379
+ paragraph: Fh
11380
11380
  }
11381
11381
  };
11382
11382
  }
11383
- function Fh() {
11383
+ function Rh() {
11384
11384
  return {
11385
11385
  unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
11386
- handlers: { listItem: Ph }
11386
+ handlers: { listItem: Lh }
11387
11387
  };
11388
11388
  }
11389
11389
  function yi(e) {
11390
11390
  const t = this.stack[this.stack.length - 2];
11391
11391
  t.type, t.checked = e.type === "taskListCheckValueChecked";
11392
11392
  }
11393
- function Lh(e) {
11393
+ function Fh(e) {
11394
11394
  const t = this.stack[this.stack.length - 2];
11395
11395
  if (t && t.type === "listItem" && typeof t.checked == "boolean") {
11396
11396
  const n = this.stack[this.stack.length - 1];
@@ -11411,7 +11411,7 @@ function Lh(e) {
11411
11411
  }
11412
11412
  this.exit(e);
11413
11413
  }
11414
- function Ph(e, t, n, r) {
11414
+ function Lh(e, t, n, r) {
11415
11415
  const i = e.children[0], a = typeof e.checked == "boolean" && i && i.type === "paragraph", o = "[" + (e.checked ? "x" : " ") + "] ", l = n.createTracker(r);
11416
11416
  a && l.move(o);
11417
11417
  let s = ea.listItem(e, t, n, {
@@ -11423,52 +11423,52 @@ function Ph(e, t, n, r) {
11423
11423
  return p + o;
11424
11424
  }
11425
11425
  }
11426
- function Oh() {
11426
+ function Ph() {
11427
11427
  return [
11428
- pd(),
11429
- Sd(),
11430
- Nd(),
11431
- Sh(),
11432
- Rh()
11428
+ cd(),
11429
+ vd(),
11430
+ zd(),
11431
+ vh(),
11432
+ _h()
11433
11433
  ];
11434
11434
  }
11435
- function Dh(e) {
11435
+ function Oh(e) {
11436
11436
  return {
11437
11437
  extensions: [
11438
- fd(),
11439
- Ed(),
11440
- Md(),
11441
- _h(e),
11442
- Fh()
11438
+ pd(),
11439
+ Sd(),
11440
+ Nd(),
11441
+ Ih(e),
11442
+ Rh()
11443
11443
  ]
11444
11444
  };
11445
11445
  }
11446
- const zh = {
11447
- tokenize: Uh,
11446
+ const Dh = {
11447
+ tokenize: $h,
11448
11448
  partial: !0
11449
11449
  }, ta = {
11450
- tokenize: Vh,
11450
+ tokenize: Uh,
11451
11451
  partial: !0
11452
11452
  }, na = {
11453
- tokenize: Hh,
11453
+ tokenize: Vh,
11454
11454
  partial: !0
11455
11455
  }, ra = {
11456
- tokenize: qh,
11456
+ tokenize: Hh,
11457
11457
  partial: !0
11458
- }, Nh = {
11459
- tokenize: Gh,
11458
+ }, zh = {
11459
+ tokenize: qh,
11460
11460
  partial: !0
11461
11461
  }, ia = {
11462
- tokenize: jh,
11462
+ tokenize: Bh,
11463
11463
  previous: aa
11464
11464
  }, oa = {
11465
- tokenize: $h,
11465
+ tokenize: jh,
11466
11466
  previous: la
11467
11467
  }, Re = {
11468
- tokenize: Bh,
11468
+ tokenize: Mh,
11469
11469
  previous: sa
11470
11470
  }, Ae = {};
11471
- function Mh() {
11471
+ function Nh() {
11472
11472
  return {
11473
11473
  text: Ae
11474
11474
  };
@@ -11484,7 +11484,7 @@ Ae[72] = [Re, oa];
11484
11484
  Ae[104] = [Re, oa];
11485
11485
  Ae[87] = [Re, ia];
11486
11486
  Ae[119] = [Re, ia];
11487
- function Bh(e, t, n) {
11487
+ function Mh(e, t, n) {
11488
11488
  const r = this;
11489
11489
  let i, a;
11490
11490
  return o;
@@ -11496,7 +11496,7 @@ function Bh(e, t, n) {
11496
11496
  }
11497
11497
  function s(c) {
11498
11498
  return c === 46 ? e.check(
11499
- Nh,
11499
+ zh,
11500
11500
  p,
11501
11501
  u
11502
11502
  )(c) : c === 45 || c === 95 || ae(c) ? (a = !0, e.consume(c), s) : p(c);
@@ -11508,12 +11508,12 @@ function Bh(e, t, n) {
11508
11508
  return a && i && ue(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
11509
11509
  }
11510
11510
  }
11511
- function jh(e, t, n) {
11511
+ function Bh(e, t, n) {
11512
11512
  const r = this;
11513
11513
  return i;
11514
11514
  function i(o) {
11515
11515
  return o !== 87 && o !== 119 || !aa.call(r, r.previous) || lr(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
11516
- zh,
11516
+ Dh,
11517
11517
  e.attempt(ta, e.attempt(na, a), n),
11518
11518
  n
11519
11519
  )(o));
@@ -11522,7 +11522,7 @@ function jh(e, t, n) {
11522
11522
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(o);
11523
11523
  }
11524
11524
  }
11525
- function $h(e, t, n) {
11525
+ function jh(e, t, n) {
11526
11526
  const r = this;
11527
11527
  let i = "", a = !1;
11528
11528
  return o;
@@ -11549,7 +11549,7 @@ function $h(e, t, n) {
11549
11549
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
11550
11550
  }
11551
11551
  }
11552
- function Uh(e, t, n) {
11552
+ function $h(e, t, n) {
11553
11553
  let r = 0;
11554
11554
  return i;
11555
11555
  function i(o) {
@@ -11559,7 +11559,7 @@ function Uh(e, t, n) {
11559
11559
  return o === null ? n(o) : t(o);
11560
11560
  }
11561
11561
  }
11562
- function Vh(e, t, n) {
11562
+ function Uh(e, t, n) {
11563
11563
  let r, i, a;
11564
11564
  return o;
11565
11565
  function o(u) {
@@ -11572,7 +11572,7 @@ function Vh(e, t, n) {
11572
11572
  return i || r || !a ? n(u) : t(u);
11573
11573
  }
11574
11574
  }
11575
- function Hh(e, t) {
11575
+ function Vh(e, t) {
11576
11576
  let n = 0, r = 0;
11577
11577
  return i;
11578
11578
  function i(o) {
@@ -11582,7 +11582,7 @@ function Hh(e, t) {
11582
11582
  return o === 41 && r++, e.consume(o), i;
11583
11583
  }
11584
11584
  }
11585
- function qh(e, t, n) {
11585
+ function Hh(e, t, n) {
11586
11586
  return r;
11587
11587
  function r(l) {
11588
11588
  return l === 33 || l === 34 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 63 || l === 95 || l === 126 ? (e.consume(l), r) : l === 38 ? (e.consume(l), a) : l === 93 ? (e.consume(l), i) : (
@@ -11601,7 +11601,7 @@ function qh(e, t, n) {
11601
11601
  return l === 59 ? (e.consume(l), r) : ue(l) ? (e.consume(l), o) : n(l);
11602
11602
  }
11603
11603
  }
11604
- function Gh(e, t, n) {
11604
+ function qh(e, t, n) {
11605
11605
  return r;
11606
11606
  function r(a) {
11607
11607
  return e.consume(a), i;
@@ -11637,34 +11637,34 @@ function lr(e) {
11637
11637
  }
11638
11638
  return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
11639
11639
  }
11640
- const Wh = {
11641
- tokenize: tg,
11640
+ const Gh = {
11641
+ tokenize: eg,
11642
11642
  partial: !0
11643
11643
  };
11644
- function Zh() {
11644
+ function Wh() {
11645
11645
  return {
11646
11646
  document: {
11647
11647
  91: {
11648
- tokenize: Qh,
11648
+ tokenize: Xh,
11649
11649
  continuation: {
11650
- tokenize: Jh
11650
+ tokenize: Qh
11651
11651
  },
11652
- exit: eg
11652
+ exit: Jh
11653
11653
  }
11654
11654
  },
11655
11655
  text: {
11656
11656
  91: {
11657
- tokenize: Xh
11657
+ tokenize: Yh
11658
11658
  },
11659
11659
  93: {
11660
11660
  add: "after",
11661
- tokenize: Kh,
11662
- resolveTo: Yh
11661
+ tokenize: Zh,
11662
+ resolveTo: Kh
11663
11663
  }
11664
11664
  }
11665
11665
  };
11666
11666
  }
11667
- function Kh(e, t, n) {
11667
+ function Zh(e, t, n) {
11668
11668
  const r = this;
11669
11669
  let i = r.events.length;
11670
11670
  const a = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
@@ -11691,7 +11691,7 @@ function Kh(e, t, n) {
11691
11691
  return u.codePointAt(0) !== 94 || !a.includes(u.slice(1)) ? n(s) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(s), e.exit("gfmFootnoteCallLabelMarker"), t(s));
11692
11692
  }
11693
11693
  }
11694
- function Yh(e, t) {
11694
+ function Kh(e, t) {
11695
11695
  let n = e.length;
11696
11696
  for (; n--; )
11697
11697
  if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
@@ -11741,7 +11741,7 @@ function Yh(e, t) {
11741
11741
  ];
11742
11742
  return e.splice(n, e.length - n + 1, ...l), e;
11743
11743
  }
11744
- function Xh(e, t, n) {
11744
+ function Yh(e, t, n) {
11745
11745
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
11746
11746
  let a = 0, o;
11747
11747
  return l;
@@ -11771,7 +11771,7 @@ function Xh(e, t, n) {
11771
11771
  return c === 91 || c === 92 || c === 93 ? (e.consume(c), a++, u) : u(c);
11772
11772
  }
11773
11773
  }
11774
- function Qh(e, t, n) {
11774
+ function Xh(e, t, n) {
11775
11775
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
11776
11776
  let a, o = 0, l;
11777
11777
  return s;
@@ -11811,13 +11811,13 @@ function Qh(e, t, n) {
11811
11811
  return t(f);
11812
11812
  }
11813
11813
  }
11814
- function Jh(e, t, n) {
11815
- return e.check(wt, t, e.attempt(Wh, t, n));
11814
+ function Qh(e, t, n) {
11815
+ return e.check(wt, t, e.attempt(Gh, t, n));
11816
11816
  }
11817
- function eg(e) {
11817
+ function Jh(e) {
11818
11818
  e.exit("gfmFootnoteDefinition");
11819
11819
  }
11820
- function tg(e, t, n) {
11820
+ function eg(e, t, n) {
11821
11821
  const r = this;
11822
11822
  return G(
11823
11823
  e,
@@ -11830,7 +11830,7 @@ function tg(e, t, n) {
11830
11830
  return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? t(a) : n(a);
11831
11831
  }
11832
11832
  }
11833
- function ng(e) {
11833
+ function tg(e) {
11834
11834
  let n = (e || {}).singleTilde;
11835
11835
  const r = {
11836
11836
  tokenize: a,
@@ -11905,7 +11905,7 @@ function ng(e) {
11905
11905
  }
11906
11906
  }
11907
11907
  }
11908
- class rg {
11908
+ class ng {
11909
11909
  /**
11910
11910
  * Create a new edit map.
11911
11911
  */
@@ -11921,7 +11921,7 @@ class rg {
11921
11921
  * @returns {undefined}
11922
11922
  */
11923
11923
  add(t, n, r) {
11924
- ig(this, t, n, r);
11924
+ rg(this, t, n, r);
11925
11925
  }
11926
11926
  // To do: add this when moving to `micromark`.
11927
11927
  // /**
@@ -11960,7 +11960,7 @@ class rg {
11960
11960
  this.map.length = 0;
11961
11961
  }
11962
11962
  }
11963
- function ig(e, t, n, r) {
11963
+ function rg(e, t, n, r) {
11964
11964
  let i = 0;
11965
11965
  if (!(n === 0 && r.length === 0)) {
11966
11966
  for (; i < e.map.length; ) {
@@ -11973,7 +11973,7 @@ function ig(e, t, n, r) {
11973
11973
  e.map.push([t, n, r]);
11974
11974
  }
11975
11975
  }
11976
- function og(e, t) {
11976
+ function ig(e, t) {
11977
11977
  let n = !1;
11978
11978
  const r = [];
11979
11979
  for (; t < e.length; ) {
@@ -11995,17 +11995,17 @@ function og(e, t) {
11995
11995
  }
11996
11996
  return r;
11997
11997
  }
11998
- function ag() {
11998
+ function og() {
11999
11999
  return {
12000
12000
  flow: {
12001
12001
  null: {
12002
- tokenize: lg,
12003
- resolveAll: sg
12002
+ tokenize: ag,
12003
+ resolveAll: lg
12004
12004
  }
12005
12005
  }
12006
12006
  };
12007
12007
  }
12008
- function lg(e, t, n) {
12008
+ function ag(e, t, n) {
12009
12009
  const r = this;
12010
12010
  let i = 0, a = 0, o;
12011
12011
  return l;
@@ -12081,9 +12081,9 @@ function lg(e, t, n) {
12081
12081
  return v === 92 || v === 124 ? (e.consume(v), P) : P(v);
12082
12082
  }
12083
12083
  }
12084
- function sg(e, t) {
12084
+ function lg(e, t) {
12085
12085
  let n = -1, r = !0, i = 0, a = [0, 0, 0, 0], o = [0, 0, 0, 0], l = !1, s = 0, u, p, c;
12086
- const h = new rg();
12086
+ const h = new ng();
12087
12087
  for (; ++n < e.length; ) {
12088
12088
  const d = e[n], f = d[1];
12089
12089
  d[0] === "enter" ? f.type === "tableHead" ? (l = !1, s !== 0 && (bi(h, t, s, u, p), p = void 0, s = 0), u = {
@@ -12121,7 +12121,7 @@ function sg(e, t) {
12121
12121
  }
12122
12122
  for (s !== 0 && bi(h, t, s, u, p), h.consume(t.events), n = -1; ++n < t.events.length; ) {
12123
12123
  const d = t.events[n];
12124
- d[0] === "enter" && d[1].type === "table" && (d[1]._align = og(t.events, n));
12124
+ d[0] === "enter" && d[1].type === "table" && (d[1]._align = ig(t.events, n));
12125
12125
  }
12126
12126
  return e;
12127
12127
  }
@@ -12159,17 +12159,17 @@ function Ze(e, t) {
12159
12159
  const n = e[t], r = n[0] === "enter" ? "start" : "end";
12160
12160
  return n[1][r];
12161
12161
  }
12162
- const ug = {
12163
- tokenize: pg
12162
+ const sg = {
12163
+ tokenize: cg
12164
12164
  };
12165
- function cg() {
12165
+ function ug() {
12166
12166
  return {
12167
12167
  text: {
12168
- 91: ug
12168
+ 91: sg
12169
12169
  }
12170
12170
  };
12171
12171
  }
12172
- function pg(e, t, n) {
12172
+ function cg(e, t, n) {
12173
12173
  const r = this;
12174
12174
  return i;
12175
12175
  function i(s) {
@@ -12189,37 +12189,37 @@ function pg(e, t, n) {
12189
12189
  function l(s) {
12190
12190
  return N(s) ? t(s) : V(s) ? e.check(
12191
12191
  {
12192
- tokenize: fg
12192
+ tokenize: pg
12193
12193
  },
12194
12194
  t,
12195
12195
  n
12196
12196
  )(s) : n(s);
12197
12197
  }
12198
12198
  }
12199
- function fg(e, t, n) {
12199
+ function pg(e, t, n) {
12200
12200
  return G(e, r, "whitespace");
12201
12201
  function r(i) {
12202
12202
  return i === null ? n(i) : t(i);
12203
12203
  }
12204
12204
  }
12205
- function dg(e) {
12205
+ function fg(e) {
12206
12206
  return xo([
12207
- Mh(),
12208
- Zh(),
12209
- ng(e),
12210
- ag(),
12211
- cg()
12207
+ Nh(),
12208
+ Wh(),
12209
+ tg(e),
12210
+ og(),
12211
+ ug()
12212
12212
  ]);
12213
12213
  }
12214
- const hg = {};
12215
- function gg(e) {
12214
+ const dg = {};
12215
+ function hg(e) {
12216
12216
  const t = (
12217
12217
  /** @type {Processor} */
12218
12218
  this
12219
- ), n = e || hg, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), a = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
12220
- i.push(dg(n)), a.push(Oh()), o.push(Dh(n));
12219
+ ), n = e || dg, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), a = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
12220
+ i.push(fg(n)), a.push(Ph()), o.push(Oh(n));
12221
12221
  }
12222
- const mg = ({
12222
+ const gg = ({
12223
12223
  className: e,
12224
12224
  children: t
12225
12225
  }) => /* @__PURE__ */ $.jsx(
@@ -12232,14 +12232,14 @@ const mg = ({
12232
12232
  children: t
12233
12233
  }
12234
12234
  );
12235
- var yg = Object.create, nn = Object.defineProperty, bg = Object.defineProperties, xg = Object.getOwnPropertyDescriptor, kg = Object.getOwnPropertyDescriptors, ua = Object.getOwnPropertyNames, Ut = Object.getOwnPropertySymbols, wg = Object.getPrototypeOf, sr = Object.prototype.hasOwnProperty, ca = Object.prototype.propertyIsEnumerable, xi = (e, t, n) => t in e ? nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ce = (e, t) => {
12235
+ var mg = Object.create, nn = Object.defineProperty, yg = Object.defineProperties, bg = Object.getOwnPropertyDescriptor, xg = Object.getOwnPropertyDescriptors, ua = Object.getOwnPropertyNames, Ut = Object.getOwnPropertySymbols, kg = Object.getPrototypeOf, sr = Object.prototype.hasOwnProperty, ca = Object.prototype.propertyIsEnumerable, xi = (e, t, n) => t in e ? nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ce = (e, t) => {
12236
12236
  for (var n in t || (t = {}))
12237
12237
  sr.call(t, n) && xi(e, n, t[n]);
12238
12238
  if (Ut)
12239
12239
  for (var n of Ut(t))
12240
12240
  ca.call(t, n) && xi(e, n, t[n]);
12241
12241
  return e;
12242
- }, rn = (e, t) => bg(e, kg(t)), pa = (e, t) => {
12242
+ }, rn = (e, t) => yg(e, xg(t)), pa = (e, t) => {
12243
12243
  var n = {};
12244
12244
  for (var r in e)
12245
12245
  sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -12247,24 +12247,24 @@ var yg = Object.create, nn = Object.defineProperty, bg = Object.defineProperties
12247
12247
  for (var r of Ut(e))
12248
12248
  t.indexOf(r) < 0 && ca.call(e, r) && (n[r] = e[r]);
12249
12249
  return n;
12250
- }, vg = (e, t) => function() {
12250
+ }, wg = (e, t) => function() {
12251
12251
  return t || (0, e[ua(e)[0]])((t = { exports: {} }).exports, t), t.exports;
12252
- }, Sg = (e, t) => {
12252
+ }, vg = (e, t) => {
12253
12253
  for (var n in t)
12254
12254
  nn(e, n, { get: t[n], enumerable: !0 });
12255
- }, Eg = (e, t, n, r) => {
12255
+ }, Sg = (e, t, n, r) => {
12256
12256
  if (t && typeof t == "object" || typeof t == "function")
12257
12257
  for (let i of ua(t))
12258
- !sr.call(e, i) && i !== n && nn(e, i, { get: () => t[i], enumerable: !(r = xg(t, i)) || r.enumerable });
12258
+ !sr.call(e, i) && i !== n && nn(e, i, { get: () => t[i], enumerable: !(r = bg(t, i)) || r.enumerable });
12259
12259
  return e;
12260
- }, Cg = (e, t, n) => (n = e != null ? yg(wg(e)) : {}, Eg(
12260
+ }, Eg = (e, t, n) => (n = e != null ? mg(kg(e)) : {}, Sg(
12261
12261
  // If the importer is in node compatibility mode or this is not an ESM
12262
12262
  // file that has been converted to a CommonJS file using a Babel-
12263
12263
  // compatible transform (i.e. "__esModule" has not been set), then set
12264
12264
  // "default" to the CommonJS "module.exports" for node compatibility.
12265
12265
  !e || !e.__esModule ? nn(n, "default", { value: e, enumerable: !0 }) : n,
12266
12266
  e
12267
- )), Ag = vg({
12267
+ )), Cg = wg({
12268
12268
  "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
12269
12269
  var n = function() {
12270
12270
  var r = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, i = 0, a = {}, o = {
@@ -12765,7 +12765,7 @@ var yg = Object.create, nn = Object.defineProperty, bg = Object.defineProperties
12765
12765
  }();
12766
12766
  t.exports = n, n.default = n;
12767
12767
  }
12768
- }), C = Cg(Ag());
12768
+ }), C = Eg(Cg());
12769
12769
  C.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, C.languages.markup.tag.inside["attr-value"].inside.entity = C.languages.markup.entity, C.languages.markup.doctype.inside["internal-subset"].inside = C.languages.markup, C.hooks.add("wrap", function(e) {
12770
12770
  e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
12771
12771
  }), Object.defineProperty(C.languages.markup.tag, "addInlined", { value: function(e, r) {
@@ -13037,27 +13037,27 @@ C.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
13037
13037
  }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
13038
13038
  }(C), C.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, C.languages.python["string-interpolation"].inside.interpolation.inside.rest = C.languages.python, C.languages.py = C.languages.python;
13039
13039
  var Dn = {};
13040
- Sg(Dn, {
13041
- dracula: () => Ig,
13042
- duotoneDark: () => Rg,
13043
- duotoneLight: () => Lg,
13044
- github: () => Og,
13045
- jettwaveDark: () => tm,
13046
- jettwaveLight: () => rm,
13047
- nightOwl: () => zg,
13048
- nightOwlLight: () => Mg,
13049
- oceanicNext: () => jg,
13050
- okaidia: () => Ug,
13051
- oneDark: () => om,
13052
- oneLight: () => lm,
13053
- palenight: () => Hg,
13054
- shadesOfPurple: () => Gg,
13055
- synthwave84: () => Zg,
13056
- ultramin: () => Yg,
13040
+ vg(Dn, {
13041
+ dracula: () => Tg,
13042
+ duotoneDark: () => _g,
13043
+ duotoneLight: () => Fg,
13044
+ github: () => Pg,
13045
+ jettwaveDark: () => em,
13046
+ jettwaveLight: () => nm,
13047
+ nightOwl: () => Dg,
13048
+ nightOwlLight: () => Ng,
13049
+ oceanicNext: () => Bg,
13050
+ okaidia: () => $g,
13051
+ oneDark: () => im,
13052
+ oneLight: () => am,
13053
+ palenight: () => Vg,
13054
+ shadesOfPurple: () => qg,
13055
+ synthwave84: () => Wg,
13056
+ ultramin: () => Kg,
13057
13057
  vsDark: () => fa,
13058
- vsLight: () => Jg
13058
+ vsLight: () => Qg
13059
13059
  });
13060
- var Tg = {
13060
+ var Ag = {
13061
13061
  plain: {
13062
13062
  color: "#F8F8F2",
13063
13063
  backgroundColor: "#282A36"
@@ -13119,7 +13119,7 @@ var Tg = {
13119
13119
  }
13120
13120
  }
13121
13121
  ]
13122
- }, Ig = Tg, _g = {
13122
+ }, Tg = Ag, Ig = {
13123
13123
  plain: {
13124
13124
  backgroundColor: "#2a2734",
13125
13125
  color: "#9a86fd"
@@ -13213,7 +13213,7 @@ var Tg = {
13213
13213
  }
13214
13214
  }
13215
13215
  ]
13216
- }, Rg = _g, Fg = {
13216
+ }, _g = Ig, Rg = {
13217
13217
  plain: {
13218
13218
  backgroundColor: "#faf8f5",
13219
13219
  color: "#728fcb"
@@ -13311,7 +13311,7 @@ var Tg = {
13311
13311
  }
13312
13312
  }
13313
13313
  ]
13314
- }, Lg = Fg, Pg = {
13314
+ }, Fg = Rg, Lg = {
13315
13315
  plain: {
13316
13316
  color: "#393A34",
13317
13317
  backgroundColor: "#f6f8fa"
@@ -13384,7 +13384,7 @@ var Tg = {
13384
13384
  }
13385
13385
  }
13386
13386
  ]
13387
- }, Og = Pg, Dg = {
13387
+ }, Pg = Lg, Og = {
13388
13388
  plain: {
13389
13389
  color: "#d6deeb",
13390
13390
  backgroundColor: "#011627"
@@ -13488,7 +13488,7 @@ var Tg = {
13488
13488
  }
13489
13489
  }
13490
13490
  ]
13491
- }, zg = Dg, Ng = {
13491
+ }, Dg = Og, zg = {
13492
13492
  plain: {
13493
13493
  color: "#403f53",
13494
13494
  backgroundColor: "#FBFBFB"
@@ -13580,7 +13580,7 @@ var Tg = {
13580
13580
  }
13581
13581
  }
13582
13582
  ]
13583
- }, Mg = Ng, de = {
13583
+ }, Ng = zg, de = {
13584
13584
  char: "#D8DEE9",
13585
13585
  comment: "#999999",
13586
13586
  keyword: "#c5a5c5",
@@ -13594,7 +13594,7 @@ var Tg = {
13594
13594
  className: "#FAC863",
13595
13595
  method: "#6699CC",
13596
13596
  operator: "#fc929e"
13597
- }, Bg = {
13597
+ }, Mg = {
13598
13598
  plain: {
13599
13599
  backgroundColor: "#282c34",
13600
13600
  color: "#ffffff"
@@ -13717,7 +13717,7 @@ var Tg = {
13717
13717
  }
13718
13718
  }
13719
13719
  ]
13720
- }, jg = Bg, $g = {
13720
+ }, Bg = Mg, jg = {
13721
13721
  plain: {
13722
13722
  color: "#f8f8f2",
13723
13723
  backgroundColor: "#272822"
@@ -13832,7 +13832,7 @@ var Tg = {
13832
13832
  }
13833
13833
  }
13834
13834
  ]
13835
- }, Ug = $g, Vg = {
13835
+ }, $g = jg, Ug = {
13836
13836
  plain: {
13837
13837
  color: "#bfc7d5",
13838
13838
  backgroundColor: "#292d3e"
@@ -13925,7 +13925,7 @@ var Tg = {
13925
13925
  }
13926
13926
  }
13927
13927
  ]
13928
- }, Hg = Vg, qg = {
13928
+ }, Vg = Ug, Hg = {
13929
13929
  plain: {
13930
13930
  color: "#9EFEFF",
13931
13931
  backgroundColor: "#2D2A55"
@@ -14013,7 +14013,7 @@ var Tg = {
14013
14013
  }
14014
14014
  }
14015
14015
  ]
14016
- }, Gg = qg, Wg = {
14016
+ }, qg = Hg, Gg = {
14017
14017
  plain: {
14018
14018
  backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
14019
14019
  backgroundImage: "#34294f",
@@ -14138,7 +14138,7 @@ var Tg = {
14138
14138
  }
14139
14139
  }
14140
14140
  ]
14141
- }, Zg = Wg, Kg = {
14141
+ }, Wg = Gg, Zg = {
14142
14142
  plain: {
14143
14143
  color: "#282a2e",
14144
14144
  backgroundColor: "#ffffff"
@@ -14163,7 +14163,7 @@ var Tg = {
14163
14163
  }
14164
14164
  }
14165
14165
  ]
14166
- }, Yg = Kg, Xg = {
14166
+ }, Kg = Zg, Yg = {
14167
14167
  plain: {
14168
14168
  color: "#9CDCFE",
14169
14169
  backgroundColor: "#1E1E1E"
@@ -14265,7 +14265,7 @@ var Tg = {
14265
14265
  }
14266
14266
  }
14267
14267
  ]
14268
- }, fa = Xg, Qg = {
14268
+ }, fa = Yg, Xg = {
14269
14269
  plain: {
14270
14270
  color: "#000000",
14271
14271
  backgroundColor: "#ffffff"
@@ -14338,7 +14338,7 @@ var Tg = {
14338
14338
  }
14339
14339
  }
14340
14340
  ]
14341
- }, Jg = Qg, em = {
14341
+ }, Qg = Xg, Jg = {
14342
14342
  plain: {
14343
14343
  color: "#f8fafc",
14344
14344
  backgroundColor: "#011627"
@@ -14437,7 +14437,7 @@ var Tg = {
14437
14437
  }
14438
14438
  }
14439
14439
  ]
14440
- }, tm = em, nm = {
14440
+ }, em = Jg, tm = {
14441
14441
  plain: {
14442
14442
  color: "#0f172a",
14443
14443
  backgroundColor: "#f1f5f9"
@@ -14536,7 +14536,7 @@ var Tg = {
14536
14536
  }
14537
14537
  }
14538
14538
  ]
14539
- }, rm = nm, im = {
14539
+ }, nm = tm, rm = {
14540
14540
  plain: {
14541
14541
  backgroundColor: "hsl(220, 13%, 18%)",
14542
14542
  color: "hsl(220, 14%, 71%)",
@@ -14634,7 +14634,7 @@ var Tg = {
14634
14634
  }
14635
14635
  }
14636
14636
  ]
14637
- }, om = im, am = {
14637
+ }, im = rm, om = {
14638
14638
  plain: {
14639
14639
  backgroundColor: "hsl(230, 1%, 98%)",
14640
14640
  color: "hsl(230, 8%, 24%)"
@@ -14735,7 +14735,7 @@ var Tg = {
14735
14735
  }
14736
14736
  }
14737
14737
  ]
14738
- }, lm = am, sm = (e, t) => {
14738
+ }, am = om, lm = (e, t) => {
14739
14739
  const { plain: n } = e, r = e.styles.reduce((i, a) => {
14740
14740
  const { languages: o, style: l } = a;
14741
14741
  return o && !o.includes(t) || a.types.forEach((s) => {
@@ -14744,14 +14744,14 @@ var Tg = {
14744
14744
  }), i;
14745
14745
  }, {});
14746
14746
  return r.root = n, r.plain = rn(Ce({}, n), { backgroundColor: void 0 }), r;
14747
- }, ki = sm, um = (e, t) => {
14747
+ }, ki = lm, sm = (e, t) => {
14748
14748
  const [n, r] = Ht(
14749
14749
  ki(t, e)
14750
14750
  ), i = Xe(), a = Xe();
14751
14751
  return dt(() => {
14752
14752
  (t !== i.current || e !== a.current) && (i.current = t, a.current = e, r(ki(t, e)));
14753
14753
  }, [e, t]), n;
14754
- }, cm = (e) => ht(
14754
+ }, um = (e) => ht(
14755
14755
  (t) => {
14756
14756
  var n = t, { className: r, style: i, line: a } = n, o = pa(n, ["className", "style", "line"]);
14757
14757
  const l = rn(Ce({}, o), {
@@ -14760,7 +14760,7 @@ var Tg = {
14760
14760
  return typeof e == "object" && "plain" in e && (l.style = e.plain), typeof i == "object" && (l.style = Ce(Ce({}, l.style || {}), i)), l;
14761
14761
  },
14762
14762
  [e]
14763
- ), pm = (e) => {
14763
+ ), cm = (e) => {
14764
14764
  const t = ht(
14765
14765
  ({ types: n, empty: r }) => {
14766
14766
  if (e != null) {
@@ -14790,7 +14790,7 @@ var Tg = {
14790
14790
  },
14791
14791
  [t]
14792
14792
  );
14793
- }, fm = /\r\n|\r|\n/, wi = (e) => {
14793
+ }, pm = /\r\n|\r|\n/, wi = (e) => {
14794
14794
  e.length === 0 ? e.push({
14795
14795
  types: ["plain"],
14796
14796
  content: `
@@ -14801,7 +14801,7 @@ var Tg = {
14801
14801
  }, vi = (e, t) => {
14802
14802
  const n = e.length;
14803
14803
  return n > 0 && e[n - 1] === t ? e : e.concat(t);
14804
- }, dm = (e) => {
14804
+ }, fm = (e) => {
14805
14805
  const t = [[]], n = [e], r = [0], i = [e.length];
14806
14806
  let a = 0, o = 0, l = [];
14807
14807
  const s = [l];
@@ -14813,7 +14813,7 @@ var Tg = {
14813
14813
  o++, t.push(p), n.push(u), r.push(0), i.push(u.length);
14814
14814
  continue;
14815
14815
  }
14816
- const d = u.split(fm), f = d.length;
14816
+ const d = u.split(pm), f = d.length;
14817
14817
  l.push({
14818
14818
  types: p,
14819
14819
  content: d[0]
@@ -14827,7 +14827,7 @@ var Tg = {
14827
14827
  o--, t.pop(), n.pop(), r.pop(), i.pop();
14828
14828
  }
14829
14829
  return wi(l), s;
14830
- }, Si = dm, hm = ({ prism: e, code: t, grammar: n, language: r }) => {
14830
+ }, Si = fm, dm = ({ prism: e, code: t, grammar: n, language: r }) => {
14831
14831
  const i = Xe(e);
14832
14832
  return vn(() => {
14833
14833
  if (n == null)
@@ -14840,14 +14840,14 @@ var Tg = {
14840
14840
  };
14841
14841
  return i.current.hooks.run("before-tokenize", a), a.tokens = i.current.tokenize(t, n), i.current.hooks.run("after-tokenize", a), Si(a.tokens);
14842
14842
  }, [t, n, r]);
14843
- }, gm = ({
14843
+ }, hm = ({
14844
14844
  children: e,
14845
14845
  language: t,
14846
14846
  code: n,
14847
14847
  theme: r,
14848
14848
  prism: i
14849
14849
  }) => {
14850
- const a = t.toLowerCase(), o = um(a, r), l = cm(o), s = pm(o), u = i.languages[a], p = hm({ prism: i, language: a, code: n, grammar: u });
14850
+ const a = t.toLowerCase(), o = sm(a, r), l = um(o), s = cm(o), u = i.languages[a], p = dm({ prism: i, language: a, code: n, grammar: u });
14851
14851
  return e({
14852
14852
  tokens: p,
14853
14853
  className: `prism-code language-${a}`,
@@ -14855,7 +14855,7 @@ var Tg = {
14855
14855
  getLineProps: l,
14856
14856
  getTokenProps: s
14857
14857
  });
14858
- }, mm = (e) => Ot(gm, rn(Ce({}, e), {
14858
+ }, gm = (e) => Ot(hm, rn(Ce({}, e), {
14859
14859
  prism: e.prism || C,
14860
14860
  theme: e.theme || fa,
14861
14861
  code: e.code,
@@ -14877,12 +14877,12 @@ const da = Fi([
14877
14877
  !1,
14878
14878
  () => {
14879
14879
  }
14880
- ]), ym = () => {
14880
+ ]), mm = () => {
14881
14881
  const e = Li(da);
14882
14882
  if (!e)
14883
14883
  throw new Error("useTheme must be used within a ThemeProvider");
14884
14884
  return e;
14885
- }, Rm = (e) => {
14885
+ }, Im = (e) => {
14886
14886
  const [t, n] = Ht(!1);
14887
14887
  dt(() => {
14888
14888
  const a = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), l = a === "dark" || !a && o.matches;
@@ -14903,14 +14903,14 @@ import("./prism-json.min-B1GJqK1k.js");
14903
14903
  import("./prism-java.min-d5iT_mOd.js");
14904
14904
  import("./prism-csharp.min-Yizuc34Y.js");
14905
14905
  import("./prism-objectivec.min-BXSWqpJJ.js");
14906
- const bm = ({
14906
+ const ym = ({
14907
14907
  copyable: e = !0,
14908
14908
  language: t = "plain",
14909
14909
  ...n
14910
14910
  }) => {
14911
- const [r] = ym(), [i, a] = Ht(!1);
14911
+ const [r] = mm(), [i, a] = Ht(!1);
14912
14912
  return n.code ? /* @__PURE__ */ $.jsx(
14913
- mm,
14913
+ gm,
14914
14914
  {
14915
14915
  theme: r ? Dn.vsDark : Dn.github,
14916
14916
  language: t,
@@ -14957,7 +14957,7 @@ const bm = ({
14957
14957
  ] })
14958
14958
  }
14959
14959
  ) : null;
14960
- }, xm = {
14960
+ }, bm = {
14961
14961
  // @ts-expect-error Node is not in types but still gets passed
14962
14962
  img: ({ node: e, ...t }) => /\.(mp4|webm|mov|avi)$/.test(t.src ?? "") ? /* @__PURE__ */ $.jsx("video", { src: t.src, controls: !0, playsInline: !0, autoPlay: !0, loop: !0 }) : /* @__PURE__ */ $.jsx("img", { ...t, className: "rounded-md" }),
14963
14963
  h1: ({ children: e, id: t }) => /* @__PURE__ */ $.jsx(Ge, { level: 1, id: t, children: e }),
@@ -14980,7 +14980,7 @@ const bm = ({
14980
14980
  if (!n.inline) {
14981
14981
  const i = e == null ? void 0 : e.match(/language?-(\w+)/);
14982
14982
  return /* @__PURE__ */ $.jsx(
14983
- bm,
14983
+ ym,
14984
14984
  {
14985
14985
  language: (i == null ? void 0 : i[1]) ?? "markup",
14986
14986
  className: "rounded-xl overflow-x-auto p-4 border dark:!bg-foreground/10 dark:border-transparent",
@@ -14989,21 +14989,21 @@ const bm = ({
14989
14989
  }
14990
14990
  );
14991
14991
  }
14992
- return /* @__PURE__ */ $.jsx(mg, { className: e, children: t });
14992
+ return /* @__PURE__ */ $.jsx(gg, { className: e, children: t });
14993
14993
  }
14994
- }, km = () => (e) => {
14994
+ }, xm = () => (e) => {
14995
14995
  tn(e, "element", (t, n, r) => {
14996
14996
  t.tagName === "code" && (t.properties.inline = (r == null ? void 0 : r.tagName) !== "pre");
14997
14997
  });
14998
- }, wm = [gg], vm = [km], Fm = "prose dark:prose-invert prose-neutral", Lm = ({
14998
+ }, km = [hg], wm = [xm], _m = "prose dark:prose-invert prose-neutral", Rm = ({
14999
14999
  content: e,
15000
15000
  className: t
15001
15001
  }) => /* @__PURE__ */ $.jsx(
15002
- id,
15002
+ rd,
15003
15003
  {
15004
- remarkPlugins: wm,
15005
- rehypePlugins: vm,
15006
- components: xm,
15004
+ remarkPlugins: km,
15005
+ rehypePlugins: wm,
15006
+ components: bm,
15007
15007
  className: t,
15008
15008
  children: e
15009
15009
  }
@@ -15011,27 +15011,25 @@ const bm = ({
15011
15011
  export {
15012
15012
  Gl as C,
15013
15013
  Ge as H,
15014
- mg as I,
15014
+ gg as I,
15015
15015
  Zt as L,
15016
- xm as M,
15016
+ bm as M,
15017
15017
  Bi as N,
15018
- Fm as P,
15018
+ _m as P,
15019
15019
  Il as R,
15020
- bm as S,
15021
- Rm as T,
15022
- _m as V,
15020
+ ym as S,
15021
+ Im as T,
15022
+ Tm as V,
15023
15023
  Ke as a,
15024
15024
  wr as b,
15025
15025
  tt as c,
15026
- Tm as d,
15027
- Ps as e,
15026
+ Am as d,
15027
+ Ls as e,
15028
15028
  Ql as f,
15029
15029
  Me as g,
15030
- Lm as h,
15030
+ Rm as h,
15031
15031
  Yl as i,
15032
15032
  Dl as j,
15033
- Im as k,
15034
- Ls as r,
15035
- ym as u
15033
+ mm as u
15036
15034
  };
15037
- //# sourceMappingURL=Markdown-BO5EsS-C.js.map
15035
+ //# sourceMappingURL=Markdown-DsCvZnhw.js.map