@jackuait/blok 0.10.0-beta.7 → 0.10.0-beta.8

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 (290) hide show
  1. package/dist/blok.mjs +2 -2
  2. package/dist/chunks/{_basePickBy-BHRNO12X.mjs → _basePickBy-DISiGhsr.mjs} +1 -1
  3. package/dist/chunks/{_getTag-ozrhqxk_.mjs → _getTag-Aj56Wgor.mjs} +1 -1
  4. package/dist/chunks/{arc-BEqJP9HX.mjs → arc-D-pL2Ftf.mjs} +2 -2
  5. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +3 -0
  6. package/dist/chunks/{architectureDiagram-Q4EWVU46-BMno5LCn.mjs → architectureDiagram-Q4EWVU46-DS7mqjL2.mjs} +19 -19
  7. package/dist/chunks/{blockDiagram-DXYQGD6D-DlP_cPth.mjs → blockDiagram-DXYQGD6D-BTtcn4NG.mjs} +12 -12
  8. package/dist/chunks/{blok-CiLRmoHI.mjs → blok-CRvF-xVm.mjs} +1773 -1797
  9. package/dist/chunks/c-C6JXJf5K.mjs +5 -0
  10. package/dist/chunks/{c4Diagram-AHTNJAMY-BbVV8EXj.mjs → c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs} +5 -5
  11. package/dist/chunks/ccount-C9Y7nqDe.mjs +10 -0
  12. package/dist/chunks/{channel-DPcniO2B.mjs → channel-Cln-eWE0.mjs} +1 -1
  13. package/dist/chunks/{chunk-2KRD3SAO-CazES4VS.mjs → chunk-2KRD3SAO-DkM7qh-k.mjs} +1 -1
  14. package/dist/chunks/{chunk-336JU56O-heO72r_k.mjs → chunk-336JU56O-B17AtzlK.mjs} +7 -7
  15. package/dist/chunks/{chunk-426QAEUC-CmCcml1z.mjs → chunk-426QAEUC-D6UAVUog.mjs} +2 -2
  16. package/dist/chunks/{chunk-4BX2VUAB-B10DxOza.mjs → chunk-4BX2VUAB-CgIkjF7Z.mjs} +1 -1
  17. package/dist/chunks/{chunk-4TB4RGXK-B0snhZOU.mjs → chunk-4TB4RGXK-BUP4eON3.mjs} +8 -8
  18. package/dist/chunks/{chunk-55IACEB6-CGkn5ABd.mjs → chunk-55IACEB6-zZ-IgaSt.mjs} +1 -1
  19. package/dist/chunks/{chunk-5FUZZQ4R-USdumo_u.mjs → chunk-5FUZZQ4R-DsZnJYxM.mjs} +7 -7
  20. package/dist/chunks/{chunk-5PVQY5BW-CxUGVzQL.mjs → chunk-5PVQY5BW-CORl9dnu.mjs} +3 -3
  21. package/dist/chunks/{chunk-67CJDMHE-Bvw55oRa.mjs → chunk-67CJDMHE-m0UKdcSH.mjs} +1 -1
  22. package/dist/chunks/{chunk-7N4EOEYR-Bs2qDy88.mjs → chunk-7N4EOEYR-DKNajFZd.mjs} +1 -1
  23. package/dist/chunks/{chunk-AA7GKIK3-Bss0LgrN.mjs → chunk-AA7GKIK3-BeLhNzKa.mjs} +1 -1
  24. package/dist/chunks/{chunk-BSJP7CBP-CpUW7gi5.mjs → chunk-BSJP7CBP-CJExmx8a.mjs} +1 -1
  25. package/dist/chunks/{chunk-CIAEETIT-DlRbLLf3.mjs → chunk-CIAEETIT-CTikoJ19.mjs} +1 -1
  26. package/dist/chunks/{chunk-EDXVE4YY-DEcX4XWm.mjs → chunk-EDXVE4YY-DjInnnwb.mjs} +2 -2
  27. package/dist/chunks/{chunk-ENJZ2VHE-B4THRZkR.mjs → chunk-ENJZ2VHE-CIl5FRDA.mjs} +10 -10
  28. package/dist/chunks/{chunk-FMBD7UC4-CF6BKEiV.mjs → chunk-FMBD7UC4-DjV0W7UE.mjs} +1 -1
  29. package/dist/chunks/{chunk-FOC6F5B3--xuza7Yn.mjs → chunk-FOC6F5B3-LmHCCWYY.mjs} +1 -1
  30. package/dist/chunks/{chunk-ICPOFSXX-BMja8cuy.mjs → chunk-ICPOFSXX-BHZIN46A.mjs} +2 -2
  31. package/dist/chunks/{chunk-K5T4RW27-CHEqGHFS.mjs → chunk-K5T4RW27-BPZ6fFnW.mjs} +3 -3
  32. package/dist/chunks/{chunk-KGLVRYIC-DHYYpR8v.mjs → chunk-KGLVRYIC-S1OQdW76.mjs} +1 -1
  33. package/dist/chunks/{chunk-LIHQZDEY-AvbOvyLE.mjs → chunk-LIHQZDEY-CjtyJlI6.mjs} +1 -1
  34. package/dist/chunks/{chunk-ORNJ4GCN-38fbR5OS.mjs → chunk-ORNJ4GCN-CdO0hAge.mjs} +1 -1
  35. package/dist/chunks/{chunk-OYMX7WX6-BiqlATPA.mjs → chunk-OYMX7WX6-ApX8eV4o.mjs} +6 -6
  36. package/dist/chunks/{chunk-QZHKN3VN-DitZIvj8.mjs → chunk-QZHKN3VN-BGFuA6-k.mjs} +1 -1
  37. package/dist/chunks/{chunk-U2HBQHQK-DJytnHmZ.mjs → chunk-U2HBQHQK-B88ZUOTL.mjs} +3 -3
  38. package/dist/chunks/{chunk-X2U36JSP-DlOifw1K.mjs → chunk-X2U36JSP-1VS5TyCr.mjs} +2 -2
  39. package/dist/chunks/{chunk-XPW4576I-s4fsi4XO.mjs → chunk-XPW4576I-BMupdrvo.mjs} +1 -1
  40. package/dist/chunks/{chunk-YZCP3GAM-Ch258bXC.mjs → chunk-YZCP3GAM-BQ7eEsm2.mjs} +3 -3
  41. package/dist/chunks/{chunk-ZZ45TVLE-DWziaKxP.mjs → chunk-ZZ45TVLE-D1xks9zd.mjs} +3 -3
  42. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +30 -0
  43. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +30 -0
  44. package/dist/chunks/{clone-CJCz7VRp.mjs → clone-Ckjt1LtE.mjs} +1 -1
  45. package/dist/chunks/{constants-DFS8l39Y.mjs → constants-BOZ5plBi.mjs} +1 -1
  46. package/dist/chunks/core-Bm6DWt7D.mjs +4501 -0
  47. package/dist/chunks/{cose-bilkent-S5V4N54A-CzLGVqvr.mjs → cose-bilkent-S5V4N54A-Bpcs2jA_.mjs} +2 -2
  48. package/dist/chunks/cpp-BdjvAny0.mjs +16 -0
  49. package/dist/chunks/csharp-YHxeHpeH.mjs +3 -0
  50. package/dist/chunks/css-DdLevFaX.mjs +3 -0
  51. package/dist/chunks/{dagre-XY8CZ1sg.mjs → dagre-CGNbYTKq.mjs} +3 -3
  52. package/dist/chunks/{dagre-KV5264BT-XbHSjleO.mjs → dagre-KV5264BT-DUD9ikgN.mjs} +15 -15
  53. package/dist/chunks/dart-DrPWqfcC.mjs +3 -0
  54. package/dist/chunks/{diagram-5BDNPKRD-CM7c3UTI.mjs → diagram-5BDNPKRD-CZGfTYEe.mjs} +18 -18
  55. package/dist/chunks/{diagram-G4DWMVQ6-Bhg4ps6b.mjs → diagram-G4DWMVQ6-CuS0-h95.mjs} +21 -21
  56. package/dist/chunks/{diagram-MMDJMWI5-C-UCVaxB.mjs → diagram-MMDJMWI5-C-AEApYz.mjs} +17 -17
  57. package/dist/chunks/{diagram-TYMM5635-BOHSujSD.mjs → diagram-TYMM5635-CiwAJVMq.mjs} +17 -17
  58. package/dist/chunks/dockerfile-C68ALcaN.mjs +3 -0
  59. package/dist/chunks/engine-javascript-CJpnSvzf.mjs +2373 -0
  60. package/dist/chunks/{erDiagram-SMLLAGMA-CwKxXFMB.mjs → erDiagram-SMLLAGMA-DeH5yck2.mjs} +14 -14
  61. package/dist/chunks/{flowDiagram-DWJPFMVM-rQJKfyuO.mjs → flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs} +17 -17
  62. package/dist/chunks/{ganttDiagram-T4ZO3ILL-DfaZirLX.mjs → ganttDiagram-T4ZO3ILL-K-divBg_.mjs} +7 -7
  63. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +3 -0
  64. package/dist/chunks/{gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs → gitGraphDiagram-UUTBAWPF-UytPZv72.mjs} +17 -17
  65. package/dist/chunks/go-Fm5N96DN.mjs +3 -0
  66. package/dist/chunks/{graphlib-CuDElSdG.mjs → graphlib-Cye9EPNq.mjs} +1 -1
  67. package/dist/chunks/graphql-BSnqmqgO.mjs +11 -0
  68. package/dist/chunks/html-BLNeZvnp.mjs +10 -0
  69. package/dist/chunks/{i18next-loader-CasQQb5s.mjs → i18next-loader-CwsYu0n6.mjs} +1 -1
  70. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +3 -0
  71. package/dist/chunks/{infoDiagram-42DDH7IO-CvyJU2nE.mjs → infoDiagram-42DDH7IO-DuYnDbF3.mjs} +14 -14
  72. package/dist/chunks/{ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs → ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs} +6 -6
  73. package/dist/chunks/java-83DWBpzu.mjs +5 -0
  74. package/dist/chunks/javascript-CBgeF1Xx.mjs +3 -0
  75. package/dist/chunks/{journeyDiagram-VCZTEJTY-H96UcUK9.mjs → journeyDiagram-VCZTEJTY-CD25C4_n.mjs} +6 -6
  76. package/dist/chunks/json-BI17y-1H.mjs +3 -0
  77. package/dist/chunks/{kanban-definition-6JOO6SKY-BYZT3srA.mjs → kanban-definition-6JOO6SKY-CTCT6N_p.mjs} +11 -11
  78. package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
  79. package/dist/chunks/latex-24n3TcOR.mjs +5 -0
  80. package/dist/chunks/{line-B9xUUA7k.mjs → line-Dct5pMmw.mjs} +3 -3
  81. package/dist/chunks/{linear-Dj-1yA_B.mjs → linear-BRCpMvtr.mjs} +3 -3
  82. package/dist/chunks/lua-DV0fuZWx.mjs +5 -0
  83. package/dist/chunks/markdown-BqQYT45f.mjs +3 -0
  84. package/dist/chunks/{mdast-util-math-CHYUxOHk.mjs → mdast-util-math-BlK2Zu-1.mjs} +1 -1
  85. package/dist/chunks/{mermaid-parser.core-D6OPAUtM.mjs → mermaid-parser.core-CA3DKkuk.mjs} +10 -10
  86. package/dist/chunks/mermaid-vF0cEnZ0.mjs +3 -0
  87. package/dist/chunks/{mermaid.core-BPN9ZHKQ.mjs → mermaid.core-CA8nc1sZ.mjs} +45 -45
  88. package/dist/chunks/{micromark-extension-math-Cz_ZZ_0Y.mjs → micromark-extension-math-BbkUb36G.mjs} +2 -2
  89. package/dist/chunks/{mindmap-definition-QFDTVHPH-BswFuNN6.mjs → mindmap-definition-QFDTVHPH-hNnyBkEP.mjs} +13 -13
  90. package/dist/chunks/objectWithoutProperties-D0XxKB4n.mjs +23 -0
  91. package/dist/chunks/one-light-DmNO_Y4X.mjs +4 -0
  92. package/dist/chunks/{ordinal-D1_lEgAO.mjs → ordinal-B-kolV-i.mjs} +1 -1
  93. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +3 -0
  94. package/dist/chunks/php-DmXKyPwJ.mjs +18 -0
  95. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +3 -0
  96. package/dist/chunks/{pieDiagram-DEJITSTG-1WJgvK1w.mjs → pieDiagram-DEJITSTG-Gw-fsc6U.mjs} +21 -21
  97. package/dist/chunks/python-DfwfY9t5.mjs +3 -0
  98. package/dist/chunks/{quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs → quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs} +4 -4
  99. package/dist/chunks/r-BD2D7qEW.mjs +5 -0
  100. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +3 -0
  101. package/dist/chunks/{requirementDiagram-MS252O5E-DRl0YJRI.mjs → requirementDiagram-MS252O5E-DjWKB42c.mjs} +13 -13
  102. package/dist/chunks/ruby-DdOo03Kg.mjs +33 -0
  103. package/dist/chunks/rust-DEDueB5R.mjs +3 -0
  104. package/dist/chunks/{sankeyDiagram-XADWPNL6-B-8IrknH.mjs → sankeyDiagram-XADWPNL6-BIN2evSB.mjs} +3 -3
  105. package/dist/chunks/scala-CsjqvxE4.mjs +3 -0
  106. package/dist/chunks/{sequenceDiagram-FGHM5R23-DTLb8qmO.mjs → sequenceDiagram-FGHM5R23-CQz2lMoS.mjs} +7 -7
  107. package/dist/chunks/shellscript-Bh5zEpnQ.mjs +3 -0
  108. package/dist/chunks/sql-D9CrOi1i.mjs +3 -0
  109. package/dist/chunks/{stateDiagram-FHFEXIEX-B0JFjLFy.mjs → stateDiagram-FHFEXIEX-BIBFsF65.mjs} +17 -17
  110. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +28 -0
  111. package/dist/chunks/swift-Dpyt0s2c.mjs +3 -0
  112. package/dist/chunks/{timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs → timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs} +6 -6
  113. package/dist/chunks/{tools-CSYsrnud.mjs → tools-CnqCfv2L.mjs} +101 -101
  114. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +3 -0
  115. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +3 -0
  116. package/dist/chunks/typescript-DO5cd4m8.mjs +5 -0
  117. package/dist/chunks/{vennDiagram-DHZGUBPP-0BNu5Wna.mjs → vennDiagram-DHZGUBPP-B0DmLQqe.mjs} +6 -6
  118. package/dist/chunks/vitesse-dark-CcorSKT2.mjs +4 -0
  119. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +3 -0
  120. package/dist/chunks/{wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs → wardleyDiagram-NUSXRM2D-CzoKesUw.mjs} +15 -15
  121. package/dist/chunks/xml-g8kXXALs.mjs +5 -0
  122. package/dist/chunks/{xychartDiagram-5P7HB3ND-C8AyKUAE.mjs → xychartDiagram-5P7HB3ND-CixwR8r2.mjs} +11 -11
  123. package/dist/chunks/yaml-CrNNZyLb.mjs +3 -0
  124. package/dist/full.mjs +3 -3
  125. package/dist/markdown.mjs +384 -392
  126. package/dist/react.mjs +26 -25
  127. package/dist/tools.mjs +2 -2
  128. package/dist/vendor.LICENSE.txt +841 -49
  129. package/package.json +2 -6
  130. package/src/components/modules/api/ui.ts +0 -3
  131. package/src/styles/main.css +5 -1
  132. package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +0 -3
  133. package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +0 -30
  134. package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +0 -30
  135. package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +0 -3
  136. package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +0 -3
  137. package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +0 -3
  138. package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +0 -3
  139. package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +0 -3
  140. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +0 -28
  141. package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +0 -3
  142. package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +0 -3
  143. package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +0 -3
  144. /package/dist/chunks/{_baseUniq-DtFPDBML.mjs → _baseUniq-gAuHRtRF.mjs} +0 -0
  145. /package/dist/chunks/{am-rVzV1W41.mjs → am-BxlkYGsI.mjs} +0 -0
  146. /package/dist/chunks/{ar-C710lkoH.mjs → ar-9vlpr9V8.mjs} +0 -0
  147. /package/dist/chunks/{array-Cyf-61SV.mjs → array-BsrkCVSZ.mjs} +0 -0
  148. /package/dist/chunks/{az-BOp1pgua.mjs → az-ON63W_FP.mjs} +0 -0
  149. /package/dist/chunks/{bg-CL9p09ZD.mjs → bg-CtXWTP5w.mjs} +0 -0
  150. /package/dist/chunks/{bn-CNmSeyAy.mjs → bn-BERvhXM4.mjs} +0 -0
  151. /package/dist/chunks/{bs-BRzMGqzk.mjs → bs-CBg8NVPG.mjs} +0 -0
  152. /package/dist/chunks/{cs-BYPBLmnF.mjs → cs-DeQddxS7.mjs} +0 -0
  153. /package/dist/chunks/{cytoscape.esm-D0iglm-M.mjs → cytoscape.esm-BvD8wo00.mjs} +0 -0
  154. /package/dist/chunks/{da-CBC_LR1c.mjs → da-DyTo-ec_.mjs} +0 -0
  155. /package/dist/chunks/{de-DxRFMoAj.mjs → de-Cu7545m1.mjs} +0 -0
  156. /package/dist/chunks/{default-DIfXCS2E.mjs → default-qigT1Xpq.mjs} +0 -0
  157. /package/dist/chunks/{defaultLocale-DFhS1600.mjs → defaultLocale-ChuSeAxU.mjs} +0 -0
  158. /package/dist/chunks/{dist-DHsXIYdd.mjs → dist-Ctq-pyfb.mjs} +0 -0
  159. /package/dist/chunks/{el-Bk6YbySf.mjs → el-oiubLRBq.mjs} +0 -0
  160. /package/dist/chunks/{es-DpT3FCMR.mjs → es-DZUC6Klv.mjs} +0 -0
  161. /package/dist/chunks/{et-DE9Dr_g9.mjs → et-CDeklAog.mjs} +0 -0
  162. /package/dist/chunks/{fa-Banj1QUE.mjs → fa-Cafp7_Li.mjs} +0 -0
  163. /package/dist/chunks/{fi-DfN3M5ER.mjs → fi-BD_V_aVW.mjs} +0 -0
  164. /package/dist/chunks/{fil-DbCsRS1d.mjs → fil-Crsfbtx4.mjs} +0 -0
  165. /package/dist/chunks/{fr-D1clKhgt.mjs → fr-BGGc04Zv.mjs} +0 -0
  166. /package/dist/chunks/{gu-1CsZyRwT.mjs → gu-Vg_BgCTp.mjs} +0 -0
  167. /package/dist/chunks/{he-qQdnL6eK.mjs → he-DTY9chlZ.mjs} +0 -0
  168. /package/dist/chunks/{hi-DxM0Nff1.mjs → hi-DChMXk0x.mjs} +0 -0
  169. /package/dist/chunks/{hr-Onldyi-u.mjs → hr-BWVgNU8k.mjs} +0 -0
  170. /package/dist/chunks/{hu-CAn3pBuY.mjs → hu-B37awHXA.mjs} +0 -0
  171. /package/dist/chunks/{hy-D43q7NxE.mjs → hy-DGC_GDHh.mjs} +0 -0
  172. /package/dist/chunks/{i18next-BBGW2sDE.mjs → i18next-CXx5niYF.mjs} +0 -0
  173. /package/dist/chunks/{id-Xrw5Dd0Y.mjs → id-V7cw6La2.mjs} +0 -0
  174. /package/dist/chunks/{init-JlKGZtuT.mjs → init-C6T-mugb.mjs} +0 -0
  175. /package/dist/chunks/{it-CA9ZDMSc.mjs → it-DrTGP8Rn.mjs} +0 -0
  176. /package/dist/chunks/{ja-D0J6WRFh.mjs → ja-DS4pbJEG.mjs} +0 -0
  177. /package/dist/chunks/{ka-BZL7xDuY.mjs → ka-BueyosRh.mjs} +0 -0
  178. /package/dist/chunks/{katex-JyOgX6MW.mjs → katex-CmTPfM0f.mjs} +0 -0
  179. /package/dist/chunks/{km-BimgQZVU.mjs → km-B0K891yW.mjs} +0 -0
  180. /package/dist/chunks/{kn-C2n2cPHK.mjs → kn-BQ__skg8.mjs} +0 -0
  181. /package/dist/chunks/{ko-n4Cn93D3.mjs → ko-BuPxi_7e.mjs} +0 -0
  182. /package/dist/chunks/{ku-BYZCgT44.mjs → ku-nQjwPRw2.mjs} +0 -0
  183. /package/dist/chunks/{lo-DVXiAE4N.mjs → lo-K5NVFoq1.mjs} +0 -0
  184. /package/dist/chunks/{lt-B9KlQFnY.mjs → lt-D3xD6Eb2.mjs} +0 -0
  185. /package/dist/chunks/{lv-BINeOdyx.mjs → lv-DH13mzZj.mjs} +0 -0
  186. /package/dist/chunks/{messages-DgZc9TJw.mjs → messages-8IHf7ZP3.mjs} +0 -0
  187. /package/dist/chunks/{messages-DBFWSzKY2.mjs → messages-A_MkXDlG.mjs} +0 -0
  188. /package/dist/chunks/{messages-BtAwCUfD.mjs → messages-B0vPBsWq.mjs} +0 -0
  189. /package/dist/chunks/{messages-4uxjtzKW.mjs → messages-B2N4fUi72.mjs} +0 -0
  190. /package/dist/chunks/{messages-Bb3YEV2P.mjs → messages-B4UMuyjT.mjs} +0 -0
  191. /package/dist/chunks/{messages-BUUkmUGc.mjs → messages-B9kmbUWV.mjs} +0 -0
  192. /package/dist/chunks/{messages-Cw4qiMwb.mjs → messages-BA8Iv99Y2.mjs} +0 -0
  193. /package/dist/chunks/{messages-CiAHsUfO.mjs → messages-BAsb5CgZ.mjs} +0 -0
  194. /package/dist/chunks/{messages-a1JTi0Qm.mjs → messages-BDZA10kl2.mjs} +0 -0
  195. /package/dist/chunks/{messages-USmweex9.mjs → messages-BE6lHKwf.mjs} +0 -0
  196. /package/dist/chunks/{messages-tnnqHpbd.mjs → messages-BQYvBqm2.mjs} +0 -0
  197. /package/dist/chunks/{messages-BOj-7N3p.mjs → messages-BSghd0ez.mjs} +0 -0
  198. /package/dist/chunks/{messages-BevRhv5d.mjs → messages-BUVhHx0q2.mjs} +0 -0
  199. /package/dist/chunks/{messages-CGOY79lr.mjs → messages-BVjoM7P0.mjs} +0 -0
  200. /package/dist/chunks/{messages-BRYHTS18.mjs → messages-BXM80fdr2.mjs} +0 -0
  201. /package/dist/chunks/{messages-B1ylBxXQ.mjs → messages-BYlSMRkd.mjs} +0 -0
  202. /package/dist/chunks/{messages-Cuzq-tNW.mjs → messages-BYxLFj7y.mjs} +0 -0
  203. /package/dist/chunks/{messages-DC0wu2S7.mjs → messages-BeFqtIrc2.mjs} +0 -0
  204. /package/dist/chunks/{messages-DQUX-QYI2.mjs → messages-Bfnq1xv4.mjs} +0 -0
  205. /package/dist/chunks/{messages-CFOZdSk4.mjs → messages-BhzzNkN-.mjs} +0 -0
  206. /package/dist/chunks/{messages-CJJgQ0BH.mjs → messages-BjadX8jR2.mjs} +0 -0
  207. /package/dist/chunks/{messages-BvHMZ8Pi2.mjs → messages-Bp8qin1R.mjs} +0 -0
  208. /package/dist/chunks/{messages-BSBbVjor.mjs → messages-Bphq_Bt3.mjs} +0 -0
  209. /package/dist/chunks/{messages-0Uwu1AMJ2.mjs → messages-Bxvi1ebN.mjs} +0 -0
  210. /package/dist/chunks/{messages-C68WgSKk.mjs → messages-C0HvoMPb.mjs} +0 -0
  211. /package/dist/chunks/{messages-Bx6Wt285.mjs → messages-C3aX3q0H.mjs} +0 -0
  212. /package/dist/chunks/{messages-D-I2QO8H.mjs → messages-C6Mpiacw.mjs} +0 -0
  213. /package/dist/chunks/{messages-DKjddpzJ.mjs → messages-C7VGpihw.mjs} +0 -0
  214. /package/dist/chunks/{messages-DMvTdUXC.mjs → messages-CKBhDGI3.mjs} +0 -0
  215. /package/dist/chunks/{messages-BqYlq_Bn.mjs → messages-COO5xmcA.mjs} +0 -0
  216. /package/dist/chunks/{messages-jcgCHPRn.mjs → messages-CSJ_zb3a2.mjs} +0 -0
  217. /package/dist/chunks/{messages-D4eDs6R_.mjs → messages-CSL-6xfb2.mjs} +0 -0
  218. /package/dist/chunks/{messages--YKhFEDE.mjs → messages-CVdpweyf2.mjs} +0 -0
  219. /package/dist/chunks/{messages-Bhqr7Im2.mjs → messages-Cdf0W9H02.mjs} +0 -0
  220. /package/dist/chunks/{messages-1__0Ph4Q.mjs → messages-Ck81cQkn2.mjs} +0 -0
  221. /package/dist/chunks/{messages-CTD6rtQj2.mjs → messages-Cmf6NhSC.mjs} +0 -0
  222. /package/dist/chunks/{messages-BC9w4zAT.mjs → messages-Cs81Z_Bh.mjs} +0 -0
  223. /package/dist/chunks/{messages-BpJFjSKa.mjs → messages-Cu-Wevxs2.mjs} +0 -0
  224. /package/dist/chunks/{messages-CZymJML9.mjs → messages-D3zojZ94.mjs} +0 -0
  225. /package/dist/chunks/{messages-DF9o19rG.mjs → messages-D55HRx5O2.mjs} +0 -0
  226. /package/dist/chunks/{messages-DGS4H30T.mjs → messages-D9N2MvQx2.mjs} +0 -0
  227. /package/dist/chunks/{messages-D9Xr-hES.mjs → messages-DG-4DPmP.mjs} +0 -0
  228. /package/dist/chunks/{messages-BzslJRYv.mjs → messages-DGL1ySqb2.mjs} +0 -0
  229. /package/dist/chunks/{messages-B6n2zDtv.mjs → messages-DJoNVjqP.mjs} +0 -0
  230. /package/dist/chunks/{messages-CfeFJbiv.mjs → messages-DMVXnAYj.mjs} +0 -0
  231. /package/dist/chunks/{messages-C02M0Tpw.mjs → messages-DOuS1Qge.mjs} +0 -0
  232. /package/dist/chunks/{messages-Cgatzu_z.mjs → messages-DWu1r4gc2.mjs} +0 -0
  233. /package/dist/chunks/{messages-Be_6YLzJ.mjs → messages-DlLXpgWM2.mjs} +0 -0
  234. /package/dist/chunks/{messages-B-SwLgkQ.mjs → messages-DlonA3wa.mjs} +0 -0
  235. /package/dist/chunks/{messages-DFS_n986.mjs → messages-Dr0Ekmbz.mjs} +0 -0
  236. /package/dist/chunks/{messages-DfVXiqt-2.mjs → messages-DzTk8bJ5.mjs} +0 -0
  237. /package/dist/chunks/{messages-Bw1BE9jW.mjs → messages-FWfsxpBz.mjs} +0 -0
  238. /package/dist/chunks/{messages-Ch2zBI602.mjs → messages-G416eyjY.mjs} +0 -0
  239. /package/dist/chunks/{messages-vzWKPLJO.mjs → messages-Je5YvxiY.mjs} +0 -0
  240. /package/dist/chunks/{messages-C1u3E9qg.mjs → messages-JyvWu4rf2.mjs} +0 -0
  241. /package/dist/chunks/{messages-DUigq8FO2.mjs → messages-KdawW5Na.mjs} +0 -0
  242. /package/dist/chunks/{messages-D1BKxfLD.mjs → messages-MxpWO1db.mjs} +0 -0
  243. /package/dist/chunks/{messages-4sm9Pb0C.mjs → messages-NEqrrYvE2.mjs} +0 -0
  244. /package/dist/chunks/{messages-D9eJPHia.mjs → messages-RInp1ytX.mjs} +0 -0
  245. /package/dist/chunks/{messages-Cyh-mz40.mjs → messages-TRUuyiFB.mjs} +0 -0
  246. /package/dist/chunks/{messages-D0D2gruy.mjs → messages-aZcy0JQq2.mjs} +0 -0
  247. /package/dist/chunks/{messages-DY0FJdpH.mjs → messages-iS34FHFB.mjs} +0 -0
  248. /package/dist/chunks/{messages-B5m3dhKc.mjs → messages-ihCjSFJI2.mjs} +0 -0
  249. /package/dist/chunks/{messages-CGaSMZPu.mjs → messages-jfVpL9c-2.mjs} +0 -0
  250. /package/dist/chunks/{messages-Bthbp65G.mjs → messages-p1mbe__S.mjs} +0 -0
  251. /package/dist/chunks/{messages-C8w8JCP0.mjs → messages-rCd0Rrw6.mjs} +0 -0
  252. /package/dist/chunks/{messages-QD4BCUDP.mjs → messages-xuqyb6Ff2.mjs} +0 -0
  253. /package/dist/chunks/{micromark-factory-space-WwmyBO_J.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
  254. /package/dist/chunks/{mk-_-QrPrLN.mjs → mk-Bb48BcDA.mjs} +0 -0
  255. /package/dist/chunks/{ml-KvJSC1KT.mjs → ml-BHPEj1kD.mjs} +0 -0
  256. /package/dist/chunks/{mn-CjFjWnRG.mjs → mn-BNGzpdI6.mjs} +0 -0
  257. /package/dist/chunks/{mr-DqAZ7FRX.mjs → mr-D5PgU-cH.mjs} +0 -0
  258. /package/dist/chunks/{ms-BZcV4UG_.mjs → ms-DPkxqKz5.mjs} +0 -0
  259. /package/dist/chunks/{my-97SC9jYN.mjs → my-DZGcyfxy.mjs} +0 -0
  260. /package/dist/chunks/{native-CzYG0YgY.mjs → native-D0cfLXsM.mjs} +0 -0
  261. /package/dist/chunks/{ne-Bs-M2TyF.mjs → ne-BU_Wh4Wv.mjs} +0 -0
  262. /package/dist/chunks/{nl-2ZwQilo-.mjs → nl-DtAPk1mK.mjs} +0 -0
  263. /package/dist/chunks/{no-fOQTpFq1.mjs → no-CdW3n3BY.mjs} +0 -0
  264. /package/dist/chunks/{notifier-B1zCi9G1.mjs → notifier-CuvTt9pe.mjs} +0 -0
  265. /package/dist/chunks/{pa-DLOqkMi0.mjs → pa-BacCHz87.mjs} +0 -0
  266. /package/dist/chunks/{path-6nYPAvNb.mjs → path-rIMjg_tH.mjs} +0 -0
  267. /package/dist/chunks/{pl-FYs9QrXU.mjs → pl-8zBJbmhZ.mjs} +0 -0
  268. /package/dist/chunks/{ps-CTXe6pSe.mjs → ps-c6nGXD-W.mjs} +0 -0
  269. /package/dist/chunks/{pt-B1X4x7d1.mjs → pt-B5yR8Qhr.mjs} +0 -0
  270. /package/dist/chunks/{ro-Bf7S2FaR.mjs → ro-Nscylsqb.mjs} +0 -0
  271. /package/dist/chunks/{rough.esm-CSWJruu5.mjs → rough.esm-cmMIcj7N.mjs} +0 -0
  272. /package/dist/chunks/{ru-B8lqnu_j.mjs → ru-DxERQkVJ.mjs} +0 -0
  273. /package/dist/chunks/{sd-CHRYJm2r.mjs → sd-5z-QY3q9.mjs} +0 -0
  274. /package/dist/chunks/{si-CI0Hs6vH.mjs → si-DTL0mzrx.mjs} +0 -0
  275. /package/dist/chunks/{sk-Bdvq1Kb_.mjs → sk-DrGczTvY.mjs} +0 -0
  276. /package/dist/chunks/{sl-B_qiFTV5.mjs → sl-D8nJjig4.mjs} +0 -0
  277. /package/dist/chunks/{sq-E0j1hysP.mjs → sq-C74Hm3YL.mjs} +0 -0
  278. /package/dist/chunks/{sr-VPpVNTZw.mjs → sr-DAwB05Gj.mjs} +0 -0
  279. /package/dist/chunks/{src-CRgEHLPW.mjs → src-DVJl6f6s.mjs} +0 -0
  280. /package/dist/chunks/{sv-gKmDSR3d.mjs → sv-BkHBsN4y.mjs} +0 -0
  281. /package/dist/chunks/{sw-zeFLiO23.mjs → sw-BBQLTq_z.mjs} +0 -0
  282. /package/dist/chunks/{ta-Ci-j89hR.mjs → ta-DRRzdKky.mjs} +0 -0
  283. /package/dist/chunks/{te-qyMI0M7a.mjs → te-CedXLsKM.mjs} +0 -0
  284. /package/dist/chunks/{th-DPxHtpdb.mjs → th-DDOlGA0W.mjs} +0 -0
  285. /package/dist/chunks/{tr-CRV6GS-G.mjs → tr-ClgvwOlL.mjs} +0 -0
  286. /package/dist/chunks/{ug-DW0YFpo5.mjs → ug-bXxwiinM.mjs} +0 -0
  287. /package/dist/chunks/{uk-ssteuphK.mjs → uk-Dp46o_VT.mjs} +0 -0
  288. /package/dist/chunks/{ur-qhY3-jY7.mjs → ur-MfEEhdFq.mjs} +0 -0
  289. /package/dist/chunks/{vi-CHriMMC8.mjs → vi-bt-3LPGO.mjs} +0 -0
  290. /package/dist/chunks/{zh-BJktawVN.mjs → zh-Dgyb5Ly8.mjs} +0 -0
@@ -0,0 +1,4501 @@
1
+ import { r as e } from "./chunk-D6kmoKXy.mjs";
2
+ import { n as t, t as n } from "./objectSpread2-CWwMYL_U.mjs";
3
+ import { t as r } from "./objectWithoutProperties-D0XxKB4n.mjs";
4
+ import { t as i } from "./ccount-C9Y7nqDe.mjs";
5
+ //#region node_modules/zwitch/index.js
6
+ var a = {}.hasOwnProperty;
7
+ function o(e, t) {
8
+ let n = t || {};
9
+ function r(t, ...n) {
10
+ let i = r.invalid, o = r.handlers;
11
+ if (t && a.call(t, e)) {
12
+ let n = String(t[e]);
13
+ i = a.call(o, n) ? o[n] : r.unknown;
14
+ }
15
+ if (i) return i.call(this, t, ...n);
16
+ }
17
+ return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
18
+ }
19
+ //#endregion
20
+ //#region node_modules/@shikijs/types/dist/index.mjs
21
+ var s = class extends Error {
22
+ constructor(e) {
23
+ super(e), this.name = "ShikiError";
24
+ }
25
+ }, c, l;
26
+ function u(e) {
27
+ return d(e);
28
+ }
29
+ function d(e) {
30
+ return Array.isArray(e) ? f(e) : e instanceof RegExp ? e : typeof e == "object" ? p(e) : e;
31
+ }
32
+ function f(e) {
33
+ let t = [];
34
+ for (let n = 0, r = e.length; n < r; n++) t[n] = d(e[n]);
35
+ return t;
36
+ }
37
+ function p(e) {
38
+ let t = {};
39
+ for (let n in e) t[n] = d(e[n]);
40
+ return t;
41
+ }
42
+ function m(e, ...t) {
43
+ return t.forEach((t) => {
44
+ for (let n in t) e[n] = t[n];
45
+ }), e;
46
+ }
47
+ function h(e) {
48
+ let t = ~e.lastIndexOf("/") || ~e.lastIndexOf("\\");
49
+ return t === 0 ? e : ~t === e.length - 1 ? h(e.substring(0, e.length - 1)) : e.substr(~t + 1);
50
+ }
51
+ var g = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, _ = class {
52
+ static hasCaptures(e) {
53
+ return e === null ? !1 : (g.lastIndex = 0, g.test(e));
54
+ }
55
+ static replaceCaptures(e, t, n) {
56
+ return e.replace(g, (e, r, i, a) => {
57
+ let o = n[parseInt(r || i, 10)];
58
+ if (o) {
59
+ let e = t.substring(o.start, o.end);
60
+ for (; e[0] === ".";) e = e.substring(1);
61
+ switch (a) {
62
+ case "downcase": return e.toLowerCase();
63
+ case "upcase": return e.toUpperCase();
64
+ default: return e;
65
+ }
66
+ } else return e;
67
+ });
68
+ }
69
+ };
70
+ function v(e, t) {
71
+ return e < t ? -1 : e > t ? 1 : 0;
72
+ }
73
+ function y(e, t) {
74
+ if (e === null && t === null) return 0;
75
+ if (!e) return -1;
76
+ if (!t) return 1;
77
+ let n = e.length, r = t.length;
78
+ if (n === r) {
79
+ for (let r = 0; r < n; r++) {
80
+ let n = v(e[r], t[r]);
81
+ if (n !== 0) return n;
82
+ }
83
+ return 0;
84
+ }
85
+ return n - r;
86
+ }
87
+ function ee(e) {
88
+ 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));
89
+ }
90
+ function te(e) {
91
+ return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
92
+ }
93
+ var ne = class {
94
+ constructor(e) {
95
+ t(this, "cache", /* @__PURE__ */ new Map()), this.fn = e;
96
+ }
97
+ get(e) {
98
+ if (this.cache.has(e)) return this.cache.get(e);
99
+ let t = this.fn(e);
100
+ return this.cache.set(e, t), t;
101
+ }
102
+ }, b = class {
103
+ constructor(e, n, r) {
104
+ t(this, "_cachedMatchRoot", new ne((e) => this._root.match(e))), this._colorMap = e, this._defaults = n, this._root = r;
105
+ }
106
+ static createFromRawTheme(e, t) {
107
+ return this.createFromParsedTheme(se(e), t);
108
+ }
109
+ static createFromParsedTheme(e, t) {
110
+ return le(e, t);
111
+ }
112
+ getColorMap() {
113
+ return this._colorMap.getColorMap();
114
+ }
115
+ getDefaults() {
116
+ return this._defaults;
117
+ }
118
+ match(e) {
119
+ if (e === null) return this._defaults;
120
+ let t = e.scopeName, n = this._cachedMatchRoot.get(t).find((t) => ie(e.parent, t.parentScopes));
121
+ return n ? new oe(n.fontStyle, n.foreground, n.background) : null;
122
+ }
123
+ }, re = class e {
124
+ constructor(e, t) {
125
+ this.parent = e, this.scopeName = t;
126
+ }
127
+ static push(t, n) {
128
+ for (let r of n) t = new e(t, r);
129
+ return t;
130
+ }
131
+ static from(...t) {
132
+ let n = null;
133
+ for (let r = 0; r < t.length; r++) n = new e(n, t[r]);
134
+ return n;
135
+ }
136
+ push(t) {
137
+ return new e(this, t);
138
+ }
139
+ getSegments() {
140
+ let e = this, t = [];
141
+ for (; e;) t.push(e.scopeName), e = e.parent;
142
+ return t.reverse(), t;
143
+ }
144
+ toString() {
145
+ return this.getSegments().join(" ");
146
+ }
147
+ extends(e) {
148
+ return this === e ? !0 : this.parent === null ? !1 : this.parent.extends(e);
149
+ }
150
+ getExtensionIfDefined(e) {
151
+ let t = [], n = this;
152
+ for (; n && n !== e;) t.push(n.scopeName), n = n.parent;
153
+ return n === e ? t.reverse() : void 0;
154
+ }
155
+ };
156
+ function ie(e, t) {
157
+ if (t.length === 0) return !0;
158
+ for (let n = 0; n < t.length; n++) {
159
+ let r = t[n], i = !1;
160
+ if (r === ">") {
161
+ if (n === t.length - 1) return !1;
162
+ r = t[++n], i = !0;
163
+ }
164
+ for (; e && !ae(e.scopeName, r);) {
165
+ if (i) return !1;
166
+ e = e.parent;
167
+ }
168
+ if (!e) return !1;
169
+ e = e.parent;
170
+ }
171
+ return !0;
172
+ }
173
+ function ae(e, t) {
174
+ return t === e || e.startsWith(t) && e[t.length] === ".";
175
+ }
176
+ var oe = class {
177
+ constructor(e, t, n) {
178
+ this.fontStyle = e, this.foregroundId = t, this.backgroundId = n;
179
+ }
180
+ };
181
+ function se(e) {
182
+ if (!e || !e.settings || !Array.isArray(e.settings)) return [];
183
+ let t = e.settings, n = [], r = 0;
184
+ for (let e = 0, i = t.length; e < i; e++) {
185
+ let i = t[e];
186
+ if (!i.settings) continue;
187
+ let a;
188
+ if (typeof i.scope == "string") {
189
+ let e = i.scope;
190
+ e = e.replace(/^[,]+/, ""), e = e.replace(/[,]+$/, ""), a = e.split(",");
191
+ } else a = Array.isArray(i.scope) ? i.scope : [""];
192
+ let o = -1;
193
+ if (typeof i.settings.fontStyle == "string") {
194
+ o = 0;
195
+ let e = i.settings.fontStyle.split(" ");
196
+ for (let t = 0, n = e.length; t < n; t++) switch (e[t]) {
197
+ case "italic":
198
+ o |= 1;
199
+ break;
200
+ case "bold":
201
+ o |= 2;
202
+ break;
203
+ case "underline":
204
+ o |= 4;
205
+ break;
206
+ case "strikethrough":
207
+ o |= 8;
208
+ break;
209
+ }
210
+ }
211
+ let s = null;
212
+ typeof i.settings.foreground == "string" && ee(i.settings.foreground) && (s = i.settings.foreground);
213
+ let c = null;
214
+ typeof i.settings.background == "string" && ee(i.settings.background) && (c = i.settings.background);
215
+ for (let t = 0, i = a.length; t < i; t++) {
216
+ let i = a[t].trim().split(" "), l = i[i.length - 1], u = null;
217
+ i.length > 1 && (u = i.slice(0, i.length - 1), u.reverse()), n[r++] = new ce(l, u, e, o, s, c);
218
+ }
219
+ }
220
+ return n;
221
+ }
222
+ var ce = class {
223
+ constructor(e, t, n, r, i, a) {
224
+ this.scope = e, this.parentScopes = t, this.index = n, this.fontStyle = r, this.foreground = i, this.background = a;
225
+ }
226
+ }, x = /* @__PURE__ */ ((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))(x || {});
227
+ function le(e, t) {
228
+ e.sort((e, t) => {
229
+ let n = v(e.scope, t.scope);
230
+ return n !== 0 || (n = y(e.parentScopes, t.parentScopes), n !== 0) ? n : e.index - t.index;
231
+ });
232
+ let n = 0, r = "#000000", i = "#ffffff";
233
+ for (; e.length >= 1 && e[0].scope === "";) {
234
+ let t = e.shift();
235
+ t.fontStyle !== -1 && (n = t.fontStyle), t.foreground !== null && (r = t.foreground), t.background !== null && (i = t.background);
236
+ }
237
+ let a = new ue(t), o = new oe(n, a.getId(r), a.getId(i)), s = new pe(new fe(0, null, -1, 0, 0), []);
238
+ for (let t = 0, n = e.length; t < n; t++) {
239
+ let n = e[t];
240
+ s.insert(0, n.scope, n.parentScopes, n.fontStyle, a.getId(n.foreground), a.getId(n.background));
241
+ }
242
+ return new b(a, o, s);
243
+ }
244
+ var ue = class {
245
+ constructor(e) {
246
+ if (t(this, "_isFrozen", void 0), t(this, "_lastColorId", void 0), t(this, "_id2color", void 0), t(this, "_color2id", void 0), this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(e)) {
247
+ this._isFrozen = !0;
248
+ for (let t = 0, n = e.length; t < n; t++) this._color2id[e[t]] = t, this._id2color[t] = e[t];
249
+ } else this._isFrozen = !1;
250
+ }
251
+ getId(e) {
252
+ if (e === null) return 0;
253
+ e = e.toUpperCase();
254
+ let t = this._color2id[e];
255
+ if (t) return t;
256
+ if (this._isFrozen) throw Error(`Missing color in color map - ${e}`);
257
+ return t = ++this._lastColorId, this._color2id[e] = t, this._id2color[t] = e, t;
258
+ }
259
+ getColorMap() {
260
+ return this._id2color.slice(0);
261
+ }
262
+ }, de = Object.freeze([]), fe = class e {
263
+ constructor(e, n, r, i, a) {
264
+ t(this, "scopeDepth", void 0), t(this, "parentScopes", void 0), t(this, "fontStyle", void 0), t(this, "foreground", void 0), t(this, "background", void 0), this.scopeDepth = e, this.parentScopes = n || de, this.fontStyle = r, this.foreground = i, this.background = a;
265
+ }
266
+ clone() {
267
+ return new e(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
268
+ }
269
+ static cloneArr(e) {
270
+ let t = [];
271
+ for (let n = 0, r = e.length; n < r; n++) t[n] = e[n].clone();
272
+ return t;
273
+ }
274
+ acceptOverwrite(e, t, n, r) {
275
+ this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, t !== -1 && (this.fontStyle = t), n !== 0 && (this.foreground = n), r !== 0 && (this.background = r);
276
+ }
277
+ }, pe = class e {
278
+ constructor(e, n = [], r = {}) {
279
+ t(this, "_rulesWithParentScopes", void 0), this._mainRule = e, this._children = r, this._rulesWithParentScopes = n;
280
+ }
281
+ static _cmpBySpecificity(e, t) {
282
+ if (e.scopeDepth !== t.scopeDepth) return t.scopeDepth - e.scopeDepth;
283
+ let n = 0, r = 0;
284
+ for (; e.parentScopes[n] === ">" && n++, t.parentScopes[r] === ">" && r++, !(n >= e.parentScopes.length || r >= t.parentScopes.length);) {
285
+ let i = t.parentScopes[r].length - e.parentScopes[n].length;
286
+ if (i !== 0) return i;
287
+ n++, r++;
288
+ }
289
+ return t.parentScopes.length - e.parentScopes.length;
290
+ }
291
+ match(t) {
292
+ if (t !== "") {
293
+ let e = t.indexOf("."), n, r;
294
+ if (e === -1 ? (n = t, r = "") : (n = t.substring(0, e), r = t.substring(e + 1)), this._children.hasOwnProperty(n)) return this._children[n].match(r);
295
+ }
296
+ let n = this._rulesWithParentScopes.concat(this._mainRule);
297
+ return n.sort(e._cmpBySpecificity), n;
298
+ }
299
+ insert(t, n, r, i, a, o) {
300
+ if (n === "") {
301
+ this._doInsertHere(t, r, i, a, o);
302
+ return;
303
+ }
304
+ let s = n.indexOf("."), c, l;
305
+ s === -1 ? (c = n, l = "") : (c = n.substring(0, s), l = n.substring(s + 1));
306
+ let u;
307
+ this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(), fe.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(t + 1, l, r, i, a, o);
308
+ }
309
+ _doInsertHere(e, t, n, r, i) {
310
+ if (t === null) {
311
+ this._mainRule.acceptOverwrite(e, n, r, i);
312
+ return;
313
+ }
314
+ for (let a = 0, o = this._rulesWithParentScopes.length; a < o; a++) {
315
+ let o = this._rulesWithParentScopes[a];
316
+ if (y(o.parentScopes, t) === 0) {
317
+ o.acceptOverwrite(e, n, r, i);
318
+ return;
319
+ }
320
+ }
321
+ n === -1 && (n = this._mainRule.fontStyle), r === 0 && (r = this._mainRule.foreground), i === 0 && (i = this._mainRule.background), this._rulesWithParentScopes.push(new fe(e, t, n, r, i));
322
+ }
323
+ }, S = class e {
324
+ static toBinaryStr(e) {
325
+ return e.toString(2).padStart(32, "0");
326
+ }
327
+ static print(t) {
328
+ let n = e.getLanguageId(t), r = e.getTokenType(t), i = e.getFontStyle(t), a = e.getForeground(t), o = e.getBackground(t);
329
+ console.log({
330
+ languageId: n,
331
+ tokenType: r,
332
+ fontStyle: i,
333
+ foreground: a,
334
+ background: o
335
+ });
336
+ }
337
+ static getLanguageId(e) {
338
+ return (e & 255) >>> 0;
339
+ }
340
+ static getTokenType(e) {
341
+ return (e & 768) >>> 8;
342
+ }
343
+ static containsBalancedBrackets(e) {
344
+ return (e & 1024) != 0;
345
+ }
346
+ static getFontStyle(e) {
347
+ return (e & 30720) >>> 11;
348
+ }
349
+ static getForeground(e) {
350
+ return (e & 16744448) >>> 15;
351
+ }
352
+ static getBackground(e) {
353
+ return (e & 4278190080) >>> 24;
354
+ }
355
+ static set(t, n, r, i, a, o, s) {
356
+ let c = e.getLanguageId(t), l = e.getTokenType(t), u = e.containsBalancedBrackets(t) ? 1 : 0, d = e.getFontStyle(t), f = e.getForeground(t), p = e.getBackground(t);
357
+ return n !== 0 && (c = n), r !== 8 && (l = he(r)), i !== null && (u = i ? 1 : 0), a !== -1 && (d = a), o !== 0 && (f = o), s !== 0 && (p = s), (c << 0 | l << 8 | u << 10 | d << 11 | f << 15 | p << 24) >>> 0;
358
+ }
359
+ };
360
+ function me(e) {
361
+ return e;
362
+ }
363
+ function he(e) {
364
+ return e;
365
+ }
366
+ function C(e, t) {
367
+ let n = [], r = _e(e), i = r.next();
368
+ for (; i !== null;) {
369
+ let e = 0;
370
+ if (i.length === 2 && i.charAt(1) === ":") {
371
+ switch (i.charAt(0)) {
372
+ case "R":
373
+ e = 1;
374
+ break;
375
+ case "L":
376
+ e = -1;
377
+ break;
378
+ default: console.log(`Unknown priority ${i} in scope selector`);
379
+ }
380
+ i = r.next();
381
+ }
382
+ let t = o();
383
+ if (n.push({
384
+ matcher: t,
385
+ priority: e
386
+ }), i !== ",") break;
387
+ i = r.next();
388
+ }
389
+ return n;
390
+ function a() {
391
+ if (i === "-") {
392
+ i = r.next();
393
+ let e = a();
394
+ return (t) => !!e && !e(t);
395
+ }
396
+ if (i === "(") {
397
+ i = r.next();
398
+ let e = s();
399
+ return i === ")" && (i = r.next()), e;
400
+ }
401
+ if (ge(i)) {
402
+ let e = [];
403
+ do
404
+ e.push(i), i = r.next();
405
+ while (ge(i));
406
+ return (n) => t(e, n);
407
+ }
408
+ return null;
409
+ }
410
+ function o() {
411
+ let e = [], t = a();
412
+ for (; t;) e.push(t), t = a();
413
+ return (t) => e.every((e) => e(t));
414
+ }
415
+ function s() {
416
+ let e = [], t = o();
417
+ for (; t && (e.push(t), i === "|" || i === ",");) {
418
+ do
419
+ i = r.next();
420
+ while (i === "|" || i === ",");
421
+ t = o();
422
+ }
423
+ return (t) => e.some((e) => e(t));
424
+ }
425
+ }
426
+ function ge(e) {
427
+ return !!e && !!e.match(/[\w\.:]+/);
428
+ }
429
+ function _e(e) {
430
+ let t = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g, n = t.exec(e);
431
+ return { next: () => {
432
+ if (!n) return null;
433
+ let r = n[0];
434
+ return n = t.exec(e), r;
435
+ } };
436
+ }
437
+ function ve(e) {
438
+ typeof e.dispose == "function" && e.dispose();
439
+ }
440
+ var w = class {
441
+ constructor(e) {
442
+ this.scopeName = e;
443
+ }
444
+ toKey() {
445
+ return this.scopeName;
446
+ }
447
+ }, ye = class {
448
+ constructor(e, t) {
449
+ this.scopeName = e, this.ruleName = t;
450
+ }
451
+ toKey() {
452
+ return `${this.scopeName}#${this.ruleName}`;
453
+ }
454
+ }, be = class {
455
+ constructor() {
456
+ t(this, "_references", []), t(this, "_seenReferenceKeys", /* @__PURE__ */ new Set()), t(this, "visitedRule", /* @__PURE__ */ new Set());
457
+ }
458
+ get references() {
459
+ return this._references;
460
+ }
461
+ add(e) {
462
+ let t = e.toKey();
463
+ this._seenReferenceKeys.has(t) || (this._seenReferenceKeys.add(t), this._references.push(e));
464
+ }
465
+ }, xe = class {
466
+ constructor(e, n) {
467
+ t(this, "seenFullScopeRequests", /* @__PURE__ */ new Set()), t(this, "seenPartialScopeRequests", /* @__PURE__ */ new Set()), t(this, "Q", void 0), this.repo = e, this.initialScopeName = n, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new w(this.initialScopeName)];
468
+ }
469
+ processQueue() {
470
+ let e = this.Q;
471
+ this.Q = [];
472
+ let t = new be();
473
+ for (let n of e) Se(n, this.initialScopeName, this.repo, t);
474
+ for (let e of t.references) if (e instanceof w) {
475
+ if (this.seenFullScopeRequests.has(e.scopeName)) continue;
476
+ this.seenFullScopeRequests.add(e.scopeName), this.Q.push(e);
477
+ } else {
478
+ if (this.seenFullScopeRequests.has(e.scopeName) || this.seenPartialScopeRequests.has(e.toKey())) continue;
479
+ this.seenPartialScopeRequests.add(e.toKey()), this.Q.push(e);
480
+ }
481
+ }
482
+ };
483
+ function Se(e, t, n, r) {
484
+ let i = n.lookup(e.scopeName);
485
+ if (!i) {
486
+ if (e.scopeName === t) throw Error(`No grammar provided for <${t}>`);
487
+ return;
488
+ }
489
+ let a = n.lookup(t);
490
+ e instanceof w ? we({
491
+ baseGrammar: a,
492
+ selfGrammar: i
493
+ }, r) : Ce(e.ruleName, {
494
+ baseGrammar: a,
495
+ selfGrammar: i,
496
+ repository: i.repository
497
+ }, r);
498
+ let o = n.injections(e.scopeName);
499
+ if (o) for (let e of o) r.add(new w(e));
500
+ }
501
+ function Ce(e, t, n) {
502
+ if (t.repository && t.repository[e]) {
503
+ let r = t.repository[e];
504
+ Te([r], t, n);
505
+ }
506
+ }
507
+ function we(e, t) {
508
+ e.selfGrammar.patterns && Array.isArray(e.selfGrammar.patterns) && Te(e.selfGrammar.patterns, n(n({}, e), {}, { repository: e.selfGrammar.repository }), t), e.selfGrammar.injections && Te(Object.values(e.selfGrammar.injections), n(n({}, e), {}, { repository: e.selfGrammar.repository }), t);
509
+ }
510
+ function Te(e, t, r) {
511
+ for (let i of e) {
512
+ if (r.visitedRule.has(i)) continue;
513
+ r.visitedRule.add(i);
514
+ let e = i.repository ? m({}, t.repository, i.repository) : t.repository;
515
+ Array.isArray(i.patterns) && Te(i.patterns, n(n({}, t), {}, { repository: e }), r);
516
+ let a = i.include;
517
+ if (!a) continue;
518
+ let o = je(a);
519
+ switch (o.kind) {
520
+ case 0:
521
+ we(n(n({}, t), {}, { selfGrammar: t.baseGrammar }), r);
522
+ break;
523
+ case 1:
524
+ we(t, r);
525
+ break;
526
+ case 2:
527
+ Ce(o.ruleName, n(n({}, t), {}, { repository: e }), r);
528
+ break;
529
+ case 3:
530
+ case 4:
531
+ let i = o.scopeName === t.selfGrammar.scopeName ? t.selfGrammar : o.scopeName === t.baseGrammar.scopeName ? t.baseGrammar : void 0;
532
+ if (i) {
533
+ let n = {
534
+ baseGrammar: t.baseGrammar,
535
+ selfGrammar: i,
536
+ repository: e
537
+ };
538
+ o.kind === 4 ? Ce(o.ruleName, n, r) : we(n, r);
539
+ } else o.kind === 4 ? r.add(new ye(o.scopeName, o.ruleName)) : r.add(new w(o.scopeName));
540
+ break;
541
+ }
542
+ }
543
+ }
544
+ var Ee = class {
545
+ constructor() {
546
+ t(this, "kind", 0);
547
+ }
548
+ }, De = class {
549
+ constructor() {
550
+ t(this, "kind", 1);
551
+ }
552
+ }, Oe = class {
553
+ constructor(e) {
554
+ t(this, "kind", 2), this.ruleName = e;
555
+ }
556
+ }, ke = class {
557
+ constructor(e) {
558
+ t(this, "kind", 3), this.scopeName = e;
559
+ }
560
+ }, Ae = class {
561
+ constructor(e, n) {
562
+ t(this, "kind", 4), this.scopeName = e, this.ruleName = n;
563
+ }
564
+ };
565
+ function je(e) {
566
+ if (e === "$base") return new Ee();
567
+ if (e === "$self") return new De();
568
+ let t = e.indexOf("#");
569
+ return t === -1 ? new ke(e) : t === 0 ? new Oe(e.substring(1)) : new Ae(e.substring(0, t), e.substring(t + 1));
570
+ }
571
+ var Me = /\\(\d+)/, Ne = /\\(\d+)/g, Pe = -1, Fe = -2;
572
+ function Ie(e) {
573
+ return e;
574
+ }
575
+ function Le(e) {
576
+ return e;
577
+ }
578
+ var T = class {
579
+ constructor(e, n, r, i) {
580
+ t(this, "$location", void 0), t(this, "id", void 0), t(this, "_nameIsCapturing", void 0), t(this, "_name", void 0), t(this, "_contentNameIsCapturing", void 0), t(this, "_contentName", void 0), this.$location = e, this.id = n, this._name = r || null, this._nameIsCapturing = _.hasCaptures(this._name), this._contentName = i || null, this._contentNameIsCapturing = _.hasCaptures(this._contentName);
581
+ }
582
+ get debugName() {
583
+ let e = this.$location ? `${h(this.$location.filename)}:${this.$location.line}` : "unknown";
584
+ return `${this.constructor.name}#${this.id} @ ${e}`;
585
+ }
586
+ getName(e, t) {
587
+ return !this._nameIsCapturing || this._name === null || e === null || t === null ? this._name : _.replaceCaptures(this._name, e, t);
588
+ }
589
+ getContentName(e, t) {
590
+ return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : _.replaceCaptures(this._contentName, e, t);
591
+ }
592
+ }, Re = class extends T {
593
+ constructor(e, n, r, i, a) {
594
+ super(e, n, r, i), t(this, "retokenizeCapturedWithRuleId", void 0), this.retokenizeCapturedWithRuleId = a;
595
+ }
596
+ dispose() {}
597
+ collectPatterns(e, t) {
598
+ throw Error("Not supported!");
599
+ }
600
+ compile(e, t) {
601
+ throw Error("Not supported!");
602
+ }
603
+ compileAG(e, t, n, r) {
604
+ throw Error("Not supported!");
605
+ }
606
+ }, ze = class extends T {
607
+ constructor(e, n, r, i, a) {
608
+ super(e, n, r, null), t(this, "_match", void 0), t(this, "captures", void 0), t(this, "_cachedCompiledPatterns", void 0), this._match = new D(i, this.id), this.captures = a, this._cachedCompiledPatterns = null;
609
+ }
610
+ dispose() {
611
+ this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
612
+ }
613
+ get debugMatchRegExp() {
614
+ return `${this._match.source}`;
615
+ }
616
+ collectPatterns(e, t) {
617
+ t.push(this._match);
618
+ }
619
+ compile(e, t) {
620
+ return this._getCachedCompiledPatterns(e).compile(e);
621
+ }
622
+ compileAG(e, t, n, r) {
623
+ return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
624
+ }
625
+ _getCachedCompiledPatterns(e) {
626
+ return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new O(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
627
+ }
628
+ }, Be = class extends T {
629
+ constructor(e, n, r, i, a) {
630
+ super(e, n, r, i), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), this.patterns = a.patterns, this.hasMissingPatterns = a.hasMissingPatterns, this._cachedCompiledPatterns = null;
631
+ }
632
+ dispose() {
633
+ this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
634
+ }
635
+ collectPatterns(e, t) {
636
+ for (let n of this.patterns) e.getRule(n).collectPatterns(e, t);
637
+ }
638
+ compile(e, t) {
639
+ return this._getCachedCompiledPatterns(e).compile(e);
640
+ }
641
+ compileAG(e, t, n, r) {
642
+ return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
643
+ }
644
+ _getCachedCompiledPatterns(e) {
645
+ return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new O(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
646
+ }
647
+ }, Ve = class extends T {
648
+ constructor(e, n, r, i, a, o, s, c, l, u) {
649
+ super(e, n, r, i), t(this, "_begin", void 0), t(this, "beginCaptures", void 0), t(this, "_end", void 0), t(this, "endHasBackReferences", void 0), t(this, "endCaptures", void 0), t(this, "applyEndPatternLast", void 0), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), this._begin = new D(a, this.id), this.beginCaptures = o, this._end = new D(s || "￿", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = c, this.applyEndPatternLast = l || !1, this.patterns = u.patterns, this.hasMissingPatterns = u.hasMissingPatterns, this._cachedCompiledPatterns = null;
650
+ }
651
+ dispose() {
652
+ this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
653
+ }
654
+ get debugBeginRegExp() {
655
+ return `${this._begin.source}`;
656
+ }
657
+ get debugEndRegExp() {
658
+ return `${this._end.source}`;
659
+ }
660
+ getEndWithResolvedBackReferences(e, t) {
661
+ return this._end.resolveBackReferences(e, t);
662
+ }
663
+ collectPatterns(e, t) {
664
+ t.push(this._begin);
665
+ }
666
+ compile(e, t) {
667
+ return this._getCachedCompiledPatterns(e, t).compile(e);
668
+ }
669
+ compileAG(e, t, n, r) {
670
+ return this._getCachedCompiledPatterns(e, t).compileAG(e, n, r);
671
+ }
672
+ _getCachedCompiledPatterns(e, t) {
673
+ if (!this._cachedCompiledPatterns) {
674
+ this._cachedCompiledPatterns = new O();
675
+ for (let t of this.patterns) e.getRule(t).collectPatterns(e, this._cachedCompiledPatterns);
676
+ this.applyEndPatternLast ? this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end) : this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
677
+ }
678
+ return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, t) : this._cachedCompiledPatterns.setSource(0, t)), this._cachedCompiledPatterns;
679
+ }
680
+ }, E = class extends T {
681
+ constructor(e, n, r, i, a, o, s, c, l) {
682
+ super(e, n, r, i), t(this, "_begin", void 0), t(this, "beginCaptures", void 0), t(this, "whileCaptures", void 0), t(this, "_while", void 0), t(this, "whileHasBackReferences", void 0), t(this, "hasMissingPatterns", void 0), t(this, "patterns", void 0), t(this, "_cachedCompiledPatterns", void 0), t(this, "_cachedCompiledWhilePatterns", void 0), this._begin = new D(a, this.id), this.beginCaptures = o, this.whileCaptures = c, this._while = new D(s, Fe), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
683
+ }
684
+ dispose() {
685
+ this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null), this._cachedCompiledWhilePatterns && (this._cachedCompiledWhilePatterns.dispose(), this._cachedCompiledWhilePatterns = null);
686
+ }
687
+ get debugBeginRegExp() {
688
+ return `${this._begin.source}`;
689
+ }
690
+ get debugWhileRegExp() {
691
+ return `${this._while.source}`;
692
+ }
693
+ getWhileWithResolvedBackReferences(e, t) {
694
+ return this._while.resolveBackReferences(e, t);
695
+ }
696
+ collectPatterns(e, t) {
697
+ t.push(this._begin);
698
+ }
699
+ compile(e, t) {
700
+ return this._getCachedCompiledPatterns(e).compile(e);
701
+ }
702
+ compileAG(e, t, n, r) {
703
+ return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
704
+ }
705
+ _getCachedCompiledPatterns(e) {
706
+ if (!this._cachedCompiledPatterns) {
707
+ this._cachedCompiledPatterns = new O();
708
+ for (let t of this.patterns) e.getRule(t).collectPatterns(e, this._cachedCompiledPatterns);
709
+ }
710
+ return this._cachedCompiledPatterns;
711
+ }
712
+ compileWhile(e, t) {
713
+ return this._getCachedCompiledWhilePatterns(e, t).compile(e);
714
+ }
715
+ compileWhileAG(e, t, n, r) {
716
+ return this._getCachedCompiledWhilePatterns(e, t).compileAG(e, n, r);
717
+ }
718
+ _getCachedCompiledWhilePatterns(e, t) {
719
+ return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new O(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, t || "￿"), this._cachedCompiledWhilePatterns;
720
+ }
721
+ }, He = class e {
722
+ static createCaptureRule(e, t, n, r, i) {
723
+ return e.registerRule((e) => new Re(t, e, n, r, i));
724
+ }
725
+ static getCompiledRuleId(t, n, r) {
726
+ return t.id || n.registerRule((i) => {
727
+ if (t.id = i, t.match) return new ze(t.$vscodeTextmateLocation, t.id, t.name, t.match, e._compileCaptures(t.captures, n, r));
728
+ if (t.begin === void 0) {
729
+ t.repository && (r = m({}, r, t.repository));
730
+ let i = t.patterns;
731
+ return i === void 0 && t.include && (i = [{ include: t.include }]), new Be(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, e._compilePatterns(i, n, r));
732
+ }
733
+ return t.while ? new E(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, t.begin, e._compileCaptures(t.beginCaptures || t.captures, n, r), t.while, e._compileCaptures(t.whileCaptures || t.captures, n, r), e._compilePatterns(t.patterns, n, r)) : new Ve(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, t.begin, e._compileCaptures(t.beginCaptures || t.captures, n, r), t.end, e._compileCaptures(t.endCaptures || t.captures, n, r), t.applyEndPatternLast, e._compilePatterns(t.patterns, n, r));
734
+ }), t.id;
735
+ }
736
+ static _compileCaptures(t, n, r) {
737
+ let i = [];
738
+ if (t) {
739
+ let a = 0;
740
+ for (let e in t) {
741
+ if (e === "$vscodeTextmateLocation") continue;
742
+ let t = parseInt(e, 10);
743
+ t > a && (a = t);
744
+ }
745
+ for (let e = 0; e <= a; e++) i[e] = null;
746
+ for (let a in t) {
747
+ if (a === "$vscodeTextmateLocation") continue;
748
+ let o = parseInt(a, 10), s = 0;
749
+ t[a].patterns && (s = e.getCompiledRuleId(t[a], n, r)), i[o] = e.createCaptureRule(n, t[a].$vscodeTextmateLocation, t[a].name, t[a].contentName, s);
750
+ }
751
+ }
752
+ return i;
753
+ }
754
+ static _compilePatterns(t, n, r) {
755
+ let i = [];
756
+ if (t) for (let a = 0, o = t.length; a < o; a++) {
757
+ let o = t[a], s = -1;
758
+ if (o.include) {
759
+ let t = je(o.include);
760
+ switch (t.kind) {
761
+ case 0:
762
+ case 1:
763
+ s = e.getCompiledRuleId(r[o.include], n, r);
764
+ break;
765
+ case 2:
766
+ let i = r[t.ruleName];
767
+ i && (s = e.getCompiledRuleId(i, n, r));
768
+ break;
769
+ case 3:
770
+ case 4:
771
+ let a = t.scopeName, c = t.kind === 4 ? t.ruleName : null, l = n.getExternalGrammar(a, r);
772
+ if (l) if (c) {
773
+ let t = l.repository[c];
774
+ t && (s = e.getCompiledRuleId(t, n, l.repository));
775
+ } else s = e.getCompiledRuleId(l.repository.$self, n, l.repository);
776
+ break;
777
+ }
778
+ } else s = e.getCompiledRuleId(o, n, r);
779
+ if (s !== -1) {
780
+ let e = n.getRule(s), t = !1;
781
+ if ((e instanceof Be || e instanceof Ve || e instanceof E) && e.hasMissingPatterns && e.patterns.length === 0 && (t = !0), t) continue;
782
+ i.push(s);
783
+ }
784
+ }
785
+ return {
786
+ patterns: i,
787
+ hasMissingPatterns: (t ? t.length : 0) !== i.length
788
+ };
789
+ }
790
+ }, D = class e {
791
+ constructor(e, n) {
792
+ if (t(this, "source", void 0), t(this, "ruleId", void 0), t(this, "hasAnchor", void 0), t(this, "hasBackReferences", void 0), t(this, "_anchorCache", void 0), e && typeof e == "string") {
793
+ let t = e.length, n = 0, r = [], i = !1;
794
+ for (let a = 0; a < t; a++) if (e.charAt(a) === "\\" && a + 1 < t) {
795
+ let t = e.charAt(a + 1);
796
+ t === "z" ? (r.push(e.substring(n, a)), r.push("$(?!\\n)(?<!\\n)"), n = a + 2) : (t === "A" || t === "G") && (i = !0), a++;
797
+ }
798
+ this.hasAnchor = i, n === 0 ? this.source = e : (r.push(e.substring(n, t)), this.source = r.join(""));
799
+ } else this.hasAnchor = !1, this.source = e;
800
+ this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = n, typeof this.source == "string" ? this.hasBackReferences = Me.test(this.source) : this.hasBackReferences = !1;
801
+ }
802
+ clone() {
803
+ return new e(this.source, this.ruleId);
804
+ }
805
+ setSource(e) {
806
+ this.source !== e && (this.source = e, this.hasAnchor && (this._anchorCache = this._buildAnchorCache()));
807
+ }
808
+ resolveBackReferences(e, t) {
809
+ if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
810
+ let n = t.map((t) => e.substring(t.start, t.end));
811
+ return Ne.lastIndex = 0, this.source.replace(Ne, (e, t) => te(n[parseInt(t, 10)] || ""));
812
+ }
813
+ _buildAnchorCache() {
814
+ if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
815
+ let e = [], t = [], n = [], r = [], i, a, o, s;
816
+ for (i = 0, a = this.source.length; i < a; i++) o = this.source.charAt(i), e[i] = o, t[i] = o, n[i] = o, r[i] = o, o === "\\" && i + 1 < a && (s = this.source.charAt(i + 1), s === "A" ? (e[i + 1] = "￿", t[i + 1] = "￿", n[i + 1] = "A", r[i + 1] = "A") : s === "G" ? (e[i + 1] = "￿", t[i + 1] = "G", n[i + 1] = "￿", r[i + 1] = "G") : (e[i + 1] = s, t[i + 1] = s, n[i + 1] = s, r[i + 1] = s), i++);
817
+ return {
818
+ A0_G0: e.join(""),
819
+ A0_G1: t.join(""),
820
+ A1_G0: n.join(""),
821
+ A1_G1: r.join("")
822
+ };
823
+ }
824
+ resolveAnchors(e, t) {
825
+ return !this.hasAnchor || !this._anchorCache || typeof this.source != "string" ? this.source : e ? t ? this._anchorCache.A1_G1 : this._anchorCache.A1_G0 : t ? this._anchorCache.A0_G1 : this._anchorCache.A0_G0;
826
+ }
827
+ }, O = class {
828
+ constructor() {
829
+ t(this, "_items", void 0), t(this, "_hasAnchors", void 0), t(this, "_cached", void 0), t(this, "_anchorCache", void 0), this._items = [], this._hasAnchors = !1, this._cached = null, this._anchorCache = {
830
+ A0_G0: null,
831
+ A0_G1: null,
832
+ A1_G0: null,
833
+ A1_G1: null
834
+ };
835
+ }
836
+ dispose() {
837
+ this._disposeCaches();
838
+ }
839
+ _disposeCaches() {
840
+ 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);
841
+ }
842
+ push(e) {
843
+ this._items.push(e), this._hasAnchors = this._hasAnchors || e.hasAnchor;
844
+ }
845
+ unshift(e) {
846
+ this._items.unshift(e), this._hasAnchors = this._hasAnchors || e.hasAnchor;
847
+ }
848
+ length() {
849
+ return this._items.length;
850
+ }
851
+ setSource(e, t) {
852
+ this._items[e].source !== t && (this._disposeCaches(), this._items[e].setSource(t));
853
+ }
854
+ compile(e) {
855
+ return this._cached || (this._cached = new Ue(e, this._items.map((e) => e.source), this._items.map((e) => e.ruleId))), this._cached;
856
+ }
857
+ compileAG(e, t, n) {
858
+ 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);
859
+ }
860
+ _resolveAnchors(e, t, n) {
861
+ return new Ue(e, this._items.map((e) => e.resolveAnchors(t, n)), this._items.map((e) => e.ruleId));
862
+ }
863
+ }, Ue = class {
864
+ constructor(e, n, r) {
865
+ t(this, "scanner", void 0), this.regExps = n, this.rules = r, this.scanner = e.createOnigScanner(n);
866
+ }
867
+ dispose() {
868
+ typeof this.scanner.dispose == "function" && this.scanner.dispose();
869
+ }
870
+ toString() {
871
+ let e = [];
872
+ for (let t = 0, n = this.rules.length; t < n; t++) e.push(" - " + this.rules[t] + ": " + this.regExps[t]);
873
+ return e.join("\n");
874
+ }
875
+ findNextMatchSync(e, t, n) {
876
+ let r = this.scanner.findNextMatchSync(e, t, n);
877
+ return r ? {
878
+ ruleId: this.rules[r.index],
879
+ captureIndices: r.captureIndices
880
+ } : null;
881
+ }
882
+ }, We = class {
883
+ constructor(e, t) {
884
+ this.languageId = e, this.tokenType = t;
885
+ }
886
+ }, Ge = (c = class e {
887
+ constructor(e, n) {
888
+ t(this, "_defaultAttributes", void 0), t(this, "_embeddedLanguagesMatcher", void 0), t(this, "_getBasicScopeAttributes", new ne((e) => new We(this._scopeToLanguage(e), this._toStandardTokenType(e)))), this._defaultAttributes = new We(e, 8), this._embeddedLanguagesMatcher = new Ke(Object.entries(n || {}));
889
+ }
890
+ getDefaultAttributes() {
891
+ return this._defaultAttributes;
892
+ }
893
+ getBasicScopeAttributes(t) {
894
+ return t === null ? e._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(t);
895
+ }
896
+ _scopeToLanguage(e) {
897
+ return this._embeddedLanguagesMatcher.match(e) || 0;
898
+ }
899
+ _toStandardTokenType(t) {
900
+ let n = t.match(e.STANDARD_TOKEN_TYPE_REGEXP);
901
+ if (!n) return 8;
902
+ switch (n[1]) {
903
+ case "comment": return 1;
904
+ case "string": return 2;
905
+ case "regex": return 3;
906
+ case "meta.embedded": return 0;
907
+ }
908
+ throw Error("Unexpected match for standard token type!");
909
+ }
910
+ }, t(c, "_NULL_SCOPE_METADATA", new We(0, 0)), t(c, "STANDARD_TOKEN_TYPE_REGEXP", /\b(comment|string|regex|meta\.embedded)\b/), c), Ke = class {
911
+ constructor(e) {
912
+ if (t(this, "values", void 0), t(this, "scopesRegExp", void 0), e.length === 0) this.values = null, this.scopesRegExp = null;
913
+ else {
914
+ this.values = new Map(e);
915
+ let t = e.map(([e, t]) => te(e));
916
+ t.sort(), t.reverse(), this.scopesRegExp = RegExp(`^((${t.join(")|(")}))($|\\.)`, "");
917
+ }
918
+ }
919
+ match(e) {
920
+ if (!this.scopesRegExp) return;
921
+ let t = e.match(this.scopesRegExp);
922
+ if (t) return this.values.get(t[1]);
923
+ }
924
+ };
925
+ typeof process < "u" && process.env.VSCODE_TEXTMATE_DEBUG;
926
+ var qe = !1, Je = class {
927
+ constructor(e, t) {
928
+ this.stack = e, this.stoppedEarly = t;
929
+ }
930
+ };
931
+ function Ye(e, t, n, r, i, a, o, s) {
932
+ let c = t.content.length, l = !1, u = -1;
933
+ if (o) {
934
+ let o = Xe(e, t, n, r, i, a);
935
+ i = o.stack, r = o.linePos, n = o.isFirstLine, u = o.anchorPosition;
936
+ }
937
+ let d = Date.now();
938
+ for (; !l;) {
939
+ if (s !== 0 && Date.now() - d > s) return new Je(i, !0);
940
+ f();
941
+ }
942
+ return new Je(i, !1);
943
+ function f() {
944
+ let o = Ze(e, t, n, r, i, u);
945
+ if (!o) {
946
+ a.produce(i, c), l = !0;
947
+ return;
948
+ }
949
+ let s = o.captureIndices, d = o.matchedRuleId, f = s && s.length > 0 ? s[0].end > r : !1;
950
+ if (d === Pe) {
951
+ let o = i.getRule(e);
952
+ a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList), k(e, t, n, i, a, o.endCaptures, s), a.produce(i, s[0].end);
953
+ let d = i;
954
+ if (i = i.parent, u = d.getAnchorPos(), !f && d.getEnterPos() === r) {
955
+ i = d, a.produce(i, c), l = !0;
956
+ return;
957
+ }
958
+ } else {
959
+ let o = e.getRule(d);
960
+ a.produce(i, s[0].start);
961
+ let p = i, m = o.getName(t.content, s), h = i.contentNameScopesList.pushAttributed(m, e);
962
+ if (i = i.push(d, r, u, s[0].end === c, null, h, h), o instanceof Ve) {
963
+ let r = o;
964
+ k(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
965
+ let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
966
+ if (i = i.withContentNameScopesList(m), r.endHasBackReferences && (i = i.withEndRule(r.getEndWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
967
+ i = i.pop(), a.produce(i, c), l = !0;
968
+ return;
969
+ }
970
+ } else if (o instanceof E) {
971
+ let r = o;
972
+ k(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
973
+ let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
974
+ if (i = i.withContentNameScopesList(m), r.whileHasBackReferences && (i = i.withEndRule(r.getWhileWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
975
+ i = i.pop(), a.produce(i, c), l = !0;
976
+ return;
977
+ }
978
+ } else if (k(e, t, n, i, a, o.captures, s), a.produce(i, s[0].end), i = i.pop(), !f) {
979
+ i = i.safePop(), a.produce(i, c), l = !0;
980
+ return;
981
+ }
982
+ }
983
+ s[0].end > r && (r = s[0].end, n = !1);
984
+ }
985
+ }
986
+ function Xe(e, t, n, r, i, a) {
987
+ let o = i.beginRuleCapturedEOL ? 0 : -1, s = [];
988
+ for (let t = i; t; t = t.pop()) {
989
+ let n = t.getRule(e);
990
+ n instanceof E && s.push({
991
+ rule: n,
992
+ stack: t
993
+ });
994
+ }
995
+ for (let c = s.pop(); c; c = s.pop()) {
996
+ let { ruleScanner: s, findOptions: l } = tt(c.rule, e, c.stack.endRule, n, r === o), u = s.findNextMatchSync(t, r, l);
997
+ if (u) {
998
+ if (u.ruleId !== Fe) {
999
+ i = c.stack.pop();
1000
+ break;
1001
+ }
1002
+ u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start), k(e, t, n, c.stack, a, c.rule.whileCaptures, u.captureIndices), a.produce(c.stack, u.captureIndices[0].end), o = u.captureIndices[0].end, u.captureIndices[0].end > r && (r = u.captureIndices[0].end, n = !1));
1003
+ } else {
1004
+ i = c.stack.pop();
1005
+ break;
1006
+ }
1007
+ }
1008
+ return {
1009
+ stack: i,
1010
+ linePos: r,
1011
+ anchorPosition: o,
1012
+ isFirstLine: n
1013
+ };
1014
+ }
1015
+ function Ze(e, t, n, r, i, a) {
1016
+ let o = Qe(e, t, n, r, i, a), s = e.getInjections();
1017
+ if (s.length === 0) return o;
1018
+ let c = $e(s, e, t, n, r, i, a);
1019
+ if (!c) return o;
1020
+ if (!o) return c;
1021
+ let l = o.captureIndices[0].start, u = c.captureIndices[0].start;
1022
+ return u < l || c.priorityMatch && u === l ? c : o;
1023
+ }
1024
+ function Qe(e, t, n, r, i, a) {
1025
+ let { ruleScanner: o, findOptions: s } = et(i.getRule(e), e, i.endRule, n, r === a), c = o.findNextMatchSync(t, r, s);
1026
+ return c ? {
1027
+ captureIndices: c.captureIndices,
1028
+ matchedRuleId: c.ruleId
1029
+ } : null;
1030
+ }
1031
+ function $e(e, t, n, r, i, a, o) {
1032
+ let s = Number.MAX_VALUE, c = null, l, u = 0, d = a.contentNameScopesList.getScopeNames();
1033
+ for (let a = 0, f = e.length; a < f; a++) {
1034
+ let f = e[a];
1035
+ if (!f.matcher(d)) continue;
1036
+ let { ruleScanner: p, findOptions: m } = et(t.getRule(f.ruleId), t, null, r, i === o), h = p.findNextMatchSync(n, i, m);
1037
+ if (!h) continue;
1038
+ let g = h.captureIndices[0].start;
1039
+ if (!(g >= s) && (s = g, c = h.captureIndices, l = h.ruleId, u = f.priority, s === i)) break;
1040
+ }
1041
+ return c ? {
1042
+ priorityMatch: u === -1,
1043
+ captureIndices: c,
1044
+ matchedRuleId: l
1045
+ } : null;
1046
+ }
1047
+ function et(e, t, n, r, i) {
1048
+ return qe ? {
1049
+ ruleScanner: e.compile(t, n),
1050
+ findOptions: nt(r, i)
1051
+ } : {
1052
+ ruleScanner: e.compileAG(t, n, r, i),
1053
+ findOptions: 0
1054
+ };
1055
+ }
1056
+ function tt(e, t, n, r, i) {
1057
+ return qe ? {
1058
+ ruleScanner: e.compileWhile(t, n),
1059
+ findOptions: nt(r, i)
1060
+ } : {
1061
+ ruleScanner: e.compileWhileAG(t, n, r, i),
1062
+ findOptions: 0
1063
+ };
1064
+ }
1065
+ function nt(e, t) {
1066
+ let n = 0;
1067
+ return e || (n |= 1), t || (n |= 4), n;
1068
+ }
1069
+ function k(e, t, n, r, i, a, o) {
1070
+ if (a.length === 0) return;
1071
+ let s = t.content, c = Math.min(a.length, o.length), l = [], u = o[0].end;
1072
+ for (let t = 0; t < c; t++) {
1073
+ let c = a[t];
1074
+ if (c === null) continue;
1075
+ let d = o[t];
1076
+ if (d.length === 0) continue;
1077
+ if (d.start > u) break;
1078
+ for (; l.length > 0 && l[l.length - 1].endPos <= d.start;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
1079
+ if (l.length > 0 ? i.produceFromScopes(l[l.length - 1].scopes, d.start) : i.produce(r, d.start), c.retokenizeCapturedWithRuleId) {
1080
+ let t = c.getName(s, o), a = r.contentNameScopesList.pushAttributed(t, e), l = c.getContentName(s, o), u = a.pushAttributed(l, e), f = r.push(c.retokenizeCapturedWithRuleId, d.start, -1, !1, null, a, u), p = e.createOnigString(s.substring(0, d.end));
1081
+ Ye(e, p, n && d.start === 0, d.start, f, i, !1, 0), ve(p);
1082
+ continue;
1083
+ }
1084
+ let f = c.getName(s, o);
1085
+ if (f !== null) {
1086
+ let t = (l.length > 0 ? l[l.length - 1].scopes : r.contentNameScopesList).pushAttributed(f, e);
1087
+ l.push(new rt(t, d.end));
1088
+ }
1089
+ }
1090
+ for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
1091
+ }
1092
+ var rt = class {
1093
+ constructor(e, n) {
1094
+ t(this, "scopes", void 0), t(this, "endPos", void 0), this.scopes = e, this.endPos = n;
1095
+ }
1096
+ };
1097
+ function it(e, t, n, r, i, a, o, s) {
1098
+ return new st(e, t, n, r, i, a, o, s);
1099
+ }
1100
+ function at(e, t, n, r, i) {
1101
+ let a = C(t, A), o = He.getCompiledRuleId(n, r, i.repository);
1102
+ for (let n of a) e.push({
1103
+ debugSelector: t,
1104
+ matcher: n.matcher,
1105
+ ruleId: o,
1106
+ grammar: i,
1107
+ priority: n.priority
1108
+ });
1109
+ }
1110
+ function A(e, t) {
1111
+ if (t.length < e.length) return !1;
1112
+ let n = 0;
1113
+ return e.every((e) => {
1114
+ for (let r = n; r < t.length; r++) if (ot(t[r], e)) return n = r + 1, !0;
1115
+ return !1;
1116
+ });
1117
+ }
1118
+ function ot(e, t) {
1119
+ if (!e) return !1;
1120
+ if (e === t) return !0;
1121
+ let n = t.length;
1122
+ return e.length > n && e.substr(0, n) === t && e[n] === ".";
1123
+ }
1124
+ var st = class {
1125
+ constructor(e, n, r, i, a, o, s, c) {
1126
+ if (t(this, "_rootId", void 0), t(this, "_lastRuleId", void 0), t(this, "_ruleId2desc", void 0), t(this, "_includedGrammars", void 0), t(this, "_grammarRepository", void 0), t(this, "_grammar", void 0), t(this, "_injections", void 0), t(this, "_basicScopeAttributesProvider", void 0), t(this, "_tokenTypeMatchers", void 0), this._rootScopeName = e, this.balancedBracketSelectors = o, this._onigLib = c, this._basicScopeAttributesProvider = new Ge(r, i), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = s, this._grammar = ct(n, null), this._injections = null, this._tokenTypeMatchers = [], a) for (let e of Object.keys(a)) {
1127
+ let t = C(e, A);
1128
+ for (let n of t) this._tokenTypeMatchers.push({
1129
+ matcher: n.matcher,
1130
+ type: a[e]
1131
+ });
1132
+ }
1133
+ }
1134
+ get themeProvider() {
1135
+ return this._grammarRepository;
1136
+ }
1137
+ dispose() {
1138
+ for (let e of this._ruleId2desc) e && e.dispose();
1139
+ }
1140
+ createOnigScanner(e) {
1141
+ return this._onigLib.createOnigScanner(e);
1142
+ }
1143
+ createOnigString(e) {
1144
+ return this._onigLib.createOnigString(e);
1145
+ }
1146
+ getMetadataForScope(e) {
1147
+ return this._basicScopeAttributesProvider.getBasicScopeAttributes(e);
1148
+ }
1149
+ _collectInjections() {
1150
+ let e = {
1151
+ lookup: (e) => e === this._rootScopeName ? this._grammar : this.getExternalGrammar(e),
1152
+ injections: (e) => this._grammarRepository.injections(e)
1153
+ }, t = [], n = this._rootScopeName, r = e.lookup(n);
1154
+ if (r) {
1155
+ let e = r.injections;
1156
+ if (e) for (let n in e) at(t, n, e[n], this, r);
1157
+ let i = this._grammarRepository.injections(n);
1158
+ i && i.forEach((e) => {
1159
+ let n = this.getExternalGrammar(e);
1160
+ if (n) {
1161
+ let e = n.injectionSelector;
1162
+ e && at(t, e, n, this, n);
1163
+ }
1164
+ });
1165
+ }
1166
+ return t.sort((e, t) => e.priority - t.priority), t;
1167
+ }
1168
+ getInjections() {
1169
+ return this._injections === null && (this._injections = this._collectInjections()), this._injections;
1170
+ }
1171
+ registerRule(e) {
1172
+ let t = ++this._lastRuleId, n = e(Ie(t));
1173
+ return this._ruleId2desc[t] = n, n;
1174
+ }
1175
+ getRule(e) {
1176
+ return this._ruleId2desc[Le(e)];
1177
+ }
1178
+ getExternalGrammar(e, t) {
1179
+ if (this._includedGrammars[e]) return this._includedGrammars[e];
1180
+ if (this._grammarRepository) {
1181
+ let n = this._grammarRepository.lookup(e);
1182
+ if (n) return this._includedGrammars[e] = ct(n, t && t.$base), this._includedGrammars[e];
1183
+ }
1184
+ }
1185
+ tokenizeLine(e, t, n = 0) {
1186
+ let r = this._tokenize(e, t, !1, n);
1187
+ return {
1188
+ tokens: r.lineTokens.getResult(r.ruleStack, r.lineLength),
1189
+ ruleStack: r.ruleStack,
1190
+ stoppedEarly: r.stoppedEarly
1191
+ };
1192
+ }
1193
+ tokenizeLine2(e, t, n = 0) {
1194
+ let r = this._tokenize(e, t, !0, n);
1195
+ return {
1196
+ tokens: r.lineTokens.getBinaryResult(r.ruleStack, r.lineLength),
1197
+ ruleStack: r.ruleStack,
1198
+ stoppedEarly: r.stoppedEarly
1199
+ };
1200
+ }
1201
+ _tokenize(e, t, n, r) {
1202
+ this._rootId === -1 && (this._rootId = He.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
1203
+ let i;
1204
+ if (!t || t === lt.NULL) {
1205
+ i = !0;
1206
+ let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r = S.set(0, e.languageId, e.tokenType, null, n.fontStyle, n.foregroundId, n.backgroundId), a = this.getRule(this._rootId).getName(null, null), o;
1207
+ o = a ? j.createRootAndLookUpScopeName(a, r, this) : j.createRoot("unknown", r), t = new lt(null, this._rootId, -1, -1, !1, null, o, o);
1208
+ } else i = !1, t.reset();
1209
+ e += "\n";
1210
+ let a = this.createOnigString(e), o = a.content.length, s = new dt(n, e, this._tokenTypeMatchers, this.balancedBracketSelectors), c = Ye(this, a, i, 0, t, s, !0, r);
1211
+ return ve(a), {
1212
+ lineLength: o,
1213
+ lineTokens: s,
1214
+ ruleStack: c.stack,
1215
+ stoppedEarly: c.stoppedEarly
1216
+ };
1217
+ }
1218
+ };
1219
+ function ct(e, t) {
1220
+ return e = u(e), e.repository = e.repository || {}, e.repository.$self = {
1221
+ $vscodeTextmateLocation: e.$vscodeTextmateLocation,
1222
+ patterns: e.patterns,
1223
+ name: e.scopeName
1224
+ }, e.repository.$base = t || e.repository.$self, e;
1225
+ }
1226
+ var j = class e {
1227
+ constructor(e, t, n) {
1228
+ this.parent = e, this.scopePath = t, this.tokenAttributes = n;
1229
+ }
1230
+ static fromExtension(t, n) {
1231
+ var r;
1232
+ let i = t, a = (r = t == null ? void 0 : t.scopePath) == null ? null : r;
1233
+ for (let t of n) a = re.push(a, t.scopeNames), i = new e(i, a, t.encodedTokenAttributes);
1234
+ return i;
1235
+ }
1236
+ static createRoot(t, n) {
1237
+ return new e(null, new re(null, t), n);
1238
+ }
1239
+ static createRootAndLookUpScopeName(t, n, r) {
1240
+ let i = r.getMetadataForScope(t), a = new re(null, t), o = r.themeProvider.themeMatch(a);
1241
+ return new e(null, a, e.mergeAttributes(n, i, o));
1242
+ }
1243
+ get scopeName() {
1244
+ return this.scopePath.scopeName;
1245
+ }
1246
+ toString() {
1247
+ return this.getScopeNames().join(" ");
1248
+ }
1249
+ equals(t) {
1250
+ return e.equals(this, t);
1251
+ }
1252
+ static equals(e, t) {
1253
+ do {
1254
+ if (e === t || !e && !t) return !0;
1255
+ if (!e || !t || e.scopeName !== t.scopeName || e.tokenAttributes !== t.tokenAttributes) return !1;
1256
+ e = e.parent, t = t.parent;
1257
+ } while (!0);
1258
+ }
1259
+ static mergeAttributes(e, t, n) {
1260
+ let r = -1, i = 0, a = 0;
1261
+ return n !== null && (r = n.fontStyle, i = n.foregroundId, a = n.backgroundId), S.set(e, t.languageId, t.tokenType, null, r, i, a);
1262
+ }
1263
+ pushAttributed(t, n) {
1264
+ if (t === null) return this;
1265
+ if (t.indexOf(" ") === -1) return e._pushAttributed(this, t, n);
1266
+ let r = t.split(/ /g), i = this;
1267
+ for (let t of r) i = e._pushAttributed(i, t, n);
1268
+ return i;
1269
+ }
1270
+ static _pushAttributed(t, n, r) {
1271
+ let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a);
1272
+ return new e(t, a, e.mergeAttributes(t.tokenAttributes, i, o));
1273
+ }
1274
+ getScopeNames() {
1275
+ return this.scopePath.getSegments();
1276
+ }
1277
+ getExtensionIfDefined(e) {
1278
+ let t = [], n = this;
1279
+ for (; n && n !== e;) {
1280
+ var r, i;
1281
+ t.push({
1282
+ encodedTokenAttributes: n.tokenAttributes,
1283
+ scopeNames: n.scopePath.getExtensionIfDefined((r = (i = n.parent) == null ? void 0 : i.scopePath) == null ? null : r)
1284
+ }), n = n.parent;
1285
+ }
1286
+ return n === e ? t.reverse() : void 0;
1287
+ }
1288
+ }, lt = (l = class e {
1289
+ constructor(e, n, r, i, a, o, s, c) {
1290
+ t(this, "_stackElementBrand", void 0), t(this, "_enterPos", void 0), t(this, "_anchorPos", void 0), t(this, "depth", void 0), this.parent = e, this.ruleId = n, this.beginRuleCapturedEOL = a, this.endRule = o, this.nameScopesList = s, this.contentNameScopesList = c, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = r, this._anchorPos = i;
1291
+ }
1292
+ equals(t) {
1293
+ return t === null ? !1 : e._equals(this, t);
1294
+ }
1295
+ static _equals(e, t) {
1296
+ return e === t ? !0 : this._structuralEquals(e, t) ? j.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
1297
+ }
1298
+ static _structuralEquals(e, t) {
1299
+ do {
1300
+ if (e === t || !e && !t) return !0;
1301
+ if (!e || !t || e.depth !== t.depth || e.ruleId !== t.ruleId || e.endRule !== t.endRule) return !1;
1302
+ e = e.parent, t = t.parent;
1303
+ } while (!0);
1304
+ }
1305
+ clone() {
1306
+ return this;
1307
+ }
1308
+ static _reset(e) {
1309
+ for (; e;) e._enterPos = -1, e._anchorPos = -1, e = e.parent;
1310
+ }
1311
+ reset() {
1312
+ e._reset(this);
1313
+ }
1314
+ pop() {
1315
+ return this.parent;
1316
+ }
1317
+ safePop() {
1318
+ return this.parent ? this.parent : this;
1319
+ }
1320
+ push(t, n, r, i, a, o, s) {
1321
+ return new e(this, t, n, r, i, a, o, s);
1322
+ }
1323
+ getEnterPos() {
1324
+ return this._enterPos;
1325
+ }
1326
+ getAnchorPos() {
1327
+ return this._anchorPos;
1328
+ }
1329
+ getRule(e) {
1330
+ return e.getRule(this.ruleId);
1331
+ }
1332
+ toString() {
1333
+ let e = [];
1334
+ return this._writeString(e, 0), "[" + e.join(",") + "]";
1335
+ }
1336
+ _writeString(e, t) {
1337
+ var n, r;
1338
+ return this.parent && (t = this.parent._writeString(e, t)), e[t++] = `(${this.ruleId}, ${(n = this.nameScopesList) == null ? void 0 : n.toString()}, ${(r = this.contentNameScopesList) == null ? void 0 : r.toString()})`, t;
1339
+ }
1340
+ withContentNameScopesList(e) {
1341
+ return this.contentNameScopesList === e ? this : this.parent.push(this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, this.endRule, this.nameScopesList, e);
1342
+ }
1343
+ withEndRule(t) {
1344
+ return this.endRule === t ? this : new e(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, t, this.nameScopesList, this.contentNameScopesList);
1345
+ }
1346
+ hasSameRuleAs(e) {
1347
+ let t = this;
1348
+ for (; t && t._enterPos === e._enterPos;) {
1349
+ if (t.ruleId === e.ruleId) return !0;
1350
+ t = t.parent;
1351
+ }
1352
+ return !1;
1353
+ }
1354
+ toStateStackFrame() {
1355
+ var e, t, n, r, i, a;
1356
+ return {
1357
+ ruleId: Le(this.ruleId),
1358
+ beginRuleCapturedEOL: this.beginRuleCapturedEOL,
1359
+ endRule: this.endRule,
1360
+ nameScopesList: (e = (t = this.nameScopesList) == null ? void 0 : t.getExtensionIfDefined((n = (r = this.parent) == null ? void 0 : r.nameScopesList) == null ? null : n)) == null ? [] : e,
1361
+ contentNameScopesList: (i = (a = this.contentNameScopesList) == null ? void 0 : a.getExtensionIfDefined(this.nameScopesList)) == null ? [] : i
1362
+ };
1363
+ }
1364
+ static pushFrame(t, n) {
1365
+ var r, i, a;
1366
+ let o = j.fromExtension((r = t == null ? void 0 : t.nameScopesList) == null ? null : r, n.nameScopesList);
1367
+ return new e(t, Ie(n.ruleId), (i = n.enterPos) == null ? -1 : i, (a = n.anchorPos) == null ? -1 : a, n.beginRuleCapturedEOL, n.endRule, o, j.fromExtension(o, n.contentNameScopesList));
1368
+ }
1369
+ }, t(l, "NULL", new l(null, 0, 0, 0, !1, null, null, null)), l), ut = class {
1370
+ constructor(e, n) {
1371
+ t(this, "balancedBracketScopes", void 0), t(this, "unbalancedBracketScopes", void 0), t(this, "allowAny", !1), this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : C(e, A).map((e) => e.matcher)), this.unbalancedBracketScopes = n.flatMap((e) => C(e, A).map((e) => e.matcher));
1372
+ }
1373
+ get matchesAlways() {
1374
+ return this.allowAny && this.unbalancedBracketScopes.length === 0;
1375
+ }
1376
+ get matchesNever() {
1377
+ return this.balancedBracketScopes.length === 0 && !this.allowAny;
1378
+ }
1379
+ match(e) {
1380
+ for (let t of this.unbalancedBracketScopes) if (t(e)) return !1;
1381
+ for (let t of this.balancedBracketScopes) if (t(e)) return !0;
1382
+ return this.allowAny;
1383
+ }
1384
+ }, dt = class {
1385
+ constructor(e, n, r, i) {
1386
+ t(this, "_emitBinaryTokens", void 0), t(this, "_lineText", void 0), t(this, "_tokens", void 0), t(this, "_binaryTokens", void 0), t(this, "_lastTokenEndIndex", void 0), t(this, "_tokenTypeOverrides", void 0), this.balancedBracketSelectors = i, this._emitBinaryTokens = e, this._tokenTypeOverrides = r, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
1387
+ }
1388
+ produce(e, t) {
1389
+ this.produceFromScopes(e.contentNameScopesList, t);
1390
+ }
1391
+ produceFromScopes(e, t) {
1392
+ var n;
1393
+ if (this._lastTokenEndIndex >= t) return;
1394
+ if (this._emitBinaryTokens) {
1395
+ var r, i;
1396
+ let n = (r = e == null ? void 0 : e.tokenAttributes) == null ? 0 : r, o = !1;
1397
+ if ((i = this.balancedBracketSelectors) != null && i.matchesAlways && (o = !0), this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
1398
+ var a;
1399
+ let t = (a = e == null ? void 0 : e.getScopeNames()) == null ? [] : a;
1400
+ for (let e of this._tokenTypeOverrides) e.matcher(t) && (n = S.set(n, 0, me(e.type), null, -1, 0, 0));
1401
+ this.balancedBracketSelectors && (o = this.balancedBracketSelectors.match(t));
1402
+ }
1403
+ if (o && (n = S.set(n, 0, 8, o, -1, 0, 0)), this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === n) {
1404
+ this._lastTokenEndIndex = t;
1405
+ return;
1406
+ }
1407
+ this._binaryTokens.push(this._lastTokenEndIndex), this._binaryTokens.push(n), this._lastTokenEndIndex = t;
1408
+ return;
1409
+ }
1410
+ let o = (n = e == null ? void 0 : e.getScopeNames()) == null ? [] : n;
1411
+ this._tokens.push({
1412
+ startIndex: this._lastTokenEndIndex,
1413
+ endIndex: t,
1414
+ scopes: o
1415
+ }), this._lastTokenEndIndex = t;
1416
+ }
1417
+ getResult(e, t) {
1418
+ 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;
1419
+ }
1420
+ getBinaryResult(e, t) {
1421
+ 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);
1422
+ let n = new Uint32Array(this._binaryTokens.length);
1423
+ for (let e = 0, t = this._binaryTokens.length; e < t; e++) n[e] = this._binaryTokens[e];
1424
+ return n;
1425
+ }
1426
+ }, ft = class {
1427
+ constructor(e, n) {
1428
+ t(this, "_grammars", /* @__PURE__ */ new Map()), t(this, "_rawGrammars", /* @__PURE__ */ new Map()), t(this, "_injectionGrammars", /* @__PURE__ */ new Map()), t(this, "_theme", void 0), this._onigLib = n, this._theme = e;
1429
+ }
1430
+ dispose() {
1431
+ for (let e of this._grammars.values()) e.dispose();
1432
+ }
1433
+ setTheme(e) {
1434
+ this._theme = e;
1435
+ }
1436
+ getColorMap() {
1437
+ return this._theme.getColorMap();
1438
+ }
1439
+ addGrammar(e, t) {
1440
+ this._rawGrammars.set(e.scopeName, e), t && this._injectionGrammars.set(e.scopeName, t);
1441
+ }
1442
+ lookup(e) {
1443
+ return this._rawGrammars.get(e);
1444
+ }
1445
+ injections(e) {
1446
+ return this._injectionGrammars.get(e);
1447
+ }
1448
+ getDefaults() {
1449
+ return this._theme.getDefaults();
1450
+ }
1451
+ themeMatch(e) {
1452
+ return this._theme.match(e);
1453
+ }
1454
+ grammarForScopeName(e, t, n, r, i) {
1455
+ if (!this._grammars.has(e)) {
1456
+ let a = this._rawGrammars.get(e);
1457
+ if (!a) return null;
1458
+ this._grammars.set(e, it(e, a, t, n, r, i, this, this._onigLib));
1459
+ }
1460
+ return this._grammars.get(e);
1461
+ }
1462
+ }, pt = class {
1463
+ constructor(e) {
1464
+ t(this, "_options", void 0), t(this, "_syncRegistry", void 0), t(this, "_ensureGrammarCache", void 0), this._options = e, this._syncRegistry = new ft(b.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
1465
+ }
1466
+ dispose() {
1467
+ this._syncRegistry.dispose();
1468
+ }
1469
+ setTheme(e, t) {
1470
+ this._syncRegistry.setTheme(b.createFromRawTheme(e, t));
1471
+ }
1472
+ getColorMap() {
1473
+ return this._syncRegistry.getColorMap();
1474
+ }
1475
+ loadGrammarWithEmbeddedLanguages(e, t, n) {
1476
+ return this.loadGrammarWithConfiguration(e, t, { embeddedLanguages: n });
1477
+ }
1478
+ loadGrammarWithConfiguration(e, t, n) {
1479
+ return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new ut(n.balancedBracketSelectors || [], n.unbalancedBracketSelectors || []));
1480
+ }
1481
+ loadGrammar(e) {
1482
+ return this._loadGrammar(e, 0, null, null, null);
1483
+ }
1484
+ _loadGrammar(e, t, n, r, i) {
1485
+ let a = new xe(this._syncRegistry, e);
1486
+ for (; a.Q.length > 0;) a.Q.map((e) => this._loadSingleGrammar(e.scopeName)), a.processQueue();
1487
+ return this._grammarForScopeName(e, t, n, r, i);
1488
+ }
1489
+ _loadSingleGrammar(e) {
1490
+ this._ensureGrammarCache.has(e) || (this._doLoadSingleGrammar(e), this._ensureGrammarCache.set(e, !0));
1491
+ }
1492
+ _doLoadSingleGrammar(e) {
1493
+ let t = this._options.loadGrammar(e);
1494
+ if (t) {
1495
+ let n = typeof this._options.getInjections == "function" ? this._options.getInjections(e) : void 0;
1496
+ this._syncRegistry.addGrammar(t, n);
1497
+ }
1498
+ }
1499
+ addGrammar(e, t = [], n = 0, r = null) {
1500
+ return this._syncRegistry.addGrammar(e, t), this._grammarForScopeName(e.scopeName, n, r);
1501
+ }
1502
+ _grammarForScopeName(e, t = 0, n = null, r = null, i = null) {
1503
+ return this._syncRegistry.grammarForScopeName(e, t, n, r, i);
1504
+ }
1505
+ }, mt = lt.NULL, ht = [
1506
+ "content",
1507
+ "explanation",
1508
+ "offset"
1509
+ ];
1510
+ function M(e, t) {
1511
+ let r = typeof e == "string" ? {} : n({}, e.colorReplacements), i = typeof e == "string" ? e : e.name;
1512
+ for (let [e, n] of Object.entries((t == null ? void 0 : t.colorReplacements) || {})) typeof n == "string" ? r[e] = n : e === i && Object.assign(r, n);
1513
+ return r;
1514
+ }
1515
+ function N(e, t) {
1516
+ return e && ((t == null ? void 0 : t[e == null ? void 0 : e.toLowerCase()]) || e);
1517
+ }
1518
+ function gt(e) {
1519
+ return Array.isArray(e) ? e : [e];
1520
+ }
1521
+ async function _t(e) {
1522
+ return Promise.resolve(typeof e == "function" ? e() : e).then((e) => e.default || e);
1523
+ }
1524
+ function vt(e) {
1525
+ return !e || [
1526
+ "plaintext",
1527
+ "txt",
1528
+ "text",
1529
+ "plain"
1530
+ ].includes(e);
1531
+ }
1532
+ function yt(e) {
1533
+ return e === "ansi" || vt(e);
1534
+ }
1535
+ function bt(e) {
1536
+ return e === "none";
1537
+ }
1538
+ function xt(e) {
1539
+ return bt(e);
1540
+ }
1541
+ function P(e, t = !1) {
1542
+ if (e.length === 0) return [["", 0]];
1543
+ let n = e.split(/(\r?\n)/g), r = 0, i = [];
1544
+ for (let e = 0; e < n.length; e += 2) {
1545
+ var a;
1546
+ let o = t ? n[e] + (n[e + 1] || "") : n[e];
1547
+ i.push([o, r]), r += n[e].length, r += ((a = n[e + 1]) == null ? void 0 : a.length) || 0;
1548
+ }
1549
+ return i;
1550
+ }
1551
+ var St = {
1552
+ light: "#333333",
1553
+ dark: "#bbbbbb"
1554
+ }, Ct = {
1555
+ light: "#fffffe",
1556
+ dark: "#1e1e1e"
1557
+ }, wt = "__shiki_resolved";
1558
+ function Tt(e) {
1559
+ if (e != null && e[wt]) return e;
1560
+ let t = n({}, e);
1561
+ t.tokenColors && !t.settings && (t.settings = t.tokenColors, delete t.tokenColors), t.type || (t.type = "dark"), t.colorReplacements = n({}, t.colorReplacements), t.settings || (t.settings = []);
1562
+ let { bg: r, fg: i } = t;
1563
+ if (!r || !i) {
1564
+ var a, o, s, c;
1565
+ let e = t.settings ? t.settings.find((e) => !e.name && !e.scope) : void 0;
1566
+ !(e == null || (a = e.settings) == null) && a.foreground && (i = e.settings.foreground), !(e == null || (o = e.settings) == null) && o.background && (r = e.settings.background), !i && !(t == null || (s = t.colors) == null) && s["editor.foreground"] && (i = t.colors["editor.foreground"]), !r && !(t == null || (c = t.colors) == null) && c["editor.background"] && (r = t.colors["editor.background"]), i || (i = t.type === "light" ? St.light : St.dark), r || (r = t.type === "light" ? Ct.light : Ct.dark), t.fg = i, t.bg = r;
1567
+ }
1568
+ t.settings[0] && t.settings[0].settings && !t.settings[0].scope || t.settings.unshift({ settings: {
1569
+ foreground: t.fg,
1570
+ background: t.bg
1571
+ } });
1572
+ let l = 0, u = /* @__PURE__ */ new Map();
1573
+ function d(e) {
1574
+ var n;
1575
+ if (u.has(e)) return u.get(e);
1576
+ l += 1;
1577
+ let r = `#${l.toString(16).padStart(8, "0").toLowerCase()}`;
1578
+ return (n = t.colorReplacements) != null && n[`#${r}`] ? d(e) : (u.set(e, r), r);
1579
+ }
1580
+ t.settings = t.settings.map((e) => {
1581
+ var r, i;
1582
+ let a = ((r = e.settings) == null ? void 0 : r.foreground) && !e.settings.foreground.startsWith("#"), o = ((i = e.settings) == null ? void 0 : i.background) && !e.settings.background.startsWith("#");
1583
+ if (!a && !o) return e;
1584
+ let s = n(n({}, e), {}, { settings: n({}, e.settings) });
1585
+ if (a) {
1586
+ let n = d(e.settings.foreground);
1587
+ t.colorReplacements[n] = e.settings.foreground, s.settings.foreground = n;
1588
+ }
1589
+ if (o) {
1590
+ let n = d(e.settings.background);
1591
+ t.colorReplacements[n] = e.settings.background, s.settings.background = n;
1592
+ }
1593
+ return s;
1594
+ });
1595
+ for (let e of Object.keys(t.colors || {})) if (e === "editor.foreground" || e === "editor.background" || e.startsWith("terminal.ansi")) {
1596
+ var f;
1597
+ if (!((f = t.colors[e]) != null && f.startsWith("#"))) {
1598
+ let n = d(t.colors[e]);
1599
+ t.colorReplacements[n] = t.colors[e], t.colors[e] = n;
1600
+ }
1601
+ }
1602
+ return Object.defineProperty(t, wt, {
1603
+ enumerable: !1,
1604
+ writable: !1,
1605
+ value: !0
1606
+ }), t;
1607
+ }
1608
+ async function Et(e) {
1609
+ return Array.from(new Set((await Promise.all(e.filter((e) => !yt(e)).map(async (e) => await _t(e).then((e) => Array.isArray(e) ? e : [e])))).flat()));
1610
+ }
1611
+ async function Dt(e) {
1612
+ return (await Promise.all(e.map(async (e) => xt(e) ? null : Tt(await _t(e))))).filter((e) => !!e);
1613
+ }
1614
+ function Ot(e, t) {
1615
+ if (!t) return e;
1616
+ if (t[e]) {
1617
+ let n = new Set([e]);
1618
+ for (; t[e];) {
1619
+ if (e = t[e], n.has(e)) throw new s(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);
1620
+ n.add(e);
1621
+ }
1622
+ }
1623
+ return e;
1624
+ }
1625
+ var kt = class extends pt {
1626
+ constructor(e, n, r, i = {}) {
1627
+ super(e), t(this, "_resolvedThemes", /* @__PURE__ */ new Map()), t(this, "_resolvedGrammars", /* @__PURE__ */ new Map()), t(this, "_langMap", /* @__PURE__ */ new Map()), t(this, "_langGraph", /* @__PURE__ */ new Map()), t(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap()), t(this, "_loadedThemesCache", null), t(this, "_loadedLanguagesCache", null), this._resolver = e, this._themes = n, this._langs = r, this._alias = i, this._themes.map((e) => this.loadTheme(e)), this.loadLanguages(this._langs);
1628
+ }
1629
+ getTheme(e) {
1630
+ return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
1631
+ }
1632
+ loadTheme(e) {
1633
+ let t = Tt(e);
1634
+ return t.name && (this._resolvedThemes.set(t.name, t), this._loadedThemesCache = null), t;
1635
+ }
1636
+ getLoadedThemes() {
1637
+ return this._loadedThemesCache || (this._loadedThemesCache = [...this._resolvedThemes.keys()]), this._loadedThemesCache;
1638
+ }
1639
+ setTheme(e) {
1640
+ let t = this._textmateThemeCache.get(e);
1641
+ t || (t = b.createFromRawTheme(e), this._textmateThemeCache.set(e, t)), this._syncRegistry.setTheme(t);
1642
+ }
1643
+ getGrammar(e) {
1644
+ return e = Ot(e, this._alias), this._resolvedGrammars.get(e);
1645
+ }
1646
+ loadLanguage(e) {
1647
+ if (this.getGrammar(e.name)) return;
1648
+ let t = new Set([...this._langMap.values()].filter((t) => {
1649
+ var n;
1650
+ return (n = t.embeddedLangsLazy) == null ? void 0 : n.includes(e.name);
1651
+ }));
1652
+ this._resolver.addLanguage(e);
1653
+ let n = {
1654
+ balancedBracketSelectors: e.balancedBracketSelectors || ["*"],
1655
+ unbalancedBracketSelectors: e.unbalancedBracketSelectors || []
1656
+ };
1657
+ this._syncRegistry._rawGrammars.set(e.scopeName, e);
1658
+ let r = this.loadGrammarWithConfiguration(e.scopeName, 1, n);
1659
+ if (r.name = e.name, this._resolvedGrammars.set(e.name, r), e.aliases && e.aliases.forEach((t) => {
1660
+ this._alias[t] = e.name;
1661
+ }), this._loadedLanguagesCache = null, t.size) for (let e of t) {
1662
+ var i, a;
1663
+ this._resolvedGrammars.delete(e.name), this._loadedLanguagesCache = null, (i = this._syncRegistry) == null || (i = i._injectionGrammars) == null || i.delete(e.scopeName), (a = this._syncRegistry) == null || (a = a._grammars) == null || a.delete(e.scopeName), this.loadLanguage(this._langMap.get(e.name));
1664
+ }
1665
+ }
1666
+ dispose() {
1667
+ super.dispose(), this._resolvedThemes.clear(), this._resolvedGrammars.clear(), this._langMap.clear(), this._langGraph.clear(), this._loadedThemesCache = null;
1668
+ }
1669
+ loadLanguages(e) {
1670
+ for (let t of e) this.resolveEmbeddedLanguages(t);
1671
+ let t = Array.from(this._langGraph.entries()), n = t.filter(([e, t]) => !t);
1672
+ if (n.length) {
1673
+ let e = t.filter(([e, t]) => {
1674
+ var r;
1675
+ return t ? (r = t.embeddedLanguages || t.embeddedLangs) == null ? void 0 : r.some((e) => n.map(([e]) => e).includes(e)) : !1;
1676
+ }).filter((e) => !n.includes(e));
1677
+ throw new s(`Missing languages ${n.map(([e]) => `\`${e}\``).join(", ")}, required by ${e.map(([e]) => `\`${e}\``).join(", ")}`);
1678
+ }
1679
+ for (let [e, n] of t) this._resolver.addLanguage(n);
1680
+ for (let [e, n] of t) this.loadLanguage(n);
1681
+ }
1682
+ getLoadedLanguages() {
1683
+ return this._loadedLanguagesCache || (this._loadedLanguagesCache = [...new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])]), this._loadedLanguagesCache;
1684
+ }
1685
+ resolveEmbeddedLanguages(e) {
1686
+ var t;
1687
+ this._langMap.set(e.name, e), this._langGraph.set(e.name, e);
1688
+ let n = (t = e.embeddedLanguages) == null ? e.embeddedLangs : t;
1689
+ if (n) for (let e of n) this._langGraph.set(e, this._langMap.get(e));
1690
+ }
1691
+ }, At = class {
1692
+ constructor(e, n) {
1693
+ t(this, "_langs", /* @__PURE__ */ new Map()), t(this, "_scopeToLang", /* @__PURE__ */ new Map()), t(this, "_injections", /* @__PURE__ */ new Map()), t(this, "_onigLib", void 0), this._onigLib = {
1694
+ createOnigScanner: (t) => e.createScanner(t),
1695
+ createOnigString: (t) => e.createString(t)
1696
+ }, n.forEach((e) => this.addLanguage(e));
1697
+ }
1698
+ get onigLib() {
1699
+ return this._onigLib;
1700
+ }
1701
+ getLangRegistration(e) {
1702
+ return this._langs.get(e);
1703
+ }
1704
+ loadGrammar(e) {
1705
+ return this._scopeToLang.get(e);
1706
+ }
1707
+ addLanguage(e) {
1708
+ this._langs.set(e.name, e), e.aliases && e.aliases.forEach((t) => {
1709
+ this._langs.set(t, e);
1710
+ }), this._scopeToLang.set(e.scopeName, e), e.injectTo && e.injectTo.forEach((t) => {
1711
+ this._injections.get(t) || this._injections.set(t, []), this._injections.get(t).push(e.scopeName);
1712
+ });
1713
+ }
1714
+ getInjections(e) {
1715
+ let t = e.split("."), n = [];
1716
+ for (let e = 1; e <= t.length; e++) {
1717
+ let r = t.slice(0, e).join(".");
1718
+ n = [...n, ...this._injections.get(r) || []];
1719
+ }
1720
+ return n;
1721
+ }
1722
+ }, F = 0;
1723
+ function jt(e) {
1724
+ F += 1, e.warnings !== !1 && F >= 10 && F % 10 == 0 && console.warn(`[Shiki] ${F} 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.`);
1725
+ let t = !1;
1726
+ if (!e.engine) throw new s("`engine` option is required for synchronous mode");
1727
+ let n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(Tt), i = new kt(new At(e.engine, n), r, n, e.langAlias), a;
1728
+ function o(t) {
1729
+ return Ot(t, e.langAlias);
1730
+ }
1731
+ function c(e) {
1732
+ _();
1733
+ let t = i.getGrammar(typeof e == "string" ? e : e.name);
1734
+ if (!t) throw new s(`Language \`${e}\` not found, you may need to load it first`);
1735
+ return t;
1736
+ }
1737
+ function l(e) {
1738
+ if (e === "none") return {
1739
+ bg: "",
1740
+ fg: "",
1741
+ name: "none",
1742
+ settings: [],
1743
+ type: "dark"
1744
+ };
1745
+ _();
1746
+ let t = i.getTheme(e);
1747
+ if (!t) throw new s(`Theme \`${e}\` not found, you may need to load it first`);
1748
+ return t;
1749
+ }
1750
+ function u(e) {
1751
+ _();
1752
+ let t = l(e);
1753
+ return a !== e && (i.setTheme(t), a = e), {
1754
+ theme: t,
1755
+ colorMap: i.getColorMap()
1756
+ };
1757
+ }
1758
+ function d() {
1759
+ return _(), i.getLoadedThemes();
1760
+ }
1761
+ function f() {
1762
+ return _(), i.getLoadedLanguages();
1763
+ }
1764
+ function p(...e) {
1765
+ _(), i.loadLanguages(e.flat(1));
1766
+ }
1767
+ async function m(...e) {
1768
+ return p(await Et(e));
1769
+ }
1770
+ function h(...e) {
1771
+ _();
1772
+ for (let t of e.flat(1)) i.loadTheme(t);
1773
+ }
1774
+ async function g(...e) {
1775
+ return _(), h(await Dt(e));
1776
+ }
1777
+ function _() {
1778
+ if (t) throw new s("Shiki instance has been disposed");
1779
+ }
1780
+ function v() {
1781
+ t || (t = !0, i.dispose(), --F);
1782
+ }
1783
+ return {
1784
+ setTheme: u,
1785
+ getTheme: l,
1786
+ getLanguage: c,
1787
+ getLoadedThemes: d,
1788
+ getLoadedLanguages: f,
1789
+ resolveLangAlias: o,
1790
+ loadLanguage: m,
1791
+ loadLanguageSync: p,
1792
+ loadTheme: g,
1793
+ loadThemeSync: h,
1794
+ dispose: v,
1795
+ [Symbol.dispose]: v
1796
+ };
1797
+ }
1798
+ async function Mt(e) {
1799
+ e.engine || console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
1800
+ let [t, r, i] = await Promise.all([
1801
+ Dt(e.themes || []),
1802
+ Et(e.langs || []),
1803
+ e.engine
1804
+ ]);
1805
+ return jt(n(n({}, e), {}, {
1806
+ themes: t,
1807
+ langs: r,
1808
+ engine: i
1809
+ }));
1810
+ }
1811
+ var Nt = /* @__PURE__ */ new WeakMap();
1812
+ function I(e, t) {
1813
+ Nt.set(e, t);
1814
+ }
1815
+ function L(e) {
1816
+ return Nt.get(e);
1817
+ }
1818
+ var R = class e {
1819
+ get themes() {
1820
+ return Object.keys(this._stacks);
1821
+ }
1822
+ get theme() {
1823
+ return this.themes[0];
1824
+ }
1825
+ get _stack() {
1826
+ return this._stacks[this.theme];
1827
+ }
1828
+ static initial(t, n) {
1829
+ return new e(Object.fromEntries(gt(n).map((e) => [e, mt])), t);
1830
+ }
1831
+ constructor(...e) {
1832
+ if (t(this, "_stacks", {}), t(this, "lang", void 0), e.length === 2) {
1833
+ let [t, n] = e;
1834
+ this.lang = n, this._stacks = t;
1835
+ } else {
1836
+ let [t, n, r] = e;
1837
+ this.lang = n, this._stacks = { [r]: t };
1838
+ }
1839
+ }
1840
+ getInternalStack(e = this.theme) {
1841
+ return this._stacks[e];
1842
+ }
1843
+ getScopes(e = this.theme) {
1844
+ return Pt(this._stacks[e]);
1845
+ }
1846
+ toJSON() {
1847
+ return {
1848
+ lang: this.lang,
1849
+ theme: this.theme,
1850
+ themes: this.themes,
1851
+ scopes: this.getScopes()
1852
+ };
1853
+ }
1854
+ };
1855
+ function Pt(e) {
1856
+ let t = [], n = /* @__PURE__ */ new Set();
1857
+ function r(e) {
1858
+ var i;
1859
+ if (n.has(e)) return;
1860
+ n.add(e);
1861
+ let a = e == null || (i = e.nameScopesList) == null ? void 0 : i.scopeName;
1862
+ a && t.push(a), e.parent && r(e.parent);
1863
+ }
1864
+ return r(e), t;
1865
+ }
1866
+ function Ft(e, t) {
1867
+ if (!(e instanceof R)) throw new s("Invalid grammar state");
1868
+ return e.getInternalStack(t);
1869
+ }
1870
+ function It(e, t, n = {}) {
1871
+ let { theme: r = e.getLoadedThemes()[0] } = n;
1872
+ if (vt(e.resolveLangAlias(n.lang || "text")) || bt(r)) return P(t).map((e) => [{
1873
+ content: e[0],
1874
+ offset: e[1]
1875
+ }]);
1876
+ let { theme: i, colorMap: a } = e.setTheme(r), o = e.getLanguage(n.lang || "text");
1877
+ if (n.grammarState) {
1878
+ if (n.grammarState.lang !== o.name) throw new s(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);
1879
+ if (!n.grammarState.themes.includes(i.name)) throw new s(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`);
1880
+ }
1881
+ return Rt(t, o, i, a, n);
1882
+ }
1883
+ function Lt(...e) {
1884
+ if (e.length === 2) return L(e[1]);
1885
+ let [t, n, r = {}] = e, { lang: i = "text", theme: a = t.getLoadedThemes()[0] } = r;
1886
+ if (vt(i) || bt(a)) throw new s("Plain language does not have grammar state");
1887
+ if (i === "ansi") throw new s("ANSI language does not have grammar state");
1888
+ let { theme: o, colorMap: c } = t.setTheme(a), l = t.getLanguage(i);
1889
+ return new R(zt(n, l, o, c, r).stateStack, l.name, o.name);
1890
+ }
1891
+ function Rt(e, t, n, r, i) {
1892
+ let a = zt(e, t, n, r, i), o = new R(a.stateStack, t.name, n.name);
1893
+ return I(a.tokens, o), a.tokens;
1894
+ }
1895
+ function zt(e, t, r, i, a) {
1896
+ var o;
1897
+ let s = M(r, a), { tokenizeMaxLineLength: c = 0, tokenizeTimeLimit: l = 500 } = a, u = P(e), d = a.grammarState ? (o = Ft(a.grammarState, r.name)) == null ? mt : o : a.grammarContextCode == null ? mt : zt(a.grammarContextCode, t, r, i, n(n({}, a), {}, {
1898
+ grammarState: void 0,
1899
+ grammarContextCode: void 0
1900
+ })).stateStack, f = [], p = [];
1901
+ for (let e = 0, n = u.length; e < n; e++) {
1902
+ let [n, o] = u[e];
1903
+ if (n === "") {
1904
+ f = [], p.push([]);
1905
+ continue;
1906
+ }
1907
+ if (c > 0 && n.length >= c) {
1908
+ f = [], p.push([{
1909
+ content: n,
1910
+ offset: o,
1911
+ color: "",
1912
+ fontStyle: 0
1913
+ }]);
1914
+ continue;
1915
+ }
1916
+ let m, h, g;
1917
+ a.includeExplanation && (m = t.tokenizeLine(n, d, l), h = m.tokens, g = 0);
1918
+ let _ = t.tokenizeLine2(n, d, l), v = _.tokens.length / 2;
1919
+ for (let e = 0; e < v; e++) {
1920
+ let t = _.tokens[2 * e], c = e + 1 < v ? _.tokens[2 * e + 2] : n.length;
1921
+ if (t === c) continue;
1922
+ let l = _.tokens[2 * e + 1], u = N(i[S.getForeground(l)], s), d = S.getFontStyle(l), p = {
1923
+ content: n.substring(t, c),
1924
+ offset: o + t,
1925
+ color: u,
1926
+ fontStyle: d
1927
+ };
1928
+ if (a.includeExplanation) {
1929
+ let e = [];
1930
+ if (a.includeExplanation !== "scopeName") for (let t of r.settings) {
1931
+ let n;
1932
+ switch (typeof t.scope) {
1933
+ case "string":
1934
+ n = t.scope.split(/,/).map((e) => e.trim());
1935
+ break;
1936
+ case "object":
1937
+ n = t.scope;
1938
+ break;
1939
+ default: continue;
1940
+ }
1941
+ e.push({
1942
+ settings: t,
1943
+ selectors: n.map((e) => e.split(/ /))
1944
+ });
1945
+ }
1946
+ p.explanation = [];
1947
+ let i = 0;
1948
+ for (; t + i < c;) {
1949
+ let t = h[g], r = n.substring(t.startIndex, t.endIndex);
1950
+ i += r.length, p.explanation.push({
1951
+ content: r,
1952
+ scopes: a.includeExplanation === "scopeName" ? Bt(t.scopes) : Vt(e, t.scopes)
1953
+ }), g += 1;
1954
+ }
1955
+ }
1956
+ f.push(p);
1957
+ }
1958
+ p.push(f), f = [], d = _.ruleStack;
1959
+ }
1960
+ return {
1961
+ tokens: p,
1962
+ stateStack: d
1963
+ };
1964
+ }
1965
+ function Bt(e) {
1966
+ return e.map((e) => ({ scopeName: e }));
1967
+ }
1968
+ function Vt(e, t) {
1969
+ let n = [];
1970
+ for (let r = 0, i = t.length; r < i; r++) {
1971
+ let i = t[r];
1972
+ n[r] = {
1973
+ scopeName: i,
1974
+ themeMatches: Wt(e, i, t.slice(0, r))
1975
+ };
1976
+ }
1977
+ return n;
1978
+ }
1979
+ function Ht(e, t) {
1980
+ return e === t || t.substring(0, e.length) === e && t[e.length] === ".";
1981
+ }
1982
+ function Ut(e, t, n) {
1983
+ if (!Ht(e[e.length - 1], t)) return !1;
1984
+ let r = e.length - 2, i = n.length - 1;
1985
+ for (; r >= 0 && i >= 0;) Ht(e[r], n[i]) && --r, --i;
1986
+ return r === -1;
1987
+ }
1988
+ function Wt(e, t, n) {
1989
+ let r = [];
1990
+ for (let { selectors: i, settings: a } of e) for (let e of i) if (Ut(e, t, n)) {
1991
+ r.push(a);
1992
+ break;
1993
+ }
1994
+ return r;
1995
+ }
1996
+ function Gt(e, t, i, a = It) {
1997
+ let o = Object.entries(i.themes).filter((e) => e[1]).map((e) => ({
1998
+ color: e[0],
1999
+ theme: e[1]
2000
+ })), s = o.map((r) => {
2001
+ let o = a(e, t, n(n({}, i), {}, { theme: r.theme }));
2002
+ return {
2003
+ tokens: o,
2004
+ state: L(o),
2005
+ theme: typeof r.theme == "string" ? r.theme : r.theme.name
2006
+ };
2007
+ }), c = Kt(...s.map((e) => e.tokens)), l = c[0].map((e, t) => e.map((e, n) => {
2008
+ let a = {
2009
+ content: e.content,
2010
+ variants: {},
2011
+ offset: e.offset
2012
+ };
2013
+ return "includeExplanation" in i && i.includeExplanation && (a.explanation = e.explanation), c.forEach((e, i) => {
2014
+ let s = e[t][n], { content: c, explanation: l, offset: u } = s, d = r(s, ht);
2015
+ a.variants[o[i].color] = d;
2016
+ }), a;
2017
+ })), u = s[0].state ? new R(Object.fromEntries(s.map((e) => {
2018
+ var t;
2019
+ return [e.theme, (t = e.state) == null ? void 0 : t.getInternalStack(e.theme)];
2020
+ })), s[0].state.lang) : void 0;
2021
+ return u && I(l, u), l;
2022
+ }
2023
+ function Kt(...e) {
2024
+ let t = e.map(() => []), r = e.length;
2025
+ for (let i = 0; i < e[0].length; i++) {
2026
+ let a = e.map((e) => e[i]), o = t.map(() => []);
2027
+ t.forEach((e, t) => e.push(o[t]));
2028
+ let s = a.map(() => 0), c = a.map((e) => e[0]);
2029
+ for (; c.every((e) => e);) {
2030
+ let e = Math.min(...c.map((e) => e.content.length));
2031
+ for (let t = 0; t < r; t++) {
2032
+ let r = c[t];
2033
+ r.content.length === e ? (o[t].push(r), s[t] += 1, c[t] = a[t][s[t]]) : (o[t].push(n(n({}, r), {}, { content: r.content.slice(0, e) })), c[t] = n(n({}, r), {}, {
2034
+ content: r.content.slice(e),
2035
+ offset: r.offset + e
2036
+ }));
2037
+ }
2038
+ }
2039
+ }
2040
+ return t;
2041
+ }
2042
+ //#endregion
2043
+ //#region node_modules/html-void-elements/index.js
2044
+ var qt = [
2045
+ "area",
2046
+ "base",
2047
+ "basefont",
2048
+ "bgsound",
2049
+ "br",
2050
+ "col",
2051
+ "command",
2052
+ "embed",
2053
+ "frame",
2054
+ "hr",
2055
+ "image",
2056
+ "img",
2057
+ "input",
2058
+ "keygen",
2059
+ "link",
2060
+ "meta",
2061
+ "param",
2062
+ "source",
2063
+ "track",
2064
+ "wbr"
2065
+ ], z = class {
2066
+ constructor(e, t, n) {
2067
+ this.normal = t, this.property = e, n && (this.space = n);
2068
+ }
2069
+ };
2070
+ z.prototype.normal = {}, z.prototype.property = {}, z.prototype.space = void 0;
2071
+ //#endregion
2072
+ //#region node_modules/property-information/lib/util/merge.js
2073
+ function Jt(e, t) {
2074
+ let n = {}, r = {};
2075
+ for (let t of e) Object.assign(n, t.property), Object.assign(r, t.normal);
2076
+ return new z(n, r, t);
2077
+ }
2078
+ //#endregion
2079
+ //#region node_modules/property-information/lib/normalize.js
2080
+ function Yt(e) {
2081
+ return e.toLowerCase();
2082
+ }
2083
+ //#endregion
2084
+ //#region node_modules/property-information/lib/util/info.js
2085
+ var B = class {
2086
+ constructor(e, t) {
2087
+ this.attribute = t, this.property = e;
2088
+ }
2089
+ };
2090
+ B.prototype.attribute = "", B.prototype.booleanish = !1, B.prototype.boolean = !1, B.prototype.commaOrSpaceSeparated = !1, B.prototype.commaSeparated = !1, B.prototype.defined = !1, B.prototype.mustUseProperty = !1, B.prototype.number = !1, B.prototype.overloadedBoolean = !1, B.prototype.property = "", B.prototype.spaceSeparated = !1, B.prototype.space = void 0;
2091
+ //#endregion
2092
+ //#region node_modules/property-information/lib/util/types.js
2093
+ var Xt = /* @__PURE__ */ e({
2094
+ boolean: () => V,
2095
+ booleanish: () => H,
2096
+ commaOrSpaceSeparated: () => K,
2097
+ commaSeparated: () => G,
2098
+ number: () => U,
2099
+ overloadedBoolean: () => Qt,
2100
+ spaceSeparated: () => W
2101
+ }), Zt = 0, V = q(), H = q(), Qt = q(), U = q(), W = q(), G = q(), K = q();
2102
+ function q() {
2103
+ return 2 ** ++Zt;
2104
+ }
2105
+ //#endregion
2106
+ //#region node_modules/property-information/lib/util/defined-info.js
2107
+ var $t = Object.keys(Xt), en = class extends B {
2108
+ constructor(e, t, n, r) {
2109
+ let i = -1;
2110
+ if (super(e, t), tn(this, "space", r), typeof n == "number") for (; ++i < $t.length;) {
2111
+ let e = $t[i];
2112
+ tn(this, $t[i], (n & Xt[e]) === Xt[e]);
2113
+ }
2114
+ }
2115
+ };
2116
+ en.prototype.defined = !0;
2117
+ function tn(e, t, n) {
2118
+ n && (e[t] = n);
2119
+ }
2120
+ //#endregion
2121
+ //#region node_modules/property-information/lib/util/create.js
2122
+ function J(e) {
2123
+ let t = {}, n = {};
2124
+ for (let [r, i] of Object.entries(e.properties)) {
2125
+ let a = new en(r, e.transform(e.attributes || {}, r), i, e.space);
2126
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[Yt(r)] = r, n[Yt(a.attribute)] = r;
2127
+ }
2128
+ return new z(t, n, e.space);
2129
+ }
2130
+ //#endregion
2131
+ //#region node_modules/property-information/lib/aria.js
2132
+ var nn = J({
2133
+ properties: {
2134
+ ariaActiveDescendant: null,
2135
+ ariaAtomic: H,
2136
+ ariaAutoComplete: null,
2137
+ ariaBusy: H,
2138
+ ariaChecked: H,
2139
+ ariaColCount: U,
2140
+ ariaColIndex: U,
2141
+ ariaColSpan: U,
2142
+ ariaControls: W,
2143
+ ariaCurrent: null,
2144
+ ariaDescribedBy: W,
2145
+ ariaDetails: null,
2146
+ ariaDisabled: H,
2147
+ ariaDropEffect: W,
2148
+ ariaErrorMessage: null,
2149
+ ariaExpanded: H,
2150
+ ariaFlowTo: W,
2151
+ ariaGrabbed: H,
2152
+ ariaHasPopup: null,
2153
+ ariaHidden: H,
2154
+ ariaInvalid: null,
2155
+ ariaKeyShortcuts: null,
2156
+ ariaLabel: null,
2157
+ ariaLabelledBy: W,
2158
+ ariaLevel: U,
2159
+ ariaLive: null,
2160
+ ariaModal: H,
2161
+ ariaMultiLine: H,
2162
+ ariaMultiSelectable: H,
2163
+ ariaOrientation: null,
2164
+ ariaOwns: W,
2165
+ ariaPlaceholder: null,
2166
+ ariaPosInSet: U,
2167
+ ariaPressed: H,
2168
+ ariaReadOnly: H,
2169
+ ariaRelevant: null,
2170
+ ariaRequired: H,
2171
+ ariaRoleDescription: W,
2172
+ ariaRowCount: U,
2173
+ ariaRowIndex: U,
2174
+ ariaRowSpan: U,
2175
+ ariaSelected: H,
2176
+ ariaSetSize: U,
2177
+ ariaSort: null,
2178
+ ariaValueMax: U,
2179
+ ariaValueMin: U,
2180
+ ariaValueNow: U,
2181
+ ariaValueText: null,
2182
+ role: null
2183
+ },
2184
+ transform(e, t) {
2185
+ return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
2186
+ }
2187
+ });
2188
+ //#endregion
2189
+ //#region node_modules/property-information/lib/util/case-sensitive-transform.js
2190
+ function rn(e, t) {
2191
+ return t in e ? e[t] : t;
2192
+ }
2193
+ //#endregion
2194
+ //#region node_modules/property-information/lib/util/case-insensitive-transform.js
2195
+ function an(e, t) {
2196
+ return rn(e, t.toLowerCase());
2197
+ }
2198
+ //#endregion
2199
+ //#region node_modules/property-information/lib/html.js
2200
+ var on = J({
2201
+ attributes: {
2202
+ acceptcharset: "accept-charset",
2203
+ classname: "class",
2204
+ htmlfor: "for",
2205
+ httpequiv: "http-equiv"
2206
+ },
2207
+ mustUseProperty: [
2208
+ "checked",
2209
+ "multiple",
2210
+ "muted",
2211
+ "selected"
2212
+ ],
2213
+ properties: {
2214
+ abbr: null,
2215
+ accept: G,
2216
+ acceptCharset: W,
2217
+ accessKey: W,
2218
+ action: null,
2219
+ allow: null,
2220
+ allowFullScreen: V,
2221
+ allowPaymentRequest: V,
2222
+ allowUserMedia: V,
2223
+ alt: null,
2224
+ as: null,
2225
+ async: V,
2226
+ autoCapitalize: null,
2227
+ autoComplete: W,
2228
+ autoFocus: V,
2229
+ autoPlay: V,
2230
+ blocking: W,
2231
+ capture: null,
2232
+ charSet: null,
2233
+ checked: V,
2234
+ cite: null,
2235
+ className: W,
2236
+ cols: U,
2237
+ colSpan: null,
2238
+ content: null,
2239
+ contentEditable: H,
2240
+ controls: V,
2241
+ controlsList: W,
2242
+ coords: U | G,
2243
+ crossOrigin: null,
2244
+ data: null,
2245
+ dateTime: null,
2246
+ decoding: null,
2247
+ default: V,
2248
+ defer: V,
2249
+ dir: null,
2250
+ dirName: null,
2251
+ disabled: V,
2252
+ download: Qt,
2253
+ draggable: H,
2254
+ encType: null,
2255
+ enterKeyHint: null,
2256
+ fetchPriority: null,
2257
+ form: null,
2258
+ formAction: null,
2259
+ formEncType: null,
2260
+ formMethod: null,
2261
+ formNoValidate: V,
2262
+ formTarget: null,
2263
+ headers: W,
2264
+ height: U,
2265
+ hidden: Qt,
2266
+ high: U,
2267
+ href: null,
2268
+ hrefLang: null,
2269
+ htmlFor: W,
2270
+ httpEquiv: W,
2271
+ id: null,
2272
+ imageSizes: null,
2273
+ imageSrcSet: null,
2274
+ inert: V,
2275
+ inputMode: null,
2276
+ integrity: null,
2277
+ is: null,
2278
+ isMap: V,
2279
+ itemId: null,
2280
+ itemProp: W,
2281
+ itemRef: W,
2282
+ itemScope: V,
2283
+ itemType: W,
2284
+ kind: null,
2285
+ label: null,
2286
+ lang: null,
2287
+ language: null,
2288
+ list: null,
2289
+ loading: null,
2290
+ loop: V,
2291
+ low: U,
2292
+ manifest: null,
2293
+ max: null,
2294
+ maxLength: U,
2295
+ media: null,
2296
+ method: null,
2297
+ min: null,
2298
+ minLength: U,
2299
+ multiple: V,
2300
+ muted: V,
2301
+ name: null,
2302
+ nonce: null,
2303
+ noModule: V,
2304
+ noValidate: V,
2305
+ onAbort: null,
2306
+ onAfterPrint: null,
2307
+ onAuxClick: null,
2308
+ onBeforeMatch: null,
2309
+ onBeforePrint: null,
2310
+ onBeforeToggle: null,
2311
+ onBeforeUnload: null,
2312
+ onBlur: null,
2313
+ onCancel: null,
2314
+ onCanPlay: null,
2315
+ onCanPlayThrough: null,
2316
+ onChange: null,
2317
+ onClick: null,
2318
+ onClose: null,
2319
+ onContextLost: null,
2320
+ onContextMenu: null,
2321
+ onContextRestored: null,
2322
+ onCopy: null,
2323
+ onCueChange: null,
2324
+ onCut: null,
2325
+ onDblClick: null,
2326
+ onDrag: null,
2327
+ onDragEnd: null,
2328
+ onDragEnter: null,
2329
+ onDragExit: null,
2330
+ onDragLeave: null,
2331
+ onDragOver: null,
2332
+ onDragStart: null,
2333
+ onDrop: null,
2334
+ onDurationChange: null,
2335
+ onEmptied: null,
2336
+ onEnded: null,
2337
+ onError: null,
2338
+ onFocus: null,
2339
+ onFormData: null,
2340
+ onHashChange: null,
2341
+ onInput: null,
2342
+ onInvalid: null,
2343
+ onKeyDown: null,
2344
+ onKeyPress: null,
2345
+ onKeyUp: null,
2346
+ onLanguageChange: null,
2347
+ onLoad: null,
2348
+ onLoadedData: null,
2349
+ onLoadedMetadata: null,
2350
+ onLoadEnd: null,
2351
+ onLoadStart: null,
2352
+ onMessage: null,
2353
+ onMessageError: null,
2354
+ onMouseDown: null,
2355
+ onMouseEnter: null,
2356
+ onMouseLeave: null,
2357
+ onMouseMove: null,
2358
+ onMouseOut: null,
2359
+ onMouseOver: null,
2360
+ onMouseUp: null,
2361
+ onOffline: null,
2362
+ onOnline: null,
2363
+ onPageHide: null,
2364
+ onPageShow: null,
2365
+ onPaste: null,
2366
+ onPause: null,
2367
+ onPlay: null,
2368
+ onPlaying: null,
2369
+ onPopState: null,
2370
+ onProgress: null,
2371
+ onRateChange: null,
2372
+ onRejectionHandled: null,
2373
+ onReset: null,
2374
+ onResize: null,
2375
+ onScroll: null,
2376
+ onScrollEnd: null,
2377
+ onSecurityPolicyViolation: null,
2378
+ onSeeked: null,
2379
+ onSeeking: null,
2380
+ onSelect: null,
2381
+ onSlotChange: null,
2382
+ onStalled: null,
2383
+ onStorage: null,
2384
+ onSubmit: null,
2385
+ onSuspend: null,
2386
+ onTimeUpdate: null,
2387
+ onToggle: null,
2388
+ onUnhandledRejection: null,
2389
+ onUnload: null,
2390
+ onVolumeChange: null,
2391
+ onWaiting: null,
2392
+ onWheel: null,
2393
+ open: V,
2394
+ optimum: U,
2395
+ pattern: null,
2396
+ ping: W,
2397
+ placeholder: null,
2398
+ playsInline: V,
2399
+ popover: null,
2400
+ popoverTarget: null,
2401
+ popoverTargetAction: null,
2402
+ poster: null,
2403
+ preload: null,
2404
+ readOnly: V,
2405
+ referrerPolicy: null,
2406
+ rel: W,
2407
+ required: V,
2408
+ reversed: V,
2409
+ rows: U,
2410
+ rowSpan: U,
2411
+ sandbox: W,
2412
+ scope: null,
2413
+ scoped: V,
2414
+ seamless: V,
2415
+ selected: V,
2416
+ shadowRootClonable: V,
2417
+ shadowRootDelegatesFocus: V,
2418
+ shadowRootMode: null,
2419
+ shape: null,
2420
+ size: U,
2421
+ sizes: null,
2422
+ slot: null,
2423
+ span: U,
2424
+ spellCheck: H,
2425
+ src: null,
2426
+ srcDoc: null,
2427
+ srcLang: null,
2428
+ srcSet: null,
2429
+ start: U,
2430
+ step: null,
2431
+ style: null,
2432
+ tabIndex: U,
2433
+ target: null,
2434
+ title: null,
2435
+ translate: null,
2436
+ type: null,
2437
+ typeMustMatch: V,
2438
+ useMap: null,
2439
+ value: H,
2440
+ width: U,
2441
+ wrap: null,
2442
+ writingSuggestions: null,
2443
+ align: null,
2444
+ aLink: null,
2445
+ archive: W,
2446
+ axis: null,
2447
+ background: null,
2448
+ bgColor: null,
2449
+ border: U,
2450
+ borderColor: null,
2451
+ bottomMargin: U,
2452
+ cellPadding: null,
2453
+ cellSpacing: null,
2454
+ char: null,
2455
+ charOff: null,
2456
+ classId: null,
2457
+ clear: null,
2458
+ code: null,
2459
+ codeBase: null,
2460
+ codeType: null,
2461
+ color: null,
2462
+ compact: V,
2463
+ declare: V,
2464
+ event: null,
2465
+ face: null,
2466
+ frame: null,
2467
+ frameBorder: null,
2468
+ hSpace: U,
2469
+ leftMargin: U,
2470
+ link: null,
2471
+ longDesc: null,
2472
+ lowSrc: null,
2473
+ marginHeight: U,
2474
+ marginWidth: U,
2475
+ noResize: V,
2476
+ noHref: V,
2477
+ noShade: V,
2478
+ noWrap: V,
2479
+ object: null,
2480
+ profile: null,
2481
+ prompt: null,
2482
+ rev: null,
2483
+ rightMargin: U,
2484
+ rules: null,
2485
+ scheme: null,
2486
+ scrolling: H,
2487
+ standby: null,
2488
+ summary: null,
2489
+ text: null,
2490
+ topMargin: U,
2491
+ valueType: null,
2492
+ version: null,
2493
+ vAlign: null,
2494
+ vLink: null,
2495
+ vSpace: U,
2496
+ allowTransparency: null,
2497
+ autoCorrect: null,
2498
+ autoSave: null,
2499
+ disablePictureInPicture: V,
2500
+ disableRemotePlayback: V,
2501
+ prefix: null,
2502
+ property: null,
2503
+ results: U,
2504
+ security: null,
2505
+ unselectable: null
2506
+ },
2507
+ space: "html",
2508
+ transform: an
2509
+ }), sn = J({
2510
+ attributes: {
2511
+ accentHeight: "accent-height",
2512
+ alignmentBaseline: "alignment-baseline",
2513
+ arabicForm: "arabic-form",
2514
+ baselineShift: "baseline-shift",
2515
+ capHeight: "cap-height",
2516
+ className: "class",
2517
+ clipPath: "clip-path",
2518
+ clipRule: "clip-rule",
2519
+ colorInterpolation: "color-interpolation",
2520
+ colorInterpolationFilters: "color-interpolation-filters",
2521
+ colorProfile: "color-profile",
2522
+ colorRendering: "color-rendering",
2523
+ crossOrigin: "crossorigin",
2524
+ dataType: "datatype",
2525
+ dominantBaseline: "dominant-baseline",
2526
+ enableBackground: "enable-background",
2527
+ fillOpacity: "fill-opacity",
2528
+ fillRule: "fill-rule",
2529
+ floodColor: "flood-color",
2530
+ floodOpacity: "flood-opacity",
2531
+ fontFamily: "font-family",
2532
+ fontSize: "font-size",
2533
+ fontSizeAdjust: "font-size-adjust",
2534
+ fontStretch: "font-stretch",
2535
+ fontStyle: "font-style",
2536
+ fontVariant: "font-variant",
2537
+ fontWeight: "font-weight",
2538
+ glyphName: "glyph-name",
2539
+ glyphOrientationHorizontal: "glyph-orientation-horizontal",
2540
+ glyphOrientationVertical: "glyph-orientation-vertical",
2541
+ hrefLang: "hreflang",
2542
+ horizAdvX: "horiz-adv-x",
2543
+ horizOriginX: "horiz-origin-x",
2544
+ horizOriginY: "horiz-origin-y",
2545
+ imageRendering: "image-rendering",
2546
+ letterSpacing: "letter-spacing",
2547
+ lightingColor: "lighting-color",
2548
+ markerEnd: "marker-end",
2549
+ markerMid: "marker-mid",
2550
+ markerStart: "marker-start",
2551
+ navDown: "nav-down",
2552
+ navDownLeft: "nav-down-left",
2553
+ navDownRight: "nav-down-right",
2554
+ navLeft: "nav-left",
2555
+ navNext: "nav-next",
2556
+ navPrev: "nav-prev",
2557
+ navRight: "nav-right",
2558
+ navUp: "nav-up",
2559
+ navUpLeft: "nav-up-left",
2560
+ navUpRight: "nav-up-right",
2561
+ onAbort: "onabort",
2562
+ onActivate: "onactivate",
2563
+ onAfterPrint: "onafterprint",
2564
+ onBeforePrint: "onbeforeprint",
2565
+ onBegin: "onbegin",
2566
+ onCancel: "oncancel",
2567
+ onCanPlay: "oncanplay",
2568
+ onCanPlayThrough: "oncanplaythrough",
2569
+ onChange: "onchange",
2570
+ onClick: "onclick",
2571
+ onClose: "onclose",
2572
+ onCopy: "oncopy",
2573
+ onCueChange: "oncuechange",
2574
+ onCut: "oncut",
2575
+ onDblClick: "ondblclick",
2576
+ onDrag: "ondrag",
2577
+ onDragEnd: "ondragend",
2578
+ onDragEnter: "ondragenter",
2579
+ onDragExit: "ondragexit",
2580
+ onDragLeave: "ondragleave",
2581
+ onDragOver: "ondragover",
2582
+ onDragStart: "ondragstart",
2583
+ onDrop: "ondrop",
2584
+ onDurationChange: "ondurationchange",
2585
+ onEmptied: "onemptied",
2586
+ onEnd: "onend",
2587
+ onEnded: "onended",
2588
+ onError: "onerror",
2589
+ onFocus: "onfocus",
2590
+ onFocusIn: "onfocusin",
2591
+ onFocusOut: "onfocusout",
2592
+ onHashChange: "onhashchange",
2593
+ onInput: "oninput",
2594
+ onInvalid: "oninvalid",
2595
+ onKeyDown: "onkeydown",
2596
+ onKeyPress: "onkeypress",
2597
+ onKeyUp: "onkeyup",
2598
+ onLoad: "onload",
2599
+ onLoadedData: "onloadeddata",
2600
+ onLoadedMetadata: "onloadedmetadata",
2601
+ onLoadStart: "onloadstart",
2602
+ onMessage: "onmessage",
2603
+ onMouseDown: "onmousedown",
2604
+ onMouseEnter: "onmouseenter",
2605
+ onMouseLeave: "onmouseleave",
2606
+ onMouseMove: "onmousemove",
2607
+ onMouseOut: "onmouseout",
2608
+ onMouseOver: "onmouseover",
2609
+ onMouseUp: "onmouseup",
2610
+ onMouseWheel: "onmousewheel",
2611
+ onOffline: "onoffline",
2612
+ onOnline: "ononline",
2613
+ onPageHide: "onpagehide",
2614
+ onPageShow: "onpageshow",
2615
+ onPaste: "onpaste",
2616
+ onPause: "onpause",
2617
+ onPlay: "onplay",
2618
+ onPlaying: "onplaying",
2619
+ onPopState: "onpopstate",
2620
+ onProgress: "onprogress",
2621
+ onRateChange: "onratechange",
2622
+ onRepeat: "onrepeat",
2623
+ onReset: "onreset",
2624
+ onResize: "onresize",
2625
+ onScroll: "onscroll",
2626
+ onSeeked: "onseeked",
2627
+ onSeeking: "onseeking",
2628
+ onSelect: "onselect",
2629
+ onShow: "onshow",
2630
+ onStalled: "onstalled",
2631
+ onStorage: "onstorage",
2632
+ onSubmit: "onsubmit",
2633
+ onSuspend: "onsuspend",
2634
+ onTimeUpdate: "ontimeupdate",
2635
+ onToggle: "ontoggle",
2636
+ onUnload: "onunload",
2637
+ onVolumeChange: "onvolumechange",
2638
+ onWaiting: "onwaiting",
2639
+ onZoom: "onzoom",
2640
+ overlinePosition: "overline-position",
2641
+ overlineThickness: "overline-thickness",
2642
+ paintOrder: "paint-order",
2643
+ panose1: "panose-1",
2644
+ pointerEvents: "pointer-events",
2645
+ referrerPolicy: "referrerpolicy",
2646
+ renderingIntent: "rendering-intent",
2647
+ shapeRendering: "shape-rendering",
2648
+ stopColor: "stop-color",
2649
+ stopOpacity: "stop-opacity",
2650
+ strikethroughPosition: "strikethrough-position",
2651
+ strikethroughThickness: "strikethrough-thickness",
2652
+ strokeDashArray: "stroke-dasharray",
2653
+ strokeDashOffset: "stroke-dashoffset",
2654
+ strokeLineCap: "stroke-linecap",
2655
+ strokeLineJoin: "stroke-linejoin",
2656
+ strokeMiterLimit: "stroke-miterlimit",
2657
+ strokeOpacity: "stroke-opacity",
2658
+ strokeWidth: "stroke-width",
2659
+ tabIndex: "tabindex",
2660
+ textAnchor: "text-anchor",
2661
+ textDecoration: "text-decoration",
2662
+ textRendering: "text-rendering",
2663
+ transformOrigin: "transform-origin",
2664
+ typeOf: "typeof",
2665
+ underlinePosition: "underline-position",
2666
+ underlineThickness: "underline-thickness",
2667
+ unicodeBidi: "unicode-bidi",
2668
+ unicodeRange: "unicode-range",
2669
+ unitsPerEm: "units-per-em",
2670
+ vAlphabetic: "v-alphabetic",
2671
+ vHanging: "v-hanging",
2672
+ vIdeographic: "v-ideographic",
2673
+ vMathematical: "v-mathematical",
2674
+ vectorEffect: "vector-effect",
2675
+ vertAdvY: "vert-adv-y",
2676
+ vertOriginX: "vert-origin-x",
2677
+ vertOriginY: "vert-origin-y",
2678
+ wordSpacing: "word-spacing",
2679
+ writingMode: "writing-mode",
2680
+ xHeight: "x-height",
2681
+ playbackOrder: "playbackorder",
2682
+ timelineBegin: "timelinebegin"
2683
+ },
2684
+ properties: {
2685
+ about: K,
2686
+ accentHeight: U,
2687
+ accumulate: null,
2688
+ additive: null,
2689
+ alignmentBaseline: null,
2690
+ alphabetic: U,
2691
+ amplitude: U,
2692
+ arabicForm: null,
2693
+ ascent: U,
2694
+ attributeName: null,
2695
+ attributeType: null,
2696
+ azimuth: U,
2697
+ bandwidth: null,
2698
+ baselineShift: null,
2699
+ baseFrequency: null,
2700
+ baseProfile: null,
2701
+ bbox: null,
2702
+ begin: null,
2703
+ bias: U,
2704
+ by: null,
2705
+ calcMode: null,
2706
+ capHeight: U,
2707
+ className: W,
2708
+ clip: null,
2709
+ clipPath: null,
2710
+ clipPathUnits: null,
2711
+ clipRule: null,
2712
+ color: null,
2713
+ colorInterpolation: null,
2714
+ colorInterpolationFilters: null,
2715
+ colorProfile: null,
2716
+ colorRendering: null,
2717
+ content: null,
2718
+ contentScriptType: null,
2719
+ contentStyleType: null,
2720
+ crossOrigin: null,
2721
+ cursor: null,
2722
+ cx: null,
2723
+ cy: null,
2724
+ d: null,
2725
+ dataType: null,
2726
+ defaultAction: null,
2727
+ descent: U,
2728
+ diffuseConstant: U,
2729
+ direction: null,
2730
+ display: null,
2731
+ dur: null,
2732
+ divisor: U,
2733
+ dominantBaseline: null,
2734
+ download: V,
2735
+ dx: null,
2736
+ dy: null,
2737
+ edgeMode: null,
2738
+ editable: null,
2739
+ elevation: U,
2740
+ enableBackground: null,
2741
+ end: null,
2742
+ event: null,
2743
+ exponent: U,
2744
+ externalResourcesRequired: null,
2745
+ fill: null,
2746
+ fillOpacity: U,
2747
+ fillRule: null,
2748
+ filter: null,
2749
+ filterRes: null,
2750
+ filterUnits: null,
2751
+ floodColor: null,
2752
+ floodOpacity: null,
2753
+ focusable: null,
2754
+ focusHighlight: null,
2755
+ fontFamily: null,
2756
+ fontSize: null,
2757
+ fontSizeAdjust: null,
2758
+ fontStretch: null,
2759
+ fontStyle: null,
2760
+ fontVariant: null,
2761
+ fontWeight: null,
2762
+ format: null,
2763
+ fr: null,
2764
+ from: null,
2765
+ fx: null,
2766
+ fy: null,
2767
+ g1: G,
2768
+ g2: G,
2769
+ glyphName: G,
2770
+ glyphOrientationHorizontal: null,
2771
+ glyphOrientationVertical: null,
2772
+ glyphRef: null,
2773
+ gradientTransform: null,
2774
+ gradientUnits: null,
2775
+ handler: null,
2776
+ hanging: U,
2777
+ hatchContentUnits: null,
2778
+ hatchUnits: null,
2779
+ height: null,
2780
+ href: null,
2781
+ hrefLang: null,
2782
+ horizAdvX: U,
2783
+ horizOriginX: U,
2784
+ horizOriginY: U,
2785
+ id: null,
2786
+ ideographic: U,
2787
+ imageRendering: null,
2788
+ initialVisibility: null,
2789
+ in: null,
2790
+ in2: null,
2791
+ intercept: U,
2792
+ k: U,
2793
+ k1: U,
2794
+ k2: U,
2795
+ k3: U,
2796
+ k4: U,
2797
+ kernelMatrix: K,
2798
+ kernelUnitLength: null,
2799
+ keyPoints: null,
2800
+ keySplines: null,
2801
+ keyTimes: null,
2802
+ kerning: null,
2803
+ lang: null,
2804
+ lengthAdjust: null,
2805
+ letterSpacing: null,
2806
+ lightingColor: null,
2807
+ limitingConeAngle: U,
2808
+ local: null,
2809
+ markerEnd: null,
2810
+ markerMid: null,
2811
+ markerStart: null,
2812
+ markerHeight: null,
2813
+ markerUnits: null,
2814
+ markerWidth: null,
2815
+ mask: null,
2816
+ maskContentUnits: null,
2817
+ maskUnits: null,
2818
+ mathematical: null,
2819
+ max: null,
2820
+ media: null,
2821
+ mediaCharacterEncoding: null,
2822
+ mediaContentEncodings: null,
2823
+ mediaSize: U,
2824
+ mediaTime: null,
2825
+ method: null,
2826
+ min: null,
2827
+ mode: null,
2828
+ name: null,
2829
+ navDown: null,
2830
+ navDownLeft: null,
2831
+ navDownRight: null,
2832
+ navLeft: null,
2833
+ navNext: null,
2834
+ navPrev: null,
2835
+ navRight: null,
2836
+ navUp: null,
2837
+ navUpLeft: null,
2838
+ navUpRight: null,
2839
+ numOctaves: null,
2840
+ observer: null,
2841
+ offset: null,
2842
+ onAbort: null,
2843
+ onActivate: null,
2844
+ onAfterPrint: null,
2845
+ onBeforePrint: null,
2846
+ onBegin: null,
2847
+ onCancel: null,
2848
+ onCanPlay: null,
2849
+ onCanPlayThrough: null,
2850
+ onChange: null,
2851
+ onClick: null,
2852
+ onClose: null,
2853
+ onCopy: null,
2854
+ onCueChange: null,
2855
+ onCut: null,
2856
+ onDblClick: null,
2857
+ onDrag: null,
2858
+ onDragEnd: null,
2859
+ onDragEnter: null,
2860
+ onDragExit: null,
2861
+ onDragLeave: null,
2862
+ onDragOver: null,
2863
+ onDragStart: null,
2864
+ onDrop: null,
2865
+ onDurationChange: null,
2866
+ onEmptied: null,
2867
+ onEnd: null,
2868
+ onEnded: null,
2869
+ onError: null,
2870
+ onFocus: null,
2871
+ onFocusIn: null,
2872
+ onFocusOut: null,
2873
+ onHashChange: null,
2874
+ onInput: null,
2875
+ onInvalid: null,
2876
+ onKeyDown: null,
2877
+ onKeyPress: null,
2878
+ onKeyUp: null,
2879
+ onLoad: null,
2880
+ onLoadedData: null,
2881
+ onLoadedMetadata: null,
2882
+ onLoadStart: null,
2883
+ onMessage: null,
2884
+ onMouseDown: null,
2885
+ onMouseEnter: null,
2886
+ onMouseLeave: null,
2887
+ onMouseMove: null,
2888
+ onMouseOut: null,
2889
+ onMouseOver: null,
2890
+ onMouseUp: null,
2891
+ onMouseWheel: null,
2892
+ onOffline: null,
2893
+ onOnline: null,
2894
+ onPageHide: null,
2895
+ onPageShow: null,
2896
+ onPaste: null,
2897
+ onPause: null,
2898
+ onPlay: null,
2899
+ onPlaying: null,
2900
+ onPopState: null,
2901
+ onProgress: null,
2902
+ onRateChange: null,
2903
+ onRepeat: null,
2904
+ onReset: null,
2905
+ onResize: null,
2906
+ onScroll: null,
2907
+ onSeeked: null,
2908
+ onSeeking: null,
2909
+ onSelect: null,
2910
+ onShow: null,
2911
+ onStalled: null,
2912
+ onStorage: null,
2913
+ onSubmit: null,
2914
+ onSuspend: null,
2915
+ onTimeUpdate: null,
2916
+ onToggle: null,
2917
+ onUnload: null,
2918
+ onVolumeChange: null,
2919
+ onWaiting: null,
2920
+ onZoom: null,
2921
+ opacity: null,
2922
+ operator: null,
2923
+ order: null,
2924
+ orient: null,
2925
+ orientation: null,
2926
+ origin: null,
2927
+ overflow: null,
2928
+ overlay: null,
2929
+ overlinePosition: U,
2930
+ overlineThickness: U,
2931
+ paintOrder: null,
2932
+ panose1: null,
2933
+ path: null,
2934
+ pathLength: U,
2935
+ patternContentUnits: null,
2936
+ patternTransform: null,
2937
+ patternUnits: null,
2938
+ phase: null,
2939
+ ping: W,
2940
+ pitch: null,
2941
+ playbackOrder: null,
2942
+ pointerEvents: null,
2943
+ points: null,
2944
+ pointsAtX: U,
2945
+ pointsAtY: U,
2946
+ pointsAtZ: U,
2947
+ preserveAlpha: null,
2948
+ preserveAspectRatio: null,
2949
+ primitiveUnits: null,
2950
+ propagate: null,
2951
+ property: K,
2952
+ r: null,
2953
+ radius: null,
2954
+ referrerPolicy: null,
2955
+ refX: null,
2956
+ refY: null,
2957
+ rel: K,
2958
+ rev: K,
2959
+ renderingIntent: null,
2960
+ repeatCount: null,
2961
+ repeatDur: null,
2962
+ requiredExtensions: K,
2963
+ requiredFeatures: K,
2964
+ requiredFonts: K,
2965
+ requiredFormats: K,
2966
+ resource: null,
2967
+ restart: null,
2968
+ result: null,
2969
+ rotate: null,
2970
+ rx: null,
2971
+ ry: null,
2972
+ scale: null,
2973
+ seed: null,
2974
+ shapeRendering: null,
2975
+ side: null,
2976
+ slope: null,
2977
+ snapshotTime: null,
2978
+ specularConstant: U,
2979
+ specularExponent: U,
2980
+ spreadMethod: null,
2981
+ spacing: null,
2982
+ startOffset: null,
2983
+ stdDeviation: null,
2984
+ stemh: null,
2985
+ stemv: null,
2986
+ stitchTiles: null,
2987
+ stopColor: null,
2988
+ stopOpacity: null,
2989
+ strikethroughPosition: U,
2990
+ strikethroughThickness: U,
2991
+ string: null,
2992
+ stroke: null,
2993
+ strokeDashArray: K,
2994
+ strokeDashOffset: null,
2995
+ strokeLineCap: null,
2996
+ strokeLineJoin: null,
2997
+ strokeMiterLimit: U,
2998
+ strokeOpacity: U,
2999
+ strokeWidth: null,
3000
+ style: null,
3001
+ surfaceScale: U,
3002
+ syncBehavior: null,
3003
+ syncBehaviorDefault: null,
3004
+ syncMaster: null,
3005
+ syncTolerance: null,
3006
+ syncToleranceDefault: null,
3007
+ systemLanguage: K,
3008
+ tabIndex: U,
3009
+ tableValues: null,
3010
+ target: null,
3011
+ targetX: U,
3012
+ targetY: U,
3013
+ textAnchor: null,
3014
+ textDecoration: null,
3015
+ textRendering: null,
3016
+ textLength: null,
3017
+ timelineBegin: null,
3018
+ title: null,
3019
+ transformBehavior: null,
3020
+ type: null,
3021
+ typeOf: K,
3022
+ to: null,
3023
+ transform: null,
3024
+ transformOrigin: null,
3025
+ u1: null,
3026
+ u2: null,
3027
+ underlinePosition: U,
3028
+ underlineThickness: U,
3029
+ unicode: null,
3030
+ unicodeBidi: null,
3031
+ unicodeRange: null,
3032
+ unitsPerEm: U,
3033
+ values: null,
3034
+ vAlphabetic: U,
3035
+ vMathematical: U,
3036
+ vectorEffect: null,
3037
+ vHanging: U,
3038
+ vIdeographic: U,
3039
+ version: null,
3040
+ vertAdvY: U,
3041
+ vertOriginX: U,
3042
+ vertOriginY: U,
3043
+ viewBox: null,
3044
+ viewTarget: null,
3045
+ visibility: null,
3046
+ width: null,
3047
+ widths: null,
3048
+ wordSpacing: null,
3049
+ writingMode: null,
3050
+ x: null,
3051
+ x1: null,
3052
+ x2: null,
3053
+ xChannelSelector: null,
3054
+ xHeight: U,
3055
+ y: null,
3056
+ y1: null,
3057
+ y2: null,
3058
+ yChannelSelector: null,
3059
+ z: null,
3060
+ zoomAndPan: null
3061
+ },
3062
+ space: "svg",
3063
+ transform: rn
3064
+ }), cn = J({
3065
+ properties: {
3066
+ xLinkActuate: null,
3067
+ xLinkArcRole: null,
3068
+ xLinkHref: null,
3069
+ xLinkRole: null,
3070
+ xLinkShow: null,
3071
+ xLinkTitle: null,
3072
+ xLinkType: null
3073
+ },
3074
+ space: "xlink",
3075
+ transform(e, t) {
3076
+ return "xlink:" + t.slice(5).toLowerCase();
3077
+ }
3078
+ }), ln = J({
3079
+ attributes: { xmlnsxlink: "xmlns:xlink" },
3080
+ properties: {
3081
+ xmlnsXLink: null,
3082
+ xmlns: null
3083
+ },
3084
+ space: "xmlns",
3085
+ transform: an
3086
+ }), un = J({
3087
+ properties: {
3088
+ xmlBase: null,
3089
+ xmlLang: null,
3090
+ xmlSpace: null
3091
+ },
3092
+ space: "xml",
3093
+ transform(e, t) {
3094
+ return "xml:" + t.slice(3).toLowerCase();
3095
+ }
3096
+ }), dn = /[A-Z]/g, fn = /-[a-z]/g, pn = /^data[-\w.:]+$/i;
3097
+ function mn(e, t) {
3098
+ let n = Yt(t), r = t, i = B;
3099
+ if (n in e.normal) return e.property[e.normal[n]];
3100
+ if (n.length > 4 && n.slice(0, 4) === "data" && pn.test(t)) {
3101
+ if (t.charAt(4) === "-") {
3102
+ let e = t.slice(5).replace(fn, gn);
3103
+ r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
3104
+ } else {
3105
+ let e = t.slice(4);
3106
+ if (!fn.test(e)) {
3107
+ let n = e.replace(dn, hn);
3108
+ n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
3109
+ }
3110
+ }
3111
+ i = en;
3112
+ }
3113
+ return new i(r, t);
3114
+ }
3115
+ function hn(e) {
3116
+ return "-" + e.toLowerCase();
3117
+ }
3118
+ function gn(e) {
3119
+ return e.charAt(1).toUpperCase();
3120
+ }
3121
+ //#endregion
3122
+ //#region node_modules/property-information/index.js
3123
+ var _n = Jt([
3124
+ nn,
3125
+ on,
3126
+ cn,
3127
+ ln,
3128
+ un
3129
+ ], "html"), vn = Jt([
3130
+ nn,
3131
+ sn,
3132
+ cn,
3133
+ ln,
3134
+ un
3135
+ ], "svg"), yn = /["&'<>`]/g, bn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, xn = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, Sn = /[|\\{}()[\]^$+*?.]/g, Cn = /* @__PURE__ */ new WeakMap();
3136
+ function wn(e, t) {
3137
+ if (e = e.replace(t.subset ? Tn(t.subset) : yn, r), t.subset || t.escapeOnly) return e;
3138
+ return e.replace(bn, n).replace(xn, r);
3139
+ function n(e, n, r) {
3140
+ return t.format((e.charCodeAt(0) - 55296) * 1024 + e.charCodeAt(1) - 56320 + 65536, r.charCodeAt(n + 2), t);
3141
+ }
3142
+ function r(e, n, r) {
3143
+ return t.format(e.charCodeAt(0), r.charCodeAt(n + 1), t);
3144
+ }
3145
+ }
3146
+ function Tn(e) {
3147
+ let t = Cn.get(e);
3148
+ return t || (t = En(e), Cn.set(e, t)), t;
3149
+ }
3150
+ function En(e) {
3151
+ let t = [], n = -1;
3152
+ for (; ++n < e.length;) t.push(e[n].replace(Sn, "\\$&"));
3153
+ return RegExp("(?:" + t.join("|") + ")", "g");
3154
+ }
3155
+ //#endregion
3156
+ //#region node_modules/stringify-entities/lib/util/to-hexadecimal.js
3157
+ var Dn = /[\dA-Fa-f]/;
3158
+ function On(e, t, n) {
3159
+ let r = "&#x" + e.toString(16).toUpperCase();
3160
+ return n && t && !Dn.test(String.fromCharCode(t)) ? r : r + ";";
3161
+ }
3162
+ //#endregion
3163
+ //#region node_modules/stringify-entities/lib/util/to-decimal.js
3164
+ var kn = /\d/;
3165
+ function An(e, t, n) {
3166
+ let r = "&#" + String(e);
3167
+ return n && t && !kn.test(String.fromCharCode(t)) ? r : r + ";";
3168
+ }
3169
+ //#endregion
3170
+ //#region node_modules/character-entities-legacy/index.js
3171
+ var jn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), Mn = {
3172
+ nbsp: "\xA0",
3173
+ iexcl: "¡",
3174
+ cent: "¢",
3175
+ pound: "£",
3176
+ curren: "¤",
3177
+ yen: "¥",
3178
+ brvbar: "¦",
3179
+ sect: "§",
3180
+ uml: "¨",
3181
+ copy: "©",
3182
+ ordf: "ª",
3183
+ laquo: "«",
3184
+ not: "¬",
3185
+ shy: "­",
3186
+ reg: "®",
3187
+ macr: "¯",
3188
+ deg: "°",
3189
+ plusmn: "±",
3190
+ sup2: "²",
3191
+ sup3: "³",
3192
+ acute: "´",
3193
+ micro: "µ",
3194
+ para: "¶",
3195
+ middot: "·",
3196
+ cedil: "¸",
3197
+ sup1: "¹",
3198
+ ordm: "º",
3199
+ raquo: "»",
3200
+ frac14: "¼",
3201
+ frac12: "½",
3202
+ frac34: "¾",
3203
+ iquest: "¿",
3204
+ Agrave: "À",
3205
+ Aacute: "Á",
3206
+ Acirc: "Â",
3207
+ Atilde: "Ã",
3208
+ Auml: "Ä",
3209
+ Aring: "Å",
3210
+ AElig: "Æ",
3211
+ Ccedil: "Ç",
3212
+ Egrave: "È",
3213
+ Eacute: "É",
3214
+ Ecirc: "Ê",
3215
+ Euml: "Ë",
3216
+ Igrave: "Ì",
3217
+ Iacute: "Í",
3218
+ Icirc: "Î",
3219
+ Iuml: "Ï",
3220
+ ETH: "Ð",
3221
+ Ntilde: "Ñ",
3222
+ Ograve: "Ò",
3223
+ Oacute: "Ó",
3224
+ Ocirc: "Ô",
3225
+ Otilde: "Õ",
3226
+ Ouml: "Ö",
3227
+ times: "×",
3228
+ Oslash: "Ø",
3229
+ Ugrave: "Ù",
3230
+ Uacute: "Ú",
3231
+ Ucirc: "Û",
3232
+ Uuml: "Ü",
3233
+ Yacute: "Ý",
3234
+ THORN: "Þ",
3235
+ szlig: "ß",
3236
+ agrave: "à",
3237
+ aacute: "á",
3238
+ acirc: "â",
3239
+ atilde: "ã",
3240
+ auml: "ä",
3241
+ aring: "å",
3242
+ aelig: "æ",
3243
+ ccedil: "ç",
3244
+ egrave: "è",
3245
+ eacute: "é",
3246
+ ecirc: "ê",
3247
+ euml: "ë",
3248
+ igrave: "ì",
3249
+ iacute: "í",
3250
+ icirc: "î",
3251
+ iuml: "ï",
3252
+ eth: "ð",
3253
+ ntilde: "ñ",
3254
+ ograve: "ò",
3255
+ oacute: "ó",
3256
+ ocirc: "ô",
3257
+ otilde: "õ",
3258
+ ouml: "ö",
3259
+ divide: "÷",
3260
+ oslash: "ø",
3261
+ ugrave: "ù",
3262
+ uacute: "ú",
3263
+ ucirc: "û",
3264
+ uuml: "ü",
3265
+ yacute: "ý",
3266
+ thorn: "þ",
3267
+ yuml: "ÿ",
3268
+ fnof: "ƒ",
3269
+ Alpha: "Α",
3270
+ Beta: "Β",
3271
+ Gamma: "Γ",
3272
+ Delta: "Δ",
3273
+ Epsilon: "Ε",
3274
+ Zeta: "Ζ",
3275
+ Eta: "Η",
3276
+ Theta: "Θ",
3277
+ Iota: "Ι",
3278
+ Kappa: "Κ",
3279
+ Lambda: "Λ",
3280
+ Mu: "Μ",
3281
+ Nu: "Ν",
3282
+ Xi: "Ξ",
3283
+ Omicron: "Ο",
3284
+ Pi: "Π",
3285
+ Rho: "Ρ",
3286
+ Sigma: "Σ",
3287
+ Tau: "Τ",
3288
+ Upsilon: "Υ",
3289
+ Phi: "Φ",
3290
+ Chi: "Χ",
3291
+ Psi: "Ψ",
3292
+ Omega: "Ω",
3293
+ alpha: "α",
3294
+ beta: "β",
3295
+ gamma: "γ",
3296
+ delta: "δ",
3297
+ epsilon: "ε",
3298
+ zeta: "ζ",
3299
+ eta: "η",
3300
+ theta: "θ",
3301
+ iota: "ι",
3302
+ kappa: "κ",
3303
+ lambda: "λ",
3304
+ mu: "μ",
3305
+ nu: "ν",
3306
+ xi: "ξ",
3307
+ omicron: "ο",
3308
+ pi: "π",
3309
+ rho: "ρ",
3310
+ sigmaf: "ς",
3311
+ sigma: "σ",
3312
+ tau: "τ",
3313
+ upsilon: "υ",
3314
+ phi: "φ",
3315
+ chi: "χ",
3316
+ psi: "ψ",
3317
+ omega: "ω",
3318
+ thetasym: "ϑ",
3319
+ upsih: "ϒ",
3320
+ piv: "ϖ",
3321
+ bull: "•",
3322
+ hellip: "…",
3323
+ prime: "′",
3324
+ Prime: "″",
3325
+ oline: "‾",
3326
+ frasl: "⁄",
3327
+ weierp: "℘",
3328
+ image: "ℑ",
3329
+ real: "ℜ",
3330
+ trade: "™",
3331
+ alefsym: "ℵ",
3332
+ larr: "←",
3333
+ uarr: "↑",
3334
+ rarr: "→",
3335
+ darr: "↓",
3336
+ harr: "↔",
3337
+ crarr: "↵",
3338
+ lArr: "⇐",
3339
+ uArr: "⇑",
3340
+ rArr: "⇒",
3341
+ dArr: "⇓",
3342
+ hArr: "⇔",
3343
+ forall: "∀",
3344
+ part: "∂",
3345
+ exist: "∃",
3346
+ empty: "∅",
3347
+ nabla: "∇",
3348
+ isin: "∈",
3349
+ notin: "∉",
3350
+ ni: "∋",
3351
+ prod: "∏",
3352
+ sum: "∑",
3353
+ minus: "−",
3354
+ lowast: "∗",
3355
+ radic: "√",
3356
+ prop: "∝",
3357
+ infin: "∞",
3358
+ ang: "∠",
3359
+ and: "∧",
3360
+ or: "∨",
3361
+ cap: "∩",
3362
+ cup: "∪",
3363
+ int: "∫",
3364
+ there4: "∴",
3365
+ sim: "∼",
3366
+ cong: "≅",
3367
+ asymp: "≈",
3368
+ ne: "≠",
3369
+ equiv: "≡",
3370
+ le: "≤",
3371
+ ge: "≥",
3372
+ sub: "⊂",
3373
+ sup: "⊃",
3374
+ nsub: "⊄",
3375
+ sube: "⊆",
3376
+ supe: "⊇",
3377
+ oplus: "⊕",
3378
+ otimes: "⊗",
3379
+ perp: "⊥",
3380
+ sdot: "⋅",
3381
+ lceil: "⌈",
3382
+ rceil: "⌉",
3383
+ lfloor: "⌊",
3384
+ rfloor: "⌋",
3385
+ lang: "〈",
3386
+ rang: "〉",
3387
+ loz: "◊",
3388
+ spades: "♠",
3389
+ clubs: "♣",
3390
+ hearts: "♥",
3391
+ diams: "♦",
3392
+ quot: "\"",
3393
+ amp: "&",
3394
+ lt: "<",
3395
+ gt: ">",
3396
+ OElig: "Œ",
3397
+ oelig: "œ",
3398
+ Scaron: "Š",
3399
+ scaron: "š",
3400
+ Yuml: "Ÿ",
3401
+ circ: "ˆ",
3402
+ tilde: "˜",
3403
+ ensp: " ",
3404
+ emsp: " ",
3405
+ thinsp: " ",
3406
+ zwnj: "‌",
3407
+ zwj: "‍",
3408
+ lrm: "‎",
3409
+ rlm: "‏",
3410
+ ndash: "–",
3411
+ mdash: "—",
3412
+ lsquo: "‘",
3413
+ rsquo: "’",
3414
+ sbquo: "‚",
3415
+ ldquo: "“",
3416
+ rdquo: "”",
3417
+ bdquo: "„",
3418
+ dagger: "†",
3419
+ Dagger: "‡",
3420
+ permil: "‰",
3421
+ lsaquo: "‹",
3422
+ rsaquo: "›",
3423
+ euro: "€"
3424
+ }, Nn = [
3425
+ "cent",
3426
+ "copy",
3427
+ "divide",
3428
+ "gt",
3429
+ "lt",
3430
+ "not",
3431
+ "para",
3432
+ "times"
3433
+ ], Pn = {}.hasOwnProperty, Fn = {}, Y;
3434
+ for (Y in Mn) Pn.call(Mn, Y) && (Fn[Mn[Y]] = Y);
3435
+ var In = /[^\dA-Za-z]/;
3436
+ function Ln(e, t, n, r) {
3437
+ let i = String.fromCharCode(e);
3438
+ if (Pn.call(Fn, i)) {
3439
+ let e = Fn[i], a = "&" + e;
3440
+ return n && jn.includes(e) && !Nn.includes(e) && (!r || t && t !== 61 && In.test(String.fromCharCode(t))) ? a : a + ";";
3441
+ }
3442
+ return "";
3443
+ }
3444
+ //#endregion
3445
+ //#region node_modules/stringify-entities/lib/util/format-smart.js
3446
+ function Rn(e, t, n) {
3447
+ let r = On(e, t, n.omitOptionalSemicolons), i;
3448
+ if ((n.useNamedReferences || n.useShortestReferences) && (i = Ln(e, t, n.omitOptionalSemicolons, n.attribute)), (n.useShortestReferences || !i) && n.useShortestReferences) {
3449
+ let i = An(e, t, n.omitOptionalSemicolons);
3450
+ i.length < r.length && (r = i);
3451
+ }
3452
+ return i && (!n.useShortestReferences || i.length < r.length) ? i : r;
3453
+ }
3454
+ //#endregion
3455
+ //#region node_modules/stringify-entities/lib/index.js
3456
+ function X(e, t) {
3457
+ return wn(e, Object.assign({ format: Rn }, t));
3458
+ }
3459
+ //#endregion
3460
+ //#region node_modules/hast-util-to-html/lib/handle/comment.js
3461
+ var zn = /^>|^->|<!--|-->|--!>|<!-$/g, Bn = [">"], Vn = ["<", ">"];
3462
+ function Hn(e, t, n, r) {
3463
+ return r.settings.bogusComments ? "<?" + X(e.value, Object.assign({}, r.settings.characterReferences, { subset: Bn })) + ">" : "<!--" + e.value.replace(zn, i) + "-->";
3464
+ function i(e) {
3465
+ return X(e, Object.assign({}, r.settings.characterReferences, { subset: Vn }));
3466
+ }
3467
+ }
3468
+ //#endregion
3469
+ //#region node_modules/hast-util-to-html/lib/handle/doctype.js
3470
+ function Un(e, t, n, r) {
3471
+ return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
3472
+ }
3473
+ //#endregion
3474
+ //#region node_modules/comma-separated-tokens/index.js
3475
+ function Wn(e, t) {
3476
+ let n = t || {};
3477
+ return (e[e.length - 1] === "" ? [...e, ""] : e).join((n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")).trim();
3478
+ }
3479
+ //#endregion
3480
+ //#region node_modules/space-separated-tokens/index.js
3481
+ function Gn(e) {
3482
+ return e.join(" ").trim();
3483
+ }
3484
+ //#endregion
3485
+ //#region node_modules/hast-util-whitespace/lib/index.js
3486
+ var Kn = /[ \t\n\f\r]/g;
3487
+ function qn(e) {
3488
+ return typeof e == "object" ? e.type === "text" ? Jn(e.value) : !1 : Jn(e);
3489
+ }
3490
+ function Jn(e) {
3491
+ return e.replace(Kn, "") === "";
3492
+ }
3493
+ //#endregion
3494
+ //#region node_modules/hast-util-to-html/lib/omission/util/siblings.js
3495
+ var Z = Zn(1), Yn = Zn(-1), Xn = [];
3496
+ function Zn(e) {
3497
+ return t;
3498
+ function t(t, n, r) {
3499
+ let i = t ? t.children : Xn, a = (n || 0) + e, o = i[a];
3500
+ if (!r) for (; o && qn(o);) a += e, o = i[a];
3501
+ return o;
3502
+ }
3503
+ }
3504
+ //#endregion
3505
+ //#region node_modules/hast-util-to-html/lib/omission/omission.js
3506
+ var Qn = {}.hasOwnProperty;
3507
+ function $n(e) {
3508
+ return t;
3509
+ function t(t, n, r) {
3510
+ return Qn.call(e, t.tagName) && e[t.tagName](t, n, r);
3511
+ }
3512
+ }
3513
+ //#endregion
3514
+ //#region node_modules/hast-util-to-html/lib/omission/closing.js
3515
+ var er = $n({
3516
+ body: rr,
3517
+ caption: tr,
3518
+ colgroup: tr,
3519
+ dd: sr,
3520
+ dt: or,
3521
+ head: tr,
3522
+ html: nr,
3523
+ li: ar,
3524
+ optgroup: lr,
3525
+ option: ur,
3526
+ p: ir,
3527
+ rp: cr,
3528
+ rt: cr,
3529
+ tbody: fr,
3530
+ td: hr,
3531
+ tfoot: pr,
3532
+ th: hr,
3533
+ thead: dr,
3534
+ tr: mr
3535
+ });
3536
+ function tr(e, t, n) {
3537
+ let r = Z(n, t, !0);
3538
+ return !r || r.type !== "comment" && !(r.type === "text" && qn(r.value.charAt(0)));
3539
+ }
3540
+ function nr(e, t, n) {
3541
+ let r = Z(n, t);
3542
+ return !r || r.type !== "comment";
3543
+ }
3544
+ function rr(e, t, n) {
3545
+ let r = Z(n, t);
3546
+ return !r || r.type !== "comment";
3547
+ }
3548
+ function ir(e, t, n) {
3549
+ let r = Z(n, t);
3550
+ return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || !(n.type === "element" && (n.tagName === "a" || n.tagName === "audio" || n.tagName === "del" || n.tagName === "ins" || n.tagName === "map" || n.tagName === "noscript" || n.tagName === "video"));
3551
+ }
3552
+ function ar(e, t, n) {
3553
+ let r = Z(n, t);
3554
+ return !r || r.type === "element" && r.tagName === "li";
3555
+ }
3556
+ function or(e, t, n) {
3557
+ let r = Z(n, t);
3558
+ return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
3559
+ }
3560
+ function sr(e, t, n) {
3561
+ let r = Z(n, t);
3562
+ return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
3563
+ }
3564
+ function cr(e, t, n) {
3565
+ let r = Z(n, t);
3566
+ return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
3567
+ }
3568
+ function lr(e, t, n) {
3569
+ let r = Z(n, t);
3570
+ return !r || r.type === "element" && r.tagName === "optgroup";
3571
+ }
3572
+ function ur(e, t, n) {
3573
+ let r = Z(n, t);
3574
+ return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
3575
+ }
3576
+ function dr(e, t, n) {
3577
+ let r = Z(n, t);
3578
+ return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
3579
+ }
3580
+ function fr(e, t, n) {
3581
+ let r = Z(n, t);
3582
+ return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
3583
+ }
3584
+ function pr(e, t, n) {
3585
+ return !Z(n, t);
3586
+ }
3587
+ function mr(e, t, n) {
3588
+ let r = Z(n, t);
3589
+ return !r || r.type === "element" && r.tagName === "tr";
3590
+ }
3591
+ function hr(e, t, n) {
3592
+ let r = Z(n, t);
3593
+ return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
3594
+ }
3595
+ //#endregion
3596
+ //#region node_modules/hast-util-to-html/lib/omission/opening.js
3597
+ var gr = $n({
3598
+ body: yr,
3599
+ colgroup: br,
3600
+ head: vr,
3601
+ html: _r,
3602
+ tbody: xr
3603
+ });
3604
+ function _r(e) {
3605
+ let t = Z(e, -1);
3606
+ return !t || t.type !== "comment";
3607
+ }
3608
+ function vr(e) {
3609
+ let t = /* @__PURE__ */ new Set();
3610
+ for (let n of e.children) if (n.type === "element" && (n.tagName === "base" || n.tagName === "title")) {
3611
+ if (t.has(n.tagName)) return !1;
3612
+ t.add(n.tagName);
3613
+ }
3614
+ let n = e.children[0];
3615
+ return !n || n.type === "element";
3616
+ }
3617
+ function yr(e) {
3618
+ let t = Z(e, -1, !0);
3619
+ return !t || t.type !== "comment" && !(t.type === "text" && qn(t.value.charAt(0))) && !(t.type === "element" && (t.tagName === "meta" || t.tagName === "link" || t.tagName === "script" || t.tagName === "style" || t.tagName === "template"));
3620
+ }
3621
+ function br(e, t, n) {
3622
+ let r = Yn(n, t), i = Z(e, -1, !0);
3623
+ return n && r && r.type === "element" && r.tagName === "colgroup" && er(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
3624
+ }
3625
+ function xr(e, t, n) {
3626
+ let r = Yn(n, t), i = Z(e, -1);
3627
+ return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && er(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
3628
+ }
3629
+ //#endregion
3630
+ //#region node_modules/hast-util-to-html/lib/handle/element.js
3631
+ var Sr = {
3632
+ name: [[" \n\f\r &/=>".split(""), " \n\f\r \"&'/=>`".split("")], ["\0 \n\f\r \"&'/<=>".split(""), "\0 \n\f\r \"&'/<=>`".split("")]],
3633
+ unquoted: [[" \n\f\r &>".split(""), "\0 \n\f\r \"&'<=>`".split("")], ["\0 \n\f\r \"&'<=>`".split(""), "\0 \n\f\r \"&'<=>`".split("")]],
3634
+ single: [["&'".split(""), "\"&'`".split("")], ["\0&'".split(""), "\0\"&'`".split("")]],
3635
+ double: [["\"&".split(""), "\"&'`".split("")], ["\0\"&".split(""), "\0\"&'`".split("")]]
3636
+ };
3637
+ function Cr(e, t, n, r) {
3638
+ let i = r.schema, a = i.space === "svg" ? !1 : r.settings.omitOptionalTags, o = i.space === "svg" ? r.settings.closeEmptyElements : r.settings.voids.includes(e.tagName.toLowerCase()), s = [], c;
3639
+ i.space === "html" && e.tagName === "svg" && (r.schema = vn);
3640
+ let l = wr(r, e.properties), u = r.all(i.space === "html" && e.tagName === "template" ? e.content : e);
3641
+ return r.schema = i, u && (o = !1), (l || !a || !gr(e, t, n)) && (s.push("<", e.tagName, l ? " " + l : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (c = l.charAt(l.length - 1), (!r.settings.tightSelfClosing || c === "/" || c && c !== "\"" && c !== "'") && s.push(" "), s.push("/")), s.push(">")), s.push(u), !o && (!a || !er(e, t, n)) && s.push("</" + e.tagName + ">"), s.join("");
3642
+ }
3643
+ function wr(e, t) {
3644
+ let n = [], r = -1, i;
3645
+ if (t) {
3646
+ for (i in t) if (t[i] !== null && t[i] !== void 0) {
3647
+ let r = Tr(e, i, t[i]);
3648
+ r && n.push(r);
3649
+ }
3650
+ }
3651
+ for (; ++r < n.length;) {
3652
+ let t = e.settings.tightAttributes ? n[r].charAt(n[r].length - 1) : void 0;
3653
+ r !== n.length - 1 && t !== "\"" && t !== "'" && (n[r] += " ");
3654
+ }
3655
+ return n.join("");
3656
+ }
3657
+ function Tr(e, t, n) {
3658
+ let r = mn(e.schema, t), a = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, o = e.settings.allowDangerousCharacters ? 0 : 1, s = e.quote, c;
3659
+ if (r.overloadedBoolean && (n === r.attribute || n === "") ? n = !0 : (r.boolean || r.overloadedBoolean) && (typeof n != "string" || n === r.attribute || n === "") && (n = !!n), n == null || n === !1 || typeof n == "number" && Number.isNaN(n)) return "";
3660
+ let l = X(r.attribute, Object.assign({}, e.settings.characterReferences, { subset: Sr.name[a][o] }));
3661
+ return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? Wn : Gn)(n, { padLeft: !e.settings.tightCommaSeparatedLists }) : String(n), e.settings.collapseEmptyAttributes && !n) ? l : (e.settings.preferUnquoted && (c = X(n, Object.assign({}, e.settings.characterReferences, {
3662
+ attribute: !0,
3663
+ subset: Sr.unquoted[a][o]
3664
+ }))), c !== n && (e.settings.quoteSmart && i(n, s) > i(n, e.alternative) && (s = e.alternative), c = s + X(n, Object.assign({}, e.settings.characterReferences, {
3665
+ subset: (s === "'" ? Sr.single : Sr.double)[a][o],
3666
+ attribute: !0
3667
+ })) + s), l + (c && "=" + c));
3668
+ }
3669
+ //#endregion
3670
+ //#region node_modules/hast-util-to-html/lib/handle/text.js
3671
+ var Er = ["<", "&"];
3672
+ function Dr(e, t, n, r) {
3673
+ return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : X(e.value, Object.assign({}, r.settings.characterReferences, { subset: Er }));
3674
+ }
3675
+ //#endregion
3676
+ //#region node_modules/hast-util-to-html/lib/handle/raw.js
3677
+ function Or(e, t, n, r) {
3678
+ return r.settings.allowDangerousHtml ? e.value : Dr(e, t, n, r);
3679
+ }
3680
+ //#endregion
3681
+ //#region node_modules/hast-util-to-html/lib/handle/root.js
3682
+ function kr(e, t, n, r) {
3683
+ return r.all(e);
3684
+ }
3685
+ //#endregion
3686
+ //#region node_modules/hast-util-to-html/lib/handle/index.js
3687
+ var Ar = o("type", {
3688
+ invalid: jr,
3689
+ unknown: Mr,
3690
+ handlers: {
3691
+ comment: Hn,
3692
+ doctype: Un,
3693
+ element: Cr,
3694
+ raw: Or,
3695
+ root: kr,
3696
+ text: Dr
3697
+ }
3698
+ });
3699
+ function jr(e) {
3700
+ throw Error("Expected node, not `" + e + "`");
3701
+ }
3702
+ function Mr(e) {
3703
+ let t = e;
3704
+ throw Error("Cannot compile unknown node `" + t.type + "`");
3705
+ }
3706
+ //#endregion
3707
+ //#region node_modules/hast-util-to-html/lib/index.js
3708
+ var Nr = {}, Pr = {}, Fr = [];
3709
+ function Ir(e, t) {
3710
+ let n = t || Nr, r = n.quote || "\"", i = r === "\"" ? "'" : "\"";
3711
+ if (r !== "\"" && r !== "'") throw Error("Invalid quote `" + r + "`, expected `'` or `\"`");
3712
+ return {
3713
+ one: Lr,
3714
+ all: Rr,
3715
+ settings: {
3716
+ omitOptionalTags: n.omitOptionalTags || !1,
3717
+ allowParseErrors: n.allowParseErrors || !1,
3718
+ allowDangerousCharacters: n.allowDangerousCharacters || !1,
3719
+ quoteSmart: n.quoteSmart || !1,
3720
+ preferUnquoted: n.preferUnquoted || !1,
3721
+ tightAttributes: n.tightAttributes || !1,
3722
+ upperDoctype: n.upperDoctype || !1,
3723
+ tightDoctype: n.tightDoctype || !1,
3724
+ bogusComments: n.bogusComments || !1,
3725
+ tightCommaSeparatedLists: n.tightCommaSeparatedLists || !1,
3726
+ tightSelfClosing: n.tightSelfClosing || !1,
3727
+ collapseEmptyAttributes: n.collapseEmptyAttributes || !1,
3728
+ allowDangerousHtml: n.allowDangerousHtml || !1,
3729
+ voids: n.voids || qt,
3730
+ characterReferences: n.characterReferences || Pr,
3731
+ closeSelfClosing: n.closeSelfClosing || !1,
3732
+ closeEmptyElements: n.closeEmptyElements || !1
3733
+ },
3734
+ schema: n.space === "svg" ? vn : _n,
3735
+ quote: r,
3736
+ alternative: i
3737
+ }.one(Array.isArray(e) ? {
3738
+ type: "root",
3739
+ children: e
3740
+ } : e, void 0, void 0);
3741
+ }
3742
+ function Lr(e, t, n) {
3743
+ return Ar(e, t, n, this);
3744
+ }
3745
+ function Rr(e) {
3746
+ let t = [], n = e && e.children || Fr, r = -1;
3747
+ for (; ++r < n.length;) t[r] = this.one(n[r], r, e);
3748
+ return t.join("");
3749
+ }
3750
+ //#endregion
3751
+ //#region node_modules/@shikijs/core/dist/index.mjs
3752
+ function zr(e, t) {
3753
+ var n;
3754
+ if (!t) return e;
3755
+ e.properties || (e.properties = {}), (n = e.properties).class || (n.class = []), typeof e.properties.class == "string" && (e.properties.class = e.properties.class.split(/\s+/g)), Array.isArray(e.properties.class) || (e.properties.class = []);
3756
+ let r = Array.isArray(t) ? t : t.split(/\s+/g);
3757
+ for (let t of r) t && !e.properties.class.includes(t) && e.properties.class.push(t);
3758
+ return e;
3759
+ }
3760
+ function Br(e) {
3761
+ let t = P(e, !0).map(([e]) => e);
3762
+ function n(n) {
3763
+ if (n === e.length) return {
3764
+ line: t.length - 1,
3765
+ character: t[t.length - 1].length
3766
+ };
3767
+ let r = n, i = 0;
3768
+ for (let e of t) {
3769
+ if (r < e.length) break;
3770
+ r -= e.length, i++;
3771
+ }
3772
+ return {
3773
+ line: i,
3774
+ character: r
3775
+ };
3776
+ }
3777
+ function r(e, n) {
3778
+ let r = 0;
3779
+ for (let n = 0; n < e; n++) r += t[n].length;
3780
+ return r += n, r;
3781
+ }
3782
+ return {
3783
+ lines: t,
3784
+ indexToPos: n,
3785
+ posToIndex: r
3786
+ };
3787
+ }
3788
+ var Vr = "light-dark()", Hr = ["color", "background-color"];
3789
+ function Ur(e, t) {
3790
+ let r = 0, i = [];
3791
+ for (let a of t) a > r && i.push(n(n({}, e), {}, {
3792
+ content: e.content.slice(r, a),
3793
+ offset: e.offset + r
3794
+ })), r = a;
3795
+ return r < e.content.length && i.push(n(n({}, e), {}, {
3796
+ content: e.content.slice(r),
3797
+ offset: e.offset + r
3798
+ })), i;
3799
+ }
3800
+ function Wr(e, t) {
3801
+ let n = Array.from(t instanceof Set ? t : new Set(t)).sort((e, t) => e - t);
3802
+ return n.length ? e.map((e) => e.flatMap((e) => {
3803
+ let t = n.filter((t) => e.offset < t && t < e.offset + e.content.length).map((t) => t - e.offset).sort((e, t) => e - t);
3804
+ return t.length ? Ur(e, t) : e;
3805
+ })) : e;
3806
+ }
3807
+ function Gr(e, t, n, r, i = "css-vars") {
3808
+ let a = {
3809
+ content: e.content,
3810
+ explanation: e.explanation,
3811
+ offset: e.offset
3812
+ }, o = t.map((t) => Kr(e.variants[t])), c = new Set(o.flatMap((e) => Object.keys(e))), l = {}, u = (e, r) => {
3813
+ let i = r === "color" ? "" : r === "background-color" ? "-bg" : `-${r}`;
3814
+ return n + t[e] + (r === "color" ? "" : i);
3815
+ };
3816
+ return o.forEach((e, n) => {
3817
+ for (let a of c) {
3818
+ let c = e[a] || "inherit";
3819
+ if (n === 0 && r && Hr.includes(a)) if (r === Vr && o.length > 1) {
3820
+ let e = t.findIndex((e) => e === "light"), r = t.findIndex((e) => e === "dark");
3821
+ if (e === -1 || r === -1) throw new s("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
3822
+ l[a] = `light-dark(${o[e][a] || "inherit"}, ${o[r][a] || "inherit"})`, i === "css-vars" && (l[u(n, a)] = c);
3823
+ } else l[a] = c;
3824
+ else i === "css-vars" && (l[u(n, a)] = c);
3825
+ }
3826
+ }), a.htmlStyle = l, a;
3827
+ }
3828
+ function Kr(e) {
3829
+ let t = {};
3830
+ if (e.color && (t.color = e.color), e.bgColor && (t["background-color"] = e.bgColor), e.fontStyle) {
3831
+ e.fontStyle & x.Italic && (t["font-style"] = "italic"), e.fontStyle & x.Bold && (t["font-weight"] = "bold");
3832
+ let n = [];
3833
+ e.fontStyle & x.Underline && n.push("underline"), e.fontStyle & x.Strikethrough && n.push("line-through"), n.length && (t["text-decoration"] = n.join(" "));
3834
+ }
3835
+ return t;
3836
+ }
3837
+ function qr(e) {
3838
+ return typeof e == "string" ? e : Object.entries(e).map(([e, t]) => `${e}:${t}`).join(";");
3839
+ }
3840
+ function Jr() {
3841
+ let e = /* @__PURE__ */ new WeakMap();
3842
+ function t(t) {
3843
+ if (!e.has(t.meta)) {
3844
+ let r = Br(t.source);
3845
+ function i(e) {
3846
+ if (typeof e == "number") {
3847
+ if (e < 0 || e > t.source.length) throw new s(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);
3848
+ return n(n({}, r.indexToPos(e)), {}, { offset: e });
3849
+ } else {
3850
+ let t = r.lines[e.line];
3851
+ if (t === void 0) throw new s(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);
3852
+ let i = e.character;
3853
+ if (i < 0 && (i = t.length + i), i < 0 || i > t.length) throw new s(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);
3854
+ return n(n({}, e), {}, {
3855
+ character: i,
3856
+ offset: r.posToIndex(e.line, i)
3857
+ });
3858
+ }
3859
+ }
3860
+ let a = (t.options.decorations || []).map((e) => n(n({}, e), {}, {
3861
+ start: i(e.start),
3862
+ end: i(e.end)
3863
+ }));
3864
+ Yr(a), e.set(t.meta, {
3865
+ decorations: a,
3866
+ converter: r,
3867
+ source: t.source
3868
+ });
3869
+ }
3870
+ return e.get(t.meta);
3871
+ }
3872
+ return {
3873
+ name: "shiki:decorations",
3874
+ tokens(e) {
3875
+ var n;
3876
+ if ((n = this.options.decorations) != null && n.length) return Wr(e, t(this).decorations.flatMap((e) => [e.start.offset, e.end.offset]));
3877
+ },
3878
+ code(e) {
3879
+ var r;
3880
+ if (!((r = this.options.decorations) != null && r.length)) return;
3881
+ let i = t(this), a = Array.from(e.children).filter((e) => e.type === "element" && e.tagName === "span");
3882
+ if (a.length !== i.converter.lines.length) throw new s(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);
3883
+ function o(e, t, n, r) {
3884
+ let i = a[e], o = "", c = -1, u = -1;
3885
+ if (t === 0 && (c = 0), n === 0 && (u = 0), n === Infinity && (u = i.children.length), c === -1 || u === -1) for (let e = 0; e < i.children.length; e++) o += Xr(i.children[e]), c === -1 && o.length === t && (c = e + 1), u === -1 && o.length === n && (u = e + 1);
3886
+ if (c === -1) throw new s(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);
3887
+ if (u === -1) throw new s(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);
3888
+ let d = i.children.slice(c, u);
3889
+ if (!r.alwaysWrap && d.length === i.children.length) l(i, r, "line");
3890
+ else if (!r.alwaysWrap && d.length === 1 && d[0].type === "element") l(d[0], r, "token");
3891
+ else {
3892
+ let e = {
3893
+ type: "element",
3894
+ tagName: "span",
3895
+ properties: {},
3896
+ children: d
3897
+ };
3898
+ l(e, r, "wrapper"), i.children.splice(c, d.length, e);
3899
+ }
3900
+ }
3901
+ function c(e, t) {
3902
+ a[e] = l(a[e], t, "line");
3903
+ }
3904
+ function l(e, t, r) {
3905
+ var i;
3906
+ let a = t.properties || {}, o = t.transform || ((e) => e);
3907
+ return e.tagName = t.tagName || "span", e.properties = n(n(n({}, e.properties), a), {}, { class: e.properties.class }), (i = t.properties) != null && i.class && zr(e, t.properties.class), e = o(e, r) || e, e;
3908
+ }
3909
+ let u = [], d = i.decorations.sort((e, t) => t.start.offset - e.start.offset || e.end.offset - t.end.offset);
3910
+ for (let e of d) {
3911
+ let { start: t, end: n } = e;
3912
+ if (t.line === n.line) o(t.line, t.character, n.character, e);
3913
+ else if (t.line < n.line) {
3914
+ o(t.line, t.character, Infinity, e);
3915
+ for (let r = t.line + 1; r < n.line; r++) u.unshift(() => c(r, e));
3916
+ o(n.line, 0, n.character, e);
3917
+ }
3918
+ }
3919
+ u.forEach((e) => e());
3920
+ }
3921
+ };
3922
+ }
3923
+ function Yr(e) {
3924
+ for (let t = 0; t < e.length; t++) {
3925
+ let n = e[t];
3926
+ if (n.start.offset > n.end.offset) throw new s(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);
3927
+ for (let r = t + 1; r < e.length; r++) {
3928
+ let t = e[r], i = n.start.offset <= t.start.offset && t.start.offset < n.end.offset, a = n.start.offset < t.end.offset && t.end.offset <= n.end.offset, o = t.start.offset <= n.start.offset && n.start.offset < t.end.offset, c = t.start.offset < n.end.offset && n.end.offset <= t.end.offset;
3929
+ if (i || a || o || c) {
3930
+ if (i && a || o && c || o && n.start.offset === n.end.offset || a && t.start.offset === t.end.offset) continue;
3931
+ throw new s(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`);
3932
+ }
3933
+ }
3934
+ }
3935
+ }
3936
+ function Xr(e) {
3937
+ return e.type === "text" ? e.value : e.type === "element" ? e.children.map(Xr).join("") : "";
3938
+ }
3939
+ var Zr = [/* @__PURE__ */ Jr()];
3940
+ function Qr(e) {
3941
+ let t = $r(e.transformers || []);
3942
+ return [
3943
+ ...t.pre,
3944
+ ...t.normal,
3945
+ ...t.post,
3946
+ ...Zr
3947
+ ];
3948
+ }
3949
+ function $r(e) {
3950
+ let t = [], n = [], r = [];
3951
+ for (let i of e) switch (i.enforce) {
3952
+ case "pre":
3953
+ t.push(i);
3954
+ break;
3955
+ case "post":
3956
+ n.push(i);
3957
+ break;
3958
+ default: r.push(i);
3959
+ }
3960
+ return {
3961
+ pre: t,
3962
+ post: n,
3963
+ normal: r
3964
+ };
3965
+ }
3966
+ var Q = [
3967
+ "black",
3968
+ "red",
3969
+ "green",
3970
+ "yellow",
3971
+ "blue",
3972
+ "magenta",
3973
+ "cyan",
3974
+ "white",
3975
+ "brightBlack",
3976
+ "brightRed",
3977
+ "brightGreen",
3978
+ "brightYellow",
3979
+ "brightBlue",
3980
+ "brightMagenta",
3981
+ "brightCyan",
3982
+ "brightWhite"
3983
+ ], ei = {
3984
+ 1: "bold",
3985
+ 2: "dim",
3986
+ 3: "italic",
3987
+ 4: "underline",
3988
+ 7: "reverse",
3989
+ 8: "hidden",
3990
+ 9: "strikethrough"
3991
+ };
3992
+ function ti(e, t) {
3993
+ let n = e.indexOf("\x1B", t);
3994
+ if (n !== -1 && e[n + 1] === "[") {
3995
+ let t = e.indexOf("m", n);
3996
+ if (t !== -1) return {
3997
+ sequence: e.substring(n + 2, t).split(";"),
3998
+ startPosition: n,
3999
+ position: t + 1
4000
+ };
4001
+ }
4002
+ return { position: e.length };
4003
+ }
4004
+ function ni(e) {
4005
+ let t = e.shift();
4006
+ if (t === "2") {
4007
+ let t = e.splice(0, 3).map((e) => Number.parseInt(e));
4008
+ return t.length !== 3 || t.some((e) => Number.isNaN(e)) ? void 0 : {
4009
+ type: "rgb",
4010
+ rgb: t
4011
+ };
4012
+ } else if (t === "5") {
4013
+ let t = e.shift();
4014
+ if (t) return {
4015
+ type: "table",
4016
+ index: Number(t)
4017
+ };
4018
+ }
4019
+ }
4020
+ function ri(e) {
4021
+ let t = [];
4022
+ for (; e.length > 0;) {
4023
+ let n = e.shift();
4024
+ if (!n) continue;
4025
+ let r = Number.parseInt(n);
4026
+ if (!Number.isNaN(r)) if (r === 0) t.push({ type: "resetAll" });
4027
+ else if (r <= 9) ei[r] && t.push({
4028
+ type: "setDecoration",
4029
+ value: ei[r]
4030
+ });
4031
+ else if (r <= 29) {
4032
+ let e = ei[r - 20];
4033
+ e && (t.push({
4034
+ type: "resetDecoration",
4035
+ value: e
4036
+ }), e === "dim" && t.push({
4037
+ type: "resetDecoration",
4038
+ value: "bold"
4039
+ }));
4040
+ } else if (r <= 37) t.push({
4041
+ type: "setForegroundColor",
4042
+ value: {
4043
+ type: "named",
4044
+ name: Q[r - 30]
4045
+ }
4046
+ });
4047
+ else if (r === 38) {
4048
+ let n = ni(e);
4049
+ n && t.push({
4050
+ type: "setForegroundColor",
4051
+ value: n
4052
+ });
4053
+ } else if (r === 39) t.push({ type: "resetForegroundColor" });
4054
+ else if (r <= 47) t.push({
4055
+ type: "setBackgroundColor",
4056
+ value: {
4057
+ type: "named",
4058
+ name: Q[r - 40]
4059
+ }
4060
+ });
4061
+ else if (r === 48) {
4062
+ let n = ni(e);
4063
+ n && t.push({
4064
+ type: "setBackgroundColor",
4065
+ value: n
4066
+ });
4067
+ } else r === 49 ? t.push({ type: "resetBackgroundColor" }) : r === 53 ? t.push({
4068
+ type: "setDecoration",
4069
+ value: "overline"
4070
+ }) : r === 55 ? t.push({
4071
+ type: "resetDecoration",
4072
+ value: "overline"
4073
+ }) : r >= 90 && r <= 97 ? t.push({
4074
+ type: "setForegroundColor",
4075
+ value: {
4076
+ type: "named",
4077
+ name: Q[r - 90 + 8]
4078
+ }
4079
+ }) : r >= 100 && r <= 107 && t.push({
4080
+ type: "setBackgroundColor",
4081
+ value: {
4082
+ type: "named",
4083
+ name: Q[r - 100 + 8]
4084
+ }
4085
+ });
4086
+ }
4087
+ return t;
4088
+ }
4089
+ function ii() {
4090
+ let e = null, t = null, n = /* @__PURE__ */ new Set();
4091
+ return { parse(r) {
4092
+ let i = [], a = 0;
4093
+ do {
4094
+ let o = ti(r, a), s = o.sequence ? r.substring(a, o.startPosition) : r.substring(a);
4095
+ if (s.length > 0 && i.push({
4096
+ value: s,
4097
+ foreground: e,
4098
+ background: t,
4099
+ decorations: new Set(n)
4100
+ }), o.sequence) {
4101
+ let r = ri(o.sequence);
4102
+ for (let i of r) i.type === "resetAll" ? (e = null, t = null, n.clear()) : i.type === "resetForegroundColor" ? e = null : i.type === "resetBackgroundColor" ? t = null : i.type === "resetDecoration" && n.delete(i.value);
4103
+ for (let i of r) i.type === "setForegroundColor" ? e = i.value : i.type === "setBackgroundColor" ? t = i.value : i.type === "setDecoration" && n.add(i.value);
4104
+ }
4105
+ a = o.position;
4106
+ } while (a < r.length);
4107
+ return i;
4108
+ } };
4109
+ }
4110
+ var ai = {
4111
+ black: "#000000",
4112
+ red: "#bb0000",
4113
+ green: "#00bb00",
4114
+ yellow: "#bbbb00",
4115
+ blue: "#0000bb",
4116
+ magenta: "#ff00ff",
4117
+ cyan: "#00bbbb",
4118
+ white: "#eeeeee",
4119
+ brightBlack: "#555555",
4120
+ brightRed: "#ff5555",
4121
+ brightGreen: "#00ff00",
4122
+ brightYellow: "#ffff55",
4123
+ brightBlue: "#5555ff",
4124
+ brightMagenta: "#ff55ff",
4125
+ brightCyan: "#55ffff",
4126
+ brightWhite: "#ffffff"
4127
+ };
4128
+ function oi(e = ai) {
4129
+ function t(t) {
4130
+ return e[t];
4131
+ }
4132
+ function n(e) {
4133
+ return `#${e.map((e) => Math.max(0, Math.min(e, 255)).toString(16).padStart(2, "0")).join("")}`;
4134
+ }
4135
+ let r;
4136
+ function i() {
4137
+ if (r) return r;
4138
+ r = [];
4139
+ for (let e = 0; e < Q.length; e++) r.push(t(Q[e]));
4140
+ let e = [
4141
+ 0,
4142
+ 95,
4143
+ 135,
4144
+ 175,
4145
+ 215,
4146
+ 255
4147
+ ];
4148
+ for (let t = 0; t < 6; t++) for (let i = 0; i < 6; i++) for (let a = 0; a < 6; a++) r.push(n([
4149
+ e[t],
4150
+ e[i],
4151
+ e[a]
4152
+ ]));
4153
+ let i = 8;
4154
+ for (let e = 0; e < 24; e++, i += 10) r.push(n([
4155
+ i,
4156
+ i,
4157
+ i
4158
+ ]));
4159
+ return r;
4160
+ }
4161
+ function a(e) {
4162
+ return i()[e];
4163
+ }
4164
+ function o(e) {
4165
+ switch (e.type) {
4166
+ case "named": return t(e.name);
4167
+ case "rgb": return n(e.rgb);
4168
+ case "table": return a(e.index);
4169
+ }
4170
+ }
4171
+ return { value: o };
4172
+ }
4173
+ var si = {
4174
+ black: "#000000",
4175
+ red: "#cd3131",
4176
+ green: "#0DBC79",
4177
+ yellow: "#E5E510",
4178
+ blue: "#2472C8",
4179
+ magenta: "#BC3FBC",
4180
+ cyan: "#11A8CD",
4181
+ white: "#E5E5E5",
4182
+ brightBlack: "#666666",
4183
+ brightRed: "#F14C4C",
4184
+ brightGreen: "#23D18B",
4185
+ brightYellow: "#F5F543",
4186
+ brightBlue: "#3B8EEA",
4187
+ brightMagenta: "#D670D6",
4188
+ brightCyan: "#29B8DB",
4189
+ brightWhite: "#FFFFFF"
4190
+ };
4191
+ function ci(e, t, n) {
4192
+ let r = M(e, n), i = P(t), a = oi(Object.fromEntries(Q.map((t) => {
4193
+ var n;
4194
+ let r = `terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;
4195
+ return [t, ((n = e.colors) == null ? void 0 : n[r]) || si[t]];
4196
+ }))), o = ii();
4197
+ return i.map((t) => o.parse(t[0]).map((n) => {
4198
+ let i, o;
4199
+ n.decorations.has("reverse") ? (i = n.background ? a.value(n.background) : e.bg, o = n.foreground ? a.value(n.foreground) : e.fg) : (i = n.foreground ? a.value(n.foreground) : e.fg, o = n.background ? a.value(n.background) : void 0), i = N(i, r), o = N(o, r), n.decorations.has("dim") && (i = li(i));
4200
+ let s = x.None;
4201
+ return n.decorations.has("bold") && (s |= x.Bold), n.decorations.has("italic") && (s |= x.Italic), n.decorations.has("underline") && (s |= x.Underline), n.decorations.has("strikethrough") && (s |= x.Strikethrough), {
4202
+ content: n.value,
4203
+ offset: t[1],
4204
+ color: i,
4205
+ bgColor: o,
4206
+ fontStyle: s
4207
+ };
4208
+ }));
4209
+ }
4210
+ function li(e) {
4211
+ let t = e.match(/#([0-9a-f]{3,8})/i);
4212
+ if (t) {
4213
+ let e = t[1];
4214
+ if (e.length === 8) {
4215
+ let t = Math.round(Number.parseInt(e.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
4216
+ return `#${e.slice(0, 6)}${t}`;
4217
+ } else if (e.length === 6) return `#${e}80`;
4218
+ else if (e.length === 4) {
4219
+ let t = e[0], n = e[1], r = e[2], i = e[3];
4220
+ return `#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`, 16) / 2).toString(16).padStart(2, "0")}`;
4221
+ } else if (e.length === 3) {
4222
+ let t = e[0], n = e[1], r = e[2];
4223
+ return `#${t}${t}${n}${n}${r}${r}80`;
4224
+ }
4225
+ }
4226
+ let n = e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
4227
+ return n ? `var(${n[1]}-dim)` : e;
4228
+ }
4229
+ function ui(e, t, n = {}) {
4230
+ let r = e.resolveLangAlias(n.lang || "text"), { theme: i = e.getLoadedThemes()[0] } = n;
4231
+ if (!vt(r) && !bt(i) && r === "ansi") {
4232
+ let { theme: r } = e.setTheme(i);
4233
+ return ci(r, t, n);
4234
+ }
4235
+ return It(e, t, n);
4236
+ }
4237
+ function di(e, t, n) {
4238
+ let r, i, a, o, c, l;
4239
+ if ("themes" in n) {
4240
+ let { defaultColor: u = "light", cssVariablePrefix: d = "--shiki-", colorsRendering: f = "css-vars" } = n, p = Object.entries(n.themes).filter((e) => e[1]).map((e) => ({
4241
+ color: e[0],
4242
+ theme: e[1]
4243
+ })).sort((e, t) => e.color === u ? -1 : t.color === u ? 1 : 0);
4244
+ if (p.length === 0) throw new s("`themes` option must not be empty");
4245
+ let m = Gt(e, t, n, ui);
4246
+ if (l = L(m), u && Vr !== u && !p.find((e) => e.color === u)) throw new s(`\`themes\` option must contain the defaultColor key \`${u}\``);
4247
+ let h = p.map((t) => e.getTheme(t.theme)), g = p.map((e) => e.color);
4248
+ a = m.map((e) => e.map((e) => Gr(e, g, d, u, f))), l && I(a, l);
4249
+ let _ = p.map((e) => M(e.theme, n));
4250
+ i = fi(p, h, _, d, u, "fg", f), r = fi(p, h, _, d, u, "bg", f), o = `shiki-themes ${h.map((e) => e.name).join(" ")}`, c = u ? void 0 : [i, r].join(";");
4251
+ } else if ("theme" in n) {
4252
+ let s = M(n.theme, n);
4253
+ a = ui(e, t, n);
4254
+ let c = e.getTheme(n.theme);
4255
+ r = N(c.bg, s), i = N(c.fg, s), o = c.name, l = L(a);
4256
+ } else throw new s("Invalid options, either `theme` or `themes` must be provided");
4257
+ return {
4258
+ tokens: a,
4259
+ fg: i,
4260
+ bg: r,
4261
+ themeName: o,
4262
+ rootStyle: c,
4263
+ grammarState: l
4264
+ };
4265
+ }
4266
+ function fi(e, t, n, r, i, a, o) {
4267
+ return e.map((c, l) => {
4268
+ let u = N(t[l][a], n[l]) || "inherit", d = `${r + c.color}${a === "bg" ? "-bg" : ""}:${u}`;
4269
+ if (l === 0 && i) {
4270
+ if (i === Vr && e.length > 1) {
4271
+ let r = e.findIndex((e) => e.color === "light"), i = e.findIndex((e) => e.color === "dark");
4272
+ if (r === -1 || i === -1) throw new s("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
4273
+ return `light-dark(${N(t[r][a], n[r]) || "inherit"}, ${N(t[i][a], n[i]) || "inherit"});${d}`;
4274
+ }
4275
+ return u;
4276
+ }
4277
+ return o === "css-vars" ? d : null;
4278
+ }).filter((e) => !!e).join(";");
4279
+ }
4280
+ function $(e, t, r, i = {
4281
+ meta: {},
4282
+ options: r,
4283
+ codeToHast: (t, n) => $(e, t, n),
4284
+ codeToTokens: (t, n) => di(e, t, n)
4285
+ }) {
4286
+ var a, o, s;
4287
+ let c = t;
4288
+ for (let e of Qr(r)) c = ((a = e.preprocess) == null ? void 0 : a.call(i, c, r)) || c;
4289
+ let { tokens: l, fg: u, bg: d, themeName: f, rootStyle: p, grammarState: m } = di(e, c, r), { mergeWhitespaces: h = !0, mergeSameStyleTokens: g = !1 } = r;
4290
+ h === !0 ? l = mi(l) : h === "never" && (l = hi(l)), g && (l = gi(l));
4291
+ let _ = n(n({}, i), {}, { get source() {
4292
+ return c;
4293
+ } });
4294
+ for (let e of Qr(r)) l = ((o = e.tokens) == null ? void 0 : o.call(_, l)) || l;
4295
+ return pi(l, n(n({}, r), {}, {
4296
+ fg: u,
4297
+ bg: d,
4298
+ themeName: f,
4299
+ rootStyle: r.rootStyle === !1 ? !1 : (s = r.rootStyle) == null ? p : s
4300
+ }), _, m);
4301
+ }
4302
+ function pi(e, t, r, i = L(e)) {
4303
+ var a;
4304
+ let o = Qr(t), s = [], c = {
4305
+ type: "root",
4306
+ children: []
4307
+ }, { structure: l = "classic", tabindex: u = "0" } = t, d = { class: `shiki ${t.themeName || ""}` };
4308
+ t.rootStyle !== !1 && (t.rootStyle == null ? d.style = `background-color:${t.bg};color:${t.fg}` : d.style = t.rootStyle), u !== !1 && u != null && (d.tabindex = u.toString());
4309
+ for (let [e, n] of Object.entries(t.meta || {})) e.startsWith("_") || (d[e] = n);
4310
+ let f = {
4311
+ type: "element",
4312
+ tagName: "pre",
4313
+ properties: d,
4314
+ children: [],
4315
+ data: t.data
4316
+ }, p = {
4317
+ type: "element",
4318
+ tagName: "code",
4319
+ properties: {},
4320
+ children: s
4321
+ }, m = [], h = n(n({}, r), {}, {
4322
+ structure: l,
4323
+ addClassToHast: zr,
4324
+ get source() {
4325
+ return r.source;
4326
+ },
4327
+ get tokens() {
4328
+ return e;
4329
+ },
4330
+ get options() {
4331
+ return t;
4332
+ },
4333
+ get root() {
4334
+ return c;
4335
+ },
4336
+ get pre() {
4337
+ return f;
4338
+ },
4339
+ get code() {
4340
+ return p;
4341
+ },
4342
+ get lines() {
4343
+ return m;
4344
+ }
4345
+ });
4346
+ if (e.forEach((e, t) => {
4347
+ t && (l === "inline" ? c.children.push({
4348
+ type: "element",
4349
+ tagName: "br",
4350
+ properties: {},
4351
+ children: []
4352
+ }) : l === "classic" && s.push({
4353
+ type: "text",
4354
+ value: "\n"
4355
+ }));
4356
+ let r = {
4357
+ type: "element",
4358
+ tagName: "span",
4359
+ properties: { class: "line" },
4360
+ children: []
4361
+ }, i = 0;
4362
+ for (let s of e) {
4363
+ var a;
4364
+ let e = {
4365
+ type: "element",
4366
+ tagName: "span",
4367
+ properties: n({}, s.htmlAttrs),
4368
+ children: [{
4369
+ type: "text",
4370
+ value: s.content
4371
+ }]
4372
+ }, u = qr(s.htmlStyle || Kr(s));
4373
+ u && (e.properties.style = u);
4374
+ for (let n of o) e = (n == null || (a = n.span) == null ? void 0 : a.call(h, e, t + 1, i, r, s)) || e;
4375
+ l === "inline" ? c.children.push(e) : l === "classic" && r.children.push(e), i += s.content.length;
4376
+ }
4377
+ if (l === "classic") {
4378
+ var u;
4379
+ for (let e of o) r = (e == null || (u = e.line) == null ? void 0 : u.call(h, r, t + 1)) || r;
4380
+ m.push(r), s.push(r);
4381
+ } else l === "inline" && m.push(r);
4382
+ }), l === "classic") {
4383
+ var g, _;
4384
+ for (let e of o) p = (e == null || (g = e.code) == null ? void 0 : g.call(h, p)) || p;
4385
+ f.children.push(p);
4386
+ for (let e of o) f = (e == null || (_ = e.pre) == null ? void 0 : _.call(h, f)) || f;
4387
+ c.children.push(f);
4388
+ } else if (l === "inline") {
4389
+ var v;
4390
+ let e = [], t = {
4391
+ type: "element",
4392
+ tagName: "span",
4393
+ properties: { class: "line" },
4394
+ children: []
4395
+ };
4396
+ for (let n of c.children) n.type === "element" && n.tagName === "br" ? (e.push(t), t = {
4397
+ type: "element",
4398
+ tagName: "span",
4399
+ properties: { class: "line" },
4400
+ children: []
4401
+ }) : (n.type === "element" || n.type === "text") && t.children.push(n);
4402
+ e.push(t);
4403
+ let n = {
4404
+ type: "element",
4405
+ tagName: "code",
4406
+ properties: {},
4407
+ children: e
4408
+ };
4409
+ for (let e of o) n = (e == null || (v = e.code) == null ? void 0 : v.call(h, n)) || n;
4410
+ c.children = [];
4411
+ for (let e = 0; e < n.children.length; e++) {
4412
+ e > 0 && c.children.push({
4413
+ type: "element",
4414
+ tagName: "br",
4415
+ properties: {},
4416
+ children: []
4417
+ });
4418
+ let t = n.children[e];
4419
+ t.type === "element" && c.children.push(...t.children);
4420
+ }
4421
+ }
4422
+ let y = c;
4423
+ for (let e of o) y = (e == null || (a = e.root) == null ? void 0 : a.call(h, y)) || y;
4424
+ return i && I(y, i), y;
4425
+ }
4426
+ function mi(e) {
4427
+ return e.map((e) => {
4428
+ let t = [], r = "", i;
4429
+ return e.forEach((a, o) => {
4430
+ let s = !(a.fontStyle && (a.fontStyle & x.Underline || a.fontStyle & x.Strikethrough));
4431
+ s && a.content.match(/^\s+$/) && e[o + 1] ? (i === void 0 && (i = a.offset), r += a.content) : r ? (s ? t.push(n(n({}, a), {}, {
4432
+ offset: i,
4433
+ content: r + a.content
4434
+ })) : t.push({
4435
+ content: r,
4436
+ offset: i
4437
+ }, a), i = void 0, r = "") : t.push(a);
4438
+ }), t;
4439
+ });
4440
+ }
4441
+ function hi(e) {
4442
+ return e.map((e) => e.flatMap((e) => {
4443
+ if (e.content.match(/^\s+$/)) return e;
4444
+ let t = e.content.match(/^(\s*)(.*?)(\s*)$/);
4445
+ if (!t) return e;
4446
+ let [, r, i, a] = t;
4447
+ if (!r && !a) return e;
4448
+ let o = [n(n({}, e), {}, {
4449
+ offset: e.offset + r.length,
4450
+ content: i
4451
+ })];
4452
+ return r && o.unshift({
4453
+ content: r,
4454
+ offset: e.offset
4455
+ }), a && o.push({
4456
+ content: a,
4457
+ offset: e.offset + r.length + i.length
4458
+ }), o;
4459
+ }));
4460
+ }
4461
+ function gi(e) {
4462
+ return e.map((e) => {
4463
+ let t = [];
4464
+ for (let r of e) {
4465
+ if (t.length === 0) {
4466
+ t.push(n({}, r));
4467
+ continue;
4468
+ }
4469
+ let e = t[t.length - 1], i = qr(e.htmlStyle || Kr(e)), a = qr(r.htmlStyle || Kr(r)), o = e.fontStyle && (e.fontStyle & x.Underline || e.fontStyle & x.Strikethrough), s = r.fontStyle && (r.fontStyle & x.Underline || r.fontStyle & x.Strikethrough);
4470
+ !o && !s && i === a ? e.content += r.content : t.push(n({}, r));
4471
+ }
4472
+ return t;
4473
+ });
4474
+ }
4475
+ var _i = Ir;
4476
+ function vi(e, t, n) {
4477
+ var r;
4478
+ let i = {
4479
+ meta: {},
4480
+ options: n,
4481
+ codeToHast: (t, n) => $(e, t, n),
4482
+ codeToTokens: (t, n) => di(e, t, n)
4483
+ }, a = _i($(e, t, n, i));
4484
+ for (let e of Qr(n)) a = ((r = e.postprocess) == null ? void 0 : r.call(i, a, n)) || a;
4485
+ return a;
4486
+ }
4487
+ async function yi(e) {
4488
+ let t = await Mt(e);
4489
+ return n(n({
4490
+ getLastGrammarState: (...e) => Lt(t, ...e),
4491
+ codeToTokensBase: (e, n) => ui(t, e, n),
4492
+ codeToTokensWithThemes: (e, n) => Gt(t, e, n),
4493
+ codeToTokens: (e, n) => di(t, e, n),
4494
+ codeToHast: (e, n) => $(t, e, n),
4495
+ codeToHtml: (e, n) => vi(t, e, n),
4496
+ getBundledLanguages: () => ({}),
4497
+ getBundledThemes: () => ({})
4498
+ }, t), {}, { getInternalContext: () => t });
4499
+ }
4500
+ //#endregion
4501
+ export { yi as createHighlighterCore };