@alivault/pico 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/apple-touch-icon.png +0 -0
  3. package/.output/public/assets/abap-smLpETzL.js +1 -0
  4. package/.output/public/assets/actionscript-3-o-aRvjY5.js +1 -0
  5. package/.output/public/assets/ada-D5RRX1i4.js +1 -0
  6. package/.output/public/assets/andromeeda-N4z3YzmR.js +1 -0
  7. package/.output/public/assets/angular-html-BZNntD0J.js +1 -0
  8. package/.output/public/assets/angular-ts-SQQMYL2C.js +1 -0
  9. package/.output/public/assets/apache-DttKlSqg.js +1 -0
  10. package/.output/public/assets/apex-DL7j-a2n.js +1 -0
  11. package/.output/public/assets/apl-D5V6uPDr.js +1 -0
  12. package/.output/public/assets/applescript-DCbL_2FX.js +1 -0
  13. package/.output/public/assets/ara-DqheWJCe.js +1 -0
  14. package/.output/public/assets/asciidoc-BH2sf2K4.js +1 -0
  15. package/.output/public/assets/asm-rfjOMz3U.js +1 -0
  16. package/.output/public/assets/astro-DeXKSaFP.js +1 -0
  17. package/.output/public/assets/aurora-x-CND-FqEb.js +1 -0
  18. package/.output/public/assets/awk-CMV5n9Z7.js +1 -0
  19. package/.output/public/assets/ayu-dark-on7xzq_B.js +1 -0
  20. package/.output/public/assets/ayu-light-DnGeGGc2.js +1 -0
  21. package/.output/public/assets/ayu-mirage-DG3LlYC_.js +1 -0
  22. package/.output/public/assets/ballerina-BjMqJjlr.js +1 -0
  23. package/.output/public/assets/bat-BaVbo_qw.js +1 -0
  24. package/.output/public/assets/beancount-DBt5Mbc_.js +1 -0
  25. package/.output/public/assets/berry-Cyjuxiss.js +1 -0
  26. package/.output/public/assets/bibtex-BV_0nsPq.js +1 -0
  27. package/.output/public/assets/bicep-C2gEwu4J.js +1 -0
  28. package/.output/public/assets/bird2-BRyaEJd0.js +1 -0
  29. package/.output/public/assets/blade-Bu5re0Vg.js +1 -0
  30. package/.output/public/assets/bsl-B1qbqNES.js +1 -0
  31. package/.output/public/assets/c-Nc9zJT78.js +1 -0
  32. package/.output/public/assets/c3-DTTbp5N2.js +1 -0
  33. package/.output/public/assets/cadence-CPz83cmI.js +1 -0
  34. package/.output/public/assets/cairo-BDj8wWhy.js +1 -0
  35. package/.output/public/assets/catppuccin-frappe-Dr22sraq.js +1 -0
  36. package/.output/public/assets/catppuccin-latte-C57EeX8c.js +1 -0
  37. package/.output/public/assets/catppuccin-macchiato-CpheI4uD.js +1 -0
  38. package/.output/public/assets/catppuccin-mocha-D8Lmdks_.js +1 -0
  39. package/.output/public/assets/clarity-CFJ2Yc3q.js +1 -0
  40. package/.output/public/assets/clojure-6R01QgJC.js +1 -0
  41. package/.output/public/assets/cmake-D5rSbMir.js +1 -0
  42. package/.output/public/assets/cobol-nvZDS9LT.js +1 -0
  43. package/.output/public/assets/codeowners-_3A-ClkN.js +1 -0
  44. package/.output/public/assets/codeql-DlIhJTR7.js +1 -0
  45. package/.output/public/assets/coffee-BKLOTq4e.js +1 -0
  46. package/.output/public/assets/common-lisp-BvQzz173.js +1 -0
  47. package/.output/public/assets/coq-DTNXReIC.js +1 -0
  48. package/.output/public/assets/cpp-D6g1DVNt.js +1 -0
  49. package/.output/public/assets/crystal-DfoZI57w.js +1 -0
  50. package/.output/public/assets/csharp-BDKQY1K9.js +1 -0
  51. package/.output/public/assets/css-DRmnABqB.js +1 -0
  52. package/.output/public/assets/csv-DNUpVBxl.js +1 -0
  53. package/.output/public/assets/cue-DDdBc2s3.js +1 -0
  54. package/.output/public/assets/cypher-CguaznO2.js +1 -0
  55. package/.output/public/assets/d-CHcoyjv3.js +1 -0
  56. package/.output/public/assets/dark-plus-CqeW_0kH.js +1 -0
  57. package/.output/public/assets/dart-RM3aRphk.js +1 -0
  58. package/.output/public/assets/dax-nbnY1d79.js +1 -0
  59. package/.output/public/assets/desktop-BD76cvxT.js +1 -0
  60. package/.output/public/assets/diff-CdkWtnkL.js +1 -0
  61. package/.output/public/assets/docker-ZyPHc6zB.js +1 -0
  62. package/.output/public/assets/dotenv-BdJZEwA6.js +1 -0
  63. package/.output/public/assets/dracula-CtqCPLGa.js +1 -0
  64. package/.output/public/assets/dracula-soft-DmBpwRAy.js +1 -0
  65. package/.output/public/assets/dream-maker-BJL4qlg3.js +1 -0
  66. package/.output/public/assets/edge-DwocGnOF.js +1 -0
  67. package/.output/public/assets/elixir-Dtbfds1r.js +1 -0
  68. package/.output/public/assets/elm-CpPtm471.js +1 -0
  69. package/.output/public/assets/emacs-lisp-_LyYa2Ky.js +1 -0
  70. package/.output/public/assets/erb--z3IM9Cb.js +1 -0
  71. package/.output/public/assets/erlang-Bc4hQuqa.js +1 -0
  72. package/.output/public/assets/everforest-dark-CrbyKk4n.js +1 -0
  73. package/.output/public/assets/everforest-light-DRbSh8Tm.js +1 -0
  74. package/.output/public/assets/fennel-CC2BkRsS.js +1 -0
  75. package/.output/public/assets/fish-D2ZCzqcE.js +1 -0
  76. package/.output/public/assets/fluent-DKAm3m7q.js +1 -0
  77. package/.output/public/assets/fortran-fixed-form-B02FOYI-.js +1 -0
  78. package/.output/public/assets/fortran-free-form-BPTf0lbT.js +1 -0
  79. package/.output/public/assets/fsharp-DhdR18vN.js +1 -0
  80. package/.output/public/assets/gdresource-DgnrMPIx.js +1 -0
  81. package/.output/public/assets/gdscript-CsadCSaZ.js +1 -0
  82. package/.output/public/assets/gdshader-PfnN_8tR.js +1 -0
  83. package/.output/public/assets/genie-Bj-orPAV.js +1 -0
  84. package/.output/public/assets/gherkin-COVWpJ-Q.js +1 -0
  85. package/.output/public/assets/git-commit-DGJi7qBD.js +1 -0
  86. package/.output/public/assets/git-rebase-Ce47xoa6.js +1 -0
  87. package/.output/public/assets/github-dark-default-DX3IG_X0.js +1 -0
  88. package/.output/public/assets/github-dark-dimmed-CH6p_7ez.js +1 -0
  89. package/.output/public/assets/github-dark-high-contrast-Bg2sSao5.js +1 -0
  90. package/.output/public/assets/github-dark-ipGuFGYC.js +1 -0
  91. package/.output/public/assets/github-light-BxjqOQl0.js +1 -0
  92. package/.output/public/assets/github-light-default-DwpDd1IQ.js +1 -0
  93. package/.output/public/assets/github-light-high-contrast-C0QeixPf.js +1 -0
  94. package/.output/public/assets/gleam-BF2NigGj.js +1 -0
  95. package/.output/public/assets/glimmer-js-C0BuzxQC.js +1 -0
  96. package/.output/public/assets/glimmer-ts-irOZ-cAQ.js +1 -0
  97. package/.output/public/assets/glsl-JAhLUe0P.js +1 -0
  98. package/.output/public/assets/gn-CMIt9roj.js +1 -0
  99. package/.output/public/assets/gnuplot-DgWlRTEj.js +1 -0
  100. package/.output/public/assets/go-DLnOLj8q.js +1 -0
  101. package/.output/public/assets/graphql-D2ba3BkR.js +1 -0
  102. package/.output/public/assets/groovy-B9qLWIkE.js +1 -0
  103. package/.output/public/assets/gruvbox-dark-hard-BIMX9ePb.js +1 -0
  104. package/.output/public/assets/gruvbox-dark-medium-DxuwyVzM.js +1 -0
  105. package/.output/public/assets/gruvbox-dark-soft-ba2fjht0.js +1 -0
  106. package/.output/public/assets/gruvbox-light-hard-DAJK2PqC.js +1 -0
  107. package/.output/public/assets/gruvbox-light-medium-WRifDAJD.js +1 -0
  108. package/.output/public/assets/gruvbox-light-soft-B0dBOoVB.js +1 -0
  109. package/.output/public/assets/hack-CgzUpY8l.js +1 -0
  110. package/.output/public/assets/haml-C-oIZcDo.js +1 -0
  111. package/.output/public/assets/handlebars-CbP-Mhzf.js +1 -0
  112. package/.output/public/assets/haskell-BaGpmm_c.js +1 -0
  113. package/.output/public/assets/haxe-DfXTCEOz.js +1 -0
  114. package/.output/public/assets/hcl-CbCtpSbi.js +1 -0
  115. package/.output/public/assets/hjson-_4-w-pHU.js +1 -0
  116. package/.output/public/assets/hlsl-DpuYn7pp.js +1 -0
  117. package/.output/public/assets/horizon-C5RtD1fY.js +1 -0
  118. package/.output/public/assets/horizon-bright-pEOice34.js +1 -0
  119. package/.output/public/assets/houston-A0zg9vNP.js +1 -0
  120. package/.output/public/assets/html-ddqpqPg0.js +1 -0
  121. package/.output/public/assets/html-derivative-DWGxf_At.js +1 -0
  122. package/.output/public/assets/http-Bg1nG1nG.js +1 -0
  123. package/.output/public/assets/hurl-zm47Pi1n.js +1 -0
  124. package/.output/public/assets/hxml-adC65L_J.js +1 -0
  125. package/.output/public/assets/hy-t9zDXBje.js +1 -0
  126. package/.output/public/assets/imba-Bxu-TDfw.js +1 -0
  127. package/.output/public/assets/index-CthXqlK7.js +53 -0
  128. package/.output/public/assets/ini-D-v34c8N.js +1 -0
  129. package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  130. package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  131. package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  132. package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  133. package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  134. package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  135. package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  136. package/.output/public/assets/java-DVLnIrqC.js +1 -0
  137. package/.output/public/assets/javascript-Cop1kpy_.js +1 -0
  138. package/.output/public/assets/jinja-Bnj4awH5.js +1 -0
  139. package/.output/public/assets/jison-CuCNs9Q3.js +1 -0
  140. package/.output/public/assets/json-CTw4n7kn.js +1 -0
  141. package/.output/public/assets/json5-D0XL1D5m.js +1 -0
  142. package/.output/public/assets/jsonc-BBgf3TX3.js +1 -0
  143. package/.output/public/assets/jsonl-KrKLbtB7.js +1 -0
  144. package/.output/public/assets/jsonnet-B2ZwWMOt.js +1 -0
  145. package/.output/public/assets/jssm-ByRpI9-B.js +1 -0
  146. package/.output/public/assets/jsx-0oMUGqZj.js +1 -0
  147. package/.output/public/assets/julia-DNYHzXlE.js +1 -0
  148. package/.output/public/assets/just-BlWkkmf2.js +1 -0
  149. package/.output/public/assets/kanagawa-dragon-CtPmcCMp.js +1 -0
  150. package/.output/public/assets/kanagawa-lotus-DpOXEGCa.js +1 -0
  151. package/.output/public/assets/kanagawa-wave-CLVCyc-n.js +1 -0
  152. package/.output/public/assets/kdl-6FPPEH4H.js +1 -0
  153. package/.output/public/assets/kotlin-D4L3Nd2D.js +1 -0
  154. package/.output/public/assets/kusto-D-mmc07O.js +1 -0
  155. package/.output/public/assets/laserwave-7fEj4XGb.js +1 -0
  156. package/.output/public/assets/latex-DqPzjMIt.js +1 -0
  157. package/.output/public/assets/lean-BMVMuP2E.js +1 -0
  158. package/.output/public/assets/less-C95PyOu0.js +1 -0
  159. package/.output/public/assets/light-plus-DHI2dh3p.js +1 -0
  160. package/.output/public/assets/liquid-BURJK16h.js +1 -0
  161. package/.output/public/assets/llvm-Dy3qORTl.js +1 -0
  162. package/.output/public/assets/log-BQop7fzg.js +1 -0
  163. package/.output/public/assets/logo-DKtnYmrp.js +1 -0
  164. package/.output/public/assets/lua-31hdJClp.js +1 -0
  165. package/.output/public/assets/luau-Dha4KG0q.js +1 -0
  166. package/.output/public/assets/make-DfmS6buu.js +1 -0
  167. package/.output/public/assets/markdown-BaI9LyM4.js +1 -0
  168. package/.output/public/assets/marko-C2ZcdSLh.js +1 -0
  169. package/.output/public/assets/material-theme-Dm6ETY8i.js +1 -0
  170. package/.output/public/assets/material-theme-darker-BeyjmM5Z.js +1 -0
  171. package/.output/public/assets/material-theme-lighter-CCOYYzKL.js +1 -0
  172. package/.output/public/assets/material-theme-ocean-CUtPiiX3.js +1 -0
  173. package/.output/public/assets/material-theme-palenight-2L4zMwIM.js +1 -0
  174. package/.output/public/assets/matlab-BT79Cq_j.js +1 -0
  175. package/.output/public/assets/mdc-N1ii9pk5.js +1 -0
  176. package/.output/public/assets/mdx-CxGBwLNt.js +1 -0
  177. package/.output/public/assets/mermaid-DLf3axBN.js +1 -0
  178. package/.output/public/assets/min-dark-B8TUPGHg.js +1 -0
  179. package/.output/public/assets/min-light-BDOoBxcA.js +1 -0
  180. package/.output/public/assets/mipsasm-DXuU_0cI.js +1 -0
  181. package/.output/public/assets/mojo-1Omp2pIo.js +1 -0
  182. package/.output/public/assets/monokai-E_VBmXGZ.js +1 -0
  183. package/.output/public/assets/moonbit-DZzq699o.js +1 -0
  184. package/.output/public/assets/move-DxDAOJVd.js +1 -0
  185. package/.output/public/assets/narrat-CxDcPPb9.js +1 -0
  186. package/.output/public/assets/nextflow-JEyYUlIq.js +1 -0
  187. package/.output/public/assets/nextflow-groovy-wvmJO4hi.js +1 -0
  188. package/.output/public/assets/nginx-BuomO0W8.js +1 -0
  189. package/.output/public/assets/night-owl-DefhalNX.js +1 -0
  190. package/.output/public/assets/night-owl-light-byb3AbEn.js +1 -0
  191. package/.output/public/assets/nim-hKoEPsYL.js +1 -0
  192. package/.output/public/assets/nix-DsFTDHWT.js +1 -0
  193. package/.output/public/assets/nord-D5rQzHT-.js +1 -0
  194. package/.output/public/assets/nushell-BQ_rO0AM.js +1 -0
  195. package/.output/public/assets/objective-c-BMq6JT_m.js +1 -0
  196. package/.output/public/assets/objective-cpp-DRwojuGv.js +1 -0
  197. package/.output/public/assets/ocaml-e4_gKO6E.js +1 -0
  198. package/.output/public/assets/odin-mdTPwYOg.js +1 -0
  199. package/.output/public/assets/one-dark-pro-DxXww9jg.js +1 -0
  200. package/.output/public/assets/one-light-D9c03w7t.js +1 -0
  201. package/.output/public/assets/openscad-D2aTdNfr.js +1 -0
  202. package/.output/public/assets/pascal-D4n_G8vj.js +1 -0
  203. package/.output/public/assets/perl-CAGVW6Ra.js +1 -0
  204. package/.output/public/assets/php-BycclmzS.js +1 -0
  205. package/.output/public/assets/pierre-dark-CizZ1Z5z.js +1 -0
  206. package/.output/public/assets/pierre-light-CHMWfAMe.js +1 -0
  207. package/.output/public/assets/pkl-DcjhAp0L.js +1 -0
  208. package/.output/public/assets/plastic-uOsw7z1x.js +1 -0
  209. package/.output/public/assets/plsql-BSy3Ag0J.js +1 -0
  210. package/.output/public/assets/po-Be96RYkA.js +1 -0
  211. package/.output/public/assets/poimandres-CyO4HORD.js +1 -0
  212. package/.output/public/assets/polar-BmhMKWum.js +1 -0
  213. package/.output/public/assets/postcss-BTQso3H9.js +1 -0
  214. package/.output/public/assets/powerquery-DVyQv3M2.js +1 -0
  215. package/.output/public/assets/powershell-BmtCGJVD.js +1 -0
  216. package/.output/public/assets/prisma-CCFA9rEj.js +1 -0
  217. package/.output/public/assets/prolog-DWGEEo78.js +1 -0
  218. package/.output/public/assets/proto-C3eop1kM.js +1 -0
  219. package/.output/public/assets/pug-4maJHz9G.js +1 -0
  220. package/.output/public/assets/puppet-C0_7Nv5A.js +1 -0
  221. package/.output/public/assets/purescript-Bv-B8yRw.js +1 -0
  222. package/.output/public/assets/python-CKg5r0C3.js +1 -0
  223. package/.output/public/assets/qml-JLIQfzyb.js +1 -0
  224. package/.output/public/assets/qmldir-Cqfb4Lox.js +1 -0
  225. package/.output/public/assets/qss-Csho9BH8.js +1 -0
  226. package/.output/public/assets/r-UcxRcvcA.js +1 -0
  227. package/.output/public/assets/racket-D8-uWeQH.js +1 -0
  228. package/.output/public/assets/raku-Cj4JSa8p.js +1 -0
  229. package/.output/public/assets/razor-P8rbooCh.js +1 -0
  230. package/.output/public/assets/red-z4H4llUY.js +1 -0
  231. package/.output/public/assets/reg-DXGFiJSl.js +1 -0
  232. package/.output/public/assets/regexp-3-A0406L.js +1 -0
  233. package/.output/public/assets/rel-CunnVTBK.js +1 -0
  234. package/.output/public/assets/riscv-C8BcOCkS.js +1 -0
  235. package/.output/public/assets/rolldown-runtime-S-ySWqyJ.js +1 -0
  236. package/.output/public/assets/ron-DiDyR9oa.js +1 -0
  237. package/.output/public/assets/rose-pine-BADquuIH.js +1 -0
  238. package/.output/public/assets/rose-pine-dawn-BLcEeBoh.js +1 -0
  239. package/.output/public/assets/rose-pine-moon-BK_tLY1Y.js +1 -0
  240. package/.output/public/assets/rosmsg-CHmL1Uyj.js +1 -0
  241. package/.output/public/assets/routes-Bp0r03R8.js +2147 -0
  242. package/.output/public/assets/rst-C6GHyL-N.js +1 -0
  243. package/.output/public/assets/ruby-Cl8PVkbY.js +1 -0
  244. package/.output/public/assets/rust-DjJFInu3.js +1 -0
  245. package/.output/public/assets/sas-CXoVwlZN.js +1 -0
  246. package/.output/public/assets/sass-D3xZ5o-v.js +1 -0
  247. package/.output/public/assets/scala-B0IRml5w.js +1 -0
  248. package/.output/public/assets/scheme-BhwcV3Av.js +1 -0
  249. package/.output/public/assets/scss-DNczJ95n.js +1 -0
  250. package/.output/public/assets/sdbl-BmWYR-pI.js +1 -0
  251. package/.output/public/assets/shaderlab-DZ3Lsiak.js +1 -0
  252. package/.output/public/assets/shellscript-DaVPunOM.js +1 -0
  253. package/.output/public/assets/shellsession-COm1V40U.js +1 -0
  254. package/.output/public/assets/slack-dark-DOnVms5P.js +1 -0
  255. package/.output/public/assets/slack-ochin-DcRTft4q.js +1 -0
  256. package/.output/public/assets/smalltalk-DVQuUMII.js +1 -0
  257. package/.output/public/assets/snazzy-light-x9CLJ1W9.js +1 -0
  258. package/.output/public/assets/solarized-dark-BB1sh-pe.js +1 -0
  259. package/.output/public/assets/solarized-light-9-RPS998.js +1 -0
  260. package/.output/public/assets/solidity-gQ4WXILB.js +1 -0
  261. package/.output/public/assets/soy-DwewhJ_3.js +1 -0
  262. package/.output/public/assets/sparql-B9c85a_o.js +1 -0
  263. package/.output/public/assets/splunk-OB48_RcD.js +1 -0
  264. package/.output/public/assets/sql-CrTmZCMa.js +1 -0
  265. package/.output/public/assets/ssh-config-DA9YMRGV.js +1 -0
  266. package/.output/public/assets/stata-Bl--TAbZ.js +1 -0
  267. package/.output/public/assets/styles-DEX5mU_p.css +2 -0
  268. package/.output/public/assets/stylus-sKwvsUaC.js +1 -0
  269. package/.output/public/assets/surrealql-BW79EE-U.js +1 -0
  270. package/.output/public/assets/svelte-ziMErdPi.js +1 -0
  271. package/.output/public/assets/swift-C72NbAtg.js +1 -0
  272. package/.output/public/assets/synthwave-84-eJ9uRN_S.js +1 -0
  273. package/.output/public/assets/system-verilog-CnWMF7Nq.js +1 -0
  274. package/.output/public/assets/systemd-DMzItW5N.js +1 -0
  275. package/.output/public/assets/talonscript-DopQCWDL.js +1 -0
  276. package/.output/public/assets/tasl-C28SYKbq.js +1 -0
  277. package/.output/public/assets/tcl-DHq7zmoF.js +1 -0
  278. package/.output/public/assets/templ-C_9I6ncv.js +1 -0
  279. package/.output/public/assets/terraform-CogS1YKX.js +1 -0
  280. package/.output/public/assets/tex-D8LVuLf5.js +1 -0
  281. package/.output/public/assets/tokyo-night-B9N7LyrF.js +1 -0
  282. package/.output/public/assets/toml-BH_iPsgK.js +1 -0
  283. package/.output/public/assets/ts-tags-DKuFCGsc.js +1 -0
  284. package/.output/public/assets/tsv-BIkdBZX1.js +1 -0
  285. package/.output/public/assets/tsx-BjkCKOtw.js +1 -0
  286. package/.output/public/assets/turtle-CqNXyJWZ.js +1 -0
  287. package/.output/public/assets/twig-Bs1kcsO6.js +1 -0
  288. package/.output/public/assets/typescript-BoHeP9q1.js +1 -0
  289. package/.output/public/assets/typespec-CQ9LYD_e.js +1 -0
  290. package/.output/public/assets/typst-T-Fsk-Sv.js +1 -0
  291. package/.output/public/assets/v-BhMEOw9x.js +1 -0
  292. package/.output/public/assets/vala-DzajMnwt.js +1 -0
  293. package/.output/public/assets/vb-7Xr8dEYW.js +1 -0
  294. package/.output/public/assets/verilog-AvXtwZir.js +1 -0
  295. package/.output/public/assets/vesper-CtgQQ2sf.js +1 -0
  296. package/.output/public/assets/vhdl-BHu0zg1P.js +1 -0
  297. package/.output/public/assets/viml-Di0QpLfC.js +1 -0
  298. package/.output/public/assets/vitesse-black-jXdfyqgD.js +1 -0
  299. package/.output/public/assets/vitesse-dark-B88PxG1r.js +1 -0
  300. package/.output/public/assets/vitesse-light-BXxZh2iV.js +1 -0
  301. package/.output/public/assets/vue-Dnf0y5RU.js +1 -0
  302. package/.output/public/assets/vue-html-CRtKS76J.js +1 -0
  303. package/.output/public/assets/vue-vine-BxjPqU7T.js +1 -0
  304. package/.output/public/assets/vyper-C3R5yXgx.js +1 -0
  305. package/.output/public/assets/wasm-CEUrWlVz.js +1 -0
  306. package/.output/public/assets/wasm-Chsuwt1A.js +1 -0
  307. package/.output/public/assets/wenyan-BonVcr2i.js +1 -0
  308. package/.output/public/assets/wgsl-D59WYmNq.js +1 -0
  309. package/.output/public/assets/wikitext-ariTI2Wk.js +1 -0
  310. package/.output/public/assets/wit-EA4fa3Dt.js +1 -0
  311. package/.output/public/assets/wolfram-DDp7LhyU.js +1 -0
  312. package/.output/public/assets/xml-eU7M3iZJ.js +1 -0
  313. package/.output/public/assets/xsl-DSqe4nTO.js +1 -0
  314. package/.output/public/assets/yaml-BTD1XHJG.js +1 -0
  315. package/.output/public/assets/zenscript-4WaROUyc.js +1 -0
  316. package/.output/public/assets/zig-CJoLJGwV.js +1 -0
  317. package/.output/public/favicon.png +0 -0
  318. package/.output/public/favicon.svg +7 -0
  319. package/.output/public/manifest.json +28 -0
  320. package/.output/public/robots.txt +3 -0
  321. package/.output/public/screenshots/pico-workspace-alt.png +0 -0
  322. package/.output/public/screenshots/pico-workspace.png +0 -0
  323. package/.output/public/sounds/session-done.mp3 +0 -0
  324. package/.output/server/__23tanstack-start-plugin-adapters-y_fshQDY.mjs +5 -0
  325. package/.output/server/_chunks/ssr-renderer.mjs +15 -0
  326. package/.output/server/_libs/@base-ui/react+[...].mjs +14407 -0
  327. package/.output/server/_libs/@dnd-kit/core+[...].mjs +2748 -0
  328. package/.output/server/_libs/@pierre/diffs+[...].mjs +19074 -0
  329. package/.output/server/_libs/@pierre/trees+[...].mjs +9236 -0
  330. package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +1789 -0
  331. package/.output/server/_libs/@radix-ui/react-primitive+[...].mjs +136 -0
  332. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
  333. package/.output/server/_libs/@tanstack/hotkeys+[...].mjs +1607 -0
  334. package/.output/server/_libs/@tanstack/react-router+[...].mjs +13950 -0
  335. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +90 -0
  336. package/.output/server/_libs/bail.mjs +13 -0
  337. package/.output/server/_libs/character-entities.mjs +2135 -0
  338. package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
  339. package/.output/server/_libs/cmdk.mjs +473 -0
  340. package/.output/server/_libs/decode-named-character-reference+[...].mjs +19 -0
  341. package/.output/server/_libs/devlop.mjs +5 -0
  342. package/.output/server/_libs/diff.mjs +732 -0
  343. package/.output/server/_libs/dnd-kit__accessibility.mjs +46 -0
  344. package/.output/server/_libs/dnd-kit__sortable.mjs +400 -0
  345. package/.output/server/_libs/escape-string-regexp.mjs +7 -0
  346. package/.output/server/_libs/estree-util-is-identifier-name.mjs +20 -0
  347. package/.output/server/_libs/extend.mjs +75 -0
  348. package/.output/server/_libs/h3+rou3+srvx.mjs +1210 -0
  349. package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +1244 -0
  350. package/.output/server/_libs/hookable.mjs +41 -0
  351. package/.output/server/_libs/html-url-attributes.mjs +44 -0
  352. package/.output/server/_libs/is-plain-obj.mjs +8 -0
  353. package/.output/server/_libs/longest-streak.mjs +29 -0
  354. package/.output/server/_libs/lucide-react.mjs +632 -0
  355. package/.output/server/_libs/markdown-table.mjs +289 -0
  356. package/.output/server/_libs/mdast-util-find-and-replace+[...].mjs +636 -0
  357. package/.output/server/_libs/mdast-util-from-markdown+[...].mjs +8409 -0
  358. package/.output/server/_libs/mdast-util-gfm+[...].mjs +2346 -0
  359. package/.output/server/_libs/mdast-util-to-hast+[...].mjs +1772 -0
  360. package/.output/server/_libs/micromark-extension-gfm+[...].mjs +2234 -0
  361. package/.output/server/_libs/next-themes.mjs +124 -0
  362. package/.output/server/_libs/pierre__theme.mjs +10 -0
  363. package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
  364. package/.output/server/_libs/radix-ui__react-compose-refs.mjs +30 -0
  365. package/.output/server/_libs/radix-ui__react-context.mjs +88 -0
  366. package/.output/server/_libs/react-markdown+[...].mjs +2316 -0
  367. package/.output/server/_libs/remark-gfm.mjs +34 -0
  368. package/.output/server/_libs/shiki.mjs +16 -0
  369. package/.output/server/_libs/shikijs__langs.mjs +1355 -0
  370. package/.output/server/_libs/shikijs__themes.mjs +262 -0
  371. package/.output/server/_libs/sonner.mjs +908 -0
  372. package/.output/server/_libs/sugar-high.mjs +1036 -0
  373. package/.output/server/_libs/tailwind-merge.mjs +1962 -0
  374. package/.output/server/_libs/tanstack__history.mjs +342 -0
  375. package/.output/server/_libs/tanstack__pacer.mjs +1111 -0
  376. package/.output/server/_libs/tanstack__query-core.mjs +2202 -0
  377. package/.output/server/_libs/tanstack__react-hotkeys.mjs +152 -0
  378. package/.output/server/_libs/tanstack__react-query.mjs +180 -0
  379. package/.output/server/_libs/tanstack__react-store.mjs +39 -0
  380. package/.output/server/_libs/tanstack__router-core.mjs +6 -0
  381. package/.output/server/_libs/tanstack__store.mjs +28 -0
  382. package/.output/server/_libs/ufo.mjs +64 -0
  383. package/.output/server/_libs/unctx.mjs +82 -0
  384. package/.output/server/_libs/ungap__structured-clone.mjs +197 -0
  385. package/.output/server/_libs/vaul.mjs +1250 -0
  386. package/.output/server/_libs/zod.mjs +3341 -0
  387. package/.output/server/_runtime.mjs +35 -0
  388. package/.output/server/_ssr/router-Bz70uQ0p.mjs +7231 -0
  389. package/.output/server/_ssr/routes-C7oV8l68.mjs +21622 -0
  390. package/.output/server/_ssr/routes-DGvt0TQ-.mjs +1275 -0
  391. package/.output/server/_ssr/ssr.mjs +5176 -0
  392. package/.output/server/_ssr/start-C9AjCGlr.mjs +4 -0
  393. package/.output/server/_tanstack-start-manifest_v-D0yEuwRY.mjs +65 -0
  394. package/.output/server/index.mjs +2563 -0
  395. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  396. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  397. package/.output/server/node_modules/tslib/package.json +47 -0
  398. package/.output/server/node_modules/tslib/tslib.js +484 -0
  399. package/.output/server/package.json +9 -0
  400. package/LICENSE +8 -0
  401. package/README.md +111 -0
  402. package/bin/pico.mjs +206 -0
  403. package/package.json +105 -0
  404. package/public/screenshots/pico-workspace-alt.png +0 -0
  405. package/public/screenshots/pico-workspace.png +0 -0
  406. package/scripts/patch-react-jsx-dev-runtime.mjs +93 -0
@@ -0,0 +1,1772 @@
1
+ import "./devlop.mjs";
2
+ import { a as pointStart, i as pointEnd, o as position } from "./hast-util-to-jsx-runtime+[...].mjs";
3
+ import { s as asciiAlphanumeric } from "./mdast-util-from-markdown+[...].mjs";
4
+ import { t as esm_default } from "./ungap__structured-clone.mjs";
5
+ import { r as visit } from "./mdast-util-gfm+[...].mjs";
6
+ //#region node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.js
7
+ /**
8
+ * Normalize a URL.
9
+ *
10
+ * Encode unsafe characters with percent-encoding, skipping already encoded
11
+ * sequences.
12
+ *
13
+ * @param {string} value
14
+ * URI to normalize.
15
+ * @returns {string}
16
+ * Normalized URI.
17
+ */
18
+ function normalizeUri(value) {
19
+ /** @type {Array<string>} */
20
+ const result = [];
21
+ let index = -1;
22
+ let start = 0;
23
+ let skip = 0;
24
+ while (++index < value.length) {
25
+ const code = value.charCodeAt(index);
26
+ /** @type {string} */
27
+ let replace = "";
28
+ if (code === 37 && asciiAlphanumeric(value.charCodeAt(index + 1)) && asciiAlphanumeric(value.charCodeAt(index + 2))) skip = 2;
29
+ else if (code < 128) {
30
+ if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) replace = String.fromCharCode(code);
31
+ } else if (code > 55295 && code < 57344) {
32
+ const next = value.charCodeAt(index + 1);
33
+ if (code < 56320 && next > 56319 && next < 57344) {
34
+ replace = String.fromCharCode(code, next);
35
+ skip = 1;
36
+ } else replace = "�";
37
+ } else replace = String.fromCharCode(code);
38
+ if (replace) {
39
+ result.push(value.slice(start, index), encodeURIComponent(replace));
40
+ start = index + skip + 1;
41
+ replace = "";
42
+ }
43
+ if (skip) {
44
+ index += skip;
45
+ skip = 0;
46
+ }
47
+ }
48
+ return result.join("") + value.slice(start);
49
+ }
50
+ //#endregion
51
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
52
+ /**
53
+ * @import {Element} from 'hast'
54
+ * @import {Blockquote} from 'mdast'
55
+ * @import {State} from '../state.js'
56
+ */
57
+ /**
58
+ * Turn an mdast `blockquote` node into hast.
59
+ *
60
+ * @param {State} state
61
+ * Info passed around.
62
+ * @param {Blockquote} node
63
+ * mdast node.
64
+ * @returns {Element}
65
+ * hast node.
66
+ */
67
+ function blockquote(state, node) {
68
+ /** @type {Element} */
69
+ const result = {
70
+ type: "element",
71
+ tagName: "blockquote",
72
+ properties: {},
73
+ children: state.wrap(state.all(node), true)
74
+ };
75
+ state.patch(node, result);
76
+ return state.applyData(node, result);
77
+ }
78
+ //#endregion
79
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js
80
+ /**
81
+ * @import {Element, Text} from 'hast'
82
+ * @import {Break} from 'mdast'
83
+ * @import {State} from '../state.js'
84
+ */
85
+ /**
86
+ * Turn an mdast `break` node into hast.
87
+ *
88
+ * @param {State} state
89
+ * Info passed around.
90
+ * @param {Break} node
91
+ * mdast node.
92
+ * @returns {Array<Element | Text>}
93
+ * hast element content.
94
+ */
95
+ function hardBreak(state, node) {
96
+ /** @type {Element} */
97
+ const result = {
98
+ type: "element",
99
+ tagName: "br",
100
+ properties: {},
101
+ children: []
102
+ };
103
+ state.patch(node, result);
104
+ return [state.applyData(node, result), {
105
+ type: "text",
106
+ value: "\n"
107
+ }];
108
+ }
109
+ //#endregion
110
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js
111
+ /**
112
+ * @import {Element, Properties} from 'hast'
113
+ * @import {Code} from 'mdast'
114
+ * @import {State} from '../state.js'
115
+ */
116
+ /**
117
+ * Turn an mdast `code` node into hast.
118
+ *
119
+ * @param {State} state
120
+ * Info passed around.
121
+ * @param {Code} node
122
+ * mdast node.
123
+ * @returns {Element}
124
+ * hast node.
125
+ */
126
+ function code(state, node) {
127
+ const value = node.value ? node.value + "\n" : "";
128
+ /** @type {Properties} */
129
+ const properties = {};
130
+ const language = node.lang ? node.lang.split(/\s+/) : [];
131
+ if (language.length > 0) properties.className = ["language-" + language[0]];
132
+ /** @type {Element} */
133
+ let result = {
134
+ type: "element",
135
+ tagName: "code",
136
+ properties,
137
+ children: [{
138
+ type: "text",
139
+ value
140
+ }]
141
+ };
142
+ if (node.meta) result.data = { meta: node.meta };
143
+ state.patch(node, result);
144
+ result = state.applyData(node, result);
145
+ result = {
146
+ type: "element",
147
+ tagName: "pre",
148
+ properties: {},
149
+ children: [result]
150
+ };
151
+ state.patch(node, result);
152
+ return result;
153
+ }
154
+ //#endregion
155
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js
156
+ /**
157
+ * @import {Element} from 'hast'
158
+ * @import {Delete} from 'mdast'
159
+ * @import {State} from '../state.js'
160
+ */
161
+ /**
162
+ * Turn an mdast `delete` node into hast.
163
+ *
164
+ * @param {State} state
165
+ * Info passed around.
166
+ * @param {Delete} node
167
+ * mdast node.
168
+ * @returns {Element}
169
+ * hast node.
170
+ */
171
+ function strikethrough(state, node) {
172
+ /** @type {Element} */
173
+ const result = {
174
+ type: "element",
175
+ tagName: "del",
176
+ properties: {},
177
+ children: state.all(node)
178
+ };
179
+ state.patch(node, result);
180
+ return state.applyData(node, result);
181
+ }
182
+ //#endregion
183
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
184
+ /**
185
+ * @import {Element} from 'hast'
186
+ * @import {Emphasis} from 'mdast'
187
+ * @import {State} from '../state.js'
188
+ */
189
+ /**
190
+ * Turn an mdast `emphasis` node into hast.
191
+ *
192
+ * @param {State} state
193
+ * Info passed around.
194
+ * @param {Emphasis} node
195
+ * mdast node.
196
+ * @returns {Element}
197
+ * hast node.
198
+ */
199
+ function emphasis(state, node) {
200
+ /** @type {Element} */
201
+ const result = {
202
+ type: "element",
203
+ tagName: "em",
204
+ properties: {},
205
+ children: state.all(node)
206
+ };
207
+ state.patch(node, result);
208
+ return state.applyData(node, result);
209
+ }
210
+ //#endregion
211
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
212
+ /**
213
+ * @import {Element} from 'hast'
214
+ * @import {FootnoteReference} from 'mdast'
215
+ * @import {State} from '../state.js'
216
+ */
217
+ /**
218
+ * Turn an mdast `footnoteReference` node into hast.
219
+ *
220
+ * @param {State} state
221
+ * Info passed around.
222
+ * @param {FootnoteReference} node
223
+ * mdast node.
224
+ * @returns {Element}
225
+ * hast node.
226
+ */
227
+ function footnoteReference(state, node) {
228
+ const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
229
+ const id = String(node.identifier).toUpperCase();
230
+ const safeId = normalizeUri(id.toLowerCase());
231
+ const index = state.footnoteOrder.indexOf(id);
232
+ /** @type {number} */
233
+ let counter;
234
+ let reuseCounter = state.footnoteCounts.get(id);
235
+ if (reuseCounter === void 0) {
236
+ reuseCounter = 0;
237
+ state.footnoteOrder.push(id);
238
+ counter = state.footnoteOrder.length;
239
+ } else counter = index + 1;
240
+ reuseCounter += 1;
241
+ state.footnoteCounts.set(id, reuseCounter);
242
+ /** @type {Element} */
243
+ const link = {
244
+ type: "element",
245
+ tagName: "a",
246
+ properties: {
247
+ href: "#" + clobberPrefix + "fn-" + safeId,
248
+ id: clobberPrefix + "fnref-" + safeId + (reuseCounter > 1 ? "-" + reuseCounter : ""),
249
+ dataFootnoteRef: true,
250
+ ariaDescribedBy: ["footnote-label"]
251
+ },
252
+ children: [{
253
+ type: "text",
254
+ value: String(counter)
255
+ }]
256
+ };
257
+ state.patch(node, link);
258
+ /** @type {Element} */
259
+ const sup = {
260
+ type: "element",
261
+ tagName: "sup",
262
+ properties: {},
263
+ children: [link]
264
+ };
265
+ state.patch(node, sup);
266
+ return state.applyData(node, sup);
267
+ }
268
+ //#endregion
269
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js
270
+ /**
271
+ * @import {Element} from 'hast'
272
+ * @import {Heading} from 'mdast'
273
+ * @import {State} from '../state.js'
274
+ */
275
+ /**
276
+ * Turn an mdast `heading` node into hast.
277
+ *
278
+ * @param {State} state
279
+ * Info passed around.
280
+ * @param {Heading} node
281
+ * mdast node.
282
+ * @returns {Element}
283
+ * hast node.
284
+ */
285
+ function heading(state, node) {
286
+ /** @type {Element} */
287
+ const result = {
288
+ type: "element",
289
+ tagName: "h" + node.depth,
290
+ properties: {},
291
+ children: state.all(node)
292
+ };
293
+ state.patch(node, result);
294
+ return state.applyData(node, result);
295
+ }
296
+ //#endregion
297
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js
298
+ /**
299
+ * @import {Element} from 'hast'
300
+ * @import {Html} from 'mdast'
301
+ * @import {State} from '../state.js'
302
+ * @import {Raw} from '../../index.js'
303
+ */
304
+ /**
305
+ * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
306
+ * nothing).
307
+ *
308
+ * @param {State} state
309
+ * Info passed around.
310
+ * @param {Html} node
311
+ * mdast node.
312
+ * @returns {Element | Raw | undefined}
313
+ * hast node.
314
+ */
315
+ function html(state, node) {
316
+ if (state.options.allowDangerousHtml) {
317
+ /** @type {Raw} */
318
+ const result = {
319
+ type: "raw",
320
+ value: node.value
321
+ };
322
+ state.patch(node, result);
323
+ return state.applyData(node, result);
324
+ }
325
+ }
326
+ //#endregion
327
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
328
+ /**
329
+ * @import {ElementContent} from 'hast'
330
+ * @import {Reference, Nodes} from 'mdast'
331
+ * @import {State} from './state.js'
332
+ */
333
+ /**
334
+ * Return the content of a reference without definition as plain text.
335
+ *
336
+ * @param {State} state
337
+ * Info passed around.
338
+ * @param {Extract<Nodes, Reference>} node
339
+ * Reference node (image, link).
340
+ * @returns {Array<ElementContent>}
341
+ * hast content.
342
+ */
343
+ function revert(state, node) {
344
+ const subtype = node.referenceType;
345
+ let suffix = "]";
346
+ if (subtype === "collapsed") suffix += "[]";
347
+ else if (subtype === "full") suffix += "[" + (node.label || node.identifier) + "]";
348
+ if (node.type === "imageReference") return [{
349
+ type: "text",
350
+ value: "![" + node.alt + suffix
351
+ }];
352
+ const contents = state.all(node);
353
+ const head = contents[0];
354
+ if (head && head.type === "text") head.value = "[" + head.value;
355
+ else contents.unshift({
356
+ type: "text",
357
+ value: "["
358
+ });
359
+ const tail = contents[contents.length - 1];
360
+ if (tail && tail.type === "text") tail.value += suffix;
361
+ else contents.push({
362
+ type: "text",
363
+ value: suffix
364
+ });
365
+ return contents;
366
+ }
367
+ //#endregion
368
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
369
+ /**
370
+ * @import {ElementContent, Element, Properties} from 'hast'
371
+ * @import {ImageReference} from 'mdast'
372
+ * @import {State} from '../state.js'
373
+ */
374
+ /**
375
+ * Turn an mdast `imageReference` node into hast.
376
+ *
377
+ * @param {State} state
378
+ * Info passed around.
379
+ * @param {ImageReference} node
380
+ * mdast node.
381
+ * @returns {Array<ElementContent> | ElementContent}
382
+ * hast node.
383
+ */
384
+ function imageReference(state, node) {
385
+ const id = String(node.identifier).toUpperCase();
386
+ const definition = state.definitionById.get(id);
387
+ if (!definition) return revert(state, node);
388
+ /** @type {Properties} */
389
+ const properties = {
390
+ src: normalizeUri(definition.url || ""),
391
+ alt: node.alt
392
+ };
393
+ if (definition.title !== null && definition.title !== void 0) properties.title = definition.title;
394
+ /** @type {Element} */
395
+ const result = {
396
+ type: "element",
397
+ tagName: "img",
398
+ properties,
399
+ children: []
400
+ };
401
+ state.patch(node, result);
402
+ return state.applyData(node, result);
403
+ }
404
+ //#endregion
405
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js
406
+ /**
407
+ * @import {Element, Properties} from 'hast'
408
+ * @import {Image} from 'mdast'
409
+ * @import {State} from '../state.js'
410
+ */
411
+ /**
412
+ * Turn an mdast `image` node into hast.
413
+ *
414
+ * @param {State} state
415
+ * Info passed around.
416
+ * @param {Image} node
417
+ * mdast node.
418
+ * @returns {Element}
419
+ * hast node.
420
+ */
421
+ function image(state, node) {
422
+ /** @type {Properties} */
423
+ const properties = { src: normalizeUri(node.url) };
424
+ if (node.alt !== null && node.alt !== void 0) properties.alt = node.alt;
425
+ if (node.title !== null && node.title !== void 0) properties.title = node.title;
426
+ /** @type {Element} */
427
+ const result = {
428
+ type: "element",
429
+ tagName: "img",
430
+ properties,
431
+ children: []
432
+ };
433
+ state.patch(node, result);
434
+ return state.applyData(node, result);
435
+ }
436
+ //#endregion
437
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
438
+ /**
439
+ * @import {Element, Text} from 'hast'
440
+ * @import {InlineCode} from 'mdast'
441
+ * @import {State} from '../state.js'
442
+ */
443
+ /**
444
+ * Turn an mdast `inlineCode` node into hast.
445
+ *
446
+ * @param {State} state
447
+ * Info passed around.
448
+ * @param {InlineCode} node
449
+ * mdast node.
450
+ * @returns {Element}
451
+ * hast node.
452
+ */
453
+ function inlineCode(state, node) {
454
+ /** @type {Text} */
455
+ const text = {
456
+ type: "text",
457
+ value: node.value.replace(/\r?\n|\r/g, " ")
458
+ };
459
+ state.patch(node, text);
460
+ /** @type {Element} */
461
+ const result = {
462
+ type: "element",
463
+ tagName: "code",
464
+ properties: {},
465
+ children: [text]
466
+ };
467
+ state.patch(node, result);
468
+ return state.applyData(node, result);
469
+ }
470
+ //#endregion
471
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
472
+ /**
473
+ * @import {ElementContent, Element, Properties} from 'hast'
474
+ * @import {LinkReference} from 'mdast'
475
+ * @import {State} from '../state.js'
476
+ */
477
+ /**
478
+ * Turn an mdast `linkReference` node into hast.
479
+ *
480
+ * @param {State} state
481
+ * Info passed around.
482
+ * @param {LinkReference} node
483
+ * mdast node.
484
+ * @returns {Array<ElementContent> | ElementContent}
485
+ * hast node.
486
+ */
487
+ function linkReference(state, node) {
488
+ const id = String(node.identifier).toUpperCase();
489
+ const definition = state.definitionById.get(id);
490
+ if (!definition) return revert(state, node);
491
+ /** @type {Properties} */
492
+ const properties = { href: normalizeUri(definition.url || "") };
493
+ if (definition.title !== null && definition.title !== void 0) properties.title = definition.title;
494
+ /** @type {Element} */
495
+ const result = {
496
+ type: "element",
497
+ tagName: "a",
498
+ properties,
499
+ children: state.all(node)
500
+ };
501
+ state.patch(node, result);
502
+ return state.applyData(node, result);
503
+ }
504
+ //#endregion
505
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js
506
+ /**
507
+ * @import {Element, Properties} from 'hast'
508
+ * @import {Link} from 'mdast'
509
+ * @import {State} from '../state.js'
510
+ */
511
+ /**
512
+ * Turn an mdast `link` node into hast.
513
+ *
514
+ * @param {State} state
515
+ * Info passed around.
516
+ * @param {Link} node
517
+ * mdast node.
518
+ * @returns {Element}
519
+ * hast node.
520
+ */
521
+ function link(state, node) {
522
+ /** @type {Properties} */
523
+ const properties = { href: normalizeUri(node.url) };
524
+ if (node.title !== null && node.title !== void 0) properties.title = node.title;
525
+ /** @type {Element} */
526
+ const result = {
527
+ type: "element",
528
+ tagName: "a",
529
+ properties,
530
+ children: state.all(node)
531
+ };
532
+ state.patch(node, result);
533
+ return state.applyData(node, result);
534
+ }
535
+ //#endregion
536
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
537
+ /**
538
+ * @import {ElementContent, Element, Properties} from 'hast'
539
+ * @import {ListItem, Parents} from 'mdast'
540
+ * @import {State} from '../state.js'
541
+ */
542
+ /**
543
+ * Turn an mdast `listItem` node into hast.
544
+ *
545
+ * @param {State} state
546
+ * Info passed around.
547
+ * @param {ListItem} node
548
+ * mdast node.
549
+ * @param {Parents | undefined} parent
550
+ * Parent of `node`.
551
+ * @returns {Element}
552
+ * hast node.
553
+ */
554
+ function listItem(state, node, parent) {
555
+ const results = state.all(node);
556
+ const loose = parent ? listLoose(parent) : listItemLoose(node);
557
+ /** @type {Properties} */
558
+ const properties = {};
559
+ /** @type {Array<ElementContent>} */
560
+ const children = [];
561
+ if (typeof node.checked === "boolean") {
562
+ const head = results[0];
563
+ /** @type {Element} */
564
+ let paragraph;
565
+ if (head && head.type === "element" && head.tagName === "p") paragraph = head;
566
+ else {
567
+ paragraph = {
568
+ type: "element",
569
+ tagName: "p",
570
+ properties: {},
571
+ children: []
572
+ };
573
+ results.unshift(paragraph);
574
+ }
575
+ if (paragraph.children.length > 0) paragraph.children.unshift({
576
+ type: "text",
577
+ value: " "
578
+ });
579
+ paragraph.children.unshift({
580
+ type: "element",
581
+ tagName: "input",
582
+ properties: {
583
+ type: "checkbox",
584
+ checked: node.checked,
585
+ disabled: true
586
+ },
587
+ children: []
588
+ });
589
+ properties.className = ["task-list-item"];
590
+ }
591
+ let index = -1;
592
+ while (++index < results.length) {
593
+ const child = results[index];
594
+ if (loose || index !== 0 || child.type !== "element" || child.tagName !== "p") children.push({
595
+ type: "text",
596
+ value: "\n"
597
+ });
598
+ if (child.type === "element" && child.tagName === "p" && !loose) children.push(...child.children);
599
+ else children.push(child);
600
+ }
601
+ const tail = results[results.length - 1];
602
+ if (tail && (loose || tail.type !== "element" || tail.tagName !== "p")) children.push({
603
+ type: "text",
604
+ value: "\n"
605
+ });
606
+ /** @type {Element} */
607
+ const result = {
608
+ type: "element",
609
+ tagName: "li",
610
+ properties,
611
+ children
612
+ };
613
+ state.patch(node, result);
614
+ return state.applyData(node, result);
615
+ }
616
+ /**
617
+ * @param {Parents} node
618
+ * @return {Boolean}
619
+ */
620
+ function listLoose(node) {
621
+ let loose = false;
622
+ if (node.type === "list") {
623
+ loose = node.spread || false;
624
+ const children = node.children;
625
+ let index = -1;
626
+ while (!loose && ++index < children.length) loose = listItemLoose(children[index]);
627
+ }
628
+ return loose;
629
+ }
630
+ /**
631
+ * @param {ListItem} node
632
+ * @return {Boolean}
633
+ */
634
+ function listItemLoose(node) {
635
+ const spread = node.spread;
636
+ return spread === null || spread === void 0 ? node.children.length > 1 : spread;
637
+ }
638
+ //#endregion
639
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js
640
+ /**
641
+ * @import {Element, Properties} from 'hast'
642
+ * @import {List} from 'mdast'
643
+ * @import {State} from '../state.js'
644
+ */
645
+ /**
646
+ * Turn an mdast `list` node into hast.
647
+ *
648
+ * @param {State} state
649
+ * Info passed around.
650
+ * @param {List} node
651
+ * mdast node.
652
+ * @returns {Element}
653
+ * hast node.
654
+ */
655
+ function list(state, node) {
656
+ /** @type {Properties} */
657
+ const properties = {};
658
+ const results = state.all(node);
659
+ let index = -1;
660
+ if (typeof node.start === "number" && node.start !== 1) properties.start = node.start;
661
+ while (++index < results.length) {
662
+ const child = results[index];
663
+ if (child.type === "element" && child.tagName === "li" && child.properties && Array.isArray(child.properties.className) && child.properties.className.includes("task-list-item")) {
664
+ properties.className = ["contains-task-list"];
665
+ break;
666
+ }
667
+ }
668
+ /** @type {Element} */
669
+ const result = {
670
+ type: "element",
671
+ tagName: node.ordered ? "ol" : "ul",
672
+ properties,
673
+ children: state.wrap(results, true)
674
+ };
675
+ state.patch(node, result);
676
+ return state.applyData(node, result);
677
+ }
678
+ //#endregion
679
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
680
+ /**
681
+ * @import {Element} from 'hast'
682
+ * @import {Paragraph} from 'mdast'
683
+ * @import {State} from '../state.js'
684
+ */
685
+ /**
686
+ * Turn an mdast `paragraph` node into hast.
687
+ *
688
+ * @param {State} state
689
+ * Info passed around.
690
+ * @param {Paragraph} node
691
+ * mdast node.
692
+ * @returns {Element}
693
+ * hast node.
694
+ */
695
+ function paragraph(state, node) {
696
+ /** @type {Element} */
697
+ const result = {
698
+ type: "element",
699
+ tagName: "p",
700
+ properties: {},
701
+ children: state.all(node)
702
+ };
703
+ state.patch(node, result);
704
+ return state.applyData(node, result);
705
+ }
706
+ //#endregion
707
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js
708
+ /**
709
+ * @import {Parents as HastParents, Root as HastRoot} from 'hast'
710
+ * @import {Root as MdastRoot} from 'mdast'
711
+ * @import {State} from '../state.js'
712
+ */
713
+ /**
714
+ * Turn an mdast `root` node into hast.
715
+ *
716
+ * @param {State} state
717
+ * Info passed around.
718
+ * @param {MdastRoot} node
719
+ * mdast node.
720
+ * @returns {HastParents}
721
+ * hast node.
722
+ */
723
+ function root(state, node) {
724
+ /** @type {HastRoot} */
725
+ const result = {
726
+ type: "root",
727
+ children: state.wrap(state.all(node))
728
+ };
729
+ state.patch(node, result);
730
+ return state.applyData(node, result);
731
+ }
732
+ //#endregion
733
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js
734
+ /**
735
+ * @import {Element} from 'hast'
736
+ * @import {Strong} from 'mdast'
737
+ * @import {State} from '../state.js'
738
+ */
739
+ /**
740
+ * Turn an mdast `strong` node into hast.
741
+ *
742
+ * @param {State} state
743
+ * Info passed around.
744
+ * @param {Strong} node
745
+ * mdast node.
746
+ * @returns {Element}
747
+ * hast node.
748
+ */
749
+ function strong(state, node) {
750
+ /** @type {Element} */
751
+ const result = {
752
+ type: "element",
753
+ tagName: "strong",
754
+ properties: {},
755
+ children: state.all(node)
756
+ };
757
+ state.patch(node, result);
758
+ return state.applyData(node, result);
759
+ }
760
+ //#endregion
761
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js
762
+ /**
763
+ * @import {Table} from 'mdast'
764
+ * @import {Element} from 'hast'
765
+ * @import {State} from '../state.js'
766
+ */
767
+ /**
768
+ * Turn an mdast `table` node into hast.
769
+ *
770
+ * @param {State} state
771
+ * Info passed around.
772
+ * @param {Table} node
773
+ * mdast node.
774
+ * @returns {Element}
775
+ * hast node.
776
+ */
777
+ function table(state, node) {
778
+ const rows = state.all(node);
779
+ const firstRow = rows.shift();
780
+ /** @type {Array<Element>} */
781
+ const tableContent = [];
782
+ if (firstRow) {
783
+ /** @type {Element} */
784
+ const head = {
785
+ type: "element",
786
+ tagName: "thead",
787
+ properties: {},
788
+ children: state.wrap([firstRow], true)
789
+ };
790
+ state.patch(node.children[0], head);
791
+ tableContent.push(head);
792
+ }
793
+ if (rows.length > 0) {
794
+ /** @type {Element} */
795
+ const body = {
796
+ type: "element",
797
+ tagName: "tbody",
798
+ properties: {},
799
+ children: state.wrap(rows, true)
800
+ };
801
+ const start = pointStart(node.children[1]);
802
+ const end = pointEnd(node.children[node.children.length - 1]);
803
+ if (start && end) body.position = {
804
+ start,
805
+ end
806
+ };
807
+ tableContent.push(body);
808
+ }
809
+ /** @type {Element} */
810
+ const result = {
811
+ type: "element",
812
+ tagName: "table",
813
+ properties: {},
814
+ children: state.wrap(tableContent, true)
815
+ };
816
+ state.patch(node, result);
817
+ return state.applyData(node, result);
818
+ }
819
+ //#endregion
820
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
821
+ /**
822
+ * @import {Element, ElementContent, Properties} from 'hast'
823
+ * @import {Parents, TableRow} from 'mdast'
824
+ * @import {State} from '../state.js'
825
+ */
826
+ /**
827
+ * Turn an mdast `tableRow` node into hast.
828
+ *
829
+ * @param {State} state
830
+ * Info passed around.
831
+ * @param {TableRow} node
832
+ * mdast node.
833
+ * @param {Parents | undefined} parent
834
+ * Parent of `node`.
835
+ * @returns {Element}
836
+ * hast node.
837
+ */
838
+ function tableRow(state, node, parent) {
839
+ const siblings = parent ? parent.children : void 0;
840
+ const tagName = (siblings ? siblings.indexOf(node) : 1) === 0 ? "th" : "td";
841
+ const align = parent && parent.type === "table" ? parent.align : void 0;
842
+ const length = align ? align.length : node.children.length;
843
+ let cellIndex = -1;
844
+ /** @type {Array<ElementContent>} */
845
+ const cells = [];
846
+ while (++cellIndex < length) {
847
+ const cell = node.children[cellIndex];
848
+ /** @type {Properties} */
849
+ const properties = {};
850
+ const alignValue = align ? align[cellIndex] : void 0;
851
+ if (alignValue) properties.align = alignValue;
852
+ /** @type {Element} */
853
+ let result = {
854
+ type: "element",
855
+ tagName,
856
+ properties,
857
+ children: []
858
+ };
859
+ if (cell) {
860
+ result.children = state.all(cell);
861
+ state.patch(cell, result);
862
+ result = state.applyData(cell, result);
863
+ }
864
+ cells.push(result);
865
+ }
866
+ /** @type {Element} */
867
+ const result = {
868
+ type: "element",
869
+ tagName: "tr",
870
+ properties: {},
871
+ children: state.wrap(cells, true)
872
+ };
873
+ state.patch(node, result);
874
+ return state.applyData(node, result);
875
+ }
876
+ //#endregion
877
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
878
+ /**
879
+ * @import {Element} from 'hast'
880
+ * @import {TableCell} from 'mdast'
881
+ * @import {State} from '../state.js'
882
+ */
883
+ /**
884
+ * Turn an mdast `tableCell` node into hast.
885
+ *
886
+ * @param {State} state
887
+ * Info passed around.
888
+ * @param {TableCell} node
889
+ * mdast node.
890
+ * @returns {Element}
891
+ * hast node.
892
+ */
893
+ function tableCell(state, node) {
894
+ /** @type {Element} */
895
+ const result = {
896
+ type: "element",
897
+ tagName: "td",
898
+ properties: {},
899
+ children: state.all(node)
900
+ };
901
+ state.patch(node, result);
902
+ return state.applyData(node, result);
903
+ }
904
+ //#endregion
905
+ //#region node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.js
906
+ var tab = 9;
907
+ var space = 32;
908
+ /**
909
+ * Remove initial and final spaces and tabs at the line breaks in `value`.
910
+ * Does not trim initial and final spaces and tabs of the value itself.
911
+ *
912
+ * @param {string} value
913
+ * Value to trim.
914
+ * @returns {string}
915
+ * Trimmed value.
916
+ */
917
+ function trimLines(value) {
918
+ const source = String(value);
919
+ const search = /\r?\n|\r/g;
920
+ let match = search.exec(source);
921
+ let last = 0;
922
+ /** @type {Array<string>} */
923
+ const lines = [];
924
+ while (match) {
925
+ lines.push(trimLine(source.slice(last, match.index), last > 0, true), match[0]);
926
+ last = match.index + match[0].length;
927
+ match = search.exec(source);
928
+ }
929
+ lines.push(trimLine(source.slice(last), last > 0, false));
930
+ return lines.join("");
931
+ }
932
+ /**
933
+ * @param {string} value
934
+ * Line to trim.
935
+ * @param {boolean} start
936
+ * Whether to trim the start of the line.
937
+ * @param {boolean} end
938
+ * Whether to trim the end of the line.
939
+ * @returns {string}
940
+ * Trimmed line.
941
+ */
942
+ function trimLine(value, start, end) {
943
+ let startIndex = 0;
944
+ let endIndex = value.length;
945
+ if (start) {
946
+ let code = value.codePointAt(startIndex);
947
+ while (code === tab || code === space) {
948
+ startIndex++;
949
+ code = value.codePointAt(startIndex);
950
+ }
951
+ }
952
+ if (end) {
953
+ let code = value.codePointAt(endIndex - 1);
954
+ while (code === tab || code === space) {
955
+ endIndex--;
956
+ code = value.codePointAt(endIndex - 1);
957
+ }
958
+ }
959
+ return endIndex > startIndex ? value.slice(startIndex, endIndex) : "";
960
+ }
961
+ //#endregion
962
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
963
+ /**
964
+ * @import {Element as HastElement, Text as HastText} from 'hast'
965
+ * @import {Text as MdastText} from 'mdast'
966
+ * @import {State} from '../state.js'
967
+ */
968
+ /**
969
+ * Turn an mdast `text` node into hast.
970
+ *
971
+ * @param {State} state
972
+ * Info passed around.
973
+ * @param {MdastText} node
974
+ * mdast node.
975
+ * @returns {HastElement | HastText}
976
+ * hast node.
977
+ */
978
+ function text(state, node) {
979
+ /** @type {HastText} */
980
+ const result = {
981
+ type: "text",
982
+ value: trimLines(String(node.value))
983
+ };
984
+ state.patch(node, result);
985
+ return state.applyData(node, result);
986
+ }
987
+ //#endregion
988
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
989
+ /**
990
+ * @import {Element} from 'hast'
991
+ * @import {ThematicBreak} from 'mdast'
992
+ * @import {State} from '../state.js'
993
+ */
994
+ /**
995
+ * Turn an mdast `thematicBreak` node into hast.
996
+ *
997
+ * @param {State} state
998
+ * Info passed around.
999
+ * @param {ThematicBreak} node
1000
+ * mdast node.
1001
+ * @returns {Element}
1002
+ * hast node.
1003
+ */
1004
+ function thematicBreak(state, node) {
1005
+ /** @type {Element} */
1006
+ const result = {
1007
+ type: "element",
1008
+ tagName: "hr",
1009
+ properties: {},
1010
+ children: []
1011
+ };
1012
+ state.patch(node, result);
1013
+ return state.applyData(node, result);
1014
+ }
1015
+ //#endregion
1016
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js
1017
+ /**
1018
+ * @import {Handlers} from '../state.js'
1019
+ */
1020
+ /**
1021
+ * Default handlers for nodes.
1022
+ *
1023
+ * @satisfies {Handlers}
1024
+ */
1025
+ var handlers = {
1026
+ blockquote,
1027
+ break: hardBreak,
1028
+ code,
1029
+ delete: strikethrough,
1030
+ emphasis,
1031
+ footnoteReference,
1032
+ heading,
1033
+ html,
1034
+ imageReference,
1035
+ image,
1036
+ inlineCode,
1037
+ linkReference,
1038
+ link,
1039
+ listItem,
1040
+ list,
1041
+ paragraph,
1042
+ root,
1043
+ strong,
1044
+ table,
1045
+ tableCell,
1046
+ tableRow,
1047
+ text,
1048
+ thematicBreak,
1049
+ toml: ignore,
1050
+ yaml: ignore,
1051
+ definition: ignore,
1052
+ footnoteDefinition: ignore
1053
+ };
1054
+ function ignore() {}
1055
+ //#endregion
1056
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js
1057
+ /**
1058
+ * @import {ElementContent, Element} from 'hast'
1059
+ * @import {State} from './state.js'
1060
+ */
1061
+ /**
1062
+ * @callback FootnoteBackContentTemplate
1063
+ * Generate content for the backreference dynamically.
1064
+ *
1065
+ * For the following markdown:
1066
+ *
1067
+ * ```markdown
1068
+ * Alpha[^micromark], bravo[^micromark], and charlie[^remark].
1069
+ *
1070
+ * [^remark]: things about remark
1071
+ * [^micromark]: things about micromark
1072
+ * ```
1073
+ *
1074
+ * This function will be called with:
1075
+ *
1076
+ * * `0` and `0` for the backreference from `things about micromark` to
1077
+ * `alpha`, as it is the first used definition, and the first call to it
1078
+ * * `0` and `1` for the backreference from `things about micromark` to
1079
+ * `bravo`, as it is the first used definition, and the second call to it
1080
+ * * `1` and `0` for the backreference from `things about remark` to
1081
+ * `charlie`, as it is the second used definition
1082
+ * @param {number} referenceIndex
1083
+ * Index of the definition in the order that they are first referenced,
1084
+ * 0-indexed.
1085
+ * @param {number} rereferenceIndex
1086
+ * Index of calls to the same definition, 0-indexed.
1087
+ * @returns {Array<ElementContent> | ElementContent | string}
1088
+ * Content for the backreference when linking back from definitions to their
1089
+ * reference.
1090
+ *
1091
+ * @callback FootnoteBackLabelTemplate
1092
+ * Generate a back label dynamically.
1093
+ *
1094
+ * For the following markdown:
1095
+ *
1096
+ * ```markdown
1097
+ * Alpha[^micromark], bravo[^micromark], and charlie[^remark].
1098
+ *
1099
+ * [^remark]: things about remark
1100
+ * [^micromark]: things about micromark
1101
+ * ```
1102
+ *
1103
+ * This function will be called with:
1104
+ *
1105
+ * * `0` and `0` for the backreference from `things about micromark` to
1106
+ * `alpha`, as it is the first used definition, and the first call to it
1107
+ * * `0` and `1` for the backreference from `things about micromark` to
1108
+ * `bravo`, as it is the first used definition, and the second call to it
1109
+ * * `1` and `0` for the backreference from `things about remark` to
1110
+ * `charlie`, as it is the second used definition
1111
+ * @param {number} referenceIndex
1112
+ * Index of the definition in the order that they are first referenced,
1113
+ * 0-indexed.
1114
+ * @param {number} rereferenceIndex
1115
+ * Index of calls to the same definition, 0-indexed.
1116
+ * @returns {string}
1117
+ * Back label to use when linking back from definitions to their reference.
1118
+ */
1119
+ /**
1120
+ * Generate the default content that GitHub uses on backreferences.
1121
+ *
1122
+ * @param {number} _
1123
+ * Index of the definition in the order that they are first referenced,
1124
+ * 0-indexed.
1125
+ * @param {number} rereferenceIndex
1126
+ * Index of calls to the same definition, 0-indexed.
1127
+ * @returns {Array<ElementContent>}
1128
+ * Content.
1129
+ */
1130
+ function defaultFootnoteBackContent(_, rereferenceIndex) {
1131
+ /** @type {Array<ElementContent>} */
1132
+ const result = [{
1133
+ type: "text",
1134
+ value: "↩"
1135
+ }];
1136
+ if (rereferenceIndex > 1) result.push({
1137
+ type: "element",
1138
+ tagName: "sup",
1139
+ properties: {},
1140
+ children: [{
1141
+ type: "text",
1142
+ value: String(rereferenceIndex)
1143
+ }]
1144
+ });
1145
+ return result;
1146
+ }
1147
+ /**
1148
+ * Generate the default label that GitHub uses on backreferences.
1149
+ *
1150
+ * @param {number} referenceIndex
1151
+ * Index of the definition in the order that they are first referenced,
1152
+ * 0-indexed.
1153
+ * @param {number} rereferenceIndex
1154
+ * Index of calls to the same definition, 0-indexed.
1155
+ * @returns {string}
1156
+ * Label.
1157
+ */
1158
+ function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {
1159
+ return "Back to reference " + (referenceIndex + 1) + (rereferenceIndex > 1 ? "-" + rereferenceIndex : "");
1160
+ }
1161
+ /**
1162
+ * Generate a hast footer for called footnote definitions.
1163
+ *
1164
+ * @param {State} state
1165
+ * Info passed around.
1166
+ * @returns {Element | undefined}
1167
+ * `section` element or `undefined`.
1168
+ */
1169
+ function footer(state) {
1170
+ const clobberPrefix = typeof state.options.clobberPrefix === "string" ? state.options.clobberPrefix : "user-content-";
1171
+ const footnoteBackContent = state.options.footnoteBackContent || defaultFootnoteBackContent;
1172
+ const footnoteBackLabel = state.options.footnoteBackLabel || defaultFootnoteBackLabel;
1173
+ const footnoteLabel = state.options.footnoteLabel || "Footnotes";
1174
+ const footnoteLabelTagName = state.options.footnoteLabelTagName || "h2";
1175
+ const footnoteLabelProperties = state.options.footnoteLabelProperties || { className: ["sr-only"] };
1176
+ /** @type {Array<ElementContent>} */
1177
+ const listItems = [];
1178
+ let referenceIndex = -1;
1179
+ while (++referenceIndex < state.footnoteOrder.length) {
1180
+ const definition = state.footnoteById.get(state.footnoteOrder[referenceIndex]);
1181
+ if (!definition) continue;
1182
+ const content = state.all(definition);
1183
+ const id = String(definition.identifier).toUpperCase();
1184
+ const safeId = normalizeUri(id.toLowerCase());
1185
+ let rereferenceIndex = 0;
1186
+ /** @type {Array<ElementContent>} */
1187
+ const backReferences = [];
1188
+ const counts = state.footnoteCounts.get(id);
1189
+ while (counts !== void 0 && ++rereferenceIndex <= counts) {
1190
+ if (backReferences.length > 0) backReferences.push({
1191
+ type: "text",
1192
+ value: " "
1193
+ });
1194
+ let children = typeof footnoteBackContent === "string" ? footnoteBackContent : footnoteBackContent(referenceIndex, rereferenceIndex);
1195
+ if (typeof children === "string") children = {
1196
+ type: "text",
1197
+ value: children
1198
+ };
1199
+ backReferences.push({
1200
+ type: "element",
1201
+ tagName: "a",
1202
+ properties: {
1203
+ href: "#" + clobberPrefix + "fnref-" + safeId + (rereferenceIndex > 1 ? "-" + rereferenceIndex : ""),
1204
+ dataFootnoteBackref: "",
1205
+ ariaLabel: typeof footnoteBackLabel === "string" ? footnoteBackLabel : footnoteBackLabel(referenceIndex, rereferenceIndex),
1206
+ className: ["data-footnote-backref"]
1207
+ },
1208
+ children: Array.isArray(children) ? children : [children]
1209
+ });
1210
+ }
1211
+ const tail = content[content.length - 1];
1212
+ if (tail && tail.type === "element" && tail.tagName === "p") {
1213
+ const tailTail = tail.children[tail.children.length - 1];
1214
+ if (tailTail && tailTail.type === "text") tailTail.value += " ";
1215
+ else tail.children.push({
1216
+ type: "text",
1217
+ value: " "
1218
+ });
1219
+ tail.children.push(...backReferences);
1220
+ } else content.push(...backReferences);
1221
+ /** @type {Element} */
1222
+ const listItem = {
1223
+ type: "element",
1224
+ tagName: "li",
1225
+ properties: { id: clobberPrefix + "fn-" + safeId },
1226
+ children: state.wrap(content, true)
1227
+ };
1228
+ state.patch(definition, listItem);
1229
+ listItems.push(listItem);
1230
+ }
1231
+ if (listItems.length === 0) return;
1232
+ return {
1233
+ type: "element",
1234
+ tagName: "section",
1235
+ properties: {
1236
+ dataFootnotes: true,
1237
+ className: ["footnotes"]
1238
+ },
1239
+ children: [
1240
+ {
1241
+ type: "element",
1242
+ tagName: footnoteLabelTagName,
1243
+ properties: {
1244
+ ...esm_default(footnoteLabelProperties),
1245
+ id: "footnote-label"
1246
+ },
1247
+ children: [{
1248
+ type: "text",
1249
+ value: footnoteLabel
1250
+ }]
1251
+ },
1252
+ {
1253
+ type: "text",
1254
+ value: "\n"
1255
+ },
1256
+ {
1257
+ type: "element",
1258
+ tagName: "ol",
1259
+ properties: {},
1260
+ children: state.wrap(listItems, true)
1261
+ },
1262
+ {
1263
+ type: "text",
1264
+ value: "\n"
1265
+ }
1266
+ ]
1267
+ };
1268
+ }
1269
+ //#endregion
1270
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js
1271
+ /**
1272
+ * @import {
1273
+ * ElementContent as HastElementContent,
1274
+ * Element as HastElement,
1275
+ * Nodes as HastNodes,
1276
+ * Properties as HastProperties,
1277
+ * RootContent as HastRootContent,
1278
+ * Text as HastText
1279
+ * } from 'hast'
1280
+ * @import {
1281
+ * Definition as MdastDefinition,
1282
+ * FootnoteDefinition as MdastFootnoteDefinition,
1283
+ * Nodes as MdastNodes,
1284
+ * Parents as MdastParents
1285
+ * } from 'mdast'
1286
+ * @import {VFile} from 'vfile'
1287
+ * @import {
1288
+ * FootnoteBackContentTemplate,
1289
+ * FootnoteBackLabelTemplate
1290
+ * } from './footer.js'
1291
+ */
1292
+ /**
1293
+ * @callback Handler
1294
+ * Handle a node.
1295
+ * @param {State} state
1296
+ * Info passed around.
1297
+ * @param {any} node
1298
+ * mdast node to handle.
1299
+ * @param {MdastParents | undefined} parent
1300
+ * Parent of `node`.
1301
+ * @returns {Array<HastElementContent> | HastElementContent | undefined}
1302
+ * hast node.
1303
+ *
1304
+ * @typedef {Partial<Record<MdastNodes['type'], Handler>>} Handlers
1305
+ * Handle nodes.
1306
+ *
1307
+ * @typedef Options
1308
+ * Configuration (optional).
1309
+ * @property {boolean | null | undefined} [allowDangerousHtml=false]
1310
+ * Whether to persist raw HTML in markdown in the hast tree (default:
1311
+ * `false`).
1312
+ * @property {string | null | undefined} [clobberPrefix='user-content-']
1313
+ * Prefix to use before the `id` property on footnotes to prevent them from
1314
+ * *clobbering* (default: `'user-content-'`).
1315
+ *
1316
+ * Pass `''` for trusted markdown and when you are careful with
1317
+ * polyfilling.
1318
+ * You could pass a different prefix.
1319
+ *
1320
+ * DOM clobbering is this:
1321
+ *
1322
+ * ```html
1323
+ * <p id="x"></p>
1324
+ * <script>alert(x) // `x` now refers to the `p#x` DOM element<\/script>
1325
+ * ```
1326
+ *
1327
+ * The above example shows that elements are made available by browsers, by
1328
+ * their ID, on the `window` object.
1329
+ * This is a security risk because you might be expecting some other variable
1330
+ * at that place.
1331
+ * It can also break polyfills.
1332
+ * Using a prefix solves these problems.
1333
+ * @property {VFile | null | undefined} [file]
1334
+ * Corresponding virtual file representing the input document (optional).
1335
+ * @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]
1336
+ * Content of the backreference back to references (default: `defaultFootnoteBackContent`).
1337
+ *
1338
+ * The default value is:
1339
+ *
1340
+ * ```js
1341
+ * function defaultFootnoteBackContent(_, rereferenceIndex) {
1342
+ * const result = [{type: 'text', value: '↩'}]
1343
+ *
1344
+ * if (rereferenceIndex > 1) {
1345
+ * result.push({
1346
+ * type: 'element',
1347
+ * tagName: 'sup',
1348
+ * properties: {},
1349
+ * children: [{type: 'text', value: String(rereferenceIndex)}]
1350
+ * })
1351
+ * }
1352
+ *
1353
+ * return result
1354
+ * }
1355
+ * ```
1356
+ *
1357
+ * This content is used in the `a` element of each backreference (the `↩`
1358
+ * links).
1359
+ * @property {FootnoteBackLabelTemplate | string | null | undefined} [footnoteBackLabel]
1360
+ * Label to describe the backreference back to references (default:
1361
+ * `defaultFootnoteBackLabel`).
1362
+ *
1363
+ * The default value is:
1364
+ *
1365
+ * ```js
1366
+ * function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {
1367
+ * return (
1368
+ * 'Back to reference ' +
1369
+ * (referenceIndex + 1) +
1370
+ * (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')
1371
+ * )
1372
+ * }
1373
+ * ```
1374
+ *
1375
+ * Change it when the markdown is not in English.
1376
+ *
1377
+ * This label is used in the `ariaLabel` property on each backreference
1378
+ * (the `↩` links).
1379
+ * It affects users of assistive technology.
1380
+ * @property {string | null | undefined} [footnoteLabel='Footnotes']
1381
+ * Textual label to use for the footnotes section (default: `'Footnotes'`).
1382
+ *
1383
+ * Change it when the markdown is not in English.
1384
+ *
1385
+ * This label is typically hidden visually (assuming a `sr-only` CSS class
1386
+ * is defined that does that) and so affects screen readers only.
1387
+ * If you do have such a class, but want to show this section to everyone,
1388
+ * pass different properties with the `footnoteLabelProperties` option.
1389
+ * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]
1390
+ * Properties to use on the footnote label (default: `{className:
1391
+ * ['sr-only']}`).
1392
+ *
1393
+ * Change it to show the label and add other properties.
1394
+ *
1395
+ * This label is typically hidden visually (assuming an `sr-only` CSS class
1396
+ * is defined that does that) and so affects screen readers only.
1397
+ * If you do have such a class, but want to show this section to everyone,
1398
+ * pass an empty string.
1399
+ * You can also add different properties.
1400
+ *
1401
+ * > **Note**: `id: 'footnote-label'` is always added, because footnote
1402
+ * > calls use it with `aria-describedby` to provide an accessible label.
1403
+ * @property {string | null | undefined} [footnoteLabelTagName='h2']
1404
+ * HTML tag name to use for the footnote label element (default: `'h2'`).
1405
+ *
1406
+ * Change it to match your document structure.
1407
+ *
1408
+ * This label is typically hidden visually (assuming a `sr-only` CSS class
1409
+ * is defined that does that) and so affects screen readers only.
1410
+ * If you do have such a class, but want to show this section to everyone,
1411
+ * pass different properties with the `footnoteLabelProperties` option.
1412
+ * @property {Handlers | null | undefined} [handlers]
1413
+ * Extra handlers for nodes (optional).
1414
+ * @property {Array<MdastNodes['type']> | null | undefined} [passThrough]
1415
+ * List of custom mdast node types to pass through (keep) in hast (note that
1416
+ * the node itself is passed, but eventual children are transformed)
1417
+ * (optional).
1418
+ * @property {Handler | null | undefined} [unknownHandler]
1419
+ * Handler for all unknown nodes (optional).
1420
+ *
1421
+ * @typedef State
1422
+ * Info passed around.
1423
+ * @property {(node: MdastNodes) => Array<HastElementContent>} all
1424
+ * Transform the children of an mdast parent to hast.
1425
+ * @property {<Type extends HastNodes>(from: MdastNodes, to: Type) => HastElement | Type} applyData
1426
+ * Honor the `data` of `from`, and generate an element instead of `node`.
1427
+ * @property {Map<string, MdastDefinition>} definitionById
1428
+ * Definitions by their identifier.
1429
+ * @property {Map<string, MdastFootnoteDefinition>} footnoteById
1430
+ * Footnote definitions by their identifier.
1431
+ * @property {Map<string, number>} footnoteCounts
1432
+ * Counts for how often the same footnote was called.
1433
+ * @property {Array<string>} footnoteOrder
1434
+ * Identifiers of order when footnote calls first appear in tree order.
1435
+ * @property {Handlers} handlers
1436
+ * Applied handlers.
1437
+ * @property {(node: MdastNodes, parent: MdastParents | undefined) => Array<HastElementContent> | HastElementContent | undefined} one
1438
+ * Transform an mdast node to hast.
1439
+ * @property {Options} options
1440
+ * Configuration.
1441
+ * @property {(from: MdastNodes, node: HastNodes) => undefined} patch
1442
+ * Copy a node’s positional info.
1443
+ * @property {<Type extends HastRootContent>(nodes: Array<Type>, loose?: boolean | undefined) => Array<HastText | Type>} wrap
1444
+ * Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.
1445
+ */
1446
+ var own = {}.hasOwnProperty;
1447
+ /** @type {Options} */
1448
+ var emptyOptions = {};
1449
+ /**
1450
+ * Create `state` from an mdast tree.
1451
+ *
1452
+ * @param {MdastNodes} tree
1453
+ * mdast node to transform.
1454
+ * @param {Options | null | undefined} [options]
1455
+ * Configuration (optional).
1456
+ * @returns {State}
1457
+ * `state` function.
1458
+ */
1459
+ function createState(tree, options) {
1460
+ const settings = options || emptyOptions;
1461
+ /** @type {Map<string, MdastDefinition>} */
1462
+ const definitionById = /* @__PURE__ */ new Map();
1463
+ /** @type {Map<string, MdastFootnoteDefinition>} */
1464
+ const footnoteById = /* @__PURE__ */ new Map();
1465
+ /** @type {State} */
1466
+ const state = {
1467
+ all,
1468
+ applyData,
1469
+ definitionById,
1470
+ footnoteById,
1471
+ footnoteCounts: /* @__PURE__ */ new Map(),
1472
+ footnoteOrder: [],
1473
+ handlers: {
1474
+ ...handlers,
1475
+ ...settings.handlers
1476
+ },
1477
+ one,
1478
+ options: settings,
1479
+ patch,
1480
+ wrap
1481
+ };
1482
+ visit(tree, function(node) {
1483
+ if (node.type === "definition" || node.type === "footnoteDefinition") {
1484
+ const map = node.type === "definition" ? definitionById : footnoteById;
1485
+ const id = String(node.identifier).toUpperCase();
1486
+ if (!map.has(id)) map.set(id, node);
1487
+ }
1488
+ });
1489
+ return state;
1490
+ /**
1491
+ * Transform an mdast node into a hast node.
1492
+ *
1493
+ * @param {MdastNodes} node
1494
+ * mdast node.
1495
+ * @param {MdastParents | undefined} [parent]
1496
+ * Parent of `node`.
1497
+ * @returns {Array<HastElementContent> | HastElementContent | undefined}
1498
+ * Resulting hast node.
1499
+ */
1500
+ function one(node, parent) {
1501
+ const type = node.type;
1502
+ const handle = state.handlers[type];
1503
+ if (own.call(state.handlers, type) && handle) return handle(state, node, parent);
1504
+ if (state.options.passThrough && state.options.passThrough.includes(type)) {
1505
+ if ("children" in node) {
1506
+ const { children, ...shallow } = node;
1507
+ const result = esm_default(shallow);
1508
+ result.children = state.all(node);
1509
+ return result;
1510
+ }
1511
+ return esm_default(node);
1512
+ }
1513
+ return (state.options.unknownHandler || defaultUnknownHandler)(state, node, parent);
1514
+ }
1515
+ /**
1516
+ * Transform the children of an mdast node into hast nodes.
1517
+ *
1518
+ * @param {MdastNodes} parent
1519
+ * mdast node to compile
1520
+ * @returns {Array<HastElementContent>}
1521
+ * Resulting hast nodes.
1522
+ */
1523
+ function all(parent) {
1524
+ /** @type {Array<HastElementContent>} */
1525
+ const values = [];
1526
+ if ("children" in parent) {
1527
+ const nodes = parent.children;
1528
+ let index = -1;
1529
+ while (++index < nodes.length) {
1530
+ const result = state.one(nodes[index], parent);
1531
+ if (result) {
1532
+ if (index && nodes[index - 1].type === "break") {
1533
+ if (!Array.isArray(result) && result.type === "text") result.value = trimMarkdownSpaceStart(result.value);
1534
+ if (!Array.isArray(result) && result.type === "element") {
1535
+ const head = result.children[0];
1536
+ if (head && head.type === "text") head.value = trimMarkdownSpaceStart(head.value);
1537
+ }
1538
+ }
1539
+ if (Array.isArray(result)) values.push(...result);
1540
+ else values.push(result);
1541
+ }
1542
+ }
1543
+ }
1544
+ return values;
1545
+ }
1546
+ }
1547
+ /**
1548
+ * Copy a node’s positional info.
1549
+ *
1550
+ * @param {MdastNodes} from
1551
+ * mdast node to copy from.
1552
+ * @param {HastNodes} to
1553
+ * hast node to copy into.
1554
+ * @returns {undefined}
1555
+ * Nothing.
1556
+ */
1557
+ function patch(from, to) {
1558
+ if (from.position) to.position = position(from);
1559
+ }
1560
+ /**
1561
+ * Honor the `data` of `from` and maybe generate an element instead of `to`.
1562
+ *
1563
+ * @template {HastNodes} Type
1564
+ * Node type.
1565
+ * @param {MdastNodes} from
1566
+ * mdast node to use data from.
1567
+ * @param {Type} to
1568
+ * hast node to change.
1569
+ * @returns {HastElement | Type}
1570
+ * Nothing.
1571
+ */
1572
+ function applyData(from, to) {
1573
+ /** @type {HastElement | Type} */
1574
+ let result = to;
1575
+ if (from && from.data) {
1576
+ const hName = from.data.hName;
1577
+ const hChildren = from.data.hChildren;
1578
+ const hProperties = from.data.hProperties;
1579
+ if (typeof hName === "string") if (result.type === "element") result.tagName = hName;
1580
+ else result = {
1581
+ type: "element",
1582
+ tagName: hName,
1583
+ properties: {},
1584
+ children: "children" in result ? result.children : [result]
1585
+ };
1586
+ if (result.type === "element" && hProperties) Object.assign(result.properties, esm_default(hProperties));
1587
+ if ("children" in result && result.children && hChildren !== null && hChildren !== void 0) result.children = hChildren;
1588
+ }
1589
+ return result;
1590
+ }
1591
+ /**
1592
+ * Transform an unknown node.
1593
+ *
1594
+ * @param {State} state
1595
+ * Info passed around.
1596
+ * @param {MdastNodes} node
1597
+ * Unknown mdast node.
1598
+ * @returns {HastElement | HastText}
1599
+ * Resulting hast node.
1600
+ */
1601
+ function defaultUnknownHandler(state, node) {
1602
+ const data = node.data || {};
1603
+ /** @type {HastElement | HastText} */
1604
+ const result = "value" in node && !(own.call(data, "hProperties") || own.call(data, "hChildren")) ? {
1605
+ type: "text",
1606
+ value: node.value
1607
+ } : {
1608
+ type: "element",
1609
+ tagName: "div",
1610
+ properties: {},
1611
+ children: state.all(node)
1612
+ };
1613
+ state.patch(node, result);
1614
+ return state.applyData(node, result);
1615
+ }
1616
+ /**
1617
+ * Wrap `nodes` with line endings between each node.
1618
+ *
1619
+ * @template {HastRootContent} Type
1620
+ * Node type.
1621
+ * @param {Array<Type>} nodes
1622
+ * List of nodes to wrap.
1623
+ * @param {boolean | undefined} [loose=false]
1624
+ * Whether to add line endings at start and end (default: `false`).
1625
+ * @returns {Array<HastText | Type>}
1626
+ * Wrapped nodes.
1627
+ */
1628
+ function wrap(nodes, loose) {
1629
+ /** @type {Array<HastText | Type>} */
1630
+ const result = [];
1631
+ let index = -1;
1632
+ if (loose) result.push({
1633
+ type: "text",
1634
+ value: "\n"
1635
+ });
1636
+ while (++index < nodes.length) {
1637
+ if (index) result.push({
1638
+ type: "text",
1639
+ value: "\n"
1640
+ });
1641
+ result.push(nodes[index]);
1642
+ }
1643
+ if (loose && nodes.length > 0) result.push({
1644
+ type: "text",
1645
+ value: "\n"
1646
+ });
1647
+ return result;
1648
+ }
1649
+ /**
1650
+ * Trim spaces and tabs at the start of `value`.
1651
+ *
1652
+ * @param {string} value
1653
+ * Value to trim.
1654
+ * @returns {string}
1655
+ * Result.
1656
+ */
1657
+ function trimMarkdownSpaceStart(value) {
1658
+ let index = 0;
1659
+ let code = value.charCodeAt(index);
1660
+ while (code === 9 || code === 32) {
1661
+ index++;
1662
+ code = value.charCodeAt(index);
1663
+ }
1664
+ return value.slice(index);
1665
+ }
1666
+ //#endregion
1667
+ //#region node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js
1668
+ /**
1669
+ * @import {Nodes as HastNodes} from 'hast'
1670
+ * @import {Nodes as MdastNodes} from 'mdast'
1671
+ * @import {Options} from './state.js'
1672
+ */
1673
+ /**
1674
+ * Transform mdast to hast.
1675
+ *
1676
+ * ##### Notes
1677
+ *
1678
+ * ###### HTML
1679
+ *
1680
+ * Raw HTML is available in mdast as `html` nodes and can be embedded in hast
1681
+ * as semistandard `raw` nodes.
1682
+ * Most utilities ignore `raw` nodes but two notable ones don’t:
1683
+ *
1684
+ * * `hast-util-to-html` also has an option `allowDangerousHtml` which will
1685
+ * output the raw HTML.
1686
+ * This is typically discouraged as noted by the option name but is useful
1687
+ * if you completely trust authors
1688
+ * * `hast-util-raw` can handle the raw embedded HTML strings by parsing them
1689
+ * into standard hast nodes (`element`, `text`, etc).
1690
+ * This is a heavy task as it needs a full HTML parser, but it is the only
1691
+ * way to support untrusted content
1692
+ *
1693
+ * ###### Footnotes
1694
+ *
1695
+ * Many options supported here relate to footnotes.
1696
+ * Footnotes are not specified by CommonMark, which we follow by default.
1697
+ * They are supported by GitHub, so footnotes can be enabled in markdown with
1698
+ * `mdast-util-gfm`.
1699
+ *
1700
+ * The options `footnoteBackLabel` and `footnoteLabel` define natural language
1701
+ * that explains footnotes, which is hidden for sighted users but shown to
1702
+ * assistive technology.
1703
+ * When your page is not in English, you must define translated values.
1704
+ *
1705
+ * Back references use ARIA attributes, but the section label itself uses a
1706
+ * heading that is hidden with an `sr-only` class.
1707
+ * To show it to sighted users, define different attributes in
1708
+ * `footnoteLabelProperties`.
1709
+ *
1710
+ * ###### Clobbering
1711
+ *
1712
+ * Footnotes introduces a problem, as it links footnote calls to footnote
1713
+ * definitions on the page through `id` attributes generated from user content,
1714
+ * which results in DOM clobbering.
1715
+ *
1716
+ * DOM clobbering is this:
1717
+ *
1718
+ * ```html
1719
+ * <p id=x></p>
1720
+ * <script>alert(x) // `x` now refers to the DOM `p#x` element<\/script>
1721
+ * ```
1722
+ *
1723
+ * Elements by their ID are made available by browsers on the `window` object,
1724
+ * which is a security risk.
1725
+ * Using a prefix solves this problem.
1726
+ *
1727
+ * More information on how to handle clobbering and the prefix is explained in
1728
+ * Example: headings (DOM clobbering) in `rehype-sanitize`.
1729
+ *
1730
+ * ###### Unknown nodes
1731
+ *
1732
+ * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.
1733
+ * The default behavior for unknown nodes is:
1734
+ *
1735
+ * * when the node has a `value` (and doesn’t have `data.hName`,
1736
+ * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`
1737
+ * node
1738
+ * * otherwise, create a `<div>` element (which could be changed with
1739
+ * `data.hName`), with its children mapped from mdast to hast as well
1740
+ *
1741
+ * This behavior can be changed by passing an `unknownHandler`.
1742
+ *
1743
+ * @param {MdastNodes} tree
1744
+ * mdast tree.
1745
+ * @param {Options | null | undefined} [options]
1746
+ * Configuration (optional).
1747
+ * @returns {HastNodes}
1748
+ * hast tree.
1749
+ */
1750
+ function toHast(tree, options) {
1751
+ const state = createState(tree, options);
1752
+ const node = state.one(tree, void 0);
1753
+ const foot = footer(state);
1754
+ /** @type {HastNodes} */
1755
+ const result = Array.isArray(node) ? {
1756
+ type: "root",
1757
+ children: node
1758
+ } : node || {
1759
+ type: "root",
1760
+ children: []
1761
+ };
1762
+ if (foot) {
1763
+ "children" in result;
1764
+ result.children.push({
1765
+ type: "text",
1766
+ value: "\n"
1767
+ }, foot);
1768
+ }
1769
+ return result;
1770
+ }
1771
+ //#endregion
1772
+ export { toHast as t };