zudoku 0.53.4 → 0.53.6

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 (233) hide show
  1. package/dist/config/validators/InputNavigationSchema.d.ts +64 -5
  2. package/dist/config/validators/InputNavigationSchema.js +0 -3
  3. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  4. package/dist/config/validators/InputNavigationSchema.test-d.js +0 -1
  5. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
  6. package/dist/config/validators/NavigationSchema.js +3 -2
  7. package/dist/config/validators/NavigationSchema.js.map +1 -1
  8. package/dist/config/validators/icon-types.d.ts +1 -1
  9. package/dist/config/validators/icon-types.js +16 -0
  10. package/dist/config/validators/icon-types.js.map +1 -1
  11. package/dist/config/validators/validate.d.ts +3 -0
  12. package/dist/config/validators/validate.js +1 -0
  13. package/dist/config/validators/validate.js.map +1 -1
  14. package/dist/flat-config.d.ts +2 -4
  15. package/dist/lib/components/Header.js +1 -1
  16. package/dist/lib/components/Header.js.map +1 -1
  17. package/dist/lib/components/Markdown.js +2 -2
  18. package/dist/lib/components/Markdown.js.map +1 -1
  19. package/dist/lib/components/NotFoundPage.js +1 -1
  20. package/dist/lib/components/NotFoundPage.js.map +1 -1
  21. package/dist/lib/components/Typography.d.ts +1 -1
  22. package/dist/lib/components/Typography.js +1 -1
  23. package/dist/lib/components/Typography.js.map +1 -1
  24. package/dist/lib/core/ZudokuContext.d.ts +1 -0
  25. package/dist/lib/core/ZudokuContext.js.map +1 -1
  26. package/dist/lib/errors/ErrorAlert.js +1 -1
  27. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  28. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  29. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  30. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  31. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  32. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  33. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  34. package/dist/lib/plugins/openapi/playground/Playground.js +4 -2
  35. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  36. package/dist/lib/ui/CodeBlock.js +1 -1
  37. package/dist/lib/ui/CodeBlock.js.map +1 -1
  38. package/dist/lib/ui/EmbeddedCodeBlock.js +1 -1
  39. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  40. package/dist/vite/dev-server.js +9 -1
  41. package/dist/vite/dev-server.js.map +1 -1
  42. package/dist/vite/plugin-docs.js +20 -13
  43. package/dist/vite/plugin-docs.js.map +1 -1
  44. package/dist/vite/plugin-theme.js +88 -49
  45. package/dist/vite/plugin-theme.js.map +1 -1
  46. package/dist/vite/plugin-theme.test.js +25 -4
  47. package/dist/vite/plugin-theme.test.js.map +1 -1
  48. package/lib/{Alert-SijAp9LN.js → Alert-CWApD0CL.js} +3 -3
  49. package/lib/{Alert-SijAp9LN.js.map → Alert-CWApD0CL.js.map} +1 -1
  50. package/lib/{Button-BE9IVkWV.js → Button-B3o-2Xdf.js} +2 -2
  51. package/lib/{Button-BE9IVkWV.js.map → Button-B3o-2Xdf.js.map} +1 -1
  52. package/lib/CallbackHandler-Dr5Lva9x.js +38 -0
  53. package/lib/CallbackHandler-Dr5Lva9x.js.map +1 -0
  54. package/lib/{Card-DPhGbYUM.js → Card-CMDQUPM4.js} +2 -2
  55. package/lib/{Card-DPhGbYUM.js.map → Card-CMDQUPM4.js.map} +1 -1
  56. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  57. package/lib/{CodeBlock-DAKxs_Tu.js → CodeBlock-B-G0eKtw.js} +3 -3
  58. package/lib/{CodeBlock-DAKxs_Tu.js.map → CodeBlock-B-G0eKtw.js.map} +1 -1
  59. package/lib/{Command-xsbs2uhf.js → Command-C9AC5cf-.js} +3 -3
  60. package/lib/{Command-xsbs2uhf.js.map → Command-C9AC5cf-.js.map} +1 -1
  61. package/lib/{Dialog-CiIdyz6a.js → Dialog-DMWw1doX.js} +2 -2
  62. package/lib/{Dialog-CiIdyz6a.js.map → Dialog-DMWw1doX.js.map} +1 -1
  63. package/lib/{Drawer-BzkOKwgC.js → Drawer-DJ05s2pH.js} +86 -86
  64. package/lib/{Drawer-BzkOKwgC.js.map → Drawer-DJ05s2pH.js.map} +1 -1
  65. package/lib/{MdxPage-BFKqQsmK.js → MdxPage-DVI4iYgW.js} +7 -7
  66. package/lib/{MdxPage-BFKqQsmK.js.map → MdxPage-DVI4iYgW.js.map} +1 -1
  67. package/lib/{OasProvider-Bdyvd6Ic.js → OasProvider-CbwsKPNc.js} +2 -2
  68. package/lib/{OasProvider-Bdyvd6Ic.js.map → OasProvider-CbwsKPNc.js.map} +1 -1
  69. package/lib/{OperationList-YZ7k-Rkt.js → OperationList-Bn9ggxw8.js} +12 -12
  70. package/lib/OperationList-Bn9ggxw8.js.map +1 -0
  71. package/lib/{Pagination-EViy7EHt.js → Pagination-bavPec-z.js} +3 -3
  72. package/lib/{Pagination-EViy7EHt.js.map → Pagination-bavPec-z.js.map} +1 -1
  73. package/lib/{RouteGuard-CX6A77iy.js → RouteGuard-Vnlz_t51.js} +2 -2
  74. package/lib/{RouteGuard-CX6A77iy.js.map → RouteGuard-Vnlz_t51.js.map} +1 -1
  75. package/lib/{SchemaList--_f8Azv0.js → SchemaList-DETyCVqu.js} +8 -8
  76. package/lib/{SchemaList--_f8Azv0.js.map → SchemaList-DETyCVqu.js.map} +1 -1
  77. package/lib/{SchemaView-7XWvSrbX.js → SchemaView-Dvxo2RNe.js} +6 -6
  78. package/lib/{SchemaView-7XWvSrbX.js.map → SchemaView-Dvxo2RNe.js.map} +1 -1
  79. package/lib/{SignUp-CXCezG-m.js → SignUp-ClYhZq9H.js} +3 -3
  80. package/lib/{SignUp-CXCezG-m.js.map → SignUp-ClYhZq9H.js.map} +1 -1
  81. package/lib/{Slot-tFjhrd8V.js → Slot-B31yZlfB.js} +316 -336
  82. package/lib/{Slot-tFjhrd8V.js.map → Slot-B31yZlfB.js.map} +1 -1
  83. package/lib/Spinner-mNLZ6awP.js.map +1 -1
  84. package/lib/{SyntaxHighlight-Bp_UsIXG.js → SyntaxHighlight-bm761HDo.js} +3 -3
  85. package/lib/{SyntaxHighlight-Bp_UsIXG.js.map → SyntaxHighlight-bm761HDo.js.map} +1 -1
  86. package/lib/{Toc-Ck0YQtmd.js → Toc-D4oBWE8D.js} +3 -3
  87. package/lib/{Toc-Ck0YQtmd.js.map → Toc-D4oBWE8D.js.map} +1 -1
  88. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -1
  89. package/lib/{circular-BtKlhs07.js → circular-CRbFI6Zl.js} +2 -2
  90. package/lib/{circular-BtKlhs07.js.map → circular-CRbFI6Zl.js.map} +1 -1
  91. package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
  92. package/lib/cn-dYga0KKN.js.map +1 -0
  93. package/lib/{createServer-Di2U1Dg0.js → createServer-DNyGJJNX.js} +3398 -3552
  94. package/lib/createServer-DNyGJJNX.js.map +1 -0
  95. package/lib/errors-C1GlNcV3.js +44 -0
  96. package/lib/errors-C1GlNcV3.js.map +1 -0
  97. package/lib/hook-CZjW2buS.js.map +1 -1
  98. package/lib/index-Bm35Tkgf.js.map +1 -1
  99. package/lib/{index-CeQqiMIG.js → index-CZTEgYDd.js} +2 -2
  100. package/lib/{index-CeQqiMIG.js.map → index-CZTEgYDd.js.map} +1 -1
  101. package/lib/{index-BTqwnlI5.js → index-C_PXQ8Bx.js} +612 -610
  102. package/lib/{index-BTqwnlI5.js.map → index-C_PXQ8Bx.js.map} +1 -1
  103. package/lib/index-CrcNWbel.js.map +1 -1
  104. package/lib/{index-DKCEJ4Kd.js → index-D09PbNex.js} +911 -911
  105. package/lib/index-D09PbNex.js.map +1 -0
  106. package/lib/index-DI5SPFK9.js.map +1 -1
  107. package/lib/index-DmNq2fbN.js.map +1 -1
  108. package/lib/index.esm-Cp4wkyud.js.map +1 -1
  109. package/lib/invariant-DAFpPywt.js.map +1 -1
  110. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -1
  111. package/lib/processors/removeExtensions.js.map +1 -1
  112. package/lib/processors/removeParameters.js.map +1 -1
  113. package/lib/processors/removePaths.js.map +1 -1
  114. package/lib/processors/traverse.js.map +1 -1
  115. package/lib/ui/Accordion.js +1 -1
  116. package/lib/ui/Accordion.js.map +1 -1
  117. package/lib/ui/ActionButton.js +2 -2
  118. package/lib/ui/ActionButton.js.map +1 -1
  119. package/lib/ui/Alert.js +1 -1
  120. package/lib/ui/Alert.js.map +1 -1
  121. package/lib/ui/AlertDialog.js +1 -1
  122. package/lib/ui/AlertDialog.js.map +1 -1
  123. package/lib/ui/Badge.js +1 -1
  124. package/lib/ui/Badge.js.map +1 -1
  125. package/lib/ui/Breadcrumb.js +1 -1
  126. package/lib/ui/Breadcrumb.js.map +1 -1
  127. package/lib/ui/Button.js +1 -1
  128. package/lib/ui/Button.js.map +1 -1
  129. package/lib/ui/Callout.js +1 -1
  130. package/lib/ui/Callout.js.map +1 -1
  131. package/lib/ui/Card.js +1 -1
  132. package/lib/ui/Card.js.map +1 -1
  133. package/lib/ui/Carousel.js +1 -1
  134. package/lib/ui/Carousel.js.map +1 -1
  135. package/lib/ui/Checkbox.js +1 -1
  136. package/lib/ui/Checkbox.js.map +1 -1
  137. package/lib/ui/CodeBlock.js +2 -2
  138. package/lib/ui/Command.js +2 -2
  139. package/lib/ui/Command.js.map +1 -1
  140. package/lib/ui/Dialog.js +1 -1
  141. package/lib/ui/Dialog.js.map +1 -1
  142. package/lib/ui/Drawer.js +2 -2
  143. package/lib/ui/DropdownMenu.js +1 -1
  144. package/lib/ui/DropdownMenu.js.map +1 -1
  145. package/lib/ui/EmbeddedCodeBlock.js +2 -2
  146. package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
  147. package/lib/ui/Form.js +1 -1
  148. package/lib/ui/Form.js.map +1 -1
  149. package/lib/ui/HoverCard.js +1 -1
  150. package/lib/ui/HoverCard.js.map +1 -1
  151. package/lib/ui/Input.js +1 -1
  152. package/lib/ui/Input.js.map +1 -1
  153. package/lib/ui/Label.js +1 -1
  154. package/lib/ui/Label.js.map +1 -1
  155. package/lib/ui/Pagination.js +1 -1
  156. package/lib/ui/Pagination.js.map +1 -1
  157. package/lib/ui/Popover.js +1 -1
  158. package/lib/ui/Popover.js.map +1 -1
  159. package/lib/ui/Progress.js +1 -1
  160. package/lib/ui/Progress.js.map +1 -1
  161. package/lib/ui/RadioGroup.js +1 -1
  162. package/lib/ui/RadioGroup.js.map +1 -1
  163. package/lib/ui/ScrollArea.js +1 -1
  164. package/lib/ui/ScrollArea.js.map +1 -1
  165. package/lib/ui/Select.js +1 -1
  166. package/lib/ui/Select.js.map +1 -1
  167. package/lib/ui/Skeleton.js +1 -1
  168. package/lib/ui/Skeleton.js.map +1 -1
  169. package/lib/ui/Slider.js +1 -1
  170. package/lib/ui/Slider.js.map +1 -1
  171. package/lib/ui/Stepper.js.map +1 -1
  172. package/lib/ui/Switch.js +1 -1
  173. package/lib/ui/Switch.js.map +1 -1
  174. package/lib/ui/SyntaxHighlight.js +2 -2
  175. package/lib/ui/Tabs.js +1 -1
  176. package/lib/ui/Tabs.js.map +1 -1
  177. package/lib/ui/Textarea.js +1 -1
  178. package/lib/ui/Textarea.js.map +1 -1
  179. package/lib/ui/Toggle.js +1 -1
  180. package/lib/ui/Toggle.js.map +1 -1
  181. package/lib/ui/ToggleGroup.js +1 -1
  182. package/lib/ui/ToggleGroup.js.map +1 -1
  183. package/lib/ui/Tooltip.js +1 -1
  184. package/lib/ui/Tooltip.js.map +1 -1
  185. package/lib/ui/util.js +1 -1
  186. package/lib/useExposedProps-BIYjecPD.js.map +1 -1
  187. package/lib/zudoku.auth-auth0.js.map +1 -1
  188. package/lib/zudoku.auth-azureb2c.js +40 -9882
  189. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  190. package/lib/zudoku.auth-clerk.js +2 -2
  191. package/lib/zudoku.auth-clerk.js.map +1 -1
  192. package/lib/zudoku.auth-openid.js +20 -19
  193. package/lib/zudoku.auth-openid.js.map +1 -1
  194. package/lib/zudoku.auth-supabase.js +97 -0
  195. package/lib/zudoku.auth-supabase.js.map +1 -0
  196. package/lib/zudoku.components.js +3 -3
  197. package/lib/zudoku.hooks.js.map +1 -1
  198. package/lib/zudoku.icons.js.map +1 -1
  199. package/lib/zudoku.plugin-api-catalog.js +4 -4
  200. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  201. package/lib/zudoku.plugin-api-keys.js +266 -263
  202. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  203. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  204. package/lib/zudoku.plugin-markdown.js +1 -1
  205. package/lib/zudoku.plugin-markdown.js.map +1 -1
  206. package/lib/zudoku.plugin-openapi.js +1 -1
  207. package/lib/zudoku.plugin-redirect.js.map +1 -1
  208. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  209. package/lib/zudoku.plugin-search-pagefind.js +5 -5
  210. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  211. package/lib/zudoku.plugins.js.map +1 -1
  212. package/package.json +18 -18
  213. package/src/app/main.css +26 -5
  214. package/src/lib/components/Header.tsx +1 -1
  215. package/src/lib/components/Markdown.tsx +3 -3
  216. package/src/lib/components/NotFoundPage.tsx +3 -2
  217. package/src/lib/components/Typography.tsx +1 -1
  218. package/src/lib/core/ZudokuContext.ts +1 -0
  219. package/src/lib/errors/ErrorAlert.tsx +5 -7
  220. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  221. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
  222. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  223. package/src/lib/plugins/openapi/playground/Playground.tsx +8 -2
  224. package/src/lib/ui/CodeBlock.tsx +1 -1
  225. package/src/lib/ui/EmbeddedCodeBlock.tsx +1 -1
  226. package/lib/OperationList-YZ7k-Rkt.js.map +0 -1
  227. package/lib/clerk-BDZ31hjU.js +0 -25190
  228. package/lib/clerk-BDZ31hjU.js.map +0 -1
  229. package/lib/cn-wvCW-ho6.js.map +0 -1
  230. package/lib/createServer-Di2U1Dg0.js.map +0 -1
  231. package/lib/errors-Dv_yAK6M.js +0 -78
  232. package/lib/errors-Dv_yAK6M.js.map +0 -1
  233. package/lib/index-DKCEJ4Kd.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { R as Es, O as Ts, n as gs, P as bs, T as tn, j as ii, d as ai, U as As, V as _s } from "./hook-CZjW2buS.js";
1
+ import { R as Es, O as Ts, n as gs, P as bs, T as en, j as ii, d as ai, U as As, V as _s } from "./hook-CZjW2buS.js";
2
2
  import { j as k } from "./jsx-runtime-C5mzlN2N.js";
3
3
  import { u as Tn, d as Cs, f as or, h as Is, c as xs, L as Ns, i as Ss, j as ks } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
4
  import { CheckIcon as Os, CopyIcon as ys, ChevronRightIcon as Ls, ExternalLinkIcon as Rs, LinkIcon as Ds, UnlinkIcon as Ps } from "lucide-react";
5
5
  import { a as ws, c as si } from "./index-DI5SPFK9.js";
6
6
  import { Callout as Ue } from "./ui/Callout.js";
7
7
  import * as Ms from "react";
8
- import { useState as dt, useEffect as Ve, useRef as je, createContext as oi, use as li, useCallback as ci, useMemo as Ht, memo as lr, Fragment as Bs } from "react";
9
- import { s as nn, p as We, a as cr, v as gn, b as Fs, V as Hs, u as Us, t as vs, c as Yr, d as qr, o as Me, z as fi, e as zs, f as Ys, g as qs, i as hi, j as js, k as jr, E as Vs, S as Ws, l as Qs, h as Gs } from "./SyntaxHighlight-Bp_UsIXG.js";
10
- import { c as ie } from "./cn-wvCW-ho6.js";
11
- import { u as Xs, C as Ks } from "./CodeBlock-DAKxs_Tu.js";
12
- import * as Et from "@radix-ui/react-tooltip";
8
+ import { useRef as je, createContext as oi, use as li, useEffect as et, useCallback as ci, useState as sn, useMemo as Ft, memo as lr, Fragment as Bs } from "react";
9
+ import { s as tn, p as Ve, a as cr, v as gn, b as Fs, V as Hs, u as Us, t as vs, c as Yr, d as qr, o as Me, z as fi, e as zs, f as Ys, g as qs, i as hi, j as js, k as jr, E as Vs, S as Ws, l as Qs, h as Gs } from "./SyntaxHighlight-bm761HDo.js";
10
+ import { c as ie } from "./cn-dYga0KKN.js";
11
+ import { u as Xs, C as Ks } from "./CodeBlock-B-G0eKtw.js";
12
+ import * as pt from "@radix-ui/react-tooltip";
13
13
  import * as yn from "@radix-ui/react-collapsible";
14
- import { B as $s } from "./Button-BE9IVkWV.js";
14
+ import { B as $s } from "./Button-B3o-2Xdf.js";
15
15
  import { Slot as Js } from "@radix-ui/react-slot";
16
16
  import { Button as Zs } from "./ui/Button.js";
17
17
  import { Stepper as eo } from "./ui/Stepper.js";
@@ -333,7 +333,7 @@ function mi(e, t) {
333
333
  function ft(e) {
334
334
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
335
335
  }
336
- const de = Qe(/[A-Za-z]/), fe = Qe(/[\dA-Za-z]/), ho = Qe(/[#-'*+\--9=?A-Z^-~]/);
336
+ const de = We(/[A-Za-z]/), fe = We(/[\dA-Za-z]/), ho = We(/[#-'*+\--9=?A-Z^-~]/);
337
337
  function on(e) {
338
338
  return (
339
339
  // Special whitespace codes (which have negative values), C0 and Control
@@ -341,7 +341,7 @@ function on(e) {
341
341
  e !== null && (e < 32 || e === 127)
342
342
  );
343
343
  }
344
- const Xn = Qe(/\d/), mo = Qe(/[\dA-Fa-f]/), po = Qe(/[!-/:-@[-`{-~]/);
344
+ const Xn = We(/\d/), mo = We(/[\dA-Fa-f]/), po = We(/[!-/:-@[-`{-~]/);
345
345
  function H(e) {
346
346
  return e !== null && e < -2;
347
347
  }
@@ -351,8 +351,8 @@ function J(e) {
351
351
  function j(e) {
352
352
  return e === -2 || e === -1 || e === 32;
353
353
  }
354
- const bn = Qe(/\p{P}|\p{S}/u), tt = Qe(/\s/);
355
- function Qe(e) {
354
+ const bn = We(/\p{P}|\p{S}/u), tt = We(/\s/);
355
+ function We(e) {
356
356
  return t;
357
357
  function t(n) {
358
358
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
@@ -548,7 +548,7 @@ function Ao(e, t, n) {
548
548
  this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
549
549
  );
550
550
  }
551
- function mt(e) {
551
+ function dt(e) {
552
552
  if (e === null || J(e) || tt(e))
553
553
  return 1;
554
554
  if (bn(e))
@@ -627,7 +627,7 @@ function _o(e, t) {
627
627
  return e;
628
628
  }
629
629
  function Co(e, t) {
630
- const n = this.parser.constructs.attentionMarkers.null, r = this.previous, u = mt(r);
630
+ const n = this.parser.constructs.attentionMarkers.null, r = this.previous, u = dt(r);
631
631
  let a;
632
632
  return i;
633
633
  function i(l) {
@@ -636,7 +636,7 @@ function Co(e, t) {
636
636
  function o(l) {
637
637
  if (l === a)
638
638
  return e.consume(l), o;
639
- const c = e.exit("attentionSequence"), h = mt(l), f = !h || h === 2 && u || n.includes(l), p = !u || u === 2 && h || n.includes(r);
639
+ const c = e.exit("attentionSequence"), h = dt(l), f = !h || h === 2 && u || n.includes(l), p = !u || u === 2 && h || n.includes(r);
640
640
  return c._open = !!(a === 42 ? f : f && (u || !p)), c._close = !!(a === 42 ? p : p && (h || !f)), t(l);
641
641
  }
642
642
  }
@@ -1114,7 +1114,7 @@ function _i(e, t, n, r, u, a) {
1114
1114
  return p === i || p === 92 ? (e.consume(p), h) : h(p);
1115
1115
  }
1116
1116
  }
1117
- function Rt(e, t) {
1117
+ function Lt(e, t) {
1118
1118
  let n;
1119
1119
  return r;
1120
1120
  function r(u) {
@@ -1153,7 +1153,7 @@ function Go(e, t, n) {
1153
1153
  ), d === 58 ? (e.enter("definitionMarker"), e.consume(d), e.exit("definitionMarker"), l) : n(d);
1154
1154
  }
1155
1155
  function l(d) {
1156
- return J(d) ? Rt(e, c)(d) : c(d);
1156
+ return J(d) ? Lt(e, c)(d) : c(d);
1157
1157
  }
1158
1158
  function c(d) {
1159
1159
  return bi(
@@ -1181,7 +1181,7 @@ function Go(e, t, n) {
1181
1181
  function Xo(e, t, n) {
1182
1182
  return r;
1183
1183
  function r(o) {
1184
- return J(o) ? Rt(e, u)(o) : n(o);
1184
+ return J(o) ? Lt(e, u)(o) : n(o);
1185
1185
  }
1186
1186
  function u(o) {
1187
1187
  return _i(
@@ -1367,8 +1367,8 @@ function al(e, t, n) {
1367
1367
  }
1368
1368
  function L(b) {
1369
1369
  if (b === null || b === 47 || b === 62 || J(b)) {
1370
- const Ie = b === 47, Xe = i.toLowerCase();
1371
- return !Ie && !a && Zr.includes(Xe) ? (u = 1, r.interrupt ? t(b) : F(b)) : tl.includes(i.toLowerCase()) ? (u = 6, Ie ? (e.consume(b), x) : r.interrupt ? t(b) : F(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : a ? w(b) : D(b));
1370
+ const Ie = b === 47, Ge = i.toLowerCase();
1371
+ return !Ie && !a && Zr.includes(Ge) ? (u = 1, r.interrupt ? t(b) : F(b)) : tl.includes(i.toLowerCase()) ? (u = 6, Ie ? (e.consume(b), x) : r.interrupt ? t(b) : F(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : a ? w(b) : D(b));
1372
1372
  }
1373
1373
  return b === 45 || fe(b) ? (e.consume(b), i += String.fromCharCode(b), L) : n(b);
1374
1374
  }
@@ -1682,7 +1682,7 @@ function Tl(e, t, n) {
1682
1682
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), u;
1683
1683
  }
1684
1684
  function u(f) {
1685
- return J(f) ? Rt(e, a)(f) : a(f);
1685
+ return J(f) ? Lt(e, a)(f) : a(f);
1686
1686
  }
1687
1687
  function a(f) {
1688
1688
  return f === 41 ? h(f) : bi(
@@ -1698,7 +1698,7 @@ function Tl(e, t, n) {
1698
1698
  )(f);
1699
1699
  }
1700
1700
  function i(f) {
1701
- return J(f) ? Rt(e, l)(f) : h(f);
1701
+ return J(f) ? Lt(e, l)(f) : h(f);
1702
1702
  }
1703
1703
  function o(f) {
1704
1704
  return n(f);
@@ -1714,7 +1714,7 @@ function Tl(e, t, n) {
1714
1714
  )(f) : h(f);
1715
1715
  }
1716
1716
  function c(f) {
1717
- return J(f) ? Rt(e, h)(f) : h(f);
1717
+ return J(f) ? Lt(e, h)(f) : h(f);
1718
1718
  }
1719
1719
  function h(f) {
1720
1720
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
@@ -1797,7 +1797,7 @@ function xl(e, t) {
1797
1797
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), W(e, t, "linePrefix");
1798
1798
  }
1799
1799
  }
1800
- const rn = {
1800
+ const nn = {
1801
1801
  name: "thematicBreak",
1802
1802
  tokenize: Nl
1803
1803
  };
@@ -1841,7 +1841,7 @@ function Ol(e, t, n) {
1841
1841
  if (r.containerState.type || (r.containerState.type = A, e.enter(A, {
1842
1842
  _container: !0
1843
1843
  })), A === "listUnordered")
1844
- return e.enter("listItemPrefix"), d === 42 || d === 45 ? e.check(rn, n, c)(d) : c(d);
1844
+ return e.enter("listItemPrefix"), d === 42 || d === 45 ? e.check(nn, n, c)(d) : c(d);
1845
1845
  if (!r.interrupt || d === 49)
1846
1846
  return e.enter("listItemPrefix"), e.enter("listItemValue"), l(d);
1847
1847
  }
@@ -2201,13 +2201,13 @@ function zl(e, t, n) {
2201
2201
  Re([ne])
2202
2202
  ) : Ce(ne);
2203
2203
  function Ce(le) {
2204
- return Ct;
2205
- function Ct(Fe) {
2206
- const it = Fe !== null && le[Fe], Ke = Fe !== null && le.null, On = [
2204
+ return _t;
2205
+ function _t(Fe) {
2206
+ const it = Fe !== null && le[Fe], Xe = Fe !== null && le.null, On = [
2207
2207
  // To do: add more extension tests.
2208
2208
  /* c8 ignore next 2 */
2209
2209
  ...Array.isArray(it) ? it : it ? [it] : [],
2210
- ...Array.isArray(Ke) ? Ke : Ke ? [Ke] : []
2210
+ ...Array.isArray(Xe) ? Xe : Xe ? [Xe] : []
2211
2211
  ];
2212
2212
  return Re(On)(Fe);
2213
2213
  }
@@ -2216,23 +2216,23 @@ function zl(e, t, n) {
2216
2216
  return oe = le, _e = 0, le.length === 0 ? ce : b(le[_e]);
2217
2217
  }
2218
2218
  function b(le) {
2219
- return Ct;
2220
- function Ct(Fe) {
2221
- return g = X(), Le = le, le.partial || (c.currentConstruct = le), le.name && c.parser.constructs.disable.null.includes(le.name) ? Xe() : le.tokenize.call(
2219
+ return _t;
2220
+ function _t(Fe) {
2221
+ return g = X(), Le = le, le.partial || (c.currentConstruct = le), le.name && c.parser.constructs.disable.null.includes(le.name) ? Ge() : le.tokenize.call(
2222
2222
  // If we do have fields, create an object w/ `context` as its
2223
2223
  // prototype.
2224
2224
  // This allows a “live binding”, which is needed for `interrupt`.
2225
2225
  F ? Object.assign(Object.create(c), F) : c,
2226
2226
  l,
2227
2227
  Ie,
2228
- Xe
2228
+ Ge
2229
2229
  )(Fe);
2230
2230
  }
2231
2231
  }
2232
2232
  function Ie(le) {
2233
2233
  return B(Le, g), G;
2234
2234
  }
2235
- function Xe(le) {
2235
+ function Ge(le) {
2236
2236
  return g.restore(), ++_e < oe.length ? b(oe[_e]) : ce;
2237
2237
  }
2238
2238
  }
@@ -2337,11 +2337,11 @@ const jl = {
2337
2337
  32: Rn
2338
2338
  }, Ql = {
2339
2339
  35: Jo,
2340
- 42: rn,
2341
- 45: [eu, rn],
2340
+ 42: nn,
2341
+ 45: [eu, nn],
2342
2342
  60: nl,
2343
2343
  61: eu,
2344
- 95: rn,
2344
+ 95: nn,
2345
2345
  96: Jr,
2346
2346
  126: Jr
2347
2347
  }, Gl = {
@@ -2474,10 +2474,10 @@ function sc(e) {
2474
2474
  blockQuote: a(it),
2475
2475
  characterEscape: X,
2476
2476
  characterReference: X,
2477
- codeFenced: a(Ke),
2477
+ codeFenced: a(Xe),
2478
2478
  codeFencedFenceInfo: i,
2479
2479
  codeFencedFenceMeta: i,
2480
- codeIndented: a(Ke, i),
2480
+ codeIndented: a(Xe, i),
2481
2481
  codeText: a(On, i),
2482
2482
  codeTextData: X,
2483
2483
  data: X,
@@ -2514,11 +2514,11 @@ function sc(e) {
2514
2514
  atxHeadingSequence: Y,
2515
2515
  autolink: l(),
2516
2516
  autolinkEmail: Fe,
2517
- autolinkProtocol: Ct,
2517
+ autolinkProtocol: _t,
2518
2518
  blockQuote: l(),
2519
2519
  characterEscapeValue: N,
2520
- characterReferenceMarkerHexadecimal: Xe,
2521
- characterReferenceMarkerNumeric: Xe,
2520
+ characterReferenceMarkerHexadecimal: Ge,
2521
+ characterReferenceMarkerNumeric: Ge,
2522
2522
  characterReferenceValue: le,
2523
2523
  codeFenced: l(L),
2524
2524
  codeFencedFence: I,
@@ -2623,18 +2623,18 @@ function sc(e) {
2623
2623
  return M;
2624
2624
  }
2625
2625
  function u(S, M, U) {
2626
- let V = M - 1, K = -1, xe = !1, $e, De, It, xt;
2626
+ let V = M - 1, K = -1, xe = !1, Ke, De, Ct, It;
2627
2627
  for (; ++V <= U; ) {
2628
2628
  const Ee = S[V];
2629
2629
  switch (Ee[1].type) {
2630
2630
  case "listUnordered":
2631
2631
  case "listOrdered":
2632
2632
  case "blockQuote": {
2633
- Ee[0] === "enter" ? K++ : K--, xt = void 0;
2633
+ Ee[0] === "enter" ? K++ : K--, It = void 0;
2634
2634
  break;
2635
2635
  }
2636
2636
  case "lineEndingBlank": {
2637
- Ee[0] === "enter" && ($e && !xt && !K && !It && (It = V), xt = void 0);
2637
+ Ee[0] === "enter" && (Ke && !It && !K && !Ct && (Ct = V), It = void 0);
2638
2638
  break;
2639
2639
  }
2640
2640
  case "linePrefix":
@@ -2644,10 +2644,10 @@ function sc(e) {
2644
2644
  case "listItemPrefixWhitespace":
2645
2645
  break;
2646
2646
  default:
2647
- xt = void 0;
2647
+ It = void 0;
2648
2648
  }
2649
2649
  if (!K && Ee[0] === "enter" && Ee[1].type === "listItemPrefix" || K === -1 && Ee[0] === "exit" && (Ee[1].type === "listUnordered" || Ee[1].type === "listOrdered")) {
2650
- if ($e) {
2650
+ if (Ke) {
2651
2651
  let at = V;
2652
2652
  for (De = void 0; at--; ) {
2653
2653
  const Pe = S[at];
@@ -2656,10 +2656,10 @@ function sc(e) {
2656
2656
  De && (S[De][1].type = "lineEndingBlank", xe = !0), Pe[1].type = "lineEnding", De = at;
2657
2657
  } else if (!(Pe[1].type === "linePrefix" || Pe[1].type === "blockQuotePrefix" || Pe[1].type === "blockQuotePrefixWhitespace" || Pe[1].type === "blockQuoteMarker" || Pe[1].type === "listItemIndent")) break;
2658
2658
  }
2659
- It && (!De || It < De) && ($e._spread = !0), $e.end = Object.assign(
2659
+ Ct && (!De || Ct < De) && (Ke._spread = !0), Ke.end = Object.assign(
2660
2660
  {},
2661
2661
  De ? S[De][1].start : Ee[1].end
2662
- ), S.splice(De || V, 0, ["exit", $e, Ee[2]]), V++, U++;
2662
+ ), S.splice(De || V, 0, ["exit", Ke, Ee[2]]), V++, U++;
2663
2663
  }
2664
2664
  if (Ee[1].type === "listItemPrefix") {
2665
2665
  const at = {
@@ -2669,7 +2669,7 @@ function sc(e) {
2669
2669
  // @ts-expect-error: we’ll add `end` in a second.
2670
2670
  end: void 0
2671
2671
  };
2672
- $e = at, S.splice(V, 0, ["enter", at, Ee[2]]), V++, U++, It = void 0, xt = !0;
2672
+ Ke = at, S.splice(V, 0, ["enter", at, Ee[2]]), V++, U++, Ct = void 0, It = !0;
2673
2673
  }
2674
2674
  }
2675
2675
  }
@@ -2705,7 +2705,7 @@ function sc(e) {
2705
2705
  if (V)
2706
2706
  V[0].type !== S.type && (M ? M.call(this, S, V[0]) : (V[1] || nu).call(this, S, V[0]));
2707
2707
  else throw new Error(
2708
- "Cannot close `" + S.type + "` (" + nn({
2708
+ "Cannot close `" + S.type + "` (" + tn({
2709
2709
  start: S.start,
2710
2710
  end: S.end
2711
2711
  }) + "): it’s not open"
@@ -2861,7 +2861,7 @@ function sc(e) {
2861
2861
  this.sliceSerialize(S)
2862
2862
  ).toLowerCase(), this.data.referenceType = "full";
2863
2863
  }
2864
- function Xe(S) {
2864
+ function Ge(S) {
2865
2865
  this.data.characterReferenceType = S.type;
2866
2866
  }
2867
2867
  function le(S) {
@@ -2874,7 +2874,7 @@ function sc(e) {
2874
2874
  const K = this.stack.pop();
2875
2875
  K.value += V, K.position.end = He(S.end);
2876
2876
  }
2877
- function Ct(S) {
2877
+ function _t(S) {
2878
2878
  N.call(this, S);
2879
2879
  const M = this.stack[this.stack.length - 1];
2880
2880
  M.url = this.sliceSerialize(S);
@@ -2890,7 +2890,7 @@ function sc(e) {
2890
2890
  children: []
2891
2891
  };
2892
2892
  }
2893
- function Ke() {
2893
+ function Xe() {
2894
2894
  return {
2895
2895
  type: "code",
2896
2896
  lang: null,
@@ -3034,15 +3034,15 @@ function oc(e, t) {
3034
3034
  }
3035
3035
  function nu(e, t) {
3036
3036
  throw e ? new Error(
3037
- "Cannot close `" + e.type + "` (" + nn({
3037
+ "Cannot close `" + e.type + "` (" + tn({
3038
3038
  start: e.start,
3039
3039
  end: e.end
3040
- }) + "): a different token (`" + t.type + "`, " + nn({
3040
+ }) + "): a different token (`" + t.type + "`, " + tn({
3041
3041
  start: t.start,
3042
3042
  end: t.end
3043
3043
  }) + ") is open"
3044
3044
  ) : new Error(
3045
- "Cannot close document, a token (`" + t.type + "`, " + nn({
3045
+ "Cannot close document, a token (`" + t.type + "`, " + tn({
3046
3046
  start: t.start,
3047
3047
  end: t.end
3048
3048
  }) + ") is still open"
@@ -3107,7 +3107,7 @@ function mc(e, t) {
3107
3107
  };
3108
3108
  return e.patch(t, n), e.applyData(t, n);
3109
3109
  }
3110
- function Tt(e) {
3110
+ function Et(e) {
3111
3111
  const t = [];
3112
3112
  let n = -1, r = 0, u = 0;
3113
3113
  for (; ++n < e.length; ) {
@@ -3127,7 +3127,7 @@ function Tt(e) {
3127
3127
  return t.join("") + e.slice(r);
3128
3128
  }
3129
3129
  function pc(e, t) {
3130
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), u = Tt(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
3130
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), u = Et(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
3131
3131
  let i, o = e.footnoteCounts.get(r);
3132
3132
  o === void 0 ? (o = 0, e.footnoteOrder.push(r), i = e.footnoteOrder.length) : i = a + 1, o += 1, e.footnoteCounts.set(r, o);
3133
3133
  const l = {
@@ -3179,13 +3179,13 @@ function gc(e, t) {
3179
3179
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
3180
3180
  if (!r)
3181
3181
  return Si(e, t);
3182
- const u = { src: Tt(r.url || ""), alt: t.alt };
3182
+ const u = { src: Et(r.url || ""), alt: t.alt };
3183
3183
  r.title !== null && r.title !== void 0 && (u.title = r.title);
3184
3184
  const a = { type: "element", tagName: "img", properties: u, children: [] };
3185
3185
  return e.patch(t, a), e.applyData(t, a);
3186
3186
  }
3187
3187
  function bc(e, t) {
3188
- const n = { src: Tt(t.url) };
3188
+ const n = { src: Et(t.url) };
3189
3189
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
3190
3190
  const r = { type: "element", tagName: "img", properties: n, children: [] };
3191
3191
  return e.patch(t, r), e.applyData(t, r);
@@ -3205,7 +3205,7 @@ function _c(e, t) {
3205
3205
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
3206
3206
  if (!r)
3207
3207
  return Si(e, t);
3208
- const u = { href: Tt(r.url || "") };
3208
+ const u = { href: Et(r.url || "") };
3209
3209
  r.title !== null && r.title !== void 0 && (u.title = r.title);
3210
3210
  const a = {
3211
3211
  type: "element",
@@ -3216,7 +3216,7 @@ function _c(e, t) {
3216
3216
  return e.patch(t, a), e.applyData(t, a);
3217
3217
  }
3218
3218
  function Cc(e, t) {
3219
- const n = { href: Tt(t.url) };
3219
+ const n = { href: Et(t.url) };
3220
3220
  t.title !== null && t.title !== void 0 && (n.title = t.title);
3221
3221
  const r = {
3222
3222
  type: "element",
@@ -3322,7 +3322,7 @@ function yc(e, t) {
3322
3322
  tagName: "tbody",
3323
3323
  properties: {},
3324
3324
  children: e.wrap(n, !0)
3325
- }, o = We(t.children[1]), l = cr(t.children[t.children.length - 1]);
3325
+ }, o = Ve(t.children[1]), l = cr(t.children[t.children.length - 1]);
3326
3326
  o && l && (i.position = { start: o, end: l }), u.push(i);
3327
3327
  }
3328
3328
  const a = {
@@ -3425,14 +3425,14 @@ const Mc = {
3425
3425
  tableRow: Lc,
3426
3426
  text: Pc,
3427
3427
  thematicBreak: wc,
3428
- toml: Gt,
3429
- yaml: Gt,
3430
- definition: Gt,
3431
- footnoteDefinition: Gt
3428
+ toml: Qt,
3429
+ yaml: Qt,
3430
+ definition: Qt,
3431
+ footnoteDefinition: Qt
3432
3432
  };
3433
- function Gt() {
3433
+ function Qt() {
3434
3434
  }
3435
- const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, Li = 8, au = typeof self == "object" ? self : globalThis, Bc = (e, t) => {
3435
+ const Oi = -1, _n = 0, Rt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, Li = 8, au = typeof self == "object" ? self : globalThis, Bc = (e, t) => {
3436
3436
  const n = (u, a) => (e.set(a, u), u), r = (u) => {
3437
3437
  if (e.has(u))
3438
3438
  return e.get(u);
@@ -3441,7 +3441,7 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
3441
3441
  case _n:
3442
3442
  case Oi:
3443
3443
  return n(i, u);
3444
- case Dt: {
3444
+ case Rt: {
3445
3445
  const o = n([], u);
3446
3446
  for (const l of i)
3447
3447
  o.push(r(l));
@@ -3489,14 +3489,14 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
3489
3489
  return n(new au[a](i), u);
3490
3490
  };
3491
3491
  return r;
3492
- }, su = (e) => Bc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: Fc } = {}, { keys: Hc } = Object, Nt = (e) => {
3492
+ }, su = (e) => Bc(/* @__PURE__ */ new Map(), e)(0), st = "", { toString: Fc } = {}, { keys: Hc } = Object, xt = (e) => {
3493
3493
  const t = typeof e;
3494
3494
  if (t !== "object" || !e)
3495
3495
  return [_n, t];
3496
3496
  const n = Fc.call(e).slice(8, -1);
3497
3497
  switch (n) {
3498
3498
  case "Array":
3499
- return [Dt, st];
3499
+ return [Rt, st];
3500
3500
  case "Object":
3501
3501
  return [ln, st];
3502
3502
  case "Date":
@@ -3508,17 +3508,17 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
3508
3508
  case "Set":
3509
3509
  return [gr, st];
3510
3510
  case "DataView":
3511
- return [Dt, n];
3511
+ return [Rt, n];
3512
3512
  }
3513
- return n.includes("Array") ? [Dt, n] : n.includes("Error") ? [yi, n] : [ln, n];
3514
- }, Xt = ([e, t]) => e === _n && (t === "function" || t === "symbol"), Uc = (e, t, n, r) => {
3513
+ return n.includes("Array") ? [Rt, n] : n.includes("Error") ? [yi, n] : [ln, n];
3514
+ }, Gt = ([e, t]) => e === _n && (t === "function" || t === "symbol"), Uc = (e, t, n, r) => {
3515
3515
  const u = (i, o) => {
3516
3516
  const l = r.push(i) - 1;
3517
3517
  return n.set(o, l), l;
3518
3518
  }, a = (i) => {
3519
3519
  if (n.has(i))
3520
3520
  return n.get(i);
3521
- let [o, l] = Nt(i);
3521
+ let [o, l] = xt(i);
3522
3522
  switch (o) {
3523
3523
  case _n: {
3524
3524
  let h = i;
@@ -3537,7 +3537,7 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
3537
3537
  }
3538
3538
  return u([o, h], i);
3539
3539
  }
3540
- case Dt: {
3540
+ case Rt: {
3541
3541
  if (l) {
3542
3542
  let p = i;
3543
3543
  return l === "DataView" ? p = new Uint8Array(i.buffer) : l === "ArrayBuffer" && (p = new Uint8Array(i)), u([l, [...p]], i);
@@ -3561,7 +3561,7 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
3561
3561
  return a(i.toJSON());
3562
3562
  const h = [], f = u([o, h], i);
3563
3563
  for (const p of Hc(i))
3564
- (e || !Xt(Nt(i[p]))) && h.push([a(p), a(i[p])]);
3564
+ (e || !Gt(xt(i[p]))) && h.push([a(p), a(i[p])]);
3565
3565
  return f;
3566
3566
  }
3567
3567
  case pr:
@@ -3573,13 +3573,13 @@ const Oi = -1, _n = 0, Dt = 1, ln = 2, pr = 3, Er = 4, Tr = 5, gr = 6, yi = 7, L
3573
3573
  case Tr: {
3574
3574
  const h = [], f = u([o, h], i);
3575
3575
  for (const [p, d] of i)
3576
- (e || !(Xt(Nt(p)) || Xt(Nt(d)))) && h.push([a(p), a(d)]);
3576
+ (e || !(Gt(xt(p)) || Gt(xt(d)))) && h.push([a(p), a(d)]);
3577
3577
  return f;
3578
3578
  }
3579
3579
  case gr: {
3580
3580
  const h = [], f = u([o, h], i);
3581
3581
  for (const p of i)
3582
- (e || !Xt(Nt(p))) && h.push(a(p));
3582
+ (e || !Gt(xt(p))) && h.push(a(p));
3583
3583
  return f;
3584
3584
  }
3585
3585
  }
@@ -3617,7 +3617,7 @@ function Yc(e) {
3617
3617
  );
3618
3618
  if (!c)
3619
3619
  continue;
3620
- const h = e.all(c), f = String(c.identifier).toUpperCase(), p = Tt(f.toLowerCase());
3620
+ const h = e.all(c), f = String(c.identifier).toUpperCase(), p = Et(f.toLowerCase());
3621
3621
  let d = 0;
3622
3622
  const A = [], I = e.footnoteCounts.get(f);
3623
3623
  for (; I !== void 0 && ++d <= I; ) {
@@ -3904,7 +3904,7 @@ const Se = { basename: e0, dirname: t0, extname: n0, join: r0, sep: "/" };
3904
3904
  function e0(e, t) {
3905
3905
  if (t !== void 0 && typeof t != "string")
3906
3906
  throw new TypeError('"ext" argument must be a string');
3907
- Yt(e);
3907
+ zt(e);
3908
3908
  let n = 0, r = -1, u = e.length, a;
3909
3909
  if (t === void 0 || t.length === 0 || t.length > e.length) {
3910
3910
  for (; u--; )
@@ -3930,7 +3930,7 @@ function e0(e, t) {
3930
3930
  return n === r ? r = i : r < 0 && (r = e.length), e.slice(n, r);
3931
3931
  }
3932
3932
  function t0(e) {
3933
- if (Yt(e), e.length === 0)
3933
+ if (zt(e), e.length === 0)
3934
3934
  return ".";
3935
3935
  let t = -1, n = e.length, r;
3936
3936
  for (; --n; )
@@ -3943,7 +3943,7 @@ function t0(e) {
3943
3943
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
3944
3944
  }
3945
3945
  function n0(e) {
3946
- Yt(e);
3946
+ zt(e);
3947
3947
  let t = e.length, n = -1, r = 0, u = -1, a = 0, i;
3948
3948
  for (; t--; ) {
3949
3949
  const o = e.codePointAt(t);
@@ -3963,11 +3963,11 @@ function n0(e) {
3963
3963
  function r0(...e) {
3964
3964
  let t = -1, n;
3965
3965
  for (; ++t < e.length; )
3966
- Yt(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
3966
+ zt(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
3967
3967
  return n === void 0 ? "." : u0(n);
3968
3968
  }
3969
3969
  function u0(e) {
3970
- Yt(e);
3970
+ zt(e);
3971
3971
  const t = e.codePointAt(0) === 47;
3972
3972
  let n = i0(e, !t);
3973
3973
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
@@ -4003,7 +4003,7 @@ function i0(e, t) {
4003
4003
  }
4004
4004
  return n;
4005
4005
  }
4006
- function Yt(e) {
4006
+ function zt(e) {
4007
4007
  if (typeof e != "string")
4008
4008
  throw new TypeError(
4009
4009
  "Path must be a string. Received " + JSON.stringify(e)
@@ -4616,7 +4616,7 @@ class br extends f0 {
4616
4616
  */
4617
4617
  parse(t) {
4618
4618
  this.freeze();
4619
- const n = Kt(t), r = this.parser || this.Parser;
4619
+ const n = Xt(t), r = this.parser || this.Parser;
4620
4620
  return Hn("parse", r), r(String(n), n);
4621
4621
  }
4622
4622
  /**
@@ -4665,7 +4665,7 @@ class br extends f0 {
4665
4665
  const r = this;
4666
4666
  return this.freeze(), Hn("process", this.parser || this.Parser), Un("process", this.compiler || this.Compiler), n ? u(void 0, n) : new Promise(u);
4667
4667
  function u(a, i) {
4668
- const o = Kt(t), l = (
4668
+ const o = Xt(t), l = (
4669
4669
  /** @type {HeadTree extends undefined ? Node : HeadTree} */
4670
4670
  /** @type {unknown} */
4671
4671
  r.parse(o)
@@ -4770,7 +4770,7 @@ class br extends f0 {
4770
4770
  const u = this.transformers;
4771
4771
  return !r && typeof n == "function" && (r = n, n = void 0), r ? a(void 0, r) : new Promise(a);
4772
4772
  function a(i, o) {
4773
- const l = Kt(n);
4773
+ const l = Xt(n);
4774
4774
  u.run(t, l, c);
4775
4775
  function c(h, f, p) {
4776
4776
  const d = (
@@ -4836,7 +4836,7 @@ class br extends f0 {
4836
4836
  */
4837
4837
  stringify(t, n) {
4838
4838
  this.freeze();
4839
- const r = Kt(n), u = this.compiler || this.Compiler;
4839
+ const r = Xt(n), u = this.compiler || this.Compiler;
4840
4840
  return Un("stringify", u), mu(t), u(t, r);
4841
4841
  }
4842
4842
  /**
@@ -4979,7 +4979,7 @@ function pu(e, t, n) {
4979
4979
  "`" + e + "` finished async. Use `" + t + "` instead"
4980
4980
  );
4981
4981
  }
4982
- function Kt(e) {
4982
+ function Xt(e) {
4983
4983
  return m0(e) ? e : new Ri(e);
4984
4984
  }
4985
4985
  function m0(e) {
@@ -5026,31 +5026,8 @@ const T0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
5026
5026
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
5027
5027
  ];
5028
5028
  function A0(e) {
5029
- const t = _0(e), [n, r] = dt(
5030
- /** @type {Error | undefined} */
5031
- void 0
5032
- ), [u, a] = dt(
5033
- /** @type {Root | undefined} */
5034
- void 0
5035
- );
5036
- if (Ve(
5037
- function() {
5038
- let i = !1;
5039
- const o = C0(e);
5040
- return t.run(t.parse(o), o, function(l, c) {
5041
- i || (r(l), a(c));
5042
- }), function() {
5043
- i = !0;
5044
- };
5045
- },
5046
- [
5047
- e.children,
5048
- e.rehypePlugins,
5049
- e.remarkPlugins,
5050
- e.remarkRehypeOptions
5051
- ]
5052
- ), n) throw n;
5053
- return u ? I0(u, e) : e.fallback;
5029
+ const t = _0(e), n = C0(e);
5030
+ return I0(t.runSync(t.parse(n), n), e);
5054
5031
  }
5055
5032
  function _0(e) {
5056
5033
  const t = e.rehypePlugins || Eu, n = e.remarkPlugins || Eu, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Tu } : Tu;
@@ -5153,7 +5130,7 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
5153
5130
  return n(new gu[a](i), u);
5154
5131
  };
5155
5132
  return r;
5156
- }, bu = (e) => N0(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: S0 } = {}, { keys: k0 } = Object, St = (e) => {
5133
+ }, bu = (e) => N0(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: S0 } = {}, { keys: k0 } = Object, Nt = (e) => {
5157
5134
  const t = typeof e;
5158
5135
  if (t !== "object" || !e)
5159
5136
  return [Cn, t];
@@ -5173,14 +5150,14 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
5173
5150
  return [Ir, ot];
5174
5151
  }
5175
5152
  return n.includes("Array") ? [fn, n] : n.includes("Error") ? [Pi, n] : [hn, n];
5176
- }, $t = ([e, t]) => e === Cn && (t === "function" || t === "symbol"), O0 = (e, t, n, r) => {
5153
+ }, Kt = ([e, t]) => e === Cn && (t === "function" || t === "symbol"), O0 = (e, t, n, r) => {
5177
5154
  const u = (i, o) => {
5178
5155
  const l = r.push(i) - 1;
5179
5156
  return n.set(o, l), l;
5180
5157
  }, a = (i) => {
5181
5158
  if (n.has(i))
5182
5159
  return n.get(i);
5183
- let [o, l] = St(i);
5160
+ let [o, l] = Nt(i);
5184
5161
  switch (o) {
5185
5162
  case Cn: {
5186
5163
  let h = i;
@@ -5221,7 +5198,7 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
5221
5198
  return a(i.toJSON());
5222
5199
  const h = [], f = u([o, h], i);
5223
5200
  for (const p of k0(i))
5224
- (e || !$t(St(i[p]))) && h.push([a(p), a(i[p])]);
5201
+ (e || !Kt(Nt(i[p]))) && h.push([a(p), a(i[p])]);
5225
5202
  return f;
5226
5203
  }
5227
5204
  case Ar:
@@ -5233,13 +5210,13 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
5233
5210
  case Cr: {
5234
5211
  const h = [], f = u([o, h], i);
5235
5212
  for (const [p, d] of i)
5236
- (e || !($t(St(p)) || $t(St(d)))) && h.push([a(p), a(d)]);
5213
+ (e || !(Kt(Nt(p)) || Kt(Nt(d)))) && h.push([a(p), a(d)]);
5237
5214
  return f;
5238
5215
  }
5239
5216
  case Ir: {
5240
5217
  const h = [], f = u([o, h], i);
5241
5218
  for (const p of i)
5242
- (e || !$t(St(p))) && h.push(a(p));
5219
+ (e || !Kt(Nt(p))) && h.push(a(p));
5243
5220
  return f;
5244
5221
  }
5245
5222
  }
@@ -5254,7 +5231,7 @@ const Di = -1, Cn = 0, fn = 1, hn = 2, Ar = 3, _r = 4, Cr = 5, Ir = 6, Pi = 7, w
5254
5231
  /* c8 ignore start */
5255
5232
  (e, t) => t && ("json" in t || "lossy" in t) ? bu(Au(e, t)) : structuredClone(e)
5256
5233
  ) : (e, t) => bu(Au(e, t));
5257
- class qt {
5234
+ class Yt {
5258
5235
  /**
5259
5236
  * @constructor
5260
5237
  * @param {Properties} property
@@ -5265,17 +5242,17 @@ class qt {
5265
5242
  this.property = t, this.normal = n, r && (this.space = r);
5266
5243
  }
5267
5244
  }
5268
- qt.prototype.property = {};
5269
- qt.prototype.normal = {};
5270
- qt.prototype.space = null;
5245
+ Yt.prototype.property = {};
5246
+ Yt.prototype.normal = {};
5247
+ Yt.prototype.space = null;
5271
5248
  function Mi(e, t) {
5272
5249
  const n = {}, r = {};
5273
5250
  let u = -1;
5274
5251
  for (; ++u < e.length; )
5275
5252
  Object.assign(n, e[u].property), Object.assign(r, e[u].normal);
5276
- return new qt(n, r, t);
5253
+ return new Yt(n, r, t);
5277
5254
  }
5278
- function Ut(e) {
5255
+ function Ht(e) {
5279
5256
  return e.toLowerCase();
5280
5257
  }
5281
5258
  class Ae {
@@ -5335,7 +5312,7 @@ function Cu(e, t, n) {
5335
5312
  n && (e[t] = n);
5336
5313
  }
5337
5314
  const L0 = {}.hasOwnProperty;
5338
- function gt(e) {
5315
+ function Tt(e) {
5339
5316
  const t = {}, n = {};
5340
5317
  let r;
5341
5318
  for (r in e.properties)
@@ -5346,11 +5323,11 @@ function gt(e) {
5346
5323
  u,
5347
5324
  e.space
5348
5325
  );
5349
- e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Ut(r)] = r, n[Ut(a.attribute)] = r;
5326
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Ht(r)] = r, n[Ht(a.attribute)] = r;
5350
5327
  }
5351
- return new qt(t, n, e.space);
5328
+ return new Yt(t, n, e.space);
5352
5329
  }
5353
- const Fi = gt({
5330
+ const Fi = Tt({
5354
5331
  space: "xlink",
5355
5332
  transform(e, t) {
5356
5333
  return "xlink:" + t.slice(5).toLowerCase();
@@ -5364,7 +5341,7 @@ const Fi = gt({
5364
5341
  xLinkTitle: null,
5365
5342
  xLinkType: null
5366
5343
  }
5367
- }), Hi = gt({
5344
+ }), Hi = Tt({
5368
5345
  space: "xml",
5369
5346
  transform(e, t) {
5370
5347
  return "xml:" + t.slice(3).toLowerCase();
@@ -5377,12 +5354,12 @@ function Ui(e, t) {
5377
5354
  function vi(e, t) {
5378
5355
  return Ui(e, t.toLowerCase());
5379
5356
  }
5380
- const zi = gt({
5357
+ const zi = Tt({
5381
5358
  space: "xmlns",
5382
5359
  attributes: { xmlnsxlink: "xmlns:xlink" },
5383
5360
  transform: vi,
5384
5361
  properties: { xmlns: null, xmlnsXLink: null }
5385
- }), Yi = gt({
5362
+ }), Yi = Tt({
5386
5363
  transform(e, t) {
5387
5364
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
5388
5365
  },
@@ -5437,7 +5414,7 @@ const zi = gt({
5437
5414
  ariaValueText: null,
5438
5415
  role: null
5439
5416
  }
5440
- }), R0 = gt({
5417
+ }), R0 = Tt({
5441
5418
  space: "html",
5442
5419
  attributes: {
5443
5420
  acceptcharset: "accept-charset",
@@ -5798,7 +5775,7 @@ const zi = gt({
5798
5775
  security: null,
5799
5776
  unselectable: null
5800
5777
  }
5801
- }), D0 = gt({
5778
+ }), D0 = Tt({
5802
5779
  space: "svg",
5803
5780
  attributes: {
5804
5781
  accentHeight: "accent-height",
@@ -6359,7 +6336,7 @@ const zi = gt({
6359
6336
  }
6360
6337
  }), P0 = /^data[-\w.:]+$/i, Iu = /-[a-z]/g, w0 = /[A-Z]/g;
6361
6338
  function Nr(e, t) {
6362
- const n = Ut(t);
6339
+ const n = Ht(t);
6363
6340
  let r = t, u = Ae;
6364
6341
  if (n in e.normal)
6365
6342
  return e.property[e.normal[n]];
@@ -6384,7 +6361,7 @@ function M0(e) {
6384
6361
  function B0(e) {
6385
6362
  return e.charAt(1).toUpperCase();
6386
6363
  }
6387
- const In = Mi([Hi, Fi, zi, Yi, R0], "html"), jt = Mi([Hi, Fi, zi, Yi, D0], "svg"), xu = /[#.]/g;
6364
+ const In = Mi([Hi, Fi, zi, Yi, R0], "html"), qt = Mi([Hi, Fi, zi, Yi, D0], "svg"), xu = /[#.]/g;
6388
6365
  function F0(e, t) {
6389
6366
  const n = e || "", r = {};
6390
6367
  let u = 0, a, i;
@@ -6494,7 +6471,7 @@ function Nu(e, t, n) {
6494
6471
  if (typeof n == "string") {
6495
6472
  if (e.number && n && !Number.isNaN(Number(n)))
6496
6473
  return Number(n);
6497
- if ((e.boolean || e.overloadedBoolean) && (n === "" || Ut(n) === Ut(t)))
6474
+ if ((e.boolean || e.overloadedBoolean) && (n === "" || Ht(n) === Ht(t)))
6498
6475
  return !0;
6499
6476
  }
6500
6477
  return n;
@@ -6553,7 +6530,7 @@ const Y0 = [
6553
6530
  "solidColor",
6554
6531
  "textArea",
6555
6532
  "textPath"
6556
- ], q0 = qi(In, "div"), j0 = qi(jt, "g", Y0);
6533
+ ], q0 = qi(In, "div"), j0 = qi(qt, "g", Y0);
6557
6534
  function V0(e) {
6558
6535
  const t = String(e), n = [];
6559
6536
  return { toOffset: u, toPoint: r };
@@ -6593,7 +6570,7 @@ function Su(e, t) {
6593
6570
  `, t);
6594
6571
  return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
6595
6572
  }
6596
- const Ze = {
6573
+ const Je = {
6597
6574
  html: "http://www.w3.org/1999/xhtml",
6598
6575
  mathml: "http://www.w3.org/1998/Math/MathML",
6599
6576
  svg: "http://www.w3.org/2000/svg",
@@ -6607,7 +6584,7 @@ function Q0(e, t) {
6607
6584
  {
6608
6585
  file: n.file || void 0,
6609
6586
  location: !1,
6610
- schema: n.space === "svg" ? jt : In,
6587
+ schema: n.space === "svg" ? qt : In,
6611
6588
  verbose: n.verbose || !1
6612
6589
  },
6613
6590
  e
@@ -6621,7 +6598,7 @@ function Sr(e, t) {
6621
6598
  /** @type {DefaultTreeAdapterMap['commentNode']} */
6622
6599
  t
6623
6600
  );
6624
- return n = { type: "comment", value: r.data }, un(e, r, n), n;
6601
+ return n = { type: "comment", value: r.data }, rn(e, r, n), n;
6625
6602
  }
6626
6603
  case "#document":
6627
6604
  case "#document-fragment": {
@@ -6644,14 +6621,14 @@ function Sr(e, t) {
6644
6621
  /** @type {DefaultTreeAdapterMap['documentType']} */
6645
6622
  t
6646
6623
  );
6647
- return n = { type: "doctype" }, un(e, r, n), n;
6624
+ return n = { type: "doctype" }, rn(e, r, n), n;
6648
6625
  }
6649
6626
  case "#text": {
6650
6627
  const r = (
6651
6628
  /** @type {DefaultTreeAdapterMap['textNode']} */
6652
6629
  t
6653
6630
  );
6654
- return n = { type: "text", value: r.value }, un(e, r, n), n;
6631
+ return n = { type: "text", value: r.value }, rn(e, r, n), n;
6655
6632
  }
6656
6633
  // Element.
6657
6634
  default:
@@ -6676,7 +6653,7 @@ function Vi(e, t) {
6676
6653
  }
6677
6654
  function G0(e, t) {
6678
6655
  const n = e.schema;
6679
- e.schema = t.namespaceURI === Ze.svg ? jt : In;
6656
+ e.schema = t.namespaceURI === Je.svg ? qt : In;
6680
6657
  let r = -1;
6681
6658
  const u = {};
6682
6659
  for (; ++r < t.attrs.length; ) {
@@ -6684,7 +6661,7 @@ function G0(e, t) {
6684
6661
  ji.call(W0, l) || (u[l] = o.value);
6685
6662
  }
6686
6663
  const i = (e.schema.space === "svg" ? j0 : q0)(t.tagName, u, Vi(e, t.childNodes));
6687
- if (un(e, t, i), i.tagName === "template") {
6664
+ if (rn(e, t, i), i.tagName === "template") {
6688
6665
  const o = (
6689
6666
  /** @type {DefaultTreeAdapterMap['template']} */
6690
6667
  t
@@ -6696,7 +6673,7 @@ function G0(e, t) {
6696
6673
  }
6697
6674
  return e.schema = n, i;
6698
6675
  }
6699
- function un(e, t, n) {
6676
+ function rn(e, t, n) {
6700
6677
  if ("sourceCodeLocation" in t && t.sourceCodeLocation && e.file) {
6701
6678
  const r = X0(e, n, t.sourceCodeLocation);
6702
6679
  r && (e.location = !0, n.position = r);
@@ -6739,7 +6716,7 @@ function ku(e) {
6739
6716
  const K0 = {}, $0 = {}.hasOwnProperty, Wi = fi("type", { handlers: { root: Z0, element: uf, text: nf, comment: rf, doctype: tf } });
6740
6717
  function J0(e, t) {
6741
6718
  const r = (t || K0).space;
6742
- return Wi(e, r === "svg" ? jt : In);
6719
+ return Wi(e, r === "svg" ? qt : In);
6743
6720
  }
6744
6721
  function Z0(e, t) {
6745
6722
  const n = {
@@ -6748,11 +6725,11 @@ function Z0(e, t) {
6748
6725
  mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
6749
6726
  childNodes: []
6750
6727
  };
6751
- return n.childNodes = kr(e.children, n, t), bt(e, n), n;
6728
+ return n.childNodes = kr(e.children, n, t), gt(e, n), n;
6752
6729
  }
6753
6730
  function ef(e, t) {
6754
6731
  const n = { nodeName: "#document-fragment", childNodes: [] };
6755
- return n.childNodes = kr(e.children, n, t), bt(e, n), n;
6732
+ return n.childNodes = kr(e.children, n, t), gt(e, n), n;
6756
6733
  }
6757
6734
  function tf(e) {
6758
6735
  const t = {
@@ -6762,7 +6739,7 @@ function tf(e) {
6762
6739
  systemId: "",
6763
6740
  parentNode: null
6764
6741
  };
6765
- return bt(e, t), t;
6742
+ return gt(e, t), t;
6766
6743
  }
6767
6744
  function nf(e) {
6768
6745
  const t = {
@@ -6770,7 +6747,7 @@ function nf(e) {
6770
6747
  value: e.value,
6771
6748
  parentNode: null
6772
6749
  };
6773
- return bt(e, t), t;
6750
+ return gt(e, t), t;
6774
6751
  }
6775
6752
  function rf(e) {
6776
6753
  const t = {
@@ -6778,12 +6755,12 @@ function rf(e) {
6778
6755
  data: e.value,
6779
6756
  parentNode: null
6780
6757
  };
6781
- return bt(e, t), t;
6758
+ return gt(e, t), t;
6782
6759
  }
6783
6760
  function uf(e, t) {
6784
6761
  const n = t;
6785
6762
  let r = n;
6786
- e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = jt);
6763
+ e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = qt);
6787
6764
  const u = [];
6788
6765
  let a;
6789
6766
  if (e.properties) {
@@ -6802,11 +6779,11 @@ function uf(e, t) {
6802
6779
  tagName: e.tagName,
6803
6780
  attrs: u,
6804
6781
  // @ts-expect-error: `parse5` types are wrong.
6805
- namespaceURI: Ze[i],
6782
+ namespaceURI: Je[i],
6806
6783
  childNodes: [],
6807
6784
  parentNode: null
6808
6785
  };
6809
- return o.childNodes = kr(e.children, o, r), bt(e, o), e.tagName === "template" && e.content && (o.content = ef(e.content, r)), o;
6786
+ return o.childNodes = kr(e.children, o, r), gt(e, o), e.tagName === "template" && e.content && (o.content = ef(e.content, r)), o;
6810
6787
  }
6811
6788
  function af(e, t, n) {
6812
6789
  const r = Nr(e, t);
@@ -6819,7 +6796,7 @@ function af(e, t, n) {
6819
6796
  };
6820
6797
  if (r.space && r.space !== "html" && r.space !== "svg") {
6821
6798
  const a = u.name.indexOf(":");
6822
- a < 0 ? u.prefix = "" : (u.name = u.name.slice(a + 1), u.prefix = r.attribute.slice(0, a)), u.namespace = Ze[r.space];
6799
+ a < 0 ? u.prefix = "" : (u.name = u.name.slice(a + 1), u.prefix = r.attribute.slice(0, a)), u.namespace = Je[r.space];
6823
6800
  }
6824
6801
  return u;
6825
6802
  }
@@ -6833,7 +6810,7 @@ function kr(e, t, n) {
6833
6810
  }
6834
6811
  return u;
6835
6812
  }
6836
- function bt(e, t) {
6813
+ function gt(e, t) {
6837
6814
  const n = e.position;
6838
6815
  n && n.start && n.end && (Me(typeof n.start.offset == "number"), Me(typeof n.end.offset == "number"), t.sourceCodeLocation = {
6839
6816
  startLine: n.start.line,
@@ -7318,10 +7295,10 @@ var y;
7318
7295
  (function(e) {
7319
7296
  e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/";
7320
7297
  })(y || (y = {}));
7321
- var et;
7298
+ var Ze;
7322
7299
  (function(e) {
7323
7300
  e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
7324
- })(et || (et = {}));
7301
+ })(Ze || (Ze = {}));
7325
7302
  var be;
7326
7303
  (function(e) {
7327
7304
  e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
@@ -7459,7 +7436,7 @@ const _f = /* @__PURE__ */ new Map([
7459
7436
  [_.WBR, s.WBR],
7460
7437
  [_.XMP, s.XMP]
7461
7438
  ]);
7462
- function At(e) {
7439
+ function bt(e) {
7463
7440
  var t;
7464
7441
  return (t = _f.get(e)) !== null && t !== void 0 ? t : s.UNKNOWN;
7465
7442
  }
@@ -7569,19 +7546,19 @@ const re = {
7569
7546
  function If(e) {
7570
7547
  return e >= m.DIGIT_0 && e <= m.DIGIT_9;
7571
7548
  }
7572
- function Lt(e) {
7549
+ function yt(e) {
7573
7550
  return e >= m.LATIN_CAPITAL_A && e <= m.LATIN_CAPITAL_Z;
7574
7551
  }
7575
7552
  function xf(e) {
7576
7553
  return e >= m.LATIN_SMALL_A && e <= m.LATIN_SMALL_Z;
7577
7554
  }
7578
7555
  function ve(e) {
7579
- return xf(e) || Lt(e);
7556
+ return xf(e) || yt(e);
7580
7557
  }
7581
7558
  function Ou(e) {
7582
7559
  return ve(e) || If(e);
7583
7560
  }
7584
- function Jt(e) {
7561
+ function $t(e) {
7585
7562
  return e + 32;
7586
7563
  }
7587
7564
  function ea(e) {
@@ -7741,7 +7718,7 @@ class Sf {
7741
7718
  }
7742
7719
  emitCurrentTagToken() {
7743
7720
  const t = this.currentToken;
7744
- this.prepareToken(t), t.tagID = At(t.tagName), t.type === q.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(C.endTagWithAttributes), t.selfClosing && this._err(C.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
7721
+ this.prepareToken(t), t.tagID = bt(t.tagName), t.type === q.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(C.endTagWithAttributes), t.selfClosing && this._err(C.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
7745
7722
  }
7746
7723
  emitCurrentComment(t) {
7747
7724
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -8288,7 +8265,7 @@ class Sf {
8288
8265
  break;
8289
8266
  }
8290
8267
  default:
8291
- n.tagName += String.fromCodePoint(Lt(t) ? Jt(t) : t);
8268
+ n.tagName += String.fromCodePoint(yt(t) ? $t(t) : t);
8292
8269
  }
8293
8270
  }
8294
8271
  // RCDATA less-than sign state
@@ -8620,7 +8597,7 @@ class Sf {
8620
8597
  break;
8621
8598
  }
8622
8599
  default:
8623
- this.currentAttr.name += String.fromCodePoint(Lt(t) ? Jt(t) : t);
8600
+ this.currentAttr.name += String.fromCodePoint(yt(t) ? $t(t) : t);
8624
8601
  }
8625
8602
  }
8626
8603
  // After attribute name state
@@ -9021,8 +8998,8 @@ class Sf {
9021
8998
  // Before DOCTYPE name state
9022
8999
  //------------------------------------------------------------------
9023
9000
  _stateBeforeDoctypeName(t) {
9024
- if (Lt(t))
9025
- this._createDoctypeToken(String.fromCharCode(Jt(t))), this.state = E.DOCTYPE_NAME;
9001
+ if (yt(t))
9002
+ this._createDoctypeToken(String.fromCharCode($t(t))), this.state = E.DOCTYPE_NAME;
9026
9003
  else
9027
9004
  switch (t) {
9028
9005
  case m.SPACE:
@@ -9075,7 +9052,7 @@ class Sf {
9075
9052
  break;
9076
9053
  }
9077
9054
  default:
9078
- n.name += String.fromCodePoint(Lt(t) ? Jt(t) : t);
9055
+ n.name += String.fromCodePoint(yt(t) ? $t(t) : t);
9079
9056
  }
9080
9057
  }
9081
9058
  // After DOCTYPE name state
@@ -10209,7 +10186,7 @@ const Mu = {
10209
10186
  ]);
10210
10187
  function Gf(e) {
10211
10188
  const t = e.tagID;
10212
- return t === s.FONT && e.attrs.some(({ name: r }) => r === et.COLOR || r === et.SIZE || r === et.FACE) || Qf.has(t);
10189
+ return t === s.FONT && e.attrs.some(({ name: r }) => r === Ze.COLOR || r === Ze.SIZE || r === Ze.FACE) || Qf.has(t);
10213
10190
  }
10214
10191
  function ia(e) {
10215
10192
  for (let t = 0; t < e.attrs.length; t++)
@@ -10232,7 +10209,7 @@ function Or(e) {
10232
10209
  }
10233
10210
  function Xf(e) {
10234
10211
  const t = Wf.get(e.tagName);
10235
- t != null && (e.tagName = t, e.tagID = At(e.tagName));
10212
+ t != null && (e.tagName = t, e.tagID = bt(e.tagName));
10236
10213
  }
10237
10214
  function Kf(e, t) {
10238
10215
  return t === y.MATHML && (e === s.MI || e === s.MO || e === s.MN || e === s.MS || e === s.MTEXT);
@@ -10240,7 +10217,7 @@ function Kf(e, t) {
10240
10217
  function $f(e, t, n) {
10241
10218
  if (t === y.MATHML && e === s.ANNOTATION_XML) {
10242
10219
  for (let r = 0; r < n.length; r++)
10243
- if (n[r].name === et.ENCODING) {
10220
+ if (n[r].name === Ze.ENCODING) {
10244
10221
  const u = n[r].value.toLowerCase();
10245
10222
  return u === Mu.TEXT_HTML || u === Mu.APPLICATION_XML;
10246
10223
  }
@@ -10273,7 +10250,7 @@ class Fu {
10273
10250
  this.fragmentContext = r, this.scriptHandler = u, this.currentToken = null, this.stopped = !1, this.insertionMode = T.INITIAL, this.originalInsertionMode = T.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
10274
10251
  ...Bu,
10275
10252
  ...t
10276
- }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Sf(this.options, this), this.activeFormattingElements = new wf(this.treeAdapter), this.fragmentContextID = r ? At(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Pf(this.document, this.treeAdapter, this);
10253
+ }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Sf(this.options, this), this.activeFormattingElements = new wf(this.treeAdapter), this.fragmentContextID = r ? bt(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Pf(this.document, this.treeAdapter, this);
10277
10254
  }
10278
10255
  // API
10279
10256
  static parse(t, n) {
@@ -10674,27 +10651,27 @@ class Fu {
10674
10651
  }
10675
10652
  switch (this.insertionMode) {
10676
10653
  case T.INITIAL: {
10677
- kt(this, t);
10654
+ St(this, t);
10678
10655
  break;
10679
10656
  }
10680
10657
  case T.BEFORE_HTML: {
10681
- Pt(this, t);
10658
+ Dt(this, t);
10682
10659
  break;
10683
10660
  }
10684
10661
  case T.BEFORE_HEAD: {
10685
- wt(this, t);
10662
+ Pt(this, t);
10686
10663
  break;
10687
10664
  }
10688
10665
  case T.IN_HEAD: {
10689
- Mt(this, t);
10666
+ wt(this, t);
10690
10667
  break;
10691
10668
  }
10692
10669
  case T.IN_HEAD_NO_SCRIPT: {
10693
- Bt(this, t);
10670
+ Mt(this, t);
10694
10671
  break;
10695
10672
  }
10696
10673
  case T.AFTER_HEAD: {
10697
- Ft(this, t);
10674
+ Bt(this, t);
10698
10675
  break;
10699
10676
  }
10700
10677
  case T.IN_BODY:
@@ -10729,7 +10706,7 @@ class Fu {
10729
10706
  break;
10730
10707
  }
10731
10708
  case T.AFTER_AFTER_BODY: {
10732
- an(this, t);
10709
+ un(this, t);
10733
10710
  break;
10734
10711
  }
10735
10712
  }
@@ -10742,27 +10719,27 @@ class Fu {
10742
10719
  }
10743
10720
  switch (this.insertionMode) {
10744
10721
  case T.INITIAL: {
10745
- kt(this, t);
10722
+ St(this, t);
10746
10723
  break;
10747
10724
  }
10748
10725
  case T.BEFORE_HTML: {
10749
- Pt(this, t);
10726
+ Dt(this, t);
10750
10727
  break;
10751
10728
  }
10752
10729
  case T.BEFORE_HEAD: {
10753
- wt(this, t);
10730
+ Pt(this, t);
10754
10731
  break;
10755
10732
  }
10756
10733
  case T.IN_HEAD: {
10757
- Mt(this, t);
10734
+ wt(this, t);
10758
10735
  break;
10759
10736
  }
10760
10737
  case T.IN_HEAD_NO_SCRIPT: {
10761
- Bt(this, t);
10738
+ Mt(this, t);
10762
10739
  break;
10763
10740
  }
10764
10741
  case T.AFTER_HEAD: {
10765
- Ft(this, t);
10742
+ Bt(this, t);
10766
10743
  break;
10767
10744
  }
10768
10745
  case T.TEXT: {
@@ -10784,7 +10761,7 @@ class Fu {
10784
10761
  break;
10785
10762
  }
10786
10763
  case T.AFTER_AFTER_BODY: {
10787
- an(this, t);
10764
+ un(this, t);
10788
10765
  break;
10789
10766
  }
10790
10767
  }
@@ -10818,7 +10795,7 @@ class Fu {
10818
10795
  break;
10819
10796
  }
10820
10797
  case T.IN_TABLE_TEXT: {
10821
- Ot(this, t);
10798
+ kt(this, t);
10822
10799
  break;
10823
10800
  }
10824
10801
  case T.AFTER_BODY: {
@@ -10847,7 +10824,7 @@ class Fu {
10847
10824
  break;
10848
10825
  }
10849
10826
  case T.IN_TABLE_TEXT: {
10850
- Ot(this, t);
10827
+ kt(this, t);
10851
10828
  break;
10852
10829
  }
10853
10830
  }
@@ -10874,7 +10851,7 @@ class Fu {
10874
10851
  _startTagOutsideForeignContent(t) {
10875
10852
  switch (this.insertionMode) {
10876
10853
  case T.INITIAL: {
10877
- kt(this, t);
10854
+ St(this, t);
10878
10855
  break;
10879
10856
  }
10880
10857
  case T.BEFORE_HTML: {
@@ -10902,11 +10879,11 @@ class Fu {
10902
10879
  break;
10903
10880
  }
10904
10881
  case T.IN_TABLE: {
10905
- pt(this, t);
10882
+ mt(this, t);
10906
10883
  break;
10907
10884
  }
10908
10885
  case T.IN_TABLE_TEXT: {
10909
- Ot(this, t);
10886
+ kt(this, t);
10910
10887
  break;
10911
10888
  }
10912
10889
  case T.IN_CAPTION: {
@@ -10971,7 +10948,7 @@ class Fu {
10971
10948
  _endTagOutsideForeignContent(t) {
10972
10949
  switch (this.insertionMode) {
10973
10950
  case T.INITIAL: {
10974
- kt(this, t);
10951
+ St(this, t);
10975
10952
  break;
10976
10953
  }
10977
10954
  case T.BEFORE_HTML: {
@@ -11003,11 +10980,11 @@ class Fu {
11003
10980
  break;
11004
10981
  }
11005
10982
  case T.IN_TABLE: {
11006
- vt(this, t);
10983
+ Ut(this, t);
11007
10984
  break;
11008
10985
  }
11009
10986
  case T.IN_TABLE_TEXT: {
11010
- Ot(this, t);
10987
+ kt(this, t);
11011
10988
  break;
11012
10989
  }
11013
10990
  case T.IN_CAPTION: {
@@ -11055,7 +11032,7 @@ class Fu {
11055
11032
  break;
11056
11033
  }
11057
11034
  case T.AFTER_AFTER_BODY: {
11058
- an(this, t);
11035
+ un(this, t);
11059
11036
  break;
11060
11037
  }
11061
11038
  }
@@ -11064,27 +11041,27 @@ class Fu {
11064
11041
  onEof(t) {
11065
11042
  switch (this.insertionMode) {
11066
11043
  case T.INITIAL: {
11067
- kt(this, t);
11044
+ St(this, t);
11068
11045
  break;
11069
11046
  }
11070
11047
  case T.BEFORE_HTML: {
11071
- Pt(this, t);
11048
+ Dt(this, t);
11072
11049
  break;
11073
11050
  }
11074
11051
  case T.BEFORE_HEAD: {
11075
- wt(this, t);
11052
+ Pt(this, t);
11076
11053
  break;
11077
11054
  }
11078
11055
  case T.IN_HEAD: {
11079
- Mt(this, t);
11056
+ wt(this, t);
11080
11057
  break;
11081
11058
  }
11082
11059
  case T.IN_HEAD_NO_SCRIPT: {
11083
- Bt(this, t);
11060
+ Mt(this, t);
11084
11061
  break;
11085
11062
  }
11086
11063
  case T.AFTER_HEAD: {
11087
- Ft(this, t);
11064
+ Bt(this, t);
11088
11065
  break;
11089
11066
  }
11090
11067
  case T.IN_BODY:
@@ -11104,7 +11081,7 @@ class Fu {
11104
11081
  break;
11105
11082
  }
11106
11083
  case T.IN_TABLE_TEXT: {
11107
- Ot(this, t);
11084
+ kt(this, t);
11108
11085
  break;
11109
11086
  }
11110
11087
  case T.IN_TEMPLATE: {
@@ -11196,7 +11173,7 @@ function ah(e, t) {
11196
11173
  return e.openElements.replace(t.element, r), t.element = r, r;
11197
11174
  }
11198
11175
  function sh(e, t, n) {
11199
- const r = e.treeAdapter.getTagName(t), u = At(r);
11176
+ const r = e.treeAdapter.getTagName(t), u = bt(r);
11200
11177
  if (e._isElementCausesFosterParenting(u))
11201
11178
  e._fosterParentElement(n);
11202
11179
  else {
@@ -11249,17 +11226,17 @@ function fh(e, t) {
11249
11226
  const n = t.forceQuirks ? be.QUIRKS : zf(t);
11250
11227
  vf(t) || e._err(t, C.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = T.BEFORE_HTML;
11251
11228
  }
11252
- function kt(e, t) {
11229
+ function St(e, t) {
11253
11230
  e._err(t, C.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, be.QUIRKS), e.insertionMode = T.BEFORE_HTML, e._processToken(t);
11254
11231
  }
11255
11232
  function hh(e, t) {
11256
- t.tagID === s.HTML ? (e._insertElement(t, y.HTML), e.insertionMode = T.BEFORE_HEAD) : Pt(e, t);
11233
+ t.tagID === s.HTML ? (e._insertElement(t, y.HTML), e.insertionMode = T.BEFORE_HEAD) : Dt(e, t);
11257
11234
  }
11258
11235
  function dh(e, t) {
11259
11236
  const n = t.tagID;
11260
- (n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) && Pt(e, t);
11237
+ (n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) && Dt(e, t);
11261
11238
  }
11262
- function Pt(e, t) {
11239
+ function Dt(e, t) {
11263
11240
  e._insertFakeRootElement(), e.insertionMode = T.BEFORE_HEAD, e._processToken(t);
11264
11241
  }
11265
11242
  function mh(e, t) {
@@ -11273,14 +11250,14 @@ function mh(e, t) {
11273
11250
  break;
11274
11251
  }
11275
11252
  default:
11276
- wt(e, t);
11253
+ Pt(e, t);
11277
11254
  }
11278
11255
  }
11279
11256
  function ph(e, t) {
11280
11257
  const n = t.tagID;
11281
- n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? wt(e, t) : e._err(t, C.endTagWithoutMatchingOpenElement);
11258
+ n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? Pt(e, t) : e._err(t, C.endTagWithoutMatchingOpenElement);
11282
11259
  }
11283
- function wt(e, t) {
11260
+ function Pt(e, t) {
11284
11261
  e._insertFakeElement(_.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = T.IN_HEAD, e._processToken(t);
11285
11262
  }
11286
11263
  function Ne(e, t) {
@@ -11323,7 +11300,7 @@ function Ne(e, t) {
11323
11300
  break;
11324
11301
  }
11325
11302
  default:
11326
- Mt(e, t);
11303
+ wt(e, t);
11327
11304
  }
11328
11305
  }
11329
11306
  function Eh(e, t) {
@@ -11335,7 +11312,7 @@ function Eh(e, t) {
11335
11312
  case s.BODY:
11336
11313
  case s.BR:
11337
11314
  case s.HTML: {
11338
- Mt(e, t);
11315
+ wt(e, t);
11339
11316
  break;
11340
11317
  }
11341
11318
  case s.TEMPLATE: {
@@ -11349,7 +11326,7 @@ function Eh(e, t) {
11349
11326
  function rt(e, t) {
11350
11327
  e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t, C.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, C.endTagWithoutMatchingOpenElement);
11351
11328
  }
11352
- function Mt(e, t) {
11329
+ function wt(e, t) {
11353
11330
  e.openElements.pop(), e.insertionMode = T.AFTER_HEAD, e._processToken(t);
11354
11331
  }
11355
11332
  function Th(e, t) {
@@ -11373,7 +11350,7 @@ function Th(e, t) {
11373
11350
  break;
11374
11351
  }
11375
11352
  default:
11376
- Bt(e, t);
11353
+ Mt(e, t);
11377
11354
  }
11378
11355
  }
11379
11356
  function gh(e, t) {
@@ -11383,14 +11360,14 @@ function gh(e, t) {
11383
11360
  break;
11384
11361
  }
11385
11362
  case s.BR: {
11386
- Bt(e, t);
11363
+ Mt(e, t);
11387
11364
  break;
11388
11365
  }
11389
11366
  default:
11390
11367
  e._err(t, C.endTagWithoutMatchingOpenElement);
11391
11368
  }
11392
11369
  }
11393
- function Bt(e, t) {
11370
+ function Mt(e, t) {
11394
11371
  const n = t.type === q.EOF ? C.openElementsLeftAfterEof : C.disallowedContentInNoscriptInHead;
11395
11372
  e._err(t, n), e.openElements.pop(), e.insertionMode = T.IN_HEAD, e._processToken(t);
11396
11373
  }
@@ -11426,7 +11403,7 @@ function bh(e, t) {
11426
11403
  break;
11427
11404
  }
11428
11405
  default:
11429
- Ft(e, t);
11406
+ Bt(e, t);
11430
11407
  }
11431
11408
  }
11432
11409
  function Ah(e, t) {
@@ -11434,7 +11411,7 @@ function Ah(e, t) {
11434
11411
  case s.BODY:
11435
11412
  case s.HTML:
11436
11413
  case s.BR: {
11437
- Ft(e, t);
11414
+ Bt(e, t);
11438
11415
  break;
11439
11416
  }
11440
11417
  case s.TEMPLATE: {
@@ -11445,7 +11422,7 @@ function Ah(e, t) {
11445
11422
  e._err(t, C.endTagWithoutMatchingOpenElement);
11446
11423
  }
11447
11424
  }
11448
- function Ft(e, t) {
11425
+ function Bt(e, t) {
11449
11426
  e._insertFakeElement(_.BODY, s.BODY), e.insertionMode = T.IN_BODY, xn(e, t);
11450
11427
  }
11451
11428
  function xn(e, t) {
@@ -11546,7 +11523,7 @@ function ca(e, t) {
11546
11523
  e._reconstructActiveFormattingElements(), e._appendElement(t, y.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
11547
11524
  }
11548
11525
  function fa(e) {
11549
- const t = Ki(e, et.TYPE);
11526
+ const t = Ki(e, Ze.TYPE);
11550
11527
  return t != null && t.toLowerCase() === Zf;
11551
11528
  }
11552
11529
  function Bh(e, t) {
@@ -11977,7 +11954,7 @@ function jn(e, t) {
11977
11954
  }
11978
11955
  }
11979
11956
  else
11980
- Vt(e, t);
11957
+ jt(e, t);
11981
11958
  }
11982
11959
  function sd(e, t) {
11983
11960
  e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, y.HTML), e.insertionMode = T.IN_CAPTION;
@@ -11998,12 +11975,12 @@ function hd(e, t) {
11998
11975
  e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode(), e._processStartTag(t));
11999
11976
  }
12000
11977
  function dd(e, t) {
12001
- fa(t) ? e._appendElement(t, y.HTML) : Vt(e, t), t.ackSelfClosing = !0;
11978
+ fa(t) ? e._appendElement(t, y.HTML) : jt(e, t), t.ackSelfClosing = !0;
12002
11979
  }
12003
11980
  function md(e, t) {
12004
11981
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, y.HTML), e.formElement = e.openElements.current, e.openElements.pop());
12005
11982
  }
12006
- function pt(e, t) {
11983
+ function mt(e, t) {
12007
11984
  switch (t.tagID) {
12008
11985
  case s.TD:
12009
11986
  case s.TH:
@@ -12048,10 +12025,10 @@ function pt(e, t) {
12048
12025
  break;
12049
12026
  }
12050
12027
  default:
12051
- Vt(e, t);
12028
+ jt(e, t);
12052
12029
  }
12053
12030
  }
12054
- function vt(e, t) {
12031
+ function Ut(e, t) {
12055
12032
  switch (t.tagID) {
12056
12033
  case s.TABLE: {
12057
12034
  e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode());
@@ -12074,10 +12051,10 @@ function vt(e, t) {
12074
12051
  case s.TR:
12075
12052
  break;
12076
12053
  default:
12077
- Vt(e, t);
12054
+ jt(e, t);
12078
12055
  }
12079
12056
  }
12080
- function Vt(e, t) {
12057
+ function jt(e, t) {
12081
12058
  const n = e.fosterParentingEnabled;
12082
12059
  e.fosterParentingEnabled = !0, xn(e, t), e.fosterParentingEnabled = n;
12083
12060
  }
@@ -12087,11 +12064,11 @@ function ma(e, t) {
12087
12064
  function pa(e, t) {
12088
12065
  e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
12089
12066
  }
12090
- function Ot(e, t) {
12067
+ function kt(e, t) {
12091
12068
  let n = 0;
12092
12069
  if (e.hasNonWhitespacePendingCharacterToken)
12093
12070
  for (; n < e.pendingCharacterTokens.length; n++)
12094
- Vt(e, e.pendingCharacterTokens[n]);
12071
+ jt(e, e.pendingCharacterTokens[n]);
12095
12072
  else
12096
12073
  for (; n < e.pendingCharacterTokens.length; n++)
12097
12074
  e._insertCharacters(e.pendingCharacterTokens[n]);
@@ -12100,14 +12077,14 @@ function Ot(e, t) {
12100
12077
  const Ea = /* @__PURE__ */ new Set([s.CAPTION, s.COL, s.COLGROUP, s.TBODY, s.TD, s.TFOOT, s.TH, s.THEAD, s.TR]);
12101
12078
  function pd(e, t) {
12102
12079
  const n = t.tagID;
12103
- Ea.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, pt(e, t)) : he(e, t);
12080
+ Ea.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, mt(e, t)) : he(e, t);
12104
12081
  }
12105
12082
  function Ed(e, t) {
12106
12083
  const n = t.tagID;
12107
12084
  switch (n) {
12108
12085
  case s.CAPTION:
12109
12086
  case s.TABLE: {
12110
- e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, n === s.TABLE && vt(e, t));
12087
+ e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = T.IN_TABLE, n === s.TABLE && Ut(e, t));
12111
12088
  break;
12112
12089
  }
12113
12090
  case s.BODY:
@@ -12179,11 +12156,11 @@ function Sn(e, t) {
12179
12156
  case s.TBODY:
12180
12157
  case s.TFOOT:
12181
12158
  case s.THEAD: {
12182
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE, pt(e, t));
12159
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE, mt(e, t));
12183
12160
  break;
12184
12161
  }
12185
12162
  default:
12186
- pt(e, t);
12163
+ mt(e, t);
12187
12164
  }
12188
12165
  }
12189
12166
  function ar(e, t) {
@@ -12196,7 +12173,7 @@ function ar(e, t) {
12196
12173
  break;
12197
12174
  }
12198
12175
  case s.TABLE: {
12199
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE, vt(e, t));
12176
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = T.IN_TABLE, Ut(e, t));
12200
12177
  break;
12201
12178
  }
12202
12179
  case s.BODY:
@@ -12209,7 +12186,7 @@ function ar(e, t) {
12209
12186
  case s.TR:
12210
12187
  break;
12211
12188
  default:
12212
- vt(e, t);
12189
+ Ut(e, t);
12213
12190
  }
12214
12191
  }
12215
12192
  function kn(e, t) {
@@ -12230,7 +12207,7 @@ function kn(e, t) {
12230
12207
  break;
12231
12208
  }
12232
12209
  default:
12233
- pt(e, t);
12210
+ mt(e, t);
12234
12211
  }
12235
12212
  }
12236
12213
  function Ta(e, t) {
@@ -12258,7 +12235,7 @@ function Ta(e, t) {
12258
12235
  case s.TH:
12259
12236
  break;
12260
12237
  default:
12261
- vt(e, t);
12238
+ Ut(e, t);
12262
12239
  }
12263
12240
  }
12264
12241
  function gd(e, t) {
@@ -12373,7 +12350,7 @@ function Cd(e, t) {
12373
12350
  case s.TBODY:
12374
12351
  case s.TFOOT:
12375
12352
  case s.THEAD: {
12376
- e.tmplInsertionModeStack[0] = T.IN_TABLE, e.insertionMode = T.IN_TABLE, pt(e, t);
12353
+ e.tmplInsertionModeStack[0] = T.IN_TABLE, e.insertionMode = T.IN_TABLE, mt(e, t);
12377
12354
  break;
12378
12355
  }
12379
12356
  case s.COL: {
@@ -12455,9 +12432,9 @@ function Od(e, t) {
12455
12432
  t.tagID === s.HTML && (e.insertionMode = T.AFTER_AFTER_FRAMESET);
12456
12433
  }
12457
12434
  function yd(e, t) {
12458
- t.tagID === s.HTML ? he(e, t) : an(e, t);
12435
+ t.tagID === s.HTML ? he(e, t) : un(e, t);
12459
12436
  }
12460
- function an(e, t) {
12437
+ function un(e, t) {
12461
12438
  e.insertionMode = T.IN_BODY, xn(e, t);
12462
12439
  }
12463
12440
  function Ld(e, t) {
@@ -12528,7 +12505,7 @@ function Ia(e, t) {
12528
12505
  stitches: !1,
12529
12506
  options: t || {}
12530
12507
  };
12531
- r(e, u), _t(u, We());
12508
+ r(e, u), At(u, Ve());
12532
12509
  const a = n ? u.parser.document : u.parser.getFragment(), i = Q0(a, {
12533
12510
  // To do: support `space`?
12534
12511
  file: u.options.file
@@ -12562,9 +12539,9 @@ function Ud(e, t) {
12562
12539
  const n = {
12563
12540
  type: q.CHARACTER,
12564
12541
  chars: e.value,
12565
- location: Wt(e)
12542
+ location: Vt(e)
12566
12543
  };
12567
- _t(t, We(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
12544
+ At(t, Ve(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
12568
12545
  }
12569
12546
  function vd(e, t) {
12570
12547
  const n = {
@@ -12573,9 +12550,9 @@ function vd(e, t) {
12573
12550
  forceQuirks: !1,
12574
12551
  publicId: "",
12575
12552
  systemId: "",
12576
- location: Wt(e)
12553
+ location: Vt(e)
12577
12554
  };
12578
- _t(t, We(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
12555
+ At(t, Ve(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
12579
12556
  }
12580
12557
  function zd(e, t) {
12581
12558
  t.stitches = !0;
@@ -12593,12 +12570,12 @@ function Na(e, t) {
12593
12570
  const n = e.value, r = {
12594
12571
  type: q.COMMENT,
12595
12572
  data: n,
12596
- location: Wt(e)
12573
+ location: Vt(e)
12597
12574
  };
12598
- _t(t, We(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
12575
+ At(t, Ve(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
12599
12576
  }
12600
12577
  function Yd(e, t) {
12601
- if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Sa(t, We(e)), t.parser.tokenizer.write(
12578
+ if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Sa(t, Ve(e)), t.parser.tokenizer.write(
12602
12579
  t.options.tagfilter ? e.value.replace(Md, "&lt;$1$2") : e.value,
12603
12580
  !1
12604
12581
  ), t.parser.tokenizer._runParsingLoop(), t.parser.tokenizer.state === 72 || // @ts-expect-error: removed.
@@ -12620,7 +12597,7 @@ function qd(e, t) {
12620
12597
  throw Bd.has(n.type) && (r = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + r);
12621
12598
  }
12622
12599
  }
12623
- function _t(e, t) {
12600
+ function At(e, t) {
12624
12601
  Sa(e, t);
12625
12602
  const n = e.parser.tokenizer.currentCharacterToken;
12626
12603
  n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = re.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
@@ -12641,40 +12618,40 @@ function Sa(e, t) {
12641
12618
  function jd(e, t) {
12642
12619
  const n = e.tagName.toLowerCase();
12643
12620
  if (t.parser.tokenizer.state === re.PLAINTEXT) return;
12644
- _t(t, We(e));
12621
+ At(t, Ve(e));
12645
12622
  const r = t.parser.openElements.current;
12646
- let u = "namespaceURI" in r ? r.namespaceURI : Ze.html;
12647
- u === Ze.html && n === "svg" && (u = Ze.svg);
12623
+ let u = "namespaceURI" in r ? r.namespaceURI : Je.html;
12624
+ u === Je.html && n === "svg" && (u = Je.svg);
12648
12625
  const a = J0(
12649
12626
  // Shallow clone to not delve into `children`: we only need the attributes.
12650
12627
  { ...e, children: [] },
12651
- { space: u === Ze.svg ? "svg" : "html" }
12628
+ { space: u === Je.svg ? "svg" : "html" }
12652
12629
  ), i = {
12653
12630
  type: q.START_TAG,
12654
12631
  tagName: n,
12655
- tagID: At(n),
12632
+ tagID: bt(n),
12656
12633
  // We always send start and end tags.
12657
12634
  selfClosing: !1,
12658
12635
  ackSelfClosing: !1,
12659
12636
  // Always element.
12660
12637
  /* c8 ignore next */
12661
12638
  attrs: "attrs" in a ? a.attrs : [],
12662
- location: Wt(e)
12639
+ location: Vt(e)
12663
12640
  };
12664
12641
  t.parser.currentToken = i, t.parser._processToken(t.parser.currentToken), t.parser.tokenizer.lastStartTagName = n;
12665
12642
  }
12666
12643
  function Vd(e, t) {
12667
12644
  const n = e.tagName.toLowerCase();
12668
12645
  if (!t.parser.tokenizer.inForeignNode && qs.includes(n) || t.parser.tokenizer.state === re.PLAINTEXT) return;
12669
- _t(t, cr(e));
12646
+ At(t, cr(e));
12670
12647
  const r = {
12671
12648
  type: q.END_TAG,
12672
12649
  tagName: n,
12673
- tagID: At(n),
12650
+ tagID: bt(n),
12674
12651
  selfClosing: !1,
12675
12652
  ackSelfClosing: !1,
12676
12653
  attrs: [],
12677
- location: Wt(e)
12654
+ location: Vt(e)
12678
12655
  };
12679
12656
  t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken), // Current element is closed.
12680
12657
  n === t.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
@@ -12686,8 +12663,8 @@ function Wd(e) {
12686
12663
  const t = e.type === "root" ? e.children[0] : e;
12687
12664
  return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
12688
12665
  }
12689
- function Wt(e) {
12690
- const t = We(e) || {
12666
+ function Vt(e) {
12667
+ const t = Ve(e) || {
12691
12668
  line: void 0,
12692
12669
  column: void 0,
12693
12670
  offset: void 0
@@ -12907,7 +12884,7 @@ function ka(e, t) {
12907
12884
  return (e.index === 0 || tt(n) || bn(n)) && // If it’s an email, the previous character should not be a slash.
12908
12885
  (!t || n !== 47);
12909
12886
  }
12910
- function Qt(e) {
12887
+ function Wt(e) {
12911
12888
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
12912
12889
  }
12913
12890
  Oa.peek = Am;
@@ -12928,7 +12905,7 @@ function pm(e) {
12928
12905
  }
12929
12906
  function Em(e) {
12930
12907
  const t = this.resume(), n = this.stack[this.stack.length - 1];
12931
- Me(n.type === "footnoteReference"), n.identifier = Qt(
12908
+ Me(n.type === "footnoteReference"), n.identifier = Wt(
12932
12909
  this.sliceSerialize(e)
12933
12910
  ).toLowerCase(), n.label = t;
12934
12911
  }
@@ -12937,7 +12914,7 @@ function Tm(e) {
12937
12914
  }
12938
12915
  function gm(e) {
12939
12916
  const t = this.resume(), n = this.stack[this.stack.length - 1];
12940
- Me(n.type === "footnoteDefinition"), n.identifier = Qt(
12917
+ Me(n.type === "footnoteDefinition"), n.identifier = Wt(
12941
12918
  this.sliceSerialize(e)
12942
12919
  ).toLowerCase(), n.label = t;
12943
12920
  }
@@ -13257,11 +13234,11 @@ function Ym(e) {
13257
13234
  );
13258
13235
  return t;
13259
13236
  }
13260
- function zt(e) {
13237
+ function vt(e) {
13261
13238
  return "&#x" + e.toString(16).toUpperCase() + ";";
13262
13239
  }
13263
13240
  function En(e, t, n) {
13264
- const r = mt(e), u = mt(t);
13241
+ const r = dt(e), u = dt(t);
13265
13242
  return r === void 0 ? u === void 0 ? (
13266
13243
  // Letter inside:
13267
13244
  // we have to encode *both* letters for `_` as it is looser.
@@ -13308,9 +13285,9 @@ function Ra(e, t, n, r) {
13308
13285
  c,
13309
13286
  u
13310
13287
  );
13311
- h.inside && (l = zt(c) + l.slice(1));
13288
+ h.inside && (l = vt(c) + l.slice(1));
13312
13289
  const f = l.charCodeAt(l.length - 1), p = En(r.after.charCodeAt(0), f, u);
13313
- p.inside && (l = l.slice(0, -1) + zt(f));
13290
+ p.inside && (l = l.slice(0, -1) + vt(f));
13314
13291
  const d = i.move(u);
13315
13292
  return a(), n.attentionEncodeSurroundingInfo = {
13316
13293
  after: p.outside,
@@ -13354,7 +13331,7 @@ function Vm(e, t, n, r) {
13354
13331
  `,
13355
13332
  ...a.current()
13356
13333
  });
13357
- return /^[\t ]/.test(c) && (c = zt(c.charCodeAt(0)) + c.slice(1)), c = c ? i + " " + c : i, n.options.closeAtx && (c += " " + i), l(), o(), c;
13334
+ return /^[\t ]/.test(c) && (c = vt(c.charCodeAt(0)) + c.slice(1)), c = c ? i + " " + c : i, n.options.closeAtx && (c += " " + i), l(), o(), c;
13358
13335
  }
13359
13336
  Da.peek = Wm;
13360
13337
  function Da(e) {
@@ -13664,9 +13641,9 @@ function va(e, t, n, r) {
13664
13641
  c,
13665
13642
  u
13666
13643
  );
13667
- h.inside && (l = zt(c) + l.slice(1));
13644
+ h.inside && (l = vt(c) + l.slice(1));
13668
13645
  const f = l.charCodeAt(l.length - 1), p = En(r.after.charCodeAt(0), f, u);
13669
- p.inside && (l = l.slice(0, -1) + zt(f));
13646
+ p.inside && (l = l.slice(0, -1) + vt(f));
13670
13647
  const d = i.move(u + u);
13671
13648
  return a(), n.attentionEncodeSurroundingInfo = {
13672
13649
  after: p.outside,
@@ -13913,7 +13890,7 @@ function I1(e) {
13913
13890
  ]
13914
13891
  };
13915
13892
  }
13916
- function sn(e, t, n, r) {
13893
+ function an(e, t, n, r) {
13917
13894
  const u = e.length;
13918
13895
  let a = 0, i;
13919
13896
  if (t < 0 ? t = -t > u ? 0 : u + t : t = t > u ? u : t, n = n > 0 ? n : 0, r.length < 1e4)
@@ -13952,7 +13929,7 @@ function S1(e, t) {
13952
13929
  const r = [];
13953
13930
  for (; ++n < t.length; )
13954
13931
  (t[n].add === "after" ? e : r).push(t[n]);
13955
- sn(e, 0, 0, r);
13932
+ an(e, 0, 0, r);
13956
13933
  }
13957
13934
  const k1 = {
13958
13935
  tokenize: P1,
@@ -13987,9 +13964,9 @@ function y1() {
13987
13964
  text: ye
13988
13965
  };
13989
13966
  }
13990
- let Je = 48;
13991
- for (; Je < 123; )
13992
- ye[Je] = Be, Je++, Je === 58 ? Je = 65 : Je === 91 && (Je = 97);
13967
+ let $e = 48;
13968
+ for (; $e < 123; )
13969
+ ye[$e] = Be, $e++, $e === 58 ? $e = 65 : $e === 91 && ($e = 97);
13993
13970
  ye[43] = Be;
13994
13971
  ye[45] = Be;
13995
13972
  ye[46] = Be;
@@ -14213,7 +14190,7 @@ function q1(e, t, n) {
14213
14190
  function o(l) {
14214
14191
  if (!i || !i._balanced)
14215
14192
  return n(l);
14216
- const c = Qt(r.sliceSerialize({
14193
+ const c = Wt(r.sliceSerialize({
14217
14194
  start: i.end,
14218
14195
  end: r.now()
14219
14196
  }));
@@ -14292,7 +14269,7 @@ function V1(e, t, n) {
14292
14269
  if (f === 93) {
14293
14270
  e.exit("chunkString");
14294
14271
  const p = e.exit("gfmFootnoteCallString");
14295
- return u.includes(Qt(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(f), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(f);
14272
+ return u.includes(Wt(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(f), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(f);
14296
14273
  }
14297
14274
  return J(f) || (i = !0), a++, e.consume(f), f === 92 ? h : c;
14298
14275
  }
@@ -14322,7 +14299,7 @@ function W1(e, t, n) {
14322
14299
  if (A === 93) {
14323
14300
  e.exit("chunkString");
14324
14301
  const I = e.exit("gfmFootnoteDefinitionLabelString");
14325
- return a = Qt(r.sliceSerialize(I)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(A), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
14302
+ return a = Wt(r.sliceSerialize(I)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(A), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
14326
14303
  }
14327
14304
  return J(A) || (o = !0), i++, e.consume(A), A === 92 ? f : h;
14328
14305
  }
@@ -14386,7 +14363,7 @@ function K1(e) {
14386
14363
  start: Object.assign({}, i[c][1].end),
14387
14364
  end: Object.assign({}, i[l][1].start)
14388
14365
  }, p = [["enter", h, o], ["enter", i[c][1], o], ["exit", i[c][1], o], ["enter", f, o]], d = o.parser.constructs.insideSpan.null;
14389
- d && sn(p, p.length, 0, H1(d, i.slice(c + 1, l), o)), sn(p, p.length, 0, [["exit", f, o], ["enter", i[l][1], o], ["exit", i[l][1], o], ["exit", h, o]]), sn(i, c - 1, l - c + 3, p), l = c + p.length - 2;
14366
+ d && an(p, p.length, 0, H1(d, i.slice(c + 1, l), o)), an(p, p.length, 0, [["exit", f, o], ["enter", i[l][1], o], ["exit", i[l][1], o], ["exit", h, o]]), an(i, c - 1, l - c + 3, p), l = c + p.length - 2;
14390
14367
  break;
14391
14368
  }
14392
14369
  }
@@ -14402,11 +14379,11 @@ function K1(e) {
14402
14379
  return c === 126 && h[h.length - 1][1].type !== "characterEscape" ? l(A) : (i.enter("strikethroughSequenceTemporary"), d(A));
14403
14380
  }
14404
14381
  function d(A) {
14405
- const I = mt(c);
14382
+ const I = dt(c);
14406
14383
  if (A === 126)
14407
14384
  return f > 1 ? l(A) : (i.consume(A), f++, d);
14408
14385
  if (f < 2 && !n) return l(A);
14409
- const L = i.exit("strikethroughSequenceTemporary"), x = mt(A);
14386
+ const L = i.exit("strikethroughSequenceTemporary"), x = dt(A);
14410
14387
  return L._open = !x || x === 2 && !!I, L._close = !I || I === 2 && !!x, o(A);
14411
14388
  }
14412
14389
  }
@@ -14595,7 +14572,7 @@ function np(e, t) {
14595
14572
  start: Object.assign({}, A.start),
14596
14573
  // Note: correct end is set later.
14597
14574
  end: Object.assign({}, A.end)
14598
- }, p.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, i[2] === 0 && (a[1] !== 0 && (i[0] = i[1], f = Zt(p, t, a, u, void 0, f), a = [0, 0, 0, 0]), i[2] = n)) : A.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (i[0] = i[1], f = Zt(p, t, a, u, void 0, f)), a = i, i = [a[1], n, 0, 0])) : A.type === "tableHead" ? (o = !0, l = n) : A.type === "tableRow" || A.type === "tableDelimiterRow" ? (l = n, a[1] !== 0 ? (i[0] = i[1], f = Zt(p, t, a, u, n, f)) : i[1] !== 0 && (f = Zt(p, t, i, u, n, f)), u = 0) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") && (i[3] = n);
14575
+ }, p.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, i[2] === 0 && (a[1] !== 0 && (i[0] = i[1], f = Jt(p, t, a, u, void 0, f), a = [0, 0, 0, 0]), i[2] = n)) : A.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (i[0] = i[1], f = Jt(p, t, a, u, void 0, f)), a = i, i = [a[1], n, 0, 0])) : A.type === "tableHead" ? (o = !0, l = n) : A.type === "tableRow" || A.type === "tableDelimiterRow" ? (l = n, a[1] !== 0 ? (i[0] = i[1], f = Jt(p, t, a, u, n, f)) : i[1] !== 0 && (f = Jt(p, t, i, u, n, f)), u = 0) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") && (i[3] = n);
14599
14576
  }
14600
14577
  for (l !== 0 && Qu(p, t, l, c, h), p.consume(t.events), n = -1; ++n < t.events.length; ) {
14601
14578
  const d = t.events[n];
@@ -14603,7 +14580,7 @@ function np(e, t) {
14603
14580
  }
14604
14581
  return e;
14605
14582
  }
14606
- function Zt(e, t, n, r, u, a) {
14583
+ function Jt(e, t, n, r, u, a) {
14607
14584
  const i = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", o = "tableContent";
14608
14585
  n[0] !== 0 && (a.end = Object.assign({}, lt(t.events, n[0])), e.add(n[0], 0, [["exit", a, t]]));
14609
14586
  const l = lt(t.events, n[1]);
@@ -14751,7 +14728,7 @@ const cp = ({
14751
14728
  "div",
14752
14729
  {
14753
14730
  className: ie(
14754
- "code-block text-sm not-prose scrollbar overflow-x-auto scrollbar p-4",
14731
+ "code-block text-sm not-prose scrollbar overflow-x-auto scrollbar [&>code]:p-4",
14755
14732
  i.className
14756
14733
  ),
14757
14734
  ref: c,
@@ -14771,7 +14748,7 @@ const cp = ({
14771
14748
  }
14772
14749
  }), Mr = () => li(Ka), fp = () => {
14773
14750
  const e = je(null), { observe: t, unobserve: n } = Mr();
14774
- return Ve(() => {
14751
+ return et(() => {
14775
14752
  const u = e.current;
14776
14753
  if (u)
14777
14754
  return t(u), () => n(u);
@@ -14779,8 +14756,8 @@ const cp = ({
14779
14756
  u && (e.current = u);
14780
14757
  }, []) };
14781
14758
  }, PE = ({ children: e }) => {
14782
- const [t, n] = dt(""), r = je(null), u = je(/* @__PURE__ */ new Set()), a = je(/* @__PURE__ */ new Set());
14783
- Ve(() => (r.current = new IntersectionObserver(
14759
+ const [t, n] = sn(""), r = je(null), u = je(/* @__PURE__ */ new Set()), a = je(/* @__PURE__ */ new Set());
14760
+ et(() => (r.current = new IntersectionObserver(
14784
14761
  (l) => {
14785
14762
  for (const c of l)
14786
14763
  c.isIntersecting && c.target.id && n(c.target.id);
@@ -14791,7 +14768,7 @@ const cp = ({
14791
14768
  }
14792
14769
  ), a.current.forEach((l) => {
14793
14770
  u.current.add(l), r.current?.observe(l);
14794
- }), a.current.clear(), () => r.current?.disconnect()), []), Ve(() => {
14771
+ }), a.current.clear(), () => r.current?.disconnect()), []), et(() => {
14795
14772
  const l = u.current, c = () => {
14796
14773
  const h = window.scrollY === 0, f = window.innerHeight + window.scrollY >= document.body.scrollHeight;
14797
14774
  if (h)
@@ -14805,7 +14782,7 @@ const cp = ({
14805
14782
  l.clear(), document.removeEventListener("scroll", c);
14806
14783
  };
14807
14784
  }, []);
14808
- const i = Ht(() => ({
14785
+ const i = Ft(() => ({
14809
14786
  observe: (l) => {
14810
14787
  if (l) {
14811
14788
  if (!r.current) {
@@ -14818,19 +14795,19 @@ const cp = ({
14818
14795
  unobserve: (l) => {
14819
14796
  l && (a.current.delete(l), u.current.delete(l), r.current?.unobserve(l));
14820
14797
  }
14821
- }), []), o = Ht(
14798
+ }), []), o = Ft(
14822
14799
  () => ({ activeAnchor: t, setActiveAnchor: n, ...i }),
14823
14800
  [t, n, i]
14824
14801
  );
14825
14802
  return /* @__PURE__ */ k.jsx(Ka, { value: o, children: e });
14826
- }, hp = Et.Provider, dp = Et.Root, mp = Et.Trigger, pp = (e) => /* @__PURE__ */ k.jsx(
14827
- Et.Arrow,
14803
+ }, hp = pt.Provider, dp = pt.Root, mp = pt.Trigger, pp = (e) => /* @__PURE__ */ k.jsx(
14804
+ pt.Arrow,
14828
14805
  {
14829
14806
  ...e,
14830
14807
  className: ie(e.className, "fill-border")
14831
14808
  }
14832
14809
  ), $a = Ms.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ k.jsx(
14833
- Et.Content,
14810
+ pt.Content,
14834
14811
  {
14835
14812
  ref: r,
14836
14813
  sideOffset: t,
@@ -14841,7 +14818,7 @@ const cp = ({
14841
14818
  ...n
14842
14819
  }
14843
14820
  ));
14844
- $a.displayName = Et.Content.displayName;
14821
+ $a.displayName = pt.Content.displayName;
14845
14822
  const Ep = {
14846
14823
  green: "bg-green-400 dark:bg-green-800",
14847
14824
  blue: "bg-sky-400 dark:bg-sky-800",
@@ -14883,7 +14860,7 @@ function Xu(e, t) {
14883
14860
  return e(r, u, a) && t(r, u, a);
14884
14861
  };
14885
14862
  }
14886
- function en(e) {
14863
+ function Zt(e) {
14887
14864
  return function(n, r, u) {
14888
14865
  if (!n || !r || typeof n != "object" || typeof r != "object")
14889
14866
  return e(n, r, u);
@@ -14958,7 +14935,7 @@ function Lp(e, t, n) {
14958
14935
  return !1;
14959
14936
  return !0;
14960
14937
  }
14961
- function yt(e, t, n) {
14938
+ function Ot(e, t, n) {
14962
14939
  var r = Ku(e), u = r.length;
14963
14940
  if (Ku(t).length !== u)
14964
14941
  return !1;
@@ -15043,21 +15020,21 @@ function Gp(e) {
15043
15020
  }
15044
15021
  function Xp(e) {
15045
15022
  var t = e.circular, n = e.createCustomConfig, r = e.strict, u = {
15046
- areArraysEqual: r ? yt : Np,
15023
+ areArraysEqual: r ? Ot : Np,
15047
15024
  areDatesEqual: Sp,
15048
15025
  areErrorsEqual: kp,
15049
15026
  areFunctionsEqual: Op,
15050
- areMapsEqual: r ? Xu(Zu, yt) : Zu,
15027
+ areMapsEqual: r ? Xu(Zu, Ot) : Zu,
15051
15028
  areNumbersEqual: yp,
15052
- areObjectsEqual: r ? yt : Lp,
15029
+ areObjectsEqual: r ? Ot : Lp,
15053
15030
  arePrimitiveWrappersEqual: Rp,
15054
15031
  areRegExpsEqual: Dp,
15055
- areSetsEqual: r ? Xu(ei, yt) : ei,
15056
- areTypedArraysEqual: r ? yt : Pp,
15032
+ areSetsEqual: r ? Xu(ei, Ot) : ei,
15033
+ areTypedArraysEqual: r ? Ot : Pp,
15057
15034
  areUrlsEqual: wp
15058
15035
  };
15059
15036
  if (n && (u = ni({}, u, n(u))), t) {
15060
- var a = en(u.areArraysEqual), i = en(u.areMapsEqual), o = en(u.areObjectsEqual), l = en(u.areSetsEqual);
15037
+ var a = Zt(u.areArraysEqual), i = Zt(u.areMapsEqual), o = Zt(u.areObjectsEqual), l = Zt(u.areSetsEqual);
15061
15038
  u = ni({}, u, {
15062
15039
  areArraysEqual: a,
15063
15040
  areMapsEqual: i,
@@ -15103,38 +15080,38 @@ function $p(e) {
15103
15080
  return n(l, c, i);
15104
15081
  };
15105
15082
  }
15106
- var Jp = Ge();
15107
- Ge({ strict: !0 });
15108
- Ge({ circular: !0 });
15109
- Ge({
15083
+ var Jp = Qe();
15084
+ Qe({ strict: !0 });
15085
+ Qe({ circular: !0 });
15086
+ Qe({
15110
15087
  circular: !0,
15111
15088
  strict: !0
15112
15089
  });
15113
- Ge({
15090
+ Qe({
15114
15091
  createInternalComparator: function() {
15115
15092
  return ut;
15116
15093
  }
15117
15094
  });
15118
- Ge({
15095
+ Qe({
15119
15096
  strict: !0,
15120
15097
  createInternalComparator: function() {
15121
15098
  return ut;
15122
15099
  }
15123
15100
  });
15124
- Ge({
15101
+ Qe({
15125
15102
  circular: !0,
15126
15103
  createInternalComparator: function() {
15127
15104
  return ut;
15128
15105
  }
15129
15106
  });
15130
- Ge({
15107
+ Qe({
15131
15108
  circular: !0,
15132
15109
  createInternalComparator: function() {
15133
15110
  return ut;
15134
15111
  },
15135
15112
  strict: !0
15136
15113
  });
15137
- function Ge(e) {
15114
+ function Qe(e) {
15138
15115
  e === void 0 && (e = {});
15139
15116
  var t = e.circular, n = t === void 0 ? !1 : t, r = e.createInternalComparator, u = e.createState, a = e.strict, i = a === void 0 ? !1 : a, o = Xp(e), l = Gp(o), c = r ? r(l) : Kp(l);
15140
15117
  return $p({ circular: n, comparator: l, createState: u, equals: c, strict: i });
@@ -15143,8 +15120,8 @@ const Zp = ({
15143
15120
  category: e,
15144
15121
  onRequestClose: t
15145
15122
  }) => {
15146
- const n = bs(e), [r, u] = dt(!1), a = Tn(), i = e.collapsible ?? !0, o = e.collapsed ?? !0, l = !!(!i || !o || n), [c, h] = dt(l), f = Cs(e.link?.path ?? "");
15147
- Ve(() => {
15123
+ const n = bs(e), [r, u] = sn(!1), a = Tn(), i = e.collapsible ?? !0, o = e.collapsed ?? !0, l = !!(!i || !o || n), [c, h] = sn(l), f = Cs(e.link?.path ?? "");
15124
+ et(() => {
15148
15125
  n && h(!0);
15149
15126
  }, [n]);
15150
15127
  const p = i && /* @__PURE__ */ k.jsx(
@@ -15173,7 +15150,7 @@ const Zp = ({
15173
15150
  size: 16,
15174
15151
  className: ie("align-[-0.125em] ", f && "text-primary")
15175
15152
  }
15176
- ), A = tn({
15153
+ ), A = en({
15177
15154
  className: [
15178
15155
  "group text-start font-medium",
15179
15156
  i || typeof e.link < "u" ? "cursor-pointer" : "cursor-default hover:bg-transparent"
@@ -15241,8 +15218,8 @@ const ri = ({
15241
15218
  label: e,
15242
15219
  className: t
15243
15220
  }) => {
15244
- const n = je(null), [r, u] = dt(!1);
15245
- return Ve(() => {
15221
+ const n = je(null), [r, u] = sn(!1);
15222
+ return et(() => {
15246
15223
  n.current && n.current.offsetWidth < n.current.scrollWidth && u(!0);
15247
15224
  }, []), /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
15248
15225
  /* @__PURE__ */ k.jsx(
@@ -15283,7 +15260,7 @@ const ri = ({
15283
15260
  or,
15284
15261
  {
15285
15262
  viewTransition: !0,
15286
- className: ({ isActive: u, isPending: a }) => tn({ isActive: u, isPending: a }),
15263
+ className: ({ isActive: u, isPending: a }) => en({ isActive: u, isPending: a }),
15287
15264
  to: ii(e.path),
15288
15265
  onClick: t,
15289
15266
  end: !0,
@@ -15302,7 +15279,7 @@ const ri = ({
15302
15279
  return u.startsWith("http") ? /* @__PURE__ */ k.jsxs(
15303
15280
  "a",
15304
15281
  {
15305
- className: tn(),
15282
+ className: en(),
15306
15283
  href: u,
15307
15284
  target: "_blank",
15308
15285
  rel: "noopener noreferrer",
@@ -15322,7 +15299,7 @@ const ri = ({
15322
15299
  search: n.search
15323
15300
  },
15324
15301
  [es]: u.split("#")[1],
15325
- className: tn({
15302
+ className: en({
15326
15303
  isActive: u === [n.pathname, r].join("#")
15327
15304
  }),
15328
15305
  onClick: t,
@@ -15354,9 +15331,9 @@ const ri = ({
15354
15331
  );
15355
15332
  }, wE = () => {
15356
15333
  const e = Tn(), t = ts(), n = je(!1);
15357
- Ve(() => {
15334
+ et(() => {
15358
15335
  !e.hash || !n.current || t(e.hash);
15359
- }, [e.hash, t]), Ve(() => {
15336
+ }, [e.hash, t]), et(() => {
15360
15337
  if (!e.hash) {
15361
15338
  n.current = !0;
15362
15339
  return;
@@ -15550,7 +15527,7 @@ const ri = ({
15550
15527
  }
15551
15528
  );
15552
15529
  }
15553
- }, lE = "prose dark:prose-invert prose-neutral", Br = ({
15530
+ }, lE = "prose dark:prose-invert prose-neutral typography", Br = ({
15554
15531
  children: e,
15555
15532
  className: t
15556
15533
  }) => /* @__PURE__ */ k.jsx("div", { className: ie(lE, t), children: e }), cE = [lp], rs = lr(
@@ -15559,13 +15536,13 @@ const ri = ({
15559
15536
  className: t,
15560
15537
  components: n
15561
15538
  }) => {
15562
- const { syntaxHighlighting: r } = ai().options, u = Ht(
15539
+ const { syntaxHighlighting: r } = ai().options, u = Ft(
15563
15540
  () => [
15564
15541
  Gd,
15565
15542
  ...Qs(r?.themes)
15566
15543
  ],
15567
15544
  [r?.themes]
15568
- ), a = Ht(
15545
+ ), a = Ft(
15569
15546
  () => ({ ...oE, ...n }),
15570
15547
  [n]
15571
15548
  );
@@ -15602,13 +15579,16 @@ const us = ({
15602
15579
  "Start by adding a file at",
15603
15580
  " ",
15604
15581
  /* @__PURE__ */ k.jsxs("code", { children: [
15605
- "{PROJECT_ROOT}",
15582
+ "{DOCUMENT_ROOT}",
15606
15583
  "/",
15607
15584
  e["*"],
15608
15585
  ".mdx"
15609
15586
  ] }),
15610
15587
  " ",
15611
- "and add some content to make this error go away."
15588
+ "and add some content to make this error go away. By default",
15589
+ " ",
15590
+ /* @__PURE__ */ k.jsx("code", { children: "DOCUMENT_ROOT" }),
15591
+ " is the `pages` directory."
15612
15592
  ] }),
15613
15593
  /* @__PURE__ */ k.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
15614
15594
  /* @__PURE__ */ k.jsx(Ns, { to: "/", children: "Go back home" })
@@ -15634,14 +15614,14 @@ function hE({ error: e }) {
15634
15614
  "Error: ",
15635
15615
  t,
15636
15616
  n && /* @__PURE__ */ k.jsx(us, { className: "mb-4", children: n }),
15637
- i && /* @__PURE__ */ k.jsx("div", { children: /* @__PURE__ */ k.jsx(
15617
+ i && /* @__PURE__ */ k.jsx(
15638
15618
  is,
15639
15619
  {
15640
- className: "max-h-[400px] border mt-2",
15620
+ className: "max-h-[400px] [&>pre]:p-4",
15641
15621
  language: "js",
15642
15622
  code: i
15643
15623
  }
15644
- ) })
15624
+ )
15645
15625
  ] });
15646
15626
  }
15647
15627
  function ME() {
@@ -15699,7 +15679,7 @@ function dE(e) {
15699
15679
  }
15700
15680
  const ui = ["prepend", "replace", "append"], mE = (e) => {
15701
15681
  const t = uo(), n = dE((r) => r.getItems(e));
15702
- return Ht(() => n.length === 0 ? [] : n.toSorted((r, u) => {
15682
+ return Ft(() => n.length === 0 ? [] : n.toSorted((r, u) => {
15703
15683
  const a = ui.indexOf(r.type) - ui.indexOf(u.type);
15704
15684
  return a !== 0 ? a : r.sequence - u.sequence;
15705
15685
  }).map(
@@ -15740,4 +15720,4 @@ export {
15740
15720
  tE as s,
15741
15721
  Mr as u
15742
15722
  };
15743
- //# sourceMappingURL=Slot-tFjhrd8V.js.map
15723
+ //# sourceMappingURL=Slot-B31yZlfB.js.map