@belonguniverseai/react-sdk 0.1.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 (848) hide show
  1. package/README.md +47 -0
  2. package/dist/api/agent-grants.d.ts +61 -0
  3. package/dist/api/api-context.d.ts +9 -0
  4. package/dist/api/client.d.ts +2053 -0
  5. package/dist/api/mutations.d.ts +3 -0
  6. package/dist/api/queries.d.ts +21 -0
  7. package/dist/api/query-keys.d.ts +13 -0
  8. package/dist/api/report-client-error.d.ts +23 -0
  9. package/dist/api/skills.d.ts +23 -0
  10. package/dist/api/workspace-files.d.ts +9 -0
  11. package/dist/app/BelongDock.d.ts +29 -0
  12. package/dist/app/VoiceOverlay.d.ts +18 -0
  13. package/dist/app/providers.d.ts +12 -0
  14. package/dist/app/router.d.ts +2 -0
  15. package/dist/browser/control-channel.d.ts +29 -0
  16. package/dist/browser/dom-bridge.d.ts +6 -0
  17. package/dist/browser/spa-navigate.d.ts +87 -0
  18. package/dist/component/BelongWidget.d.ts +27 -0
  19. package/dist/component/abap-BqLfTM3_.js +9 -0
  20. package/dist/component/abap-Dosx9LfS.js +9 -0
  21. package/dist/component/actionscript-3-CFt6EqSB.js +9 -0
  22. package/dist/component/actionscript-3-CShGOdtT.js +9 -0
  23. package/dist/component/ada-8tCnwMXx.js +9 -0
  24. package/dist/component/ada-DaqFF2jd.js +9 -0
  25. package/dist/component/andromeeda-BxBtQ0rC.js +7 -0
  26. package/dist/component/andromeeda-Dx5fm3r-.js +7 -0
  27. package/dist/component/angular-html-CAoRrq6i.js +35 -0
  28. package/dist/component/angular-html-DG52iVg8.js +35 -0
  29. package/dist/component/angular-ts-BvOrReBc.js +24 -0
  30. package/dist/component/angular-ts-LQyiJZqb.js +24 -0
  31. package/dist/component/apache-HdVsAIQf.js +9 -0
  32. package/dist/component/apache-c3M5d5MN.js +9 -0
  33. package/dist/component/apex-B-y6HhVC.js +9 -0
  34. package/dist/component/apex-DXDfZUnb.js +9 -0
  35. package/dist/component/apl-BnXq3ZtQ.js +19 -0
  36. package/dist/component/apl-D7VFrOyT.js +19 -0
  37. package/dist/component/applescript-BZbrjHcY.js +9 -0
  38. package/dist/component/applescript-Bo1adDet.js +9 -0
  39. package/dist/component/ara-C1QNxHcU.js +9 -0
  40. package/dist/component/ara-ZjRpP-93.js +9 -0
  41. package/dist/component/arc-DGQIe3ON.js +86 -0
  42. package/dist/component/architectureDiagram-3BPJPVTR-C3uLEfb1.js +4697 -0
  43. package/dist/component/asciidoc-2fV_Cv2j.js +9 -0
  44. package/dist/component/asciidoc-D7PshqvO.js +9 -0
  45. package/dist/component/asm-ClEowkZP.js +9 -0
  46. package/dist/component/asm-DmyJawQj.js +9 -0
  47. package/dist/component/astro-9MHfKoOi.js +21 -0
  48. package/dist/component/astro-Bi3QRBCO.js +21 -0
  49. package/dist/component/aurora-x-BGO53J2I.js +7 -0
  50. package/dist/component/aurora-x-C98he-36.js +7 -0
  51. package/dist/component/awk-CIiDOfUC.js +9 -0
  52. package/dist/component/awk-DnzYQYUx.js +9 -0
  53. package/dist/component/ayu-dark-CK1VRikm.js +7 -0
  54. package/dist/component/ayu-dark-J6FX8oSr.js +7 -0
  55. package/dist/component/ayu-light-DIKBJiwH.js +7 -0
  56. package/dist/component/ayu-light-x4Q5N51d.js +7 -0
  57. package/dist/component/ayu-mirage-C5_fPLwf.js +7 -0
  58. package/dist/component/ayu-mirage-DhPHVcGJ.js +7 -0
  59. package/dist/component/ballerina-CeqVHW9D.js +9 -0
  60. package/dist/component/ballerina-epCf0_WV.js +9 -0
  61. package/dist/component/bat-Cuej7k1C.js +9 -0
  62. package/dist/component/bat-Dai7pznF.js +9 -0
  63. package/dist/component/beancount-CpREEZMl.js +9 -0
  64. package/dist/component/beancount-CwiYx9PE.js +9 -0
  65. package/dist/component/berry-BoYGiG42.js +9 -0
  66. package/dist/component/berry-DFo_i8CN.js +9 -0
  67. package/dist/component/bibtex-2bgmGv5w.js +9 -0
  68. package/dist/component/bibtex-BkTrlnvh.js +9 -0
  69. package/dist/component/bicep-C80YQkEm.js +9 -0
  70. package/dist/component/bicep-DYkQKpr8.js +9 -0
  71. package/dist/component/bird2-5AxdId5f.js +9 -0
  72. package/dist/component/bird2-CjcgWn0f.js +9 -0
  73. package/dist/component/blade-BdUlKesy.js +23 -0
  74. package/dist/component/blade-DNMMxdfa.js +23 -0
  75. package/dist/component/blockDiagram-GPEHLZMM-YerYvLm_.js +2421 -0
  76. package/dist/component/bsl-CYB_gPZn.js +11 -0
  77. package/dist/component/bsl-DJ4bR5oi.js +11 -0
  78. package/dist/component/c-C4AMyX3G.js +9 -0
  79. package/dist/component/c-C7DfT4H8.js +9 -0
  80. package/dist/component/c3-DDixCt0K.js +9 -0
  81. package/dist/component/c3-xeavH2G2.js +9 -0
  82. package/dist/component/c4Diagram-AAUBKEIU-p8UR34Zq.js +1586 -0
  83. package/dist/component/cadence-Cy8toSoU.js +9 -0
  84. package/dist/component/cadence-xq71MyIp.js +9 -0
  85. package/dist/component/cairo-B1qo5_uz.js +11 -0
  86. package/dist/component/cairo-CZSJv_Y_.js +11 -0
  87. package/dist/component/catppuccin-frappe-BGDzipYl.js +7 -0
  88. package/dist/component/catppuccin-frappe-DZ2VPnzg.js +7 -0
  89. package/dist/component/catppuccin-latte-9zQ0xneh.js +7 -0
  90. package/dist/component/catppuccin-latte-CK4XjBXq.js +7 -0
  91. package/dist/component/catppuccin-macchiato-CIKuiG5O.js +7 -0
  92. package/dist/component/catppuccin-macchiato-D1xBlgUI.js +7 -0
  93. package/dist/component/catppuccin-mocha-CQk3ku6b.js +7 -0
  94. package/dist/component/catppuccin-mocha-Dr22M_MR.js +7 -0
  95. package/dist/component/channel-ahmILYyG.js +8 -0
  96. package/dist/component/chunk-2J33WTMH-CGaAxoSO.js +22 -0
  97. package/dist/component/chunk-4BX2VUAB-gRTK7Di9.js +11 -0
  98. package/dist/component/chunk-55IACEB6-XfJuuv6Y.js +11 -0
  99. package/dist/component/chunk-727SXJPM-Cy0hXMuO.js +1537 -0
  100. package/dist/component/chunk-AQP2D5EJ-CZHGw4se.js +1396 -0
  101. package/dist/component/chunk-FMBD7UC4-CyqtPCO0.js +22 -0
  102. package/dist/component/chunk-ND2GUHAM-CzTviSBV.js +71 -0
  103. package/dist/component/chunk-QZHKN3VN-CHDEerWv.js +21 -0
  104. package/dist/component/clarity-Dmd3VcKv.js +9 -0
  105. package/dist/component/clarity-FR-MQPIo.js +9 -0
  106. package/dist/component/classDiagram-4FO5ZUOK-BDzl1OcC.js +19 -0
  107. package/dist/component/classDiagram-v2-Q7XG4LA2-BDzl1OcC.js +19 -0
  108. package/dist/component/clojure-CZ5pqCKI.js +9 -0
  109. package/dist/component/clojure-DUXXPerS.js +9 -0
  110. package/dist/component/cmake-DeSLuBit.js +9 -0
  111. package/dist/component/cmake-Dh5RXd_q.js +9 -0
  112. package/dist/component/cobol-B0R9veOS.js +13 -0
  113. package/dist/component/cobol-DayClXiO.js +13 -0
  114. package/dist/component/codeowners-C5Gg1qBb.js +9 -0
  115. package/dist/component/codeowners-RGJbf4XS.js +9 -0
  116. package/dist/component/codeql-1OtYEVEY.js +9 -0
  117. package/dist/component/codeql-CoCy8yp4.js +9 -0
  118. package/dist/component/coffee-kdLRO3eV.js +11 -0
  119. package/dist/component/coffee-tRjJZw7o.js +11 -0
  120. package/dist/component/common-lisp-BeJe0ab6.js +9 -0
  121. package/dist/component/common-lisp-GbfS1OBj.js +9 -0
  122. package/dist/component/coq-B0RJLsKz.js +9 -0
  123. package/dist/component/coq-DMlFNAl3.js +9 -0
  124. package/dist/component/cose-bilkent-S5V4N54A-4R0ErgrZ.js +2611 -0
  125. package/dist/component/cpp-BpiKH-9I.js +21 -0
  126. package/dist/component/cpp-BwGJQL2p.js +21 -0
  127. package/dist/component/crystal-Bb_LifhW.js +21 -0
  128. package/dist/component/crystal-D0cTXans.js +21 -0
  129. package/dist/component/csharp-5kMbpBNi.js +9 -0
  130. package/dist/component/csharp-UFMQzTVu.js +9 -0
  131. package/dist/component/css-B2ckPEoZ.js +9 -0
  132. package/dist/component/css-MDiv-Xmm.js +9 -0
  133. package/dist/component/csv-Ba1T94jM.js +9 -0
  134. package/dist/component/csv-DZ-mzuKa.js +9 -0
  135. package/dist/component/cue-CtGb6f31.js +9 -0
  136. package/dist/component/cue-DbYr629m.js +9 -0
  137. package/dist/component/cypher-7eGqJtNJ.js +9 -0
  138. package/dist/component/cypher-pD9MnYc_.js +9 -0
  139. package/dist/component/cytoscape.esm-C31R6JOv.js +18772 -0
  140. package/dist/component/d-BefBLeap.js +9 -0
  141. package/dist/component/d-Dij3nCx4.js +9 -0
  142. package/dist/component/dagre-BM42HDAG-BcJQXGn3.js +448 -0
  143. package/dist/component/dark-plus-C9nS7rhq.js +7 -0
  144. package/dist/component/dark-plus-L3JON0ir.js +7 -0
  145. package/dist/component/dart-BWNSliXX.js +9 -0
  146. package/dist/component/dart-DCRAsZQK.js +9 -0
  147. package/dist/component/dax-CWdGoxkM.js +9 -0
  148. package/dist/component/dax-pykceZLM.js +9 -0
  149. package/dist/component/defaultLocale-BXpxsZAK.js +174 -0
  150. package/dist/component/desktop-4j8jFU02.js +9 -0
  151. package/dist/component/desktop-B3AeStqn.js +9 -0
  152. package/dist/component/diagram-2AECGRRQ-Cld7-k7F.js +220 -0
  153. package/dist/component/diagram-5GNKFQAL-d7JtHVRK.js +126 -0
  154. package/dist/component/diagram-KO2AKTUF-Avxzz4xw.js +464 -0
  155. package/dist/component/diagram-LMA3HP47-Cy_E5-rU.js +148 -0
  156. package/dist/component/diagram-OG6HWLK6-DUsJK7Js.js +534 -0
  157. package/dist/component/diff-DuoPSmgL.js +9 -0
  158. package/dist/component/diff-IyCSM08A.js +9 -0
  159. package/dist/component/docker-BSrvy0o9.js +9 -0
  160. package/dist/component/docker-Ca4vT6OJ.js +9 -0
  161. package/dist/component/dotenv-CUP-PB19.js +9 -0
  162. package/dist/component/dotenv-aA3GGxJM.js +9 -0
  163. package/dist/component/dracula-2BaSCSav.js +7 -0
  164. package/dist/component/dracula-Lg7_DbOD.js +7 -0
  165. package/dist/component/dracula-soft-AsPqNBvZ.js +7 -0
  166. package/dist/component/dracula-soft-n6R-sBGM.js +7 -0
  167. package/dist/component/dream-maker-B2xERNvR.js +9 -0
  168. package/dist/component/dream-maker-Jadq_Ln7.js +9 -0
  169. package/dist/component/edge-B-amp2rn.js +15 -0
  170. package/dist/component/edge-Bol1lNG-.js +15 -0
  171. package/dist/component/elixir-DSzpv_bE.js +11 -0
  172. package/dist/component/elixir-t5YY_ese.js +11 -0
  173. package/dist/component/elm-DNaka8RZ.js +11 -0
  174. package/dist/component/elm-JLsvCHy1.js +11 -0
  175. package/dist/component/emacs-lisp-C6XZT609.js +9 -0
  176. package/dist/component/emacs-lisp-DWDtb5kD.js +9 -0
  177. package/dist/component/erDiagram-TEJ5UH35-DEdqrWqp.js +905 -0
  178. package/dist/component/erb-BJ95qgrJ.js +13 -0
  179. package/dist/component/erb-rGIYAeIa.js +13 -0
  180. package/dist/component/erlang-By5grfmz.js +11 -0
  181. package/dist/component/erlang-rAClsghX.js +11 -0
  182. package/dist/component/everforest-dark-DBhTz0Lt.js +7 -0
  183. package/dist/component/everforest-dark-_A43rkLf.js +7 -0
  184. package/dist/component/everforest-light-Bep_XOgu.js +7 -0
  185. package/dist/component/everforest-light-DHbrW2te.js +7 -0
  186. package/dist/component/fennel-CeQPNUU9.js +9 -0
  187. package/dist/component/fennel-QllfYze1.js +9 -0
  188. package/dist/component/fish-BXP1eRyz.js +9 -0
  189. package/dist/component/fish-DkfR0DRL.js +9 -0
  190. package/dist/component/flowDiagram-I6XJVG4X-BWzYDsjP.js +1634 -0
  191. package/dist/component/fluent-Ih0R99Ix.js +9 -0
  192. package/dist/component/fluent-RduSrzCZ.js +9 -0
  193. package/dist/component/fortran-fixed-form-C3I8YlEU.js +11 -0
  194. package/dist/component/fortran-fixed-form-D7OlW0lw.js +11 -0
  195. package/dist/component/fortran-free-form-CXj2ku4f.js +9 -0
  196. package/dist/component/fortran-free-form-DifCDW_P.js +9 -0
  197. package/dist/component/fsharp-65O4P3S5.js +11 -0
  198. package/dist/component/fsharp-CXzwUWsC.js +11 -0
  199. package/dist/component/ganttDiagram-6RSMTGT7-DzfeVIgF.js +2709 -0
  200. package/dist/component/gdresource-Bn5VhPaI.js +13 -0
  201. package/dist/component/gdresource-kUFIn9eK.js +13 -0
  202. package/dist/component/gdscript-BNGA6E65.js +9 -0
  203. package/dist/component/gdscript-LjKsfw3O.js +9 -0
  204. package/dist/component/gdshader-C-Gp5-Ot.js +9 -0
  205. package/dist/component/gdshader-C1lRZRQz.js +9 -0
  206. package/dist/component/genie-B8viIUNC.js +9 -0
  207. package/dist/component/genie-eR37RVXX.js +9 -0
  208. package/dist/component/gherkin-BVA-IOor.js +9 -0
  209. package/dist/component/gherkin-CuORnKvF.js +9 -0
  210. package/dist/component/git-commit-BNPqpLhi.js +11 -0
  211. package/dist/component/git-commit-Dh7BfmB9.js +11 -0
  212. package/dist/component/git-rebase-B5TXZutB.js +11 -0
  213. package/dist/component/git-rebase-DhwWS8MC.js +11 -0
  214. package/dist/component/gitGraphDiagram-PVQCEYII-CKzbGWcQ.js +818 -0
  215. package/dist/component/github-dark-5b4g_bOp.js +7 -0
  216. package/dist/component/github-dark-default-6zDGR7DJ.js +7 -0
  217. package/dist/component/github-dark-default-H56pGX_M.js +7 -0
  218. package/dist/component/github-dark-dimmed-B1iXBBmo.js +7 -0
  219. package/dist/component/github-dark-dimmed-DjYa1rhk.js +7 -0
  220. package/dist/component/github-dark-high-contrast-BuNi_Wj5.js +7 -0
  221. package/dist/component/github-dark-high-contrast-DvpYRI-4.js +7 -0
  222. package/dist/component/github-dark-mxHsWyJ4.js +7 -0
  223. package/dist/component/github-light-CTdjTVPf.js +7 -0
  224. package/dist/component/github-light-KqdY1rAV.js +7 -0
  225. package/dist/component/github-light-default-BlRYTBRQ.js +7 -0
  226. package/dist/component/github-light-default-Drw5Jl_p.js +7 -0
  227. package/dist/component/github-light-high-contrast-9d8ktz0h.js +7 -0
  228. package/dist/component/github-light-high-contrast-ColFVC7A.js +7 -0
  229. package/dist/component/gleam-BXQHq2ZT.js +9 -0
  230. package/dist/component/gleam-RfA2dpfH.js +9 -0
  231. package/dist/component/glimmer-js-BHZ1FuRp.js +17 -0
  232. package/dist/component/glimmer-js-Gdq_UYVf.js +17 -0
  233. package/dist/component/glimmer-ts-D6H7q5ls.js +17 -0
  234. package/dist/component/glimmer-ts-DdmgeZua.js +17 -0
  235. package/dist/component/glsl-D1RRylbk.js +11 -0
  236. package/dist/component/glsl-MDSU_3-y.js +11 -0
  237. package/dist/component/gn-D8VPrt1o.js +9 -0
  238. package/dist/component/gn-DJpTAp5e.js +9 -0
  239. package/dist/component/gnuplot-BNzwvBx5.js +9 -0
  240. package/dist/component/gnuplot-Iqvzplz-.js +9 -0
  241. package/dist/component/go-D-G7cxeA.js +9 -0
  242. package/dist/component/go-TNOI7pQc.js +9 -0
  243. package/dist/component/graph-BZLHvygk.js +1548 -0
  244. package/dist/component/graphql-CW6tYk7X.js +17 -0
  245. package/dist/component/graphql-DGugpl40.js +17 -0
  246. package/dist/component/groovy-5_UI-q3N.js +9 -0
  247. package/dist/component/groovy-D7GH48W8.js +9 -0
  248. package/dist/component/gruvbox-dark-hard-Ch2GYDcJ.js +7 -0
  249. package/dist/component/gruvbox-dark-hard-Dpxv_Il6.js +7 -0
  250. package/dist/component/gruvbox-dark-medium-DqoxKYPx.js +7 -0
  251. package/dist/component/gruvbox-dark-medium-eGVEUM8W.js +7 -0
  252. package/dist/component/gruvbox-dark-soft-BA9DdijB.js +7 -0
  253. package/dist/component/gruvbox-dark-soft-DRaJAZcW.js +7 -0
  254. package/dist/component/gruvbox-light-hard-BJXIrqpz.js +7 -0
  255. package/dist/component/gruvbox-light-hard-_qNpoYJy.js +7 -0
  256. package/dist/component/gruvbox-light-medium-39dkJwxv.js +7 -0
  257. package/dist/component/gruvbox-light-medium-IkDFQhcB.js +7 -0
  258. package/dist/component/gruvbox-light-soft-DWPQo7Dn.js +7 -0
  259. package/dist/component/gruvbox-light-soft-Dpz5D6wP.js +7 -0
  260. package/dist/component/hack-BSrzyV-l.js +13 -0
  261. package/dist/component/hack-CJNnfXZh.js +13 -0
  262. package/dist/component/haml-DL-NAYVg.js +13 -0
  263. package/dist/component/haml-DYkTKupK.js +13 -0
  264. package/dist/component/handlebars-B2Z6CWhc.js +17 -0
  265. package/dist/component/handlebars-Cwj0qzUo.js +17 -0
  266. package/dist/component/haskell-Cj3J4fKD.js +9 -0
  267. package/dist/component/haskell-h36TjJLk.js +9 -0
  268. package/dist/component/haxe-CcifGI6O.js +9 -0
  269. package/dist/component/haxe-Coqw0Tt8.js +9 -0
  270. package/dist/component/hcl-BPVqiZDb.js +9 -0
  271. package/dist/component/hcl-DaPl6lOC.js +9 -0
  272. package/dist/component/highlighted-body-OFNGDK62-BkGwwkHo.js +22 -0
  273. package/dist/component/hjson-CfcQXz3-.js +9 -0
  274. package/dist/component/hjson-DsTgWNxt.js +9 -0
  275. package/dist/component/hlsl-CLzjZIQL.js +9 -0
  276. package/dist/component/hlsl-DVyuzW8h.js +9 -0
  277. package/dist/component/horizon-DaNatiIz.js +7 -0
  278. package/dist/component/horizon-bright-CthJh1Qp.js +7 -0
  279. package/dist/component/horizon-bright-DMKA6ab6.js +7 -0
  280. package/dist/component/horizon-q20CuJTh.js +7 -0
  281. package/dist/component/houston-CjpgGYwZ.js +7 -0
  282. package/dist/component/houston-DnIZxOiF.js +7 -0
  283. package/dist/component/html-DSjghx6n.js +13 -0
  284. package/dist/component/html-derivative-CxizaS1Z.js +11 -0
  285. package/dist/component/html-derivative-DDrVhQXu.js +11 -0
  286. package/dist/component/html-tY6fNMOn.js +13 -0
  287. package/dist/component/http-CLvA54iU.js +17 -0
  288. package/dist/component/http-CPkD6MSf.js +17 -0
  289. package/dist/component/hurl-CuuCK9Id.js +15 -0
  290. package/dist/component/hurl-LcD0R7wh.js +15 -0
  291. package/dist/component/hxml-CJz9SfqN.js +11 -0
  292. package/dist/component/hxml-DLsAgg8X.js +11 -0
  293. package/dist/component/hy-CAEey4h7.js +9 -0
  294. package/dist/component/hy-Dm2IGIb-.js +9 -0
  295. package/dist/component/imba-5G9Fs_nr.js +9 -0
  296. package/dist/component/imba-CH2D1ce9.js +9 -0
  297. package/dist/component/index.d.ts +3 -0
  298. package/dist/component/index.js +8 -0
  299. package/dist/component/infoDiagram-5YYISTIA-D9xN-Pqc.js +27 -0
  300. package/dist/component/ini-Dt2l3RWi.js +9 -0
  301. package/dist/component/ini-kgvXisvj.js +9 -0
  302. package/dist/component/init-BOu0eQYQ.js +19 -0
  303. package/dist/component/ishikawaDiagram-YF4QCWOH--YDYWDwv.js +627 -0
  304. package/dist/component/java-BKLcvtEM.js +9 -0
  305. package/dist/component/java-oSN7P0Od.js +9 -0
  306. package/dist/component/javascript-CyaMmpOO.js +9 -0
  307. package/dist/component/javascript-DFm3DOoX.js +9 -0
  308. package/dist/component/jinja-Ch28RrFG.js +14 -0
  309. package/dist/component/jinja-CsTh8Ahj.js +14 -0
  310. package/dist/component/jison-Bu0o8a1Z.js +11 -0
  311. package/dist/component/jison-DLgrOJpy.js +11 -0
  312. package/dist/component/journeyDiagram-JHISSGLW-B9-CHfSv.js +837 -0
  313. package/dist/component/json-D-WsbO45.js +9 -0
  314. package/dist/component/json-rmrBoeO_.js +9 -0
  315. package/dist/component/json5-B1J6XVPd.js +9 -0
  316. package/dist/component/json5-B3-n7IrD.js +9 -0
  317. package/dist/component/jsonc-BgfI3zjg.js +9 -0
  318. package/dist/component/jsonc-HFvGREK8.js +9 -0
  319. package/dist/component/jsonl-DHttz8sH.js +9 -0
  320. package/dist/component/jsonl-l_eIcPip.js +9 -0
  321. package/dist/component/jsonnet-D6SNIhw0.js +9 -0
  322. package/dist/component/jsonnet-DO8Zfk6p.js +9 -0
  323. package/dist/component/jssm-CKRLojKZ.js +9 -0
  324. package/dist/component/jssm-Dy1zjXNg.js +9 -0
  325. package/dist/component/jsx-CpVvoVGp.js +9 -0
  326. package/dist/component/jsx-si2wS7pt.js +9 -0
  327. package/dist/component/julia-BPzvBJ4R.js +19 -0
  328. package/dist/component/julia-CfyFig21.js +19 -0
  329. package/dist/component/just-D5rIv9U4.js +21 -0
  330. package/dist/component/just-fRm_weEQ.js +21 -0
  331. package/dist/component/kanagawa-dragon-BOBo9JLg.js +7 -0
  332. package/dist/component/kanagawa-dragon-BWPCHB_7.js +7 -0
  333. package/dist/component/kanagawa-lotus-8m_3LhhF.js +7 -0
  334. package/dist/component/kanagawa-lotus-B5o1JCNj.js +7 -0
  335. package/dist/component/kanagawa-wave-BSP7z6KH.js +7 -0
  336. package/dist/component/kanagawa-wave-ClYLx7ql.js +7 -0
  337. package/dist/component/kanban-definition-UN3LZRKU-Cmh8twbq.js +727 -0
  338. package/dist/component/kdl-GafIF83C.js +9 -0
  339. package/dist/component/kdl-_X6wsgV0.js +9 -0
  340. package/dist/component/kotlin-B3jfEOcv.js +9 -0
  341. package/dist/component/kotlin-BWMoZeA3.js +9 -0
  342. package/dist/component/kusto-Bkz9eBch.js +9 -0
  343. package/dist/component/kusto-ohiqZ64l.js +9 -0
  344. package/dist/component/laserwave-BmajecBZ.js +7 -0
  345. package/dist/component/laserwave-Bp21zlIO.js +7 -0
  346. package/dist/component/latex-BYzveWoN.js +11 -0
  347. package/dist/component/latex-Bi4Lg68B.js +11 -0
  348. package/dist/component/layout-Bu6nRdWm.js +1731 -0
  349. package/dist/component/lean-BBkk0btj.js +9 -0
  350. package/dist/component/lean-DFmhzmny.js +9 -0
  351. package/dist/component/less-ChX34X5W.js +9 -0
  352. package/dist/component/less-kqPRXL1K.js +9 -0
  353. package/dist/component/light-plus-DFxAowZg.js +7 -0
  354. package/dist/component/light-plus-_t1yKirF.js +7 -0
  355. package/dist/component/linear-BDyEUcVD.js +262 -0
  356. package/dist/component/liquid-Bri_C9oi.js +17 -0
  357. package/dist/component/liquid-f2WMwCDi.js +17 -0
  358. package/dist/component/llvm-COuD10ql.js +9 -0
  359. package/dist/component/llvm-dub2631B.js +9 -0
  360. package/dist/component/log-A8St-vyh.js +9 -0
  361. package/dist/component/log-g58LFxM8.js +9 -0
  362. package/dist/component/logo-DZmThwvl.js +9 -0
  363. package/dist/component/logo-x6YxnKST.js +9 -0
  364. package/dist/component/lua-Bj2G8q-Z.js +11 -0
  365. package/dist/component/lua-CyXCKT0u.js +11 -0
  366. package/dist/component/luau-B8fyn01D.js +9 -0
  367. package/dist/component/luau-C5q2C4N6.js +9 -0
  368. package/dist/component/make-DOTJ8IeI.js +9 -0
  369. package/dist/component/make-DTiRnfNf.js +9 -0
  370. package/dist/component/markdown-D3u32LKS.js +9 -0
  371. package/dist/component/markdown-DHm1k_6p.js +9 -0
  372. package/dist/component/marko-CUgdvzuR.js +17 -0
  373. package/dist/component/marko-SwZmWzIv.js +17 -0
  374. package/dist/component/material-theme-BIfRQKI0.js +7 -0
  375. package/dist/component/material-theme-CxS7GniW.js +7 -0
  376. package/dist/component/material-theme-darker-DKP5DIOi.js +7 -0
  377. package/dist/component/material-theme-darker-DkNB3xjL.js +7 -0
  378. package/dist/component/material-theme-lighter-3I4JYnlq.js +7 -0
  379. package/dist/component/material-theme-lighter-D5xivCfx.js +7 -0
  380. package/dist/component/material-theme-ocean-B31yuEXO.js +7 -0
  381. package/dist/component/material-theme-ocean-rw0kJPZg.js +7 -0
  382. package/dist/component/material-theme-palenight-BfunK0Uo.js +7 -0
  383. package/dist/component/material-theme-palenight-COTbh91p.js +7 -0
  384. package/dist/component/matlab-CkKSQcnX.js +9 -0
  385. package/dist/component/matlab-DCF6d5YL.js +9 -0
  386. package/dist/component/mdc-D92XwdT9.js +15 -0
  387. package/dist/component/mdc-gb_v49HI.js +15 -0
  388. package/dist/component/mdx-C6kH9TSz.js +9 -0
  389. package/dist/component/mdx-Dqb5H0t-.js +9 -0
  390. package/dist/component/mermaid-0bkYzXfL.js +9 -0
  391. package/dist/component/mermaid-GHXKKRXX-C5Y3BZXR.js +107122 -0
  392. package/dist/component/mermaid-N7-yWHiu.js +9 -0
  393. package/dist/component/min-dark-CqEfelDe.js +7 -0
  394. package/dist/component/min-dark-FAglrjWz.js +7 -0
  395. package/dist/component/min-light-BmdYN58_.js +7 -0
  396. package/dist/component/min-light-CcJCxfWw.js +7 -0
  397. package/dist/component/mindmap-definition-RKZ34NQL-CnFpVFpl.js +833 -0
  398. package/dist/component/mipsasm-BYNReuUT.js +9 -0
  399. package/dist/component/mipsasm-CKzkMNWr.js +9 -0
  400. package/dist/component/mojo-0URGVph7.js +9 -0
  401. package/dist/component/mojo-C563AncR.js +9 -0
  402. package/dist/component/monokai-D3_c3OUm.js +7 -0
  403. package/dist/component/monokai-ugSJFofr.js +7 -0
  404. package/dist/component/moonbit-BkJk2kyS.js +9 -0
  405. package/dist/component/moonbit-DlIX78rk.js +9 -0
  406. package/dist/component/move-BQAHOJb2.js +9 -0
  407. package/dist/component/move-eiW4QYDW.js +9 -0
  408. package/dist/component/narrat-2oVindvn.js +9 -0
  409. package/dist/component/narrat-Dc4cTFeW.js +9 -0
  410. package/dist/component/nextflow-B4caLl5A.js +11 -0
  411. package/dist/component/nextflow-Bk0ryO1R.js +11 -0
  412. package/dist/component/nextflow-groovy-BnXf2WiC.js +9 -0
  413. package/dist/component/nextflow-groovy-DIMIAEOy.js +9 -0
  414. package/dist/component/nginx-BaGEfT9r.js +11 -0
  415. package/dist/component/nginx-Dprlne5J.js +11 -0
  416. package/dist/component/night-owl-B6L5FL5v.js +7 -0
  417. package/dist/component/night-owl-CB_IXuNH.js +7 -0
  418. package/dist/component/night-owl-light-BZxeyl5X.js +7 -0
  419. package/dist/component/night-owl-light-CoPr05P4.js +7 -0
  420. package/dist/component/nim-BKvvFCe_.js +23 -0
  421. package/dist/component/nim-CQZqLxeE.js +23 -0
  422. package/dist/component/nix-Cp8a0vy5.js +12 -0
  423. package/dist/component/nix-DEY1zukk.js +12 -0
  424. package/dist/component/nord-D3PAEvHH.js +7 -0
  425. package/dist/component/nord-DPPgRakM.js +7 -0
  426. package/dist/component/nushell-BdsblUId.js +9 -0
  427. package/dist/component/nushell-DUUbmBaO.js +9 -0
  428. package/dist/component/objective-c-CNN3tl1v.js +9 -0
  429. package/dist/component/objective-c-D_6I2dsG.js +9 -0
  430. package/dist/component/objective-cpp-BjicYcS7.js +9 -0
  431. package/dist/component/objective-cpp-z4LTaUcg.js +9 -0
  432. package/dist/component/ocaml-BnD9haV8.js +9 -0
  433. package/dist/component/ocaml-DZseEUty.js +9 -0
  434. package/dist/component/odin-CnsCKboc.js +9 -0
  435. package/dist/component/odin-P2WSXO4H.js +9 -0
  436. package/dist/component/one-dark-pro-C_eaQ16k.js +7 -0
  437. package/dist/component/one-dark-pro-OimEv0Ou.js +7 -0
  438. package/dist/component/one-light-B0ti6b9S.js +7 -0
  439. package/dist/component/one-light-j3UfPQB3.js +7 -0
  440. package/dist/component/openscad-2vaKslxR.js +9 -0
  441. package/dist/component/openscad-jE6oRbDv.js +9 -0
  442. package/dist/component/ordinal-D0x7izaa.js +64 -0
  443. package/dist/component/pascal-8jl8irAj.js +9 -0
  444. package/dist/component/pascal-d7SASCGO.js +9 -0
  445. package/dist/component/perl-DHC1BZ_5.js +19 -0
  446. package/dist/component/perl-DVm7Pq-D.js +19 -0
  447. package/dist/component/php-BF_l-EgM.js +21 -0
  448. package/dist/component/php-BtpW2-DO.js +21 -0
  449. package/dist/component/pieDiagram-4H26LBE5-u-blLkni.js +166 -0
  450. package/dist/component/pkl-CoBnC_8G.js +9 -0
  451. package/dist/component/pkl-DZdA2Trc.js +9 -0
  452. package/dist/component/plastic-3IjBbwNP.js +7 -0
  453. package/dist/component/plastic-CixB-AlW.js +7 -0
  454. package/dist/component/plsql-Cv-ZxhCL.js +9 -0
  455. package/dist/component/plsql-CzeGyK0m.js +9 -0
  456. package/dist/component/po-eb_Amfj2.js +9 -0
  457. package/dist/component/po-moSB12fi.js +9 -0
  458. package/dist/component/poimandres-C03Jy3KZ.js +7 -0
  459. package/dist/component/poimandres-CKZ3f48N.js +7 -0
  460. package/dist/component/polar-BKFAKBSA.js +9 -0
  461. package/dist/component/polar-CsPCUbKt.js +9 -0
  462. package/dist/component/postcss-CytNqPC0.js +9 -0
  463. package/dist/component/postcss-D3_LY2LH.js +9 -0
  464. package/dist/component/powerquery-CpTndMW_.js +9 -0
  465. package/dist/component/powerquery-f-cemdrG.js +9 -0
  466. package/dist/component/powershell-B-JkstDq.js +9 -0
  467. package/dist/component/powershell-BkDB3ZO9.js +9 -0
  468. package/dist/component/prisma-B4mlcaEB.js +9 -0
  469. package/dist/component/prisma-BX88wNNq.js +9 -0
  470. package/dist/component/prolog-ZYcjPjsY.js +9 -0
  471. package/dist/component/prolog-ftPRGVaT.js +9 -0
  472. package/dist/component/proto-B5SG7zCc.js +9 -0
  473. package/dist/component/proto-DpTcjJFH.js +9 -0
  474. package/dist/component/pug-BziTjzcZ.js +15 -0
  475. package/dist/component/pug-XUdLuJ2s.js +15 -0
  476. package/dist/component/puppet-BeyD5DhV.js +9 -0
  477. package/dist/component/puppet-DjFvC8zy.js +9 -0
  478. package/dist/component/purescript-BBRU0YyZ.js +9 -0
  479. package/dist/component/purescript-Bf3WPYAV.js +9 -0
  480. package/dist/component/python-C7yusFoO.js +9 -0
  481. package/dist/component/python-CuNbg5wx.js +9 -0
  482. package/dist/component/qml-Cu9RjXOs.js +11 -0
  483. package/dist/component/qml-Z-uvElxQ.js +11 -0
  484. package/dist/component/qmldir-BHp2usxt.js +9 -0
  485. package/dist/component/qmldir-C6P--W6X.js +9 -0
  486. package/dist/component/qss-CgcBaeYL.js +9 -0
  487. package/dist/component/qss-iWzt-Nzy.js +9 -0
  488. package/dist/component/quadrantDiagram-W4KKPZXB-Bpq-EoMM.js +1033 -0
  489. package/dist/component/r-8lH98zbN.js +9 -0
  490. package/dist/component/r-CyFkAlMF.js +9 -0
  491. package/dist/component/racket-DaWPCRlQ.js +9 -0
  492. package/dist/component/racket-effgGH8q.js +9 -0
  493. package/dist/component/raku-DXM7wT4g.js +9 -0
  494. package/dist/component/raku-GZVvT-nH.js +9 -0
  495. package/dist/component/razor-CYq4jbLW.js +13 -0
  496. package/dist/component/razor-DQFDiXM1.js +13 -0
  497. package/dist/component/red-B9TgEgRC.js +7 -0
  498. package/dist/component/red-BNC90Lxb.js +7 -0
  499. package/dist/component/reg-C62uOG3A.js +9 -0
  500. package/dist/component/reg-CQgRgzkw.js +9 -0
  501. package/dist/component/regexp-D8jeZrvm.js +9 -0
  502. package/dist/component/regexp-UNvxOND4.js +9 -0
  503. package/dist/component/rel-BRyuNjQD.js +9 -0
  504. package/dist/component/rel-Cyzm_Cno.js +9 -0
  505. package/dist/component/requirementDiagram-4Y6WPE33-B8V7mLRY.js +888 -0
  506. package/dist/component/riscv-BHdC-Wfh.js +9 -0
  507. package/dist/component/riscv-BZ9l50bA.js +9 -0
  508. package/dist/component/ron--0kZyCV0.js +9 -0
  509. package/dist/component/ron-CJx-eqt3.js +9 -0
  510. package/dist/component/rose-pine-XHcBRH-D.js +7 -0
  511. package/dist/component/rose-pine-dawn-Bz77Igqs.js +7 -0
  512. package/dist/component/rose-pine-dawn-RL42yTas.js +7 -0
  513. package/dist/component/rose-pine-ksWn8nuO.js +7 -0
  514. package/dist/component/rose-pine-moon-BtSW__9n.js +7 -0
  515. package/dist/component/rose-pine-moon-QJS0aJgR.js +7 -0
  516. package/dist/component/rosmsg-BPUqDEe2.js +9 -0
  517. package/dist/component/rosmsg-CM65NRE0.js +9 -0
  518. package/dist/component/rst-CqXkCW5F.js +25 -0
  519. package/dist/component/rst-DQATMrFw.js +25 -0
  520. package/dist/component/ruby-B09XKrLg.js +33 -0
  521. package/dist/component/ruby-BJtrPIFQ.js +33 -0
  522. package/dist/component/rust-3aEF0O7t.js +9 -0
  523. package/dist/component/rust-XKBJng8W.js +9 -0
  524. package/dist/component/sankeyDiagram-5OEKKPKP-C-TbMbsr.js +862 -0
  525. package/dist/component/sas-COkwgxe_.js +11 -0
  526. package/dist/component/sas-DDLczODn.js +11 -0
  527. package/dist/component/sass-BIT8Mghp.js +9 -0
  528. package/dist/component/sass-CbXM5obh.js +9 -0
  529. package/dist/component/scala-CWyCExvl.js +9 -0
  530. package/dist/component/scala-DmAjX8OM.js +9 -0
  531. package/dist/component/scheme-BLXiZF3M.js +9 -0
  532. package/dist/component/scheme-ERi8vGmO.js +9 -0
  533. package/dist/component/scss-BX4eQ0c3.js +11 -0
  534. package/dist/component/scss-Biq-xkEY.js +11 -0
  535. package/dist/component/sdbl-B4TEJKGi.js +9 -0
  536. package/dist/component/sdbl-tnLxE-ur.js +9 -0
  537. package/dist/component/sequenceDiagram-3UESZ5HK-UHhixLbD.js +2897 -0
  538. package/dist/component/shaderlab-DMYXUCqo.js +11 -0
  539. package/dist/component/shaderlab-DqcfJRqk.js +11 -0
  540. package/dist/component/shellscript-B533aeAq.js +9 -0
  541. package/dist/component/shellscript-B8M9FK6Q.js +9 -0
  542. package/dist/component/shellsession-CvrLJEnp.js +11 -0
  543. package/dist/component/shellsession-Cy0cdv3D.js +11 -0
  544. package/dist/component/slack-dark-9TBiD8mL.js +7 -0
  545. package/dist/component/slack-dark-DN-r2Kgp.js +7 -0
  546. package/dist/component/slack-ochin-9pgdwMdj.js +7 -0
  547. package/dist/component/slack-ochin-DoqPjNJD.js +7 -0
  548. package/dist/component/smalltalk-Bbm0pJzJ.js +9 -0
  549. package/dist/component/smalltalk-BgwWJ0LQ.js +9 -0
  550. package/dist/component/snazzy-light-CRiZMLw1.js +7 -0
  551. package/dist/component/snazzy-light-D2QxPpzI.js +7 -0
  552. package/dist/component/solarized-dark-CpiZBbF-.js +7 -0
  553. package/dist/component/solarized-dark-DrZ258Kz.js +7 -0
  554. package/dist/component/solarized-light-940Q0ET-.js +7 -0
  555. package/dist/component/solarized-light-CZjXGjG0.js +7 -0
  556. package/dist/component/solidity-BiVIJAyo.js +9 -0
  557. package/dist/component/solidity-DsGO0zKs.js +9 -0
  558. package/dist/component/soy-B8d9iNux.js +11 -0
  559. package/dist/component/soy-CrWxFFIL.js +11 -0
  560. package/dist/component/sparql-C9-sbVPb.js +11 -0
  561. package/dist/component/sparql-D4y9QLpW.js +11 -0
  562. package/dist/component/splunk-8ZGt17T1.js +9 -0
  563. package/dist/component/splunk-CoLR9YoS.js +9 -0
  564. package/dist/component/sql-kcHmCqqm.js +9 -0
  565. package/dist/component/sql-vg8sPfqQ.js +9 -0
  566. package/dist/component/ssh-config-CaXR5cZI.js +9 -0
  567. package/dist/component/ssh-config-DIPB8nWv.js +9 -0
  568. package/dist/component/stata-DTwlvRC-.js +11 -0
  569. package/dist/component/stata-wXDnjjLv.js +11 -0
  570. package/dist/component/stateDiagram-AJRCARHV-DBGVr_mf.js +266 -0
  571. package/dist/component/stateDiagram-v2-BHNVJYJU-BasSd11t.js +19 -0
  572. package/dist/component/stylus-BVi_fesw.js +9 -0
  573. package/dist/component/stylus-WAexVQ6f.js +9 -0
  574. package/dist/component/surrealql-BMPoOZ16.js +11 -0
  575. package/dist/component/surrealql-CoR3cmJl.js +11 -0
  576. package/dist/component/svelte-BXoajfvD.js +17 -0
  577. package/dist/component/svelte-CSNEH6tH.js +17 -0
  578. package/dist/component/swift-C1L5BrdG.js +9 -0
  579. package/dist/component/swift-DvqRLmJa.js +9 -0
  580. package/dist/component/synthwave-84-CjU0tbaA.js +7 -0
  581. package/dist/component/synthwave-84-D0HCetP1.js +7 -0
  582. package/dist/component/system-verilog-BlCQhLvC.js +9 -0
  583. package/dist/component/system-verilog-NfYSOS9X.js +9 -0
  584. package/dist/component/systemd-C-VULMOV.js +9 -0
  585. package/dist/component/systemd-DPQeba_a.js +9 -0
  586. package/dist/component/talonscript-0iKTliWA.js +9 -0
  587. package/dist/component/talonscript-Dcq0YJ69.js +9 -0
  588. package/dist/component/tasl-CBnjmw_u.js +9 -0
  589. package/dist/component/tasl-DPTcRLbU.js +9 -0
  590. package/dist/component/tcl-B8YZq0wg.js +9 -0
  591. package/dist/component/tcl-D3IfUIUn.js +9 -0
  592. package/dist/component/templ-BWrZoBOl.js +15 -0
  593. package/dist/component/templ-CNKcDxHw.js +15 -0
  594. package/dist/component/terraform-BBGJbbOd.js +9 -0
  595. package/dist/component/terraform-CpHfbII0.js +9 -0
  596. package/dist/component/tex-Do7cxq2n.js +11 -0
  597. package/dist/component/tex-DotwMf2L.js +11 -0
  598. package/dist/component/timeline-definition-PNZ67QCA-BTzUH3cf.js +1058 -0
  599. package/dist/component/tokyo-night-50KL4qXP.js +7 -0
  600. package/dist/component/tokyo-night-CFdInRHE.js +7 -0
  601. package/dist/component/toml-BgG8u2uy.js +9 -0
  602. package/dist/component/toml-Cdrl1XDU.js +9 -0
  603. package/dist/component/ts-tags-CZ_-X2Or.js +44 -0
  604. package/dist/component/ts-tags-JQGxDVZd.js +44 -0
  605. package/dist/component/tsv-CH-Gpfzn.js +9 -0
  606. package/dist/component/tsv-DXq61Z_y.js +9 -0
  607. package/dist/component/tsx-B6WYiHjH.js +9 -0
  608. package/dist/component/tsx-BI2vzHzF.js +9 -0
  609. package/dist/component/turtle-BLh3UAZ1.js +9 -0
  610. package/dist/component/turtle-DuS0HQ9p.js +9 -0
  611. package/dist/component/twig-BA9yPOhQ.js +21 -0
  612. package/dist/component/twig-F0j_PXgJ.js +21 -0
  613. package/dist/component/typescript-Bt_Em9TU.js +9 -0
  614. package/dist/component/typescript-BxspRrVw.js +9 -0
  615. package/dist/component/typespec-CBQfkfKg.js +9 -0
  616. package/dist/component/typespec-ChsG4DJP.js +9 -0
  617. package/dist/component/typst-CLNdxZpy.js +9 -0
  618. package/dist/component/typst-rCvFF3Ml.js +9 -0
  619. package/dist/component/v-Bc8b7HcA.js +9 -0
  620. package/dist/component/v-DkBTCxRz.js +9 -0
  621. package/dist/component/vala-Bf6duLsN.js +9 -0
  622. package/dist/component/vala-D3NFAJvZ.js +9 -0
  623. package/dist/component/vb-CbCKaE0V.js +9 -0
  624. package/dist/component/vb-DoG_86dU.js +9 -0
  625. package/dist/component/vennDiagram-CIIHVFJN-CVh3weJ2.js +1560 -0
  626. package/dist/component/verilog-BsnhA3AJ.js +9 -0
  627. package/dist/component/verilog-nZodAh2g.js +9 -0
  628. package/dist/component/vesper-C9xEuBGK.js +7 -0
  629. package/dist/component/vesper-DGjNIaCs.js +7 -0
  630. package/dist/component/vhdl-D19XVLHt.js +9 -0
  631. package/dist/component/vhdl-mXcQB2Fg.js +9 -0
  632. package/dist/component/viml-8k_5DKNK.js +9 -0
  633. package/dist/component/viml-COJbZm0U.js +9 -0
  634. package/dist/component/vitesse-black-Bct4R3m4.js +7 -0
  635. package/dist/component/vitesse-black-heVxAgDf.js +7 -0
  636. package/dist/component/vitesse-dark-DdWh6SFL.js +7 -0
  637. package/dist/component/vitesse-dark-DiXBkaTo.js +7 -0
  638. package/dist/component/vitesse-light-CerMU32A.js +7 -0
  639. package/dist/component/vitesse-light-Eee3KZAP.js +7 -0
  640. package/dist/component/vue-DjB6jmJ7.js +34 -0
  641. package/dist/component/vue-YqIdEku3.js +34 -0
  642. package/dist/component/vue-html-BkvRG1qx.js +11 -0
  643. package/dist/component/vue-html-CXFz0iVx.js +11 -0
  644. package/dist/component/vue-vine-CFD4nsF4.js +21 -0
  645. package/dist/component/vue-vine-lE-jUeB6.js +21 -0
  646. package/dist/component/vyper-DTCkLS2f.js +9 -0
  647. package/dist/component/vyper-_vSvOdCD.js +9 -0
  648. package/dist/component/wardley-L42UT6IY-HA1eSIS_.js +23141 -0
  649. package/dist/component/wardleyDiagram-YWT4CUSO-Uu5KXQum.js +681 -0
  650. package/dist/component/wasm-BEUtLzBq.js +10 -0
  651. package/dist/component/wasm-Bw9k5bmy.js +9 -0
  652. package/dist/component/wasm-NiufRxKC.js +9 -0
  653. package/dist/component/wasm-rA9i46L9.js +10 -0
  654. package/dist/component/wenyan-BAnK6VvJ.js +9 -0
  655. package/dist/component/wenyan-EBJbIPqf.js +9 -0
  656. package/dist/component/wgsl-B9MSpOv3.js +9 -0
  657. package/dist/component/wgsl-Dlg8zdV4.js +9 -0
  658. package/dist/component/wikitext-C8AvgBS7.js +9 -0
  659. package/dist/component/wikitext-sNd9wc1e.js +9 -0
  660. package/dist/component/wit-BM4EHoLb.js +9 -0
  661. package/dist/component/wit-BUXWAgVD.js +9 -0
  662. package/dist/component/wolfram-Ba-Qm5eW.js +9 -0
  663. package/dist/component/wolfram-CKRVXwGa.js +9 -0
  664. package/dist/component/xml-CE4MTCb-.js +11 -0
  665. package/dist/component/xml-DXvCmeFI.js +11 -0
  666. package/dist/component/xsl-BrFD-9o5.js +11 -0
  667. package/dist/component/xsl-CHBQO4kd.js +11 -0
  668. package/dist/component/xychartDiagram-2RQKCTM6-IkxwUbCF.js +1375 -0
  669. package/dist/component/yaml-CF4mYNnF.js +9 -0
  670. package/dist/component/yaml-XzfbPk1C.js +9 -0
  671. package/dist/component/zenscript-C0pvNsdh.js +9 -0
  672. package/dist/component/zenscript-xkkNgCqg.js +9 -0
  673. package/dist/component/zig-Bz6GLPWH.js +9 -0
  674. package/dist/component/zig-oixaTxav.js +9 -0
  675. package/dist/components/ai-elements/attachments.d.ts +54 -0
  676. package/dist/components/ai-elements/code-block.d.ts +46 -0
  677. package/dist/components/ai-elements/conversation.d.ts +23 -0
  678. package/dist/components/ai-elements/copy-button.d.ts +6 -0
  679. package/dist/components/ai-elements/file-tree.d.ts +26 -0
  680. package/dist/components/ai-elements/link-safety-modal.d.ts +8 -0
  681. package/dist/components/ai-elements/message.d.ts +38 -0
  682. package/dist/components/ai-elements/plan.d.ts +25 -0
  683. package/dist/components/ai-elements/prompt-input.d.ts +158 -0
  684. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  685. package/dist/components/ai-elements/shell-highlight.d.ts +3 -0
  686. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  687. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  688. package/dist/components/ai-elements/task.d.ts +14 -0
  689. package/dist/components/ai-elements/terminal-task.d.ts +5 -0
  690. package/dist/components/ai-elements/tool.d.ts +31 -0
  691. package/dist/components/embed/AgentGrantCard.d.ts +25 -0
  692. package/dist/components/embed/AtMentionMenu.d.ts +13 -0
  693. package/dist/components/embed/BelongMark.d.ts +4 -0
  694. package/dist/components/embed/BrandMark.d.ts +11 -0
  695. package/dist/components/embed/CapabilityHints.d.ts +1 -0
  696. package/dist/components/embed/ComposerMenu.d.ts +36 -0
  697. package/dist/components/embed/CsvTable.d.ts +10 -0
  698. package/dist/components/embed/EmbedAvatar.d.ts +35 -0
  699. package/dist/components/embed/EmbedComposer.d.ts +31 -0
  700. package/dist/components/embed/EmbedConversation.d.ts +31 -0
  701. package/dist/components/embed/EmbedFiles.d.ts +28 -0
  702. package/dist/components/embed/EmbedHeader.d.ts +11 -0
  703. package/dist/components/embed/EmbedLogin.d.ts +11 -0
  704. package/dist/components/embed/EmbedRail.d.ts +49 -0
  705. package/dist/components/embed/EmbedSessions.d.ts +23 -0
  706. package/dist/components/embed/FilePreview.d.ts +12 -0
  707. package/dist/components/embed/FilePreviewDialog.d.ts +19 -0
  708. package/dist/components/embed/MentionInput.d.ts +23 -0
  709. package/dist/components/embed/MentionPill.d.ts +25 -0
  710. package/dist/components/embed/OnboardingOverlay.d.ts +21 -0
  711. package/dist/components/embed/OnboardingTour.d.ts +24 -0
  712. package/dist/components/embed/OnboardingWelcome.d.ts +23 -0
  713. package/dist/components/embed/PlanCue.d.ts +9 -0
  714. package/dist/components/embed/PlanPanel.d.ts +13 -0
  715. package/dist/components/embed/PlanView.d.ts +16 -0
  716. package/dist/components/embed/PoweredByBelong.d.ts +7 -0
  717. package/dist/components/embed/PreviewContent.d.ts +26 -0
  718. package/dist/components/embed/PreviewPanel.d.ts +17 -0
  719. package/dist/components/embed/ProgressRing.d.ts +13 -0
  720. package/dist/components/embed/SlashCommandMenu.d.ts +13 -0
  721. package/dist/components/embed/UploadedFiles.d.ts +9 -0
  722. package/dist/components/embed/UsageMeter.d.ts +9 -0
  723. package/dist/components/embed/WelcomeIntro.d.ts +10 -0
  724. package/dist/components/embed/WorkspaceTree.d.ts +22 -0
  725. package/dist/components/embed/__plan-test-utils__.d.ts +13 -0
  726. package/dist/components/embed/dev-runtime-bar.d.ts +21 -0
  727. package/dist/components/embed/embed-composer.fixtures.d.ts +3 -0
  728. package/dist/components/embed/embed-rail.fixtures.d.ts +3 -0
  729. package/dist/components/embed/file-preview-kind.d.ts +7 -0
  730. package/dist/components/embed/onboarding-story-dock.d.ts +20 -0
  731. package/dist/components/embed/onboarding.fixtures.d.ts +9 -0
  732. package/dist/components/embed/parse-csv.d.ts +10 -0
  733. package/dist/components/embed/preview-content-kind.d.ts +15 -0
  734. package/dist/components/embed/use-panel-resize.d.ts +4 -0
  735. package/dist/components/embed/use-preview-bytes.d.ts +39 -0
  736. package/dist/components/feedback/feedback-metadata.d.ts +37 -0
  737. package/dist/components/feedback/message-feedback.d.ts +9 -0
  738. package/dist/components/ui/accordion.d.ts +7 -0
  739. package/dist/components/ui/alert.d.ts +9 -0
  740. package/dist/components/ui/avatar.d.ts +11 -0
  741. package/dist/components/ui/badge.d.ts +9 -0
  742. package/dist/components/ui/button-group.d.ts +11 -0
  743. package/dist/components/ui/button.d.ts +10 -0
  744. package/dist/components/ui/card.d.ts +9 -0
  745. package/dist/components/ui/carousel.d.ts +19 -0
  746. package/dist/components/ui/checkbox.d.ts +4 -0
  747. package/dist/components/ui/collapsible.d.ts +5 -0
  748. package/dist/components/ui/command.d.ts +18 -0
  749. package/dist/components/ui/dialog.d.ts +17 -0
  750. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  751. package/dist/components/ui/hover-card.d.ts +6 -0
  752. package/dist/components/ui/input-group.d.ts +16 -0
  753. package/dist/components/ui/input.d.ts +3 -0
  754. package/dist/components/ui/popover.d.ts +10 -0
  755. package/dist/components/ui/progress.d.ts +4 -0
  756. package/dist/components/ui/radio-group.d.ts +5 -0
  757. package/dist/components/ui/scroll-area.d.ts +5 -0
  758. package/dist/components/ui/select.d.ts +15 -0
  759. package/dist/components/ui/separator.d.ts +4 -0
  760. package/dist/components/ui/spinner.d.ts +2 -0
  761. package/dist/components/ui/switch.d.ts +6 -0
  762. package/dist/components/ui/tabs.d.ts +11 -0
  763. package/dist/components/ui/textarea.d.ts +3 -0
  764. package/dist/components/ui/tooltip.d.ts +7 -0
  765. package/dist/dev-main.d.ts +0 -0
  766. package/dist/embed/agent-grant-refresh.d.ts +37 -0
  767. package/dist/embed/at-mentions.d.ts +80 -0
  768. package/dist/embed/auth0-refresh.d.ts +78 -0
  769. package/dist/embed/auto-embed.d.ts +19 -0
  770. package/dist/embed/bootstrap.d.ts +10 -0
  771. package/dist/embed/brand-marks.d.ts +11 -0
  772. package/dist/embed/build-info.d.ts +30 -0
  773. package/dist/embed/build-version.d.ts +28 -0
  774. package/dist/embed/chat-mode.d.ts +46 -0
  775. package/dist/embed/composer-focus.d.ts +14 -0
  776. package/dist/embed/copy.d.ts +84 -0
  777. package/dist/embed/custom-css.d.ts +2 -0
  778. package/dist/embed/debug-overrides.d.ts +11 -0
  779. package/dist/embed/dev-mode.d.ts +56 -0
  780. package/dist/embed/dock-layout.d.ts +30 -0
  781. package/dist/embed/dock-state.d.ts +32 -0
  782. package/dist/embed/download-url.d.ts +9 -0
  783. package/dist/embed/file-type-icon.d.ts +29 -0
  784. package/dist/embed/format-bytes.d.ts +2 -0
  785. package/dist/embed/global.d.ts +79 -0
  786. package/dist/embed/locale.d.ts +18 -0
  787. package/dist/embed/logo.d.ts +1 -0
  788. package/dist/embed/mic-press.d.ts +27 -0
  789. package/dist/embed/onboarding-prefs.d.ts +52 -0
  790. package/dist/embed/onboarding-steps.d.ts +27 -0
  791. package/dist/embed/onboarding-store.d.ts +39 -0
  792. package/dist/embed/plan-auto-open.d.ts +8 -0
  793. package/dist/embed/plan-decision.d.ts +10 -0
  794. package/dist/embed/plan-intent.d.ts +17 -0
  795. package/dist/embed/portal-container.d.ts +23 -0
  796. package/dist/embed/presets.d.ts +29 -0
  797. package/dist/embed/session-record.d.ts +16 -0
  798. package/dist/embed/shadow-mount.d.ts +37 -0
  799. package/dist/embed/slash-commands.d.ts +49 -0
  800. package/dist/embed/theme.d.ts +40 -0
  801. package/dist/embed/universe-origin.d.ts +24 -0
  802. package/dist/embed/use-workspace-file-download.d.ts +16 -0
  803. package/dist/embed/voice/audio-forwarder.worklet.d.ts +22 -0
  804. package/dist/embed/voice/audio-utils.d.ts +38 -0
  805. package/dist/embed/voice/deepgram-stt.d.ts +69 -0
  806. package/dist/embed/voice/mic-capture.d.ts +34 -0
  807. package/dist/embed/voice/sentence-split.d.ts +11 -0
  808. package/dist/embed/voice/voice-http.d.ts +8 -0
  809. package/dist/embed/voice/voice-token.d.ts +40 -0
  810. package/dist/embed/voice-bus.d.ts +75 -0
  811. package/dist/embed/voice-config.d.ts +52 -0
  812. package/dist/embed/voice-fillers.d.ts +2 -0
  813. package/dist/embed/voice-prefs.d.ts +55 -0
  814. package/dist/embed/voice-tts.d.ts +101 -0
  815. package/dist/embed/workspace-paths.d.ts +9 -0
  816. package/dist/infrastructure/telemetry/session-span-processor.d.ts +11 -0
  817. package/dist/infrastructure/telemetry/web-sdk.d.ts +29 -0
  818. package/dist/lib/belong.d.ts +12 -0
  819. package/dist/lib/tab-leadership.d.ts +46 -0
  820. package/dist/lib/use-tab-leadership.d.ts +8 -0
  821. package/dist/lib/utils.d.ts +9 -0
  822. package/dist/public-api.d.ts +3 -0
  823. package/dist/routes/chat-attachment-chip.d.ts +9 -0
  824. package/dist/routes/chat.d.ts +29 -0
  825. package/dist/routes/documents.d.ts +16 -0
  826. package/dist/routes/files.d.ts +14 -0
  827. package/dist/routes/sample-artifact.d.ts +7 -0
  828. package/dist/routes/sessions.d.ts +4 -0
  829. package/dist/routes/static-chat-fixture.d.ts +26 -0
  830. package/dist/stream/ai-sdk-part-renderers.d.ts +66 -0
  831. package/dist/stream/belong-chat-transport.d.ts +679 -0
  832. package/dist/stream/belong-data-parts.d.ts +207 -0
  833. package/dist/stream/chat-upload.d.ts +35 -0
  834. package/dist/stream/plan-panel-store.d.ts +11 -0
  835. package/dist/stream/plan-progress-store.d.ts +4 -0
  836. package/dist/stream/plan-progress.d.ts +25 -0
  837. package/dist/stream/plan-store.d.ts +16 -0
  838. package/dist/stream/preview-panel-store.d.ts +50 -0
  839. package/dist/stream/sandbox-output.d.ts +32 -0
  840. package/dist/stream/select-latest-plan.d.ts +17 -0
  841. package/dist/stream/select-session-usage.d.ts +23 -0
  842. package/dist/stream/session-title.d.ts +15 -0
  843. package/dist/stream/stream-state-store.d.ts +67 -0
  844. package/dist/stream/tool-io.d.ts +7 -0
  845. package/dist/test/render.d.ts +23 -0
  846. package/dist/test-setup.d.ts +1 -0
  847. package/dist/types/public.d.ts +189 -0
  848. package/package.json +38 -0
@@ -0,0 +1,1375 @@
1
+ import { s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, _ as a, l as Et, N as ri, e as hi, B as li, G as dt, i as ci, I as It, K as ui, a4 as gi, ap as xi, ac as Rt } from "./mermaid-GHXKKRXX-C5Y3BZXR.js";
2
+ import { i as di } from "./init-BOu0eQYQ.js";
3
+ import { o as fi } from "./ordinal-D0x7izaa.js";
4
+ import { l as Dt } from "./linear-BDyEUcVD.js";
5
+ globalThis.process = globalThis.process || { env: {} };
6
+ globalThis.global = globalThis.global || globalThis;
7
+ function pi(t, i, e) {
8
+ t = +t, i = +i, e = (n = arguments.length) < 2 ? (i = t, t = 0, 1) : n < 3 ? 1 : +e;
9
+ for (var s = -1, n = Math.max(0, Math.ceil((i - t) / e)) | 0, g = new Array(n); ++s < n; )
10
+ g[s] = t + s * e;
11
+ return g;
12
+ }
13
+ function lt() {
14
+ var t = fi().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, g, c, p = !1, k = 0, v = 0, P = 0.5;
15
+ delete t.unknown;
16
+ function S() {
17
+ var m = i().length, E = n < s, D = E ? n : s, L = E ? s : n;
18
+ g = (L - D) / Math.max(1, m - k + v * 2), p && (g = Math.floor(g)), D += (L - D - g * (m - k)) * P, c = g * (1 - k), p && (D = Math.round(D), c = Math.round(c));
19
+ var I = pi(m).map(function(f) {
20
+ return D + g * f;
21
+ });
22
+ return e(E ? I.reverse() : I);
23
+ }
24
+ return t.domain = function(m) {
25
+ return arguments.length ? (i(m), S()) : i();
26
+ }, t.range = function(m) {
27
+ return arguments.length ? ([s, n] = m, s = +s, n = +n, S()) : [s, n];
28
+ }, t.rangeRound = function(m) {
29
+ return [s, n] = m, s = +s, n = +n, p = !0, S();
30
+ }, t.bandwidth = function() {
31
+ return c;
32
+ }, t.step = function() {
33
+ return g;
34
+ }, t.round = function(m) {
35
+ return arguments.length ? (p = !!m, S()) : p;
36
+ }, t.padding = function(m) {
37
+ return arguments.length ? (k = Math.min(1, v = +m), S()) : k;
38
+ }, t.paddingInner = function(m) {
39
+ return arguments.length ? (k = Math.min(1, m), S()) : k;
40
+ }, t.paddingOuter = function(m) {
41
+ return arguments.length ? (v = +m, S()) : v;
42
+ }, t.align = function(m) {
43
+ return arguments.length ? (P = Math.max(0, Math.min(1, m)), S()) : P;
44
+ }, t.copy = function() {
45
+ return lt(i(), [s, n]).round(p).paddingInner(k).paddingOuter(v).align(P);
46
+ }, di.apply(S(), arguments);
47
+ }
48
+ var ct = (function() {
49
+ var t = /* @__PURE__ */ a(function(F, r, l, u) {
50
+ for (l = l || {}, u = F.length; u--; l[F[u]] = r) ;
51
+ return l;
52
+ }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], g = [1, 6], c = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 25], v = [1, 26], P = [1, 28], S = [1, 29], m = [1, 30], E = [1, 31], D = [1, 32], L = [1, 33], I = [1, 34], f = [1, 35], T = [1, 36], h = [1, 37], W = [1, 43], O = [1, 42], X = [1, 47], Y = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], U = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], y = [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], A = [1, 64], V = {
53
+ trace: /* @__PURE__ */ a(function() {
54
+ }, "trace"),
55
+ yy: {},
56
+ 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 },
57
+ 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" },
58
+ 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]],
59
+ performAction: /* @__PURE__ */ a(function(r, l, u, x, w, o, Q) {
60
+ var d = o.length - 1;
61
+ switch (w) {
62
+ case 5:
63
+ x.setOrientation(o[d]);
64
+ break;
65
+ case 9:
66
+ x.setDiagramTitle(o[d].text.trim());
67
+ break;
68
+ case 12:
69
+ x.setLineData({ text: "", type: "text" }, o[d]);
70
+ break;
71
+ case 13:
72
+ x.setLineData(o[d - 1], o[d]);
73
+ break;
74
+ case 14:
75
+ x.setBarData({ text: "", type: "text" }, o[d]);
76
+ break;
77
+ case 15:
78
+ x.setBarData(o[d - 1], o[d]);
79
+ break;
80
+ case 16:
81
+ this.$ = o[d].trim(), x.setAccTitle(this.$);
82
+ break;
83
+ case 17:
84
+ case 18:
85
+ this.$ = o[d].trim(), x.setAccDescription(this.$);
86
+ break;
87
+ case 19:
88
+ this.$ = o[d - 1];
89
+ break;
90
+ case 20:
91
+ this.$ = [Number(o[d - 2]), ...o[d]];
92
+ break;
93
+ case 21:
94
+ this.$ = [Number(o[d])];
95
+ break;
96
+ case 22:
97
+ x.setXAxisTitle(o[d]);
98
+ break;
99
+ case 23:
100
+ x.setXAxisTitle(o[d - 1]);
101
+ break;
102
+ case 24:
103
+ x.setXAxisTitle({ type: "text", text: "" });
104
+ break;
105
+ case 25:
106
+ x.setXAxisBand(o[d]);
107
+ break;
108
+ case 26:
109
+ x.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
110
+ break;
111
+ case 27:
112
+ this.$ = o[d - 1];
113
+ break;
114
+ case 28:
115
+ this.$ = [o[d - 2], ...o[d]];
116
+ break;
117
+ case 29:
118
+ this.$ = [o[d]];
119
+ break;
120
+ case 30:
121
+ x.setYAxisTitle(o[d]);
122
+ break;
123
+ case 31:
124
+ x.setYAxisTitle(o[d - 1]);
125
+ break;
126
+ case 32:
127
+ x.setYAxisTitle({ type: "text", text: "" });
128
+ break;
129
+ case 33:
130
+ x.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
131
+ break;
132
+ case 37:
133
+ this.$ = { text: o[d], type: "text" };
134
+ break;
135
+ case 38:
136
+ this.$ = { text: o[d], type: "text" };
137
+ break;
138
+ case 39:
139
+ this.$ = { text: o[d], type: "markdown" };
140
+ break;
141
+ case 40:
142
+ this.$ = o[d];
143
+ break;
144
+ case 41:
145
+ this.$ = o[d - 1] + "" + o[d];
146
+ break;
147
+ }
148
+ }, "anonymous"),
149
+ table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: g, 36: c }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: g, 36: c }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: g, 36: c }), { 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] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: g, 36: c }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: g, 36: c }), { 11: 23, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 39, 13: 38, 24: W, 27: O, 29: 40, 30: 41, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 45, 15: 44, 27: X, 33: 46, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 49, 17: 48, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 52, 17: 51, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 20: [1, 53] }, { 22: [1, 54] }, t(C, [2, 18]), { 1: [2, 2] }, t(C, [2, 8]), t(C, [2, 9]), t(U, [2, 37], { 40: 55, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }), t(U, [2, 38]), t(U, [2, 39]), t(y, [2, 40]), t(y, [2, 42]), t(y, [2, 43]), t(y, [2, 44]), t(y, [2, 45]), t(y, [2, 46]), t(y, [2, 47]), t(y, [2, 48]), t(y, [2, 49]), t(y, [2, 50]), t(y, [2, 51]), t(C, [2, 10]), t(C, [2, 22], { 30: 41, 29: 56, 24: W, 27: O }), t(C, [2, 24]), t(C, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, t(C, [2, 11]), t(C, [2, 30], { 33: 60, 27: X }), t(C, [2, 32]), { 31: [1, 61] }, t(C, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: A }, t(C, [2, 14]), { 17: 65, 24: Y }, t(C, [2, 16]), t(C, [2, 17]), t(y, [2, 41]), t(C, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(C, [2, 31]), { 27: [1, 69] }, t(C, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(C, [2, 15]), t(C, [2, 26]), t(C, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, t(C, [2, 33]), t(C, [2, 19]), { 25: 73, 27: A }, { 26: [2, 28] }, { 26: [2, 20] }],
150
+ defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
151
+ parseError: /* @__PURE__ */ a(function(r, l) {
152
+ if (l.recoverable)
153
+ this.trace(r);
154
+ else {
155
+ var u = new Error(r);
156
+ throw u.hash = l, u;
157
+ }
158
+ }, "parseError"),
159
+ parse: /* @__PURE__ */ a(function(r) {
160
+ var l = this, u = [0], x = [], w = [null], o = [], Q = this.table, d = "", tt = 0, St = 0, Zt = 2, _t = 1, Jt = o.slice.call(arguments, 1), R = Object.create(this.lexer), $ = { yy: {} };
161
+ for (var at in this.yy)
162
+ Object.prototype.hasOwnProperty.call(this.yy, at) && ($.yy[at] = this.yy[at]);
163
+ R.setInput(r, $.yy), $.yy.lexer = R, $.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
164
+ var ot = R.yylloc;
165
+ o.push(ot);
166
+ var ti = R.options && R.options.ranges;
167
+ typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
168
+ function ii(B) {
169
+ u.length = u.length - 2 * B, w.length = w.length - B, o.length = o.length - B;
170
+ }
171
+ a(ii, "popStack");
172
+ function kt() {
173
+ var B;
174
+ return B = x.pop() || R.lex() || _t, typeof B != "number" && (B instanceof Array && (x = B, B = x.pop()), B = l.symbols_[B] || B), B;
175
+ }
176
+ a(kt, "lex");
177
+ for (var M, q, z, rt, G = {}, it, N, Tt, et; ; ) {
178
+ if (q = u[u.length - 1], this.defaultActions[q] ? z = this.defaultActions[q] : ((M === null || typeof M > "u") && (M = kt()), z = Q[q] && Q[q][M]), typeof z > "u" || !z.length || !z[0]) {
179
+ var ht = "";
180
+ et = [];
181
+ for (it in Q[q])
182
+ this.terminals_[it] && it > Zt && et.push("'" + this.terminals_[it] + "'");
183
+ R.showPosition ? ht = "Parse error on line " + (tt + 1) + `:
184
+ ` + R.showPosition() + `
185
+ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht = "Parse error on line " + (tt + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(ht, {
186
+ text: R.match,
187
+ token: this.terminals_[M] || M,
188
+ line: R.yylineno,
189
+ loc: ot,
190
+ expected: et
191
+ });
192
+ }
193
+ if (z[0] instanceof Array && z.length > 1)
194
+ throw new Error("Parse Error: multiple actions possible at state: " + q + ", token: " + M);
195
+ switch (z[0]) {
196
+ case 1:
197
+ u.push(M), w.push(R.yytext), o.push(R.yylloc), u.push(z[1]), M = null, St = R.yyleng, d = R.yytext, tt = R.yylineno, ot = R.yylloc;
198
+ break;
199
+ case 2:
200
+ if (N = this.productions_[z[1]][1], G.$ = w[w.length - N], G._$ = {
201
+ first_line: o[o.length - (N || 1)].first_line,
202
+ last_line: o[o.length - 1].last_line,
203
+ first_column: o[o.length - (N || 1)].first_column,
204
+ last_column: o[o.length - 1].last_column
205
+ }, ti && (G._$.range = [
206
+ o[o.length - (N || 1)].range[0],
207
+ o[o.length - 1].range[1]
208
+ ]), rt = this.performAction.apply(G, [
209
+ d,
210
+ St,
211
+ tt,
212
+ $.yy,
213
+ z[1],
214
+ w,
215
+ o
216
+ ].concat(Jt)), typeof rt < "u")
217
+ return rt;
218
+ N && (u = u.slice(0, -1 * N * 2), w = w.slice(0, -1 * N), o = o.slice(0, -1 * N)), u.push(this.productions_[z[1]][0]), w.push(G.$), o.push(G._$), Tt = Q[u[u.length - 2]][u[u.length - 1]], u.push(Tt);
219
+ break;
220
+ case 3:
221
+ return !0;
222
+ }
223
+ }
224
+ return !0;
225
+ }, "parse")
226
+ }, _ = /* @__PURE__ */ (function() {
227
+ var F = {
228
+ EOF: 1,
229
+ parseError: /* @__PURE__ */ a(function(l, u) {
230
+ if (this.yy.parser)
231
+ this.yy.parser.parseError(l, u);
232
+ else
233
+ throw new Error(l);
234
+ }, "parseError"),
235
+ // resets the lexer, sets new input
236
+ setInput: /* @__PURE__ */ a(function(r, l) {
237
+ return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
238
+ first_line: 1,
239
+ first_column: 0,
240
+ last_line: 1,
241
+ last_column: 0
242
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
243
+ }, "setInput"),
244
+ // consumes and returns one char from the input
245
+ input: /* @__PURE__ */ a(function() {
246
+ var r = this._input[0];
247
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
248
+ var l = r.match(/(?:\r\n?|\n).*/g);
249
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
250
+ }, "input"),
251
+ // unshifts one char (or a string) into the input
252
+ unput: /* @__PURE__ */ a(function(r) {
253
+ var l = r.length, u = r.split(/(?:\r\n?|\n)/g);
254
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
255
+ var x = this.match.split(/(?:\r\n?|\n)/g);
256
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
257
+ var w = this.yylloc.range;
258
+ return this.yylloc = {
259
+ first_line: this.yylloc.first_line,
260
+ last_line: this.yylineno + 1,
261
+ first_column: this.yylloc.first_column,
262
+ last_column: u ? (u.length === x.length ? this.yylloc.first_column : 0) + x[x.length - u.length].length - u[0].length : this.yylloc.first_column - l
263
+ }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
264
+ }, "unput"),
265
+ // When called from action, caches matched text and appends it on next action
266
+ more: /* @__PURE__ */ a(function() {
267
+ return this._more = !0, this;
268
+ }, "more"),
269
+ // 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.
270
+ reject: /* @__PURE__ */ a(function() {
271
+ if (this.options.backtrack_lexer)
272
+ this._backtrack = !0;
273
+ else
274
+ 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).
275
+ ` + this.showPosition(), {
276
+ text: "",
277
+ token: null,
278
+ line: this.yylineno
279
+ });
280
+ return this;
281
+ }, "reject"),
282
+ // retain first n characters of the match
283
+ less: /* @__PURE__ */ a(function(r) {
284
+ this.unput(this.match.slice(r));
285
+ }, "less"),
286
+ // displays already matched input, i.e. for error messages
287
+ pastInput: /* @__PURE__ */ a(function() {
288
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
289
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
290
+ }, "pastInput"),
291
+ // displays upcoming input, i.e. for error messages
292
+ upcomingInput: /* @__PURE__ */ a(function() {
293
+ var r = this.match;
294
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
295
+ }, "upcomingInput"),
296
+ // displays the character position where the lexing error occurred, i.e. for error messages
297
+ showPosition: /* @__PURE__ */ a(function() {
298
+ var r = this.pastInput(), l = new Array(r.length + 1).join("-");
299
+ return r + this.upcomingInput() + `
300
+ ` + l + "^";
301
+ }, "showPosition"),
302
+ // test the lexed token: return FALSE when not a match, otherwise return token
303
+ test_match: /* @__PURE__ */ a(function(r, l) {
304
+ var u, x, w;
305
+ if (this.options.backtrack_lexer && (w = {
306
+ yylineno: this.yylineno,
307
+ yylloc: {
308
+ first_line: this.yylloc.first_line,
309
+ last_line: this.last_line,
310
+ first_column: this.yylloc.first_column,
311
+ last_column: this.yylloc.last_column
312
+ },
313
+ yytext: this.yytext,
314
+ match: this.match,
315
+ matches: this.matches,
316
+ matched: this.matched,
317
+ yyleng: this.yyleng,
318
+ offset: this.offset,
319
+ _more: this._more,
320
+ _input: this._input,
321
+ yy: this.yy,
322
+ conditionStack: this.conditionStack.slice(0),
323
+ done: this.done
324
+ }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
325
+ first_line: this.yylloc.last_line,
326
+ last_line: this.yylineno + 1,
327
+ first_column: this.yylloc.last_column,
328
+ last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
329
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], u = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u)
330
+ return u;
331
+ if (this._backtrack) {
332
+ for (var o in w)
333
+ this[o] = w[o];
334
+ return !1;
335
+ }
336
+ return !1;
337
+ }, "test_match"),
338
+ // return next match in input
339
+ next: /* @__PURE__ */ a(function() {
340
+ if (this.done)
341
+ return this.EOF;
342
+ this._input || (this.done = !0);
343
+ var r, l, u, x;
344
+ this._more || (this.yytext = "", this.match = "");
345
+ for (var w = this._currentRules(), o = 0; o < w.length; o++)
346
+ if (u = this._input.match(this.rules[w[o]]), u && (!l || u[0].length > l[0].length)) {
347
+ if (l = u, x = o, this.options.backtrack_lexer) {
348
+ if (r = this.test_match(u, w[o]), r !== !1)
349
+ return r;
350
+ if (this._backtrack) {
351
+ l = !1;
352
+ continue;
353
+ } else
354
+ return !1;
355
+ } else if (!this.options.flex)
356
+ break;
357
+ }
358
+ return l ? (r = this.test_match(l, w[x]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
359
+ ` + this.showPosition(), {
360
+ text: "",
361
+ token: null,
362
+ line: this.yylineno
363
+ });
364
+ }, "next"),
365
+ // return next match that has a token
366
+ lex: /* @__PURE__ */ a(function() {
367
+ var l = this.next();
368
+ return l || this.lex();
369
+ }, "lex"),
370
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
371
+ begin: /* @__PURE__ */ a(function(l) {
372
+ this.conditionStack.push(l);
373
+ }, "begin"),
374
+ // pop the previously active lexer condition state off the condition stack
375
+ popState: /* @__PURE__ */ a(function() {
376
+ var l = this.conditionStack.length - 1;
377
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
378
+ }, "popState"),
379
+ // produce the lexer rule set which is active for the currently active lexer condition state
380
+ _currentRules: /* @__PURE__ */ a(function() {
381
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
382
+ }, "_currentRules"),
383
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
384
+ topState: /* @__PURE__ */ a(function(l) {
385
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
386
+ }, "topState"),
387
+ // alias for begin(condition)
388
+ pushState: /* @__PURE__ */ a(function(l) {
389
+ this.begin(l);
390
+ }, "pushState"),
391
+ // return the number of states currently on the stack
392
+ stateStackSize: /* @__PURE__ */ a(function() {
393
+ return this.conditionStack.length;
394
+ }, "stateStackSize"),
395
+ options: { "case-insensitive": !0 },
396
+ performAction: /* @__PURE__ */ a(function(l, u, x, w) {
397
+ switch (x) {
398
+ case 0:
399
+ break;
400
+ case 1:
401
+ break;
402
+ case 2:
403
+ return this.popState(), 34;
404
+ case 3:
405
+ return this.popState(), 34;
406
+ case 4:
407
+ return 34;
408
+ case 5:
409
+ break;
410
+ case 6:
411
+ return 10;
412
+ case 7:
413
+ return this.pushState("acc_title"), 19;
414
+ case 8:
415
+ return this.popState(), "acc_title_value";
416
+ case 9:
417
+ return this.pushState("acc_descr"), 21;
418
+ case 10:
419
+ return this.popState(), "acc_descr_value";
420
+ case 11:
421
+ this.pushState("acc_descr_multiline");
422
+ break;
423
+ case 12:
424
+ this.popState();
425
+ break;
426
+ case 13:
427
+ return "acc_descr_multiline_value";
428
+ case 14:
429
+ return 5;
430
+ case 15:
431
+ return 5;
432
+ case 16:
433
+ return 8;
434
+ case 17:
435
+ return this.pushState("axis_data"), "X_AXIS";
436
+ case 18:
437
+ return this.pushState("axis_data"), "Y_AXIS";
438
+ case 19:
439
+ return this.pushState("axis_band_data"), 24;
440
+ case 20:
441
+ return 31;
442
+ case 21:
443
+ return this.pushState("data"), 16;
444
+ case 22:
445
+ return this.pushState("data"), 18;
446
+ case 23:
447
+ return this.pushState("data_inner"), 24;
448
+ case 24:
449
+ return 27;
450
+ case 25:
451
+ return this.popState(), 26;
452
+ case 26:
453
+ this.popState();
454
+ break;
455
+ case 27:
456
+ this.pushState("string");
457
+ break;
458
+ case 28:
459
+ this.popState();
460
+ break;
461
+ case 29:
462
+ return "STR";
463
+ case 30:
464
+ return 24;
465
+ case 31:
466
+ return 26;
467
+ case 32:
468
+ return 43;
469
+ case 33:
470
+ return "COLON";
471
+ case 34:
472
+ return 44;
473
+ case 35:
474
+ return 28;
475
+ case 36:
476
+ return 45;
477
+ case 37:
478
+ return 46;
479
+ case 38:
480
+ return 48;
481
+ case 39:
482
+ return 50;
483
+ case 40:
484
+ return 47;
485
+ case 41:
486
+ return 41;
487
+ case 42:
488
+ return 49;
489
+ case 43:
490
+ return 42;
491
+ case 44:
492
+ break;
493
+ case 45:
494
+ return 35;
495
+ case 46:
496
+ return 36;
497
+ }
498
+ }, "anonymous"),
499
+ 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],
500
+ 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 } }
501
+ };
502
+ return F;
503
+ })();
504
+ V.lexer = _;
505
+ function H() {
506
+ this.yy = {};
507
+ }
508
+ return a(H, "Parser"), H.prototype = V, V.Parser = H, new H();
509
+ })();
510
+ ct.parser = ct;
511
+ var mi = ct;
512
+ function ut(t) {
513
+ return t.type === "bar";
514
+ }
515
+ a(ut, "isBarPlot");
516
+ function ft(t) {
517
+ return t.type === "band";
518
+ }
519
+ a(ft, "isBandAxisData");
520
+ function j(t) {
521
+ return t.type === "linear";
522
+ }
523
+ a(j, "isLinearAxisData");
524
+ var Mt = class {
525
+ constructor(t) {
526
+ this.parentGroup = t;
527
+ }
528
+ static {
529
+ a(this, "TextDimensionCalculatorWithFont");
530
+ }
531
+ getMaxDimension(t, i) {
532
+ if (!this.parentGroup)
533
+ return {
534
+ width: t.reduce((n, g) => Math.max(g.length, n), 0) * i,
535
+ height: i
536
+ };
537
+ const e = {
538
+ width: 0,
539
+ height: 0
540
+ }, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
541
+ for (const n of t) {
542
+ const g = xi(s, 1, n), c = g ? g.width : n.length * i, p = g ? g.height : i;
543
+ e.width = Math.max(e.width, c), e.height = Math.max(e.height, p);
544
+ }
545
+ return s.remove(), e;
546
+ }
547
+ }, vt = 0.7, Pt = 0.2, Vt = class {
548
+ constructor(t, i, e, s) {
549
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, 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";
550
+ }
551
+ static {
552
+ a(this, "BaseAxis");
553
+ }
554
+ setRange(t) {
555
+ 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();
556
+ }
557
+ getRange() {
558
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
559
+ }
560
+ setAxisPosition(t) {
561
+ this.axisPosition = t, this.setRange(this.range);
562
+ }
563
+ getTickDistance() {
564
+ const t = this.getRange();
565
+ return Math.abs(t[0] - t[1]) / this.getTickValues().length;
566
+ }
567
+ getAxisOuterPadding() {
568
+ return this.outerPadding;
569
+ }
570
+ getLabelDimension() {
571
+ return this.textDimensionCalculator.getMaxDimension(
572
+ this.getTickValues().map((t) => t.toString()),
573
+ this.axisConfig.labelFontSize
574
+ );
575
+ }
576
+ recalculateOuterPaddingToDrawBar() {
577
+ vt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(vt * this.getTickDistance() / 2)), this.recalculateScale();
578
+ }
579
+ calculateSpaceIfDrawnHorizontally(t) {
580
+ let i = t.height;
581
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
582
+ const e = this.getLabelDimension(), s = Pt * t.width;
583
+ this.outerPadding = Math.min(e.width / 2, s);
584
+ const n = e.height + this.axisConfig.labelPadding * 2;
585
+ this.labelTextHeight = e.height, n <= i && (i -= n, this.showLabel = !0);
586
+ }
587
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
588
+ const e = this.textDimensionCalculator.getMaxDimension(
589
+ [this.title],
590
+ this.axisConfig.titleFontSize
591
+ ), s = e.height + this.axisConfig.titlePadding * 2;
592
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
593
+ }
594
+ this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
595
+ }
596
+ calculateSpaceIfDrawnVertical(t) {
597
+ let i = t.width;
598
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
599
+ const e = this.getLabelDimension(), s = Pt * t.height;
600
+ this.outerPadding = Math.min(e.height / 2, s);
601
+ const n = e.width + this.axisConfig.labelPadding * 2;
602
+ n <= i && (i -= n, this.showLabel = !0);
603
+ }
604
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
605
+ const e = this.textDimensionCalculator.getMaxDimension(
606
+ [this.title],
607
+ this.axisConfig.titleFontSize
608
+ ), s = e.height + this.axisConfig.titlePadding * 2;
609
+ this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
610
+ }
611
+ this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
612
+ }
613
+ calculateSpace(t) {
614
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
615
+ width: this.boundingRect.width,
616
+ height: this.boundingRect.height
617
+ };
618
+ }
619
+ setBoundingBoxXY(t) {
620
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
621
+ }
622
+ getDrawableElementsForLeftAxis() {
623
+ const t = [];
624
+ if (this.showAxisLine) {
625
+ const i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
626
+ t.push({
627
+ type: "path",
628
+ groupTexts: ["left-axis", "axisl-line"],
629
+ data: [
630
+ {
631
+ path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
632
+ strokeFill: this.axisThemeConfig.axisLineColor,
633
+ strokeWidth: this.axisConfig.axisLineWidth
634
+ }
635
+ ]
636
+ });
637
+ }
638
+ if (this.showLabel && t.push({
639
+ type: "text",
640
+ groupTexts: ["left-axis", "label"],
641
+ data: this.getTickValues().map((i) => ({
642
+ text: i.toString(),
643
+ 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),
644
+ y: this.getScaleValue(i),
645
+ fill: this.axisThemeConfig.labelColor,
646
+ fontSize: this.axisConfig.labelFontSize,
647
+ rotation: 0,
648
+ verticalPos: "middle",
649
+ horizontalPos: "right"
650
+ }))
651
+ }), this.showTick) {
652
+ const i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
653
+ t.push({
654
+ type: "path",
655
+ groupTexts: ["left-axis", "ticks"],
656
+ data: this.getTickValues().map((e) => ({
657
+ path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
658
+ strokeFill: this.axisThemeConfig.tickColor,
659
+ strokeWidth: this.axisConfig.tickWidth
660
+ }))
661
+ });
662
+ }
663
+ return this.showTitle && t.push({
664
+ type: "text",
665
+ groupTexts: ["left-axis", "title"],
666
+ data: [
667
+ {
668
+ text: this.title,
669
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
670
+ y: this.boundingRect.y + this.boundingRect.height / 2,
671
+ fill: this.axisThemeConfig.titleColor,
672
+ fontSize: this.axisConfig.titleFontSize,
673
+ rotation: 270,
674
+ verticalPos: "top",
675
+ horizontalPos: "center"
676
+ }
677
+ ]
678
+ }), t;
679
+ }
680
+ getDrawableElementsForBottomAxis() {
681
+ const t = [];
682
+ if (this.showAxisLine) {
683
+ const i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
684
+ t.push({
685
+ type: "path",
686
+ groupTexts: ["bottom-axis", "axis-line"],
687
+ data: [
688
+ {
689
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
690
+ strokeFill: this.axisThemeConfig.axisLineColor,
691
+ strokeWidth: this.axisConfig.axisLineWidth
692
+ }
693
+ ]
694
+ });
695
+ }
696
+ if (this.showLabel && t.push({
697
+ type: "text",
698
+ groupTexts: ["bottom-axis", "label"],
699
+ data: this.getTickValues().map((i) => ({
700
+ text: i.toString(),
701
+ x: this.getScaleValue(i),
702
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
703
+ fill: this.axisThemeConfig.labelColor,
704
+ fontSize: this.axisConfig.labelFontSize,
705
+ rotation: 0,
706
+ verticalPos: "top",
707
+ horizontalPos: "center"
708
+ }))
709
+ }), this.showTick) {
710
+ const i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
711
+ t.push({
712
+ type: "path",
713
+ groupTexts: ["bottom-axis", "ticks"],
714
+ data: this.getTickValues().map((e) => ({
715
+ path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
716
+ strokeFill: this.axisThemeConfig.tickColor,
717
+ strokeWidth: this.axisConfig.tickWidth
718
+ }))
719
+ });
720
+ }
721
+ return this.showTitle && t.push({
722
+ type: "text",
723
+ groupTexts: ["bottom-axis", "title"],
724
+ data: [
725
+ {
726
+ text: this.title,
727
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
728
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
729
+ fill: this.axisThemeConfig.titleColor,
730
+ fontSize: this.axisConfig.titleFontSize,
731
+ rotation: 0,
732
+ verticalPos: "top",
733
+ horizontalPos: "center"
734
+ }
735
+ ]
736
+ }), t;
737
+ }
738
+ getDrawableElementsForTopAxis() {
739
+ const t = [];
740
+ if (this.showAxisLine) {
741
+ const i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
742
+ t.push({
743
+ type: "path",
744
+ groupTexts: ["top-axis", "axis-line"],
745
+ data: [
746
+ {
747
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
748
+ strokeFill: this.axisThemeConfig.axisLineColor,
749
+ strokeWidth: this.axisConfig.axisLineWidth
750
+ }
751
+ ]
752
+ });
753
+ }
754
+ if (this.showLabel && t.push({
755
+ type: "text",
756
+ groupTexts: ["top-axis", "label"],
757
+ data: this.getTickValues().map((i) => ({
758
+ text: i.toString(),
759
+ x: this.getScaleValue(i),
760
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
761
+ fill: this.axisThemeConfig.labelColor,
762
+ fontSize: this.axisConfig.labelFontSize,
763
+ rotation: 0,
764
+ verticalPos: "top",
765
+ horizontalPos: "center"
766
+ }))
767
+ }), this.showTick) {
768
+ const i = this.boundingRect.y;
769
+ t.push({
770
+ type: "path",
771
+ groupTexts: ["top-axis", "ticks"],
772
+ data: this.getTickValues().map((e) => ({
773
+ path: `M ${this.getScaleValue(e)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
774
+ strokeFill: this.axisThemeConfig.tickColor,
775
+ strokeWidth: this.axisConfig.tickWidth
776
+ }))
777
+ });
778
+ }
779
+ return this.showTitle && t.push({
780
+ type: "text",
781
+ groupTexts: ["top-axis", "title"],
782
+ data: [
783
+ {
784
+ text: this.title,
785
+ x: this.boundingRect.x + this.boundingRect.width / 2,
786
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
787
+ fill: this.axisThemeConfig.titleColor,
788
+ fontSize: this.axisConfig.titleFontSize,
789
+ rotation: 0,
790
+ verticalPos: "top",
791
+ horizontalPos: "center"
792
+ }
793
+ ]
794
+ }), t;
795
+ }
796
+ getDrawableElements() {
797
+ if (this.axisPosition === "left")
798
+ return this.getDrawableElementsForLeftAxis();
799
+ if (this.axisPosition === "right")
800
+ throw Error("Drawing of right axis is not implemented");
801
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
802
+ }
803
+ }, yi = class extends Vt {
804
+ static {
805
+ a(this, "BandAxis");
806
+ }
807
+ constructor(t, i, e, s, n) {
808
+ super(t, s, n, i), this.categories = e, this.scale = lt().domain(this.categories).range(this.getRange());
809
+ }
810
+ setRange(t) {
811
+ super.setRange(t);
812
+ }
813
+ recalculateScale() {
814
+ this.scale = lt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Et.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
815
+ }
816
+ getTickValues() {
817
+ return this.categories;
818
+ }
819
+ getScaleValue(t) {
820
+ return this.scale(t) ?? this.getRange()[0];
821
+ }
822
+ }, bi = class extends Vt {
823
+ static {
824
+ a(this, "LinearAxis");
825
+ }
826
+ constructor(t, i, e, s, n) {
827
+ super(t, s, n, i), this.domain = e, this.scale = Dt().domain(this.domain).range(this.getRange());
828
+ }
829
+ getTickValues() {
830
+ return this.scale.ticks();
831
+ }
832
+ recalculateScale() {
833
+ const t = [...this.domain];
834
+ this.axisPosition === "left" && t.reverse(), this.scale = Dt().domain(t).range(this.getRange());
835
+ }
836
+ getScaleValue(t) {
837
+ return this.scale(t);
838
+ }
839
+ };
840
+ function gt(t, i, e, s) {
841
+ const n = new Mt(s);
842
+ return ft(t) ? new yi(
843
+ i,
844
+ e,
845
+ t.categories,
846
+ t.title,
847
+ n
848
+ ) : new bi(
849
+ i,
850
+ e,
851
+ [t.min, t.max],
852
+ t.title,
853
+ n
854
+ );
855
+ }
856
+ a(gt, "getAxis");
857
+ var Ai = class {
858
+ constructor(t, i, e, s) {
859
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
860
+ x: 0,
861
+ y: 0,
862
+ width: 0,
863
+ height: 0
864
+ }, this.showChartTitle = !1;
865
+ }
866
+ static {
867
+ a(this, "ChartTitle");
868
+ }
869
+ setBoundingBoxXY(t) {
870
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
871
+ }
872
+ calculateSpace(t) {
873
+ const i = this.textDimensionCalculator.getMaxDimension(
874
+ [this.chartData.title],
875
+ this.chartConfig.titleFontSize
876
+ ), e = Math.max(i.width, t.width), s = i.height + 2 * this.chartConfig.titlePadding;
877
+ return i.width <= e && i.height <= s && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = s, this.showChartTitle = !0), {
878
+ width: this.boundingRect.width,
879
+ height: this.boundingRect.height
880
+ };
881
+ }
882
+ getDrawableElements() {
883
+ const t = [];
884
+ return this.showChartTitle && t.push({
885
+ groupTexts: ["chart-title"],
886
+ type: "text",
887
+ data: [
888
+ {
889
+ fontSize: this.chartConfig.titleFontSize,
890
+ text: this.chartData.title,
891
+ verticalPos: "middle",
892
+ horizontalPos: "center",
893
+ x: this.boundingRect.x + this.boundingRect.width / 2,
894
+ y: this.boundingRect.y + this.boundingRect.height / 2,
895
+ fill: this.chartThemeConfig.titleColor,
896
+ rotation: 0
897
+ }
898
+ ]
899
+ }), t;
900
+ }
901
+ };
902
+ function Bt(t, i, e, s) {
903
+ const n = new Mt(s);
904
+ return new Ai(n, t, i, e);
905
+ }
906
+ a(Bt, "getChartTitleComponent");
907
+ var wi = class {
908
+ constructor(t, i, e, s, n) {
909
+ this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = n;
910
+ }
911
+ static {
912
+ a(this, "LinePlot");
913
+ }
914
+ getDrawableElement() {
915
+ const t = this.plotData.data.map((e) => [
916
+ this.xAxis.getScaleValue(e[0]),
917
+ this.yAxis.getScaleValue(e[1])
918
+ ]);
919
+ let i;
920
+ return this.orientation === "horizontal" ? i = Rt().y((e) => e[0]).x((e) => e[1])(t) : i = Rt().x((e) => e[0]).y((e) => e[1])(t), i ? [
921
+ {
922
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
923
+ type: "path",
924
+ data: [
925
+ {
926
+ path: i,
927
+ strokeFill: this.plotData.strokeFill,
928
+ strokeWidth: this.plotData.strokeWidth
929
+ }
930
+ ]
931
+ }
932
+ ] : [];
933
+ }
934
+ }, Ci = class {
935
+ constructor(t, i, e, s, n, g) {
936
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = g;
937
+ }
938
+ static {
939
+ a(this, "BarPlot");
940
+ }
941
+ getDrawableElement() {
942
+ const t = this.barData.data.map((n) => [
943
+ this.xAxis.getScaleValue(n[0]),
944
+ this.yAxis.getScaleValue(n[1])
945
+ ]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), s = e / 2;
946
+ return this.orientation === "horizontal" ? [
947
+ {
948
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
949
+ type: "rect",
950
+ data: t.map((n) => ({
951
+ x: this.boundingRect.x,
952
+ y: n[0] - s,
953
+ height: e,
954
+ width: n[1] - this.boundingRect.x,
955
+ fill: this.barData.fill,
956
+ strokeWidth: 0,
957
+ strokeFill: this.barData.fill
958
+ }))
959
+ }
960
+ ] : [
961
+ {
962
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
963
+ type: "rect",
964
+ data: t.map((n) => ({
965
+ x: n[0] - s,
966
+ y: n[1],
967
+ width: e,
968
+ height: this.boundingRect.y + this.boundingRect.height - n[1],
969
+ fill: this.barData.fill,
970
+ strokeWidth: 0,
971
+ strokeFill: this.barData.fill
972
+ }))
973
+ }
974
+ ];
975
+ }
976
+ }, Si = class {
977
+ constructor(t, i, e) {
978
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
979
+ x: 0,
980
+ y: 0,
981
+ width: 0,
982
+ height: 0
983
+ };
984
+ }
985
+ static {
986
+ a(this, "BasePlot");
987
+ }
988
+ setAxes(t, i) {
989
+ this.xAxis = t, this.yAxis = i;
990
+ }
991
+ setBoundingBoxXY(t) {
992
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
993
+ }
994
+ calculateSpace(t) {
995
+ return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
996
+ width: this.boundingRect.width,
997
+ height: this.boundingRect.height
998
+ };
999
+ }
1000
+ getDrawableElements() {
1001
+ if (!(this.xAxis && this.yAxis))
1002
+ throw Error("Axes must be passed to render Plots");
1003
+ const t = [];
1004
+ for (const [i, e] of this.chartData.plots.entries())
1005
+ switch (e.type) {
1006
+ case "line":
1007
+ {
1008
+ const s = new wi(
1009
+ e,
1010
+ this.xAxis,
1011
+ this.yAxis,
1012
+ this.chartConfig.chartOrientation,
1013
+ i
1014
+ );
1015
+ t.push(...s.getDrawableElement());
1016
+ }
1017
+ break;
1018
+ case "bar":
1019
+ {
1020
+ const s = new Ci(
1021
+ e,
1022
+ this.boundingRect,
1023
+ this.xAxis,
1024
+ this.yAxis,
1025
+ this.chartConfig.chartOrientation,
1026
+ i
1027
+ );
1028
+ t.push(...s.getDrawableElement());
1029
+ }
1030
+ break;
1031
+ }
1032
+ return t;
1033
+ }
1034
+ };
1035
+ function Wt(t, i, e) {
1036
+ return new Si(t, i, e);
1037
+ }
1038
+ a(Wt, "getPlotComponent");
1039
+ var _i = class {
1040
+ constructor(t, i, e, s) {
1041
+ this.chartConfig = t, this.chartData = i, this.componentStore = {
1042
+ title: Bt(t, i, e, s),
1043
+ plot: Wt(t, i, e),
1044
+ xAxis: gt(
1045
+ i.xAxis,
1046
+ t.xAxis,
1047
+ {
1048
+ titleColor: e.xAxisTitleColor,
1049
+ labelColor: e.xAxisLabelColor,
1050
+ tickColor: e.xAxisTickColor,
1051
+ axisLineColor: e.xAxisLineColor
1052
+ },
1053
+ s
1054
+ ),
1055
+ yAxis: gt(
1056
+ i.yAxis,
1057
+ t.yAxis,
1058
+ {
1059
+ titleColor: e.yAxisTitleColor,
1060
+ labelColor: e.yAxisLabelColor,
1061
+ tickColor: e.yAxisTickColor,
1062
+ axisLineColor: e.yAxisLineColor
1063
+ },
1064
+ s
1065
+ )
1066
+ };
1067
+ }
1068
+ static {
1069
+ a(this, "Orchestrator");
1070
+ }
1071
+ calculateVerticalSpace() {
1072
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
1073
+ i * this.chartConfig.plotReservedSpacePercent / 100
1074
+ ), c = this.componentStore.plot.calculateSpace({
1075
+ width: n,
1076
+ height: g
1077
+ });
1078
+ t -= c.width, i -= c.height, c = this.componentStore.title.calculateSpace({
1079
+ width: this.chartConfig.width,
1080
+ height: i
1081
+ }), s = c.height, i -= c.height, this.componentStore.xAxis.setAxisPosition("bottom"), c = this.componentStore.xAxis.calculateSpace({
1082
+ width: t,
1083
+ height: i
1084
+ }), i -= c.height, this.componentStore.yAxis.setAxisPosition("left"), c = this.componentStore.yAxis.calculateSpace({
1085
+ width: t,
1086
+ height: i
1087
+ }), e = c.width, t -= c.width, t > 0 && (n += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
1088
+ width: n,
1089
+ height: g
1090
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + g }), this.componentStore.yAxis.setRange([s, s + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => ut(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1091
+ }
1092
+ calculateHorizontalSpace() {
1093
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, g = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(
1094
+ i * this.chartConfig.plotReservedSpacePercent / 100
1095
+ ), p = this.componentStore.plot.calculateSpace({
1096
+ width: g,
1097
+ height: c
1098
+ });
1099
+ t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
1100
+ width: this.chartConfig.width,
1101
+ height: i
1102
+ }), e = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
1103
+ width: t,
1104
+ height: i
1105
+ }), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1106
+ width: t,
1107
+ height: i
1108
+ }), i -= p.height, n = e + p.height, t > 0 && (g += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
1109
+ width: g,
1110
+ height: c
1111
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + c]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((k) => ut(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1112
+ }
1113
+ calculateSpace() {
1114
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1115
+ }
1116
+ getDrawableElement() {
1117
+ this.calculateSpace();
1118
+ const t = [];
1119
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1120
+ for (const i of Object.values(this.componentStore))
1121
+ t.push(...i.getDrawableElements());
1122
+ return t;
1123
+ }
1124
+ }, ki = class {
1125
+ static {
1126
+ a(this, "XYChartBuilder");
1127
+ }
1128
+ static build(t, i, e, s) {
1129
+ return new _i(t, i, e, s).getDrawableElement();
1130
+ }
1131
+ }, K = 0, zt, Z = yt(), J = mt(), b = bt(), xt = J.plotColorPalette.split(",").map((t) => t.trim()), st = !1, pt = !1;
1132
+ function mt() {
1133
+ const t = gi(), i = dt();
1134
+ return It(t.xyChart, i.themeVariables.xyChart);
1135
+ }
1136
+ a(mt, "getChartDefaultThemeConfig");
1137
+ function yt() {
1138
+ const t = dt();
1139
+ return It(
1140
+ ui.xyChart,
1141
+ t.xyChart
1142
+ );
1143
+ }
1144
+ a(yt, "getChartDefaultConfig");
1145
+ function bt() {
1146
+ return {
1147
+ yAxis: {
1148
+ type: "linear",
1149
+ title: "",
1150
+ min: 1 / 0,
1151
+ max: -1 / 0
1152
+ },
1153
+ xAxis: {
1154
+ type: "band",
1155
+ title: "",
1156
+ categories: []
1157
+ },
1158
+ title: "",
1159
+ plots: []
1160
+ };
1161
+ }
1162
+ a(bt, "getChartDefaultData");
1163
+ function nt(t) {
1164
+ const i = dt();
1165
+ return ci(t.trim(), i);
1166
+ }
1167
+ a(nt, "textSanitizer");
1168
+ function Ot(t) {
1169
+ zt = t;
1170
+ }
1171
+ a(Ot, "setTmpSVGG");
1172
+ function Ft(t) {
1173
+ t === "horizontal" ? Z.chartOrientation = "horizontal" : Z.chartOrientation = "vertical";
1174
+ }
1175
+ a(Ft, "setOrientation");
1176
+ function Xt(t) {
1177
+ b.xAxis.title = nt(t.text);
1178
+ }
1179
+ a(Xt, "setXAxisTitle");
1180
+ function At(t, i) {
1181
+ b.xAxis = { type: "linear", title: b.xAxis.title, min: t, max: i }, st = !0;
1182
+ }
1183
+ a(At, "setXAxisRangeData");
1184
+ function Yt(t) {
1185
+ b.xAxis = {
1186
+ type: "band",
1187
+ title: b.xAxis.title,
1188
+ categories: t.map((i) => nt(i.text))
1189
+ }, st = !0;
1190
+ }
1191
+ a(Yt, "setXAxisBand");
1192
+ function Nt(t) {
1193
+ b.yAxis.title = nt(t.text);
1194
+ }
1195
+ a(Nt, "setYAxisTitle");
1196
+ function Ht(t, i) {
1197
+ b.yAxis = { type: "linear", title: b.yAxis.title, min: t, max: i }, pt = !0;
1198
+ }
1199
+ a(Ht, "setYAxisRangeData");
1200
+ function Ut(t) {
1201
+ const i = Math.min(...t), e = Math.max(...t), s = j(b.yAxis) ? b.yAxis.min : 1 / 0, n = j(b.yAxis) ? b.yAxis.max : -1 / 0;
1202
+ b.yAxis = {
1203
+ type: "linear",
1204
+ title: b.yAxis.title,
1205
+ min: Math.min(s, i),
1206
+ max: Math.max(n, e)
1207
+ };
1208
+ }
1209
+ a(Ut, "setYAxisRangeFromPlotData");
1210
+ function wt(t) {
1211
+ let i = [];
1212
+ if (t.length === 0)
1213
+ return i;
1214
+ if (!st) {
1215
+ const e = j(b.xAxis) ? b.xAxis.min : 1 / 0, s = j(b.xAxis) ? b.xAxis.max : -1 / 0;
1216
+ At(Math.min(e, 1), Math.max(s, t.length));
1217
+ }
1218
+ if (pt || Ut(t), ft(b.xAxis) && (i = b.xAxis.categories.map((e, s) => [e, t[s]])), j(b.xAxis)) {
1219
+ const e = b.xAxis.min, s = b.xAxis.max, n = (s - e) / (t.length - 1), g = [];
1220
+ for (let c = e; c <= s; c += n)
1221
+ g.push(`${c}`);
1222
+ i = g.map((c, p) => [c, t[p]]);
1223
+ }
1224
+ return i;
1225
+ }
1226
+ a(wt, "transformDataWithoutCategory");
1227
+ function Ct(t) {
1228
+ return xt[t === 0 ? 0 : t % xt.length];
1229
+ }
1230
+ a(Ct, "getPlotColorFromPalette");
1231
+ function $t(t, i) {
1232
+ const e = wt(i);
1233
+ b.plots.push({
1234
+ type: "line",
1235
+ strokeFill: Ct(K),
1236
+ strokeWidth: 2,
1237
+ data: e
1238
+ }), K++;
1239
+ }
1240
+ a($t, "setLineData");
1241
+ function qt(t, i) {
1242
+ const e = wt(i);
1243
+ b.plots.push({
1244
+ type: "bar",
1245
+ fill: Ct(K),
1246
+ data: e
1247
+ }), K++;
1248
+ }
1249
+ a(qt, "setBarData");
1250
+ function Gt() {
1251
+ if (b.plots.length === 0)
1252
+ throw Error("No Plot to render, please provide a plot with some data");
1253
+ return b.title = Lt(), ki.build(Z, b, J, zt);
1254
+ }
1255
+ a(Gt, "getDrawableElem");
1256
+ function jt() {
1257
+ return J;
1258
+ }
1259
+ a(jt, "getChartThemeConfig");
1260
+ function Qt() {
1261
+ return Z;
1262
+ }
1263
+ a(Qt, "getChartConfig");
1264
+ function Kt() {
1265
+ return b;
1266
+ }
1267
+ a(Kt, "getXYChartData");
1268
+ var Ti = /* @__PURE__ */ a(function() {
1269
+ li(), K = 0, Z = yt(), b = bt(), J = mt(), xt = J.plotColorPalette.split(",").map((t) => t.trim()), st = !1, pt = !1;
1270
+ }, "clear"), Ri = {
1271
+ getDrawableElem: Gt,
1272
+ clear: Ti,
1273
+ setAccTitle: oi,
1274
+ getAccTitle: ai,
1275
+ setDiagramTitle: ni,
1276
+ getDiagramTitle: Lt,
1277
+ getAccDescription: si,
1278
+ setAccDescription: ei,
1279
+ setOrientation: Ft,
1280
+ setXAxisTitle: Xt,
1281
+ setXAxisRangeData: At,
1282
+ setXAxisBand: Yt,
1283
+ setYAxisTitle: Nt,
1284
+ setYAxisRangeData: Ht,
1285
+ setLineData: $t,
1286
+ setBarData: qt,
1287
+ setTmpSVGG: Ot,
1288
+ getChartThemeConfig: jt,
1289
+ getChartConfig: Qt,
1290
+ getXYChartData: Kt
1291
+ }, Di = /* @__PURE__ */ a((t, i, e, s) => {
1292
+ const n = s.db, g = n.getChartThemeConfig(), c = n.getChartConfig(), p = n.getXYChartData().plots[0].data.map((f) => f[1]);
1293
+ function k(f) {
1294
+ return f === "top" ? "text-before-edge" : "middle";
1295
+ }
1296
+ a(k, "getDominantBaseLine");
1297
+ function v(f) {
1298
+ return f === "left" ? "start" : f === "right" ? "end" : "middle";
1299
+ }
1300
+ a(v, "getTextAnchor");
1301
+ function P(f) {
1302
+ return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1303
+ }
1304
+ a(P, "getTextTransformation"), Et.debug(`Rendering xychart chart
1305
+ ` + t);
1306
+ const S = ri(i), m = S.append("g").attr("class", "main"), E = m.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
1307
+ hi(S, c.height, c.width, !0), S.attr("viewBox", `0 0 ${c.width} ${c.height}`), E.attr("fill", g.backgroundColor), n.setTmpSVGG(S.append("g").attr("class", "mermaid-tmp-group"));
1308
+ const D = n.getDrawableElem(), L = {};
1309
+ function I(f) {
1310
+ let T = m, h = "";
1311
+ for (const [W] of f.entries()) {
1312
+ let O = m;
1313
+ W > 0 && L[h] && (O = L[h]), h += f[W], T = L[h], T || (T = L[h] = O.append("g").attr("class", f[W]));
1314
+ }
1315
+ return T;
1316
+ }
1317
+ a(I, "getGroup");
1318
+ for (const f of D) {
1319
+ if (f.data.length === 0)
1320
+ continue;
1321
+ const T = I(f.groupTexts);
1322
+ switch (f.type) {
1323
+ case "rect":
1324
+ if (T.selectAll("rect").data(f.data).enter().append("rect").attr("x", (h) => h.x).attr("y", (h) => h.y).attr("width", (h) => h.width).attr("height", (h) => h.height).attr("fill", (h) => h.fill).attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth), c.showDataLabel) {
1325
+ const h = c.showDataLabelOutsideBar;
1326
+ if (c.chartOrientation === "horizontal") {
1327
+ let W = function(A, V) {
1328
+ const { data: _, label: H } = A;
1329
+ return V * H.length * O <= _.width - X;
1330
+ };
1331
+ a(W, "fitsHorizontally");
1332
+ const O = 0.7, X = 10, Y = f.data.map((A, V) => ({ data: A, label: p[V].toString() })).filter((A) => A.data.width > 0 && A.data.height > 0), C = Y.map((A) => {
1333
+ const { data: V } = A;
1334
+ let _ = V.height * 0.7;
1335
+ for (; !W(A, _) && _ > 0; )
1336
+ _ -= 1;
1337
+ return _;
1338
+ }), U = Math.floor(Math.min(...C)), y = /* @__PURE__ */ a((A) => h ? A.data.x + A.data.width + X : A.data.x + A.data.width - X, "determineLabelXPosition");
1339
+ T.selectAll("text").data(Y).enter().append("text").attr("x", y).attr("y", (A) => A.data.y + A.data.height / 2).attr("text-anchor", h ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", g.dataLabelColor).attr("font-size", `${U}px`).text((A) => A.label);
1340
+ } else {
1341
+ let W = function(y, A, V) {
1342
+ const { data: _, label: H } = y, r = A * H.length * 0.7, l = _.x + _.width / 2, u = l - r / 2, x = l + r / 2, w = u >= _.x && x <= _.x + _.width, o = _.y + V + A <= _.y + _.height;
1343
+ return w && o;
1344
+ };
1345
+ a(W, "fitsInBar");
1346
+ const O = 10, X = f.data.map((y, A) => ({ data: y, label: p[A].toString() })).filter((y) => y.data.width > 0 && y.data.height > 0), Y = X.map((y) => {
1347
+ const { data: A, label: V } = y;
1348
+ let _ = A.width / (V.length * 0.7);
1349
+ for (; !W(y, _, O) && _ > 0; )
1350
+ _ -= 1;
1351
+ return _;
1352
+ }), C = Math.floor(Math.min(...Y)), U = /* @__PURE__ */ a((y) => h ? y.data.y - O : y.data.y + O, "determineLabelYPosition");
1353
+ T.selectAll("text").data(X).enter().append("text").attr("x", (y) => y.data.x + y.data.width / 2).attr("y", U).attr("text-anchor", "middle").attr("dominant-baseline", h ? "auto" : "hanging").attr("fill", g.dataLabelColor).attr("font-size", `${C}px`).text((y) => y.label);
1354
+ }
1355
+ }
1356
+ break;
1357
+ case "text":
1358
+ T.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (h) => h.fill).attr("font-size", (h) => h.fontSize).attr("dominant-baseline", (h) => k(h.verticalPos)).attr("text-anchor", (h) => v(h.horizontalPos)).attr("transform", (h) => P(h)).text((h) => h.text);
1359
+ break;
1360
+ case "path":
1361
+ T.selectAll("path").data(f.data).enter().append("path").attr("d", (h) => h.path).attr("fill", (h) => h.fill ? h.fill : "none").attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
1362
+ break;
1363
+ }
1364
+ }
1365
+ }, "draw"), vi = {
1366
+ draw: Di
1367
+ }, Mi = {
1368
+ parser: mi,
1369
+ db: Ri,
1370
+ renderer: vi
1371
+ };
1372
+ export {
1373
+ Mi as diagram
1374
+ };
1375
+ //# sourceMappingURL=xychartDiagram-2RQKCTM6-IkxwUbCF.js.map