@foris/ai-agent 0.2.0 → 0.4.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 (401) 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 -1391
  5. package/dist/ai-agent.umd.js +3374 -103
  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-prompt-code-editor/PromptCodeEditor.d.ts +15 -0
  9. package/dist/ai-prompt-code-editor/index.d.ts +1 -0
  10. package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
  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-CYayZuAl.js +85 -0
  20. package/dist/architectureDiagram-VXUJARFQ-CqFKxLlH.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-DEi-xIcu.js +2407 -0
  35. package/dist/bsl-NkNNwerW.js +8 -0
  36. package/dist/c-eeMepfLm.js +6 -0
  37. package/dist/c4Diagram-YG6GDRKO-mFZhX_-U.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-CbDO3juL.js +5 -0
  45. package/dist/chunk-4BX2VUAB-D5qkn5BA.js +9 -0
  46. package/dist/chunk-55IACEB6-CR8xZK7z.js +8 -0
  47. package/dist/chunk-B4BG7PRW-Cm3F2ypm.js +1377 -0
  48. package/dist/chunk-DI55MBZ5-CxISwEU9.js +1383 -0
  49. package/dist/chunk-FMBD7UC4-DZxSUJCY.js +19 -0
  50. package/dist/chunk-QN33PNHL-5NUdQ31M.js +20 -0
  51. package/dist/chunk-QZHKN3VN-CSeHgX9s.js +15 -0
  52. package/dist/chunk-TZMSLE5B-DfqMo2XK.js +64 -0
  53. package/dist/clarity-PKm5CwqM.js +6 -0
  54. package/dist/classDiagram-2ON5EDUG-6wC7c07U.js +22 -0
  55. package/dist/classDiagram-v2-WZHVMYZB-6wC7c07U.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-zqFu2qJj.js +2812 -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-BzL4MMWZ.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-CwTDE2RX.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-UeQhynP7.js +544 -0
  131. package/dist/diagram-QEK2KX5R-DZy1cp9G.js +224 -0
  132. package/dist/diagram-S2PKOQOG-DyT7Ss8-.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-CpzaErVm.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-BHP6h-eN.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-0qqei9Bz.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-DGukWnfa.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/hooks/useCodeTransform.d.ts +13 -0
  195. package/dist/houston-BDYrDoDW.js +4 -0
  196. package/dist/html-B50bmoVb.js +10 -0
  197. package/dist/html-derivative-ByyNxAP5.js +10 -0
  198. package/dist/http-BVIWqb92.js +19 -0
  199. package/dist/hurl-B8OTiYoQ.js +17 -0
  200. package/dist/hxml-GbqSQCLa.js +8 -0
  201. package/dist/hy-Brt5EZ7-.js +6 -0
  202. package/dist/imba-CimUv-Uh.js +6 -0
  203. package/dist/index-Zd10d_CE.js +52486 -0
  204. package/dist/index.d.ts +2 -2
  205. package/dist/infoDiagram-WHAUD3N6-CRWuQBon.js +27 -0
  206. package/dist/ini-BZIuRIvJ.js +6 -0
  207. package/dist/init-DjUOC4st.js +16 -0
  208. package/dist/java-DY6VlHhP.js +6 -0
  209. package/dist/javascript-C25yR2R2.js +6 -0
  210. package/dist/jinja-CI-LSgSv.js +13 -0
  211. package/dist/jison-DdreslRX.js +8 -0
  212. package/dist/journeyDiagram-XKPGCS4Q-Bl-asDPd.js +840 -0
  213. package/dist/json-DxJze_jm.js +6 -0
  214. package/dist/json5-BT4Fjg39.js +6 -0
  215. package/dist/jsonc-CHjZD8gR.js +6 -0
  216. package/dist/jsonl-BGuvDmy9.js +6 -0
  217. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  218. package/dist/jssm-BcADi6EI.js +6 -0
  219. package/dist/jsx-BtKADgXT.js +6 -0
  220. package/dist/julia-ll8P6QXy.js +19 -0
  221. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  222. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  223. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  224. package/dist/kanban-definition-3W4ZIXB7-IdguZzXg.js +724 -0
  225. package/dist/katex.min-l0sNRNKZ.js +1 -0
  226. package/dist/kdl-BNOv9TC3.js +6 -0
  227. package/dist/kotlin-ByBMgTeR.js +6 -0
  228. package/dist/kusto-VWFLl2T0.js +6 -0
  229. package/dist/laserwave-6a00oqik.js +4 -0
  230. package/dist/latex-DF20280u.js +9 -0
  231. package/dist/layout-Q6wQN5dr.js +1730 -0
  232. package/dist/lean-D5yRrexI.js +6 -0
  233. package/dist/less-B1GLI2Di.js +6 -0
  234. package/dist/lib/utils.d.ts +2 -0
  235. package/dist/light-plus-CZuVqSLX.js +4 -0
  236. package/dist/linear-CRqCHTKs.js +277 -0
  237. package/dist/liquid-CHzkx3jT.js +14 -0
  238. package/dist/llvm-co1rIKs3.js +6 -0
  239. package/dist/log-Al8wyEFV.js +6 -0
  240. package/dist/logo-DBa4JDzV.js +6 -0
  241. package/dist/lua-kX5WP_P5.js +8 -0
  242. package/dist/luau-DtBSxLyz.js +6 -0
  243. package/dist/make-CsMclxtr.js +6 -0
  244. package/dist/markdown-CrScaQ96.js +6 -0
  245. package/dist/marko-ls0Jg2j8.js +14 -0
  246. package/dist/material-theme-D6KBX41T.js +4 -0
  247. package/dist/material-theme-darker-CkRroheE.js +4 -0
  248. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  249. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  250. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  251. package/dist/matlab-BOAaUVP0.js +6 -0
  252. package/dist/mdc-DIP5_jeM.js +15 -0
  253. package/dist/mdx-BOhZZUJ8.js +6 -0
  254. package/dist/mermaid-B0ixDHKN.js +6 -0
  255. package/dist/mermaid-NA5CF7SZ-CkTMfgBy.js +6 -0
  256. package/dist/mermaid.core-DyFxH-Px.js +14414 -0
  257. package/dist/min-dark-C7ak0t6c.js +4 -0
  258. package/dist/min-light-CKFxVcPp.js +4 -0
  259. package/dist/mindmap-definition-VGOIOE7T-C8jP5oWr.js +790 -0
  260. package/dist/mipsasm-CTx18fBl.js +6 -0
  261. package/dist/mojo-BD611d7o.js +6 -0
  262. package/dist/monokai-C1KBYcO0.js +4 -0
  263. package/dist/move-F-dICmj2.js +6 -0
  264. package/dist/narrat-DmhDCBs-.js +6 -0
  265. package/dist/nextflow-DmSVRGjG.js +6 -0
  266. package/dist/nginx-COxS3qoU.js +9 -0
  267. package/dist/night-owl-Bm2rzalh.js +4 -0
  268. package/dist/nim-CCwXZLHG.js +21 -0
  269. package/dist/nix-BZK5F767.js +9 -0
  270. package/dist/nord-CC5OiUXg.js +4 -0
  271. package/dist/nushell-D8j3dhT-.js +6 -0
  272. package/dist/objective-c-Itk8tzmv.js +6 -0
  273. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  274. package/dist/ocaml-eSVK32Eg.js +6 -0
  275. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  276. package/dist/one-light-D9sNaUtq.js +4 -0
  277. package/dist/openscad-Sp5uZ6f2.js +6 -0
  278. package/dist/ordinal-MUacOSdK.js +65 -0
  279. package/dist/pascal-xy8pJNns.js +6 -0
  280. package/dist/perl-NvKK8p2P.js +17 -0
  281. package/dist/php-CK5hNnT0.js +19 -0
  282. package/dist/pieDiagram-ADFJNKIX-DuP0zFKX.js +166 -0
  283. package/dist/pkl-C-zSNmaA.js +6 -0
  284. package/dist/plastic-CSTz3KZp.js +4 -0
  285. package/dist/plsql-pVbGZfOv.js +6 -0
  286. package/dist/po-BNfHvqmm.js +6 -0
  287. package/dist/poimandres-C-VADXHD.js +4 -0
  288. package/dist/polar-CAZahv3u.js +6 -0
  289. package/dist/postcss-05aHdL-n.js +6 -0
  290. package/dist/powerquery-DI9HkTvs.js +6 -0
  291. package/dist/powershell-Clc4ydu-.js +6 -0
  292. package/dist/prisma-FZjmVtSl.js +6 -0
  293. package/dist/prolog-C5-yg4TO.js +6 -0
  294. package/dist/proto-MmCPeFAD.js +6 -0
  295. package/dist/pug-XOw9Q1Ho.js +12 -0
  296. package/dist/puppet-CUJHmnxV.js +6 -0
  297. package/dist/purescript-rUfGld-4.js +6 -0
  298. package/dist/python-BFNSHbwJ.js +6 -0
  299. package/dist/qml-rTNXsquU.js +8 -0
  300. package/dist/qmldir-BInDYbpo.js +6 -0
  301. package/dist/qss-AeJTysr_.js +6 -0
  302. package/dist/quadrantDiagram-AYHSOK5B-ACKBMWQA.js +1030 -0
  303. package/dist/r-Bm0uF0U2.js +6 -0
  304. package/dist/racket-B83wSAja.js +6 -0
  305. package/dist/raku-nEQ4ZJJ7.js +6 -0
  306. package/dist/razor-CoqPuKQU.js +12 -0
  307. package/dist/red-7y8PH7HH.js +4 -0
  308. package/dist/reg-m_s_Kiip.js +6 -0
  309. package/dist/regexp-BazyLpPg.js +6 -0
  310. package/dist/rel-BcRfyd6Q.js +6 -0
  311. package/dist/requirementDiagram-UZGBJVZJ-DAH6cyPg.js +856 -0
  312. package/dist/riscv-Ce8MAQLP.js +6 -0
  313. package/dist/rose-pine-BKc3yVeu.js +4 -0
  314. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  315. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  316. package/dist/rosmsg-Cz0w1km8.js +6 -0
  317. package/dist/rst-AoEjemIj.js +36 -0
  318. package/dist/ruby-CGSl8JoB.js +36 -0
  319. package/dist/rust-CLzF9zIN.js +6 -0
  320. package/dist/sankeyDiagram-TZEHDZUN-DpLK8yNI.js +830 -0
  321. package/dist/sas-fpEvgATw.js +8 -0
  322. package/dist/sass-DxHp5rTx.js +6 -0
  323. package/dist/scala-D4grkFkl.js +6 -0
  324. package/dist/scheme-BCRWuEm4.js +6 -0
  325. package/dist/scss-B1FaCqwR.js +8 -0
  326. package/dist/sdbl-B7T8abf4.js +6 -0
  327. package/dist/sequenceDiagram-WL72ISMW-CslcsjON.js +2526 -0
  328. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  329. package/dist/shellscript-InADTalH.js +6 -0
  330. package/dist/shellsession-DiDJNQdy.js +8 -0
  331. package/dist/slack-dark-i7wN4OET.js +4 -0
  332. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  333. package/dist/smalltalk-BlI1_OkM.js +6 -0
  334. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  335. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  336. package/dist/solarized-light-BheCkDPT.js +4 -0
  337. package/dist/solidity-DUWnFhS6.js +6 -0
  338. package/dist/soy-YPoZ1G2p.js +10 -0
  339. package/dist/sparql-B0KWFEri.js +8 -0
  340. package/dist/splunk-CRXR8A9s.js +6 -0
  341. package/dist/sql-Cn_v3PB0.js +6 -0
  342. package/dist/ssh-config-DP-hNVbF.js +6 -0
  343. package/dist/stata-B8c5fTjX.js +8 -0
  344. package/dist/stateDiagram-FKZM4ZOC-oVuJ6JZY.js +268 -0
  345. package/dist/stateDiagram-v2-4FDKWEC3-Dw3L9jZX.js +21 -0
  346. package/dist/style.css +1 -1
  347. package/dist/stylus-CyKEU1Ej.js +6 -0
  348. package/dist/svelte-5UasyOg7.js +14 -0
  349. package/dist/swift-9UzSvamq.js +6 -0
  350. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  351. package/dist/system-verilog-BCm7smPJ.js +6 -0
  352. package/dist/systemd-C-4qm6XH.js +6 -0
  353. package/dist/tailwind.css +178 -0
  354. package/dist/talonscript-CFF3LF_O.js +6 -0
  355. package/dist/tasl-Cg_WBUAe.js +6 -0
  356. package/dist/tcl-DN7buRTF.js +6 -0
  357. package/dist/templ-peLZIM2D.js +12 -0
  358. package/dist/terraform-DGvcn9zM.js +6 -0
  359. package/dist/tex-DpOayVob.js +8 -0
  360. package/dist/timeline-definition-IT6M3QCI-D_aGDXh0.js +805 -0
  361. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  362. package/dist/toml-DY62mUL_.js +6 -0
  363. package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
  364. package/dist/ts-tags-CWmBp2js.js +43 -0
  365. package/dist/tsv-BtvSkaG0.js +6 -0
  366. package/dist/tsx-B8rCNbgL.js +6 -0
  367. package/dist/turtle-_H59FV7D.js +6 -0
  368. package/dist/twig-Cpoho6oi.js +35 -0
  369. package/dist/typescript-RycA9KXf.js +6 -0
  370. package/dist/typespec-DWqp-kUU.js +6 -0
  371. package/dist/typst-D_1QKWns.js +6 -0
  372. package/dist/v-BPCNiyYe.js +6 -0
  373. package/dist/vala-uxaPR7d1.js +6 -0
  374. package/dist/vb-D8_c5-KN.js +6 -0
  375. package/dist/verilog-B-bybjPF.js +6 -0
  376. package/dist/vesper-BckBta1U.js +4 -0
  377. package/dist/vhdl-CUlNa8ac.js +6 -0
  378. package/dist/viml-DsfA-sWm.js +6 -0
  379. package/dist/vitesse-black-BoGvW84i.js +4 -0
  380. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  381. package/dist/vitesse-light-CcmG315c.js +4 -0
  382. package/dist/vue-DmFKWfEU.js +31 -0
  383. package/dist/vue-html-BB2aI7Yc.js +15 -0
  384. package/dist/vue-vine-CznNap4x.js +24 -0
  385. package/dist/vyper-CPQuu50u.js +6 -0
  386. package/dist/wasm-BBXxrAl7.js +6 -0
  387. package/dist/wasm-DQxwEHae.js +7 -0
  388. package/dist/wenyan-pbVjoM9_.js +6 -0
  389. package/dist/wgsl-DY4iK1q1.js +6 -0
  390. package/dist/wikitext-Z-MoUasO.js +6 -0
  391. package/dist/wit-CQMQOlTg.js +6 -0
  392. package/dist/wolfram-Dz4KXISs.js +6 -0
  393. package/dist/xml-C2J0sS9M.js +8 -0
  394. package/dist/xsl-CbTBIiv3.js +9 -0
  395. package/dist/xychartDiagram-PRI3JC2R-u3osfT09.js +1345 -0
  396. package/dist/yaml-DaO7k5B1.js +6 -0
  397. package/dist/zenscript-CxBjpf9c.js +6 -0
  398. package/dist/zig-Vm0PO9wB.js +6 -0
  399. package/package.json +36 -7
  400. package/dist/ai-input-action/InputAction.d.ts +0 -8
  401. package/dist/ai-input-action/index.d.ts +0 -1
@@ -0,0 +1,830 @@
1
+ import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, p as wt, o as St, v as Lt, e as Et, x as At, j as X, ad as Tt } from "./mermaid.core-DyFxH-Px.js";
2
+ import { o as Mt } from "./ordinal-MUacOSdK.js";
3
+ import "./index-Zd10d_CE.js";
4
+ import "react";
5
+ import "react-dom";
6
+ import "./init-DjUOC4st.js";
7
+ function Nt(t) {
8
+ for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; )
9
+ i[a] = "#" + t.slice(a * 6, ++a * 6);
10
+ return i;
11
+ }
12
+ const It = Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
13
+ function ct(t, e) {
14
+ let i;
15
+ if (e === void 0)
16
+ for (const a of t)
17
+ a != null && (i < a || i === void 0 && a >= a) && (i = a);
18
+ else {
19
+ let a = -1;
20
+ for (let h of t)
21
+ (h = e(h, ++a, t)) != null && (i < h || i === void 0 && h >= h) && (i = h);
22
+ }
23
+ return i;
24
+ }
25
+ function pt(t, e) {
26
+ let i;
27
+ if (e === void 0)
28
+ for (const a of t)
29
+ a != null && (i > a || i === void 0 && a >= a) && (i = a);
30
+ else {
31
+ let a = -1;
32
+ for (let h of t)
33
+ (h = e(h, ++a, t)) != null && (i > h || i === void 0 && h >= h) && (i = h);
34
+ }
35
+ return i;
36
+ }
37
+ function nt(t, e) {
38
+ let i = 0;
39
+ if (e === void 0)
40
+ for (let a of t)
41
+ (a = +a) && (i += a);
42
+ else {
43
+ let a = -1;
44
+ for (let h of t)
45
+ (h = +e(h, ++a, t)) && (i += h);
46
+ }
47
+ return i;
48
+ }
49
+ function Pt(t) {
50
+ return t.target.depth;
51
+ }
52
+ function Ct(t) {
53
+ return t.depth;
54
+ }
55
+ function Ot(t, e) {
56
+ return e - 1 - t.height;
57
+ }
58
+ function mt(t, e) {
59
+ return t.sourceLinks.length ? t.depth : e - 1;
60
+ }
61
+ function Dt(t) {
62
+ return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
63
+ }
64
+ function q(t) {
65
+ return function() {
66
+ return t;
67
+ };
68
+ }
69
+ function ut(t, e) {
70
+ return Q(t.source, e.source) || t.index - e.index;
71
+ }
72
+ function ht(t, e) {
73
+ return Q(t.target, e.target) || t.index - e.index;
74
+ }
75
+ function Q(t, e) {
76
+ return t.y0 - e.y0;
77
+ }
78
+ function it(t) {
79
+ return t.value;
80
+ }
81
+ function $t(t) {
82
+ return t.index;
83
+ }
84
+ function jt(t) {
85
+ return t.nodes;
86
+ }
87
+ function zt(t) {
88
+ return t.links;
89
+ }
90
+ function ft(t, e) {
91
+ const i = t.get(e);
92
+ if (!i)
93
+ throw new Error("missing: " + e);
94
+ return i;
95
+ }
96
+ function yt({ nodes: t }) {
97
+ for (const e of t) {
98
+ let i = e.y0, a = i;
99
+ for (const h of e.sourceLinks)
100
+ h.y0 = i + h.width / 2, i += h.width;
101
+ for (const h of e.targetLinks)
102
+ h.y1 = a + h.width / 2, a += h.width;
103
+ }
104
+ }
105
+ function Bt() {
106
+ let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ = $t, s = mt, o, l, x = jt, v = zt, y = 6;
107
+ function b() {
108
+ const n = { nodes: x.apply(null, arguments), links: v.apply(null, arguments) };
109
+ return M(n), T(n), N(n), C(n), S(n), yt(n), n;
110
+ }
111
+ b.update = function(n) {
112
+ return yt(n), n;
113
+ }, b.nodeId = function(n) {
114
+ return arguments.length ? (_ = typeof n == "function" ? n : q(n), b) : _;
115
+ }, b.nodeAlign = function(n) {
116
+ return arguments.length ? (s = typeof n == "function" ? n : q(n), b) : s;
117
+ }, b.nodeSort = function(n) {
118
+ return arguments.length ? (o = n, b) : o;
119
+ }, b.nodeWidth = function(n) {
120
+ return arguments.length ? (h = +n, b) : h;
121
+ }, b.nodePadding = function(n) {
122
+ return arguments.length ? (d = m = +n, b) : d;
123
+ }, b.nodes = function(n) {
124
+ return arguments.length ? (x = typeof n == "function" ? n : q(n), b) : x;
125
+ }, b.links = function(n) {
126
+ return arguments.length ? (v = typeof n == "function" ? n : q(n), b) : v;
127
+ }, b.linkSort = function(n) {
128
+ return arguments.length ? (l = n, b) : l;
129
+ }, b.size = function(n) {
130
+ return arguments.length ? (t = e = 0, i = +n[0], a = +n[1], b) : [i - t, a - e];
131
+ }, b.extent = function(n) {
132
+ return arguments.length ? (t = +n[0][0], i = +n[1][0], e = +n[0][1], a = +n[1][1], b) : [[t, e], [i, a]];
133
+ }, b.iterations = function(n) {
134
+ return arguments.length ? (y = +n, b) : y;
135
+ };
136
+ function M({ nodes: n, links: f }) {
137
+ for (const [c, r] of n.entries())
138
+ r.index = c, r.sourceLinks = [], r.targetLinks = [];
139
+ const u = new Map(n.map((c, r) => [_(c, r, n), c]));
140
+ for (const [c, r] of f.entries()) {
141
+ r.index = c;
142
+ let { source: k, target: w } = r;
143
+ typeof k != "object" && (k = r.source = ft(u, k)), typeof w != "object" && (w = r.target = ft(u, w)), k.sourceLinks.push(r), w.targetLinks.push(r);
144
+ }
145
+ if (l != null)
146
+ for (const { sourceLinks: c, targetLinks: r } of n)
147
+ c.sort(l), r.sort(l);
148
+ }
149
+ function T({ nodes: n }) {
150
+ for (const f of n)
151
+ f.value = f.fixedValue === void 0 ? Math.max(nt(f.sourceLinks, it), nt(f.targetLinks, it)) : f.fixedValue;
152
+ }
153
+ function N({ nodes: n }) {
154
+ const f = n.length;
155
+ let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
156
+ for (; u.size; ) {
157
+ for (const k of u) {
158
+ k.depth = r;
159
+ for (const { target: w } of k.sourceLinks)
160
+ c.add(w);
161
+ }
162
+ if (++r > f)
163
+ throw new Error("circular link");
164
+ u = c, c = /* @__PURE__ */ new Set();
165
+ }
166
+ }
167
+ function C({ nodes: n }) {
168
+ const f = n.length;
169
+ let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
170
+ for (; u.size; ) {
171
+ for (const k of u) {
172
+ k.height = r;
173
+ for (const { source: w } of k.targetLinks)
174
+ c.add(w);
175
+ }
176
+ if (++r > f)
177
+ throw new Error("circular link");
178
+ u = c, c = /* @__PURE__ */ new Set();
179
+ }
180
+ }
181
+ function $({ nodes: n }) {
182
+ const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
183
+ for (const r of n) {
184
+ const k = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
185
+ r.layer = k, r.x0 = t + k * u, r.x1 = r.x0 + h, c[k] ? c[k].push(r) : c[k] = [r];
186
+ }
187
+ if (o)
188
+ for (const r of c)
189
+ r.sort(o);
190
+ return c;
191
+ }
192
+ function R(n) {
193
+ const f = pt(n, (u) => (a - e - (u.length - 1) * m) / nt(u, it));
194
+ for (const u of n) {
195
+ let c = e;
196
+ for (const r of u) {
197
+ r.y0 = c, r.y1 = c + r.value * f, c = r.y1 + m;
198
+ for (const k of r.sourceLinks)
199
+ k.width = k.value * f;
200
+ }
201
+ c = (a - c + m) / (u.length + 1);
202
+ for (let r = 0; r < u.length; ++r) {
203
+ const k = u[r];
204
+ k.y0 += c * (r + 1), k.y1 += c * (r + 1);
205
+ }
206
+ A(u);
207
+ }
208
+ }
209
+ function S(n) {
210
+ const f = $(n);
211
+ m = Math.min(d, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
212
+ for (let u = 0; u < y; ++u) {
213
+ const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
214
+ z(f, c, r), P(f, c, r);
215
+ }
216
+ }
217
+ function P(n, f, u) {
218
+ for (let c = 1, r = n.length; c < r; ++c) {
219
+ const k = n[c];
220
+ for (const w of k) {
221
+ let L = 0, F = 0;
222
+ for (const { source: U, value: et } of w.targetLinks) {
223
+ let G = et * (w.layer - U.layer);
224
+ L += j(U, w) * G, F += G;
225
+ }
226
+ if (!(F > 0))
227
+ continue;
228
+ let W = (L / F - w.y0) * f;
229
+ w.y0 += W, w.y1 += W, E(w);
230
+ }
231
+ o === void 0 && k.sort(Q), O(k, u);
232
+ }
233
+ }
234
+ function z(n, f, u) {
235
+ for (let c = n.length, r = c - 2; r >= 0; --r) {
236
+ const k = n[r];
237
+ for (const w of k) {
238
+ let L = 0, F = 0;
239
+ for (const { target: U, value: et } of w.sourceLinks) {
240
+ let G = et * (U.layer - w.layer);
241
+ L += I(w, U) * G, F += G;
242
+ }
243
+ if (!(F > 0))
244
+ continue;
245
+ let W = (L / F - w.y0) * f;
246
+ w.y0 += W, w.y1 += W, E(w);
247
+ }
248
+ o === void 0 && k.sort(Q), O(k, u);
249
+ }
250
+ }
251
+ function O(n, f) {
252
+ const u = n.length >> 1, c = n[u];
253
+ g(n, c.y0 - m, u - 1, f), D(n, c.y1 + m, u + 1, f), g(n, a, n.length - 1, f), D(n, e, 0, f);
254
+ }
255
+ function D(n, f, u, c) {
256
+ for (; u < n.length; ++u) {
257
+ const r = n[u], k = (f - r.y0) * c;
258
+ k > 1e-6 && (r.y0 += k, r.y1 += k), f = r.y1 + m;
259
+ }
260
+ }
261
+ function g(n, f, u, c) {
262
+ for (; u >= 0; --u) {
263
+ const r = n[u], k = (r.y1 - f) * c;
264
+ k > 1e-6 && (r.y0 -= k, r.y1 -= k), f = r.y0 - m;
265
+ }
266
+ }
267
+ function E({ sourceLinks: n, targetLinks: f }) {
268
+ if (l === void 0) {
269
+ for (const { source: { sourceLinks: u } } of f)
270
+ u.sort(ht);
271
+ for (const { target: { targetLinks: u } } of n)
272
+ u.sort(ut);
273
+ }
274
+ }
275
+ function A(n) {
276
+ if (l === void 0)
277
+ for (const { sourceLinks: f, targetLinks: u } of n)
278
+ f.sort(ht), u.sort(ut);
279
+ }
280
+ function j(n, f) {
281
+ let u = n.y0 - (n.sourceLinks.length - 1) * m / 2;
282
+ for (const { target: c, width: r } of n.sourceLinks) {
283
+ if (c === f)
284
+ break;
285
+ u += r + m;
286
+ }
287
+ for (const { source: c, width: r } of f.targetLinks) {
288
+ if (c === n)
289
+ break;
290
+ u -= r;
291
+ }
292
+ return u;
293
+ }
294
+ function I(n, f) {
295
+ let u = f.y0 - (f.targetLinks.length - 1) * m / 2;
296
+ for (const { source: c, width: r } of f.targetLinks) {
297
+ if (c === n)
298
+ break;
299
+ u += r + m;
300
+ }
301
+ for (const { target: c, width: r } of n.sourceLinks) {
302
+ if (c === f)
303
+ break;
304
+ u -= r;
305
+ }
306
+ return u;
307
+ }
308
+ return b;
309
+ }
310
+ var st = Math.PI, rt = 2 * st, V = 1e-6, Rt = rt - V;
311
+ function ot() {
312
+ this._x0 = this._y0 = // start of current subpath
313
+ this._x1 = this._y1 = null, this._ = "";
314
+ }
315
+ function kt() {
316
+ return new ot();
317
+ }
318
+ ot.prototype = kt.prototype = {
319
+ constructor: ot,
320
+ moveTo: function(t, e) {
321
+ this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e);
322
+ },
323
+ closePath: function() {
324
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
325
+ },
326
+ lineTo: function(t, e) {
327
+ this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +e);
328
+ },
329
+ quadraticCurveTo: function(t, e, i, a) {
330
+ this._ += "Q" + +t + "," + +e + "," + (this._x1 = +i) + "," + (this._y1 = +a);
331
+ },
332
+ bezierCurveTo: function(t, e, i, a, h, d) {
333
+ this._ += "C" + +t + "," + +e + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +d);
334
+ },
335
+ arcTo: function(t, e, i, a, h) {
336
+ t = +t, e = +e, i = +i, a = +a, h = +h;
337
+ var d = this._x1, m = this._y1, _ = i - t, s = a - e, o = d - t, l = m - e, x = o * o + l * l;
338
+ if (h < 0)
339
+ throw new Error("negative radius: " + h);
340
+ if (this._x1 === null)
341
+ this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
342
+ else if (x > V)
343
+ if (!(Math.abs(l * _ - s * o) > V) || !h)
344
+ this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
345
+ else {
346
+ var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), $ = C / N, R = C / T;
347
+ Math.abs($ - 1) > V && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
348
+ }
349
+ },
350
+ arc: function(t, e, i, a, h, d) {
351
+ t = +t, e = +e, i = +i, d = !!d;
352
+ var m = i * Math.cos(a), _ = i * Math.sin(a), s = t + m, o = e + _, l = 1 ^ d, x = d ? a - h : h - a;
353
+ if (i < 0)
354
+ throw new Error("negative radius: " + i);
355
+ this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > V && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
356
+ },
357
+ rect: function(t, e, i, a) {
358
+ this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
359
+ },
360
+ toString: function() {
361
+ return this._;
362
+ }
363
+ };
364
+ function dt(t) {
365
+ return function() {
366
+ return t;
367
+ };
368
+ }
369
+ function Ft(t) {
370
+ return t[0];
371
+ }
372
+ function Vt(t) {
373
+ return t[1];
374
+ }
375
+ var Wt = Array.prototype.slice;
376
+ function Ut(t) {
377
+ return t.source;
378
+ }
379
+ function Gt(t) {
380
+ return t.target;
381
+ }
382
+ function Yt(t) {
383
+ var e = Ut, i = Gt, a = Ft, h = Vt, d = null;
384
+ function m() {
385
+ var _, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
386
+ if (d || (d = _ = kt()), t(d, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), _)
387
+ return d = null, _ + "" || null;
388
+ }
389
+ return m.source = function(_) {
390
+ return arguments.length ? (e = _, m) : e;
391
+ }, m.target = function(_) {
392
+ return arguments.length ? (i = _, m) : i;
393
+ }, m.x = function(_) {
394
+ return arguments.length ? (a = typeof _ == "function" ? _ : dt(+_), m) : a;
395
+ }, m.y = function(_) {
396
+ return arguments.length ? (h = typeof _ == "function" ? _ : dt(+_), m) : h;
397
+ }, m.context = function(_) {
398
+ return arguments.length ? (d = _ ?? null, m) : d;
399
+ }, m;
400
+ }
401
+ function Ht(t, e, i, a, h) {
402
+ t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
403
+ }
404
+ function Xt() {
405
+ return Yt(Ht);
406
+ }
407
+ function qt(t) {
408
+ return [t.source.x1, t.y0];
409
+ }
410
+ function Qt(t) {
411
+ return [t.target.x0, t.y1];
412
+ }
413
+ function Kt() {
414
+ return Xt().source(qt).target(Qt);
415
+ }
416
+ var at = function() {
417
+ var t = /* @__PURE__ */ p(function(_, s, o, l) {
418
+ for (o = o || {}, l = _.length; l--; o[_[l]] = s)
419
+ ;
420
+ return o;
421
+ }, "o"), e = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = {
422
+ trace: /* @__PURE__ */ p(function() {
423
+ }, "trace"),
424
+ yy: {},
425
+ symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
426
+ terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
427
+ productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
428
+ performAction: /* @__PURE__ */ p(function(s, o, l, x, v, y, b) {
429
+ var M = y.length - 1;
430
+ switch (v) {
431
+ case 7:
432
+ const T = x.findOrCreateNode(y[M - 4].trim().replaceAll('""', '"')), N = x.findOrCreateNode(y[M - 2].trim().replaceAll('""', '"')), C = parseFloat(y[M].trim());
433
+ x.addLink(T, N, C);
434
+ break;
435
+ case 8:
436
+ case 9:
437
+ case 11:
438
+ this.$ = y[M];
439
+ break;
440
+ case 10:
441
+ this.$ = y[M - 1];
442
+ break;
443
+ }
444
+ }, "anonymous"),
445
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(i, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(a, [2, 8]), t(a, [2, 9]), { 19: [1, 16] }, t(a, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(i, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 15: 18, 16: 7, 17: 8, 18: e, 20: i }, { 18: [1, 19] }, t(i, [2, 3]), { 12: [1, 20] }, t(a, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: e, 20: i }, t([1, 5, 10], [2, 7])],
446
+ defaultActions: { 11: [2, 1], 12: [2, 5] },
447
+ parseError: /* @__PURE__ */ p(function(s, o) {
448
+ if (o.recoverable)
449
+ this.trace(s);
450
+ else {
451
+ var l = new Error(s);
452
+ throw l.hash = o, l;
453
+ }
454
+ }, "parseError"),
455
+ parse: /* @__PURE__ */ p(function(s) {
456
+ var o = this, l = [0], x = [], v = [null], y = [], b = this.table, M = "", T = 0, N = 0, C = 2, $ = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
457
+ for (var z in this.yy)
458
+ Object.prototype.hasOwnProperty.call(this.yy, z) && (P.yy[z] = this.yy[z]);
459
+ S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
460
+ var O = S.yylloc;
461
+ y.push(O);
462
+ var D = S.options && S.options.ranges;
463
+ typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
464
+ function g(L) {
465
+ l.length = l.length - 2 * L, v.length = v.length - L, y.length = y.length - L;
466
+ }
467
+ p(g, "popStack");
468
+ function E() {
469
+ var L;
470
+ return L = x.pop() || S.lex() || $, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = o.symbols_[L] || L), L;
471
+ }
472
+ p(E, "lex");
473
+ for (var A, j, I, n, f = {}, u, c, r, k; ; ) {
474
+ if (j = l[l.length - 1], this.defaultActions[j] ? I = this.defaultActions[j] : ((A === null || typeof A > "u") && (A = E()), I = b[j] && b[j][A]), typeof I > "u" || !I.length || !I[0]) {
475
+ var w = "";
476
+ k = [];
477
+ for (u in b[j])
478
+ this.terminals_[u] && u > C && k.push("'" + this.terminals_[u] + "'");
479
+ S.showPosition ? w = "Parse error on line " + (T + 1) + `:
480
+ ` + S.showPosition() + `
481
+ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == $ ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
482
+ text: S.match,
483
+ token: this.terminals_[A] || A,
484
+ line: S.yylineno,
485
+ loc: O,
486
+ expected: k
487
+ });
488
+ }
489
+ if (I[0] instanceof Array && I.length > 1)
490
+ throw new Error("Parse Error: multiple actions possible at state: " + j + ", token: " + A);
491
+ switch (I[0]) {
492
+ case 1:
493
+ l.push(A), v.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc;
494
+ break;
495
+ case 2:
496
+ if (c = this.productions_[I[1]][1], f.$ = v[v.length - c], f._$ = {
497
+ first_line: y[y.length - (c || 1)].first_line,
498
+ last_line: y[y.length - 1].last_line,
499
+ first_column: y[y.length - (c || 1)].first_column,
500
+ last_column: y[y.length - 1].last_column
501
+ }, D && (f._$.range = [
502
+ y[y.length - (c || 1)].range[0],
503
+ y[y.length - 1].range[1]
504
+ ]), n = this.performAction.apply(f, [
505
+ M,
506
+ N,
507
+ T,
508
+ P.yy,
509
+ I[1],
510
+ v,
511
+ y
512
+ ].concat(R)), typeof n < "u")
513
+ return n;
514
+ c && (l = l.slice(0, -1 * c * 2), v = v.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[I[1]][0]), v.push(f.$), y.push(f._$), r = b[l[l.length - 2]][l[l.length - 1]], l.push(r);
515
+ break;
516
+ case 3:
517
+ return !0;
518
+ }
519
+ }
520
+ return !0;
521
+ }, "parse")
522
+ }, d = /* @__PURE__ */ function() {
523
+ var _ = {
524
+ EOF: 1,
525
+ parseError: /* @__PURE__ */ p(function(o, l) {
526
+ if (this.yy.parser)
527
+ this.yy.parser.parseError(o, l);
528
+ else
529
+ throw new Error(o);
530
+ }, "parseError"),
531
+ // resets the lexer, sets new input
532
+ setInput: /* @__PURE__ */ p(function(s, o) {
533
+ return this.yy = o || 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 = {
534
+ first_line: 1,
535
+ first_column: 0,
536
+ last_line: 1,
537
+ last_column: 0
538
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
539
+ }, "setInput"),
540
+ // consumes and returns one char from the input
541
+ input: /* @__PURE__ */ p(function() {
542
+ var s = this._input[0];
543
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
544
+ var o = s.match(/(?:\r\n?|\n).*/g);
545
+ return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
546
+ }, "input"),
547
+ // unshifts one char (or a string) into the input
548
+ unput: /* @__PURE__ */ p(function(s) {
549
+ var o = s.length, l = s.split(/(?:\r\n?|\n)/g);
550
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
551
+ var x = this.match.split(/(?:\r\n?|\n)/g);
552
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
553
+ var v = this.yylloc.range;
554
+ return this.yylloc = {
555
+ first_line: this.yylloc.first_line,
556
+ last_line: this.yylineno + 1,
557
+ first_column: this.yylloc.first_column,
558
+ last_column: l ? (l.length === x.length ? this.yylloc.first_column : 0) + x[x.length - l.length].length - l[0].length : this.yylloc.first_column - o
559
+ }, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
560
+ }, "unput"),
561
+ // When called from action, caches matched text and appends it on next action
562
+ more: /* @__PURE__ */ p(function() {
563
+ return this._more = !0, this;
564
+ }, "more"),
565
+ // 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.
566
+ reject: /* @__PURE__ */ p(function() {
567
+ if (this.options.backtrack_lexer)
568
+ this._backtrack = !0;
569
+ else
570
+ 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).
571
+ ` + this.showPosition(), {
572
+ text: "",
573
+ token: null,
574
+ line: this.yylineno
575
+ });
576
+ return this;
577
+ }, "reject"),
578
+ // retain first n characters of the match
579
+ less: /* @__PURE__ */ p(function(s) {
580
+ this.unput(this.match.slice(s));
581
+ }, "less"),
582
+ // displays already matched input, i.e. for error messages
583
+ pastInput: /* @__PURE__ */ p(function() {
584
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
585
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
586
+ }, "pastInput"),
587
+ // displays upcoming input, i.e. for error messages
588
+ upcomingInput: /* @__PURE__ */ p(function() {
589
+ var s = this.match;
590
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
591
+ }, "upcomingInput"),
592
+ // displays the character position where the lexing error occurred, i.e. for error messages
593
+ showPosition: /* @__PURE__ */ p(function() {
594
+ var s = this.pastInput(), o = new Array(s.length + 1).join("-");
595
+ return s + this.upcomingInput() + `
596
+ ` + o + "^";
597
+ }, "showPosition"),
598
+ // test the lexed token: return FALSE when not a match, otherwise return token
599
+ test_match: /* @__PURE__ */ p(function(s, o) {
600
+ var l, x, v;
601
+ if (this.options.backtrack_lexer && (v = {
602
+ yylineno: this.yylineno,
603
+ yylloc: {
604
+ first_line: this.yylloc.first_line,
605
+ last_line: this.last_line,
606
+ first_column: this.yylloc.first_column,
607
+ last_column: this.yylloc.last_column
608
+ },
609
+ yytext: this.yytext,
610
+ match: this.match,
611
+ matches: this.matches,
612
+ matched: this.matched,
613
+ yyleng: this.yyleng,
614
+ offset: this.offset,
615
+ _more: this._more,
616
+ _input: this._input,
617
+ yy: this.yy,
618
+ conditionStack: this.conditionStack.slice(0),
619
+ done: this.done
620
+ }, this.options.ranges && (v.yylloc.range = this.yylloc.range.slice(0))), x = s[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
621
+ first_line: this.yylloc.last_line,
622
+ last_line: this.yylineno + 1,
623
+ first_column: this.yylloc.last_column,
624
+ last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
625
+ }, 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], l = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
626
+ return l;
627
+ if (this._backtrack) {
628
+ for (var y in v)
629
+ this[y] = v[y];
630
+ return !1;
631
+ }
632
+ return !1;
633
+ }, "test_match"),
634
+ // return next match in input
635
+ next: /* @__PURE__ */ p(function() {
636
+ if (this.done)
637
+ return this.EOF;
638
+ this._input || (this.done = !0);
639
+ var s, o, l, x;
640
+ this._more || (this.yytext = "", this.match = "");
641
+ for (var v = this._currentRules(), y = 0; y < v.length; y++)
642
+ if (l = this._input.match(this.rules[v[y]]), l && (!o || l[0].length > o[0].length)) {
643
+ if (o = l, x = y, this.options.backtrack_lexer) {
644
+ if (s = this.test_match(l, v[y]), s !== !1)
645
+ return s;
646
+ if (this._backtrack) {
647
+ o = !1;
648
+ continue;
649
+ } else
650
+ return !1;
651
+ } else if (!this.options.flex)
652
+ break;
653
+ }
654
+ return o ? (s = this.test_match(o, v[x]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
655
+ ` + this.showPosition(), {
656
+ text: "",
657
+ token: null,
658
+ line: this.yylineno
659
+ });
660
+ }, "next"),
661
+ // return next match that has a token
662
+ lex: /* @__PURE__ */ p(function() {
663
+ var o = this.next();
664
+ return o || this.lex();
665
+ }, "lex"),
666
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
667
+ begin: /* @__PURE__ */ p(function(o) {
668
+ this.conditionStack.push(o);
669
+ }, "begin"),
670
+ // pop the previously active lexer condition state off the condition stack
671
+ popState: /* @__PURE__ */ p(function() {
672
+ var o = this.conditionStack.length - 1;
673
+ return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
674
+ }, "popState"),
675
+ // produce the lexer rule set which is active for the currently active lexer condition state
676
+ _currentRules: /* @__PURE__ */ p(function() {
677
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
678
+ }, "_currentRules"),
679
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
680
+ topState: /* @__PURE__ */ p(function(o) {
681
+ return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
682
+ }, "topState"),
683
+ // alias for begin(condition)
684
+ pushState: /* @__PURE__ */ p(function(o) {
685
+ this.begin(o);
686
+ }, "pushState"),
687
+ // return the number of states currently on the stack
688
+ stateStackSize: /* @__PURE__ */ p(function() {
689
+ return this.conditionStack.length;
690
+ }, "stateStackSize"),
691
+ options: { "case-insensitive": !0 },
692
+ performAction: /* @__PURE__ */ p(function(o, l, x, v) {
693
+ switch (x) {
694
+ case 0:
695
+ return this.pushState("csv"), 4;
696
+ case 1:
697
+ return this.pushState("csv"), 4;
698
+ case 2:
699
+ return 10;
700
+ case 3:
701
+ return 5;
702
+ case 4:
703
+ return 12;
704
+ case 5:
705
+ return this.pushState("escaped_text"), 18;
706
+ case 6:
707
+ return 20;
708
+ case 7:
709
+ return this.popState("escaped_text"), 18;
710
+ case 8:
711
+ return 19;
712
+ }
713
+ }, "anonymous"),
714
+ rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
715
+ conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
716
+ };
717
+ return _;
718
+ }();
719
+ h.lexer = d;
720
+ function m() {
721
+ this.yy = {};
722
+ }
723
+ return p(m, "Parser"), m.prototype = h, h.Parser = m, new m();
724
+ }();
725
+ at.parser = at;
726
+ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ p(() => {
727
+ J = [], tt = [], Z = /* @__PURE__ */ new Map(), Lt();
728
+ }, "clear"), Y, Jt = (Y = class {
729
+ constructor(e, i, a = 0) {
730
+ this.source = e, this.target = i, this.value = a;
731
+ }
732
+ }, p(Y, "SankeyLink"), Y), te = /* @__PURE__ */ p((t, e, i) => {
733
+ J.push(new Jt(t, e, i));
734
+ }, "addLink"), H, ee = (H = class {
735
+ constructor(e) {
736
+ this.ID = e;
737
+ }
738
+ }, p(H, "SankeyNode"), H), ne = /* @__PURE__ */ p((t) => {
739
+ t = Et.sanitizeText(t, lt());
740
+ let e = Z.get(t);
741
+ return e === void 0 && (e = new ee(t), Z.set(t, e), tt.push(e)), e;
742
+ }, "findOrCreateNode"), ie = /* @__PURE__ */ p(() => tt, "getNodes"), se = /* @__PURE__ */ p(() => J, "getLinks"), re = /* @__PURE__ */ p(() => ({
743
+ nodes: tt.map((t) => ({ id: t.ID })),
744
+ links: J.map((t) => ({
745
+ source: t.source.ID,
746
+ target: t.target.ID,
747
+ value: t.value
748
+ }))
749
+ }), "getGraph"), oe = {
750
+ nodesMap: Z,
751
+ getConfig: /* @__PURE__ */ p(() => lt().sankey, "getConfig"),
752
+ getNodes: ie,
753
+ getLinks: se,
754
+ getGraph: re,
755
+ addLink: te,
756
+ findOrCreateNode: ne,
757
+ getAccTitle: _t,
758
+ setAccTitle: xt,
759
+ getAccDescription: vt,
760
+ setAccDescription: bt,
761
+ getDiagramTitle: wt,
762
+ setDiagramTitle: St,
763
+ clear: Zt
764
+ }, B, gt = (B = class {
765
+ static next(e) {
766
+ return new B(e + ++B.count);
767
+ }
768
+ constructor(e) {
769
+ this.id = e, this.href = `#${e}`;
770
+ }
771
+ toString() {
772
+ return "url(" + this.href + ")";
773
+ }
774
+ }, p(B, "Uid"), B.count = 0, B), ae = {
775
+ left: Ct,
776
+ right: Ot,
777
+ center: Dt,
778
+ justify: mt
779
+ }, le = /* @__PURE__ */ p(function(t, e, i, a) {
780
+ const { securityLevel: h, sankey: d } = lt(), m = At.sankey;
781
+ let _;
782
+ h === "sandbox" && (_ = X("#i" + e));
783
+ const s = h === "sandbox" ? X(_.nodes()[0].contentDocument.body) : X("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : X(`[id="${e}"]`), l = (d == null ? void 0 : d.width) ?? m.width, x = (d == null ? void 0 : d.height) ?? m.width, v = (d == null ? void 0 : d.useMaxWidth) ?? m.useMaxWidth, y = (d == null ? void 0 : d.nodeAlignment) ?? m.nodeAlignment, b = (d == null ? void 0 : d.prefix) ?? m.prefix, M = (d == null ? void 0 : d.suffix) ?? m.suffix, T = (d == null ? void 0 : d.showValues) ?? m.showValues, N = a.db.getGraph(), C = ae[y];
784
+ Bt().nodeId((g) => g.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
785
+ [0, 0],
786
+ [l, x]
787
+ ])(N);
788
+ const S = Mt(It);
789
+ o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (g) => (g.uid = gt.next("node-")).id).attr("transform", function(g) {
790
+ return "translate(" + g.x0 + "," + g.y0 + ")";
791
+ }).attr("x", (g) => g.x0).attr("y", (g) => g.y0).append("rect").attr("height", (g) => g.y1 - g.y0).attr("width", (g) => g.x1 - g.x0).attr("fill", (g) => S(g.id));
792
+ const P = /* @__PURE__ */ p(({ id: g, value: E }) => T ? `${g}
793
+ ${b}${Math.round(E * 100) / 100}${M}` : g, "getText");
794
+ o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (g) => g.x0 < l / 2 ? g.x1 + 6 : g.x0 - 6).attr("y", (g) => (g.y1 + g.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (g) => g.x0 < l / 2 ? "start" : "end").text(P);
795
+ const z = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), O = (d == null ? void 0 : d.linkColor) ?? "gradient";
796
+ if (O === "gradient") {
797
+ const g = z.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
798
+ g.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), g.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
799
+ }
800
+ let D;
801
+ switch (O) {
802
+ case "gradient":
803
+ D = /* @__PURE__ */ p((g) => g.uid, "coloring");
804
+ break;
805
+ case "source":
806
+ D = /* @__PURE__ */ p((g) => S(g.source.id), "coloring");
807
+ break;
808
+ case "target":
809
+ D = /* @__PURE__ */ p((g) => S(g.target.id), "coloring");
810
+ break;
811
+ default:
812
+ D = O;
813
+ }
814
+ z.append("path").attr("d", Kt()).attr("stroke", D).attr("stroke-width", (g) => Math.max(1, g.width)), Tt(void 0, o, 0, v);
815
+ }, "draw"), ce = {
816
+ draw: le
817
+ }, ue = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
818
+ `).trim(), "prepareTextForParsing"), he = /* @__PURE__ */ p((t) => `.label {
819
+ font-family: ${t.fontFamily};
820
+ }`, "getStyles"), fe = he, ye = K.parse.bind(K);
821
+ K.parse = (t) => ye(ue(t));
822
+ var xe = {
823
+ styles: fe,
824
+ parser: K,
825
+ db: oe,
826
+ renderer: ce
827
+ };
828
+ export {
829
+ xe as diagram
830
+ };