docs-i18n 0.11.0 → 0.11.1

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 (189) hide show
  1. package/admin/app/worker.ts +43 -0
  2. package/admin/dist/server/assets/{router-D-82slI-.js → router-Cxm33tn3.js} +2 -2
  3. package/admin/dist/server/assets/{routes-C9huiZHw.js → routes-CxGhew8Z.js} +1 -1
  4. package/admin/dist/server/assets/{routes-B1pNmxF3.js → routes-DtWFPDUc.js} +2 -2
  5. package/admin/dist/server/server.js +2 -2
  6. package/package.json +1 -1
  7. package/template/dist/client/assets/{Doc-BKO69_nz.js → Doc-CbmLeLjl.js} +1 -1
  8. package/template/dist/client/assets/{DocsLayout-BGugXxEQ.js → DocsLayout-ERG7nrAc.js} +1 -1
  9. package/template/dist/client/assets/{FileTabs-4fZriOj4.js → FileTabs-CCynw0nL.js} +1 -1
  10. package/template/dist/client/assets/{Footer-DYh1AfWA.js → Footer-l6Y8-ltB.js} +1 -1
  11. package/template/dist/client/assets/{FrameworkContent-rVvjxASn.js → FrameworkContent-pNf68F7f.js} +1 -1
  12. package/template/dist/client/assets/{MarkdownHeadingContext-CdvUDZFU.js → MarkdownHeadingContext-6I862CKH.js} +4 -4
  13. package/template/dist/client/assets/{PostNotFound-WoSYGsGu.js → PostNotFound-ScC0039d.js} +1 -1
  14. package/template/dist/client/assets/{_basePickBy-Dd7GuR7A.js → _basePickBy-B-GcvGxW.js} +1 -1
  15. package/template/dist/client/assets/{_baseUniq-DMxQLGFI.js → _baseUniq-C1WySGZQ.js} +1 -1
  16. package/template/dist/client/assets/_lang-B3tRf7os.js +1 -0
  17. package/template/dist/client/assets/_lang._project-CH0inpmY.js +1 -0
  18. package/template/dist/client/assets/_lang._project._version-CESvrqds.js +1 -0
  19. package/template/dist/client/assets/{_lang._project._version.docs-DokNGgvU.js → _lang._project._version.docs-aw08dKvN.js} +1 -1
  20. package/template/dist/client/assets/{_lang._project._version.docs._-CXCNZzOb.js → _lang._project._version.docs._-B4Vb_S0V.js} +1 -1
  21. package/template/dist/client/assets/_lang._project._version.docs._-BexMyJr9.js +1 -0
  22. package/template/dist/client/assets/_lang._project._version.docs.framework._framework._-BbQgUWTH.js +1 -0
  23. package/template/dist/client/assets/{_lang._project._version.docs.framework._framework.index-DsYjXRdj.js → _lang._project._version.docs.framework._framework.index-DInYPTXM.js} +1 -1
  24. package/template/dist/client/assets/{_lang._project._version.docs.framework.index-DQX1lBi3.js → _lang._project._version.docs.framework.index-B7EvJmBI.js} +1 -1
  25. package/template/dist/client/assets/{_lang._project.docs-DsYQj9jI.js → _lang._project.docs-4oX3ADgu.js} +1 -1
  26. package/template/dist/client/assets/_lang._project.docs._-R9bOn492.js +1 -0
  27. package/template/dist/client/assets/{_lang._project.docs._-l2tTjx80.js → _lang._project.docs._-emq0IsQw.js} +1 -1
  28. package/template/dist/client/assets/_lang.blog-BViCs72M.js +1 -0
  29. package/template/dist/client/assets/_lang.blog-DhVkwYEk.js +1 -0
  30. package/template/dist/client/assets/_lang.blog._-BHdaHDBU.js +1 -0
  31. package/template/dist/client/assets/{_lang.blog._-Umz18sQE.js → _lang.blog._-DErizs7q.js} +1 -1
  32. package/template/dist/client/assets/_lang.blog.index-CELEUrkj.js +1 -0
  33. package/template/dist/client/assets/{_lang.blog.index-DzUqpOBE.js → _lang.blog.index-DZDuDkQr.js} +1 -1
  34. package/template/dist/client/assets/{_lang.docs-CUh3R7DD.js → _lang.docs-CQK0rfqt.js} +1 -1
  35. package/template/dist/client/assets/{_lang.docs._-DlgTPy3s.js → _lang.docs._-BiCvgeV1.js} +1 -1
  36. package/template/dist/client/assets/_lang.docs._-axvS_dfl.js +1 -0
  37. package/template/dist/client/assets/_lang.docs.framework._framework._-D2FAQ0gW.js +1 -0
  38. package/template/dist/client/assets/{_lang.docs.framework._framework.index-DTg6Xd3p.js → _lang.docs.framework._framework.index-Bu5p5Q_r.js} +1 -1
  39. package/template/dist/client/assets/{_lang.docs.framework.index-BQ2enasl.js → _lang.docs.framework.index-uTDFLagP.js} +1 -1
  40. package/template/dist/client/assets/{arc-DGPgC_QF.js → arc-C16C7aa3.js} +1 -1
  41. package/template/dist/client/assets/{architectureDiagram-2XIMDMQ5-yI53_GAi.js → architectureDiagram-2XIMDMQ5-DgSSDH9Z.js} +1 -1
  42. package/template/dist/client/assets/{blockDiagram-WCTKOSBZ-C3tr24zy.js → blockDiagram-WCTKOSBZ-Bs8e58Or.js} +1 -1
  43. package/template/dist/client/assets/{c4Diagram-IC4MRINW-DOA-mowm.js → c4Diagram-IC4MRINW-DsGaAPtm.js} +1 -1
  44. package/template/dist/client/assets/channel-Clrp6Lr4.js +1 -0
  45. package/template/dist/client/assets/{chunk-4BX2VUAB-B6NSnNJJ.js → chunk-4BX2VUAB-BQdq93Vq.js} +1 -1
  46. package/template/dist/client/assets/{chunk-55IACEB6-CWYwArBH.js → chunk-55IACEB6-zjp4uUiZ.js} +1 -1
  47. package/template/dist/client/assets/{chunk-FMBD7UC4-DSyn2wIW.js → chunk-FMBD7UC4-CEdYlBOF.js} +1 -1
  48. package/template/dist/client/assets/{chunk-JSJVCQXG-D83nm5W0.js → chunk-JSJVCQXG-CVkDw9ls.js} +1 -1
  49. package/template/dist/client/assets/{chunk-KX2RTZJC-DD7fN9e9.js → chunk-KX2RTZJC--1vKv-mr.js} +1 -1
  50. package/template/dist/client/assets/{chunk-NQ4KR5QH-C3YlYiU5.js → chunk-NQ4KR5QH-Cpo-W18l.js} +1 -1
  51. package/template/dist/client/assets/{chunk-QZHKN3VN-B7wBEuCG.js → chunk-QZHKN3VN-BizWJuB4.js} +1 -1
  52. package/template/dist/client/assets/{chunk-WL4C6EOR-ByA1FloT.js → chunk-WL4C6EOR-6lLYa9R1.js} +1 -1
  53. package/template/dist/client/assets/classDiagram-VBA2DB6C-Beq6_jEy.js +1 -0
  54. package/template/dist/client/assets/classDiagram-v2-RAHNMMFH-Beq6_jEy.js +1 -0
  55. package/template/dist/client/assets/clone-BbBu6MzK.js +1 -0
  56. package/template/dist/client/assets/{cose-bilkent-S5V4N54A-nt_sXfWc.js → cose-bilkent-S5V4N54A-CaD0EGPJ.js} +1 -1
  57. package/template/dist/client/assets/{dagre-KLK3FWXG-DUsyMTPd.js → dagre-KLK3FWXG-h4F9WtDQ.js} +1 -1
  58. package/template/dist/client/assets/{diagram-E7M64L7V-D5SAypX0.js → diagram-E7M64L7V-CBUSWzH5.js} +1 -1
  59. package/template/dist/client/assets/{diagram-IFDJBPK2-WhP5c8Vz.js → diagram-IFDJBPK2-C5oMubv0.js} +1 -1
  60. package/template/dist/client/assets/{diagram-P4PSJMXO-AMrwIlhf.js → diagram-P4PSJMXO-DdPwwhHR.js} +1 -1
  61. package/template/dist/client/assets/{erDiagram-INFDFZHY-BxifSpCV.js → erDiagram-INFDFZHY-0U5A-RF0.js} +1 -1
  62. package/template/dist/client/assets/{flowDiagram-PKNHOUZH-BMAowE9I.js → flowDiagram-PKNHOUZH-CXN3pvSW.js} +1 -1
  63. package/template/dist/client/assets/{ganttDiagram-A5KZAMGK-Bay-0iRq.js → ganttDiagram-A5KZAMGK-DlovlSO7.js} +1 -1
  64. package/template/dist/client/assets/{gitGraphDiagram-K3NZZRJ6-Va91W3gw.js → gitGraphDiagram-K3NZZRJ6-Bo-Jjy7v.js} +1 -1
  65. package/template/dist/client/assets/{graph-CbBYObK_.js → graph-C0TauvuO.js} +1 -1
  66. package/template/dist/client/assets/{index-CF6qz2tX.js → index-iATq4LEm.js} +1 -1
  67. package/template/dist/client/assets/{infoDiagram-LFFYTUFH-Byd5C-4U.js → infoDiagram-LFFYTUFH-BbvPzztn.js} +1 -1
  68. package/template/dist/client/assets/{ishikawaDiagram-PHBUUO56-DxOKnE1v.js → ishikawaDiagram-PHBUUO56-DKCMONMO.js} +1 -1
  69. package/template/dist/client/assets/{journeyDiagram-4ABVD52K-IRmt7RI4.js → journeyDiagram-4ABVD52K-D9NP_vvu.js} +1 -1
  70. package/template/dist/client/assets/{kanban-definition-K7BYSVSG-BjTVXn-R.js → kanban-definition-K7BYSVSG-X-u_nWxK.js} +1 -1
  71. package/template/dist/client/assets/{layout-Bbx6A0bC.js → layout-IeRzBrUX.js} +1 -1
  72. package/template/dist/client/assets/{linear-Df2eAW4A.js → linear-DEzVUeiK.js} +1 -1
  73. package/template/dist/client/assets/{main-DqZtiCro.js → main-Csj9i19C.js} +2 -2
  74. package/template/dist/client/assets/{mermaid.core-BIoiBcAA.js → mermaid.core-CCnh2DG0.js} +4 -4
  75. package/template/dist/client/assets/{mindmap-definition-YRQLILUH-Btzz0iIP.js → mindmap-definition-YRQLILUH-DgyN4Ft-.js} +1 -1
  76. package/template/dist/client/assets/ordinal-BENe2yWM.js +1 -0
  77. package/template/dist/client/assets/{pieDiagram-SKSYHLDU-C2amrGtU.js → pieDiagram-SKSYHLDU-DDVqU_2Q.js} +1 -1
  78. package/template/dist/client/assets/{quadrantDiagram-337W2JSQ-EVgH9VuN.js → quadrantDiagram-337W2JSQ-BeUxMqle.js} +1 -1
  79. package/template/dist/client/assets/{react-qvbbiZob.js → react-os8EX6z1.js} +1 -1
  80. package/template/dist/client/assets/{requirementDiagram-Z7DCOOCP-BkYPbRis.js → requirementDiagram-Z7DCOOCP-CpzdlyEd.js} +1 -1
  81. package/template/dist/client/assets/{sankeyDiagram-WA2Y5GQK-B5EIaP-h.js → sankeyDiagram-WA2Y5GQK-CmSWF6XU.js} +1 -1
  82. package/template/dist/client/assets/{sequenceDiagram-2WXFIKYE-BC33VGOc.js → sequenceDiagram-2WXFIKYE-DarofLka.js} +1 -1
  83. package/template/dist/client/assets/{stateDiagram-RAJIS63D-DiKvWUYb.js → stateDiagram-RAJIS63D-CEio2h-7.js} +1 -1
  84. package/template/dist/client/assets/stateDiagram-v2-FVOUBMTO-CbfK0_BD.js +1 -0
  85. package/template/dist/client/assets/{timeline-definition-YZTLITO2-QiFlgbRA.js → timeline-definition-YZTLITO2-By_Wk6uc.js} +1 -1
  86. package/template/dist/client/assets/{treemap-KZPCXAKY-BOYbyS9G.js → treemap-KZPCXAKY-mKcaMbv9.js} +1 -1
  87. package/template/dist/client/assets/{vennDiagram-LZ73GAT5-CqmW7j4r.js → vennDiagram-LZ73GAT5-Dx_Fh7nH.js} +1 -1
  88. package/template/dist/client/assets/{xychartDiagram-JWTSCODW-gj6oWX8l.js → xychartDiagram-JWTSCODW-DSAwWbBw.js} +1 -1
  89. package/template/dist/server/assets/{Doc-9tJiX5y6.js → Doc-B8TJBEmx.js} +3 -3
  90. package/template/dist/server/assets/{DocsLayout-BTjhU_W5.js → DocsLayout-CnWgvk8u.js} +2 -2
  91. package/template/dist/server/assets/{Footer-CefTi2yh.js → Footer-WapWK45U.js} +1 -1
  92. package/template/dist/server/assets/{FrameworkContent-BkJvuP04.js → FrameworkContent-gzqT-Q1n.js} +2 -2
  93. package/template/dist/server/assets/{MarkdownHeadingContext-37oQpb36.js → MarkdownHeadingContext-Iyk66Y4x.js} +3 -3
  94. package/template/dist/server/assets/{PostNotFound-BqBZf83v.js → PostNotFound-GKdNuzsX.js} +1 -1
  95. package/template/dist/server/assets/{_basePickBy-DZ3TPUta.js → _basePickBy-DJ9gzwF8.js} +2 -2
  96. package/template/dist/server/assets/{_baseUniq-DKicWTQT.js → _baseUniq-CezmbvU2.js} +1 -1
  97. package/template/dist/server/assets/{_lang._project._version.docs-U-t4mk5_.js → _lang._project._version.docs-BOZ34yW7.js} +3 -3
  98. package/template/dist/server/assets/{_lang._project._version.docs._-DMgnElWM.js → _lang._project._version.docs._-5W2jN7Re.js} +5 -5
  99. package/template/dist/server/assets/{_lang._project._version.docs.framework._framework._-kBw_9L-F.js → _lang._project._version.docs.framework._framework._-DeN_oA8l.js} +5 -5
  100. package/template/dist/server/assets/{_lang._project._version.docs.framework._framework.index-Bsyj0DD5.js → _lang._project._version.docs.framework._framework.index-jWKDCQSE.js} +1 -1
  101. package/template/dist/server/assets/{_lang._project._version.docs.framework.index-CmLAP_Io.js → _lang._project._version.docs.framework.index-DOT4MtjZ.js} +1 -1
  102. package/template/dist/server/assets/{_lang._project.docs-Bb4ZZ_jr.js → _lang._project.docs-r4V9TXuu.js} +3 -3
  103. package/template/dist/server/assets/{_lang._project.docs._-ChrpJ61j.js → _lang._project.docs._-Bge7JaYE.js} +5 -5
  104. package/template/dist/server/assets/{_lang.blog-8j6IvzvQ.js → _lang.blog-DJOfiyA8.js} +2 -2
  105. package/template/dist/server/assets/{_lang.blog._-DNX8UglA.js → _lang.blog._-C7iqMj9O.js} +2 -2
  106. package/template/dist/server/assets/{_lang.blog._-BPzP97Ac.js → _lang.blog._-yJSqbX08.js} +2 -2
  107. package/template/dist/server/assets/{_lang.blog.index-DzVKqoC4.js → _lang.blog.index-CrdyROhK.js} +2 -2
  108. package/template/dist/server/assets/{_lang.blog.index-CeZnMJBi.js → _lang.blog.index-Df_6_IKx.js} +1 -1
  109. package/template/dist/server/assets/{_lang.docs-B4StnHMb.js → _lang.docs-Jwt4deTW.js} +3 -3
  110. package/template/dist/server/assets/{_lang.docs._--c0In1AT.js → _lang.docs._-D_DdKLAV.js} +5 -5
  111. package/template/dist/server/assets/{_lang.docs.framework._framework._-Be0U7cDg.js → _lang.docs.framework._framework._-BkQaZ_1f.js} +5 -5
  112. package/template/dist/server/assets/{_lang.docs.framework._framework.index-BZ512aSk.js → _lang.docs.framework._framework.index-BLx8p8IS.js} +1 -1
  113. package/template/dist/server/assets/{_lang.docs.framework.index-U8z3j4kz.js → _lang.docs.framework.index-BytQ_q8T.js} +1 -1
  114. package/template/dist/server/assets/{_tanstack-start-manifest_v-DXpQ8503.js → _tanstack-start-manifest_v-RX6ItZ5S.js} +1 -1
  115. package/template/dist/server/assets/{arc-B4h6h_n6.js → arc-BwftnT5H.js} +1 -1
  116. package/template/dist/server/assets/{architecture-PBZL5I3N-CUwqLXkR.js → architecture-PBZL5I3N-KbDVC6gM.js} +6 -6
  117. package/template/dist/server/assets/{architectureDiagram-2XIMDMQ5-CuCoxdBe.js → architectureDiagram-2XIMDMQ5-BoLvWxb3.js} +6 -6
  118. package/template/dist/server/assets/{blockDiagram-WCTKOSBZ-D5PsUOim.js → blockDiagram-WCTKOSBZ-GPFcXs-f.js} +6 -6
  119. package/template/dist/server/assets/{c4Diagram-IC4MRINW-CXy5xO3o.js → c4Diagram-IC4MRINW-EQwQCspo.js} +2 -2
  120. package/template/dist/server/assets/{channel-D0l-mWaF.js → channel-CxvwuPH7.js} +1 -1
  121. package/template/dist/server/assets/{chunk-4BX2VUAB-M7FVHMss.js → chunk-4BX2VUAB-DUgcw5ei.js} +1 -1
  122. package/template/dist/server/assets/{chunk-55IACEB6-D_gDAje5.js → chunk-55IACEB6-Cn15uD91.js} +1 -1
  123. package/template/dist/server/assets/{chunk-FMBD7UC4-B5Bebx-Y.js → chunk-FMBD7UC4-Ck3iyLPu.js} +1 -1
  124. package/template/dist/server/assets/{chunk-JSJVCQXG-DxBkq-uB.js → chunk-JSJVCQXG-VAT8yncE.js} +1 -1
  125. package/template/dist/server/assets/{chunk-KX2RTZJC-BMHm1EGi.js → chunk-KX2RTZJC-B1bd2VmA.js} +1 -1
  126. package/template/dist/server/assets/{chunk-NQ4KR5QH-Cp28pTwT.js → chunk-NQ4KR5QH-CR67GG9C.js} +3 -3
  127. package/template/dist/server/assets/{chunk-QZHKN3VN-Bq5GZqaR.js → chunk-QZHKN3VN-B9SSazM4.js} +1 -1
  128. package/template/dist/server/assets/{chunk-WL4C6EOR-C9Nj5GdW.js → chunk-WL4C6EOR-DZ4Pjuao.js} +5 -5
  129. package/template/dist/server/assets/{classDiagram-VBA2DB6C-CUchv9T5.js → classDiagram-VBA2DB6C-CA6_4Wb2.js} +6 -6
  130. package/template/dist/server/assets/{classDiagram-v2-RAHNMMFH-CUchv9T5.js → classDiagram-v2-RAHNMMFH-CA6_4Wb2.js} +6 -6
  131. package/template/dist/server/assets/{clone-CJcTi58S.js → clone-DJHP_iVy.js} +1 -1
  132. package/template/dist/server/assets/{cose-bilkent-S5V4N54A-CxvCMhN_.js → cose-bilkent-S5V4N54A-DtU-cN6W.js} +1 -1
  133. package/template/dist/server/assets/{dagre-KLK3FWXG-B5bQP7FL.js → dagre-KLK3FWXG-yZYrVU4p.js} +6 -6
  134. package/template/dist/server/assets/{diagram-E7M64L7V-NjHca90S.js → diagram-E7M64L7V-8Yyz0aw0.js} +8 -8
  135. package/template/dist/server/assets/{diagram-IFDJBPK2-CoTCfBKd.js → diagram-IFDJBPK2-DcxFYI3M.js} +6 -6
  136. package/template/dist/server/assets/{diagram-P4PSJMXO-DHvGgYjH.js → diagram-P4PSJMXO-CehxUcI0.js} +6 -6
  137. package/template/dist/server/assets/{erDiagram-INFDFZHY-01crajKr.js → erDiagram-INFDFZHY-Bu2p1_Pj.js} +4 -4
  138. package/template/dist/server/assets/{flowDiagram-PKNHOUZH-BkUQ_vxg.js → flowDiagram-PKNHOUZH-B_eKR7I0.js} +6 -6
  139. package/template/dist/server/assets/{ganttDiagram-A5KZAMGK-DvrO-w2P.js → ganttDiagram-A5KZAMGK-DP6YEZof.js} +2 -2
  140. package/template/dist/server/assets/{gitGraph-HDMCJU4V-h9JNaxB7.js → gitGraph-HDMCJU4V-Bt0qhVL4.js} +6 -6
  141. package/template/dist/server/assets/{gitGraphDiagram-K3NZZRJ6-BoKm6Fm-.js → gitGraphDiagram-K3NZZRJ6-DwvkdYrg.js} +7 -7
  142. package/template/dist/server/assets/{graph-BoxbfI7Z.js → graph-BVFNe_k5.js} +2 -2
  143. package/template/dist/server/assets/{index-Jfzi6SZW.js → index-DvBGSZeA.js} +2 -2
  144. package/template/dist/server/assets/{info-3K5VOQVL-DgaSHqkS.js → info-3K5VOQVL-CFejRnvB.js} +6 -6
  145. package/template/dist/server/assets/{infoDiagram-LFFYTUFH-DgV5W8-I.js → infoDiagram-LFFYTUFH-D0v9uyXI.js} +5 -5
  146. package/template/dist/server/assets/{ishikawaDiagram-PHBUUO56-CqlMQ0Fq.js → ishikawaDiagram-PHBUUO56-DZumspL4.js} +1 -1
  147. package/template/dist/server/assets/{journeyDiagram-4ABVD52K-D6ySTub8.js → journeyDiagram-4ABVD52K-nRp_-qZp.js} +4 -4
  148. package/template/dist/server/assets/{kanban-definition-K7BYSVSG-BT8m7Cwk.js → kanban-definition-K7BYSVSG-BMKyyzjt.js} +2 -2
  149. package/template/dist/server/assets/{layout-CkYcErfn.js → layout-mpiN5R-5.js} +4 -4
  150. package/template/dist/server/assets/{linear-F_0dWGZL.js → linear-CqNYgjEx.js} +1 -1
  151. package/template/dist/server/assets/{mermaid-parser.core-q5MdUJuo.js → mermaid-parser.core-B8Uu3QZY.js} +11 -11
  152. package/template/dist/server/assets/{mermaid.core-DOWTODR1.js → mermaid.core-BI3nMhNO.js} +31 -31
  153. package/template/dist/server/assets/{mindmap-definition-YRQLILUH-BQxlQqn-.js → mindmap-definition-YRQLILUH-DCoFqLPh.js} +3 -3
  154. package/template/dist/server/assets/{ordinal-CxptdPJm.js → ordinal-Bcam90FY.js} +1 -1
  155. package/template/dist/server/assets/{packet-RMMSAZCW-D8FkLZuP.js → packet-RMMSAZCW-djgonfKN.js} +6 -6
  156. package/template/dist/server/assets/{pie-UPGHQEXC-Diw2fHLk.js → pie-UPGHQEXC-Dug2t-PE.js} +6 -6
  157. package/template/dist/server/assets/{pieDiagram-SKSYHLDU-B1J4UJZ7.js → pieDiagram-SKSYHLDU-CS0_hW4w.js} +8 -8
  158. package/template/dist/server/assets/{quadrantDiagram-337W2JSQ-BvjKLapg.js → quadrantDiagram-337W2JSQ-BpQNM0zu.js} +2 -2
  159. package/template/dist/server/assets/{radar-KQ55EAFF-CcBdPU3n.js → radar-KQ55EAFF-3ir2W9Wi.js} +6 -6
  160. package/template/dist/server/assets/{requirementDiagram-Z7DCOOCP-Bgr_wnAs.js → requirementDiagram-Z7DCOOCP-D92RyjV4.js} +3 -3
  161. package/template/dist/server/assets/{router-DxwPl-Dc.js → router-DPPgDicW.js} +18 -18
  162. package/template/dist/server/assets/{sankeyDiagram-WA2Y5GQK-B0UwtyW3.js → sankeyDiagram-WA2Y5GQK-DCPRB-xO.js} +2 -2
  163. package/template/dist/server/assets/{sequenceDiagram-2WXFIKYE-BbxQJHjO.js → sequenceDiagram-2WXFIKYE-C1ab2VvU.js} +3 -3
  164. package/template/dist/server/assets/{stateDiagram-RAJIS63D-Cg-uJ_UO.js → stateDiagram-RAJIS63D-GhG1G3ff.js} +8 -8
  165. package/template/dist/server/assets/{stateDiagram-v2-FVOUBMTO-BWVPrqfa.js → stateDiagram-v2-FVOUBMTO-C-KtMadV.js} +4 -4
  166. package/template/dist/server/assets/{timeline-definition-YZTLITO2-DCSJT2WT.js → timeline-definition-YZTLITO2-DyfAQCd4.js} +2 -2
  167. package/template/dist/server/assets/{treemap-KZPCXAKY-a0nhlKgx.js → treemap-KZPCXAKY-Cn0Cw4Cl.js} +6 -6
  168. package/template/dist/server/assets/{vennDiagram-LZ73GAT5-Bk2HQEQq.js → vennDiagram-LZ73GAT5-D2Ak5JUa.js} +1 -1
  169. package/template/dist/server/assets/{xychartDiagram-JWTSCODW-C4svHkt_.js → xychartDiagram-JWTSCODW-DqoBOs1L.js} +3 -3
  170. package/template/dist/server/server.js +5 -5
  171. package/template/dist/client/assets/_lang-3AqGszEy.js +0 -1
  172. package/template/dist/client/assets/_lang._project-COkrIqzH.js +0 -1
  173. package/template/dist/client/assets/_lang._project._version-B8vRZczu.js +0 -1
  174. package/template/dist/client/assets/_lang._project._version.docs._-DR0WSQEb.js +0 -1
  175. package/template/dist/client/assets/_lang._project._version.docs.framework._framework._-C_Grro8r.js +0 -1
  176. package/template/dist/client/assets/_lang._project.docs._-DlM_D6DD.js +0 -1
  177. package/template/dist/client/assets/_lang.blog-CEwEtalL.js +0 -1
  178. package/template/dist/client/assets/_lang.blog-D6YGC3tK.js +0 -1
  179. package/template/dist/client/assets/_lang.blog._-DgHu4oLy.js +0 -1
  180. package/template/dist/client/assets/_lang.blog.index-C8LKUFtD.js +0 -1
  181. package/template/dist/client/assets/_lang.docs._-DmaQE7lx.js +0 -1
  182. package/template/dist/client/assets/_lang.docs.framework._framework._-B4C4uDFp.js +0 -1
  183. package/template/dist/client/assets/channel-DzZD7dUQ.js +0 -1
  184. package/template/dist/client/assets/classDiagram-VBA2DB6C-CRozKaUD.js +0 -1
  185. package/template/dist/client/assets/classDiagram-v2-RAHNMMFH-CRozKaUD.js +0 -1
  186. package/template/dist/client/assets/clone-CGnOEl4E.js +0 -1
  187. package/template/dist/client/assets/ordinal-Cboi1Yqb.js +0 -1
  188. package/template/dist/client/assets/stateDiagram-v2-FVOUBMTO-DjKMPYGe.js +0 -1
  189. package/admin/dist/server/assets/{__tanstack-start-server-fn-resolver-qK0Yfvti.js → __tanstack-start-server-fn-resolver-N1N5mZVv.js} +4 -4
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/mermaid.core-BIoiBcAA.js","assets/main-DqZtiCro.js","assets/FileTabs-4fZriOj4.js","assets/FrameworkContent-rVvjxASn.js","assets/react-qvbbiZob.js"])))=>i.map(i=>d[i]);
2
- import{z as nu,r as De,j as K,L as Hr,q as Bd,t as An,A as iu,H as Md,I as Ud,J as Vd,K as Hd,_ as k,N as jd,P as Uc,Q as Vc,o as Hc}from"./main-DqZtiCro.js";import{c as zd}from"./react-qvbbiZob.js";const qd=nu("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Gd=nu("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const Wd=nu("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Yd={1:"",2:"",3:"pl-2",4:"pl-4",5:"pl-6",6:"pl-8"};function Ik({headings:e,textColor:t,activeHeadings:n,currentFramework:i}){const r=De.useMemo(()=>e.filter(s=>s.framework?i&&s.framework===i.toLowerCase():!0),[e,i]);return K.jsxs("nav",{className:"flex flex-col sticky top-[var(--navbar-height)] max-h-[calc(100dvh-var(--navbar-height))] overflow-hidden",children:[K.jsx("div",{className:"py-1",children:K.jsx("h3",{className:"text-[.8em] lg:text-[.825em] xl:text-[.875em] 2xl:text-[.9em] font-bold",children:"On this page"})}),K.jsx("ul",{className:An("py-1 flex flex-col overflow-y-auto text-[.6em] lg:text-[.65em] xl:text-[.7em] 2xl:text-[.75em]"),children:r?.map(s=>K.jsx("li",{className:An("w-full",Yd[s.level]),children:K.jsx(Hr,{to:".",title:s.id,hash:s.id,"aria-current":n.includes(s.id)&&"location",className:An("block py-1 pl-2 border-l-2 rounded-r transition-colors duration-200 opacity-60 hover:opacity-100 hover:bg-gray-500/10",n.includes(s.id)?"opacity-100 border-current":"border-transparent"),style:n.includes(s.id)&&t?{color:Bd(t)}:void 0,resetScroll:!1,hashScrollIntoView:{behavior:"smooth"},children:K.jsx("span",{className:"block break-words overflow-hidden",dangerouslySetInnerHTML:{__html:s.text}})})},s.id))})]})}function xo(e){if(e)throw e}var Rs,bo;function Jd(){if(bo)return Rs;bo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},s=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var p=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!f)return!1;var E;for(E in c);return typeof E>"u"||e.call(c,E)},u=function(c,p){n&&p.name==="__proto__"?n(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},l=function(c,p){if(p==="__proto__")if(e.call(c,p)){if(i)return i(c,p).value}else return;return c[p]};return Rs=function o(){var c,p,f,E,g,T,v=arguments[0],N=1,A=arguments.length,R=!1;for(typeof v=="boolean"&&(R=v,v=arguments[1]||{},N=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});N<A;++N)if(c=arguments[N],c!=null)for(p in c)f=l(v,p),E=l(c,p),v!==E&&(R&&E&&(s(E)||(g=r(E)))?(g?(g=!1,T=f&&r(f)?f:[]):T=f&&s(f)?f:{},u(v,{name:p,newValue:o(R,T,E)})):typeof E<"u"&&u(v,{name:p,newValue:E}));return v},Rs}var Qd=Jd();const Ps=iu(Qd);function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xd(){const e=[],t={run:n,use:i};return t;function n(...r){let s=-1;const u=r.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);l(null,...r);function l(o,...c){const p=e[++s];let f=-1;if(o){u(o);return}for(;++f<r.length;)(c[f]===null||c[f]===void 0)&&(c[f]=r[f]);r=c,p?$d(p,l)(...c):u(null,...c)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function $d(e,t){let n;return i;function i(...u){const l=e.length>u.length;let o;l&&u.push(r);try{o=e.apply(this,u)}catch(c){const p=c;if(l&&n)throw p;return r(p)}l||(o&&o.then&&typeof o.then=="function"?o.then(s,r):o instanceof Error?r(o):s(o))}function r(u,...l){n||(n=!0,t(u,...l))}function s(u){r(null,u)}}function sn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?To(e.position):"start"in e||"end"in e?To(e):"line"in e||"column"in e?ka(e):""}function ka(e){return yo(e&&e.line)+":"+yo(e&&e.column)}function To(e){return ka(e&&e.start)+"-"+ka(e&&e.end)}function yo(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?r=t:!s.cause&&t&&(u=!0,r=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const o=i.indexOf(":");o===-1?s.ruleId=i:(s.source=i.slice(0,o),s.ruleId=i.slice(o+1))}if(!s.place&&s.ancestors&&s.ancestors){const o=s.ancestors[s.ancestors.length-1];o&&(s.place=o.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=sn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ie.prototype.file="";Ie.prototype.name="";Ie.prototype.reason="";Ie.prototype.message="";Ie.prototype.stack="";Ie.prototype.column=void 0;Ie.prototype.line=void 0;Ie.prototype.ancestors=void 0;Ie.prototype.cause=void 0;Ie.prototype.fatal=void 0;Ie.prototype.place=void 0;Ie.prototype.ruleId=void 0;Ie.prototype.source=void 0;const Jt={basename:Kd,dirname:Zd,extname:e0,join:t0,sep:"/"};function Kd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ar(e);let n=0,i=-1,r=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else u<0&&(s=!0,u=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function Zd(e){if(ar(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function e0(e){ar(e);let t=e.length,n=-1,i=0,r=-1,s=0,u;for(;t--;){const l=e.codePointAt(t);if(l===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),l===46?r<0?r=t:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||n<0||s===0||s===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function t0(...e){let t=-1,n;for(;++t<e.length;)ar(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":n0(n)}function n0(e){ar(e);const t=e.codePointAt(0)===47;let n=i0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function i0(e,t){let n="",i=0,r=-1,s=0,u=-1,l,o;for(;++u<=e.length;){if(u<e.length)l=e.codePointAt(u);else{if(l===47)break;l=47}if(l===47){if(!(r===u-1||s===1))if(r!==u-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",i=0):(n=n.slice(0,o),i=n.length-1-n.lastIndexOf("/")),r=u,s=0;continue}}else if(n.length>0){n="",i=0,r=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,u):n=e.slice(r+1,u),i=u-r-1;r=u,s=0}else l===46&&s>-1?s++:s=-1}return n}function ar(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const r0={cwd:s0};function s0(){return"/"}function va(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function a0(e){if(typeof e=="string")e=new URL(e);else if(!va(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return u0(e)}function u0(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const Os=["history","path","basename","stem","extname","dirname"];class Ia{constructor(t){let n;t?va(t)?n={path:t}:typeof t=="string"||o0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":r0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Os.length;){const s=Os[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let r;for(r in n)Os.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Jt.basename(this.path):void 0}set basename(t){Bs(t,"basename"),Fs(t,"basename"),this.path=Jt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Jt.dirname(this.path):void 0}set dirname(t){Ao(this.basename,"dirname"),this.path=Jt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Jt.extname(this.path):void 0}set extname(t){if(Fs(t,"extname"),Ao(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Jt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){va(t)&&(t=a0(t)),Bs(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Jt.basename(this.path,this.extname):void 0}set stem(t){Bs(t,"stem"),Fs(t,"stem"),this.path=Jt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new Ie(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fs(e,t){if(e&&e.includes(Jt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Jt.sep+"`")}function Bs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ao(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function o0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const l0=(function(e){const i=this.constructor.prototype,r=i[e],s=function(){return r.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),c0={}.hasOwnProperty;class ru extends l0{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=Xd()}copy(){const t=new ru;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Ps(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Vs("data",this.frozen),this.namespace[t]=n,this):c0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Vs("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=br(t),i=this.parser||this.Parser;return Ms("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Ms("process",this.parser||this.Parser),Us("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(s,u){const l=br(t),o=i.parse(l);i.run(o,l,function(p,f,E){if(p||!f||!E)return c(p);const g=f,T=i.stringify(g,E);f0(T)?E.value=T:E.result=T,c(p,E)});function c(p,f){p||!f?u(p):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,i;return this.freeze(),Ms("processSync",this.parser||this.Parser),Us("processSync",this.compiler||this.Compiler),this.process(t,r),So("processSync","process",n),i;function r(s,u){n=!0,xo(s),i=u}}run(t,n,i){Co(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(u,l){const o=br(n);r.run(t,o,c);function c(p,f,E){const g=f||t;p?l(p):u?u(g):i(void 0,g,E)}}}runSync(t,n){let i=!1,r;return this.run(t,n,s),So("runSync","run",i),r;function s(u,l){xo(u),r=l,i=!0}}stringify(t,n){this.freeze();const i=br(n),r=this.compiler||this.Compiler;return Us("stringify",r),Co(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(Vs("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")o(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[p,...f]=c;o(p,f)}else u(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function u(c){if(!("plugins"in c)&&!("settings"in c))throw new 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");l(c.plugins),c.settings&&(r.settings=Ps(!0,r.settings,c.settings))}function l(c){let p=-1;if(c!=null)if(Array.isArray(c))for(;++p<c.length;){const f=c[p];s(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function o(c,p){let f=-1,E=-1;for(;++f<i.length;)if(i[f][0]===c){E=f;break}if(E===-1)i.push([c,...p]);else if(p.length>0){let[g,...T]=p;const v=i[E][1];Sa(v)&&Sa(g)&&(g=Ps(!0,v,g)),i[E]=[c,g,...T]}}}}const jc=new ru().freeze();function Ms(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Us(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vs(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Co(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function So(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function br(e){return h0(e)?e:new Ia(e)}function h0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function f0(e){return typeof e=="string"||p0(e)}function p0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const d0={};function su(e,t){const n=d0,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return zc(e,i,r)}function zc(e,t,n){if(m0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ko(e.children,t,n)}return Array.isArray(e)?ko(e,t,n):""}function ko(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=zc(e[r],t,n);return i.join("")}function m0(e){return!!(e&&typeof e=="object")}const vo=document.createElement("i");function $i(e){const t="&"+e+";";vo.innerHTML=t;const n=vo.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function bt(e,t,n,i){const r=e.length;let s=0,u;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<i.length;)u=i.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function Lt(e,t){return e.length>0?(bt(e,e.length,0,t),e):t}const Io={}.hasOwnProperty;function au(e){const t={};let n=-1;for(;++n<e.length;)g0(t,e[n]);return t}function g0(e,t){let n;for(n in t){const r=(Io.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){Io.call(r,u)||(r[u]=[]);const l=s[u];E0(r[u],Array.isArray(l)?l:l?[l]:[])}}}function E0(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);bt(e,0,0,i)}function qc(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ht(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const st=kn(/[A-Za-z]/),ut=kn(/[\dA-Za-z]/),_0=kn(/[#-'*+\--9=?A-Z^-~]/);function jr(e){return e!==null&&(e<32||e===127)}const Da=kn(/\d/),x0=kn(/[\dA-Fa-f]/),b0=kn(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function Se(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const cs=kn(new RegExp("\\p{P}|\\p{S}","u")),ct=kn(/\s/);function kn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function mi(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&ut(e.charCodeAt(n+1))&&ut(e.charCodeAt(n+2)))r=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const l=e.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(u=String.fromCharCode(s,l),r=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+r+1,u=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function ye(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(o){return ge(o)?(e.enter(n),l(o)):t(o)}function l(o){return ge(o)&&s++<r?(e.consume(o),l):(e.exit(n),t(o))}}const T0={tokenize:y0};function y0(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ye(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),s(l)}function s(l){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,u(l)}function u(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return oe(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),u)}}const A0={tokenize:C0},Do={tokenize:S0};function C0(e){const t=this,n=[];let i=0,r,s,u;return l;function l(w){if(i<n.length){const U=n[i];return t.containerState=U[1],e.attempt(U[0].continuation,o,c)(w)}return c(w)}function o(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&R();const U=t.events.length;let x=U,m;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){m=t.events[x][1].end;break}A(i);let S=U;for(;S<t.events.length;)t.events[S][1].end={...m},S++;return bt(t.events,x+1,0,t.events.slice(U)),t.events.length=S,c(w)}return l(w)}function c(w){if(i===n.length){if(!r)return E(w);if(r.currentConstruct&&r.currentConstruct.concrete)return T(w);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Do,p,f)(w)}function p(w){return r&&R(),A(i),E(w)}function f(w){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,T(w)}function E(w){return t.containerState={},e.attempt(Do,g,T)(w)}function g(w){return i++,n.push([t.currentConstruct,t.containerState]),E(w)}function T(w){if(w===null){r&&R(),A(0),e.consume(w);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:s}),v(w)}function v(w){if(w===null){N(e.exit("chunkFlow"),!0),A(0),e.consume(w);return}return oe(w)?(e.consume(w),N(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(w),v)}function N(w,U){const x=t.sliceStream(w);if(U&&x.push(null),w.previous=s,s&&(s.next=w),s=w,r.defineSkip(w.start),r.write(x),t.parser.lazy[w.start.line]){let m=r.events.length;for(;m--;)if(r.events[m][1].start.offset<u&&(!r.events[m][1].end||r.events[m][1].end.offset>u))return;const S=t.events.length;let M=S,j,B;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(j){B=t.events[M][1].end;break}j=!0}for(A(i),m=S;m<t.events.length;)t.events[m][1].end={...B},m++;bt(t.events,M+1,0,t.events.slice(S)),t.events.length=m}}function A(w){let U=n.length;for(;U-- >w;){const x=n[U];t.containerState=x[1],x[0].exit.call(t,e)}n.length=w}function R(){r.write([null]),s=void 0,r=void 0,t.containerState._closeFlow=void 0}}function S0(e,t,n){return ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ci(e){if(e===null||Se(e)||ct(e))return 1;if(cs(e))return 2}function hs(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const s=e[r].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const wa={name:"attention",resolveAll:k0,tokenize:v0};function k0(e,t){let n=-1,i,r,s,u,l,o,c,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[i][1].end},E={...e[n][1].start};wo(f,-o),wo(E,o),u={type:o>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},l={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},s={type:o>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:o>1?"strong":"emphasis",start:{...u.start},end:{...l.end}},e[i][1].end={...u.start},e[n][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Lt(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=Lt(c,[["enter",r,t],["enter",u,t],["exit",u,t],["enter",s,t]]),c=Lt(c,hs(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=Lt(c,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=Lt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,bt(e,i-1,n-i+3,c),n=i+c.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function v0(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=ci(i);let s;return u;function u(o){return s=o,e.enter("attentionSequence"),l(o)}function l(o){if(o===s)return e.consume(o),l;const c=e.exit("attentionSequence"),p=ci(o),f=!p||p===2&&r||n.includes(o),E=!r||r===2&&p||n.includes(i);return c._open=!!(s===42?f:f&&(r||!E)),c._close=!!(s===42?E:E&&(p||!f)),t(o)}}function wo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I0={name:"autolink",tokenize:D0};function D0(e,t,n){let i=0;return r;function r(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(g){return st(g)?(e.consume(g),u):g===64?n(g):c(g)}function u(g){return g===43||g===45||g===46||ut(g)?(i=1,l(g)):c(g)}function l(g){return g===58?(e.consume(g),i=0,o):(g===43||g===45||g===46||ut(g))&&i++<32?(e.consume(g),l):(i=0,c(g))}function o(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||jr(g)?n(g):(e.consume(g),o)}function c(g){return g===64?(e.consume(g),p):_0(g)?(e.consume(g),c):n(g)}function p(g){return ut(g)?f(g):n(g)}function f(g){return g===46?(e.consume(g),i=0,p):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):E(g)}function E(g){if((g===45||ut(g))&&i++<63){const T=g===45?E:f;return e.consume(g),T}return n(g)}}const gi={partial:!0,tokenize:w0};function w0(e,t,n){return i;function i(s){return ge(s)?ye(e,r,"linePrefix")(s):r(s)}function r(s){return s===null||oe(s)?t(s):n(s)}}const Gc={continuation:{tokenize:L0},exit:R0,name:"blockQuote",tokenize:N0};function N0(e,t,n){const i=this;return r;function r(u){if(u===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return ge(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function L0(e,t,n){const i=this;return r;function r(u){return ge(u)?ye(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(Gc,t,n)(u)}}function R0(e){e.exit("blockQuote")}const Wc={name:"characterEscape",tokenize:P0};function P0(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),r}function r(s){return b0(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Yc={name:"characterReference",tokenize:O0};function O0(e,t,n){const i=this;let r=0,s,u;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),o}function o(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,u=ut,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=x0,p):(e.enter("characterReferenceValue"),s=7,u=Da,p(f))}function p(f){if(f===59&&r){const E=e.exit("characterReferenceValue");return u===ut&&!$i(i.sliceSerialize(E))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(f)&&r++<s?(e.consume(f),p):n(f)}}const No={partial:!0,tokenize:B0},Lo={concrete:!0,name:"codeFenced",tokenize:F0};function F0(e,t,n){const i=this,r={partial:!0,tokenize:x};let s=0,u=0,l;return o;function o(m){return c(m)}function c(m){const S=i.events[i.events.length-1];return s=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,l=m,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(m)}function p(m){return m===l?(u++,e.consume(m),p):u<3?n(m):(e.exit("codeFencedFenceSequence"),ge(m)?ye(e,f,"whitespace")(m):f(m))}function f(m){return m===null||oe(m)?(e.exit("codeFencedFence"),i.interrupt?t(m):e.check(No,v,U)(m)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(m))}function E(m){return m===null||oe(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(m)):ge(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ye(e,g,"whitespace")(m)):m===96&&m===l?n(m):(e.consume(m),E)}function g(m){return m===null||oe(m)?f(m):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(m))}function T(m){return m===null||oe(m)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(m)):m===96&&m===l?n(m):(e.consume(m),T)}function v(m){return e.attempt(r,U,N)(m)}function N(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),A}function A(m){return s>0&&ge(m)?ye(e,R,"linePrefix",s+1)(m):R(m)}function R(m){return m===null||oe(m)?e.check(No,v,U)(m):(e.enter("codeFlowValue"),w(m))}function w(m){return m===null||oe(m)?(e.exit("codeFlowValue"),R(m)):(e.consume(m),w)}function U(m){return e.exit("codeFenced"),t(m)}function x(m,S,M){let j=0;return B;function B(ee){return m.enter("lineEnding"),m.consume(ee),m.exit("lineEnding"),G}function G(ee){return m.enter("codeFencedFence"),ge(ee)?ye(m,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Y(ee)}function Y(ee){return ee===l?(m.enter("codeFencedFenceSequence"),re(ee)):M(ee)}function re(ee){return ee===l?(j++,m.consume(ee),re):j>=u?(m.exit("codeFencedFenceSequence"),ge(ee)?ye(m,te,"whitespace")(ee):te(ee)):M(ee)}function te(ee){return ee===null||oe(ee)?(m.exit("codeFencedFence"),S(ee)):M(ee)}}}function B0(e,t,n){const i=this;return r;function r(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const Hs={name:"codeIndented",tokenize:U0},M0={partial:!0,tokenize:V0};function U0(e,t,n){const i=this;return r;function r(c){return e.enter("codeIndented"),ye(e,s,"linePrefix",5)(c)}function s(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(c):n(c)}function u(c){return c===null?o(c):oe(c)?e.attempt(M0,u,o)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||oe(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),l)}function o(c){return e.exit("codeIndented"),t(c)}}function V0(e,t,n){const i=this;return r;function r(u){return i.parser.lazy[i.now().line]?n(u):oe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r):ye(e,s,"linePrefix",5)(u)}function s(u){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):oe(u)?r(u):n(u)}}const H0={name:"codeText",previous:z0,resolve:j0,tokenize:q0};function j0(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function z0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function q0(e,t,n){let i=0,r,s;return u;function u(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),i++,l):(e.exit("codeTextSequence"),o(f))}function o(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),o):f===96?(s=e.enter("codeTextSequence"),r=0,p(f)):oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||oe(f)?(e.exit("codeTextData"),o(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),r++,p):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",c(f))}}class G0{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Ii(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ii(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ii(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ii(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ii(this.left,n.reverse())}}}function Ii(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Jc(e){const t={};let n=-1,i,r,s,u,l,o,c;const p=new G0(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(o=i[1]._tokenizer.events,s=0,s<o.length&&o[s][1].type==="lineEndingBlank"&&(s+=2),s<o.length&&o[s][1].type==="content"))for(;++s<o.length&&o[s][1].type!=="content";)o[s][1].type==="chunkText"&&(o[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,W0(p,n)),n=t[n],c=!0);else if(i[1]._container){for(s=n,r=void 0;s--;)if(u=p.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),u[1].type="lineEnding",r=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;r&&(i[1].end={...p.get(r)[1].start},l=p.slice(r,n),l.unshift(i),p.splice(r,n-r+1,l))}}return bt(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function W0(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const s=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const l=u.events,o=[],c={};let p,f,E=-1,g=n,T=0,v=0;const N=[v];for(;g;){for(;e.get(++r)[1]!==g;);s.push(r),g._tokenizer||(p=i.sliceStream(g),g.next||p.push(null),f&&u.defineSkip(g.start),g._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(p),g._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),f=g,g=g.next}for(g=n;++E<l.length;)l[E][0]==="exit"&&l[E-1][0]==="enter"&&l[E][1].type===l[E-1][1].type&&l[E][1].start.line!==l[E][1].end.line&&(v=E+1,N.push(v),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(u.events=[],g?(g._tokenizer=void 0,g.previous=void 0):N.pop(),E=N.length;E--;){const A=l.slice(N[E],N[E+1]),R=s.pop();o.push([R,R+A.length-1]),e.splice(R,2,A)}for(o.reverse(),E=-1;++E<o.length;)c[T+o[E][0]]=T+o[E][1],T+=o[E][1]-o[E][0]-1;return c}const Y0={resolve:Q0,tokenize:X0},J0={partial:!0,tokenize:$0};function Q0(e){return Jc(e),e}function X0(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?s(l):oe(l)?e.check(J0,u,s)(l):(e.consume(l),r)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function u(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function $0(e,t,n){const i=this;return r;function r(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ye(e,s,"linePrefix")}function s(u){if(u===null||oe(u))return n(u);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function Qc(e,t,n,i,r,s,u,l,o){const c=o||Number.POSITIVE_INFINITY;let p=0;return f;function f(A){return A===60?(e.enter(i),e.enter(r),e.enter(s),e.consume(A),e.exit(s),E):A===null||A===32||A===41||jr(A)?n(A):(e.enter(i),e.enter(u),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(A))}function E(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===62?(e.exit("chunkString"),e.exit(l),E(A)):A===null||A===60||oe(A)?n(A):(e.consume(A),A===92?T:g)}function T(A){return A===60||A===62||A===92?(e.consume(A),g):g(A)}function v(A){return!p&&(A===null||A===41||Se(A))?(e.exit("chunkString"),e.exit(l),e.exit(u),e.exit(i),t(A)):p<c&&A===40?(e.consume(A),p++,v):A===41?(e.consume(A),p--,v):A===null||A===32||A===40||jr(A)?n(A):(e.consume(A),A===92?N:v)}function N(A){return A===40||A===41||A===92?(e.consume(A),v):v(A)}}function Xc(e,t,n,i,r,s){const u=this;let l=0,o;return c;function c(g){return e.enter(i),e.enter(r),e.consume(g),e.exit(r),e.enter(s),p}function p(g){return l>999||g===null||g===91||g===93&&!o||g===94&&!l&&"_hiddenFootnoteSupport"in u.parser.constructs?n(g):g===93?(e.exit(s),e.enter(r),e.consume(g),e.exit(r),e.exit(i),t):oe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||oe(g)||l++>999?(e.exit("chunkString"),p(g)):(e.consume(g),o||(o=!ge(g)),g===92?E:f)}function E(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}}function $c(e,t,n,i,r,s){let u;return l;function l(E){return E===34||E===39||E===40?(e.enter(i),e.enter(r),e.consume(E),e.exit(r),u=E===40?41:E,o):n(E)}function o(E){return E===u?(e.enter(r),e.consume(E),e.exit(r),e.exit(i),t):(e.enter(s),c(E))}function c(E){return E===u?(e.exit(s),o(u)):E===null?n(E):oe(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),ye(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===u||E===null||oe(E)?(e.exit("chunkString"),c(E)):(e.consume(E),E===92?f:p)}function f(E){return E===u||E===92?(e.consume(E),p):p(E)}}function ji(e,t){let n;return i;function i(r){return oe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):ge(r)?ye(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const K0={name:"definition",tokenize:em},Z0={partial:!0,tokenize:tm};function em(e,t,n){const i=this;let r;return s;function s(g){return e.enter("definition"),u(g)}function u(g){return Xc.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return r=Ht(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o):n(g)}function o(g){return Se(g)?ji(e,c)(g):c(g)}function c(g){return Qc(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(Z0,f,f)(g)}function f(g){return ge(g)?ye(e,E,"whitespace")(g):E(g)}function E(g){return g===null||oe(g)?(e.exit("definition"),i.parser.defined.push(r),t(g)):n(g)}}function tm(e,t,n){return i;function i(l){return Se(l)?ji(e,r)(l):n(l)}function r(l){return $c(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return ge(l)?ye(e,u,"whitespace")(l):u(l)}function u(l){return l===null||oe(l)?t(l):n(l)}}const nm={name:"hardBreakEscape",tokenize:im};function im(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),r}function r(s){return oe(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const rm={name:"headingAtx",resolve:sm,tokenize:am};function sm(e,t){let n=e.length-2,i=3,r,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},bt(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])),e}function am(e,t,n){let i=0;return r;function r(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),u(p)}function u(p){return p===35&&i++<6?(e.consume(p),u):p===null||Se(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),o(p)):p===null||oe(p)?(e.exit("atxHeading"),t(p)):ge(p)?ye(e,l,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function o(p){return p===35?(e.consume(p),o):(e.exit("atxHeadingSequence"),l(p))}function c(p){return p===null||p===35||Se(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),c)}}const um=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ro=["pre","script","style","textarea"],om={concrete:!0,name:"htmlFlow",resolveTo:hm,tokenize:fm},lm={partial:!0,tokenize:dm},cm={partial:!0,tokenize:pm};function hm(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fm(e,t,n){const i=this;let r,s,u,l,o;return c;function c(F){return p(F)}function p(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),f}function f(F){return F===33?(e.consume(F),E):F===47?(e.consume(F),s=!0,v):F===63?(e.consume(F),r=3,i.interrupt?t:O):st(F)?(e.consume(F),u=String.fromCharCode(F),N):n(F)}function E(F){return F===45?(e.consume(F),r=2,g):F===91?(e.consume(F),r=5,l=0,T):st(F)?(e.consume(F),r=4,i.interrupt?t:O):n(F)}function g(F){return F===45?(e.consume(F),i.interrupt?t:O):n(F)}function T(F){const Ve="CDATA[";return F===Ve.charCodeAt(l++)?(e.consume(F),l===Ve.length?i.interrupt?t:Y:T):n(F)}function v(F){return st(F)?(e.consume(F),u=String.fromCharCode(F),N):n(F)}function N(F){if(F===null||F===47||F===62||Se(F)){const Ve=F===47,Ye=u.toLowerCase();return!Ve&&!s&&Ro.includes(Ye)?(r=1,i.interrupt?t(F):Y(F)):um.includes(u.toLowerCase())?(r=6,Ve?(e.consume(F),A):i.interrupt?t(F):Y(F)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(F):s?R(F):w(F))}return F===45||ut(F)?(e.consume(F),u+=String.fromCharCode(F),N):n(F)}function A(F){return F===62?(e.consume(F),i.interrupt?t:Y):n(F)}function R(F){return ge(F)?(e.consume(F),R):B(F)}function w(F){return F===47?(e.consume(F),B):F===58||F===95||st(F)?(e.consume(F),U):ge(F)?(e.consume(F),w):B(F)}function U(F){return F===45||F===46||F===58||F===95||ut(F)?(e.consume(F),U):x(F)}function x(F){return F===61?(e.consume(F),m):ge(F)?(e.consume(F),x):w(F)}function m(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),o=F,S):ge(F)?(e.consume(F),m):M(F)}function S(F){return F===o?(e.consume(F),o=null,j):F===null||oe(F)?n(F):(e.consume(F),S)}function M(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Se(F)?x(F):(e.consume(F),M)}function j(F){return F===47||F===62||ge(F)?w(F):n(F)}function B(F){return F===62?(e.consume(F),G):n(F)}function G(F){return F===null||oe(F)?Y(F):ge(F)?(e.consume(F),G):n(F)}function Y(F){return F===45&&r===2?(e.consume(F),ce):F===60&&r===1?(e.consume(F),fe):F===62&&r===4?(e.consume(F),We):F===63&&r===3?(e.consume(F),O):F===93&&r===5?(e.consume(F),Oe):oe(F)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(lm,Fe,re)(F)):F===null||oe(F)?(e.exit("htmlFlowData"),re(F)):(e.consume(F),Y)}function re(F){return e.check(cm,te,Fe)(F)}function te(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),ee}function ee(F){return F===null||oe(F)?re(F):(e.enter("htmlFlowData"),Y(F))}function ce(F){return F===45?(e.consume(F),O):Y(F)}function fe(F){return F===47?(e.consume(F),u="",we):Y(F)}function we(F){if(F===62){const Ve=u.toLowerCase();return Ro.includes(Ve)?(e.consume(F),We):Y(F)}return st(F)&&u.length<8?(e.consume(F),u+=String.fromCharCode(F),we):Y(F)}function Oe(F){return F===93?(e.consume(F),O):Y(F)}function O(F){return F===62?(e.consume(F),We):F===45&&r===2?(e.consume(F),O):Y(F)}function We(F){return F===null||oe(F)?(e.exit("htmlFlowData"),Fe(F)):(e.consume(F),We)}function Fe(F){return e.exit("htmlFlow"),t(F)}}function pm(e,t,n){const i=this;return r;function r(u){return oe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function dm(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(gi,t,n)}}const mm={name:"htmlText",tokenize:gm};function gm(e,t,n){const i=this;let r,s,u;return l;function l(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),o}function o(O){return O===33?(e.consume(O),c):O===47?(e.consume(O),x):O===63?(e.consume(O),w):st(O)?(e.consume(O),M):n(O)}function c(O){return O===45?(e.consume(O),p):O===91?(e.consume(O),s=0,T):st(O)?(e.consume(O),R):n(O)}function p(O){return O===45?(e.consume(O),g):n(O)}function f(O){return O===null?n(O):O===45?(e.consume(O),E):oe(O)?(u=f,fe(O)):(e.consume(O),f)}function E(O){return O===45?(e.consume(O),g):f(O)}function g(O){return O===62?ce(O):O===45?E(O):f(O)}function T(O){const We="CDATA[";return O===We.charCodeAt(s++)?(e.consume(O),s===We.length?v:T):n(O)}function v(O){return O===null?n(O):O===93?(e.consume(O),N):oe(O)?(u=v,fe(O)):(e.consume(O),v)}function N(O){return O===93?(e.consume(O),A):v(O)}function A(O){return O===62?ce(O):O===93?(e.consume(O),A):v(O)}function R(O){return O===null||O===62?ce(O):oe(O)?(u=R,fe(O)):(e.consume(O),R)}function w(O){return O===null?n(O):O===63?(e.consume(O),U):oe(O)?(u=w,fe(O)):(e.consume(O),w)}function U(O){return O===62?ce(O):w(O)}function x(O){return st(O)?(e.consume(O),m):n(O)}function m(O){return O===45||ut(O)?(e.consume(O),m):S(O)}function S(O){return oe(O)?(u=S,fe(O)):ge(O)?(e.consume(O),S):ce(O)}function M(O){return O===45||ut(O)?(e.consume(O),M):O===47||O===62||Se(O)?j(O):n(O)}function j(O){return O===47?(e.consume(O),ce):O===58||O===95||st(O)?(e.consume(O),B):oe(O)?(u=j,fe(O)):ge(O)?(e.consume(O),j):ce(O)}function B(O){return O===45||O===46||O===58||O===95||ut(O)?(e.consume(O),B):G(O)}function G(O){return O===61?(e.consume(O),Y):oe(O)?(u=G,fe(O)):ge(O)?(e.consume(O),G):j(O)}function Y(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),r=O,re):oe(O)?(u=Y,fe(O)):ge(O)?(e.consume(O),Y):(e.consume(O),te)}function re(O){return O===r?(e.consume(O),r=void 0,ee):O===null?n(O):oe(O)?(u=re,fe(O)):(e.consume(O),re)}function te(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||Se(O)?j(O):(e.consume(O),te)}function ee(O){return O===47||O===62||Se(O)?j(O):n(O)}function ce(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function fe(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),we}function we(O){return ge(O)?ye(e,Oe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):Oe(O)}function Oe(O){return e.enter("htmlTextData"),u(O)}}const uu={name:"labelEnd",resolveAll:bm,resolveTo:Tm,tokenize:ym},Em={tokenize:Am},_m={tokenize:Cm},xm={tokenize:Sm};function bm(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&bt(e,0,e.length,n),e}function Tm(e,t){let n=e.length,i=0,r,s,u,l;for(;n--;)if(r=e[n][1],s){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(s=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(u=n);const o={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},p={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[u-2][1].start}};return l=[["enter",o,t],["enter",c,t]],l=Lt(l,e.slice(s+1,s+i+3)),l=Lt(l,[["enter",p,t]]),l=Lt(l,hs(t.parser.constructs.insideSpan.null,e.slice(s+i+4,u-3),t)),l=Lt(l,[["exit",p,t],e[u-2],e[u-1],["exit",c,t]]),l=Lt(l,e.slice(u+1)),l=Lt(l,[["exit",o,t]]),bt(e,s,e.length,l),e}function ym(e,t,n){const i=this;let r=i.events.length,s,u;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}return l;function l(E){return s?s._inactive?f(E):(u=i.parser.defined.includes(Ht(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),o):n(E)}function o(E){return E===40?e.attempt(Em,p,u?p:f)(E):E===91?e.attempt(_m,p,u?c:f)(E):u?p(E):f(E)}function c(E){return e.attempt(xm,p,f)(E)}function p(E){return t(E)}function f(E){return s._balanced=!0,n(E)}}function Am(e,t,n){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),r}function r(f){return Se(f)?ji(e,s)(f):s(f)}function s(f){return f===41?p(f):Qc(e,u,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function u(f){return Se(f)?ji(e,o)(f):p(f)}function l(f){return n(f)}function o(f){return f===34||f===39||f===40?$c(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return Se(f)?ji(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Cm(e,t,n){const i=this;return r;function r(l){return Xc.call(i,e,s,u,"reference","referenceMarker","referenceString")(l)}function s(l){return i.parser.defined.includes(Ht(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function u(l){return n(l)}}function Sm(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),r}function r(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const km={name:"labelStartImage",resolveAll:uu.resolveAll,tokenize:vm};function vm(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),u):n(l)}function u(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const Im={name:"labelStartLink",resolveAll:uu.resolveAll,tokenize:Dm};function Dm(e,t,n){const i=this;return r;function r(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const js={name:"lineEnding",tokenize:wm};function wm(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ye(e,t,"linePrefix")}}const Pr={name:"thematicBreak",tokenize:Nm};function Nm(e,t,n){let i=0,r;return s;function s(c){return e.enter("thematicBreak"),u(c)}function u(c){return r=c,l(c)}function l(c){return c===r?(e.enter("thematicBreakSequence"),o(c)):i>=3&&(c===null||oe(c))?(e.exit("thematicBreak"),t(c)):n(c)}function o(c){return c===r?(e.consume(c),i++,o):(e.exit("thematicBreakSequence"),ge(c)?ye(e,l,"whitespace")(c):l(c))}}const dt={continuation:{tokenize:Om},exit:Bm,name:"list",tokenize:Pm},Lm={partial:!0,tokenize:Mm},Rm={partial:!0,tokenize:Fm};function Pm(e,t,n){const i=this,r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,u=0;return l;function l(g){const T=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:Da(g)){if(i.containerState.type||(i.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Pr,n,c)(g):c(g);if(!i.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(g)}return n(g)}function o(g){return Da(g)&&++u<10?(e.consume(g),o):(!i.interrupt||u<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,e.check(gi,i.interrupt?n:p,e.attempt(Lm,E,f))}function p(g){return i.containerState.initialBlankLine=!0,s++,E(g)}function f(g){return ge(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),E):n(g)}function E(g){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Om(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(gi,r,s);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ye(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!ge(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Rm,t,u)(l))}function u(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,ye(e,e.attempt(dt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Fm(e,t,n){const i=this;return ye(e,r,"listItemIndent",i.containerState.size+1);function r(s){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(s):n(s)}}function Bm(e){e.exit(this.containerState.type)}function Mm(e,t,n){const i=this;return ye(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(s){const u=i.events[i.events.length-1];return!ge(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const Po={name:"setextUnderline",resolveTo:Um,tokenize:Vm};function Um(e,t){let n=e.length,i,r,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",s?(e.splice(r,0,["enter",u,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function Vm(e,t,n){const i=this;let r;return s;function s(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),r=c,u(c)):n(c)}function u(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),ge(c)?ye(e,o,"lineSuffix")(c):o(c))}function o(c){return c===null||oe(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Hm={tokenize:jm};function jm(e){const t=this,n=e.attempt(gi,i,e.attempt(this.parser.constructs.flowInitial,r,ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Y0,r)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const zm={resolveAll:Zc()},qm=Kc("string"),Gm=Kc("text");function Kc(e){return{resolveAll:Zc(e==="text"?Wm:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],s=n.attempt(r,u,l);return u;function u(p){return c(p)?s(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),o}function o(p){return c(p)?(n.exit("data"),s(p)):(n.consume(p),o)}function c(p){if(p===null)return!0;const f=r[p];let E=-1;if(f)for(;++E<f.length;){const g=f[E];if(!g.previous||g.previous.call(i,i.previous))return!0}return!1}}}function Zc(e){return t;function t(n,i){let r=-1,s;for(;++r<=n.length;)s===void 0?n[r]&&n[r][1].type==="data"&&(s=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),r=s+2),s=void 0);return e?e(n,i):n}}function Wm(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let s=r.length,u=-1,l=0,o;for(;s--;){const c=r[s];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(c===-2)o=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:i.start._bufferIndex+u,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Ym={42:dt,43:dt,45:dt,48:dt,49:dt,50:dt,51:dt,52:dt,53:dt,54:dt,55:dt,56:dt,57:dt,62:Gc},Jm={91:K0},Qm={[-2]:Hs,[-1]:Hs,32:Hs},Xm={35:rm,42:Pr,45:[Po,Pr],60:om,61:Po,95:Pr,96:Lo,126:Lo},$m={38:Yc,92:Wc},Km={[-5]:js,[-4]:js,[-3]:js,33:km,38:Yc,42:wa,60:[I0,mm],91:Im,92:[nm,Wc],93:uu,95:wa,96:H0},Zm={null:[wa,zm]},e1={null:[42,95]},t1={null:[]},n1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:e1,contentInitial:Jm,disable:t1,document:Ym,flow:Xm,flowInitial:Qm,insideSpan:Zm,string:$m,text:Km},Symbol.toStringTag,{value:"Module"}));function i1(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},s=[];let u=[],l=[];const o={attempt:S(x),check:S(m),consume:R,enter:w,exit:U,interrupt:S(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:T,parser:e,previous:null,sliceSerialize:E,sliceStream:g,write:f};let p=t.tokenize.call(c,o);return t.resolveAll&&s.push(t),c;function f(G){return u=Lt(u,G),N(),u[u.length-1]!==null?[]:(M(t,0),c.events=hs(s,c.events,c),c.events)}function E(G,Y){return s1(g(G),Y)}function g(G){return r1(u,G)}function T(){const{_bufferIndex:G,_index:Y,line:re,column:te,offset:ee}=i;return{_bufferIndex:G,_index:Y,line:re,column:te,offset:ee}}function v(G){r[G.line]=G.column,B()}function N(){let G;for(;i._index<u.length;){const Y=u[i._index];if(typeof Y=="string")for(G=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===G&&i._bufferIndex<Y.length;)A(Y.charCodeAt(i._bufferIndex));else A(Y)}}function A(G){p=p(G)}function R(G){oe(G)?(i.line++,i.column=1,i.offset+=G===-3?2:1,B()):G!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=G}function w(G,Y){const re=Y||{};return re.type=G,re.start=T(),c.events.push(["enter",re,c]),l.push(re),re}function U(G){const Y=l.pop();return Y.end=T(),c.events.push(["exit",Y,c]),Y}function x(G,Y){M(G,Y.from)}function m(G,Y){Y.restore()}function S(G,Y){return re;function re(te,ee,ce){let fe,we,Oe,O;return Array.isArray(te)?Fe(te):"tokenize"in te?Fe([te]):We(te);function We(Ne){return Tt;function Tt(Ze){const $e=Ze!==null&&Ne[Ze],et=Ze!==null&&Ne.null,Ke=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray(et)?et:et?[et]:[]];return Fe(Ke)(Ze)}}function Fe(Ne){return fe=Ne,we=0,Ne.length===0?ce:F(Ne[we])}function F(Ne){return Tt;function Tt(Ze){return O=j(),Oe=Ne,Ne.partial||(c.currentConstruct=Ne),Ne.name&&c.parser.constructs.disable.null.includes(Ne.name)?Ye():Ne.tokenize.call(Y?Object.assign(Object.create(c),Y):c,o,Ve,Ye)(Ze)}}function Ve(Ne){return G(Oe,O),ee}function Ye(Ne){return O.restore(),++we<fe.length?F(fe[we]):ce}}}function M(G,Y){G.resolveAll&&!s.includes(G)&&s.push(G),G.resolve&&bt(c.events,Y,c.events.length-Y,G.resolve(c.events.slice(Y),c)),G.resolveTo&&(c.events=G.resolveTo(c.events,c))}function j(){const G=T(),Y=c.previous,re=c.currentConstruct,te=c.events.length,ee=Array.from(l);return{from:te,restore:ce};function ce(){i=G,c.previous=Y,c.currentConstruct=re,c.events.length=te,l=ee,B()}}function B(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function r1(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,s=t.end._bufferIndex;let u;if(n===r)u=[e[n].slice(i,s)];else{if(u=e.slice(n,r),i>-1){const l=u[0];typeof l=="string"?u[0]=l.slice(i):u.shift()}s>0&&u.push(e[r].slice(0,s))}return u}function s1(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const s=e[n];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/mermaid.core-CCnh2DG0.js","assets/main-Csj9i19C.js","assets/FileTabs-CCynw0nL.js","assets/FrameworkContent-pNf68F7f.js","assets/react-os8EX6z1.js"])))=>i.map(i=>d[i]);
2
+ import{z as nu,r as De,j as K,L as Hr,q as Bd,t as An,A as iu,H as Md,I as Ud,J as Vd,K as Hd,_ as k,N as jd,P as Uc,Q as Vc,o as Hc}from"./main-Csj9i19C.js";import{c as zd}from"./react-os8EX6z1.js";const qd=nu("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Gd=nu("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const Wd=nu("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Yd={1:"",2:"",3:"pl-2",4:"pl-4",5:"pl-6",6:"pl-8"};function Ik({headings:e,textColor:t,activeHeadings:n,currentFramework:i}){const r=De.useMemo(()=>e.filter(s=>s.framework?i&&s.framework===i.toLowerCase():!0),[e,i]);return K.jsxs("nav",{className:"flex flex-col sticky top-[var(--navbar-height)] max-h-[calc(100dvh-var(--navbar-height))] overflow-hidden",children:[K.jsx("div",{className:"py-1",children:K.jsx("h3",{className:"text-[.8em] lg:text-[.825em] xl:text-[.875em] 2xl:text-[.9em] font-bold",children:"On this page"})}),K.jsx("ul",{className:An("py-1 flex flex-col overflow-y-auto text-[.6em] lg:text-[.65em] xl:text-[.7em] 2xl:text-[.75em]"),children:r?.map(s=>K.jsx("li",{className:An("w-full",Yd[s.level]),children:K.jsx(Hr,{to:".",title:s.id,hash:s.id,"aria-current":n.includes(s.id)&&"location",className:An("block py-1 pl-2 border-l-2 rounded-r transition-colors duration-200 opacity-60 hover:opacity-100 hover:bg-gray-500/10",n.includes(s.id)?"opacity-100 border-current":"border-transparent"),style:n.includes(s.id)&&t?{color:Bd(t)}:void 0,resetScroll:!1,hashScrollIntoView:{behavior:"smooth"},children:K.jsx("span",{className:"block break-words overflow-hidden",dangerouslySetInnerHTML:{__html:s.text}})})},s.id))})]})}function xo(e){if(e)throw e}var Rs,bo;function Jd(){if(bo)return Rs;bo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},s=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var p=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!p&&!f)return!1;var E;for(E in c);return typeof E>"u"||e.call(c,E)},u=function(c,p){n&&p.name==="__proto__"?n(c,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):c[p.name]=p.newValue},l=function(c,p){if(p==="__proto__")if(e.call(c,p)){if(i)return i(c,p).value}else return;return c[p]};return Rs=function o(){var c,p,f,E,g,T,v=arguments[0],N=1,A=arguments.length,R=!1;for(typeof v=="boolean"&&(R=v,v=arguments[1]||{},N=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});N<A;++N)if(c=arguments[N],c!=null)for(p in c)f=l(v,p),E=l(c,p),v!==E&&(R&&E&&(s(E)||(g=r(E)))?(g?(g=!1,T=f&&r(f)?f:[]):T=f&&s(f)?f:{},u(v,{name:p,newValue:o(R,T,E)})):typeof E<"u"&&u(v,{name:p,newValue:E}));return v},Rs}var Qd=Jd();const Ps=iu(Qd);function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xd(){const e=[],t={run:n,use:i};return t;function n(...r){let s=-1;const u=r.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);l(null,...r);function l(o,...c){const p=e[++s];let f=-1;if(o){u(o);return}for(;++f<r.length;)(c[f]===null||c[f]===void 0)&&(c[f]=r[f]);r=c,p?$d(p,l)(...c):u(null,...c)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function $d(e,t){let n;return i;function i(...u){const l=e.length>u.length;let o;l&&u.push(r);try{o=e.apply(this,u)}catch(c){const p=c;if(l&&n)throw p;return r(p)}l||(o&&o.then&&typeof o.then=="function"?o.then(s,r):o instanceof Error?r(o):s(o))}function r(u,...l){n||(n=!0,t(u,...l))}function s(u){r(null,u)}}function sn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?To(e.position):"start"in e||"end"in e?To(e):"line"in e||"column"in e?ka(e):""}function ka(e){return yo(e&&e.line)+":"+yo(e&&e.column)}function To(e){return ka(e&&e.start)+"-"+ka(e&&e.end)}function yo(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?r=t:!s.cause&&t&&(u=!0,r=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const o=i.indexOf(":");o===-1?s.ruleId=i:(s.source=i.slice(0,o),s.ruleId=i.slice(o+1))}if(!s.place&&s.ancestors&&s.ancestors){const o=s.ancestors[s.ancestors.length-1];o&&(s.place=o.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=sn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ie.prototype.file="";Ie.prototype.name="";Ie.prototype.reason="";Ie.prototype.message="";Ie.prototype.stack="";Ie.prototype.column=void 0;Ie.prototype.line=void 0;Ie.prototype.ancestors=void 0;Ie.prototype.cause=void 0;Ie.prototype.fatal=void 0;Ie.prototype.place=void 0;Ie.prototype.ruleId=void 0;Ie.prototype.source=void 0;const Jt={basename:Kd,dirname:Zd,extname:e0,join:t0,sep:"/"};function Kd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ar(e);let n=0,i=-1,r=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else u<0&&(s=!0,u=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function Zd(e){if(ar(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function e0(e){ar(e);let t=e.length,n=-1,i=0,r=-1,s=0,u;for(;t--;){const l=e.codePointAt(t);if(l===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),l===46?r<0?r=t:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||n<0||s===0||s===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function t0(...e){let t=-1,n;for(;++t<e.length;)ar(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":n0(n)}function n0(e){ar(e);const t=e.codePointAt(0)===47;let n=i0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function i0(e,t){let n="",i=0,r=-1,s=0,u=-1,l,o;for(;++u<=e.length;){if(u<e.length)l=e.codePointAt(u);else{if(l===47)break;l=47}if(l===47){if(!(r===u-1||s===1))if(r!==u-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",i=0):(n=n.slice(0,o),i=n.length-1-n.lastIndexOf("/")),r=u,s=0;continue}}else if(n.length>0){n="",i=0,r=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,u):n=e.slice(r+1,u),i=u-r-1;r=u,s=0}else l===46&&s>-1?s++:s=-1}return n}function ar(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const r0={cwd:s0};function s0(){return"/"}function va(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function a0(e){if(typeof e=="string")e=new URL(e);else if(!va(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return u0(e)}function u0(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const Os=["history","path","basename","stem","extname","dirname"];class Ia{constructor(t){let n;t?va(t)?n={path:t}:typeof t=="string"||o0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":r0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Os.length;){const s=Os[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let r;for(r in n)Os.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Jt.basename(this.path):void 0}set basename(t){Bs(t,"basename"),Fs(t,"basename"),this.path=Jt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Jt.dirname(this.path):void 0}set dirname(t){Ao(this.basename,"dirname"),this.path=Jt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Jt.extname(this.path):void 0}set extname(t){if(Fs(t,"extname"),Ao(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Jt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){va(t)&&(t=a0(t)),Bs(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Jt.basename(this.path,this.extname):void 0}set stem(t){Bs(t,"stem"),Fs(t,"stem"),this.path=Jt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new Ie(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fs(e,t){if(e&&e.includes(Jt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Jt.sep+"`")}function Bs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ao(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function o0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const l0=(function(e){const i=this.constructor.prototype,r=i[e],s=function(){return r.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),c0={}.hasOwnProperty;class ru extends l0{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=Xd()}copy(){const t=new ru;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Ps(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Vs("data",this.frozen),this.namespace[t]=n,this):c0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Vs("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=br(t),i=this.parser||this.Parser;return Ms("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Ms("process",this.parser||this.Parser),Us("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(s,u){const l=br(t),o=i.parse(l);i.run(o,l,function(p,f,E){if(p||!f||!E)return c(p);const g=f,T=i.stringify(g,E);f0(T)?E.value=T:E.result=T,c(p,E)});function c(p,f){p||!f?u(p):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,i;return this.freeze(),Ms("processSync",this.parser||this.Parser),Us("processSync",this.compiler||this.Compiler),this.process(t,r),So("processSync","process",n),i;function r(s,u){n=!0,xo(s),i=u}}run(t,n,i){Co(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(u,l){const o=br(n);r.run(t,o,c);function c(p,f,E){const g=f||t;p?l(p):u?u(g):i(void 0,g,E)}}}runSync(t,n){let i=!1,r;return this.run(t,n,s),So("runSync","run",i),r;function s(u,l){xo(u),r=l,i=!0}}stringify(t,n){this.freeze();const i=br(n),r=this.compiler||this.Compiler;return Us("stringify",r),Co(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(Vs("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")o(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[p,...f]=c;o(p,f)}else u(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function u(c){if(!("plugins"in c)&&!("settings"in c))throw new 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");l(c.plugins),c.settings&&(r.settings=Ps(!0,r.settings,c.settings))}function l(c){let p=-1;if(c!=null)if(Array.isArray(c))for(;++p<c.length;){const f=c[p];s(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function o(c,p){let f=-1,E=-1;for(;++f<i.length;)if(i[f][0]===c){E=f;break}if(E===-1)i.push([c,...p]);else if(p.length>0){let[g,...T]=p;const v=i[E][1];Sa(v)&&Sa(g)&&(g=Ps(!0,v,g)),i[E]=[c,g,...T]}}}}const jc=new ru().freeze();function Ms(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Us(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vs(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Co(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function So(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function br(e){return h0(e)?e:new Ia(e)}function h0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function f0(e){return typeof e=="string"||p0(e)}function p0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const d0={};function su(e,t){const n=d0,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return zc(e,i,r)}function zc(e,t,n){if(m0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ko(e.children,t,n)}return Array.isArray(e)?ko(e,t,n):""}function ko(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=zc(e[r],t,n);return i.join("")}function m0(e){return!!(e&&typeof e=="object")}const vo=document.createElement("i");function $i(e){const t="&"+e+";";vo.innerHTML=t;const n=vo.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function bt(e,t,n,i){const r=e.length;let s=0,u;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<i.length;)u=i.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function Lt(e,t){return e.length>0?(bt(e,e.length,0,t),e):t}const Io={}.hasOwnProperty;function au(e){const t={};let n=-1;for(;++n<e.length;)g0(t,e[n]);return t}function g0(e,t){let n;for(n in t){const r=(Io.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){Io.call(r,u)||(r[u]=[]);const l=s[u];E0(r[u],Array.isArray(l)?l:l?[l]:[])}}}function E0(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);bt(e,0,0,i)}function qc(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ht(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const st=kn(/[A-Za-z]/),ut=kn(/[\dA-Za-z]/),_0=kn(/[#-'*+\--9=?A-Z^-~]/);function jr(e){return e!==null&&(e<32||e===127)}const Da=kn(/\d/),x0=kn(/[\dA-Fa-f]/),b0=kn(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function Se(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const cs=kn(new RegExp("\\p{P}|\\p{S}","u")),ct=kn(/\s/);function kn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function mi(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&ut(e.charCodeAt(n+1))&&ut(e.charCodeAt(n+2)))r=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const l=e.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(u=String.fromCharCode(s,l),r=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+r+1,u=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function ye(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(o){return ge(o)?(e.enter(n),l(o)):t(o)}function l(o){return ge(o)&&s++<r?(e.consume(o),l):(e.exit(n),t(o))}}const T0={tokenize:y0};function y0(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ye(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),s(l)}function s(l){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,u(l)}function u(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return oe(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),u)}}const A0={tokenize:C0},Do={tokenize:S0};function C0(e){const t=this,n=[];let i=0,r,s,u;return l;function l(w){if(i<n.length){const U=n[i];return t.containerState=U[1],e.attempt(U[0].continuation,o,c)(w)}return c(w)}function o(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&R();const U=t.events.length;let x=U,m;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){m=t.events[x][1].end;break}A(i);let S=U;for(;S<t.events.length;)t.events[S][1].end={...m},S++;return bt(t.events,x+1,0,t.events.slice(U)),t.events.length=S,c(w)}return l(w)}function c(w){if(i===n.length){if(!r)return E(w);if(r.currentConstruct&&r.currentConstruct.concrete)return T(w);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Do,p,f)(w)}function p(w){return r&&R(),A(i),E(w)}function f(w){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,T(w)}function E(w){return t.containerState={},e.attempt(Do,g,T)(w)}function g(w){return i++,n.push([t.currentConstruct,t.containerState]),E(w)}function T(w){if(w===null){r&&R(),A(0),e.consume(w);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:s}),v(w)}function v(w){if(w===null){N(e.exit("chunkFlow"),!0),A(0),e.consume(w);return}return oe(w)?(e.consume(w),N(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(w),v)}function N(w,U){const x=t.sliceStream(w);if(U&&x.push(null),w.previous=s,s&&(s.next=w),s=w,r.defineSkip(w.start),r.write(x),t.parser.lazy[w.start.line]){let m=r.events.length;for(;m--;)if(r.events[m][1].start.offset<u&&(!r.events[m][1].end||r.events[m][1].end.offset>u))return;const S=t.events.length;let M=S,j,B;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(j){B=t.events[M][1].end;break}j=!0}for(A(i),m=S;m<t.events.length;)t.events[m][1].end={...B},m++;bt(t.events,M+1,0,t.events.slice(S)),t.events.length=m}}function A(w){let U=n.length;for(;U-- >w;){const x=n[U];t.containerState=x[1],x[0].exit.call(t,e)}n.length=w}function R(){r.write([null]),s=void 0,r=void 0,t.containerState._closeFlow=void 0}}function S0(e,t,n){return ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ci(e){if(e===null||Se(e)||ct(e))return 1;if(cs(e))return 2}function hs(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const s=e[r].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const wa={name:"attention",resolveAll:k0,tokenize:v0};function k0(e,t){let n=-1,i,r,s,u,l,o,c,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[i][1].end},E={...e[n][1].start};wo(f,-o),wo(E,o),u={type:o>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},l={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},s={type:o>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:o>1?"strong":"emphasis",start:{...u.start},end:{...l.end}},e[i][1].end={...u.start},e[n][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Lt(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=Lt(c,[["enter",r,t],["enter",u,t],["exit",u,t],["enter",s,t]]),c=Lt(c,hs(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=Lt(c,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=Lt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,bt(e,i-1,n-i+3,c),n=i+c.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function v0(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=ci(i);let s;return u;function u(o){return s=o,e.enter("attentionSequence"),l(o)}function l(o){if(o===s)return e.consume(o),l;const c=e.exit("attentionSequence"),p=ci(o),f=!p||p===2&&r||n.includes(o),E=!r||r===2&&p||n.includes(i);return c._open=!!(s===42?f:f&&(r||!E)),c._close=!!(s===42?E:E&&(p||!f)),t(o)}}function wo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I0={name:"autolink",tokenize:D0};function D0(e,t,n){let i=0;return r;function r(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(g){return st(g)?(e.consume(g),u):g===64?n(g):c(g)}function u(g){return g===43||g===45||g===46||ut(g)?(i=1,l(g)):c(g)}function l(g){return g===58?(e.consume(g),i=0,o):(g===43||g===45||g===46||ut(g))&&i++<32?(e.consume(g),l):(i=0,c(g))}function o(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||jr(g)?n(g):(e.consume(g),o)}function c(g){return g===64?(e.consume(g),p):_0(g)?(e.consume(g),c):n(g)}function p(g){return ut(g)?f(g):n(g)}function f(g){return g===46?(e.consume(g),i=0,p):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):E(g)}function E(g){if((g===45||ut(g))&&i++<63){const T=g===45?E:f;return e.consume(g),T}return n(g)}}const gi={partial:!0,tokenize:w0};function w0(e,t,n){return i;function i(s){return ge(s)?ye(e,r,"linePrefix")(s):r(s)}function r(s){return s===null||oe(s)?t(s):n(s)}}const Gc={continuation:{tokenize:L0},exit:R0,name:"blockQuote",tokenize:N0};function N0(e,t,n){const i=this;return r;function r(u){if(u===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return ge(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function L0(e,t,n){const i=this;return r;function r(u){return ge(u)?ye(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(Gc,t,n)(u)}}function R0(e){e.exit("blockQuote")}const Wc={name:"characterEscape",tokenize:P0};function P0(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),r}function r(s){return b0(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Yc={name:"characterReference",tokenize:O0};function O0(e,t,n){const i=this;let r=0,s,u;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),o}function o(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,u=ut,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=x0,p):(e.enter("characterReferenceValue"),s=7,u=Da,p(f))}function p(f){if(f===59&&r){const E=e.exit("characterReferenceValue");return u===ut&&!$i(i.sliceSerialize(E))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(f)&&r++<s?(e.consume(f),p):n(f)}}const No={partial:!0,tokenize:B0},Lo={concrete:!0,name:"codeFenced",tokenize:F0};function F0(e,t,n){const i=this,r={partial:!0,tokenize:x};let s=0,u=0,l;return o;function o(m){return c(m)}function c(m){const S=i.events[i.events.length-1];return s=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,l=m,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(m)}function p(m){return m===l?(u++,e.consume(m),p):u<3?n(m):(e.exit("codeFencedFenceSequence"),ge(m)?ye(e,f,"whitespace")(m):f(m))}function f(m){return m===null||oe(m)?(e.exit("codeFencedFence"),i.interrupt?t(m):e.check(No,v,U)(m)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(m))}function E(m){return m===null||oe(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(m)):ge(m)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ye(e,g,"whitespace")(m)):m===96&&m===l?n(m):(e.consume(m),E)}function g(m){return m===null||oe(m)?f(m):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(m))}function T(m){return m===null||oe(m)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(m)):m===96&&m===l?n(m):(e.consume(m),T)}function v(m){return e.attempt(r,U,N)(m)}function N(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),A}function A(m){return s>0&&ge(m)?ye(e,R,"linePrefix",s+1)(m):R(m)}function R(m){return m===null||oe(m)?e.check(No,v,U)(m):(e.enter("codeFlowValue"),w(m))}function w(m){return m===null||oe(m)?(e.exit("codeFlowValue"),R(m)):(e.consume(m),w)}function U(m){return e.exit("codeFenced"),t(m)}function x(m,S,M){let j=0;return B;function B(ee){return m.enter("lineEnding"),m.consume(ee),m.exit("lineEnding"),G}function G(ee){return m.enter("codeFencedFence"),ge(ee)?ye(m,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Y(ee)}function Y(ee){return ee===l?(m.enter("codeFencedFenceSequence"),re(ee)):M(ee)}function re(ee){return ee===l?(j++,m.consume(ee),re):j>=u?(m.exit("codeFencedFenceSequence"),ge(ee)?ye(m,te,"whitespace")(ee):te(ee)):M(ee)}function te(ee){return ee===null||oe(ee)?(m.exit("codeFencedFence"),S(ee)):M(ee)}}}function B0(e,t,n){const i=this;return r;function r(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const Hs={name:"codeIndented",tokenize:U0},M0={partial:!0,tokenize:V0};function U0(e,t,n){const i=this;return r;function r(c){return e.enter("codeIndented"),ye(e,s,"linePrefix",5)(c)}function s(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(c):n(c)}function u(c){return c===null?o(c):oe(c)?e.attempt(M0,u,o)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||oe(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),l)}function o(c){return e.exit("codeIndented"),t(c)}}function V0(e,t,n){const i=this;return r;function r(u){return i.parser.lazy[i.now().line]?n(u):oe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r):ye(e,s,"linePrefix",5)(u)}function s(u){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):oe(u)?r(u):n(u)}}const H0={name:"codeText",previous:z0,resolve:j0,tokenize:q0};function j0(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function z0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function q0(e,t,n){let i=0,r,s;return u;function u(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),i++,l):(e.exit("codeTextSequence"),o(f))}function o(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),o):f===96?(s=e.enter("codeTextSequence"),r=0,p(f)):oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||oe(f)?(e.exit("codeTextData"),o(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),r++,p):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",c(f))}}class G0{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Ii(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ii(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ii(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ii(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ii(this.left,n.reverse())}}}function Ii(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Jc(e){const t={};let n=-1,i,r,s,u,l,o,c;const p=new G0(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(o=i[1]._tokenizer.events,s=0,s<o.length&&o[s][1].type==="lineEndingBlank"&&(s+=2),s<o.length&&o[s][1].type==="content"))for(;++s<o.length&&o[s][1].type!=="content";)o[s][1].type==="chunkText"&&(o[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,W0(p,n)),n=t[n],c=!0);else if(i[1]._container){for(s=n,r=void 0;s--;)if(u=p.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(r&&(p.get(r)[1].type="lineEndingBlank"),u[1].type="lineEnding",r=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;r&&(i[1].end={...p.get(r)[1].start},l=p.slice(r,n),l.unshift(i),p.splice(r,n-r+1,l))}}return bt(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function W0(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const s=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const l=u.events,o=[],c={};let p,f,E=-1,g=n,T=0,v=0;const N=[v];for(;g;){for(;e.get(++r)[1]!==g;);s.push(r),g._tokenizer||(p=i.sliceStream(g),g.next||p.push(null),f&&u.defineSkip(g.start),g._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(p),g._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),f=g,g=g.next}for(g=n;++E<l.length;)l[E][0]==="exit"&&l[E-1][0]==="enter"&&l[E][1].type===l[E-1][1].type&&l[E][1].start.line!==l[E][1].end.line&&(v=E+1,N.push(v),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(u.events=[],g?(g._tokenizer=void 0,g.previous=void 0):N.pop(),E=N.length;E--;){const A=l.slice(N[E],N[E+1]),R=s.pop();o.push([R,R+A.length-1]),e.splice(R,2,A)}for(o.reverse(),E=-1;++E<o.length;)c[T+o[E][0]]=T+o[E][1],T+=o[E][1]-o[E][0]-1;return c}const Y0={resolve:Q0,tokenize:X0},J0={partial:!0,tokenize:$0};function Q0(e){return Jc(e),e}function X0(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?s(l):oe(l)?e.check(J0,u,s)(l):(e.consume(l),r)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function u(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function $0(e,t,n){const i=this;return r;function r(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ye(e,s,"linePrefix")}function s(u){if(u===null||oe(u))return n(u);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function Qc(e,t,n,i,r,s,u,l,o){const c=o||Number.POSITIVE_INFINITY;let p=0;return f;function f(A){return A===60?(e.enter(i),e.enter(r),e.enter(s),e.consume(A),e.exit(s),E):A===null||A===32||A===41||jr(A)?n(A):(e.enter(i),e.enter(u),e.enter(l),e.enter("chunkString",{contentType:"string"}),v(A))}function E(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===62?(e.exit("chunkString"),e.exit(l),E(A)):A===null||A===60||oe(A)?n(A):(e.consume(A),A===92?T:g)}function T(A){return A===60||A===62||A===92?(e.consume(A),g):g(A)}function v(A){return!p&&(A===null||A===41||Se(A))?(e.exit("chunkString"),e.exit(l),e.exit(u),e.exit(i),t(A)):p<c&&A===40?(e.consume(A),p++,v):A===41?(e.consume(A),p--,v):A===null||A===32||A===40||jr(A)?n(A):(e.consume(A),A===92?N:v)}function N(A){return A===40||A===41||A===92?(e.consume(A),v):v(A)}}function Xc(e,t,n,i,r,s){const u=this;let l=0,o;return c;function c(g){return e.enter(i),e.enter(r),e.consume(g),e.exit(r),e.enter(s),p}function p(g){return l>999||g===null||g===91||g===93&&!o||g===94&&!l&&"_hiddenFootnoteSupport"in u.parser.constructs?n(g):g===93?(e.exit(s),e.enter(r),e.consume(g),e.exit(r),e.exit(i),t):oe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||oe(g)||l++>999?(e.exit("chunkString"),p(g)):(e.consume(g),o||(o=!ge(g)),g===92?E:f)}function E(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}}function $c(e,t,n,i,r,s){let u;return l;function l(E){return E===34||E===39||E===40?(e.enter(i),e.enter(r),e.consume(E),e.exit(r),u=E===40?41:E,o):n(E)}function o(E){return E===u?(e.enter(r),e.consume(E),e.exit(r),e.exit(i),t):(e.enter(s),c(E))}function c(E){return E===u?(e.exit(s),o(u)):E===null?n(E):oe(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),ye(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===u||E===null||oe(E)?(e.exit("chunkString"),c(E)):(e.consume(E),E===92?f:p)}function f(E){return E===u||E===92?(e.consume(E),p):p(E)}}function ji(e,t){let n;return i;function i(r){return oe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):ge(r)?ye(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const K0={name:"definition",tokenize:em},Z0={partial:!0,tokenize:tm};function em(e,t,n){const i=this;let r;return s;function s(g){return e.enter("definition"),u(g)}function u(g){return Xc.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return r=Ht(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o):n(g)}function o(g){return Se(g)?ji(e,c)(g):c(g)}function c(g){return Qc(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(Z0,f,f)(g)}function f(g){return ge(g)?ye(e,E,"whitespace")(g):E(g)}function E(g){return g===null||oe(g)?(e.exit("definition"),i.parser.defined.push(r),t(g)):n(g)}}function tm(e,t,n){return i;function i(l){return Se(l)?ji(e,r)(l):n(l)}function r(l){return $c(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return ge(l)?ye(e,u,"whitespace")(l):u(l)}function u(l){return l===null||oe(l)?t(l):n(l)}}const nm={name:"hardBreakEscape",tokenize:im};function im(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),r}function r(s){return oe(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const rm={name:"headingAtx",resolve:sm,tokenize:am};function sm(e,t){let n=e.length-2,i=3,r,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},bt(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])),e}function am(e,t,n){let i=0;return r;function r(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),u(p)}function u(p){return p===35&&i++<6?(e.consume(p),u):p===null||Se(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),o(p)):p===null||oe(p)?(e.exit("atxHeading"),t(p)):ge(p)?ye(e,l,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function o(p){return p===35?(e.consume(p),o):(e.exit("atxHeadingSequence"),l(p))}function c(p){return p===null||p===35||Se(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),c)}}const um=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ro=["pre","script","style","textarea"],om={concrete:!0,name:"htmlFlow",resolveTo:hm,tokenize:fm},lm={partial:!0,tokenize:dm},cm={partial:!0,tokenize:pm};function hm(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fm(e,t,n){const i=this;let r,s,u,l,o;return c;function c(F){return p(F)}function p(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),f}function f(F){return F===33?(e.consume(F),E):F===47?(e.consume(F),s=!0,v):F===63?(e.consume(F),r=3,i.interrupt?t:O):st(F)?(e.consume(F),u=String.fromCharCode(F),N):n(F)}function E(F){return F===45?(e.consume(F),r=2,g):F===91?(e.consume(F),r=5,l=0,T):st(F)?(e.consume(F),r=4,i.interrupt?t:O):n(F)}function g(F){return F===45?(e.consume(F),i.interrupt?t:O):n(F)}function T(F){const Ve="CDATA[";return F===Ve.charCodeAt(l++)?(e.consume(F),l===Ve.length?i.interrupt?t:Y:T):n(F)}function v(F){return st(F)?(e.consume(F),u=String.fromCharCode(F),N):n(F)}function N(F){if(F===null||F===47||F===62||Se(F)){const Ve=F===47,Ye=u.toLowerCase();return!Ve&&!s&&Ro.includes(Ye)?(r=1,i.interrupt?t(F):Y(F)):um.includes(u.toLowerCase())?(r=6,Ve?(e.consume(F),A):i.interrupt?t(F):Y(F)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(F):s?R(F):w(F))}return F===45||ut(F)?(e.consume(F),u+=String.fromCharCode(F),N):n(F)}function A(F){return F===62?(e.consume(F),i.interrupt?t:Y):n(F)}function R(F){return ge(F)?(e.consume(F),R):B(F)}function w(F){return F===47?(e.consume(F),B):F===58||F===95||st(F)?(e.consume(F),U):ge(F)?(e.consume(F),w):B(F)}function U(F){return F===45||F===46||F===58||F===95||ut(F)?(e.consume(F),U):x(F)}function x(F){return F===61?(e.consume(F),m):ge(F)?(e.consume(F),x):w(F)}function m(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),o=F,S):ge(F)?(e.consume(F),m):M(F)}function S(F){return F===o?(e.consume(F),o=null,j):F===null||oe(F)?n(F):(e.consume(F),S)}function M(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Se(F)?x(F):(e.consume(F),M)}function j(F){return F===47||F===62||ge(F)?w(F):n(F)}function B(F){return F===62?(e.consume(F),G):n(F)}function G(F){return F===null||oe(F)?Y(F):ge(F)?(e.consume(F),G):n(F)}function Y(F){return F===45&&r===2?(e.consume(F),ce):F===60&&r===1?(e.consume(F),fe):F===62&&r===4?(e.consume(F),We):F===63&&r===3?(e.consume(F),O):F===93&&r===5?(e.consume(F),Oe):oe(F)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(lm,Fe,re)(F)):F===null||oe(F)?(e.exit("htmlFlowData"),re(F)):(e.consume(F),Y)}function re(F){return e.check(cm,te,Fe)(F)}function te(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),ee}function ee(F){return F===null||oe(F)?re(F):(e.enter("htmlFlowData"),Y(F))}function ce(F){return F===45?(e.consume(F),O):Y(F)}function fe(F){return F===47?(e.consume(F),u="",we):Y(F)}function we(F){if(F===62){const Ve=u.toLowerCase();return Ro.includes(Ve)?(e.consume(F),We):Y(F)}return st(F)&&u.length<8?(e.consume(F),u+=String.fromCharCode(F),we):Y(F)}function Oe(F){return F===93?(e.consume(F),O):Y(F)}function O(F){return F===62?(e.consume(F),We):F===45&&r===2?(e.consume(F),O):Y(F)}function We(F){return F===null||oe(F)?(e.exit("htmlFlowData"),Fe(F)):(e.consume(F),We)}function Fe(F){return e.exit("htmlFlow"),t(F)}}function pm(e,t,n){const i=this;return r;function r(u){return oe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function dm(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(gi,t,n)}}const mm={name:"htmlText",tokenize:gm};function gm(e,t,n){const i=this;let r,s,u;return l;function l(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),o}function o(O){return O===33?(e.consume(O),c):O===47?(e.consume(O),x):O===63?(e.consume(O),w):st(O)?(e.consume(O),M):n(O)}function c(O){return O===45?(e.consume(O),p):O===91?(e.consume(O),s=0,T):st(O)?(e.consume(O),R):n(O)}function p(O){return O===45?(e.consume(O),g):n(O)}function f(O){return O===null?n(O):O===45?(e.consume(O),E):oe(O)?(u=f,fe(O)):(e.consume(O),f)}function E(O){return O===45?(e.consume(O),g):f(O)}function g(O){return O===62?ce(O):O===45?E(O):f(O)}function T(O){const We="CDATA[";return O===We.charCodeAt(s++)?(e.consume(O),s===We.length?v:T):n(O)}function v(O){return O===null?n(O):O===93?(e.consume(O),N):oe(O)?(u=v,fe(O)):(e.consume(O),v)}function N(O){return O===93?(e.consume(O),A):v(O)}function A(O){return O===62?ce(O):O===93?(e.consume(O),A):v(O)}function R(O){return O===null||O===62?ce(O):oe(O)?(u=R,fe(O)):(e.consume(O),R)}function w(O){return O===null?n(O):O===63?(e.consume(O),U):oe(O)?(u=w,fe(O)):(e.consume(O),w)}function U(O){return O===62?ce(O):w(O)}function x(O){return st(O)?(e.consume(O),m):n(O)}function m(O){return O===45||ut(O)?(e.consume(O),m):S(O)}function S(O){return oe(O)?(u=S,fe(O)):ge(O)?(e.consume(O),S):ce(O)}function M(O){return O===45||ut(O)?(e.consume(O),M):O===47||O===62||Se(O)?j(O):n(O)}function j(O){return O===47?(e.consume(O),ce):O===58||O===95||st(O)?(e.consume(O),B):oe(O)?(u=j,fe(O)):ge(O)?(e.consume(O),j):ce(O)}function B(O){return O===45||O===46||O===58||O===95||ut(O)?(e.consume(O),B):G(O)}function G(O){return O===61?(e.consume(O),Y):oe(O)?(u=G,fe(O)):ge(O)?(e.consume(O),G):j(O)}function Y(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),r=O,re):oe(O)?(u=Y,fe(O)):ge(O)?(e.consume(O),Y):(e.consume(O),te)}function re(O){return O===r?(e.consume(O),r=void 0,ee):O===null?n(O):oe(O)?(u=re,fe(O)):(e.consume(O),re)}function te(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||Se(O)?j(O):(e.consume(O),te)}function ee(O){return O===47||O===62||Se(O)?j(O):n(O)}function ce(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function fe(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),we}function we(O){return ge(O)?ye(e,Oe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):Oe(O)}function Oe(O){return e.enter("htmlTextData"),u(O)}}const uu={name:"labelEnd",resolveAll:bm,resolveTo:Tm,tokenize:ym},Em={tokenize:Am},_m={tokenize:Cm},xm={tokenize:Sm};function bm(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&bt(e,0,e.length,n),e}function Tm(e,t){let n=e.length,i=0,r,s,u,l;for(;n--;)if(r=e[n][1],s){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(s=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(u=n);const o={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},p={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[u-2][1].start}};return l=[["enter",o,t],["enter",c,t]],l=Lt(l,e.slice(s+1,s+i+3)),l=Lt(l,[["enter",p,t]]),l=Lt(l,hs(t.parser.constructs.insideSpan.null,e.slice(s+i+4,u-3),t)),l=Lt(l,[["exit",p,t],e[u-2],e[u-1],["exit",c,t]]),l=Lt(l,e.slice(u+1)),l=Lt(l,[["exit",o,t]]),bt(e,s,e.length,l),e}function ym(e,t,n){const i=this;let r=i.events.length,s,u;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}return l;function l(E){return s?s._inactive?f(E):(u=i.parser.defined.includes(Ht(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),o):n(E)}function o(E){return E===40?e.attempt(Em,p,u?p:f)(E):E===91?e.attempt(_m,p,u?c:f)(E):u?p(E):f(E)}function c(E){return e.attempt(xm,p,f)(E)}function p(E){return t(E)}function f(E){return s._balanced=!0,n(E)}}function Am(e,t,n){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),r}function r(f){return Se(f)?ji(e,s)(f):s(f)}function s(f){return f===41?p(f):Qc(e,u,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function u(f){return Se(f)?ji(e,o)(f):p(f)}function l(f){return n(f)}function o(f){return f===34||f===39||f===40?$c(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return Se(f)?ji(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Cm(e,t,n){const i=this;return r;function r(l){return Xc.call(i,e,s,u,"reference","referenceMarker","referenceString")(l)}function s(l){return i.parser.defined.includes(Ht(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function u(l){return n(l)}}function Sm(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),r}function r(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const km={name:"labelStartImage",resolveAll:uu.resolveAll,tokenize:vm};function vm(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),u):n(l)}function u(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const Im={name:"labelStartLink",resolveAll:uu.resolveAll,tokenize:Dm};function Dm(e,t,n){const i=this;return r;function r(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const js={name:"lineEnding",tokenize:wm};function wm(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ye(e,t,"linePrefix")}}const Pr={name:"thematicBreak",tokenize:Nm};function Nm(e,t,n){let i=0,r;return s;function s(c){return e.enter("thematicBreak"),u(c)}function u(c){return r=c,l(c)}function l(c){return c===r?(e.enter("thematicBreakSequence"),o(c)):i>=3&&(c===null||oe(c))?(e.exit("thematicBreak"),t(c)):n(c)}function o(c){return c===r?(e.consume(c),i++,o):(e.exit("thematicBreakSequence"),ge(c)?ye(e,l,"whitespace")(c):l(c))}}const dt={continuation:{tokenize:Om},exit:Bm,name:"list",tokenize:Pm},Lm={partial:!0,tokenize:Mm},Rm={partial:!0,tokenize:Fm};function Pm(e,t,n){const i=this,r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,u=0;return l;function l(g){const T=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:Da(g)){if(i.containerState.type||(i.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Pr,n,c)(g):c(g);if(!i.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(g)}return n(g)}function o(g){return Da(g)&&++u<10?(e.consume(g),o):(!i.interrupt||u<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,e.check(gi,i.interrupt?n:p,e.attempt(Lm,E,f))}function p(g){return i.containerState.initialBlankLine=!0,s++,E(g)}function f(g){return ge(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),E):n(g)}function E(g){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Om(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(gi,r,s);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ye(e,t,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!ge(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Rm,t,u)(l))}function u(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,ye(e,e.attempt(dt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Fm(e,t,n){const i=this;return ye(e,r,"listItemIndent",i.containerState.size+1);function r(s){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(s):n(s)}}function Bm(e){e.exit(this.containerState.type)}function Mm(e,t,n){const i=this;return ye(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(s){const u=i.events[i.events.length-1];return!ge(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const Po={name:"setextUnderline",resolveTo:Um,tokenize:Vm};function Um(e,t){let n=e.length,i,r,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",s?(e.splice(r,0,["enter",u,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function Vm(e,t,n){const i=this;let r;return s;function s(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),r=c,u(c)):n(c)}function u(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),ge(c)?ye(e,o,"lineSuffix")(c):o(c))}function o(c){return c===null||oe(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Hm={tokenize:jm};function jm(e){const t=this,n=e.attempt(gi,i,e.attempt(this.parser.constructs.flowInitial,r,ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Y0,r)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const zm={resolveAll:Zc()},qm=Kc("string"),Gm=Kc("text");function Kc(e){return{resolveAll:Zc(e==="text"?Wm:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],s=n.attempt(r,u,l);return u;function u(p){return c(p)?s(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),o}function o(p){return c(p)?(n.exit("data"),s(p)):(n.consume(p),o)}function c(p){if(p===null)return!0;const f=r[p];let E=-1;if(f)for(;++E<f.length;){const g=f[E];if(!g.previous||g.previous.call(i,i.previous))return!0}return!1}}}function Zc(e){return t;function t(n,i){let r=-1,s;for(;++r<=n.length;)s===void 0?n[r]&&n[r][1].type==="data"&&(s=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),r=s+2),s=void 0);return e?e(n,i):n}}function Wm(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let s=r.length,u=-1,l=0,o;for(;s--;){const c=r[s];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(c===-2)o=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:i.start._bufferIndex+u,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Ym={42:dt,43:dt,45:dt,48:dt,49:dt,50:dt,51:dt,52:dt,53:dt,54:dt,55:dt,56:dt,57:dt,62:Gc},Jm={91:K0},Qm={[-2]:Hs,[-1]:Hs,32:Hs},Xm={35:rm,42:Pr,45:[Po,Pr],60:om,61:Po,95:Pr,96:Lo,126:Lo},$m={38:Yc,92:Wc},Km={[-5]:js,[-4]:js,[-3]:js,33:km,38:Yc,42:wa,60:[I0,mm],91:Im,92:[nm,Wc],93:uu,95:wa,96:H0},Zm={null:[wa,zm]},e1={null:[42,95]},t1={null:[]},n1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:e1,contentInitial:Jm,disable:t1,document:Ym,flow:Xm,flowInitial:Qm,insideSpan:Zm,string:$m,text:Km},Symbol.toStringTag,{value:"Module"}));function i1(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},s=[];let u=[],l=[];const o={attempt:S(x),check:S(m),consume:R,enter:w,exit:U,interrupt:S(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:T,parser:e,previous:null,sliceSerialize:E,sliceStream:g,write:f};let p=t.tokenize.call(c,o);return t.resolveAll&&s.push(t),c;function f(G){return u=Lt(u,G),N(),u[u.length-1]!==null?[]:(M(t,0),c.events=hs(s,c.events,c),c.events)}function E(G,Y){return s1(g(G),Y)}function g(G){return r1(u,G)}function T(){const{_bufferIndex:G,_index:Y,line:re,column:te,offset:ee}=i;return{_bufferIndex:G,_index:Y,line:re,column:te,offset:ee}}function v(G){r[G.line]=G.column,B()}function N(){let G;for(;i._index<u.length;){const Y=u[i._index];if(typeof Y=="string")for(G=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===G&&i._bufferIndex<Y.length;)A(Y.charCodeAt(i._bufferIndex));else A(Y)}}function A(G){p=p(G)}function R(G){oe(G)?(i.line++,i.column=1,i.offset+=G===-3?2:1,B()):G!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=G}function w(G,Y){const re=Y||{};return re.type=G,re.start=T(),c.events.push(["enter",re,c]),l.push(re),re}function U(G){const Y=l.pop();return Y.end=T(),c.events.push(["exit",Y,c]),Y}function x(G,Y){M(G,Y.from)}function m(G,Y){Y.restore()}function S(G,Y){return re;function re(te,ee,ce){let fe,we,Oe,O;return Array.isArray(te)?Fe(te):"tokenize"in te?Fe([te]):We(te);function We(Ne){return Tt;function Tt(Ze){const $e=Ze!==null&&Ne[Ze],et=Ze!==null&&Ne.null,Ke=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray(et)?et:et?[et]:[]];return Fe(Ke)(Ze)}}function Fe(Ne){return fe=Ne,we=0,Ne.length===0?ce:F(Ne[we])}function F(Ne){return Tt;function Tt(Ze){return O=j(),Oe=Ne,Ne.partial||(c.currentConstruct=Ne),Ne.name&&c.parser.constructs.disable.null.includes(Ne.name)?Ye():Ne.tokenize.call(Y?Object.assign(Object.create(c),Y):c,o,Ve,Ye)(Ze)}}function Ve(Ne){return G(Oe,O),ee}function Ye(Ne){return O.restore(),++we<fe.length?F(fe[we]):ce}}}function M(G,Y){G.resolveAll&&!s.includes(G)&&s.push(G),G.resolve&&bt(c.events,Y,c.events.length-Y,G.resolve(c.events.slice(Y),c)),G.resolveTo&&(c.events=G.resolveTo(c.events,c))}function j(){const G=T(),Y=c.previous,re=c.currentConstruct,te=c.events.length,ee=Array.from(l);return{from:te,restore:ce};function ce(){i=G,c.previous=Y,c.currentConstruct=re,c.events.length=te,l=ee,B()}}function B(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function r1(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,s=t.end._bufferIndex;let u;if(n===r)u=[e[n].slice(i,s)];else{if(u=e.slice(n,r),i>-1){const l=u[0];typeof l=="string"?u[0]=l.slice(i):u.shift()}s>0&&u.push(e[r].slice(0,s))}return u}function s1(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const s=e[n];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
3
3
  `;break}case-3:{u=`\r
4
4
  `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&r)continue;u=" ";break}default:u=String.fromCharCode(s)}r=s===-2,i.push(u)}return i.join("")}function a1(e){const i={constructs:au([n1,...(e||{}).extensions||[]]),content:r(T0),defined:[],document:r(A0),flow:r(Hm),lazy:{},string:r(qm),text:r(Gm)};return i;function r(s){return u;function u(l){return i1(i,s,l)}}}function u1(e){for(;!Jc(e););return e}const Oo=/[\0\t\n\r]/g;function o1(){let e=1,t="",n=!0,i;return r;function r(s,u,l){const o=[];let c,p,f,E,g;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Oo.lastIndex=f,c=Oo.exec(s),E=c&&c.index!==void 0?c.index:s.length,g=s.charCodeAt(E),!c){t=s.slice(f);break}if(g===10&&f===E&&i)o.push(-3),i=void 0;else switch(i&&(o.push(-5),i=void 0),f<E&&(o.push(s.slice(f,E)),e+=E-f),g){case 0:{o.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,o.push(-2);e++<p;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:i=!0,e=1}f=E+1}return l&&(i&&o.push(-5),t&&o.push(t),o.push(null)),o}}const l1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function c1(e){return e.replace(l1,h1)}function h1(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),s=r===120||r===88;return qc(n.slice(s?2:1),s?16:10)}return $i(n)||e}const eh={}.hasOwnProperty;function f1(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),p1(n)(u1(a1(n).document().write(o1()(e,t,!0))))}function p1(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(In),autolinkProtocol:j,autolinkEmail:j,atxHeading:s(en),blockQuote:s(et),characterEscape:j,characterReference:j,codeFenced:s(Ke),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ke,u),codeText:s(Wn,u),codeTextData:j,data:j,codeFlowValue:j,definition:s(hn),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Yn),hardBreakEscape:s(fn),hardBreakTrailing:s(fn),htmlFlow:s(yt,u),htmlFlowData:j,htmlText:s(yt,u),htmlTextData:j,image:s(zt),label:u,link:s(In),listItem:s(pn),listItemValue:E,listOrdered:s(Mt,f),listUnordered:s(Mt),paragraph:s(dn),reference:F,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(en),strong:s(qt),thematicBreak:s(Dn)},exit:{atxHeading:o(),atxHeadingSequence:x,autolink:o(),autolinkEmail:$e,autolinkProtocol:Ze,blockQuote:o(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ye,characterReferenceMarkerNumeric:Ye,characterReferenceValue:Ne,characterReference:Tt,codeFenced:o(N),codeFencedFence:v,codeFencedFenceInfo:g,codeFencedFenceMeta:T,codeFlowValue:B,codeIndented:o(A),codeText:o(ee),codeTextData:B,data:B,definition:o(),definitionDestinationString:U,definitionLabelString:R,definitionTitleString:w,emphasis:o(),hardBreakEscape:o(Y),hardBreakTrailing:o(Y),htmlFlow:o(re),htmlFlowData:B,htmlText:o(te),htmlTextData:B,image:o(fe),label:Oe,labelText:we,lineEnding:G,link:o(ce),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:Ve,resourceDestinationString:O,resourceTitleString:We,resource:Fe,setextHeading:o(M),setextHeadingLineSequence:S,setextHeadingText:m,strong:o(),thematicBreak:o()}};th(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(W){let J={type:"root",children:[]};const C={stack:[J],tokenStack:[],config:t,enter:l,exit:c,buffer:u,resume:p,data:n},le=[];let me=-1;for(;++me<W.length;)if(W[me][1].type==="listOrdered"||W[me][1].type==="listUnordered")if(W[me][0]==="enter")le.push(me);else{const tt=le.pop();me=r(W,tt,me)}for(me=-1;++me<W.length;){const tt=t[W[me][0]];eh.call(tt,W[me][1].type)&&tt[W[me][1].type].call(Object.assign({sliceSerialize:W[me][2].sliceSerialize},C),W[me][1])}if(C.tokenStack.length>0){const tt=C.tokenStack[C.tokenStack.length-1];(tt[1]||Fo).call(C,void 0,tt[0])}for(J.position={start:gn(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:gn(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)J=t.transforms[me](J)||J;return J}function r(W,J,C){let le=J-1,me=-1,tt=!1,At,ie,tn,wn;for(;++le<=C;){const lt=W[le];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?me++:me--,wn=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(At&&!wn&&!me&&!tn&&(tn=le),wn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wn=void 0}if(!me&&lt[0]==="enter"&&lt[1].type==="listItemPrefix"||me===-1&&lt[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(At){let Ct=le;for(ie=void 0;Ct--;){const _t=W[Ct];if(_t[1].type==="lineEnding"||_t[1].type==="lineEndingBlank"){if(_t[0]==="exit")continue;ie&&(W[ie][1].type="lineEndingBlank",tt=!0),_t[1].type="lineEnding",ie=Ct}else if(!(_t[1].type==="linePrefix"||_t[1].type==="blockQuotePrefix"||_t[1].type==="blockQuotePrefixWhitespace"||_t[1].type==="blockQuoteMarker"||_t[1].type==="listItemIndent"))break}tn&&(!ie||tn<ie)&&(At._spread=!0),At.end=Object.assign({},ie?W[ie][1].start:lt[1].end),W.splice(ie||le,0,["exit",At,lt[2]]),le++,C++}if(lt[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};At=Ct,W.splice(le,0,["enter",Ct,lt[2]]),le++,C++,tn=void 0,wn=!0}}}return W[J][1]._spread=tt,C}function s(W,J){return C;function C(le){l.call(this,W(le),le),J&&J.call(this,le)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(W,J,C){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([J,C||void 0]),W.position={start:gn(J.start),end:void 0}}function o(W){return J;function J(C){W&&W.call(this,C),c.call(this,C)}}function c(W,J){const C=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==W.type&&(J?J.call(this,W,le[0]):(le[1]||Fo).call(this,W,le[0]));else throw new Error("Cannot close `"+W.type+"` ("+sn({start:W.start,end:W.end})+"): it’s not open");C.position.end=gn(W.end)}function p(){return su(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function E(W){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function g(){const W=this.resume(),J=this.stack[this.stack.length-1];J.lang=W}function T(){const W=this.resume(),J=this.stack[this.stack.length-1];J.meta=W}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const W=this.resume(),J=this.stack[this.stack.length-1];J.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const W=this.resume(),J=this.stack[this.stack.length-1];J.value=W.replace(/(\r?\n|\r)$/g,"")}function R(W){const J=this.resume(),C=this.stack[this.stack.length-1];C.label=J,C.identifier=Ht(this.sliceSerialize(W)).toLowerCase()}function w(){const W=this.resume(),J=this.stack[this.stack.length-1];J.title=W}function U(){const W=this.resume(),J=this.stack[this.stack.length-1];J.url=W}function x(W){const J=this.stack[this.stack.length-1];if(!J.depth){const C=this.sliceSerialize(W).length;J.depth=C}}function m(){this.data.setextHeadingSlurpLineEnding=!0}function S(W){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function j(W){const C=this.stack[this.stack.length-1].children;let le=C[C.length-1];(!le||le.type!=="text")&&(le=ke(),le.position={start:gn(W.start),end:void 0},C.push(le)),this.stack.push(le)}function B(W){const J=this.stack.pop();J.value+=this.sliceSerialize(W),J.position.end=gn(W.end)}function G(W){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const C=J.children[J.children.length-1];C.position.end=gn(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(j.call(this,W),B.call(this,W))}function Y(){this.data.atHardBreak=!0}function re(){const W=this.resume(),J=this.stack[this.stack.length-1];J.value=W}function te(){const W=this.resume(),J=this.stack[this.stack.length-1];J.value=W}function ee(){const W=this.resume(),J=this.stack[this.stack.length-1];J.value=W}function ce(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=J,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function fe(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=J,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function we(W){const J=this.sliceSerialize(W),C=this.stack[this.stack.length-2];C.label=c1(J),C.identifier=Ht(J).toLowerCase()}function Oe(){const W=this.stack[this.stack.length-1],J=this.resume(),C=this.stack[this.stack.length-1];if(this.data.inReference=!0,C.type==="link"){const le=W.children;C.children=le}else C.alt=J}function O(){const W=this.resume(),J=this.stack[this.stack.length-1];J.url=W}function We(){const W=this.resume(),J=this.stack[this.stack.length-1];J.title=W}function Fe(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function Ve(W){const J=this.resume(),C=this.stack[this.stack.length-1];C.label=J,C.identifier=Ht(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function Ye(W){this.data.characterReferenceType=W.type}function Ne(W){const J=this.sliceSerialize(W),C=this.data.characterReferenceType;let le;C?(le=qc(J,C==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=$i(J);const me=this.stack[this.stack.length-1];me.value+=le}function Tt(W){const J=this.stack.pop();J.position.end=gn(W.end)}function Ze(W){B.call(this,W);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(W)}function $e(W){B.call(this,W);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(W)}function et(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function Wn(){return{type:"inlineCode",value:""}}function hn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Yn(){return{type:"emphasis",children:[]}}function en(){return{type:"heading",depth:0,children:[]}}function fn(){return{type:"break"}}function yt(){return{type:"html",value:""}}function zt(){return{type:"image",title:null,url:"",alt:null}}function In(){return{type:"link",title:null,url:"",children:[]}}function Mt(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function pn(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function dn(){return{type:"paragraph",children:[]}}function qt(){return{type:"strong",children:[]}}function ke(){return{type:"text",value:""}}function Dn(){return{type:"thematicBreak"}}}function gn(e){return{line:e.line,column:e.column,offset:e.offset}}function th(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?th(e,i):d1(e,i)}}function d1(e,t){let n;for(n in t)if(eh.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Fo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+sn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+sn({start:t.start,end:t.end})+") is still open")}function m1(e){const t=this;t.parser=n;function n(i){return f1(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function g1(){return{enter:{mdxFlowExpression:_1,mdxTextExpression:x1},exit:{mdxFlowExpression:Bo,mdxFlowExpressionChunk:Mo,mdxTextExpression:Bo,mdxTextExpressionChunk:Mo}}}function E1(){return{handlers:{mdxFlowExpression:Uo,mdxTextExpression:Uo},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function _1(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function x1(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function Bo(e){const t=this.resume(),n=e.estree,i=this.stack[this.stack.length-1];i.type==="mdxFlowExpression"||i.type,this.exit(e),i.value=t,n&&(i.data={estree:n})}function Mo(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Uo(e,t,n){const i=e.value||"";return"{"+n.indentLines(i,function(s,u,l){return(u===0||l?"":" ")+s})+"}"}function hi(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}const nh=["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"],Vo={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function ih(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function b1(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function T1(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Ho(e){return T1(e)||ih(e)}const y1=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function A1(e,t){const n=t||{},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[];let s=0,u=-1,l="",o,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,o=n.position.start):o=n.position);let p=(o?o.line:0)||1,f=(o?o.column:0)||1,E=T(),g;for(s--;++s<=e.length;)if(g===10&&(f=(c?c[u]:0)||1),g=e.charCodeAt(s),g===38){const A=e.charCodeAt(s+1);if(A===9||A===10||A===12||A===32||A===38||A===60||Number.isNaN(A)||i&&A===i){l+=String.fromCharCode(g),f++;continue}const R=s+1;let w=R,U=R,x;if(A===35){U=++w;const re=e.charCodeAt(U);re===88||re===120?(x="hexadecimal",U=++w):x="decimal"}else x="named";let m="",S="",M="";const j=x==="named"?Ho:x==="decimal"?ih:b1;for(U--;++U<=e.length;){const re=e.charCodeAt(U);if(!j(re))break;M+=String.fromCharCode(re),x==="named"&&nh.includes(M)&&(m=M,S=$i(M))}let B=e.charCodeAt(U)===59;if(B){U++;const re=x==="named"?$i(M):!1;re&&(m=M,S=re)}let G=1+U-R,Y="";if(!(!B&&n.nonTerminated===!1))if(!M)x!=="named"&&v(4,G);else if(x==="named"){if(B&&!S)v(5,1);else if(m!==M&&(U=w+m.length,G=1+U-w,B=!1),!B){const re=m?1:3;if(n.attribute){const te=e.charCodeAt(U);te===61?(v(re,G),S=""):Ho(te)?S="":v(re,G)}else v(re,G)}Y=S}else{B||v(2,G);let re=Number.parseInt(M,x==="hexadecimal"?16:10);if(C1(re))v(7,G),Y="�";else if(re in Vo)v(6,G),Y=Vo[re];else{let te="";S1(re)&&v(6,G),re>65535&&(re-=65536,te+=String.fromCharCode(re>>>10|55296),re=56320|re&1023),Y=te+String.fromCharCode(re)}}if(Y){N(),E=T(),s=U-1,f+=U-R+1,r.push(Y);const re=T();re.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,Y,{start:E,end:re},e.slice(R-1,U)),E=re}else M=e.slice(R-1,U),l+=M,f+=M.length,s=U-1}else g===10&&(p++,u++,f=0),Number.isNaN(g)?N():(l+=String.fromCharCode(g),f++);return r.join("");function T(){return{line:p,column:f,offset:s+((o?o.offset:0)||0)}}function v(A,R){let w;n.warning&&(w=T(),w.column+=R,w.offset+=R,n.warning.call(n.warningContext||void 0,y1[A],w,A))}function N(){l&&(r.push(l),n.text&&n.text.call(n.textContext||void 0,l,{start:E,end:T()}),l="")}}function C1(e){return e>=55296&&e<=57343||e>1114111}function S1(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const k1=/["&'<>`]/g,v1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,D1=/[|\\{}()[\]^$+*?.]/g,jo=new WeakMap;function rh(e,t){if(e=e.replace(t.subset?w1(t.subset):k1,i),t.subset||t.escapeOnly)return e;return e.replace(v1,n).replace(I1,i);function n(r,s,u){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,u.charCodeAt(s+2),t)}function i(r,s,u){return t.format(r.charCodeAt(0),u.charCodeAt(s+1),t)}}function w1(e){let t=jo.get(e);return t||(t=N1(e),jo.set(e,t)),t}function N1(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(D1,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const L1=/[\dA-Fa-f]/;function R1(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!L1.test(String.fromCharCode(t))?i:i+";"}const P1=/\d/;function O1(e,t,n){const i="&#"+String(e);return n&&t&&!P1.test(String.fromCharCode(t))?i:i+";"}const zs={nbsp:" ",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:"€"},F1=["cent","copy","divide","gt","lt","not","para","times"],sh={}.hasOwnProperty,Na={};let Tr;for(Tr in zs)sh.call(zs,Tr)&&(Na[zs[Tr]]=Tr);const B1=/[^\dA-Za-z]/;function M1(e,t,n,i){const r=String.fromCharCode(e);if(sh.call(Na,r)){const s=Na[r],u="&"+s;return n&&nh.includes(s)&&!F1.includes(s)&&(!i||t&&t!==61&&B1.test(String.fromCharCode(t)))?u:u+";"}return""}function U1(e,t,n){let i=R1(e,t,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=M1(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const s=O1(e,t,n.omitOptionalSemicolons);s.length<i.length&&(i=s)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function V1(e){return"&#x"+e.toString(16).toUpperCase()+";"}function oi(e,t){return rh(e,Object.assign({format:U1},t))}function H1(e,t){return rh(e,Object.assign({format:V1},t))}const ah=" ";function j1(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:i,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:f,mdxJsxFlowTagExpressionAttribute:E,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:u,mdxJsxTextTag:i,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:f,mdxJsxTextTagExpressionAttribute:E,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:u},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:o,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:p,mdxJsxFlowTagExpressionAttribute:g,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:T,mdxJsxFlowTagAttributeNameLocal:v,mdxJsxFlowTagAttributeValueLiteral:N,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:A,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:R,mdxJsxFlowTag:w,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:o,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:p,mdxJsxTextTagExpressionAttribute:g,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:T,mdxJsxTextTagAttributeNameLocal:v,mdxJsxTextTagAttributeValueLiteral:N,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:A,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:R,mdxJsxTextTag:w}};function e(){this.buffer()}function t(S){return{line:S.line,column:S.column,offset:S.offset}}function n(S){this.config.enter.data.call(this,S),this.config.exit.data.call(this,S)}function i(S){const M={name:void 0,attributes:[],close:!1,selfClosing:!1,start:S.start,end:S.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=M,this.buffer()}function r(S){if(this.data.mdxJsxTagStack.length===0)throw new Ie("Unexpected closing slash `/` in tag, expected an open tag first",{start:S.start,end:S.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(S){if(this.data.mdxJsxTag.close)throw new Ie("Unexpected attribute in closing tag, expected the end of the tag",{start:S.start,end:S.end},"mdast-util-mdx-jsx:unexpected-attribute")}function u(S){if(this.data.mdxJsxTag.close)throw new Ie("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:S.start,end:S.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){const S=this.data.mdxJsxTag;S.close=!0}function o(S){const M=this.data.mdxJsxTag;M.name=this.sliceSerialize(S)}function c(S){const M=this.data.mdxJsxTag;M.name+="."+this.sliceSerialize(S)}function p(S){const M=this.data.mdxJsxTag;M.name+=":"+this.sliceSerialize(S)}function f(S){const M=this.data.mdxJsxTag;s.call(this,S),M.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(S.start),end:void 0}})}function E(S){const M=this.data.mdxJsxTag;s.call(this,S),M.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(S.start),end:void 0}}),this.buffer()}function g(S){const M=this.data.mdxJsxTag,j=M.attributes[M.attributes.length-1];j.type;const B=S.estree;j.value=this.resume(),j.position,j.position.end=t(S.end),B&&(j.data={estree:B})}function T(S){const M=this.data.mdxJsxTag,j=M.attributes[M.attributes.length-1];j.type,j.name=this.sliceSerialize(S),j.position,j.position.end=t(S.end)}function v(S){const M=this.data.mdxJsxTag,j=M.attributes[M.attributes.length-1];j.type,j.name+=":"+this.sliceSerialize(S),j.position,j.position.end=t(S.end)}function N(S){const M=this.data.mdxJsxTag,j=M.attributes[M.attributes.length-1];j.value=A1(this.resume(),{nonTerminated:!1}),j.position,j.position.end=t(S.end)}function A(S){const M=this.data.mdxJsxTag,j=M.attributes[M.attributes.length-1];j.type;const B={type:"mdxJsxAttributeValueExpression",value:this.resume()},G=S.estree;G&&(B.data={estree:G}),j.value=B,j.position,j.position.end=t(S.end)}function R(){const S=this.data.mdxJsxTag;S.selfClosing=!0}function w(S){const M=this.data.mdxJsxTag,j=this.data.mdxJsxTagStack,B=j[j.length-1];if(M.close&&B.name!==M.name)throw new Ie("Unexpected closing tag `"+m(M)+"`, expected corresponding closing tag for `"+m(B)+"` ("+sn(B)+")",{start:S.start,end:S.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),M.close?j.pop():this.enter({type:S.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:M.name||null,attributes:M.attributes,children:[]},S,U),M.selfClosing||M.close?this.exit(S,x):j.push(M)}function U(S,M){const j=this.data.mdxJsxTagStack,B=j[j.length-1],G=S?" before the end of `"+S.type+"`":"",Y=S?{start:S.start,end:S.end}:void 0;throw new Ie("Expected a closing tag for `"+m(B)+"` ("+sn({start:M.start,end:M.end})+")"+G,Y,"mdast-util-mdx-jsx:end-tag-mismatch")}function x(S,M){const j=this.data.mdxJsxTag;throw new Ie("Expected the closing tag `"+m(j)+"` either after the end of `"+M.type+"` ("+sn(M.end)+") or another opening tag after the start of `"+M.type+"` ("+sn(M.start)+")",{start:S.start,end:S.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function m(S){return"<"+(S.close?"/":"")+(S.name||"")+">"}}function z1(e){const t=e||{},n=t.quote||'"',i=t.quoteSmart||!1,r=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,u=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=G1,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(o,c,p,f){const E=o.type==="mdxJsxFlowElement",g=o.name?!o.children||o.children.length===0:!1,T=uh(p),v=oh(T),N=p.createTracker(f),A=p.createTracker(f),R=[],w=(E?v:"")+"<"+(o.name||""),U=p.enter(o.type);if(N.move(w),A.move(w),o.attributes&&o.attributes.length>0){if(!o.name)throw new Error("Cannot serialize fragment w/ attributes");let j=-1;for(;++j<o.attributes.length;){const B=o.attributes[j];let G;if(B.type==="mdxJsxExpressionAttribute")G="{"+(B.value||"")+"}";else{if(!B.name)throw new Error("Cannot serialize attribute w/o name");const Y=B.value,re=B.name;let te="";if(Y!=null)if(typeof Y=="object")te="{"+(Y.value||"")+"}";else{const ee=i&&hi(Y,n)>hi(Y,u)?u:n;te=ee+H1(Y,{subset:[ee]})+ee}G=re+(te?"=":"")+te}R.push(G)}}let x=!1;const m=R.join(" ");E&&(/\r?\n|\r/.test(m)||N.current().now.column+m.length+(g?r?2:3:1)>s)&&(x=!0);let S=N,M=w;if(x){S=A;let j=-1;for(;++j<R.length;)R[j]=v+ah+R[j];M+=S.move(`
5
5
  `+R.join(`
@@ -72,8 +72,8 @@ Defaulting to 2020, but this will stop working in the future.`)),h.ecmaVersion=1
72
72
  `&&(E=2),r.children.splice(p,E)}}}}function qC(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function GC(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:i=void 0,classActiveCode:r=void 0}=e;return zC(t,new RegExp(`#?\\s*\\[!code (${Object.keys(n).map(qC).join("|")})(:\\d+)?\\]`,"gi"),function([s,u,l=":1"],o,c,p,f){const E=Number.parseInt(l.slice(1),10);for(let g=f;g<Math.min(f+E,p.length);g++)this.addClassToHast(p[g],n[u]);return i&&this.addClassToHast(this.pre,i),r&&this.addClassToHast(this.code,r),!0},e.matchAlgorithm)}function WC(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:i="has-diff",classActiveCode:r}=e;return GC({classMap:{"++":t,"--":n},classActivePre:i,classActiveCode:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}let je=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function YC(e){return Bu(e)}function Bu(e){return Array.isArray(e)?JC(e):e instanceof RegExp?e:typeof e=="object"?QC(e):e}function JC(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=Bu(e[n]);return t}function QC(e){let t={};for(let n in e)t[n]=Bu(e[n]);return t}function Dp(e,...t){return t.forEach(n=>{for(let i in n)e[i]=n[i]}),e}function wp(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?wp(e.substring(0,e.length-1)):e.substr(~t+1)}var ma=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Dr=class{static hasCaptures(e){return e===null?!1:(ma.lastIndex=0,ma.test(e))}static replaceCaptures(e,t,n){return e.replace(ma,(i,r,s,u)=>{let l=n[parseInt(r||s,10)];if(l){let o=t.substring(l.start,l.end);for(;o[0]===".";)o=o.substring(1);switch(u){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return i})}};function Np(e,t){return e<t?-1:e>t?1:0}function Lp(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let r=0;r<n;r++){let s=Np(e[r],t[r]);if(s!==0)return s}return 0}return n-i}function tc(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 Rp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Pp=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},es=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(KC(e),t)}static createFromParsedTheme(e,t){return e3(e,t)}_cachedMatchRoot=new Pp(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,i=this._cachedMatchRoot.get(t).find(r=>XC(e.parent,r.parentScopes));return i?new Op(i.fontStyle,i.foreground,i.background):null}},ga=class Ur{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const i of n)t=new Ur(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new Ur(n,t[i]);return n}push(t){return new Ur(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push(i.scopeName),i=i.parent;return i===t?n.reverse():void 0}};function XC(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let i=t[n],r=!1;if(i===">"){if(n===t.length-1)return!1;i=t[++n],r=!0}for(;e&&!$C(e.scopeName,i);){if(r)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function $C(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Op=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function KC(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let r=0,s=t.length;r<s;r++){let u=t[r];if(!u.settings)continue;let l;if(typeof u.scope=="string"){let f=u.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),l=f.split(",")}else Array.isArray(u.scope)?l=u.scope:l=[""];let o=-1;if(typeof u.settings.fontStyle=="string"){o=0;let f=u.settings.fontStyle.split(" ");for(let E=0,g=f.length;E<g;E++)switch(f[E]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let c=null;typeof u.settings.foreground=="string"&&tc(u.settings.foreground)&&(c=u.settings.foreground);let p=null;typeof u.settings.background=="string"&&tc(u.settings.background)&&(p=u.settings.background);for(let f=0,E=l.length;f<E;f++){let T=l[f].trim().split(" "),v=T[T.length-1],N=null;T.length>1&&(N=T.slice(0,T.length-1),N.reverse()),n[i++]=new ZC(v,N,r,o,c,p)}}return n}var ZC=class{constructor(e,t,n,i,r,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},at=(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))(at||{});function e3(e,t){e.sort((o,c)=>{let p=Np(o.scope,c.scope);return p!==0||(p=Lp(o.parentScopes,c.parentScopes),p!==0)?p:o.index-c.index});let n=0,i="#000000",r="#ffffff";for(;e.length>=1&&e[0].scope==="";){let o=e.shift();o.fontStyle!==-1&&(n=o.fontStyle),o.foreground!==null&&(i=o.foreground),o.background!==null&&(r=o.background)}let s=new t3(t),u=new Op(n,s.getId(i),s.getId(r)),l=new i3(new Ja(0,null,-1,0,0),[]);for(let o=0,c=e.length;o<c;o++){let p=e[o];l.insert(0,p.scope,p.parentScopes,p.fontStyle,s.getId(p.foreground),s.getId(p.background))}return new es(s,u,l)}var t3=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 new 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)}},n3=Object.freeze([]),Ja=class Fp{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,i,r,s){this.scopeDepth=t,this.parentScopes=n||n3,this.fontStyle=i,this.foreground=r,this.background=s}clone(){return new Fp(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=t[i].clone();return n}acceptOverwrite(t,n,i,r){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),r!==0&&(this.background=r)}},i3=class Qa{constructor(t,n=[],i={}){this._mainRule=t,this._children=i,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let i=0,r=0;for(;t.parentScopes[i]===">"&&i++,n.parentScopes[r]===">"&&r++,!(i>=t.parentScopes.length||r>=n.parentScopes.length);){const s=n.parentScopes[r].length-t.parentScopes[i].length;if(s!==0)return s;i++,r++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let i=t.indexOf("."),r,s;if(i===-1?(r=t,s=""):(r=t.substring(0,i),s=t.substring(i+1)),this._children.hasOwnProperty(r))return this._children[r].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Qa._cmpBySpecificity),n}insert(t,n,i,r,s,u){if(n===""){this._doInsertHere(t,i,r,s,u);return}let l=n.indexOf("."),o,c;l===-1?(o=n,c=""):(o=n.substring(0,l),c=n.substring(l+1));let p;this._children.hasOwnProperty(o)?p=this._children[o]:(p=new Qa(this._mainRule.clone(),Ja.cloneArr(this._rulesWithParentScopes)),this._children[o]=p),p.insert(t+1,c,i,r,s,u)}_doInsertHere(t,n,i,r,s){if(n===null){this._mainRule.acceptOverwrite(t,i,r,s);return}for(let u=0,l=this._rulesWithParentScopes.length;u<l;u++){let o=this._rulesWithParentScopes[u];if(Lp(o.parentScopes,n)===0){o.acceptOverwrite(t,i,r,s);return}}i===-1&&(i=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Ja(t,n,i,r,s))}},di=class Nt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Nt.getLanguageId(t),i=Nt.getTokenType(t),r=Nt.getFontStyle(t),s=Nt.getForeground(t),u=Nt.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:u})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,i,r,s,u,l){let o=Nt.getLanguageId(t),c=Nt.getTokenType(t),p=Nt.containsBalancedBrackets(t)?1:0,f=Nt.getFontStyle(t),E=Nt.getForeground(t),g=Nt.getBackground(t);return n!==0&&(o=n),i!==8&&(c=i),r!==null&&(p=r?1:0),s!==-1&&(f=s),u!==0&&(E=u),l!==0&&(g=l),(o<<0|c<<8|p<<10|f<<11|E<<15|g<<24)>>>0}};function ts(e,t){const n=[],i=r3(e);let r=i.next();for(;r!==null;){let o=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let c=u();if(n.push({matcher:c,priority:o}),r!==",")break;r=i.next()}return n;function s(){if(r==="-"){r=i.next();const o=s();return c=>!!o&&!o(c)}if(r==="("){r=i.next();const o=l();return r===")"&&(r=i.next()),o}if(nc(r)){const o=[];do o.push(r),r=i.next();while(nc(r));return c=>t(o,c)}return null}function u(){const o=[];let c=s();for(;c;)o.push(c),c=s();return p=>o.every(f=>f(p))}function l(){const o=[];let c=u();for(;c&&(o.push(c),r==="|"||r===",");){do r=i.next();while(r==="|"||r===",");c=u()}return p=>o.some(f=>f(p))}}function nc(e){return!!e&&!!e.match(/[\w\.:]+/)}function r3(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const i=n[0];return n=t.exec(e),i}}}function Bp(e){typeof e.dispose=="function"&&e.dispose()}var nr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},s3=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},a3=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},u3=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new nr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new a3;for(const n of e)o3(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof nr){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function o3(e,t,n,i){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof nr?Vr({baseGrammar:s,selfGrammar:r},i):Xa(e.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);const u=n.injections(e.scopeName);if(u)for(const l of u)i.add(new nr(l))}function Xa(e,t,n){if(t.repository&&t.repository[e]){const i=t.repository[e];ns([i],t,n)}}function Vr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ns(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ns(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ns(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const r=i.repository?Dp({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&ns(i.patterns,{...t,repository:r},n);const s=i.include;if(!s)continue;const u=Mp(s);switch(u.kind){case 0:Vr({...t,selfGrammar:t.baseGrammar},n);break;case 1:Vr(t,n);break;case 2:Xa(u.ruleName,{...t,repository:r},n);break;case 3:case 4:const l=u.scopeName===t.selfGrammar.scopeName?t.selfGrammar:u.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const o={baseGrammar:t.baseGrammar,selfGrammar:l,repository:r};u.kind===4?Xa(u.ruleName,o,n):Vr(o,n)}else u.kind===4?n.add(new s3(u.scopeName,u.ruleName)):n.add(new nr(u.scopeName));break}}}var l3=class{kind=0},c3=class{kind=1},h3=class{constructor(e){this.ruleName=e}kind=2},f3=class{constructor(e){this.scopeName=e}kind=3},p3=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Mp(e){if(e==="$base")return new l3;if(e==="$self")return new c3;const t=e.indexOf("#");if(t===-1)return new f3(e);if(t===0)return new h3(e.substring(1));{const n=e.substring(0,t),i=e.substring(t+1);return new p3(n,i)}}var d3=/\\(\d+)/,ic=/\\(\d+)/g,m3=-1,Up=-2;var pr=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,i){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Dr.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Dr.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${wp(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:Dr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Dr.replaceCaptures(this._contentName,e,t)}},g3=class extends pr{retokenizeCapturedWithRuleId;constructor(e,t,n,i,r){super(e,t,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,i){throw new Error("Not supported!")}},E3=class extends pr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,null),this._match=new ir(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=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,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new rr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rc=class extends pr{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new rr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},$a=class extends pr{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r,s,u,l,o,c){super(e,t,n,i),this._begin=new ir(r,this.id),this.beginCaptures=s,this._end=new ir(u||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=o||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=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,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new rr;for(const n of this.patterns)e.getRule(n).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}},is=class extends pr{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,i,r,s,u,l,o){super(e,t,n,i),this._begin=new ir(r,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new ir(u,Up),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=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,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new rr;for(const 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,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new rr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Vp=class it{static createCaptureRule(t,n,i,r,s){return t.registerRule(u=>new g3(n,u,i,r,s))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new E3(t.$vscodeTextmateLocation,t.id,t.name,t.match,it._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=Dp({},i,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new rc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,it._compilePatterns(s,n,i))}return t.while?new is(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,it._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,it._compileCaptures(t.whileCaptures||t.captures,n,i),it._compilePatterns(t.patterns,n,i)):new $a(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,it._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,it._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,it._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let r=[];if(t){let s=0;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const l=parseInt(u,10);l>s&&(s=l)}for(let u=0;u<=s;u++)r[u]=null;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const l=parseInt(u,10);let o=0;t[u].patterns&&(o=it.getCompiledRuleId(t[u],n,i)),r[l]=it.createCaptureRule(n,t[u].$vscodeTextmateLocation,t[u].name,t[u].contentName,o)}}return r}static _compilePatterns(t,n,i){let r=[];if(t)for(let s=0,u=t.length;s<u;s++){const l=t[s];let o=-1;if(l.include){const c=Mp(l.include);switch(c.kind){case 0:case 1:o=it.getCompiledRuleId(i[l.include],n,i);break;case 2:let p=i[c.ruleName];p&&(o=it.getCompiledRuleId(p,n,i));break;case 3:case 4:const f=c.scopeName,E=c.kind===4?c.ruleName:null,g=n.getExternalGrammar(f,i);if(g)if(E){let T=g.repository[E];T&&(o=it.getCompiledRuleId(T,n,g.repository))}else o=it.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else o=it.getCompiledRuleId(l,n,i);if(o!==-1){const c=n.getRule(o);let p=!1;if((c instanceof rc||c instanceof $a||c instanceof is)&&c.hasMissingPatterns&&c.patterns.length===0&&(p=!0),p)continue;r.push(o)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},ir=class Hp{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const i=t.length;let r=0,s=[],u=!1;for(let l=0;l<i;l++)if(t.charAt(l)==="\\"&&l+1<i){const c=t.charAt(l+1);c==="z"?(s.push(t.substring(r,l)),s.push("$(?!\\n)(?<!\\n)"),r=l+2):(c==="A"||c==="G")&&(u=!0),l++}this.hasAnchor=u,r===0?this.source=t:(s.push(t.substring(r,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=d3.test(this.source):this.hasBackReferences=!1}clone(){return new Hp(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(r=>t.substring(r.start,r.end));return ic.lastIndex=0,this.source.replace(ic,(r,s)=>Rp(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],i=[],r=[],s,u,l,o;for(s=0,u=this.source.length;s<u;s++)l=this.source.charAt(s),t[s]=l,n[s]=l,i[s]=l,r[s]=l,l==="\\"&&s+1<u&&(o=this.source.charAt(s+1),o==="A"?(t[s+1]="￿",n[s+1]="￿",i[s+1]="A",r[s+1]="A"):o==="G"?(t[s+1]="￿",n[s+1]="G",i[s+1]="￿",r[s+1]="G"):(t[s+1]=o,n[s+1]=o,i[s+1]=o,r[s+1]=o),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:r.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},rr=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(),this._cached=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(n=>n.source);this._cached=new sc(e,t,this._items.map(n=>n.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){let i=this._items.map(r=>r.resolveAnchors(t,n));return new sc(e,i,this._items.map(r=>r.ruleId))}},sc=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(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
73
73
  `)}findNextMatchSync(e,t,n){const i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Ea=class{constructor(e,t){this.languageId=e,this.tokenType=t}},_3=class Ka{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Ea(t,8),this._embeddedLanguagesMatcher=new x3(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ka._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Ea(0,0);_getBasicScopeAttributes=new Pp(t=>{const n=this._scopeToLanguage(t),i=this._toStandardTokenType(t);return new Ea(n,i)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ka.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 new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},x3=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,i])=>Rp(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},ac=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function jp(e,t,n,i,r,s,u,l){const o=t.content.length;let c=!1,p=-1;if(u){const g=b3(e,t,n,i,r,s);r=g.stack,i=g.linePos,n=g.isFirstLine,p=g.anchorPosition}const f=Date.now();for(;!c;){if(l!==0&&Date.now()-f>l)return new ac(r,!0);E()}return new ac(r,!1);function E(){const g=T3(e,t,n,i,r,p);if(!g){s.produce(r,o),c=!0;return}const T=g.captureIndices,v=g.matchedRuleId,N=T&&T.length>0?T[0].end>i:!1;if(v===m3){const A=r.getRule(e);s.produce(r,T[0].start),r=r.withContentNameScopesList(r.nameScopesList),Hi(e,t,n,r,s,A.endCaptures,T),s.produce(r,T[0].end);const R=r;if(r=r.parent,p=R.getAnchorPos(),!N&&R.getEnterPos()===i){r=R,s.produce(r,o),c=!0;return}}else{const A=e.getRule(v);s.produce(r,T[0].start);const R=r,w=A.getName(t.content,T),U=r.contentNameScopesList.pushAttributed(w,e);if(r=r.push(v,i,p,T[0].end===o,null,U,U),A instanceof $a){const x=A;Hi(e,t,n,r,s,x.beginCaptures,T),s.produce(r,T[0].end),p=T[0].end;const m=x.getContentName(t.content,T),S=U.pushAttributed(m,e);if(r=r.withContentNameScopesList(S),x.endHasBackReferences&&(r=r.withEndRule(x.getEndWithResolvedBackReferences(t.content,T))),!N&&R.hasSameRuleAs(r)){r=r.pop(),s.produce(r,o),c=!0;return}}else if(A instanceof is){const x=A;Hi(e,t,n,r,s,x.beginCaptures,T),s.produce(r,T[0].end),p=T[0].end;const m=x.getContentName(t.content,T),S=U.pushAttributed(m,e);if(r=r.withContentNameScopesList(S),x.whileHasBackReferences&&(r=r.withEndRule(x.getWhileWithResolvedBackReferences(t.content,T))),!N&&R.hasSameRuleAs(r)){r=r.pop(),s.produce(r,o),c=!0;return}}else if(Hi(e,t,n,r,s,A.captures,T),s.produce(r,T[0].end),r=r.pop(),!N){r=r.safePop(),s.produce(r,o),c=!0;return}}T[0].end>i&&(i=T[0].end,n=!1)}}function b3(e,t,n,i,r,s){let u=r.beginRuleCapturedEOL?0:-1;const l=[];for(let o=r;o;o=o.pop()){const c=o.getRule(e);c instanceof is&&l.push({rule:c,stack:o})}for(let o=l.pop();o;o=l.pop()){const{ruleScanner:c,findOptions:p}=C3(o.rule,e,o.stack.endRule,n,i===u),f=c.findNextMatchSync(t,i,p);if(f){if(f.ruleId!==Up){r=o.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(s.produce(o.stack,f.captureIndices[0].start),Hi(e,t,n,o.stack,s,o.rule.whileCaptures,f.captureIndices),s.produce(o.stack,f.captureIndices[0].end),u=f.captureIndices[0].end,f.captureIndices[0].end>i&&(i=f.captureIndices[0].end,n=!1))}else{r=o.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:u,isFirstLine:n}}function T3(e,t,n,i,r,s){const u=y3(e,t,n,i,r,s),l=e.getInjections();if(l.length===0)return u;const o=A3(l,e,t,n,i,r,s);if(!o)return u;if(!u)return o;const c=u.captureIndices[0].start,p=o.captureIndices[0].start;return p<c||o.priorityMatch&&p===c?o:u}function y3(e,t,n,i,r,s){const u=r.getRule(e),{ruleScanner:l,findOptions:o}=zp(u,e,r.endRule,n,i===s),c=l.findNextMatchSync(t,i,o);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function A3(e,t,n,i,r,s,u){let l=Number.MAX_VALUE,o=null,c,p=0;const f=s.contentNameScopesList.getScopeNames();for(let E=0,g=e.length;E<g;E++){const T=e[E];if(!T.matcher(f))continue;const v=t.getRule(T.ruleId),{ruleScanner:N,findOptions:A}=zp(v,t,null,i,r===u),R=N.findNextMatchSync(n,r,A);if(!R)continue;const w=R.captureIndices[0].start;if(!(w>=l)&&(l=w,o=R.captureIndices,c=R.ruleId,p=T.priority,l===r))break}return o?{priorityMatch:p===-1,captureIndices:o,matchedRuleId:c}:null}function zp(e,t,n,i,r){return{ruleScanner:e.compileAG(t,n,i,r),findOptions:0}}function C3(e,t,n,i,r){return{ruleScanner:e.compileWhileAG(t,n,i,r),findOptions:0}}function Hi(e,t,n,i,r,s,u){if(s.length===0)return;const l=t.content,o=Math.min(s.length,u.length),c=[],p=u[0].end;for(let f=0;f<o;f++){const E=s[f];if(E===null)continue;const g=u[f];if(g.length===0)continue;if(g.start>p)break;for(;c.length>0&&c[c.length-1].endPos<=g.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,g.start):r.produce(i,g.start),E.retokenizeCapturedWithRuleId){const v=E.getName(l,u),N=i.contentNameScopesList.pushAttributed(v,e),A=E.getContentName(l,u),R=N.pushAttributed(A,e),w=i.push(E.retokenizeCapturedWithRuleId,g.start,-1,!1,null,N,R),U=e.createOnigString(l.substring(0,g.end));jp(e,U,n&&g.start===0,g.start,w,r,!1,0),Bp(U);continue}const T=E.getName(l,u);if(T!==null){const N=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(T,e);c.push(new S3(N,g.end))}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var S3=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function k3(e,t,n,i,r,s,u,l){return new I3(e,t,n,i,r,s,u,l)}function uc(e,t,n,i,r){const s=ts(t,rs),u=Vp.getCompiledRuleId(n,i,r.repository);for(const l of s)e.push({debugSelector:t,matcher:l.matcher,ruleId:u,grammar:r,priority:l.priority})}function rs(e,t){if(t.length<e.length)return!1;let n=0;return e.every(i=>{for(let r=n;r<t.length;r++)if(v3(t[r],i))return n=r+1,!0;return!1})}function v3(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var I3=class{constructor(e,t,n,i,r,s,u,l){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new _3(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=u,this._grammar=oc(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const o of Object.keys(r)){const c=ts(o,rs);for(const p of c)this._tokenTypeMatchers.push({matcher:p.matcher,type:r[o]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},t=[],n=this._rootScopeName,i=e.lookup(n);if(i){const r=i.injections;if(r)for(let u in r)uc(t,u,r[u],this,i);const s=this._grammarRepository.injections(n);s&&s.forEach(u=>{const l=this.getExternalGrammar(u);if(l){const o=l.injectionSelector;o&&uc(t,o,l,this,l)}})}return t.sort((r,s)=>r.priority-s.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=oc(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){const i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){this._rootId===-1&&(this._rootId=Vp.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!t||t===Za.NULL){r=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),f=di.set(0,c.languageId,c.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),E=this.getRule(this._rootId).getName(null,null);let g;E?g=Xi.createRootAndLookUpScopeName(E,f,this):g=Xi.createRoot("unknown",f),t=new Za(null,this._rootId,-1,-1,!1,null,g,g)}else r=!1,t.reset();e=e+`
74
74
  `;const s=this.createOnigString(e),u=s.content.length,l=new w3(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),o=jp(this,s,r,0,t,l,!0,i);return Bp(s),{lineLength:u,lineTokens:l,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function oc(e,t){return e=YC(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 Xi=class Wt{constructor(t,n,i){this.parent=t,this.scopePath=n,this.tokenAttributes=i}static fromExtension(t,n){let i=t,r=t?.scopePath??null;for(const s of n)r=ga.push(r,s.scopeNames),i=new Wt(i,r,s.encodedTokenAttributes);return i}static createRoot(t,n){return new Wt(null,new ga(null,t),n)}static createRootAndLookUpScopeName(t,n,i){const r=i.getMetadataForScope(t),s=new ga(null,t),u=i.themeProvider.themeMatch(s),l=Wt.mergeAttributes(n,r,u);return new Wt(null,s,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Wt.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,i){let r=-1,s=0,u=0;return i!==null&&(r=i.fontStyle,s=i.foregroundId,u=i.backgroundId),di.set(t,n.languageId,n.tokenType,null,r,s,u)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Wt._pushAttributed(this,t,n);const i=t.split(/ /g);let r=this;for(const s of i)r=Wt._pushAttributed(r,s,n);return r}static _pushAttributed(t,n,i){const r=i.getMetadataForScope(n),s=t.scopePath.push(n),u=i.themeProvider.themeMatch(s),l=Wt.mergeAttributes(t.tokenAttributes,r,u);return new Wt(t,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===t?n.reverse():void 0}},Za=class Rn{constructor(t,n,i,r,s,u,l,o){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=u,this.nameScopesList=l,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new Rn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Rn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Xi.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){Rn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,r,s,u,l){return new Rn(this,t,n,i,r,s,u,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Rn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId: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){const i=Xi.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Rn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,Xi.fromExtension(i,n.contentNameScopesList))}},D3=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ts(n,rs).map(i=>i.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ts(n,rs).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},w3=class{constructor(e,t,n,i){this.balancedBracketSelectors=i,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 i=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const u of this._tokenTypeOverrides)u.matcher(s)&&(i=di.set(i,0,u.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(s))}if(r&&(i=di.set(i,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}const 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);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,r=this._binaryTokens.length;i<r;i++)n[i]=this._binaryTokens[i];return n}},N3=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const 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,i,r){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,k3(e,s,t,n,i,r,this,this._onigLib))}return this._grammars.get(e)}},L3=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new N3(es.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(es.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,i){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(t,n,i){return this._loadGrammar(t,n,i.embeddedLanguages,i.tokenTypes,new D3(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,i,r,s){const u=new u3(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(l=>this._loadSingleGrammar(l.scopeName)),u.processQueue();return this._grammarForScopeName(t,n,i,r,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(t,n=[],i=0,r=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,i,r)}_grammarForScopeName(t,n=0,i=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,i,r,s)}},eu=Za.NULL;function ss(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[r,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[r]=s:r===i&&Object.assign(n,s);return n}function Cn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function R3(e){return Array.isArray(e)?e:[e]}async function qp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Mu(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Gp(e){return e==="ansi"||Mu(e)}function Uu(e){return e==="none"}function Wp(e){return Uu(e)}function Yp(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const i of n)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function vs(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const u=t?n[s]+(n[s+1]||""):n[s];r.push([u,i]),i+=n[s].length,i+=n[s+1]?.length||0}return r}function P3(e){const t=vs(e,!0).map(([r])=>r);function n(r){if(r===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=r,u=0;for(const l of t){if(s<l.length)break;s-=l.length,u++}return{line:u,character:s}}function i(r,s){let u=0;for(let l=0;l<r;l++)u+=t[l].length;return u+=s,u}return{lines:t,indexToPos:n,posToIndex:i}}const Vu="light-dark()",O3=["color","background-color"];function F3(e,t){let n=0;const i=[];for(const r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function B3(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((i,r)=>i-r);return n.length?e.map(i=>i.flatMap(r=>{const s=n.filter(u=>r.offset<u&&u<r.offset+r.content.length).map(u=>u-r.offset).sort((u,l)=>u-l);return s.length?F3(r,s):r})):e}function M3(e,t,n,i,r="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(p=>as(e.variants[p])),l=new Set(u.flatMap(p=>Object.keys(p))),o={},c=(p,f)=>{const E=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[p]+(f==="color"?"":E)};return u.forEach((p,f)=>{for(const E of l){const g=p[E]||"inherit";if(f===0&&i&&O3.includes(E))if(i===Vu&&u.length>1){const T=t.findIndex(R=>R==="light"),v=t.findIndex(R=>R==="dark");if(T===-1||v===-1)throw new je('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const N=u[T][E]||"inherit",A=u[v][E]||"inherit";o[E]=`light-dark(${N}, ${A})`,r==="css-vars"&&(o[c(f,E)]=g)}else o[E]=g;else r==="css-vars"&&(o[c(f,E)]=g)}}),s.htmlStyle=o,s}function as(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&at.Italic&&(t["font-style"]="italic"),e.fontStyle&at.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&at.Underline&&n.push("underline"),e.fontStyle&at.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function tu(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Jp=new WeakMap;function Is(e,t){Jp.set(e,t)}function sr(e){return Jp.get(e)}class Ci{_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 Ci(Object.fromEntries(R3(n).map(i=>[i,eu])),t)}constructor(...t){if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,r]=t;this.lang=i,this._stacks={[r]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return U3(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function U3(e){const t=[],n=new Set;function i(r){if(n.has(r))return;n.add(r);const s=r?.nameScopesList?.scopeName;s&&t.push(s),r.parent&&i(r.parent)}return i(e),t}function V3(e,t){if(!(e instanceof Ci))throw new je("Invalid grammar state");return e.getInternalStack(t)}function H3(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(u){if(typeof u=="number"){if(u<0||u>n.source.length)throw new je(`Invalid decoration offset: ${u}. Code length: ${n.source.length}`);return{...r.indexToPos(u),offset:u}}else{const l=r.lines[u.line];if(l===void 0)throw new je(`Invalid decoration position ${JSON.stringify(u)}. Lines length: ${r.lines.length}`);let o=u.character;if(o<0&&(o=l.length+o),o<0||o>l.length)throw new je(`Invalid decoration position ${JSON.stringify(u)}. Line ${u.line} length: ${l.length}`);return{...u,character:o,offset:r.posToIndex(u.line,o)}}};const r=P3(n.source),s=(n.options.decorations||[]).map(u=>({...u,start:i(u.start),end:i(u.end)}));j3(s),e.set(n.meta,{decorations:s,converter:r,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(u=>[u.start.offset,u.end.offset]);return B3(n,r)},code(n){if(!this.options.decorations?.length)return;const i=t(this),r=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(r.length!==i.converter.lines.length)throw new je(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function s(p,f,E,g){const T=r[p];let v="",N=-1,A=-1;if(f===0&&(N=0),E===0&&(A=0),E===Number.POSITIVE_INFINITY&&(A=T.children.length),N===-1||A===-1)for(let w=0;w<T.children.length;w++)v+=Qp(T.children[w]),N===-1&&v.length===f&&(N=w+1),A===-1&&v.length===E&&(A=w+1);if(N===-1)throw new je(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(A===-1)throw new je(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const R=T.children.slice(N,A);if(!g.alwaysWrap&&R.length===T.children.length)l(T,g,"line");else if(!g.alwaysWrap&&R.length===1&&R[0].type==="element")l(R[0],g,"token");else{const w={type:"element",tagName:"span",properties:{},children:R};l(w,g,"wrapper"),T.children.splice(N,R.length,w)}}function u(p,f){r[p]=l(r[p],f,"line")}function l(p,f,E){const g=f.properties||{},T=f.transform||(v=>v);return p.tagName=f.tagName||"span",p.properties={...p.properties,...g,class:p.properties.class},f.properties?.class&&Yp(p,f.properties.class),p=T(p,E)||p,p}const o=[],c=i.decorations.sort((p,f)=>f.start.offset-p.start.offset||p.end.offset-f.end.offset);for(const p of c){const{start:f,end:E}=p;if(f.line===E.line)s(f.line,f.character,E.character,p);else if(f.line<E.line){s(f.line,f.character,Number.POSITIVE_INFINITY,p);for(let g=f.line+1;g<E.line;g++)o.unshift(()=>u(g,p));s(E.line,0,E.character,p)}}o.forEach(p=>p())}}}function j3(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new je(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const r=e[i],s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,u=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,l=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,o=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(s||u||l||o){if(s&&u||l&&o||l&&n.start.offset===n.end.offset||u&&r.start.offset===r.end.offset)continue;throw new je(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function Qp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Qp).join(""):""}const z3=[H3()];function us(e){const t=q3(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...z3]}function q3(e){const t=[],n=[],i=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}var Bn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],_a={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function G3(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function lc(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function W3(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)_a[i]&&t.push({type:"setDecoration",value:_a[i]});else if(i<=29){const r=_a[i-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Bn[i-30]}});else if(i===38){const r=lc(e);r&&t.push({type:"setForegroundColor",value:r})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Bn[i-40]}});else if(i===48){const r=lc(e);r&&t.push({type:"setBackgroundColor",value:r})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Bn[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Bn[i-100+8]}})}return t}function Y3(){let e=null,t=null,n=new Set;return{parse(i){const r=[];let s=0;do{const u=G3(i,s),l=u.sequence?i.substring(s,u.startPosition):i.substring(s);if(l.length>0&&r.push({value:l,foreground:e,background:t,decorations:new Set(n)}),u.sequence){const o=W3(u.sequence);for(const c of o)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of o)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}s=u.position}while(s<i.length);return r}}}var J3={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 Q3(e=J3){function t(l){return e[l]}function n(l){return`#${l.map(o=>Math.max(0,Math.min(o,255)).toString(16).padStart(2,"0")).join("")}`}let i;function r(){if(i)return i;i=[];for(let c=0;c<Bn.length;c++)i.push(t(Bn[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let p=0;p<6;p++)for(let f=0;f<6;f++)i.push(n([l[c],l[p],l[f]]));let o=8;for(let c=0;c<24;c++,o+=10)i.push(n([o,o,o]));return i}function s(l){return r()[l]}function u(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return s(l.index)}}return{value:u}}const X3={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 $3(e,t,n){const i=ss(e,n),r=vs(t),s=Object.fromEntries(Bn.map(o=>{const c=`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`,p=e.colors?.[c];return[o,p||X3[o]]})),u=Q3(s),l=Y3();return r.map(o=>l.parse(o[0]).map(c=>{let p,f;c.decorations.has("reverse")?(p=c.background?u.value(c.background):e.bg,f=c.foreground?u.value(c.foreground):e.fg):(p=c.foreground?u.value(c.foreground):e.fg,f=c.background?u.value(c.background):void 0),p=Cn(p,i),f=Cn(f,i),c.decorations.has("dim")&&(p=K3(p));let E=at.None;return c.decorations.has("bold")&&(E|=at.Bold),c.decorations.has("italic")&&(E|=at.Italic),c.decorations.has("underline")&&(E|=at.Underline),c.decorations.has("strikethrough")&&(E|=at.Strikethrough),{content:c.value,offset:o[1],color:p,bgColor:f,fontStyle:E}}))}function K3(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const i=t[1];if(i.length===8){const r=Math.round(Number.parseInt(i.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${i.slice(0,6)}${r}`}else{if(i.length===6)return`#${i}80`;if(i.length===4){const r=i[0],s=i[1],u=i[2],l=i[3],o=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${r}${r}${s}${s}${u}${u}${o}`}else if(i.length===3){const r=i[0],s=i[1],u=i[2];return`#${r}${r}${s}${s}${u}${u}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Hu(e,t,n={}){const{theme:i=e.getLoadedThemes()[0]}=n,r=e.resolveLangAlias(n.lang||"text");if(Mu(r)||Uu(i))return vs(t).map(o=>[{content:o[0],offset:o[1]}]);const{theme:s,colorMap:u}=e.setTheme(i);if(r==="ansi")return $3(s,t,n);const l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new je(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(s.name))throw new je(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return eS(t,l,s,u,n)}function Z3(...e){if(e.length===2)return sr(e[1]);const[t,n,i={}]=e,{lang:r="text",theme:s=t.getLoadedThemes()[0]}=i;if(Mu(r)||Uu(s))throw new je("Plain language does not have grammar state");if(r==="ansi")throw new je("ANSI language does not have grammar state");const{theme:u,colorMap:l}=t.setTheme(s),o=t.getLanguage(r);return new Ci(ju(n,o,u,l,i).stateStack,o.name,u.name)}function eS(e,t,n,i,r){const s=ju(e,t,n,i,r),u=new Ci(s.stateStack,t.name,n.name);return Is(s.tokens,u),s.tokens}function ju(e,t,n,i,r){const s=ss(n,r),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:l=500}=r,o=vs(e);let c=r.grammarState?V3(r.grammarState,n.name)??eu:r.grammarContextCode!=null?ju(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:eu,p=[];const f=[];for(let E=0,g=o.length;E<g;E++){const[T,v]=o[E];if(T===""){p=[],f.push([]);continue}if(u>0&&T.length>=u){p=[],f.push([{content:T,offset:v,color:"",fontStyle:0}]);continue}let N,A,R;r.includeExplanation&&(N=t.tokenizeLine(T,c,l),A=N.tokens,R=0);const w=t.tokenizeLine2(T,c,l),U=w.tokens.length/2;for(let x=0;x<U;x++){const m=w.tokens[2*x],S=x+1<U?w.tokens[2*x+2]:T.length;if(m===S)continue;const M=w.tokens[2*x+1],j=Cn(i[di.getForeground(M)],s),B=di.getFontStyle(M),G={content:T.substring(m,S),offset:v+m,color:j,fontStyle:B};if(r.includeExplanation){const Y=[];if(r.includeExplanation!=="scopeName")for(const te of n.settings){let ee;switch(typeof te.scope){case"string":ee=te.scope.split(/,/).map(ce=>ce.trim());break;case"object":ee=te.scope;break;default:continue}Y.push({settings:te,selectors:ee.map(ce=>ce.split(/ /))})}G.explanation=[];let re=0;for(;m+re<S;){const te=A[R],ee=T.substring(te.startIndex,te.endIndex);re+=ee.length,G.explanation.push({content:ee,scopes:r.includeExplanation==="scopeName"?tS(te.scopes):nS(Y,te.scopes)}),R+=1}}p.push(G)}f.push(p),p=[],c=w.ruleStack}return{tokens:f,stateStack:c}}function tS(e){return e.map(t=>({scopeName:t}))}function nS(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n[i]={scopeName:s,themeMatches:rS(e,s,t.slice(0,i))}}return n}function cc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function iS(e,t,n){if(!cc(e[e.length-1],t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)cc(e[i],n[r])&&(i-=1),r-=1;return i===-1}function rS(e,t,n){const i=[];for(const{selectors:r,settings:s}of e)for(const u of r)if(iS(u,t,n)){i.push(s);break}return i}function Xp(e,t,n){const i=Object.entries(n.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),r=i.map(o=>{const c=Hu(e,t,{...n,theme:o.theme}),p=sr(c),f=typeof o.theme=="string"?o.theme:o.theme.name;return{tokens:c,state:p,theme:f}}),s=sS(...r.map(o=>o.tokens)),u=s[0].map((o,c)=>o.map((p,f)=>{const E={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(E.explanation=p.explanation),s.forEach((g,T)=>{const{content:v,explanation:N,offset:A,...R}=g[c][f];E.variants[i[T].color]=R}),E})),l=r[0].state?new Ci(Object.fromEntries(r.map(o=>[o.theme,o.state?.getInternalStack(o.theme)])),r[0].state.lang):void 0;return l&&Is(u,l),u}function sS(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const r=e.map(o=>o[i]),s=t.map(()=>[]);t.forEach((o,c)=>o.push(s[c]));const u=r.map(()=>0),l=r.map(o=>o[0]);for(;l.every(o=>o);){const o=Math.min(...l.map(c=>c.content.length));for(let c=0;c<n;c++){const p=l[c];p.content.length===o?(s[c].push(p),u[c]+=1,l[c]=r[c][u[c]]):(s[c].push({...p,content:p.content.slice(0,o)}),l[c]={...p,content:p.content.slice(o),offset:p.offset+o})}}}return t}function os(e,t,n){let i,r,s,u,l,o;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:p="--shiki-",colorsRendering:f="css-vars"}=n,E=Object.entries(n.themes).filter(A=>A[1]).map(A=>({color:A[0],theme:A[1]})).sort((A,R)=>A.color===c?-1:R.color===c?1:0);if(E.length===0)throw new je("`themes` option must not be empty");const g=Xp(e,t,n);if(o=sr(g),c&&Vu!==c&&!E.find(A=>A.color===c))throw new je(`\`themes\` option must contain the defaultColor key \`${c}\``);const T=E.map(A=>e.getTheme(A.theme)),v=E.map(A=>A.color);s=g.map(A=>A.map(R=>M3(R,v,p,c,f))),o&&Is(s,o);const N=E.map(A=>ss(A.theme,n));r=hc(E,T,N,p,c,"fg",f),i=hc(E,T,N,p,c,"bg",f),u=`shiki-themes ${T.map(A=>A.name).join(" ")}`,l=c?void 0:[r,i].join(";")}else if("theme"in n){const c=ss(n.theme,n);s=Hu(e,t,n);const p=e.getTheme(n.theme);i=Cn(p.bg,c),r=Cn(p.fg,c),u=p.name,o=sr(s)}else throw new je("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:r,bg:i,themeName:u,rootStyle:l,grammarState:o}}function hc(e,t,n,i,r,s,u){return e.map((l,o)=>{const c=Cn(t[o][s],n[o])||"inherit",p=`${i+l.color}${s==="bg"?"-bg":""}:${c}`;if(o===0&&r){if(r===Vu&&e.length>1){const f=e.findIndex(v=>v.color==="light"),E=e.findIndex(v=>v.color==="dark");if(f===-1||E===-1)throw new je('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const g=Cn(t[f][s],n[f])||"inherit",T=Cn(t[E][s],n[E])||"inherit";return`light-dark(${g}, ${T});${p}`}return c}return u==="css-vars"?p:null}).filter(l=>!!l).join(";")}function ls(e,t,n,i={meta:{},options:n,codeToHast:(r,s)=>ls(e,r,s),codeToTokens:(r,s)=>os(e,r,s)}){let r=t;for(const T of us(n))r=T.preprocess?.call(i,r,n)||r;let{tokens:s,fg:u,bg:l,themeName:o,rootStyle:c,grammarState:p}=os(e,r,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:E=!1}=n;f===!0?s=uS(s):f==="never"&&(s=oS(s)),E&&(s=lS(s));const g={...i,get source(){return r}};for(const T of us(n))s=T.tokens?.call(g,s)||s;return aS(s,{...n,fg:u,bg:l,themeName:o,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},g,p)}function aS(e,t,n,i=sr(e)){const r=us(t),s=[],u={type:"root",children:[]},{structure:l="classic",tabindex:o="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),o!==!1&&o!=null&&(c.tabindex=o.toString());for(const[v,N]of Object.entries(t.meta||{}))v.startsWith("_")||(c[v]=N);let p={type:"element",tagName:"pre",properties:c,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:s};const E=[],g={...n,structure:l,addClassToHast:Yp,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return p},get code(){return f},get lines(){return E}};if(e.forEach((v,N)=>{N&&(l==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&s.push({type:"text",value:`
75
- `}));let A={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const w of v){let U={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};const x=tu(w.htmlStyle||as(w));x&&(U.properties.style=x);for(const m of r)U=m?.span?.call(g,U,N+1,R,A,w)||U;l==="inline"?u.children.push(U):l==="classic"&&A.children.push(U),R+=w.content.length}if(l==="classic"){for(const w of r)A=w?.line?.call(g,A,N+1)||A;E.push(A),s.push(A)}else l==="inline"&&E.push(A)}),l==="classic"){for(const v of r)f=v?.code?.call(g,f)||f;p.children.push(f);for(const v of r)p=v?.pre?.call(g,p)||p;u.children.push(p)}else if(l==="inline"){const v=[];let N={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const w of u.children)w.type==="element"&&w.tagName==="br"?(v.push(N),N={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(w.type==="element"||w.type==="text")&&N.children.push(w);v.push(N);let R={type:"element",tagName:"code",properties:{},children:v};for(const w of r)R=w?.code?.call(g,R)||R;u.children=[];for(let w=0;w<R.children.length;w++){w>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const U=R.children[w];U.type==="element"&&u.children.push(...U.children)}}let T=u;for(const v of r)T=v?.root?.call(g,T)||T;return i&&Is(T,i),T}function uS(e){return e.map(t=>{const n=[];let i="",r;return t.forEach((s,u)=>{const o=!(s.fontStyle&&(s.fontStyle&at.Underline||s.fontStyle&at.Strikethrough));o&&s.content.match(/^\s+$/)&&t[u+1]?(r===void 0&&(r=s.offset),i+=s.content):i?(o?n.push({...s,offset:r,content:i+s.content}):n.push({content:i,offset:r},s),r=void 0,i=""):n.push(s)}),n})}function oS(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,r,s,u]=i;if(!r&&!u)return n;const l=[{...n,offset:n.offset+r.length,content:s}];return r&&l.unshift({content:r,offset:n.offset}),u&&l.push({content:u,offset:n.offset+r.length+s.length}),l}))}function lS(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const r=n[n.length-1],s=tu(r.htmlStyle||as(r)),u=tu(i.htmlStyle||as(i)),l=r.fontStyle&&(r.fontStyle&at.Underline||r.fontStyle&at.Strikethrough),o=i.fontStyle&&(i.fontStyle&at.Underline||i.fontStyle&at.Strikethrough);!l&&!o&&s===u?r.content+=i.content:n.push({...i})}return n})}const cS=kp;function hS(e,t,n){const i={meta:{},options:n,codeToHast:(s,u)=>ls(e,s,u),codeToTokens:(s,u)=>os(e,s,u)};let r=cS(ls(e,t,n,i));for(const s of us(n))r=s.postprocess?.call(i,r,n)||r;return r}const fc={light:"#333333",dark:"#bbbbbb"},pc={light:"#fffffe",dark:"#1e1e1e"},dc="__shiki_resolved";function zu(e){if(e?.[dc])return e;const 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:i}=t;if(!n||!i){const l=t.settings?t.settings.find(o=>!o.name&&!o.scope):void 0;l?.settings?.foreground&&(i=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?fc.light:fc.dark),n||(n=t.type==="light"?pc.light:pc.dark),t.fg=i,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 r=0;const s=new Map;function u(l){if(s.has(l))return s.get(l);r+=1;const o=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${o}`]?u(l):(s.set(l,o),o)}t.settings=t.settings.map(l=>{const o=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!o&&!c)return l;const p={...l,settings:{...l.settings}};if(o){const f=u(l.settings.foreground);t.colorReplacements[f]=l.settings.foreground,p.settings.foreground=f}if(c){const f=u(l.settings.background);t.colorReplacements[f]=l.settings.background,p.settings.background=f}return p});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const o=u(t.colors[l]);t.colorReplacements[o]=t.colors[l],t.colors[l]=o}return Object.defineProperty(t,dc,{enumerable:!1,writable:!1,value:!0}),t}async function $p(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Gp(t)).map(async t=>await qp(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Kp(e){return(await Promise.all(e.map(async n=>Wp(n)?null:zu(await qp(n))))).filter(n=>!!n)}let fS=3;function pS(e,t=3){t>fS||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ui=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Zp(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ui(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class dS extends L3{constructor(t,n,i,r={}){super(t),this._resolver=t,this._themes=n,this._langs=i,this._alias=r,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=zu(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=es.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Zp(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const n=Array.from(this._langGraph.entries()),i=n.filter(([r,s])=>!s);if(i.length){const r=n.filter(([s,u])=>u?(u.embeddedLanguages||u.embeddedLangs)?.some(o=>i.map(([c])=>c).includes(o)):!1).filter(s=>!i.includes(s));throw new ui(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[r,s]of n)this._resolver.addLanguage(s);for(const[r,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}}class mS{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:i=>t.createScanner(i),createOnigString:i=>t.createString(i)},n.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let i=[];for(let r=1;r<=n.length;r++){const s=n.slice(0,r).join(".");i=[...i,...this._injections.get(s)||[]]}return i}}let Ri=0;function gS(e){Ri+=1,e.warnings!==!1&&Ri>=10&&Ri%10===0&&console.warn(`[Shiki] ${Ri} 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 ui("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(zu),r=new mS(e.engine,n),s=new dS(r,i,n,e.langAlias);let u;function l(w){return Zp(w,e.langAlias)}function o(w){A();const U=s.getGrammar(typeof w=="string"?w:w.name);if(!U)throw new ui(`Language \`${w}\` not found, you may need to load it first`);return U}function c(w){if(w==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};A();const U=s.getTheme(w);if(!U)throw new ui(`Theme \`${w}\` not found, you may need to load it first`);return U}function p(w){A();const U=c(w);u!==w&&(s.setTheme(U),u=w);const x=s.getColorMap();return{theme:U,colorMap:x}}function f(){return A(),s.getLoadedThemes()}function E(){return A(),s.getLoadedLanguages()}function g(...w){A(),s.loadLanguages(w.flat(1))}async function T(...w){return g(await $p(w))}function v(...w){A();for(const U of w.flat(1))s.loadTheme(U)}async function N(...w){return A(),v(await Kp(w))}function A(){if(t)throw new ui("Shiki instance has been disposed")}function R(){t||(t=!0,s.dispose(),Ri-=1)}return{setTheme:p,getTheme:c,getLanguage:o,getLoadedThemes:f,getLoadedLanguages:E,resolveLangAlias:l,loadLanguage:T,loadLanguageSync:g,loadTheme:N,loadThemeSync:v,dispose:R,[Symbol.dispose]:R}}async function ES(e){e.engine||pS("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([Kp(e.themes||[]),$p(e.langs||[]),e.engine]);return gS({...e,themes:t,langs:n,engine:i})}async function _S(e){const t=await ES(e);return{getLastGrammarState:(...n)=>Z3(t,...n),codeToTokensBase:(n,i)=>Hu(t,n,i),codeToTokensWithThemes:(n,i)=>Xp(t,n,i),codeToTokens:(n,i)=>os(t,n,i),codeToHast:(n,i)=>ls(t,n,i),codeToHtml:(n,i)=>hS(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function xS(e){const t=e.langs,n=e.themes,i=e.engine;async function r(s){function u(f){if(typeof f=="string"){if(f=s.langAlias?.[f]||f,Gp(f))return[];const E=t[f];if(!E)throw new je(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return E}return f}function l(f){if(Wp(f))return"none";if(typeof f=="string"){const E=n[f];if(!E)throw new je(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return E}return f}const o=(s.themes??[]).map(f=>l(f)),c=(s.langs??[]).map(f=>u(f)),p=await _S({engine:s.engine??i(),...s,themes:o,langs:c});return{...p,loadLanguage(...f){return p.loadLanguage(...f.map(u))},loadTheme(...f){return p.loadTheme(...f.map(l))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return r}const ed=[{id:"abap",name:"ABAP",import:(()=>k(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>k(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>k(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>k(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>k(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>k(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>k(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>k(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>k(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>k(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>k(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>k(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>k(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>k(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>k(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>k(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>k(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>k(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>k(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>k(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>k(()=>import("./bird2-DPOp833l.js"),[]))},{id:"blade",name:"Blade",import:(()=>k(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>k(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>k(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>k(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>k(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>k(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>k(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>k(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>k(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>k(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>k(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>k(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>k(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>k(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>k(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>k(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>k(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>k(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>k(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>k(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>k(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>k(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>k(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>k(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>k(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>k(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>k(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>k(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>k(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>k(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>k(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>k(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>k(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>k(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>k(()=>import("./erb-B12qg9BL.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>k(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>k(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>k(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>k(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>k(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>k(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>k(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>k(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>k(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>k(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>k(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>k(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>k(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>k(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>k(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>k(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>k(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>k(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>k(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>k(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>k(()=>import("./go-CxLEBnE3.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>k(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>k(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>k(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>k(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>k(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>k(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>k(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>k(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>k(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>k(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>k(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>k(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>k(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>k(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>k(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>k(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>k(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>k(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>k(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>k(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>k(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>k(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>k(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>k(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>k(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>k(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>k(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>k(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>k(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>k(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"just",name:"Just",import:(()=>k(()=>import("./just-Cw27pwNe.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38])))},{id:"kdl",name:"KDL",import:(()=>k(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>k(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>k(()=>import("./kusto-DZf3V79B.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>k(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>k(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>k(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>k(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([67,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>k(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>k(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>k(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>k(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>k(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>k(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>k(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>k(()=>import("./marko-CnJfTvn9.js"),__vite__mapDeps([68,3,69,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>k(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>k(()=>import("./mdc-BMNejdWA.js"),__vite__mapDeps([70,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>k(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>k(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>k(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>k(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>k(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>k(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>k(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>k(()=>import("./nextflow-Zz6hmt5N.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>k(()=>import("./nextflow-groovy-BeH2EWoN.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>k(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>k(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>k(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>k(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>k(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>k(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>k(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>k(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>k(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>k(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>k(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>k(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([75,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>k(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>k(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>k(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>k(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>k(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>k(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>k(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>k(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>k(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>k(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>k(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([76,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>k(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>k(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>k(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>k(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2])))},{id:"qmldir",name:"QML Directory",import:(()=>k(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>k(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>k(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>k(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>k(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>k(()=>import("./razor-Uh8Bk_45.js"),__vite__mapDeps([78,1,2,3,79])))},{id:"reg",name:"Windows Registry Script",import:(()=>k(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>k(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>k(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>k(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>k(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>k(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>k(()=>import("./rst-BrH8l1NY.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>k(()=>import("./ruby-Dw2BHqvy.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>k(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>k(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16])))},{id:"sass",name:"Sass",import:(()=>k(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>k(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>k(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>k(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>k(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>k(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>k(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>k(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>k(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>k(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>k(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([86,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>k(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>k(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>k(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>k(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>k(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>k(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>k(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2])))},{id:"svelte",name:"Svelte",import:(()=>k(()=>import("./svelte-C_ipcX3V.js"),__vite__mapDeps([91,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>k(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>k(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>k(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>k(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>k(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>k(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>k(()=>import("./templ-P3uqSqPl.js"),__vite__mapDeps([92,93,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>k(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>k(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62])))},{id:"toml",name:"TOML",import:(()=>k(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>k(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>k(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>k(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>k(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>k(()=>import("./twig-DNn4PbVi.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>k(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>k(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>k(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>k(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>k(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>k(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>k(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>k(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>k(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>k(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([96,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>k(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>k(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([98,3,5,69,99,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>k(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>k(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>k(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>k(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>k(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>k(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>k(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>k(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>k(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>k(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>k(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>k(()=>import("./zig-VOosw3JB.js"),[]))}],bS=Object.fromEntries(ed.map(e=>[e.id,e.import])),TS=Object.fromEntries(ed.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),yS={...bS,...TS},AS=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>k(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>k(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>k(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>k(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>k(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>k(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>k(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>k(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>k(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>k(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>k(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>k(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>k(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>k(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>k(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>k(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>k(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>k(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>k(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>k(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>k(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>k(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>k(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>k(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>k(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>k(()=>import("./horizon-bright-Cn-bp-IR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>k(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>k(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>k(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>k(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>k(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>k(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>k(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>k(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>k(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>k(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>k(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>k(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>k(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>k(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>k(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>k(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>k(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>k(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>k(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>k(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>k(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>k(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>k(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>k(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>k(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>k(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>k(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>k(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>k(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>k(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>k(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>k(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>k(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>k(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>k(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>k(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],CS=Object.fromEntries(AS.map(e=>[e.id,e.import]));class qu extends Error{constructor(t){super(t),this.name="ShikiError"}}function SS(){return 2147483648}function kS(){return typeof performance<"u"?performance.now():Date.now()}const vS=(e,t)=>e+(t-e%t)%t;async function IS(e){let t,n;const i={};function r(g){n=g,i.HEAPU8=new Uint8Array(g),i.HEAPU32=new Uint32Array(g)}function s(g,T,v){i.HEAPU8.copyWithin(g,T,T+v)}function u(g){try{return t.grow(g-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(g){const T=i.HEAPU8.length;g=g>>>0;const v=SS();if(g>v)return!1;for(let N=1;N<=4;N*=2){let A=T*(1+.2/N);A=Math.min(A,g+100663296);const R=Math.min(v,vS(Math.max(g,A),65536));if(u(R))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(g,T,v=1024){const N=T+v;let A=T;for(;g[A]&&!(A>=N);)++A;if(A-T>16&&g.buffer&&o)return o.decode(g.subarray(T,A));let R="";for(;T<A;){let w=g[T++];if(!(w&128)){R+=String.fromCharCode(w);continue}const U=g[T++]&63;if((w&224)===192){R+=String.fromCharCode((w&31)<<6|U);continue}const x=g[T++]&63;if((w&240)===224?w=(w&15)<<12|U<<6|x:w=(w&7)<<18|U<<12|x<<6|g[T++]&63,w<65536)R+=String.fromCharCode(w);else{const m=w-65536;R+=String.fromCharCode(55296|m>>10,56320|m&1023)}}return R}function p(g,T){return g?c(i.HEAPU8,g,T):""}const f={emscripten_get_now:kS,emscripten_memcpy_big:s,emscripten_resize_heap:l,fd_write:()=>0};async function E(){const T=await e({env:f,wasi_snapshot_preview1:f});t=T.memory,r(t.buffer),Object.assign(i,T),i.UTF8ToString=p}return await E(),i}var DS=Object.defineProperty,wS=(e,t,n)=>t in e?DS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=(e,t,n)=>wS(e,typeof t!="symbol"?t+"":t,n);let Qe=null;function NS(e){throw new qu(e.UTF8ToString(e.getLastOnigError()))}class Ds{constructor(t){ze(this,"utf16Length"),ze(this,"utf8Length"),ze(this,"utf16Value"),ze(this,"utf8Value"),ze(this,"utf16OffsetToUtf8"),ze(this,"utf8OffsetToUtf16");const n=t.length,i=Ds._utf8ByteLength(t),r=i!==n,s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const u=r?new Uint32Array(i+1):null;r&&(u[i]=n);const l=new Uint8Array(i);let o=0;for(let c=0;c<n;c++){const p=t.charCodeAt(c);let f=p,E=!1;if(p>=55296&&p<=56319&&c+1<n){const g=t.charCodeAt(c+1);g>=56320&&g<=57343&&(f=(p-55296<<10)+65536|g-56320,E=!0)}r&&(s[c]=o,E&&(s[c+1]=o),f<=127?u[o+0]=c:f<=2047?(u[o+0]=c,u[o+1]=c):f<=65535?(u[o+0]=c,u[o+1]=c,u[o+2]=c):(u[o+0]=c,u[o+1]=c,u[o+2]=c,u[o+3]=c)),f<=127?l[o++]=f:f<=2047?(l[o++]=192|(f&1984)>>>6,l[o++]=128|(f&63)>>>0):f<=65535?(l[o++]=224|(f&61440)>>>12,l[o++]=128|(f&4032)>>>6,l[o++]=128|(f&63)>>>0):(l[o++]=240|(f&1835008)>>>18,l[o++]=128|(f&258048)>>>12,l[o++]=128|(f&4032)>>>6,l[o++]=128|(f&63)>>>0),E&&c++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const s=t.charCodeAt(i);let u=s,l=!1;if(s>=55296&&s<=56319&&i+1<r){const o=t.charCodeAt(i+1);o>=56320&&o<=57343&&(u=(s-55296<<10)+65536|o-56320,l=!0)}u<=127?n+=1:u<=2047?n+=2:u<=65535?n+=3:n+=4,l&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const ws=class Yt{constructor(t){if(ze(this,"id",++Yt.LAST_ID),ze(this,"_onigBinding"),ze(this,"content"),ze(this,"utf16Length"),ze(this,"utf8Length"),ze(this,"utf16OffsetToUtf8"),ze(this,"utf8OffsetToUtf16"),ze(this,"ptr"),!Qe)throw new qu("Must invoke loadWasm first.");this._onigBinding=Qe,this.content=t;const n=new Ds(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Yt._sharedPtrInUse?(Yt._sharedPtr||(Yt._sharedPtr=Qe.omalloc(1e4)),Yt._sharedPtrInUse=!0,Qe.HEAPU8.set(n.utf8Value,Yt._sharedPtr),this.ptr=Yt._sharedPtr):this.ptr=n.createString(Qe)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Yt._sharedPtr?Yt._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ze(ws,"LAST_ID",0);ze(ws,"_sharedPtr",0);ze(ws,"_sharedPtrInUse",!1);let td=ws;class LS{constructor(t){if(ze(this,"_onigBinding"),ze(this,"_ptr"),!Qe)throw new qu("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,o=t.length;l<o;l++){const c=new Ds(t[l]);n[l]=c.createString(Qe),i[l]=c.utf8Length}const r=Qe.omalloc(4*t.length);Qe.HEAPU32.set(n,r/4);const s=Qe.omalloc(4*t.length);Qe.HEAPU32.set(i,s/4);const u=Qe.createOnigScanner(r,s,t.length);for(let l=0,o=t.length;l<o;l++)Qe.ofree(n[l]);Qe.ofree(s),Qe.ofree(r),u===0&&NS(Qe),this._onigBinding=Qe,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new td(t);const s=this._findNextMatchSync(t,n,!1,r);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const s=this._onigBinding,u=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(u===0)return null;const l=s.HEAPU32;let o=u/4;const c=l[o++],p=l[o++],f=[];for(let E=0;E<p;E++){const g=t.convertUtf8OffsetToUtf16(l[o++]),T=t.convertUtf8OffsetToUtf16(l[o++]);f[E]={start:g,end:T,length:T-g}}return{index:c,captureIndices:f}}}function RS(e){return typeof e.instantiator=="function"}function PS(e){return typeof e.default=="function"}function OS(e){return typeof e.data<"u"}function FS(e){return typeof Response<"u"&&e instanceof Response}function BS(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}let wr;function MS(e){if(wr)return wr;async function t(){Qe=await IS(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),RS(i)?i=await i.instantiator(n):PS(i)?i=await i.default(n):(OS(i)&&(i=i.data),FS(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await US(i)(n):i=await VS(i)(n):BS(i)?i=await xa(i)(n):i instanceof WebAssembly.Module?i=await xa(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await xa(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return wr=t(),wr}function xa(e){return t=>WebAssembly.instantiate(e,t)}function US(e){return t=>WebAssembly.instantiateStreaming(e,t)}function VS(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function HS(e){return e&&await MS(e),{createScanner(t){return new LS(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new td(t)}}}const jS=xS({langs:yS,themes:CS,engine:()=>HS(k(()=>import("./wasm-CG6Dc4jp.js"),[]))}),zS={ts:"typescript",js:"javascript",sh:"bash",shell:"bash",console:"bash",zsh:"bash",cmd:"bash",md:"markdown",txt:"plaintext",text:"plaintext",yml:"yaml",json5:"jsonc",eslintrc:"jsonc"};let ba=null,Ta=null;const mc=new Map,gc=new Set;async function qS(e){ba||(ba=jS({themes:["github-light","aurora-x"],langs:["typescript","javascript","tsx","jsx","bash","json","html","css","markdown","plaintext","toml","yaml","sql","diff","vue","svelte","scss","jsonc","vue-html","angular-html","angular-ts"]}));const t=await ba,n=zS[e]||e,i=n==="mermaid"?"plaintext":n;if(gc.has(i))return{highlighter:t,effectiveLang:"plaintext"};if(!t.getLoadedLanguages().includes(i))try{await t.loadLanguage(i)}catch{return console.warn(`Shiki: Language "${i}" not found, using plaintext`),gc.add(i),{highlighter:t,effectiveLang:"plaintext"}}return{highlighter:t,effectiveLang:i}}async function GS(){if(!Ta){const{default:e}=await k(async()=>{const{default:t}=await import("./mermaid.core-BIoiBcAA.js").then(n=>n.bF);return{default:t}},__vite__mapDeps([101,102]));e.initialize({startOnLoad:!1,securityLevel:"loose"}),Ta=e}return Ta}function WS(e){const t=e.match(/<pre\b([^>]*)>/i);if(!t)return{class:null,style:null};const n=t[1],i=n.match(/\bclass\s*=\s*["']([^"']*)["']/i),r=n.match(/\bstyle\s*=\s*["']([^"']*)["']/i);return{class:i?i[1]:null,style:r?r[1]:null}}function nd({isEmbedded:e,showTypeCopyButton:t=!0,...n}){const i=n?.dataCodeTitle||n?.["data-code-title"],r=i&&i!=="undefined"&&i.trim().length>0?i.trim():void 0,u=n.children?.props?.className?.replace("language-",""),l=n.children,[o,c]=De.useState(!1),p=De.useRef(null),f=l?.props.children,[E,g]=De.useState(K.jsx("pre",{ref:p,className:"shiki h-full github-light dark:aurora-x",children:K.jsx("code",{children:u==="mermaid"?K.jsx("svg",{}):f})}));return jd[typeof document<"u"?"useLayoutEffect":"useEffect"](()=>{(async()=>{const T=["github-light","aurora-x"],v=u||"plaintext",{highlighter:N,effectiveLang:A}=await qS(v),R=(f||"").trimEnd(),w=await Promise.all(T.map(async U=>{const x=N.codeToHtml(R,{lang:A,theme:U,transformers:[WC()]});if(u==="mermaid"){const m=WS(x);let S=mc.get(R);if(!S){const M=await GS(),{svg:j}=await M.render("foo",R);mc.set(R,j),S=j}return`<div class='${m.class} py-4 bg-neutral-50'>${S}</div>`}return x}));g(K.jsx("div",{className:An(e?"h-full [&>pre]:h-full [&>pre]:rounded-none":""),dangerouslySetInnerHTML:{__html:w.join("")},ref:p}))})()},[f,u]),K.jsxs("div",{className:An("codeblock w-full max-w-full relative not-prose border border-gray-500/20 rounded-md [&_pre]:rounded-md",n.className),style:n.style,children:[(r||t)&&K.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-50 dark:bg-gray-900",children:[K.jsx("div",{className:"text-xs text-gray-700 dark:text-gray-300",children:r||(u?.toLowerCase()==="bash"?"sh":u??"")}),K.jsx(Uc,{variant:"ghost",size:"xs",className:An("border-0 rounded-md transition-opacity"),onClick:()=>{let T=typeof p.current?.innerText=="string"?p.current.innerText:"";T.endsWith(`
75
+ `}));let A={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const w of v){let U={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};const x=tu(w.htmlStyle||as(w));x&&(U.properties.style=x);for(const m of r)U=m?.span?.call(g,U,N+1,R,A,w)||U;l==="inline"?u.children.push(U):l==="classic"&&A.children.push(U),R+=w.content.length}if(l==="classic"){for(const w of r)A=w?.line?.call(g,A,N+1)||A;E.push(A),s.push(A)}else l==="inline"&&E.push(A)}),l==="classic"){for(const v of r)f=v?.code?.call(g,f)||f;p.children.push(f);for(const v of r)p=v?.pre?.call(g,p)||p;u.children.push(p)}else if(l==="inline"){const v=[];let N={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const w of u.children)w.type==="element"&&w.tagName==="br"?(v.push(N),N={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(w.type==="element"||w.type==="text")&&N.children.push(w);v.push(N);let R={type:"element",tagName:"code",properties:{},children:v};for(const w of r)R=w?.code?.call(g,R)||R;u.children=[];for(let w=0;w<R.children.length;w++){w>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const U=R.children[w];U.type==="element"&&u.children.push(...U.children)}}let T=u;for(const v of r)T=v?.root?.call(g,T)||T;return i&&Is(T,i),T}function uS(e){return e.map(t=>{const n=[];let i="",r;return t.forEach((s,u)=>{const o=!(s.fontStyle&&(s.fontStyle&at.Underline||s.fontStyle&at.Strikethrough));o&&s.content.match(/^\s+$/)&&t[u+1]?(r===void 0&&(r=s.offset),i+=s.content):i?(o?n.push({...s,offset:r,content:i+s.content}):n.push({content:i,offset:r},s),r=void 0,i=""):n.push(s)}),n})}function oS(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,r,s,u]=i;if(!r&&!u)return n;const l=[{...n,offset:n.offset+r.length,content:s}];return r&&l.unshift({content:r,offset:n.offset}),u&&l.push({content:u,offset:n.offset+r.length+s.length}),l}))}function lS(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const r=n[n.length-1],s=tu(r.htmlStyle||as(r)),u=tu(i.htmlStyle||as(i)),l=r.fontStyle&&(r.fontStyle&at.Underline||r.fontStyle&at.Strikethrough),o=i.fontStyle&&(i.fontStyle&at.Underline||i.fontStyle&at.Strikethrough);!l&&!o&&s===u?r.content+=i.content:n.push({...i})}return n})}const cS=kp;function hS(e,t,n){const i={meta:{},options:n,codeToHast:(s,u)=>ls(e,s,u),codeToTokens:(s,u)=>os(e,s,u)};let r=cS(ls(e,t,n,i));for(const s of us(n))r=s.postprocess?.call(i,r,n)||r;return r}const fc={light:"#333333",dark:"#bbbbbb"},pc={light:"#fffffe",dark:"#1e1e1e"},dc="__shiki_resolved";function zu(e){if(e?.[dc])return e;const 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:i}=t;if(!n||!i){const l=t.settings?t.settings.find(o=>!o.name&&!o.scope):void 0;l?.settings?.foreground&&(i=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?fc.light:fc.dark),n||(n=t.type==="light"?pc.light:pc.dark),t.fg=i,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 r=0;const s=new Map;function u(l){if(s.has(l))return s.get(l);r+=1;const o=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${o}`]?u(l):(s.set(l,o),o)}t.settings=t.settings.map(l=>{const o=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!o&&!c)return l;const p={...l,settings:{...l.settings}};if(o){const f=u(l.settings.foreground);t.colorReplacements[f]=l.settings.foreground,p.settings.foreground=f}if(c){const f=u(l.settings.background);t.colorReplacements[f]=l.settings.background,p.settings.background=f}return p});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const o=u(t.colors[l]);t.colorReplacements[o]=t.colors[l],t.colors[l]=o}return Object.defineProperty(t,dc,{enumerable:!1,writable:!1,value:!0}),t}async function $p(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Gp(t)).map(async t=>await qp(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Kp(e){return(await Promise.all(e.map(async n=>Wp(n)?null:zu(await qp(n))))).filter(n=>!!n)}let fS=3;function pS(e,t=3){t>fS||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ui=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Zp(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ui(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class dS extends L3{constructor(t,n,i,r={}){super(t),this._resolver=t,this._themes=n,this._langs=i,this._alias=r,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=zu(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=es.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Zp(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const n=Array.from(this._langGraph.entries()),i=n.filter(([r,s])=>!s);if(i.length){const r=n.filter(([s,u])=>u?(u.embeddedLanguages||u.embeddedLangs)?.some(o=>i.map(([c])=>c).includes(o)):!1).filter(s=>!i.includes(s));throw new ui(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[r,s]of n)this._resolver.addLanguage(s);for(const[r,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}}class mS{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:i=>t.createScanner(i),createOnigString:i=>t.createString(i)},n.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let i=[];for(let r=1;r<=n.length;r++){const s=n.slice(0,r).join(".");i=[...i,...this._injections.get(s)||[]]}return i}}let Ri=0;function gS(e){Ri+=1,e.warnings!==!1&&Ri>=10&&Ri%10===0&&console.warn(`[Shiki] ${Ri} 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 ui("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(zu),r=new mS(e.engine,n),s=new dS(r,i,n,e.langAlias);let u;function l(w){return Zp(w,e.langAlias)}function o(w){A();const U=s.getGrammar(typeof w=="string"?w:w.name);if(!U)throw new ui(`Language \`${w}\` not found, you may need to load it first`);return U}function c(w){if(w==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};A();const U=s.getTheme(w);if(!U)throw new ui(`Theme \`${w}\` not found, you may need to load it first`);return U}function p(w){A();const U=c(w);u!==w&&(s.setTheme(U),u=w);const x=s.getColorMap();return{theme:U,colorMap:x}}function f(){return A(),s.getLoadedThemes()}function E(){return A(),s.getLoadedLanguages()}function g(...w){A(),s.loadLanguages(w.flat(1))}async function T(...w){return g(await $p(w))}function v(...w){A();for(const U of w.flat(1))s.loadTheme(U)}async function N(...w){return A(),v(await Kp(w))}function A(){if(t)throw new ui("Shiki instance has been disposed")}function R(){t||(t=!0,s.dispose(),Ri-=1)}return{setTheme:p,getTheme:c,getLanguage:o,getLoadedThemes:f,getLoadedLanguages:E,resolveLangAlias:l,loadLanguage:T,loadLanguageSync:g,loadTheme:N,loadThemeSync:v,dispose:R,[Symbol.dispose]:R}}async function ES(e){e.engine||pS("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([Kp(e.themes||[]),$p(e.langs||[]),e.engine]);return gS({...e,themes:t,langs:n,engine:i})}async function _S(e){const t=await ES(e);return{getLastGrammarState:(...n)=>Z3(t,...n),codeToTokensBase:(n,i)=>Hu(t,n,i),codeToTokensWithThemes:(n,i)=>Xp(t,n,i),codeToTokens:(n,i)=>os(t,n,i),codeToHast:(n,i)=>ls(t,n,i),codeToHtml:(n,i)=>hS(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function xS(e){const t=e.langs,n=e.themes,i=e.engine;async function r(s){function u(f){if(typeof f=="string"){if(f=s.langAlias?.[f]||f,Gp(f))return[];const E=t[f];if(!E)throw new je(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return E}return f}function l(f){if(Wp(f))return"none";if(typeof f=="string"){const E=n[f];if(!E)throw new je(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return E}return f}const o=(s.themes??[]).map(f=>l(f)),c=(s.langs??[]).map(f=>u(f)),p=await _S({engine:s.engine??i(),...s,themes:o,langs:c});return{...p,loadLanguage(...f){return p.loadLanguage(...f.map(u))},loadTheme(...f){return p.loadTheme(...f.map(l))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return r}const ed=[{id:"abap",name:"ABAP",import:(()=>k(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>k(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>k(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>k(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>k(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>k(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>k(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>k(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>k(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>k(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>k(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>k(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>k(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>k(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>k(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>k(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>k(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>k(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>k(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>k(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>k(()=>import("./bird2-DPOp833l.js"),[]))},{id:"blade",name:"Blade",import:(()=>k(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>k(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>k(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>k(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>k(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>k(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>k(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>k(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>k(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>k(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>k(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>k(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>k(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>k(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>k(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>k(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>k(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>k(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>k(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>k(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>k(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>k(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>k(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>k(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>k(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>k(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>k(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>k(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>k(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>k(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>k(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>k(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>k(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>k(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>k(()=>import("./erb-B12qg9BL.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>k(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>k(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>k(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>k(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>k(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>k(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>k(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>k(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>k(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>k(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>k(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>k(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>k(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>k(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>k(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>k(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>k(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>k(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>k(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>k(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>k(()=>import("./go-CxLEBnE3.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>k(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>k(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>k(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>k(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>k(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>k(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>k(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>k(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>k(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>k(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>k(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>k(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>k(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>k(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>k(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>k(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>k(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>k(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>k(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>k(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>k(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>k(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>k(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>k(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>k(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>k(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>k(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>k(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>k(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>k(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"just",name:"Just",import:(()=>k(()=>import("./just-Cw27pwNe.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38])))},{id:"kdl",name:"KDL",import:(()=>k(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>k(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>k(()=>import("./kusto-DZf3V79B.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>k(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>k(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>k(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>k(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([67,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>k(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>k(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>k(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>k(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>k(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>k(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>k(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>k(()=>import("./marko-CnJfTvn9.js"),__vite__mapDeps([68,3,69,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>k(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>k(()=>import("./mdc-BMNejdWA.js"),__vite__mapDeps([70,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>k(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>k(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>k(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>k(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>k(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>k(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>k(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>k(()=>import("./nextflow-Zz6hmt5N.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>k(()=>import("./nextflow-groovy-BeH2EWoN.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>k(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>k(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>k(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>k(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>k(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>k(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>k(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>k(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>k(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>k(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>k(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>k(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([75,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>k(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>k(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>k(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>k(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>k(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>k(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>k(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>k(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>k(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>k(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>k(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([76,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>k(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>k(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>k(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>k(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2])))},{id:"qmldir",name:"QML Directory",import:(()=>k(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>k(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>k(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>k(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>k(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>k(()=>import("./razor-Uh8Bk_45.js"),__vite__mapDeps([78,1,2,3,79])))},{id:"reg",name:"Windows Registry Script",import:(()=>k(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>k(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>k(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>k(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>k(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>k(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>k(()=>import("./rst-BrH8l1NY.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>k(()=>import("./ruby-Dw2BHqvy.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>k(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>k(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16])))},{id:"sass",name:"Sass",import:(()=>k(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>k(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>k(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>k(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>k(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>k(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>k(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>k(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>k(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>k(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>k(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([86,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>k(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>k(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>k(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>k(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>k(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>k(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>k(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2])))},{id:"svelte",name:"Svelte",import:(()=>k(()=>import("./svelte-C_ipcX3V.js"),__vite__mapDeps([91,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>k(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>k(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>k(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>k(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>k(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>k(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>k(()=>import("./templ-P3uqSqPl.js"),__vite__mapDeps([92,93,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>k(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>k(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62])))},{id:"toml",name:"TOML",import:(()=>k(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>k(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>k(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>k(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>k(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>k(()=>import("./twig-DNn4PbVi.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>k(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>k(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>k(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>k(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>k(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>k(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>k(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>k(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>k(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>k(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([96,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>k(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>k(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([98,3,5,69,99,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>k(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>k(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>k(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>k(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>k(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>k(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>k(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>k(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>k(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>k(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>k(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>k(()=>import("./zig-VOosw3JB.js"),[]))}],bS=Object.fromEntries(ed.map(e=>[e.id,e.import])),TS=Object.fromEntries(ed.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),yS={...bS,...TS},AS=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>k(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>k(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>k(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>k(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>k(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>k(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>k(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>k(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>k(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>k(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>k(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>k(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>k(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>k(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>k(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>k(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>k(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>k(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>k(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>k(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>k(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>k(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>k(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>k(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>k(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>k(()=>import("./horizon-bright-Cn-bp-IR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>k(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>k(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>k(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>k(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>k(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>k(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>k(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>k(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>k(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>k(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>k(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>k(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>k(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>k(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>k(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>k(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>k(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>k(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>k(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>k(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>k(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>k(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>k(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>k(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>k(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>k(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>k(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>k(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>k(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>k(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>k(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>k(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>k(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>k(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>k(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>k(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],CS=Object.fromEntries(AS.map(e=>[e.id,e.import]));class qu extends Error{constructor(t){super(t),this.name="ShikiError"}}function SS(){return 2147483648}function kS(){return typeof performance<"u"?performance.now():Date.now()}const vS=(e,t)=>e+(t-e%t)%t;async function IS(e){let t,n;const i={};function r(g){n=g,i.HEAPU8=new Uint8Array(g),i.HEAPU32=new Uint32Array(g)}function s(g,T,v){i.HEAPU8.copyWithin(g,T,T+v)}function u(g){try{return t.grow(g-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function l(g){const T=i.HEAPU8.length;g=g>>>0;const v=SS();if(g>v)return!1;for(let N=1;N<=4;N*=2){let A=T*(1+.2/N);A=Math.min(A,g+100663296);const R=Math.min(v,vS(Math.max(g,A),65536));if(u(R))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(g,T,v=1024){const N=T+v;let A=T;for(;g[A]&&!(A>=N);)++A;if(A-T>16&&g.buffer&&o)return o.decode(g.subarray(T,A));let R="";for(;T<A;){let w=g[T++];if(!(w&128)){R+=String.fromCharCode(w);continue}const U=g[T++]&63;if((w&224)===192){R+=String.fromCharCode((w&31)<<6|U);continue}const x=g[T++]&63;if((w&240)===224?w=(w&15)<<12|U<<6|x:w=(w&7)<<18|U<<12|x<<6|g[T++]&63,w<65536)R+=String.fromCharCode(w);else{const m=w-65536;R+=String.fromCharCode(55296|m>>10,56320|m&1023)}}return R}function p(g,T){return g?c(i.HEAPU8,g,T):""}const f={emscripten_get_now:kS,emscripten_memcpy_big:s,emscripten_resize_heap:l,fd_write:()=>0};async function E(){const T=await e({env:f,wasi_snapshot_preview1:f});t=T.memory,r(t.buffer),Object.assign(i,T),i.UTF8ToString=p}return await E(),i}var DS=Object.defineProperty,wS=(e,t,n)=>t in e?DS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=(e,t,n)=>wS(e,typeof t!="symbol"?t+"":t,n);let Qe=null;function NS(e){throw new qu(e.UTF8ToString(e.getLastOnigError()))}class Ds{constructor(t){ze(this,"utf16Length"),ze(this,"utf8Length"),ze(this,"utf16Value"),ze(this,"utf8Value"),ze(this,"utf16OffsetToUtf8"),ze(this,"utf8OffsetToUtf16");const n=t.length,i=Ds._utf8ByteLength(t),r=i!==n,s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const u=r?new Uint32Array(i+1):null;r&&(u[i]=n);const l=new Uint8Array(i);let o=0;for(let c=0;c<n;c++){const p=t.charCodeAt(c);let f=p,E=!1;if(p>=55296&&p<=56319&&c+1<n){const g=t.charCodeAt(c+1);g>=56320&&g<=57343&&(f=(p-55296<<10)+65536|g-56320,E=!0)}r&&(s[c]=o,E&&(s[c+1]=o),f<=127?u[o+0]=c:f<=2047?(u[o+0]=c,u[o+1]=c):f<=65535?(u[o+0]=c,u[o+1]=c,u[o+2]=c):(u[o+0]=c,u[o+1]=c,u[o+2]=c,u[o+3]=c)),f<=127?l[o++]=f:f<=2047?(l[o++]=192|(f&1984)>>>6,l[o++]=128|(f&63)>>>0):f<=65535?(l[o++]=224|(f&61440)>>>12,l[o++]=128|(f&4032)>>>6,l[o++]=128|(f&63)>>>0):(l[o++]=240|(f&1835008)>>>18,l[o++]=128|(f&258048)>>>12,l[o++]=128|(f&4032)>>>6,l[o++]=128|(f&63)>>>0),E&&c++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const s=t.charCodeAt(i);let u=s,l=!1;if(s>=55296&&s<=56319&&i+1<r){const o=t.charCodeAt(i+1);o>=56320&&o<=57343&&(u=(s-55296<<10)+65536|o-56320,l=!0)}u<=127?n+=1:u<=2047?n+=2:u<=65535?n+=3:n+=4,l&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const ws=class Yt{constructor(t){if(ze(this,"id",++Yt.LAST_ID),ze(this,"_onigBinding"),ze(this,"content"),ze(this,"utf16Length"),ze(this,"utf8Length"),ze(this,"utf16OffsetToUtf8"),ze(this,"utf8OffsetToUtf16"),ze(this,"ptr"),!Qe)throw new qu("Must invoke loadWasm first.");this._onigBinding=Qe,this.content=t;const n=new Ds(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Yt._sharedPtrInUse?(Yt._sharedPtr||(Yt._sharedPtr=Qe.omalloc(1e4)),Yt._sharedPtrInUse=!0,Qe.HEAPU8.set(n.utf8Value,Yt._sharedPtr),this.ptr=Yt._sharedPtr):this.ptr=n.createString(Qe)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Yt._sharedPtr?Yt._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ze(ws,"LAST_ID",0);ze(ws,"_sharedPtr",0);ze(ws,"_sharedPtrInUse",!1);let td=ws;class LS{constructor(t){if(ze(this,"_onigBinding"),ze(this,"_ptr"),!Qe)throw new qu("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,o=t.length;l<o;l++){const c=new Ds(t[l]);n[l]=c.createString(Qe),i[l]=c.utf8Length}const r=Qe.omalloc(4*t.length);Qe.HEAPU32.set(n,r/4);const s=Qe.omalloc(4*t.length);Qe.HEAPU32.set(i,s/4);const u=Qe.createOnigScanner(r,s,t.length);for(let l=0,o=t.length;l<o;l++)Qe.ofree(n[l]);Qe.ofree(s),Qe.ofree(r),u===0&&NS(Qe),this._onigBinding=Qe,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new td(t);const s=this._findNextMatchSync(t,n,!1,r);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const s=this._onigBinding,u=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(u===0)return null;const l=s.HEAPU32;let o=u/4;const c=l[o++],p=l[o++],f=[];for(let E=0;E<p;E++){const g=t.convertUtf8OffsetToUtf16(l[o++]),T=t.convertUtf8OffsetToUtf16(l[o++]);f[E]={start:g,end:T,length:T-g}}return{index:c,captureIndices:f}}}function RS(e){return typeof e.instantiator=="function"}function PS(e){return typeof e.default=="function"}function OS(e){return typeof e.data<"u"}function FS(e){return typeof Response<"u"&&e instanceof Response}function BS(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}let wr;function MS(e){if(wr)return wr;async function t(){Qe=await IS(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),RS(i)?i=await i.instantiator(n):PS(i)?i=await i.default(n):(OS(i)&&(i=i.data),FS(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await US(i)(n):i=await VS(i)(n):BS(i)?i=await xa(i)(n):i instanceof WebAssembly.Module?i=await xa(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await xa(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return wr=t(),wr}function xa(e){return t=>WebAssembly.instantiate(e,t)}function US(e){return t=>WebAssembly.instantiateStreaming(e,t)}function VS(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function HS(e){return e&&await MS(e),{createScanner(t){return new LS(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new td(t)}}}const jS=xS({langs:yS,themes:CS,engine:()=>HS(k(()=>import("./wasm-CG6Dc4jp.js"),[]))}),zS={ts:"typescript",js:"javascript",sh:"bash",shell:"bash",console:"bash",zsh:"bash",cmd:"bash",md:"markdown",txt:"plaintext",text:"plaintext",yml:"yaml",json5:"jsonc",eslintrc:"jsonc"};let ba=null,Ta=null;const mc=new Map,gc=new Set;async function qS(e){ba||(ba=jS({themes:["github-light","aurora-x"],langs:["typescript","javascript","tsx","jsx","bash","json","html","css","markdown","plaintext","toml","yaml","sql","diff","vue","svelte","scss","jsonc","vue-html","angular-html","angular-ts"]}));const t=await ba,n=zS[e]||e,i=n==="mermaid"?"plaintext":n;if(gc.has(i))return{highlighter:t,effectiveLang:"plaintext"};if(!t.getLoadedLanguages().includes(i))try{await t.loadLanguage(i)}catch{return console.warn(`Shiki: Language "${i}" not found, using plaintext`),gc.add(i),{highlighter:t,effectiveLang:"plaintext"}}return{highlighter:t,effectiveLang:i}}async function GS(){if(!Ta){const{default:e}=await k(async()=>{const{default:t}=await import("./mermaid.core-CCnh2DG0.js").then(n=>n.bF);return{default:t}},__vite__mapDeps([101,102]));e.initialize({startOnLoad:!1,securityLevel:"loose"}),Ta=e}return Ta}function WS(e){const t=e.match(/<pre\b([^>]*)>/i);if(!t)return{class:null,style:null};const n=t[1],i=n.match(/\bclass\s*=\s*["']([^"']*)["']/i),r=n.match(/\bstyle\s*=\s*["']([^"']*)["']/i);return{class:i?i[1]:null,style:r?r[1]:null}}function nd({isEmbedded:e,showTypeCopyButton:t=!0,...n}){const i=n?.dataCodeTitle||n?.["data-code-title"],r=i&&i!=="undefined"&&i.trim().length>0?i.trim():void 0,u=n.children?.props?.className?.replace("language-",""),l=n.children,[o,c]=De.useState(!1),p=De.useRef(null),f=l?.props.children,[E,g]=De.useState(K.jsx("pre",{ref:p,className:"shiki h-full github-light dark:aurora-x",children:K.jsx("code",{children:u==="mermaid"?K.jsx("svg",{}):f})}));return jd[typeof document<"u"?"useLayoutEffect":"useEffect"](()=>{(async()=>{const T=["github-light","aurora-x"],v=u||"plaintext",{highlighter:N,effectiveLang:A}=await qS(v),R=(f||"").trimEnd(),w=await Promise.all(T.map(async U=>{const x=N.codeToHtml(R,{lang:A,theme:U,transformers:[WC()]});if(u==="mermaid"){const m=WS(x);let S=mc.get(R);if(!S){const M=await GS(),{svg:j}=await M.render("foo",R);mc.set(R,j),S=j}return`<div class='${m.class} py-4 bg-neutral-50'>${S}</div>`}return x}));g(K.jsx("div",{className:An(e?"h-full [&>pre]:h-full [&>pre]:rounded-none":""),dangerouslySetInnerHTML:{__html:w.join("")},ref:p}))})()},[f,u]),K.jsxs("div",{className:An("codeblock w-full max-w-full relative not-prose border border-gray-500/20 rounded-md [&_pre]:rounded-md",n.className),style:n.style,children:[(r||t)&&K.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-50 dark:bg-gray-900",children:[K.jsx("div",{className:"text-xs text-gray-700 dark:text-gray-300",children:r||(u?.toLowerCase()==="bash"?"sh":u??"")}),K.jsx(Uc,{variant:"ghost",size:"xs",className:An("border-0 rounded-md transition-opacity"),onClick:()=>{let T=typeof p.current?.innerText=="string"?p.current.innerText:"";T.endsWith(`
76
76
  `)&&(T=T.slice(0,-1)),navigator.clipboard.writeText(T),c(!0),setTimeout(()=>c(!1),2e3)},"aria-label":"Copy code to clipboard",children:o?K.jsx("span",{className:"text-xs",children:"Copied!"}):K.jsx(Gd,{className:"w-4 h-4"})})]}),E]})}function YS(e){return!e.startsWith("/")&&!e.startsWith("http://")&&!e.startsWith("https://")&&!e.startsWith("//")&&!e.startsWith("#")&&!e.startsWith("mailto:")}function id({href:e,...t}){if(!YS(e??""))return K.jsx("a",{...t,href:e});const[n,i]=e?.split("#")??[];let r=n.replace(".md","");return r.startsWith("../")?r=r.replace(/^\.\.\//gm,"../../"):r.startsWith("./")?r=r.replace(/^\.\//gm,"../"):r=`../${r}`,K.jsx(Hr,{...t,unsafeRelative:"path",to:r,hash:i,preload:void 0,ref:void 0})}var Pi={},ei={},Nr={},En={},Ln={},ya={},Ec;function rd(){return Ec||(Ec=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(i){i.Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(i){return i.type===t.Tag||i.type===t.Script||i.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(ya)),ya}var Ee={},_c;function xc(){if(_c)return Ee;_c=1;var e=Ee&&Ee.__extends||(function(){var x=function(m,S){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,j){M.__proto__=j}||function(M,j){for(var B in j)Object.prototype.hasOwnProperty.call(j,B)&&(M[B]=j[B])},x(m,S)};return function(m,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");x(m,S);function M(){this.constructor=m}m.prototype=S===null?Object.create(S):(M.prototype=S.prototype,new M)}})(),t=Ee&&Ee.__assign||function(){return t=Object.assign||function(x){for(var m,S=1,M=arguments.length;S<M;S++){m=arguments[S];for(var j in m)Object.prototype.hasOwnProperty.call(m,j)&&(x[j]=m[j])}return x},t.apply(this,arguments)};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.cloneNode=Ee.hasChildren=Ee.isDocument=Ee.isDirective=Ee.isComment=Ee.isText=Ee.isCDATA=Ee.isTag=Ee.Element=Ee.Document=Ee.CDATA=Ee.NodeWithChildren=Ee.ProcessingInstruction=Ee.Comment=Ee.Text=Ee.DataNode=Ee.Node=void 0;var n=rd(),i=(function(){function x(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(x.prototype,"parentNode",{get:function(){return this.parent},set:function(m){this.parent=m},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"previousSibling",{get:function(){return this.prev},set:function(m){this.prev=m},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"nextSibling",{get:function(){return this.next},set:function(m){this.next=m},enumerable:!1,configurable:!0}),x.prototype.cloneNode=function(m){return m===void 0&&(m=!1),w(this,m)},x})();Ee.Node=i;var r=(function(x){e(m,x);function m(S){var M=x.call(this)||this;return M.data=S,M}return Object.defineProperty(m.prototype,"nodeValue",{get:function(){return this.data},set:function(S){this.data=S},enumerable:!1,configurable:!0}),m})(i);Ee.DataNode=r;var s=(function(x){e(m,x);function m(){var S=x!==null&&x.apply(this,arguments)||this;return S.type=n.ElementType.Text,S}return Object.defineProperty(m.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),m})(r);Ee.Text=s;var u=(function(x){e(m,x);function m(){var S=x!==null&&x.apply(this,arguments)||this;return S.type=n.ElementType.Comment,S}return Object.defineProperty(m.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),m})(r);Ee.Comment=u;var l=(function(x){e(m,x);function m(S,M){var j=x.call(this,M)||this;return j.name=S,j.type=n.ElementType.Directive,j}return Object.defineProperty(m.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),m})(r);Ee.ProcessingInstruction=l;var o=(function(x){e(m,x);function m(S){var M=x.call(this)||this;return M.children=S,M}return Object.defineProperty(m.prototype,"firstChild",{get:function(){var S;return(S=this.children[0])!==null&&S!==void 0?S:null},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"childNodes",{get:function(){return this.children},set:function(S){this.children=S},enumerable:!1,configurable:!0}),m})(i);Ee.NodeWithChildren=o;var c=(function(x){e(m,x);function m(){var S=x!==null&&x.apply(this,arguments)||this;return S.type=n.ElementType.CDATA,S}return Object.defineProperty(m.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),m})(o);Ee.CDATA=c;var p=(function(x){e(m,x);function m(){var S=x!==null&&x.apply(this,arguments)||this;return S.type=n.ElementType.Root,S}return Object.defineProperty(m.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),m})(o);Ee.Document=p;var f=(function(x){e(m,x);function m(S,M,j,B){j===void 0&&(j=[]),B===void 0&&(B=S==="script"?n.ElementType.Script:S==="style"?n.ElementType.Style:n.ElementType.Tag);var G=x.call(this,j)||this;return G.name=S,G.attribs=M,G.type=B,G}return Object.defineProperty(m.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"tagName",{get:function(){return this.name},set:function(S){this.name=S},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"attributes",{get:function(){var S=this;return Object.keys(this.attribs).map(function(M){var j,B;return{name:M,value:S.attribs[M],namespace:(j=S["x-attribsNamespace"])===null||j===void 0?void 0:j[M],prefix:(B=S["x-attribsPrefix"])===null||B===void 0?void 0:B[M]}})},enumerable:!1,configurable:!0}),m})(o);Ee.Element=f;function E(x){return(0,n.isTag)(x)}Ee.isTag=E;function g(x){return x.type===n.ElementType.CDATA}Ee.isCDATA=g;function T(x){return x.type===n.ElementType.Text}Ee.isText=T;function v(x){return x.type===n.ElementType.Comment}Ee.isComment=v;function N(x){return x.type===n.ElementType.Directive}Ee.isDirective=N;function A(x){return x.type===n.ElementType.Root}Ee.isDocument=A;function R(x){return Object.prototype.hasOwnProperty.call(x,"children")}Ee.hasChildren=R;function w(x,m){m===void 0&&(m=!1);var S;if(T(x))S=new s(x.data);else if(v(x))S=new u(x.data);else if(E(x)){var M=m?U(x.children):[],j=new f(x.name,t({},x.attribs),M);M.forEach(function(re){return re.parent=j}),x.namespace!=null&&(j.namespace=x.namespace),x["x-attribsNamespace"]&&(j["x-attribsNamespace"]=t({},x["x-attribsNamespace"])),x["x-attribsPrefix"]&&(j["x-attribsPrefix"]=t({},x["x-attribsPrefix"])),S=j}else if(g(x)){var M=m?U(x.children):[],B=new c(M);M.forEach(function(te){return te.parent=B}),S=B}else if(A(x)){var M=m?U(x.children):[],G=new p(M);M.forEach(function(te){return te.parent=G}),x["x-mode"]&&(G["x-mode"]=x["x-mode"]),S=G}else if(N(x)){var Y=new l(x.name,x.data);x["x-name"]!=null&&(Y["x-name"]=x["x-name"],Y["x-publicId"]=x["x-publicId"],Y["x-systemId"]=x["x-systemId"]),S=Y}else throw new Error("Not implemented yet: ".concat(x.type));return S.startIndex=x.startIndex,S.endIndex=x.endIndex,x.sourceCodeLocation!=null&&(S.sourceCodeLocation=x.sourceCodeLocation),S}Ee.cloneNode=w;function U(x){for(var m=x.map(function(M){return w(M,!0)}),S=1;S<m.length;S++)m[S].prev=m[S-1],m[S-1].next=m[S];return m}return Ee}var bc;function sd(){return bc||(bc=1,(function(e){var t=Ln&&Ln.__createBinding||(Object.create?(function(l,o,c,p){p===void 0&&(p=c);var f=Object.getOwnPropertyDescriptor(o,c);(!f||("get"in f?!o.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return o[c]}}),Object.defineProperty(l,p,f)}):(function(l,o,c,p){p===void 0&&(p=c),l[p]=o[c]})),n=Ln&&Ln.__exportStar||function(l,o){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(o,c)&&t(o,l,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var i=rd(),r=xc();n(xc(),e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=(function(){function l(o,c,p){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof c=="function"&&(p=c,c=s),typeof o=="object"&&(c=o,o=void 0),this.callback=o??null,this.options=c??s,this.elementCB=p??null}return l.prototype.onparserinit=function(o){this.parser=o},l.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(o){this.handleCallback(o)},l.prototype.onclosetag=function(){this.lastNode=null;var o=this.tagStack.pop();this.options.withEndIndices&&(o.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(o)},l.prototype.onopentag=function(o,c){var p=this.options.xmlMode?i.ElementType.Tag:void 0,f=new r.Element(o,c,void 0,p);this.addNode(f),this.tagStack.push(f)},l.prototype.ontext=function(o){var c=this.lastNode;if(c&&c.type===i.ElementType.Text)c.data+=o,this.options.withEndIndices&&(c.endIndex=this.parser.endIndex);else{var p=new r.Text(o);this.addNode(p),this.lastNode=p}},l.prototype.oncomment=function(o){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment){this.lastNode.data+=o;return}var c=new r.Comment(o);this.addNode(c),this.lastNode=c},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var o=new r.Text(""),c=new r.CDATA([o]);this.addNode(c),o.parent=c,this.lastNode=o},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(o,c){var p=new r.ProcessingInstruction(o,c);this.addNode(p)},l.prototype.handleCallback=function(o){if(typeof this.callback=="function")this.callback(o,this.dom);else if(o)throw o},l.prototype.addNode=function(o){var c=this.tagStack[this.tagStack.length-1],p=c.children[c.children.length-1];this.options.withStartIndices&&(o.startIndex=this.parser.startIndex),this.options.withEndIndices&&(o.endIndex=this.parser.endIndex),c.children.push(o),p&&(o.prev=p,p.next=o),o.parent=c,this.lastNode=null},l})();e.DomHandler=u,e.default=u})(Ln)),Ln}var Aa={},Tc;function JS(){return Tc||(Tc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Aa)),Aa}var yc;function ad(){if(yc)return En;yc=1,Object.defineProperty(En,"__esModule",{value:!0}),En.formatAttributes=i,En.hasOpenTag=s,En.escapeSpecialCharacters=u,En.revertEscapedCharacters=l,En.formatDOM=o;var e=sd(),t=JS();function n(c){return t.CASE_SENSITIVE_TAG_NAMES_MAP[c]}function i(c){for(var p={},f=0,E=c.length;f<E;f++){var g=c[f];p[g.name]=g.value}return p}function r(c){c=c.toLowerCase();var p=n(c);return p||c}function s(c,p){var f="<"+p,E=c.toLowerCase().indexOf(f);if(E===-1)return!1;var g=c[E+f.length];return g===">"||g===" "||g===" "||g===`
77
77
  `||g==="\r"||g==="/"}function u(c){return c.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function l(c){return c.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function o(c,p,f){var E,g,T,v;p===void 0&&(p=null);for(var N=[],A,R=0,w=c.length;R<w;R++){var U=c[R];switch(U.nodeType){case 1:{var x=r(U.nodeName);A=new e.Element(x,i(U.attributes)),A.children=o(x==="template"?U.content.childNodes:U.childNodes,A);break}case 3:A=new e.Text(l((E=U.nodeValue)!==null&&E!==void 0?E:""));break;case 8:A=new e.Comment((g=U.nodeValue)!==null&&g!==void 0?g:"");break;default:continue}var m=(T=N[R-1])!==null&&T!==void 0?T:null;m&&(m.next=A),A.parent=p,A.prev=m,A.next=null,N.push(A)}return f&&(A=new e.ProcessingInstruction(f.substring(0,f.indexOf(" ")).toLowerCase(),f),A.next=(v=N[0])!==null&&v!==void 0?v:null,A.parent=p,N.unshift(A),N[1]&&(N[1].prev=N[0])),N}return En}var Ac;function QS(){if(Ac)return Nr;Ac=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=T;var e=ad(),t="html",n="head",i="body",r=/<([a-zA-Z]+[0-9]?)/,s=function(v,N){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(v,N){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window=="object"&&window.DOMParser;if(typeof l=="function"){var o=new l,c="text/html";u=function(v,N){return N&&(v="<".concat(N,">").concat(v,"</").concat(N,">")),o.parseFromString(v,c)},s=u}if(typeof document=="object"&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(v,N){if(N){var A=p.documentElement.querySelector(N);return A&&(A.innerHTML=v),p}return p.documentElement.innerHTML=v,p}}var f=typeof document=="object"&&document.createElement("template"),E;f&&f.content&&(E=function(v){return f.innerHTML=v,f.content.childNodes});var g=function(){return document.createDocumentFragment().childNodes};function T(v){var N,A,R,w,U,x;v=(0,e.escapeSpecialCharacters)(v);var m=r.exec(v),S=(N=m?.[1])===null||N===void 0?void 0:N.toLowerCase();switch(S){case t:{var M=u(v);if(!(0,e.hasOpenTag)(v,n)){var j=M.querySelector(n);(A=j?.parentNode)===null||A===void 0||A.removeChild(j)}if(!(0,e.hasOpenTag)(v,i)){var j=M.querySelector(i);(R=j?.parentNode)===null||R===void 0||R.removeChild(j)}return M.querySelectorAll(t)}case n:case i:{var B=s(v).querySelectorAll(S);return(0,e.hasOpenTag)(v,i)&&(0,e.hasOpenTag)(v,n)?(U=(w=B[0].parentNode)===null||w===void 0?void 0:w.childNodes)!==null&&U!==void 0?U:g():B}default:{if(E)return E(v);var j=s(v,i).querySelector(i);return(x=j?.childNodes)!==null&&x!==void 0?x:g()}}}return Nr}var Cc;function XS(){if(Cc)return ei;Cc=1;var e=ei&&ei.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=r;var t=e(QS()),n=ad(),i=/<(![a-zA-Z\s]+)>/;function r(s){if(typeof s!="string")throw new TypeError("First argument must be a string");if(!s)return[];var u=i.exec(s),l=u?u[1]:void 0;return(0,n.formatDOM)((0,t.default)(s),null,l)}return ei}var Lr={},wt={},Oi={},Sc;function $S(){if(Sc)return Oi;Sc=1;var e=0;Oi.SAME=e;var t=1;return Oi.CAMELCASE=t,Oi.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Oi}var kc;function KS(){if(kc)return wt;kc=1;const e=0,t=1,n=2,i=3,r=4,s=5,u=6;function l(x){return c.hasOwnProperty(x)?c[x]:null}function o(x,m,S,M,j,B,G){this.acceptsBooleans=m===n||m===i||m===r,this.attributeName=M,this.attributeNamespace=j,this.mustUseProperty=S,this.propertyName=x,this.type=m,this.sanitizeURL=B,this.removeEmptyString=G}const c={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(x=>{c[x]=new o(x,e,!1,x,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([x,m])=>{c[x]=new o(x,t,!1,m,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(x=>{c[x]=new o(x,n,!1,x.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(x=>{c[x]=new o(x,n,!1,x,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(x=>{c[x]=new o(x,i,!1,x.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(x=>{c[x]=new o(x,i,!0,x,null,!1,!1)}),["capture","download"].forEach(x=>{c[x]=new o(x,r,!1,x,null,!1,!1)}),["cols","rows","size","span"].forEach(x=>{c[x]=new o(x,u,!1,x,null,!1,!1)}),["rowSpan","start"].forEach(x=>{c[x]=new o(x,s,!1,x.toLowerCase(),null,!1,!1)});const f=/[\-\:]([a-z])/g,E=x=>x[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(x=>{const m=x.replace(f,E);c[m]=new o(m,t,!1,x,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(x=>{const m=x.replace(f,E);c[m]=new o(m,t,!1,x,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(x=>{const m=x.replace(f,E);c[m]=new o(m,t,!1,x,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(x=>{c[x]=new o(x,t,!1,x.toLowerCase(),null,!1,!1)});const g="xlinkHref";c[g]=new o("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(x=>{c[x]=new o(x,t,!1,x.toLowerCase(),null,!0,!0)});const{CAMELCASE:T,SAME:v,possibleStandardNames:N}=$S(),R=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+R+"]*$")),U=Object.keys(N).reduce((x,m)=>{const S=N[m];return S===v?x[m]=m:S===T?x[m.toLowerCase()]=m:x[m]=S,x},{});return wt.BOOLEAN=i,wt.BOOLEANISH_STRING=n,wt.NUMERIC=s,wt.OVERLOADED_BOOLEAN=r,wt.POSITIVE_NUMERIC=u,wt.RESERVED=e,wt.STRING=t,wt.getPropertyInfo=l,wt.isCustomAttribute=w,wt.possibleStandardNames=U,wt}var Fi={},ti={},Ca,vc;function ZS(){if(vc)return Ca;vc=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
78
- `,c="/",p="*",f="",E="comment",g="declaration";function T(N,A){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];A=A||{};var R=1,w=1;function U(te){var ee=te.match(t);ee&&(R+=ee.length);var ce=te.lastIndexOf(o);w=~ce?te.length-ce:w+te.length}function x(){var te={line:R,column:w};return function(ee){return ee.position=new m(te),j(),ee}}function m(te){this.start=te,this.end={line:R,column:w},this.source=A.source}m.prototype.content=N;function S(te){var ee=new Error(A.source+":"+R+":"+w+": "+te);if(ee.reason=te,ee.filename=A.source,ee.line=R,ee.column=w,ee.source=N,!A.silent)throw ee}function M(te){var ee=te.exec(N);if(ee){var ce=ee[0];return U(ce),N=N.slice(ce.length),ee}}function j(){M(n)}function B(te){var ee;for(te=te||[];ee=G();)ee!==!1&&te.push(ee);return te}function G(){var te=x();if(!(c!=N.charAt(0)||p!=N.charAt(1))){for(var ee=2;f!=N.charAt(ee)&&(p!=N.charAt(ee)||c!=N.charAt(ee+1));)++ee;if(ee+=2,f===N.charAt(ee-1))return S("End of comment missing");var ce=N.slice(2,ee-2);return w+=2,U(ce),N=N.slice(ee),w+=2,te({type:E,comment:ce})}}function Y(){var te=x(),ee=M(i);if(ee){if(G(),!M(r))return S("property missing ':'");var ce=M(s),fe=te({type:g,property:v(ee[0].replace(e,f)),value:ce?v(ce[0].replace(e,f)):f});return M(u),fe}}function re(){var te=[];B(te);for(var ee;ee=Y();)ee!==!1&&(te.push(ee),B(te));return te}return j(),re()}function v(N){return N?N.replace(l,f):f}return Ca=T,Ca}var Ic;function ek(){if(Ic)return ti;Ic=1;var e=ti&&ti.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=n;const t=e(ZS());function n(i,r){let s=null;if(!i||typeof i!="string")return s;const u=(0,t.default)(i),l=typeof r=="function";return u.forEach(o=>{if(o.type!=="declaration")return;const{property:c,value:p}=o;l?r(c,p,o):p&&(s=s||{},s[c]=p)}),s}return ti}var Bi={},Dc;function tk(){if(Dc)return Bi;Dc=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,s=function(c){return!c||n.test(c)||e.test(c)},u=function(c,p){return p.toUpperCase()},l=function(c,p){return"".concat(p,"-")},o=function(c,p){return p===void 0&&(p={}),s(c)?c:(c=c.toLowerCase(),p.reactCompat?c=c.replace(r,l):c=c.replace(i,l),c.replace(t,u))};return Bi.camelCase=o,Bi}var Mi,wc;function nk(){if(wc)return Mi;wc=1;var e=Mi&&Mi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(ek()),n=tk();function i(r,s){var u={};return!r||typeof r!="string"||(0,t.default)(r,function(l,o){l&&o&&(u[(0,n.camelCase)(l,s)]=o)}),u}return i.default=i,Mi=i,Mi}var Nc;function ud(){return Nc||(Nc=1,(function(e){var t=Fi&&Fi.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=s,e.setStyleProp=l;var n=Vc(),i=t(nk()),r=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function s(p,f){return p.includes("-")?!r.has(p):!!(f&&typeof f.is=="string")}var u={reactCompat:!0};function l(p,f){if(typeof p=="string"){if(!p.trim()){f.style={};return}try{f.style=(0,i.default)(p,u)}catch{f.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var o=function(p){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(p.name)};e.canTextBeChildOfNode=o;var c=function(p){return p};e.returnFirstArg=c})(Fi)),Fi}var Lc;function od(){if(Lc)return Lr;Lc=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=s;var e=KS(),t=ud(),n=["checked","value"],i=["input","select","textarea"],r={reset:!0,submit:!0};function s(l,o){l===void 0&&(l={});var c={},p=!!(l.type&&r[l.type]);for(var f in l){var E=l[f];if((0,e.isCustomAttribute)(f)){c[f]=E;continue}var g=f.toLowerCase(),T=u(g);if(T){var v=(0,e.getPropertyInfo)(T);switch(n.includes(T)&&i.includes(o)&&!p&&(T=u("default"+g)),c[T]=E,v?.type){case e.BOOLEAN:c[T]=!0;break;case e.OVERLOADED_BOOLEAN:E===""&&(c[T]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(c[f]=E)}return(0,t.setStyleProp)(l.style,c),c}function u(l){return e.possibleStandardNames[l]}return Lr}var ni={},Rc;function ik(){if(Rc)return ni;Rc=1;var e=ni&&ni.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=s;var t=Vc(),n=e(od()),i=ud(),r={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function s(l,o){var c,p,f,E,g;o===void 0&&(o={});for(var T=[],v=typeof o.replace=="function",N=(c=o.transform)!==null&&c!==void 0?c:i.returnFirstArg,A=(p=o.library)!==null&&p!==void 0?p:r,R=A.cloneElement,w=A.createElement,U=A.isValidElement,x=l.length,m=0;m<x;m++){var S=l[m];if(v){var M=(f=o.replace)===null||f===void 0?void 0:f.call(o,S,m);if(U(M)){x>1&&(M=R(M,{key:(E=M.key)!==null&&E!==void 0?E:m})),T.push(N(M,S,m));continue}}if(S.type==="text"){var j=!S.data.trim().length;if(j&&S.parent&&!(0,i.canTextBeChildOfNode)(S.parent)||o.trim&&j)continue;T.push(N(S.data,S,m));continue}var B=S,G={};u(B)?((0,i.setStyleProp)(B.attribs.style,B.attribs),G=B.attribs):B.attribs&&(G=(0,n.default)(B.attribs,B.name));var Y=void 0;switch(S.type){case"script":case"style":S.children[0]&&(G.dangerouslySetInnerHTML={__html:S.children[0].data});break;case"tag":S.name==="textarea"&&S.children[0]?G.defaultValue=S.children[0].data:!((g=S.children)===null||g===void 0)&&g.length&&(Y=s(S.children,o));break;default:continue}x>1&&(G.key=m),T.push(N(w(S.name,G,Y),S,m))}return T.length===1?T[0]:T}function u(l){return i.PRESERVE_CUSTOM_ATTRIBUTES&&l.type==="tag"&&(0,i.isCustomComponent)(l.name,l.attribs)}return ni}var Pc;function rk(){return Pc||(Pc=1,(function(e){var t=Pi&&Pi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=l;var n=t(XS());e.htmlToDOM=n.default;var i=t(od());e.attributesToProps=i.default;var r=t(ik());e.domToReact=r.default;var s=sd();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var u={lowerCaseAttributeNames:!1};function l(o,c){var p;if(typeof o!="string")throw new TypeError("First argument must be a string");return o?(0,r.default)((0,n.default)(o,(p=c?.htmlparser2)!==null&&p!==void 0?p:u),c):[]}})(Pi)),Pi}var mt=rk();const Oc=iu(mt),sk=Oc.default||Oc;function Gu(e,t){if(e){if(e[t]&&typeof e[t]=="function")return e[t];if(e.default){if(e.default[t]&&typeof e.default[t]=="function")return e.default[t];if(typeof e.default=="function")return e.default}return typeof e=="function"?e:e.default??e}}const ak=De.lazy(()=>k(()=>Promise.resolve().then(()=>bk),void 0).then(e=>({default:Gu(e,"Tabs")}))),uk=De.lazy(()=>k(()=>Promise.resolve().then(()=>Sk),void 0).then(e=>({default:Gu(e,"PackageManagerTabs")}))),ok=De.lazy(()=>k(()=>import("./FileTabs-4fZriOj4.js"),__vite__mapDeps([103,102])).then(e=>({default:Gu(e,"FileTabs")})));function lk(e,t,n){const i=e.attribs["data-package-manager-meta"];if(i)try{const{packagesByFramework:o,mode:c}=JSON.parse(i),p=Object.keys(o);return K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(uk,{packagesByFramework:o,mode:c,frameworks:p})})}catch{}if(e.attribs["data-files-meta"])try{const o=t.tabs||[],p=e.children?.filter(f=>f instanceof mt.Element&&f.name==="md-tab-panel")?.map(f=>mt.domToReact(f.children,n));return K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(ok,{tabs:o,children:p})})}catch{}const s=t.tabs;if(!s||!Array.isArray(s))return null;const l=e.children?.filter(o=>o instanceof mt.Element&&o.name==="md-tab-panel")?.map(o=>{const c=mt.domToReact(o.children,n);return K.jsx(K.Fragment,{children:c})});return K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(ak,{tabs:s,children:l})})}function ck(e,t){if(e){if(e[t]&&typeof e[t]=="function")return e[t];if(e.default){if(e.default[t]&&typeof e.default[t]=="function")return e.default[t];if(typeof e.default=="function")return e.default}return typeof e=="function"?e:e.default??e}}const hk=De.lazy(()=>k(()=>import("./FrameworkContent-rVvjxASn.js"),__vite__mapDeps([104,102,105])).then(e=>({default:ck(e,"FrameworkContent")})));function fk(e,t,n){const i=e.attribs["data-framework-meta"];if(!i)return null;try{const{codeBlocksByFramework:r}=JSON.parse(i),s=JSON.parse(e.attribs["data-available-frameworks"]||"[]"),u=e.children?.filter(o=>o instanceof mt.Element&&o.name==="md-framework-panel"),l={};return u?.forEach(o=>{const c=o.attribs["data-framework"];c&&(l[c]=mt.domToReact(o.children,n))}),K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(hk,{codeBlocksByFramework:r,availableFrameworks:s,panelsByFramework:l})})}catch{return null}}const pk=De.memo(function({className:t,...n}){return K.jsx("span",{className:`border border-gray-500/20 bg-gray-500/10 rounded px-1 py-0.5${t?` ${t}`:""}`,...n})}),dk=De.memo(function({alt:t,src:n,className:i,children:r,...s}){return K.jsx("img",{...s,src:n,alt:t??"",className:`max-w-full h-auto rounded-lg shadow-md ${i??""}`,loading:"lazy",decoding:"async"})}),mk=({Comp:e,id:t,children:n,...i})=>{const s=De.Children.toArray(n).map(l=>De.isValidElement(l)&&(l.type==="a"||l.type===id)?l.props.children??null:l),u=K.jsx(e,{id:t,...i,children:s});return t?K.jsx("a",{href:`#${t}`,className:"anchor-heading *:scroll-my-20 *:lg:scroll-my-4",children:u}):u},ii=e=>t=>K.jsx(mk,{Comp:e,...t,className:`${t.className??""} block`}),gk=De.memo(function(t){return K.jsx("iframe",{...t,className:"w-full",title:"Embedded Content"})}),Ek={a:id,pre:nd,h1:ii("h1"),h2:ii("h2"),h3:ii("h3"),h4:ii("h4"),h5:ii("h5"),h6:ii("h6"),code:pk,iframe:gk,img:dk},Fc=new Map;function Bc(e,t){let n=Fc.get(e);return n||(n=De.lazy(t),Fc.set(e,n)),n}function ld(e){const t={replace:n=>{if(n instanceof mt.Element&&n.attribs){if(n.name==="md-comment-component"){const r=n.attribs["data-component"],s=n.attribs["data-attributes"],u={};try{Object.assign(u,JSON.parse(s))}catch{}switch(r?.toLowerCase()){case"tabs":return lk(n,u,t);case"framework":return fk(n,u,t);default:{if(r&&e?.[r]){const l=Bc(r,e[r]);return K.jsx(De.Suspense,{fallback:K.jsx("div",{}),children:K.jsx(l,{...u,children:mt.domToReact(n.children,t)})})}return K.jsx("div",{children:mt.domToReact(n.children,t)})}}}if(e?.[n.name]){const r=Bc(n.name,e[n.name]);return K.jsx(De.Suspense,{fallback:K.jsx("div",{}),children:K.jsx(r,{...mt.attributesToProps(n.attribs),children:mt.domToReact(n.children,t)})})}const i=Ek[n.name];if(i)return De.createElement(i,mt.attributesToProps(n.attribs),mt.domToReact(n.children,t))}}};return t}const _k=ld(),Mc=De.memo(function({rawContent:t,htmlMarkup:n,renderMarkdown:i,customComponents:r}){const s=De.useMemo(()=>t&&i?i(t):n?{markup:n,headings:[]}:{markup:"",headings:[]},[t,n,i]),u=De.useMemo(()=>r?ld(r):_k,[r]);return De.useMemo(()=>{if(!s.markup)return null;try{return sk(s.markup,u)}catch{return K.jsx("div",{dangerouslySetInnerHTML:{__html:s.markup}})}},[s.markup,u])});function Ok({title:e,repo:t,branch:n,filePath:i,htmlMarkup:r,rawContent:s,renderMarkdown:u,titleBarActions:l,proseClassName:o,containerRef:c,customComponents:p}){const f=r?K.jsx(Mc,{htmlMarkup:r,customComponents:p}):s?K.jsx(Mc,{rawContent:s,renderMarkdown:u,customComponents:p}):null;return K.jsxs(K.Fragment,{children:[e?K.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[K.jsx("h1",{className:"flex gap-4 items-center flex-wrap text-xl md:text-2xl font-black",children:e}),K.jsx("div",{className:"flex items-center gap-2 shrink-0",children:l})]}):null,K.jsx("div",{className:"h-4"}),K.jsx("div",{className:"h-px bg-gray-500 opacity-20"}),K.jsx("div",{className:"h-4"}),K.jsx("div",{ref:c,className:An("prose prose-gray dark:prose-invert max-w-none","[font-size:16px]","styled-markdown-content",o),children:f}),K.jsx("div",{className:"h-12"}),K.jsx("div",{className:"w-full h-px bg-gray-500 opacity-30"}),K.jsx("div",{className:"flex py-4",children:K.jsxs(Uc,{variant:"ghost",size:"xs",as:"a",href:`https://github.com/${t}/edit/${n}/${i}`,children:[K.jsx(Wd,{className:"w-3.5 h-3.5"}),"Edit on GitHub"]})})]})}function cd({tabs:e=[],children:t,activeSlug:n,onTabChange:i,frameworkOptions:r=[]}){const s=De.useId(),u=De.Children.toArray(t),o=Hc({strict:!1})?.framework??void 0,[c,p]=De.useState(()=>(o?e.find(T=>T.slug===o):void 0)?.slug??e[0]?.slug??""),f=n??c,E=De.useCallback(g=>{i?i(g):p(g)},[i]);return e.length===0?null:K.jsxs("div",{className:"my-4",children:[K.jsx("div",{className:"not-prose flex items-center justify-start gap-2 rounded-t-md border-1 border-b-none border-gray-200 dark:border-gray-800 overflow-x-auto overflow-y-hidden bg-white dark:bg-gray-950",children:e.map(g=>K.jsx(xk,{id:s,tab:g,activeSlug:f,setActiveSlug:E,frameworkOptions:r},`${s}-${g.slug}`))}),K.jsx("div",{className:"border border-gray-500/20 rounded-b-md bg-gray-100 dark:bg-gray-900",children:u.map((g,T)=>{const v=e[T];return v?K.jsx("div",{"data-tab":v.slug,hidden:v.slug!==f,className:"max-w-none flex flex-col gap-2 text-base",children:g},`${s}-${v.slug}`):null})})]})}const xk=De.memo(({tab:e,activeSlug:t,setActiveSlug:n,frameworkOptions:i=[]})=>{const r=De.useMemo(()=>i.find(s=>s.value===e.slug.toLowerCase()||s.label.toLowerCase()===e.name.toLowerCase()),[e.slug,e.name,i]);return K.jsxs("button",{"aria-label":e.name,title:e.name,type:"button",onClick:()=>n(e.slug),className:`inline-flex items-center justify-center gap-2 px-3 py-1.5 -mb-[1px] border-b-2 text-sm font-bold transition-colors hover:bg-gray-100 dark:hover:bg-gray-800 rounded-t-md overflow-y-none ${t===e.slug?"border-current text-current bg-gray-100 dark:bg-gray-900":"border-transparent text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-200"}`,children:[r&&K.jsx("img",{src:r.logo,alt:"",className:"w-4 h-4 -ml-1"}),K.jsx("span",{children:e.name})]})}),bk=Object.freeze(Object.defineProperty({__proto__:null,Tabs:cd},Symbol.toStringTag,{value:"Module"})),Rr=["npm","pnpm","yarn","bun"];function Tk(e,t,n){const i=[];if(n==="custom"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm ${s}`);break;case"pnpm":i.push(`pnpm ${s}`);break;case"yarn":i.push(`yarn ${s}`);break;case"bun":i.push(`bun ${s}`);break}}return i}if(n==="create"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm create ${s}`);break;case"pnpm":i.push(`pnpm create ${s}`);break;case"yarn":i.push(`yarn create ${s}`);break;case"bun":i.push(`bun create ${s}`);break}}return i}if(n==="local-install"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npx ${s}`);break;case"pnpm":i.push(`pnpx ${s}`);break;case"yarn":i.push(`yarn dlx ${s}`);break;case"bun":i.push(`bunx ${s}`);break}}return i}if(n==="dev-install"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm i -D ${s}`);break;case"pnpm":i.push(`pnpm add -D ${s}`);break;case"yarn":i.push(`yarn add -D ${s}`);break;case"bun":i.push(`bun add -d ${s}`);break}}return i}for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm i ${s}`);break;case"pnpm":i.push(`pnpm add ${s}`);break;case"yarn":i.push(`yarn add ${s}`);break;case"bun":i.push(`bun add ${s}`);break}}return i}const yk=zd(e=>({packageManager:typeof document<"u"&&localStorage.getItem("packageManager")||"npm",setPackageManager:t=>{localStorage.setItem("packageManager",t),e({packageManager:t})}}));function Ak(){if(!(typeof document>"u"))return localStorage.getItem("framework")||void 0}function Ck({packagesByFramework:e,mode:t}){const{packageManager:n,setPackageManager:i}=yk(),{framework:r}=Hc({strict:!1}),s=Ak(),l=(r||s||"react").toLowerCase(),o=e[l];if(!o||o.length===0)return null;const c=Rr.includes(n)?n:Rr[0],p=Rr.map(E=>({slug:E,name:E,headers:[]})),f=Rr.map(E=>{const T=Tk(E,o,t).join(`
78
+ `,c="/",p="*",f="",E="comment",g="declaration";function T(N,A){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];A=A||{};var R=1,w=1;function U(te){var ee=te.match(t);ee&&(R+=ee.length);var ce=te.lastIndexOf(o);w=~ce?te.length-ce:w+te.length}function x(){var te={line:R,column:w};return function(ee){return ee.position=new m(te),j(),ee}}function m(te){this.start=te,this.end={line:R,column:w},this.source=A.source}m.prototype.content=N;function S(te){var ee=new Error(A.source+":"+R+":"+w+": "+te);if(ee.reason=te,ee.filename=A.source,ee.line=R,ee.column=w,ee.source=N,!A.silent)throw ee}function M(te){var ee=te.exec(N);if(ee){var ce=ee[0];return U(ce),N=N.slice(ce.length),ee}}function j(){M(n)}function B(te){var ee;for(te=te||[];ee=G();)ee!==!1&&te.push(ee);return te}function G(){var te=x();if(!(c!=N.charAt(0)||p!=N.charAt(1))){for(var ee=2;f!=N.charAt(ee)&&(p!=N.charAt(ee)||c!=N.charAt(ee+1));)++ee;if(ee+=2,f===N.charAt(ee-1))return S("End of comment missing");var ce=N.slice(2,ee-2);return w+=2,U(ce),N=N.slice(ee),w+=2,te({type:E,comment:ce})}}function Y(){var te=x(),ee=M(i);if(ee){if(G(),!M(r))return S("property missing ':'");var ce=M(s),fe=te({type:g,property:v(ee[0].replace(e,f)),value:ce?v(ce[0].replace(e,f)):f});return M(u),fe}}function re(){var te=[];B(te);for(var ee;ee=Y();)ee!==!1&&(te.push(ee),B(te));return te}return j(),re()}function v(N){return N?N.replace(l,f):f}return Ca=T,Ca}var Ic;function ek(){if(Ic)return ti;Ic=1;var e=ti&&ti.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=n;const t=e(ZS());function n(i,r){let s=null;if(!i||typeof i!="string")return s;const u=(0,t.default)(i),l=typeof r=="function";return u.forEach(o=>{if(o.type!=="declaration")return;const{property:c,value:p}=o;l?r(c,p,o):p&&(s=s||{},s[c]=p)}),s}return ti}var Bi={},Dc;function tk(){if(Dc)return Bi;Dc=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,s=function(c){return!c||n.test(c)||e.test(c)},u=function(c,p){return p.toUpperCase()},l=function(c,p){return"".concat(p,"-")},o=function(c,p){return p===void 0&&(p={}),s(c)?c:(c=c.toLowerCase(),p.reactCompat?c=c.replace(r,l):c=c.replace(i,l),c.replace(t,u))};return Bi.camelCase=o,Bi}var Mi,wc;function nk(){if(wc)return Mi;wc=1;var e=Mi&&Mi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(ek()),n=tk();function i(r,s){var u={};return!r||typeof r!="string"||(0,t.default)(r,function(l,o){l&&o&&(u[(0,n.camelCase)(l,s)]=o)}),u}return i.default=i,Mi=i,Mi}var Nc;function ud(){return Nc||(Nc=1,(function(e){var t=Fi&&Fi.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=s,e.setStyleProp=l;var n=Vc(),i=t(nk()),r=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function s(p,f){return p.includes("-")?!r.has(p):!!(f&&typeof f.is=="string")}var u={reactCompat:!0};function l(p,f){if(typeof p=="string"){if(!p.trim()){f.style={};return}try{f.style=(0,i.default)(p,u)}catch{f.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var o=function(p){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(p.name)};e.canTextBeChildOfNode=o;var c=function(p){return p};e.returnFirstArg=c})(Fi)),Fi}var Lc;function od(){if(Lc)return Lr;Lc=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=s;var e=KS(),t=ud(),n=["checked","value"],i=["input","select","textarea"],r={reset:!0,submit:!0};function s(l,o){l===void 0&&(l={});var c={},p=!!(l.type&&r[l.type]);for(var f in l){var E=l[f];if((0,e.isCustomAttribute)(f)){c[f]=E;continue}var g=f.toLowerCase(),T=u(g);if(T){var v=(0,e.getPropertyInfo)(T);switch(n.includes(T)&&i.includes(o)&&!p&&(T=u("default"+g)),c[T]=E,v?.type){case e.BOOLEAN:c[T]=!0;break;case e.OVERLOADED_BOOLEAN:E===""&&(c[T]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(c[f]=E)}return(0,t.setStyleProp)(l.style,c),c}function u(l){return e.possibleStandardNames[l]}return Lr}var ni={},Rc;function ik(){if(Rc)return ni;Rc=1;var e=ni&&ni.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=s;var t=Vc(),n=e(od()),i=ud(),r={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function s(l,o){var c,p,f,E,g;o===void 0&&(o={});for(var T=[],v=typeof o.replace=="function",N=(c=o.transform)!==null&&c!==void 0?c:i.returnFirstArg,A=(p=o.library)!==null&&p!==void 0?p:r,R=A.cloneElement,w=A.createElement,U=A.isValidElement,x=l.length,m=0;m<x;m++){var S=l[m];if(v){var M=(f=o.replace)===null||f===void 0?void 0:f.call(o,S,m);if(U(M)){x>1&&(M=R(M,{key:(E=M.key)!==null&&E!==void 0?E:m})),T.push(N(M,S,m));continue}}if(S.type==="text"){var j=!S.data.trim().length;if(j&&S.parent&&!(0,i.canTextBeChildOfNode)(S.parent)||o.trim&&j)continue;T.push(N(S.data,S,m));continue}var B=S,G={};u(B)?((0,i.setStyleProp)(B.attribs.style,B.attribs),G=B.attribs):B.attribs&&(G=(0,n.default)(B.attribs,B.name));var Y=void 0;switch(S.type){case"script":case"style":S.children[0]&&(G.dangerouslySetInnerHTML={__html:S.children[0].data});break;case"tag":S.name==="textarea"&&S.children[0]?G.defaultValue=S.children[0].data:!((g=S.children)===null||g===void 0)&&g.length&&(Y=s(S.children,o));break;default:continue}x>1&&(G.key=m),T.push(N(w(S.name,G,Y),S,m))}return T.length===1?T[0]:T}function u(l){return i.PRESERVE_CUSTOM_ATTRIBUTES&&l.type==="tag"&&(0,i.isCustomComponent)(l.name,l.attribs)}return ni}var Pc;function rk(){return Pc||(Pc=1,(function(e){var t=Pi&&Pi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=l;var n=t(XS());e.htmlToDOM=n.default;var i=t(od());e.attributesToProps=i.default;var r=t(ik());e.domToReact=r.default;var s=sd();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var u={lowerCaseAttributeNames:!1};function l(o,c){var p;if(typeof o!="string")throw new TypeError("First argument must be a string");return o?(0,r.default)((0,n.default)(o,(p=c?.htmlparser2)!==null&&p!==void 0?p:u),c):[]}})(Pi)),Pi}var mt=rk();const Oc=iu(mt),sk=Oc.default||Oc;function Gu(e,t){if(e){if(e[t]&&typeof e[t]=="function")return e[t];if(e.default){if(e.default[t]&&typeof e.default[t]=="function")return e.default[t];if(typeof e.default=="function")return e.default}return typeof e=="function"?e:e.default??e}}const ak=De.lazy(()=>k(()=>Promise.resolve().then(()=>bk),void 0).then(e=>({default:Gu(e,"Tabs")}))),uk=De.lazy(()=>k(()=>Promise.resolve().then(()=>Sk),void 0).then(e=>({default:Gu(e,"PackageManagerTabs")}))),ok=De.lazy(()=>k(()=>import("./FileTabs-CCynw0nL.js"),__vite__mapDeps([103,102])).then(e=>({default:Gu(e,"FileTabs")})));function lk(e,t,n){const i=e.attribs["data-package-manager-meta"];if(i)try{const{packagesByFramework:o,mode:c}=JSON.parse(i),p=Object.keys(o);return K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(uk,{packagesByFramework:o,mode:c,frameworks:p})})}catch{}if(e.attribs["data-files-meta"])try{const o=t.tabs||[],p=e.children?.filter(f=>f instanceof mt.Element&&f.name==="md-tab-panel")?.map(f=>mt.domToReact(f.children,n));return K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(ok,{tabs:o,children:p})})}catch{}const s=t.tabs;if(!s||!Array.isArray(s))return null;const l=e.children?.filter(o=>o instanceof mt.Element&&o.name==="md-tab-panel")?.map(o=>{const c=mt.domToReact(o.children,n);return K.jsx(K.Fragment,{children:c})});return K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(ak,{tabs:s,children:l})})}function ck(e,t){if(e){if(e[t]&&typeof e[t]=="function")return e[t];if(e.default){if(e.default[t]&&typeof e.default[t]=="function")return e.default[t];if(typeof e.default=="function")return e.default}return typeof e=="function"?e:e.default??e}}const hk=De.lazy(()=>k(()=>import("./FrameworkContent-pNf68F7f.js"),__vite__mapDeps([104,102,105])).then(e=>({default:ck(e,"FrameworkContent")})));function fk(e,t,n){const i=e.attribs["data-framework-meta"];if(!i)return null;try{const{codeBlocksByFramework:r}=JSON.parse(i),s=JSON.parse(e.attribs["data-available-frameworks"]||"[]"),u=e.children?.filter(o=>o instanceof mt.Element&&o.name==="md-framework-panel"),l={};return u?.forEach(o=>{const c=o.attribs["data-framework"];c&&(l[c]=mt.domToReact(o.children,n))}),K.jsx(De.Suspense,{fallback:K.jsx("div",{children:"Loading..."}),children:K.jsx(hk,{codeBlocksByFramework:r,availableFrameworks:s,panelsByFramework:l})})}catch{return null}}const pk=De.memo(function({className:t,...n}){return K.jsx("span",{className:`border border-gray-500/20 bg-gray-500/10 rounded px-1 py-0.5${t?` ${t}`:""}`,...n})}),dk=De.memo(function({alt:t,src:n,className:i,children:r,...s}){return K.jsx("img",{...s,src:n,alt:t??"",className:`max-w-full h-auto rounded-lg shadow-md ${i??""}`,loading:"lazy",decoding:"async"})}),mk=({Comp:e,id:t,children:n,...i})=>{const s=De.Children.toArray(n).map(l=>De.isValidElement(l)&&(l.type==="a"||l.type===id)?l.props.children??null:l),u=K.jsx(e,{id:t,...i,children:s});return t?K.jsx("a",{href:`#${t}`,className:"anchor-heading *:scroll-my-20 *:lg:scroll-my-4",children:u}):u},ii=e=>t=>K.jsx(mk,{Comp:e,...t,className:`${t.className??""} block`}),gk=De.memo(function(t){return K.jsx("iframe",{...t,className:"w-full",title:"Embedded Content"})}),Ek={a:id,pre:nd,h1:ii("h1"),h2:ii("h2"),h3:ii("h3"),h4:ii("h4"),h5:ii("h5"),h6:ii("h6"),code:pk,iframe:gk,img:dk},Fc=new Map;function Bc(e,t){let n=Fc.get(e);return n||(n=De.lazy(t),Fc.set(e,n)),n}function ld(e){const t={replace:n=>{if(n instanceof mt.Element&&n.attribs){if(n.name==="md-comment-component"){const r=n.attribs["data-component"],s=n.attribs["data-attributes"],u={};try{Object.assign(u,JSON.parse(s))}catch{}switch(r?.toLowerCase()){case"tabs":return lk(n,u,t);case"framework":return fk(n,u,t);default:{if(r&&e?.[r]){const l=Bc(r,e[r]);return K.jsx(De.Suspense,{fallback:K.jsx("div",{}),children:K.jsx(l,{...u,children:mt.domToReact(n.children,t)})})}return K.jsx("div",{children:mt.domToReact(n.children,t)})}}}if(e?.[n.name]){const r=Bc(n.name,e[n.name]);return K.jsx(De.Suspense,{fallback:K.jsx("div",{}),children:K.jsx(r,{...mt.attributesToProps(n.attribs),children:mt.domToReact(n.children,t)})})}const i=Ek[n.name];if(i)return De.createElement(i,mt.attributesToProps(n.attribs),mt.domToReact(n.children,t))}}};return t}const _k=ld(),Mc=De.memo(function({rawContent:t,htmlMarkup:n,renderMarkdown:i,customComponents:r}){const s=De.useMemo(()=>t&&i?i(t):n?{markup:n,headings:[]}:{markup:"",headings:[]},[t,n,i]),u=De.useMemo(()=>r?ld(r):_k,[r]);return De.useMemo(()=>{if(!s.markup)return null;try{return sk(s.markup,u)}catch{return K.jsx("div",{dangerouslySetInnerHTML:{__html:s.markup}})}},[s.markup,u])});function Ok({title:e,repo:t,branch:n,filePath:i,htmlMarkup:r,rawContent:s,renderMarkdown:u,titleBarActions:l,proseClassName:o,containerRef:c,customComponents:p}){const f=r?K.jsx(Mc,{htmlMarkup:r,customComponents:p}):s?K.jsx(Mc,{rawContent:s,renderMarkdown:u,customComponents:p}):null;return K.jsxs(K.Fragment,{children:[e?K.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[K.jsx("h1",{className:"flex gap-4 items-center flex-wrap text-xl md:text-2xl font-black",children:e}),K.jsx("div",{className:"flex items-center gap-2 shrink-0",children:l})]}):null,K.jsx("div",{className:"h-4"}),K.jsx("div",{className:"h-px bg-gray-500 opacity-20"}),K.jsx("div",{className:"h-4"}),K.jsx("div",{ref:c,className:An("prose prose-gray dark:prose-invert max-w-none","[font-size:16px]","styled-markdown-content",o),children:f}),K.jsx("div",{className:"h-12"}),K.jsx("div",{className:"w-full h-px bg-gray-500 opacity-30"}),K.jsx("div",{className:"flex py-4",children:K.jsxs(Uc,{variant:"ghost",size:"xs",as:"a",href:`https://github.com/${t}/edit/${n}/${i}`,children:[K.jsx(Wd,{className:"w-3.5 h-3.5"}),"Edit on GitHub"]})})]})}function cd({tabs:e=[],children:t,activeSlug:n,onTabChange:i,frameworkOptions:r=[]}){const s=De.useId(),u=De.Children.toArray(t),o=Hc({strict:!1})?.framework??void 0,[c,p]=De.useState(()=>(o?e.find(T=>T.slug===o):void 0)?.slug??e[0]?.slug??""),f=n??c,E=De.useCallback(g=>{i?i(g):p(g)},[i]);return e.length===0?null:K.jsxs("div",{className:"my-4",children:[K.jsx("div",{className:"not-prose flex items-center justify-start gap-2 rounded-t-md border-1 border-b-none border-gray-200 dark:border-gray-800 overflow-x-auto overflow-y-hidden bg-white dark:bg-gray-950",children:e.map(g=>K.jsx(xk,{id:s,tab:g,activeSlug:f,setActiveSlug:E,frameworkOptions:r},`${s}-${g.slug}`))}),K.jsx("div",{className:"border border-gray-500/20 rounded-b-md bg-gray-100 dark:bg-gray-900",children:u.map((g,T)=>{const v=e[T];return v?K.jsx("div",{"data-tab":v.slug,hidden:v.slug!==f,className:"max-w-none flex flex-col gap-2 text-base",children:g},`${s}-${v.slug}`):null})})]})}const xk=De.memo(({tab:e,activeSlug:t,setActiveSlug:n,frameworkOptions:i=[]})=>{const r=De.useMemo(()=>i.find(s=>s.value===e.slug.toLowerCase()||s.label.toLowerCase()===e.name.toLowerCase()),[e.slug,e.name,i]);return K.jsxs("button",{"aria-label":e.name,title:e.name,type:"button",onClick:()=>n(e.slug),className:`inline-flex items-center justify-center gap-2 px-3 py-1.5 -mb-[1px] border-b-2 text-sm font-bold transition-colors hover:bg-gray-100 dark:hover:bg-gray-800 rounded-t-md overflow-y-none ${t===e.slug?"border-current text-current bg-gray-100 dark:bg-gray-900":"border-transparent text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-200"}`,children:[r&&K.jsx("img",{src:r.logo,alt:"",className:"w-4 h-4 -ml-1"}),K.jsx("span",{children:e.name})]})}),bk=Object.freeze(Object.defineProperty({__proto__:null,Tabs:cd},Symbol.toStringTag,{value:"Module"})),Rr=["npm","pnpm","yarn","bun"];function Tk(e,t,n){const i=[];if(n==="custom"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm ${s}`);break;case"pnpm":i.push(`pnpm ${s}`);break;case"yarn":i.push(`yarn ${s}`);break;case"bun":i.push(`bun ${s}`);break}}return i}if(n==="create"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm create ${s}`);break;case"pnpm":i.push(`pnpm create ${s}`);break;case"yarn":i.push(`yarn create ${s}`);break;case"bun":i.push(`bun create ${s}`);break}}return i}if(n==="local-install"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npx ${s}`);break;case"pnpm":i.push(`pnpx ${s}`);break;case"yarn":i.push(`yarn dlx ${s}`);break;case"bun":i.push(`bunx ${s}`);break}}return i}if(n==="dev-install"){for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm i -D ${s}`);break;case"pnpm":i.push(`pnpm add -D ${s}`);break;case"yarn":i.push(`yarn add -D ${s}`);break;case"bun":i.push(`bun add -d ${s}`);break}}return i}for(const r of t){const s=r.join(" ");switch(e){case"npm":i.push(`npm i ${s}`);break;case"pnpm":i.push(`pnpm add ${s}`);break;case"yarn":i.push(`yarn add ${s}`);break;case"bun":i.push(`bun add ${s}`);break}}return i}const yk=zd(e=>({packageManager:typeof document<"u"&&localStorage.getItem("packageManager")||"npm",setPackageManager:t=>{localStorage.setItem("packageManager",t),e({packageManager:t})}}));function Ak(){if(!(typeof document>"u"))return localStorage.getItem("framework")||void 0}function Ck({packagesByFramework:e,mode:t}){const{packageManager:n,setPackageManager:i}=yk(),{framework:r}=Hc({strict:!1}),s=Ak(),l=(r||s||"react").toLowerCase(),o=e[l];if(!o||o.length===0)return null;const c=Rr.includes(n)?n:Rr[0],p=Rr.map(E=>({slug:E,name:E,headers:[]})),f=Rr.map(E=>{const T=Tk(E,o,t).join(`
79
79
  `);return K.jsx(nd,{children:K.jsx("code",{className:"language-bash",children:T})},E)});return K.jsx("div",{className:"package-manager-tabs",children:K.jsx(cd,{tabs:p,children:f,activeSlug:c,onTabChange:E=>i(E)})})}const Sk=Object.freeze(Object.defineProperty({__proto__:null,PackageManagerTabs:Ck},Symbol.toStringTag,{value:"Module"}));De.createContext({headings:[],setHeadings:()=>{}});export{wk as B,Nk as F,Ok as M,cd as T,Ik as a,Dk as r};