@foris/ai-agent 0.1.1 → 0.3.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 (397) hide show
  1. package/dist/abap-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW.js +6 -0
  4. package/dist/ai-agent.es.js +6 -285
  5. package/dist/ai-agent.umd.js +3874 -3
  6. package/dist/ai-chat-panel/ChatPanel.d.ts +1 -1
  7. package/dist/ai-chat-panel/chatPanel.constants.d.ts +17 -0
  8. package/dist/ai-sparkles-icon/AiSparklesIcon.d.ts +6 -0
  9. package/dist/ai-sparkles-icon/index.d.ts +2 -0
  10. package/dist/ai-summary-card/SummaryCard.d.ts +3 -1
  11. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  12. package/dist/angular-html-DPB4Rf0C.js +32 -0
  13. package/dist/angular-ts-CeqPwKaz.js +24 -0
  14. package/dist/apache-BUjz-sD2.js +6 -0
  15. package/dist/apex-oLhhs58q.js +6 -0
  16. package/dist/apl-Bfz1rp5e.js +17 -0
  17. package/dist/applescript-BPx7YFFu.js +6 -0
  18. package/dist/ara-Z2fSOxSw.js +6 -0
  19. package/dist/arc-DN1xn8kz.js +85 -0
  20. package/dist/architectureDiagram-VXUJARFQ-CuFlEJrK.js +4674 -0
  21. package/dist/asciidoc-B-pCoB3G.js +6 -0
  22. package/dist/asm-BTWLY5ym.js +6 -0
  23. package/dist/astro-CFFExE8Q.js +18 -0
  24. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  25. package/dist/awk-Fb0P9dkn.js +6 -0
  26. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  27. package/dist/ballerina-oZK-YekG.js +6 -0
  28. package/dist/bat-0FvbqU9S.js +6 -0
  29. package/dist/beancount-DqJEb89h.js +6 -0
  30. package/dist/berry-DODBq_Ff.js +6 -0
  31. package/dist/bibtex-EULQRLY5.js +6 -0
  32. package/dist/bicep-BorU73w0.js +6 -0
  33. package/dist/blade-DRRSiTQz.js +21 -0
  34. package/dist/blockDiagram-VD42YOAC-Ceho4Zhj.js +2407 -0
  35. package/dist/bsl-NkNNwerW.js +8 -0
  36. package/dist/c-eeMepfLm.js +6 -0
  37. package/dist/c4Diagram-YG6GDRKO-zPB3iQJ7.js +1585 -0
  38. package/dist/cadence-02UX7mW8.js +6 -0
  39. package/dist/cairo-DM6WF2e3.js +8 -0
  40. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  41. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  42. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  43. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  44. package/dist/channel-BC4mWQQF.js +5 -0
  45. package/dist/chunk-4BX2VUAB-BZlHuf6l.js +9 -0
  46. package/dist/chunk-55IACEB6-Dr8rgvy_.js +8 -0
  47. package/dist/chunk-B4BG7PRW-Ccllo2e-.js +1377 -0
  48. package/dist/chunk-DI55MBZ5-DvAROTIr.js +1383 -0
  49. package/dist/chunk-FMBD7UC4-CVr83prI.js +19 -0
  50. package/dist/chunk-QN33PNHL-nSyFq8_s.js +20 -0
  51. package/dist/chunk-QZHKN3VN-Dg8JYP6e.js +15 -0
  52. package/dist/chunk-TZMSLE5B-Bmj6LGNW.js +64 -0
  53. package/dist/clarity-PKm5CwqM.js +6 -0
  54. package/dist/classDiagram-2ON5EDUG-DAkxtl6o.js +22 -0
  55. package/dist/classDiagram-v2-WZHVMYZB-DAkxtl6o.js +22 -0
  56. package/dist/clojure-CXJfHrL3.js +6 -0
  57. package/dist/cmake-BJz8BOTU.js +6 -0
  58. package/dist/cobol-DYTFdEK1.js +12 -0
  59. package/dist/code-block-QI2IAROF-DN-BnDmt.js +9263 -0
  60. package/dist/codeowners-Bt9yU6NX.js +6 -0
  61. package/dist/codeql-DHkodjjI.js +6 -0
  62. package/dist/coffee-DGBR_nr_.js +8 -0
  63. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  64. package/dist/components/ai-elements/artifact.d.ts +23 -0
  65. package/dist/components/ai-elements/canvas.d.ts +7 -0
  66. package/dist/components/ai-elements/chain-of-thought.d.ts +29 -0
  67. package/dist/components/ai-elements/checkpoint.d.ts +11 -0
  68. package/dist/components/ai-elements/code-block.d.ts +17 -0
  69. package/dist/components/ai-elements/confirmation.d.ts +49 -0
  70. package/dist/components/ai-elements/connection.d.ts +2 -0
  71. package/dist/components/ai-elements/context.d.ts +32 -0
  72. package/dist/components/ai-elements/controls.d.ts +4 -0
  73. package/dist/components/ai-elements/conversation.d.ts +15 -0
  74. package/dist/components/ai-elements/edge.d.ts +5 -0
  75. package/dist/components/ai-elements/image.d.ts +6 -0
  76. package/dist/components/ai-elements/inline-citation.d.ts +38 -0
  77. package/dist/components/ai-elements/loader.d.ts +5 -0
  78. package/dist/components/ai-elements/message.d.ts +46 -0
  79. package/dist/components/ai-elements/model-selector.d.ts +35 -0
  80. package/dist/components/ai-elements/node.d.ts +21 -0
  81. package/dist/components/ai-elements/open-in-chat.d.ts +28 -0
  82. package/dist/components/ai-elements/panel.d.ts +5 -0
  83. package/dist/components/ai-elements/plan.d.ts +25 -0
  84. package/dist/components/ai-elements/prompt-input.d.ts +187 -0
  85. package/dist/components/ai-elements/queue.d.ts +61 -0
  86. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  87. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  88. package/dist/components/ai-elements/sources.d.ts +12 -0
  89. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  90. package/dist/components/ai-elements/task.d.ts +14 -0
  91. package/dist/components/ai-elements/tool.d.ts +23 -0
  92. package/dist/components/ai-elements/toolbar.d.ts +5 -0
  93. package/dist/components/ai-elements/web-preview.d.ts +34 -0
  94. package/dist/components/ui/alert.d.ts +9 -0
  95. package/dist/components/ui/badge.d.ts +9 -0
  96. package/dist/components/ui/button-group.d.ts +12 -0
  97. package/dist/components/ui/button.d.ts +10 -0
  98. package/dist/components/ui/card.d.ts +9 -0
  99. package/dist/components/ui/carousel.d.ts +19 -0
  100. package/dist/components/ui/collapsible.d.ts +6 -0
  101. package/dist/components/ui/command.d.ts +18 -0
  102. package/dist/components/ui/dialog.d.ts +15 -0
  103. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  104. package/dist/components/ui/hover-card.d.ts +6 -0
  105. package/dist/components/ui/input-group.d.ts +16 -0
  106. package/dist/components/ui/input.d.ts +3 -0
  107. package/dist/components/ui/progress.d.ts +4 -0
  108. package/dist/components/ui/scroll-area.d.ts +5 -0
  109. package/dist/components/ui/select.d.ts +15 -0
  110. package/dist/components/ui/separator.d.ts +4 -0
  111. package/dist/components/ui/textarea.d.ts +3 -0
  112. package/dist/components/ui/tooltip.d.ts +7 -0
  113. package/dist/coq-B0L9upzn.js +6 -0
  114. package/dist/cose-bilkent-S5V4N54A-DwRYWoaW.js +2612 -0
  115. package/dist/cpp-ZFnOq6fV.js +19 -0
  116. package/dist/crystal-CRJyc4G-.js +18 -0
  117. package/dist/csharp-C7yUs7-w.js +6 -0
  118. package/dist/css-CECN5uSL.js +6 -0
  119. package/dist/csv-CmYOceLb.js +6 -0
  120. package/dist/cue-ZzumE7IT.js +6 -0
  121. package/dist/cypher-jpdmjtA6.js +6 -0
  122. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  123. package/dist/d-CBagWSwH.js +6 -0
  124. package/dist/dagre-6UL2VRFP-imN1Fyg8.js +451 -0
  125. package/dist/dark-plus-pUHDTVV0.js +4 -0
  126. package/dist/dart-6ObCrKr9.js +6 -0
  127. package/dist/dax-CcDT-8dH.js +6 -0
  128. package/dist/defaultLocale-DcQU6Vee.js +177 -0
  129. package/dist/desktop-B93p9R9O.js +6 -0
  130. package/dist/diagram-PSM6KHXK-DAIDeBLn.js +544 -0
  131. package/dist/diagram-QEK2KX5R-DQFy-qK9.js +224 -0
  132. package/dist/diagram-S2PKOQOG-Hlk0Nx_Y.js +146 -0
  133. package/dist/diff-BxzP2J8R.js +6 -0
  134. package/dist/docker-CsHqm9tx.js +6 -0
  135. package/dist/dotenv-BMjVjUL1.js +6 -0
  136. package/dist/dracula-BtZx2Kac.js +4 -0
  137. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  138. package/dist/dream-maker-PAx17jaB.js +6 -0
  139. package/dist/edge-B882-fmN.js +14 -0
  140. package/dist/elixir-DRzNHQCz.js +10 -0
  141. package/dist/elm-DZPAA5Qn.js +9 -0
  142. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  143. package/dist/erDiagram-Q2GNP2WA-C8PZPSaf.js +846 -0
  144. package/dist/erb-DB1DqdBc.js +27 -0
  145. package/dist/erlang-DNcDT8Hi.js +8 -0
  146. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  147. package/dist/everforest-light-BbXl82Em.js +4 -0
  148. package/dist/fennel-N4WcXuKx.js +6 -0
  149. package/dist/fish-BTDEUgqH.js +6 -0
  150. package/dist/flowDiagram-NV44I4VS-CgTiIFnt.js +1631 -0
  151. package/dist/fluent-BMXUxfv1.js +6 -0
  152. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  153. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  154. package/dist/fsharp-CYOiIVNx.js +8 -0
  155. package/dist/ganttDiagram-JELNMOA3-DzYZEAE_.js +2702 -0
  156. package/dist/gdresource-BwtMIoBm.js +10 -0
  157. package/dist/gdscript-BifyeYhI.js +6 -0
  158. package/dist/gdshader-Bk8fF6yr.js +6 -0
  159. package/dist/genie-DzUvd7U9.js +6 -0
  160. package/dist/gherkin-DHRaV0YP.js +6 -0
  161. package/dist/git-commit-Bd32YZ0K.js +8 -0
  162. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  163. package/dist/gitGraphDiagram-NY62KEGX-CPwI-Uag.js +715 -0
  164. package/dist/github-dark-DenFmJkN.js +4 -0
  165. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  166. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  167. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  168. package/dist/github-light-JYsPkUQd.js +4 -0
  169. package/dist/github-light-default-D99KPAby.js +4 -0
  170. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  171. package/dist/gleam-Bv284lvN.js +6 -0
  172. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  173. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  174. package/dist/glsl-CkUcVZNK.js +8 -0
  175. package/dist/gnuplot-yPG9-sE_.js +6 -0
  176. package/dist/go-ChxJuLYK.js +6 -0
  177. package/dist/graph-DB2UxkYH.js +1190 -0
  178. package/dist/graphql-CBu2ehBn.js +14 -0
  179. package/dist/groovy-CJQTphOW.js +6 -0
  180. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  181. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  182. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  183. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  184. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  185. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  186. package/dist/hack-DVWgrvc2.js +12 -0
  187. package/dist/haml-NZLVzu_R.js +10 -0
  188. package/dist/handlebars-mxStpSE7.js +14 -0
  189. package/dist/haskell-WeIwNIP6.js +6 -0
  190. package/dist/haxe-TztHsm5T.js +6 -0
  191. package/dist/hcl-D438OF-I.js +6 -0
  192. package/dist/hjson-DYBUbqOl.js +6 -0
  193. package/dist/hlsl-Bk8TCZNL.js +6 -0
  194. package/dist/houston-BDYrDoDW.js +4 -0
  195. package/dist/html-B50bmoVb.js +10 -0
  196. package/dist/html-derivative-ByyNxAP5.js +10 -0
  197. package/dist/http-BVIWqb92.js +19 -0
  198. package/dist/hurl-B8OTiYoQ.js +17 -0
  199. package/dist/hxml-GbqSQCLa.js +8 -0
  200. package/dist/hy-Brt5EZ7-.js +6 -0
  201. package/dist/imba-CimUv-Uh.js +6 -0
  202. package/dist/index-C2DJ8qoy.js +45435 -0
  203. package/dist/infoDiagram-WHAUD3N6-CcN7ZNYI.js +27 -0
  204. package/dist/ini-BZIuRIvJ.js +6 -0
  205. package/dist/init-DjUOC4st.js +16 -0
  206. package/dist/java-DY6VlHhP.js +6 -0
  207. package/dist/javascript-C25yR2R2.js +6 -0
  208. package/dist/jinja-CI-LSgSv.js +13 -0
  209. package/dist/jison-DdreslRX.js +8 -0
  210. package/dist/journeyDiagram-XKPGCS4Q-BACao6jz.js +840 -0
  211. package/dist/json-DxJze_jm.js +6 -0
  212. package/dist/json5-BT4Fjg39.js +6 -0
  213. package/dist/jsonc-CHjZD8gR.js +6 -0
  214. package/dist/jsonl-BGuvDmy9.js +6 -0
  215. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  216. package/dist/jssm-BcADi6EI.js +6 -0
  217. package/dist/jsx-BtKADgXT.js +6 -0
  218. package/dist/julia-ll8P6QXy.js +19 -0
  219. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  220. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  221. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  222. package/dist/kanban-definition-3W4ZIXB7-Jb7Xwf92.js +724 -0
  223. package/dist/katex.min-l0sNRNKZ.js +1 -0
  224. package/dist/kdl-BNOv9TC3.js +6 -0
  225. package/dist/kotlin-ByBMgTeR.js +6 -0
  226. package/dist/kusto-VWFLl2T0.js +6 -0
  227. package/dist/laserwave-6a00oqik.js +4 -0
  228. package/dist/latex-DF20280u.js +9 -0
  229. package/dist/layout-Q6wQN5dr.js +1730 -0
  230. package/dist/lean-D5yRrexI.js +6 -0
  231. package/dist/less-B1GLI2Di.js +6 -0
  232. package/dist/lib/utils.d.ts +2 -0
  233. package/dist/light-plus-CZuVqSLX.js +4 -0
  234. package/dist/linear-CxGB80S5.js +277 -0
  235. package/dist/liquid-CHzkx3jT.js +14 -0
  236. package/dist/llvm-co1rIKs3.js +6 -0
  237. package/dist/log-Al8wyEFV.js +6 -0
  238. package/dist/logo-DBa4JDzV.js +6 -0
  239. package/dist/lua-kX5WP_P5.js +8 -0
  240. package/dist/luau-DtBSxLyz.js +6 -0
  241. package/dist/make-CsMclxtr.js +6 -0
  242. package/dist/markdown-CrScaQ96.js +6 -0
  243. package/dist/marko-ls0Jg2j8.js +14 -0
  244. package/dist/material-theme-D6KBX41T.js +4 -0
  245. package/dist/material-theme-darker-CkRroheE.js +4 -0
  246. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  247. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  248. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  249. package/dist/matlab-BOAaUVP0.js +6 -0
  250. package/dist/mdc-DIP5_jeM.js +15 -0
  251. package/dist/mdx-BOhZZUJ8.js +6 -0
  252. package/dist/mermaid-B0ixDHKN.js +6 -0
  253. package/dist/mermaid-NA5CF7SZ-DekDSZe_.js +6 -0
  254. package/dist/mermaid.core-xMGW442o.js +14414 -0
  255. package/dist/min-dark-C7ak0t6c.js +4 -0
  256. package/dist/min-light-CKFxVcPp.js +4 -0
  257. package/dist/mindmap-definition-VGOIOE7T-UHZgRHb7.js +790 -0
  258. package/dist/mipsasm-CTx18fBl.js +6 -0
  259. package/dist/mojo-BD611d7o.js +6 -0
  260. package/dist/monokai-C1KBYcO0.js +4 -0
  261. package/dist/move-F-dICmj2.js +6 -0
  262. package/dist/narrat-DmhDCBs-.js +6 -0
  263. package/dist/nextflow-DmSVRGjG.js +6 -0
  264. package/dist/nginx-COxS3qoU.js +9 -0
  265. package/dist/night-owl-Bm2rzalh.js +4 -0
  266. package/dist/nim-CCwXZLHG.js +21 -0
  267. package/dist/nix-BZK5F767.js +9 -0
  268. package/dist/nord-CC5OiUXg.js +4 -0
  269. package/dist/nushell-D8j3dhT-.js +6 -0
  270. package/dist/objective-c-Itk8tzmv.js +6 -0
  271. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  272. package/dist/ocaml-eSVK32Eg.js +6 -0
  273. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  274. package/dist/one-light-D9sNaUtq.js +4 -0
  275. package/dist/openscad-Sp5uZ6f2.js +6 -0
  276. package/dist/ordinal-MUacOSdK.js +65 -0
  277. package/dist/pascal-xy8pJNns.js +6 -0
  278. package/dist/perl-NvKK8p2P.js +17 -0
  279. package/dist/php-CK5hNnT0.js +19 -0
  280. package/dist/pieDiagram-ADFJNKIX-CHrTFTbw.js +166 -0
  281. package/dist/pkl-C-zSNmaA.js +6 -0
  282. package/dist/plastic-CSTz3KZp.js +4 -0
  283. package/dist/plsql-pVbGZfOv.js +6 -0
  284. package/dist/po-BNfHvqmm.js +6 -0
  285. package/dist/poimandres-C-VADXHD.js +4 -0
  286. package/dist/polar-CAZahv3u.js +6 -0
  287. package/dist/postcss-05aHdL-n.js +6 -0
  288. package/dist/powerquery-DI9HkTvs.js +6 -0
  289. package/dist/powershell-Clc4ydu-.js +6 -0
  290. package/dist/prisma-FZjmVtSl.js +6 -0
  291. package/dist/prolog-C5-yg4TO.js +6 -0
  292. package/dist/proto-MmCPeFAD.js +6 -0
  293. package/dist/pug-XOw9Q1Ho.js +12 -0
  294. package/dist/puppet-CUJHmnxV.js +6 -0
  295. package/dist/purescript-rUfGld-4.js +6 -0
  296. package/dist/python-BFNSHbwJ.js +6 -0
  297. package/dist/qml-rTNXsquU.js +8 -0
  298. package/dist/qmldir-BInDYbpo.js +6 -0
  299. package/dist/qss-AeJTysr_.js +6 -0
  300. package/dist/quadrantDiagram-AYHSOK5B-CDfhMB18.js +1030 -0
  301. package/dist/r-Bm0uF0U2.js +6 -0
  302. package/dist/racket-B83wSAja.js +6 -0
  303. package/dist/raku-nEQ4ZJJ7.js +6 -0
  304. package/dist/razor-CoqPuKQU.js +12 -0
  305. package/dist/red-7y8PH7HH.js +4 -0
  306. package/dist/reg-m_s_Kiip.js +6 -0
  307. package/dist/regexp-BazyLpPg.js +6 -0
  308. package/dist/rel-BcRfyd6Q.js +6 -0
  309. package/dist/requirementDiagram-UZGBJVZJ-C0aeVQh6.js +856 -0
  310. package/dist/riscv-Ce8MAQLP.js +6 -0
  311. package/dist/rose-pine-BKc3yVeu.js +4 -0
  312. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  313. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  314. package/dist/rosmsg-Cz0w1km8.js +6 -0
  315. package/dist/rst-AoEjemIj.js +36 -0
  316. package/dist/ruby-CGSl8JoB.js +36 -0
  317. package/dist/rust-CLzF9zIN.js +6 -0
  318. package/dist/sankeyDiagram-TZEHDZUN-kjxRgXd2.js +830 -0
  319. package/dist/sas-fpEvgATw.js +8 -0
  320. package/dist/sass-DxHp5rTx.js +6 -0
  321. package/dist/scala-D4grkFkl.js +6 -0
  322. package/dist/scheme-BCRWuEm4.js +6 -0
  323. package/dist/scss-B1FaCqwR.js +8 -0
  324. package/dist/sdbl-B7T8abf4.js +6 -0
  325. package/dist/sequenceDiagram-WL72ISMW-Bs0jyVuH.js +2526 -0
  326. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  327. package/dist/shellscript-InADTalH.js +6 -0
  328. package/dist/shellsession-DiDJNQdy.js +8 -0
  329. package/dist/slack-dark-i7wN4OET.js +4 -0
  330. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  331. package/dist/smalltalk-BlI1_OkM.js +6 -0
  332. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  333. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  334. package/dist/solarized-light-BheCkDPT.js +4 -0
  335. package/dist/solidity-DUWnFhS6.js +6 -0
  336. package/dist/soy-YPoZ1G2p.js +10 -0
  337. package/dist/sparql-B0KWFEri.js +8 -0
  338. package/dist/splunk-CRXR8A9s.js +6 -0
  339. package/dist/sql-Cn_v3PB0.js +6 -0
  340. package/dist/ssh-config-DP-hNVbF.js +6 -0
  341. package/dist/stata-B8c5fTjX.js +8 -0
  342. package/dist/stateDiagram-FKZM4ZOC-CAWwlh9R.js +268 -0
  343. package/dist/stateDiagram-v2-4FDKWEC3-9TYlTzc3.js +21 -0
  344. package/dist/style.css +1 -1
  345. package/dist/stylus-CyKEU1Ej.js +6 -0
  346. package/dist/svelte-5UasyOg7.js +14 -0
  347. package/dist/swift-9UzSvamq.js +6 -0
  348. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  349. package/dist/system-verilog-BCm7smPJ.js +6 -0
  350. package/dist/systemd-C-4qm6XH.js +6 -0
  351. package/dist/tailwind.css +126 -0
  352. package/dist/talonscript-CFF3LF_O.js +6 -0
  353. package/dist/tasl-Cg_WBUAe.js +6 -0
  354. package/dist/tcl-DN7buRTF.js +6 -0
  355. package/dist/templ-peLZIM2D.js +12 -0
  356. package/dist/terraform-DGvcn9zM.js +6 -0
  357. package/dist/tex-DpOayVob.js +8 -0
  358. package/dist/timeline-definition-IT6M3QCI-DrPozOxH.js +805 -0
  359. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  360. package/dist/toml-DY62mUL_.js +6 -0
  361. package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
  362. package/dist/ts-tags-CWmBp2js.js +43 -0
  363. package/dist/tsv-BtvSkaG0.js +6 -0
  364. package/dist/tsx-B8rCNbgL.js +6 -0
  365. package/dist/turtle-_H59FV7D.js +6 -0
  366. package/dist/twig-Cpoho6oi.js +35 -0
  367. package/dist/typescript-RycA9KXf.js +6 -0
  368. package/dist/typespec-DWqp-kUU.js +6 -0
  369. package/dist/typst-D_1QKWns.js +6 -0
  370. package/dist/v-BPCNiyYe.js +6 -0
  371. package/dist/vala-uxaPR7d1.js +6 -0
  372. package/dist/vb-D8_c5-KN.js +6 -0
  373. package/dist/verilog-B-bybjPF.js +6 -0
  374. package/dist/vesper-BckBta1U.js +4 -0
  375. package/dist/vhdl-CUlNa8ac.js +6 -0
  376. package/dist/viml-DsfA-sWm.js +6 -0
  377. package/dist/vitesse-black-BoGvW84i.js +4 -0
  378. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  379. package/dist/vitesse-light-CcmG315c.js +4 -0
  380. package/dist/vue-DmFKWfEU.js +31 -0
  381. package/dist/vue-html-BB2aI7Yc.js +15 -0
  382. package/dist/vue-vine-CznNap4x.js +24 -0
  383. package/dist/vyper-CPQuu50u.js +6 -0
  384. package/dist/wasm-BBXxrAl7.js +6 -0
  385. package/dist/wasm-DQxwEHae.js +7 -0
  386. package/dist/wenyan-pbVjoM9_.js +6 -0
  387. package/dist/wgsl-DY4iK1q1.js +6 -0
  388. package/dist/wikitext-Z-MoUasO.js +6 -0
  389. package/dist/wit-CQMQOlTg.js +6 -0
  390. package/dist/wolfram-Dz4KXISs.js +6 -0
  391. package/dist/xml-C2J0sS9M.js +8 -0
  392. package/dist/xsl-CbTBIiv3.js +9 -0
  393. package/dist/xychartDiagram-PRI3JC2R-BkO8dJff.js +1345 -0
  394. package/dist/yaml-DaO7k5B1.js +6 -0
  395. package/dist/zenscript-CxBjpf9c.js +6 -0
  396. package/dist/zig-Vm0PO9wB.js +6 -0
  397. package/package.json +35 -7
@@ -0,0 +1,724 @@
1
+ import { _ as c, l as te, d as W, H as fe, af as ye, ag as be, ah as me, W as _e, C as K, i as G, p as Ee, J as ke, X as Se, Y as le, $ as ce } from "./mermaid.core-xMGW442o.js";
2
+ import { g as Ne } from "./chunk-FMBD7UC4-CVr83prI.js";
3
+ import "./index-C2DJ8qoy.js";
4
+ import "react";
5
+ import "react-dom";
6
+ var $ = function() {
7
+ var t = /* @__PURE__ */ c(function(_, s, n, a) {
8
+ for (n = n || {}, a = _.length; a--; n[_[a]] = s)
9
+ ;
10
+ return n;
11
+ }, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], E = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], i = [6, 7, 11], H = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], M = [1, 35], U = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], j = [1, 38], V = {
12
+ trace: /* @__PURE__ */ c(function() {
13
+ }, "trace"),
14
+ yy: {},
15
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
16
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
17
+ 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, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
18
+ performAction: /* @__PURE__ */ c(function(s, n, a, o, u, e, B) {
19
+ var l = e.length - 1;
20
+ switch (u) {
21
+ case 6:
22
+ case 7:
23
+ return o;
24
+ case 8:
25
+ o.getLogger().trace("Stop NL ");
26
+ break;
27
+ case 9:
28
+ o.getLogger().trace("Stop EOF ");
29
+ break;
30
+ case 11:
31
+ o.getLogger().trace("Stop NL2 ");
32
+ break;
33
+ case 12:
34
+ o.getLogger().trace("Stop EOF2 ");
35
+ break;
36
+ case 15:
37
+ o.getLogger().info("Node: ", e[l - 1].id), o.addNode(e[l - 2].length, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
38
+ break;
39
+ case 16:
40
+ o.getLogger().info("Node: ", e[l].id), o.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
41
+ break;
42
+ case 17:
43
+ o.getLogger().trace("Icon: ", e[l]), o.decorateNode({ icon: e[l] });
44
+ break;
45
+ case 18:
46
+ case 23:
47
+ o.decorateNode({ class: e[l] });
48
+ break;
49
+ case 19:
50
+ o.getLogger().trace("SPACELIST");
51
+ break;
52
+ case 20:
53
+ o.getLogger().trace("Node: ", e[l - 1].id), o.addNode(0, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
54
+ break;
55
+ case 21:
56
+ o.getLogger().trace("Node: ", e[l].id), o.addNode(0, e[l].id, e[l].descr, e[l].type);
57
+ break;
58
+ case 22:
59
+ o.decorateNode({ icon: e[l] });
60
+ break;
61
+ case 27:
62
+ o.getLogger().trace("node found ..", e[l - 2]), this.$ = { id: e[l - 1], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
63
+ break;
64
+ case 28:
65
+ this.$ = { id: e[l], descr: e[l], type: 0 };
66
+ break;
67
+ case 29:
68
+ o.getLogger().trace("node found ..", e[l - 3]), this.$ = { id: e[l - 3], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
69
+ break;
70
+ case 30:
71
+ this.$ = e[l - 1] + e[l];
72
+ break;
73
+ case 31:
74
+ this.$ = e[l];
75
+ break;
76
+ }
77
+ }, "anonymous"),
78
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(i, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(i, [2, 19]), t(i, [2, 21], { 15: 30, 24: H }), t(i, [2, 22]), t(i, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: M, 11: U }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(i, [2, 16], { 15: 37, 24: H }), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 20], { 24: j }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: M, 11: U }), t(A, [2, 11]), t(A, [2, 12]), t(i, [2, 15], { 24: j }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
79
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
80
+ parseError: /* @__PURE__ */ c(function(s, n) {
81
+ if (n.recoverable)
82
+ this.trace(s);
83
+ else {
84
+ var a = new Error(s);
85
+ throw a.hash = n, a;
86
+ }
87
+ }, "parseError"),
88
+ parse: /* @__PURE__ */ c(function(s) {
89
+ var n = this, a = [0], o = [], u = [null], e = [], B = this.table, l = "", z = 0, ie = 0, ue = 2, re = 1, ge = e.slice.call(arguments, 1), b = Object.create(this.lexer), T = { yy: {} };
90
+ for (var J in this.yy)
91
+ Object.prototype.hasOwnProperty.call(this.yy, J) && (T.yy[J] = this.yy[J]);
92
+ b.setInput(s, T.yy), T.yy.lexer = b, T.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
93
+ var q = b.yylloc;
94
+ e.push(q);
95
+ var de = b.options && b.options.ranges;
96
+ typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
97
+ function pe(S) {
98
+ a.length = a.length - 2 * S, u.length = u.length - S, e.length = e.length - S;
99
+ }
100
+ c(pe, "popStack");
101
+ function ae() {
102
+ var S;
103
+ return S = o.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
104
+ }
105
+ c(ae, "lex");
106
+ for (var k, R, v, Q, F = {}, X, I, oe, Y; ; ) {
107
+ if (R = a[a.length - 1], this.defaultActions[R] ? v = this.defaultActions[R] : ((k === null || typeof k > "u") && (k = ae()), v = B[R] && B[R][k]), typeof v > "u" || !v.length || !v[0]) {
108
+ var Z = "";
109
+ Y = [];
110
+ for (X in B[R])
111
+ this.terminals_[X] && X > ue && Y.push("'" + this.terminals_[X] + "'");
112
+ b.showPosition ? Z = "Parse error on line " + (z + 1) + `:
113
+ ` + b.showPosition() + `
114
+ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
115
+ text: b.match,
116
+ token: this.terminals_[k] || k,
117
+ line: b.yylineno,
118
+ loc: q,
119
+ expected: Y
120
+ });
121
+ }
122
+ if (v[0] instanceof Array && v.length > 1)
123
+ throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + k);
124
+ switch (v[0]) {
125
+ case 1:
126
+ a.push(k), u.push(b.yytext), e.push(b.yylloc), a.push(v[1]), k = null, ie = b.yyleng, l = b.yytext, z = b.yylineno, q = b.yylloc;
127
+ break;
128
+ case 2:
129
+ if (I = this.productions_[v[1]][1], F.$ = u[u.length - I], F._$ = {
130
+ first_line: e[e.length - (I || 1)].first_line,
131
+ last_line: e[e.length - 1].last_line,
132
+ first_column: e[e.length - (I || 1)].first_column,
133
+ last_column: e[e.length - 1].last_column
134
+ }, de && (F._$.range = [
135
+ e[e.length - (I || 1)].range[0],
136
+ e[e.length - 1].range[1]
137
+ ]), Q = this.performAction.apply(F, [
138
+ l,
139
+ ie,
140
+ z,
141
+ T.yy,
142
+ v[1],
143
+ u,
144
+ e
145
+ ].concat(ge)), typeof Q < "u")
146
+ return Q;
147
+ I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(F.$), e.push(F._$), oe = B[a[a.length - 2]][a[a.length - 1]], a.push(oe);
148
+ break;
149
+ case 3:
150
+ return !0;
151
+ }
152
+ }
153
+ return !0;
154
+ }, "parse")
155
+ }, m = /* @__PURE__ */ function() {
156
+ var _ = {
157
+ EOF: 1,
158
+ parseError: /* @__PURE__ */ c(function(n, a) {
159
+ if (this.yy.parser)
160
+ this.yy.parser.parseError(n, a);
161
+ else
162
+ throw new Error(n);
163
+ }, "parseError"),
164
+ // resets the lexer, sets new input
165
+ setInput: /* @__PURE__ */ c(function(s, n) {
166
+ return this.yy = n || 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 = {
167
+ first_line: 1,
168
+ first_column: 0,
169
+ last_line: 1,
170
+ last_column: 0
171
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
172
+ }, "setInput"),
173
+ // consumes and returns one char from the input
174
+ input: /* @__PURE__ */ c(function() {
175
+ var s = this._input[0];
176
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
177
+ var n = s.match(/(?:\r\n?|\n).*/g);
178
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
179
+ }, "input"),
180
+ // unshifts one char (or a string) into the input
181
+ unput: /* @__PURE__ */ c(function(s) {
182
+ var n = s.length, a = s.split(/(?:\r\n?|\n)/g);
183
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
184
+ var o = this.match.split(/(?:\r\n?|\n)/g);
185
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
186
+ var u = this.yylloc.range;
187
+ return this.yylloc = {
188
+ first_line: this.yylloc.first_line,
189
+ last_line: this.yylineno + 1,
190
+ first_column: this.yylloc.first_column,
191
+ last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - n
192
+ }, this.options.ranges && (this.yylloc.range = [u[0], u[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
193
+ }, "unput"),
194
+ // When called from action, caches matched text and appends it on next action
195
+ more: /* @__PURE__ */ c(function() {
196
+ return this._more = !0, this;
197
+ }, "more"),
198
+ // 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.
199
+ reject: /* @__PURE__ */ c(function() {
200
+ if (this.options.backtrack_lexer)
201
+ this._backtrack = !0;
202
+ else
203
+ 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).
204
+ ` + this.showPosition(), {
205
+ text: "",
206
+ token: null,
207
+ line: this.yylineno
208
+ });
209
+ return this;
210
+ }, "reject"),
211
+ // retain first n characters of the match
212
+ less: /* @__PURE__ */ c(function(s) {
213
+ this.unput(this.match.slice(s));
214
+ }, "less"),
215
+ // displays already matched input, i.e. for error messages
216
+ pastInput: /* @__PURE__ */ c(function() {
217
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
218
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
219
+ }, "pastInput"),
220
+ // displays upcoming input, i.e. for error messages
221
+ upcomingInput: /* @__PURE__ */ c(function() {
222
+ var s = this.match;
223
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
224
+ }, "upcomingInput"),
225
+ // displays the character position where the lexing error occurred, i.e. for error messages
226
+ showPosition: /* @__PURE__ */ c(function() {
227
+ var s = this.pastInput(), n = new Array(s.length + 1).join("-");
228
+ return s + this.upcomingInput() + `
229
+ ` + n + "^";
230
+ }, "showPosition"),
231
+ // test the lexed token: return FALSE when not a match, otherwise return token
232
+ test_match: /* @__PURE__ */ c(function(s, n) {
233
+ var a, o, u;
234
+ if (this.options.backtrack_lexer && (u = {
235
+ yylineno: this.yylineno,
236
+ yylloc: {
237
+ first_line: this.yylloc.first_line,
238
+ last_line: this.last_line,
239
+ first_column: this.yylloc.first_column,
240
+ last_column: this.yylloc.last_column
241
+ },
242
+ yytext: this.yytext,
243
+ match: this.match,
244
+ matches: this.matches,
245
+ matched: this.matched,
246
+ yyleng: this.yyleng,
247
+ offset: this.offset,
248
+ _more: this._more,
249
+ _input: this._input,
250
+ yy: this.yy,
251
+ conditionStack: this.conditionStack.slice(0),
252
+ done: this.done
253
+ }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
254
+ first_line: this.yylloc.last_line,
255
+ last_line: this.yylineno + 1,
256
+ first_column: this.yylloc.last_column,
257
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
258
+ }, 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], a = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
259
+ return a;
260
+ if (this._backtrack) {
261
+ for (var e in u)
262
+ this[e] = u[e];
263
+ return !1;
264
+ }
265
+ return !1;
266
+ }, "test_match"),
267
+ // return next match in input
268
+ next: /* @__PURE__ */ c(function() {
269
+ if (this.done)
270
+ return this.EOF;
271
+ this._input || (this.done = !0);
272
+ var s, n, a, o;
273
+ this._more || (this.yytext = "", this.match = "");
274
+ for (var u = this._currentRules(), e = 0; e < u.length; e++)
275
+ if (a = this._input.match(this.rules[u[e]]), a && (!n || a[0].length > n[0].length)) {
276
+ if (n = a, o = e, this.options.backtrack_lexer) {
277
+ if (s = this.test_match(a, u[e]), s !== !1)
278
+ return s;
279
+ if (this._backtrack) {
280
+ n = !1;
281
+ continue;
282
+ } else
283
+ return !1;
284
+ } else if (!this.options.flex)
285
+ break;
286
+ }
287
+ return n ? (s = this.test_match(n, u[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
288
+ ` + this.showPosition(), {
289
+ text: "",
290
+ token: null,
291
+ line: this.yylineno
292
+ });
293
+ }, "next"),
294
+ // return next match that has a token
295
+ lex: /* @__PURE__ */ c(function() {
296
+ var n = this.next();
297
+ return n || this.lex();
298
+ }, "lex"),
299
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
300
+ begin: /* @__PURE__ */ c(function(n) {
301
+ this.conditionStack.push(n);
302
+ }, "begin"),
303
+ // pop the previously active lexer condition state off the condition stack
304
+ popState: /* @__PURE__ */ c(function() {
305
+ var n = this.conditionStack.length - 1;
306
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
307
+ }, "popState"),
308
+ // produce the lexer rule set which is active for the currently active lexer condition state
309
+ _currentRules: /* @__PURE__ */ c(function() {
310
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
311
+ }, "_currentRules"),
312
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
313
+ topState: /* @__PURE__ */ c(function(n) {
314
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
315
+ }, "topState"),
316
+ // alias for begin(condition)
317
+ pushState: /* @__PURE__ */ c(function(n) {
318
+ this.begin(n);
319
+ }, "pushState"),
320
+ // return the number of states currently on the stack
321
+ stateStackSize: /* @__PURE__ */ c(function() {
322
+ return this.conditionStack.length;
323
+ }, "stateStackSize"),
324
+ options: { "case-insensitive": !0 },
325
+ performAction: /* @__PURE__ */ c(function(n, a, o, u) {
326
+ switch (o) {
327
+ case 0:
328
+ return this.pushState("shapeData"), a.yytext = "", 24;
329
+ case 1:
330
+ return this.pushState("shapeDataStr"), 24;
331
+ case 2:
332
+ return this.popState(), 24;
333
+ case 3:
334
+ const e = /\n\s*/g;
335
+ return a.yytext = a.yytext.replace(e, "<br/>"), 24;
336
+ case 4:
337
+ return 24;
338
+ case 5:
339
+ this.popState();
340
+ break;
341
+ case 6:
342
+ return n.getLogger().trace("Found comment", a.yytext), 6;
343
+ case 7:
344
+ return 8;
345
+ case 8:
346
+ this.begin("CLASS");
347
+ break;
348
+ case 9:
349
+ return this.popState(), 17;
350
+ case 10:
351
+ this.popState();
352
+ break;
353
+ case 11:
354
+ n.getLogger().trace("Begin icon"), this.begin("ICON");
355
+ break;
356
+ case 12:
357
+ return n.getLogger().trace("SPACELINE"), 6;
358
+ case 13:
359
+ return 7;
360
+ case 14:
361
+ return 16;
362
+ case 15:
363
+ n.getLogger().trace("end icon"), this.popState();
364
+ break;
365
+ case 16:
366
+ return n.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
367
+ case 17:
368
+ return n.getLogger().trace("Cloud"), this.begin("NODE"), 20;
369
+ case 18:
370
+ return n.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
371
+ case 19:
372
+ return n.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
373
+ case 20:
374
+ return this.begin("NODE"), 20;
375
+ case 21:
376
+ return this.begin("NODE"), 20;
377
+ case 22:
378
+ return this.begin("NODE"), 20;
379
+ case 23:
380
+ return this.begin("NODE"), 20;
381
+ case 24:
382
+ return 13;
383
+ case 25:
384
+ return 23;
385
+ case 26:
386
+ return 11;
387
+ case 27:
388
+ this.begin("NSTR2");
389
+ break;
390
+ case 28:
391
+ return "NODE_DESCR";
392
+ case 29:
393
+ this.popState();
394
+ break;
395
+ case 30:
396
+ n.getLogger().trace("Starting NSTR"), this.begin("NSTR");
397
+ break;
398
+ case 31:
399
+ return n.getLogger().trace("description:", a.yytext), "NODE_DESCR";
400
+ case 32:
401
+ this.popState();
402
+ break;
403
+ case 33:
404
+ return this.popState(), n.getLogger().trace("node end ))"), "NODE_DEND";
405
+ case 34:
406
+ return this.popState(), n.getLogger().trace("node end )"), "NODE_DEND";
407
+ case 35:
408
+ return this.popState(), n.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
409
+ case 36:
410
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
411
+ case 37:
412
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
413
+ case 38:
414
+ return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
415
+ case 39:
416
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
417
+ case 40:
418
+ return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
419
+ case 41:
420
+ return n.getLogger().trace("Long description:", a.yytext), 21;
421
+ case 42:
422
+ return n.getLogger().trace("Long description:", a.yytext), 21;
423
+ }
424
+ }, "anonymous"),
425
+ rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\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],
426
+ conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
427
+ };
428
+ return _;
429
+ }();
430
+ V.lexer = m;
431
+ function O() {
432
+ this.yy = {};
433
+ }
434
+ return c(O, "Parser"), O.prototype = V, V.Parser = O, new O();
435
+ }();
436
+ $.parser = $;
437
+ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
438
+ D = [], ne = [], ee = 0, se = {};
439
+ }, "clear"), De = /* @__PURE__ */ c((t) => {
440
+ if (D.length === 0)
441
+ return null;
442
+ const g = D[0].level;
443
+ let d = null;
444
+ for (let r = D.length - 1; r >= 0; r--)
445
+ if (D[r].level === g && !d && (d = D[r]), D[r].level < g)
446
+ throw new Error('Items without section detected, found section ("' + D[r].label + '")');
447
+ return t === (d == null ? void 0 : d.level) ? null : d;
448
+ }, "getSection"), he = /* @__PURE__ */ c(function() {
449
+ return ne;
450
+ }, "getSections"), Le = /* @__PURE__ */ c(function() {
451
+ const t = [], g = [], d = he(), r = W();
452
+ for (const p of d) {
453
+ const E = {
454
+ id: p.id,
455
+ label: G(p.label ?? "", r),
456
+ isGroup: !0,
457
+ ticket: p.ticket,
458
+ shape: "kanbanSection",
459
+ level: p.level,
460
+ look: r.look
461
+ };
462
+ g.push(E);
463
+ const f = D.filter((h) => h.parentId === p.id);
464
+ for (const h of f) {
465
+ const L = {
466
+ id: h.id,
467
+ parentId: p.id,
468
+ label: G(h.label ?? "", r),
469
+ isGroup: !1,
470
+ ticket: h == null ? void 0 : h.ticket,
471
+ priority: h == null ? void 0 : h.priority,
472
+ assigned: h == null ? void 0 : h.assigned,
473
+ icon: h == null ? void 0 : h.icon,
474
+ shape: "kanbanItem",
475
+ level: h.level,
476
+ rx: 5,
477
+ ry: 5,
478
+ cssStyles: ["text-align: left"]
479
+ };
480
+ g.push(L);
481
+ }
482
+ }
483
+ return { nodes: g, edges: t, other: {}, config: W() };
484
+ }, "getData"), Oe = /* @__PURE__ */ c((t, g, d, r, p) => {
485
+ var C, w;
486
+ const E = W();
487
+ let f = ((C = E.mindmap) == null ? void 0 : C.padding) ?? K.mindmap.padding;
488
+ switch (r) {
489
+ case y.ROUNDED_RECT:
490
+ case y.RECT:
491
+ case y.HEXAGON:
492
+ f *= 2;
493
+ }
494
+ const h = {
495
+ id: G(g, E) || "kbn" + ee++,
496
+ level: t,
497
+ label: G(d, E),
498
+ width: ((w = E.mindmap) == null ? void 0 : w.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
499
+ padding: f,
500
+ isGroup: !1
501
+ };
502
+ if (p !== void 0) {
503
+ let N;
504
+ p.includes(`
505
+ `) ? N = p + `
506
+ ` : N = `{
507
+ ` + p + `
508
+ }`;
509
+ const i = Ee(N, { schema: ke });
510
+ if (i.shape && (i.shape !== i.shape.toLowerCase() || i.shape.includes("_")))
511
+ throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);
512
+ i != null && i.shape && i.shape === "kanbanItem" && (h.shape = i == null ? void 0 : i.shape), i != null && i.label && (h.label = i == null ? void 0 : i.label), i != null && i.icon && (h.icon = i == null ? void 0 : i.icon.toString()), i != null && i.assigned && (h.assigned = i == null ? void 0 : i.assigned.toString()), i != null && i.ticket && (h.ticket = i == null ? void 0 : i.ticket.toString()), i != null && i.priority && (h.priority = i == null ? void 0 : i.priority);
513
+ }
514
+ const L = De(t);
515
+ L ? h.parentId = L.id || "kbn" + ee++ : ne.push(h), D.push(h);
516
+ }, "addNode"), y = {
517
+ DEFAULT: 0,
518
+ NO_BORDER: 0,
519
+ ROUNDED_RECT: 1,
520
+ RECT: 2,
521
+ CIRCLE: 3,
522
+ CLOUD: 4,
523
+ BANG: 5,
524
+ HEXAGON: 6
525
+ }, Ie = /* @__PURE__ */ c((t, g) => {
526
+ switch (te.debug("In get type", t, g), t) {
527
+ case "[":
528
+ return y.RECT;
529
+ case "(":
530
+ return g === ")" ? y.ROUNDED_RECT : y.CLOUD;
531
+ case "((":
532
+ return y.CIRCLE;
533
+ case ")":
534
+ return y.CLOUD;
535
+ case "))":
536
+ return y.BANG;
537
+ case "{{":
538
+ return y.HEXAGON;
539
+ default:
540
+ return y.DEFAULT;
541
+ }
542
+ }, "getType"), Ce = /* @__PURE__ */ c((t, g) => {
543
+ se[t] = g;
544
+ }, "setElementForId"), we = /* @__PURE__ */ c((t) => {
545
+ if (!t)
546
+ return;
547
+ const g = W(), d = D[D.length - 1];
548
+ t.icon && (d.icon = G(t.icon, g)), t.class && (d.cssClasses = G(t.class, g));
549
+ }, "decorateNode"), Ae = /* @__PURE__ */ c((t) => {
550
+ switch (t) {
551
+ case y.DEFAULT:
552
+ return "no-border";
553
+ case y.RECT:
554
+ return "rect";
555
+ case y.ROUNDED_RECT:
556
+ return "rounded-rect";
557
+ case y.CIRCLE:
558
+ return "circle";
559
+ case y.CLOUD:
560
+ return "cloud";
561
+ case y.BANG:
562
+ return "bang";
563
+ case y.HEXAGON:
564
+ return "hexgon";
565
+ default:
566
+ return "no-border";
567
+ }
568
+ }, "type2Str"), Te = /* @__PURE__ */ c(() => te, "getLogger"), Re = /* @__PURE__ */ c((t) => se[t], "getElementById"), Pe = {
569
+ clear: ve,
570
+ addNode: Oe,
571
+ getSections: he,
572
+ getData: Le,
573
+ nodeType: y,
574
+ getType: Ie,
575
+ setElementForId: Ce,
576
+ decorateNode: we,
577
+ type2Str: Ae,
578
+ getLogger: Te,
579
+ getElementById: Re
580
+ }, Ve = Pe, Be = /* @__PURE__ */ c(async (t, g, d, r) => {
581
+ var M, U, A, j, V;
582
+ te.debug(`Rendering kanban diagram
583
+ ` + t);
584
+ const E = r.db.getData(), f = W();
585
+ f.htmlLabels = !1;
586
+ const h = fe(g), L = h.append("g");
587
+ L.attr("class", "sections");
588
+ const C = h.append("g");
589
+ C.attr("class", "items");
590
+ const w = E.nodes.filter(
591
+ // TODO: TypeScript 5.5 will infer this predicate automatically
592
+ (m) => m.isGroup
593
+ );
594
+ let N = 0;
595
+ const i = 10, H = [];
596
+ let x = 25;
597
+ for (const m of w) {
598
+ const O = ((M = f == null ? void 0 : f.kanban) == null ? void 0 : M.sectionWidth) || 200;
599
+ N = N + 1, m.x = O * N + (N - 1) * i / 2, m.width = O, m.y = 0, m.height = O * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + N;
600
+ const _ = await ye(L, m);
601
+ x = Math.max(x, (U = _ == null ? void 0 : _.labelBBox) == null ? void 0 : U.height), H.push(_);
602
+ }
603
+ let P = 0;
604
+ for (const m of w) {
605
+ const O = H[P];
606
+ P = P + 1;
607
+ const _ = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -_ * 3 / 2 + x;
608
+ let n = s;
609
+ const a = E.nodes.filter((e) => e.parentId === m.id);
610
+ for (const e of a) {
611
+ if (e.isGroup)
612
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
613
+ e.x = m.x, e.width = _ - 1.5 * i;
614
+ const l = (await be(C, e, { config: f })).node().getBBox();
615
+ e.y = n + l.height / 2, await me(e), n = e.y + l.height / 2 + i / 2;
616
+ }
617
+ const o = O.cluster.select("rect"), u = Math.max(n - s + 3 * i, 50) + (x - 25);
618
+ o.attr("height", u);
619
+ }
620
+ _e(
621
+ void 0,
622
+ h,
623
+ ((j = f.mindmap) == null ? void 0 : j.padding) ?? K.kanban.padding,
624
+ ((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? K.kanban.useMaxWidth
625
+ );
626
+ }, "draw"), Fe = {
627
+ draw: Be
628
+ }, Ge = /* @__PURE__ */ c((t) => {
629
+ let g = "";
630
+ for (let r = 0; r < t.THEME_COLOR_LIMIT; r++)
631
+ t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], Se(t["lineColor" + r]) ? t["lineColor" + r] = le(t["lineColor" + r], 20) : t["lineColor" + r] = ce(t["lineColor" + r], 20);
632
+ const d = /* @__PURE__ */ c((r, p) => t.darkMode ? ce(r, p) : le(r, p), "adjuster");
633
+ for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) {
634
+ const p = "" + (17 - 3 * r);
635
+ g += `
636
+ .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} polygon, .section-${r - 1} path {
637
+ fill: ${d(t["cScale" + r], 10)};
638
+ stroke: ${d(t["cScale" + r], 10)};
639
+
640
+ }
641
+ .section-${r - 1} text {
642
+ fill: ${t["cScaleLabel" + r]};
643
+ }
644
+ .node-icon-${r - 1} {
645
+ font-size: 40px;
646
+ color: ${t["cScaleLabel" + r]};
647
+ }
648
+ .section-edge-${r - 1}{
649
+ stroke: ${t["cScale" + r]};
650
+ }
651
+ .edge-depth-${r - 1}{
652
+ stroke-width: ${p};
653
+ }
654
+ .section-${r - 1} line {
655
+ stroke: ${t["cScaleInv" + r]} ;
656
+ stroke-width: 3;
657
+ }
658
+
659
+ .disabled, .disabled circle, .disabled text {
660
+ fill: lightgray;
661
+ }
662
+ .disabled text {
663
+ fill: #efefef;
664
+ }
665
+
666
+ .node rect,
667
+ .node circle,
668
+ .node ellipse,
669
+ .node polygon,
670
+ .node path {
671
+ fill: ${t.background};
672
+ stroke: ${t.nodeBorder};
673
+ stroke-width: 1px;
674
+ }
675
+
676
+ .kanban-ticket-link {
677
+ fill: ${t.background};
678
+ stroke: ${t.nodeBorder};
679
+ text-decoration: underline;
680
+ }
681
+ `;
682
+ }
683
+ return g;
684
+ }, "genSections"), He = /* @__PURE__ */ c((t) => `
685
+ .edge {
686
+ stroke-width: 3;
687
+ }
688
+ ${Ge(t)}
689
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
690
+ fill: ${t.git0};
691
+ }
692
+ .section-root text {
693
+ fill: ${t.gitBranchLabel0};
694
+ }
695
+ .icon-container {
696
+ height:100%;
697
+ display: flex;
698
+ justify-content: center;
699
+ align-items: center;
700
+ }
701
+ .edge {
702
+ fill: none;
703
+ }
704
+ .cluster-label, .label {
705
+ color: ${t.textColor};
706
+ fill: ${t.textColor};
707
+ }
708
+ .kanban-label {
709
+ dy: 1em;
710
+ alignment-baseline: middle;
711
+ text-anchor: middle;
712
+ dominant-baseline: middle;
713
+ text-align: center;
714
+ }
715
+ ${Ne()}
716
+ `, "getStyles"), Me = He, Ye = {
717
+ db: Ve,
718
+ renderer: Fe,
719
+ parser: xe,
720
+ styles: Me
721
+ };
722
+ export {
723
+ Ye as diagram
724
+ };