orc-ai 0.1.53 → 0.1.55

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 (208) hide show
  1. package/README.md +26 -2
  2. package/dist/index.js +769 -591
  3. package/dist/skills/orc-platform/SKILL.md +2 -1
  4. package/dist/skills/orc-platform/references/channels.md +169 -0
  5. package/dist/skills/orc-platform/references/setup.md +3 -3
  6. package/dist/web/assets/Agents-D70pZAkB.js +34 -0
  7. package/dist/web/assets/Attention-DoTjQvwX.js +2 -0
  8. package/dist/web/assets/Audit-BilD5tHL.js +1 -0
  9. package/dist/web/assets/ConfirmDialog-Cyd60q9b.js +1 -0
  10. package/dist/web/assets/Dashboard-BrpclE6i.js +1 -0
  11. package/dist/web/assets/DocumentWorkspace-BirLb0Py.js +1 -0
  12. package/dist/web/assets/{ErrorState-BoQqdsym.js → ErrorState-BrKz7Mii.js} +1 -1
  13. package/dist/web/assets/FileEditor-Cfl56W9G.js +1 -0
  14. package/dist/web/assets/JobWebhooks-csgdKaIu.js +1 -0
  15. package/dist/web/assets/Jobs-BeDH5Nqx.js +1 -0
  16. package/dist/web/assets/Knowledge-Bhe2osQ9.js +1 -0
  17. package/dist/web/assets/Markdown-cNY95m5f.js +2 -0
  18. package/dist/web/assets/MarkdownEditor-CPlYZ0ux.js +2 -0
  19. package/dist/web/assets/{MarkdownRenderer-B5esWp7J.js → MarkdownRenderer-C4od8dIW.js} +9 -9
  20. package/dist/web/assets/PackageCatalog-rIC8EqCV.js +8 -0
  21. package/dist/web/assets/{PackageRunDialog-DxUs3Qnc.js → PackageRunDialog-BPLlcUBW.js} +46 -46
  22. package/dist/web/assets/{Pager-DQCWHQWA.js → Pager-Bc666Oa5.js} +1 -1
  23. package/dist/web/assets/{PriorityBadge-ADp-pD5B.js → PriorityBadge-Ccw4iVk7.js} +1 -1
  24. package/dist/web/assets/Projects-C5tjWMiN.js +3 -0
  25. package/dist/web/assets/ResponsiveFilters-DAeezpA-.js +1 -0
  26. package/dist/web/assets/ResumeActions-Xi3gsryf.js +1 -0
  27. package/dist/web/assets/Rules-u4Yt3UWU.js +18 -0
  28. package/dist/web/assets/{ScratchpadDiagramEditor-D44NiVP_.js → ScratchpadDiagramEditor-CEZLGEOO.js} +7 -7
  29. package/dist/web/assets/Scratchpads-BINR8pcN.js +10 -0
  30. package/dist/web/assets/Sessions-xflxxp3f.js +3 -0
  31. package/dist/web/assets/Settings-C5tS2MvS.js +6 -0
  32. package/dist/web/assets/Skills-QaW-IPD1.js +8 -0
  33. package/dist/web/assets/{SourceEditor-B5CtJBt0.js → SourceEditor-BXHhVnEe.js} +1 -1
  34. package/dist/web/assets/{StatusBadge-CTFDUHuw.js → StatusBadge-ia651_Df.js} +1 -1
  35. package/dist/web/assets/TagInput-BCXK-1YG.js +1 -0
  36. package/dist/web/assets/TaskDetailSheet-BIMcgJGc.js +1 -0
  37. package/dist/web/assets/Tasks-CsBS5O9A.js +22 -0
  38. package/dist/web/assets/Terminals-C0aoP7ar.css +1 -0
  39. package/dist/web/assets/Terminals-D3Yo-p_A.js +3 -0
  40. package/dist/web/assets/ViewHeader-Ce5HQRJu.js +1 -0
  41. package/dist/web/assets/Webhooks-BCKPHvAT.js +1 -0
  42. package/dist/web/assets/{ar-SA-G6X2FPQ2-9uLW-Aib.js → ar-SA-G6X2FPQ2-Dxcs6bnC.js} +1 -1
  43. package/dist/web/assets/arrow-left-vCG_8rdy.js +1 -0
  44. package/dist/web/assets/{az-AZ-76LH7QW2-DOqqo97y.js → az-AZ-76LH7QW2-DzTRmo_5.js} +1 -1
  45. package/dist/web/assets/{bg-BG-XCXSNQG7-BHUaosi9.js → bg-BG-XCXSNQG7-GVnVbOJF.js} +1 -1
  46. package/dist/web/assets/{bn-BD-2XOGV67Q-_-LDSkWx.js → bn-BD-2XOGV67Q-CBnLWZsm.js} +1 -1
  47. package/dist/web/assets/bundle-mjs-geeEdoSy.js +1 -0
  48. package/dist/web/assets/button-CXYVslgR.js +1 -0
  49. package/dist/web/assets/{ca-ES-6MX7JW3Y-D00wQc68.js → ca-ES-6MX7JW3Y-nF87CFCd.js} +1 -1
  50. package/dist/web/assets/check-DOY0CJBh.js +1 -0
  51. package/dist/web/assets/chevron-down-hj6o3_QU.js +1 -0
  52. package/dist/web/assets/{chunk-EIO257PC-BfeJ3EDs.js → chunk-EIO257PC-C5HXDKyY.js} +1 -1
  53. package/dist/web/assets/chunk-OB3PAWPO-1IihCzFx.js +4 -0
  54. package/dist/web/assets/claude-DyzolaFc.svg +3 -0
  55. package/dist/web/assets/client-nzMXason.js +1 -0
  56. package/dist/web/assets/codex-BNO0LSlX.svg +1 -0
  57. package/dist/web/assets/copilot-BALWjOlU.svg +1 -0
  58. package/dist/web/assets/copy-DZWYRnrF.js +1 -0
  59. package/dist/web/assets/{cs-CZ-2BRQDIVT-EB-m3ztC.js → cs-CZ-2BRQDIVT-Cz5r5OEj.js} +1 -1
  60. package/dist/web/assets/cursor-DdfUZ9gB.svg +12 -0
  61. package/dist/web/assets/{da-DK-5WZEPLOC-DWYR6cGM.js → da-DK-5WZEPLOC-B2TNmBRb.js} +1 -1
  62. package/dist/web/assets/{de-DE-XR44H4JA-Ck6sMUnJ.js → de-DE-XR44H4JA-BNOqSnix.js} +1 -1
  63. package/dist/web/assets/dialog-Juth7dP_.js +1 -0
  64. package/dist/web/assets/dist-DxwmSTqz.js +1 -0
  65. package/dist/web/assets/dist-bytwC6rk.js +1 -0
  66. package/dist/web/assets/download-3BU1OMm1.js +1 -0
  67. package/dist/web/assets/{el-GR-BZB4AONW-DTkIqoGp.js → el-GR-BZB4AONW-BzwJhjCV.js} +1 -1
  68. package/dist/web/assets/{en-B4ZKOASM-Boq12EIA.js → en-B4ZKOASM-qumcDTz5.js} +1 -1
  69. package/dist/web/assets/{es-ES-U4NZUMDT-DY7ipP7c.js → es-ES-U4NZUMDT-CYNwXzvM.js} +1 -1
  70. package/dist/web/assets/{eu-ES-A7QVB2H4-D4Y6LEUc.js → eu-ES-A7QVB2H4-Bt_WsfwK.js} +1 -1
  71. package/dist/web/assets/{fa-IR-HGAKTJCU-BlO1bnpc.js → fa-IR-HGAKTJCU-TG6ul0gf.js} +1 -1
  72. package/dist/web/assets/{fi-FI-Z5N7JZ37-CQlPsyFJ.js → fi-FI-Z5N7JZ37-BEmxMqCH.js} +1 -1
  73. package/dist/web/assets/folder-open-BQI4k9Xd.js +1 -0
  74. package/dist/web/assets/{fr-FR-RHASNOE6-DsyF_chP.js → fr-FR-RHASNOE6-DVlOJmrm.js} +1 -1
  75. package/dist/web/assets/{gl-ES-HMX3MZ6V-BGAJPW2y.js → gl-ES-HMX3MZ6V-C51CVUC3.js} +1 -1
  76. package/dist/web/assets/{he-IL-6SHJWFNN-BCFUF5Bi.js → he-IL-6SHJWFNN-BaHbjpvX.js} +1 -1
  77. package/dist/web/assets/{hi-IN-IWLTKZ5I-CWKeCfbn.js → hi-IN-IWLTKZ5I-BnsUhtYU.js} +1 -1
  78. package/dist/web/assets/{highlighted-body-JLMTFACH-CYOy6uZ1.js → highlighted-body-JLMTFACH-CCL_Oa2N.js} +1 -1
  79. package/dist/web/assets/{hu-HU-A5ZG7DT2-fqogn_m9.js → hu-HU-A5ZG7DT2-DJAd0DXQ.js} +1 -1
  80. package/dist/web/assets/{id-ID-SAP4L64H-XFT4nLO5.js → id-ID-SAP4L64H-D_Sp4hWt.js} +1 -1
  81. package/dist/web/assets/{image-GAAHSSAO-CtqEtsMw.js → image-GAAHSSAO-uTNUnk7Z.js} +1 -1
  82. package/dist/web/assets/{index-CMRGRbC9.js → index-C60WCVxH.js} +23 -79
  83. package/dist/web/assets/index-ghfkdpY-.css +1 -0
  84. package/dist/web/assets/{it-IT-JPQ66NNP-CjvUp5j1.js → it-IT-JPQ66NNP-B2VOtgAl.js} +1 -1
  85. package/dist/web/assets/{ja-JP-DBVTYXUO-WaxwOOp1.js → ja-JP-DBVTYXUO-D8n4LcP-.js} +1 -1
  86. package/dist/web/assets/{kaa-6HZHGXH3-BABl6rMV.js → kaa-6HZHGXH3-BvK7fQHB.js} +1 -1
  87. package/dist/web/assets/{kab-KAB-ZGHBKWFO-vrrKDhKa.js → kab-KAB-ZGHBKWFO-CBS-7rLX.js} +1 -1
  88. package/dist/web/assets/{kk-KZ-P5N5QNE5-DV0HT-Fa.js → kk-KZ-P5N5QNE5-D6rLwfEb.js} +1 -1
  89. package/dist/web/assets/{km-KH-HSX4SM5Z-CMzRvYB5.js → km-KH-HSX4SM5Z-DQKGOVey.js} +1 -1
  90. package/dist/web/assets/{ko-KR-MTYHY66A-7XqecPXy.js → ko-KR-MTYHY66A-D-mh0Zog.js} +1 -1
  91. package/dist/web/assets/{ku-TR-6OUDTVRD-D8O0bwyA.js → ku-TR-6OUDTVRD-02Q4uBGz.js} +1 -1
  92. package/dist/web/assets/label-wk_QKooL.js +1 -0
  93. package/dist/web/assets/link-2-Db-kEge7.js +1 -0
  94. package/dist/web/assets/list-D_3Q3U-9.js +1 -0
  95. package/dist/web/assets/{lt-LT-XHIRWOB4-DrK90jMT.js → lt-LT-XHIRWOB4-DLL22EcK.js} +1 -1
  96. package/dist/web/assets/{lv-LV-5QDEKY6T-D7Xl2RRC.js → lv-LV-5QDEKY6T-D3GBaG3q.js} +1 -1
  97. package/dist/web/assets/mermaid-WFAXDIZX-B8XO7yhf.js +1 -0
  98. package/dist/web/assets/{mr-IN-CRQNXWMA-CjH1Q3x7.js → mr-IN-CRQNXWMA--HI3GWMp.js} +1 -1
  99. package/dist/web/assets/{my-MM-5M5IBNSE-CvdwmXcF.js → my-MM-5M5IBNSE-BzpoSrEn.js} +1 -1
  100. package/dist/web/assets/{nb-NO-T6EIAALU-BWMKi1Br.js → nb-NO-T6EIAALU-BpE3Sd7f.js} +1 -1
  101. package/dist/web/assets/{nl-NL-IS3SIHDZ-D5A6sC_f.js → nl-NL-IS3SIHDZ-CVXeRx8i.js} +1 -1
  102. package/dist/web/assets/{nn-NO-6E72VCQL-D-p6QrsB.js → nn-NO-6E72VCQL-c6qBqD3x.js} +1 -1
  103. package/dist/web/assets/{oc-FR-POXYY2M6-6fyqLMv5.js → oc-FR-POXYY2M6-Cau2e1RB.js} +1 -1
  104. package/dist/web/assets/{pa-IN-N4M65BXN-D99Vs_Tb.js → pa-IN-N4M65BXN-BZBndxoR.js} +1 -1
  105. package/dist/web/assets/{percentages-BXMCSKIN-B0BZzQvB.js → percentages-BXMCSKIN-D3Fw5F9S.js} +1 -1
  106. package/dist/web/assets/{pl-PL-T2D74RX3-cl5WZaGT.js → pl-PL-T2D74RX3-Z_GpAanN.js} +1 -1
  107. package/dist/web/assets/{pt-BR-5N22H2LF-T6l12jm6.js → pt-BR-5N22H2LF-BlVpEHGK.js} +1 -1
  108. package/dist/web/assets/{pt-PT-UZXXM6DQ-DnxUMvhO.js → pt-PT-UZXXM6DQ-QuQH0hsZ.js} +1 -1
  109. package/dist/web/assets/{ro-RO-JPDTUUEW-w6wCZHtR.js → ro-RO-JPDTUUEW-BGlQpI3X.js} +1 -1
  110. package/dist/web/assets/{ru-RU-B4JR7IUQ-DMaA4CQ-.js → ru-RU-B4JR7IUQ-CHU0e8TZ.js} +1 -1
  111. package/dist/web/assets/save-CMSSgXiS.js +1 -0
  112. package/dist/web/assets/schemas-CGoaq3B4.js +55 -0
  113. package/dist/web/assets/scratchpad-routes-Dbj7u895.js +1 -0
  114. package/dist/web/assets/scroll-area-D0FZFdju.js +1 -0
  115. package/dist/web/assets/select-Cj-m0J9A.js +1 -0
  116. package/dist/web/assets/{si-LK-N5RQ5JYF-Coe9-5Yb.js → si-LK-N5RQ5JYF-9PXfGp8N.js} +1 -1
  117. package/dist/web/assets/{sk-SK-C5VTKIMK-Bq23BXvP.js → sk-SK-C5VTKIMK-CuzZf_b9.js} +1 -1
  118. package/dist/web/assets/{sl-SI-NN7IZMDC-WZEKy1qu.js → sl-SI-NN7IZMDC-DrOH-WzJ.js} +1 -1
  119. package/dist/web/assets/subset-shared.chunk-CNd4ljrr.js +1 -0
  120. package/dist/web/assets/{subset-worker.chunk-CAbfOFrS.js → subset-worker.chunk-C1uKhPt9.js} +1 -1
  121. package/dist/web/assets/{sv-SE-XGPEYMSR-p1gc_GrE.js → sv-SE-XGPEYMSR-BhIUxUn8.js} +1 -1
  122. package/dist/web/assets/{ta-IN-2NMHFXQM-o8J0vNj1.js → ta-IN-2NMHFXQM-DxBax1RW.js} +1 -1
  123. package/dist/web/assets/table-Cri9EUoE.js +1 -0
  124. package/dist/web/assets/{tabs-DltQVo38.js → tabs-Cv3KJIRq.js} +1 -1
  125. package/dist/web/assets/textarea-Bt1FBmGL.js +1 -0
  126. package/dist/web/assets/{th-TH-HPSO5L25-pt7Zt9xm.js → th-TH-HPSO5L25-DA8qp-YV.js} +1 -1
  127. package/dist/web/assets/{tr-TR-DEFEU3FU-BENdvVvp.js → tr-TR-DEFEU3FU-3u6WSMcx.js} +1 -1
  128. package/dist/web/assets/{uk-UA-QMV73CPH-CenI2hX1.js → uk-UA-QMV73CPH-BbCm-sIk.js} +1 -1
  129. package/dist/web/assets/upload-BZ3CpmMe.js +1 -0
  130. package/dist/web/assets/useDetailRoute-DOhAbdV7.js +1 -0
  131. package/dist/web/assets/useJobs-B2da-s4n.js +1 -0
  132. package/dist/web/assets/useKnowledge-BGBP3GLW.js +1 -0
  133. package/dist/web/assets/useListSelection-ZreW_5e4.js +1 -0
  134. package/dist/web/assets/{useMemories-D0tEN20z.js → useMemories-UaTju2A_.js} +1 -1
  135. package/dist/web/assets/useProjectScope-DtEj9j-P.js +1 -0
  136. package/dist/web/assets/useSessions-BNSlPToV.js +1 -0
  137. package/dist/web/assets/{vi-VN-M7AON7JQ-REgvRLzg.js → vi-VN-M7AON7JQ-DgsVZ_V1.js} +1 -1
  138. package/dist/web/assets/view-params-DD7i9s5g.js +1 -0
  139. package/dist/web/assets/x-CiIWeCBP.js +1 -0
  140. package/dist/web/assets/{zh-CN-LNUGB5OW-Ceo4z5r5.js → zh-CN-LNUGB5OW-DOVvsMem.js} +1 -1
  141. package/dist/web/assets/{zh-HK-E62DVLB3-CFQOn9E1.js → zh-HK-E62DVLB3-BuhcmxhT.js} +1 -1
  142. package/dist/web/assets/{zh-TW-RAJ6MFWO-GpxYPogk.js → zh-TW-RAJ6MFWO-DieBH0AH.js} +1 -1
  143. package/dist/web/index.html +19 -18
  144. package/dist/web/provider-notices.txt +58 -0
  145. package/package.json +1 -1
  146. package/dist/web/assets/Agents-D71JHI2H.js +0 -34
  147. package/dist/web/assets/Attention-C_LKxdwf.js +0 -2
  148. package/dist/web/assets/Audit-BWh52YwS.js +0 -1
  149. package/dist/web/assets/ConfirmDialog-D25Wf6Nc.js +0 -1
  150. package/dist/web/assets/Dashboard-DmYJjKna.js +0 -1
  151. package/dist/web/assets/DocumentWorkspace-CW6S2i4-.js +0 -1
  152. package/dist/web/assets/FileEditor-_z3t0Dbd.js +0 -1
  153. package/dist/web/assets/JobWebhooks-Z4MXZNvH.js +0 -1
  154. package/dist/web/assets/Jobs-B-7i16mV.js +0 -1
  155. package/dist/web/assets/Knowledge-DX3nwzng.js +0 -1
  156. package/dist/web/assets/Markdown-BYChkZ3Z.js +0 -2
  157. package/dist/web/assets/MarkdownEditor-BMQq1cAY.js +0 -2
  158. package/dist/web/assets/PackageCatalog-CYF3tX8J.js +0 -8
  159. package/dist/web/assets/Projects-C2Ei5Q8Q.js +0 -3
  160. package/dist/web/assets/RemoteFolderBrowser-Btryj6gG.js +0 -1
  161. package/dist/web/assets/ResumeActions-1gJa3nsX.js +0 -1
  162. package/dist/web/assets/Rules-CZvA-Eis.js +0 -18
  163. package/dist/web/assets/Scratchpads-DP_v2hc8.js +0 -10
  164. package/dist/web/assets/Sessions-Ctd49sC9.js +0 -3
  165. package/dist/web/assets/Settings-BmbdT6Mp.js +0 -5
  166. package/dist/web/assets/Skills-C_bBvy92.js +0 -8
  167. package/dist/web/assets/TagInput-T6rDuQ7O.js +0 -1
  168. package/dist/web/assets/TaskDetailSheet-BiIQ82AG.js +0 -1
  169. package/dist/web/assets/Tasks-OQmOaNqh.js +0 -24
  170. package/dist/web/assets/Terminals-DISwtHL-.css +0 -1
  171. package/dist/web/assets/Terminals-DVu5OtGU.js +0 -3
  172. package/dist/web/assets/ViewHeader-DHM9SSkD.js +0 -1
  173. package/dist/web/assets/Webhooks-CDNv5fUD.js +0 -1
  174. package/dist/web/assets/arrow-left-Czr-LF4l.js +0 -1
  175. package/dist/web/assets/bundle-mjs-CdK3cBzO.js +0 -1
  176. package/dist/web/assets/button-BHKbOsmj.js +0 -1
  177. package/dist/web/assets/check-hFtKhUSV.js +0 -1
  178. package/dist/web/assets/chevron-down-D2sszSv3.js +0 -1
  179. package/dist/web/assets/client-BwhkVepQ.js +0 -1
  180. package/dist/web/assets/copy-d40YbOUX.js +0 -1
  181. package/dist/web/assets/createLucideIcon-jLuHkL03.js +0 -1
  182. package/dist/web/assets/dist-B9K53eWS.js +0 -1
  183. package/dist/web/assets/dist-ClOxCp9t.js +0 -1
  184. package/dist/web/assets/dist-D3PXSw6Q.js +0 -1
  185. package/dist/web/assets/dist-HH469UWY.js +0 -1
  186. package/dist/web/assets/download-WG9NKrMe.js +0 -1
  187. package/dist/web/assets/folder-open-D5XA0mXE.js +0 -1
  188. package/dist/web/assets/index-BCGI8JzG.css +0 -1
  189. package/dist/web/assets/label-BQ1Lr4sA.js +0 -1
  190. package/dist/web/assets/link-2-DSYfKX_9.js +0 -1
  191. package/dist/web/assets/list-DhKHpsuX.js +0 -1
  192. package/dist/web/assets/mermaid-WFAXDIZX-CiFtUZlz.js +0 -1
  193. package/dist/web/assets/react-dom-DTbwZiiP.js +0 -1
  194. package/dist/web/assets/save-3DxWVsBU.js +0 -1
  195. package/dist/web/assets/scratchpad-routes-B75DnNPp.js +0 -1
  196. package/dist/web/assets/scroll-area-DMjOmHf5.js +0 -1
  197. package/dist/web/assets/select-CBHDS40x.js +0 -1
  198. package/dist/web/assets/subset-shared.chunk-CAD0Eg6H.js +0 -1
  199. package/dist/web/assets/table-ByS-sgsb.js +0 -1
  200. package/dist/web/assets/upload-Djrxq3zy.js +0 -1
  201. package/dist/web/assets/useDetailRoute-C8xQeILG.js +0 -1
  202. package/dist/web/assets/useJobs-CCQUWZt3.js +0 -1
  203. package/dist/web/assets/useKnowledge-DbjT1a0E.js +0 -1
  204. package/dist/web/assets/useListSelection-CgpNqqAb.js +0 -1
  205. package/dist/web/assets/useProjectScope-CZEfU9mq.js +0 -1
  206. package/dist/web/assets/useSessions-C2GU4FkG.js +0 -1
  207. package/dist/web/assets/view-params-BqRwdnv0.js +0 -1
  208. package/dist/web/assets/x-BKorzD7S.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-JLMTFACH-CYOy6uZ1.js","assets/rolldown-runtime-DSDNlrLa.js","assets/jsx-runtime-CVMpzJz9.js","assets/angular-html-eqw-2yo2.js","assets/html-4B4fQhDp.js","assets/javascript-fLLoj7jj.js","assets/css-D--wukv8.js","assets/angular-ts-DXvKrRgw.js","assets/scss-CuMU8xxQ.js","assets/apl-C0Q1qKaB.js","assets/xml-C1tPjmlx.js","assets/java-C89_nAvH.js","assets/json-CMa1RJnc.js","assets/astro-BRsBBqZx.js","assets/typescript-CQ8q_7xQ.js","assets/postcss-BXeXVLqQ.js","assets/tsx-CIAbbp5B.js","assets/blade-DWA9F7Jh.js","assets/html-derivative-5USgv_Gz.js","assets/sql-BKOpOcZJ.js","assets/bsl-_VjlB9mv.js","assets/sdbl-bTVj8UrX.js","assets/c-DXTobAxy.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/chapel-B_RBndg0.js","assets/cobol-BNJvYbzT.js","assets/coffee-CXBjow8Z.js","assets/cpp-Dur7ovrV.js","assets/regexp-2uCdkyjn.js","assets/glsl-Bz3dmP-W.js","assets/crystal-DGFYOZ9j.js","assets/shellscript-CIVHuubL.js","assets/edge-BnIfbFaD.js","assets/elixir-CVF9oLGV.js","assets/elm-Ds4ymMkP.js","assets/erb-BsNpXne8.js","assets/ruby-BhTAkxsN.js","assets/haml-CtWGSw4_.js","assets/graphql-BrkSdiIX.js","assets/jsx-Pcd_3itl.js","assets/lua-Aso1T3OO.js","assets/yaml-BwWHG_5l.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-xMC7jr7x.js","assets/gdshader-CBce3t8t.js","assets/gdscript-DYvRD3hg.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-Dxgm0sfK.js","assets/glimmer-js-CEZjvX3D.js","assets/glimmer-ts-CfeYEcaL.js","assets/hack-BFxGrQAJ.js","assets/handlebars-DNhI4MQT.js","assets/http-Xn6t5uq9.js","assets/hurl-D3op70gp.js","assets/csv-Dx-8-gkx.js","assets/hxml-Dcm88srW.js","assets/haxe-C8oCnwJJ.js","assets/jinja-CmiqWXMd.js","assets/jison-DcZp3tw4.js","assets/julia-KN3eYzC2.js","assets/r-BEspGz5U.js","assets/just-D8SFQ4KC.js","assets/perl-EO-CkAaJ.js","assets/latex-oHUlkozR.js","assets/tex-CytQUzlH.js","assets/liquid-FOBViTA4.js","assets/marko-Cbb4Jjj7.js","assets/less-DVTAwKKz.js","assets/mdc-jkS7bIw_.js","assets/nextflow-CSgcYZcx.js","assets/nextflow-groovy-D7IRt6Pp.js","assets/nginx-BfgWChTY.js","assets/nim-CWTUFOFC.js","assets/org-N_Z_Rsos.js","assets/clojure-DqKBuwfJ.js","assets/csharp-dmMxLVLW.js","assets/dart-CHZY9Xhz.js","assets/docker-IyjqRm3v.js","assets/go-rLFTqkRN.js","assets/groovy-CacY0gHj.js","assets/ini-B5eOa1yu.js","assets/make-Dixweg8N.js","assets/objective-c-D1A_Heim.js","assets/ocaml-O90oeIOV.js","assets/php-BuM__Kin.js","assets/vb-DOwzaHZ0.js","assets/raku-B3gFvitq.js","assets/rust-DpiIf5JO.js","assets/scala-BiFt_7mu.js","assets/zig-CMLA9XwU.js","assets/xsl-BylmE8mU.js","assets/pug-3z67OXkX.js","assets/qml-01xckBqI.js","assets/razor-zLvpxB04.js","assets/rst-BAFuuY9O.js","assets/cmake-Bj61d0ZC.js","assets/sas-cLyv6Fcf.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-Q-CZymqp.js","assets/soy-6_zQhlB4.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-Dszynl2A.js","assets/surrealql-CJ_96IWu.js","assets/svelte-NpUupHVH.js","assets/templ-CyP0pWR3.js","assets/ts-tags-BIR92NxC.js","assets/twig-CU7ywlei.js","assets/typst-o6zd86DN.js","assets/bat-qdxAdBWQ.js","assets/bibtex-Ci_nEsc7.js","assets/jsonc-CYpm1nAK.js","assets/log-BNLmms1o.js","assets/powershell-QtSnmXcu.js","assets/swift-CyEgAFGc.js","assets/system-verilog-Dh5ihWbf.js","assets/verilog-B2gwz-sJ.js","assets/vue-Did2plkZ.js","assets/vue-html-DzASeTVq.js","assets/vue-vine-D1rbSuQE.js","assets/stylus-B6D30XZt.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,t as n}from"./rolldown-runtime-DSDNlrLa.js";import{n as r,t as i}from"./jsx-runtime-CVMpzJz9.js";import{t as a}from"./react-dom-DTbwZiiP.js";import{r as o,t as s}from"./button-BHKbOsmj.js";import{t as c}from"./createLucideIcon-jLuHkL03.js";import{t as l}from"./preload-helper-BLdHbfdN.js";import{n as u,t as d}from"./bundle-mjs-CdK3cBzO.js";import{At as f,Dt as p,Et as m,Tt as h,kt as g,v as _}from"./index-CMRGRbC9.js";import{t as v}from"./mermaid.core-CE0shN4j.js";import{n as y,t as b}from"./wiki-links-A52THGx_.js";var x={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};x.node;var ee=c(x),S=(function(e){if(e==null)return D;if(typeof e==`function`)return E(e);if(typeof e==`object`)return Array.isArray(e)?C(e):w(e);if(typeof e==`string`)return T(e);throw Error(`Expected function, string, or object as test`)});function C(e){let t=[],n=-1;for(;++n<e.length;)t[n]=S(e[n]);return E(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function w(e){let t=e;return E(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function T(e){return E(t);function t(t){return t&&t.type===e}}function E(e){return t;function t(t,n,r){return!!(te(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function D(){return!0}function te(e){return typeof e==`object`&&!!e&&`type`in e}function ne(e){return e}var re=[],ie=`skip`;function ae(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=S(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+ne(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=re,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=oe(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function oe(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?re:[e]}function O(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),ae(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var k=e(r(),1),se={indicator:`indicator`,textOnly:`text-only`,remove:`remove`};function ce({defaultOrigin:e=``,allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a=`inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm`,blockedLinkClass:o=`text-gray-500`,linkBlockPolicy:s=se.indicator,imageBlockPolicy:c=se.indicator}){let l=t.length&&!t.every(e=>e===`*`),u=n.length&&!n.every(e=>e===`*`);if(!e&&(l||u))throw Error(`defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided`);return l=>{let u=ve(e,t,n,r,i,a,o,s,c);me(l),O(l,u)}}function le(e,t){if(typeof e!=`string`)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`))try{return new URL(e,`http://example.com`)}catch{return null}return null}}function ue(e){return typeof e==`string`?e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`):!1}var de=new Set([`https:`,`http:`,`irc:`,`ircs:`,`mailto:`,`xmpp:`,`blob:`]),fe=new Set([`javascript:`,`data:`,`file:`,`vbscript:`]);function pe(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e==`string`&&e.startsWith(`#`)&&!i)try{if(new URL(e,`http://example.com`).hash===e)return e}catch{}if(typeof e==`string`&&e.startsWith(`data:`))return i&&r&&e.startsWith(`data:image/`)?e:null;if(typeof e==`string`&&e.startsWith(`blob:`)){try{if(new URL(e).protocol===`blob:`&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&t!==`invalid`)return e}}catch{return null}return null}let o=le(e,n);if(!o||fe.has(o.protocol)||!(de.has(o.protocol)||a.includes(o.protocol)||a.includes(`*`)))return null;if(o.protocol===`mailto:`||!o.protocol.match(/^https?:$/))return o.href;let s=ue(e);return o&&t.some(e=>{let t=le(e,n);return!t||t.origin!==o.origin?!1:o.href.startsWith(t.href)})?s?o.pathname+o.search+o.hash:o.href:t.includes(`*`)?o.protocol!==`https:`&&o.protocol!==`http:`?null:s?o.pathname+o.search+o.hash:o.href:null}function me(e){if(`children`in e&&Array.isArray(e.children)){e.children=e.children.filter(e=>e!=null);for(let t of e.children)me(t)}}var he=Symbol(`node-seen`);function ge(e,t,n){return t===se.remove?{type:`remove`}:t===se.textOnly?{type:`replace`,element:{type:`element`,tagName:`span`,properties:{},children:[...e.children]}}:{type:`replace`,element:{type:`element`,tagName:`span`,properties:{title:`Blocked URL: `+String(e.properties.href),class:n},children:[...e.children,{type:`text`,value:` [blocked]`}]}}}function _e(e,t,n){if(t===se.remove)return{type:`remove`};if(t===se.textOnly){let t=String(e.properties.alt||``);return t?{type:`replace`,element:{type:`element`,tagName:`span`,properties:{},children:[{type:`text`,value:t}]}}:{type:`remove`}}return{type:`replace`,element:{type:`element`,tagName:`span`,properties:{class:n},children:[{type:`text`,value:`[Image blocked: `+String(e.properties.alt||`No description`)+`]`}]}}}var ve=(e,t,n,r,i,a,o,s,c)=>{let l=(u,d,f)=>{if(u.type!==`element`||u[he])return!0;if(u.tagName===`a`){let n=pe(u.properties.href,t,e,!1,!1,i);if(n===null){if(u[he]=!0,O(u,l),f&&typeof d==`number`){let e=ge(u,s,o);if(e.type===`remove`)return f.children.splice(d,1),[ie,d];f.children[d]=e.element}return ie}return u.properties.href=n,u.properties.target=`_blank`,u.properties.rel=`noopener noreferrer`,!0}if(u.tagName===`img`){let t=pe(u.properties.src,n,e,r,!0,i);if(t===null){if(u[he]=!0,O(u,l),f&&typeof d==`number`){let e=_e(u,c,a);if(e.type===`remove`)return f.children.splice(d,1),[ie,d];f.children[d]=e.element}return ie}return u.properties.src=t,!0}return!0};return l},{defineProperty:ye}=Object,be=typeof self==`object`?self:globalThis,xe=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new be[e](t)},Se=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?ye(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof be[e]==`function`?xe(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(xe(a,o),i)};return r},Ce=e=>Se(new Map,e)(0),we=``,{toString:Te}={},{keys:Ee,is:De}=Object,Oe=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Te.call(e).slice(8,-1);switch(n){case`Array`:return[1,we];case`Object`:return[2,we];case`Date`:return[3,we];case`RegExp`:return[4,we];case`Map`:return[5,we];case`Set`:return[6,we];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},ke=([e,t])=>e===0&&(t===`function`||t===`symbol`),Ae=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Oe(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&De(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Ee(o))(e||!ke(Oe(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?we:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(ke(Oe(n))||ke(Oe(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!ke(Oe(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},je=(e,{json:t,lossy:n}={})=>{let r=[];return Ae(!(t||n),!!t,new Map,r)(e),r},Me=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Ce(je(e,t)):structuredClone(e):(e,t)=>Ce(je(e,t)),Ne=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Ne.prototype.normal={},Ne.prototype.property={},Ne.prototype.space=void 0;function Pe(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Ne(n,r,t)}function Fe(e){return e.toLowerCase()}var Ie=class{constructor(e,t){this.attribute=t,this.property=e}};Ie.prototype.attribute=``,Ie.prototype.booleanish=!1,Ie.prototype.boolean=!1,Ie.prototype.commaOrSpaceSeparated=!1,Ie.prototype.commaSeparated=!1,Ie.prototype.defined=!1,Ie.prototype.mustUseProperty=!1,Ie.prototype.number=!1,Ie.prototype.overloadedBoolean=!1,Ie.prototype.property=``,Ie.prototype.spaceSeparated=!1,Ie.prototype.space=void 0;var Le=t({boolean:()=>A,booleanish:()=>ze,commaOrSpaceSeparated:()=>He,commaSeparated:()=>Ve,number:()=>j,overloadedBoolean:()=>Be,spaceSeparated:()=>M}),Re=0,A=Ue(),ze=Ue(),Be=Ue(),j=Ue(),M=Ue(),Ve=Ue(),He=Ue();function Ue(){return 2**++Re}var We=Object.keys(Le),Ge=class extends Ie{constructor(e,t,n,r){let i=-1;if(super(e,t),Ke(this,`space`,r),typeof n==`number`)for(;++i<We.length;){let e=We[i];Ke(this,We[i],(n&Le[e])===Le[e])}}};Ge.prototype.defined=!0;function Ke(e,t,n){n&&(e[t]=n)}function qe(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ge(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Fe(r)]=r,n[Fe(a.attribute)]=r}return new Ne(t,n,e.space)}var Je=qe({properties:{ariaActiveDescendant:null,ariaAtomic:ze,ariaAutoComplete:null,ariaBusy:ze,ariaChecked:ze,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:M,ariaCurrent:null,ariaDescribedBy:M,ariaDetails:null,ariaDisabled:ze,ariaDropEffect:M,ariaErrorMessage:null,ariaExpanded:ze,ariaFlowTo:M,ariaGrabbed:ze,ariaHasPopup:null,ariaHidden:ze,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:M,ariaLevel:j,ariaLive:null,ariaModal:ze,ariaMultiLine:ze,ariaMultiSelectable:ze,ariaOrientation:null,ariaOwns:M,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:ze,ariaReadOnly:ze,ariaRelevant:null,ariaRequired:ze,ariaRoleDescription:M,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:ze,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ye(e,t){return t in e?e[t]:t}function Xe(e,t){return Ye(e,t.toLowerCase())}var Ze=qe({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Ve,acceptCharset:M,accessKey:M,action:null,allow:null,allowFullScreen:A,allowPaymentRequest:A,allowUserMedia:A,alpha:A,alt:null,as:null,async:A,autoCapitalize:null,autoComplete:M,autoFocus:A,autoPlay:A,blocking:M,capture:null,charSet:null,checked:A,cite:null,className:M,closedBy:null,colorSpace:null,cols:j,colSpan:j,command:null,commandFor:null,content:null,contentEditable:ze,controls:A,controlsList:M,coords:j|Ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:A,defer:A,dir:null,dirName:null,disabled:A,download:Be,draggable:ze,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:A,formTarget:null,headers:M,height:j,hidden:Be,high:j,href:null,hrefLang:null,htmlFor:M,httpEquiv:M,id:null,imageSizes:null,imageSrcSet:null,inert:A,inputMode:null,integrity:null,is:null,isMap:A,itemId:null,itemProp:M,itemRef:M,itemScope:A,itemType:M,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:A,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:A,muted:A,name:null,nonce:null,noModule:A,noValidate:A,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:A,optimum:j,pattern:null,ping:M,placeholder:null,playsInline:A,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:A,referrerPolicy:null,rel:M,required:A,reversed:A,rows:j,rowSpan:j,sandbox:M,scope:null,scoped:A,seamless:A,selected:A,shadowRootClonable:A,shadowRootCustomElementRegistry:A,shadowRootDelegatesFocus:A,shadowRootMode:null,shadowRootSerializable:A,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:ze,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:A,useMap:null,value:ze,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:M,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:A,declare:A,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:A,noHref:A,noShade:A,noWrap:A,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:ze,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:A,disablePictureInPicture:A,disableRemotePlayback:A,exportParts:Ve,part:M,prefix:null,property:null,results:j,security:null,unselectable:null},space:`html`,transform:Xe}),Qe=qe({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:He,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:M,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:A,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ve,g2:Ve,glyphName:Ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:M,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ye}),$e=qe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),et=qe({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xe}),tt=qe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),nt={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},rt=/[A-Z]/g,it=/-[a-z]/g,at=/^data[-\w.:]+$/i;function ot(e,t){let n=Fe(t),r=t,i=Ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&at.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(it,ct);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!it.test(e)){let n=e.replace(rt,st);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Ge}return new i(r,t)}function st(e){return`-`+e.toLowerCase()}function ct(e){return e.charAt(1).toUpperCase()}var lt=Pe([Je,Ze,$e,et,tt],`html`),ut=Pe([Je,Qe,$e,et,tt],`svg`);function dt(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function ft(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var pt=/[#.]/g;function mt(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){pt.lastIndex=i;let e=pt.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function ht(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function gt(e){return e.join(` `).trim()}function _t(e,t,n){let r=n?Ct(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=mt(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,vt(i))a.unshift(i);else for(let[t,n]of Object.entries(i))yt(e,o.properties,t,n)}for(let e of a)bt(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function vt(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function yt(e,t,n,r){let i=ot(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?ht(r):i.commaSeparated?dt(r):i.commaOrSpaceSeparated?ht(dt(r).join(` `)):xt(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?St(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(xt(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function bt(e,t){if(t!=null){if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)bt(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?bt(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}}function xt(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Fe(n)===Fe(t)))return!0}return n}function St(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function Ct(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var wt=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),Tt=_t(lt,`div`),Et=_t(ut,`g`,wt);function Dt(e){let t=String(e),n=[];return{toOffset:i,toPoint:r};function r(e){if(typeof e==`number`&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(i===void 0){let e=Ot(t,n[r-1]);i=e===-1?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}function i(e){if(e&&typeof e.line==`number`&&typeof e.column==`number`&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],r=Ot(t,e),i=r===-1?t.length+1:r+1;if(e===i)break;n.push(i)}let r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}}}function Ot(e,t){let n=e.indexOf(`\r`,t),r=e.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-JLMTFACH-CCL_Oa2N.js","assets/rolldown-runtime-DSDNlrLa.js","assets/jsx-runtime-CVMpzJz9.js","assets/angular-html-eqw-2yo2.js","assets/html-4B4fQhDp.js","assets/javascript-fLLoj7jj.js","assets/css-D--wukv8.js","assets/angular-ts-DXvKrRgw.js","assets/scss-CuMU8xxQ.js","assets/apl-C0Q1qKaB.js","assets/xml-C1tPjmlx.js","assets/java-C89_nAvH.js","assets/json-CMa1RJnc.js","assets/astro-BRsBBqZx.js","assets/typescript-CQ8q_7xQ.js","assets/postcss-BXeXVLqQ.js","assets/tsx-CIAbbp5B.js","assets/blade-DWA9F7Jh.js","assets/html-derivative-5USgv_Gz.js","assets/sql-BKOpOcZJ.js","assets/bsl-_VjlB9mv.js","assets/sdbl-bTVj8UrX.js","assets/c-DXTobAxy.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/chapel-B_RBndg0.js","assets/cobol-BNJvYbzT.js","assets/coffee-CXBjow8Z.js","assets/cpp-Dur7ovrV.js","assets/regexp-2uCdkyjn.js","assets/glsl-Bz3dmP-W.js","assets/crystal-DGFYOZ9j.js","assets/shellscript-CIVHuubL.js","assets/edge-BnIfbFaD.js","assets/elixir-CVF9oLGV.js","assets/elm-Ds4ymMkP.js","assets/erb-BsNpXne8.js","assets/ruby-BhTAkxsN.js","assets/haml-CtWGSw4_.js","assets/graphql-BrkSdiIX.js","assets/jsx-Pcd_3itl.js","assets/lua-Aso1T3OO.js","assets/yaml-BwWHG_5l.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-xMC7jr7x.js","assets/gdshader-CBce3t8t.js","assets/gdscript-DYvRD3hg.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-Dxgm0sfK.js","assets/glimmer-js-CEZjvX3D.js","assets/glimmer-ts-CfeYEcaL.js","assets/hack-BFxGrQAJ.js","assets/handlebars-DNhI4MQT.js","assets/http-Xn6t5uq9.js","assets/hurl-D3op70gp.js","assets/csv-Dx-8-gkx.js","assets/hxml-Dcm88srW.js","assets/haxe-C8oCnwJJ.js","assets/jinja-CmiqWXMd.js","assets/jison-DcZp3tw4.js","assets/julia-KN3eYzC2.js","assets/r-BEspGz5U.js","assets/just-D8SFQ4KC.js","assets/perl-EO-CkAaJ.js","assets/latex-oHUlkozR.js","assets/tex-CytQUzlH.js","assets/liquid-FOBViTA4.js","assets/marko-Cbb4Jjj7.js","assets/less-DVTAwKKz.js","assets/mdc-jkS7bIw_.js","assets/nextflow-CSgcYZcx.js","assets/nextflow-groovy-D7IRt6Pp.js","assets/nginx-BfgWChTY.js","assets/nim-CWTUFOFC.js","assets/org-N_Z_Rsos.js","assets/clojure-DqKBuwfJ.js","assets/csharp-dmMxLVLW.js","assets/dart-CHZY9Xhz.js","assets/docker-IyjqRm3v.js","assets/go-rLFTqkRN.js","assets/groovy-CacY0gHj.js","assets/ini-B5eOa1yu.js","assets/make-Dixweg8N.js","assets/objective-c-D1A_Heim.js","assets/ocaml-O90oeIOV.js","assets/php-BuM__Kin.js","assets/vb-DOwzaHZ0.js","assets/raku-B3gFvitq.js","assets/rust-DpiIf5JO.js","assets/scala-BiFt_7mu.js","assets/zig-CMLA9XwU.js","assets/xsl-BylmE8mU.js","assets/pug-3z67OXkX.js","assets/qml-01xckBqI.js","assets/razor-zLvpxB04.js","assets/rst-BAFuuY9O.js","assets/cmake-Bj61d0ZC.js","assets/sas-cLyv6Fcf.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-Q-CZymqp.js","assets/soy-6_zQhlB4.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-Dszynl2A.js","assets/surrealql-CJ_96IWu.js","assets/svelte-NpUupHVH.js","assets/templ-CyP0pWR3.js","assets/ts-tags-BIR92NxC.js","assets/twig-CU7ywlei.js","assets/typst-o6zd86DN.js","assets/bat-qdxAdBWQ.js","assets/bibtex-Ci_nEsc7.js","assets/jsonc-CYpm1nAK.js","assets/log-BNLmms1o.js","assets/powershell-QtSnmXcu.js","assets/swift-CyEgAFGc.js","assets/system-verilog-Dh5ihWbf.js","assets/verilog-B2gwz-sJ.js","assets/vue-Did2plkZ.js","assets/vue-html-DzASeTVq.js","assets/vue-vine-D1rbSuQE.js","assets/stylus-B6D30XZt.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,n as t,t as n}from"./rolldown-runtime-DSDNlrLa.js";import{n as r,t as i}from"./jsx-runtime-CVMpzJz9.js";import{n as a,r as o,t as s}from"./bundle-mjs-geeEdoSy.js";import{l as c,t as l}from"./button-CXYVslgR.js";import{d as u}from"./client-nzMXason.js";import{t as d}from"./preload-helper-BLdHbfdN.js";import{a as f,n as p,o as m,r as h,t as g}from"./dialog-Juth7dP_.js";import{g as _}from"./index-C60WCVxH.js";import{t as v}from"./mermaid.core-CE0shN4j.js";import{n as y,t as b}from"./wiki-links-A52THGx_.js";var x={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};x.node;var ee=u(x),S=(function(e){if(e==null)return D;if(typeof e==`function`)return E(e);if(typeof e==`object`)return Array.isArray(e)?C(e):w(e);if(typeof e==`string`)return T(e);throw Error(`Expected function, string, or object as test`)});function C(e){let t=[],n=-1;for(;++n<e.length;)t[n]=S(e[n]);return E(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function w(e){let t=e;return E(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function T(e){return E(t);function t(t){return t&&t.type===e}}function E(e){return t;function t(t,n,r){return!!(te(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function D(){return!0}function te(e){return typeof e==`object`&&!!e&&`type`in e}function ne(e){return e}var re=[],ie=`skip`;function ae(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=S(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+ne(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=re,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=oe(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function oe(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?re:[e]}function O(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),ae(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var k=e(r(),1),se={indicator:`indicator`,textOnly:`text-only`,remove:`remove`};function ce({defaultOrigin:e=``,allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a=`inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm`,blockedLinkClass:o=`text-gray-500`,linkBlockPolicy:s=se.indicator,imageBlockPolicy:c=se.indicator}){let l=t.length&&!t.every(e=>e===`*`),u=n.length&&!n.every(e=>e===`*`);if(!e&&(l||u))throw Error(`defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided`);return l=>{let u=ve(e,t,n,r,i,a,o,s,c);me(l),O(l,u)}}function le(e,t){if(typeof e!=`string`)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`))try{return new URL(e,`http://example.com`)}catch{return null}return null}}function ue(e){return typeof e==`string`?e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`):!1}var de=new Set([`https:`,`http:`,`irc:`,`ircs:`,`mailto:`,`xmpp:`,`blob:`]),fe=new Set([`javascript:`,`data:`,`file:`,`vbscript:`]);function pe(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e==`string`&&e.startsWith(`#`)&&!i)try{if(new URL(e,`http://example.com`).hash===e)return e}catch{}if(typeof e==`string`&&e.startsWith(`data:`))return i&&r&&e.startsWith(`data:image/`)?e:null;if(typeof e==`string`&&e.startsWith(`blob:`)){try{if(new URL(e).protocol===`blob:`&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&t!==`invalid`)return e}}catch{return null}return null}let o=le(e,n);if(!o||fe.has(o.protocol)||!(de.has(o.protocol)||a.includes(o.protocol)||a.includes(`*`)))return null;if(o.protocol===`mailto:`||!o.protocol.match(/^https?:$/))return o.href;let s=ue(e);return o&&t.some(e=>{let t=le(e,n);return!t||t.origin!==o.origin?!1:o.href.startsWith(t.href)})?s?o.pathname+o.search+o.hash:o.href:t.includes(`*`)?o.protocol!==`https:`&&o.protocol!==`http:`?null:s?o.pathname+o.search+o.hash:o.href:null}function me(e){if(`children`in e&&Array.isArray(e.children)){e.children=e.children.filter(e=>e!=null);for(let t of e.children)me(t)}}var he=Symbol(`node-seen`);function ge(e,t,n){return t===se.remove?{type:`remove`}:t===se.textOnly?{type:`replace`,element:{type:`element`,tagName:`span`,properties:{},children:[...e.children]}}:{type:`replace`,element:{type:`element`,tagName:`span`,properties:{title:`Blocked URL: `+String(e.properties.href),class:n},children:[...e.children,{type:`text`,value:` [blocked]`}]}}}function _e(e,t,n){if(t===se.remove)return{type:`remove`};if(t===se.textOnly){let t=String(e.properties.alt||``);return t?{type:`replace`,element:{type:`element`,tagName:`span`,properties:{},children:[{type:`text`,value:t}]}}:{type:`remove`}}return{type:`replace`,element:{type:`element`,tagName:`span`,properties:{class:n},children:[{type:`text`,value:`[Image blocked: `+String(e.properties.alt||`No description`)+`]`}]}}}var ve=(e,t,n,r,i,a,o,s,c)=>{let l=(u,d,f)=>{if(u.type!==`element`||u[he])return!0;if(u.tagName===`a`){let n=pe(u.properties.href,t,e,!1,!1,i);if(n===null){if(u[he]=!0,O(u,l),f&&typeof d==`number`){let e=ge(u,s,o);if(e.type===`remove`)return f.children.splice(d,1),[ie,d];f.children[d]=e.element}return ie}return u.properties.href=n,u.properties.target=`_blank`,u.properties.rel=`noopener noreferrer`,!0}if(u.tagName===`img`){let t=pe(u.properties.src,n,e,r,!0,i);if(t===null){if(u[he]=!0,O(u,l),f&&typeof d==`number`){let e=_e(u,c,a);if(e.type===`remove`)return f.children.splice(d,1),[ie,d];f.children[d]=e.element}return ie}return u.properties.src=t,!0}return!0};return l},{defineProperty:ye}=Object,be=typeof self==`object`?self:globalThis,xe=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new be[e](t)},Se=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?ye(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof be[e]==`function`?xe(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(xe(a,o),i)};return r},Ce=e=>Se(new Map,e)(0),we=``,{toString:Te}={},{keys:Ee,is:De}=Object,Oe=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Te.call(e).slice(8,-1);switch(n){case`Array`:return[1,we];case`Object`:return[2,we];case`Date`:return[3,we];case`RegExp`:return[4,we];case`Map`:return[5,we];case`Set`:return[6,we];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},ke=([e,t])=>e===0&&(t===`function`||t===`symbol`),Ae=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Oe(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&De(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Ee(o))(e||!ke(Oe(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?we:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(ke(Oe(n))||ke(Oe(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!ke(Oe(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},je=(e,{json:t,lossy:n}={})=>{let r=[];return Ae(!(t||n),!!t,new Map,r)(e),r},Me=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Ce(je(e,t)):structuredClone(e):(e,t)=>Ce(je(e,t)),Ne=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Ne.prototype.normal={},Ne.prototype.property={},Ne.prototype.space=void 0;function Pe(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Ne(n,r,t)}function Fe(e){return e.toLowerCase()}var Ie=class{constructor(e,t){this.attribute=t,this.property=e}};Ie.prototype.attribute=``,Ie.prototype.booleanish=!1,Ie.prototype.boolean=!1,Ie.prototype.commaOrSpaceSeparated=!1,Ie.prototype.commaSeparated=!1,Ie.prototype.defined=!1,Ie.prototype.mustUseProperty=!1,Ie.prototype.number=!1,Ie.prototype.overloadedBoolean=!1,Ie.prototype.property=``,Ie.prototype.spaceSeparated=!1,Ie.prototype.space=void 0;var Le=t({boolean:()=>A,booleanish:()=>ze,commaOrSpaceSeparated:()=>He,commaSeparated:()=>Ve,number:()=>j,overloadedBoolean:()=>Be,spaceSeparated:()=>M}),Re=0,A=Ue(),ze=Ue(),Be=Ue(),j=Ue(),M=Ue(),Ve=Ue(),He=Ue();function Ue(){return 2**++Re}var We=Object.keys(Le),Ge=class extends Ie{constructor(e,t,n,r){let i=-1;if(super(e,t),Ke(this,`space`,r),typeof n==`number`)for(;++i<We.length;){let e=We[i];Ke(this,We[i],(n&Le[e])===Le[e])}}};Ge.prototype.defined=!0;function Ke(e,t,n){n&&(e[t]=n)}function qe(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ge(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Fe(r)]=r,n[Fe(a.attribute)]=r}return new Ne(t,n,e.space)}var Je=qe({properties:{ariaActiveDescendant:null,ariaAtomic:ze,ariaAutoComplete:null,ariaBusy:ze,ariaChecked:ze,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:M,ariaCurrent:null,ariaDescribedBy:M,ariaDetails:null,ariaDisabled:ze,ariaDropEffect:M,ariaErrorMessage:null,ariaExpanded:ze,ariaFlowTo:M,ariaGrabbed:ze,ariaHasPopup:null,ariaHidden:ze,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:M,ariaLevel:j,ariaLive:null,ariaModal:ze,ariaMultiLine:ze,ariaMultiSelectable:ze,ariaOrientation:null,ariaOwns:M,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:ze,ariaReadOnly:ze,ariaRelevant:null,ariaRequired:ze,ariaRoleDescription:M,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:ze,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ye(e,t){return t in e?e[t]:t}function Xe(e,t){return Ye(e,t.toLowerCase())}var Ze=qe({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Ve,acceptCharset:M,accessKey:M,action:null,allow:null,allowFullScreen:A,allowPaymentRequest:A,allowUserMedia:A,alpha:A,alt:null,as:null,async:A,autoCapitalize:null,autoComplete:M,autoFocus:A,autoPlay:A,blocking:M,capture:null,charSet:null,checked:A,cite:null,className:M,closedBy:null,colorSpace:null,cols:j,colSpan:j,command:null,commandFor:null,content:null,contentEditable:ze,controls:A,controlsList:M,coords:j|Ve,crossOrigin:null,data:null,dateTime:null,decoding:null,default:A,defer:A,dir:null,dirName:null,disabled:A,download:Be,draggable:ze,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:A,formTarget:null,headers:M,height:j,hidden:Be,high:j,href:null,hrefLang:null,htmlFor:M,httpEquiv:M,id:null,imageSizes:null,imageSrcSet:null,inert:A,inputMode:null,integrity:null,is:null,isMap:A,itemId:null,itemProp:M,itemRef:M,itemScope:A,itemType:M,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:A,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:A,muted:A,name:null,nonce:null,noModule:A,noValidate:A,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:A,optimum:j,pattern:null,ping:M,placeholder:null,playsInline:A,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:A,referrerPolicy:null,rel:M,required:A,reversed:A,rows:j,rowSpan:j,sandbox:M,scope:null,scoped:A,seamless:A,selected:A,shadowRootClonable:A,shadowRootCustomElementRegistry:A,shadowRootDelegatesFocus:A,shadowRootMode:null,shadowRootSerializable:A,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:ze,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:A,useMap:null,value:ze,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:M,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:A,declare:A,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:A,noHref:A,noShade:A,noWrap:A,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:ze,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:A,disablePictureInPicture:A,disableRemotePlayback:A,exportParts:Ve,part:M,prefix:null,property:null,results:j,security:null,unselectable:null},space:`html`,transform:Xe}),Qe=qe({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:He,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:M,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:A,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ve,g2:Ve,glyphName:Ve,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:M,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ye}),$e=qe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),et=qe({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xe}),tt=qe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),nt={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},rt=/[A-Z]/g,it=/-[a-z]/g,at=/^data[-\w.:]+$/i;function ot(e,t){let n=Fe(t),r=t,i=Ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&at.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(it,ct);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!it.test(e)){let n=e.replace(rt,st);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Ge}return new i(r,t)}function st(e){return`-`+e.toLowerCase()}function ct(e){return e.charAt(1).toUpperCase()}var lt=Pe([Je,Ze,$e,et,tt],`html`),ut=Pe([Je,Qe,$e,et,tt],`svg`);function dt(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function ft(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var pt=/[#.]/g;function mt(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){pt.lastIndex=i;let e=pt.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function ht(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function gt(e){return e.join(` `).trim()}function _t(e,t,n){let r=n?Ct(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=mt(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,vt(i))a.unshift(i);else for(let[t,n]of Object.entries(i))yt(e,o.properties,t,n)}for(let e of a)bt(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function vt(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function yt(e,t,n,r){let i=ot(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?ht(r):i.commaSeparated?dt(r):i.commaOrSpaceSeparated?ht(dt(r).join(` `)):xt(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?St(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(xt(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function bt(e,t){if(t!=null){if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)bt(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?bt(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}}function xt(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Fe(n)===Fe(t)))return!0}return n}function St(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function Ct(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var wt=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),Tt=_t(lt,`div`),Et=_t(ut,`g`,wt);function Dt(e){let t=String(e),n=[];return{toOffset:i,toPoint:r};function r(e){if(typeof e==`number`&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(i===void 0){let e=Ot(t,n[r-1]);i=e===-1?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}function i(e){if(e&&typeof e.line==`number`&&typeof e.column==`number`&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],r=Ot(t,e),i=r===-1?t.length+1:r+1;if(e===i)break;n.push(i)}let r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}}}function Ot(e,t){let n=e.indexOf(`\r`,t),r=e.indexOf(`
3
3
  `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var kt={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`},At={}.hasOwnProperty,jt=Object.prototype;function Mt(e,t){let n=t||{};return Nt({file:n.file||void 0,location:!1,schema:n.space===`svg`?ut:lt,verbose:n.verbose||!1},e)}function Nt(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},It(e,r,n),n}case`#document`:case`#document-fragment`:{let r=t,i=`mode`in r?r.mode===`quirks`||r.mode===`limited-quirks`:!1;if(n={type:`root`,children:Pt(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=Dt(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case`#documentType`:{let r=t;return n={type:`doctype`},It(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},It(e,r,n),n}default:return n=Ft(e,t),n}}function Pt(e,t){let n=-1,r=[];for(;++n<t.length;){let i=Nt(e,t[n]);r.push(i)}return r}function Ft(e,t){let n=e.schema;e.schema=t.namespaceURI===kt.svg?ut:lt;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;At.call(jt,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?Et:Tt)(t.tagName,i,Pt(e,t.childNodes));if(It(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Rt(r.startTag),o=r&&r.endTag&&Rt(r.endTag),s=Nt(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function It(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=Lt(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Lt(e,t,n){let r=Rt(n);if(t.type===`element`){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r={},i;if(n.attrs)for(i in n.attrs)At.call(n.attrs,i)&&(r[ot(e.schema,i).property]=Rt(n.attrs[i]));n.startTag;let a=Rt(n.startTag),o=n.endTag?Rt(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function Rt(e){let t=zt({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=zt({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function zt(e){return e.line&&e.column?e:void 0}var Bt={}.hasOwnProperty;function Vt(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Bt.call(t,e)){let n=String(t[e]);i=Bt.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Ht={},Ut={}.hasOwnProperty,Wt=Vt(`type`,{handlers:{root:Kt,element:Zt,text:Yt,comment:Xt,doctype:Jt}});function Gt(e,t){let n=(t||Ht).space;return Wt(e,n===`svg`?ut:lt)}function Kt(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=$t(e.children,n,t),en(e,n),n}function qt(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=$t(e.children,n,t),en(e,n),n}function Jt(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return en(e,t),t}function Yt(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return en(e,t),t}function Xt(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return en(e,t),t}function Zt(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=ut);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&Ut.call(e.properties,a)){let t=Qt(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:kt[o],childNodes:[],parentNode:null};return s.childNodes=$t(e.children,s,r),en(e,s),e.tagName===`template`&&e.content&&(s.content=qt(e.content,r)),s}function Qt(e,t,n){let r=ot(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ft(n):gt(n));let i={name:r.attribute,value:n===!0?``:String(n)};if(r.space&&r.space!==`html`&&r.space!==`svg`){let e=i.name.indexOf(`:`);e<0?i.prefix=``:(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=kt[r.space]}return i}function $t(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=Wt(e[r],n);a.parentNode=t,i.push(a)}return i}function en(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var tn=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],nn=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),N;(function(e){e[e.EOF=-1]=`EOF`,e[e.NULL=0]=`NULL`,e[e.TABULATION=9]=`TABULATION`,e[e.CARRIAGE_RETURN=13]=`CARRIAGE_RETURN`,e[e.LINE_FEED=10]=`LINE_FEED`,e[e.FORM_FEED=12]=`FORM_FEED`,e[e.SPACE=32]=`SPACE`,e[e.EXCLAMATION_MARK=33]=`EXCLAMATION_MARK`,e[e.QUOTATION_MARK=34]=`QUOTATION_MARK`,e[e.AMPERSAND=38]=`AMPERSAND`,e[e.APOSTROPHE=39]=`APOSTROPHE`,e[e.HYPHEN_MINUS=45]=`HYPHEN_MINUS`,e[e.SOLIDUS=47]=`SOLIDUS`,e[e.DIGIT_0=48]=`DIGIT_0`,e[e.DIGIT_9=57]=`DIGIT_9`,e[e.SEMICOLON=59]=`SEMICOLON`,e[e.LESS_THAN_SIGN=60]=`LESS_THAN_SIGN`,e[e.EQUALS_SIGN=61]=`EQUALS_SIGN`,e[e.GREATER_THAN_SIGN=62]=`GREATER_THAN_SIGN`,e[e.QUESTION_MARK=63]=`QUESTION_MARK`,e[e.LATIN_CAPITAL_A=65]=`LATIN_CAPITAL_A`,e[e.LATIN_CAPITAL_Z=90]=`LATIN_CAPITAL_Z`,e[e.RIGHT_SQUARE_BRACKET=93]=`RIGHT_SQUARE_BRACKET`,e[e.GRAVE_ACCENT=96]=`GRAVE_ACCENT`,e[e.LATIN_SMALL_A=97]=`LATIN_SMALL_A`,e[e.LATIN_SMALL_Z=122]=`LATIN_SMALL_Z`})(N||={});var rn={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function an(e){return e>=55296&&e<=57343}function on(e){return e>=56320&&e<=57343}function sn(e,t){return(e-55296)*1024+9216+t}function cn(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ln(e){return e>=64976&&e<=65007||nn.has(e)}var P;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(P||={});var un=65536,dn=class{constructor(e){this.handler=e,this.html=``,this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=un,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(on(t))return this.pos++,this._addGap(),sn(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.EOF;return this._err(P.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((this.html.charCodeAt(this.pos+t)|32)!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;let n=this.html.charCodeAt(t);return n===N.CARRIAGE_RETURN?N.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;let e=this.html.charCodeAt(this.pos);return e===N.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,N.LINE_FEED):e===N.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,an(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===N.LINE_FEED||e===N.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){cn(e)?this._err(P.controlCharacterInInputStream):ln(e)&&this._err(P.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},F;(function(e){e[e.CHARACTER=0]=`CHARACTER`,e[e.NULL_CHARACTER=1]=`NULL_CHARACTER`,e[e.WHITESPACE_CHARACTER=2]=`WHITESPACE_CHARACTER`,e[e.START_TAG=3]=`START_TAG`,e[e.END_TAG=4]=`END_TAG`,e[e.COMMENT=5]=`COMMENT`,e[e.DOCTYPE=6]=`DOCTYPE`,e[e.EOF=7]=`EOF`,e[e.HIBERNATION=8]=`HIBERNATION`})(F||={});function fn(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var pn=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),mn=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);String.fromCodePoint;function hn(e){return e>=55296&&e<=57343||e>1114111?65533:mn.get(e)??e}var gn;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(gn||={});var _n=32,vn;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(vn||={});function yn(e){return e>=gn.ZERO&&e<=gn.NINE}function bn(e){return e>=gn.UPPER_A&&e<=gn.UPPER_F||e>=gn.LOWER_A&&e<=gn.LOWER_F}function xn(e){return e>=gn.UPPER_A&&e<=gn.UPPER_Z||e>=gn.LOWER_A&&e<=gn.LOWER_Z||yn(e)}function Sn(e){return e===gn.EQUALS||xn(e)}var Cn;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(Cn||={});var wn;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(wn||={});var Tn=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Cn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=wn.Strict}startEntity(e){this.decodeMode=e,this.state=Cn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Cn.EntityStart:return e.charCodeAt(t)===gn.NUM?(this.state=Cn.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Cn.NamedEntity,this.stateNamedEntity(e,t));case Cn.NumericStart:return this.stateNumericStart(e,t);case Cn.NumericDecimal:return this.stateNumericDecimal(e,t);case Cn.NumericHex:return this.stateNumericHex(e,t);case Cn.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|_n)===gn.LOWER_X?(this.state=Cn.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Cn.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(yn(r)||bn(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(yn(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===gn.SEMI)this.consumed+=1;else if(this.decodeMode===wn.Strict)return 0;return this.emitCodePoint(hn(this.result),this.consumed),this.errors&&(e!==gn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&vn.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=En(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===wn.Attribute&&(i===0||Sn(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&vn.VALUE_LENGTH)>>14,i!==0){if(a===gn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==wn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&vn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~vn.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Cn.NamedEntity:return this.result!==0&&(this.decodeMode!==wn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Cn.NumericDecimal:return this.emitNumericEntity(0,2);case Cn.NumericHex:return this.emitNumericEntity(0,3);case Cn.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Cn.EntityStart:return 0}}};function En(e,t,n,r){let i=(t&vn.BRANCH_LENGTH)>>7,a=t&vn.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var I;(function(e){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/`})(I||={});var Dn;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(Dn||={});var On;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(On||={});var L;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SEARCH=`search`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(L||={});var R;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SEARCH=94]=`SEARCH`,e[e.SECTION=95]=`SECTION`,e[e.SELECT=96]=`SELECT`,e[e.SOURCE=97]=`SOURCE`,e[e.SMALL=98]=`SMALL`,e[e.SPAN=99]=`SPAN`,e[e.STRIKE=100]=`STRIKE`,e[e.STRONG=101]=`STRONG`,e[e.STYLE=102]=`STYLE`,e[e.SUB=103]=`SUB`,e[e.SUMMARY=104]=`SUMMARY`,e[e.SUP=105]=`SUP`,e[e.TABLE=106]=`TABLE`,e[e.TBODY=107]=`TBODY`,e[e.TEMPLATE=108]=`TEMPLATE`,e[e.TEXTAREA=109]=`TEXTAREA`,e[e.TFOOT=110]=`TFOOT`,e[e.TD=111]=`TD`,e[e.TH=112]=`TH`,e[e.THEAD=113]=`THEAD`,e[e.TITLE=114]=`TITLE`,e[e.TR=115]=`TR`,e[e.TRACK=116]=`TRACK`,e[e.TT=117]=`TT`,e[e.U=118]=`U`,e[e.UL=119]=`UL`,e[e.SVG=120]=`SVG`,e[e.VAR=121]=`VAR`,e[e.WBR=122]=`WBR`,e[e.XMP=123]=`XMP`})(R||={});var kn=new Map([[L.A,R.A],[L.ADDRESS,R.ADDRESS],[L.ANNOTATION_XML,R.ANNOTATION_XML],[L.APPLET,R.APPLET],[L.AREA,R.AREA],[L.ARTICLE,R.ARTICLE],[L.ASIDE,R.ASIDE],[L.B,R.B],[L.BASE,R.BASE],[L.BASEFONT,R.BASEFONT],[L.BGSOUND,R.BGSOUND],[L.BIG,R.BIG],[L.BLOCKQUOTE,R.BLOCKQUOTE],[L.BODY,R.BODY],[L.BR,R.BR],[L.BUTTON,R.BUTTON],[L.CAPTION,R.CAPTION],[L.CENTER,R.CENTER],[L.CODE,R.CODE],[L.COL,R.COL],[L.COLGROUP,R.COLGROUP],[L.DD,R.DD],[L.DESC,R.DESC],[L.DETAILS,R.DETAILS],[L.DIALOG,R.DIALOG],[L.DIR,R.DIR],[L.DIV,R.DIV],[L.DL,R.DL],[L.DT,R.DT],[L.EM,R.EM],[L.EMBED,R.EMBED],[L.FIELDSET,R.FIELDSET],[L.FIGCAPTION,R.FIGCAPTION],[L.FIGURE,R.FIGURE],[L.FONT,R.FONT],[L.FOOTER,R.FOOTER],[L.FOREIGN_OBJECT,R.FOREIGN_OBJECT],[L.FORM,R.FORM],[L.FRAME,R.FRAME],[L.FRAMESET,R.FRAMESET],[L.H1,R.H1],[L.H2,R.H2],[L.H3,R.H3],[L.H4,R.H4],[L.H5,R.H5],[L.H6,R.H6],[L.HEAD,R.HEAD],[L.HEADER,R.HEADER],[L.HGROUP,R.HGROUP],[L.HR,R.HR],[L.HTML,R.HTML],[L.I,R.I],[L.IMG,R.IMG],[L.IMAGE,R.IMAGE],[L.INPUT,R.INPUT],[L.IFRAME,R.IFRAME],[L.KEYGEN,R.KEYGEN],[L.LABEL,R.LABEL],[L.LI,R.LI],[L.LINK,R.LINK],[L.LISTING,R.LISTING],[L.MAIN,R.MAIN],[L.MALIGNMARK,R.MALIGNMARK],[L.MARQUEE,R.MARQUEE],[L.MATH,R.MATH],[L.MENU,R.MENU],[L.META,R.META],[L.MGLYPH,R.MGLYPH],[L.MI,R.MI],[L.MO,R.MO],[L.MN,R.MN],[L.MS,R.MS],[L.MTEXT,R.MTEXT],[L.NAV,R.NAV],[L.NOBR,R.NOBR],[L.NOFRAMES,R.NOFRAMES],[L.NOEMBED,R.NOEMBED],[L.NOSCRIPT,R.NOSCRIPT],[L.OBJECT,R.OBJECT],[L.OL,R.OL],[L.OPTGROUP,R.OPTGROUP],[L.OPTION,R.OPTION],[L.P,R.P],[L.PARAM,R.PARAM],[L.PLAINTEXT,R.PLAINTEXT],[L.PRE,R.PRE],[L.RB,R.RB],[L.RP,R.RP],[L.RT,R.RT],[L.RTC,R.RTC],[L.RUBY,R.RUBY],[L.S,R.S],[L.SCRIPT,R.SCRIPT],[L.SEARCH,R.SEARCH],[L.SECTION,R.SECTION],[L.SELECT,R.SELECT],[L.SOURCE,R.SOURCE],[L.SMALL,R.SMALL],[L.SPAN,R.SPAN],[L.STRIKE,R.STRIKE],[L.STRONG,R.STRONG],[L.STYLE,R.STYLE],[L.SUB,R.SUB],[L.SUMMARY,R.SUMMARY],[L.SUP,R.SUP],[L.TABLE,R.TABLE],[L.TBODY,R.TBODY],[L.TEMPLATE,R.TEMPLATE],[L.TEXTAREA,R.TEXTAREA],[L.TFOOT,R.TFOOT],[L.TD,R.TD],[L.TH,R.TH],[L.THEAD,R.THEAD],[L.TITLE,R.TITLE],[L.TR,R.TR],[L.TRACK,R.TRACK],[L.TT,R.TT],[L.U,R.U],[L.UL,R.UL],[L.SVG,R.SVG],[L.VAR,R.VAR],[L.WBR,R.WBR],[L.XMP,R.XMP]]);function An(e){return kn.get(e)??R.UNKNOWN}var z=R,jn={[I.HTML]:new Set([z.ADDRESS,z.APPLET,z.AREA,z.ARTICLE,z.ASIDE,z.BASE,z.BASEFONT,z.BGSOUND,z.BLOCKQUOTE,z.BODY,z.BR,z.BUTTON,z.CAPTION,z.CENTER,z.COL,z.COLGROUP,z.DD,z.DETAILS,z.DIR,z.DIV,z.DL,z.DT,z.EMBED,z.FIELDSET,z.FIGCAPTION,z.FIGURE,z.FOOTER,z.FORM,z.FRAME,z.FRAMESET,z.H1,z.H2,z.H3,z.H4,z.H5,z.H6,z.HEAD,z.HEADER,z.HGROUP,z.HR,z.HTML,z.IFRAME,z.IMG,z.INPUT,z.LI,z.LINK,z.LISTING,z.MAIN,z.MARQUEE,z.MENU,z.META,z.NAV,z.NOEMBED,z.NOFRAMES,z.NOSCRIPT,z.OBJECT,z.OL,z.P,z.PARAM,z.PLAINTEXT,z.PRE,z.SCRIPT,z.SECTION,z.SELECT,z.SOURCE,z.STYLE,z.SUMMARY,z.TABLE,z.TBODY,z.TD,z.TEMPLATE,z.TEXTAREA,z.TFOOT,z.TH,z.THEAD,z.TITLE,z.TR,z.TRACK,z.UL,z.WBR,z.XMP]),[I.MATHML]:new Set([z.MI,z.MO,z.MN,z.MS,z.MTEXT,z.ANNOTATION_XML]),[I.SVG]:new Set([z.TITLE,z.FOREIGN_OBJECT,z.DESC]),[I.XLINK]:new Set,[I.XML]:new Set,[I.XMLNS]:new Set},Mn=new Set([z.H1,z.H2,z.H3,z.H4,z.H5,z.H6]);L.STYLE,L.SCRIPT,L.XMP,L.IFRAME,L.NOEMBED,L.NOFRAMES,L.PLAINTEXT;var B;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=72]=`AMBIGUOUS_AMPERSAND`})(B||={});var Nn={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function Pn(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function Fn(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function In(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function Ln(e){return In(e)||Fn(e)}function Rn(e){return Ln(e)||Pn(e)}function zn(e){return e+32}function Bn(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function Vn(e){return Bn(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function Hn(e){return e===N.NULL?P.nullCharacterReference:e>1114111?P.characterReferenceOutsideUnicodeRange:an(e)?P.surrogateCharacterReference:ln(e)?P.noncharacterCharacterReference:cn(e)||e===N.CARRIAGE_RETURN?P.controlCharacterReference:null}var Un=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=``,this.active=!1,this.state=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new dn(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Tn(pn,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(P.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(P.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=Hn(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)==null||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(`Parser was already resumed`);this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:F.START_TAG,tagName:``,tagID:R.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:F.END_TAG,tagName:``,tagID:R.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:F.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:F.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:``},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;let t=this.currentToken;if(fn(t,this.currentAttr.name)===null){if(t.attrs.push(this.currentAttr),t.location&&this.currentLocation){let n=(e=t.location).attrs??(e.attrs=Object.create(null));n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(P.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=An(e.tagName),e.type===F.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(P.endTagWithAttributes),e.selfClosing&&this._err(P.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case F.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case F.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case F.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:F.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Bn(e)?F.WHITESPACE_CHARACTER:e===N.NULL?F.NULL_CHARACTER:F.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(F.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?wn.Attribute:wn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case B.DATA:this._stateData(e);break;case B.RCDATA:this._stateRcdata(e);break;case B.RAWTEXT:this._stateRawtext(e);break;case B.SCRIPT_DATA:this._stateScriptData(e);break;case B.PLAINTEXT:this._statePlaintext(e);break;case B.TAG_OPEN:this._stateTagOpen(e);break;case B.END_TAG_OPEN:this._stateEndTagOpen(e);break;case B.TAG_NAME:this._stateTagName(e);break;case B.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case B.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case B.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case B.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case B.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case B.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case B.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case B.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case B.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case B.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case B.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case B.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case B.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case B.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case B.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case B.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case B.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case B.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case B.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case B.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case B.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case B.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case B.BOGUS_COMMENT:this._stateBogusComment(e);break;case B.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case B.COMMENT_START:this._stateCommentStart(e);break;case B.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case B.COMMENT:this._stateComment(e);break;case B.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case B.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case B.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case B.COMMENT_END:this._stateCommentEnd(e);break;case B.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case B.DOCTYPE:this._stateDoctype(e);break;case B.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case B.DOCTYPE_NAME:this._stateDoctypeName(e);break;case B.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case B.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case B.CDATA_SECTION:this._stateCdataSection(e);break;case B.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case B.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case B.CHARACTER_REFERENCE:this._stateCharacterReference();break;case B.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case N.LESS_THAN_SIGN:this.state=B.TAG_OPEN;break;case N.AMPERSAND:this._startCharacterReference();break;case N.NULL:this._err(P.unexpectedNullCharacter),this._emitCodePoint(e);break;case N.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case N.AMPERSAND:this._startCharacterReference();break;case N.LESS_THAN_SIGN:this.state=B.RCDATA_LESS_THAN_SIGN;break;case N.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(`�`);break;case N.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case N.LESS_THAN_SIGN:this.state=B.RAWTEXT_LESS_THAN_SIGN;break;case N.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(`�`);break;case N.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case N.LESS_THAN_SIGN:this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break;case N.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(`�`);break;case N.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case N.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(`�`);break;case N.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Ln(e))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(e);else switch(e){case N.EXCLAMATION_MARK:this.state=B.MARKUP_DECLARATION_OPEN;break;case N.SOLIDUS:this.state=B.END_TAG_OPEN;break;case N.QUESTION_MARK:this._err(P.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(e);break;case N.EOF:this._err(P.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(P.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=B.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Ln(e))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(e);else switch(e){case N.GREATER_THAN_SIGN:this._err(P.missingEndTagName),this.state=B.DATA;break;case N.EOF:this._err(P.eofBeforeTagName),this._emitChars(`</`),this._emitEOFToken();break;default:this._err(P.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this.state=B.BEFORE_ATTRIBUTE_NAME;break;case N.SOLIDUS:this.state=B.SELF_CLOSING_START_TAG;break;case N.GREATER_THAN_SIGN:this.state=B.DATA,this.emitCurrentTagToken();break;case N.NULL:this._err(P.unexpectedNullCharacter),t.tagName+=`�`;break;case N.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(Fn(e)?zn(e):e)}}_stateRcdataLessThanSign(e){e===N.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars(`<`),this.state=B.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Ln(e)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars(`</`),this.state=B.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case N.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=B.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===N.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars(`<`),this.state=B.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Ln(e)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars(`</`),this.state=B.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=B.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case N.SOLIDUS:this.state=B.SCRIPT_DATA_END_TAG_OPEN;break;case N.EXCLAMATION_MARK:this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars(`<!`);break;default:this._emitChars(`<`),this.state=B.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Ln(e)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars(`</`),this.state=B.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=B.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===N.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars(`-`)):(this.state=B.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===N.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`)):(this.state=B.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case N.HYPHEN_MINUS:this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars(`-`);break;case N.LESS_THAN_SIGN:this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case N.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(`�`);break;case N.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case N.HYPHEN_MINUS:this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case N.LESS_THAN_SIGN:this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case N.NULL:this._err(P.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case N.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case N.HYPHEN_MINUS:this._emitChars(`-`);break;case N.LESS_THAN_SIGN:this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case N.GREATER_THAN_SIGN:this.state=B.SCRIPT_DATA,this._emitChars(`>`);break;case N.NULL:this._err(P.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case N.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===N.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ln(e)?(this._emitChars(`<`),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Ln(e)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(`</`),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(rn.SCRIPT,!1)&&Vn(this.preprocessor.peek(rn.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<rn.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case N.HYPHEN_MINUS:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars(`-`);break;case N.LESS_THAN_SIGN:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case N.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(`�`);break;case N.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case N.HYPHEN_MINUS:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case N.LESS_THAN_SIGN:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case N.NULL:this._err(P.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case N.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case N.HYPHEN_MINUS:this._emitChars(`-`);break;case N.LESS_THAN_SIGN:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case N.GREATER_THAN_SIGN:this.state=B.SCRIPT_DATA,this._emitChars(`>`);break;case N.NULL:this._err(P.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case N.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===N.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(rn.SCRIPT,!1)&&Vn(this.preprocessor.peek(rn.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<rn.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case N.EQUALS_SIGN:this._err(P.unexpectedEqualsSignBeforeAttributeName),this._createAttr(`=`),this.state=B.ATTRIBUTE_NAME;break;default:this._createAttr(``),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case N.EQUALS_SIGN:this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break;case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:this._err(P.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case N.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.name+=`�`;break;default:this.currentAttr.name+=String.fromCodePoint(Fn(e)?zn(e):e)}}_stateAfterAttributeName(e){switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:this.state=B.SELF_CLOSING_START_TAG;break;case N.EQUALS_SIGN:this.state=B.BEFORE_ATTRIBUTE_VALUE;break;case N.GREATER_THAN_SIGN:this.state=B.DATA,this.emitCurrentTagToken();break;case N.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this._createAttr(``),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case N.APOSTROPHE:this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case N.GREATER_THAN_SIGN:this._err(P.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break;default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case N.QUOTATION_MARK:this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case N.AMPERSAND:this._startCharacterReference();break;case N.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case N.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case N.APOSTROPHE:this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case N.AMPERSAND:this._startCharacterReference();break;case N.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case N.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break;case N.AMPERSAND:this._startCharacterReference();break;case N.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break;case N.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:this._err(P.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case N.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break;case N.SOLIDUS:this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break;case N.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break;case N.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this._err(P.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case N.GREATER_THAN_SIGN:{let e=this.currentToken;e.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case N.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this._err(P.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case N.GREATER_THAN_SIGN:this.state=B.DATA,this.emitCurrentComment(t);break;case N.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case N.NULL:this._err(P.unexpectedNullCharacter),t.data+=`�`;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(rn.DASH_DASH,!0)?(this._createCommentToken(rn.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(rn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(rn.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(rn.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(P.cdataInHtmlContent),this._createCommentToken(rn.CDATA_START.length+1),this.currentToken.data=`[CDATA[`,this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(P.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case N.HYPHEN_MINUS:this.state=B.COMMENT_START_DASH;break;case N.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=B.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=B.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case N.HYPHEN_MINUS:this.state=B.COMMENT_END;break;case N.GREATER_THAN_SIGN:this._err(P.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(t);break;case N.EOF:this._err(P.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=B.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case N.HYPHEN_MINUS:this.state=B.COMMENT_END_DASH;break;case N.LESS_THAN_SIGN:t.data+=`<`,this.state=B.COMMENT_LESS_THAN_SIGN;break;case N.NULL:this._err(P.unexpectedNullCharacter),t.data+=`�`;break;case N.EOF:this._err(P.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case N.EXCLAMATION_MARK:t.data+=`!`,this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break;case N.LESS_THAN_SIGN:t.data+=`<`;break;default:this.state=B.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===N.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===N.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==N.GREATER_THAN_SIGN&&e!==N.EOF&&this._err(P.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case N.HYPHEN_MINUS:this.state=B.COMMENT_END;break;case N.EOF:this._err(P.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=B.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case N.GREATER_THAN_SIGN:this.state=B.DATA,this.emitCurrentComment(t);break;case N.EXCLAMATION_MARK:this.state=B.COMMENT_END_BANG;break;case N.HYPHEN_MINUS:t.data+=`-`;break;case N.EOF:this._err(P.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--`,this.state=B.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case N.HYPHEN_MINUS:t.data+=`--!`,this.state=B.COMMENT_END_DASH;break;case N.GREATER_THAN_SIGN:this._err(P.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(t);break;case N.EOF:this._err(P.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--!`,this.state=B.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this.state=B.BEFORE_DOCTYPE_NAME;break;case N.GREATER_THAN_SIGN:this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case N.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Fn(e))this._createDoctypeToken(String.fromCharCode(zn(e))),this.state=B.DOCTYPE_NAME;else switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:this._err(P.unexpectedNullCharacter),this._createDoctypeToken(`�`),this.state=B.DOCTYPE_NAME;break;case N.GREATER_THAN_SIGN:{this._err(P.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=B.DATA;break}case N.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this.state=B.AFTER_DOCTYPE_NAME;break;case N.GREATER_THAN_SIGN:this.state=B.DATA,this.emitCurrentDoctype(t);break;case N.NULL:this._err(P.unexpectedNullCharacter),t.name+=`�`;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Fn(e)?zn(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:this.state=B.DATA,this.emitCurrentDoctype(t);break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(rn.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(rn.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(P.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case N.QUOTATION_MARK:this._err(P.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case N.APOSTROPHE:this._err(P.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case N.GREATER_THAN_SIGN:this._err(P.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(t);break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:t.publicId=``,this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case N.APOSTROPHE:t.publicId=``,this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case N.GREATER_THAN_SIGN:this._err(P.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(t);break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case N.QUOTATION_MARK:this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case N.NULL:this._err(P.unexpectedNullCharacter),t.publicId+=`�`;break;case N.GREATER_THAN_SIGN:this._err(P.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=B.DATA;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case N.APOSTROPHE:this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case N.NULL:this._err(P.unexpectedNullCharacter),t.publicId+=`�`;break;case N.GREATER_THAN_SIGN:this._err(P.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=B.DATA;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case N.GREATER_THAN_SIGN:this.state=B.DATA,this.emitCurrentDoctype(t);break;case N.QUOTATION_MARK:this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case N.APOSTROPHE:this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=B.DATA;break;case N.QUOTATION_MARK:t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case N.APOSTROPHE:t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case N.QUOTATION_MARK:this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case N.APOSTROPHE:this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case N.GREATER_THAN_SIGN:this._err(P.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(t);break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case N.APOSTROPHE:t.systemId=``,this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case N.GREATER_THAN_SIGN:this._err(P.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(t);break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case N.QUOTATION_MARK:this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case N.NULL:this._err(P.unexpectedNullCharacter),t.systemId+=`�`;break;case N.GREATER_THAN_SIGN:this._err(P.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=B.DATA;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case N.APOSTROPHE:this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case N.NULL:this._err(P.unexpectedNullCharacter),t.systemId+=`�`;break;case N.GREATER_THAN_SIGN:this._err(P.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=B.DATA;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=B.DATA;break;case N.EOF:this._err(P.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(P.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case N.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=B.DATA;break;case N.NULL:this._err(P.unexpectedNullCharacter);break;case N.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case N.RIGHT_SQUARE_BRACKET:this.state=B.CDATA_SECTION_BRACKET;break;case N.EOF:this._err(P.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===N.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars(`]`),this.state=B.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case N.GREATER_THAN_SIGN:this.state=B.DATA;break;case N.RIGHT_SQUARE_BRACKET:this._emitChars(`]`);break;default:this._emitChars(`]]`),this.state=B.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(N.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Rn(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Rn(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===N.SEMICOLON&&this._err(P.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},Wn=new Set([R.DD,R.DT,R.LI,R.OPTGROUP,R.OPTION,R.P,R.RB,R.RP,R.RT,R.RTC]),Gn=new Set([...Wn,R.CAPTION,R.COLGROUP,R.TBODY,R.TD,R.TFOOT,R.TH,R.THEAD,R.TR]),Kn=new Set([R.APPLET,R.CAPTION,R.HTML,R.MARQUEE,R.OBJECT,R.TABLE,R.TD,R.TEMPLATE,R.TH]),qn=new Set([...Kn,R.OL,R.UL]),Jn=new Set([...Kn,R.BUTTON]),Yn=new Set([R.ANNOTATION_XML,R.MI,R.MN,R.MO,R.MS,R.MTEXT]),Xn=new Set([R.DESC,R.FOREIGN_OBJECT,R.TITLE]),Zn=new Set([R.TR,R.TEMPLATE,R.HTML]),Qn=new Set([R.TBODY,R.TFOOT,R.THEAD,R.TEMPLATE,R.HTML]),$n=new Set([R.TABLE,R.TEMPLATE,R.HTML]),er=new Set([R.TD,R.TH]),tr=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=R.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===R.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===I.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==I.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Mn,I.HTML)}popUntilTableCellPopped(){this.popUntilPopped(er,I.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo($n,I.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Qn,I.HTML)}clearBackToTableRowContext(){this.clearBackTo(Zn,I.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===R.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===R.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case I.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case I.SVG:if(Xn.has(r))return!1;break;case I.MATHML:if(Yn.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Kn)}hasInListItemScope(e){return this.hasInDynamicScope(e,qn)}hasInButtonScope(e){return this.hasInDynamicScope(e,Jn)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case I.HTML:if(Mn.has(t))return!0;if(Kn.has(t))return!1;break;case I.SVG:if(Xn.has(t))return!1;break;case I.MATHML:if(Yn.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===I.HTML)switch(this.tagIDs[t]){case e:return!0;case R.TABLE:case R.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===I.HTML)switch(this.tagIDs[e]){case R.TBODY:case R.THEAD:case R.TFOOT:return!0;case R.TABLE:case R.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===I.HTML)switch(this.tagIDs[t]){case e:return!0;case R.OPTION:case R.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Wn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Gn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&Gn.has(this.currentTagId);)this.pop()}},nr=3,rr;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(rr||={});var ir={type:rr.Marker},ar=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===rr.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<nr)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<nr)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1,i>=nr&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(ir)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:rr.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:rr.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(ir);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===rr.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===rr.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===rr.Element&&t.element===e)}},or={createDocument(){return{nodeName:`#document`,mode:On.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},createTextNode(e){return{nodeName:`#text`,value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};or.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(or.isTextNode(n)){n.value+=t;return}}or.appendChild(e,or.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&or.isTextNode(r)?r.value+=t:or.insertBefore(e,or.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName===`#text`},isCommentNode(e){return e.nodeName===`#comment`},isDocumentTypeNode(e){return e.nodeName===`#documentType`},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,`tagName`)},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},sr=`html`,cr=`about:legacy-compat`,lr=`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`,ur=`+//silmaril//dtd html pro v0r11 19970101//,-//as//dtd html 3.0 aswedit + extensions//,-//advasoft ltd//dtd html 3.0 aswedit + extensions//,-//ietf//dtd html 2.0 level 1//,-//ietf//dtd html 2.0 level 2//,-//ietf//dtd html 2.0 strict level 1//,-//ietf//dtd html 2.0 strict level 2//,-//ietf//dtd html 2.0 strict//,-//ietf//dtd html 2.0//,-//ietf//dtd html 2.1e//,-//ietf//dtd html 3.0//,-//ietf//dtd html 3.2 final//,-//ietf//dtd html 3.2//,-//ietf//dtd html 3//,-//ietf//dtd html level 0//,-//ietf//dtd html level 1//,-//ietf//dtd html level 2//,-//ietf//dtd html level 3//,-//ietf//dtd html strict level 0//,-//ietf//dtd html strict level 1//,-//ietf//dtd html strict level 2//,-//ietf//dtd html strict level 3//,-//ietf//dtd html strict//,-//ietf//dtd html//,-//metrius//dtd metrius presentational//,-//microsoft//dtd internet explorer 2.0 html strict//,-//microsoft//dtd internet explorer 2.0 html//,-//microsoft//dtd internet explorer 2.0 tables//,-//microsoft//dtd internet explorer 3.0 html strict//,-//microsoft//dtd internet explorer 3.0 html//,-//microsoft//dtd internet explorer 3.0 tables//,-//netscape comm. corp.//dtd html//,-//netscape comm. corp.//dtd strict html//,-//o'reilly and associates//dtd html 2.0//,-//o'reilly and associates//dtd html extended 1.0//,-//o'reilly and associates//dtd html extended relaxed 1.0//,-//sq//dtd html 2.0 hotmetal + extensions//,-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//,-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//,-//spyglass//dtd html 2.0 extended//,-//sun microsystems corp.//dtd hotjava html//,-//sun microsystems corp.//dtd hotjava strict html//,-//w3c//dtd html 3 1995-03-24//,-//w3c//dtd html 3.2 draft//,-//w3c//dtd html 3.2 final//,-//w3c//dtd html 3.2//,-//w3c//dtd html 3.2s draft//,-//w3c//dtd html 4.0 frameset//,-//w3c//dtd html 4.0 transitional//,-//w3c//dtd html experimental 19960712//,-//w3c//dtd html experimental 970421//,-//w3c//dtd w3 html//,-//w3o//dtd w3 html 3.0//,-//webtechs//dtd mozilla html 2.0//,-//webtechs//dtd mozilla html//`.split(`,`),dr=[...ur,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],fr=new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),pr=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],mr=[...pr,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function hr(e,t){return t.some(t=>e.startsWith(t))}function gr(e){return e.name===sr&&e.publicId===null&&(e.systemId===null||e.systemId===cr)}function _r(e){if(e.name!==sr)return On.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===lr)return On.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),fr.has(n))return On.QUIRKS;let e=t===null?dr:ur;if(hr(n,e))return On.QUIRKS;if(e=t===null?pr:mr,hr(n,e))return On.LIMITED_QUIRKS}return On.NO_QUIRKS}var vr={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},yr=`definitionurl`,br=`definitionURL`,xr=new Map(`attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e])),Sr=new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:I.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:I.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:I.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:I.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:I.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:I.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:I.XLINK}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:I.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:I.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:I.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:I.XMLNS}]]),Cr=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),wr=new Set([R.B,R.BIG,R.BLOCKQUOTE,R.BODY,R.BR,R.CENTER,R.CODE,R.DD,R.DIV,R.DL,R.DT,R.EM,R.EMBED,R.H1,R.H2,R.H3,R.H4,R.H5,R.H6,R.HEAD,R.HR,R.I,R.IMG,R.LI,R.LISTING,R.MENU,R.META,R.NOBR,R.OL,R.P,R.PRE,R.RUBY,R.S,R.SMALL,R.SPAN,R.STRONG,R.STRIKE,R.SUB,R.SUP,R.TABLE,R.TT,R.U,R.UL,R.VAR]);function Tr(e){let t=e.tagID;return t===R.FONT&&e.attrs.some(({name:e})=>e===Dn.COLOR||e===Dn.SIZE||e===Dn.FACE)||wr.has(t)}function Er(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===yr){e.attrs[t].name=br;break}}function Dr(e){for(let t=0;t<e.attrs.length;t++){let n=xr.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Or(e){for(let t=0;t<e.attrs.length;t++){let n=Sr.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function kr(e){let t=Cr.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=An(e.tagName))}function Ar(e,t){return t===I.MATHML&&(e===R.MI||e===R.MO||e===R.MN||e===R.MS||e===R.MTEXT)}function jr(e,t,n){if(t===I.MATHML&&e===R.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===Dn.ENCODING){let t=n[e].value.toLowerCase();return t===vr.TEXT_HTML||t===vr.APPLICATION_XML}}return t===I.SVG&&(e===R.FOREIGN_OBJECT||e===R.DESC||e===R.TITLE)}function Mr(e,t,n,r){return(!r||r===I.HTML)&&jr(e,t,n)||(!r||r===I.MATHML)&&Ar(e,t)}var Nr=`hidden`,Pr=8,Fr=3,V;(function(e){e[e.INITIAL=0]=`INITIAL`,e[e.BEFORE_HTML=1]=`BEFORE_HTML`,e[e.BEFORE_HEAD=2]=`BEFORE_HEAD`,e[e.IN_HEAD=3]=`IN_HEAD`,e[e.IN_HEAD_NO_SCRIPT=4]=`IN_HEAD_NO_SCRIPT`,e[e.AFTER_HEAD=5]=`AFTER_HEAD`,e[e.IN_BODY=6]=`IN_BODY`,e[e.TEXT=7]=`TEXT`,e[e.IN_TABLE=8]=`IN_TABLE`,e[e.IN_TABLE_TEXT=9]=`IN_TABLE_TEXT`,e[e.IN_CAPTION=10]=`IN_CAPTION`,e[e.IN_COLUMN_GROUP=11]=`IN_COLUMN_GROUP`,e[e.IN_TABLE_BODY=12]=`IN_TABLE_BODY`,e[e.IN_ROW=13]=`IN_ROW`,e[e.IN_CELL=14]=`IN_CELL`,e[e.IN_SELECT=15]=`IN_SELECT`,e[e.IN_SELECT_IN_TABLE=16]=`IN_SELECT_IN_TABLE`,e[e.IN_TEMPLATE=17]=`IN_TEMPLATE`,e[e.AFTER_BODY=18]=`AFTER_BODY`,e[e.IN_FRAMESET=19]=`IN_FRAMESET`,e[e.AFTER_FRAMESET=20]=`AFTER_FRAMESET`,e[e.AFTER_AFTER_BODY=21]=`AFTER_AFTER_BODY`,e[e.AFTER_AFTER_FRAMESET=22]=`AFTER_AFTER_FRAMESET`})(V||={});var Ir={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Lr=new Set([R.TABLE,R.TBODY,R.TFOOT,R.THEAD,R.TR]),Rr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:or,onParseError:null},zr=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=V.INITIAL,this.originalInsertionMode=V.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={...Rr,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new Un(this.options,this),this.activeFormattingElements=new ar(this.treeAdapter),this.fragmentContextID=n?An(this.treeAdapter.getTagName(n)):R.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new tr(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...Rr,...t};e??=n.treeAdapter.createElement(L.TEMPLATE,I.HTML,[]);let r=n.treeAdapter.createElement(`documentmock`,I.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===R.TEMPLATE&&i.tmplInsertionModeStack.unshift(V.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){if(!this.onParseError)return;let r=e.location??Ir,i={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)==null||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===I.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,I.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=V.TEXT}switchToPlaintextParsing(){this.insertionMode=V.TEXT,this.originalInsertionMode=V.IN_BODY,this.tokenizer.state=Nn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===L.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===I.HTML)switch(this.fragmentContextID){case R.TITLE:case R.TEXTAREA:this.tokenizer.state=Nn.RCDATA;break;case R.STYLE:case R.XMP:case R.IFRAME:case R.NOEMBED:case R.NOFRAMES:case R.NOSCRIPT:this.tokenizer.state=Nn.RAWTEXT;break;case R.SCRIPT:this.tokenizer.state=Nn.SCRIPT_DATA;break;case R.PLAINTEXT:this.tokenizer.state=Nn.PLAINTEXT}}_setDocumentType(e){let t=e.name||``,n=e.publicId||``,r=e.systemId||``;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t??this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,I.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,I.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(L.HTML,I.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,R.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===F.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===R.SVG&&this.treeAdapter.getTagName(t)===L.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===I.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===R.MGLYPH||e.tagID===R.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,I.HTML)}_processToken(e){switch(e.type){case F.CHARACTER:this.onCharacter(e);break;case F.NULL_CHARACTER:this.onNullCharacter(e);break;case F.COMMENT:this.onComment(e);break;case F.DOCTYPE:this.onDoctype(e);break;case F.START_TAG:this._processStartTag(e);break;case F.END_TAG:this.onEndTag(e);break;case F.EOF:this.onEof(e);break;case F.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Mr(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===rr.Marker||this.openElements.contains(e.element)),n=t===-1?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=V.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(R.P),this.openElements.popUntilTagNamePopped(R.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case R.TR:this.insertionMode=V.IN_ROW;return;case R.TBODY:case R.THEAD:case R.TFOOT:this.insertionMode=V.IN_TABLE_BODY;return;case R.CAPTION:this.insertionMode=V.IN_CAPTION;return;case R.COLGROUP:this.insertionMode=V.IN_COLUMN_GROUP;return;case R.TABLE:this.insertionMode=V.IN_TABLE;return;case R.BODY:this.insertionMode=V.IN_BODY;return;case R.FRAMESET:this.insertionMode=V.IN_FRAMESET;return;case R.SELECT:this._resetInsertionModeForSelect(e);return;case R.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case R.HTML:this.insertionMode=this.headElement?V.AFTER_HEAD:V.BEFORE_HEAD;return;case R.TD:case R.TH:if(e>0){this.insertionMode=V.IN_CELL;return}break;case R.HEAD:if(e>0){this.insertionMode=V.IN_HEAD;return}}this.insertionMode=V.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===R.TEMPLATE)break;if(e===R.TABLE){this.insertionMode=V.IN_SELECT_IN_TABLE;return}}this.insertionMode=V.IN_SELECT}_isElementCausesFosterParenting(e){return Lr.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case R.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===I.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case R.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return jn[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)ro(this,e);else switch(this.insertionMode){case V.INITIAL:Qr(this,e);break;case V.BEFORE_HTML:ti(this,e);break;case V.BEFORE_HEAD:ii(this,e);break;case V.IN_HEAD:ci(this,e);break;case V.IN_HEAD_NO_SCRIPT:di(this,e);break;case V.AFTER_HEAD:mi(this,e);break;case V.IN_BODY:case V.IN_CAPTION:case V.IN_CELL:case V.IN_TEMPLATE:_i(this,e);break;case V.TEXT:case V.IN_SELECT:case V.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case V.IN_TABLE:case V.IN_TABLE_BODY:case V.IN_ROW:fa(this,e);break;case V.IN_TABLE_TEXT:Ta(this,e);break;case V.IN_COLUMN_GROUP:Ma(this,e);break;case V.AFTER_BODY:Ja(this,e);break;case V.AFTER_AFTER_BODY:eo(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)no(this,e);else switch(this.insertionMode){case V.INITIAL:Qr(this,e);break;case V.BEFORE_HTML:ti(this,e);break;case V.BEFORE_HEAD:ii(this,e);break;case V.IN_HEAD:ci(this,e);break;case V.IN_HEAD_NO_SCRIPT:di(this,e);break;case V.AFTER_HEAD:mi(this,e);break;case V.TEXT:this._insertCharacters(e);break;case V.IN_TABLE:case V.IN_TABLE_BODY:case V.IN_ROW:fa(this,e);break;case V.IN_COLUMN_GROUP:Ma(this,e);break;case V.AFTER_BODY:Ja(this,e);break;case V.AFTER_AFTER_BODY:eo(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)qr(this,e);else switch(this.insertionMode){case V.INITIAL:case V.BEFORE_HTML:case V.BEFORE_HEAD:case V.IN_HEAD:case V.IN_HEAD_NO_SCRIPT:case V.AFTER_HEAD:case V.IN_BODY:case V.IN_TABLE:case V.IN_CAPTION:case V.IN_COLUMN_GROUP:case V.IN_TABLE_BODY:case V.IN_ROW:case V.IN_CELL:case V.IN_SELECT:case V.IN_SELECT_IN_TABLE:case V.IN_TEMPLATE:case V.IN_FRAMESET:case V.AFTER_FRAMESET:qr(this,e);break;case V.IN_TABLE_TEXT:Ea(this,e);break;case V.AFTER_BODY:Jr(this,e);break;case V.AFTER_AFTER_BODY:case V.AFTER_AFTER_FRAMESET:Yr(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case V.INITIAL:Zr(this,e);break;case V.BEFORE_HEAD:case V.IN_HEAD:case V.IN_HEAD_NO_SCRIPT:case V.AFTER_HEAD:this._err(e,P.misplacedDoctype);break;case V.IN_TABLE_TEXT:Ea(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,P.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?ao(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case V.INITIAL:Qr(this,e);break;case V.BEFORE_HTML:$r(this,e);break;case V.BEFORE_HEAD:ni(this,e);break;case V.IN_HEAD:ai(this,e);break;case V.IN_HEAD_NO_SCRIPT:li(this,e);break;case V.AFTER_HEAD:fi(this,e);break;case V.IN_BODY:Xi(this,e);break;case V.IN_TABLE:xa(this,e);break;case V.IN_TABLE_TEXT:Ea(this,e);break;case V.IN_CAPTION:Oa(this,e);break;case V.IN_COLUMN_GROUP:Aa(this,e);break;case V.IN_TABLE_BODY:Na(this,e);break;case V.IN_ROW:Fa(this,e);break;case V.IN_CELL:La(this,e);break;case V.IN_SELECT:za(this,e);break;case V.IN_SELECT_IN_TABLE:Va(this,e);break;case V.IN_TEMPLATE:Ua(this,e);break;case V.AFTER_BODY:Ka(this,e);break;case V.IN_FRAMESET:Ya(this,e);break;case V.AFTER_FRAMESET:Za(this,e);break;case V.AFTER_AFTER_BODY:$a(this,e);break;case V.AFTER_AFTER_FRAMESET:to(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?oo(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case V.INITIAL:Qr(this,e);break;case V.BEFORE_HTML:ei(this,e);break;case V.BEFORE_HEAD:ri(this,e);break;case V.IN_HEAD:oi(this,e);break;case V.IN_HEAD_NO_SCRIPT:ui(this,e);break;case V.AFTER_HEAD:pi(this,e);break;case V.IN_BODY:ca(this,e);break;case V.TEXT:ua(this,e);break;case V.IN_TABLE:Sa(this,e);break;case V.IN_TABLE_TEXT:Ea(this,e);break;case V.IN_CAPTION:ka(this,e);break;case V.IN_COLUMN_GROUP:ja(this,e);break;case V.IN_TABLE_BODY:Pa(this,e);break;case V.IN_ROW:Ia(this,e);break;case V.IN_CELL:Ra(this,e);break;case V.IN_SELECT:Ba(this,e);break;case V.IN_SELECT_IN_TABLE:Ha(this,e);break;case V.IN_TEMPLATE:Wa(this,e);break;case V.AFTER_BODY:qa(this,e);break;case V.IN_FRAMESET:Xa(this,e);break;case V.AFTER_FRAMESET:Qa(this,e);break;case V.AFTER_AFTER_BODY:eo(this,e)}}onEof(e){switch(this.insertionMode){case V.INITIAL:Qr(this,e);break;case V.BEFORE_HTML:ti(this,e);break;case V.BEFORE_HEAD:ii(this,e);break;case V.IN_HEAD:ci(this,e);break;case V.IN_HEAD_NO_SCRIPT:di(this,e);break;case V.AFTER_HEAD:mi(this,e);break;case V.IN_BODY:case V.IN_TABLE:case V.IN_CAPTION:case V.IN_COLUMN_GROUP:case V.IN_TABLE_BODY:case V.IN_ROW:case V.IN_CELL:case V.IN_SELECT:case V.IN_SELECT_IN_TABLE:la(this,e);break;case V.TEXT:da(this,e);break;case V.IN_TABLE_TEXT:Ea(this,e);break;case V.IN_TEMPLATE:Ga(this,e);break;case V.AFTER_BODY:case V.IN_FRAMESET:case V.AFTER_FRAMESET:case V.AFTER_AFTER_BODY:case V.AFTER_AFTER_FRAMESET:Xr(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===N.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case V.IN_HEAD:case V.IN_HEAD_NO_SCRIPT:case V.AFTER_HEAD:case V.TEXT:case V.IN_COLUMN_GROUP:case V.IN_SELECT:case V.IN_SELECT_IN_TABLE:case V.IN_FRAMESET:case V.AFTER_FRAMESET:this._insertCharacters(e);break;case V.IN_BODY:case V.IN_CAPTION:case V.IN_CELL:case V.IN_TEMPLATE:case V.AFTER_BODY:case V.AFTER_AFTER_BODY:case V.AFTER_AFTER_FRAMESET:gi(this,e);break;case V.IN_TABLE:case V.IN_TABLE_BODY:case V.IN_ROW:fa(this,e);break;case V.IN_TABLE_TEXT:wa(this,e)}}};function Br(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):sa(e,t),n}function Vr(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Hr(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=Fr;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Ur(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Ur(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Wr(e,t,n){let r=An(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===R.TEMPLATE&&i===I.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Gr(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Kr(e,t){for(let n=0;n<Pr;n++){let n=Br(e,t);if(!n)break;let r=Vr(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=Hr(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&Wr(e,a,i),Gr(e,r,n)}}function qr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Jr(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Yr(e,t){e._appendCommentNode(t,e.document)}function Xr(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Zr(e,t){e._setDocumentType(t);let n=t.forceQuirks?On.QUIRKS:_r(t);gr(t)||e._err(t,P.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=V.BEFORE_HTML}function Qr(e,t){e._err(t,P.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,On.QUIRKS),e.insertionMode=V.BEFORE_HTML,e._processToken(t)}function $r(e,t){t.tagID===R.HTML?(e._insertElement(t,I.HTML),e.insertionMode=V.BEFORE_HEAD):ti(e,t)}function ei(e,t){let n=t.tagID;(n===R.HTML||n===R.HEAD||n===R.BODY||n===R.BR)&&ti(e,t)}function ti(e,t){e._insertFakeRootElement(),e.insertionMode=V.BEFORE_HEAD,e._processToken(t)}function ni(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.HEAD:e._insertElement(t,I.HTML),e.headElement=e.openElements.current,e.insertionMode=V.IN_HEAD;break;default:ii(e,t)}}function ri(e,t){let n=t.tagID;n===R.HEAD||n===R.BODY||n===R.HTML||n===R.BR?ii(e,t):e._err(t,P.endTagWithoutMatchingOpenElement)}function ii(e,t){e._insertFakeElement(L.HEAD,R.HEAD),e.headElement=e.openElements.current,e.insertionMode=V.IN_HEAD,e._processToken(t)}function ai(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:e._appendElement(t,I.HTML),t.ackSelfClosing=!0;break;case R.TITLE:e._switchToTextParsing(t,Nn.RCDATA);break;case R.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Nn.RAWTEXT):(e._insertElement(t,I.HTML),e.insertionMode=V.IN_HEAD_NO_SCRIPT);break;case R.NOFRAMES:case R.STYLE:e._switchToTextParsing(t,Nn.RAWTEXT);break;case R.SCRIPT:e._switchToTextParsing(t,Nn.SCRIPT_DATA);break;case R.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=V.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(V.IN_TEMPLATE);break;case R.HEAD:e._err(t,P.misplacedStartTagForHeadElement);break;default:ci(e,t)}}function oi(e,t){switch(t.tagID){case R.HEAD:e.openElements.pop(),e.insertionMode=V.AFTER_HEAD;break;case R.BODY:case R.BR:case R.HTML:ci(e,t);break;case R.TEMPLATE:si(e,t);break;default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function si(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==R.TEMPLATE&&e._err(t,P.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(R.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,P.endTagWithoutMatchingOpenElement)}function ci(e,t){e.openElements.pop(),e.insertionMode=V.AFTER_HEAD,e._processToken(t)}function li(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.BASEFONT:case R.BGSOUND:case R.HEAD:case R.LINK:case R.META:case R.NOFRAMES:case R.STYLE:ai(e,t);break;case R.NOSCRIPT:e._err(t,P.nestedNoscriptInHead);break;default:di(e,t)}}function ui(e,t){switch(t.tagID){case R.NOSCRIPT:e.openElements.pop(),e.insertionMode=V.IN_HEAD;break;case R.BR:di(e,t);break;default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function di(e,t){let n=t.type===F.EOF?P.openElementsLeftAfterEof:P.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=V.IN_HEAD,e._processToken(t)}function fi(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.BODY:e._insertElement(t,I.HTML),e.framesetOk=!1,e.insertionMode=V.IN_BODY;break;case R.FRAMESET:e._insertElement(t,I.HTML),e.insertionMode=V.IN_FRAMESET;break;case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:case R.NOFRAMES:case R.SCRIPT:case R.STYLE:case R.TEMPLATE:case R.TITLE:e._err(t,P.abandonedHeadElementChild),e.openElements.push(e.headElement,R.HEAD),ai(e,t),e.openElements.remove(e.headElement);break;case R.HEAD:e._err(t,P.misplacedStartTagForHeadElement);break;default:mi(e,t)}}function pi(e,t){switch(t.tagID){case R.BODY:case R.HTML:case R.BR:mi(e,t);break;case R.TEMPLATE:si(e,t);break;default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function mi(e,t){e._insertFakeElement(L.BODY,R.BODY),e.insertionMode=V.IN_BODY,hi(e,t)}function hi(e,t){switch(t.type){case F.CHARACTER:_i(e,t);break;case F.WHITESPACE_CHARACTER:gi(e,t);break;case F.COMMENT:qr(e,t);break;case F.START_TAG:Xi(e,t);break;case F.END_TAG:ca(e,t);break;case F.EOF:la(e,t)}}function gi(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function _i(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function vi(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function yi(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function bi(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,I.HTML),e.insertionMode=V.IN_FRAMESET)}function xi(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,I.HTML)}function Si(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Mn.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,I.HTML)}function Ci(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,I.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function wi(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,I.HTML),n||(e.formElement=e.openElements.current))}function Ti(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===R.LI&&r===R.LI||(n===R.DD||n===R.DT)&&(r===R.DD||r===R.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==R.ADDRESS&&r!==R.DIV&&r!==R.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,I.HTML)}function Ei(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,I.HTML),e.tokenizer.state=Nn.PLAINTEXT}function Di(e,t){e.openElements.hasInScope(R.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(R.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,I.HTML),e.framesetOk=!1}function Oi(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(L.A);n&&(Kr(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,I.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ki(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,I.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ai(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(R.NOBR)&&(Kr(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,I.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ji(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,I.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Mi(e,t){e.treeAdapter.getDocumentMode(e.document)!==On.QUIRKS&&e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,I.HTML),e.framesetOk=!1,e.insertionMode=V.IN_TABLE}function Ni(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,I.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Pi(e){let t=fn(e,Dn.TYPE);return t!=null&&t.toLowerCase()===Nr}function Fi(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,I.HTML),Pi(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ii(e,t){e._appendElement(t,I.HTML),t.ackSelfClosing=!0}function Li(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._appendElement(t,I.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ri(e,t){t.tagName=L.IMG,t.tagID=R.IMG,Ni(e,t)}function zi(e,t){e._insertElement(t,I.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Nn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=V.TEXT}function Bi(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Nn.RAWTEXT)}function Vi(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Nn.RAWTEXT)}function Hi(e,t){e._switchToTextParsing(t,Nn.RAWTEXT)}function Ui(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,I.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===V.IN_TABLE||e.insertionMode===V.IN_CAPTION||e.insertionMode===V.IN_TABLE_BODY||e.insertionMode===V.IN_ROW||e.insertionMode===V.IN_CELL?V.IN_SELECT_IN_TABLE:V.IN_SELECT}function Wi(e,t){e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,I.HTML)}function Gi(e,t){e.openElements.hasInScope(R.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,I.HTML)}function Ki(e,t){e.openElements.hasInScope(R.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(R.RTC),e._insertElement(t,I.HTML)}function qi(e,t){e._reconstructActiveFormattingElements(),Er(t),Or(t),t.selfClosing?e._appendElement(t,I.MATHML):e._insertElement(t,I.MATHML),t.ackSelfClosing=!0}function Ji(e,t){e._reconstructActiveFormattingElements(),Dr(t),Or(t),t.selfClosing?e._appendElement(t,I.SVG):e._insertElement(t,I.SVG),t.ackSelfClosing=!0}function Yi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,I.HTML)}function Xi(e,t){switch(t.tagID){case R.I:case R.S:case R.B:case R.U:case R.EM:case R.TT:case R.BIG:case R.CODE:case R.FONT:case R.SMALL:case R.STRIKE:case R.STRONG:ki(e,t);break;case R.A:Oi(e,t);break;case R.H1:case R.H2:case R.H3:case R.H4:case R.H5:case R.H6:Si(e,t);break;case R.P:case R.DL:case R.OL:case R.UL:case R.DIV:case R.DIR:case R.NAV:case R.MAIN:case R.MENU:case R.ASIDE:case R.CENTER:case R.FIGURE:case R.FOOTER:case R.HEADER:case R.HGROUP:case R.DIALOG:case R.DETAILS:case R.ADDRESS:case R.ARTICLE:case R.SEARCH:case R.SECTION:case R.SUMMARY:case R.FIELDSET:case R.BLOCKQUOTE:case R.FIGCAPTION:xi(e,t);break;case R.LI:case R.DD:case R.DT:Ti(e,t);break;case R.BR:case R.IMG:case R.WBR:case R.AREA:case R.EMBED:case R.KEYGEN:Ni(e,t);break;case R.HR:Li(e,t);break;case R.RB:case R.RTC:Gi(e,t);break;case R.RT:case R.RP:Ki(e,t);break;case R.PRE:case R.LISTING:Ci(e,t);break;case R.XMP:Bi(e,t);break;case R.SVG:Ji(e,t);break;case R.HTML:vi(e,t);break;case R.BASE:case R.LINK:case R.META:case R.STYLE:case R.TITLE:case R.SCRIPT:case R.BGSOUND:case R.BASEFONT:case R.TEMPLATE:ai(e,t);break;case R.BODY:yi(e,t);break;case R.FORM:wi(e,t);break;case R.NOBR:Ai(e,t);break;case R.MATH:qi(e,t);break;case R.TABLE:Mi(e,t);break;case R.INPUT:Fi(e,t);break;case R.PARAM:case R.TRACK:case R.SOURCE:Ii(e,t);break;case R.IMAGE:Ri(e,t);break;case R.BUTTON:Di(e,t);break;case R.APPLET:case R.OBJECT:case R.MARQUEE:ji(e,t);break;case R.IFRAME:Vi(e,t);break;case R.SELECT:Ui(e,t);break;case R.OPTION:case R.OPTGROUP:Wi(e,t);break;case R.NOEMBED:case R.NOFRAMES:Hi(e,t);break;case R.FRAMESET:bi(e,t);break;case R.TEXTAREA:zi(e,t);break;case R.NOSCRIPT:e.options.scriptingEnabled?Hi(e,t):Yi(e,t);break;case R.PLAINTEXT:Ei(e,t);break;case R.COL:case R.TH:case R.TD:case R.TR:case R.HEAD:case R.FRAME:case R.TBODY:case R.TFOOT:case R.THEAD:case R.CAPTION:case R.COLGROUP:break;default:Yi(e,t)}}function Zi(e,t){if(e.openElements.hasInScope(R.BODY)&&(e.insertionMode=V.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Qi(e,t){e.openElements.hasInScope(R.BODY)&&(e.insertionMode=V.AFTER_BODY,qa(e,t))}function $i(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ea(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(R.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(R.FORM):n&&e.openElements.remove(n))}function ta(e){e.openElements.hasInButtonScope(R.P)||e._insertFakeElement(L.P,R.P),e._closePElement()}function na(e){e.openElements.hasInListItemScope(R.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(R.LI),e.openElements.popUntilTagNamePopped(R.LI))}function ra(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ia(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function aa(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function oa(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(L.BR,R.BR),e.openElements.pop(),e.framesetOk=!1}function sa(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==R.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function ca(e,t){switch(t.tagID){case R.A:case R.B:case R.I:case R.S:case R.U:case R.EM:case R.TT:case R.BIG:case R.CODE:case R.FONT:case R.NOBR:case R.SMALL:case R.STRIKE:case R.STRONG:Kr(e,t);break;case R.P:ta(e);break;case R.DL:case R.UL:case R.OL:case R.DIR:case R.DIV:case R.NAV:case R.PRE:case R.MAIN:case R.MENU:case R.ASIDE:case R.BUTTON:case R.CENTER:case R.FIGURE:case R.FOOTER:case R.HEADER:case R.HGROUP:case R.DIALOG:case R.ADDRESS:case R.ARTICLE:case R.DETAILS:case R.SEARCH:case R.SECTION:case R.SUMMARY:case R.LISTING:case R.FIELDSET:case R.BLOCKQUOTE:case R.FIGCAPTION:$i(e,t);break;case R.LI:na(e);break;case R.DD:case R.DT:ra(e,t);break;case R.H1:case R.H2:case R.H3:case R.H4:case R.H5:case R.H6:ia(e);break;case R.BR:oa(e);break;case R.BODY:Zi(e,t);break;case R.HTML:Qi(e,t);break;case R.FORM:ea(e);break;case R.APPLET:case R.OBJECT:case R.MARQUEE:aa(e,t);break;case R.TEMPLATE:si(e,t);break;default:sa(e,t)}}function la(e,t){e.tmplInsertionModeStack.length>0?Ga(e,t):Xr(e,t)}function ua(e,t){var n;t.tagID===R.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function da(e,t){e._err(t,P.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function fa(e,t){if(e.openElements.currentTagId!==void 0&&Lr.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=V.IN_TABLE_TEXT,t.type){case F.CHARACTER:Ta(e,t);break;case F.WHITESPACE_CHARACTER:wa(e,t)}else Ca(e,t)}function pa(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,I.HTML),e.insertionMode=V.IN_CAPTION}function ma(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,I.HTML),e.insertionMode=V.IN_COLUMN_GROUP}function ha(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(L.COLGROUP,R.COLGROUP),e.insertionMode=V.IN_COLUMN_GROUP,Aa(e,t)}function ga(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,I.HTML),e.insertionMode=V.IN_TABLE_BODY}function _a(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(L.TBODY,R.TBODY),e.insertionMode=V.IN_TABLE_BODY,Na(e,t)}function va(e,t){e.openElements.hasInTableScope(R.TABLE)&&(e.openElements.popUntilTagNamePopped(R.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function ya(e,t){Pi(t)?e._appendElement(t,I.HTML):Ca(e,t),t.ackSelfClosing=!0}function ba(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,I.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function xa(e,t){switch(t.tagID){case R.TD:case R.TH:case R.TR:_a(e,t);break;case R.STYLE:case R.SCRIPT:case R.TEMPLATE:ai(e,t);break;case R.COL:ha(e,t);break;case R.FORM:ba(e,t);break;case R.TABLE:va(e,t);break;case R.TBODY:case R.TFOOT:case R.THEAD:ga(e,t);break;case R.INPUT:ya(e,t);break;case R.CAPTION:pa(e,t);break;case R.COLGROUP:ma(e,t);break;default:Ca(e,t)}}function Sa(e,t){switch(t.tagID){case R.TABLE:e.openElements.hasInTableScope(R.TABLE)&&(e.openElements.popUntilTagNamePopped(R.TABLE),e._resetInsertionMode());break;case R.TEMPLATE:si(e,t);break;case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TBODY:case R.TD:case R.TFOOT:case R.TH:case R.THEAD:case R.TR:break;default:Ca(e,t)}}function Ca(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,hi(e,t),e.fosterParentingEnabled=n}function wa(e,t){e.pendingCharacterTokens.push(t)}function Ta(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ea(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Ca(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Da=new Set([R.CAPTION,R.COL,R.COLGROUP,R.TBODY,R.TD,R.TFOOT,R.TH,R.THEAD,R.TR]);function Oa(e,t){let n=t.tagID;Da.has(n)?e.openElements.hasInTableScope(R.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(R.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=V.IN_TABLE,xa(e,t)):Xi(e,t)}function ka(e,t){let n=t.tagID;switch(n){case R.CAPTION:case R.TABLE:e.openElements.hasInTableScope(R.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(R.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=V.IN_TABLE,n===R.TABLE&&Sa(e,t));break;case R.BODY:case R.COL:case R.COLGROUP:case R.HTML:case R.TBODY:case R.TD:case R.TFOOT:case R.TH:case R.THEAD:case R.TR:break;default:ca(e,t)}}function Aa(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.COL:e._appendElement(t,I.HTML),t.ackSelfClosing=!0;break;case R.TEMPLATE:ai(e,t);break;default:Ma(e,t)}}function ja(e,t){switch(t.tagID){case R.COLGROUP:e.openElements.currentTagId===R.COLGROUP&&(e.openElements.pop(),e.insertionMode=V.IN_TABLE);break;case R.TEMPLATE:si(e,t);break;case R.COL:break;default:Ma(e,t)}}function Ma(e,t){e.openElements.currentTagId===R.COLGROUP&&(e.openElements.pop(),e.insertionMode=V.IN_TABLE,e._processToken(t))}function Na(e,t){switch(t.tagID){case R.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,I.HTML),e.insertionMode=V.IN_ROW;break;case R.TH:case R.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(L.TR,R.TR),e.insertionMode=V.IN_ROW,Fa(e,t);break;case R.CAPTION:case R.COL:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=V.IN_TABLE,xa(e,t));break;default:xa(e,t)}}function Pa(e,t){let n=t.tagID;switch(t.tagID){case R.TBODY:case R.TFOOT:case R.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=V.IN_TABLE);break;case R.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=V.IN_TABLE,Sa(e,t));break;case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TD:case R.TH:case R.TR:break;default:Sa(e,t)}}function Fa(e,t){switch(t.tagID){case R.TH:case R.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,I.HTML),e.insertionMode=V.IN_CELL,e.activeFormattingElements.insertMarker();break;case R.CAPTION:case R.COL:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:case R.TR:e.openElements.hasInTableScope(R.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=V.IN_TABLE_BODY,Na(e,t));break;default:xa(e,t)}}function Ia(e,t){switch(t.tagID){case R.TR:e.openElements.hasInTableScope(R.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=V.IN_TABLE_BODY);break;case R.TABLE:e.openElements.hasInTableScope(R.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=V.IN_TABLE_BODY,Pa(e,t));break;case R.TBODY:case R.TFOOT:case R.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(R.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=V.IN_TABLE_BODY,Pa(e,t));break;case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TD:case R.TH:break;default:Sa(e,t)}}function La(e,t){let n=t.tagID;Da.has(n)?(e.openElements.hasInTableScope(R.TD)||e.openElements.hasInTableScope(R.TH))&&(e._closeTableCell(),Fa(e,t)):Xi(e,t)}function Ra(e,t){let n=t.tagID;switch(n){case R.TD:case R.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=V.IN_ROW);break;case R.TABLE:case R.TBODY:case R.TFOOT:case R.THEAD:case R.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ia(e,t));break;case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:break;default:ca(e,t)}}function za(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.OPTION:e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e._insertElement(t,I.HTML);break;case R.OPTGROUP:e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e.openElements.currentTagId===R.OPTGROUP&&e.openElements.pop(),e._insertElement(t,I.HTML);break;case R.HR:e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e.openElements.currentTagId===R.OPTGROUP&&e.openElements.pop(),e._appendElement(t,I.HTML),t.ackSelfClosing=!0;break;case R.INPUT:case R.KEYGEN:case R.TEXTAREA:case R.SELECT:e.openElements.hasInSelectScope(R.SELECT)&&(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode(),t.tagID!==R.SELECT&&e._processStartTag(t));break;case R.SCRIPT:case R.TEMPLATE:ai(e,t)}}function Ba(e,t){switch(t.tagID){case R.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===R.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===R.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===R.OPTGROUP&&e.openElements.pop();break;case R.OPTION:e.openElements.currentTagId===R.OPTION&&e.openElements.pop();break;case R.SELECT:e.openElements.hasInSelectScope(R.SELECT)&&(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode());break;case R.TEMPLATE:si(e,t)}}function Va(e,t){let n=t.tagID;n===R.CAPTION||n===R.TABLE||n===R.TBODY||n===R.TFOOT||n===R.THEAD||n===R.TR||n===R.TD||n===R.TH?(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode(),e._processStartTag(t)):za(e,t)}function Ha(e,t){let n=t.tagID;n===R.CAPTION||n===R.TABLE||n===R.TBODY||n===R.TFOOT||n===R.THEAD||n===R.TR||n===R.TD||n===R.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ba(e,t)}function Ua(e,t){switch(t.tagID){case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:case R.NOFRAMES:case R.SCRIPT:case R.STYLE:case R.TEMPLATE:case R.TITLE:ai(e,t);break;case R.CAPTION:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:e.tmplInsertionModeStack[0]=V.IN_TABLE,e.insertionMode=V.IN_TABLE,xa(e,t);break;case R.COL:e.tmplInsertionModeStack[0]=V.IN_COLUMN_GROUP,e.insertionMode=V.IN_COLUMN_GROUP,Aa(e,t);break;case R.TR:e.tmplInsertionModeStack[0]=V.IN_TABLE_BODY,e.insertionMode=V.IN_TABLE_BODY,Na(e,t);break;case R.TD:case R.TH:e.tmplInsertionModeStack[0]=V.IN_ROW,e.insertionMode=V.IN_ROW,Fa(e,t);break;default:e.tmplInsertionModeStack[0]=V.IN_BODY,e.insertionMode=V.IN_BODY,Xi(e,t)}}function Wa(e,t){t.tagID===R.TEMPLATE&&si(e,t)}function Ga(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(R.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Xr(e,t)}function Ka(e,t){t.tagID===R.HTML?Xi(e,t):Ja(e,t)}function qa(e,t){if(t.tagID===R.HTML){if(e.fragmentContext||(e.insertionMode=V.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===R.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else Ja(e,t)}function Ja(e,t){e.insertionMode=V.IN_BODY,hi(e,t)}function Ya(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.FRAMESET:e._insertElement(t,I.HTML);break;case R.FRAME:e._appendElement(t,I.HTML),t.ackSelfClosing=!0;break;case R.NOFRAMES:ai(e,t)}}function Xa(e,t){t.tagID===R.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==R.FRAMESET&&(e.insertionMode=V.AFTER_FRAMESET))}function Za(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.NOFRAMES:ai(e,t)}}function Qa(e,t){t.tagID===R.HTML&&(e.insertionMode=V.AFTER_AFTER_FRAMESET)}function $a(e,t){t.tagID===R.HTML?Xi(e,t):eo(e,t)}function eo(e,t){e.insertionMode=V.IN_BODY,hi(e,t)}function to(e,t){switch(t.tagID){case R.HTML:Xi(e,t);break;case R.NOFRAMES:ai(e,t)}}function no(e,t){t.chars=`�`,e._insertCharacters(t)}function ro(e,t){e._insertCharacters(t),e.framesetOk=!1}function io(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==I.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ao(e,t){if(Tr(t))io(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===I.MATHML?Er(t):r===I.SVG&&(kr(t),Dr(t)),Or(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function oo(e,t){if(t.tagID===R.P||t.tagID===R.BR)io(e),e._endTagOutsideForeignContent(t);else for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===I.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}L.AREA,L.BASE,L.BASEFONT,L.BGSOUND,L.BR,L.COL,L.EMBED,L.FRAME,L.HR,L.IMG,L.INPUT,L.KEYGEN,L.LINK,L.META,L.PARAM,L.SOURCE,L.TRACK,L.WBR;var so=lo(`end`),co=lo(`start`);function lo(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function uo(e){let t=co(e),n=so(e);if(t&&n)return{start:t,end:n}}var fo=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,po=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),mo={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ho(e,t){let n=ko(e),r=Vt(`type`,{handlers:{root:_o,element:vo,text:yo,comment:So,doctype:bo,raw:Co},unknown:wo}),i={parser:n?new zr(mo):zr.getFragmentParser(void 0,mo),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),To(i,co());let a=Mt(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&O(a,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),a.type===`root`&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function go(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function _o(e,t){go(e.children,t)}function vo(e,t){Do(e,t),go(e.children,t),Oo(e,t)}function yo(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:F.CHARACTER,chars:e.value,location:Ao(e)};To(t,co(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function bo(e,t){let n={type:F.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:Ao(e)};To(t,co(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function xo(e,t){t.stitches=!0;let n=jo(e);`children`in e&&`children`in n&&(n.children=ho({type:`root`,children:e.children},t.options).children),So({type:`comment`,value:{stitch:n}},t)}function So(e,t){let n=e.value,r={type:F.COMMENT,data:n,location:Ao(e)};To(t,co(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Co(e,t){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,Eo(t,co(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(fo,`&lt;$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function wo(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))xo(n,t);else{let e=``;throw po.has(n.type)&&(e=". 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"),Error("Cannot compile `"+n.type+"` node"+e)}}function To(e,t){Eo(e,t);let n=e.parser.tokenizer.currentCharacterToken;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=Nn.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:``}}function Eo(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Do(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Nn.PLAINTEXT)return;To(t,co(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:kt.html;i===kt.html&&n===`svg`&&(i=kt.svg);let a=Gt({...e,children:[]},{space:i===kt.svg?`svg`:`html`}),o={type:F.START_TAG,tagName:n,tagID:An(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:Ao(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Oo(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&tn.includes(n)||t.parser.tokenizer.state===Nn.PLAINTEXT)return;To(t,so(e));let r={type:F.END_TAG,tagName:n,tagID:An(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ao(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Nn.RCDATA||t.parser.tokenizer.state===Nn.RAWTEXT||t.parser.tokenizer.state===Nn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Nn.DATA)}function ko(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function Ao(e){let t=co(e)||{line:void 0,column:void 0,offset:void 0},n=so(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function jo(e){return`children`in e?Me({...e,children:[]}):Me(e)}function Mo(e){return function(t,n){return ho(t,{...e,file:n})}}var No=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],Po={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...No,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...No],h2:[[`className`,`sr-only`]],img:[...No,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...No,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...No],table:[...No],ul:[...No,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},Fo={}.hasOwnProperty;function Io(e,t){let n={type:`root`,children:[]},r=Lo({schema:t?{...Po,...t}:Po,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function Lo(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return Ro(e,n);case`doctype`:return zo(e,n);case`element`:return Bo(e,n);case`root`:return Vo(e,n);case`text`:return Ho(e,n)}}}function Ro(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return Yo(r,t),r}}function zo(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return Yo(e,t),e}}function Bo(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=Uo(e,t.children),i=Wo(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Fo.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:`element`,tagName:n,properties:i,children:r};return Yo(o,t),o}function Vo(e,t){let n={type:`root`,children:Uo(e,t.children)};return Yo(n,t),n}function Ho(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return Yo(n,t),n}function Uo(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=Lo(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function Wo(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&Fo.call(r,n)?r[n]:void 0,o=r&&Fo.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(Fo.call(s,l)){let t=s[l],n=Go(e,Xo(a,l),l,t);n??=Go(e,Xo(o,l),l,t),n!=null&&(c[l]=n)}if(i&&Fo.call(i,n)){let e=i[n];for(l in e)Fo.call(e,l)&&!Fo.call(c,l)&&(c[l]=e[l])}return c}function Go(e,t,n,r){return t?Array.isArray(r)?Ko(e,t,n,r):qo(e,t,n,r):void 0}function Ko(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=qo(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function qo(e,t,n,r){if((typeof r==`boolean`||typeof r==`number`||typeof r==`string`)&&Jo(e,n,r)){if(typeof t==`object`&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&typeof i==`object`&&`flags`in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function Jo(e,t,n){let r=e.schema.protocols&&Fo.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;let i=String(n),a=i.indexOf(`:`),o=i.indexOf(`?`),s=i.indexOf(`#`),c=i.indexOf(`/`);if(a<0||c>-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l<r.length;){let e=r[l];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}function Yo(e,t){let n=uo(t);t.data&&(e.data=Me(t.data)),n&&(e.position=n)}function Xo(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a=typeof i==`string`?i:i[0];if(a===t)return i;a===`data*`&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()===`data`)return n}function Zo(e){return function(t){return Io(t,e)}}function Qo(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var $o=cs(/[A-Za-z]/),es=cs(/[\dA-Za-z]/),ts=cs(/[#-'*+\--9=?A-Z^-~]/);function ns(e){return e!==null&&(e<32||e===127)}var rs=cs(/\d/),is=cs(/[\dA-Fa-f]/),as=cs(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function U(e){return e!==null&&(e<0||e===32)}function W(e){return e===-2||e===-1||e===32}var os=cs(/\p{P}|\p{S}/u),ss=cs(/\s/);function cs(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ls(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function us(e,t,n){let r=S((n||{}).ignore||[]),i=ds(t),a=-1;for(;++a<i.length;)ae(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function ds(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([fs(e[0]),ps(e[1])])}return t}function fs(e){return typeof e==`string`?new RegExp(ls(e),`g`):e}function ps(e){return typeof e==`function`?e:function(){return e}}var ms=`phrasing`,hs=[`autolink`,`link`,`image`,`label`];function gs(){return{transforms:[ws],enter:{literalAutolink:vs,literalAutolinkEmail:ys,literalAutolinkHttp:ys,literalAutolinkWww:ys},exit:{literalAutolink:Cs,literalAutolinkEmail:Ss,literalAutolinkHttp:bs,literalAutolinkWww:xs}}}function _s(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:ms,notInConstruct:hs},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:ms,notInConstruct:hs},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:ms,notInConstruct:hs}]}}function vs(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function ys(e){this.config.enter.autolinkProtocol.call(this,e)}function bs(e){this.config.exit.autolinkProtocol.call(this,e)}function xs(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Ss(e){this.config.exit.autolinkEmail.call(this,e)}function Cs(e){this.exit(e)}function ws(e){us(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ts],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Es]],{ignore:[`link`,`linkReference`]})}function Ts(e,t,n,r,i){let a=``;if(!ks(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Ds(n)))return!1;let o=Os(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Es(e,t,n,r){return!ks(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Ds(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Os(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Qo(e,`(`),a=Qo(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function ks(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||ss(n)||os(n))&&(!t||n!==47)}function As(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}Bs.peek=zs;function js(){this.buffer()}function Ms(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Ns(){this.buffer()}function Ps(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Fs(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=As(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Is(e){this.exit(e)}function Ls(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=As(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Rs(e){this.exit(e)}function zs(){return`[`}function Bs(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Vs(){return{enter:{gfmFootnoteCallString:js,gfmFootnoteCall:Ms,gfmFootnoteDefinitionLabelString:Ns,gfmFootnoteDefinition:Ps},exit:{gfmFootnoteCallString:Fs,gfmFootnoteCall:Is,gfmFootnoteDefinitionLabelString:Ls,gfmFootnoteDefinition:Rs}}}function Hs(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Bs},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
4
4
  `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Ws:Us))),s(),o}}function Us(e,t,n){return t===0?e:Ws(e,t,n)}function Ws(e,t,n){return(n?``:` `)+e}var Gs=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Xs.attention=Zs,Xs.peek=Qs;function Ks(){return{canContainEols:[`delete`],enter:{strikethrough:Js},exit:{strikethrough:Ys}}}function qs(){return{handlers:{delete:Xs},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Gs}]}}function Js(e){this.enter({type:`delete`,children:[],position:void 0},e)}function Ys(e){this.exit(e)}function Xs(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function Zs(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function Qs(){return`~`}function $s(e){return e.length}function ec(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||$s,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=tc(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=nc(r[d]);else{let e=nc(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
5
5
  `)}function tc(e){return e==null?``:String(e)}function nc(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var rc=S([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function ic(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),ac);return i(),o}function ac(e,t,n){return`>`+(n?``:` `)+e}function oc(e,t){return sc(e,t.inConstruct,!0)&&!sc(e,t.notInConstruct,!1)}function sc(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function cc(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
@@ -51,7 +51,7 @@ $$`:`${e}$$`},lm=e=>om(e)%2==0?e:cm(e),um=e=>sm(e)%2==1?`${e}$`:e,dm=`streamdown
51
51
  `});++r<e.length;)r&&n.push({type:`text`,value:`
52
52
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
53
53
  `}),n}function Qg(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $g(e,t){let n=qg(e,t),r=n.one(e,void 0),i=Wg(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
54
- `},i)),a}function e_(e,t){return e&&`run`in e?async function(n,r){let i=$g(n,{file:r,...t});await e.run(i,r)}:function(n,r){return $g(n,{file:r,...e||t})}}function t_(e){if(e)throw e}var n_=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function r_(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i_(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?a_(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function a_(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var o_={basename:s_,dirname:c_,extname:l_,join:u_,sep:`/`};function s_(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);p_(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function c_(e){if(p_(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function l_(e){p_(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function u_(...e){let t=-1,n;for(;++t<e.length;)p_(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:d_(n)}function d_(e){p_(e);let t=e.codePointAt(0)===47,n=f_(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function f_(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function p_(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var m_={cwd:h_};function h_(){return`/`}function g_(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function __(e){if(typeof e==`string`)e=new URL(e);else if(!g_(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return v_(e)}function v_(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var y_=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],b_=class{constructor(e){let t;t=e?g_(e)?{path:e}:typeof e==`string`||w_(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:m_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<y_.length;){let e=y_[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)y_.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?o_.basename(this.path):void 0}set basename(e){S_(e,`basename`),x_(e,`basename`),this.path=o_.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?o_.dirname(this.path):void 0}set dirname(e){C_(this.basename,`dirname`),this.path=o_.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?o_.extname(this.path):void 0}set extname(e){if(x_(e,`extname`),C_(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=o_.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){g_(e)&&(e=__(e)),S_(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?o_.basename(this.path,this.extname):void 0}set stem(e){S_(e,`stem`),x_(e,`stem`),this.path=o_.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Jm(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function x_(e,t){if(e&&e.includes(o_.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+o_.sep+"`")}function S_(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function C_(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function w_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var T_=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),E_=e(n_(),1),D_={}.hasOwnProperty,O_=new class e extends T_{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=i_()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,E_.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(j_(`data`,this.frozen),this.namespace[e]=t,this):D_.call(this.namespace,e)&&this.namespace[e]||void 0:e?(j_(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=P_(e),n=this.parser||this.Parser;return k_(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),k_(`process`,this.parser||this.Parser),A_(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=P_(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);I_(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),k_(`processSync`,this.parser||this.Parser),A_(`processSync`,this.compiler||this.Compiler),this.process(e,r),N_(`processSync`,`process`,t),n;function r(e,r){t=!0,t_(e),n=r}}run(e,t,n){M_(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=P_(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),N_(`runSync`,`run`,n),r;function i(e,t){t_(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=P_(t),r=this.compiler||this.Compiler;return A_(`stringify`,r),M_(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(j_(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,E_.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];r_(o)&&r_(r)&&(r=(0,E_.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function k_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function A_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function j_(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function M_(e){if(!r_(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function N_(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function P_(e){return F_(e)?e:new b_(e)}function F_(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function I_(e){return typeof e==`string`||L_(e)}function L_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var q=i(),R_=e(a(),1);function z_(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var B_=z_();function V_(e){B_=e}var H_={exec:()=>null};function U_(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function J(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(G_.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var W_=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),G_={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:U_(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:U_(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:U_(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:U_(e=>RegExp(`^ {0,${e}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:U_(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:U_(e=>RegExp(`^ {0,${e}}(?:</?(?:${ov})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,`i`)),blockquoteBeginRegex:U_(e=>RegExp(`^ {0,${e}}>`))},K_=/^(?:[ \t]*(?:\n|$))+/,q_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,J_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Y_=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,X_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Z_=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Q_=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$_=J(Q_).replace(/bull/g,Z_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ev=J(Q_).replace(/bull/g,Z_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),tv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,nv=/^[^\n]+/,rv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,iv=J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,rv).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),av=J(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Z_).getRegex(),ov=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,sv=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cv=J(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,sv).replace(`tag`,ov).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lv=e=>J(tv).replace(`hr`,Y_).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,ov).getRegex(),uv=lv(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),dv=lv(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),fv={blockquote:J(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace(`paragraph`,dv).getRegex(),code:q_,def:iv,fences:J_,heading:X_,hr:Y_,html:cv,lheading:$_,list:av,newline:K_,paragraph:uv,table:H_,text:nv},pv=J(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Y_).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,ov).getRegex(),mv={...fv,lheading:ev,table:pv,paragraph:J(tv).replace(`hr`,Y_).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,pv).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,ov).getRegex()},hv={...fv,html:J(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,sv).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:H_,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:J(tv).replace(`hr`,Y_).replace(`heading`,` *#{1,6} *[^
54
+ `},i)),a}function e_(e,t){return e&&`run`in e?async function(n,r){let i=$g(n,{file:r,...t});await e.run(i,r)}:function(n,r){return $g(n,{file:r,...e||t})}}function t_(e){if(e)throw e}var n_=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function r_(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i_(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?a_(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function a_(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var o_={basename:s_,dirname:c_,extname:l_,join:u_,sep:`/`};function s_(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);p_(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function c_(e){if(p_(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function l_(e){p_(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function u_(...e){let t=-1,n;for(;++t<e.length;)p_(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:d_(n)}function d_(e){p_(e);let t=e.codePointAt(0)===47,n=f_(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function f_(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function p_(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var m_={cwd:h_};function h_(){return`/`}function g_(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function __(e){if(typeof e==`string`)e=new URL(e);else if(!g_(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return v_(e)}function v_(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var y_=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],b_=class{constructor(e){let t;t=e?g_(e)?{path:e}:typeof e==`string`||w_(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:m_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<y_.length;){let e=y_[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)y_.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?o_.basename(this.path):void 0}set basename(e){S_(e,`basename`),x_(e,`basename`),this.path=o_.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?o_.dirname(this.path):void 0}set dirname(e){C_(this.basename,`dirname`),this.path=o_.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?o_.extname(this.path):void 0}set extname(e){if(x_(e,`extname`),C_(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=o_.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){g_(e)&&(e=__(e)),S_(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?o_.basename(this.path,this.extname):void 0}set stem(e){S_(e,`stem`),x_(e,`stem`),this.path=o_.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Jm(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function x_(e,t){if(e&&e.includes(o_.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+o_.sep+"`")}function S_(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function C_(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function w_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var T_=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),E_=e(n_(),1),D_={}.hasOwnProperty,O_=new class e extends T_{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=i_()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,E_.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(j_(`data`,this.frozen),this.namespace[e]=t,this):D_.call(this.namespace,e)&&this.namespace[e]||void 0:e?(j_(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=P_(e),n=this.parser||this.Parser;return k_(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),k_(`process`,this.parser||this.Parser),A_(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=P_(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);I_(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),k_(`processSync`,this.parser||this.Parser),A_(`processSync`,this.compiler||this.Compiler),this.process(e,r),N_(`processSync`,`process`,t),n;function r(e,r){t=!0,t_(e),n=r}}run(e,t,n){M_(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=P_(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),N_(`runSync`,`run`,n),r;function i(e,t){t_(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=P_(t),r=this.compiler||this.Compiler;return A_(`stringify`,r),M_(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(j_(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,E_.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];r_(o)&&r_(r)&&(r=(0,E_.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function k_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function A_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function j_(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function M_(e){if(!r_(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function N_(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function P_(e){return F_(e)?e:new b_(e)}function F_(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function I_(e){return typeof e==`string`||L_(e)}function L_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var q=i(),R_=e(o(),1);function z_(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var B_=z_();function V_(e){B_=e}var H_={exec:()=>null};function U_(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function J(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(G_.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var W_=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),G_={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:U_(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:U_(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:U_(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:U_(e=>RegExp(`^ {0,${e}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:U_(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:U_(e=>RegExp(`^ {0,${e}}(?:</?(?:${ov})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,`i`)),blockquoteBeginRegex:U_(e=>RegExp(`^ {0,${e}}>`))},K_=/^(?:[ \t]*(?:\n|$))+/,q_=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,J_=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Y_=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,X_=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Z_=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Q_=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$_=J(Q_).replace(/bull/g,Z_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ev=J(Q_).replace(/bull/g,Z_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),tv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,nv=/^[^\n]+/,rv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,iv=J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,rv).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),av=J(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Z_).getRegex(),ov=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,sv=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cv=J(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,sv).replace(`tag`,ov).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lv=e=>J(tv).replace(`hr`,Y_).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,ov).getRegex(),uv=lv(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),dv=lv(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),fv={blockquote:J(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace(`paragraph`,dv).getRegex(),code:q_,def:iv,fences:J_,heading:X_,hr:Y_,html:cv,lheading:$_,list:av,newline:K_,paragraph:uv,table:H_,text:nv},pv=J(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Y_).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,ov).getRegex(),mv={...fv,lheading:ev,table:pv,paragraph:J(tv).replace(`hr`,Y_).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,pv).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,ov).getRegex()},hv={...fv,html:J(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,sv).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:H_,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:J(tv).replace(`hr`,Y_).replace(`heading`,` *#{1,6} *[^
55
55
  ]`).replace(`lheading`,$_).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},gv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_v=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vv=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,yv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,bv=/[\p{P}\p{S}]/u,xv=/[\s\p{P}\p{S}]/u,Sv=/[^\s\p{P}\p{S}]/u,Cv=J(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,xv).getRegex(),wv=/[\p{Pi}\p{Ps}"']/u,Tv=/(?!~)[\p{P}\p{S}]/u,Ev=/(?!~)[\s\p{P}\p{S}]/u,Dv=/(?:[^\s\p{P}\p{S}]|~)/u,Ov=J(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,W_?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),kv=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Av=J(kv,`u`).replace(/punct/g,bv).getRegex(),jv=J(kv,`u`).replace(/punct/g,Tv).getRegex(),Mv=J(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,wv).replace(/punct/g,bv).getRegex(),Nv=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Pv=J(Nv,`gu`).replace(/notPunctSpace/g,Sv).replace(/punctSpace/g,xv).replace(/punct/g,bv).getRegex(),Fv=J(Nv,`gu`).replace(/notPunctSpace/g,Dv).replace(/punctSpace/g,Ev).replace(/punct/g,Tv).getRegex(),Iv=J(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Sv).replace(/punctSpace/g,xv).replace(/punct/g,bv).getRegex(),Lv=J(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Sv).replace(/punctSpace/g,xv).replace(/punct/g,bv).getRegex(),Rv=J(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Sv).replace(/punctSpace/g,xv).replace(/punct/g,bv).getRegex(),zv=J(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,bv).getRegex(),Bv=J(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Sv).replace(/punctSpace/g,xv).replace(/punct/g,bv).getRegex(),Vv=J(/\\(punct)/,`gu`).replace(/punct/g,bv).getRegex(),Hv=J(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,`gu`).replace(/punct/g,bv).getRegex(),Uv=J(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Wv=J(sv).replace(`(?:-->|$)`,`-->`).getRegex(),Gv=J(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Wv).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Kv=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,qv=J(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,Kv).getRegex(),Jv=J(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace(`label`,qv).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Yv=J(/^!?\[(label)\]\[(ref)\]/).replace(`label`,qv).replace(`ref`,rv).getRegex(),Xv=J(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,rv).getRegex(),Zv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Qv=J(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,Kv).getRegex(),$v=J(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,J(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Qv).replace(`ref`,Zv).getRegex()).replace(`nolink`,J(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Zv).getRegex()).getRegex(),ey=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ty=J(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),ny={_backpedal:H_,anyPunctuation:Vv,anyPunctuationOutsideCode:Hv,autolink:Uv,blockSkip:Ov,br:vv,code:_v,del:H_,delLDelim:H_,delRDelim:H_,emStrongLDelim:Av,emStrongRDelimAst:Pv,emStrongRDelimUnd:Lv,escape:gv,link:Jv,nolink:Xv,punctuation:Cv,reflink:Yv,reflinkSearch:$v,tag:Gv,text:yv,url:H_},ry={...ny,emStrongLDelim:Mv,emStrongRDelimAst:Iv,emStrongRDelimUnd:Rv,link:J(/^!?\[(label)\]\((.*?)\)/).replace(`label`,qv).getRegex(),reflink:J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,qv).getRegex()},iy={...ny,emStrongRDelimAst:Fv,emStrongLDelim:jv,delLDelim:zv,delRDelim:Bv,url:J(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,ty).replace(`protocol`,ey).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:J(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,ey).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},ay={...iy,br:J(vv).replace(`{2,}`,`*`).getRegex(),text:J(iy.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},oy={normal:fv,gfm:mv,pedantic:hv},sy={normal:ny,gfm:iy,breaks:ay,pedantic:ry},cy={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},ly=e=>cy[e];function uy(e,t){if(t){if(G_.escapeTest.test(e))return e.replace(G_.escapeReplace,ly)}else if(G_.escapeTestNoEncode.test(e))return e.replace(G_.escapeReplaceNoEncode,ly);return e}function dy(e){return G_.numericCharacterReference.test(e)?e.replace(G_.numericCharacterReferenceOrAmpersand,(e,t,n)=>{if(t===void 0&&n===void 0)return`&amp;`;let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:r===38?`&amp;`:String.fromCodePoint(r)}):e}function fy(e){try{e=encodeURI(e).replace(G_.percentDecode,`%`)}catch{return null}return e}function py(e,t){let n=e.replace(G_.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(G_.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(G_.slashPipe,`|`);return n}function my(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function hy(e){let t=e.split(`
56
56
  `),n=t.length-1;for(;n>=0&&G_.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
57
57
  `)}function gy(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function _y(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function vy(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function yy(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`,l=r.state.inLink,u=r.state.linkEmitted,d=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let f=r.inlineTokens(s),p=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=l,!c){if(p){r.state.inRawBlock=d;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:f}}function by(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
@@ -119,9 +119,9 @@ ${this.parser.parse(e)}</blockquote>
119
119
  ${e}</tr>
120
120
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
121
121
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${uy(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?uy(n,!0):this.parser.parseInline(r),o=fy(e);if(o===null)return a;e=uy(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+uy(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=fy(e);if(i===null)return uy(n);e=i;let a=`<img src="${uy(e)}" alt="${uy(n)}"`;return t&&(a+=` title="${uy(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:uy(e.text)}},Ty=class{parser;strong({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}em({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}codespan({text:e}){return e}del({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}html({text:e}){return e}text({text:e}){return e}link({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}image({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}br(){return``}checkbox({raw:e}){return e}},Ey=class e{options;renderer;textRenderer;constructor(e){this.options=e||B_,this.options.renderer=this.options.renderer||new wy,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ty,this.textRenderer.parser=this}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Dy=class{options;block;constructor(e){this.options=e||B_}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Cy.lex:Cy.lexInline}provideParser(e=this.block){return e?Ey.parse:Ey.parseInline}};function Oy(e,t){if(Array.isArray(t))for(let n=0;n<t.length;n++)e.push(t[n]);else e.push(t)}var ky=new class{defaults=z_();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ey;Renderer=wy;TextRenderer=Ty;Lexer=Cy;Tokenizer=Sy;Hooks=Dy;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(Oy(n,t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)Oy(n,this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)Oy(n,this.walkTokens(e.tokens,t));break}case`list`:{let e=r;Oy(n,this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);Oy(n,this.walkTokens(i,t))}):e.tokens&&Oy(n,this.walkTokens(e.tokens,t))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new wy(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Sy(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Dy;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Dy.passThroughHooks.has(n)?e=>{if(t.options.async&&Dy.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(t.options.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&Oy(n,t.call(this,e)),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Cy.lex(e,t??this.defaults)}parser(e,t){return Ey.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Cy.lex:Cy.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Ey.parse:Ey.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Cy.lex:Cy.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Ey.parse:Ey.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
122
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+uy(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Y(e,t){return ky.parse(e,t)}Y.options=Y.setOptions=function(e){return ky.setOptions(e),Y.defaults=ky.defaults,V_(Y.defaults),Y},Y.getDefaults=z_,Y.defaults=B_;function Ay(...e){return ky.use(...e),Y.defaults=ky.defaults,V_(Y.defaults),Y}Y.use=Ay,Y.walkTokens=function(e,t){return ky.walkTokens(e,t)},Y.parseInline=ky.parseInline,Y.Parser=Ey,Y.parser=Ey.parse,Y.Renderer=wy,Y.TextRenderer=Ty,Y.Lexer=Cy,Y.lexer=Cy.lex,Y.Tokenizer=Sy,Y.Hooks=Dy,Y.parse=Y,Y.options,Y.setOptions,Y.walkTokens,Y.parseInline,Ey.parse,Cy.lex;var jy=300,My=`300px`,Ny=500;function Py(e={}){let{immediate:t=!1,debounceDelay:n=jy,rootMargin:r=My,idleTimeout:i=Ny}=e,[a,o]=(0,k.useState)(!1),s=(0,k.useRef)(null),c=(0,k.useRef)(null),l=(0,k.useRef)(null),u=(0,k.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),d=(0,k.useMemo)(()=>typeof window<`u`&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):u,[u]),f=(0,k.useMemo)(()=>typeof window<`u`&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,k.useEffect)(()=>{if(t){o(!0);return}let e=s.current;if(!e)return;c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null);let a=()=>{c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null)},u=e=>{l.current=d(t=>{t.timeRemaining()>0||t.didTimeout?(o(!0),e.disconnect()):l.current=d(()=>{o(!0),e.disconnect()},{timeout:i/2})},{timeout:i})},p=e=>{a(),c.current=window.setTimeout(()=>{var t;let n=e.takeRecords();(n.length===0||(t=n.at(-1)?.isIntersecting)!=null&&t)&&u(e)},n)},m=(e,t)=>{e.isIntersecting?p(t):a()},h=new IntersectionObserver(e=>{for(let t of e)m(t,h)},{rootMargin:r,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),l.current&&f(l.current),h.disconnect()}},[t,n,r,i,f,d]),{shouldRender:a,containerRef:s}}var Fy=320,Iy=4,Ly=()=>typeof performance>`u`?Date.now():performance.now();function Ry(e){let t=e?.now??Ly,n=e?.maxBacklogMs??Fy,r=0,i=0;return{now:t,beginPass(e){i=Math.min(Math.max(r,e),e+n)},mark(){return i},rewind(e){i=e},take(e,t,r){if(e<=0)return{baseDelay:0,step:Math.max(0,t)};let a=Math.max(0,t),o=a===0?0:Math.min(a,Iy),s=Math.max(i,r),c=r+n,l=s+Math.max(0,e-1)*a,u=a;if(l>c&&e>1){if(s<c){let t=c-s;u=Math.max(o,t/(e-1))}else u=o}let d=Math.max(0,Math.round(s-r));return i=s+e*u,{baseDelay:d,step:u}},commitPass(){r=i}}}var zy=/\s/,By=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\u3000-\u303F\uFF00-\uFFEF]/u,Vy=/^\s+$/,Hy=new Set([`pre`,`svg`,`math`,`annotation`]),Uy=new Set([`img`,`hr`]),Wy=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`element`,Gy=e=>e.some(e=>Wy(e)&&Hy.has(e.tagName)),Ky=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(Wy(n)&&n.tagName===`li`)return n}},qy=(e,t,n,r)=>{e.properties??={},e.properties[`data-sd-animate-marker`]=!0;let i=typeof e.properties.style==`string`?`${e.properties.style};`:``;e.properties.style=`${i}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${r}`},Jy=new Set([`ul`,`ol`,`li`]),Yy=e=>{for(let t of e.children)if(Wy(t)){if(t.tagName===`input`)return t;if(Jy.has(t.tagName))continue;let e=Yy(t);if(e)return e}},Xy=(e,t,n,r)=>{e.properties??={},e.properties[`data-sd-animate`]=!0;let i=typeof e.properties.style==`string`?`${e.properties.style};`:``;e.properties.style=`${i}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(r)}ms`},Zy=(e,t,n,r)=>{let i=Yy(e);i&&Xy(i,t,n,r)},Qy=(e,t,n,r,i,a)=>{if(Gy(t))return;let o=r.prevContentLength,s=i.count;i.count+=1;let c=o>0&&s<o,l=c?0:a.baseDelay+i.newIndex++*a.step;Xy(e,n,c?0:n.duration,l)},$y=e=>{var t;for(let n=e.length-1;n>=0;--n){let r=e[n];if(Wy(r)){if((t=r.properties)!=null&&t[`data-sd-animated`])break;r.properties={...r.properties,"data-sd-animated":!0}}}},eb=e=>{let t=[],n=``,r=!1,i=!1;for(let a of e){let e=zy.test(a),o=!e&&By.test(a);if(!e&&n!==``&&(o||i))t.push(n),n=``,r=!1;else if(e!==r&&n){if(e){n+=a,r=!0;continue}t.push(n),n=``}n+=a,r=e,i=o}return n&&t.push(n),t},tb=e=>{let t=[],n=``;for(let r of e)zy.test(r)?t.length>0&&!Vy.test(t.at(-1))?t[t.length-1]+=r:n+=r:(n&&=(t.push(n),``),t.push(r));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},nb=/^[^\s;:'"\\/](?:[^;:'"\\/\r\n]*[^\s;:'"\\/])?$/,rb=(e,t,n,r)=>{let i=`sd-${t.animation}`,a=`${n?0:t.duration}ms`,o;return t.styleObjects?(o={"--sd-animation":i,"--sd-duration":a,"--sd-easing":t.easing},r&&(o[`--sd-delay`]=`${Math.round(r)}ms`)):(o=`--sd-animation:${i};--sd-duration:${a};--sd-easing:${t.easing}`,r&&(o+=`;--sd-delay:${Math.round(r)}ms`)),{type:`element`,tagName:`span`,properties:{"data-sd-animate":!0,style:o},children:[{type:`text`,value:e}]}},ib=(e,t)=>!(e>0&&t<e),ab=e=>Wy(e)&&Uy.has(e.tagName),ob=(e,t,n)=>{let r=0,i=0;return ae(e,e=>e.type===`text`||ab(e),(e,a)=>{if(Gy(a))return ie;if(ab(e)){ib(n,i)&&(r+=1),i+=1;return}let o=e.value;if(!o.trim()){i+=o.length;return}let s=t.sep===`char`?tb(o):eb(o);for(let e of s){let t=i;i+=e.length,!Vy.test(e)&&ib(n,t)&&(r+=1)}}),r},sb=(e,t,n,r,i,a)=>{var o;let s=t.at(-1);if(!(s&&`children`in s))return;if(Gy(t))return ie;let c=s,l=c.children.indexOf(e);if(l===-1)return;let u=e.value;if(!u.trim()){i.count+=u.length;return}let d=n.sep===`char`?tb(u):eb(u),f=r.prevContentLength,p=!1,m=Ky(t),h=!(!m||(o=m.properties)!=null&&o[`data-sd-animate-marker`]),g=!1,_=d.map(e=>{let t=i.count;if(i.count+=e.length,Vy.test(e))return{type:`text`,value:e};let r=f>0&&t<f,o=r?0:a.baseDelay+i.newIndex++*a.step;if(p=!0,m&&h&&!g){let e=r?0:n.duration;qy(m,e,o,n.easing),Zy(m,n,e,o),g=!0}return rb(e,n,r,o)});return p&&$y(t),c.children.splice(l,1,..._),l+_.length},cb=0;function lb(e){return db(e,!1)}var ub=e=>db(e,!0);function db(e,t){let n=e?.animation??`fadeIn`,r=e?.easing??`ease`,i={animation:n,duration:e?.duration??150,easing:r,sep:e?.sep??`word`,stagger:e?.stagger??40,styleObjects:t&&nb.test(n)&&nb.test(r),timeline:e?.timeline},a={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},o=cb++,s=()=>e=>{let t={count:0,newIndex:0};a.prevContentLength=a.committedCharCount;let n=i.timeline,r=n?.now()??Ly();n&&(a.pendingMark===null?a.pendingMark=n.mark():n.rewind(a.pendingMark));let o=n?n.take(ob(e,i,a.prevContentLength),i.stagger,r):{baseDelay:0,step:i.stagger};ae(e,e=>e.type===`text`||ab(e),(e,n)=>{if(e.type===`text`)return sb(e,n,i,a,t,o);Qy(e,n,i,a,t,o)}),a.lastRenderCharCount=t.count,a.prevContentLength=0};return Object.defineProperty(s,"name",{value:`rehypeAnimate$${o}`}),{name:`animate`,type:`animate`,rehypePlugin:s,setPrevContentLength(e){a.committedCharCount=e,a.prevContentLength=e},getLastRenderCharCount(){return a.lastRenderCharCount},commit(){a.committedCharCount=a.lastRenderCharCount,a.pendingMark=null}}}lb();var fb=(0,k.createContext)(!1),pb=()=>(0,k.useContext)(fb),mb=(...e)=>d(u(e)),hb=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(t=>t.startsWith(n)?t:`${e}:${t}`).join(` `)},gb=e=>e?(...t)=>hb(e,d(u(t))):mb,_b=(e,t,n)=>{let r=typeof t==`string`&&n.startsWith(`text/csv`)?``:``,i=typeof t==`string`?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},vb=(0,k.createContext)(mb),X=()=>(0,k.useContext)(vb),yb=8,bb=e=>{if(e!==void 0&&e!==0&&e!==1/0){if(typeof e==`number`)return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(e!==`0`&&e!==`none`&&e!==`Infinity`)return e}},xb=(e,t,n)=>{let r=(0,k.useRef)(null),i=(0,k.useRef)(!0),a=(0,k.useRef)(!1),o=(0,k.useRef)(null);return(0,k.useEffect)(()=>{let e=r.current;if(!(e&&t))return;let n=()=>{let t=e.scrollHeight-e.scrollTop-e.clientHeight<yb;i.current=t};return e.addEventListener(`scroll`,n,{passive:!0}),()=>e.removeEventListener(`scroll`,n)},[t]),(0,k.useEffect)(()=>{e&&!a.current&&(i.current=!0),e||(i.current=!0),a.current=e},[e]),(0,k.useEffect)(()=>()=>{o.current!==null&&cancelAnimationFrame(o.current)},[]),(0,k.useEffect)(()=>{let n=r.current;!(n&&t&&e&&i.current)||o.current!==null||(o.current=requestAnimationFrame(()=>{o.current=null,i.current&&n.scrollTo({top:n.scrollHeight,behavior:`instant`})}))},[e,t,n]),r},Sb=mb(`block`),Cb=mb(`block`,`before:content-[counter(line)]`,`before:inline-block`,`before:[counter-increment:line]`,`before:w-6`,`before:mr-4`,`before:text-[13px]`,`before:text-right`,`before:text-muted-foreground/50`,`before:font-mono`,`before:select-none`),wb=e=>{let t={};for(let n of e.split(`;`)){let e=n.indexOf(`:`);if(e>0){let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r&&i&&(t[r]=i)}}return t},Tb=(0,k.memo)(({children:e,result:t,language:n,className:r,maxHeight:i,startLine:a,lineNumbers:o=!0,...s})=>{let c=X(),{isAnimating:l}=(0,k.useContext)(BC),u=bb(i),d=xb(l,!!u,t),f=(0,k.useMemo)(()=>c(Cb),[c]),p=(0,k.useMemo)(()=>c(Sb),[c]),m=(0,k.useMemo)(()=>{let e={};return t.bg&&(e[`--sdm-bg`]=t.bg),t.fg&&(e[`--sdm-fg`]=t.fg),t.rootStyle&&Object.assign(e,wb(t.rootStyle)),e},[t.bg,t.fg,t.rootStyle]);return(0,q.jsx)(`div`,{className:c(r,u?`overflow-y-auto`:null,`overflow-x-auto rounded-md border border-border bg-background p-4 text-sm`),"data-language":n,"data-streamdown":`code-block-body`,ref:d,style:u?{maxHeight:u}:void 0,...s,children:(0,q.jsx)(`pre`,{className:c(r,`bg-[var(--sdm-bg,inherit)]`,`dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]`),style:m,children:(0,q.jsx)(`code`,{className:o?c(`[counter-increment:line_0] [counter-reset:line]`):void 0,style:o&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((e,t)=>(0,q.jsx)(`span`,{className:o?f:p,children:e.length===0||e.length===1&&e[0].content===``?`
122
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+uy(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Y(e,t){return ky.parse(e,t)}Y.options=Y.setOptions=function(e){return ky.setOptions(e),Y.defaults=ky.defaults,V_(Y.defaults),Y},Y.getDefaults=z_,Y.defaults=B_;function Ay(...e){return ky.use(...e),Y.defaults=ky.defaults,V_(Y.defaults),Y}Y.use=Ay,Y.walkTokens=function(e,t){return ky.walkTokens(e,t)},Y.parseInline=ky.parseInline,Y.Parser=Ey,Y.parser=Ey.parse,Y.Renderer=wy,Y.TextRenderer=Ty,Y.Lexer=Cy,Y.lexer=Cy.lex,Y.Tokenizer=Sy,Y.Hooks=Dy,Y.parse=Y,Y.options,Y.setOptions,Y.walkTokens,Y.parseInline,Ey.parse,Cy.lex;var jy=300,My=`300px`,Ny=500;function Py(e={}){let{immediate:t=!1,debounceDelay:n=jy,rootMargin:r=My,idleTimeout:i=Ny}=e,[a,o]=(0,k.useState)(!1),s=(0,k.useRef)(null),c=(0,k.useRef)(null),l=(0,k.useRef)(null),u=(0,k.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),d=(0,k.useMemo)(()=>typeof window<`u`&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):u,[u]),f=(0,k.useMemo)(()=>typeof window<`u`&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,k.useEffect)(()=>{if(t){o(!0);return}let e=s.current;if(!e)return;c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null);let a=()=>{c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null)},u=e=>{l.current=d(t=>{t.timeRemaining()>0||t.didTimeout?(o(!0),e.disconnect()):l.current=d(()=>{o(!0),e.disconnect()},{timeout:i/2})},{timeout:i})},p=e=>{a(),c.current=window.setTimeout(()=>{var t;let n=e.takeRecords();(n.length===0||(t=n.at(-1)?.isIntersecting)!=null&&t)&&u(e)},n)},m=(e,t)=>{e.isIntersecting?p(t):a()},h=new IntersectionObserver(e=>{for(let t of e)m(t,h)},{rootMargin:r,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),l.current&&f(l.current),h.disconnect()}},[t,n,r,i,f,d]),{shouldRender:a,containerRef:s}}var Fy=320,Iy=4,Ly=()=>typeof performance>`u`?Date.now():performance.now();function Ry(e){let t=e?.now??Ly,n=e?.maxBacklogMs??Fy,r=0,i=0;return{now:t,beginPass(e){i=Math.min(Math.max(r,e),e+n)},mark(){return i},rewind(e){i=e},take(e,t,r){if(e<=0)return{baseDelay:0,step:Math.max(0,t)};let a=Math.max(0,t),o=a===0?0:Math.min(a,Iy),s=Math.max(i,r),c=r+n,l=s+Math.max(0,e-1)*a,u=a;if(l>c&&e>1){if(s<c){let t=c-s;u=Math.max(o,t/(e-1))}else u=o}let d=Math.max(0,Math.round(s-r));return i=s+e*u,{baseDelay:d,step:u}},commitPass(){r=i}}}var zy=/\s/,By=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\u3000-\u303F\uFF00-\uFFEF]/u,Vy=/^\s+$/,Hy=new Set([`pre`,`svg`,`math`,`annotation`]),Uy=new Set([`img`,`hr`]),Wy=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`element`,Gy=e=>e.some(e=>Wy(e)&&Hy.has(e.tagName)),Ky=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(Wy(n)&&n.tagName===`li`)return n}},qy=(e,t,n,r)=>{e.properties??={},e.properties[`data-sd-animate-marker`]=!0;let i=typeof e.properties.style==`string`?`${e.properties.style};`:``;e.properties.style=`${i}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${r}`},Jy=new Set([`ul`,`ol`,`li`]),Yy=e=>{for(let t of e.children)if(Wy(t)){if(t.tagName===`input`)return t;if(Jy.has(t.tagName))continue;let e=Yy(t);if(e)return e}},Xy=(e,t,n,r)=>{e.properties??={},e.properties[`data-sd-animate`]=!0;let i=typeof e.properties.style==`string`?`${e.properties.style};`:``;e.properties.style=`${i}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(r)}ms`},Zy=(e,t,n,r)=>{let i=Yy(e);i&&Xy(i,t,n,r)},Qy=(e,t,n,r,i,a)=>{if(Gy(t))return;let o=r.prevContentLength,s=i.count;i.count+=1;let c=o>0&&s<o,l=c?0:a.baseDelay+i.newIndex++*a.step;Xy(e,n,c?0:n.duration,l)},$y=e=>{var t;for(let n=e.length-1;n>=0;--n){let r=e[n];if(Wy(r)){if((t=r.properties)!=null&&t[`data-sd-animated`])break;r.properties={...r.properties,"data-sd-animated":!0}}}},eb=e=>{let t=[],n=``,r=!1,i=!1;for(let a of e){let e=zy.test(a),o=!e&&By.test(a);if(!e&&n!==``&&(o||i))t.push(n),n=``,r=!1;else if(e!==r&&n){if(e){n+=a,r=!0;continue}t.push(n),n=``}n+=a,r=e,i=o}return n&&t.push(n),t},tb=e=>{let t=[],n=``;for(let r of e)zy.test(r)?t.length>0&&!Vy.test(t.at(-1))?t[t.length-1]+=r:n+=r:(n&&=(t.push(n),``),t.push(r));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},nb=/^[^\s;:'"\\/](?:[^;:'"\\/\r\n]*[^\s;:'"\\/])?$/,rb=(e,t,n,r)=>{let i=`sd-${t.animation}`,a=`${n?0:t.duration}ms`,o;return t.styleObjects?(o={"--sd-animation":i,"--sd-duration":a,"--sd-easing":t.easing},r&&(o[`--sd-delay`]=`${Math.round(r)}ms`)):(o=`--sd-animation:${i};--sd-duration:${a};--sd-easing:${t.easing}`,r&&(o+=`;--sd-delay:${Math.round(r)}ms`)),{type:`element`,tagName:`span`,properties:{"data-sd-animate":!0,style:o},children:[{type:`text`,value:e}]}},ib=(e,t)=>!(e>0&&t<e),ab=e=>Wy(e)&&Uy.has(e.tagName),ob=(e,t,n)=>{let r=0,i=0;return ae(e,e=>e.type===`text`||ab(e),(e,a)=>{if(Gy(a))return ie;if(ab(e)){ib(n,i)&&(r+=1),i+=1;return}let o=e.value;if(!o.trim()){i+=o.length;return}let s=t.sep===`char`?tb(o):eb(o);for(let e of s){let t=i;i+=e.length,!Vy.test(e)&&ib(n,t)&&(r+=1)}}),r},sb=(e,t,n,r,i,a)=>{var o;let s=t.at(-1);if(!(s&&`children`in s))return;if(Gy(t))return ie;let c=s,l=c.children.indexOf(e);if(l===-1)return;let u=e.value;if(!u.trim()){i.count+=u.length;return}let d=n.sep===`char`?tb(u):eb(u),f=r.prevContentLength,p=!1,m=Ky(t),h=!(!m||(o=m.properties)!=null&&o[`data-sd-animate-marker`]),g=!1,_=d.map(e=>{let t=i.count;if(i.count+=e.length,Vy.test(e))return{type:`text`,value:e};let r=f>0&&t<f,o=r?0:a.baseDelay+i.newIndex++*a.step;if(p=!0,m&&h&&!g){let e=r?0:n.duration;qy(m,e,o,n.easing),Zy(m,n,e,o),g=!0}return rb(e,n,r,o)});return p&&$y(t),c.children.splice(l,1,..._),l+_.length},cb=0;function lb(e){return db(e,!1)}var ub=e=>db(e,!0);function db(e,t){let n=e?.animation??`fadeIn`,r=e?.easing??`ease`,i={animation:n,duration:e?.duration??150,easing:r,sep:e?.sep??`word`,stagger:e?.stagger??40,styleObjects:t&&nb.test(n)&&nb.test(r),timeline:e?.timeline},a={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},o=cb++,s=()=>e=>{let t={count:0,newIndex:0};a.prevContentLength=a.committedCharCount;let n=i.timeline,r=n?.now()??Ly();n&&(a.pendingMark===null?a.pendingMark=n.mark():n.rewind(a.pendingMark));let o=n?n.take(ob(e,i,a.prevContentLength),i.stagger,r):{baseDelay:0,step:i.stagger};ae(e,e=>e.type===`text`||ab(e),(e,n)=>{if(e.type===`text`)return sb(e,n,i,a,t,o);Qy(e,n,i,a,t,o)}),a.lastRenderCharCount=t.count,a.prevContentLength=0};return Object.defineProperty(s,"name",{value:`rehypeAnimate$${o}`}),{name:`animate`,type:`animate`,rehypePlugin:s,setPrevContentLength(e){a.committedCharCount=e,a.prevContentLength=e},getLastRenderCharCount(){return a.lastRenderCharCount},commit(){a.committedCharCount=a.lastRenderCharCount,a.pendingMark=null}}}lb();var fb=(0,k.createContext)(!1),pb=()=>(0,k.useContext)(fb),mb=(...e)=>s(a(e)),hb=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(t=>t.startsWith(n)?t:`${e}:${t}`).join(` `)},gb=e=>e?(...t)=>hb(e,s(a(t))):mb,_b=(e,t,n)=>{let r=typeof t==`string`&&n.startsWith(`text/csv`)?``:``,i=typeof t==`string`?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},vb=(0,k.createContext)(mb),X=()=>(0,k.useContext)(vb),yb=8,bb=e=>{if(e!==void 0&&e!==0&&e!==1/0){if(typeof e==`number`)return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(e!==`0`&&e!==`none`&&e!==`Infinity`)return e}},xb=(e,t,n)=>{let r=(0,k.useRef)(null),i=(0,k.useRef)(!0),a=(0,k.useRef)(!1),o=(0,k.useRef)(null);return(0,k.useEffect)(()=>{let e=r.current;if(!(e&&t))return;let n=()=>{let t=e.scrollHeight-e.scrollTop-e.clientHeight<yb;i.current=t};return e.addEventListener(`scroll`,n,{passive:!0}),()=>e.removeEventListener(`scroll`,n)},[t]),(0,k.useEffect)(()=>{e&&!a.current&&(i.current=!0),e||(i.current=!0),a.current=e},[e]),(0,k.useEffect)(()=>()=>{o.current!==null&&cancelAnimationFrame(o.current)},[]),(0,k.useEffect)(()=>{let n=r.current;!(n&&t&&e&&i.current)||o.current!==null||(o.current=requestAnimationFrame(()=>{o.current=null,i.current&&n.scrollTo({top:n.scrollHeight,behavior:`instant`})}))},[e,t,n]),r},Sb=mb(`block`),Cb=mb(`block`,`before:content-[counter(line)]`,`before:inline-block`,`before:[counter-increment:line]`,`before:w-6`,`before:mr-4`,`before:text-[13px]`,`before:text-right`,`before:text-muted-foreground/50`,`before:font-mono`,`before:select-none`),wb=e=>{let t={};for(let n of e.split(`;`)){let e=n.indexOf(`:`);if(e>0){let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r&&i&&(t[r]=i)}}return t},Tb=(0,k.memo)(({children:e,result:t,language:n,className:r,maxHeight:i,startLine:a,lineNumbers:o=!0,...s})=>{let c=X(),{isAnimating:l}=(0,k.useContext)(BC),u=bb(i),d=xb(l,!!u,t),f=(0,k.useMemo)(()=>c(Cb),[c]),p=(0,k.useMemo)(()=>c(Sb),[c]),m=(0,k.useMemo)(()=>{let e={};return t.bg&&(e[`--sdm-bg`]=t.bg),t.fg&&(e[`--sdm-fg`]=t.fg),t.rootStyle&&Object.assign(e,wb(t.rootStyle)),e},[t.bg,t.fg,t.rootStyle]);return(0,q.jsx)(`div`,{className:c(r,u?`overflow-y-auto`:null,`overflow-x-auto rounded-md border border-border bg-background p-4 text-sm`),"data-language":n,"data-streamdown":`code-block-body`,ref:d,style:u?{maxHeight:u}:void 0,...s,children:(0,q.jsx)(`pre`,{className:c(r,`bg-[var(--sdm-bg,inherit)]`,`dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]`),style:m,children:(0,q.jsx)(`code`,{className:o?c(`[counter-increment:line_0] [counter-reset:line]`):void 0,style:o&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((e,t)=>(0,q.jsx)(`span`,{className:o?f:p,children:e.length===0||e.length===1&&e[0].content===``?`
123
123
  `:e.map((e,t)=>{let n={},r=!!e.bgColor;if(e.color&&(n[`--sdm-c`]=e.color),e.bgColor&&(n[`--sdm-tbg`]=e.bgColor),e.htmlStyle)for(let[t,i]of Object.entries(e.htmlStyle))t===`color`?n[`--sdm-c`]=i:t===`background-color`?(n[`--sdm-tbg`]=i,r=!0):n[t]=i;return(0,q.jsx)(`span`,{className:c(`text-[var(--sdm-c,inherit)]`,`dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]`,r&&`bg-[var(--sdm-tbg)]`,r&&`dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]`),style:n,...e.htmlAttrs,children:e.content},t)})},t))})})})}),Eb=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let a=X();return(0,q.jsx)(`div`,{className:a(`relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2`,e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":`code-block`,style:{contentVisibility:`auto`,containIntrinsicSize:`auto 200px`,...n},...i})},Db=(0,k.createContext)({code:``}),Ob=()=>(0,k.useContext)(Db),kb=({language:e})=>{let t=X();return(0,q.jsx)(`div`,{className:t(`flex h-8 items-center text-muted-foreground text-xs`),"data-language":e,"data-streamdown":`code-block-header`,children:(0,q.jsx)(`span`,{className:t(`ml-1 font-mono lowercase`),children:e})})},Ab=e=>{let t=e.length;for(;t>0&&e[t-1]===`
124
- `;)t--;return e.slice(0,t)},jb=(0,k.lazy)(()=>l(()=>import(`./highlighted-body-JLMTFACH-CYOy6uZ1.js`).then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2]))),Mb=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:a,lineNumbers:o,...s})=>{let c=X(),{codeBlockMaxHeight:l}=(0,k.useContext)(BC),u=(0,k.useMemo)(()=>Ab(e),[e]),d=(0,k.useMemo)(()=>({bg:`transparent`,fg:`inherit`,tokens:u.split(`
124
+ `;)t--;return e.slice(0,t)},jb=(0,k.lazy)(()=>d(()=>import(`./highlighted-body-JLMTFACH-CCL_Oa2N.js`).then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2]))),Mb=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:a,lineNumbers:o,...s})=>{let c=X(),{codeBlockMaxHeight:l}=(0,k.useContext)(BC),u=(0,k.useMemo)(()=>Ab(e),[e]),d=(0,k.useMemo)(()=>({bg:`transparent`,fg:`inherit`,tokens:u.split(`
125
125
  `).map(e=>[{content:e,color:`inherit`,bgColor:`transparent`,htmlStyle:{},offset:0}])}),[u]);return(0,q.jsx)(Db.Provider,{value:{code:e},children:(0,q.jsxs)(Eb,{dir:`ltr`,isIncomplete:i,language:t,children:[(0,q.jsx)(kb,{language:t}),r?(0,q.jsx)(`div`,{className:c(`pointer-events-none absolute top-2 right-2 z-10 flex items-center`),children:(0,q.jsx)(`div`,{className:c(`pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur`),"data-streamdown":`code-block-actions`,children:r})}):null,(0,q.jsx)(k.Suspense,{fallback:(0,q.jsx)(Tb,{className:n,language:t,lineNumbers:o,maxHeight:l,result:d,startLine:a,...s}),children:(0,q.jsx)(jb,{className:n,code:u,isIncomplete:i,language:t,lineNumbers:o,maxHeight:l,raw:d,startLine:a,...s})})]})})},Nb={CheckIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z`,fill:`currentColor`,fillRule:`evenodd`})}),CopyIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z`,fill:`currentColor`,fillRule:`evenodd`})}),DownloadIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z`,fill:`currentColor`,fillRule:`evenodd`})}),ExternalLinkIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z`,fill:`currentColor`,fillRule:`evenodd`})}),Loader2Icon:e=>(0,q.jsxs)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:[(0,q.jsx)(`path`,{d:`M8 0V4`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M8 16V12`,opacity:`0.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M3.29773 1.52783L5.64887 4.7639`,opacity:`0.9`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M12.7023 1.52783L10.3511 4.7639`,opacity:`0.1`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M12.7023 14.472L10.3511 11.236`,opacity:`0.4`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M3.29773 14.472L5.64887 11.236`,opacity:`0.6`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M15.6085 5.52783L11.8043 6.7639`,opacity:`0.2`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M0.391602 10.472L4.19583 9.23598`,opacity:`0.7`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M15.6085 10.4722L11.8043 9.2361`,opacity:`0.3`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,q.jsx)(`path`,{d:`M0.391602 5.52783L4.19583 6.7639`,opacity:`0.8`,stroke:`currentColor`,strokeWidth:`1.5`})]}),Maximize2Icon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z`,fill:`currentColor`,fillRule:`evenodd`})}),RotateCcwIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z`,fill:`currentColor`,fillRule:`evenodd`})}),XIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z`,fill:`currentColor`,fillRule:`evenodd`})}),ZoomInIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z`,fill:`currentColor`,fillRule:`evenodd`})}),ZoomOutIcon:e=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,q.jsx)(`path`,{clipRule:`evenodd`,d:`M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z`,fill:`currentColor`,fillRule:`evenodd`})})},Pb=(0,k.createContext)(Nb),Fb=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>e[n]===t[n])},Ib=({icons:e,children:t})=>{let n=(0,k.useRef)(e),r=(0,k.useRef)(e?{...Nb,...e}:Nb);Fb(n.current,e)||(n.current=e,r.current=e?{...Nb,...e}:Nb);let i=r.current;return(0,q.jsx)(Pb.Provider,{value:i,children:t})},Lb=()=>(0,k.useContext)(Pb),Rb={copyCode:`Copy Code`,downloadFile:`Download file`,downloadDiagram:`Download diagram`,downloadDiagramAsSvg:`Download diagram as SVG`,downloadDiagramAsPng:`Download diagram as PNG`,downloadDiagramAsMmd:`Download diagram as MMD`,viewFullscreen:`View fullscreen`,exitFullscreen:`Exit fullscreen`,mermaidFormatSvg:`SVG`,mermaidFormatPng:`PNG`,mermaidFormatMmd:`MMD`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,resetView:`Reset zoom and pan`,mermaidAriaLabel:`Mermaid chart`,errorMermaid:`Failed to render Mermaid chart`,copyTable:`Copy table`,copyTableAsMarkdown:`Copy table as Markdown`,copyTableAsCsv:`Copy table as CSV`,copyTableAsTsv:`Copy table as TSV`,downloadTable:`Download table`,downloadTableAsCsv:`Download table as CSV`,downloadTableAsMarkdown:`Download table as Markdown`,tableFormatMarkdown:`Markdown`,tableFormatCsv:`CSV`,tableFormatTsv:`TSV`,imageNotAvailable:`Image not available`,downloadImage:`Download image`,openExternalLink:`Open external link?`,externalLinkWarning:`You're about to visit an external website.`,close:`Close`,copyLink:`Copy link`,copied:`Copied`,openLink:`Open link`},zb=(0,k.createContext)(Rb),Bb=()=>(0,k.useContext)(zb),Vb=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...o})=>{let s=X(),[c,l]=(0,k.useState)(!1),u=(0,k.useRef)(0),{code:d}=Ob(),{isAnimating:f}=(0,k.useContext)(BC),p=Bb(),m=a??d,h=async()=>{var r;if(typeof window>`u`||!((r=navigator==null?void 0:navigator.clipboard)!=null&&r.writeText))t?.(Error(`Clipboard API not available`));else try{c||(await navigator.clipboard.writeText(m),l(!0),e?.(),u.current=window.setTimeout(()=>l(!1),n))}catch(e){t?.(e)}};(0,k.useEffect)(()=>()=>{window.clearTimeout(u.current)},[]);let g=Lb(),_=c?g.CheckIcon:g.CopyIcon;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{"aria-label":p.copyCode,className:s(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),"data-streamdown":`code-block-copy-button`,disabled:f,onClick:h,title:p.copyCode,type:`button`,...o,children:r??(0,q.jsx)(_,{"aria-hidden":`true`,size:14})}),c&&(0,q.jsx)(`output`,{"aria-live":`polite`,className:`sr-only`,children:p.copied})]})},Hb=(e,t,n)=>{if(typeof e==`boolean`)return n;let r=e[t];if(typeof r!=`object`)return n;let i=r.download;return typeof i==`object`&&i.filename||n},Ub=(e,t)=>{if(typeof e==`boolean`)return{};let n=e[t];if(typeof n!=`object`)return{};let r=n.copy;return typeof r!=`object`||!r?{}:{onCopy:r.onCopy,onError:r.onError}},Wb={"1c":`1c`,"1c-query":`1cq`,abap:`abap`,"actionscript-3":`as`,ada:`ada`,adoc:`adoc`,"angular-html":`html`,"angular-ts":`ts`,apache:`conf`,apex:`cls`,apl:`apl`,applescript:`applescript`,ara:`ara`,asciidoc:`adoc`,asm:`asm`,astro:`astro`,awk:`awk`,ballerina:`bal`,bash:`sh`,bat:`bat`,batch:`bat`,be:`be`,beancount:`beancount`,berry:`berry`,bibtex:`bib`,bicep:`bicep`,blade:`blade.php`,bsl:`bsl`,c:`c`,"c#":`cs`,"c++":`cpp`,cadence:`cdc`,cairo:`cairo`,cdc:`cdc`,clarity:`clar`,clj:`clj`,clojure:`clj`,"closure-templates":`soy`,cmake:`cmake`,cmd:`cmd`,cobol:`cob`,codeowners:`CODEOWNERS`,codeql:`ql`,coffee:`coffee`,coffeescript:`coffee`,"common-lisp":`lisp`,console:`sh`,coq:`v`,cpp:`cpp`,cql:`cql`,crystal:`cr`,cs:`cs`,csharp:`cs`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cql`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,docker:`dockerfile`,dockerfile:`dockerfile`,dotenv:`env`,"dream-maker":`dm`,edge:`edge`,elisp:`el`,elixir:`ex`,elm:`elm`,"emacs-lisp":`el`,erb:`erb`,erl:`erl`,erlang:`erl`,f:`f`,"f#":`fs`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`f90`,f95:`f95`,fennel:`fnl`,fish:`fish`,fluent:`ftl`,for:`for`,"fortran-fixed-form":`f`,"fortran-free-form":`f90`,fs:`fs`,fsharp:`fs`,fsl:`fsl`,ftl:`ftl`,gdresource:`tres`,gdscript:`gd`,gdshader:`gdshader`,genie:`gs`,gherkin:`feature`,"git-commit":`gitcommit`,"git-rebase":`gitrebase`,gjs:`js`,gleam:`gleam`,"glimmer-js":`js`,"glimmer-ts":`ts`,glsl:`glsl`,gnuplot:`plt`,go:`go`,gql:`gql`,graphql:`graphql`,groovy:`groovy`,gts:`gts`,hack:`hack`,haml:`haml`,handlebars:`hbs`,haskell:`hs`,haxe:`hx`,hbs:`hbs`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,hs:`hs`,html:`html`,"html-derivative":`html`,http:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,jade:`jade`,java:`java`,javascript:`js`,jinja:`jinja`,jison:`jison`,jl:`jl`,js:`js`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,julia:`jl`,kotlin:`kt`,kql:`kql`,kt:`kt`,kts:`kts`,kusto:`kql`,latex:`tex`,lean:`lean`,lean4:`lean`,less:`less`,liquid:`liquid`,lisp:`lisp`,lit:`lit`,llvm:`ll`,log:`log`,logo:`logo`,lua:`lua`,luau:`luau`,make:`mak`,makefile:`mak`,markdown:`md`,marko:`marko`,matlab:`m`,md:`md`,mdc:`mdc`,mdx:`mdx`,mediawiki:`wiki`,mermaid:`mmd`,mips:`s`,mipsasm:`s`,mmd:`mmd`,mojo:`mojo`,move:`move`,nar:`nar`,narrat:`narrat`,nextflow:`nf`,nf:`nf`,nginx:`conf`,nim:`nim`,nix:`nix`,nu:`nu`,nushell:`nu`,objc:`m`,"objective-c":`m`,"objective-cpp":`mm`,ocaml:`ml`,pascal:`pas`,perl:`pl`,perl6:`p6`,php:`php`,plsql:`pls`,po:`po`,polar:`polar`,postcss:`pcss`,pot:`pot`,potx:`potx`,powerquery:`pq`,powershell:`ps1`,prisma:`prisma`,prolog:`pl`,properties:`properties`,proto:`proto`,protobuf:`proto`,ps:`ps`,ps1:`ps1`,pug:`pug`,puppet:`pp`,purescript:`purs`,py:`py`,python:`py`,ql:`ql`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,racket:`rkt`,raku:`raku`,razor:`cshtml`,rb:`rb`,reg:`reg`,regex:`regex`,regexp:`regexp`,rel:`rel`,riscv:`s`,rs:`rs`,rst:`rst`,ruby:`rb`,rust:`rs`,sas:`sas`,sass:`sass`,scala:`scala`,scheme:`scm`,scss:`scss`,sdbl:`sdbl`,sh:`sh`,shader:`shader`,shaderlab:`shader`,shell:`sh`,shellscript:`sh`,shellsession:`sh`,smalltalk:`st`,solidity:`sol`,soy:`soy`,sparql:`rq`,spl:`spl`,splunk:`spl`,sql:`sql`,"ssh-config":`config`,stata:`do`,styl:`styl`,stylus:`styl`,svelte:`svelte`,swift:`swift`,"system-verilog":`sv`,systemd:`service`,talon:`talon`,talonscript:`talon`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,terraform:`tf`,tex:`tex`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`ts`,"ts-tags":`ts`,tsp:`tsp`,tsv:`tsv`,tsx:`tsx`,turtle:`ttl`,twig:`twig`,typ:`typ`,typescript:`ts`,typespec:`tsp`,typst:`typ`,v:`v`,vala:`vala`,vb:`vb`,verilog:`v`,vhdl:`vhdl`,vim:`vim`,viml:`vim`,vimscript:`vim`,vue:`vue`,"vue-html":`html`,"vue-vine":`vine`,vy:`vy`,vyper:`vy`,wasm:`wasm`,wenyan:`wy`,wgsl:`wgsl`,wiki:`wiki`,wikitext:`wiki`,wit:`wit`,wl:`wl`,wolfram:`wl`,xml:`xml`,xsl:`xsl`,yaml:`yaml`,yml:`yml`,zenscript:`zs`,zig:`zig`,zsh:`zsh`,文言:`wy`},Gb=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...o})=>{let s=X(),{code:c}=Ob(),{isAnimating:l,controls:u}=(0,k.useContext)(BC),d=Bb(),f=Lb(),p=a??c,m=n&&n in Wb?Wb[n]:`txt`,h=`${Hb(u,`code`,`file`)}.${m}`;return(0,q.jsx)(`button`,{"aria-label":d.downloadFile,className:s(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),"data-streamdown":`code-block-download-button`,disabled:l,onClick:()=>{try{_b(h,p,`text/plain`),e?.()}catch(e){t?.(e)}},title:d.downloadFile,type:`button`,...o,children:r??(0,q.jsx)(f.DownloadIcon,{size:14})})},Kb=()=>{let{Loader2Icon:e}=Lb(),t=X();return(0,q.jsxs)(`div`,{className:t(`w-full divide-y divide-border overflow-hidden rounded-xl border border-border`),children:[(0,q.jsx)(`div`,{className:t(`h-[46px] w-full bg-muted/80`)}),(0,q.jsx)(`div`,{className:t(`flex w-full items-center justify-center p-4`),children:(0,q.jsx)(e,{className:t(`size-4 animate-spin`)})})]})},qb=/\.[^/.]+$/,Jb=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,showControls:o=!0,showDownloadControl:s=!0,...c})=>{let{DownloadIcon:l}=Lb(),u=X(),d=(0,k.useRef)(null),[f,p]=(0,k.useState)(!1),[m,h]=(0,k.useState)(!1),g=Bb(),_=c.width!=null||c.height!=null,v=(f||_)&&!m&&o&&s,y=m&&!_;(0,k.useEffect)(()=>{let e=d.current;if(e!=null&&e.complete){let t=e.naturalWidth>0;p(t),h(!t)}},[]);let b=(0,k.useCallback)(e=>{p(!0),h(!1),i?.(e)},[i]),x=(0,k.useCallback)(e=>{p(!1),h(!0),a?.(e)},[a]),ee=async()=>{if(n)try{let e=await(await fetch(n)).blob(),t=new URL(n,window.location.origin).pathname.split(`/`).pop()||``,i=t.split(`.`).pop(),a=t.includes(`.`)&&i!==void 0&&i.length<=4,o=``;if(a)o=t;else{let n=e.type,i=`png`;n.includes(`jpeg`)||n.includes(`jpg`)?i=`jpg`:n.includes(`png`)?i=`png`:n.includes(`svg`)?i=`svg`:n.includes(`gif`)?i=`gif`:n.includes(`webp`)&&(i=`webp`),o=`${(r||t||`image`).replace(qb,``)}.${i}`}_b(o,e,e.type)}catch{window.open(n,`_blank`)}};return n?n===`streamdown:incomplete-image`?(0,q.jsx)(`div`,{className:u(`group relative my-4 inline-block`),"data-incomplete":`true`,"data-streamdown":`image-wrapper`,children:(0,q.jsx)(`div`,{className:u(`h-24 w-48 animate-pulse rounded-lg bg-muted`),"data-streamdown":`image-placeholder`})}):(0,q.jsxs)(`div`,{className:u(`group relative my-4 inline-block`),"data-streamdown":`image-wrapper`,children:[(0,q.jsx)(`img`,{alt:r,className:u(`max-w-full rounded-lg`,y&&`hidden`,t),"data-streamdown":`image`,onError:x,onLoad:b,ref:d,src:n,...c}),y&&(0,q.jsx)(`span`,{className:u(`text-muted-foreground text-xs italic`),"data-streamdown":`image-fallback`,children:g.imageNotAvailable}),o&&(0,q.jsx)(`div`,{className:u(`pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block`),"data-streamdown":`image-overlay`}),v&&(0,q.jsx)(`button`,{className:u(`absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background`,`opacity-0 group-hover:opacity-100`),onClick:ee,title:g.downloadImage,type:`button`,children:(0,q.jsx)(l,{size:14})})]}):null},Yb=e=>(typeof e==`function`?e():e)??document.body,Xb=0,Zb=()=>{Xb+=1,Xb===1&&(document.body.style.overflow=`hidden`)},Qb=()=>{Xb=Math.max(0,Xb-1),Xb===0&&(document.body.style.overflow=``)},$b=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:o,XIcon:s}=Lb(),c=X(),[l,u]=(0,k.useState)(!1),d=Bb(),{portal:f}=(0,k.useContext)(BC),p=(0,k.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),u(!0),setTimeout(()=>u(!1),2e3)}catch{}},[e]),m=(0,k.useCallback)(()=>{r(),n()},[r,n]);if((0,k.useEffect)(()=>{if(t){Zb();let e=e=>{e.key===`Escape`&&n()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Qb()}}},[t,n]),!t||typeof document>`u`)return null;let h=(0,q.jsx)(`div`,{className:c(`fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm`),"data-streamdown":`link-safety-modal`,onClick:n,onKeyDown:e=>{e.key===`Escape`&&n()},role:`button`,tabIndex:0,children:(0,q.jsxs)(`div`,{className:c(`relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[(0,q.jsx)(`button`,{className:c(`absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:n,title:d.close,type:`button`,children:(0,q.jsx)(s,{size:16})}),(0,q.jsxs)(`div`,{className:c(`flex flex-col gap-2`),children:[(0,q.jsxs)(`div`,{className:c(`flex items-center gap-2 font-semibold text-lg`),children:[(0,q.jsx)(o,{size:20}),(0,q.jsx)(`span`,{children:d.openExternalLink})]}),(0,q.jsx)(`p`,{className:c(`text-muted-foreground text-sm`),children:d.externalLinkWarning})]}),(0,q.jsx)(`div`,{className:c(`break-all rounded-md bg-muted p-3 font-mono text-sm`,e.length>100&&`max-h-32 overflow-y-auto`),children:e}),(0,q.jsxs)(`div`,{className:c(`flex gap-2`),children:[(0,q.jsx)(`button`,{className:c(`flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted`),onClick:p,type:`button`,children:l?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(i,{size:14}),(0,q.jsx)(`span`,{children:d.copied})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(a,{size:14}),(0,q.jsx)(`span`,{children:d.copyLink})]})}),(0,q.jsxs)(`button`,{className:c(`flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90`),onClick:m,type:`button`,children:[(0,q.jsx)(o,{size:14}),(0,q.jsx)(`span`,{children:d.openLink})]})]})]})});return(0,R_.createPortal)(h,Yb(f))},ex=(0,k.createContext)(null),tx=()=>(0,k.useContext)(ex),nx=()=>tx()?.code??null,rx=()=>tx()?.mermaid??null,ix=e=>{var t;let n=tx();return n!=null&&n.renderers&&e&&(t=n.renderers.find(t=>Array.isArray(t.language)?t.language.includes(e):t.language===e))!=null?t:null},ax=/<svg\b[^>]*>/i,ox=/\bviewBox=(['"])(.*?)\1/i,sx=/[\s,]+/,cx=/\swidth=(['"]).*?\1/gi,lx=/\sheight=(['"]).*?\1/gi,ux=/\sstyle=(['"])(.*?)\1/i,dx=/^width\s*:/i,fx=/^height\s*:/i,px=/^max-width\s*:/i,mx=/^<svg/i,hx=e=>{let t=e.match(ax);if(!t)return null;let n=t[0].match(ox)?.[2];if(!n)return null;let r=n.trim().split(sx).map(e=>Number.parseFloat(e));if(r.length<4||r.slice(0,4).some(Number.isNaN))return null;let i=r[2],a=r[3];return i>0&&a>0?{height:a,width:i}:null},gx=e=>{let t=e.match(ax);if(!t)return e;try{let n=t[0],r=hx(e);if(!r)return e;let{width:i,height:a}=r,o=n.replace(cx,``).replace(lx,``),s=o.match(ux),c=`width:${i}px;height:${a}px;max-width:none;`;if(s){let e=s[1],t=s[2].split(`;`).map(e=>e.trim()).filter(Boolean).filter(e=>!(dx.test(e)||fx.test(e)||px.test(e))).join(`;`),n=`${c}${t?`${t};`:``}`;o=o.replace(ux,` style=${e}${n}${e}`)}else o=o.replace(mx,`<svg style="${c}"`);return o=o.replace(mx,`<svg width="${i}" height="${a}"`),e.replace(n,o)}catch{return e}},_x=e=>{if(typeof DOMParser>`u`||typeof XMLSerializer>`u`)return e;let t=new DOMParser().parseFromString(e,`text/html`).querySelector(`svg`);return t?new XMLSerializer().serializeToString(t):e},vx=(e,t)=>new Promise((t,n)=>{let r=`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(e))),i=new Image;i.crossOrigin=`anonymous`,i.onload=()=>{let e=document.createElement(`canvas`),r=i.width*5,a=i.height*5;e.width=r,e.height=a;let o=e.getContext(`2d`);o?(o.drawImage(i,0,0,r,a),e.toBlob(e=>{e?t(e):n(Error(`Failed to create PNG blob`))},`image/png`)):n(Error(`Failed to create 2D canvas context for PNG export`))},i.onerror=()=>n(Error(`Failed to load SVG image`)),i.src=r}),yx=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let o=X(),[s,c]=(0,k.useState)(!1),l=(0,k.useRef)(null),{isAnimating:u,controls:d}=(0,k.useContext)(BC),f=Lb(),p=rx(),m=Bb(),h=Hb(d,`mermaid`,`diagram`),g=async t=>{try{if(t===`mmd`){_b(`${h}.mmd`,e,`text/plain`),c(!1),r?.(t);return}if(!p){a?.(Error(`Mermaid plugin not available`));return}let n=p.getMermaid(i),o=e.split(``).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),s=`mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:l}=await n.render(s,e);if(!l){a?.(Error(`SVG not found. Please wait for the diagram to render.`));return}let u=_x(l);if(t===`svg`){_b(`${h}.svg`,u,`image/svg+xml`),c(!1),r?.(t);return}if(t===`png`){let e=await vx(u);_b(`${h}.png`,e,`image/png`),r?.(t),c(!1);return}}catch(e){a?.(e)}};return(0,k.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&c(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,q.jsxs)(`div`,{className:o(`relative`),ref:l,children:[(0,q.jsx)(`button`,{"aria-label":m.downloadDiagram,className:o(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,n),disabled:u,onClick:()=>c(!s),title:m.downloadDiagram,type:`button`,children:t??(0,q.jsx)(f.DownloadIcon,{"aria-hidden":`true`,size:14})}),s?(0,q.jsxs)(`div`,{className:o(`absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,q.jsx)(`button`,{"aria-label":m.downloadDiagramAsSvg,className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`svg`),title:m.downloadDiagramAsSvg,type:`button`,children:m.mermaidFormatSvg}),(0,q.jsx)(`button`,{"aria-label":m.downloadDiagramAsPng,className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`png`),title:m.downloadDiagramAsPng,type:`button`,children:m.mermaidFormatPng}),(0,q.jsx)(`button`,{"aria-label":m.downloadDiagramAsMmd,className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`mmd`),title:m.downloadDiagramAsMmd,type:`button`,children:m.mermaidFormatMmd})]}):null]})},bx=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let{Maximize2Icon:o,XIcon:s}=Lb(),c=X(),[l,u]=(0,k.useState)(!1),{isAnimating:d,controls:f,portal:p}=(0,k.useContext)(BC),m=Bb(),h=(()=>{if(typeof f==`boolean`)return f;let e=f.mermaid;return e===!1?!1:e===!0||e===void 0||e.panZoom!==!1})(),g=(()=>{if(typeof f==`boolean`)return f;let e=f.mermaid;return e===!1?!1:e===!0||e===void 0||e.download!==!1})(),_=(()=>{if(typeof f==`boolean`)return f;let e=f.mermaid;return e===!1?!1:e===!0||e===void 0||e.copy!==!1})(),v=()=>{u(!l)};return(0,k.useEffect)(()=>{if(l){Zb();let e=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Qb()}}},[l]),(0,k.useEffect)(()=>{l?n?.():r&&r()},[l,n,r]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{className:c(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),disabled:d,onClick:v,title:m.viewFullscreen,type:`button`,...a,"aria-label":m.viewFullscreen,children:(0,q.jsx)(o,{"aria-hidden":`true`,size:14})}),l?(0,R_.createPortal)((0,q.jsxs)(`div`,{"aria-label":m.viewFullscreen,"aria-modal":`true`,className:c(`fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm`),"data-streamdown":`mermaid-fullscreen`,onClick:v,onKeyDown:e=>{e.key===`Escape`&&v()},role:`dialog`,children:[(0,q.jsxs)(`div`,{className:c(`absolute top-4 right-4 z-10 flex items-center gap-1`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[g?(0,q.jsx)(yx,{chart:e,config:t}):null,_?(0,q.jsx)(Vb,{code:e}):null,(0,q.jsx)(`button`,{"aria-label":m.exitFullscreen,className:c(`rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:v,title:m.exitFullscreen,type:`button`,children:(0,q.jsx)(s,{"aria-hidden":`true`,size:20})})]}),(0,q.jsx)(`div`,{className:c(`flex size-full items-center justify-center p-4`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:(0,q.jsx)(ew,{chart:e,className:c(`size-full [&_svg]:h-auto [&_svg]:w-auto`),config:t,fullscreen:!0,showControls:h})})]}),Yb(p)):null]})};function xx(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??``;if(e.nodeType!==Node.ELEMENT_NODE)return``;let t=e;return t.tagName===`BR`?`
126
126
  `:Array.from(t.childNodes).map(xx).join(``)}var Sx=e=>{let t=[],n=[],r=e.querySelectorAll(`thead th`);for(let e of r)t.push(xx(e).trim());let i=e.querySelectorAll(`tbody tr`);for(let e of i){let t=[],r=e.querySelectorAll(`td`);for(let e of r)t.push(xx(e).trim());n.push(t)}return{headers:t,rows:n}},Cx=e=>{if(typeof e!=`object`)return`,`;let t=e.table;return typeof t==`object`?t.csvSeparator??`,`:`,`},wx=(e,t=`,`)=>{let n;n=t===`auto`?Intl.NumberFormat().format(1.1).includes(`,`)?`;`:`,`:t;let{headers:r,rows:i}=e,a=e=>{let t=!1;for(let r of e)if(r===n||r===`"`||r===`
127
127
  `||r===`\r`){t=!0;break}return t?`"${e.replace(/"/g,`""`)}"`:e},o=r.length>0?i.length+1:i.length,s=Array(o),c=0;r.length>0&&(s[c]=r.map(a).join(n),c+=1);for(let e of i)s[c]=e.map(a).join(n),c+=1;return s.join(`
@@ -131,7 +131,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
131
131
  `)},Ex=e=>{let t=!1;for(let n of e)if(n===`\\`||n===`|`||n===`
132
132
  `||n===`&`||n===`<`||n===`>`){t=!0;break}if(!t)return e;let n=[];for(let t of e)t===`\\`?n.push(`\\\\`):t===`|`?n.push(`\\|`):t===`
133
133
  `?n.push(`<br>`):t===`&`?n.push(`&amp;`):t===`<`?n.push(`&lt;`):t===`>`?n.push(`&gt;`):n.push(t);return n.join(``)},Dx=e=>{let{headers:t,rows:n}=e;if(t.length===0)return``;let r=Array(n.length+2),i=0,a=t.map(e=>Ex(e));r[i]=`| ${a.join(` | `)} |`,i+=1;let o=Array(t.length);for(let e=0;e<t.length;e+=1)o[e]=`---`;r[i]=`| ${o.join(` | `)} |`,i+=1;for(let e of n)if(e.length<t.length){let n=Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=r<e.length?Ex(e[r]):``;r[i]=`| ${n.join(` | `)} |`,i+=1}else{let t=e.map(e=>Ex(e));r[i]=`| ${t.join(` | `)} |`,i+=1}return r.join(`
134
- `)},Ox=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=X(),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(!1),u=(0,k.useRef)(null),d=(0,k.useRef)(0),{isAnimating:f,controls:p}=(0,k.useContext)(BC),m=Bb(),h=Cx(p),g=async e=>{var t;if(typeof window>`u`||!((t=navigator==null?void 0:navigator.clipboard)!=null&&t.write))r?.(Error(`Clipboard API not available`));else try{let t=(u.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let a=Sx(t),o=``;o=e===`csv`?wx(a,h):e===`tsv`?Tx(a):Dx(a);let c=new ClipboardItem({"text/plain":new Blob([o],{type:`text/plain`}),"text/html":new Blob([t.outerHTML],{type:`text/html`})});await navigator.clipboard.write([c]),l(!0),s(!1),n?.(e),d.current=window.setTimeout(()=>l(!1),i)}catch(e){r?.(e)}};(0,k.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&s(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e),window.clearTimeout(d.current)}},[]);let _=Lb(),v=c?_.CheckIcon:_.CopyIcon;return(0,q.jsxs)(`div`,{className:a(`relative`),ref:u,children:[(0,q.jsx)(`button`,{className:a(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:f,onClick:()=>s(!o),title:m.copyTable,type:`button`,children:e??(0,q.jsx)(v,{height:14,width:14})}),o?(0,q.jsxs)(`div`,{className:a(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,q.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`md`),title:m.copyTableAsMarkdown,type:`button`,children:m.tableFormatMarkdown}),(0,q.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`csv`),title:m.copyTableAsCsv,type:`button`,children:m.tableFormatCsv}),(0,q.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`tsv`),title:m.copyTableAsTsv,type:`button`,children:m.tableFormatTsv})]}):null]})},kx=({children:e,className:t,onDownload:n,onError:r})=>{let i=X(),[a,o]=(0,k.useState)(!1),s=(0,k.useRef)(null),{isAnimating:c,controls:l}=(0,k.useContext)(BC),u=Bb(),d=Lb(),f=Cx(l),p=e=>{try{let t=(s.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let i=Sx(t),a=e===`csv`?wx(i,f):Dx(i),c=e===`csv`?`csv`:`md`;_b(`${Hb(l,`table`,`table`)}.${c}`,a,e===`csv`?`text/csv`:`text/markdown`),o(!1),n?.(e)}catch(e){r?.(e)}};return(0,k.useEffect)(()=>{let e=e=>{let t=e.composedPath();s.current&&!t.includes(s.current)&&o(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,q.jsxs)(`div`,{className:i(`relative`),ref:s,children:[(0,q.jsx)(`button`,{className:i(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:c,onClick:()=>o(!a),title:u.downloadTable,type:`button`,children:e??(0,q.jsx)(d.DownloadIcon,{size:14})}),a?(0,q.jsxs)(`div`,{className:i(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,q.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>p(`csv`),title:u.downloadTableAsCsv,type:`button`,children:u.tableFormatCsv}),(0,q.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>p(`markdown`),title:u.downloadTableAsMarkdown,type:`button`,children:u.tableFormatMarkdown})]}):null]})},Ax=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=Lb(),o=X(),[s,c]=(0,k.useState)(!1),{isAnimating:l,portal:u}=(0,k.useContext)(BC),d=Bb(),f=()=>{c(!0)},p=()=>{c(!1)};return(0,k.useEffect)(()=>{if(s){Zb();let e=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Qb()}}},[s]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{className:o(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:l,onClick:f,title:d.viewFullscreen,type:`button`,children:(0,q.jsx)(i,{size:14})}),s?(0,R_.createPortal)((0,q.jsx)(`div`,{"aria-label":d.viewFullscreen,"aria-modal":`true`,className:o(`fixed inset-0 z-50 flex flex-col bg-background`),"data-streamdown":`table-fullscreen`,onClick:p,onKeyDown:e=>{e.key===`Escape`&&p()},role:`dialog`,children:(0,q.jsxs)(`div`,{className:o(`flex h-full flex-col`),"data-streamdown":`table-wrapper`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[(0,q.jsxs)(`div`,{className:o(`flex items-center justify-end gap-1 p-4`),children:[n?(0,q.jsx)(Ox,{}):null,r?(0,q.jsx)(kx,{}):null,(0,q.jsx)(`button`,{className:o(`rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:p,title:d.exitFullscreen,type:`button`,children:(0,q.jsx)(a,{size:20})})]}),(0,q.jsx)(`div`,{className:o(`flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10`),children:(0,q.jsx)(`table`,{className:o(`w-full border-collapse border border-border`),"data-streamdown":`table`,children:e})})]})}),Yb(u)):null]})},jx=({children:e,className:t,maxHeight:n,showControls:r,showCopy:i=!0,showDownload:a=!0,showFullscreen:o=!0,...s})=>{let c=X(),{isAnimating:l}=(0,k.useContext)(BC),u=bb(n),d=xb(l,!!u,e),f=r&&i,p=r&&a,m=r&&o,h=f||p||m;return(0,q.jsxs)(`div`,{className:c(`my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2`),"data-streamdown":`table-wrapper`,children:[h?(0,q.jsxs)(`div`,{className:c(`flex items-center justify-end gap-1`),children:[f?(0,q.jsx)(Ox,{}):null,p?(0,q.jsx)(kx,{}):null,m?(0,q.jsx)(Ax,{showCopy:f,showDownload:p,children:e}):null]}):null,(0,q.jsx)(`div`,{className:c(`border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background`),ref:d,style:u?{maxHeight:u}:void 0,children:(0,q.jsx)(`table`,{className:c(`w-full divide-y divide-border`,t),"data-streamdown":`table`,...s,children:e})})]})},Mx=/startLine=(\d+)/,Nx=/\bnoLineNumbers\b/,Px=(0,k.lazy)(()=>l(()=>import(`./mermaid-WFAXDIZX-CiFtUZlz.js`).then(e=>({default:e.Mermaid})),[])),Fx=/language-([^\s]+)/,Ix=`node`;function Z(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let r=e,i=t;for(let e of n)if(e!==Ix&&!Object.is(r[e],i[e]))return!1;return!0}function Lx(e,t){return e?.properties?.metastring===t?.properties?.metastring}var Rx=(e,t)=>typeof e==`boolean`?e:e[t]!==!1,zx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.table;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Bx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.code;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Vx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Hx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.image;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Ux=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`ol`,{className:i(`list-inside list-decimal whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`ordered-list`,...r,children:e})},(e,t)=>Z(e,t));Ux.displayName=`MarkdownOl`;var Wx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X(),a=Array.isArray(e)?e.filter(e=>e!==`
134
+ `)},Ox=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=X(),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(!1),u=(0,k.useRef)(null),d=(0,k.useRef)(0),{isAnimating:f,controls:p}=(0,k.useContext)(BC),m=Bb(),h=Cx(p),g=async e=>{var t;if(typeof window>`u`||!((t=navigator==null?void 0:navigator.clipboard)!=null&&t.write))r?.(Error(`Clipboard API not available`));else try{let t=(u.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let a=Sx(t),o=``;o=e===`csv`?wx(a,h):e===`tsv`?Tx(a):Dx(a);let c=new ClipboardItem({"text/plain":new Blob([o],{type:`text/plain`}),"text/html":new Blob([t.outerHTML],{type:`text/html`})});await navigator.clipboard.write([c]),l(!0),s(!1),n?.(e),d.current=window.setTimeout(()=>l(!1),i)}catch(e){r?.(e)}};(0,k.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&s(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e),window.clearTimeout(d.current)}},[]);let _=Lb(),v=c?_.CheckIcon:_.CopyIcon;return(0,q.jsxs)(`div`,{className:a(`relative`),ref:u,children:[(0,q.jsx)(`button`,{className:a(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:f,onClick:()=>s(!o),title:m.copyTable,type:`button`,children:e??(0,q.jsx)(v,{height:14,width:14})}),o?(0,q.jsxs)(`div`,{className:a(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,q.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`md`),title:m.copyTableAsMarkdown,type:`button`,children:m.tableFormatMarkdown}),(0,q.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`csv`),title:m.copyTableAsCsv,type:`button`,children:m.tableFormatCsv}),(0,q.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>g(`tsv`),title:m.copyTableAsTsv,type:`button`,children:m.tableFormatTsv})]}):null]})},kx=({children:e,className:t,onDownload:n,onError:r})=>{let i=X(),[a,o]=(0,k.useState)(!1),s=(0,k.useRef)(null),{isAnimating:c,controls:l}=(0,k.useContext)(BC),u=Bb(),d=Lb(),f=Cx(l),p=e=>{try{let t=(s.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let i=Sx(t),a=e===`csv`?wx(i,f):Dx(i),c=e===`csv`?`csv`:`md`;_b(`${Hb(l,`table`,`table`)}.${c}`,a,e===`csv`?`text/csv`:`text/markdown`),o(!1),n?.(e)}catch(e){r?.(e)}};return(0,k.useEffect)(()=>{let e=e=>{let t=e.composedPath();s.current&&!t.includes(s.current)&&o(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,q.jsxs)(`div`,{className:i(`relative`),ref:s,children:[(0,q.jsx)(`button`,{className:i(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:c,onClick:()=>o(!a),title:u.downloadTable,type:`button`,children:e??(0,q.jsx)(d.DownloadIcon,{size:14})}),a?(0,q.jsxs)(`div`,{className:i(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,q.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>p(`csv`),title:u.downloadTableAsCsv,type:`button`,children:u.tableFormatCsv}),(0,q.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>p(`markdown`),title:u.downloadTableAsMarkdown,type:`button`,children:u.tableFormatMarkdown})]}):null]})},Ax=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=Lb(),o=X(),[s,c]=(0,k.useState)(!1),{isAnimating:l,portal:u}=(0,k.useContext)(BC),d=Bb(),f=()=>{c(!0)},p=()=>{c(!1)};return(0,k.useEffect)(()=>{if(s){Zb();let e=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Qb()}}},[s]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{className:o(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:l,onClick:f,title:d.viewFullscreen,type:`button`,children:(0,q.jsx)(i,{size:14})}),s?(0,R_.createPortal)((0,q.jsx)(`div`,{"aria-label":d.viewFullscreen,"aria-modal":`true`,className:o(`fixed inset-0 z-50 flex flex-col bg-background`),"data-streamdown":`table-fullscreen`,onClick:p,onKeyDown:e=>{e.key===`Escape`&&p()},role:`dialog`,children:(0,q.jsxs)(`div`,{className:o(`flex h-full flex-col`),"data-streamdown":`table-wrapper`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[(0,q.jsxs)(`div`,{className:o(`flex items-center justify-end gap-1 p-4`),children:[n?(0,q.jsx)(Ox,{}):null,r?(0,q.jsx)(kx,{}):null,(0,q.jsx)(`button`,{className:o(`rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:p,title:d.exitFullscreen,type:`button`,children:(0,q.jsx)(a,{size:20})})]}),(0,q.jsx)(`div`,{className:o(`flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10`),children:(0,q.jsx)(`table`,{className:o(`w-full border-collapse border border-border`),"data-streamdown":`table`,children:e})})]})}),Yb(u)):null]})},jx=({children:e,className:t,maxHeight:n,showControls:r,showCopy:i=!0,showDownload:a=!0,showFullscreen:o=!0,...s})=>{let c=X(),{isAnimating:l}=(0,k.useContext)(BC),u=bb(n),d=xb(l,!!u,e),f=r&&i,p=r&&a,m=r&&o,h=f||p||m;return(0,q.jsxs)(`div`,{className:c(`my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2`),"data-streamdown":`table-wrapper`,children:[h?(0,q.jsxs)(`div`,{className:c(`flex items-center justify-end gap-1`),children:[f?(0,q.jsx)(Ox,{}):null,p?(0,q.jsx)(kx,{}):null,m?(0,q.jsx)(Ax,{showCopy:f,showDownload:p,children:e}):null]}):null,(0,q.jsx)(`div`,{className:c(`border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background`),ref:d,style:u?{maxHeight:u}:void 0,children:(0,q.jsx)(`table`,{className:c(`w-full divide-y divide-border`,t),"data-streamdown":`table`,...s,children:e})})]})},Mx=/startLine=(\d+)/,Nx=/\bnoLineNumbers\b/,Px=(0,k.lazy)(()=>d(()=>import(`./mermaid-WFAXDIZX-B8XO7yhf.js`).then(e=>({default:e.Mermaid})),[])),Fx=/language-([^\s]+)/,Ix=`node`;function Z(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let r=e,i=t;for(let e of n)if(e!==Ix&&!Object.is(r[e],i[e]))return!1;return!0}function Lx(e,t){return e?.properties?.metastring===t?.properties?.metastring}var Rx=(e,t)=>typeof e==`boolean`?e:e[t]!==!1,zx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.table;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Bx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.code;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Vx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Hx=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.image;return n===!1?!1:n===!0||n===void 0||n[t]!==!1},Ux=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`ol`,{className:i(`list-inside list-decimal whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`ordered-list`,...r,children:e})},(e,t)=>Z(e,t));Ux.displayName=`MarkdownOl`;var Wx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X(),a=Array.isArray(e)?e.filter(e=>e!==`
135
135
  `&&e!==``):[e],o=a.length===1&&(0,k.isValidElement)(a[0])&&(a[0].type===pS||a[0].props.node?.tagname===`p`)?a[0].props.children:e;return(0,q.jsx)(`li`,{className:i(`py-1 [&>p]:inline`,t),"data-streamdown":`list-item`,...r,children:o})},(e,t)=>Z(e,t));Wx.displayName=`MarkdownLi`;var Gx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`ul`,{className:i(`list-inside list-disc whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`unordered-list`,...r,children:e})},(e,t)=>Z(e,t));Gx.displayName=`MarkdownUl`;var Kx=(0,k.memo)(({className:e,node:t,...n})=>{let r=X();return(0,q.jsx)(`hr`,{className:r(`my-6 border-border`,e),"data-streamdown":`horizontal-rule`,...n})},(e,t)=>Z(e,t));Kx.displayName=`MarkdownHr`;var qx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`span`,{className:i(`font-semibold`,t),"data-streamdown":`strong`,...r,children:e})},(e,t)=>Z(e,t));qx.displayName=`MarkdownStrong`;var Jx=(0,k.memo)(({children:e,className:t,href:n,node:r,...i})=>{let a=X(),{linkSafety:o}=(0,k.useContext)(BC),[s,c]=(0,k.useState)(!1),l=n===`streamdown:incomplete-link`,u=(0,k.useCallback)(async e=>{if(o!=null&&o.enabled&&n&&!l){if(e.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(n)){window.open(n,`_blank`,`noreferrer`);return}c(!0)}},[o,n,l]),d=(0,k.useCallback)(()=>{n&&window.open(n,`_blank`,`noreferrer`)},[n]),f=(0,k.useCallback)(()=>{c(!1)},[]),p={url:n??``,isOpen:s,onClose:f,onConfirm:d};return o!=null&&o.enabled&&n?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{className:a(`wrap-anywhere appearance-none text-left font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,onClick:u,type:`button`,children:e}),o.renderModal?o.renderModal(p):(0,q.jsx)($b,{...p})]}):(0,q.jsx)(`a`,{className:a(`wrap-anywhere font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,href:n,rel:`noreferrer`,target:`_blank`,...i,children:e})},(e,t)=>Z(e,t));Jx.displayName=`MarkdownA`;var Yx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`h1`,{className:i(`mt-6 mb-2 font-semibold text-3xl`,t),"data-streamdown":`heading-1`,...r,children:e})},(e,t)=>Z(e,t));Yx.displayName=`MarkdownH1`;var Xx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`h2`,{className:i(`mt-6 mb-2 font-semibold text-2xl`,t),"data-streamdown":`heading-2`,...r,children:e})},(e,t)=>Z(e,t));Xx.displayName=`MarkdownH2`;var Zx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`h3`,{className:i(`mt-6 mb-2 font-semibold text-xl`,t),"data-streamdown":`heading-3`,...r,children:e})},(e,t)=>Z(e,t));Zx.displayName=`MarkdownH3`;var Qx=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`h4`,{className:i(`mt-6 mb-2 font-semibold text-lg`,t),"data-streamdown":`heading-4`,...r,children:e})},(e,t)=>Z(e,t));Qx.displayName=`MarkdownH4`;var $x=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`h5`,{className:i(`mt-6 mb-2 font-semibold text-base`,t),"data-streamdown":`heading-5`,...r,children:e})},(e,t)=>Z(e,t));$x.displayName=`MarkdownH5`;var eS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`h6`,{className:i(`mt-6 mb-2 font-semibold text-sm`,t),"data-streamdown":`heading-6`,...r,children:e})},(e,t)=>Z(e,t));eS.displayName=`MarkdownH6`;var tS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i,tableMaxHeight:a}=(0,k.useContext)(BC),o=Rx(i,`table`),s=zx(i,`copy`),c=zx(i,`download`),l=zx(i,`fullscreen`);return(0,q.jsx)(jx,{className:t,maxHeight:a,showControls:o,showCopy:s,showDownload:c,showFullscreen:l,...r,children:e})},(e,t)=>Z(e,t));tS.displayName=`MarkdownTable`;var nS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`thead`,{className:i(`bg-muted/80`,t),"data-streamdown":`table-header`,...r,children:e})},(e,t)=>Z(e,t));nS.displayName=`MarkdownThead`;var rS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`tbody`,{className:i(`divide-y divide-border`,t),"data-streamdown":`table-body`,...r,children:e})},(e,t)=>Z(e,t));rS.displayName=`MarkdownTbody`;var iS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`tr`,{className:i(`border-border`,t),"data-streamdown":`table-row`,...r,children:e})},(e,t)=>Z(e,t));iS.displayName=`MarkdownTr`;var aS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`th`,{className:i(`whitespace-nowrap px-4 py-2 text-left font-semibold text-sm`,t),"data-streamdown":`table-header-cell`,...r,children:e})},(e,t)=>Z(e,t));aS.displayName=`MarkdownTh`;var oS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`td`,{className:i(`px-4 py-2 text-sm`,t),"data-streamdown":`table-cell`,...r,children:e})},(e,t)=>Z(e,t));oS.displayName=`MarkdownTd`;var sS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`blockquote`,{className:i(`my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic`,t),"data-streamdown":`blockquote`,...r,children:e})},(e,t)=>Z(e,t));sS.displayName=`MarkdownBlockquote`;var cS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`sup`,{className:i(`text-sm`,t),"data-streamdown":`superscript`,...r,children:e})},(e,t)=>Z(e,t));cS.displayName=`MarkdownSup`;var lS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{let i=X();return(0,q.jsx)(`sub`,{className:i(`text-sm`,t),"data-streamdown":`subscript`,...r,children:e})},(e,t)=>Z(e,t));lS.displayName=`MarkdownSub`;var uS=(0,k.memo)(({children:e,className:t,node:n,...r})=>{if(`data-footnotes`in r){let n=e=>{if(!(0,k.isValidElement)(e))return!1;let t=Array.isArray(e.props.children)?e.props.children:[e.props.children],n=!1,r=!1;for(let e of t)if(e){if(typeof e==`string`)e.trim()!==``&&(n=!0);else if((0,k.isValidElement)(e)){if(e.props?.[`data-footnote-backref`]!==void 0)r=!0;else{let t=Array.isArray(e.props.children)?e.props.children:[e.props.children];for(let e of t)if(typeof e==`string`&&e.trim()!==``||(0,k.isValidElement)(e)&&e.props?.[`data-footnote-backref`]===void 0){n=!0;break}}}}return r&&!n},i=Array.isArray(e)?e.map(e=>{if(!(0,k.isValidElement)(e))return e;if(e.type===Ux){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!n(e));return t.length===0?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(i)?i.some(e=>e!==null):i!==null)?(0,q.jsx)(`section`,{className:t,...r,children:i}):null}return(0,q.jsx)(`section`,{className:t,...r,children:e})},(e,t)=>Z(e,t));uS.displayName=`MarkdownSection`;var dS=(0,k.memo)(({node:e,className:t,children:n,...r})=>{let i=X(),a=!(`data-block`in r),{mermaid:o,controls:s,lineNumbers:c}=(0,k.useContext)(BC),l=rx(),u=pb(),d=(t?.match(Fx))?.at(1)??``,f=ix(d);if(a)return(0,q.jsx)(`code`,{className:i(`rounded bg-muted px-1.5 py-0.5 font-mono text-sm`,t),"data-streamdown":`inline-code`,...r,children:n});let p=e?.properties?.metastring,m=p?.match(Mx),h=m?Number.parseInt(m[1],10):void 0,g=h!==void 0&&h>=1?h:void 0,_=!(p&&Nx.test(p))&&c!==!1,v=``;if((0,k.isValidElement)(n)&&n.props&&typeof n.props==`object`&&`children`in n.props&&typeof n.props.children==`string`?v=n.props.children:typeof n==`string`&&(v=n),f){let e=f.component;return(0,q.jsx)(k.Suspense,{fallback:(0,q.jsx)(Kb,{}),children:(0,q.jsx)(e,{code:v,isIncomplete:u,language:d,meta:p})})}if(d===`mermaid`&&l){let e=Rx(s,`mermaid`),n=Vx(s,`download`),r=Vx(s,`copy`),a=Vx(s,`fullscreen`),c=Vx(s,`panZoom`),l=e&&(n||r||a);return(0,q.jsx)(k.Suspense,{fallback:(0,q.jsx)(Kb,{}),children:(0,q.jsxs)(`div`,{className:i(`group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2`,t),"data-streamdown":`mermaid-block`,children:[(0,q.jsx)(`div`,{className:i(`flex h-8 items-center text-muted-foreground text-xs`),children:(0,q.jsx)(`span`,{className:i(`ml-1 font-mono lowercase`),children:`mermaid`})}),l?(0,q.jsx)(`div`,{className:i(`pointer-events-none absolute top-2 right-2 z-10 flex items-center`),children:(0,q.jsxs)(`div`,{className:i(`pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur`),"data-streamdown":`mermaid-block-actions`,children:[n?(0,q.jsx)(yx,{chart:v,config:o?.config}):null,r?(0,q.jsx)(Vb,{code:v,...Ub(s,`mermaid`)}):null,a?(0,q.jsx)(bx,{chart:v,config:o?.config}):null]})}):null,(0,q.jsx)(`div`,{className:i(`overflow-hidden rounded-md border border-border bg-background`),children:(0,q.jsx)(Px,{chart:v,config:o?.config,showControls:c})})]})})}let y=Rx(s,`code`),b=Bx(s,`download`),x=Bx(s,`copy`),{"data-block":ee,...S}=r;return(0,q.jsx)(Mb,{className:t,code:v,isIncomplete:u,language:d,lineNumbers:_,startLine:g,...S,children:y?(0,q.jsxs)(q.Fragment,{children:[b?(0,q.jsx)(Gb,{code:v,language:d}):null,x?(0,q.jsx)(Vb,{...Ub(s,`code`)}):null]}):null})},(e,t)=>Z(e,t)&&Lx(e.node,t.node));dS.displayName=`MarkdownCode`;var fS=(0,k.memo)(({node:e,className:t,...n})=>{let{controls:r}=(0,k.useContext)(BC),i=Rx(r,`image`),a=i&&Hx(r,`download`);return(0,q.jsx)(Jb,{className:t,node:e,showControls:i,showDownloadControl:a,...n})},(e,t)=>Z(e,t));fS.displayName=`MarkdownImg`;var pS=(0,k.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>e!=null&&e!==``);if(r.length===1&&(0,k.isValidElement)(r[0])){let t=r[0].props.node?.tagName;if(t===`img`||t===`code`&&`data-block`in r[0].props)return(0,q.jsx)(q.Fragment,{children:e})}return(0,q.jsx)(`p`,{...n,children:e})},(e,t)=>Z(e,t));pS.displayName=`MarkdownParagraph`;var mS={ol:Ux,li:Wx,ul:Gx,hr:Kx,strong:qx,a:Jx,h1:Yx,h2:Xx,h3:Zx,h4:Qx,h5:$x,h6:eS,table:tS,thead:nS,tbody:rS,tr:iS,th:aS,td:oS,blockquote:sS,code:dS,img:fS,pre:({children:e})=>(0,k.isValidElement)(e)?(0,k.cloneElement)(e,{"data-block":`true`}):e,sup:cS,sub:lS,p:pS,section:uS},hS=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,gS=/\p{L}/u;function _S(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,``).replace(/^#{1,6}\s+/gm,``).replace(/(\*{1,3}|_{1,3})/g,``).replace(/`[^`]*`/g,``).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^[\s>*\-+\d.]+/gm,``),n,r=0,i=0;for(let e of t)hS.test(e)?(n??=`rtl`,i+=1):gS.test(e)&&(n??=`ltr`,r+=1);return i>r?`rtl`:r>i?`ltr`:n??`ltr`}var vS=/^[ \t]{0,3}(`{3,}|~{3,})/,yS=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,bS=e=>{let t=e.split(`
136
136
  `),n=null,r=0;for(let e of t){let t=vS.exec(e);if(n===null){if(t){let e=t[1];n=e[0],r=e.length}}else if(t){let e=t[1],i=e[0],a=e.length;i===n&&a>=r&&(n=null,r=0)}}return n!==null},xS=e=>{let t=e.split(`
137
137
  `);for(let e of t){let t=e.trim();if(t.length>0&&t.includes(`|`)&&yS.test(t))return!0}return!1},SS=()=>e=>{O(e,`html`,(e,t,n)=>{!n||typeof t!=`number`||(n.children[t]={type:`text`,value:e.value})})},CS=[],wS={allowDangerousHtml:!0},TS=new WeakMap,ES=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t=`default`;return this.keyCache.set(e,t),t}let a=e=>{if(!e||e.length===0)return``;let t=``;for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&(t+=`,`),Array.isArray(r)){let[e,n]=r;if(typeof e==`function`){let n=TS.get(e);n||(n=e.name,TS.set(e,n)),t+=n}else t+=String(e);t+=`:`,t+=JSON.stringify(n)}else if(typeof r==`function`){let e=TS.get(r);e||(e=r.name,TS.set(r,e)),t+=e}else t+=String(r)}return t},o=a(n),s=`${a(r)}::${o}::${i?JSON.stringify(i):``}`;return this.keyCache.set(e,s),s}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}},DS=e=>{let t=OS(e),n=e.children||``;return FS(t.runSync(t.parse(n),n),e)},OS=e=>{let t=ES.get(e);if(t)return t;let n=AS(e);return ES.set(e,n),n},kS=e=>e.some(e=>Array.isArray(e)?e[0]===Mo:e===Mo),AS=e=>{let t=e.rehypePlugins||CS,n=e.remarkPlugins||CS,r=kS(t)?n:[...n,SS],i=e.remarkRehypeOptions?{...wS,...e.remarkRehypeOptions}:wS;return O_().use(lg).use(r).use(e_,i).use(t)},jS=e=>e,MS=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:`text`,value:r}},NS=(e,t)=>{for(let n in wh)if(Object.hasOwn(wh,n)&&Object.hasOwn(e.properties,n)){let r=e.properties[n],i=wh[n];(i===null||i.includes(e.tagName))&&(e.properties[n]=t(String(r||``),n,e)??void 0)}},PS=(e,t,n,r,i,a)=>{let o=!1;return r?o=!r.includes(e.tagName):i&&(o=i.includes(e.tagName)),!o&&a&&typeof t==`number`&&(o=!a(e,t,n)),o},FS=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:o,urlTransform:s}=t;if(n||r||i||a||s){let t=s||jS;O(e,(e,s,c)=>{if(e.type===`raw`&&c&&typeof s==`number`)return MS(c,s,a,e.value),s;if(e.type===`element`&&(NS(e,t),PS(e,s,c,r,i,n)&&c&&typeof s==`number`))return o&&e.children?c.children.splice(s,1,...e.children):c.children.splice(s,1),s})}return nh(e,{Fragment:q.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0})},IS=/\[\^[\w-]{1,200}\](?!:)/,LS=/\[\^[\w-]{1,200}\]:/,RS=/<([A-Za-z][\w:-]*)[\s>/]/,zS=/^ {0,3}\[[^\]]+\]:/m,BS=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),VS=new Map,HS=new Map,US=e=>{let t=e.toLowerCase(),n=VS.get(t);if(n)return n;let r=RegExp(`<${t}(?=[\\s>/])[^>]*>`,`gi`);return VS.set(t,r),r},WS=e=>{let t=e.toLowerCase(),n=HS.get(t);if(n)return n;let r=RegExp(`</${t}(?=[\\s>])[^>]*>`,`gi`);return HS.set(t,r),r},GS=(e,t)=>{if(BS.has(t.toLowerCase()))return 0;let n=e.match(US(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith(`/>`)||(r+=1);return r},KS=(e,t)=>{let n=e.match(WS(t));return n?n.length:0},qS=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]===`$`&&e[n+1]===`$`&&(t+=1,n+=1);return t},JS=/\r\n|\r/g,YS=e=>{let t=new Cy({gfm:!0});return{tokens:t.blockTokens(e),hasLinkDefinitions:Object.keys(t.tokens.links).length>0}},XS=null,ZS=`
@@ -157,7 +157,7 @@ ${n}`,i=e.length;break}if(!c.startsWith(`
157
157
  <!---->
158
158
  `);r+=`${t}
159
159
 
160
- ${u}`,i=e.length;break}return i===0?e:r+e.slice(i)},lC=(e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,`gi`);n=n.replace(t,(e,t,n,r)=>sC(t,n,r)),n=cC(n,e)}return n},uC=/([\\`*_~[\]|])/g,dC=e=>e.replace(uC,`\\$1`),fC=(e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,`gi`);n=n.replace(t,(e,t,n,r)=>t+dC(n).replace(/\n\n/g,`&#10;&#10;`)+r)}return n},pC=new Set([`blockquote`,`dd`,`dt`,`figcaption`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`,`p`,`td`,`th`]),mC=new Set([`code`,`kbd`,`pre`,`samp`,`var`]);function hC(e){return e.children.map(e=>e.type===`text`?e.value:e.type===`element`&&!mC.has(e.tagName)?hC(e):``).join(``)}function gC(){return e=>{O(e,`element`,e=>{mC.has(e.tagName)?(e.properties??={},e.properties.dir=`ltr`):pC.has(e.tagName)&&(e.properties??={},typeof e.properties.dir!=`string`&&(e.properties.dir=_S(hC(e))))})}}var _C=e=>e.type===`text`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map(_C).join(``):``,vC=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(e=>e.toLowerCase()));O(t,`element`,e=>{if(n.has(e.tagName.toLowerCase())){let t=_C(e);e.children=t?[{type:`text`,value:t}]:[]}})},yC=()=>e=>{O(e,`code`,e=>{e.meta&&(e.data=e.data??{},e.data.hProperties={...e.data.hProperties??{},metastring:e.meta})})},bC=/^([a-zA-Z][a-zA-Z\d+\-.]*:)/,xC=e=>new Set(e.map(e=>e.trim().toLowerCase()).filter(e=>e.length>0).map(e=>e.endsWith(`:`)?e:`${e}:`));function SC(e,t,n){let r=e.position?.start?.offset;if(typeof r==`number`&&n.charCodeAt(r)===91||e.children.length!==1)return!1;let[i]=e.children;if(i.type!==`text`)return!1;let a=bC.exec(e.url);if(!a)return!1;let o=a[1].toLowerCase();return t.has(o)?o===`mailto:`?e.url===`mailto:${i.value}`:e.url===i.value||e.url===`${o}//${i.value}`:!1}var CC=(e=[])=>{let t=xC(e);return(e,n)=>{if(t.size===0)return;let r=String(n.value??``);O(e,`link`,(e,n,i)=>{if(i&&n!==void 0&&SC(e,t,r))return i.children.splice(n,1,...e.children),n})}},wC=`data-sd-caret-hidden`,TC=()=>{},EC=()=>TC,DC=e=>{let t=(0,k.useRef)(null),n=(0,k.useRef)(null),r=(0,k.useSyncExternalStore)(EC,()=>!0,()=>!1);return(0,k.useLayoutEffect)(()=>{var r;let i=e&&(r=t.current?.lastElementChild)!=null?r:null,a=n.current;a!==i&&(a?.removeAttribute(wC),i?.setAttribute(wC,``),n.current=i)}),{containerRef:t,showCaret:r||!e}},OC=/^[a-z]/,kC=/^[ \t]*<[\w!/?-]/,AC=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,jC=e=>typeof e!=`string`||e.length===0||!kC.test(e)?e:e.replace(AC,`$1`),MC={...Po,clobberPrefix:``,protocols:{...Po.protocols,href:[...Po.protocols?.href??[],`tel`,`streamdown`],src:[...Po.protocols?.src??[],`streamdown`]},attributes:{...Po.attributes,code:[...Po.attributes?.code??[],`metastring`]}},NC={raw:Mo,sanitize:[Zo,MC],harden:[ce,{allowedImagePrefixes:[`*`],allowedLinkPrefixes:[`*`],allowedProtocols:[`*`],defaultOrigin:void 0,allowDataImages:!0}]},PC={gfm:[mf,{}],codeMeta:yC},FC=Object.values(NC),IC=Object.values(PC),LC={block:` ▋`,circle:` ●`},RC=[`github-light`,`github-dark`],zC={enabled:!0},BC=(0,k.createContext)({codeBlockMaxHeight:400,shikiTheme:RC,controls:!0,isAnimating:!1,lineNumbers:!0,mode:`streaming`,mermaid:void 0,linkSafety:zC,portal:void 0,tableMaxHeight:300}),VC=(0,k.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:o,...s})=>{(0,k.useLayoutEffect)(()=>{o?.commit()});let c=typeof e==`string`&&n?jC(e):e,l=(0,q.jsx)(DS,{...s,children:c});return(0,q.jsx)(fb.Provider,{value:i,children:a?(0,q.jsx)(`div`,{dir:a,style:{display:`contents`},children:l}):l})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>e.components?.[n]!==t.components?.[n]))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins&&!!e.animatePlugin==!!t.animatePlugin});VC.displayName=`Block`;var HC=e=>{let t={};for(let[n,r]of Object.entries(e))(n.startsWith(`data-`)||n.startsWith(`aria-`))&&(t[n]=r);return t},UC=(e,t)=>{let n=HC(e),r=HC(t),i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>Object.hasOwn(r,e)&&n[e]===r[e])},WC=(0,k.memo)(({children:e,mode:t=`streaming`,dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:i=!1,components:a,rehypePlugins:o=FC,remarkPlugins:s=IC,className:c,shikiTheme:l,mermaid:u,codeBlockMaxHeight:d=400,controls:f=!0,isAnimating:p=!1,tableMaxHeight:m=300,animated:h,BlockComponent:g=VC,parseMarkdownIntoBlocksFn:_=rC,caret:v,plugins:y,remend:b,linkSafety:x=zC,portal:ee,lineNumbers:S=!0,allowedTags:C,fallbackComponent:w,literalTagContent:T,disableAutolinkProtocols:E,translations:D,icons:te,prefix:ne,onAnimationStart:re,onAnimationEnd:ie,...ae})=>{let oe=(0,k.useId)(),O=HC(ae),se=(0,k.useMemo)(()=>gb(ne),[ne]),ce=(0,k.useRef)(null),le=(0,k.useRef)(re),ue=(0,k.useRef)(ie);le.current=re,ue.current=ie,(0,k.useEffect)(()=>{var e,n,r;if(t===`static`)return;let i=ce.current;ce.current=p,i===null?p&&((e=le.current)==null||e.call(le)):p&&!i?(n=le.current)==null||n.call(le):!p&&i&&((r=ue.current)==null||r.call(ue))},[p,t]);let de=(0,k.useMemo)(()=>C?Object.keys(C):[],[C]),fe=(0,k.useMemo)(()=>{if(typeof e!=`string`)return``;let n=t===`streaming`&&r?Mm(e,b):e;return T&&T.length>0&&(n=fC(n,T)),de.length>0&&(n=lC(n,de)),n},[e,t,r,b,de,T]),pe=(0,k.useMemo)(()=>_(fe),[fe,_]),me=(0,k.useMemo)(()=>n===`auto`?pe.map(_S):void 0,[pe,n]),he=(0,k.useMemo)(()=>pe.map((e,t)=>`${oe}-${t}`),[pe.length,oe]),ge=(0,k.useMemo)(()=>h===!0?`true`:h?JSON.stringify(h):``,[h]),_e=(0,k.useRef)(null),ve=(0,k.useRef)([]),ye=(0,k.useRef)([]),be=(0,k.useRef)(null),xe=(0,k.useRef)(``);ge?(xe.current===ge?_e.current||=Ry():(xe.current=ge,_e.current=Ry({maxBacklogMs:ge===`true`?void 0:h.maxBacklogMs}),ve.current=[],ye.current=[]),p&&_e.current&&_e.current.beginPass(_e.current.now())):(_e.current=null,ve.current=[],ye.current=[],xe.current=``),(0,k.useLayoutEffect)(()=>{var e;p&&((e=_e.current)==null||e.commitPass())});let Se=(0,k.useMemo)(()=>({codeBlockMaxHeight:d,shikiTheme:l??(y?.code)?.getThemes()??RC,controls:f,isAnimating:p,lineNumbers:S,mode:t,mermaid:u,linkSafety:x,portal:ee,tableMaxHeight:m}),[d,l,f,p,S,t,u,x,ee,y?.code,m]),Ce=(0,k.useMemo)(()=>D?JSON.stringify(D):``,[D]),we=(0,k.useMemo)(()=>({...Rb,...D}),[Ce]),Te=(0,k.useMemo)(()=>{let{inlineCode:e,...t}=a??{},n={...mS,...t};if(e){let t=n.code;n.code=n=>`data-block`in n?t?(0,k.createElement)(t,n):null:(0,k.createElement)(e,n)}if(w){if(C)for(let e of Object.keys(C))Object.hasOwn(n,e)||(n[e]=w);let e={configurable:!0,enumerable:!1,value:w,writable:!1};return new Proxy(n,{getOwnPropertyDescriptor(t,n){let r=Object.getOwnPropertyDescriptor(t,n);if(r)return r;if(typeof n==`string`&&OC.test(n))return e},get(e,t,n){return typeof t==`string`&&OC.test(t)&&!Object.hasOwn(e,t)?w:Reflect.get(e,t,n)}})}return n},[a,w,C]),Ee=(0,k.useMemo)(()=>{let e=[];return y!=null&&y.cjk&&(e=[...e,...y.cjk.remarkPluginsBefore]),e=[...e,...s],E&&E.length>0&&(e=[...e,[CC,E]]),y!=null&&y.cjk&&(e=[...e,...y.cjk.remarkPluginsAfter]),y!=null&&y.math&&(e=[...e,y.math.remarkPlugin]),e},[s,y?.math,y?.cjk,E]),De=(0,k.useMemo)(()=>{let e=o;if(C&&Object.keys(C).length>0&&o===FC){let t={...MC,tagNames:[...MC.tagNames??[],...Object.keys(C)],attributes:{...MC.attributes,...C}};e=[NC.raw,[Zo,t],NC.harden]}return T&&T.length>0&&(e=[...e,[vC,T]]),y!=null&&y.math&&(e=[...e,y.math.rehypePlugin]),n===`auto`&&t===`static`&&(e=[...e,gC]),e},[o,y?.math,C,T,n,t]),Oe=(0,k.useMemo)(()=>v&&p?{"--streamdown-caret":`"${LC[v]}"`}:void 0,[v,p]),{containerRef:ke,showCaret:Ae}=DC((0,k.useMemo)(()=>{if(!p||pe.length===0)return!1;let e=pe.at(-1);return bS(e)||xS(e)},[p,pe])),je=e=>{let t=null;if(_e.current&&p){if(!ve.current[e]){let{maxBacklogMs:t,...n}=ge&&ge!==`true`?h:{};ve.current[e]=ub({...n,timeline:_e.current})}t=ve.current[e]}be.current!==De&&(ye.current=[],be.current=De),t&&!ye.current[e]&&(ye.current[e]=[...De,t.rehypePlugin]);let n=t&&ye.current[e]?ye.current[e]:De;return{blockAnimatePlugin:t,blockRehypePlugins:n}};return t===`static`?(0,q.jsx)(zb.Provider,{value:we,children:(0,q.jsx)(ex.Provider,{value:y??null,children:(0,q.jsx)(BC.Provider,{value:Se,children:(0,q.jsx)(Ib,{icons:te,children:(0,q.jsx)(vb.Provider,{value:se,children:(0,q.jsx)(`div`,{...O,className:se(`space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,c),dir:n===`auto`?void 0:n,children:(0,q.jsx)(DS,{components:Te,rehypePlugins:De,remarkPlugins:Ee,...ae,children:fe})})})})})})}):(0,q.jsx)(zb.Provider,{value:we,children:(0,q.jsx)(ex.Provider,{value:y??null,children:(0,q.jsx)(BC.Provider,{value:Se,children:(0,q.jsx)(Ib,{icons:te,children:(0,q.jsx)(vb.Provider,{value:se,children:(0,q.jsxs)(`div`,{...O,className:se(`space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,v&&Ae?`[&>*:last-child:not([data-sd-caret-hidden])]:after:inline [&>*:last-child:not([data-sd-caret-hidden])]:after:align-baseline [&>*:last-child:not([data-sd-caret-hidden])]:after:content-[var(--streamdown-caret)]`:null,c),ref:ke,style:Oe,children:[pe.length===0&&v&&p&&(0,q.jsx)(`span`,{}),pe.map((e,t)=>{let a=t===pe.length-1,o=p&&a&&bS(e),{blockAnimatePlugin:s,blockRehypePlugins:c}=je(t);return(0,q.jsx)(g,{animatePlugin:s,components:Te,content:e,dir:me?.[t]??(n===`auto`?void 0:n),index:t,isIncomplete:o,rehypePlugins:c,remarkPlugins:Ee,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:r,...ae},he[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&e.disableAutolinkProtocols===t.disableAutolinkProtocols&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir&&e.fallbackComponent===t.fallbackComponent&&UC(e,t));WC.displayName=`Streamdown`;var GC=e=>e>0?e:null,KC=(e,t)=>{if(e.endsWith(`px`))return GC(Number.parseFloat(e));if(e.endsWith(`rem`)){let t=Number.parseFloat(getComputedStyle(document.documentElement).fontSize||`16`);return GC(Number.parseFloat(e)*t)}if(e.endsWith(`em`)){let n=Number.parseFloat(getComputedStyle(t).fontSize||`16`);return GC(Number.parseFloat(e)*n)}if(e.endsWith(`vh`))return GC(Number.parseFloat(e)/100*window.innerHeight);if(e.endsWith(`%`)){let n=t.parentElement;return n&&n.clientHeight>0?GC(Number.parseFloat(e)/100*n.clientHeight):null}return null},qC=(e,t)=>{let n=t.trim().toLowerCase();return!n||n===`none`||n===`auto`?null:KC(n,e)},JC=/^min\(\s*([^,]+)\s*,\s*([^)]+)\s*\)$/i,YC=(e,t)=>{let n=qC(e,t);if(n!=null)return n;let r=t.trim().match(JC);if(!r)return null;let i=qC(e,r[1].trim()),a=qC(e,r[2].trim());return i==null||a==null?null:Math.min(i,a)},XC=(e,t,n)=>{let r=t.clientWidth;if(!(r>0))return null;if(n){let n=t.clientHeight;if(!(n>0))return null;let i=Math.min(r/e.width,n/e.height,1);return!(i>0)||Number.isNaN(i)?null:{fitZoom:i,viewportHeight:null}}let i=Math.min(r/e.width,1);if(!(i>0)||Number.isNaN(i))return null;let a=e.height*i,o=null,s=t;for(;s&&o==null;){let e=getComputedStyle(s);o=YC(s,e.maxHeight),s=s.parentElement}let c=o==null?a:Math.min(a,o),l=Math.min(i,c/e.height,1);return!(l>0)||Number.isNaN(l)?null:{fitZoom:l,viewportHeight:c}},ZC=({children:e,className:t,contentSize:n,fitKey:r,minZoom:i=.5,maxZoom:a=3,zoomStep:o=.1,showControls:s=!0,initialZoom:c=1,isAutoFit:l=!1,fullscreen:u=!1})=>{let{RotateCcwIcon:d,ZoomInIcon:f,ZoomOutIcon:p}=Lb(),m=X(),h=Bb(),g=(0,k.useRef)(null),_=(0,k.useRef)(null),v=(0,k.useRef)(!1),[y,b]=(0,k.useState)(c),[x,ee]=(0,k.useState)(i),[S,C]=(0,k.useState)(c),[w,T]=(0,k.useState)({x:0,y:0}),[E,D]=(0,k.useState)(!1),[te,ne]=(0,k.useState)({x:0,y:0}),[re,ie]=(0,k.useState)({x:0,y:0}),[ae,oe]=(0,k.useState)(null),O=(0,k.useCallback)(e=>{let t=g.current;if(!t)return;let n=XC(e,t,u);if(!n)return;let{fitZoom:r,viewportHeight:a}=n;oe(a),b(r),ee(Math.min(i,r)),v.current||(C(r),T({x:0,y:0}))},[u,i]),se=(0,k.useCallback)(e=>{C(t=>Math.max(x,Math.min(a,t+e))),v.current=!0},[x,a]),ce=(0,k.useCallback)(()=>{se(o)},[se,o]),le=(0,k.useCallback)(()=>{se(-o)},[se,o]),ue=(0,k.useCallback)(()=>{C(y),T({x:0,y:0}),v.current=!1},[y]),de=(0,k.useCallback)(e=>{e.preventDefault();let t=e.deltaY>0?-o:o;se(t)},[se,o]),fe=(0,k.useCallback)(e=>{if(e.button!==0||e.isPrimary===!1)return;D(!0),v.current=!0,ne({x:e.clientX,y:e.clientY}),ie(w);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[w]),pe=(0,k.useCallback)(e=>{if(!E)return;e.preventDefault();let t=e.clientX-te.x,n=e.clientY-te.y;T({x:re.x+t,y:re.y+n})},[E,te,re]),me=(0,k.useCallback)(e=>{D(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);(0,k.useEffect)(()=>{ee(i),l||(b(c),C(c),oe(null))},[c,l,i]),(0,k.useLayoutEffect)(()=>{if(!(l&&n))return;O(n);let e=g.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{O(n)});return t.observe(e),()=>{t.disconnect()}},[O,n,l]),(0,k.useEffect)(()=>{l&&(v.current=!1)},[r,l]),(0,k.useEffect)(()=>{let e=g.current;if(e)return e.addEventListener(`wheel`,de,{passive:!1}),()=>{e.removeEventListener(`wheel`,de)}},[de]),(0,k.useEffect)(()=>{let e=_.current;if(e&&E)return document.body.style.userSelect=`none`,e.addEventListener(`pointermove`,pe,{passive:!1}),e.addEventListener(`pointerup`,me),e.addEventListener(`pointercancel`,me),()=>{document.body.style.userSelect=``,e.removeEventListener(`pointermove`,pe),e.removeEventListener(`pointerup`,me),e.removeEventListener(`pointercancel`,me)}},[E,pe,me]);let he=!u&&l&&ae!=null?{height:ae}:void 0;return(0,q.jsxs)(`div`,{className:m(`relative flex flex-col`,u?`h-full w-full`:`min-h-28 w-full`,t),ref:g,style:{cursor:E?`grabbing`:`grab`,...he},children:[s?(0,q.jsxs)(`div`,{className:m(`absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm`,u?`bottom-4 left-4`:`bottom-2 left-2`),children:[(0,q.jsx)(`button`,{"aria-label":h.zoomIn,className:m(`flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`),disabled:S>=a,onClick:ce,title:h.zoomIn,type:`button`,children:(0,q.jsx)(f,{"aria-hidden":`true`,size:16})}),(0,q.jsx)(`button`,{"aria-label":h.zoomOut,className:m(`flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`),disabled:S<=x,onClick:le,title:h.zoomOut,type:`button`,children:(0,q.jsx)(p,{"aria-hidden":`true`,size:16})}),(0,q.jsx)(`button`,{"aria-label":h.resetView,className:m(`flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground`),onClick:ue,title:h.resetView,type:`button`,children:(0,q.jsx)(d,{"aria-hidden":`true`,size:16})})]}):null,(0,q.jsx)(`div`,{className:m(`flex h-full w-full flex-1 origin-center items-center justify-center transition-transform duration-150 ease-out`),onPointerDown:fe,ref:_,role:`application`,style:{transform:`translate(${w.x}px, ${w.y}px) scale(${S})`,transformOrigin:`center center`,touchAction:`none`,willChange:`transform`},children:e})]})},QC=(e,t)=>new Promise(n=>{let r=setTimeout(n,e);t(()=>{clearTimeout(r),n()})}),$C=async(e,{chart:t,config:n},r,i)=>{try{let i=e.getMermaid(n),a=t.split(``).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),o=`mermaid-${Math.abs(a)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:s}=await i.render(o,t),c=hx(s);return{ok:!0,svg:r?s:gx(s),size:c}}catch(e){return{ok:!1,error:e instanceof Error?e.message:i}}},ew=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let a=X(),[o,s]=(0,k.useState)(null),[c,l]=(0,k.useState)(!1),[u,d]=(0,k.useState)(``),[f,p]=(0,k.useState)(null),m=Bb(),[h,g]=(0,k.useState)(``),[_,v]=(0,k.useState)(0),{mermaid:y}=(0,k.useContext)(BC),b=rx(),x=y?.errorComponent,{shouldRender:ee,containerRef:S}=Py({immediate:r}),C=(0,k.useRef)(null),w=(0,k.useRef)(!1),T=(0,k.useRef)(!1),E=pb(),D=(0,k.useRef)(E),te=(0,k.useRef)(null);(0,k.useEffect)(()=>(T.current=!0,()=>{var e;T.current=!1,(e=te.current)==null||e.call(te)}),[]),(0,k.useEffect)(()=>{var e;D.current=E,E||(e=te.current)==null||e.call(te)},[E]);let ne=async e=>{D.current&&(await QC(e,e=>{te.current=e}),te.current=null)};if((0,k.useEffect)(()=>{if(!ee)return;if(!b){s(`Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.`);return}if(C.current={chart:e,config:n},w.current)return;let t=(e,t)=>{t.ok?(d(t.svg),p(t.size),g(t.svg)):e===C.current&&s(t.error)};(async()=>{w.current=!0,s(null),l(!0);try{let e=C.current;for(;e;){let n=performance.now(),i=await $C(b,e,r,m.errorMermaid);if(!T.current||(t(e,i),i.ok&&await ne(performance.now()-n),!T.current||e===C.current))return;e=C.current}}finally{w.current=!1,T.current&&l(!1)}})()},[e,n,_,ee,b]),!(ee||u||h))return(0,q.jsx)(`div`,{className:a(`my-4 min-h-[200px]`,t),ref:S});if(c&&!u&&!h)return(0,q.jsx)(`div`,{className:a(`my-4 flex justify-center p-4`,t),ref:S,children:(0,q.jsxs)(`div`,{className:a(`flex items-center space-x-2 text-muted-foreground`),children:[(0,q.jsx)(`div`,{className:a(`h-4 w-4 animate-spin rounded-full border-current border-b-2`)}),(0,q.jsx)(`span`,{className:a(`text-sm`),children:`Loading diagram...`})]})});if(o&&!u&&!h)return x?(0,q.jsx)(`div`,{ref:S,children:(0,q.jsx)(x,{chart:e,error:o,retry:()=>v(e=>e+1)})}):(0,q.jsxs)(`div`,{className:a(`rounded-md bg-red-50 p-4`,t),ref:S,children:[(0,q.jsxs)(`p`,{className:a(`font-mono text-red-700 text-sm`),children:[`Mermaid Error: `,o]}),(0,q.jsxs)(`details`,{className:a(`mt-2`),children:[(0,q.jsx)(`summary`,{className:a(`cursor-pointer text-red-600 text-xs`),children:`Show Code`}),(0,q.jsx)(`pre`,{className:a(`mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs`),children:e})]})]});let re=u||h;return(0,q.jsx)(`div`,{className:a(r?`size-full`:`max-h-[min(70vh,40rem)] w-full`,t),"data-streamdown":`mermaid`,ref:S,children:(0,q.jsx)(ZC,{className:a(r?`size-full overflow-hidden`:`max-h-[min(70vh,40rem)] overflow-hidden`,t),contentSize:f,fitKey:e,fullscreen:r,isAutoFit:!0,maxZoom:3,minZoom:.1,showControls:i,zoomStep:.1,children:(0,q.jsx)(`div`,{"aria-label":m.mermaidAriaLabel,className:a(`flex justify-center`,r?`size-full items-center`:null),dangerouslySetInnerHTML:{__html:re},role:`img`})})})},tw=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,rw=Object.getOwnPropertyNames,iw=Object.prototype.hasOwnProperty,aw=(e,t)=>{let n={};for(var r in e)tw(n,r,{get:e[r],enumerable:!0});return t||tw(n,Symbol.toStringTag,{value:`Module`}),n},ow=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=rw(t),a=0,o=i.length,s;a<o;a++)s=i[a],!iw.call(e,s)&&s!==n&&tw(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=nw(t,s))||r.enumerable});return e},sw=(e,t,n)=>(ow(e,t,`default`),n&&ow(n,t,`default`)),cw=[{id:`abap`,name:`ABAP`,import:(()=>l(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>l(()=>import(`./actionscript-3-Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>l(()=>import(`./ada-X3Y2mlq2.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>l(()=>import(`./ahk-DwADkxyd.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>l(()=>import(`./ahk2-_6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>l(()=>import(`./angular-html-eqw-2yo2.js`).then(e=>e.n),__vite__mapDeps([3,1,4,5,6])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>l(()=>import(`./angular-ts-DXvKrRgw.js`),__vite__mapDeps([7,3,1,4,5,6,8])))},{id:`apache`,name:`Apache Conf`,import:(()=>l(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>l(()=>import(`./apex-KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>l(()=>import(`./apl-C0Q1qKaB.js`),__vite__mapDeps([9,5,1,6,4,10,11,12])))},{id:`applescript`,name:`AppleScript`,import:(()=>l(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>l(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>l(()=>import(`./asciidoc-SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>l(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>l(()=>import(`./astro-BRsBBqZx.js`),__vite__mapDeps([13,5,1,6,12,14,15,16])))},{id:`awk`,name:`AWK`,import:(()=>l(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>l(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>l(()=>import(`./bat-qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>l(()=>import(`./beancount-C2IN4Vk8.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>l(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>l(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>l(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>l(()=>import(`./bird2-CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>l(()=>import(`./blade-DWA9F7Jh.js`),__vite__mapDeps([17,5,1,6,4,10,11,12,18,19])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>l(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([20,21])))},{id:`c`,name:`C`,import:(()=>l(()=>import(`./c-DXTobAxy.js`).then(e=>e.n),__vite__mapDeps([22,1])))},{id:`c3`,name:`C3`,import:(()=>l(()=>import(`./c3-D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>l(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>l(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([23,24])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>l(()=>import(`./chapel-B_RBndg0.js`),__vite__mapDeps([25,22,1])))},{id:`clarity`,name:`Clarity`,import:(()=>l(()=>import(`./clarity-CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>l(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>l(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>l(()=>import(`./cobol-BNJvYbzT.js`),__vite__mapDeps([26,4,1,5,6,11])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>l(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>l(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>l(()=>import(`./coffee-CXBjow8Z.js`),__vite__mapDeps([27,5,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>l(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>l(()=>import(`./coq-CGaSfhwR.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>l(()=>import(`./cpp-Dur7ovrV.js`).then(e=>e.n),__vite__mapDeps([28,1,29,30,22])))},{id:`crystal`,name:`Crystal`,import:(()=>l(()=>import(`./crystal-DGFYOZ9j.js`),__vite__mapDeps([31,5,1,6,4,19,22,32])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>l(()=>import(`./csharp-dmMxLVLW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>l(()=>import(`./css-D--wukv8.js`).then(e=>e.n),__vite__mapDeps([6,1])))},{id:`csv`,name:`CSV`,import:(()=>l(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>l(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>l(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>l(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>l(()=>import(`./dart-CHZY9Xhz.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>l(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>l(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>l(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>l(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>l(()=>import(`./dotenv-CuH5my32.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>l(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>l(()=>import(`./edge-BnIfbFaD.js`),__vite__mapDeps([33,4,1,5,6,14,18])))},{id:`elixir`,name:`Elixir`,import:(()=>l(()=>import(`./elixir-CVF9oLGV.js`),__vite__mapDeps([34,4,1,5,6])))},{id:`elm`,name:`Elm`,import:(()=>l(()=>import(`./elm-Ds4ymMkP.js`),__vite__mapDeps([35,30,1,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>l(()=>import(`./emacs-lisp-DR2vtWaj.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>l(()=>import(`./erb-BsNpXne8.js`),__vite__mapDeps([36,4,1,5,6,37,10,11,19,22,28,29,30,32,38,39,14,16,40,41,42])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>l(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([43,44])))},{id:`fennel`,name:`Fennel`,import:(()=>l(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>l(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>l(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>l(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([45,46])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>l(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>l(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([47,44])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>l(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([48,49,50])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>l(()=>import(`./gdscript-DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>l(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>l(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>l(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>l(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([51,52])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>l(()=>import(`./git-rebase-Dxgm0sfK.js`),__vite__mapDeps([53,32,1])))},{id:`gleam`,name:`Gleam`,import:(()=>l(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>l(()=>import(`./glimmer-js-CEZjvX3D.js`),__vite__mapDeps([54,5,1,6,4,14])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>l(()=>import(`./glimmer-ts-CfeYEcaL.js`),__vite__mapDeps([55,5,1,6,4,14])))},{id:`glsl`,name:`GLSL`,import:(()=>l(()=>import(`./glsl-Bz3dmP-W.js`).then(e=>e.n),__vite__mapDeps([30,1,22])))},{id:`gn`,name:`GN`,import:(()=>l(()=>import(`./gn-CAXYAgV-.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>l(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>l(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>l(()=>import(`./graphql-BrkSdiIX.js`).then(e=>e.n),__vite__mapDeps([39,1,5,14,16,40])))},{id:`groovy`,name:`Groovy`,import:(()=>l(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>l(()=>import(`./hack-BFxGrQAJ.js`),__vite__mapDeps([56,4,1,5,6,19])))},{id:`haml`,name:`Ruby Haml`,import:(()=>l(()=>import(`./haml-CtWGSw4_.js`).then(e=>e.n),__vite__mapDeps([38,1,5,6])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>l(()=>import(`./handlebars-DNhI4MQT.js`),__vite__mapDeps([57,5,1,6,4,42])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>l(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>l(()=>import(`./haxe-C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>l(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>l(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>l(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>l(()=>import(`./html-4B4fQhDp.js`).then(e=>e.n),__vite__mapDeps([4,1,5,6])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>l(()=>import(`./html-derivative-5USgv_Gz.js`),__vite__mapDeps([18,4,1,5,6])))},{id:`http`,name:`HTTP`,import:(()=>l(()=>import(`./http-Xn6t5uq9.js`),__vite__mapDeps([58,10,1,11,12,32,39,5,14,16,40])))},{id:`hurl`,name:`Hurl`,import:(()=>l(()=>import(`./hurl-D3op70gp.js`),__vite__mapDeps([59,10,1,11,60,39,5,14,16,40])))},{id:`hxml`,name:`HXML`,import:(()=>l(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([61,62])))},{id:`hy`,name:`Hy`,import:(()=>l(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>l(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>l(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>l(()=>import(`./java-C89_nAvH.js`).then(e=>e.n),__vite__mapDeps([11,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>l(()=>import(`./javascript-fLLoj7jj.js`).then(e=>e.n),__vite__mapDeps([5,1])))},{id:`jinja`,name:`Jinja`,import:(()=>l(()=>import(`./jinja-CmiqWXMd.js`),__vite__mapDeps([63,4,1,5,6])))},{id:`jison`,name:`Jison`,import:(()=>l(()=>import(`./jison-DcZp3tw4.js`),__vite__mapDeps([64,5,1])))},{id:`json`,name:`JSON`,import:(()=>l(()=>import(`./json-CMa1RJnc.js`).then(e=>e.n),__vite__mapDeps([12,1])))},{id:`json5`,name:`JSON5`,import:(()=>l(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>l(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>l(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>l(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>l(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>l(()=>import(`./jsx-Pcd_3itl.js`).then(e=>e.n),__vite__mapDeps([40,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>l(()=>import(`./julia-KN3eYzC2.js`),__vite__mapDeps([65,5,1,19,24,28,29,30,22,66])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>l(()=>import(`./just-D8SFQ4KC.js`),__vite__mapDeps([67,5,1,14,24,32,37,6,4,10,11,19,22,28,29,30,38,39,16,40,41,42,68])))},{id:`kdl`,name:`KDL`,import:(()=>l(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>l(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>l(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>l(()=>import(`./latex-oHUlkozR.js`),__vite__mapDeps([69,70,1,66])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>l(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>l(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>l(()=>import(`./liquid-FOBViTA4.js`),__vite__mapDeps([71,5,1,6,4,12])))},{id:`llvm`,name:`LLVM IR`,import:(()=>l(()=>import(`./llvm-DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>l(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>l(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>l(()=>import(`./lua-Aso1T3OO.js`).then(e=>e.n),__vite__mapDeps([41,1,22])))},{id:`luau`,name:`Luau`,import:(()=>l(()=>import(`./luau-VGWVLoqX.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>l(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>l(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>l(()=>import(`./marko-Cbb4Jjj7.js`),__vite__mapDeps([72,6,1,8,14,73])))},{id:`matlab`,name:`MATLAB`,import:(()=>l(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>l(()=>import(`./mdc-jkS7bIw_.js`),__vite__mapDeps([74,18,4,1,5,6,42,44])))},{id:`mdx`,name:`MDX`,import:(()=>l(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>l(()=>import(`./mermaid-BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>l(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>l(()=>import(`./mojo-fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>l(()=>import(`./moonbit-D9W784E_.js`),[]))},{id:`move`,name:`Move`,import:(()=>l(()=>import(`./move-BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>l(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>l(()=>import(`./nextflow-CSgcYZcx.js`),__vite__mapDeps([75,76])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>l(()=>import(`./nextflow-groovy-D7IRt6Pp.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>l(()=>import(`./nginx-BfgWChTY.js`),__vite__mapDeps([77,41,1,22])))},{id:`nim`,name:`Nim`,import:(()=>l(()=>import(`./nim-CWTUFOFC.js`),__vite__mapDeps([78,5,1,6,4,10,11,22,30,44])))},{id:`nix`,name:`Nix`,import:(()=>l(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>l(()=>import(`./nsis-CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>l(()=>import(`./nushell--0fT3PI1.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>l(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>l(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>l(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>l(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>l(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>l(()=>import(`./org-N_Z_Rsos.js`),__vite__mapDeps([79,5,1,6,4,8,11,10,12,14,16,19,22,24,80,27,29,28,30,32,81,82,52,83,34,41,42,37,38,39,40,44,43,51,53,84,85,86,66,68,69,70,73,87,78,88,89,90,91,92,93,94,95,96])))},{id:`pascal`,name:`Pascal`,import:(()=>l(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>l(()=>import(`./perl-EO-CkAaJ.js`),__vite__mapDeps([68,5,1,6,4,10,11,19])))},{id:`php`,name:`PHP`,import:(()=>l(()=>import(`./php-BuM__Kin.js`),__vite__mapDeps([90,5,1,6,4,10,11,12,19])))},{id:`pkl`,name:`Pkl`,import:(()=>l(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>l(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>l(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>l(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>l(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>l(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>l(()=>import(`./powershell-QtSnmXcu.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>l(()=>import(`./prisma-DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>l(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>l(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>l(()=>import(`./pug-3z67OXkX.js`),__vite__mapDeps([97,5,1,6,4])))},{id:`puppet`,name:`Puppet`,import:(()=>l(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>l(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>l(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>l(()=>import(`./qml-01xckBqI.js`),__vite__mapDeps([98,5,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>l(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>l(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>l(()=>import(`./r-BEspGz5U.js`).then(e=>e.n),__vite__mapDeps([66,1])))},{id:`racket`,name:`Racket`,import:(()=>l(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>l(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>l(()=>import(`./razor-zLvpxB04.js`),__vite__mapDeps([99,4,1,5,6,81])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>l(()=>import(`./rbs-C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>l(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>l(()=>import(`./regexp-2uCdkyjn.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`rel`,name:`Rel`,import:(()=>l(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>l(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>l(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>l(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>l(()=>import(`./rst-BAFuuY9O.js`),__vite__mapDeps([100,5,1,18,4,6,24,101,28,29,30,22,32,42,37,10,11,19,38,39,14,16,40,41])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>l(()=>import(`./ruby-BhTAkxsN.js`),__vite__mapDeps([37,5,1,6,4,10,11,19,22,28,29,30,32,38,39,14,16,40,41,42])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>l(()=>import(`./rust-DpiIf5JO.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>l(()=>import(`./sas-cLyv6Fcf.js`),__vite__mapDeps([102,19,1])))},{id:`sass`,name:`Sass`,import:(()=>l(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>l(()=>import(`./scala-BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>l(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>l(()=>import(`./scss-CuMU8xxQ.js`).then(e=>e.n),__vite__mapDeps([8,1,6])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>l(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>l(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([103,104])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>l(()=>import(`./shellscript-CIVHuubL.js`).then(e=>e.n),__vite__mapDeps([32,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>l(()=>import(`./shellsession-Q-CZymqp.js`),__vite__mapDeps([105,32,1])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>l(()=>import(`./smalltalk-BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>l(()=>import(`./smithy-Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>l(()=>import(`./solidity-Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>l(()=>import(`./soy-6_zQhlB4.js`),__vite__mapDeps([106,4,1,5,6])))},{id:`sparql`,name:`SPARQL`,import:(()=>l(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([107,108])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>l(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>l(()=>import(`./sql-BKOpOcZJ.js`).then(e=>e.n),__vite__mapDeps([19,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>l(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>l(()=>import(`./stata-Dszynl2A.js`),__vite__mapDeps([109,19,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>l(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>l(()=>import(`./surrealql-CJ_96IWu.js`),__vite__mapDeps([110,5,1])))},{id:`svelte`,name:`Svelte`,import:(()=>l(()=>import(`./svelte-NpUupHVH.js`),__vite__mapDeps([111,5,1,6,14,15])))},{id:`swift`,name:`Swift`,import:(()=>l(()=>import(`./swift-CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>l(()=>import(`./system-verilog-Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>l(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>l(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>l(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>l(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>l(()=>import(`./templ-CyP0pWR3.js`),__vite__mapDeps([112,5,1,6,84])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>l(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>l(()=>import(`./tex-CytQUzlH.js`).then(e=>e.n),__vite__mapDeps([70,1,66])))},{id:`toml`,name:`TOML`,import:(()=>l(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>l(()=>import(`./ts-tags-BIR92NxC.js`),__vite__mapDeps([113,5,1,6,4,10,11,14,19,30,22])))},{id:`tsv`,name:`TSV`,import:(()=>l(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>l(()=>import(`./tsx-CIAbbp5B.js`).then(e=>e.n),__vite__mapDeps([16,1])))},{id:`turtle`,name:`Turtle`,import:(()=>l(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>l(()=>import(`./twig-CU7ywlei.js`),__vite__mapDeps([114,5,1,6,8,24,37,4,10,11,19,22,28,29,30,32,38,39,14,16,40,41,42,90,12])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>l(()=>import(`./typescript-CQ8q_7xQ.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>l(()=>import(`./typespec-BGhR2SqG.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>l(()=>import(`./typst-o6zd86DN.js`),__vite__mapDeps([115,5,1,6,4,8,11,10,12,14,16,116,117,19,22,24,80,27,29,28,30,32,81,82,52,83,34,41,42,37,38,39,40,44,43,47,51,53,84,85,57,86,118,66,65,68,69,70,73,119,87,88,90,91,92,93,94,96,120,97,121,122,114,123])))},{id:`v`,name:`V`,import:(()=>l(()=>import(`./v-DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>l(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>l(()=>import(`./vb-DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>l(()=>import(`./verilog-B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>l(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>l(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>l(()=>import(`./vue-Did2plkZ.js`),__vite__mapDeps([124,5,1,6,4,12,14,18])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>l(()=>import(`./vue-html-DzASeTVq.js`),__vite__mapDeps([125,5,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>l(()=>import(`./vue-vine-D1rbSuQE.js`),__vite__mapDeps([126,5,1,6,8,15,73,127])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>l(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>l(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>l(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>l(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>l(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>l(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>l(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>l(()=>import(`./xml-C1tPjmlx.js`).then(e=>e.n),__vite__mapDeps([10,1,11])))},{id:`xsl`,name:`XSL`,import:(()=>l(()=>import(`./xsl-BylmE8mU.js`),__vite__mapDeps([96,10,1,11])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>l(()=>import(`./yaml-BwWHG_5l.js`).then(e=>e.n),__vite__mapDeps([42,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>l(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>l(()=>import(`./zig-CMLA9XwU.js`),[]))}],lw=Object.fromEntries(cw.map(e=>[e.id,e.import])),uw=Object.fromEntries(cw.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),dw={...lw,...uw},fw=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>l(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>l(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>l(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>l(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>l(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>l(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>l(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>l(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>l(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>l(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>l(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>l(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>l(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>l(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>l(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>l(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>l(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>l(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>l(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>l(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>l(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>l(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>l(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>l(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>l(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>l(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>l(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>l(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>l(()=>import(`./horizon-bright-DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>l(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>l(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>l(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>l(()=>import(`./kanagawa-wave-BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>l(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>l(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>l(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>l(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>l(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>l(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>l(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>l(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>l(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>l(()=>import(`./monokai-BscAjiQZ.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>l(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>l(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>l(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>l(()=>import(`./one-dark-pro-C6YyR8OD.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>l(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>l(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>l(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>l(()=>import(`./red-CYlAq2b0.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>l(()=>import(`./rose-pine-aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>l(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>l(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>l(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>l(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>l(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>l(()=>import(`./solarized-dark-b97czJOk.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>l(()=>import(`./solarized-light-DFPxpIYQ.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>l(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>l(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>l(()=>import(`./vesper-DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>l(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>l(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>l(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),pw=t({createOnigurumaEngine:()=>Vw,getDefaultWasmLoader:()=>Bw,loadWasm:()=>Pw,setDefaultWasmLoader:()=>zw}),mw=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function hw(){return 2147483648}function gw(){return typeof performance<`u`?performance.now():Date.now()}var _w=(e,t)=>e+(t-e%t)%t;async function vw(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=hw();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,_w(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:gw,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var yw=Object.defineProperty,bw=(e,t,n)=>t in e?yw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xw=(e,t,n)=>bw(e,typeof t==`symbol`?t:t+``,n),Sw=null;function Cw(e){throw new mw(e.UTF8ToString(e.getLastOnigError()))}var ww=class e{constructor(t){xw(this,`utf16Length`),xw(this,`utf8Length`),xw(this,`utf16Value`),xw(this,`utf8Value`),xw(this,`utf16OffsetToUtf8`),xw(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Tw=class e{constructor(t){if(xw(this,`id`,++e.LAST_ID),xw(this,`_onigBinding`),xw(this,`content`),xw(this,`utf16Length`),xw(this,`utf8Length`),xw(this,`utf16OffsetToUtf8`),xw(this,`utf8OffsetToUtf16`),xw(this,`ptr`),!Sw)throw new mw(`Must invoke loadWasm first.`);this._onigBinding=Sw,this.content=t;let n=new ww(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Sw.omalloc(1e4),e._sharedPtrInUse=!0,Sw.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Sw)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};xw(Tw,`LAST_ID`,0),xw(Tw,`_sharedPtr`,0),xw(Tw,`_sharedPtrInUse`,!1);var Ew=Tw,Dw=class{constructor(e){if(xw(this,`_onigBinding`),xw(this,`_ptr`),!Sw)throw new mw(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new ww(e[r]);t[r]=i.createString(Sw),n[r]=i.utf8Length}let r=Sw.omalloc(4*e.length);Sw.HEAPU32.set(t,r/4);let i=Sw.omalloc(4*e.length);Sw.HEAPU32.set(n,i/4);let a=Sw.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Sw.ofree(t[n]);Sw.ofree(i),Sw.ofree(r),a===0&&Cw(Sw),this._onigBinding=Sw,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Ew(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Ow(e){return typeof e.instantiator==`function`}function kw(e){return typeof e.default==`function`}function Aw(e){return e.data!==void 0}function jw(e){return typeof Response<`u`&&e instanceof Response}function Mw(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var Nw;function Pw(e){if(Nw)return Nw;async function t(){Sw=await vw(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Ow(n)?n=await n.instantiator(t):kw(n)?n=await n.default(t):(Aw(n)&&(n=n.data),jw(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Iw(n)(t):await Lw(n)(t):Mw(n)||n instanceof WebAssembly.Module?n=await Fw(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Fw(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Nw=t(),Nw}function Fw(e){return t=>WebAssembly.instantiate(e,t)}function Iw(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Lw(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Rw;function zw(e){Rw=e}function Bw(){return Rw}async function Vw(e){return e&&await Pw(e),{createScanner(e){return new Dw(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Ew(e)}}}var Hw=aw({});sw(Hw,pw);var Q=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Uw(e){return Ww(e)}function Ww(e){return Array.isArray(e)?Gw(e):e instanceof RegExp?e:typeof e==`object`?Kw(e):e}function Gw(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ww(e[n]);return t}function Kw(e){let t={};for(let n in e)t[n]=Ww(e[n]);return t}function qw(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Jw(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Jw(e.substring(0,e.length-1)):e.substr(~t+1)}var Yw=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Xw=class{static hasCaptures(e){return e!==null&&(Yw.lastIndex=0,Yw.test(e))}static replaceCaptures(e,t,n){return e.replace(Yw,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Zw(e,t){return e<t?-1:+(e>t)}function Qw(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Zw(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function $w(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eT(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var tT=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},nT=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(sT(e),t)}static createFromParsedTheme(e,t){return uT(e,t)}_cachedMatchRoot=new tT(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>iT(e.parent,t.parentScopes));return n?new oT(n.fontStyle,n.foreground,n.background):null}},rT=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function iT(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!aT(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function aT(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var oT=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function sT(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&$w(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&$w(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new cT(l,u,e,o,s,c)}}return n}var cT=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},lT=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(lT||{});function uT(e,t){e.sort((e,t)=>{let n=Zw(e.scope,t.scope);return n!==0||(n=Qw(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new dT(t),o=new oT(n,a.getId(r),a.getId(i)),s=new mT(new pT(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new nT(a,o,s)}var dT=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},fT=Object.freeze([]),pT=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||fT,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},mT=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),pT.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null)this._mainRule.acceptOverwrite(e,n,r,i);else{for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Qw(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new pT(e,t,n,r,i))}}},hT=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=_T(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c|0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function gT(e){return e}function _T(e){return e}function vT(e,t){let n=[],r=bT(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(yT(i)){let e=[];do e.push(i),i=r.next();while(yT(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function yT(e){return!!e&&!!e.match(/[\w\.:]+/)}function bT(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function xT(e){typeof e.dispose==`function`&&e.dispose()}var ST=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},CT=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},wT=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},TT=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ST(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new wT;for(let n of e)ET(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ST){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function ET(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof ST?OT({baseGrammar:a,selfGrammar:i},r):DT(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new ST(e))}function DT(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];kT([r],t,n)}}function OT(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&kT(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&kT(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function kT(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?qw({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&kT(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=FT(i);switch(a.kind){case 0:OT({...t,selfGrammar:t.baseGrammar},n);break;case 1:OT(t,n);break;case 2:DT(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?DT(a.ruleName,i,n):OT(i,n)}else a.kind===4?n.add(new CT(a.scopeName,a.ruleName)):n.add(new ST(a.scopeName))}}}var AT=class{kind=0},jT=class{kind=1},MT=class{constructor(e){this.ruleName=e}kind=2},NT=class{constructor(e){this.scopeName=e}kind=3},PT=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function FT(e){if(e===`$base`)return new AT;if(e===`$self`)return new jT;let t=e.indexOf(`#`);return t===-1?new NT(e):t===0?new MT(e.substring(1)):new PT(e.substring(0,t),e.substring(t+1))}var IT=/\\(\d+)/,LT=/\\(\d+)/g,RT=-1,zT=-2;function BT(e){return e}function VT(e){return e}var HT=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Xw.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Xw.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Jw(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Xw.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xw.replaceCaptures(this._contentName,e,t)}},UT=class extends HT{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},WT=class extends HT{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new YT(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XT,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},GT=class extends HT{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XT,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},KT=class extends HT{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new YT(i,this.id),this.beginCaptures=a,this._end=new YT(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XT;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},qT=class extends HT{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new YT(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new YT(o,zT),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XT;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new XT,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},JT=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new UT(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new WT(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=qw({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new GT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new qT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new KT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=FT(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof GT||e instanceof KT||e instanceof qT)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},YT=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&IT.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return LT.lastIndex=0,this.source.replace(LT,(e,t)=>eT(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},XT=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ZT(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ZT(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ZT=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
160
+ ${u}`,i=e.length;break}return i===0?e:r+e.slice(i)},lC=(e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,`gi`);n=n.replace(t,(e,t,n,r)=>sC(t,n,r)),n=cC(n,e)}return n},uC=/([\\`*_~[\]|])/g,dC=e=>e.replace(uC,`\\$1`),fC=(e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,`gi`);n=n.replace(t,(e,t,n,r)=>t+dC(n).replace(/\n\n/g,`&#10;&#10;`)+r)}return n},pC=new Set([`blockquote`,`dd`,`dt`,`figcaption`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`,`p`,`td`,`th`]),mC=new Set([`code`,`kbd`,`pre`,`samp`,`var`]);function hC(e){return e.children.map(e=>e.type===`text`?e.value:e.type===`element`&&!mC.has(e.tagName)?hC(e):``).join(``)}function gC(){return e=>{O(e,`element`,e=>{mC.has(e.tagName)?(e.properties??={},e.properties.dir=`ltr`):pC.has(e.tagName)&&(e.properties??={},typeof e.properties.dir!=`string`&&(e.properties.dir=_S(hC(e))))})}}var _C=e=>e.type===`text`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map(_C).join(``):``,vC=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(e=>e.toLowerCase()));O(t,`element`,e=>{if(n.has(e.tagName.toLowerCase())){let t=_C(e);e.children=t?[{type:`text`,value:t}]:[]}})},yC=()=>e=>{O(e,`code`,e=>{e.meta&&(e.data=e.data??{},e.data.hProperties={...e.data.hProperties??{},metastring:e.meta})})},bC=/^([a-zA-Z][a-zA-Z\d+\-.]*:)/,xC=e=>new Set(e.map(e=>e.trim().toLowerCase()).filter(e=>e.length>0).map(e=>e.endsWith(`:`)?e:`${e}:`));function SC(e,t,n){let r=e.position?.start?.offset;if(typeof r==`number`&&n.charCodeAt(r)===91||e.children.length!==1)return!1;let[i]=e.children;if(i.type!==`text`)return!1;let a=bC.exec(e.url);if(!a)return!1;let o=a[1].toLowerCase();return t.has(o)?o===`mailto:`?e.url===`mailto:${i.value}`:e.url===i.value||e.url===`${o}//${i.value}`:!1}var CC=(e=[])=>{let t=xC(e);return(e,n)=>{if(t.size===0)return;let r=String(n.value??``);O(e,`link`,(e,n,i)=>{if(i&&n!==void 0&&SC(e,t,r))return i.children.splice(n,1,...e.children),n})}},wC=`data-sd-caret-hidden`,TC=()=>{},EC=()=>TC,DC=e=>{let t=(0,k.useRef)(null),n=(0,k.useRef)(null),r=(0,k.useSyncExternalStore)(EC,()=>!0,()=>!1);return(0,k.useLayoutEffect)(()=>{var r;let i=e&&(r=t.current?.lastElementChild)!=null?r:null,a=n.current;a!==i&&(a?.removeAttribute(wC),i?.setAttribute(wC,``),n.current=i)}),{containerRef:t,showCaret:r||!e}},OC=/^[a-z]/,kC=/^[ \t]*<[\w!/?-]/,AC=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,jC=e=>typeof e!=`string`||e.length===0||!kC.test(e)?e:e.replace(AC,`$1`),MC={...Po,clobberPrefix:``,protocols:{...Po.protocols,href:[...Po.protocols?.href??[],`tel`,`streamdown`],src:[...Po.protocols?.src??[],`streamdown`]},attributes:{...Po.attributes,code:[...Po.attributes?.code??[],`metastring`]}},NC={raw:Mo,sanitize:[Zo,MC],harden:[ce,{allowedImagePrefixes:[`*`],allowedLinkPrefixes:[`*`],allowedProtocols:[`*`],defaultOrigin:void 0,allowDataImages:!0}]},PC={gfm:[mf,{}],codeMeta:yC},FC=Object.values(NC),IC=Object.values(PC),LC={block:` ▋`,circle:` ●`},RC=[`github-light`,`github-dark`],zC={enabled:!0},BC=(0,k.createContext)({codeBlockMaxHeight:400,shikiTheme:RC,controls:!0,isAnimating:!1,lineNumbers:!0,mode:`streaming`,mermaid:void 0,linkSafety:zC,portal:void 0,tableMaxHeight:300}),VC=(0,k.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:o,...s})=>{(0,k.useLayoutEffect)(()=>{o?.commit()});let c=typeof e==`string`&&n?jC(e):e,l=(0,q.jsx)(DS,{...s,children:c});return(0,q.jsx)(fb.Provider,{value:i,children:a?(0,q.jsx)(`div`,{dir:a,style:{display:`contents`},children:l}):l})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>e.components?.[n]!==t.components?.[n]))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins&&!!e.animatePlugin==!!t.animatePlugin});VC.displayName=`Block`;var HC=e=>{let t={};for(let[n,r]of Object.entries(e))(n.startsWith(`data-`)||n.startsWith(`aria-`))&&(t[n]=r);return t},UC=(e,t)=>{let n=HC(e),r=HC(t),i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>Object.hasOwn(r,e)&&n[e]===r[e])},WC=(0,k.memo)(({children:e,mode:t=`streaming`,dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:i=!1,components:a,rehypePlugins:o=FC,remarkPlugins:s=IC,className:c,shikiTheme:l,mermaid:u,codeBlockMaxHeight:d=400,controls:f=!0,isAnimating:p=!1,tableMaxHeight:m=300,animated:h,BlockComponent:g=VC,parseMarkdownIntoBlocksFn:_=rC,caret:v,plugins:y,remend:b,linkSafety:x=zC,portal:ee,lineNumbers:S=!0,allowedTags:C,fallbackComponent:w,literalTagContent:T,disableAutolinkProtocols:E,translations:D,icons:te,prefix:ne,onAnimationStart:re,onAnimationEnd:ie,...ae})=>{let oe=(0,k.useId)(),O=HC(ae),se=(0,k.useMemo)(()=>gb(ne),[ne]),ce=(0,k.useRef)(null),le=(0,k.useRef)(re),ue=(0,k.useRef)(ie);le.current=re,ue.current=ie,(0,k.useEffect)(()=>{var e,n,r;if(t===`static`)return;let i=ce.current;ce.current=p,i===null?p&&((e=le.current)==null||e.call(le)):p&&!i?(n=le.current)==null||n.call(le):!p&&i&&((r=ue.current)==null||r.call(ue))},[p,t]);let de=(0,k.useMemo)(()=>C?Object.keys(C):[],[C]),fe=(0,k.useMemo)(()=>{if(typeof e!=`string`)return``;let n=t===`streaming`&&r?Mm(e,b):e;return T&&T.length>0&&(n=fC(n,T)),de.length>0&&(n=lC(n,de)),n},[e,t,r,b,de,T]),pe=(0,k.useMemo)(()=>_(fe),[fe,_]),me=(0,k.useMemo)(()=>n===`auto`?pe.map(_S):void 0,[pe,n]),he=(0,k.useMemo)(()=>pe.map((e,t)=>`${oe}-${t}`),[pe.length,oe]),ge=(0,k.useMemo)(()=>h===!0?`true`:h?JSON.stringify(h):``,[h]),_e=(0,k.useRef)(null),ve=(0,k.useRef)([]),ye=(0,k.useRef)([]),be=(0,k.useRef)(null),xe=(0,k.useRef)(``);ge?(xe.current===ge?_e.current||=Ry():(xe.current=ge,_e.current=Ry({maxBacklogMs:ge===`true`?void 0:h.maxBacklogMs}),ve.current=[],ye.current=[]),p&&_e.current&&_e.current.beginPass(_e.current.now())):(_e.current=null,ve.current=[],ye.current=[],xe.current=``),(0,k.useLayoutEffect)(()=>{var e;p&&((e=_e.current)==null||e.commitPass())});let Se=(0,k.useMemo)(()=>({codeBlockMaxHeight:d,shikiTheme:l??(y?.code)?.getThemes()??RC,controls:f,isAnimating:p,lineNumbers:S,mode:t,mermaid:u,linkSafety:x,portal:ee,tableMaxHeight:m}),[d,l,f,p,S,t,u,x,ee,y?.code,m]),Ce=(0,k.useMemo)(()=>D?JSON.stringify(D):``,[D]),we=(0,k.useMemo)(()=>({...Rb,...D}),[Ce]),Te=(0,k.useMemo)(()=>{let{inlineCode:e,...t}=a??{},n={...mS,...t};if(e){let t=n.code;n.code=n=>`data-block`in n?t?(0,k.createElement)(t,n):null:(0,k.createElement)(e,n)}if(w){if(C)for(let e of Object.keys(C))Object.hasOwn(n,e)||(n[e]=w);let e={configurable:!0,enumerable:!1,value:w,writable:!1};return new Proxy(n,{getOwnPropertyDescriptor(t,n){let r=Object.getOwnPropertyDescriptor(t,n);if(r)return r;if(typeof n==`string`&&OC.test(n))return e},get(e,t,n){return typeof t==`string`&&OC.test(t)&&!Object.hasOwn(e,t)?w:Reflect.get(e,t,n)}})}return n},[a,w,C]),Ee=(0,k.useMemo)(()=>{let e=[];return y!=null&&y.cjk&&(e=[...e,...y.cjk.remarkPluginsBefore]),e=[...e,...s],E&&E.length>0&&(e=[...e,[CC,E]]),y!=null&&y.cjk&&(e=[...e,...y.cjk.remarkPluginsAfter]),y!=null&&y.math&&(e=[...e,y.math.remarkPlugin]),e},[s,y?.math,y?.cjk,E]),De=(0,k.useMemo)(()=>{let e=o;if(C&&Object.keys(C).length>0&&o===FC){let t={...MC,tagNames:[...MC.tagNames??[],...Object.keys(C)],attributes:{...MC.attributes,...C}};e=[NC.raw,[Zo,t],NC.harden]}return T&&T.length>0&&(e=[...e,[vC,T]]),y!=null&&y.math&&(e=[...e,y.math.rehypePlugin]),n===`auto`&&t===`static`&&(e=[...e,gC]),e},[o,y?.math,C,T,n,t]),Oe=(0,k.useMemo)(()=>v&&p?{"--streamdown-caret":`"${LC[v]}"`}:void 0,[v,p]),{containerRef:ke,showCaret:Ae}=DC((0,k.useMemo)(()=>{if(!p||pe.length===0)return!1;let e=pe.at(-1);return bS(e)||xS(e)},[p,pe])),je=e=>{let t=null;if(_e.current&&p){if(!ve.current[e]){let{maxBacklogMs:t,...n}=ge&&ge!==`true`?h:{};ve.current[e]=ub({...n,timeline:_e.current})}t=ve.current[e]}be.current!==De&&(ye.current=[],be.current=De),t&&!ye.current[e]&&(ye.current[e]=[...De,t.rehypePlugin]);let n=t&&ye.current[e]?ye.current[e]:De;return{blockAnimatePlugin:t,blockRehypePlugins:n}};return t===`static`?(0,q.jsx)(zb.Provider,{value:we,children:(0,q.jsx)(ex.Provider,{value:y??null,children:(0,q.jsx)(BC.Provider,{value:Se,children:(0,q.jsx)(Ib,{icons:te,children:(0,q.jsx)(vb.Provider,{value:se,children:(0,q.jsx)(`div`,{...O,className:se(`space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,c),dir:n===`auto`?void 0:n,children:(0,q.jsx)(DS,{components:Te,rehypePlugins:De,remarkPlugins:Ee,...ae,children:fe})})})})})})}):(0,q.jsx)(zb.Provider,{value:we,children:(0,q.jsx)(ex.Provider,{value:y??null,children:(0,q.jsx)(BC.Provider,{value:Se,children:(0,q.jsx)(Ib,{icons:te,children:(0,q.jsx)(vb.Provider,{value:se,children:(0,q.jsxs)(`div`,{...O,className:se(`space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,v&&Ae?`[&>*:last-child:not([data-sd-caret-hidden])]:after:inline [&>*:last-child:not([data-sd-caret-hidden])]:after:align-baseline [&>*:last-child:not([data-sd-caret-hidden])]:after:content-[var(--streamdown-caret)]`:null,c),ref:ke,style:Oe,children:[pe.length===0&&v&&p&&(0,q.jsx)(`span`,{}),pe.map((e,t)=>{let a=t===pe.length-1,o=p&&a&&bS(e),{blockAnimatePlugin:s,blockRehypePlugins:c}=je(t);return(0,q.jsx)(g,{animatePlugin:s,components:Te,content:e,dir:me?.[t]??(n===`auto`?void 0:n),index:t,isIncomplete:o,rehypePlugins:c,remarkPlugins:Ee,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:r,...ae},he[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&e.disableAutolinkProtocols===t.disableAutolinkProtocols&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir&&e.fallbackComponent===t.fallbackComponent&&UC(e,t));WC.displayName=`Streamdown`;var GC=e=>e>0?e:null,KC=(e,t)=>{if(e.endsWith(`px`))return GC(Number.parseFloat(e));if(e.endsWith(`rem`)){let t=Number.parseFloat(getComputedStyle(document.documentElement).fontSize||`16`);return GC(Number.parseFloat(e)*t)}if(e.endsWith(`em`)){let n=Number.parseFloat(getComputedStyle(t).fontSize||`16`);return GC(Number.parseFloat(e)*n)}if(e.endsWith(`vh`))return GC(Number.parseFloat(e)/100*window.innerHeight);if(e.endsWith(`%`)){let n=t.parentElement;return n&&n.clientHeight>0?GC(Number.parseFloat(e)/100*n.clientHeight):null}return null},qC=(e,t)=>{let n=t.trim().toLowerCase();return!n||n===`none`||n===`auto`?null:KC(n,e)},JC=/^min\(\s*([^,]+)\s*,\s*([^)]+)\s*\)$/i,YC=(e,t)=>{let n=qC(e,t);if(n!=null)return n;let r=t.trim().match(JC);if(!r)return null;let i=qC(e,r[1].trim()),a=qC(e,r[2].trim());return i==null||a==null?null:Math.min(i,a)},XC=(e,t,n)=>{let r=t.clientWidth;if(!(r>0))return null;if(n){let n=t.clientHeight;if(!(n>0))return null;let i=Math.min(r/e.width,n/e.height,1);return!(i>0)||Number.isNaN(i)?null:{fitZoom:i,viewportHeight:null}}let i=Math.min(r/e.width,1);if(!(i>0)||Number.isNaN(i))return null;let a=e.height*i,o=null,s=t;for(;s&&o==null;){let e=getComputedStyle(s);o=YC(s,e.maxHeight),s=s.parentElement}let c=o==null?a:Math.min(a,o),l=Math.min(i,c/e.height,1);return!(l>0)||Number.isNaN(l)?null:{fitZoom:l,viewportHeight:c}},ZC=({children:e,className:t,contentSize:n,fitKey:r,minZoom:i=.5,maxZoom:a=3,zoomStep:o=.1,showControls:s=!0,initialZoom:c=1,isAutoFit:l=!1,fullscreen:u=!1})=>{let{RotateCcwIcon:d,ZoomInIcon:f,ZoomOutIcon:p}=Lb(),m=X(),h=Bb(),g=(0,k.useRef)(null),_=(0,k.useRef)(null),v=(0,k.useRef)(!1),[y,b]=(0,k.useState)(c),[x,ee]=(0,k.useState)(i),[S,C]=(0,k.useState)(c),[w,T]=(0,k.useState)({x:0,y:0}),[E,D]=(0,k.useState)(!1),[te,ne]=(0,k.useState)({x:0,y:0}),[re,ie]=(0,k.useState)({x:0,y:0}),[ae,oe]=(0,k.useState)(null),O=(0,k.useCallback)(e=>{let t=g.current;if(!t)return;let n=XC(e,t,u);if(!n)return;let{fitZoom:r,viewportHeight:a}=n;oe(a),b(r),ee(Math.min(i,r)),v.current||(C(r),T({x:0,y:0}))},[u,i]),se=(0,k.useCallback)(e=>{C(t=>Math.max(x,Math.min(a,t+e))),v.current=!0},[x,a]),ce=(0,k.useCallback)(()=>{se(o)},[se,o]),le=(0,k.useCallback)(()=>{se(-o)},[se,o]),ue=(0,k.useCallback)(()=>{C(y),T({x:0,y:0}),v.current=!1},[y]),de=(0,k.useCallback)(e=>{e.preventDefault();let t=e.deltaY>0?-o:o;se(t)},[se,o]),fe=(0,k.useCallback)(e=>{if(e.button!==0||e.isPrimary===!1)return;D(!0),v.current=!0,ne({x:e.clientX,y:e.clientY}),ie(w);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[w]),pe=(0,k.useCallback)(e=>{if(!E)return;e.preventDefault();let t=e.clientX-te.x,n=e.clientY-te.y;T({x:re.x+t,y:re.y+n})},[E,te,re]),me=(0,k.useCallback)(e=>{D(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);(0,k.useEffect)(()=>{ee(i),l||(b(c),C(c),oe(null))},[c,l,i]),(0,k.useLayoutEffect)(()=>{if(!(l&&n))return;O(n);let e=g.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{O(n)});return t.observe(e),()=>{t.disconnect()}},[O,n,l]),(0,k.useEffect)(()=>{l&&(v.current=!1)},[r,l]),(0,k.useEffect)(()=>{let e=g.current;if(e)return e.addEventListener(`wheel`,de,{passive:!1}),()=>{e.removeEventListener(`wheel`,de)}},[de]),(0,k.useEffect)(()=>{let e=_.current;if(e&&E)return document.body.style.userSelect=`none`,e.addEventListener(`pointermove`,pe,{passive:!1}),e.addEventListener(`pointerup`,me),e.addEventListener(`pointercancel`,me),()=>{document.body.style.userSelect=``,e.removeEventListener(`pointermove`,pe),e.removeEventListener(`pointerup`,me),e.removeEventListener(`pointercancel`,me)}},[E,pe,me]);let he=!u&&l&&ae!=null?{height:ae}:void 0;return(0,q.jsxs)(`div`,{className:m(`relative flex flex-col`,u?`h-full w-full`:`min-h-28 w-full`,t),ref:g,style:{cursor:E?`grabbing`:`grab`,...he},children:[s?(0,q.jsxs)(`div`,{className:m(`absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm`,u?`bottom-4 left-4`:`bottom-2 left-2`),children:[(0,q.jsx)(`button`,{"aria-label":h.zoomIn,className:m(`flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`),disabled:S>=a,onClick:ce,title:h.zoomIn,type:`button`,children:(0,q.jsx)(f,{"aria-hidden":`true`,size:16})}),(0,q.jsx)(`button`,{"aria-label":h.zoomOut,className:m(`flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`),disabled:S<=x,onClick:le,title:h.zoomOut,type:`button`,children:(0,q.jsx)(p,{"aria-hidden":`true`,size:16})}),(0,q.jsx)(`button`,{"aria-label":h.resetView,className:m(`flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground`),onClick:ue,title:h.resetView,type:`button`,children:(0,q.jsx)(d,{"aria-hidden":`true`,size:16})})]}):null,(0,q.jsx)(`div`,{className:m(`flex h-full w-full flex-1 origin-center items-center justify-center transition-transform duration-150 ease-out`),onPointerDown:fe,ref:_,role:`application`,style:{transform:`translate(${w.x}px, ${w.y}px) scale(${S})`,transformOrigin:`center center`,touchAction:`none`,willChange:`transform`},children:e})]})},QC=(e,t)=>new Promise(n=>{let r=setTimeout(n,e);t(()=>{clearTimeout(r),n()})}),$C=async(e,{chart:t,config:n},r,i)=>{try{let i=e.getMermaid(n),a=t.split(``).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),o=`mermaid-${Math.abs(a)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:s}=await i.render(o,t),c=hx(s);return{ok:!0,svg:r?s:gx(s),size:c}}catch(e){return{ok:!1,error:e instanceof Error?e.message:i}}},ew=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let a=X(),[o,s]=(0,k.useState)(null),[c,l]=(0,k.useState)(!1),[u,d]=(0,k.useState)(``),[f,p]=(0,k.useState)(null),m=Bb(),[h,g]=(0,k.useState)(``),[_,v]=(0,k.useState)(0),{mermaid:y}=(0,k.useContext)(BC),b=rx(),x=y?.errorComponent,{shouldRender:ee,containerRef:S}=Py({immediate:r}),C=(0,k.useRef)(null),w=(0,k.useRef)(!1),T=(0,k.useRef)(!1),E=pb(),D=(0,k.useRef)(E),te=(0,k.useRef)(null);(0,k.useEffect)(()=>(T.current=!0,()=>{var e;T.current=!1,(e=te.current)==null||e.call(te)}),[]),(0,k.useEffect)(()=>{var e;D.current=E,E||(e=te.current)==null||e.call(te)},[E]);let ne=async e=>{D.current&&(await QC(e,e=>{te.current=e}),te.current=null)};if((0,k.useEffect)(()=>{if(!ee)return;if(!b){s(`Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.`);return}if(C.current={chart:e,config:n},w.current)return;let t=(e,t)=>{t.ok?(d(t.svg),p(t.size),g(t.svg)):e===C.current&&s(t.error)};(async()=>{w.current=!0,s(null),l(!0);try{let e=C.current;for(;e;){let n=performance.now(),i=await $C(b,e,r,m.errorMermaid);if(!T.current||(t(e,i),i.ok&&await ne(performance.now()-n),!T.current||e===C.current))return;e=C.current}}finally{w.current=!1,T.current&&l(!1)}})()},[e,n,_,ee,b]),!(ee||u||h))return(0,q.jsx)(`div`,{className:a(`my-4 min-h-[200px]`,t),ref:S});if(c&&!u&&!h)return(0,q.jsx)(`div`,{className:a(`my-4 flex justify-center p-4`,t),ref:S,children:(0,q.jsxs)(`div`,{className:a(`flex items-center space-x-2 text-muted-foreground`),children:[(0,q.jsx)(`div`,{className:a(`h-4 w-4 animate-spin rounded-full border-current border-b-2`)}),(0,q.jsx)(`span`,{className:a(`text-sm`),children:`Loading diagram...`})]})});if(o&&!u&&!h)return x?(0,q.jsx)(`div`,{ref:S,children:(0,q.jsx)(x,{chart:e,error:o,retry:()=>v(e=>e+1)})}):(0,q.jsxs)(`div`,{className:a(`rounded-md bg-red-50 p-4`,t),ref:S,children:[(0,q.jsxs)(`p`,{className:a(`font-mono text-red-700 text-sm`),children:[`Mermaid Error: `,o]}),(0,q.jsxs)(`details`,{className:a(`mt-2`),children:[(0,q.jsx)(`summary`,{className:a(`cursor-pointer text-red-600 text-xs`),children:`Show Code`}),(0,q.jsx)(`pre`,{className:a(`mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs`),children:e})]})]});let re=u||h;return(0,q.jsx)(`div`,{className:a(r?`size-full`:`max-h-[min(70vh,40rem)] w-full`,t),"data-streamdown":`mermaid`,ref:S,children:(0,q.jsx)(ZC,{className:a(r?`size-full overflow-hidden`:`max-h-[min(70vh,40rem)] overflow-hidden`,t),contentSize:f,fitKey:e,fullscreen:r,isAutoFit:!0,maxZoom:3,minZoom:.1,showControls:i,zoomStep:.1,children:(0,q.jsx)(`div`,{"aria-label":m.mermaidAriaLabel,className:a(`flex justify-center`,r?`size-full items-center`:null),dangerouslySetInnerHTML:{__html:re},role:`img`})})})},tw=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,rw=Object.getOwnPropertyNames,iw=Object.prototype.hasOwnProperty,aw=(e,t)=>{let n={};for(var r in e)tw(n,r,{get:e[r],enumerable:!0});return t||tw(n,Symbol.toStringTag,{value:`Module`}),n},ow=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=rw(t),a=0,o=i.length,s;a<o;a++)s=i[a],!iw.call(e,s)&&s!==n&&tw(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=nw(t,s))||r.enumerable});return e},sw=(e,t,n)=>(ow(e,t,`default`),n&&ow(n,t,`default`)),cw=[{id:`abap`,name:`ABAP`,import:(()=>d(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>d(()=>import(`./actionscript-3-Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>d(()=>import(`./ada-X3Y2mlq2.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>d(()=>import(`./ahk-DwADkxyd.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>d(()=>import(`./ahk2-_6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>d(()=>import(`./angular-html-eqw-2yo2.js`).then(e=>e.n),__vite__mapDeps([3,1,4,5,6])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>d(()=>import(`./angular-ts-DXvKrRgw.js`),__vite__mapDeps([7,3,1,4,5,6,8])))},{id:`apache`,name:`Apache Conf`,import:(()=>d(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>d(()=>import(`./apex-KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>d(()=>import(`./apl-C0Q1qKaB.js`),__vite__mapDeps([9,5,1,6,4,10,11,12])))},{id:`applescript`,name:`AppleScript`,import:(()=>d(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>d(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>d(()=>import(`./asciidoc-SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>d(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>d(()=>import(`./astro-BRsBBqZx.js`),__vite__mapDeps([13,5,1,6,12,14,15,16])))},{id:`awk`,name:`AWK`,import:(()=>d(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>d(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>d(()=>import(`./bat-qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>d(()=>import(`./beancount-C2IN4Vk8.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>d(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>d(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>d(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>d(()=>import(`./bird2-CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>d(()=>import(`./blade-DWA9F7Jh.js`),__vite__mapDeps([17,5,1,6,4,10,11,12,18,19])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>d(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([20,21])))},{id:`c`,name:`C`,import:(()=>d(()=>import(`./c-DXTobAxy.js`).then(e=>e.n),__vite__mapDeps([22,1])))},{id:`c3`,name:`C3`,import:(()=>d(()=>import(`./c3-D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>d(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>d(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([23,24])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>d(()=>import(`./chapel-B_RBndg0.js`),__vite__mapDeps([25,22,1])))},{id:`clarity`,name:`Clarity`,import:(()=>d(()=>import(`./clarity-CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>d(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>d(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>d(()=>import(`./cobol-BNJvYbzT.js`),__vite__mapDeps([26,4,1,5,6,11])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>d(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>d(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>d(()=>import(`./coffee-CXBjow8Z.js`),__vite__mapDeps([27,5,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>d(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>d(()=>import(`./coq-CGaSfhwR.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>d(()=>import(`./cpp-Dur7ovrV.js`).then(e=>e.n),__vite__mapDeps([28,1,29,30,22])))},{id:`crystal`,name:`Crystal`,import:(()=>d(()=>import(`./crystal-DGFYOZ9j.js`),__vite__mapDeps([31,5,1,6,4,19,22,32])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>d(()=>import(`./csharp-dmMxLVLW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>d(()=>import(`./css-D--wukv8.js`).then(e=>e.n),__vite__mapDeps([6,1])))},{id:`csv`,name:`CSV`,import:(()=>d(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>d(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>d(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>d(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>d(()=>import(`./dart-CHZY9Xhz.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>d(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>d(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>d(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>d(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>d(()=>import(`./dotenv-CuH5my32.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>d(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>d(()=>import(`./edge-BnIfbFaD.js`),__vite__mapDeps([33,4,1,5,6,14,18])))},{id:`elixir`,name:`Elixir`,import:(()=>d(()=>import(`./elixir-CVF9oLGV.js`),__vite__mapDeps([34,4,1,5,6])))},{id:`elm`,name:`Elm`,import:(()=>d(()=>import(`./elm-Ds4ymMkP.js`),__vite__mapDeps([35,30,1,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>d(()=>import(`./emacs-lisp-DR2vtWaj.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>d(()=>import(`./erb-BsNpXne8.js`),__vite__mapDeps([36,4,1,5,6,37,10,11,19,22,28,29,30,32,38,39,14,16,40,41,42])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>d(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([43,44])))},{id:`fennel`,name:`Fennel`,import:(()=>d(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>d(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>d(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>d(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([45,46])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>d(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>d(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([47,44])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>d(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([48,49,50])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>d(()=>import(`./gdscript-DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>d(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>d(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>d(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>d(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([51,52])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>d(()=>import(`./git-rebase-Dxgm0sfK.js`),__vite__mapDeps([53,32,1])))},{id:`gleam`,name:`Gleam`,import:(()=>d(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>d(()=>import(`./glimmer-js-CEZjvX3D.js`),__vite__mapDeps([54,5,1,6,4,14])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>d(()=>import(`./glimmer-ts-CfeYEcaL.js`),__vite__mapDeps([55,5,1,6,4,14])))},{id:`glsl`,name:`GLSL`,import:(()=>d(()=>import(`./glsl-Bz3dmP-W.js`).then(e=>e.n),__vite__mapDeps([30,1,22])))},{id:`gn`,name:`GN`,import:(()=>d(()=>import(`./gn-CAXYAgV-.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>d(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>d(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>d(()=>import(`./graphql-BrkSdiIX.js`).then(e=>e.n),__vite__mapDeps([39,1,5,14,16,40])))},{id:`groovy`,name:`Groovy`,import:(()=>d(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>d(()=>import(`./hack-BFxGrQAJ.js`),__vite__mapDeps([56,4,1,5,6,19])))},{id:`haml`,name:`Ruby Haml`,import:(()=>d(()=>import(`./haml-CtWGSw4_.js`).then(e=>e.n),__vite__mapDeps([38,1,5,6])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>d(()=>import(`./handlebars-DNhI4MQT.js`),__vite__mapDeps([57,5,1,6,4,42])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>d(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>d(()=>import(`./haxe-C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>d(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>d(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>d(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>d(()=>import(`./html-4B4fQhDp.js`).then(e=>e.n),__vite__mapDeps([4,1,5,6])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>d(()=>import(`./html-derivative-5USgv_Gz.js`),__vite__mapDeps([18,4,1,5,6])))},{id:`http`,name:`HTTP`,import:(()=>d(()=>import(`./http-Xn6t5uq9.js`),__vite__mapDeps([58,10,1,11,12,32,39,5,14,16,40])))},{id:`hurl`,name:`Hurl`,import:(()=>d(()=>import(`./hurl-D3op70gp.js`),__vite__mapDeps([59,10,1,11,60,39,5,14,16,40])))},{id:`hxml`,name:`HXML`,import:(()=>d(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([61,62])))},{id:`hy`,name:`Hy`,import:(()=>d(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>d(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>d(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>d(()=>import(`./java-C89_nAvH.js`).then(e=>e.n),__vite__mapDeps([11,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>d(()=>import(`./javascript-fLLoj7jj.js`).then(e=>e.n),__vite__mapDeps([5,1])))},{id:`jinja`,name:`Jinja`,import:(()=>d(()=>import(`./jinja-CmiqWXMd.js`),__vite__mapDeps([63,4,1,5,6])))},{id:`jison`,name:`Jison`,import:(()=>d(()=>import(`./jison-DcZp3tw4.js`),__vite__mapDeps([64,5,1])))},{id:`json`,name:`JSON`,import:(()=>d(()=>import(`./json-CMa1RJnc.js`).then(e=>e.n),__vite__mapDeps([12,1])))},{id:`json5`,name:`JSON5`,import:(()=>d(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>d(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>d(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>d(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>d(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>d(()=>import(`./jsx-Pcd_3itl.js`).then(e=>e.n),__vite__mapDeps([40,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>d(()=>import(`./julia-KN3eYzC2.js`),__vite__mapDeps([65,5,1,19,24,28,29,30,22,66])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>d(()=>import(`./just-D8SFQ4KC.js`),__vite__mapDeps([67,5,1,14,24,32,37,6,4,10,11,19,22,28,29,30,38,39,16,40,41,42,68])))},{id:`kdl`,name:`KDL`,import:(()=>d(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>d(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>d(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>d(()=>import(`./latex-oHUlkozR.js`),__vite__mapDeps([69,70,1,66])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>d(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>d(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>d(()=>import(`./liquid-FOBViTA4.js`),__vite__mapDeps([71,5,1,6,4,12])))},{id:`llvm`,name:`LLVM IR`,import:(()=>d(()=>import(`./llvm-DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>d(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>d(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>d(()=>import(`./lua-Aso1T3OO.js`).then(e=>e.n),__vite__mapDeps([41,1,22])))},{id:`luau`,name:`Luau`,import:(()=>d(()=>import(`./luau-VGWVLoqX.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>d(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>d(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>d(()=>import(`./marko-Cbb4Jjj7.js`),__vite__mapDeps([72,6,1,8,14,73])))},{id:`matlab`,name:`MATLAB`,import:(()=>d(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>d(()=>import(`./mdc-jkS7bIw_.js`),__vite__mapDeps([74,18,4,1,5,6,42,44])))},{id:`mdx`,name:`MDX`,import:(()=>d(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>d(()=>import(`./mermaid-BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>d(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>d(()=>import(`./mojo-fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>d(()=>import(`./moonbit-D9W784E_.js`),[]))},{id:`move`,name:`Move`,import:(()=>d(()=>import(`./move-BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>d(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>d(()=>import(`./nextflow-CSgcYZcx.js`),__vite__mapDeps([75,76])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>d(()=>import(`./nextflow-groovy-D7IRt6Pp.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>d(()=>import(`./nginx-BfgWChTY.js`),__vite__mapDeps([77,41,1,22])))},{id:`nim`,name:`Nim`,import:(()=>d(()=>import(`./nim-CWTUFOFC.js`),__vite__mapDeps([78,5,1,6,4,10,11,22,30,44])))},{id:`nix`,name:`Nix`,import:(()=>d(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>d(()=>import(`./nsis-CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>d(()=>import(`./nushell--0fT3PI1.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>d(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>d(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>d(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>d(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>d(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>d(()=>import(`./org-N_Z_Rsos.js`),__vite__mapDeps([79,5,1,6,4,8,11,10,12,14,16,19,22,24,80,27,29,28,30,32,81,82,52,83,34,41,42,37,38,39,40,44,43,51,53,84,85,86,66,68,69,70,73,87,78,88,89,90,91,92,93,94,95,96])))},{id:`pascal`,name:`Pascal`,import:(()=>d(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>d(()=>import(`./perl-EO-CkAaJ.js`),__vite__mapDeps([68,5,1,6,4,10,11,19])))},{id:`php`,name:`PHP`,import:(()=>d(()=>import(`./php-BuM__Kin.js`),__vite__mapDeps([90,5,1,6,4,10,11,12,19])))},{id:`pkl`,name:`Pkl`,import:(()=>d(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>d(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>d(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>d(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>d(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>d(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>d(()=>import(`./powershell-QtSnmXcu.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>d(()=>import(`./prisma-DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>d(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>d(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>d(()=>import(`./pug-3z67OXkX.js`),__vite__mapDeps([97,5,1,6,4])))},{id:`puppet`,name:`Puppet`,import:(()=>d(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>d(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>d(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>d(()=>import(`./qml-01xckBqI.js`),__vite__mapDeps([98,5,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>d(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>d(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>d(()=>import(`./r-BEspGz5U.js`).then(e=>e.n),__vite__mapDeps([66,1])))},{id:`racket`,name:`Racket`,import:(()=>d(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>d(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>d(()=>import(`./razor-zLvpxB04.js`),__vite__mapDeps([99,4,1,5,6,81])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>d(()=>import(`./rbs-C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>d(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>d(()=>import(`./regexp-2uCdkyjn.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`rel`,name:`Rel`,import:(()=>d(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>d(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>d(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>d(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>d(()=>import(`./rst-BAFuuY9O.js`),__vite__mapDeps([100,5,1,18,4,6,24,101,28,29,30,22,32,42,37,10,11,19,38,39,14,16,40,41])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>d(()=>import(`./ruby-BhTAkxsN.js`),__vite__mapDeps([37,5,1,6,4,10,11,19,22,28,29,30,32,38,39,14,16,40,41,42])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>d(()=>import(`./rust-DpiIf5JO.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>d(()=>import(`./sas-cLyv6Fcf.js`),__vite__mapDeps([102,19,1])))},{id:`sass`,name:`Sass`,import:(()=>d(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>d(()=>import(`./scala-BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>d(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>d(()=>import(`./scss-CuMU8xxQ.js`).then(e=>e.n),__vite__mapDeps([8,1,6])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>d(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>d(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([103,104])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>d(()=>import(`./shellscript-CIVHuubL.js`).then(e=>e.n),__vite__mapDeps([32,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>d(()=>import(`./shellsession-Q-CZymqp.js`),__vite__mapDeps([105,32,1])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>d(()=>import(`./smalltalk-BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>d(()=>import(`./smithy-Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>d(()=>import(`./solidity-Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>d(()=>import(`./soy-6_zQhlB4.js`),__vite__mapDeps([106,4,1,5,6])))},{id:`sparql`,name:`SPARQL`,import:(()=>d(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([107,108])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>d(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>d(()=>import(`./sql-BKOpOcZJ.js`).then(e=>e.n),__vite__mapDeps([19,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>d(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>d(()=>import(`./stata-Dszynl2A.js`),__vite__mapDeps([109,19,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>d(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>d(()=>import(`./surrealql-CJ_96IWu.js`),__vite__mapDeps([110,5,1])))},{id:`svelte`,name:`Svelte`,import:(()=>d(()=>import(`./svelte-NpUupHVH.js`),__vite__mapDeps([111,5,1,6,14,15])))},{id:`swift`,name:`Swift`,import:(()=>d(()=>import(`./swift-CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>d(()=>import(`./system-verilog-Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>d(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>d(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>d(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>d(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>d(()=>import(`./templ-CyP0pWR3.js`),__vite__mapDeps([112,5,1,6,84])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>d(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>d(()=>import(`./tex-CytQUzlH.js`).then(e=>e.n),__vite__mapDeps([70,1,66])))},{id:`toml`,name:`TOML`,import:(()=>d(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>d(()=>import(`./ts-tags-BIR92NxC.js`),__vite__mapDeps([113,5,1,6,4,10,11,14,19,30,22])))},{id:`tsv`,name:`TSV`,import:(()=>d(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>d(()=>import(`./tsx-CIAbbp5B.js`).then(e=>e.n),__vite__mapDeps([16,1])))},{id:`turtle`,name:`Turtle`,import:(()=>d(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>d(()=>import(`./twig-CU7ywlei.js`),__vite__mapDeps([114,5,1,6,8,24,37,4,10,11,19,22,28,29,30,32,38,39,14,16,40,41,42,90,12])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>d(()=>import(`./typescript-CQ8q_7xQ.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>d(()=>import(`./typespec-BGhR2SqG.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>d(()=>import(`./typst-o6zd86DN.js`),__vite__mapDeps([115,5,1,6,4,8,11,10,12,14,16,116,117,19,22,24,80,27,29,28,30,32,81,82,52,83,34,41,42,37,38,39,40,44,43,47,51,53,84,85,57,86,118,66,65,68,69,70,73,119,87,88,90,91,92,93,94,96,120,97,121,122,114,123])))},{id:`v`,name:`V`,import:(()=>d(()=>import(`./v-DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>d(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>d(()=>import(`./vb-DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>d(()=>import(`./verilog-B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>d(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>d(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>d(()=>import(`./vue-Did2plkZ.js`),__vite__mapDeps([124,5,1,6,4,12,14,18])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>d(()=>import(`./vue-html-DzASeTVq.js`),__vite__mapDeps([125,5,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>d(()=>import(`./vue-vine-D1rbSuQE.js`),__vite__mapDeps([126,5,1,6,8,15,73,127])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>d(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>d(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>d(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>d(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>d(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>d(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>d(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>d(()=>import(`./xml-C1tPjmlx.js`).then(e=>e.n),__vite__mapDeps([10,1,11])))},{id:`xsl`,name:`XSL`,import:(()=>d(()=>import(`./xsl-BylmE8mU.js`),__vite__mapDeps([96,10,1,11])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>d(()=>import(`./yaml-BwWHG_5l.js`).then(e=>e.n),__vite__mapDeps([42,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>d(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>d(()=>import(`./zig-CMLA9XwU.js`),[]))}],lw=Object.fromEntries(cw.map(e=>[e.id,e.import])),uw=Object.fromEntries(cw.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),dw={...lw,...uw},fw=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>d(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>d(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>d(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>d(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>d(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>d(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>d(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>d(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>d(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>d(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>d(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>d(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>d(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>d(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>d(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>d(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>d(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>d(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>d(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>d(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>d(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>d(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>d(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>d(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>d(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>d(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>d(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>d(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>d(()=>import(`./horizon-bright-DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>d(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>d(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>d(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>d(()=>import(`./kanagawa-wave-BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>d(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>d(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>d(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>d(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>d(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>d(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>d(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>d(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>d(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>d(()=>import(`./monokai-BscAjiQZ.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>d(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>d(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>d(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>d(()=>import(`./one-dark-pro-C6YyR8OD.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>d(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>d(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>d(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>d(()=>import(`./red-CYlAq2b0.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>d(()=>import(`./rose-pine-aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>d(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>d(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>d(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>d(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>d(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>d(()=>import(`./solarized-dark-b97czJOk.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>d(()=>import(`./solarized-light-DFPxpIYQ.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>d(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>d(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>d(()=>import(`./vesper-DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>d(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>d(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>d(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),pw=t({createOnigurumaEngine:()=>Vw,getDefaultWasmLoader:()=>Bw,loadWasm:()=>Pw,setDefaultWasmLoader:()=>zw}),mw=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function hw(){return 2147483648}function gw(){return typeof performance<`u`?performance.now():Date.now()}var _w=(e,t)=>e+(t-e%t)%t;async function vw(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=hw();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,_w(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:gw,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var yw=Object.defineProperty,bw=(e,t,n)=>t in e?yw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xw=(e,t,n)=>bw(e,typeof t==`symbol`?t:t+``,n),Sw=null;function Cw(e){throw new mw(e.UTF8ToString(e.getLastOnigError()))}var ww=class e{constructor(t){xw(this,`utf16Length`),xw(this,`utf8Length`),xw(this,`utf16Value`),xw(this,`utf8Value`),xw(this,`utf16OffsetToUtf8`),xw(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Tw=class e{constructor(t){if(xw(this,`id`,++e.LAST_ID),xw(this,`_onigBinding`),xw(this,`content`),xw(this,`utf16Length`),xw(this,`utf8Length`),xw(this,`utf16OffsetToUtf8`),xw(this,`utf8OffsetToUtf16`),xw(this,`ptr`),!Sw)throw new mw(`Must invoke loadWasm first.`);this._onigBinding=Sw,this.content=t;let n=new ww(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Sw.omalloc(1e4),e._sharedPtrInUse=!0,Sw.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Sw)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};xw(Tw,`LAST_ID`,0),xw(Tw,`_sharedPtr`,0),xw(Tw,`_sharedPtrInUse`,!1);var Ew=Tw,Dw=class{constructor(e){if(xw(this,`_onigBinding`),xw(this,`_ptr`),!Sw)throw new mw(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new ww(e[r]);t[r]=i.createString(Sw),n[r]=i.utf8Length}let r=Sw.omalloc(4*e.length);Sw.HEAPU32.set(t,r/4);let i=Sw.omalloc(4*e.length);Sw.HEAPU32.set(n,i/4);let a=Sw.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Sw.ofree(t[n]);Sw.ofree(i),Sw.ofree(r),a===0&&Cw(Sw),this._onigBinding=Sw,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Ew(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Ow(e){return typeof e.instantiator==`function`}function kw(e){return typeof e.default==`function`}function Aw(e){return e.data!==void 0}function jw(e){return typeof Response<`u`&&e instanceof Response}function Mw(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var Nw;function Pw(e){if(Nw)return Nw;async function t(){Sw=await vw(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Ow(n)?n=await n.instantiator(t):kw(n)?n=await n.default(t):(Aw(n)&&(n=n.data),jw(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Iw(n)(t):await Lw(n)(t):Mw(n)||n instanceof WebAssembly.Module?n=await Fw(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Fw(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Nw=t(),Nw}function Fw(e){return t=>WebAssembly.instantiate(e,t)}function Iw(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Lw(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var Rw;function zw(e){Rw=e}function Bw(){return Rw}async function Vw(e){return e&&await Pw(e),{createScanner(e){return new Dw(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Ew(e)}}}var Hw=aw({});sw(Hw,pw);var Q=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Uw(e){return Ww(e)}function Ww(e){return Array.isArray(e)?Gw(e):e instanceof RegExp?e:typeof e==`object`?Kw(e):e}function Gw(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ww(e[n]);return t}function Kw(e){let t={};for(let n in e)t[n]=Ww(e[n]);return t}function qw(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Jw(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Jw(e.substring(0,e.length-1)):e.substr(~t+1)}var Yw=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Xw=class{static hasCaptures(e){return e!==null&&(Yw.lastIndex=0,Yw.test(e))}static replaceCaptures(e,t,n){return e.replace(Yw,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Zw(e,t){return e<t?-1:+(e>t)}function Qw(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Zw(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function $w(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eT(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var tT=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},nT=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(sT(e),t)}static createFromParsedTheme(e,t){return uT(e,t)}_cachedMatchRoot=new tT(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>iT(e.parent,t.parentScopes));return n?new oT(n.fontStyle,n.foreground,n.background):null}},rT=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function iT(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!aT(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function aT(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var oT=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function sT(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&$w(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&$w(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new cT(l,u,e,o,s,c)}}return n}var cT=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},lT=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(lT||{});function uT(e,t){e.sort((e,t)=>{let n=Zw(e.scope,t.scope);return n!==0||(n=Qw(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new dT(t),o=new oT(n,a.getId(r),a.getId(i)),s=new mT(new pT(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new nT(a,o,s)}var dT=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},fT=Object.freeze([]),pT=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||fT,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},mT=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),pT.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null)this._mainRule.acceptOverwrite(e,n,r,i);else{for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Qw(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new pT(e,t,n,r,i))}}},hT=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=_T(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c|0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function gT(e){return e}function _T(e){return e}function vT(e,t){let n=[],r=bT(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(yT(i)){let e=[];do e.push(i),i=r.next();while(yT(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function yT(e){return!!e&&!!e.match(/[\w\.:]+/)}function bT(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function xT(e){typeof e.dispose==`function`&&e.dispose()}var ST=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},CT=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},wT=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},TT=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ST(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new wT;for(let n of e)ET(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ST){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function ET(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof ST?OT({baseGrammar:a,selfGrammar:i},r):DT(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new ST(e))}function DT(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];kT([r],t,n)}}function OT(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&kT(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&kT(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function kT(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?qw({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&kT(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=FT(i);switch(a.kind){case 0:OT({...t,selfGrammar:t.baseGrammar},n);break;case 1:OT(t,n);break;case 2:DT(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?DT(a.ruleName,i,n):OT(i,n)}else a.kind===4?n.add(new CT(a.scopeName,a.ruleName)):n.add(new ST(a.scopeName))}}}var AT=class{kind=0},jT=class{kind=1},MT=class{constructor(e){this.ruleName=e}kind=2},NT=class{constructor(e){this.scopeName=e}kind=3},PT=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function FT(e){if(e===`$base`)return new AT;if(e===`$self`)return new jT;let t=e.indexOf(`#`);return t===-1?new NT(e):t===0?new MT(e.substring(1)):new PT(e.substring(0,t),e.substring(t+1))}var IT=/\\(\d+)/,LT=/\\(\d+)/g,RT=-1,zT=-2;function BT(e){return e}function VT(e){return e}var HT=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Xw.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Xw.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Jw(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Xw.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xw.replaceCaptures(this._contentName,e,t)}},UT=class extends HT{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},WT=class extends HT{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new YT(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XT,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},GT=class extends HT{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new XT,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},KT=class extends HT{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new YT(i,this.id),this.beginCaptures=a,this._end=new YT(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XT;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},qT=class extends HT{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new YT(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new YT(o,zT),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new XT;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new XT,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},JT=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new UT(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new WT(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=qw({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new GT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new qT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new KT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=FT(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof GT||e instanceof KT||e instanceof qT)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},YT=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&IT.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return LT.lastIndex=0,this.source.replace(LT,(e,t)=>eT(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},XT=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ZT(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new ZT(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ZT=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
161
161
  `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},QT=class{constructor(e,t){this.languageId=e,this.tokenType=t}},$T=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new QT(e,8),this._embeddedLanguagesMatcher=new eE(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new QT(0,0);_getBasicScopeAttributes=new tT(e=>new QT(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eE=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>eT(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var tE=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function nE(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=rE(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new tE(i,!0);f()}return new tE(i,!1);function f(){let o=iE(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===RT){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),lE(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof KT){let r=o;lE(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof qT){let r=o;lE(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(lE(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function rE(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof qT&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=cE(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==zT){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),lE(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function iE(e,t,n,r,i,a){let o=aE(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=oE(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function aE(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=sE(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function oE(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=sE(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function sE(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function cE(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function lE(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));nE(e,p,n&&d.start===0,d.start,f,i,!1,0),xT(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new uE(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var uE=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function dE(e,t,n,r,i,a,o,s){return new hE(e,t,n,r,i,a,o,s)}function fE(e,t,n,r,i){let a=vT(t,pE),o=JT.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function pE(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(mE(t[r],e))return n=r+1,!0;return!1})}function mE(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var hE=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new $T(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=gE(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=vT(e,pE);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)fE(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&fE(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(BT(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[VT(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=gE(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=JT.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===vE.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=hT.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?_E.createRootAndLookUpScopeName(a,r,this):_E.createRoot(`unknown`,r),t=new vE(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
162
162
  `;let a=this.createOnigString(e),o=a.content.length,s=new bE(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=nE(this,a,i,0,t,s,!0,r);return xT(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function gE(e,t){return e=Uw(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var _E=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=rT.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new rT(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new rT(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),hT.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},vE=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?_E.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(1)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:VT(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=_E.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,BT(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,_E.fromExtension(r,n.contentNameScopesList))}},yE=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):vT(e,pE).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>vT(e,pE).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},bE=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=hT.set(n,0,gT(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=hT.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},xE=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,dE(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},SE=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new xE(nT.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(nT.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new yE(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new TT(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},CE=vE.NULL;function wE(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function TE(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function EE(e){return Array.isArray(e)?e:[e]}async function DE(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function OE(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function kE(e){return e===`ansi`||OE(e)}function AE(e){return e===`none`}function jE(e){return AE(e)}var ME=/(\r?\n)/g;function NE(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(ME),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var PE={light:`#333333`,dark:`#bbbbbb`},FE={light:`#fffffe`,dark:`#1e1e1e`},IE=`__shiki_resolved`;function LE(e){if(e?.[IE])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?PE.light:PE.dark,n||=t.type===`light`?FE.light:FE.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,IE,{enumerable:!1,writable:!1,value:!0}),t}async function RE(e){return[...new Set((await Promise.all(e.filter(e=>!kE(e)).map(async e=>await DE(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function zE(e){return(await Promise.all(e.map(async e=>jE(e)?null:LE(await DE(e))))).filter(e=>!!e)}function BE(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Q(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var VE=class extends SE{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=LE(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=nT.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=BE(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._syncRegistry?._grammars?.get(e.scopeName)?.dispose(),this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Q(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},HE=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},UE=0;function WE(e){UE+=1,e.warnings!==!1&&UE>=10&&UE%10==0&&console.warn(`[Shiki] ${UE} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Q("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(LE),i=new VE(new HE(e.engine,n),r,n,e.langAlias),a;function o(t){return BE(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Q(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Q(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await RE(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await zE(e))}function g(){if(t)throw new Q(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--UE)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function GE(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([zE(e.themes||[]),RE(e.langs||[]),e.engine]);return WE({...e,themes:t,langs:n,engine:r})}var KE=new WeakMap;function qE(e,t){KE.set(e,t)}function JE(e){return KE.get(e)}var YE=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(EE(n).map(e=>[e,CE])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return XE(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function XE(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function ZE(e,t){if(!(e instanceof YE))throw new Q(`Invalid grammar state`);return e.getInternalStack(t)}var QE=/,/,$E=/ /;function eD(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(OE(e.resolveLangAlias(n.lang||`text`))||AE(r))return NE(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Q(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Q(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return nD(t,o,i,a,n)}function tD(...e){if(e.length===2)return JE(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(OE(i)||AE(a))throw new Q(`Plain language does not have grammar state`);if(i===`ansi`)throw new Q(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new YE(rD(n,c,o,s,r).stateStack,c.name,o.name)}function nD(e,t,n,r,i){let a=rD(e,t,n,r,i),o=new YE(a.stateStack,t.name,n.name);return qE(a.tokens,o),a.tokens}function rD(e,t,n,r,i){let a=wE(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=NE(e),u=i.grammarState?ZE(i.grammarState,n.name)??CE:i.grammarContextCode==null?CE:rD(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=TE(r[hT.getForeground(s)],a),u=hT.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=hT.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(QE).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split($E))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?iD(t.scopes):aD(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function iD(e){return e.map(e=>({scopeName:e}))}function aD(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:cD(e,i,t.slice(0,r))}}return n}function oD(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function sD(e,t,n){if(!oD(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)oD(e[r],n[i])&&--r,--i;return r===-1}function cD(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(sD(e,t,n)){r.push(a);break}return r}function lD(e,t,n,r=eD){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:JE(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=uD(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new YE(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&qE(s,c),s}function uD(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var dD=/["&'<>`]/g,fD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pD=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,mD=/[|\\{}()[\]^$+*?.]/g,hD=new WeakMap;function gD(e,t){return e=e.replace(t.subset?_D(t.subset):dD,r),t.subset||t.escapeOnly?e:e.replace(fD,n).replace(pD,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function _D(e){let t=hD.get(e);return t||(t=vD(e),hD.set(e,t)),t}function vD(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(mD,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var yD=/[\dA-Fa-f]/;function bD(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!yD.test(String.fromCharCode(t))?r:r+`;`}var xD=/\d/;function SD(e,t,n){let r=`&#`+String(e);return n&&t&&!xD.test(String.fromCharCode(t))?r:r+`;`}var CD=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),wD={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},TD=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],ED={}.hasOwnProperty,DD={},OD;for(OD in wD)ED.call(wD,OD)&&(DD[wD[OD]]=OD);var kD=/[^\dA-Za-z]/;function AD(e,t,n,r){let i=String.fromCharCode(e);if(ED.call(DD,i)){let e=DD[i],a=`&`+e;return n&&CD.includes(e)&&!TD.includes(e)&&(!r||t&&t!==61&&kD.test(String.fromCharCode(t)))?a:a+`;`}return``}function jD(e,t,n){let r=bD(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=AD(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=SD(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function MD(e,t){return gD(e,Object.assign({format:jD},t))}var ND=/^>|^->|<!--|-->|--!>|<!-$/g,PD=[`>`],FD=[`<`,`>`];function ID(e,t,n,r){return r.settings.bogusComments?`<?`+MD(e.value,Object.assign({},r.settings.characterReferences,{subset:PD}))+`>`:`<!--`+e.value.replace(ND,i)+`-->`;function i(e){return MD(e,Object.assign({},r.settings.characterReferences,{subset:FD}))}}function LD(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var RD=VD(1),zD=VD(-1),BD=[];function VD(e){return t;function t(t,n,r){let i=t?t.children:BD,a=(n||0)+e,o=i[a];if(!r)for(;o&&Rm(o);)a+=e,o=i[a];return o}}var HD={}.hasOwnProperty;function UD(e){return t;function t(t,n,r){return HD.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var WD=UD({body:qD,caption:GD,colgroup:GD,dd:ZD,dt:XD,head:GD,html:KD,li:YD,optgroup:$D,option:eO,p:JD,rp:QD,rt:QD,tbody:nO,td:aO,tfoot:rO,th:aO,thead:tO,tr:iO});function GD(e,t,n){let r=RD(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Rm(r.value.charAt(0)))}function KD(e,t,n){let r=RD(n,t);return!r||r.type!==`comment`}function qD(e,t,n){let r=RD(n,t);return!r||r.type!==`comment`}function JD(e,t,n){let r=RD(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||n.type!==`element`||n.tagName!==`a`&&n.tagName!==`audio`&&n.tagName!==`del`&&n.tagName!==`ins`&&n.tagName!==`map`&&n.tagName!==`noscript`&&n.tagName!==`video`}function YD(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&r.tagName===`li`}function XD(e,t,n){let r=RD(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function ZD(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function QD(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function $D(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function eO(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function tO(e,t,n){let r=RD(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function nO(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function rO(e,t,n){return!RD(n,t)}function iO(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function aO(e,t,n){let r=RD(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var oO=UD({body:lO,colgroup:uO,head:cO,html:sO,tbody:dO});function sO(e){let t=RD(e,-1);return!t||t.type!==`comment`}function cO(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function lO(e){let t=RD(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Rm(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function uO(e,t,n){let r=zD(n,t),i=RD(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&WD(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function dO(e,t,n){let r=zD(n,t),i=RD(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&WD(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var fO={name:[[`
163
163
  \f\r &/=>`.split(``),`
@@ -168,7 +168,7 @@ ${u}`,i=e.length;break}return i===0?e:r+e.slice(i)},lC=(e,t)=>{if(!t.length)retu
168
168
  \f\r "&'<=>\``.split(``)],[`\0
169
169
  \f\r "&'<=>\``.split(``),`\0
170
170
  \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function pO(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=ut);let l=mO(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),!l&&a&&oO(e,t,n)||(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),o||a&&WD(e,t,n)||s.push(`</`+e.tagName+`>`),s.join(``)}function mO(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=hO(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function hO(e,t,n){let r=ot(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=MD(r.attribute,Object.assign({},e.settings.characterReferences,{subset:fO.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?ft:gt)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=MD(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:fO.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&Qo(n,o)>Qo(n,e.alternative)&&(o=e.alternative),s=o+MD(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?fO.single:fO.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var gO=[`<`,`&`];function _O(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:MD(e.value,Object.assign({},r.settings.characterReferences,{subset:gO}))}function vO(e,t,n,r){return r.settings.allowDangerousHtml?e.value:_O(e,t,n,r)}function yO(e,t,n,r){return r.all(e)}var bO=Vt(`type`,{invalid:xO,unknown:SO,handlers:{comment:ID,doctype:LD,element:pO,raw:vO,root:yO,text:_O}});function xO(e){throw Error("Expected node, not `"+e+"`")}function SO(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var CO={},wO={},TO=[];function EO(e,t){let n=t||CO,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:DO,all:OO,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||tn,characterReferences:n.characterReferences||wO,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?ut:lt,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function DO(e,t,n){return bO(e,t,n,this)}function OO(e){let t=[],n=e&&e.children||TO,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var kO=/\s+/g;function AO(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(kO)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(kO);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var jO=/:?lang=["']([^"']+)["']/g,MO=/(?:```|~~~)([\w-]+)/g,NO=/\\begin\{([\w-]+)\}/g,PO=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,FO=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function IO(e){let t=NE(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function LO(e,t,n){let r=new Set;for(let t of e.matchAll(jO)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(MO)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(NO)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(PO)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(FO.test(e)&&r.add(`yaml`),!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var RO=[`color`,`background-color`];function zO(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function BO(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function VO(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=BO(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return zO(e,a)})):e}function HO(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>UO(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&RO.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new Q('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function UO(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&lT.Italic&&(t[`font-style`]=`italic`),e.fontStyle&lT.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&lT.Underline&&n.push(`underline`),e.fontStyle&lT.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function WO(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function GO(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=IO(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new Q(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new Q(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new Q(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));KO(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return VO(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new Q(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=qO(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new Q(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new Q(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&AO(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function KO(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new Q(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new Q(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function qO(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(qO).join(``):``}var JO=[GO()];function YO(e){let t=XO(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...JO]}function XO(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var ZO=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],QO={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function $O(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function ek(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function tk(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)QO[r]&&t.push({type:`setDecoration`,value:QO[r]});else if(r<=29){let e=QO[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:ZO[r-30]}});else if(r===38){let n=ek(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:ZO[r-40]}});else if(r===48){let n=ek(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:ZO[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:ZO[r-100+8]}})}}return t}function nk(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=$O(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=tk(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var rk={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function ik(e=rk){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<ZO.length;e++)r.push(t(ZO[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var ak=/#([0-9a-f]{3,8})/i,ok=/var\((--[\w-]+-ansi-[\w-]+)\)/,sk={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function ck(e,t,n){let r=wE(e,n),i=NE(t),a=ik(Object.fromEntries(ZO.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||sk[t]]}))),o=nk();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=TE(i,r),o=TE(o,r),n.decorations.has(`dim`)&&(i=lk(i));let s=lT.None;return n.decorations.has(`bold`)&&(s|=lT.Bold),n.decorations.has(`italic`)&&(s|=lT.Italic),n.decorations.has(`underline`)&&(s|=lT.Underline),n.decorations.has(`strikethrough`)&&(s|=lT.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function lk(e){let t=e.match(ak);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(ok);return n?`var(${n[1]}-dim)`:e}function uk(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!OE(r)&&!AE(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return ck(r,t,n)}return eD(e,t,n)}function dk(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new Q("`themes` option must not be empty");let p=lD(e,t,n,uk);if(c=JE(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new Q(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>HO(e,h,u,l,d))),c&&qE(a,c);let g=f.map(e=>wE(e.theme,n));i=fk(f,m,g,u,l,`fg`,d),r=fk(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=wE(n.theme,n);a=uk(e,t,n);let l=e.getTheme(n.theme);r=TE(l.bg,s),i=TE(l.fg,s),o=l.name,c=JE(a)}else throw new Q("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function fk(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=TE(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new Q('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${TE(t[r][a],n[r])||`inherit`}, ${TE(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var pk=/^\s+$/,mk=/^(\s*)(.*?)(\s*)$/;function hk(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>hk(e,t,n),codeToTokens:(t,n)=>dk(e,t,n)}){let i=t;for(let e of YO(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=dk(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=_k(a):d===`never`&&(a=vk(a)),f&&(a=yk(a));let p={...r,get source(){return i}};for(let e of YO(n))a=e.tokens?.call(p,a)||a;return gk(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function gk(e,t,n,r=JE(e)){let i=YO(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:AO,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
171
- `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=WO(a.htmlStyle||UO(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&qE(m,r),m}function _k(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&lT.Underline||i.fontStyle&lT.Strikethrough));o&&pk.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function vk(e){return e.map(e=>e.flatMap(e=>{if(pk.test(e.content))return e;let t=e.content.match(mk);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function yk(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=WO(e.htmlStyle||UO(e)),i=WO(n.htmlStyle||UO(n)),a=e.fontStyle&&(e.fontStyle&lT.Underline||e.fontStyle&lT.Strikethrough),o=n.fontStyle&&(n.fontStyle&lT.Underline||n.fontStyle&lT.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var bk=EO;function xk(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>hk(e,t,n),codeToTokens:(t,n)=>dk(e,t,n)},i=bk(hk(e,t,n,r));for(let e of YO(n))i=e.postprocess?.call(r,i,n)||i;return i}async function Sk(e){let t=await GE(e);return{getLastGrammarState:(...e)=>tD(t,...e),codeToTokensBase:(e,n)=>uk(t,e,n),codeToTokensWithThemes:(e,n)=>lD(t,e,n),codeToTokens:(e,n)=>dk(t,e,n),codeToHast:(e,n)=>hk(t,e,n),codeToHtml:(e,n)=>xk(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Ck(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,kE(n))return[];let r=t[n];if(!r)throw new Q(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(jE(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new Q(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await Sk({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function wk(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function Tk(e,t){let n=wk(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var Ek=Ck({langs:dw,themes:fw,engine:()=>(0,Hw.createOnigurumaEngine)(l(()=>import(`./wasm-BnjxR4X6.js`),[]))}),{codeToHtml:Dk,codeToHast:Ok,codeToTokens:kk,codeToTokensBase:Ak,codeToTokensWithThemes:jk,getSingletonHighlighter:Mk,getLastGrammarState:Nk}=Tk(Ek,{guessEmbeddedLanguages:LO}),Pk=4294967295;function Fk(e){return!e.sticky&&!e.rawOptions?.strategy}function Ik(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:Pk,end:Pk,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var Lk=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&Fk(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return Ik(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:Ik(a,s)}},Rk=0;function zk(e){return{content:e,id:++Rk}}function Bk(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Vk(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var Hk=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),Uk=String.raw;function Wk(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Gk=Uk`\[\^?`,Kk=`c.? | C(?:-.?)?|${Uk`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Uk`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Uk`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Uk`o\{[^\}]*\}?`}|${Uk`\d{1,3}`}`,qk=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Jk=new RegExp(Uk`
171
+ `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=WO(a.htmlStyle||UO(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&qE(m,r),m}function _k(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&lT.Underline||i.fontStyle&lT.Strikethrough));o&&pk.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function vk(e){return e.map(e=>e.flatMap(e=>{if(pk.test(e.content))return e;let t=e.content.match(mk);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function yk(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=WO(e.htmlStyle||UO(e)),i=WO(n.htmlStyle||UO(n)),a=e.fontStyle&&(e.fontStyle&lT.Underline||e.fontStyle&lT.Strikethrough),o=n.fontStyle&&(n.fontStyle&lT.Underline||n.fontStyle&lT.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var bk=EO;function xk(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>hk(e,t,n),codeToTokens:(t,n)=>dk(e,t,n)},i=bk(hk(e,t,n,r));for(let e of YO(n))i=e.postprocess?.call(r,i,n)||i;return i}async function Sk(e){let t=await GE(e);return{getLastGrammarState:(...e)=>tD(t,...e),codeToTokensBase:(e,n)=>uk(t,e,n),codeToTokensWithThemes:(e,n)=>lD(t,e,n),codeToTokens:(e,n)=>dk(t,e,n),codeToHast:(e,n)=>hk(t,e,n),codeToHtml:(e,n)=>xk(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Ck(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,kE(n))return[];let r=t[n];if(!r)throw new Q(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(jE(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new Q(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await Sk({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function wk(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function Tk(e,t){let n=wk(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var Ek=Ck({langs:dw,themes:fw,engine:()=>(0,Hw.createOnigurumaEngine)(d(()=>import(`./wasm-BnjxR4X6.js`),[]))}),{codeToHtml:Dk,codeToHast:Ok,codeToTokens:kk,codeToTokensBase:Ak,codeToTokensWithThemes:jk,getSingletonHighlighter:Mk,getLastGrammarState:Nk}=Tk(Ek,{guessEmbeddedLanguages:LO}),Pk=4294967295;function Fk(e){return!e.sticky&&!e.rawOptions?.strategy}function Ik(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:Pk,end:Pk,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var Lk=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&Fk(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return Ik(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:Ik(a,s)}},Rk=0;function zk(e){return{content:e,id:++Rk}}function Bk(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Vk(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var Hk=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),Uk=String.raw;function Wk(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Gk=Uk`\[\^?`,Kk=`c.? | C(?:-.?)?|${Uk`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Uk`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Uk`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Uk`o\{[^\}]*\}?`}|${Uk`\d{1,3}`}`,qk=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Jk=new RegExp(Uk`
172
172
  \\ (?:
173
173
  ${Kk}
174
174
  | [gk]<[^>]*>?
@@ -310,4 +310,4 @@ XID_Start XIDS`.split(/\s/).map(e=>[mj(e),e])),sM=new Map([[`s`,Kj(383)],[Kj(383
310
310
  ?|[
311
311
  \v\f…\u2028\u2029])`),t));else if(c===`posix`){if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${Kj(e.codePointAt(0)-1)}${Kj(e.codePointAt(2)+1)}-\u{10FFFF}`),n(RM(FM(`[${e}]`),t))}else n(RM(IM(FM(uM.get(u)),l),t))}else if(c===`property`)oM.has(mj(u))||(e.key=`sc`);else if(c===`space`)n(LM(oj(`space`,{negate:l}),t));else if(c===`word`)n(RM(IM(FM(iM),l),t));else throw Error(`Unexpected character set kind "${c}"`)}},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`){if(!c.enable&&!c.disable)r();else{let e=$A({flags:c});e.body[0].body=o(),i(RM(e,t),{traverse:!0})}}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&AA(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error($`Uses "\K" in a way that's unsupported`);let o=ej({behind:!0});o.body[0].body=a(),i(RM(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(RM(ej({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=$A();t.body[0].body.push(e.body),e.body=RM(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=kM(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error($`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!PM(n)&&(n=TM(n,t),e.ref=n)}},_M={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=LM(CM(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&Xj(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=Xj(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Yj(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&(n.type!==`CapturingGroup`||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?CM(0):SM(o,r.groupOriginByCopy,null),l=c;if(!s){let e=EM(wM(o,e=>e.type===`Group`&&!!e.flags)),t=e?Yj(r.globalFlags,e):r.globalFlags;bM(t,r.currentFlags)||(l=$A({flags:DM(t)}),l.body[0].body.push(c))}n(RM(l,t),{traverse:!s})}},vM={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>xM(t,e));i.length?i.length>1?n(RM($A({atomic:!0,body:i.reverse().map(e=>UA({body:[GA(e.number)]}))}),t)):e.ref=i[0].number:n(RM(ej({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=KA();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function yM(e){_j(e,{"*"({node:e,parent:t}){e.parent=t}})}function bM(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function xM(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=OM(n.parent);for(let r of t){if(r===n)break;if(r===e||AM(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function SM(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=SM(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function CM(e){let t=aj(e);return t.isRecursive=!0,t}function wM(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function TM(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function EM(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function DM({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),e&&t||(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function OM(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function kM(e){let t=e.find(e=>e.kind===`search_start`||NM(e,{negate:!1})||!jM(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=kM(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function AM(e,t){let n=OM(e)??[];for(let e of n)if(e===t||AM(e,t))return!0;return!1}function jM({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function MM(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function NM(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&AA(e.body[0],{type:`Assertion`,kind:`search_start`})}function PM(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function FM(e,t){let n=NA(e,{...t,unicodePropertyMap:oM}).body;return n.length>1||n[0].body.length>1?$A({body:n}):n[0].body[0]}function IM(e,t){return e.negate=t,e}function LM(e,t){return e.parent=t,e}function RM(e,t){return yM(e),e.parent=t,e}function zM(e,t){let n=tM(t),r=Zj(n.target,`ES2024`),i=Zj(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];_j(e,BM,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!o||s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,Qj(VM[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&Xj(f._captureTransfers,e.transferTo,[]).push(t)}),f}var BM={"*":{enter({node:e},t){if($M(e)){let n=t.getCurrentModI();t.pushModI(e.flags?Yj({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){$M(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){qM(Kj(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),JM(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&mM.has(e.value)&&t.setHasCasedChar()}},VM={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?$`\B`:$`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=Kj(e),r=YM(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&qM(n)){let e=aM(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);qj.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(tN)&&(o=[qA(45),...o.filter(e=>!tN(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||qj.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=$A(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=UA({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(qj.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=YM(n,i),o=YM(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&XM(JM(e)).forEach(e=>{s.add(Array.isArray(e)?`${YM(e[0],i)}-${YM(e[1],i)}`:YM(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:$`[^\n]`;if(e===`digit`)return t?$`\D`:$`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&mM.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?$`\P`:$`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?$`\W`:$`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=Yj(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${ZM(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+QM(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:$`\g<${t}&R=${r}>`}},HM=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),UM=new Set([`-`,`\\`,`]`,`^`,`[`]),WM=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),GM=new Map([[9,$`\t`],[10,$`\n`],[11,$`\v`],[12,$`\f`],[13,$`\r`],[8232,$`\u2028`],[8233,$`\u2029`],[65279,$`\uFEFF`]]),KM=/^\p{Cased}$/u;function qM(e){return KM.test(e)}function JM(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=Kj(e);if(!qM(t))continue;let o=aM(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function YM(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(GM.has(e))return GM.get(e);if(e<32||e>126&&e<160||e>262143||t&&eN(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?WM:UM:HM,a=Kj(e);return(i.has(a)?`\\`:``)+a}function XM(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function ZM(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function QM({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function $M({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function eN(e){return e>47&&e<58}function tN({type:e,value:t}){return e===`Character`&&t===45}var nN=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=iN(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(rN(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=aN(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function rN(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function iN(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)Xj(n,t,{}).transferTo=e;return n}function aN(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function oN(e,t){let n=sN(e,t);return n.options?new nN(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function sN(e,t){let n=tM(t),r=hM(NA(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:oM}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=zM(r,n),a=Bj(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=Aj(Nj(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function cN(e,t){return oN(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function lN(e={}){let t={target:`auto`,cache:new Map,...e};return t.regexConstructor||=e=>cN(e,{target:t.target}),{createScanner(e){return new Lk(e,t)},createString:zk}}var uN=lN({forgiving:!0}),dN=Object.fromEntries(cw.flatMap(e=>(e.aliases??[]).map(t=>[t,e.id]))),fN=new Set(Object.keys(dw)),pN=e=>{let t=e.trim().toLowerCase();return dN[t]||(fN.has(t),t)},mN=new Map,hN=3e5,gN=5e3,_N=64,vN=new Map,yN=0,bN=(e,t)=>{let n=t.tokens.length+Math.ceil(e.length/_N);for(let e of t.tokens)n+=e.length;return n},xN=e=>{let t=vN.get(e);return t&&(vN.delete(e),vN.set(e,t)),t?.result},SN=e=>{let t=vN.get(e);t&&(vN.delete(e),yN-=t.cost)},CN=(e,t)=>{SN(e);let n=bN(e,t);for(vN.set(e,{cost:n,result:t}),yN+=n;(yN>hN||vN.size>gN)&&vN.size>1;)SN(vN.keys().next().value)},wN=new Map,TN=4,EN=(e,t)=>{let n=wN.get(e);if(!n)return;let r=n.findIndex(e=>t.startsWith(e.prefix));return r===-1?void 0:n.splice(r,1)[0]},DN=(e,t)=>{let n=wN.get(e);n||(n=[],wN.set(e,n)),n.unshift(t),n.length>TN&&n.pop()},ON=(e,t)=>{if(t!==0)for(let n of e)for(let e of n)e.offset+=t},kN=(e,t,n,r,i)=>{let a=EN(n,t),o=a?a.prefix:``,s=a?a.rows:[],c=a?.grammarState,l=t.lastIndexOf(`
312
312
  `)+1;if(l>o.length){let a=e.codeToTokens(t.slice(o.length,l),{lang:r,themes:i,grammarState:c}),u=a.tokens;u.pop(),ON(u,o.length),s=s.concat(u),c=a.grammarState,o=t.slice(0,l),DN(n,{grammarState:c,prefix:o,rows:s})}else a&&DN(n,a);let u=e.codeToTokens(t.slice(l),{lang:r,themes:i,grammarState:c});return ON(u.tokens,l),{...u,tokens:s.concat(u.tokens)}},AN=e=>typeof e==`string`?e:e.name??`custom`,jN=(e,t)=>`${e}-${AN(t[0])}-${AN(t[1])}`,MN=(e,t,n)=>`${t}:${n[0]}:${n[1]}
313
- ${e}`,NN=(e,t)=>{let n=jN(e,t);if(mN.has(n))return mN.get(n);let r=Ek({themes:t,langs:[e],engine:uN});return mN.set(n,r),r};function PN(e={}){let t=e.themes??[`github-light`,`github-dark`];return{name:`shiki`,type:`code-highlighter`,supportsLanguage(e){let t=pN(e);return fN.has(t)},getSupportedLanguages(){return Array.from(fN)},getThemes(){return t},highlight({code:e,language:t,themes:n,isIncomplete:r=!1},i){let a=pN(t),o=[AN(n[0]),AN(n[1])],s=fN.has(a)?a:`text`,c=MN(e,s,o);return xN(c)||(NN(s,n).then(t=>{let l=t.getLoadedLanguages().includes(a)?a:`text`,u=xN(c);u||(u=kN(t,e,`${jN(s,n)}:${l}`,l,{light:o[0],dark:o[1]}),r||CN(c,u)),i?.(u)}).catch(e=>{console.error(`[Streamdown Code] Failed to highlight code:`,e)}),null)}}}var FN=PN(),IN={startOnLoad:!1,theme:`default`,securityLevel:`strict`,fontFamily:`monospace`,suppressErrorRendering:!0};function LN(e={}){let t=!1,n={...IN,...e.config},r={initialize(r){n={...IN,...e.config,...r},v.initialize(n),t=!0},async render(e,r){return t||=(v.initialize(n),!0),await v.render(e,r)}};return{name:`mermaid`,type:`diagram`,language:`mermaid`,getMermaid(e){return e&&r.initialize(e),r}}}var RN=LN();function zN({isOpen:e,onClose:t,onConfirm:n,url:r}){let[i,a]=(0,k.useState)(!1),[o,c]=(0,k.useState)(!1);return(0,q.jsx)(h,{open:e,onOpenChange:e=>{e||t()},children:(0,q.jsxs)(m,{"data-streamdown":`link-safety-modal`,"data-testid":`markdown-link-dialog`,onEscapeKeyDown:e=>{e.preventDefault(),e.stopImmediatePropagation(),t()},children:[(0,q.jsxs)(g,{children:[(0,q.jsx)(f,{children:`Open external link?`}),(0,q.jsx)(p,{children:`You’re about to visit an external website.`})]}),(0,q.jsx)(`p`,{className:`max-h-32 overflow-y-auto break-all rounded-md bg-muted p-3 font-mono text-sm`,children:r}),o&&(0,q.jsx)(`p`,{role:`status`,className:`text-sm text-destructive`,children:`Could not copy link.`}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(s,{variant:`outline`,onClick:async()=>{try{await navigator.clipboard.writeText(r),a(!0),c(!1)}catch{c(!0)}},children:i?`Copied`:`Copy link`}),(0,q.jsx)(s,{onClick:()=>{n(),t()},children:`Open link`})]})]})})}function BN(e){if(typeof e!=`string`||!e.trim())return{kind:`text`};let t=e.trim();if(/^data:image\//i.test(t)||/^blob:/i.test(t))return{kind:`inline`,src:t};let n=t.startsWith(`//`)?`https:${t}`:t;try{let e=new URL(n);if(e.protocol===`http:`||e.protocol===`https:`)return{kind:`link`,href:e.href}}catch{}return{kind:`text`}}var VN={code:FN,mermaid:RN};function HN(e){let t=typeof e.alt==`string`?e.alt:``,n=BN(e.src);return n.kind===`inline`?(0,q.jsx)(`img`,{src:n.src,alt:t,className:`max-w-full`}):n.kind===`text`?t?(0,q.jsxs)(`span`,{children:[`[`,t,`]`]}):null:(0,q.jsxs)(`a`,{href:n.href,target:`_blank`,rel:`noopener noreferrer nofollow`,referrerPolicy:`no-referrer`,"data-testid":`markdown-remote-image`,title:`Remote image, not loaded: ${n.href}`,className:`inline-flex items-center gap-1 text-primary underline`,children:[(0,q.jsx)(ee,{size:14,className:`shrink-0`}),t||n.href]})}var UN=`text-primary underline decoration-outline underline-offset-2 hover:decoration-current`;function WN(e){let t=[],n=e=>{if(typeof e==`string`||typeof e==`number`)t.push(String(e));else if(Array.isArray(e))return e.every(n);else if((0,k.isValidElement)(e)){let t=e.props.node?.tagName;if(t===`ul`||t===`ol`)return!1;n(e.props.children)}return!0};return n(e),t.join(``).replace(/\s+/g,` `).trim()}function GN({children:e,className:t,node:n,...r}){let i=typeof t==`string`&&t.includes(`task-list-item`),a=i?WN(e):``;return(0,q.jsx)(`li`,{className:o(`py-1 [&>p]:inline`,t),"data-streamdown":`list-item`,...r,children:i?(Array.isArray(e)?e:[e]).map((e,t)=>(0,k.isValidElement)(e)&&e.type===`input`?(0,k.cloneElement)(e,{key:t,"aria-label":a||`Task`}):e):e})}var KN=`[&_a]:text-primary [&_a]:underline [&_a]:decoration-outline [&_a]:underline-offset-2 [&_a:hover]:decoration-current [&_.contains-task-list]:list-none [&_.contains-task-list]:pl-0 [&_li_.contains-task-list]:pl-6 [&_.task-list-item>input]:mr-2 [&_.task-list-item>input]:align-middle`,qN=(0,k.memo)(function({children:e,wikiLinks:t,readable:n=!1}){let{theme:r}=_();return(0,q.jsx)(WC,{mode:`static`,plugins:VN,linkSafety:{enabled:!0,renderModal:e=>e.isOpen?(0,q.jsx)(zN,{...e}):null},components:{img:HN,li:GN,...t?{a:e=>{let n=typeof e.href==`string`?e.href:void 0,r=e.children;if(n?.startsWith(`#wiki-`)){let e=y(decodeURIComponent(n.slice(6)));return t.slugs.includes(e)?(0,q.jsx)(`button`,{type:`button`,"data-testid":`wiki-link-${e}`,className:UN,onClick:()=>t.select(e),children:r}):(0,q.jsx)(`span`,{children:r})}return(0,q.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,children:r})}}:{}},...t?{remarkPlugins:[...Object.values(PC),b]}:{},shikiTheme:[`github-light`,`github-dark`],mermaid:{config:{theme:r===`dark`?`dark`:`default`}},controls:{table:!1,code:{copy:!0,download:!1},mermaid:{copy:!0,download:!1,fullscreen:!0,panZoom:!0}},className:o(KN,n?`text-base leading-[1.65] text-on-surface *:my-4! [&_pre]:max-w-full [&_pre]:overflow-auto [&_pre]:text-sm [&_:is(h1,h2,h3,h4,h5,h6)]:mb-2! [&_:is(h1,h2,h3,h4,h5,h6)]:font-medium [&_:is(h1,h2,h3,h4,h5,h6)]:leading-snug [&_h1]:mt-10! [&_h1]:text-2xl [&_h2]:mt-8! [&_h2]:text-xl [&_h3]:mt-6! [&_h3]:text-lg [&_:is(h4,h5,h6)]:mt-5! [&_:is(h4,h5,h6)]:text-base [&>:is(ul,ol)]:my-3! [&_:is(ul,ol)]:list-outside [&_:is(ul,ol)]:pl-6 [&_li]:py-0.5 [&_li>:is(ul,ol)]:my-1 [&_img]:max-w-full [&_table]:text-sm [&>*:first-child]:mt-0! [&>*:last-child]:mb-0!`:`text-sm leading-relaxed text-on-surface [&_p]:my-2 [&_pre]:max-w-full [&_pre]:overflow-auto [&_pre]:text-xs [&_h1]:text-xl [&_h2]:text-lg [&_h3]:text-base [&_ul]:my-2 [&_ol]:my-2`),children:e})});export{qN as MarkdownRenderer,ew as i,BC as n,nx as r,Tb as t};
313
+ ${e}`,NN=(e,t)=>{let n=jN(e,t);if(mN.has(n))return mN.get(n);let r=Ek({themes:t,langs:[e],engine:uN});return mN.set(n,r),r};function PN(e={}){let t=e.themes??[`github-light`,`github-dark`];return{name:`shiki`,type:`code-highlighter`,supportsLanguage(e){let t=pN(e);return fN.has(t)},getSupportedLanguages(){return Array.from(fN)},getThemes(){return t},highlight({code:e,language:t,themes:n,isIncomplete:r=!1},i){let a=pN(t),o=[AN(n[0]),AN(n[1])],s=fN.has(a)?a:`text`,c=MN(e,s,o);return xN(c)||(NN(s,n).then(t=>{let l=t.getLoadedLanguages().includes(a)?a:`text`,u=xN(c);u||(u=kN(t,e,`${jN(s,n)}:${l}`,l,{light:o[0],dark:o[1]}),r||CN(c,u)),i?.(u)}).catch(e=>{console.error(`[Streamdown Code] Failed to highlight code:`,e)}),null)}}}var FN=PN(),IN={startOnLoad:!1,theme:`default`,securityLevel:`strict`,fontFamily:`monospace`,suppressErrorRendering:!0};function LN(e={}){let t=!1,n={...IN,...e.config},r={initialize(r){n={...IN,...e.config,...r},v.initialize(n),t=!0},async render(e,r){return t||=(v.initialize(n),!0),await v.render(e,r)}};return{name:`mermaid`,type:`diagram`,language:`mermaid`,getMermaid(e){return e&&r.initialize(e),r}}}var RN=LN();function zN({isOpen:e,onClose:t,onConfirm:n,url:r}){let[i,a]=(0,k.useState)(!1),[o,s]=(0,k.useState)(!1),c=(0,k.useRef)(null);return(0,k.useLayoutEffect)(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&e.target instanceof Node&&c.current?.contains(e.target)&&(e.preventDefault(),e.stopImmediatePropagation(),t())};return window.addEventListener(`keydown`,n,!0),()=>window.removeEventListener(`keydown`,n,!0)},[e,t]),(0,q.jsx)(g,{open:e,onOpenChange:e=>{e||t()},children:(0,q.jsxs)(p,{ref:c,"data-streamdown":`link-safety-modal`,"data-testid":`markdown-link-dialog`,onEscapeKeyDown:e=>{e.preventDefault(),e.stopImmediatePropagation(),t()},children:[(0,q.jsxs)(f,{children:[(0,q.jsx)(m,{children:`Open external link?`}),(0,q.jsx)(h,{children:`You’re about to visit an external website.`})]}),(0,q.jsx)(`p`,{className:`max-h-32 overflow-y-auto break-all rounded-md bg-muted p-3 font-mono text-sm`,children:r}),o&&(0,q.jsx)(`p`,{role:`status`,className:`text-sm text-destructive`,children:`Could not copy link.`}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(l,{variant:`outline`,onClick:async()=>{try{await navigator.clipboard.writeText(r),a(!0),s(!1)}catch{s(!0)}},children:i?`Copied`:`Copy link`}),(0,q.jsx)(l,{onClick:()=>{n(),t()},children:`Open link`})]})]})})}function BN(e){if(typeof e!=`string`||!e.trim())return{kind:`text`};let t=e.trim();if(/^data:image\//i.test(t)||/^blob:/i.test(t))return{kind:`inline`,src:t};let n=t.startsWith(`//`)?`https:${t}`:t;try{let e=new URL(n);if(e.protocol===`http:`||e.protocol===`https:`)return{kind:`link`,href:e.href}}catch{}return{kind:`text`}}var VN={code:FN,mermaid:RN};function HN(e){let t=typeof e.alt==`string`?e.alt:``,n=BN(e.src);return n.kind===`inline`?(0,q.jsx)(`img`,{src:n.src,alt:t,className:`max-w-full`}):n.kind===`text`?t?(0,q.jsxs)(`span`,{children:[`[`,t,`]`]}):null:(0,q.jsxs)(`a`,{href:n.href,target:`_blank`,rel:`noopener noreferrer nofollow`,referrerPolicy:`no-referrer`,"data-testid":`markdown-remote-image`,title:`Remote image, not loaded: ${n.href}`,className:`inline-flex items-center gap-1 text-primary underline`,children:[(0,q.jsx)(ee,{size:14,className:`shrink-0`}),t||n.href]})}var UN=`text-primary underline decoration-outline underline-offset-2 hover:decoration-current`;function WN(e){let t=[],n=e=>{if(typeof e==`string`||typeof e==`number`)t.push(String(e));else if(Array.isArray(e))return e.every(n);else if((0,k.isValidElement)(e)){let t=e.props.node?.tagName;if(t===`ul`||t===`ol`)return!1;n(e.props.children)}return!0};return n(e),t.join(``).replace(/\s+/g,` `).trim()}function GN({children:e,className:t,node:n,...r}){let i=typeof t==`string`&&t.includes(`task-list-item`),a=i?WN(e):``;return(0,q.jsx)(`li`,{className:c(`py-1 [&>p]:inline`,t),"data-streamdown":`list-item`,...r,children:i?(Array.isArray(e)?e:[e]).map((e,t)=>(0,k.isValidElement)(e)&&e.type===`input`?(0,k.cloneElement)(e,{key:t,"aria-label":a||`Task`}):e):e})}var KN=`[&_a]:text-primary [&_a]:underline [&_a]:decoration-outline [&_a]:underline-offset-2 [&_a:hover]:decoration-current [&_.contains-task-list]:list-none [&_.contains-task-list]:pl-0 [&_li_.contains-task-list]:pl-6 [&_.task-list-item>input]:mr-2 [&_.task-list-item>input]:align-middle`,qN=(0,k.memo)(function({children:e,wikiLinks:t,readable:n=!1}){let{theme:r}=_();return(0,q.jsx)(WC,{mode:`static`,plugins:VN,linkSafety:{enabled:!0,renderModal:e=>e.isOpen?(0,q.jsx)(zN,{...e}):null},components:{img:HN,li:GN,...t?{a:e=>{let n=typeof e.href==`string`?e.href:void 0,r=e.children;if(n?.startsWith(`#wiki-`)){let e=y(decodeURIComponent(n.slice(6)));return t.slugs.includes(e)?(0,q.jsx)(`button`,{type:`button`,"data-testid":`wiki-link-${e}`,className:UN,onClick:()=>t.select(e),children:r}):(0,q.jsx)(`span`,{children:r})}return(0,q.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,children:r})}}:{}},...t?{remarkPlugins:[...Object.values(PC),b]}:{},shikiTheme:[`github-light`,`github-dark`],mermaid:{config:{theme:r===`dark`?`dark`:`default`}},controls:{table:!1,code:{copy:!0,download:!1},mermaid:{copy:!0,download:!1,fullscreen:!0,panZoom:!0}},className:c(KN,n?`text-base leading-[1.65] text-on-surface *:my-4! [&_pre]:max-w-full [&_pre]:overflow-auto [&_pre]:text-sm [&_:is(h1,h2,h3,h4,h5,h6)]:mb-2! [&_:is(h1,h2,h3,h4,h5,h6)]:font-medium [&_:is(h1,h2,h3,h4,h5,h6)]:leading-snug [&_h1]:mt-10! [&_h1]:text-2xl [&_h2]:mt-8! [&_h2]:text-xl [&_h3]:mt-6! [&_h3]:text-lg [&_:is(h4,h5,h6)]:mt-5! [&_:is(h4,h5,h6)]:text-base [&>:is(ul,ol)]:my-3! [&_:is(ul,ol)]:list-outside [&_:is(ul,ol)]:pl-6 [&_li]:py-0.5 [&_li>:is(ul,ol)]:my-1 [&_img]:max-w-full [&_table]:text-sm [&>*:first-child]:mt-0! [&>*:last-child]:mb-0!`:`text-sm leading-relaxed text-on-surface [&_p]:my-2 [&_pre]:max-w-full [&_pre]:overflow-auto [&_pre]:text-xs [&_h1]:text-xl [&_h2]:text-lg [&_h3]:text-base [&_ul]:my-2 [&_ol]:my-2`),children:e})});export{qN as MarkdownRenderer,ew as i,BC as n,nx as r,Tb as t};