@yaoshu-ai/ai-chat 1.5.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 (433) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +448 -0
  3. package/dist/1.png +0 -0
  4. package/dist/2.png +0 -0
  5. package/dist/RenderContent-Dlqka7tn.js +33786 -0
  6. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +5 -0
  7. package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +5 -0
  8. package/dist/_arrayEach-CWzCztxB.js +44 -0
  9. package/dist/abap-Y8Dl9g_6.js +6 -0
  10. package/dist/actionscript-3-DQVEcJUW.js +6 -0
  11. package/dist/ada-vP6ak0IW.js +6 -0
  12. package/dist/ai-chat.css +1 -0
  13. package/dist/andromeeda-BbmzSJq1.js +4 -0
  14. package/dist/angular-html-DPB4Rf0C.js +32 -0
  15. package/dist/angular-ts-CTOR2ofC.js +21 -0
  16. package/dist/apache-BUjz-sD2.js +6 -0
  17. package/dist/apex-OyTfjCYK.js +6 -0
  18. package/dist/apl-CjNiDgad.js +16 -0
  19. package/dist/applescript-BPx7YFFu.js +6 -0
  20. package/dist/ara-Z2fSOxSw.js +6 -0
  21. package/dist/arc-B1p3jPmf.js +83 -0
  22. package/dist/architecture-U656AL7Q-BbBZWZnv.js +5 -0
  23. package/dist/architectureDiagram-VXUJARFQ-o3qI6Hfe.js +4662 -0
  24. package/dist/asciidoc-C1T9ziH6.js +6 -0
  25. package/dist/asm-BTWLY5ym.js +6 -0
  26. package/dist/assets/_basePickBy-Cpv34cvw.js +151 -0
  27. package/dist/assets/_baseUniq-DcdXmdC4.js +614 -0
  28. package/dist/assets/arc-B0v8Xerj.js +83 -0
  29. package/dist/assets/architectureDiagram-VXUJARFQ-CuYvJnXX.js +4662 -0
  30. package/dist/assets/blockDiagram-VD42YOAC-BxZitMjG.js +2262 -0
  31. package/dist/assets/c4Diagram-YG6GDRKO-ZsN99P-D.js +1580 -0
  32. package/dist/assets/channel-d_ygJPeO.js +5 -0
  33. package/dist/assets/chunk-4BX2VUAB-96IoYLlF.js +8 -0
  34. package/dist/assets/chunk-55IACEB6-gENcR4HP.js +8 -0
  35. package/dist/assets/chunk-B4BG7PRW-BOypo6sC.js +1375 -0
  36. package/dist/assets/chunk-DI55MBZ5-DHEKLVmM.js +1370 -0
  37. package/dist/assets/chunk-FMBD7UC4-CZ-mW5Zk.js +19 -0
  38. package/dist/assets/chunk-QN33PNHL-BeoL9V94.js +19 -0
  39. package/dist/assets/chunk-QZHKN3VN-DedBAq5I.js +15 -0
  40. package/dist/assets/chunk-TZMSLE5B-Bg9wRIeU.js +64 -0
  41. package/dist/assets/classDiagram-2ON5EDUG-OqXlgyvI.js +19 -0
  42. package/dist/assets/classDiagram-v2-WZHVMYZB-OqXlgyvI.js +19 -0
  43. package/dist/assets/clone-D3-moMc7.js +8 -0
  44. package/dist/assets/cose-bilkent-S5V4N54A-CrU20ri2.js +2607 -0
  45. package/dist/assets/cytoscape.esm-DfdJODL8.js +18735 -0
  46. package/dist/assets/dagre-6UL2VRFP-BMNAUhAh.js +444 -0
  47. package/dist/assets/defaultLocale-57BWB7pV.js +171 -0
  48. package/dist/assets/diagram-PSM6KHXK-DDXdcx9h.js +535 -0
  49. package/dist/assets/diagram-QEK2KX5R-DaOkv31-.js +220 -0
  50. package/dist/assets/diagram-S2PKOQOG-Kk0nHneV.js +145 -0
  51. package/dist/assets/erDiagram-Q2GNP2WA-DVKOxqjl.js +841 -0
  52. package/dist/assets/flowDiagram-NV44I4VS-BoWYkdqy.js +1620 -0
  53. package/dist/assets/ganttDiagram-LVOFAZNH-Dvgzms7S.js +2500 -0
  54. package/dist/assets/gitGraphDiagram-NY62KEGX-Bna3uwG8.js +702 -0
  55. package/dist/assets/graph-BLzmbjIy.js +247 -0
  56. package/dist/assets/infoDiagram-ER5ION4S-Did3mqZL.js +27 -0
  57. package/dist/assets/init-DjUOC4st.js +16 -0
  58. package/dist/assets/journeyDiagram-XKPGCS4Q-C3BPCBal.js +834 -0
  59. package/dist/assets/kanban-definition-3W4ZIXB7-Cf5SUn-1.js +719 -0
  60. package/dist/assets/katex-SsTUIUTC.js +11688 -0
  61. package/dist/assets/layout-B00gooay.js +1335 -0
  62. package/dist/assets/linear-DVxTWzAi.js +259 -0
  63. package/dist/assets/mindmap-definition-VGOIOE7T-Q-_IrD51.js +785 -0
  64. package/dist/assets/ordinal-DfAQgscy.js +61 -0
  65. package/dist/assets/pieDiagram-ADFJNKIX-LygDPC1s.js +165 -0
  66. package/dist/assets/quadrantDiagram-AYHSOK5B-77SStCdg.js +1024 -0
  67. package/dist/assets/requirementDiagram-UZGBJVZJ-CMlgwZi9.js +850 -0
  68. package/dist/assets/sankeyDiagram-TZEHDZUN-DnlAgtvb.js +811 -0
  69. package/dist/assets/sequenceDiagram-WL72ISMW-Cf4BDgIS.js +2511 -0
  70. package/dist/assets/stateDiagram-FKZM4ZOC-CBGqngi4.js +267 -0
  71. package/dist/assets/stateDiagram-v2-4FDKWEC3-BZTJjZnO.js +18 -0
  72. package/dist/assets/timeline-definition-IT6M3QCI-DVwyHSfZ.js +795 -0
  73. package/dist/assets/treemap-KMMF4GRG-Bx903ckh.js +12994 -0
  74. package/dist/assets/xychartDiagram-PRI3JC2R-pvSCMiXN.js +1341 -0
  75. package/dist/astro-CFFExE8Q.js +18 -0
  76. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  77. package/dist/awk-Fb0P9dkn.js +6 -0
  78. package/dist/ayu-dark-DJoqd4M9.js +4 -0
  79. package/dist/ayu-light-BzXEJRJ-.js +4 -0
  80. package/dist/ayu-mirage-BJ2oZGzi.js +4 -0
  81. package/dist/ballerina-oZK-YekG.js +6 -0
  82. package/dist/bat-0FvbqU9S.js +6 -0
  83. package/dist/beancount-DqJEb89h.js +6 -0
  84. package/dist/berry-DODBq_Ff.js +6 -0
  85. package/dist/bibtex-EULQRLY5.js +6 -0
  86. package/dist/bicep-BorU73w0.js +6 -0
  87. package/dist/bird2-CraR6qSn.js +6 -0
  88. package/dist/blade-D0HyNvCw.js +20 -0
  89. package/dist/blockDiagram-VD42YOAC-DahK-Cj4.js +2364 -0
  90. package/dist/bsl-NkNNwerW.js +8 -0
  91. package/dist/c-eeMepfLm.js +6 -0
  92. package/dist/c3-BY5XW5ym.js +6 -0
  93. package/dist/c4Diagram-YG6GDRKO-DEyHjCYx.js +1580 -0
  94. package/dist/cadence-02UX7mW8.js +6 -0
  95. package/dist/cairo-DM6WF2e3.js +8 -0
  96. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  97. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  98. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  99. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  100. package/dist/channel-3keaKHdb.js +5 -0
  101. package/dist/chunk-4BX2VUAB-DAiVtoK8.js +8 -0
  102. package/dist/chunk-55IACEB6-CaBF4LGk.js +8 -0
  103. package/dist/chunk-B4BG7PRW-BRwDg4Nv.js +1375 -0
  104. package/dist/chunk-DI55MBZ5-DSCddmFg.js +1370 -0
  105. package/dist/chunk-FMBD7UC4-DeD5V5dF.js +19 -0
  106. package/dist/chunk-QN33PNHL-DtsdNsBa.js +19 -0
  107. package/dist/chunk-QZHKN3VN-BjOYbdQP.js +15 -0
  108. package/dist/chunk-TZMSLE5B-BwhJBSuO.js +64 -0
  109. package/dist/clarity-PKm5CwqM.js +6 -0
  110. package/dist/classDiagram-2ON5EDUG-C0IaF0ZL.js +16 -0
  111. package/dist/classDiagram-v2-WZHVMYZB-C0IaF0ZL.js +16 -0
  112. package/dist/clojure-CXJfHrL3.js +6 -0
  113. package/dist/cmake-BJz8BOTU.js +6 -0
  114. package/dist/cobol-DBolczTz.js +10 -0
  115. package/dist/codeowners-Bt9yU6NX.js +6 -0
  116. package/dist/codeql-DHkodjjI.js +6 -0
  117. package/dist/coffee-DGBR_nr_.js +8 -0
  118. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  119. package/dist/coq-B0L9upzn.js +6 -0
  120. package/dist/cose-bilkent-S5V4N54A-CRxUs4km.js +2609 -0
  121. package/dist/cpp-Cj177cuW.js +18 -0
  122. package/dist/crystal-CRJyc4G-.js +18 -0
  123. package/dist/csharp-CCgA4A09.js +6 -0
  124. package/dist/css-CECN5uSL.js +6 -0
  125. package/dist/csv-CmYOceLb.js +6 -0
  126. package/dist/cue-ZzumE7IT.js +6 -0
  127. package/dist/cypher-jpdmjtA6.js +6 -0
  128. package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
  129. package/dist/d-CBagWSwH.js +6 -0
  130. package/dist/d2_markstream-vue_false-BfRvcluz.js +5 -0
  131. package/dist/dagre-6UL2VRFP-dTDl1Tgv.js +442 -0
  132. package/dist/dark-plus-pUHDTVV0.js +4 -0
  133. package/dist/dart-6ObCrKr9.js +6 -0
  134. package/dist/dax-CcDT-8dH.js +6 -0
  135. package/dist/defaultLocale-D7EN2tov.js +171 -0
  136. package/dist/desktop-B93p9R9O.js +6 -0
  137. package/dist/diagram-PSM6KHXK-Dh-BBqVQ.js +531 -0
  138. package/dist/diagram-QEK2KX5R-CPqYwhdb.js +217 -0
  139. package/dist/diagram-S2PKOQOG-CapIa3n7.js +142 -0
  140. package/dist/diff-BxzP2J8R.js +6 -0
  141. package/dist/docker-CsHqm9tx.js +6 -0
  142. package/dist/dotenv-BMjVjUL1.js +6 -0
  143. package/dist/dracula-BtZx2Kac.js +4 -0
  144. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  145. package/dist/dream-maker-PAx17jaB.js +6 -0
  146. package/dist/echarts-gl.min.js +1 -0
  147. package/dist/echarts.min.js +46 -0
  148. package/dist/edge-BYQkOzbF.js +12 -0
  149. package/dist/elixir-Dh036GMp.js +8 -0
  150. package/dist/elm-BtNbw_Cd.js +8 -0
  151. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  152. package/dist/erDiagram-Q2GNP2WA-B8d80SOq.js +841 -0
  153. package/dist/erb-ScVOXVpH.js +10 -0
  154. package/dist/erlang-DNcDT8Hi.js +8 -0
  155. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  156. package/dist/everforest-light-BbXl82Em.js +4 -0
  157. package/dist/favicon.svg +1 -0
  158. package/dist/fennel-N4WcXuKx.js +6 -0
  159. package/dist/fish-BTDEUgqH.js +6 -0
  160. package/dist/flowDiagram-NV44I4VS-Wtd6x8Dz.js +1620 -0
  161. package/dist/fluent-BMXUxfv1.js +6 -0
  162. package/dist/fortran-fixed-form-B67KFkXH.js +8 -0
  163. package/dist/fortran-free-form-CwqYvCLJ.js +6 -0
  164. package/dist/fsharp-CYOiIVNx.js +8 -0
  165. package/dist/ganttDiagram-LVOFAZNH-PIGXq8YG.js +2506 -0
  166. package/dist/gdresource-CvCIUjhi.js +10 -0
  167. package/dist/gdscript-DSAxJ_aS.js +6 -0
  168. package/dist/gdshader-Bk8fF6yr.js +6 -0
  169. package/dist/genie-DzUvd7U9.js +6 -0
  170. package/dist/geo.json +1 -0
  171. package/dist/gherkin-DHRaV0YP.js +6 -0
  172. package/dist/git-commit-Bd32YZ0K.js +8 -0
  173. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  174. package/dist/gitGraph-F6HP7TQM-CIGXYS91.js +5 -0
  175. package/dist/gitGraphDiagram-NY62KEGX-BDnzMpYT.js +699 -0
  176. package/dist/github-dark-DenFmJkN.js +4 -0
  177. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  178. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  179. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  180. package/dist/github-light-JYsPkUQd.js +4 -0
  181. package/dist/github-light-default-D99KPAby.js +4 -0
  182. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  183. package/dist/gleam-Bv284lvN.js +6 -0
  184. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  185. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  186. package/dist/glsl-CkUcVZNK.js +8 -0
  187. package/dist/gn-XtJxiLa4.js +6 -0
  188. package/dist/gnuplot-yPG9-sE_.js +6 -0
  189. package/dist/go-CvFNMTvu.js +6 -0
  190. package/dist/graph-BJDrjORS.js +244 -0
  191. package/dist/graphql-CBu2ehBn.js +14 -0
  192. package/dist/groovy-CJQTphOW.js +6 -0
  193. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  194. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  195. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  196. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  197. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  198. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  199. package/dist/hack-ItRNKiEb.js +10 -0
  200. package/dist/haml-NZLVzu_R.js +10 -0
  201. package/dist/handlebars-mxStpSE7.js +14 -0
  202. package/dist/haskell-WeIwNIP6.js +6 -0
  203. package/dist/haxe-TztHsm5T.js +6 -0
  204. package/dist/hcl-D438OF-I.js +6 -0
  205. package/dist/hjson-DYBUbqOl.js +6 -0
  206. package/dist/hlsl-Bk8TCZNL.js +6 -0
  207. package/dist/horizon-CJQ10nlf.js +4 -0
  208. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  209. package/dist/houston-BDYrDoDW.js +4 -0
  210. package/dist/html-B50bmoVb.js +10 -0
  211. package/dist/html-derivative-C6bxFbFW.js +8 -0
  212. package/dist/http-DLvAkeD-.js +14 -0
  213. package/dist/hurl-CgkFN90t.js +12 -0
  214. package/dist/hxml-GbqSQCLa.js +8 -0
  215. package/dist/hy-Brt5EZ7-.js +6 -0
  216. package/dist/imba-CimUv-Uh.js +6 -0
  217. package/dist/index-C8Q6O4II.js +513 -0
  218. package/dist/index-DAiOgSvo.js +10210 -0
  219. package/dist/index-qjiatRMM.js +74370 -0
  220. package/dist/index.es.js +12 -0
  221. package/dist/index2-Pjnp80bi.js +70 -0
  222. package/dist/index3-Bhg7Q86T.js +70 -0
  223. package/dist/index4-5xarPQV7.js +544 -0
  224. package/dist/index5-DYxqqGmv.js +592 -0
  225. package/dist/index6-DXyezjvJ.js +196 -0
  226. package/dist/index7-IFig1gg1.js +217 -0
  227. package/dist/info-NVLQJR56-CFDwNFH-.js +5 -0
  228. package/dist/infoDiagram-ER5ION4S-ClOwLtgG.js +24 -0
  229. package/dist/infographic_markstream-vue_false-BfsmcXxk.js +5 -0
  230. package/dist/ini-BZIuRIvJ.js +6 -0
  231. package/dist/init-DjUOC4st.js +16 -0
  232. package/dist/java-DY6VlHhP.js +6 -0
  233. package/dist/javascript-C25yR2R2.js +6 -0
  234. package/dist/jinja-CFW5uAwY.js +11 -0
  235. package/dist/jison-DdreslRX.js +8 -0
  236. package/dist/journeyDiagram-XKPGCS4Q-_UZpi048.js +834 -0
  237. package/dist/json-DxJze_jm.js +6 -0
  238. package/dist/json5-BT4Fjg39.js +6 -0
  239. package/dist/jsonc-CHjZD8gR.js +6 -0
  240. package/dist/jsonl-BGuvDmy9.js +6 -0
  241. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  242. package/dist/jssm-BcADi6EI.js +6 -0
  243. package/dist/jsx-BtKADgXT.js +6 -0
  244. package/dist/julia-CZiKXNNP.js +16 -0
  245. package/dist/just-CEK2SJ_k.js +18 -0
  246. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  247. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  248. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  249. package/dist/kanban-definition-3W4ZIXB7-Cutzg6yp.js +719 -0
  250. package/dist/katex-SsTUIUTC.js +11688 -0
  251. package/dist/kdl-BNOv9TC3.js +6 -0
  252. package/dist/kotlin-ByBMgTeR.js +6 -0
  253. package/dist/kusto-DH_XitHS.js +6 -0
  254. package/dist/languageIconExtended-OLNeqZ3A.js +119 -0
  255. package/dist/laserwave-6a00oqik.js +4 -0
  256. package/dist/latex-B8Egmqc5.js +8 -0
  257. package/dist/layout-PTzgkkQP.js +1223 -0
  258. package/dist/lean-BnVxaZxY.js +6 -0
  259. package/dist/less-B1GLI2Di.js +6 -0
  260. package/dist/light-plus-CZuVqSLX.js +4 -0
  261. package/dist/linear-Bye2JJhy.js +259 -0
  262. package/dist/liquid-CHzkx3jT.js +14 -0
  263. package/dist/llvm-Bk2XctFf.js +6 -0
  264. package/dist/log-Al8wyEFV.js +6 -0
  265. package/dist/logo-DBa4JDzV.js +6 -0
  266. package/dist/lua-Bp3IRv7I.js +8 -0
  267. package/dist/luau-UQyhudEE.js +6 -0
  268. package/dist/make-CsMclxtr.js +6 -0
  269. package/dist/markdown-CrScaQ96.js +6 -0
  270. package/dist/marko-CJBA24Ri.js +14 -0
  271. package/dist/material-theme-D6KBX41T.js +4 -0
  272. package/dist/material-theme-darker-CkRroheE.js +4 -0
  273. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  274. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  275. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  276. package/dist/matlab-BOAaUVP0.js +6 -0
  277. package/dist/mdc-C9YSUwVC.js +12 -0
  278. package/dist/mdx-BOhZZUJ8.js +6 -0
  279. package/dist/mermaid-C3rz4dYh.js +6 -0
  280. package/dist/mermaid-parser.core-C86xHHvY.js +13249 -0
  281. package/dist/mermaid.core-BIhT9VUC.js +14709 -0
  282. package/dist/mhchem-XHl7cef5.js +2306 -0
  283. package/dist/min-dark-C7ak0t6c.js +4 -0
  284. package/dist/min-light-CKFxVcPp.js +4 -0
  285. package/dist/mindmap-definition-VGOIOE7T-l17eTXZb.js +784 -0
  286. package/dist/mipsasm-CTx18fBl.js +6 -0
  287. package/dist/mojo-EIZIZRTQ.js +6 -0
  288. package/dist/monokai-C1KBYcO0.js +4 -0
  289. package/dist/moonbit-B1TV0fG3.js +6 -0
  290. package/dist/move-Db4ltDq1.js +6 -0
  291. package/dist/narrat-DmhDCBs-.js +6 -0
  292. package/dist/nextflow-47kAzSl1.js +8 -0
  293. package/dist/nextflow-groovy-Drz_2V0j.js +6 -0
  294. package/dist/nginx-D7O4WoB1.js +8 -0
  295. package/dist/night-owl-Bm2rzalh.js +4 -0
  296. package/dist/night-owl-light-CBI5u5kw.js +4 -0
  297. package/dist/nim-QAjRdh9w.js +20 -0
  298. package/dist/nix-fTRXMGic.js +9 -0
  299. package/dist/nord-CC5OiUXg.js +4 -0
  300. package/dist/nushell-BGCPRlV5.js +6 -0
  301. package/dist/objective-c-Itk8tzmv.js +6 -0
  302. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  303. package/dist/ocaml-eSVK32Eg.js +6 -0
  304. package/dist/odin-BItnF517.js +6 -0
  305. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  306. package/dist/one-light-LkMrt1Cf.js +4 -0
  307. package/dist/openscad-Sp5uZ6f2.js +6 -0
  308. package/dist/ordinal-DfAQgscy.js +61 -0
  309. package/dist/packet-BFZMPI3H-c2t_1f8D.js +5 -0
  310. package/dist/pascal-xy8pJNns.js +6 -0
  311. package/dist/perl-DkVrgJBg.js +16 -0
  312. package/dist/php-BIzsF_5x.js +18 -0
  313. package/dist/pie-7BOR55EZ-CVvzPUU7.js +5 -0
  314. package/dist/pieDiagram-ADFJNKIX-C01Py6L8.js +161 -0
  315. package/dist/pkl-C-zSNmaA.js +6 -0
  316. package/dist/plastic-CSTz3KZp.js +4 -0
  317. package/dist/plsql-pVbGZfOv.js +6 -0
  318. package/dist/po-BNfHvqmm.js +6 -0
  319. package/dist/poimandres-C-VADXHD.js +4 -0
  320. package/dist/polar-CAZahv3u.js +6 -0
  321. package/dist/postcss-05aHdL-n.js +6 -0
  322. package/dist/powerquery-DI9HkTvs.js +6 -0
  323. package/dist/powershell-Clc4ydu-.js +6 -0
  324. package/dist/prisma-FZjmVtSl.js +6 -0
  325. package/dist/prolog-C5-yg4TO.js +6 -0
  326. package/dist/proto-C7QgialS.js +6 -0
  327. package/dist/pug-XOw9Q1Ho.js +12 -0
  328. package/dist/puppet-CUJHmnxV.js +6 -0
  329. package/dist/purescript-rUfGld-4.js +6 -0
  330. package/dist/python-BFNSHbwJ.js +6 -0
  331. package/dist/qml-rTNXsquU.js +8 -0
  332. package/dist/qmldir-BInDYbpo.js +6 -0
  333. package/dist/qss-AeJTysr_.js +6 -0
  334. package/dist/quadrantDiagram-AYHSOK5B-sypB1aPG.js +1022 -0
  335. package/dist/r-CSmzDPi7.js +6 -0
  336. package/dist/racket-B83wSAja.js +6 -0
  337. package/dist/radar-NHE76QYJ-GJjAzk_L.js +5 -0
  338. package/dist/raku-nEQ4ZJJ7.js +6 -0
  339. package/dist/razor-Ci8D0dQK.js +10 -0
  340. package/dist/red-7y8PH7HH.js +4 -0
  341. package/dist/reg-m_s_Kiip.js +6 -0
  342. package/dist/regexp-BazyLpPg.js +6 -0
  343. package/dist/rel-BcRfyd6Q.js +6 -0
  344. package/dist/requirementDiagram-UZGBJVZJ-Cs95WEDy.js +850 -0
  345. package/dist/riscv-Ce8MAQLP.js +6 -0
  346. package/dist/ron-DCEEQypA.js +6 -0
  347. package/dist/rose-pine-BKc3yVeu.js +4 -0
  348. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  349. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  350. package/dist/rosmsg-Cz0w1km8.js +6 -0
  351. package/dist/rst-DM32Wy3O.js +22 -0
  352. package/dist/ruby-BeqCs27h.js +30 -0
  353. package/dist/rust-CLzF9zIN.js +6 -0
  354. package/dist/safeRaf-I3a3-dyJ.js +10 -0
  355. package/dist/sankeyDiagram-TZEHDZUN-BN3bNFt9.js +810 -0
  356. package/dist/sas-fpEvgATw.js +8 -0
  357. package/dist/sass-DxHp5rTx.js +6 -0
  358. package/dist/scala-D4grkFkl.js +6 -0
  359. package/dist/scheme-BCRWuEm4.js +6 -0
  360. package/dist/scss-B1FaCqwR.js +8 -0
  361. package/dist/sdbl-B7T8abf4.js +6 -0
  362. package/dist/sequenceDiagram-WL72ISMW-CZ6inTco.js +2511 -0
  363. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  364. package/dist/shellscript-InADTalH.js +6 -0
  365. package/dist/shellsession-DiDJNQdy.js +8 -0
  366. package/dist/slack-dark-i7wN4OET.js +4 -0
  367. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  368. package/dist/smalltalk-BlI1_OkM.js +6 -0
  369. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  370. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  371. package/dist/solarized-light-BheCkDPT.js +4 -0
  372. package/dist/solidity-DUWnFhS6.js +6 -0
  373. package/dist/soy-C1-6njHa.js +8 -0
  374. package/dist/sparql-B0KWFEri.js +8 -0
  375. package/dist/splunk-CRXR8A9s.js +6 -0
  376. package/dist/sql-Cn_v3PB0.js +6 -0
  377. package/dist/ssh-config-DP-hNVbF.js +6 -0
  378. package/dist/stata-B8c5fTjX.js +8 -0
  379. package/dist/stateDiagram-FKZM4ZOC-BjHpkttt.js +264 -0
  380. package/dist/stateDiagram-v2-4FDKWEC3-SoFWin9i.js +16 -0
  381. package/dist/stylus-CyKEU1Ej.js +6 -0
  382. package/dist/surrealql-CQi7GQN7.js +8 -0
  383. package/dist/svelte-rYri41WT.js +14 -0
  384. package/dist/swift-DJpUqPLg.js +6 -0
  385. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  386. package/dist/system-verilog-BCm7smPJ.js +6 -0
  387. package/dist/systemd-C-4qm6XH.js +6 -0
  388. package/dist/talonscript-CFF3LF_O.js +6 -0
  389. package/dist/tasl-Cg_WBUAe.js +6 -0
  390. package/dist/tcl-DN7buRTF.js +6 -0
  391. package/dist/templ-Crs9Ui8q.js +12 -0
  392. package/dist/terraform-DGvcn9zM.js +6 -0
  393. package/dist/tex-AHxmLTL0.js +8 -0
  394. package/dist/timeline-definition-IT6M3QCI-axILemxx.js +795 -0
  395. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  396. package/dist/toml-DY62mUL_.js +6 -0
  397. package/dist/treemap-KMMF4GRG-DLUO0usq.js +5 -0
  398. package/dist/ts-tags-BUclWxCG.js +41 -0
  399. package/dist/tsv-BtvSkaG0.js +6 -0
  400. package/dist/tsx-B8rCNbgL.js +6 -0
  401. package/dist/turtle-_H59FV7D.js +6 -0
  402. package/dist/twig-DwV2Fi4L.js +18 -0
  403. package/dist/typescript-RycA9KXf.js +6 -0
  404. package/dist/typespec-DWqp-kUU.js +6 -0
  405. package/dist/typst-D_1QKWns.js +6 -0
  406. package/dist/v-BPCNiyYe.js +6 -0
  407. package/dist/vala-uxaPR7d1.js +6 -0
  408. package/dist/vb-D8_c5-KN.js +6 -0
  409. package/dist/verilog-B-bybjPF.js +6 -0
  410. package/dist/vesper-BckBta1U.js +4 -0
  411. package/dist/vhdl-CUlNa8ac.js +6 -0
  412. package/dist/viml-DsfA-sWm.js +6 -0
  413. package/dist/vitesse-black-BoGvW84i.js +4 -0
  414. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  415. package/dist/vitesse-light-CcmG315c.js +4 -0
  416. package/dist/vue-DXEmyXn9.js +31 -0
  417. package/dist/vue-html-j9xNEdu3.js +8 -0
  418. package/dist/vue-vine-D41-N99t.js +18 -0
  419. package/dist/vyper-CPQuu50u.js +6 -0
  420. package/dist/wasm-BBXxrAl7.js +6 -0
  421. package/dist/wasm-DQxwEHae.js +7 -0
  422. package/dist/wenyan-pbVjoM9_.js +6 -0
  423. package/dist/wgsl-DY4iK1q1.js +6 -0
  424. package/dist/wikitext-Z-MoUasO.js +6 -0
  425. package/dist/wit-CQMQOlTg.js +6 -0
  426. package/dist/wolfram-Dz4KXISs.js +6 -0
  427. package/dist/xml-C2J0sS9M.js +8 -0
  428. package/dist/xsl-BmSZphgC.js +8 -0
  429. package/dist/xychartDiagram-PRI3JC2R-C7nmWmlk.js +1340 -0
  430. package/dist/yaml-DaO7k5B1.js +6 -0
  431. package/dist/zenscript-CxBjpf9c.js +6 -0
  432. package/dist/zig-Vm0PO9wB.js +6 -0
  433. package/package.json +134 -0
@@ -0,0 +1,785 @@
1
+ import { g as le } from "./chunk-55IACEB6-gENcR4HP.js";
2
+ import { s as he } from "./chunk-QN33PNHL-BeoL9V94.js";
3
+ import { _ as l, l as I, o as de, r as ge, F, c as W, i as V, aH as ue, W as pe, X as fe, Y as ye } from "./mermaidParser.worker-DueMsnUe.js";
4
+ const E = [];
5
+ for (let t = 0; t < 256; ++t)
6
+ E.push((t + 256).toString(16).slice(1));
7
+ function me(t, e = 0) {
8
+ return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
9
+ }
10
+ let z;
11
+ const Ee = new Uint8Array(16);
12
+ function _e() {
13
+ if (!z) {
14
+ if (typeof crypto > "u" || !crypto.getRandomValues)
15
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16
+ z = crypto.getRandomValues.bind(crypto);
17
+ }
18
+ return z(Ee);
19
+ }
20
+ const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
21
+ var ne = { randomUUID: be };
22
+ function Se(t, e, n) {
23
+ if (ne.randomUUID && !t)
24
+ return ne.randomUUID();
25
+ t = t || {};
26
+ const c = t.random ?? t.rng?.() ?? _e();
27
+ if (c.length < 16)
28
+ throw new Error("Random bytes length must be >= 16");
29
+ return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
30
+ }
31
+ var X = (function() {
32
+ var t = /* @__PURE__ */ l(function(x, s, i, o) {
33
+ for (i = i || {}, o = x.length; o--; i[x[o]] = s) ;
34
+ return i;
35
+ }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], Y = [1, 24], q = [1, 25], b = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], R = [1, 6, 7, 11, 13, 15, 16, 19, 22], B = {
36
+ trace: /* @__PURE__ */ l(function() {
37
+ }, "trace"),
38
+ yy: {},
39
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
40
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
41
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
42
+ performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, w) {
43
+ var d = r.length - 1;
44
+ switch (g) {
45
+ case 6:
46
+ case 7:
47
+ return a;
48
+ case 8:
49
+ a.getLogger().trace("Stop NL ");
50
+ break;
51
+ case 9:
52
+ a.getLogger().trace("Stop EOF ");
53
+ break;
54
+ case 11:
55
+ a.getLogger().trace("Stop NL2 ");
56
+ break;
57
+ case 12:
58
+ a.getLogger().trace("Stop EOF2 ");
59
+ break;
60
+ case 15:
61
+ a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
62
+ break;
63
+ case 16:
64
+ a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
65
+ break;
66
+ case 17:
67
+ case 21:
68
+ a.decorateNode({ class: r[d] });
69
+ break;
70
+ case 18:
71
+ a.getLogger().trace("SPACELIST");
72
+ break;
73
+ case 19:
74
+ a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
75
+ break;
76
+ case 20:
77
+ a.decorateNode({ icon: r[d] });
78
+ break;
79
+ case 25:
80
+ a.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
81
+ break;
82
+ case 26:
83
+ this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
84
+ break;
85
+ case 27:
86
+ a.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
87
+ break;
88
+ }
89
+ }, "anonymous"),
90
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(u, [2, 3]), { 1: [2, 2] }, t(u, [2, 4]), t(u, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: Y, 10: 23, 11: q }, t(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), t(b, [2, 18]), t(b, [2, 19]), t(b, [2, 20]), t(b, [2, 21]), t(b, [2, 23]), t(b, [2, 24]), t(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: Y, 10: 32, 11: q }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(J, [2, 14], { 7: K, 11: Q }), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(b, [2, 15]), t(b, [2, 16]), t(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(R, [2, 11]), t(R, [2, 12]), { 21: [1, 37] }, t(b, [2, 25]), t(b, [2, 27])],
91
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
92
+ parseError: /* @__PURE__ */ l(function(s, i) {
93
+ if (i.recoverable)
94
+ this.trace(s);
95
+ else {
96
+ var o = new Error(s);
97
+ throw o.hash = i, o;
98
+ }
99
+ }, "parseError"),
100
+ parse: /* @__PURE__ */ l(function(s) {
101
+ var i = this, o = [0], a = [], g = [null], r = [], w = this.table, d = "", U = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), y = Object.create(this.lexer), v = { yy: {} };
102
+ for (var j in this.yy)
103
+ Object.prototype.hasOwnProperty.call(this.yy, j) && (v.yy[j] = this.yy[j]);
104
+ y.setInput(s, v.yy), v.yy.lexer = y, v.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
105
+ var G = y.yylloc;
106
+ r.push(G);
107
+ var ae = y.options && y.options.ranges;
108
+ typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
109
+ function ce(S) {
110
+ o.length = o.length - 2 * S, g.length = g.length - S, r.length = r.length - S;
111
+ }
112
+ l(ce, "popStack");
113
+ function te() {
114
+ var S;
115
+ return S = a.pop() || y.lex() || ee, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = i.symbols_[S] || S), S;
116
+ }
117
+ l(te, "lex");
118
+ for (var _, T, D, H, O = {}, P, k, ie, M; ; ) {
119
+ if (T = o[o.length - 1], this.defaultActions[T] ? D = this.defaultActions[T] : ((_ === null || typeof _ > "u") && (_ = te()), D = w[T] && w[T][_]), typeof D > "u" || !D.length || !D[0]) {
120
+ var $ = "";
121
+ M = [];
122
+ for (P in w[T])
123
+ this.terminals_[P] && P > re && M.push("'" + this.terminals_[P] + "'");
124
+ y.showPosition ? $ = "Parse error on line " + (U + 1) + `:
125
+ ` + y.showPosition() + `
126
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
127
+ text: y.match,
128
+ token: this.terminals_[_] || _,
129
+ line: y.yylineno,
130
+ loc: G,
131
+ expected: M
132
+ });
133
+ }
134
+ if (D[0] instanceof Array && D.length > 1)
135
+ throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
136
+ switch (D[0]) {
137
+ case 1:
138
+ o.push(_), g.push(y.yytext), r.push(y.yylloc), o.push(D[1]), _ = null, Z = y.yyleng, d = y.yytext, U = y.yylineno, G = y.yylloc;
139
+ break;
140
+ case 2:
141
+ if (k = this.productions_[D[1]][1], O.$ = g[g.length - k], O._$ = {
142
+ first_line: r[r.length - (k || 1)].first_line,
143
+ last_line: r[r.length - 1].last_line,
144
+ first_column: r[r.length - (k || 1)].first_column,
145
+ last_column: r[r.length - 1].last_column
146
+ }, ae && (O._$.range = [
147
+ r[r.length - (k || 1)].range[0],
148
+ r[r.length - 1].range[1]
149
+ ]), H = this.performAction.apply(O, [
150
+ d,
151
+ Z,
152
+ U,
153
+ v.yy,
154
+ D[1],
155
+ g,
156
+ r
157
+ ].concat(oe)), typeof H < "u")
158
+ return H;
159
+ k && (o = o.slice(0, -1 * k * 2), g = g.slice(0, -1 * k), r = r.slice(0, -1 * k)), o.push(this.productions_[D[1]][0]), g.push(O.$), r.push(O._$), ie = w[o[o.length - 2]][o[o.length - 1]], o.push(ie);
160
+ break;
161
+ case 3:
162
+ return !0;
163
+ }
164
+ }
165
+ return !0;
166
+ }, "parse")
167
+ }, se = /* @__PURE__ */ (function() {
168
+ var x = {
169
+ EOF: 1,
170
+ parseError: /* @__PURE__ */ l(function(i, o) {
171
+ if (this.yy.parser)
172
+ this.yy.parser.parseError(i, o);
173
+ else
174
+ throw new Error(i);
175
+ }, "parseError"),
176
+ // resets the lexer, sets new input
177
+ setInput: /* @__PURE__ */ l(function(s, i) {
178
+ return this.yy = i || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
179
+ first_line: 1,
180
+ first_column: 0,
181
+ last_line: 1,
182
+ last_column: 0
183
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
184
+ }, "setInput"),
185
+ // consumes and returns one char from the input
186
+ input: /* @__PURE__ */ l(function() {
187
+ var s = this._input[0];
188
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
189
+ var i = s.match(/(?:\r\n?|\n).*/g);
190
+ return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
191
+ }, "input"),
192
+ // unshifts one char (or a string) into the input
193
+ unput: /* @__PURE__ */ l(function(s) {
194
+ var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
195
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
196
+ var a = this.match.split(/(?:\r\n?|\n)/g);
197
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
198
+ var g = this.yylloc.range;
199
+ return this.yylloc = {
200
+ first_line: this.yylloc.first_line,
201
+ last_line: this.yylineno + 1,
202
+ first_column: this.yylloc.first_column,
203
+ last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - i
204
+ }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
205
+ }, "unput"),
206
+ // When called from action, caches matched text and appends it on next action
207
+ more: /* @__PURE__ */ l(function() {
208
+ return this._more = !0, this;
209
+ }, "more"),
210
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
211
+ reject: /* @__PURE__ */ l(function() {
212
+ if (this.options.backtrack_lexer)
213
+ this._backtrack = !0;
214
+ else
215
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
216
+ ` + this.showPosition(), {
217
+ text: "",
218
+ token: null,
219
+ line: this.yylineno
220
+ });
221
+ return this;
222
+ }, "reject"),
223
+ // retain first n characters of the match
224
+ less: /* @__PURE__ */ l(function(s) {
225
+ this.unput(this.match.slice(s));
226
+ }, "less"),
227
+ // displays already matched input, i.e. for error messages
228
+ pastInput: /* @__PURE__ */ l(function() {
229
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
230
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
231
+ }, "pastInput"),
232
+ // displays upcoming input, i.e. for error messages
233
+ upcomingInput: /* @__PURE__ */ l(function() {
234
+ var s = this.match;
235
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
236
+ }, "upcomingInput"),
237
+ // displays the character position where the lexing error occurred, i.e. for error messages
238
+ showPosition: /* @__PURE__ */ l(function() {
239
+ var s = this.pastInput(), i = new Array(s.length + 1).join("-");
240
+ return s + this.upcomingInput() + `
241
+ ` + i + "^";
242
+ }, "showPosition"),
243
+ // test the lexed token: return FALSE when not a match, otherwise return token
244
+ test_match: /* @__PURE__ */ l(function(s, i) {
245
+ var o, a, g;
246
+ if (this.options.backtrack_lexer && (g = {
247
+ yylineno: this.yylineno,
248
+ yylloc: {
249
+ first_line: this.yylloc.first_line,
250
+ last_line: this.last_line,
251
+ first_column: this.yylloc.first_column,
252
+ last_column: this.yylloc.last_column
253
+ },
254
+ yytext: this.yytext,
255
+ match: this.match,
256
+ matches: this.matches,
257
+ matched: this.matched,
258
+ yyleng: this.yyleng,
259
+ offset: this.offset,
260
+ _more: this._more,
261
+ _input: this._input,
262
+ yy: this.yy,
263
+ conditionStack: this.conditionStack.slice(0),
264
+ done: this.done
265
+ }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
266
+ first_line: this.yylloc.last_line,
267
+ last_line: this.yylineno + 1,
268
+ first_column: this.yylloc.last_column,
269
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
270
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
271
+ return o;
272
+ if (this._backtrack) {
273
+ for (var r in g)
274
+ this[r] = g[r];
275
+ return !1;
276
+ }
277
+ return !1;
278
+ }, "test_match"),
279
+ // return next match in input
280
+ next: /* @__PURE__ */ l(function() {
281
+ if (this.done)
282
+ return this.EOF;
283
+ this._input || (this.done = !0);
284
+ var s, i, o, a;
285
+ this._more || (this.yytext = "", this.match = "");
286
+ for (var g = this._currentRules(), r = 0; r < g.length; r++)
287
+ if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
288
+ if (i = o, a = r, this.options.backtrack_lexer) {
289
+ if (s = this.test_match(o, g[r]), s !== !1)
290
+ return s;
291
+ if (this._backtrack) {
292
+ i = !1;
293
+ continue;
294
+ } else
295
+ return !1;
296
+ } else if (!this.options.flex)
297
+ break;
298
+ }
299
+ return i ? (s = this.test_match(i, g[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
300
+ ` + this.showPosition(), {
301
+ text: "",
302
+ token: null,
303
+ line: this.yylineno
304
+ });
305
+ }, "next"),
306
+ // return next match that has a token
307
+ lex: /* @__PURE__ */ l(function() {
308
+ var i = this.next();
309
+ return i || this.lex();
310
+ }, "lex"),
311
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
312
+ begin: /* @__PURE__ */ l(function(i) {
313
+ this.conditionStack.push(i);
314
+ }, "begin"),
315
+ // pop the previously active lexer condition state off the condition stack
316
+ popState: /* @__PURE__ */ l(function() {
317
+ var i = this.conditionStack.length - 1;
318
+ return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
319
+ }, "popState"),
320
+ // produce the lexer rule set which is active for the currently active lexer condition state
321
+ _currentRules: /* @__PURE__ */ l(function() {
322
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
323
+ }, "_currentRules"),
324
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
325
+ topState: /* @__PURE__ */ l(function(i) {
326
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
327
+ }, "topState"),
328
+ // alias for begin(condition)
329
+ pushState: /* @__PURE__ */ l(function(i) {
330
+ this.begin(i);
331
+ }, "pushState"),
332
+ // return the number of states currently on the stack
333
+ stateStackSize: /* @__PURE__ */ l(function() {
334
+ return this.conditionStack.length;
335
+ }, "stateStackSize"),
336
+ options: { "case-insensitive": !0 },
337
+ performAction: /* @__PURE__ */ l(function(i, o, a, g) {
338
+ switch (a) {
339
+ case 0:
340
+ return i.getLogger().trace("Found comment", o.yytext), 6;
341
+ case 1:
342
+ return 8;
343
+ case 2:
344
+ this.begin("CLASS");
345
+ break;
346
+ case 3:
347
+ return this.popState(), 16;
348
+ case 4:
349
+ this.popState();
350
+ break;
351
+ case 5:
352
+ i.getLogger().trace("Begin icon"), this.begin("ICON");
353
+ break;
354
+ case 6:
355
+ return i.getLogger().trace("SPACELINE"), 6;
356
+ case 7:
357
+ return 7;
358
+ case 8:
359
+ return 15;
360
+ case 9:
361
+ i.getLogger().trace("end icon"), this.popState();
362
+ break;
363
+ case 10:
364
+ return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
365
+ case 11:
366
+ return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
367
+ case 12:
368
+ return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
369
+ case 13:
370
+ return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
371
+ case 14:
372
+ return this.begin("NODE"), 19;
373
+ case 15:
374
+ return this.begin("NODE"), 19;
375
+ case 16:
376
+ return this.begin("NODE"), 19;
377
+ case 17:
378
+ return this.begin("NODE"), 19;
379
+ case 18:
380
+ return 13;
381
+ case 19:
382
+ return 22;
383
+ case 20:
384
+ return 11;
385
+ case 21:
386
+ this.begin("NSTR2");
387
+ break;
388
+ case 22:
389
+ return "NODE_DESCR";
390
+ case 23:
391
+ this.popState();
392
+ break;
393
+ case 24:
394
+ i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
395
+ break;
396
+ case 25:
397
+ return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
398
+ case 26:
399
+ this.popState();
400
+ break;
401
+ case 27:
402
+ return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
403
+ case 28:
404
+ return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
405
+ case 29:
406
+ return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
407
+ case 30:
408
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
409
+ case 31:
410
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
411
+ case 32:
412
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
413
+ case 33:
414
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
415
+ case 34:
416
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
417
+ case 35:
418
+ return i.getLogger().trace("Long description:", o.yytext), 20;
419
+ case 36:
420
+ return i.getLogger().trace("Long description:", o.yytext), 20;
421
+ }
422
+ }, "anonymous"),
423
+ rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
424
+ conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
425
+ };
426
+ return x;
427
+ })();
428
+ B.lexer = se;
429
+ function A() {
430
+ this.yy = {};
431
+ }
432
+ return l(A, "Parser"), A.prototype = B, B.Parser = A, new A();
433
+ })();
434
+ X.parser = X;
435
+ var De = X, L = {
436
+ DEFAULT: 0,
437
+ NO_BORDER: 0,
438
+ ROUNDED_RECT: 1,
439
+ RECT: 2,
440
+ CIRCLE: 3,
441
+ CLOUD: 4,
442
+ BANG: 5,
443
+ HEXAGON: 6
444
+ }, C, Ne = (C = class {
445
+ constructor() {
446
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = L, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
447
+ }
448
+ clear() {
449
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
450
+ }
451
+ getParent(e) {
452
+ for (let n = this.nodes.length - 1; n >= 0; n--)
453
+ if (this.nodes[n].level < e)
454
+ return this.nodes[n];
455
+ return null;
456
+ }
457
+ getMindmap() {
458
+ return this.nodes.length > 0 ? this.nodes[0] : null;
459
+ }
460
+ addNode(e, n, c, f) {
461
+ I.info("addNode", e, n, c, f);
462
+ let h = !1;
463
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
464
+ const p = W();
465
+ let m = p.mindmap?.padding ?? F.mindmap.padding;
466
+ switch (f) {
467
+ case this.nodeType.ROUNDED_RECT:
468
+ case this.nodeType.RECT:
469
+ case this.nodeType.HEXAGON:
470
+ m *= 2;
471
+ break;
472
+ }
473
+ const u = {
474
+ id: this.count++,
475
+ nodeId: V(n, p),
476
+ level: e,
477
+ descr: V(c, p),
478
+ type: f,
479
+ children: [],
480
+ width: p.mindmap?.maxNodeWidth ?? F.mindmap.maxNodeWidth,
481
+ padding: m,
482
+ isRoot: h
483
+ }, N = this.getParent(e);
484
+ if (N)
485
+ N.children.push(u), this.nodes.push(u);
486
+ else if (h)
487
+ this.nodes.push(u);
488
+ else
489
+ throw new Error(
490
+ `There can be only one root. No parent could be found for ("${u.descr}")`
491
+ );
492
+ }
493
+ getType(e, n) {
494
+ switch (I.debug("In get type", e, n), e) {
495
+ case "[":
496
+ return this.nodeType.RECT;
497
+ case "(":
498
+ return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
499
+ case "((":
500
+ return this.nodeType.CIRCLE;
501
+ case ")":
502
+ return this.nodeType.CLOUD;
503
+ case "))":
504
+ return this.nodeType.BANG;
505
+ case "{{":
506
+ return this.nodeType.HEXAGON;
507
+ default:
508
+ return this.nodeType.DEFAULT;
509
+ }
510
+ }
511
+ setElementForId(e, n) {
512
+ this.elements[e] = n;
513
+ }
514
+ getElementById(e) {
515
+ return this.elements[e];
516
+ }
517
+ decorateNode(e) {
518
+ if (!e)
519
+ return;
520
+ const n = W(), c = this.nodes[this.nodes.length - 1];
521
+ e.icon && (c.icon = V(e.icon, n)), e.class && (c.class = V(e.class, n));
522
+ }
523
+ type2Str(e) {
524
+ switch (e) {
525
+ case this.nodeType.DEFAULT:
526
+ return "no-border";
527
+ case this.nodeType.RECT:
528
+ return "rect";
529
+ case this.nodeType.ROUNDED_RECT:
530
+ return "rounded-rect";
531
+ case this.nodeType.CIRCLE:
532
+ return "circle";
533
+ case this.nodeType.CLOUD:
534
+ return "cloud";
535
+ case this.nodeType.BANG:
536
+ return "bang";
537
+ case this.nodeType.HEXAGON:
538
+ return "hexgon";
539
+ // cspell: disable-line
540
+ default:
541
+ return "no-border";
542
+ }
543
+ }
544
+ /**
545
+ * Assign section numbers to nodes based on their position relative to root
546
+ * @param node - The mindmap node to process
547
+ * @param sectionNumber - The section number to assign (undefined for root)
548
+ */
549
+ assignSections(e, n) {
550
+ if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
551
+ for (const [c, f] of e.children.entries()) {
552
+ const h = e.level === 0 ? c : n;
553
+ this.assignSections(f, h);
554
+ }
555
+ }
556
+ /**
557
+ * Convert mindmap tree structure to flat array of nodes
558
+ * @param node - The mindmap node to process
559
+ * @param processedNodes - Array to collect processed nodes
560
+ */
561
+ flattenNodes(e, n) {
562
+ const c = ["mindmap-node"];
563
+ e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
564
+ const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
565
+ switch (m) {
566
+ case L.CIRCLE:
567
+ return "mindmapCircle";
568
+ case L.RECT:
569
+ return "rect";
570
+ case L.ROUNDED_RECT:
571
+ return "rounded";
572
+ case L.CLOUD:
573
+ return "cloud";
574
+ case L.BANG:
575
+ return "bang";
576
+ case L.HEXAGON:
577
+ return "hexagon";
578
+ case L.DEFAULT:
579
+ return "defaultMindmapNode";
580
+ case L.NO_BORDER:
581
+ default:
582
+ return "rect";
583
+ }
584
+ }, "getShapeFromType"), p = {
585
+ id: e.id.toString(),
586
+ domId: "node_" + e.id.toString(),
587
+ label: e.descr,
588
+ isGroup: !1,
589
+ shape: h(e.type),
590
+ width: e.width,
591
+ height: e.height ?? 0,
592
+ padding: e.padding,
593
+ cssClasses: f,
594
+ cssStyles: [],
595
+ look: "default",
596
+ icon: e.icon,
597
+ x: e.x,
598
+ y: e.y,
599
+ // Mindmap-specific properties
600
+ level: e.level,
601
+ nodeId: e.nodeId,
602
+ type: e.type,
603
+ section: e.section
604
+ };
605
+ if (n.push(p), e.children)
606
+ for (const m of e.children)
607
+ this.flattenNodes(m, n);
608
+ }
609
+ /**
610
+ * Generate edges from parent-child relationships in mindmap tree
611
+ * @param node - The mindmap node to process
612
+ * @param edges - Array to collect edges
613
+ */
614
+ generateEdges(e, n) {
615
+ if (e.children)
616
+ for (const c of e.children) {
617
+ let f = "edge";
618
+ c.section !== void 0 && (f += ` section-edge-${c.section}`);
619
+ const h = e.level + 1;
620
+ f += ` edge-depth-${h}`;
621
+ const p = {
622
+ id: `edge_${e.id}_${c.id}`,
623
+ start: e.id.toString(),
624
+ end: c.id.toString(),
625
+ type: "normal",
626
+ curve: "basis",
627
+ thickness: "normal",
628
+ look: "default",
629
+ classes: f,
630
+ // Store mindmap-specific data
631
+ depth: e.level,
632
+ section: c.section
633
+ };
634
+ n.push(p), this.generateEdges(c, n);
635
+ }
636
+ }
637
+ /**
638
+ * Get structured data for layout algorithms
639
+ * Following the pattern established by ER diagrams
640
+ * @returns Structured data containing nodes, edges, and config
641
+ */
642
+ getData() {
643
+ const e = this.getMindmap(), n = W(), f = ue().layout !== void 0, h = n;
644
+ if (f || (h.layout = "cose-bilkent"), !e)
645
+ return {
646
+ nodes: [],
647
+ edges: [],
648
+ config: h
649
+ };
650
+ I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
651
+ const p = [], m = [];
652
+ this.flattenNodes(e, p), this.generateEdges(e, m), I.debug(
653
+ `getData: processed ${p.length} nodes and ${m.length} edges`
654
+ );
655
+ const u = /* @__PURE__ */ new Map();
656
+ for (const N of p)
657
+ u.set(N.id, {
658
+ shape: N.shape,
659
+ width: N.width,
660
+ height: N.height,
661
+ padding: N.padding
662
+ });
663
+ return {
664
+ nodes: p,
665
+ edges: m,
666
+ config: h,
667
+ // Store the root node for mindmap-specific layout algorithms
668
+ rootNode: e,
669
+ // Properties required by dagre layout algorithm
670
+ markers: ["point"],
671
+ // Mindmaps don't use markers
672
+ direction: "TB",
673
+ // Top-to-bottom direction for mindmaps
674
+ nodeSpacing: 50,
675
+ // Default spacing between nodes
676
+ rankSpacing: 50,
677
+ // Default spacing between ranks
678
+ // Add shapes for ELK compatibility
679
+ shapes: Object.fromEntries(u),
680
+ // Additional properties that layout algorithms might expect
681
+ type: "mindmap",
682
+ diagramId: "mindmap-" + Se()
683
+ };
684
+ }
685
+ // Expose logger to grammar
686
+ getLogger() {
687
+ return I;
688
+ }
689
+ }, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
690
+ I.debug(`Rendering mindmap diagram
691
+ ` + t);
692
+ const f = c.db, h = f.getData(), p = le(e, h.config.securityLevel);
693
+ h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
694
+ fallback: "cose-bilkent"
695
+ }), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
696
+ u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
697
+ }), await ge(h, p), he(
698
+ p,
699
+ h.config.mindmap?.padding ?? F.mindmap.padding,
700
+ "mindmapDiagram",
701
+ h.config.mindmap?.useMaxWidth ?? F.mindmap.useMaxWidth
702
+ ));
703
+ }, "draw"), Le = {
704
+ draw: ke
705
+ }, xe = /* @__PURE__ */ l((t) => {
706
+ let e = "";
707
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
708
+ t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], pe(t["lineColor" + n]) ? t["lineColor" + n] = fe(t["lineColor" + n], 20) : t["lineColor" + n] = ye(t["lineColor" + n], 20);
709
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
710
+ const c = "" + (17 - 3 * n);
711
+ e += `
712
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
713
+ fill: ${t["cScale" + n]};
714
+ }
715
+ .section-${n - 1} text {
716
+ fill: ${t["cScaleLabel" + n]};
717
+ }
718
+ .node-icon-${n - 1} {
719
+ font-size: 40px;
720
+ color: ${t["cScaleLabel" + n]};
721
+ }
722
+ .section-edge-${n - 1}{
723
+ stroke: ${t["cScale" + n]};
724
+ }
725
+ .edge-depth-${n - 1}{
726
+ stroke-width: ${c};
727
+ }
728
+ .section-${n - 1} line {
729
+ stroke: ${t["cScaleInv" + n]} ;
730
+ stroke-width: 3;
731
+ }
732
+
733
+ .disabled, .disabled circle, .disabled text {
734
+ fill: lightgray;
735
+ }
736
+ .disabled text {
737
+ fill: #efefef;
738
+ }
739
+ `;
740
+ }
741
+ return e;
742
+ }, "genSections"), ve = /* @__PURE__ */ l((t) => `
743
+ .edge {
744
+ stroke-width: 3;
745
+ }
746
+ ${xe(t)}
747
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
748
+ fill: ${t.git0};
749
+ }
750
+ .section-root text {
751
+ fill: ${t.gitBranchLabel0};
752
+ }
753
+ .section-root span {
754
+ color: ${t.gitBranchLabel0};
755
+ }
756
+ .section-2 span {
757
+ color: ${t.gitBranchLabel0};
758
+ }
759
+ .icon-container {
760
+ height:100%;
761
+ display: flex;
762
+ justify-content: center;
763
+ align-items: center;
764
+ }
765
+ .edge {
766
+ fill: none;
767
+ }
768
+ .mindmap-node-label {
769
+ dy: 1em;
770
+ alignment-baseline: middle;
771
+ text-anchor: middle;
772
+ dominant-baseline: middle;
773
+ text-align: center;
774
+ }
775
+ `, "getStyles"), Te = ve, Re = {
776
+ get db() {
777
+ return new Ne();
778
+ },
779
+ renderer: Le,
780
+ parser: De,
781
+ styles: Te
782
+ };
783
+ export {
784
+ Re as diagram
785
+ };