@foris/ai-agent 0.9.1-beta.2 → 0.9.1-beta.3

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 (325) 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 +14 -2779
  5. package/dist/ai-agent.umd.js +3213 -4
  6. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  7. package/dist/angular-html-CHuhdNYa.js +32 -0
  8. package/dist/angular-ts-CkwnAxZa.js +32 -0
  9. package/dist/apache-BUjz-sD2.js +6 -0
  10. package/dist/apex-oLhhs58q.js +6 -0
  11. package/dist/apl-C8FRyJIY.js +24 -0
  12. package/dist/applescript-BPx7YFFu.js +6 -0
  13. package/dist/ara-Z2fSOxSw.js +6 -0
  14. package/dist/arc-BzRDGNYi.js +85 -0
  15. package/dist/architectureDiagram-VXUJARFQ-jlW87y1j.js +4682 -0
  16. package/dist/asciidoc-B-pCoB3G.js +6 -0
  17. package/dist/asm-BTWLY5ym.js +6 -0
  18. package/dist/astro-CAC4-sRr.js +25 -0
  19. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  20. package/dist/awk-Fb0P9dkn.js +6 -0
  21. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  22. package/dist/ballerina-oZK-YekG.js +6 -0
  23. package/dist/bat-0FvbqU9S.js +6 -0
  24. package/dist/beancount-DqJEb89h.js +6 -0
  25. package/dist/berry-DODBq_Ff.js +6 -0
  26. package/dist/bibtex-EULQRLY5.js +6 -0
  27. package/dist/bicep-BorU73w0.js +6 -0
  28. package/dist/blade-Bwl5-ENK.js +27 -0
  29. package/dist/blockDiagram-VD42YOAC-P4woNHAr.js +2415 -0
  30. package/dist/bsl-NkNNwerW.js +8 -0
  31. package/dist/c-eeMepfLm.js +6 -0
  32. package/dist/c4Diagram-YG6GDRKO-CB9WFLmJ.js +1593 -0
  33. package/dist/cadence-02UX7mW8.js +6 -0
  34. package/dist/cairo-Cp116741.js +18 -0
  35. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  36. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  37. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  38. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  39. package/dist/channel-B-TkD8Bv.js +5 -0
  40. package/dist/chunk-4BX2VUAB-DCjARiNr.js +9 -0
  41. package/dist/chunk-55IACEB6-DvmPHLo5.js +8 -0
  42. package/dist/chunk-B4BG7PRW-L08cVxNP.js +1377 -0
  43. package/dist/chunk-DI55MBZ5-zkyTO7pn.js +1383 -0
  44. package/dist/chunk-FMBD7UC4-BkpbM-uP.js +19 -0
  45. package/dist/chunk-QN33PNHL-DSFN3Uoh.js +20 -0
  46. package/dist/chunk-QZHKN3VN-CAgMv7Xo.js +15 -0
  47. package/dist/chunk-TZMSLE5B-B6GY_sBW.js +64 -0
  48. package/dist/clarity-PKm5CwqM.js +6 -0
  49. package/dist/classDiagram-2ON5EDUG-KqDAjO33.js +30 -0
  50. package/dist/classDiagram-v2-WZHVMYZB-KqDAjO33.js +30 -0
  51. package/dist/clojure-CXJfHrL3.js +6 -0
  52. package/dist/cmake-BJz8BOTU.js +6 -0
  53. package/dist/cobol-DNTp9HAy.js +20 -0
  54. package/dist/code-block-QI2IAROF-Culy9AKV.js +2042 -0
  55. package/dist/codeowners-Bt9yU6NX.js +6 -0
  56. package/dist/codeql-DHkodjjI.js +6 -0
  57. package/dist/coffee-BrprHIxF.js +18 -0
  58. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  59. package/dist/coq-B0L9upzn.js +6 -0
  60. package/dist/cose-bilkent-S5V4N54A-DtppvcNV.js +2620 -0
  61. package/dist/cpp-CwJ5QP3s.js +29 -0
  62. package/dist/crystal-DWRgWI1Z.js +24 -0
  63. package/dist/csv-CmYOceLb.js +6 -0
  64. package/dist/cue-ZzumE7IT.js +6 -0
  65. package/dist/cypher-jpdmjtA6.js +6 -0
  66. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  67. package/dist/d-CBagWSwH.js +6 -0
  68. package/dist/dagre-6UL2VRFP-BfvQz4N-.js +459 -0
  69. package/dist/dark-plus-pUHDTVV0.js +4 -0
  70. package/dist/dart-6ObCrKr9.js +6 -0
  71. package/dist/dax-CcDT-8dH.js +6 -0
  72. package/dist/defaultLocale-D1piDxzZ.js +177 -0
  73. package/dist/desktop-B93p9R9O.js +6 -0
  74. package/dist/diagram-PSM6KHXK-ka-cDwC2.js +552 -0
  75. package/dist/diagram-QEK2KX5R-BW-yTygZ.js +232 -0
  76. package/dist/diagram-S2PKOQOG-j24g_p7y.js +154 -0
  77. package/dist/diff-BxzP2J8R.js +6 -0
  78. package/dist/docker-CsHqm9tx.js +6 -0
  79. package/dist/dotenv-BMjVjUL1.js +6 -0
  80. package/dist/dracula-BtZx2Kac.js +4 -0
  81. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  82. package/dist/dream-maker-PAx17jaB.js +6 -0
  83. package/dist/edge-B5_tHZZy.js +21 -0
  84. package/dist/elixir-Dj_1qPNg.js +18 -0
  85. package/dist/elm-DZPAA5Qn.js +9 -0
  86. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  87. package/dist/erDiagram-Q2GNP2WA-BoiJgXhe.js +854 -0
  88. package/dist/erb-DiYOU0he.js +31 -0
  89. package/dist/erlang-CNRRyeIc.js +18 -0
  90. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  91. package/dist/everforest-light-BbXl82Em.js +4 -0
  92. package/dist/fennel-N4WcXuKx.js +6 -0
  93. package/dist/fish-BTDEUgqH.js +6 -0
  94. package/dist/flowDiagram-NV44I4VS-BHGntIlE.js +1639 -0
  95. package/dist/fluent-BMXUxfv1.js +6 -0
  96. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  97. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  98. package/dist/fsharp-yevJ8DSS.js +18 -0
  99. package/dist/ganttDiagram-JELNMOA3-Ce8NwhCP.js +2710 -0
  100. package/dist/gdresource-BwtMIoBm.js +10 -0
  101. package/dist/gdscript-BifyeYhI.js +6 -0
  102. package/dist/gdshader-Bk8fF6yr.js +6 -0
  103. package/dist/genie-DzUvd7U9.js +6 -0
  104. package/dist/gherkin-DHRaV0YP.js +6 -0
  105. package/dist/git-commit-Bd32YZ0K.js +8 -0
  106. package/dist/git-rebase-BWMiWxYf.js +18 -0
  107. package/dist/gitGraphDiagram-NY62KEGX-DxoN7y5T.js +723 -0
  108. package/dist/github-dark-DenFmJkN.js +4 -0
  109. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  110. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  111. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  112. package/dist/github-light-JYsPkUQd.js +4 -0
  113. package/dist/github-light-default-D99KPAby.js +4 -0
  114. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  115. package/dist/gleam-Bv284lvN.js +6 -0
  116. package/dist/glimmer-js-Nc7Kk_CN.js +21 -0
  117. package/dist/glimmer-ts-DLoneyA9.js +21 -0
  118. package/dist/glsl-CkUcVZNK.js +8 -0
  119. package/dist/gnuplot-yPG9-sE_.js +6 -0
  120. package/dist/graph-C-gpLwEq.js +1189 -0
  121. package/dist/graphql-CB9Yiq18.js +23 -0
  122. package/dist/groovy-CJQTphOW.js +6 -0
  123. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  124. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  125. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  126. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  127. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  128. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  129. package/dist/hack-dNZDE7CK.js +19 -0
  130. package/dist/haml-CIHYN_l8.js +19 -0
  131. package/dist/handlebars-5wdAGqTJ.js +21 -0
  132. package/dist/haskell-WeIwNIP6.js +6 -0
  133. package/dist/haxe-TztHsm5T.js +6 -0
  134. package/dist/hcl-D438OF-I.js +6 -0
  135. package/dist/hjson-DYBUbqOl.js +6 -0
  136. package/dist/hlsl-Bk8TCZNL.js +6 -0
  137. package/dist/houston-BDYrDoDW.js +4 -0
  138. package/dist/html-derivative-89LwIO26.js +18 -0
  139. package/dist/http-Dsh8rSJR.js +26 -0
  140. package/dist/hurl-NdmqbL7E.js +26 -0
  141. package/dist/hxml-GbqSQCLa.js +8 -0
  142. package/dist/hy-Brt5EZ7-.js +6 -0
  143. package/dist/imba-CimUv-Uh.js +6 -0
  144. package/dist/index-C3mwt8G1.js +67982 -0
  145. package/dist/infoDiagram-WHAUD3N6-DdxAG2VL.js +35 -0
  146. package/dist/ini-BZIuRIvJ.js +6 -0
  147. package/dist/init-DjUOC4st.js +16 -0
  148. package/dist/java-DY6VlHhP.js +6 -0
  149. package/dist/jinja-BuwNoMI4.js +21 -0
  150. package/dist/jison-_q6rTsMi.js +18 -0
  151. package/dist/journeyDiagram-XKPGCS4Q-CT5Fbg6c.js +848 -0
  152. package/dist/json5-BT4Fjg39.js +6 -0
  153. package/dist/jsonc-CHjZD8gR.js +6 -0
  154. package/dist/jsonl-BGuvDmy9.js +6 -0
  155. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  156. package/dist/jssm-BcADi6EI.js +6 -0
  157. package/dist/jsx-BtKADgXT.js +6 -0
  158. package/dist/julia-BCBeSq7V.js +27 -0
  159. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  160. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  161. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  162. package/dist/kanban-definition-3W4ZIXB7-CxtMdkvq.js +732 -0
  163. package/dist/katex.min-l0sNRNKZ.js +1 -0
  164. package/dist/kdl-BNOv9TC3.js +6 -0
  165. package/dist/kotlin-ByBMgTeR.js +6 -0
  166. package/dist/kusto-VWFLl2T0.js +6 -0
  167. package/dist/laserwave-6a00oqik.js +4 -0
  168. package/dist/latex-DF20280u.js +9 -0
  169. package/dist/layout-D2NtTgFh.js +1730 -0
  170. package/dist/lean-D5yRrexI.js +6 -0
  171. package/dist/less-B1GLI2Di.js +6 -0
  172. package/dist/light-plus-CZuVqSLX.js +4 -0
  173. package/dist/linear-sERCAB61.js +277 -0
  174. package/dist/liquid-CFYzC-s7.js +21 -0
  175. package/dist/llvm-co1rIKs3.js +6 -0
  176. package/dist/log-Al8wyEFV.js +6 -0
  177. package/dist/logo-DBa4JDzV.js +6 -0
  178. package/dist/lua-kX5WP_P5.js +8 -0
  179. package/dist/luau-DtBSxLyz.js +6 -0
  180. package/dist/make-CsMclxtr.js +6 -0
  181. package/dist/marko-OTJE9YCh.js +23 -0
  182. package/dist/material-theme-D6KBX41T.js +4 -0
  183. package/dist/material-theme-darker-CkRroheE.js +4 -0
  184. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  185. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  186. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  187. package/dist/matlab-BOAaUVP0.js +6 -0
  188. package/dist/mdc-tFNBAW39.js +21 -0
  189. package/dist/mdx-BOhZZUJ8.js +6 -0
  190. package/dist/mermaid-B0ixDHKN.js +6 -0
  191. package/dist/mermaid-NA5CF7SZ-620UJKEg.js +14 -0
  192. package/dist/mermaid.core-08D5Vldk.js +14401 -0
  193. package/dist/min-dark-C7ak0t6c.js +4 -0
  194. package/dist/min-light-CKFxVcPp.js +4 -0
  195. package/dist/mindmap-definition-VGOIOE7T-CTZ_Wx0b.js +798 -0
  196. package/dist/mipsasm-CTx18fBl.js +6 -0
  197. package/dist/mojo-BD611d7o.js +6 -0
  198. package/dist/monokai-C1KBYcO0.js +4 -0
  199. package/dist/move-F-dICmj2.js +6 -0
  200. package/dist/narrat-DmhDCBs-.js +6 -0
  201. package/dist/nextflow-DmSVRGjG.js +6 -0
  202. package/dist/nginx-COxS3qoU.js +9 -0
  203. package/dist/night-owl-Bm2rzalh.js +4 -0
  204. package/dist/nim-CZHmlxcO.js +28 -0
  205. package/dist/nix-BZK5F767.js +9 -0
  206. package/dist/nord-CC5OiUXg.js +4 -0
  207. package/dist/nushell-D8j3dhT-.js +6 -0
  208. package/dist/objective-c-Itk8tzmv.js +6 -0
  209. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  210. package/dist/ocaml-eSVK32Eg.js +6 -0
  211. package/dist/openscad-Sp5uZ6f2.js +6 -0
  212. package/dist/ordinal-MUacOSdK.js +65 -0
  213. package/dist/pascal-xy8pJNns.js +6 -0
  214. package/dist/perl-CvmtpKyV.js +24 -0
  215. package/dist/php-B1tFq0rn.js +25 -0
  216. package/dist/pieDiagram-ADFJNKIX-DtleX3ES.js +173 -0
  217. package/dist/pkl-C-zSNmaA.js +6 -0
  218. package/dist/plastic-CSTz3KZp.js +4 -0
  219. package/dist/plsql-pVbGZfOv.js +6 -0
  220. package/dist/po-BNfHvqmm.js +6 -0
  221. package/dist/poimandres-C-VADXHD.js +4 -0
  222. package/dist/polar-CAZahv3u.js +6 -0
  223. package/dist/postcss-05aHdL-n.js +6 -0
  224. package/dist/powerquery-DI9HkTvs.js +6 -0
  225. package/dist/powershell-Clc4ydu-.js +6 -0
  226. package/dist/prisma-FZjmVtSl.js +6 -0
  227. package/dist/prolog-C5-yg4TO.js +6 -0
  228. package/dist/proto-MmCPeFAD.js +6 -0
  229. package/dist/pug-xpTstXA9.js +20 -0
  230. package/dist/puppet-CUJHmnxV.js +6 -0
  231. package/dist/purescript-rUfGld-4.js +6 -0
  232. package/dist/qml-G4_KKZym.js +18 -0
  233. package/dist/qmldir-BInDYbpo.js +6 -0
  234. package/dist/qss-AeJTysr_.js +6 -0
  235. package/dist/quadrantDiagram-AYHSOK5B-D193y_DL.js +1038 -0
  236. package/dist/r-Bm0uF0U2.js +6 -0
  237. package/dist/racket-B83wSAja.js +6 -0
  238. package/dist/raku-nEQ4ZJJ7.js +6 -0
  239. package/dist/razor-BS4LwTsw.js +19 -0
  240. package/dist/red-7y8PH7HH.js +4 -0
  241. package/dist/reg-m_s_Kiip.js +6 -0
  242. package/dist/regexp-BazyLpPg.js +6 -0
  243. package/dist/rel-BcRfyd6Q.js +6 -0
  244. package/dist/requirementDiagram-UZGBJVZJ-DcSe-m6d.js +864 -0
  245. package/dist/riscv-Ce8MAQLP.js +6 -0
  246. package/dist/rose-pine-BKc3yVeu.js +4 -0
  247. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  248. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  249. package/dist/rosmsg-Cz0w1km8.js +6 -0
  250. package/dist/rst-BvkiqG_4.js +39 -0
  251. package/dist/ruby-CSrNBwZK.js +40 -0
  252. package/dist/sankeyDiagram-TZEHDZUN-HpXuokMl.js +838 -0
  253. package/dist/sas-DciBl6hq.js +18 -0
  254. package/dist/sass-DxHp5rTx.js +6 -0
  255. package/dist/scala-D4grkFkl.js +6 -0
  256. package/dist/scheme-BCRWuEm4.js +6 -0
  257. package/dist/scss-Sr5SHsiH.js +18 -0
  258. package/dist/sdbl-B7T8abf4.js +6 -0
  259. package/dist/sequenceDiagram-WL72ISMW-D_5I_YtC.js +2530 -0
  260. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  261. package/dist/shellsession-B0YIY3D-.js +18 -0
  262. package/dist/slack-dark-i7wN4OET.js +4 -0
  263. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  264. package/dist/smalltalk-BlI1_OkM.js +6 -0
  265. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  266. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  267. package/dist/solarized-light-BheCkDPT.js +4 -0
  268. package/dist/solidity-DUWnFhS6.js +6 -0
  269. package/dist/soy-I6L3jl3W.js +18 -0
  270. package/dist/sparql-B0KWFEri.js +8 -0
  271. package/dist/splunk-CRXR8A9s.js +6 -0
  272. package/dist/ssh-config-DP-hNVbF.js +6 -0
  273. package/dist/stata-BNwq7-ev.js +18 -0
  274. package/dist/stateDiagram-FKZM4ZOC-CRSpvNED.js +276 -0
  275. package/dist/stateDiagram-v2-4FDKWEC3-DfUK-Zbc.js +29 -0
  276. package/dist/style.css +1 -1
  277. package/dist/stylus-CyKEU1Ej.js +6 -0
  278. package/dist/svelte-Din0yw3u.js +22 -0
  279. package/dist/swift-9UzSvamq.js +6 -0
  280. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  281. package/dist/system-verilog-BCm7smPJ.js +6 -0
  282. package/dist/systemd-C-4qm6XH.js +6 -0
  283. package/dist/talonscript-CFF3LF_O.js +6 -0
  284. package/dist/tasl-Cg_WBUAe.js +6 -0
  285. package/dist/tcl-DN7buRTF.js +6 -0
  286. package/dist/templ-CBu7yCES.js +20 -0
  287. package/dist/terraform-DGvcn9zM.js +6 -0
  288. package/dist/tex-DpOayVob.js +8 -0
  289. package/dist/timeline-definition-IT6M3QCI-DaJ4iEOK.js +813 -0
  290. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  291. package/dist/treemap-KMMF4GRG-C3Ab2yjL.js +16045 -0
  292. package/dist/ts-tags-3Kvfz4et.js +49 -0
  293. package/dist/tsv-BtvSkaG0.js +6 -0
  294. package/dist/tsx-B8rCNbgL.js +6 -0
  295. package/dist/turtle-_H59FV7D.js +6 -0
  296. package/dist/twig-3l_q-6xZ.js +37 -0
  297. package/dist/typespec-DWqp-kUU.js +6 -0
  298. package/dist/typst-D_1QKWns.js +6 -0
  299. package/dist/v-BPCNiyYe.js +6 -0
  300. package/dist/vala-uxaPR7d1.js +6 -0
  301. package/dist/vb-D8_c5-KN.js +6 -0
  302. package/dist/verilog-B-bybjPF.js +6 -0
  303. package/dist/vesper-BckBta1U.js +4 -0
  304. package/dist/vhdl-CUlNa8ac.js +6 -0
  305. package/dist/viml-DsfA-sWm.js +6 -0
  306. package/dist/vitesse-black-BoGvW84i.js +4 -0
  307. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  308. package/dist/vitesse-light-CcmG315c.js +4 -0
  309. package/dist/vue-BuFQ04-G.js +37 -0
  310. package/dist/vue-html-CyxHqgfT.js +21 -0
  311. package/dist/vue-vine-B_YNGutq.js +30 -0
  312. package/dist/vyper-CPQuu50u.js +6 -0
  313. package/dist/wasm-BBXxrAl7.js +6 -0
  314. package/dist/wasm-DQxwEHae.js +7 -0
  315. package/dist/wenyan-pbVjoM9_.js +6 -0
  316. package/dist/wgsl-DY4iK1q1.js +6 -0
  317. package/dist/wikitext-Z-MoUasO.js +6 -0
  318. package/dist/wit-CQMQOlTg.js +6 -0
  319. package/dist/wolfram-Dz4KXISs.js +6 -0
  320. package/dist/xml-C2J0sS9M.js +8 -0
  321. package/dist/xsl-CbTBIiv3.js +9 -0
  322. package/dist/xychartDiagram-PRI3JC2R-Cf2smXg5.js +1353 -0
  323. package/dist/zenscript-CxBjpf9c.js +6 -0
  324. package/dist/zig-Vm0PO9wB.js +6 -0
  325. package/package.json +25 -25
@@ -0,0 +1,1353 @@
1
+ import { s as gi, g as xi, q as Xt, p as di, a as pi, b as fi, _ as a, l as Nt, H as mi, e as yi, y as bi, F as St, i as Ai, D as Yt, E as wi, K as Ci, ak as Si, R as Wt } from "./mermaid.core-08D5Vldk.js";
2
+ import { i as _i } from "./init-DjUOC4st.js";
3
+ import { o as ki } from "./ordinal-MUacOSdK.js";
4
+ import { l as zt } from "./linear-sERCAB61.js";
5
+ import "./index-C3mwt8G1.js";
6
+ import "react/jsx-runtime";
7
+ import "react";
8
+ import "class-variance-authority";
9
+ import "clsx";
10
+ import "tailwind-merge";
11
+ import "react-dom";
12
+ import "cmdk";
13
+ import "nanoid";
14
+ import "@foris/avocado-icons";
15
+ import "react-markdown";
16
+ import "./defaultLocale-D1piDxzZ.js";
17
+ function Ri(e, t, i) {
18
+ e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
19
+ for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
20
+ o[s] = e + s * i;
21
+ return o;
22
+ }
23
+ function yt() {
24
+ var e = ki().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, o, g, m = !1, f = 0, k = 0, v = 0.5;
25
+ delete e.unknown;
26
+ function C() {
27
+ var b = t().length, E = n < s, D = E ? n : s, P = E ? s : n;
28
+ o = (P - D) / Math.max(1, b - f + k * 2), m && (o = Math.floor(o)), D += (P - D - o * (b - f)) * v, g = o * (1 - f), m && (D = Math.round(D), g = Math.round(g));
29
+ var I = Ri(b).map(function(y) {
30
+ return D + o * y;
31
+ });
32
+ return i(E ? I.reverse() : I);
33
+ }
34
+ return e.domain = function(b) {
35
+ return arguments.length ? (t(b), C()) : t();
36
+ }, e.range = function(b) {
37
+ return arguments.length ? ([s, n] = b, s = +s, n = +n, C()) : [s, n];
38
+ }, e.rangeRound = function(b) {
39
+ return [s, n] = b, s = +s, n = +n, m = !0, C();
40
+ }, e.bandwidth = function() {
41
+ return g;
42
+ }, e.step = function() {
43
+ return o;
44
+ }, e.round = function(b) {
45
+ return arguments.length ? (m = !!b, C()) : m;
46
+ }, e.padding = function(b) {
47
+ return arguments.length ? (f = Math.min(1, k = +b), C()) : f;
48
+ }, e.paddingInner = function(b) {
49
+ return arguments.length ? (f = Math.min(1, b), C()) : f;
50
+ }, e.paddingOuter = function(b) {
51
+ return arguments.length ? (k = +b, C()) : k;
52
+ }, e.align = function(b) {
53
+ return arguments.length ? (v = Math.max(0, Math.min(1, b)), C()) : v;
54
+ }, e.copy = function() {
55
+ return yt(t(), [s, n]).round(m).paddingInner(f).paddingOuter(k).align(v);
56
+ }, _i.apply(C(), arguments);
57
+ }
58
+ var bt = function() {
59
+ var e = /* @__PURE__ */ a(function(F, h, u, x) {
60
+ for (u = u || {}, x = F.length; x--; u[F[x]] = h)
61
+ ;
62
+ return u;
63
+ }, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5], o = [1, 6], g = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], f = [1, 25], k = [1, 26], v = [1, 28], C = [1, 29], b = [1, 30], E = [1, 31], D = [1, 32], P = [1, 33], I = [1, 34], y = [1, 35], _ = [1, 36], c = [1, 37], W = [1, 43], z = [1, 42], U = [1, 47], X = [1, 50], l = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], S = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], R = [1, 64], $ = {
64
+ trace: /* @__PURE__ */ a(function() {
65
+ }, "trace"),
66
+ yy: {},
67
+ symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
68
+ terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
69
+ productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
70
+ performAction: /* @__PURE__ */ a(function(h, u, x, d, w, r, j) {
71
+ var p = r.length - 1;
72
+ switch (w) {
73
+ case 5:
74
+ d.setOrientation(r[p]);
75
+ break;
76
+ case 9:
77
+ d.setDiagramTitle(r[p].text.trim());
78
+ break;
79
+ case 12:
80
+ d.setLineData({ text: "", type: "text" }, r[p]);
81
+ break;
82
+ case 13:
83
+ d.setLineData(r[p - 1], r[p]);
84
+ break;
85
+ case 14:
86
+ d.setBarData({ text: "", type: "text" }, r[p]);
87
+ break;
88
+ case 15:
89
+ d.setBarData(r[p - 1], r[p]);
90
+ break;
91
+ case 16:
92
+ this.$ = r[p].trim(), d.setAccTitle(this.$);
93
+ break;
94
+ case 17:
95
+ case 18:
96
+ this.$ = r[p].trim(), d.setAccDescription(this.$);
97
+ break;
98
+ case 19:
99
+ this.$ = r[p - 1];
100
+ break;
101
+ case 20:
102
+ this.$ = [Number(r[p - 2]), ...r[p]];
103
+ break;
104
+ case 21:
105
+ this.$ = [Number(r[p])];
106
+ break;
107
+ case 22:
108
+ d.setXAxisTitle(r[p]);
109
+ break;
110
+ case 23:
111
+ d.setXAxisTitle(r[p - 1]);
112
+ break;
113
+ case 24:
114
+ d.setXAxisTitle({ type: "text", text: "" });
115
+ break;
116
+ case 25:
117
+ d.setXAxisBand(r[p]);
118
+ break;
119
+ case 26:
120
+ d.setXAxisRangeData(Number(r[p - 2]), Number(r[p]));
121
+ break;
122
+ case 27:
123
+ this.$ = r[p - 1];
124
+ break;
125
+ case 28:
126
+ this.$ = [r[p - 2], ...r[p]];
127
+ break;
128
+ case 29:
129
+ this.$ = [r[p]];
130
+ break;
131
+ case 30:
132
+ d.setYAxisTitle(r[p]);
133
+ break;
134
+ case 31:
135
+ d.setYAxisTitle(r[p - 1]);
136
+ break;
137
+ case 32:
138
+ d.setYAxisTitle({ type: "text", text: "" });
139
+ break;
140
+ case 33:
141
+ d.setYAxisRangeData(Number(r[p - 2]), Number(r[p]));
142
+ break;
143
+ case 37:
144
+ this.$ = { text: r[p], type: "text" };
145
+ break;
146
+ case 38:
147
+ this.$ = { text: r[p], type: "text" };
148
+ break;
149
+ case 39:
150
+ this.$ = { text: r[p], type: "markdown" };
151
+ break;
152
+ case 40:
153
+ this.$ = r[p];
154
+ break;
155
+ case 41:
156
+ this.$ = r[p - 1] + "" + r[p];
157
+ break;
158
+ }
159
+ }, "anonymous"),
160
+ table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: o, 36: g }), { 1: [3] }, e(t, i, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: o, 36: g }), e(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: o, 36: g }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, e(m, [2, 34]), e(m, [2, 35]), e(m, [2, 36]), { 1: [2, 1] }, e(t, i, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: o, 36: g }), { 1: [2, 3] }, e(m, [2, 5]), e(t, [2, 7], { 4: 22, 34: n, 35: o, 36: g }), { 11: 23, 37: 24, 38: f, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 39, 13: 38, 24: W, 27: z, 29: 40, 30: 41, 37: 24, 38: f, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: f, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 49, 17: 48, 24: X, 37: 24, 38: f, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 11: 52, 17: 51, 24: X, 37: 24, 38: f, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, { 20: [1, 53] }, { 22: [1, 54] }, e(l, [2, 18]), { 1: [2, 2] }, e(l, [2, 8]), e(l, [2, 9]), e(L, [2, 37], { 40: 55, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }), e(L, [2, 38]), e(L, [2, 39]), e(S, [2, 40]), e(S, [2, 42]), e(S, [2, 43]), e(S, [2, 44]), e(S, [2, 45]), e(S, [2, 46]), e(S, [2, 47]), e(S, [2, 48]), e(S, [2, 49]), e(S, [2, 50]), e(S, [2, 51]), e(l, [2, 10]), e(l, [2, 22], { 30: 41, 29: 56, 24: W, 27: z }), e(l, [2, 24]), e(l, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: f, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, e(l, [2, 11]), e(l, [2, 30], { 33: 60, 27: U }), e(l, [2, 32]), { 31: [1, 61] }, e(l, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: R }, e(l, [2, 14]), { 17: 65, 24: X }, e(l, [2, 16]), e(l, [2, 17]), e(S, [2, 41]), e(l, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, e(l, [2, 31]), { 27: [1, 69] }, e(l, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, e(l, [2, 15]), e(l, [2, 26]), e(l, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: f, 39: k, 40: 27, 41: v, 42: C, 43: b, 44: E, 45: D, 46: P, 47: I, 48: y, 49: _, 50: c }, e(l, [2, 33]), e(l, [2, 19]), { 25: 73, 27: R }, { 26: [2, 28] }, { 26: [2, 20] }],
161
+ defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
162
+ parseError: /* @__PURE__ */ a(function(h, u) {
163
+ if (u.recoverable)
164
+ this.trace(h);
165
+ else {
166
+ var x = new Error(h);
167
+ throw x.hash = u, x;
168
+ }
169
+ }, "parseError"),
170
+ parse: /* @__PURE__ */ a(function(h) {
171
+ var u = this, x = [0], d = [], w = [null], r = [], j = this.table, p = "", lt = 0, It = 0, hi = 2, Mt = 1, li = r.slice.call(arguments, 1), T = Object.create(this.lexer), Y = { yy: {} };
172
+ for (var dt in this.yy)
173
+ Object.prototype.hasOwnProperty.call(this.yy, dt) && (Y.yy[dt] = this.yy[dt]);
174
+ T.setInput(h, Y.yy), Y.yy.lexer = T, Y.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
175
+ var pt = T.yylloc;
176
+ r.push(pt);
177
+ var ci = T.options && T.options.ranges;
178
+ typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
179
+ function ui(V) {
180
+ x.length = x.length - 2 * V, w.length = w.length - V, r.length = r.length - V;
181
+ }
182
+ a(ui, "popStack");
183
+ function Vt() {
184
+ var V;
185
+ return V = d.pop() || T.lex() || Mt, typeof V != "number" && (V instanceof Array && (d = V, V = d.pop()), V = u.symbols_[V] || V), V;
186
+ }
187
+ a(Vt, "lex");
188
+ for (var M, H, B, ft, q = {}, ct, O, Bt, ut; ; ) {
189
+ if (H = x[x.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = Vt()), B = j[H] && j[H][M]), typeof B > "u" || !B.length || !B[0]) {
190
+ var mt = "";
191
+ ut = [];
192
+ for (ct in j[H])
193
+ this.terminals_[ct] && ct > hi && ut.push("'" + this.terminals_[ct] + "'");
194
+ T.showPosition ? mt = "Parse error on line " + (lt + 1) + `:
195
+ ` + T.showPosition() + `
196
+ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt = "Parse error on line " + (lt + 1) + ": Unexpected " + (M == Mt ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(mt, {
197
+ text: T.match,
198
+ token: this.terminals_[M] || M,
199
+ line: T.yylineno,
200
+ loc: pt,
201
+ expected: ut
202
+ });
203
+ }
204
+ if (B[0] instanceof Array && B.length > 1)
205
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + M);
206
+ switch (B[0]) {
207
+ case 1:
208
+ x.push(M), w.push(T.yytext), r.push(T.yylloc), x.push(B[1]), M = null, It = T.yyleng, p = T.yytext, lt = T.yylineno, pt = T.yylloc;
209
+ break;
210
+ case 2:
211
+ if (O = this.productions_[B[1]][1], q.$ = w[w.length - O], q._$ = {
212
+ first_line: r[r.length - (O || 1)].first_line,
213
+ last_line: r[r.length - 1].last_line,
214
+ first_column: r[r.length - (O || 1)].first_column,
215
+ last_column: r[r.length - 1].last_column
216
+ }, ci && (q._$.range = [
217
+ r[r.length - (O || 1)].range[0],
218
+ r[r.length - 1].range[1]
219
+ ]), ft = this.performAction.apply(q, [
220
+ p,
221
+ It,
222
+ lt,
223
+ Y.yy,
224
+ B[1],
225
+ w,
226
+ r
227
+ ].concat(li)), typeof ft < "u")
228
+ return ft;
229
+ O && (x = x.slice(0, -1 * O * 2), w = w.slice(0, -1 * O), r = r.slice(0, -1 * O)), x.push(this.productions_[B[1]][0]), w.push(q.$), r.push(q._$), Bt = j[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
230
+ break;
231
+ case 3:
232
+ return !0;
233
+ }
234
+ }
235
+ return !0;
236
+ }, "parse")
237
+ }, Et = /* @__PURE__ */ function() {
238
+ var F = {
239
+ EOF: 1,
240
+ parseError: /* @__PURE__ */ a(function(u, x) {
241
+ if (this.yy.parser)
242
+ this.yy.parser.parseError(u, x);
243
+ else
244
+ throw new Error(u);
245
+ }, "parseError"),
246
+ // resets the lexer, sets new input
247
+ setInput: /* @__PURE__ */ a(function(h, u) {
248
+ return this.yy = u || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
249
+ first_line: 1,
250
+ first_column: 0,
251
+ last_line: 1,
252
+ last_column: 0
253
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
254
+ }, "setInput"),
255
+ // consumes and returns one char from the input
256
+ input: /* @__PURE__ */ a(function() {
257
+ var h = this._input[0];
258
+ this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
259
+ var u = h.match(/(?:\r\n?|\n).*/g);
260
+ return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
261
+ }, "input"),
262
+ // unshifts one char (or a string) into the input
263
+ unput: /* @__PURE__ */ a(function(h) {
264
+ var u = h.length, x = h.split(/(?:\r\n?|\n)/g);
265
+ this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
266
+ var d = this.match.split(/(?:\r\n?|\n)/g);
267
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
268
+ var w = this.yylloc.range;
269
+ return this.yylloc = {
270
+ first_line: this.yylloc.first_line,
271
+ last_line: this.yylineno + 1,
272
+ first_column: this.yylloc.first_column,
273
+ last_column: x ? (x.length === d.length ? this.yylloc.first_column : 0) + d[d.length - x.length].length - x[0].length : this.yylloc.first_column - u
274
+ }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
275
+ }, "unput"),
276
+ // When called from action, caches matched text and appends it on next action
277
+ more: /* @__PURE__ */ a(function() {
278
+ return this._more = !0, this;
279
+ }, "more"),
280
+ // 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.
281
+ reject: /* @__PURE__ */ a(function() {
282
+ if (this.options.backtrack_lexer)
283
+ this._backtrack = !0;
284
+ else
285
+ 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).
286
+ ` + this.showPosition(), {
287
+ text: "",
288
+ token: null,
289
+ line: this.yylineno
290
+ });
291
+ return this;
292
+ }, "reject"),
293
+ // retain first n characters of the match
294
+ less: /* @__PURE__ */ a(function(h) {
295
+ this.unput(this.match.slice(h));
296
+ }, "less"),
297
+ // displays already matched input, i.e. for error messages
298
+ pastInput: /* @__PURE__ */ a(function() {
299
+ var h = this.matched.substr(0, this.matched.length - this.match.length);
300
+ return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
301
+ }, "pastInput"),
302
+ // displays upcoming input, i.e. for error messages
303
+ upcomingInput: /* @__PURE__ */ a(function() {
304
+ var h = this.match;
305
+ return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
306
+ }, "upcomingInput"),
307
+ // displays the character position where the lexing error occurred, i.e. for error messages
308
+ showPosition: /* @__PURE__ */ a(function() {
309
+ var h = this.pastInput(), u = new Array(h.length + 1).join("-");
310
+ return h + this.upcomingInput() + `
311
+ ` + u + "^";
312
+ }, "showPosition"),
313
+ // test the lexed token: return FALSE when not a match, otherwise return token
314
+ test_match: /* @__PURE__ */ a(function(h, u) {
315
+ var x, d, w;
316
+ if (this.options.backtrack_lexer && (w = {
317
+ yylineno: this.yylineno,
318
+ yylloc: {
319
+ first_line: this.yylloc.first_line,
320
+ last_line: this.last_line,
321
+ first_column: this.yylloc.first_column,
322
+ last_column: this.yylloc.last_column
323
+ },
324
+ yytext: this.yytext,
325
+ match: this.match,
326
+ matches: this.matches,
327
+ matched: this.matched,
328
+ yyleng: this.yyleng,
329
+ offset: this.offset,
330
+ _more: this._more,
331
+ _input: this._input,
332
+ yy: this.yy,
333
+ conditionStack: this.conditionStack.slice(0),
334
+ done: this.done
335
+ }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), d = h[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
336
+ first_line: this.yylloc.last_line,
337
+ last_line: this.yylineno + 1,
338
+ first_column: this.yylloc.last_column,
339
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
340
+ }, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], x = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x)
341
+ return x;
342
+ if (this._backtrack) {
343
+ for (var r in w)
344
+ this[r] = w[r];
345
+ return !1;
346
+ }
347
+ return !1;
348
+ }, "test_match"),
349
+ // return next match in input
350
+ next: /* @__PURE__ */ a(function() {
351
+ if (this.done)
352
+ return this.EOF;
353
+ this._input || (this.done = !0);
354
+ var h, u, x, d;
355
+ this._more || (this.yytext = "", this.match = "");
356
+ for (var w = this._currentRules(), r = 0; r < w.length; r++)
357
+ if (x = this._input.match(this.rules[w[r]]), x && (!u || x[0].length > u[0].length)) {
358
+ if (u = x, d = r, this.options.backtrack_lexer) {
359
+ if (h = this.test_match(x, w[r]), h !== !1)
360
+ return h;
361
+ if (this._backtrack) {
362
+ u = !1;
363
+ continue;
364
+ } else
365
+ return !1;
366
+ } else if (!this.options.flex)
367
+ break;
368
+ }
369
+ return u ? (h = this.test_match(u, w[d]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
370
+ ` + this.showPosition(), {
371
+ text: "",
372
+ token: null,
373
+ line: this.yylineno
374
+ });
375
+ }, "next"),
376
+ // return next match that has a token
377
+ lex: /* @__PURE__ */ a(function() {
378
+ var u = this.next();
379
+ return u || this.lex();
380
+ }, "lex"),
381
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
382
+ begin: /* @__PURE__ */ a(function(u) {
383
+ this.conditionStack.push(u);
384
+ }, "begin"),
385
+ // pop the previously active lexer condition state off the condition stack
386
+ popState: /* @__PURE__ */ a(function() {
387
+ var u = this.conditionStack.length - 1;
388
+ return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
389
+ }, "popState"),
390
+ // produce the lexer rule set which is active for the currently active lexer condition state
391
+ _currentRules: /* @__PURE__ */ a(function() {
392
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
393
+ }, "_currentRules"),
394
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
395
+ topState: /* @__PURE__ */ a(function(u) {
396
+ return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
397
+ }, "topState"),
398
+ // alias for begin(condition)
399
+ pushState: /* @__PURE__ */ a(function(u) {
400
+ this.begin(u);
401
+ }, "pushState"),
402
+ // return the number of states currently on the stack
403
+ stateStackSize: /* @__PURE__ */ a(function() {
404
+ return this.conditionStack.length;
405
+ }, "stateStackSize"),
406
+ options: { "case-insensitive": !0 },
407
+ performAction: /* @__PURE__ */ a(function(u, x, d, w) {
408
+ switch (d) {
409
+ case 0:
410
+ break;
411
+ case 1:
412
+ break;
413
+ case 2:
414
+ return this.popState(), 34;
415
+ case 3:
416
+ return this.popState(), 34;
417
+ case 4:
418
+ return 34;
419
+ case 5:
420
+ break;
421
+ case 6:
422
+ return 10;
423
+ case 7:
424
+ return this.pushState("acc_title"), 19;
425
+ case 8:
426
+ return this.popState(), "acc_title_value";
427
+ case 9:
428
+ return this.pushState("acc_descr"), 21;
429
+ case 10:
430
+ return this.popState(), "acc_descr_value";
431
+ case 11:
432
+ this.pushState("acc_descr_multiline");
433
+ break;
434
+ case 12:
435
+ this.popState();
436
+ break;
437
+ case 13:
438
+ return "acc_descr_multiline_value";
439
+ case 14:
440
+ return 5;
441
+ case 15:
442
+ return 5;
443
+ case 16:
444
+ return 8;
445
+ case 17:
446
+ return this.pushState("axis_data"), "X_AXIS";
447
+ case 18:
448
+ return this.pushState("axis_data"), "Y_AXIS";
449
+ case 19:
450
+ return this.pushState("axis_band_data"), 24;
451
+ case 20:
452
+ return 31;
453
+ case 21:
454
+ return this.pushState("data"), 16;
455
+ case 22:
456
+ return this.pushState("data"), 18;
457
+ case 23:
458
+ return this.pushState("data_inner"), 24;
459
+ case 24:
460
+ return 27;
461
+ case 25:
462
+ return this.popState(), 26;
463
+ case 26:
464
+ this.popState();
465
+ break;
466
+ case 27:
467
+ this.pushState("string");
468
+ break;
469
+ case 28:
470
+ this.popState();
471
+ break;
472
+ case 29:
473
+ return "STR";
474
+ case 30:
475
+ return 24;
476
+ case 31:
477
+ return 26;
478
+ case 32:
479
+ return 43;
480
+ case 33:
481
+ return "COLON";
482
+ case 34:
483
+ return 44;
484
+ case 35:
485
+ return 28;
486
+ case 36:
487
+ return 45;
488
+ case 37:
489
+ return 46;
490
+ case 38:
491
+ return 48;
492
+ case 39:
493
+ return 50;
494
+ case 40:
495
+ return 47;
496
+ case 41:
497
+ return 41;
498
+ case 42:
499
+ return 49;
500
+ case 43:
501
+ return 42;
502
+ case 44:
503
+ break;
504
+ case 45:
505
+ return 35;
506
+ case 46:
507
+ return 36;
508
+ }
509
+ }, "anonymous"),
510
+ rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:xychart\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
511
+ conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [28, 29], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 } }
512
+ };
513
+ return F;
514
+ }();
515
+ $.lexer = Et;
516
+ function N() {
517
+ this.yy = {};
518
+ }
519
+ return a(N, "Parser"), N.prototype = $, $.Parser = N, new N();
520
+ }();
521
+ bt.parser = bt;
522
+ var Ti = bt;
523
+ function At(e) {
524
+ return e.type === "bar";
525
+ }
526
+ a(At, "isBarPlot");
527
+ function _t(e) {
528
+ return e.type === "band";
529
+ }
530
+ a(_t, "isBandAxisData");
531
+ function G(e) {
532
+ return e.type === "linear";
533
+ }
534
+ a(G, "isLinearAxisData");
535
+ var J, Ht = (J = class {
536
+ constructor(t) {
537
+ this.parentGroup = t;
538
+ }
539
+ getMaxDimension(t, i) {
540
+ if (!this.parentGroup)
541
+ return {
542
+ width: t.reduce((o, g) => Math.max(g.length, o), 0) * i,
543
+ height: i
544
+ };
545
+ const s = {
546
+ width: 0,
547
+ height: 0
548
+ }, n = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
549
+ for (const o of t) {
550
+ const g = Si(n, 1, o), m = g ? g.width : o.length * i, f = g ? g.height : i;
551
+ s.width = Math.max(s.width, m), s.height = Math.max(s.height, f);
552
+ }
553
+ return n.remove(), s;
554
+ }
555
+ }, a(J, "TextDimensionCalculatorWithFont"), J), Ft = 0.7, Ot = 0.2, tt, Ut = (tt = class {
556
+ constructor(t, i, s, n) {
557
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
558
+ }
559
+ setRange(t) {
560
+ this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
561
+ }
562
+ getRange() {
563
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
564
+ }
565
+ setAxisPosition(t) {
566
+ this.axisPosition = t, this.setRange(this.range);
567
+ }
568
+ getTickDistance() {
569
+ const t = this.getRange();
570
+ return Math.abs(t[0] - t[1]) / this.getTickValues().length;
571
+ }
572
+ getAxisOuterPadding() {
573
+ return this.outerPadding;
574
+ }
575
+ getLabelDimension() {
576
+ return this.textDimensionCalculator.getMaxDimension(
577
+ this.getTickValues().map((t) => t.toString()),
578
+ this.axisConfig.labelFontSize
579
+ );
580
+ }
581
+ recalculateOuterPaddingToDrawBar() {
582
+ Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
583
+ }
584
+ calculateSpaceIfDrawnHorizontally(t) {
585
+ let i = t.height;
586
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
587
+ const s = this.getLabelDimension(), n = Ot * t.width;
588
+ this.outerPadding = Math.min(s.width / 2, n);
589
+ const o = s.height + this.axisConfig.labelPadding * 2;
590
+ this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
591
+ }
592
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
593
+ const s = this.textDimensionCalculator.getMaxDimension(
594
+ [this.title],
595
+ this.axisConfig.titleFontSize
596
+ ), n = s.height + this.axisConfig.titlePadding * 2;
597
+ this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
598
+ }
599
+ this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
600
+ }
601
+ calculateSpaceIfDrawnVertical(t) {
602
+ let i = t.width;
603
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
604
+ const s = this.getLabelDimension(), n = Ot * t.height;
605
+ this.outerPadding = Math.min(s.height / 2, n);
606
+ const o = s.width + this.axisConfig.labelPadding * 2;
607
+ o <= i && (i -= o, this.showLabel = !0);
608
+ }
609
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
610
+ const s = this.textDimensionCalculator.getMaxDimension(
611
+ [this.title],
612
+ this.axisConfig.titleFontSize
613
+ ), n = s.height + this.axisConfig.titlePadding * 2;
614
+ this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
615
+ }
616
+ this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
617
+ }
618
+ calculateSpace(t) {
619
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
620
+ width: this.boundingRect.width,
621
+ height: this.boundingRect.height
622
+ };
623
+ }
624
+ setBoundingBoxXY(t) {
625
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
626
+ }
627
+ getDrawableElementsForLeftAxis() {
628
+ const t = [];
629
+ if (this.showAxisLine) {
630
+ const i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
631
+ t.push({
632
+ type: "path",
633
+ groupTexts: ["left-axis", "axisl-line"],
634
+ data: [
635
+ {
636
+ path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
637
+ strokeFill: this.axisThemeConfig.axisLineColor,
638
+ strokeWidth: this.axisConfig.axisLineWidth
639
+ }
640
+ ]
641
+ });
642
+ }
643
+ if (this.showLabel && t.push({
644
+ type: "text",
645
+ groupTexts: ["left-axis", "label"],
646
+ data: this.getTickValues().map((i) => ({
647
+ text: i.toString(),
648
+ x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
649
+ y: this.getScaleValue(i),
650
+ fill: this.axisThemeConfig.labelColor,
651
+ fontSize: this.axisConfig.labelFontSize,
652
+ rotation: 0,
653
+ verticalPos: "middle",
654
+ horizontalPos: "right"
655
+ }))
656
+ }), this.showTick) {
657
+ const i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
658
+ t.push({
659
+ type: "path",
660
+ groupTexts: ["left-axis", "ticks"],
661
+ data: this.getTickValues().map((s) => ({
662
+ path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
663
+ strokeFill: this.axisThemeConfig.tickColor,
664
+ strokeWidth: this.axisConfig.tickWidth
665
+ }))
666
+ });
667
+ }
668
+ return this.showTitle && t.push({
669
+ type: "text",
670
+ groupTexts: ["left-axis", "title"],
671
+ data: [
672
+ {
673
+ text: this.title,
674
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
675
+ y: this.boundingRect.y + this.boundingRect.height / 2,
676
+ fill: this.axisThemeConfig.titleColor,
677
+ fontSize: this.axisConfig.titleFontSize,
678
+ rotation: 270,
679
+ verticalPos: "top",
680
+ horizontalPos: "center"
681
+ }
682
+ ]
683
+ }), t;
684
+ }
685
+ getDrawableElementsForBottomAxis() {
686
+ const t = [];
687
+ if (this.showAxisLine) {
688
+ const i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
689
+ t.push({
690
+ type: "path",
691
+ groupTexts: ["bottom-axis", "axis-line"],
692
+ data: [
693
+ {
694
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
695
+ strokeFill: this.axisThemeConfig.axisLineColor,
696
+ strokeWidth: this.axisConfig.axisLineWidth
697
+ }
698
+ ]
699
+ });
700
+ }
701
+ if (this.showLabel && t.push({
702
+ type: "text",
703
+ groupTexts: ["bottom-axis", "label"],
704
+ data: this.getTickValues().map((i) => ({
705
+ text: i.toString(),
706
+ x: this.getScaleValue(i),
707
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
708
+ fill: this.axisThemeConfig.labelColor,
709
+ fontSize: this.axisConfig.labelFontSize,
710
+ rotation: 0,
711
+ verticalPos: "top",
712
+ horizontalPos: "center"
713
+ }))
714
+ }), this.showTick) {
715
+ const i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
716
+ t.push({
717
+ type: "path",
718
+ groupTexts: ["bottom-axis", "ticks"],
719
+ data: this.getTickValues().map((s) => ({
720
+ path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
721
+ strokeFill: this.axisThemeConfig.tickColor,
722
+ strokeWidth: this.axisConfig.tickWidth
723
+ }))
724
+ });
725
+ }
726
+ return this.showTitle && t.push({
727
+ type: "text",
728
+ groupTexts: ["bottom-axis", "title"],
729
+ data: [
730
+ {
731
+ text: this.title,
732
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
733
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
734
+ fill: this.axisThemeConfig.titleColor,
735
+ fontSize: this.axisConfig.titleFontSize,
736
+ rotation: 0,
737
+ verticalPos: "top",
738
+ horizontalPos: "center"
739
+ }
740
+ ]
741
+ }), t;
742
+ }
743
+ getDrawableElementsForTopAxis() {
744
+ const t = [];
745
+ if (this.showAxisLine) {
746
+ const i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
747
+ t.push({
748
+ type: "path",
749
+ groupTexts: ["top-axis", "axis-line"],
750
+ data: [
751
+ {
752
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
753
+ strokeFill: this.axisThemeConfig.axisLineColor,
754
+ strokeWidth: this.axisConfig.axisLineWidth
755
+ }
756
+ ]
757
+ });
758
+ }
759
+ if (this.showLabel && t.push({
760
+ type: "text",
761
+ groupTexts: ["top-axis", "label"],
762
+ data: this.getTickValues().map((i) => ({
763
+ text: i.toString(),
764
+ x: this.getScaleValue(i),
765
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
766
+ fill: this.axisThemeConfig.labelColor,
767
+ fontSize: this.axisConfig.labelFontSize,
768
+ rotation: 0,
769
+ verticalPos: "top",
770
+ horizontalPos: "center"
771
+ }))
772
+ }), this.showTick) {
773
+ const i = this.boundingRect.y;
774
+ t.push({
775
+ type: "path",
776
+ groupTexts: ["top-axis", "ticks"],
777
+ data: this.getTickValues().map((s) => ({
778
+ path: `M ${this.getScaleValue(s)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(s)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
779
+ strokeFill: this.axisThemeConfig.tickColor,
780
+ strokeWidth: this.axisConfig.tickWidth
781
+ }))
782
+ });
783
+ }
784
+ return this.showTitle && t.push({
785
+ type: "text",
786
+ groupTexts: ["top-axis", "title"],
787
+ data: [
788
+ {
789
+ text: this.title,
790
+ x: this.boundingRect.x + this.boundingRect.width / 2,
791
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
792
+ fill: this.axisThemeConfig.titleColor,
793
+ fontSize: this.axisConfig.titleFontSize,
794
+ rotation: 0,
795
+ verticalPos: "top",
796
+ horizontalPos: "center"
797
+ }
798
+ ]
799
+ }), t;
800
+ }
801
+ getDrawableElements() {
802
+ if (this.axisPosition === "left")
803
+ return this.getDrawableElementsForLeftAxis();
804
+ if (this.axisPosition === "right")
805
+ throw Error("Drawing of right axis is not implemented");
806
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
807
+ }
808
+ }, a(tt, "BaseAxis"), tt), it, Di = (it = class extends Ut {
809
+ constructor(t, i, s, n, o) {
810
+ super(t, n, o, i), this.categories = s, this.scale = yt().domain(this.categories).range(this.getRange());
811
+ }
812
+ setRange(t) {
813
+ super.setRange(t);
814
+ }
815
+ recalculateScale() {
816
+ this.scale = yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Nt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
817
+ }
818
+ getTickValues() {
819
+ return this.categories;
820
+ }
821
+ getScaleValue(t) {
822
+ return this.scale(t) ?? this.getRange()[0];
823
+ }
824
+ }, a(it, "BandAxis"), it), et, vi = (et = class extends Ut {
825
+ constructor(t, i, s, n, o) {
826
+ super(t, n, o, i), this.domain = s, this.scale = zt().domain(this.domain).range(this.getRange());
827
+ }
828
+ getTickValues() {
829
+ return this.scale.ticks();
830
+ }
831
+ recalculateScale() {
832
+ const t = [...this.domain];
833
+ this.axisPosition === "left" && t.reverse(), this.scale = zt().domain(t).range(this.getRange());
834
+ }
835
+ getScaleValue(t) {
836
+ return this.scale(t);
837
+ }
838
+ }, a(et, "LinearAxis"), et);
839
+ function wt(e, t, i, s) {
840
+ const n = new Ht(s);
841
+ return _t(e) ? new Di(
842
+ t,
843
+ i,
844
+ e.categories,
845
+ e.title,
846
+ n
847
+ ) : new vi(
848
+ t,
849
+ i,
850
+ [e.min, e.max],
851
+ e.title,
852
+ n
853
+ );
854
+ }
855
+ a(wt, "getAxis");
856
+ var st, Pi = (st = class {
857
+ constructor(t, i, s, n) {
858
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
859
+ x: 0,
860
+ y: 0,
861
+ width: 0,
862
+ height: 0
863
+ }, this.showChartTitle = !1;
864
+ }
865
+ setBoundingBoxXY(t) {
866
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
867
+ }
868
+ calculateSpace(t) {
869
+ const i = this.textDimensionCalculator.getMaxDimension(
870
+ [this.chartData.title],
871
+ this.chartConfig.titleFontSize
872
+ ), s = Math.max(i.width, t.width), n = i.height + 2 * this.chartConfig.titlePadding;
873
+ return i.width <= s && i.height <= n && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = n, this.showChartTitle = !0), {
874
+ width: this.boundingRect.width,
875
+ height: this.boundingRect.height
876
+ };
877
+ }
878
+ getDrawableElements() {
879
+ const t = [];
880
+ return this.showChartTitle && t.push({
881
+ groupTexts: ["chart-title"],
882
+ type: "text",
883
+ data: [
884
+ {
885
+ fontSize: this.chartConfig.titleFontSize,
886
+ text: this.chartData.title,
887
+ verticalPos: "middle",
888
+ horizontalPos: "center",
889
+ x: this.boundingRect.x + this.boundingRect.width / 2,
890
+ y: this.boundingRect.y + this.boundingRect.height / 2,
891
+ fill: this.chartThemeConfig.titleColor,
892
+ rotation: 0
893
+ }
894
+ ]
895
+ }), t;
896
+ }
897
+ }, a(st, "ChartTitle"), st);
898
+ function $t(e, t, i, s) {
899
+ const n = new Ht(s);
900
+ return new Pi(n, e, t, i);
901
+ }
902
+ a($t, "getChartTitleComponent");
903
+ var nt, Li = (nt = class {
904
+ constructor(t, i, s, n, o) {
905
+ this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex = o;
906
+ }
907
+ getDrawableElement() {
908
+ const t = this.plotData.data.map((s) => [
909
+ this.xAxis.getScaleValue(s[0]),
910
+ this.yAxis.getScaleValue(s[1])
911
+ ]);
912
+ let i;
913
+ return this.orientation === "horizontal" ? i = Wt().y((s) => s[0]).x((s) => s[1])(t) : i = Wt().x((s) => s[0]).y((s) => s[1])(t), i ? [
914
+ {
915
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
916
+ type: "path",
917
+ data: [
918
+ {
919
+ path: i,
920
+ strokeFill: this.plotData.strokeFill,
921
+ strokeWidth: this.plotData.strokeWidth
922
+ }
923
+ ]
924
+ }
925
+ ] : [];
926
+ }
927
+ }, a(nt, "LinePlot"), nt), at, Ei = (at = class {
928
+ constructor(t, i, s, n, o, g) {
929
+ this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation = o, this.plotIndex = g;
930
+ }
931
+ getDrawableElement() {
932
+ const t = this.barData.data.map((o) => [
933
+ this.xAxis.getScaleValue(o[0]),
934
+ this.yAxis.getScaleValue(o[1])
935
+ ]), s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), n = s / 2;
936
+ return this.orientation === "horizontal" ? [
937
+ {
938
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
939
+ type: "rect",
940
+ data: t.map((o) => ({
941
+ x: this.boundingRect.x,
942
+ y: o[0] - n,
943
+ height: s,
944
+ width: o[1] - this.boundingRect.x,
945
+ fill: this.barData.fill,
946
+ strokeWidth: 0,
947
+ strokeFill: this.barData.fill
948
+ }))
949
+ }
950
+ ] : [
951
+ {
952
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
953
+ type: "rect",
954
+ data: t.map((o) => ({
955
+ x: o[0] - n,
956
+ y: o[1],
957
+ width: s,
958
+ height: this.boundingRect.y + this.boundingRect.height - o[1],
959
+ fill: this.barData.fill,
960
+ strokeWidth: 0,
961
+ strokeFill: this.barData.fill
962
+ }))
963
+ }
964
+ ];
965
+ }
966
+ }, a(at, "BarPlot"), at), rt, Ii = (rt = class {
967
+ constructor(t, i, s) {
968
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
969
+ x: 0,
970
+ y: 0,
971
+ width: 0,
972
+ height: 0
973
+ };
974
+ }
975
+ setAxes(t, i) {
976
+ this.xAxis = t, this.yAxis = i;
977
+ }
978
+ setBoundingBoxXY(t) {
979
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
980
+ }
981
+ calculateSpace(t) {
982
+ return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
983
+ width: this.boundingRect.width,
984
+ height: this.boundingRect.height
985
+ };
986
+ }
987
+ getDrawableElements() {
988
+ if (!(this.xAxis && this.yAxis))
989
+ throw Error("Axes must be passed to render Plots");
990
+ const t = [];
991
+ for (const [i, s] of this.chartData.plots.entries())
992
+ switch (s.type) {
993
+ case "line":
994
+ {
995
+ const n = new Li(
996
+ s,
997
+ this.xAxis,
998
+ this.yAxis,
999
+ this.chartConfig.chartOrientation,
1000
+ i
1001
+ );
1002
+ t.push(...n.getDrawableElement());
1003
+ }
1004
+ break;
1005
+ case "bar":
1006
+ {
1007
+ const n = new Ei(
1008
+ s,
1009
+ this.boundingRect,
1010
+ this.xAxis,
1011
+ this.yAxis,
1012
+ this.chartConfig.chartOrientation,
1013
+ i
1014
+ );
1015
+ t.push(...n.getDrawableElement());
1016
+ }
1017
+ break;
1018
+ }
1019
+ return t;
1020
+ }
1021
+ }, a(rt, "BasePlot"), rt);
1022
+ function qt(e, t, i) {
1023
+ return new Ii(e, t, i);
1024
+ }
1025
+ a(qt, "getPlotComponent");
1026
+ var ot, Mi = (ot = class {
1027
+ constructor(t, i, s, n) {
1028
+ this.chartConfig = t, this.chartData = i, this.componentStore = {
1029
+ title: $t(t, i, s, n),
1030
+ plot: qt(t, i, s),
1031
+ xAxis: wt(
1032
+ i.xAxis,
1033
+ t.xAxis,
1034
+ {
1035
+ titleColor: s.xAxisTitleColor,
1036
+ labelColor: s.xAxisLabelColor,
1037
+ tickColor: s.xAxisTickColor,
1038
+ axisLineColor: s.xAxisLineColor
1039
+ },
1040
+ n
1041
+ ),
1042
+ yAxis: wt(
1043
+ i.yAxis,
1044
+ t.yAxis,
1045
+ {
1046
+ titleColor: s.yAxisTitleColor,
1047
+ labelColor: s.yAxisLabelColor,
1048
+ tickColor: s.yAxisTickColor,
1049
+ axisLineColor: s.yAxisLineColor
1050
+ },
1051
+ n
1052
+ )
1053
+ };
1054
+ }
1055
+ calculateVerticalSpace() {
1056
+ let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
1057
+ i * this.chartConfig.plotReservedSpacePercent / 100
1058
+ ), m = this.componentStore.plot.calculateSpace({
1059
+ width: o,
1060
+ height: g
1061
+ });
1062
+ t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
1063
+ width: this.chartConfig.width,
1064
+ height: i
1065
+ }), n = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
1066
+ width: t,
1067
+ height: i
1068
+ }), i -= m.height, this.componentStore.yAxis.setAxisPosition("left"), m = this.componentStore.yAxis.calculateSpace({
1069
+ width: t,
1070
+ height: i
1071
+ }), s = m.width, t -= m.width, t > 0 && (o += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
1072
+ width: o,
1073
+ height: g
1074
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: s, y: n + g }), this.componentStore.yAxis.setRange([n, n + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((f) => At(f)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1075
+ }
1076
+ calculateHorizontalSpace() {
1077
+ let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = 0, g = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), m = Math.floor(
1078
+ i * this.chartConfig.plotReservedSpacePercent / 100
1079
+ ), f = this.componentStore.plot.calculateSpace({
1080
+ width: g,
1081
+ height: m
1082
+ });
1083
+ t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
1084
+ width: this.chartConfig.width,
1085
+ height: i
1086
+ }), s = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("left"), f = this.componentStore.xAxis.calculateSpace({
1087
+ width: t,
1088
+ height: i
1089
+ }), t -= f.width, n = f.width, this.componentStore.yAxis.setAxisPosition("top"), f = this.componentStore.yAxis.calculateSpace({
1090
+ width: t,
1091
+ height: i
1092
+ }), i -= f.height, o = s + f.height, t > 0 && (g += t, t = 0), i > 0 && (m += i, i = 0), this.componentStore.plot.calculateSpace({
1093
+ width: g,
1094
+ height: m
1095
+ }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: o }), this.componentStore.yAxis.setRange([n, n + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: n, y: s }), this.componentStore.xAxis.setRange([o, o + m]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((k) => At(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1096
+ }
1097
+ calculateSpace() {
1098
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1099
+ }
1100
+ getDrawableElement() {
1101
+ this.calculateSpace();
1102
+ const t = [];
1103
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1104
+ for (const i of Object.values(this.componentStore))
1105
+ t.push(...i.getDrawableElements());
1106
+ return t;
1107
+ }
1108
+ }, a(ot, "Orchestrator"), ot), ht, Vi = (ht = class {
1109
+ static build(t, i, s, n) {
1110
+ return new Mi(t, i, s, n).getDrawableElement();
1111
+ }
1112
+ }, a(ht, "XYChartBuilder"), ht), Q = 0, Gt, K = Tt(), Z = Rt(), A = Dt(), Ct = Z.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1113
+ function Rt() {
1114
+ const e = Ci(), t = St();
1115
+ return Yt(e.xyChart, t.themeVariables.xyChart);
1116
+ }
1117
+ a(Rt, "getChartDefaultThemeConfig");
1118
+ function Tt() {
1119
+ const e = St();
1120
+ return Yt(
1121
+ wi.xyChart,
1122
+ e.xyChart
1123
+ );
1124
+ }
1125
+ a(Tt, "getChartDefaultConfig");
1126
+ function Dt() {
1127
+ return {
1128
+ yAxis: {
1129
+ type: "linear",
1130
+ title: "",
1131
+ min: 1 / 0,
1132
+ max: -1 / 0
1133
+ },
1134
+ xAxis: {
1135
+ type: "band",
1136
+ title: "",
1137
+ categories: []
1138
+ },
1139
+ title: "",
1140
+ plots: []
1141
+ };
1142
+ }
1143
+ a(Dt, "getChartDefaultData");
1144
+ function xt(e) {
1145
+ const t = St();
1146
+ return Ai(e.trim(), t);
1147
+ }
1148
+ a(xt, "textSanitizer");
1149
+ function jt(e) {
1150
+ Gt = e;
1151
+ }
1152
+ a(jt, "setTmpSVGG");
1153
+ function Qt(e) {
1154
+ e === "horizontal" ? K.chartOrientation = "horizontal" : K.chartOrientation = "vertical";
1155
+ }
1156
+ a(Qt, "setOrientation");
1157
+ function Kt(e) {
1158
+ A.xAxis.title = xt(e.text);
1159
+ }
1160
+ a(Kt, "setXAxisTitle");
1161
+ function vt(e, t) {
1162
+ A.xAxis = { type: "linear", title: A.xAxis.title, min: e, max: t }, gt = !0;
1163
+ }
1164
+ a(vt, "setXAxisRangeData");
1165
+ function Zt(e) {
1166
+ A.xAxis = {
1167
+ type: "band",
1168
+ title: A.xAxis.title,
1169
+ categories: e.map((t) => xt(t.text))
1170
+ }, gt = !0;
1171
+ }
1172
+ a(Zt, "setXAxisBand");
1173
+ function Jt(e) {
1174
+ A.yAxis.title = xt(e.text);
1175
+ }
1176
+ a(Jt, "setYAxisTitle");
1177
+ function ti(e, t) {
1178
+ A.yAxis = { type: "linear", title: A.yAxis.title, min: e, max: t }, kt = !0;
1179
+ }
1180
+ a(ti, "setYAxisRangeData");
1181
+ function ii(e) {
1182
+ const t = Math.min(...e), i = Math.max(...e), s = G(A.yAxis) ? A.yAxis.min : 1 / 0, n = G(A.yAxis) ? A.yAxis.max : -1 / 0;
1183
+ A.yAxis = {
1184
+ type: "linear",
1185
+ title: A.yAxis.title,
1186
+ min: Math.min(s, t),
1187
+ max: Math.max(n, i)
1188
+ };
1189
+ }
1190
+ a(ii, "setYAxisRangeFromPlotData");
1191
+ function Pt(e) {
1192
+ let t = [];
1193
+ if (e.length === 0)
1194
+ return t;
1195
+ if (!gt) {
1196
+ const i = G(A.xAxis) ? A.xAxis.min : 1 / 0, s = G(A.xAxis) ? A.xAxis.max : -1 / 0;
1197
+ vt(Math.min(i, 1), Math.max(s, e.length));
1198
+ }
1199
+ if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), G(A.xAxis)) {
1200
+ const i = A.xAxis.min, s = A.xAxis.max, n = (s - i) / (e.length - 1), o = [];
1201
+ for (let g = i; g <= s; g += n)
1202
+ o.push(`${g}`);
1203
+ t = o.map((g, m) => [g, e[m]]);
1204
+ }
1205
+ return t;
1206
+ }
1207
+ a(Pt, "transformDataWithoutCategory");
1208
+ function Lt(e) {
1209
+ return Ct[e === 0 ? 0 : e % Ct.length];
1210
+ }
1211
+ a(Lt, "getPlotColorFromPalette");
1212
+ function ei(e, t) {
1213
+ const i = Pt(t);
1214
+ A.plots.push({
1215
+ type: "line",
1216
+ strokeFill: Lt(Q),
1217
+ strokeWidth: 2,
1218
+ data: i
1219
+ }), Q++;
1220
+ }
1221
+ a(ei, "setLineData");
1222
+ function si(e, t) {
1223
+ const i = Pt(t);
1224
+ A.plots.push({
1225
+ type: "bar",
1226
+ fill: Lt(Q),
1227
+ data: i
1228
+ }), Q++;
1229
+ }
1230
+ a(si, "setBarData");
1231
+ function ni() {
1232
+ if (A.plots.length === 0)
1233
+ throw Error("No Plot to render, please provide a plot with some data");
1234
+ return A.title = Xt(), Vi.build(K, A, Z, Gt);
1235
+ }
1236
+ a(ni, "getDrawableElem");
1237
+ function ai() {
1238
+ return Z;
1239
+ }
1240
+ a(ai, "getChartThemeConfig");
1241
+ function ri() {
1242
+ return K;
1243
+ }
1244
+ a(ri, "getChartConfig");
1245
+ function oi() {
1246
+ return A;
1247
+ }
1248
+ a(oi, "getXYChartData");
1249
+ var Bi = /* @__PURE__ */ a(function() {
1250
+ bi(), Q = 0, K = Tt(), A = Dt(), Z = Rt(), Ct = Z.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1251
+ }, "clear"), Wi = {
1252
+ getDrawableElem: ni,
1253
+ clear: Bi,
1254
+ setAccTitle: fi,
1255
+ getAccTitle: pi,
1256
+ setDiagramTitle: di,
1257
+ getDiagramTitle: Xt,
1258
+ getAccDescription: xi,
1259
+ setAccDescription: gi,
1260
+ setOrientation: Qt,
1261
+ setXAxisTitle: Kt,
1262
+ setXAxisRangeData: vt,
1263
+ setXAxisBand: Zt,
1264
+ setYAxisTitle: Jt,
1265
+ setYAxisRangeData: ti,
1266
+ setLineData: ei,
1267
+ setBarData: si,
1268
+ setTmpSVGG: jt,
1269
+ getChartThemeConfig: ai,
1270
+ getChartConfig: ri,
1271
+ getXYChartData: oi
1272
+ }, zi = /* @__PURE__ */ a((e, t, i, s) => {
1273
+ const n = s.db, o = n.getChartThemeConfig(), g = n.getChartConfig(), m = n.getXYChartData().plots[0].data.map((y) => y[1]);
1274
+ function f(y) {
1275
+ return y === "top" ? "text-before-edge" : "middle";
1276
+ }
1277
+ a(f, "getDominantBaseLine");
1278
+ function k(y) {
1279
+ return y === "left" ? "start" : y === "right" ? "end" : "middle";
1280
+ }
1281
+ a(k, "getTextAnchor");
1282
+ function v(y) {
1283
+ return `translate(${y.x}, ${y.y}) rotate(${y.rotation || 0})`;
1284
+ }
1285
+ a(v, "getTextTransformation"), Nt.debug(`Rendering xychart chart
1286
+ ` + e);
1287
+ const C = mi(t), b = C.append("g").attr("class", "main"), E = b.append("rect").attr("width", g.width).attr("height", g.height).attr("class", "background");
1288
+ yi(C, g.height, g.width, !0), C.attr("viewBox", `0 0 ${g.width} ${g.height}`), E.attr("fill", o.backgroundColor), n.setTmpSVGG(C.append("g").attr("class", "mermaid-tmp-group"));
1289
+ const D = n.getDrawableElem(), P = {};
1290
+ function I(y) {
1291
+ let _ = b, c = "";
1292
+ for (const [W] of y.entries()) {
1293
+ let z = b;
1294
+ W > 0 && P[c] && (z = P[c]), c += y[W], _ = P[c], _ || (_ = P[c] = z.append("g").attr("class", y[W]));
1295
+ }
1296
+ return _;
1297
+ }
1298
+ a(I, "getGroup");
1299
+ for (const y of D) {
1300
+ if (y.data.length === 0)
1301
+ continue;
1302
+ const _ = I(y.groupTexts);
1303
+ switch (y.type) {
1304
+ case "rect":
1305
+ if (_.selectAll("rect").data(y.data).enter().append("rect").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).attr("fill", (c) => c.fill).attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth), g.showDataLabel)
1306
+ if (g.chartOrientation === "horizontal") {
1307
+ let c = function(l, L) {
1308
+ const { data: S, label: R } = l;
1309
+ return L * R.length * W <= S.width - 10;
1310
+ };
1311
+ a(c, "fitsHorizontally");
1312
+ const W = 0.7, z = y.data.map((l, L) => ({ data: l, label: m[L].toString() })).filter((l) => l.data.width > 0 && l.data.height > 0), U = z.map((l) => {
1313
+ const { data: L } = l;
1314
+ let S = L.height * 0.7;
1315
+ for (; !c(l, S) && S > 0; )
1316
+ S -= 1;
1317
+ return S;
1318
+ }), X = Math.floor(Math.min(...U));
1319
+ _.selectAll("text").data(z).enter().append("text").attr("x", (l) => l.data.x + l.data.width - 10).attr("y", (l) => l.data.y + l.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((l) => l.label);
1320
+ } else {
1321
+ let c = function(l, L, S) {
1322
+ const { data: R, label: $ } = l, N = L * $.length * 0.7, F = R.x + R.width / 2, h = F - N / 2, u = F + N / 2, x = h >= R.x && u <= R.x + R.width, d = R.y + S + L <= R.y + R.height;
1323
+ return x && d;
1324
+ };
1325
+ a(c, "fitsInBar");
1326
+ const W = 10, z = y.data.map((l, L) => ({ data: l, label: m[L].toString() })).filter((l) => l.data.width > 0 && l.data.height > 0), U = z.map((l) => {
1327
+ const { data: L, label: S } = l;
1328
+ let R = L.width / (S.length * 0.7);
1329
+ for (; !c(l, R, W) && R > 0; )
1330
+ R -= 1;
1331
+ return R;
1332
+ }), X = Math.floor(Math.min(...U));
1333
+ _.selectAll("text").data(z).enter().append("text").attr("x", (l) => l.data.x + l.data.width / 2).attr("y", (l) => l.data.y + W).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((l) => l.label);
1334
+ }
1335
+ break;
1336
+ case "text":
1337
+ _.selectAll("text").data(y.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (c) => c.fill).attr("font-size", (c) => c.fontSize).attr("dominant-baseline", (c) => f(c.verticalPos)).attr("text-anchor", (c) => k(c.horizontalPos)).attr("transform", (c) => v(c)).text((c) => c.text);
1338
+ break;
1339
+ case "path":
1340
+ _.selectAll("path").data(y.data).enter().append("path").attr("d", (c) => c.path).attr("fill", (c) => c.fill ? c.fill : "none").attr("stroke", (c) => c.strokeFill).attr("stroke-width", (c) => c.strokeWidth);
1341
+ break;
1342
+ }
1343
+ }
1344
+ }, "draw"), Fi = {
1345
+ draw: zi
1346
+ }, ee = {
1347
+ parser: Ti,
1348
+ db: Wi,
1349
+ renderer: Fi
1350
+ };
1351
+ export {
1352
+ ee as diagram
1353
+ };