@jackuait/blok 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1220) hide show
  1. package/LICENSE +13 -1
  2. package/NOTICE +10 -0
  3. package/README.md +7 -1
  4. package/codemod/migrate-editorjs-to-blok.js +51 -1
  5. package/codemod/test.js +95 -0
  6. package/dist/blok.cjs +1 -1
  7. package/dist/blok.iife.js +31 -30
  8. package/dist/blok.mjs +2 -2
  9. package/dist/chunks/_basePickBy-CLCgPLk_.cjs +1 -0
  10. package/dist/chunks/_basePickBy-cIM18c5w.mjs +166 -0
  11. package/dist/chunks/_baseUniq-C3lUNj_l.mjs +682 -0
  12. package/dist/chunks/_baseUniq-Cm3XBb1f.cjs +1 -0
  13. package/dist/chunks/arc-BSr2jl4o.mjs +80 -0
  14. package/dist/chunks/arc-C-l7V0ww.cjs +1 -0
  15. package/dist/chunks/architecture-YZFGNWBL-C5uKTSqd.mjs +3 -0
  16. package/dist/chunks/architecture-YZFGNWBL-DopZbt9d.cjs +1 -0
  17. package/dist/chunks/architectureDiagram-Q4EWVU46-B3EkmUoA.cjs +36 -0
  18. package/dist/chunks/architectureDiagram-Q4EWVU46-DL5lPOq_.mjs +4066 -0
  19. package/dist/chunks/blockDiagram-DXYQGD6D-ChnytJiO.cjs +132 -0
  20. package/dist/chunks/blockDiagram-DXYQGD6D-DjFfRgP_.mjs +3074 -0
  21. package/dist/chunks/blok-Cxcy7G7v.mjs +13801 -0
  22. package/dist/chunks/blok-qY4LDF7A.cjs +17 -0
  23. package/dist/chunks/c4Diagram-AHTNJAMY-D9cwQ5dP.cjs +10 -0
  24. package/dist/chunks/c4Diagram-AHTNJAMY-DDydXzN1.mjs +2956 -0
  25. package/dist/chunks/channel-1VaVTmSI.mjs +5 -0
  26. package/dist/chunks/channel-DTKWBt5v.cjs +1 -0
  27. package/dist/chunks/chunk-2KRD3SAO-Dcv71dz8.cjs +1 -0
  28. package/dist/chunks/chunk-2KRD3SAO-DslQvmzC.mjs +20 -0
  29. package/dist/chunks/chunk-336JU56O-CUNPhOYK.mjs +49 -0
  30. package/dist/chunks/chunk-336JU56O-DsJvvQpB.cjs +1 -0
  31. package/dist/chunks/chunk-426QAEUC-Ciny2-Rz.mjs +13 -0
  32. package/dist/chunks/chunk-426QAEUC-DEYJ0OiL.cjs +1 -0
  33. package/dist/chunks/chunk-4BX2VUAB-D1dKBLiS.cjs +1 -0
  34. package/dist/chunks/chunk-4BX2VUAB-ljY9_i7D.mjs +19 -0
  35. package/dist/chunks/chunk-4TB4RGXK-C-eXrWWX.cjs +206 -0
  36. package/dist/chunks/chunk-4TB4RGXK-orLiGd4g.mjs +3250 -0
  37. package/dist/chunks/chunk-55IACEB6-BOy3ofgp.cjs +1 -0
  38. package/dist/chunks/chunk-55IACEB6-BPnDY27B.mjs +8 -0
  39. package/dist/chunks/chunk-5FUZZQ4R-D3UGwLBL.cjs +62 -0
  40. package/dist/chunks/chunk-5FUZZQ4R-D5gG1Dk4.mjs +3786 -0
  41. package/dist/chunks/chunk-5PVQY5BW-BCwqe25T.cjs +2 -0
  42. package/dist/chunks/chunk-5PVQY5BW-DVKx7m4a.mjs +1122 -0
  43. package/dist/chunks/chunk-67CJDMHE-BU_rrdV4.mjs +20 -0
  44. package/dist/chunks/chunk-67CJDMHE-VKwQfp25.cjs +1 -0
  45. package/dist/chunks/chunk-7N4EOEYR-BpM-QbmS.cjs +1 -0
  46. package/dist/chunks/chunk-7N4EOEYR-Cx6N1y9w.mjs +29 -0
  47. package/dist/chunks/chunk-AA7GKIK3-DCAy6uIg.mjs +24 -0
  48. package/dist/chunks/chunk-AA7GKIK3-RcaBhHiZ.cjs +1 -0
  49. package/dist/chunks/chunk-BSJP7CBP-BHijZ5f8.mjs +83 -0
  50. package/dist/chunks/chunk-BSJP7CBP-wiZ2ll8-.cjs +1 -0
  51. package/dist/chunks/chunk-CIAEETIT-0sn8TZoo.cjs +1 -0
  52. package/dist/chunks/chunk-CIAEETIT-BWpztfre.mjs +20 -0
  53. package/dist/chunks/chunk-EDXVE4YY-BJAhHZ3a.mjs +26 -0
  54. package/dist/chunks/chunk-EDXVE4YY-CXhcVSEI.cjs +1 -0
  55. package/dist/chunks/chunk-ENJZ2VHE-BgpbBBSF.cjs +10 -0
  56. package/dist/chunks/chunk-ENJZ2VHE-COIAdqL4.mjs +566 -0
  57. package/dist/chunks/chunk-FMBD7UC4-CUTvay8e.mjs +5 -0
  58. package/dist/chunks/chunk-FMBD7UC4-DCJ-fphu.cjs +15 -0
  59. package/dist/chunks/chunk-FOC6F5B3-3FOtyf3P.mjs +20 -0
  60. package/dist/chunks/chunk-FOC6F5B3-C2-FyqYn.cjs +1 -0
  61. package/dist/chunks/chunk-ICPOFSXX-BUWZvUuu.cjs +122 -0
  62. package/dist/chunks/chunk-ICPOFSXX-Dn5WbEeN.mjs +3290 -0
  63. package/dist/chunks/chunk-K5T4RW27-CX5gsk1T.cjs +94 -0
  64. package/dist/chunks/chunk-K5T4RW27-De7GqZCP.mjs +16372 -0
  65. package/dist/chunks/chunk-KGLVRYIC-Cwvjry7S.cjs +1 -0
  66. package/dist/chunks/chunk-KGLVRYIC-sDQUxLS7.mjs +20 -0
  67. package/dist/chunks/chunk-LIHQZDEY-BC8om0l2.cjs +1 -0
  68. package/dist/chunks/chunk-LIHQZDEY-BoY9X2Wj.mjs +55 -0
  69. package/dist/chunks/chunk-ORNJ4GCN-CYLjqcXc.mjs +25 -0
  70. package/dist/chunks/chunk-ORNJ4GCN-CoC7A1vn.cjs +1 -0
  71. package/dist/chunks/chunk-OYMX7WX6-Bbwq_g2w.mjs +2038 -0
  72. package/dist/chunks/chunk-OYMX7WX6-D3csU8-J.cjs +231 -0
  73. package/dist/chunks/chunk-QZHKN3VN-Bs3XaH0U.mjs +12 -0
  74. package/dist/chunks/chunk-QZHKN3VN-Db_x7kn8.cjs +1 -0
  75. package/dist/chunks/chunk-U2HBQHQK-CEwYxA8R.cjs +70 -0
  76. package/dist/chunks/chunk-U2HBQHQK-DLyzqElq.mjs +1875 -0
  77. package/dist/chunks/chunk-X2U36JSP-BY9JBwLQ.cjs +1 -0
  78. package/dist/chunks/chunk-X2U36JSP-UKGkP2m1.mjs +68 -0
  79. package/dist/chunks/chunk-XPW4576I-2i_ZgZLs.mjs +1146 -0
  80. package/dist/chunks/chunk-XPW4576I-Ym5mFsxv.cjs +32 -0
  81. package/dist/chunks/chunk-YZCP3GAM-C2GbOoUx.mjs +60 -0
  82. package/dist/chunks/chunk-YZCP3GAM-WMeXt5aH.cjs +1 -0
  83. package/dist/chunks/chunk-ZZ45TVLE-CeD1lNAB.cjs +1 -0
  84. package/dist/chunks/chunk-ZZ45TVLE-DyYus02Y.mjs +33 -0
  85. package/dist/chunks/classDiagram-6PBFFD2Q-DNHZ3qE5.mjs +30 -0
  86. package/dist/chunks/classDiagram-6PBFFD2Q-DWcC9USb.cjs +1 -0
  87. package/dist/chunks/classDiagram-v2-HSJHXN6E-BXKTiJNh.cjs +1 -0
  88. package/dist/chunks/classDiagram-v2-HSJHXN6E-GgfA5-jG.mjs +30 -0
  89. package/dist/chunks/clone-DeEumpiC.mjs +8 -0
  90. package/dist/chunks/clone-gX2HWen_.cjs +1 -0
  91. package/dist/chunks/constants-BYCpx4v_.cjs +457 -0
  92. package/dist/chunks/constants-Bhk7u_hm.mjs +3432 -0
  93. package/dist/chunks/cose-bilkent-S5V4N54A-BuQ-Gx1y.mjs +2246 -0
  94. package/dist/chunks/cose-bilkent-S5V4N54A-CdxjlgEx.cjs +1 -0
  95. package/dist/chunks/dagre-BVQ5RQE_.mjs +1483 -0
  96. package/dist/chunks/dagre-D9QEFKwC.cjs +1 -0
  97. package/dist/chunks/dagre-KV5264BT-BxQkkVxZ.mjs +298 -0
  98. package/dist/chunks/dagre-KV5264BT-Dz_FEBZU.cjs +4 -0
  99. package/dist/chunks/diagram-5BDNPKRD-Cf9AymAx.cjs +10 -0
  100. package/dist/chunks/diagram-5BDNPKRD-joiZwmh1.mjs +112 -0
  101. package/dist/chunks/diagram-G4DWMVQ6-3CAnipxw.cjs +24 -0
  102. package/dist/chunks/diagram-G4DWMVQ6-DrvbpYBX.mjs +546 -0
  103. package/dist/chunks/diagram-MMDJMWI5-B3CwY62T.mjs +234 -0
  104. package/dist/chunks/diagram-MMDJMWI5-DMrk0xwH.cjs +43 -0
  105. package/dist/chunks/diagram-TYMM5635-B3g66i1E.mjs +144 -0
  106. package/dist/chunks/diagram-TYMM5635-BAuYHtjV.cjs +24 -0
  107. package/dist/chunks/erDiagram-SMLLAGMA-4Ks-44BH.cjs +85 -0
  108. package/dist/chunks/erDiagram-SMLLAGMA-Bw6U_hHz.mjs +1712 -0
  109. package/dist/chunks/flowDiagram-DWJPFMVM-D2yMfIFs.mjs +4175 -0
  110. package/dist/chunks/flowDiagram-DWJPFMVM-O6dDtont.cjs +162 -0
  111. package/dist/chunks/ganttDiagram-T4ZO3ILL-D-ymktbJ.cjs +292 -0
  112. package/dist/chunks/ganttDiagram-T4ZO3ILL-SEs0Ez0p.mjs +3083 -0
  113. package/dist/chunks/gitGraph-7Q5UKJZL-BLhgGqhG.cjs +1 -0
  114. package/dist/chunks/gitGraph-7Q5UKJZL-DbRxS8Lo.mjs +3 -0
  115. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BSuqMw-A.cjs +106 -0
  116. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BpVIPN2N.mjs +792 -0
  117. package/dist/chunks/graphlib-C2L_nEcM.cjs +1 -0
  118. package/dist/chunks/graphlib-Cpp6Todw.mjs +225 -0
  119. package/dist/chunks/i18next-loader-BJAXtkt3.cjs +1 -0
  120. package/dist/chunks/i18next-loader-dnJtS6Nb.mjs +35 -0
  121. package/dist/chunks/info-OMHHGYJF-BRxQdcvB.mjs +3 -0
  122. package/dist/chunks/info-OMHHGYJF-Cb4wPKNP.cjs +1 -0
  123. package/dist/chunks/infoDiagram-42DDH7IO-BNAE_Dp2.cjs +2 -0
  124. package/dist/chunks/infoDiagram-42DDH7IO-JYmpv-Gn.mjs +29 -0
  125. package/dist/chunks/isEmpty-BYDpYNyM.cjs +1 -0
  126. package/dist/chunks/isEmpty-Bgy1eL0m.mjs +35 -0
  127. package/dist/chunks/ishikawaDiagram-UXIWVN3A-Ca_1igMn.cjs +70 -0
  128. package/dist/chunks/ishikawaDiagram-UXIWVN3A-ClkZz1Tc.mjs +719 -0
  129. package/dist/chunks/journeyDiagram-VCZTEJTY-BTzeo896.mjs +885 -0
  130. package/dist/chunks/journeyDiagram-VCZTEJTY-D69nfb5v.cjs +139 -0
  131. package/dist/chunks/kanban-definition-6JOO6SKY-BTSuFyjj.cjs +89 -0
  132. package/dist/chunks/kanban-definition-6JOO6SKY-C2Jk5rDA.mjs +980 -0
  133. package/dist/chunks/lightweight-i18n-T_Nc45AF.cjs +1 -0
  134. package/dist/chunks/lightweight-i18n-qpzXlOVm.mjs +344 -0
  135. package/dist/chunks/line-CjJKN63i.cjs +1 -0
  136. package/dist/chunks/line-zarcRAiW.mjs +34 -0
  137. package/dist/chunks/linear-CDUWrVHa.cjs +1 -0
  138. package/dist/chunks/linear-CXe29GGg.mjs +289 -0
  139. package/dist/chunks/mdast-util-math-BfFBcnFx.cjs +5 -0
  140. package/dist/chunks/mdast-util-math-CqPx3t0S.mjs +151 -0
  141. package/dist/chunks/mermaid-parser.core-BXANIhlc.mjs +57 -0
  142. package/dist/chunks/mermaid-parser.core-DMmP6uoD.cjs +3 -0
  143. package/dist/chunks/mermaid.core-A4e6ZJqs.mjs +977 -0
  144. package/dist/chunks/mermaid.core-C66G0J-z.cjs +10 -0
  145. package/dist/chunks/messages--BWLKiOP2.mjs +319 -0
  146. package/dist/chunks/messages--LI6Qp0h.mjs +319 -0
  147. package/dist/chunks/messages-4TiLLTpr2.cjs +1 -0
  148. package/dist/chunks/messages-7ul_s8GB2.mjs +319 -0
  149. package/dist/chunks/messages-8BZGqPD1.cjs +1 -0
  150. package/dist/chunks/messages-96ztlozp.cjs +1 -0
  151. package/dist/chunks/messages-B-_ZQLp5.mjs +319 -0
  152. package/dist/chunks/messages-B1YSYW3Y.cjs +1 -0
  153. package/dist/chunks/messages-B3E33lPt2.mjs +319 -0
  154. package/dist/chunks/messages-BABN8cuN.mjs +319 -0
  155. package/dist/chunks/messages-BDAXqxYw.cjs +1 -0
  156. package/dist/chunks/messages-BE0YZo6f.cjs +1 -0
  157. package/dist/chunks/messages-BIg9D7T52.cjs +1 -0
  158. package/dist/chunks/messages-BKtPvquH2.mjs +319 -0
  159. package/dist/chunks/messages-BMKq6Ps12.cjs +1 -0
  160. package/dist/chunks/messages-BMqvMau_2.mjs +319 -0
  161. package/dist/chunks/messages-BNmaVDtf.mjs +319 -0
  162. package/dist/chunks/messages-BRRMkfZY2.cjs +1 -0
  163. package/dist/chunks/messages-BUg0EGM6.cjs +1 -0
  164. package/dist/chunks/messages-BV88VXs-2.mjs +319 -0
  165. package/dist/chunks/messages-BVAjj_W_2.mjs +319 -0
  166. package/dist/chunks/messages-BWd6mmTm.mjs +319 -0
  167. package/dist/chunks/messages-BXce9Dbm.mjs +319 -0
  168. package/dist/chunks/messages-B_OU8dr_.mjs +319 -0
  169. package/dist/chunks/messages-B_VpqVFy.mjs +319 -0
  170. package/dist/chunks/messages-B_t9669l.mjs +319 -0
  171. package/dist/chunks/messages-Begh-7SQ.cjs +1 -0
  172. package/dist/chunks/messages-BfTeMiOT.cjs +1 -0
  173. package/dist/chunks/messages-BguYUD04.cjs +1 -0
  174. package/dist/chunks/messages-Bi5NKhkL.cjs +1 -0
  175. package/dist/chunks/messages-BliJJjNK2.cjs +1 -0
  176. package/dist/chunks/messages-BmSnovX9.cjs +1 -0
  177. package/dist/chunks/messages-BoZAdwRU2.mjs +319 -0
  178. package/dist/chunks/messages-Bp-PMdAJ.mjs +319 -0
  179. package/dist/chunks/messages-BphoNqXl2.mjs +319 -0
  180. package/dist/chunks/messages-Bs5HM4rw2.cjs +1 -0
  181. package/dist/chunks/messages-BtZSlvVR.cjs +1 -0
  182. package/dist/chunks/messages-Btg_N5Nj2.cjs +1 -0
  183. package/dist/chunks/messages-C67MLHmh.cjs +1 -0
  184. package/dist/chunks/messages-C6RXCX1D2.mjs +319 -0
  185. package/dist/chunks/messages-C6Zo4thu.mjs +319 -0
  186. package/dist/chunks/messages-C7QEUxQf2.cjs +1 -0
  187. package/dist/chunks/messages-CB-RDoMj2.cjs +1 -0
  188. package/dist/chunks/messages-CBOtPEE5.cjs +1 -0
  189. package/dist/chunks/messages-CBoKI_4k2.mjs +319 -0
  190. package/dist/chunks/messages-CCMMPgcH.mjs +319 -0
  191. package/dist/chunks/messages-CFvaU-9Q2.mjs +319 -0
  192. package/dist/chunks/messages-CHDxRwD8.mjs +319 -0
  193. package/dist/chunks/messages-CJWSRA8r.cjs +1 -0
  194. package/dist/chunks/messages-CJaj0WrV.mjs +319 -0
  195. package/dist/chunks/messages-CLnZAk7s.mjs +319 -0
  196. package/dist/chunks/messages-CNWWk9zU.cjs +1 -0
  197. package/dist/chunks/messages-CO4IPaU22.mjs +319 -0
  198. package/dist/chunks/messages-CQii-Hly.mjs +319 -0
  199. package/dist/chunks/messages-CSPoZeJd.cjs +1 -0
  200. package/dist/chunks/messages-CThWJOaj2.cjs +1 -0
  201. package/dist/chunks/messages-CWbag2W1.mjs +319 -0
  202. package/dist/chunks/messages-CWfPtitC.mjs +319 -0
  203. package/dist/chunks/messages-CYh8BT-U2.cjs +1 -0
  204. package/dist/chunks/messages-CZAwmrBN2.mjs +319 -0
  205. package/dist/chunks/messages-CcmzbJED2.mjs +319 -0
  206. package/dist/chunks/messages-Cdp2ao16.cjs +1 -0
  207. package/dist/chunks/messages-CeSGFPaX.mjs +319 -0
  208. package/dist/chunks/messages-CfmN_C_V2.cjs +1 -0
  209. package/dist/chunks/messages-CgTWiYXl.mjs +319 -0
  210. package/dist/chunks/messages-CiqFmj282.mjs +319 -0
  211. package/dist/chunks/messages-Cj1I1bdS.mjs +319 -0
  212. package/dist/chunks/messages-CktwPONk2.cjs +1 -0
  213. package/dist/chunks/messages-ClMbt_082.cjs +1 -0
  214. package/dist/chunks/messages-ClfpoVLB.cjs +1 -0
  215. package/dist/chunks/messages-CmcpUpmY2.cjs +1 -0
  216. package/dist/chunks/messages-CnNUiCOF2.cjs +1 -0
  217. package/dist/chunks/messages-Cq-tyBQ7.cjs +1 -0
  218. package/dist/chunks/messages-Cqs6tnMT.mjs +319 -0
  219. package/dist/chunks/messages-CrPQatEP.cjs +1 -0
  220. package/dist/chunks/messages-CtNhn2A72.cjs +1 -0
  221. package/dist/chunks/messages-Cw-JQsbB.cjs +1 -0
  222. package/dist/chunks/messages-CxLZNPP22.mjs +319 -0
  223. package/dist/chunks/messages-D2to7PFh.mjs +319 -0
  224. package/dist/chunks/messages-D7GNxw46.cjs +1 -0
  225. package/dist/chunks/messages-DDqbUQPS2.cjs +1 -0
  226. package/dist/chunks/messages-DIsfRggy.mjs +319 -0
  227. package/dist/chunks/messages-DLvqdeVe.mjs +319 -0
  228. package/dist/chunks/messages-DMukq8ei2.cjs +1 -0
  229. package/dist/chunks/messages-DOJ7TGKc.mjs +319 -0
  230. package/dist/chunks/messages-DPpKBEMV.mjs +319 -0
  231. package/dist/chunks/messages-DWDt4hEW.mjs +319 -0
  232. package/dist/chunks/messages-DYPc3t5L.cjs +1 -0
  233. package/dist/chunks/messages-DYRRi1JW.mjs +319 -0
  234. package/dist/chunks/messages-DYbP7_iL.cjs +1 -0
  235. package/dist/chunks/messages-D_gbD8W22.mjs +319 -0
  236. package/dist/chunks/messages-DaQ1XgNk.mjs +319 -0
  237. package/dist/chunks/messages-DjW1_-Ba2.mjs +319 -0
  238. package/dist/chunks/messages-Dop11yxi.mjs +319 -0
  239. package/dist/chunks/messages-DoyFY1Ye.mjs +319 -0
  240. package/dist/chunks/messages-DpjZ6YjX.cjs +1 -0
  241. package/dist/chunks/messages-DprfonW1.mjs +319 -0
  242. package/dist/chunks/messages-Dq8w46wu.cjs +1 -0
  243. package/dist/chunks/messages-DqbBTg1F2.mjs +319 -0
  244. package/dist/chunks/messages-DsGOj3A62.cjs +1 -0
  245. package/dist/chunks/messages-Dt6sbdaY.mjs +319 -0
  246. package/dist/chunks/messages-Dv3xqn-c.mjs +319 -0
  247. package/dist/chunks/messages-DwZCK3WR2.cjs +1 -0
  248. package/dist/chunks/messages-G-grLA6L2.cjs +1 -0
  249. package/dist/chunks/messages-HmyGBKiy2.cjs +1 -0
  250. package/dist/chunks/messages-IsKrH6md2.mjs +319 -0
  251. package/dist/chunks/messages-L1H9KlM8.cjs +1 -0
  252. package/dist/chunks/messages-OwCNaUA2.cjs +1 -0
  253. package/dist/chunks/messages-Q1fgq2tw.cjs +1 -0
  254. package/dist/chunks/messages-RLMDvD9N.mjs +319 -0
  255. package/dist/chunks/messages-SGrUP3jU2.mjs +319 -0
  256. package/dist/chunks/messages-TET2HqbJ.mjs +319 -0
  257. package/dist/chunks/messages-UR9AknuE.cjs +1 -0
  258. package/dist/chunks/messages-UXbrSqP4.mjs +319 -0
  259. package/dist/chunks/messages-UlQUIo4t.cjs +1 -0
  260. package/dist/chunks/messages-VO5bBaDw2.cjs +1 -0
  261. package/dist/chunks/messages-Vz-ouTEN.mjs +319 -0
  262. package/dist/chunks/messages-Z5hg0_Dz2.mjs +319 -0
  263. package/dist/chunks/messages-bBZDrpto2.mjs +319 -0
  264. package/dist/chunks/messages-ipwQdTtE.cjs +1 -0
  265. package/dist/chunks/messages-jXbN1DEs.mjs +319 -0
  266. package/dist/chunks/messages-kon7ablY2.cjs +1 -0
  267. package/dist/chunks/messages-oeTrLt0-.cjs +1 -0
  268. package/dist/chunks/messages-qga5_rrO.cjs +1 -0
  269. package/dist/chunks/messages-sEnNaZIo.cjs +1 -0
  270. package/dist/chunks/messages-szOBKu5g.cjs +1 -0
  271. package/dist/chunks/messages-tZ7nZ7qL.cjs +1 -0
  272. package/dist/chunks/messages-u_dR89Qy.mjs +319 -0
  273. package/dist/chunks/messages-wDo4f3f9.cjs +1 -0
  274. package/dist/chunks/messages-wxVdFEgz2.mjs +319 -0
  275. package/dist/chunks/messages-x3ljzuuQ2.cjs +1 -0
  276. package/dist/chunks/messages-x6wDbfws2.mjs +319 -0
  277. package/dist/chunks/messages-ygmjC_Dc.cjs +1 -0
  278. package/dist/chunks/messages-zPVJyoxM.cjs +1 -0
  279. package/dist/chunks/micromark-extension-math-Cm8w3ABm.cjs +1 -0
  280. package/dist/chunks/micromark-extension-math-cDSPzUWY.mjs +169 -0
  281. package/dist/chunks/mindmap-definition-QFDTVHPH-DLO594eM.cjs +96 -0
  282. package/dist/chunks/mindmap-definition-QFDTVHPH-QxqvL96A.mjs +1013 -0
  283. package/dist/chunks/notifier-CfO3Icvp.cjs +1 -0
  284. package/dist/chunks/notifier-DMdYq9FS.mjs +73 -0
  285. package/dist/chunks/ordinal-DgAmiD5I.mjs +65 -0
  286. package/dist/chunks/ordinal-mgpK7IL3.cjs +1 -0
  287. package/dist/chunks/packet-4T2RLAQJ-BQYK4Pey.cjs +1 -0
  288. package/dist/chunks/packet-4T2RLAQJ-BwgNXqij.mjs +3 -0
  289. package/dist/chunks/pie-ZZUOXDRM-BLh1-ocA.cjs +1 -0
  290. package/dist/chunks/pie-ZZUOXDRM-CrDtyZu4.mjs +3 -0
  291. package/dist/chunks/pieDiagram-DEJITSTG-CGduyUgA.mjs +179 -0
  292. package/dist/chunks/pieDiagram-DEJITSTG-Do5jGsL7.cjs +30 -0
  293. package/dist/chunks/prism-bash-OGjZLOVe.cjs +1 -0
  294. package/dist/chunks/prism-bash-oISNNULp.mjs +175 -0
  295. package/dist/chunks/prism-c-1g9CdJOp.cjs +1 -0
  296. package/dist/chunks/prism-c-MtM8JocP.mjs +54 -0
  297. package/dist/chunks/prism-cpp-CORR584T.cjs +1 -0
  298. package/dist/chunks/prism-cpp-DswQJFJz.mjs +63 -0
  299. package/dist/chunks/prism-csharp-BqZp_TTb.cjs +1 -0
  300. package/dist/chunks/prism-csharp-GIfQrsqe.mjs +236 -0
  301. package/dist/chunks/prism-css-BLyqeHZR.mjs +55 -0
  302. package/dist/chunks/prism-css-DmF38Kcs.cjs +1 -0
  303. package/dist/chunks/prism-dart-CFseeodJ.cjs +1 -0
  304. package/dist/chunks/prism-dart-DbCi1QVI.mjs +52 -0
  305. package/dist/chunks/prism-docker-BOsXo4aW.cjs +1 -0
  306. package/dist/chunks/prism-docker-CUCbqggk.mjs +75 -0
  307. package/dist/chunks/prism-go-DVHXGmKb.mjs +20 -0
  308. package/dist/chunks/prism-go-DsEyoP6D.cjs +1 -0
  309. package/dist/chunks/prism-graphql-DGEYZFbw.mjs +114 -0
  310. package/dist/chunks/prism-graphql-DqXh7GRP.cjs +1 -0
  311. package/dist/chunks/prism-java-CzQtfd6W.mjs +99 -0
  312. package/dist/chunks/prism-java-DQn4zrh0.cjs +1 -0
  313. package/dist/chunks/prism-javascript-CAkVOGaq.mjs +101 -0
  314. package/dist/chunks/prism-javascript-UQPp4ffL.cjs +1 -0
  315. package/dist/chunks/prism-json-B-63BF6R.cjs +1 -0
  316. package/dist/chunks/prism-json-BSGjg8pt.mjs +25 -0
  317. package/dist/chunks/prism-kotlin-D9r_epW6.mjs +64 -0
  318. package/dist/chunks/prism-kotlin-DmCIViWe.cjs +1 -0
  319. package/dist/chunks/prism-latex-Bcpg2uQr.cjs +1 -0
  320. package/dist/chunks/prism-latex-o70KNu9w.mjs +43 -0
  321. package/dist/chunks/prism-lua-7od8jpGg.mjs +17 -0
  322. package/dist/chunks/prism-lua-DyMxrgA_.cjs +1 -0
  323. package/dist/chunks/prism-markdown-BY8dZr_8.cjs +1 -0
  324. package/dist/chunks/prism-markdown-CI62y6qt.mjs +251 -0
  325. package/dist/chunks/prism-markup-DFqZi51m.mjs +116 -0
  326. package/dist/chunks/prism-markup-OdaHxDBn.cjs +1 -0
  327. package/dist/chunks/prism-markup-templating-Cnde-rJf.cjs +1 -0
  328. package/dist/chunks/prism-markup-templating-DTIDwO2f.mjs +39 -0
  329. package/dist/chunks/prism-php-BFUaOiLc.mjs +277 -0
  330. package/dist/chunks/prism-php-D8NgAYtH.cjs +1 -0
  331. package/dist/chunks/prism-python-CTRSlrPP.mjs +59 -0
  332. package/dist/chunks/prism-python-vAqxHcox.cjs +1 -0
  333. package/dist/chunks/prism-r-AA_ZuQPX.mjs +19 -0
  334. package/dist/chunks/prism-r-BsUW1w_m.cjs +1 -0
  335. package/dist/chunks/prism-ruby-BttDevO3.mjs +156 -0
  336. package/dist/chunks/prism-ruby-D7wGSPCx.cjs +1 -0
  337. package/dist/chunks/prism-rust-1wrW82hd.mjs +92 -0
  338. package/dist/chunks/prism-rust-C65Pn3Oc.cjs +1 -0
  339. package/dist/chunks/prism-scala-C26iL30s.mjs +43 -0
  340. package/dist/chunks/prism-scala-DuAsLUh6.cjs +1 -0
  341. package/dist/chunks/prism-sql-CSv-2hNx.mjs +29 -0
  342. package/dist/chunks/prism-sql-DHhl_Wd1.cjs +1 -0
  343. package/dist/chunks/prism-swift-2HH6IALG.cjs +1 -0
  344. package/dist/chunks/prism-swift-ik83oO-E.mjs +94 -0
  345. package/dist/chunks/prism-typescript-ChaS5gh3.mjs +38 -0
  346. package/dist/chunks/prism-typescript-Cuqi9QKv.cjs +1 -0
  347. package/dist/chunks/prism-yaml-BT2oArqa.cjs +1 -0
  348. package/dist/chunks/prism-yaml-YI3VZVAw.mjs +68 -0
  349. package/dist/chunks/quadrantDiagram-34T5L4WZ-BdwmsqYk.cjs +7 -0
  350. package/dist/chunks/quadrantDiagram-34T5L4WZ-BiqiWPbj.mjs +1960 -0
  351. package/dist/chunks/radar-PYXPWWZC-CYtB39az.mjs +3 -0
  352. package/dist/chunks/radar-PYXPWWZC-Drac9aGm.cjs +1 -0
  353. package/dist/chunks/requirementDiagram-MS252O5E-Cko4AhA2.mjs +2224 -0
  354. package/dist/chunks/requirementDiagram-MS252O5E-DBRLVWVl.cjs +84 -0
  355. package/dist/chunks/sankeyDiagram-XADWPNL6-BFWIr9AZ.mjs +909 -0
  356. package/dist/chunks/sankeyDiagram-XADWPNL6-Dq3Fi6gG.cjs +10 -0
  357. package/dist/chunks/sequenceDiagram-FGHM5R23-BKKZAG9O.cjs +157 -0
  358. package/dist/chunks/sequenceDiagram-FGHM5R23-DHFzzYeT.mjs +4181 -0
  359. package/dist/chunks/stateDiagram-FHFEXIEX-B1vJTyiJ.mjs +218 -0
  360. package/dist/chunks/stateDiagram-FHFEXIEX-DsHbgVAE.cjs +1 -0
  361. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DC206QSk.mjs +28 -0
  362. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DzkxV3pL.cjs +1 -0
  363. package/dist/chunks/timeline-definition-GMOUNBTQ-BlXvHIKp.mjs +1084 -0
  364. package/dist/chunks/timeline-definition-GMOUNBTQ-durCMWAX.cjs +120 -0
  365. package/dist/chunks/tools-Bc4e0xmz.mjs +13848 -0
  366. package/dist/chunks/tools-DaOdAh89.cjs +115 -0
  367. package/dist/chunks/treeView-SZITEDCU-BpLDxB8w.cjs +1 -0
  368. package/dist/chunks/treeView-SZITEDCU-DIbHFtMw.mjs +3 -0
  369. package/dist/chunks/treemap-W4RFUUIX-4t60SvLo.mjs +3 -0
  370. package/dist/chunks/treemap-W4RFUUIX-jpjSZokO.cjs +1 -0
  371. package/dist/chunks/vennDiagram-DHZGUBPP-BVxAvXiG.mjs +1876 -0
  372. package/dist/chunks/vennDiagram-DHZGUBPP-Dtpe6giP.cjs +34 -0
  373. package/dist/chunks/wardley-RL74JXVD-CBBTKC3H.cjs +1 -0
  374. package/dist/chunks/wardley-RL74JXVD-g5DNBeQ1.mjs +3 -0
  375. package/dist/chunks/wardleyDiagram-NUSXRM2D-BGORQqtQ.mjs +594 -0
  376. package/dist/chunks/wardleyDiagram-NUSXRM2D-ClsU-9PV.cjs +20 -0
  377. package/dist/chunks/xychartDiagram-5P7HB3ND-DplTzQI6.mjs +2017 -0
  378. package/dist/chunks/xychartDiagram-5P7HB3ND-EO18s7Fo.cjs +7 -0
  379. package/dist/full.cjs +1 -1
  380. package/dist/full.mjs +9 -9
  381. package/dist/locales.mjs +175 -68
  382. package/dist/markdown.cjs +2 -2
  383. package/dist/markdown.mjs +392 -384
  384. package/dist/messages-28LGzsNB.mjs +319 -0
  385. package/dist/messages-35X8GsGw2.mjs +319 -0
  386. package/dist/messages-5ygX-4B92.mjs +319 -0
  387. package/dist/messages-83AcZNii.mjs +319 -0
  388. package/dist/messages-B-OvX3Vz2.mjs +319 -0
  389. package/dist/messages-B56oJj_X2.mjs +319 -0
  390. package/dist/messages-B7peBJXJ2.mjs +319 -0
  391. package/dist/messages-BGwTNk0S2.mjs +319 -0
  392. package/dist/messages-BH-SS-wY.mjs +319 -0
  393. package/dist/messages-BPX8V6tu.mjs +319 -0
  394. package/dist/messages-BUp8P-0d.mjs +319 -0
  395. package/dist/messages-BX3WM02N2.mjs +319 -0
  396. package/dist/messages-BZrMZvRb2.mjs +319 -0
  397. package/dist/messages-B_0akf3T.mjs +319 -0
  398. package/dist/messages-BaE65Wtr.mjs +319 -0
  399. package/dist/messages-BdSGtvzM.mjs +319 -0
  400. package/dist/messages-BerXSWcD.mjs +319 -0
  401. package/dist/messages-BqKaz7yB2.mjs +319 -0
  402. package/dist/messages-BrqBJ6W_2.mjs +319 -0
  403. package/dist/messages-BvgGIpxE2.mjs +319 -0
  404. package/dist/messages-BxSe3rKx.mjs +319 -0
  405. package/dist/messages-ByD9AIJL2.mjs +319 -0
  406. package/dist/messages-CDJS_Tu2.mjs +319 -0
  407. package/dist/messages-CF9R29jb.mjs +319 -0
  408. package/dist/messages-CIbK29nM.mjs +319 -0
  409. package/dist/messages-CMD0tgb2.mjs +319 -0
  410. package/dist/messages-CMW0tO_d2.mjs +319 -0
  411. package/dist/messages-CMrYQJ5x2.mjs +319 -0
  412. package/dist/messages-CQZJnkss2.mjs +319 -0
  413. package/dist/messages-CRnolvNg.mjs +319 -0
  414. package/dist/messages-CS74u2hS2.mjs +319 -0
  415. package/dist/messages-CTxao0S32.mjs +319 -0
  416. package/dist/messages-CZl83L7T.mjs +319 -0
  417. package/dist/messages-C_kloJSr.mjs +319 -0
  418. package/dist/messages-Cfe_CPBW.mjs +319 -0
  419. package/dist/messages-Ch0oiQp5.mjs +319 -0
  420. package/dist/messages-Cigiz7tI.mjs +319 -0
  421. package/dist/messages-Cjac781Z.mjs +319 -0
  422. package/dist/messages-CqVFa1ZA.mjs +319 -0
  423. package/dist/messages-CwDgZL5-.mjs +319 -0
  424. package/dist/messages-Czd64cAx.mjs +319 -0
  425. package/dist/messages-CzxMz1wI.mjs +319 -0
  426. package/dist/messages-D2SkVxgV.mjs +319 -0
  427. package/dist/messages-D4ZsN52E2.mjs +319 -0
  428. package/dist/messages-DG0aBs1m2.mjs +319 -0
  429. package/dist/messages-DIkQAMxZ2.mjs +319 -0
  430. package/dist/messages-DJBc5_b_2.mjs +319 -0
  431. package/dist/messages-DN8oOcrS.mjs +319 -0
  432. package/dist/messages-DV5yhL0q.mjs +319 -0
  433. package/dist/messages-DVI1iDTn2.mjs +319 -0
  434. package/dist/messages-DVzrCNrY.mjs +319 -0
  435. package/dist/messages-DXwJOr-H2.mjs +319 -0
  436. package/dist/messages-D_edVQrv.mjs +319 -0
  437. package/dist/messages-DbODRieP.mjs +319 -0
  438. package/dist/messages-KMQrhAva.mjs +319 -0
  439. package/dist/messages-L4NsHX-g.mjs +319 -0
  440. package/dist/messages-PPuF4CRy.mjs +319 -0
  441. package/dist/messages-UTJEPSiL.mjs +319 -0
  442. package/dist/messages-Wa5EXypv2.mjs +319 -0
  443. package/dist/messages-Wfxn9jZh.mjs +319 -0
  444. package/dist/messages-XieI4326.mjs +319 -0
  445. package/dist/messages-ZASZzduy.mjs +319 -0
  446. package/dist/messages-Z_3X1FJJ2.mjs +319 -0
  447. package/dist/messages-huyV3ICu.mjs +319 -0
  448. package/dist/messages-rd6zBwaX2.mjs +319 -0
  449. package/dist/messages-sBpTj74Q.mjs +319 -0
  450. package/dist/messages-twD0eDdc.mjs +319 -0
  451. package/dist/react.cjs +1 -1
  452. package/dist/react.mjs +25 -26
  453. package/dist/tools.cjs +1 -1
  454. package/dist/tools.mjs +3 -3
  455. package/dist/vendor.LICENSE.txt +141 -899
  456. package/package.json +12 -6
  457. package/src/components/constants/data-attributes.ts +2 -0
  458. package/src/components/dom.ts +4 -2
  459. package/src/components/i18n/locales/am/messages.json +109 -1
  460. package/src/components/i18n/locales/ar/messages.json +109 -1
  461. package/src/components/i18n/locales/az/messages.json +109 -1
  462. package/src/components/i18n/locales/bg/messages.json +109 -1
  463. package/src/components/i18n/locales/bn/messages.json +109 -1
  464. package/src/components/i18n/locales/bs/messages.json +109 -1
  465. package/src/components/i18n/locales/cs/messages.json +109 -1
  466. package/src/components/i18n/locales/da/messages.json +109 -1
  467. package/src/components/i18n/locales/de/messages.json +110 -2
  468. package/src/components/i18n/locales/dv/messages.json +109 -1
  469. package/src/components/i18n/locales/el/messages.json +109 -1
  470. package/src/components/i18n/locales/en/messages.json +108 -1
  471. package/src/components/i18n/locales/es/messages.json +109 -1
  472. package/src/components/i18n/locales/et/messages.json +109 -1
  473. package/src/components/i18n/locales/fa/messages.json +109 -1
  474. package/src/components/i18n/locales/fi/messages.json +109 -1
  475. package/src/components/i18n/locales/fil/messages.json +109 -1
  476. package/src/components/i18n/locales/fr/messages.json +110 -2
  477. package/src/components/i18n/locales/gu/messages.json +109 -1
  478. package/src/components/i18n/locales/he/messages.json +109 -1
  479. package/src/components/i18n/locales/hi/messages.json +109 -1
  480. package/src/components/i18n/locales/hr/messages.json +109 -1
  481. package/src/components/i18n/locales/hu/messages.json +109 -1
  482. package/src/components/i18n/locales/hy/messages.json +109 -1
  483. package/src/components/i18n/locales/id/messages.json +109 -1
  484. package/src/components/i18n/locales/it/messages.json +109 -1
  485. package/src/components/i18n/locales/ja/messages.json +109 -1
  486. package/src/components/i18n/locales/ka/messages.json +109 -1
  487. package/src/components/i18n/locales/km/messages.json +109 -1
  488. package/src/components/i18n/locales/kn/messages.json +109 -1
  489. package/src/components/i18n/locales/ko/messages.json +109 -1
  490. package/src/components/i18n/locales/ku/messages.json +109 -1
  491. package/src/components/i18n/locales/lo/messages.json +109 -1
  492. package/src/components/i18n/locales/lt/messages.json +109 -1
  493. package/src/components/i18n/locales/lv/messages.json +109 -1
  494. package/src/components/i18n/locales/mk/messages.json +109 -1
  495. package/src/components/i18n/locales/ml/messages.json +109 -1
  496. package/src/components/i18n/locales/mn/messages.json +109 -1
  497. package/src/components/i18n/locales/mr/messages.json +109 -1
  498. package/src/components/i18n/locales/ms/messages.json +109 -1
  499. package/src/components/i18n/locales/my/messages.json +109 -1
  500. package/src/components/i18n/locales/ne/messages.json +109 -1
  501. package/src/components/i18n/locales/nl/messages.json +110 -2
  502. package/src/components/i18n/locales/no/messages.json +109 -1
  503. package/src/components/i18n/locales/pa/messages.json +109 -1
  504. package/src/components/i18n/locales/pl/messages.json +109 -1
  505. package/src/components/i18n/locales/ps/messages.json +109 -1
  506. package/src/components/i18n/locales/pt/messages.json +109 -1
  507. package/src/components/i18n/locales/ro/messages.json +109 -1
  508. package/src/components/i18n/locales/ru/messages.json +109 -1
  509. package/src/components/i18n/locales/sd/messages.json +109 -1
  510. package/src/components/i18n/locales/si/messages.json +109 -1
  511. package/src/components/i18n/locales/sk/messages.json +109 -1
  512. package/src/components/i18n/locales/sl/messages.json +109 -1
  513. package/src/components/i18n/locales/sq/messages.json +109 -1
  514. package/src/components/i18n/locales/sr/messages.json +109 -1
  515. package/src/components/i18n/locales/sv/messages.json +109 -1
  516. package/src/components/i18n/locales/sw/messages.json +109 -1
  517. package/src/components/i18n/locales/ta/messages.json +109 -1
  518. package/src/components/i18n/locales/te/messages.json +109 -1
  519. package/src/components/i18n/locales/th/messages.json +109 -1
  520. package/src/components/i18n/locales/tr/messages.json +109 -1
  521. package/src/components/i18n/locales/ug/messages.json +109 -1
  522. package/src/components/i18n/locales/uk/messages.json +109 -1
  523. package/src/components/i18n/locales/ur/messages.json +109 -1
  524. package/src/components/i18n/locales/vi/messages.json +109 -1
  525. package/src/components/i18n/locales/yi/messages.json +109 -1
  526. package/src/components/i18n/locales/zh/messages.json +109 -1
  527. package/src/components/icons/index.ts +59 -0
  528. package/src/components/inline-tools/inline-tool-code.ts +1 -1
  529. package/src/components/modules/api/toolbar.ts +6 -4
  530. package/src/components/modules/blockEvents/index.ts +9 -0
  531. package/src/components/modules/blockManager/operations.ts +14 -1
  532. package/src/components/modules/drag/DragController.ts +24 -3
  533. package/src/components/modules/paste/handlers/files-handler.ts +41 -4
  534. package/src/components/modules/paste/index.ts +5 -1
  535. package/src/components/modules/paste/tool-registry.ts +22 -12
  536. package/src/components/modules/toolbar/blockSettings.ts +14 -2
  537. package/src/components/modules/toolbar/index.ts +49 -16
  538. package/src/components/modules/toolbar/inline/selection-validator.ts +17 -0
  539. package/src/components/modules/toolbar/plus-button.ts +4 -2
  540. package/src/components/modules/toolbar/positioning.ts +27 -0
  541. package/src/components/modules/toolbar/settings-toggler.ts +16 -5
  542. package/src/components/modules/toolbar/tooltip.ts +59 -15
  543. package/src/components/modules/ui.ts +23 -8
  544. package/src/components/ui/toolbox.ts +92 -7
  545. package/src/components/utils/data-model-transform.ts +71 -1
  546. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.const.ts +5 -4
  547. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -0
  548. package/src/components/utils/popover/components/popover-item/popover-item-separator/popover-item-separator.const.ts +1 -1
  549. package/src/components/utils/popover/components/search-input/search-input.const.ts +3 -3
  550. package/src/components/utils/popover/popover-abstract.ts +137 -2
  551. package/src/components/utils/popover/popover-desktop.ts +260 -14
  552. package/src/components/utils/popover/popover-inline.ts +3 -2
  553. package/src/components/utils/popover/popover-nested-position.ts +132 -0
  554. package/src/components/utils/popover/popover-position.ts +46 -5
  555. package/src/components/utils/popover/popover.const.ts +6 -3
  556. package/src/components/utils/tooltip.ts +52 -8
  557. package/src/components/utils/top-layer.ts +137 -0
  558. package/src/playground/block-states-gallery.ts +123 -0
  559. package/src/playground/icon-gallery.ts +346 -0
  560. package/src/styles/checklist.css +70 -0
  561. package/src/styles/colors.css +666 -0
  562. package/src/styles/database.css +1176 -0
  563. package/src/styles/emoji-picker.css +58 -0
  564. package/src/styles/fonts.css +33 -0
  565. package/src/styles/image.css +1111 -0
  566. package/src/styles/isolation.css +204 -0
  567. package/src/styles/keyframes.css +62 -0
  568. package/src/styles/main.css +28 -2566
  569. package/src/styles/popover-animation.css +34 -0
  570. package/src/styles/preflight.css +283 -0
  571. package/src/styles/slash-search.css +52 -0
  572. package/src/styles/tables.css +154 -0
  573. package/src/styles/tokens.css +127 -0
  574. package/src/tools/callout/emoji-picker/index.ts +4 -2
  575. package/src/tools/code/code-keyboard.ts +70 -8
  576. package/src/tools/code/constants.ts +3 -9
  577. package/src/tools/code/dom-builder.ts +5 -1
  578. package/src/tools/code/index.ts +185 -25
  579. package/src/tools/code/language-detector.ts +47 -52
  580. package/src/tools/code/prism-applier.ts +183 -0
  581. package/src/tools/code/prism-loader.ts +197 -0
  582. package/src/tools/database/database-board-view.ts +3 -1
  583. package/src/tools/image/alt-popover.css +42 -0
  584. package/src/tools/image/alt-popover.ts +104 -0
  585. package/src/tools/image/constants.ts +25 -0
  586. package/src/tools/image/crop-editor.css +513 -0
  587. package/src/tools/image/crop-editor.ts +331 -0
  588. package/src/tools/image/crop-math.ts +117 -0
  589. package/src/tools/image/crop-modal.css +105 -0
  590. package/src/tools/image/crop-modal.ts +92 -0
  591. package/src/tools/image/empty-state.ts +407 -0
  592. package/src/tools/image/error-state.ts +69 -0
  593. package/src/tools/image/errors.ts +18 -0
  594. package/src/tools/image/i18n.ts +8 -0
  595. package/src/tools/image/index.ts +755 -0
  596. package/src/tools/image/resizer.ts +119 -0
  597. package/src/tools/image/spring.ts +16 -0
  598. package/src/tools/image/ui.ts +921 -0
  599. package/src/tools/image/uploader.ts +61 -0
  600. package/src/tools/image/uploading-state.ts +117 -0
  601. package/src/tools/index.ts +2 -0
  602. package/src/tools/toggle/constants.ts +3 -1
  603. package/src/types-internal/prismjs-components.d.ts +9 -0
  604. package/types/api/toolbar.d.ts +14 -1
  605. package/types/configs/blok-config.d.ts +24 -0
  606. package/types/tools/image.d.ts +72 -0
  607. package/types/utils/popover/popover.d.ts +27 -0
  608. package/dist/chunks/_basePickBy-6gOwWeg0.mjs +0 -166
  609. package/dist/chunks/_basePickBy-mUHvTE6c.cjs +0 -1
  610. package/dist/chunks/_baseUniq-BP5sM8qF.cjs +0 -1
  611. package/dist/chunks/_baseUniq-BcOWmEX6.mjs +0 -682
  612. package/dist/chunks/arc-kVpio4JL.mjs +0 -80
  613. package/dist/chunks/arc-lSzOinJz.cjs +0 -1
  614. package/dist/chunks/architecture-YZFGNWBL-BFcrDSEW.mjs +0 -3
  615. package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +0 -1
  616. package/dist/chunks/architectureDiagram-Q4EWVU46-CN6p4Aji.mjs +0 -4066
  617. package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +0 -36
  618. package/dist/chunks/blockDiagram-DXYQGD6D-BvZWa5Rv.mjs +0 -3074
  619. package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +0 -132
  620. package/dist/chunks/blok-CNEP3LpI.cjs +0 -16
  621. package/dist/chunks/blok-DNvzyOYn.mjs +0 -13679
  622. package/dist/chunks/c-CQrSye6K.mjs +0 -5
  623. package/dist/chunks/c-DNJHkQXQ.cjs +0 -1
  624. package/dist/chunks/c4Diagram-AHTNJAMY-Cmc2PsEs.mjs +0 -2956
  625. package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +0 -10
  626. package/dist/chunks/ccount-B7is2MU0.mjs +0 -10
  627. package/dist/chunks/ccount-DtzbJUOh.cjs +0 -1
  628. package/dist/chunks/channel-BTWFNzkv.mjs +0 -5
  629. package/dist/chunks/channel-BqhnS5zl.cjs +0 -1
  630. package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +0 -1
  631. package/dist/chunks/chunk-2KRD3SAO-DWLzBIZw.mjs +0 -20
  632. package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +0 -1
  633. package/dist/chunks/chunk-336JU56O-DbaX7hyp.mjs +0 -49
  634. package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +0 -1
  635. package/dist/chunks/chunk-426QAEUC-pmH9mm_X.mjs +0 -13
  636. package/dist/chunks/chunk-4BX2VUAB-B1LZI9QZ.mjs +0 -19
  637. package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +0 -1
  638. package/dist/chunks/chunk-4TB4RGXK-BC8qRYSD.mjs +0 -3250
  639. package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +0 -206
  640. package/dist/chunks/chunk-55IACEB6-CaLO8kWA.mjs +0 -8
  641. package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +0 -1
  642. package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +0 -62
  643. package/dist/chunks/chunk-5FUZZQ4R-DAWdfx4J.mjs +0 -3786
  644. package/dist/chunks/chunk-5PVQY5BW-7Voh8aPS.mjs +0 -1122
  645. package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +0 -2
  646. package/dist/chunks/chunk-67CJDMHE-DSEGOn_f.mjs +0 -20
  647. package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +0 -1
  648. package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +0 -1
  649. package/dist/chunks/chunk-7N4EOEYR-CnSg1Hfu.mjs +0 -29
  650. package/dist/chunks/chunk-AA7GKIK3-BmatWFnp.mjs +0 -24
  651. package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +0 -1
  652. package/dist/chunks/chunk-BSJP7CBP-BtFfqv7R.mjs +0 -83
  653. package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +0 -1
  654. package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +0 -1
  655. package/dist/chunks/chunk-CIAEETIT-nVgPUEW1.mjs +0 -20
  656. package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +0 -1
  657. package/dist/chunks/chunk-EDXVE4YY-e7599cf4.mjs +0 -26
  658. package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +0 -10
  659. package/dist/chunks/chunk-ENJZ2VHE-DaMNdqfV.mjs +0 -566
  660. package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +0 -15
  661. package/dist/chunks/chunk-FMBD7UC4-xT5c0WSd.mjs +0 -5
  662. package/dist/chunks/chunk-FOC6F5B3-AxSG6qaj.mjs +0 -20
  663. package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +0 -1
  664. package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +0 -122
  665. package/dist/chunks/chunk-ICPOFSXX-DbL0YBQf.mjs +0 -3290
  666. package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +0 -94
  667. package/dist/chunks/chunk-K5T4RW27-CYdwJMQV.mjs +0 -16372
  668. package/dist/chunks/chunk-KGLVRYIC-BwOmLwqF.mjs +0 -20
  669. package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +0 -1
  670. package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +0 -1
  671. package/dist/chunks/chunk-LIHQZDEY-Csx8-523.mjs +0 -55
  672. package/dist/chunks/chunk-ORNJ4GCN-CCDHRflI.mjs +0 -25
  673. package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +0 -1
  674. package/dist/chunks/chunk-OYMX7WX6-BAoDgMPF.mjs +0 -2038
  675. package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +0 -231
  676. package/dist/chunks/chunk-QZHKN3VN-D1myzhE_.mjs +0 -12
  677. package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +0 -1
  678. package/dist/chunks/chunk-U2HBQHQK-BXyrI_xP.mjs +0 -1875
  679. package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +0 -70
  680. package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +0 -1
  681. package/dist/chunks/chunk-X2U36JSP-CXhWYelJ.mjs +0 -68
  682. package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +0 -32
  683. package/dist/chunks/chunk-XPW4576I-DOztVf6t.mjs +0 -1146
  684. package/dist/chunks/chunk-YZCP3GAM-DrkjtME-.mjs +0 -60
  685. package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +0 -1
  686. package/dist/chunks/chunk-ZZ45TVLE-CSFFLvxb.mjs +0 -33
  687. package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +0 -1
  688. package/dist/chunks/classDiagram-6PBFFD2Q-Ci3S9iu3.mjs +0 -30
  689. package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +0 -1
  690. package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +0 -1
  691. package/dist/chunks/classDiagram-v2-HSJHXN6E-BkaFKbgJ.mjs +0 -30
  692. package/dist/chunks/clone-WSLD7bVs.mjs +0 -8
  693. package/dist/chunks/clone-_XTzxdN3.cjs +0 -1
  694. package/dist/chunks/constants-DJjFgioo.cjs +0 -451
  695. package/dist/chunks/constants-DMsOCPcF.mjs +0 -3268
  696. package/dist/chunks/core-C8BHLAAO.cjs +0 -12
  697. package/dist/chunks/core-D2KrVz4a.mjs +0 -4501
  698. package/dist/chunks/cose-bilkent-S5V4N54A-BXBidSxC.mjs +0 -2246
  699. package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +0 -1
  700. package/dist/chunks/cpp-DVBevX-J.cjs +0 -1
  701. package/dist/chunks/cpp-DnMQuZPn.mjs +0 -16
  702. package/dist/chunks/csharp-ByiKf6DR.mjs +0 -3
  703. package/dist/chunks/csharp-CHUT4JOq.cjs +0 -1
  704. package/dist/chunks/css-BqsWMbBt.mjs +0 -3
  705. package/dist/chunks/css-QEheyxtB.cjs +0 -1
  706. package/dist/chunks/dagre-C7z2UZ4M.mjs +0 -1483
  707. package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +0 -4
  708. package/dist/chunks/dagre-KV5264BT-Ct6qUqKI.mjs +0 -298
  709. package/dist/chunks/dagre-VHP8Ngkv.cjs +0 -1
  710. package/dist/chunks/dart-aYsezAEv.mjs +0 -3
  711. package/dist/chunks/dart-jPH5d8ma.cjs +0 -1
  712. package/dist/chunks/diagram-5BDNPKRD-B9hNG7ht.mjs +0 -112
  713. package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +0 -10
  714. package/dist/chunks/diagram-G4DWMVQ6-9_YOaVXe.mjs +0 -546
  715. package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +0 -24
  716. package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +0 -43
  717. package/dist/chunks/diagram-MMDJMWI5-DmStUoNk.mjs +0 -234
  718. package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +0 -24
  719. package/dist/chunks/diagram-TYMM5635-DmrkkW85.mjs +0 -144
  720. package/dist/chunks/dockerfile-1GBIWF66.mjs +0 -3
  721. package/dist/chunks/dockerfile-B2jMQOes.cjs +0 -1
  722. package/dist/chunks/engine-javascript-CYa8VRAu.mjs +0 -2373
  723. package/dist/chunks/engine-javascript-HHRWd9yA.cjs +0 -141
  724. package/dist/chunks/erDiagram-SMLLAGMA-5vkZ5DwJ.mjs +0 -1712
  725. package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +0 -85
  726. package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +0 -162
  727. package/dist/chunks/flowDiagram-DWJPFMVM-CGTiQBd7.mjs +0 -4175
  728. package/dist/chunks/ganttDiagram-T4ZO3ILL-BNtXyM0I.mjs +0 -3083
  729. package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +0 -292
  730. package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +0 -1
  731. package/dist/chunks/gitGraph-7Q5UKJZL-DxMmuJIv.mjs +0 -3
  732. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CmQR-xZp.mjs +0 -792
  733. package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +0 -106
  734. package/dist/chunks/go-4mRqLTld.mjs +0 -3
  735. package/dist/chunks/go-BX-cNLGO.cjs +0 -1
  736. package/dist/chunks/graphlib-BfwqhpXp.mjs +0 -225
  737. package/dist/chunks/graphlib-CYv_-0LK.cjs +0 -1
  738. package/dist/chunks/graphql-4Htarzhp.mjs +0 -11
  739. package/dist/chunks/graphql-BnxAS09v.cjs +0 -1
  740. package/dist/chunks/html-CAN0GHkJ.cjs +0 -1
  741. package/dist/chunks/html-DW39yhuS.mjs +0 -10
  742. package/dist/chunks/i18next-loader-CyDs2NKf.mjs +0 -35
  743. package/dist/chunks/i18next-loader-cGwOOjK3.cjs +0 -1
  744. package/dist/chunks/info-OMHHGYJF-ChWZqC0a.mjs +0 -3
  745. package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +0 -1
  746. package/dist/chunks/infoDiagram-42DDH7IO-BbV_tozh.mjs +0 -29
  747. package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +0 -2
  748. package/dist/chunks/isEmpty-BHdznGlG.cjs +0 -1
  749. package/dist/chunks/isEmpty-jlCmuYeg.mjs +0 -35
  750. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +0 -70
  751. package/dist/chunks/ishikawaDiagram-UXIWVN3A-DJBG3b-A.mjs +0 -719
  752. package/dist/chunks/java-DD_iwrM-.mjs +0 -5
  753. package/dist/chunks/java-O-rzZ2Bn.cjs +0 -1
  754. package/dist/chunks/javascript-CJBlE5PB.mjs +0 -3
  755. package/dist/chunks/javascript-z9G2vOAZ.cjs +0 -1
  756. package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +0 -139
  757. package/dist/chunks/journeyDiagram-VCZTEJTY-BdMsFn3r.mjs +0 -885
  758. package/dist/chunks/json-C_epQRuA.cjs +0 -1
  759. package/dist/chunks/json-yRGZVu2_.mjs +0 -3
  760. package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +0 -89
  761. package/dist/chunks/kanban-definition-6JOO6SKY-ncNaxcxH.mjs +0 -980
  762. package/dist/chunks/kotlin-BmkhKZGf.mjs +0 -3
  763. package/dist/chunks/kotlin-Dj7KFgV1.cjs +0 -1
  764. package/dist/chunks/latex-BeVX0E4Z.mjs +0 -5
  765. package/dist/chunks/latex-u7qVP95p.cjs +0 -1
  766. package/dist/chunks/lightweight-i18n-Bb_VS9v5.mjs +0 -237
  767. package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +0 -1
  768. package/dist/chunks/line-B7XG48Uf.cjs +0 -1
  769. package/dist/chunks/line-CWJNfvdn.mjs +0 -34
  770. package/dist/chunks/linear-BU4OjSPS.mjs +0 -289
  771. package/dist/chunks/linear-D5j5Vgij.cjs +0 -1
  772. package/dist/chunks/lua-6ceNckPi.cjs +0 -1
  773. package/dist/chunks/lua-CPnWrc7C.mjs +0 -5
  774. package/dist/chunks/markdown-DSiOSAsn.mjs +0 -3
  775. package/dist/chunks/markdown-Vce1p-mO.cjs +0 -1
  776. package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +0 -5
  777. package/dist/chunks/mdast-util-math-D42zbZda.mjs +0 -151
  778. package/dist/chunks/mermaid-C2y_3PIg.mjs +0 -3
  779. package/dist/chunks/mermaid-Cu5vPKfS.cjs +0 -1
  780. package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +0 -3
  781. package/dist/chunks/mermaid-parser.core-DBhkcRo7.mjs +0 -57
  782. package/dist/chunks/mermaid.core-GiTRPJLF.cjs +0 -10
  783. package/dist/chunks/mermaid.core-uSzF9nF1.mjs +0 -977
  784. package/dist/chunks/messages--CbdZY2w.cjs +0 -1
  785. package/dist/chunks/messages--c74ihtM.mjs +0 -212
  786. package/dist/chunks/messages-041mNyU42.mjs +0 -212
  787. package/dist/chunks/messages-1hpCmcb5.cjs +0 -1
  788. package/dist/chunks/messages-44SP7ajI.mjs +0 -212
  789. package/dist/chunks/messages-4_3WFJMy2.cjs +0 -1
  790. package/dist/chunks/messages-7NvouWKA2.mjs +0 -212
  791. package/dist/chunks/messages-ADxG1iWK2.cjs +0 -1
  792. package/dist/chunks/messages-AnuHiDPc2.mjs +0 -212
  793. package/dist/chunks/messages-B1V7UT9I.mjs +0 -212
  794. package/dist/chunks/messages-B2Q9NH4D.mjs +0 -212
  795. package/dist/chunks/messages-B3MONaxw2.cjs +0 -1
  796. package/dist/chunks/messages-B3tNgyxG2.cjs +0 -1
  797. package/dist/chunks/messages-B6j77WNV2.mjs +0 -212
  798. package/dist/chunks/messages-B91FdwB0.cjs +0 -1
  799. package/dist/chunks/messages-B9igXgiw.cjs +0 -1
  800. package/dist/chunks/messages-BB1xM_oB.cjs +0 -1
  801. package/dist/chunks/messages-BEV0lzGv2.mjs +0 -212
  802. package/dist/chunks/messages-BG749_88.mjs +0 -212
  803. package/dist/chunks/messages-BGZLiYrQ.cjs +0 -1
  804. package/dist/chunks/messages-BGpGj8nJ2.mjs +0 -212
  805. package/dist/chunks/messages-BK6gK3wu.cjs +0 -1
  806. package/dist/chunks/messages-BKmAFG9Z.cjs +0 -1
  807. package/dist/chunks/messages-BMVJq-1T.cjs +0 -1
  808. package/dist/chunks/messages-BMsqJNz0.cjs +0 -1
  809. package/dist/chunks/messages-BNYDShPm2.mjs +0 -212
  810. package/dist/chunks/messages-BSVhckNg.cjs +0 -1
  811. package/dist/chunks/messages-BUaHDggs.cjs +0 -1
  812. package/dist/chunks/messages-BUaJv5qS.cjs +0 -1
  813. package/dist/chunks/messages-BW--wNis.mjs +0 -212
  814. package/dist/chunks/messages-BXcSH14N.cjs +0 -1
  815. package/dist/chunks/messages-BYOYrUOu.cjs +0 -1
  816. package/dist/chunks/messages-BYSE1Iq2.cjs +0 -1
  817. package/dist/chunks/messages-B_Mqw9Dl2.mjs +0 -212
  818. package/dist/chunks/messages-Bb225KE6.cjs +0 -1
  819. package/dist/chunks/messages-BbYwT3FH2.mjs +0 -212
  820. package/dist/chunks/messages-Bda8jwos2.mjs +0 -212
  821. package/dist/chunks/messages-BdpFAZGZ.mjs +0 -212
  822. package/dist/chunks/messages-BiDR95AW.cjs +0 -1
  823. package/dist/chunks/messages-BkAoxm6t.cjs +0 -1
  824. package/dist/chunks/messages-BmNLNUz_.mjs +0 -212
  825. package/dist/chunks/messages-BnGtg6t4.mjs +0 -212
  826. package/dist/chunks/messages-BnXkEkD_.mjs +0 -212
  827. package/dist/chunks/messages-BpUasRQ3.cjs +0 -1
  828. package/dist/chunks/messages-BwtU06Ax.mjs +0 -212
  829. package/dist/chunks/messages-BxV8K7y42.cjs +0 -1
  830. package/dist/chunks/messages-Bxhns4Ui.cjs +0 -1
  831. package/dist/chunks/messages-ByRcwLIO.mjs +0 -212
  832. package/dist/chunks/messages-C0sxGmLV2.cjs +0 -1
  833. package/dist/chunks/messages-C5nqE8O42.cjs +0 -1
  834. package/dist/chunks/messages-C7il6l-S.cjs +0 -1
  835. package/dist/chunks/messages-CFyGEGXM2.cjs +0 -1
  836. package/dist/chunks/messages-CHBH3EQG.mjs +0 -212
  837. package/dist/chunks/messages-CIYU5iEj.mjs +0 -212
  838. package/dist/chunks/messages-CJGOmFxi.mjs +0 -212
  839. package/dist/chunks/messages-CN2yjHzW.cjs +0 -1
  840. package/dist/chunks/messages-CP7Ncgaf.mjs +0 -212
  841. package/dist/chunks/messages-CP8YKa4F.mjs +0 -212
  842. package/dist/chunks/messages-CTy_3-mw2.cjs +0 -1
  843. package/dist/chunks/messages-CUxaqK8t2.mjs +0 -212
  844. package/dist/chunks/messages-CXDk_Rlr2.mjs +0 -212
  845. package/dist/chunks/messages-CYZxR91M.mjs +0 -212
  846. package/dist/chunks/messages-C_ogasse2.cjs +0 -1
  847. package/dist/chunks/messages-CbFuceEb.cjs +0 -1
  848. package/dist/chunks/messages-CbbYb7cc.cjs +0 -1
  849. package/dist/chunks/messages-CfO5kKI72.cjs +0 -1
  850. package/dist/chunks/messages-Cgv5DuNV.cjs +0 -1
  851. package/dist/chunks/messages-Cjm7Nj1C.mjs +0 -212
  852. package/dist/chunks/messages-CjzZ6nxv.mjs +0 -212
  853. package/dist/chunks/messages-CkBrRFY02.cjs +0 -1
  854. package/dist/chunks/messages-CpVtcYqo.mjs +0 -212
  855. package/dist/chunks/messages-CpppvIiu.cjs +0 -1
  856. package/dist/chunks/messages-CumomgDd2.mjs +0 -212
  857. package/dist/chunks/messages-CvCb4dCy.mjs +0 -212
  858. package/dist/chunks/messages-D3DNj1jh.mjs +0 -212
  859. package/dist/chunks/messages-D7d2U-tx.mjs +0 -212
  860. package/dist/chunks/messages-D8-vyZ2V.cjs +0 -1
  861. package/dist/chunks/messages-DFWhnXF12.mjs +0 -212
  862. package/dist/chunks/messages-DIpVfyX-2.cjs +0 -1
  863. package/dist/chunks/messages-DJBeEI7G.cjs +0 -1
  864. package/dist/chunks/messages-DJr1x1i2.mjs +0 -212
  865. package/dist/chunks/messages-DN7PU5Un2.mjs +0 -212
  866. package/dist/chunks/messages-DR8nFHdw2.cjs +0 -1
  867. package/dist/chunks/messages-DT5Ux3el.cjs +0 -1
  868. package/dist/chunks/messages-DVh_Bwwq.mjs +0 -212
  869. package/dist/chunks/messages-DVwHxslb.mjs +0 -212
  870. package/dist/chunks/messages-DZ1Pfnl0.mjs +0 -212
  871. package/dist/chunks/messages-Da2SYMf52.cjs +0 -1
  872. package/dist/chunks/messages-DaaqkvOz2.cjs +0 -1
  873. package/dist/chunks/messages-DdiqfVCc.cjs +0 -1
  874. package/dist/chunks/messages-DfZe7SKZ.cjs +0 -1
  875. package/dist/chunks/messages-DkJ0bcqu.cjs +0 -1
  876. package/dist/chunks/messages-DkmG49t8.cjs +0 -1
  877. package/dist/chunks/messages-Do3QV7QW.mjs +0 -212
  878. package/dist/chunks/messages-Do4o9ckW.cjs +0 -1
  879. package/dist/chunks/messages-DrbTe09r.cjs +0 -1
  880. package/dist/chunks/messages-Drxwphbg2.mjs +0 -212
  881. package/dist/chunks/messages-DtgIZDlN.cjs +0 -1
  882. package/dist/chunks/messages-DtloGH1v2.mjs +0 -212
  883. package/dist/chunks/messages-Du0zg7UM.mjs +0 -212
  884. package/dist/chunks/messages-DuA_D23n.mjs +0 -212
  885. package/dist/chunks/messages-DwKRw3jP2.mjs +0 -212
  886. package/dist/chunks/messages-DxCaGN-Q2.cjs +0 -1
  887. package/dist/chunks/messages-DxpBJ5ZY.cjs +0 -1
  888. package/dist/chunks/messages-DyWu9_0D.cjs +0 -1
  889. package/dist/chunks/messages-DzAYvMm72.mjs +0 -212
  890. package/dist/chunks/messages-Dzmge-lj.mjs +0 -212
  891. package/dist/chunks/messages-ETNAE7WV.mjs +0 -212
  892. package/dist/chunks/messages-F4r6ruTX2.mjs +0 -212
  893. package/dist/chunks/messages-FNQdT9Da.mjs +0 -212
  894. package/dist/chunks/messages-FYGyC6zk2.mjs +0 -212
  895. package/dist/chunks/messages-Hg0BECWK.cjs +0 -1
  896. package/dist/chunks/messages-JlduXweH2.cjs +0 -1
  897. package/dist/chunks/messages-Km2PU_o7.cjs +0 -1
  898. package/dist/chunks/messages-MgJnGL9X2.cjs +0 -1
  899. package/dist/chunks/messages-PIoKW4js2.cjs +0 -1
  900. package/dist/chunks/messages-VEm9mp5H.cjs +0 -1
  901. package/dist/chunks/messages-WgwkG5PL2.cjs +0 -1
  902. package/dist/chunks/messages-X46KAUoI.cjs +0 -1
  903. package/dist/chunks/messages-ZS1Ro8ZB.mjs +0 -212
  904. package/dist/chunks/messages-ZZd1ckSO2.cjs +0 -1
  905. package/dist/chunks/messages-dyhHlgE9.mjs +0 -212
  906. package/dist/chunks/messages-fAEKtYXO.mjs +0 -212
  907. package/dist/chunks/messages-hhptyJO3.mjs +0 -212
  908. package/dist/chunks/messages-hk4dinYI.mjs +0 -212
  909. package/dist/chunks/messages-knSLxvI6.mjs +0 -212
  910. package/dist/chunks/messages-lORohDgW2.mjs +0 -212
  911. package/dist/chunks/messages-mvnz8DvU.mjs +0 -212
  912. package/dist/chunks/messages-pHWKsrcZ.mjs +0 -212
  913. package/dist/chunks/messages-q2McAyOz.mjs +0 -212
  914. package/dist/chunks/messages-r62SI44r.mjs +0 -212
  915. package/dist/chunks/messages-uFdMhLbJ.mjs +0 -212
  916. package/dist/chunks/messages-vRqPeNM_.cjs +0 -1
  917. package/dist/chunks/messages-vhq442qv.cjs +0 -1
  918. package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +0 -1
  919. package/dist/chunks/micromark-extension-math-x3wvkKaN.mjs +0 -169
  920. package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +0 -96
  921. package/dist/chunks/mindmap-definition-QFDTVHPH-BfOyKFtC.mjs +0 -1013
  922. package/dist/chunks/notifier-B-wErJJB.mjs +0 -73
  923. package/dist/chunks/notifier-CwnFVNdD.cjs +0 -1
  924. package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +0 -1
  925. package/dist/chunks/objectWithoutProperties-Dci1-l7D.mjs +0 -23
  926. package/dist/chunks/one-light-D2mpnHEP.cjs +0 -1
  927. package/dist/chunks/one-light-bqnXiA0I.mjs +0 -4
  928. package/dist/chunks/ordinal-CN3SDQau.mjs +0 -65
  929. package/dist/chunks/ordinal-DFFZs5-y.cjs +0 -1
  930. package/dist/chunks/packet-4T2RLAQJ-7DW35MGl.mjs +0 -3
  931. package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +0 -1
  932. package/dist/chunks/php-BMavm1CR.cjs +0 -1
  933. package/dist/chunks/php-Dejkjxb5.mjs +0 -18
  934. package/dist/chunks/pie-ZZUOXDRM-Dtuq0w2k.mjs +0 -3
  935. package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +0 -1
  936. package/dist/chunks/pieDiagram-DEJITSTG-B1sjciNi.mjs +0 -179
  937. package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +0 -30
  938. package/dist/chunks/python-Dcoit5Q5.cjs +0 -1
  939. package/dist/chunks/python-tdu-oDWx.mjs +0 -3
  940. package/dist/chunks/quadrantDiagram-34T5L4WZ-CV838wf-.mjs +0 -1960
  941. package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +0 -7
  942. package/dist/chunks/r-BdDCwgEs.cjs +0 -1
  943. package/dist/chunks/r-D8fCyoTl.mjs +0 -5
  944. package/dist/chunks/radar-PYXPWWZC-Bz4lwSbg.mjs +0 -3
  945. package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +0 -1
  946. package/dist/chunks/requirementDiagram-MS252O5E-CA3LUAVZ.mjs +0 -2224
  947. package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +0 -84
  948. package/dist/chunks/ruby-DHm8_lqY.cjs +0 -1
  949. package/dist/chunks/ruby-Z7wCYjey.mjs +0 -33
  950. package/dist/chunks/rust-Cdm0j4IC.cjs +0 -1
  951. package/dist/chunks/rust-D5IQAarB.mjs +0 -3
  952. package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +0 -10
  953. package/dist/chunks/sankeyDiagram-XADWPNL6-Cw8wB2YO.mjs +0 -909
  954. package/dist/chunks/scala-CbcMYkuq.mjs +0 -3
  955. package/dist/chunks/scala-Tb1u_9W3.cjs +0 -1
  956. package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +0 -157
  957. package/dist/chunks/sequenceDiagram-FGHM5R23-pm0MaeXC.mjs +0 -4181
  958. package/dist/chunks/shellscript-CZefq5l_.mjs +0 -3
  959. package/dist/chunks/shellscript-D6KsENaG.cjs +0 -1
  960. package/dist/chunks/sql-BlpbD7FB.cjs +0 -1
  961. package/dist/chunks/sql-C4ibVEDs.mjs +0 -3
  962. package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +0 -1
  963. package/dist/chunks/stateDiagram-FHFEXIEX-CMcsvm0M.mjs +0 -218
  964. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-C4nZGNBm.mjs +0 -28
  965. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +0 -1
  966. package/dist/chunks/swift-Drpgj9J0.mjs +0 -3
  967. package/dist/chunks/swift-DubrdZus.cjs +0 -1
  968. package/dist/chunks/timeline-definition-GMOUNBTQ-DwHKPj3j.mjs +0 -1084
  969. package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +0 -120
  970. package/dist/chunks/tools-DPov06L-.mjs +0 -11458
  971. package/dist/chunks/tools-NAqHj-Cy.cjs +0 -9
  972. package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +0 -1
  973. package/dist/chunks/treeView-SZITEDCU-DPG9FJ6Q.mjs +0 -3
  974. package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +0 -1
  975. package/dist/chunks/treemap-W4RFUUIX-N4tZJR1-.mjs +0 -3
  976. package/dist/chunks/typescript-BKtlqLze.cjs +0 -1
  977. package/dist/chunks/typescript-Bnpf4OG6.mjs +0 -5
  978. package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +0 -34
  979. package/dist/chunks/vennDiagram-DHZGUBPP-Gfy0QWtB.mjs +0 -1876
  980. package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +0 -1
  981. package/dist/chunks/vitesse-dark-dflHsflb.mjs +0 -4
  982. package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +0 -1
  983. package/dist/chunks/wardley-RL74JXVD-C7Hzc5y2.mjs +0 -3
  984. package/dist/chunks/wardleyDiagram-NUSXRM2D-ChZiL3a0.mjs +0 -594
  985. package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +0 -20
  986. package/dist/chunks/xml-C1PUeKuL.mjs +0 -5
  987. package/dist/chunks/xml-CwiH0x4E.cjs +0 -1
  988. package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +0 -7
  989. package/dist/chunks/xychartDiagram-5P7HB3ND-t_dhLiOA.mjs +0 -2017
  990. package/dist/chunks/yaml-CecI9urB.mjs +0 -3
  991. package/dist/chunks/yaml-CkVxfQ4c.cjs +0 -1
  992. package/dist/messages--zgIPYtb.mjs +0 -212
  993. package/dist/messages-4jULpVvw.mjs +0 -212
  994. package/dist/messages-AbwSlRf_.mjs +0 -212
  995. package/dist/messages-B-dl7Pwb2.mjs +0 -212
  996. package/dist/messages-B3rCRhb1.mjs +0 -212
  997. package/dist/messages-B73L8nKc2.mjs +0 -212
  998. package/dist/messages-BAjsD2Vm2.mjs +0 -212
  999. package/dist/messages-BBodSb5B2.mjs +0 -212
  1000. package/dist/messages-BTpn6H9x2.mjs +0 -212
  1001. package/dist/messages-BWb0GjTj2.mjs +0 -212
  1002. package/dist/messages-BbCgnri12.mjs +0 -212
  1003. package/dist/messages-Bfon_Y3q.mjs +0 -212
  1004. package/dist/messages-BhOtow9J2.mjs +0 -212
  1005. package/dist/messages-BoB7m0uu2.mjs +0 -212
  1006. package/dist/messages-BsOZPjeg.mjs +0 -212
  1007. package/dist/messages-BuzKUYPV.mjs +0 -212
  1008. package/dist/messages-BzOKMdMQ.mjs +0 -212
  1009. package/dist/messages-C2H3PeQW2.mjs +0 -212
  1010. package/dist/messages-C5KNzSTk.mjs +0 -212
  1011. package/dist/messages-CIDYjE6l.mjs +0 -212
  1012. package/dist/messages-CJmyF5ye.mjs +0 -212
  1013. package/dist/messages-CTwiYb2a2.mjs +0 -212
  1014. package/dist/messages-CUHoJaDO.mjs +0 -212
  1015. package/dist/messages-CVeuqUjQ2.mjs +0 -212
  1016. package/dist/messages-CW75b4sz.mjs +0 -212
  1017. package/dist/messages-CXd7YeWV.mjs +0 -212
  1018. package/dist/messages-CjlYkunD.mjs +0 -212
  1019. package/dist/messages-CrGx64yd.mjs +0 -212
  1020. package/dist/messages-Ct0jbgHd.mjs +0 -212
  1021. package/dist/messages-CtKrCYD1.mjs +0 -212
  1022. package/dist/messages-Cu2eLjfJ.mjs +0 -212
  1023. package/dist/messages-CvwQ-fK_2.mjs +0 -212
  1024. package/dist/messages-Cy6UYN9b.mjs +0 -212
  1025. package/dist/messages-D01vnfA9.mjs +0 -212
  1026. package/dist/messages-D0BAV45W.mjs +0 -212
  1027. package/dist/messages-D5LGpdga.mjs +0 -212
  1028. package/dist/messages-DATK4ftv.mjs +0 -212
  1029. package/dist/messages-DEl77Urv2.mjs +0 -212
  1030. package/dist/messages-DHNjM2nv2.mjs +0 -212
  1031. package/dist/messages-DMW8b_sO.mjs +0 -212
  1032. package/dist/messages-DNmgANKr.mjs +0 -212
  1033. package/dist/messages-DQaa3cEM.mjs +0 -212
  1034. package/dist/messages-DSlD4bV9.mjs +0 -212
  1035. package/dist/messages-DTzbkXFt.mjs +0 -212
  1036. package/dist/messages-DbZihxtV.mjs +0 -212
  1037. package/dist/messages-DeE8fyKQ.mjs +0 -212
  1038. package/dist/messages-Dg-TpO2S2.mjs +0 -212
  1039. package/dist/messages-DgP82LzF.mjs +0 -212
  1040. package/dist/messages-Dh3Vt7WC.mjs +0 -212
  1041. package/dist/messages-DiVVyZD22.mjs +0 -212
  1042. package/dist/messages-DpRnGjoe.mjs +0 -212
  1043. package/dist/messages-DqZmrFaa2.mjs +0 -212
  1044. package/dist/messages-Dra9Fz5Q.mjs +0 -212
  1045. package/dist/messages-DuPBRgEF2.mjs +0 -212
  1046. package/dist/messages-DuxEyAY-2.mjs +0 -212
  1047. package/dist/messages-FmJD6lHR2.mjs +0 -212
  1048. package/dist/messages-ONielGl92.mjs +0 -212
  1049. package/dist/messages-RzgUqCGb2.mjs +0 -212
  1050. package/dist/messages-U22AKGKs.mjs +0 -212
  1051. package/dist/messages-XufeeRfO.mjs +0 -212
  1052. package/dist/messages-fprUm7SO2.mjs +0 -212
  1053. package/dist/messages-gFNdz3Tn2.mjs +0 -212
  1054. package/dist/messages-h_n5GBm6.mjs +0 -212
  1055. package/dist/messages-oOogIpsL2.mjs +0 -212
  1056. package/dist/messages-otwg3KcK.mjs +0 -212
  1057. package/dist/messages-rDDoBMWb.mjs +0 -212
  1058. package/dist/messages-trQPxZIu.mjs +0 -212
  1059. package/src/tools/code/highlight-applier.ts +0 -229
  1060. package/src/tools/code/shiki-loader.ts +0 -135
  1061. /package/dist/chunks/{am-CyXvGFRE.cjs → am-CGgVs8Sg.cjs} +0 -0
  1062. /package/dist/chunks/{am-JTszxMum.mjs → am-TVbhxPdQ.mjs} +0 -0
  1063. /package/dist/chunks/{ar-CME8m7Ug.mjs → ar-ClSvzRAM.mjs} +0 -0
  1064. /package/dist/chunks/{ar-BbusVfTp.cjs → ar-nFMIw80i.cjs} +0 -0
  1065. /package/dist/chunks/{array-BMXfsgb2.cjs → array-B193TMZz.cjs} +0 -0
  1066. /package/dist/chunks/{array-B4E6ednJ.mjs → array-ChMzkF5S.mjs} +0 -0
  1067. /package/dist/chunks/{az-D7MMnw6r.cjs → az-Cb6l6ydx.cjs} +0 -0
  1068. /package/dist/chunks/{az-CU1BXEnK.mjs → az-Df0rChHp.mjs} +0 -0
  1069. /package/dist/chunks/{bg-C3H2Qh_2.cjs → bg-BdZUTRFn.cjs} +0 -0
  1070. /package/dist/chunks/{bg-C1QKbOOv.mjs → bg-DLJ0oZ8E.mjs} +0 -0
  1071. /package/dist/chunks/{bn-BGOycYTM.cjs → bn-CneGelWq.cjs} +0 -0
  1072. /package/dist/chunks/{bn-DbDE4DPn.mjs → bn-rM6ek4mO.mjs} +0 -0
  1073. /package/dist/chunks/{bs-5jPxlF97.mjs → bs-16ZwjsQl.mjs} +0 -0
  1074. /package/dist/chunks/{bs-C7amuK1D.cjs → bs-XAmTKQeJ.cjs} +0 -0
  1075. /package/dist/chunks/{cs-BEZB2qcc.mjs → cs-C-zvdtZ-.mjs} +0 -0
  1076. /package/dist/chunks/{cs-BUD3Muxp.cjs → cs-DKYguxBC.cjs} +0 -0
  1077. /package/dist/chunks/{cytoscape.esm-CWkCAUzT.mjs → cytoscape.esm-BsvVxiuI.mjs} +0 -0
  1078. /package/dist/chunks/{cytoscape.esm-CjWrb5SM.cjs → cytoscape.esm-gv01QJ5y.cjs} +0 -0
  1079. /package/dist/chunks/{da-DXZ2uOgL.mjs → da-D1HzIKpF.mjs} +0 -0
  1080. /package/dist/chunks/{da-CO2FYbLa.cjs → da-DiLbdYqu.cjs} +0 -0
  1081. /package/dist/chunks/{de-B8nkOjfD.cjs → de-ClyUjm_W.cjs} +0 -0
  1082. /package/dist/chunks/{de-D4FxC1Yq.mjs → de-Dpmwqjaw.mjs} +0 -0
  1083. /package/dist/chunks/{default-DPWNu2LM.mjs → default-D5Eal3bU.mjs} +0 -0
  1084. /package/dist/chunks/{default-DP8dtTxC.cjs → default-D9azvkQ_.cjs} +0 -0
  1085. /package/dist/chunks/{defaultLocale-BxWls4I1.cjs → defaultLocale-CSsowJXG.cjs} +0 -0
  1086. /package/dist/chunks/{defaultLocale-BYV2aVaI.mjs → defaultLocale-DiiR34KB.mjs} +0 -0
  1087. /package/dist/chunks/{dist-CKM-fjTE.mjs → dist-BFuUZzlT.mjs} +0 -0
  1088. /package/dist/chunks/{dist-CxdzFxpy.cjs → dist-DS4hv48u.cjs} +0 -0
  1089. /package/dist/chunks/{el-D2ILhp1-.cjs → el-CFVhJTIb.cjs} +0 -0
  1090. /package/dist/chunks/{el-DwIVDdku.mjs → el-DQ-dU1wp.mjs} +0 -0
  1091. /package/dist/chunks/{es-DXxnOS9P.cjs → es-BlajxX2r.cjs} +0 -0
  1092. /package/dist/chunks/{es-DlO4MePt.mjs → es-Dhzgzei6.mjs} +0 -0
  1093. /package/dist/chunks/{et-BBSbb8pL.mjs → et-CnhEwclb.mjs} +0 -0
  1094. /package/dist/chunks/{et-mT4xnDc7.cjs → et-ggACA1d9.cjs} +0 -0
  1095. /package/dist/chunks/{fa-DsJou-pw.mjs → fa-B4zSY96K.mjs} +0 -0
  1096. /package/dist/chunks/{fa-D9CUFSHX.cjs → fa-DuYd0CQw.cjs} +0 -0
  1097. /package/dist/chunks/{fi-CsMgo7Wk.mjs → fi-B525ro09.mjs} +0 -0
  1098. /package/dist/chunks/{fi-DpCqdl_1.cjs → fi-D3-4SL4-.cjs} +0 -0
  1099. /package/dist/chunks/{fil-BjeZREJI.cjs → fil-Cs84dmNe.cjs} +0 -0
  1100. /package/dist/chunks/{fil-Dlw8sEta.mjs → fil-DPB6Byn0.mjs} +0 -0
  1101. /package/dist/chunks/{fr-DYmwW1y1.cjs → fr-C8Z2PE7u.cjs} +0 -0
  1102. /package/dist/chunks/{fr-DeapG5NH.mjs → fr-CbMgtPHe.mjs} +0 -0
  1103. /package/dist/chunks/{gu-klAnA_ns.mjs → gu-BDs1p7Uo.mjs} +0 -0
  1104. /package/dist/chunks/{gu-4g6NA9h8.cjs → gu-CPQY3Iyq.cjs} +0 -0
  1105. /package/dist/chunks/{he-2H5DcbO0.cjs → he-BkMGwSM7.cjs} +0 -0
  1106. /package/dist/chunks/{he-9TdyXc1J.mjs → he-DWa_-C46.mjs} +0 -0
  1107. /package/dist/chunks/{hi-DVOss_Zp.mjs → hi-Buu8Rua9.mjs} +0 -0
  1108. /package/dist/chunks/{hi-Dvb4O5oj.cjs → hi-ClQSrRZz.cjs} +0 -0
  1109. /package/dist/chunks/{hr-CXo-QFLf.mjs → hr-WosECnFF.mjs} +0 -0
  1110. /package/dist/chunks/{hr-B4Y5vULZ.cjs → hr-wrh48ogh.cjs} +0 -0
  1111. /package/dist/chunks/{hu-D3Pi7CJx.cjs → hu-BSVMkfs2.cjs} +0 -0
  1112. /package/dist/chunks/{hu-B6uKq-NU.mjs → hu-CeBjtxCd.mjs} +0 -0
  1113. /package/dist/chunks/{hy-DZ74SDlC.cjs → hy-CwF59lJj.cjs} +0 -0
  1114. /package/dist/chunks/{hy-B7CWqbUW.mjs → hy-DwfBE3Yt.mjs} +0 -0
  1115. /package/dist/chunks/{i18next-CkovSPO7.cjs → i18next-C14J6E5L.cjs} +0 -0
  1116. /package/dist/chunks/{i18next-BFvS_Rnh.mjs → i18next-DjO-l2Ee.mjs} +0 -0
  1117. /package/dist/chunks/{id-C5d2QGEQ.mjs → id-CBV5ivYd.mjs} +0 -0
  1118. /package/dist/chunks/{id-WfjZeYKN.cjs → id-DN2KcAmG.cjs} +0 -0
  1119. /package/dist/chunks/{init-C3Dyaaly.mjs → init-C2Iht9jH.mjs} +0 -0
  1120. /package/dist/chunks/{init-BvlcnoG2.cjs → init-DMaknHdL.cjs} +0 -0
  1121. /package/dist/chunks/{isArrayLikeObject-CnaR8YJm.cjs → isArrayLikeObject-Bk7ImDHR.cjs} +0 -0
  1122. /package/dist/chunks/{isArrayLikeObject-B-1mfvNK.mjs → isArrayLikeObject-CyB7POJY.mjs} +0 -0
  1123. /package/dist/chunks/{it-hqsqt6f7.cjs → it-CSt1S7SQ.cjs} +0 -0
  1124. /package/dist/chunks/{it-BgPXC2_F.mjs → it-CU5gg8BZ.mjs} +0 -0
  1125. /package/dist/chunks/{ja-BwLgKsdH.cjs → ja-BbwATm6F.cjs} +0 -0
  1126. /package/dist/chunks/{ja-CQ7ujOz3.mjs → ja-khPKQhMG.mjs} +0 -0
  1127. /package/dist/chunks/{ka-xoKako16.cjs → ka-Cqnq4zZT.cjs} +0 -0
  1128. /package/dist/chunks/{ka-DAPmSm_-.mjs → ka-DN17rDOq.mjs} +0 -0
  1129. /package/dist/chunks/{katex-_C7fvrbX.cjs → katex-D_RH6O9V.cjs} +0 -0
  1130. /package/dist/chunks/{katex-Bbz34ZLq.mjs → katex-thO7aa9b.mjs} +0 -0
  1131. /package/dist/chunks/{km-BJ9H-RbD.mjs → km-BbS9HEwx.mjs} +0 -0
  1132. /package/dist/chunks/{km-D7Fl8wAA.cjs → km-COh3mhzp.cjs} +0 -0
  1133. /package/dist/chunks/{kn-CthdB8vH.mjs → kn-7TPoJJQt.mjs} +0 -0
  1134. /package/dist/chunks/{kn-Ckju1oeq.cjs → kn-CX062fVg.cjs} +0 -0
  1135. /package/dist/chunks/{ko-DbEA41LU.mjs → ko-CDI2MnWL.mjs} +0 -0
  1136. /package/dist/chunks/{ko-Dt1tQEjC.cjs → ko-gSw_U9kC.cjs} +0 -0
  1137. /package/dist/chunks/{ku-B_j9qSrv.mjs → ku-DONc_aap.mjs} +0 -0
  1138. /package/dist/chunks/{ku-_i2C5XD5.cjs → ku-DnvmAkID.cjs} +0 -0
  1139. /package/dist/chunks/{lo-DfEpgG9m.cjs → lo-BrwlEjmE.cjs} +0 -0
  1140. /package/dist/chunks/{lo-DSklR1Zs.mjs → lo-PtNU87QX.mjs} +0 -0
  1141. /package/dist/chunks/{lt-BwLILIED.cjs → lt-Bw969G31.cjs} +0 -0
  1142. /package/dist/chunks/{lt-C9aVbfRt.mjs → lt-CV9PgETS.mjs} +0 -0
  1143. /package/dist/chunks/{lv-DLwMSEc0.mjs → lv-CFPT5CoC.mjs} +0 -0
  1144. /package/dist/chunks/{lv-DdrYab3x.cjs → lv-DhwZOfiA.cjs} +0 -0
  1145. /package/dist/chunks/{micromark-factory-space-BnsBDplI.cjs → micromark-factory-space-CsUhZvC1.cjs} +0 -0
  1146. /package/dist/chunks/{micromark-factory-space-C6wz33de.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
  1147. /package/dist/chunks/{mk-D96bSjMK.mjs → mk-5waYEn6e.mjs} +0 -0
  1148. /package/dist/chunks/{mk-CsPHE4cO.cjs → mk-vuwbN_RA.cjs} +0 -0
  1149. /package/dist/chunks/{ml-CAsiw8BP.cjs → ml-DQZZm6v3.cjs} +0 -0
  1150. /package/dist/chunks/{ml-D1Ek94RG.mjs → ml-iK4LpGaW.mjs} +0 -0
  1151. /package/dist/chunks/{mn-Db6DwHPv.cjs → mn-Dz3r2r3T.cjs} +0 -0
  1152. /package/dist/chunks/{mn-CyNCFOYP.mjs → mn-nfQCBqsj.mjs} +0 -0
  1153. /package/dist/chunks/{mr-CaA3xXVf.mjs → mr-8ddBHqrW.mjs} +0 -0
  1154. /package/dist/chunks/{mr-BBAuoEIQ.cjs → mr-BDjve7Md.cjs} +0 -0
  1155. /package/dist/chunks/{ms-Cfv7BOEG.cjs → ms-2boGmWFn.cjs} +0 -0
  1156. /package/dist/chunks/{ms-IZU-A3Qk.mjs → ms-BRxHmUVO.mjs} +0 -0
  1157. /package/dist/chunks/{my-C-AQLGIp.mjs → my-Bq-MP3br.mjs} +0 -0
  1158. /package/dist/chunks/{my-DOLHceI8.cjs → my-BtRZdE5q.cjs} +0 -0
  1159. /package/dist/chunks/{native-DbFHGXp1.cjs → native-Bok_u8yD.cjs} +0 -0
  1160. /package/dist/chunks/{native-CarRLbbJ.mjs → native-DIGOFhyn.mjs} +0 -0
  1161. /package/dist/chunks/{ne-LaymXAjm.mjs → ne-B6JfM08W.mjs} +0 -0
  1162. /package/dist/chunks/{ne-B2gHspK_.cjs → ne-C9oc_I3v.cjs} +0 -0
  1163. /package/dist/chunks/{nl-C5ezxTkA.cjs → nl-CkIGPyM6.cjs} +0 -0
  1164. /package/dist/chunks/{nl-Dm1eVwTA.mjs → nl-NuO8CW66.mjs} +0 -0
  1165. /package/dist/chunks/{no-B2WicGhz.mjs → no-BtwrqS-b.mjs} +0 -0
  1166. /package/dist/chunks/{no-D4hjenPs.cjs → no-De7tM2WX.cjs} +0 -0
  1167. /package/dist/chunks/{pa-CemLebw7.cjs → pa-Bm15OLTz.cjs} +0 -0
  1168. /package/dist/chunks/{pa-ry61xHq9.mjs → pa-ClSxjHFF.mjs} +0 -0
  1169. /package/dist/chunks/{path-CLcQoP7n.cjs → path-CFQyJ4S5.cjs} +0 -0
  1170. /package/dist/chunks/{path-Crax6eds.mjs → path-iPyWZTLQ.mjs} +0 -0
  1171. /package/dist/chunks/{pl-DzCnx7eR.mjs → pl-C-aTCeRd.mjs} +0 -0
  1172. /package/dist/chunks/{pl-D_sFAkCs.cjs → pl-D80QrSlq.cjs} +0 -0
  1173. /package/dist/chunks/{ps-DKXG6JHY.mjs → ps-B8wPRrcC.mjs} +0 -0
  1174. /package/dist/chunks/{ps-ygHHO68A.cjs → ps-ySfeV5NE.cjs} +0 -0
  1175. /package/dist/chunks/{pt-e09B0rEd.mjs → pt-8tijWt3B.mjs} +0 -0
  1176. /package/dist/chunks/{pt-x_mmaTtD.cjs → pt-Bigoi5oj.cjs} +0 -0
  1177. /package/dist/chunks/{ro-HNnYR5pB.mjs → ro-BiUSkkwp.mjs} +0 -0
  1178. /package/dist/chunks/{ro-CLGSgHzJ.cjs → ro-Dvtjmd-W.cjs} +0 -0
  1179. /package/dist/chunks/{rough.esm-BaIXPgTh.cjs → rough.esm-DC-UFdM0.cjs} +0 -0
  1180. /package/dist/chunks/{rough.esm-CChKUjNP.mjs → rough.esm-buj-m5wB.mjs} +0 -0
  1181. /package/dist/chunks/{ru-LpaLXWmO.cjs → ru-dq73Ra3e.cjs} +0 -0
  1182. /package/dist/chunks/{ru-D_jTWgK8.mjs → ru-qkCthz2J.mjs} +0 -0
  1183. /package/dist/chunks/{sd-B5PS8K1I.cjs → sd-BhtQCaFq.cjs} +0 -0
  1184. /package/dist/chunks/{sd-B7bgXBin.mjs → sd-DfoXSEBK.mjs} +0 -0
  1185. /package/dist/chunks/{si-BjMoO5xu.cjs → si-CWG8h4tD.cjs} +0 -0
  1186. /package/dist/chunks/{si-aQCsTBIp.mjs → si-RPCp-GrG.mjs} +0 -0
  1187. /package/dist/chunks/{sk-pQPYnDDU.cjs → sk-Bkag9oKD.cjs} +0 -0
  1188. /package/dist/chunks/{sk-Bjrct9rr.mjs → sk-CVRHQjYN.mjs} +0 -0
  1189. /package/dist/chunks/{sl-B_yalM3h.cjs → sl-BhupPCcO.cjs} +0 -0
  1190. /package/dist/chunks/{sl-DvS57kCB.mjs → sl-Clf3YXji.mjs} +0 -0
  1191. /package/dist/chunks/{sq-gzZkHXFJ.cjs → sq-Bosym4Xb.cjs} +0 -0
  1192. /package/dist/chunks/{sq-BexoWiW2.mjs → sq-C-nwTgWs.mjs} +0 -0
  1193. /package/dist/chunks/{sr-CXir4bLq.mjs → sr-BiElo1CU.mjs} +0 -0
  1194. /package/dist/chunks/{sr-O4v1KJY1.cjs → sr-DFPGZJ0s.cjs} +0 -0
  1195. /package/dist/chunks/{src-d9yswOqA.cjs → src-al3Kn9PA.cjs} +0 -0
  1196. /package/dist/chunks/{src-yreeH1hr.mjs → src-gZQLeVvM.mjs} +0 -0
  1197. /package/dist/chunks/{sv-D0tEFwN7.cjs → sv-CiYmSxqX.cjs} +0 -0
  1198. /package/dist/chunks/{sv-B_Owhjrs.mjs → sv-DVztafBI.mjs} +0 -0
  1199. /package/dist/chunks/{sw-DE8oPVEt.cjs → sw-CMbHoINv.cjs} +0 -0
  1200. /package/dist/chunks/{sw-B4p84FCO.mjs → sw-CgJk20G2.mjs} +0 -0
  1201. /package/dist/chunks/{ta-BCVLtFMU.cjs → ta-BrC1o95Z.cjs} +0 -0
  1202. /package/dist/chunks/{ta-BU_-jQ33.mjs → ta-rqChn3y2.mjs} +0 -0
  1203. /package/dist/chunks/{te-BISdOeGS.cjs → te-DAKpWpi8.cjs} +0 -0
  1204. /package/dist/chunks/{te-5FGke4TK.mjs → te-LIsqeDyD.mjs} +0 -0
  1205. /package/dist/chunks/{th-DFyekAQ3.mjs → th-Bm6lDr_S.mjs} +0 -0
  1206. /package/dist/chunks/{th-CJXhSA-L.cjs → th-D0CG2M2k.cjs} +0 -0
  1207. /package/dist/chunks/{tr-BjTvmhJt.cjs → tr-Bw_nVU1b.cjs} +0 -0
  1208. /package/dist/chunks/{tr-C7Zj3lX4.mjs → tr-g8oLvvcP.mjs} +0 -0
  1209. /package/dist/chunks/{types-BNvlbr9u.mjs → types-DrdCPGbk.mjs} +0 -0
  1210. /package/dist/chunks/{types-BQX8SD8Q.cjs → types-GPfn5gE2.cjs} +0 -0
  1211. /package/dist/chunks/{ug-DsQjxbOa.cjs → ug-DvC-UnxD.cjs} +0 -0
  1212. /package/dist/chunks/{ug-DJwD0iui.mjs → ug-zVaKVoWE.mjs} +0 -0
  1213. /package/dist/chunks/{uk-BPzbNIjw.cjs → uk-Cx32rUi7.cjs} +0 -0
  1214. /package/dist/chunks/{uk-hkOj8kWN.mjs → uk-DGVBUwum.mjs} +0 -0
  1215. /package/dist/chunks/{ur-Cy5A8nFG.mjs → ur-7wbChoVl.mjs} +0 -0
  1216. /package/dist/chunks/{ur-Do8k1hR-.cjs → ur-BMh2seDu.cjs} +0 -0
  1217. /package/dist/chunks/{vi-CCTEx9XR.cjs → vi-4TUS0GSi.cjs} +0 -0
  1218. /package/dist/chunks/{vi-CEt0cTzQ.mjs → vi-CLg1e4-a.mjs} +0 -0
  1219. /package/dist/chunks/{zh-Ive4on8E.cjs → zh-DZtmJNDR.cjs} +0 -0
  1220. /package/dist/chunks/{zh-BwQjLCGO.mjs → zh-LvpOPMNT.mjs} +0 -0
@@ -1,4501 +0,0 @@
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-Dci1-l7D.mjs";
4
- import { t as i } from "./ccount-B7is2MU0.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 };